diff --git a/src/assets/js/createObjectUrl.js b/src/assets/js/createObjectUrl.js new file mode 100644 index 0000000..1313653 --- /dev/null +++ b/src/assets/js/createObjectUrl.js @@ -0,0 +1,28 @@ +(function () { + var _createObjectURL = window.URL.createObjectURL + Object.defineProperty(window.URL, 'createObjectURL', { + set: function (value) { + console.trace('set createObjectURL') + _createObjectURL = value + }, + get: function () { + console.trace('get createObjectURL') + return _createObjectURL + } + }) +})() +// (function () { +// var _URL = window.URL +// Object.defineProperty(window, 'URL', { +// set: function (value) { +// console.trace('set URL') +// console.log(value) +// _URL = value +// }, +// get: function (value) { +// console.trace('get URL') +// console.log(value) +// return _URL +// } +// }) +// })() diff --git a/src/assets/js/verifyMathematicalExpression.js b/src/assets/js/verifyMathematicalExpression.js new file mode 100644 index 0000000..290b732 --- /dev/null +++ b/src/assets/js/verifyMathematicalExpression.js @@ -0,0 +1,120 @@ +/* eslint-disable */ +const fn = (string, obj) => { + console.log(string) + console.log(obj) + + // 剔除空白符 + string = string.replace(/\s/g, '') + + // 错误情况,空字符串 + if (string === '') { + console.log('error:空字符串') + return false; + } + if (/^[\x\÷\+\-\*\/]/.test(string)) { + // console.error(& amp; quot; 运算符开头 & amp; quot;); + console.log('error:运算符开头') + return false + } + + // 错误情况,运算符结尾 + if (/[\x\÷\+\-\*\/]$/.test(string)) { + // console.error(& amp; quot; 运算符结尾 & amp; quot;); + console.log('error:运算符结尾') + return false + } + + // 错误情况,(后面是运算符或者) + if (/\([\x\÷\+\-\*\/]/.test(string)) { + // console.error(& amp; quot; (后面是运算符或者) & amp; quot;); + console.log('error:后面是运算符或者') + return false + } + // 错误情况,运算符连续 + if (/[\x\÷\+\-\*\/]{2,}/.test(string)) { + console.log('error:运算符连续') + return false + } + + // 空括号 + if (/\(\)/.test(string)) { + console.log('error:空括号') + return false + } + + // 错误情况,括号不配对 + var stack = [] + for (var i = 0, item; i < string.length; i++) { + item = string.charAt(i) + if (item === '(') { + stack.push('(') + } else if (item === ')') { + if (stack.length > 0) { + stack.pop() + } else { + console.log('error:括号不配对') + return false + } + } + } + + if (stack.length !== 0) { + return false + } + + // 错误情况,(后面是运算符 + if (/\([\x\÷\+\-\*\/]/.test(string)) { + console.log('error:(后面是运算符') + return false + } + + // 错误情况,)前面是运算符 + if (/[\x\÷\+\-\*\/]\)/.test(string)) { + console.log('error:)前面是运算符') + return false + } + // 错误情况,(前面不是运算符 + if(/[^\+\-\*\/]\(/.test(string)){ + console.log('error:(前面不是运算符') + return false; + } + + // 错误情况,)后面不是运算符 + if(/\)[^\+\-\*\/]/.test(string)){ + console.log('error:)后面不是运算符') + return false; + } + + // 错误情况,变量没有来自“待选公式变量” + var tmpStr = string.replace(/[\(\)\x\÷\+\-\*\/]{1,}/g, '`') + var array = tmpStr.split(',') + for (let i = 0, item; i < array.length; i++) { + item = array[i] + if (/[A-Z]/i.test(item) && typeof (obj[item]) === 'undefined') { + console.log('error:变量没有来自“待选公式变量”') + return false + } + } + let stringarr = string.split(',') + let objarr = Object.keys(obj) + for (let index = 0; index < stringarr.length; index++) { + if (objarr.indexOf(stringarr[index]) > -1) { + if (stringarr[index + 1] === undefined) { + + } else if ( + stringarr[index + 1] !== '+' && + stringarr[index + 1] !== '.' && + stringarr[index + 1] !== '-' && + stringarr[index + 1] !== 'x' && + stringarr[index + 1] !== '÷' && + stringarr[index + 1] !== '(' && + stringarr[index + 1] !== ')') { + console.log('error:变量没有来自“待选公式变量”') + return false + } + } + } + + return true +} +export default fn diff --git a/src/components/chartsCont/ChartsCont.vue b/src/components/chartsCont/ChartsCont.vue index 95811a4..38acea0 100644 --- a/src/components/chartsCont/ChartsCont.vue +++ b/src/components/chartsCont/ChartsCont.vue @@ -436,7 +436,29 @@ export default { if (val) { // 初始化公共数据 // console.log(this.objCompBefore, 'this.objCompBefore') - + if (JSON.parse(localStorage.getItem('classFiyData')) && JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id)) { + this.transBefore = {} + this.transBefore.tableExplain = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.tableExplain + this.transBefore.timeArr = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.timeArr.map((item, index) => { return item.toString() }) + this.transBefore.termsName = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.termsName + this.transBefore.termsExplain = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.termsExplain + this.transBefore.areaName = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.areaName + this.transBefore.transBeforeTermsData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeTermsData + this.transBefore.transBeforeAreaData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeAreaData + console.log(this.transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = this.transBefore + // 全局永久不变数据 + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + } else { + console.log(this.defaultDataRight, '获取左侧选中数据555') + console.log(this.$store.state.selectData, 'this.$store.state.selectData') + console.log(this.$store.state.selectfilter, 'this.$store.state.selectfilter') + this.$nextTick(() => { + // this.getDatas() + }) + } } }, immediate: true, @@ -445,6 +467,7 @@ export default { // 监听下拉状态变化 stateTells (val) { if (val) { + console.log(val, 'jjjjjj') if (JSON.parse(localStorage.getItem('classFiyData')) && JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id)) { this.transBefore = {} this.transBefore.tableExplain = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.tableExplain @@ -455,7 +478,7 @@ export default { this.transBefore.transBeforeTermsData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeTermsData this.transBefore.transBeforeAreaData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeAreaData console.log(this.transBefore, '000') - this.$store.state.transdtr = true + // this.$store.state.transdtr = true // 全局总数据 this.$store.state.transBefore = this.transBefore // 全局永久不变数据 @@ -739,6 +762,7 @@ export default { if (this.transBefore) { this.objCompBefore.initAllData() } + console.log(this.$store.state.selectData, '执行') this.$axios({ method: 'GET', url: 'data/data/detail', @@ -750,34 +774,81 @@ export default { quota: this.downLaSelect.label, // 选中的指标 cate: this.selectState, // 1筛选指标 2筛选地区 f: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 - // filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 data: this.$store.state.selectData // 时间 } }).then(res => { console.log(res, '获取数据展示数据') // 请求接口完成 请求成功 if (res.data.code === 200) { - // if (res.data.data.areaName.length !== 0) { - this.transBefore = {} - this.transBefore.tableExplain = res.data.data.tableExplain - this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) - this.transBefore.termsName = res.data.data.termsName - this.transBefore.termsExplain = res.data.data.termsExplain - this.transBefore.areaName = res.data.data.areaName - this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData - this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData - console.log(this.transBefore, '000') - this.$store.state.transdtr = true - // 全局总数据 - this.$store.state.transBefore = this.transBefore - // 全局永久不变数据 - this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) - // 告诉父组件我完成任务重置状态 - this.$emit('prentsState', false) - // } + if (res.data.data.areaName.length !== 0) { + if (this.downLaSelect.area === '' || this.downLaSelect.label === '') { + console.log(this.downLaSelect.area, 'this.downLaSelect.area') + let brrtf = {} + // this.transBefore = {} + brrtf.tableExplain = res.data.data.tableExplain + brrtf.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) + brrtf.termsName = res.data.data.termsName + brrtf.termsExplain = res.data.data.termsExplain + brrtf.areaName = res.data.data.areaName + if (this.$route.query.type === 'area') { + console.log('走这里') + brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData[0] + brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData + } else { + brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData + brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData[0] + } + console.log(brrtf, 'brrtf') + this.transBefore = brrtf + console.log(this.transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = this.transBefore + // 全局永久不变数据 + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + // 告诉父组件我完成任务重置状态 + this.$emit('prentsState', false) + console.log(this.$store.state.noChangeData, 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData') + } else { + this.transBefore = {} + this.transBefore.tableExplain = res.data.data.tableExplain + this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) + this.transBefore.termsName = res.data.data.termsName + this.transBefore.termsExplain = res.data.data.termsExplain + this.transBefore.areaName = res.data.data.areaName + this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData + this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData + console.log(this.transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = this.transBefore + // 全局永久不变数据 + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + + // 告诉父组件我完成任务重置状态 + this.$emit('prentsState', false) + } + } else { + this.transBefore = {} + this.transBefore.tableExplain = res.data.data.tableExplain + this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) + this.transBefore.termsName = res.data.data.termsName + this.transBefore.termsExplain = res.data.data.termsExplain + this.transBefore.areaName = res.data.data.areaName + this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData + this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData + console.log(this.transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = this.transBefore + // 全局永久不变数据 + this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore)) + // 告诉父组件我完成任务重置状态 + this.$emit('prentsState', false) + } } else { this.transBefore = null - this.$store.state.transdtr = null + // this.$store.state.transdtr = null // 全局总数据 this.$store.state.transBefore = null this.$store.state.noChangeData = null @@ -793,12 +864,24 @@ export default { return (ind) => { let styStatic = false if (this.transState) { - if (ind > (this.transBefore.transBeforeTermsData[0].length)) { - styStatic = true + if (this.transBefore.transBeforeTermsData[0] !== undefined) { + if (ind > (this.transBefore.transBeforeTermsData[0].length)) { + styStatic = true + } + } else { + if (ind > (this.transBefore.transBeforeAreaData[0].length)) { + styStatic = true + } } } else { - if (ind > (this.transBefore.transBeforeTermsData.length)) { - styStatic = true + if (this.transBefore.transBeforeTermsData[0] !== undefined) { + if (ind > (this.transBefore.transBeforeTermsData.length)) { + styStatic = true + } + } else { + if (ind > (this.transBefore.transBeforeAreaData.length)) { + styStatic = true + } } } return styStatic @@ -809,12 +892,24 @@ export default { return (ind) => { let styStatic = false if (this.transState) { - if (ind > (this.transBefore.transBeforeTermsData.length - 1)) { - styStatic = true + if (this.transBefore.transBeforeTermsData[0] !== undefined) { + if (ind > (this.transBefore.transBeforeTermsData.length - 1)) { + styStatic = true + } + } else { + if (ind > (this.transBefore.transBeforeAreaData.length - 1)) { + styStatic = true + } } } else { - if (ind > (this.transBefore.transBeforeTermsData[0].length - 1)) { - styStatic = true + if (this.transBefore.transBeforeTermsData[0] !== undefined) { + if (ind > (this.transBefore.transBeforeTermsData[0].length - 1)) { + styStatic = true + } + } else { + if (ind > (this.transBefore.transBeforeAreaData[0].length - 1)) { + styStatic = true + } } } return styStatic diff --git a/src/components/chartsCut/ChartsCut.vue b/src/components/chartsCut/ChartsCut.vue index eb6e31f..4c7e314 100644 --- a/src/components/chartsCut/ChartsCut.vue +++ b/src/components/chartsCut/ChartsCut.vue @@ -137,7 +137,7 @@ export default { if (this.$route.query.type !== 'area') { this.searchSelect(this.$route.query.type) } else { - + this.searchSelect(val.f) } } }, @@ -168,7 +168,7 @@ export default { } // 将值传给父组件 this.$emit('comTime', resu[2].name) - this.showInputStu = !this.showInputStu + // this.showInputStu = !this.showInputStu }, changesInputStu () { console.log(12569) @@ -180,8 +180,8 @@ export default { this.isHideProp = false }, // 查询下拉筛选条件 - async searchSelect (type) { - await this.$axios({ + searchSelect (type) { + this.$axios({ method: 'GET', url: 'data/data/quick', params: { @@ -191,18 +191,16 @@ export default { console.log(res, '下拉筛选条件') // 请求接口完成 请求成功 if (res.data.code === 200) { - if (this.$route.query.type !== 'area') { - // console.log(Object.keys(res.data.data.list)) - // console.log(Object.values(res.data.data.list)) - this.cityDataTime = Object.keys(res.data.data.list).map((item, index) => { - return { 'id': '110000', 'name': Object.values(res.data.data.list)[index], 'parentId': '100000', 'shortName': '北京', 'cityCode': '', indexID: item } - }) - // 默认选中第一个 - this.$store.state.selectData = this.cityDataTime[0].indexID - console.log(this.$store.state.selectData, 'this.cityDataTime[0].indexID') - // 告诉父组件我获取到了 - this.$emit('stateTell', true) - } + // console.log(Object.keys(res.data.data.list)) + // console.log(Object.values(res.data.data.list)) + this.cityDataTime = Object.keys(res.data.data.list).map((item, index) => { + return { 'id': '110000', 'name': Object.values(res.data.data.list)[index], 'parentId': '100000', 'shortName': '北京', 'cityCode': '', indexID: item } + }) + // 默认选中第一个 + this.$store.state.selectData = this.cityDataTime[0].indexID + console.log(this.$store.state.selectData, 'this.cityDataTime[0].indexID') + // 告诉父组件我获取到了 + this.$emit('stateTell', true) } }).catch((fail) => { console.log(fail) @@ -212,6 +210,7 @@ export default { }, mounted () { this.cityDataArea = this.cityDataAreas + this.cityDataTime = this.cityDataAreas } } diff --git a/src/components/cityPicker/CityPicker.vue b/src/components/cityPicker/CityPicker.vue index e554ba4..82aed68 100644 --- a/src/components/cityPicker/CityPicker.vue +++ b/src/components/cityPicker/CityPicker.vue @@ -117,6 +117,7 @@ export default { immediate: true, deep: true } + }, computed: { newCityData () { @@ -159,6 +160,7 @@ export default { this.inlay[index].filterDatas.push(list) } } + console.log(this.inlay[0], 'this.inlay') }, setCity(city) { /* eslint-disable */ @@ -297,7 +299,7 @@ export default { document.addEventListener('click', function (e) { /* eslint-disable */ // console.log(that.isHideProp, '12569') - if (e.target.className !== 'city-picker' && false) { + if (e.target.className !== 'city-picker') { that.modifyNature(that.inlay, 'isHide', true) } }) diff --git a/src/components/dimension/Dimension.vue b/src/components/dimension/Dimension.vue index 3981ed3..6ec356e 100644 --- a/src/components/dimension/Dimension.vue +++ b/src/components/dimension/Dimension.vue @@ -49,7 +49,7 @@
-
确定
+
确定
@@ -61,7 +61,12 @@ export default { return { imgUrl: require('../../../static/nav/deleteImg.png'), rowVal: '指标', - colVal: '时间' + colVal: '时间', + arrValue: { + '指标': 'zb', + '时间': 'sj', + '地区': 'dq' + } } }, methods: { @@ -71,7 +76,109 @@ export default { } else if (strd === 'col') { this.colVal = stateSD } + }, + // 维度转换默认 + change3D () { + if (this.$store.state.transState) { + if (this.$route.query.type !== 'area') { + this.rowVal = '指标' + this.colVal = '时间' + } else { + this.rowVal = '地区' + this.colVal = '时间' + } + } else { + if (this.$route.query.type !== 'area') { + this.rowVal = '时间' + this.colVal = '指标' + } else { + this.rowVal = '时间' + this.colVal = '地区' + } + } + }, + // 确定维度转换 + trueChange () { + this.trueChangeArea() + }, + trueChangeArea () { + console.log(this.arrValue[this.colVal], 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData') + console.log(this.arrValue[this.rowVal], 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData') + console.log(this.$store.state.noChangeData) + let paramsd = {} + if ((this.arrValue[this.colVal] === 'sj' && this.arrValue[this.rowVal] === 'zb') || (this.arrValue[this.colVal] === 'zb' && this.arrValue[this.rowVal] === 'sj')) { + paramsd = { + type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区 + data: 3, + area: this.$store.state.noChangeData.areaName[0], // 选中的地区 + quota: '', // 选中的指标 + cate: this.selectState, // 1筛选指标 2筛选地区 + f: this.$store.state.selectDataLeft.f, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 + // filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 + date: '', // 时间 + row: this.arrValue[this.colVal], + col: this.arrValue[this.rowVal] + } + } else if ((this.arrValue[this.colVal] === 'sj' && this.arrValue[this.rowVal] === 'dq') || (this.arrValue[this.colVal] === 'dq' && this.arrValue[this.rowVal] === 'sj')) { + paramsd = { + type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区 + data: 3, + area: '', // 选中的地区 + quota: this.$store.state.noChangeData.termsName[0], // 选中的指标 + cate: this.selectState, // 1筛选指标 2筛选地区 + f: this.$store.state.selectDataLeft.f, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 + // filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 + date: '', // 时间 + row: this.arrValue[this.colVal], + col: this.arrValue[this.rowVal] + } + } else if ((this.arrValue[this.colVal] === 'zb' && this.arrValue[this.rowVal] === 'dq') || (this.arrValue[this.colVal] === 'dq' && this.arrValue[this.rowVal] === 'zb')) { + paramsd = { + type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区 + data: 3, + area: '', // 选中的地区 + quota: '', // 选中的指标 + cate: this.selectState, // 1筛选指标 2筛选地区 + f: this.$store.state.selectDataLeft.f, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 + // filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类 + date: this.$store.state.noChangeData.timeArr[0], // 时间 + row: this.arrValue[this.colVal], + col: this.arrValue[this.rowVal] + } + } + this.$axios({ + method: 'POST', + url: 'data/data/wd-trans', + data: paramsd + }).then(res => { + console.log(this.$store.state.transBefore, '维度转换全局数据') + console.log(res, '获取数据展示数据') + // 请求接口完成 请求成功 + if (res.data.code === 200) { + // if (res.data.data.areaName.length !== 0) { + let transBefore = {} + transBefore.tableExplain = res.data.data.tableExplain + transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() }) + transBefore.termsName = res.data.data.termsName + transBefore.termsExplain = res.data.data.termsExplain + transBefore.areaName = res.data.data.areaName + transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData + transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData + console.log(this.transBefore, '000') + this.$store.state.transdtr = true + // 全局总数据 + this.$store.state.transBefore = this.transBefore + // } + } else { + this.$store.state.transBefore = null + } + }).catch((fail) => { + console.log(fail, 2369) + }) } + }, + mounted () { + this.change3D() } } diff --git a/src/components/mapData/MapData.vue b/src/components/mapData/MapData.vue index 4b0d2c3..234201d 100644 --- a/src/components/mapData/MapData.vue +++ b/src/components/mapData/MapData.vue @@ -294,6 +294,7 @@ export default { }, // 地图左侧指标名称显示 searchDataMap () { + console.log(this.$store.state.selectDataLeft.id) this.$axios({ method: 'GET', url: 'data/data/quota', @@ -321,6 +322,7 @@ export default { } return brrO }) + console.log(this.leftDafrt, 'this.leftDafrt') this.getLabelDatart() } }).catch((fail) => { @@ -329,6 +331,7 @@ export default { }, // 获取每个指标的数据 getLabelDatart () { + console.log(this.leftDafrt, 1010110) this.$axios({ method: 'GET', url: 'data/data/map-data', diff --git a/src/store.js b/src/store.js index 4d4bd05..7f7e152 100644 --- a/src/store.js +++ b/src/store.js @@ -51,7 +51,9 @@ export default new Vuex.Store({ // 下拉筛选分类 selectfilter: null, // 下拉筛选条件 - selectData: 1010110 + selectData: null, + // 转置状态 + transState: true }, mutations: {}, diff --git a/src/views/datasweb/Datasweb.vue b/src/views/datasweb/Datasweb.vue index 615cac4..ac4079e 100644 --- a/src/views/datasweb/Datasweb.vue +++ b/src/views/datasweb/Datasweb.vue @@ -240,7 +240,7 @@ - + @@ -324,7 +324,7 @@ export default { { text: '高级查询', iconUrl: require('../../../static/data/gjcx.png') }, { text: '数据地图', iconUrl: require('../../../static/data/sjdt.png') }, { text: '添加收藏', iconUrl: require('../../../static/data/tjsc.png') }, - { text: '导出至Exc', iconUrl: require('../../../static/data/dcexcel.png') }, + { text: '导出至Excel', iconUrl: require('../../../static/data/dcexcel.png') }, { text: '数据管理', iconUrl: require('../../../static/data/sjgl.png'), @@ -410,10 +410,25 @@ export default { // 新增指标状态 statesDf: 1, // 数据加载状态 - stateTells: false + stateTells: false, + // 维度转换时(若不是地区数据只进行转置操作) + changeState: false + } + }, + watch: { + changeState (val) { + if (val) { + this.chartsStatusMegger.transState = !this.chartsStatusMegger.transState + this.$store.state.transState = this.chartsStatusMegger.transState + this.changeState = false + } } }, methods: { + // 维度转换非地区转置 + changeValue (val) { + this.changeState = val + }, // 获取左侧菜单数据 getCateData () { this.$axios({ @@ -659,6 +674,7 @@ export default { break case '转置': this.chartsStatusMegger.transState = !this.chartsStatusMegger.transState + this.$store.state.transState = this.chartsStatusMegger.transState break case '维度转换': this.$store.state.dimensionState = true @@ -878,7 +894,7 @@ export default { console.log(stateStatic, '数据') console.log(this.leftCateData[this.leftCateData.length - 1], '数据length-1') this.$store.state.selectDataLeft = this.leftCateData[this.leftCateData.length - 1] - console.log(this.leftCateData[this.leftCateData.length - 1].children[0].children[0].children[0].children[0], '1') + // console.log(this.leftCateData[this.leftCateData.length - 1].children[0].children[0].children[0].children[0], '1') if (this.leftCateData[this.leftCateData.length - 1].children !== undefined) { if (this.leftCateData[this.leftCateData.length - 1].children[0].children !== undefined) { if (this.leftCateData[this.leftCateData.length - 1].children[0].children[0].children !== undefined) { @@ -925,6 +941,7 @@ export default { prentsState (val) { this.stateTells = val } + }, computed: { // 计算字符串 diff --git a/src/views/index/Index.vue b/src/views/index/Index.vue index 8279092..4601501 100644 --- a/src/views/index/Index.vue +++ b/src/views/index/Index.vue @@ -47,7 +47,7 @@
{{listLeft.name}}
@@ -55,7 +55,7 @@
{{listRight.name}}
@@ -126,7 +126,7 @@
24小时热文
-
+
{{item.title}}
@@ -407,7 +407,7 @@ export default { limit: 8 } }).then(res => { - // console.log(res, '快速查询') + console.log(res, '快速查询') // 请求接口完成 请求成功 if (res.data.code === 200) { let brrtLeft = [] @@ -506,7 +506,8 @@ export default { title: item.name, updataTime: item.time, table_name: item.table_name, - type: item.type + type: item.type, + filter: item.filter } arrts.push(objuu) }) @@ -545,15 +546,27 @@ export default { }, // 跳转至数据 jumpLianjie (state, value) { + console.log(value, 'this.indexDatalabel[this.selectLabelS]') if (state) { - this.$router.push( - { - path: '/datasweb', - query: { - type: this.indexDatalabel[this.selectLabelS] + if (value === 1) { + this.$router.push( + { + path: '/datasweb', + query: { + type: this.indexDatalabel[this.selectLabelS] + } } - } - ) + ) + } else { + this.$router.push( + { + path: '/datasweb', + query: { + type: 'area' + } + } + ) + } } else { this.$router.push( { diff --git a/src/views/listDetails/ListDetails.vue b/src/views/listDetails/ListDetails.vue index a8556e1..f9e3201 100644 --- a/src/views/listDetails/ListDetails.vue +++ b/src/views/listDetails/ListDetails.vue @@ -37,7 +37,7 @@
24小时热文
-
+
{{item.title}}
diff --git a/src/views/personalCenter/PersonalCenter.vue b/src/views/personalCenter/PersonalCenter.vue index 426fc14..81fc450 100644 --- a/src/views/personalCenter/PersonalCenter.vue +++ b/src/views/personalCenter/PersonalCenter.vue @@ -27,7 +27,7 @@
{{staticSelect}}
-
搜索
+
搜索
@@ -68,15 +68,15 @@ v-model="collectName" v-if="item.staticInput" v-focus="true" - @blur="blurUpset" - @keyup.enter="blurUpset" + @blur="blurUpset(item.id,item.name)" + @keyup.enter="blurUpset(item.id,item.name)" />
{{item.database}}
{{item.birthTime}}
编辑
/ -
删除
+
删除
@@ -89,6 +89,7 @@ class="pagination" :page-size="pageConfiguration.oneSize" :hide-on-single-page="true" + @current-change="currentChange" >
暂无收藏记录
@@ -110,11 +111,11 @@
- +
- +
确认
@@ -281,21 +282,88 @@ export default { }) }, // 文本框失去焦点或者回车enter - blurUpset () { - console.log('文本框失去焦点') - // 调用接口修改数据 - this.collect.forEach((item, index) => { - item.staticInput = false + blurUpset (ids, names) { + let bStr = this.collectName === '' ? names : this.collectName + this.$axios({ + method: 'POST', + url: 'member/index/edit', + data: { + id: ids, + name: bStr + } + }).then(res => { + console.log(res, 12569) + // 请求接口完成 请求成功 + // alert(res.data.message) + if (res.data.code === 200) { + alert('修改成功!') + console.log('文本框失去焦点') + // 调用接口修改数据 + this.collect.forEach((item, index) => { + item.staticInput = false + }) + this.getCollectData() + } + }).catch((fail) => { + console.log(fail) }) }, // 删除收藏数据 - deleteData () { + deleteData (ids) { // 调用接口删除数据 + this.$axios({ + method: 'POST', + url: 'member/index/del', + data: { + id: ids + } + }).then(res => { + console.log(res, 1256000009) + // 请求接口完成 请求成功 + // alert(res.data.message) + if (res.data.code === 200) { + alert('删除成功!') + this.getCollectData() + } + }).catch((fail) => { + console.log(fail) + }) }, // 获取收藏数据 - getCollectData () { + getCollectData (pagess) { // 调接口获取数据 console.log(this.pageConfiguration.countPage) + this.$axios({ + method: 'GET', + url: 'member/index/favorite', + params: { + page: pagess, + limit: 5, + key: this.searchCollect + } + }).then(res => { + console.log(res, 12569) + // 请求接口完成 请求成功 + // alert(res.data.message) + if (res.data.code === 200) { + this.pageConfiguration.countSize = res.data.data.total + this.collect = res.data.data.list.map((item, index) => { + return { + name: item.name, + database: item.db, + birthTime: item.updated_at, + staticInput: false, + adv: item.adv, + id: item.id, + classify_id: item.classify_id, + type: item.type, + uid: item.uid + } + }) + } + }).catch((fail) => { + console.log(fail) + }) }, // 获取个人中心数据 getPersonalCenter () { @@ -317,6 +385,11 @@ export default { }).catch((fail) => { console.log(fail) }) + }, + // 当前页数发生改变时 + currentChange (val) { + this.getCollectData(val) + console.log(val, '1010110') } }, // 自定义指令v-* @@ -341,7 +414,7 @@ export default { } }, mounted () { - this.getPersonalCenter() + this.getPersonalCenter(1) } } diff --git a/static/data/Component is not found in path.html b/static/data/Component is not found in path.html new file mode 100644 index 0000000..d992fbe --- /dev/null +++ b/static/data/Component is not found in path.html @@ -0,0 +1,2528 @@ + + + + + + + + + + + + + +Component is not found in path "node-modules/slide-ruler/lib/slide-ruler" (u_百度搜索 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + +
收起工具时间不限所有网页和文件站点内检索
搜索工具
百度为您找到相关结果约0个
+ + + + + + + +

提示:"sin" 及其后面的字词均被忽略,因为百度的查询限制在38个汉字以内。

很抱歉,没有找到与Component is not found in path "node-modules/slide-ruler/lib/slide-ruler" (u相关的网页。


温馨提示:
  • 请检查您的输入是否正确
  • 如网页未收录或者新站未收录,请提交网址给我们
  • 如有任何意见或建议,请及时反馈给我们

+ + + + + + + +
+ + + + + + + +
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/data/Component is not found in path_files/all_async_search_99b3fbd.js.下载 b/static/data/Component is not found in path_files/all_async_search_99b3fbd.js.下载 new file mode 100644 index 0000000..f21d8ca --- /dev/null +++ b/static/data/Component is not found in path_files/all_async_search_99b3fbd.js.下载 @@ -0,0 +1,451 @@ +function addEV(t,e,i){window.attachEvent?t.attachEvent("on"+e,i):window.addEventListener&&t.addEventListener(e,i,!1)}function _aMC(t){for(var e=t,i=-1;e=e.parentNode;)if(i=parseInt(e.getAttribute("id")),i>0)return i}function al_c(t){for(;"TABLE"!=t.tagName;)t=t.parentNode;return t.getAttribute("id")}function al_c2(t,e){for(;e--;)for(;"TABLE"!=(t=t.parentNode).tagName;);return t.getAttribute("id")}function c(t){var e=t.p1;if(!("alop"!=t.fm||"rsv_xpath"in t||e&&"6677"==G(e).getAttribute("srcid")))return!0; +!e||"p5"in t||(t.p5=e);var i=window.document.location.href,n="",o="",s="",a=window["BD_PS_C"+(new Date).getTime()]=new Image;for(v in t){switch(v){case"title":o=t[v].replace(/<[^<>]+>/g,""),o&&o.length>100&&(o=o.substring(0,100)),o=encodeURIComponent(o);break;case"mu":case"url":o=escape(t[v]);break;default:o=t[v]}n+="&"+v+"="+o}if(!("mu"in t))try{"p2"in t&&G(t.p1).getAttribute("mu")&&"pl"!=t.fm&&(s="&mu="+escape(G(t.p1).getAttribute("mu")))}catch(r){}if(window.bds&&bds.comm){var c=bds.comm.ubsurl+"?q="+bds.comm.queryEnc+n+s+"&rsv_sid="+bds.comm.sid+"&cid="+bds.comm.cid+"&qid="+bds.comm.queryId+"&t="+(new Date).getTime(); +if(bds.comm.inter&&(c=c+"&rsv_inter="+bds.comm.inter),bds.comm.seinfo&&bds.comm.seinfo.rsv_pstg&&(c=c+"&rsv_pstg="+bds.comm.seinfo.rsv_pstg),bds.comm.cftime&&0!=bds.comm.cftime&&(c=c+"&rsv_cftime="+bds.comm.cftime),c+=bds.comm.resultPage?"&rsv_iorr=1":"&rsv_iorr=0",bds.comm.tn&&(c=c+"&rsv_tn="+bds.comm.tn),bds.comm.indexSid&&(c+="&rsv_isid="+bds.comm.indexSid),bds.comm.lastVoiceQuery&&(c+="&rsv_lavo="+encodeURIComponent(bds.comm.lastVoiceQuery)),Cookie.get("ispeed")&&(c+="&rsv_ispeed="+Cookie.get("ispeed")),/ssl_sample/.test(location.href)){var d=location.href.match(/ssl_sample=[^=&]+/i); +c+="&rsv_"+d[0]}if(/ssl_s=/.test(location.href)){var d=location.href.match(/ssl_s=[^=&]+/i);c+="&rsv_"+d[0]}c+="&rsv_ssl="+("https:"===location.protocol?1:0),c+="&path="+encodeURIComponent(i),c+="&rsv_did="+(bds.comm.did?bds.comm.did:""),a.src=c}return!0}function TagQ(t,e){return e.getElementsByTagName(t)}function h(t){t.style.behavior="url(#default#homepage)",t.setHomePage(bds.comm.domain);var e=window["BD_PS_C"+(new Date).getTime()]=new Image;e.src=bds.comm.ubsurl+"?fm=hp&tn="+bds.comm.tn+"&t="+(new Date).getTime() +}function G(t){return document.getElementById(t)}function ns_c_pj(t,e){var i=encodeURIComponent(window.document.location.href),n="",o="",s="",a=bds&&bds.comm&&bds.comm.did?bds.comm.did:"";wd=bds.comm.queryEnc,nsclickDomain=bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://nsclick.baidu.com"):"http://nsclick.baidu.com",img=window["BD_PS_C"+(new Date).getTime()]=new Image,src="";for(v in t){switch(v){case"title":o=encodeURIComponent(t[v].replace(/<[^<>]+>/g,""));break;case"url":o=encodeURIComponent(t[v]); +break;default:o=t[v]}n+=v+"="+o+"&"}if(s="&mu="+i,src=nsclickDomain+"/v.gif?pid=201&"+(e||"")+n+"path="+i+"&wd="+wd+"&rsv_sid="+(bds.comm.ishome&&bds.comm.indexSid?bds.comm.indexSid:bds.comm.sid)+"&rsv_did="+a+"&t="+(new Date).getTime(),"undefined"!=typeof Cookie&&"undefined"!=typeof Cookie.get)Cookie.get("H_PS_SKIN")&&"0"!=Cookie.get("H_PS_SKIN")&&(src+="&rsv_skin=1");else{var r="";try{r=parseInt(document.cookie.match(new RegExp("(^| )H_PS_SKIN=([^;]*)(;|$)"))[2])}catch(c){}r&&"0"!=r&&(src+="&rsv_skin=1") +}return img.src=src,!0}function ns_c(t,e){return e===!0?ns_c_pj(t,"pj=www&rsv_sample=1&"):ns_c_pj(t,"pj=www&")}function escapeHTML(t){return t.replace(/&/g,"&").replace(//g,">").replace(/ /g," ").replace(/"/g,""").replace(/'/g,"'")}function initPreload(t){function e(){Cookie.set("ISSW","1",null,null,new Date((new Date).getTime()+3e5))}function i(t,e){e=e||3,Cookie.set("ISWR",t,null,null,new Date((new Date).getTime()+1e3*e))}function n(t){t&&"string"==typeof t&&(t=$.parseJSON(t)),t&&t.length&&$.each(t,function(t,e){if(0===e.indexOf(le.protocol)){var i=new Image; +i.src=e}})}function o(t){return $.trim(t).replace(/\s+/g," ")}function s(t){if("string"==typeof t){var e,i=0;for(e=0;e-1?(n=t.split("?"),o=n[1]):o=t,e=o.indexOf("&")>-1?o.split("&"):new Array(o);for(var a=0;a-1?e[a]:e[a]+"=",i=e[a].split("="),s[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}catch(r){}return s}function r(t){function e(t){if(document.all)$("style[data-for='result']").get(0).styleSheet.cssText+=t; +else{var e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(t)),e.setAttribute("data-for","result"),document.getElementsByTagName("HEAD")[0].appendChild(e)}}function i(){G.css({filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=95)",opacity:.95}),V||(e(".slowmsg{z-index:301;background-color:#fff;border:1px solid #f0f0f0;position:fixed;_position:absolute;top:144px;left:212px;height:95px;width:360px;box-shadow:0 0 5px rgba(0,0,0,0.05)}.slowmsg .ball{width:40px;margin:41px auto 0;position:relative;}.slowmsg .b{left:20px;position:absolute;width:10px;height:10px;-moz-border-radius: 50%;-webkit-border-radius: 50%;border-radius: 50%;}"),V=$('
'),V.find(".b").each(function(t,e){var i=[[0,40],[20,20],[40,0]][t],n=["rgb(55,137,250)","rgb(99,99,99)","rgb(235,67,70)"],o=0; +$(e).css({"background-color":n[t]}),function s(){return J?($(e).animate({left:i[o%2]},{duration:800,easing:"swing",progress:function(i,s){s>=.5&&$(e).css({"background-color":n[(o+t)%3]})},complete:function(){s()}}),void o++):void setTimeout(s,400)}()})),V.appendTo(ri),ns_c({pj_name:"loading_msg"})}function n(){var t,e=(new Date).getTime();Cookie.set("rsv_jmp_slow",e),Cookie.set("WWW_ST",e,null,null,new Date(e+3e4)),t=le.href+(le.href.indexOf("?")>0?"&":"?")+"rsv_jmp=slow",le.replace(t)}if(!Z){var t=$.extend({top:93,"z-index":300},t),o=$(window).height(); +G||(G=$("
")),G.css({filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)",opacity:.3,position:"absolute",background:"#fff","z-index":t["z-index"],top:t.top+"px",left:"0"}),Z=!0,G.width(ri.width()),G.height(Math.max(o,ri.height())-t.top),G.appendTo(ri),$(window).scrollTop(),J=setTimeout(i,3e3),K=setTimeout(n,7e3),Y=function(){J&&(clearTimeout(J),J=setTimeout(i,3e3)),K&&(clearTimeout(K),K=setTimeout(n,7e3))}}}function d(){G&&Z&&(Z=!1,G.remove(),V&&V.remove(),J&&(clearTimeout(J),J=!1),X&&X.remove(),K&&(clearTimeout(K),K=!1)) +}function l(t,e,i){i||(i=0);var n=t.length;for(0>i&&(i=n+i);n>i;i++)if(t[i]===e)return i;return-1}function u(t,e,i){var n=e.find("script:not([src])"),o=0,s=$.globalEval;$.globalEval=function(t){window.currentScriptElem=n[o],o++;try{s.apply($,arguments)}catch(e){window.console&&console.debug&&(console.debug(t),console.debug(e))}},"insertBefore"==i?e.insertBefore(t):t.append(e),window.currentScriptElem=void 0,$.globalEval=s}function m(t){try{t()}catch(e){window.console&&console.debug&&console.debug(e),te(e.toString()) +}}function p(t,e){function i(t){if("object"==typeof t){var e={};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}else e=t;return e}if(!p.__init){p.__init=!0;var n=["wd","pn","nojc","cl","cq","srcid","gpc","tfflag","si","sl_lang","rsv_srlang","rqlang"],o=["wd","cl","ct","tn","rn","ie","f","lm","si","gpc","tfflag","usm","z","ch","sts","vit","dsp","trh","trb","tre","la","lo","st","nojc","haobd","rtt","bsst","gvideo","__eis","__eist","oq","fenlei","sid","rsv_idx","rsv_stat","rsv_bp","rqlang"],s=["w","word"]; +p.prototype.clone=function(t){var e=new p(i(this.params));if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&l(o,n)>=0&&e.p(n,t[n]);return e},p.prototype.h=function(t){this.header_params=this.header_params||{};for(var e in t)this.header_params[e]=t[e];return this},p.prototype.buildHeaders=function(t){t&&this.setHeader(t);var e={};for(var i in this.header_params)if("object"==typeof this.header_params[i]){var n=[];for(var o in this.header_params[i]){var s=this.header_params[i][o];s instanceof Array&&(s=s.join("|")),n.push(o+"="+s) +}e[i]=n.join("&")}else e[i]=this.header_params[i];return e},p.prototype.buildSearchUrl=function(t){return le.protocol+"//"+le.host+le.pathname+le.search+"#"+this.buildQueryString(t)},p.prototype.buildSyncSearchUrl=function(t){return le.protocol+"//"+le.host+"/s?"+this.buildQueryString(t)},p.prototype.buildQueryString=function(t){var e=i(this.params);if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);var o="";e.wd=$.limitWd(e.wd);for(param in e)param&&e.hasOwnProperty(param)&&""!==e[param]&&(o+=param+"="+encodeURIComponent(e[param]).replace(/'/g,"%27")+"&"); +return o.substr(0,o.length-1)},p.prototype.equals=function(t){if(!t||!t.p)return!1;for(var e=0;e=0&&(t="wd"),void 0===e?this.params[t]:(this.params[t]=e,this)},p.prototype.hashCode=function(){var t=[];if(!this.p("wd"))return"";for(var e=0;e_.st&&_.net-_.st-w.cus_srv>0?_.net-_.st-w.cus_srv:1,w.cus_tti2=_.dom>_.st?_.dom-_.st:1,w.cus_frdom=_.dom-_.pt,w.cus_fs=_.fs>_.st?_.fs-_.st:w.cus_tti2,w.cus_frext=w.cus_fs-w.cus_tti2}function o(t){var e="";for(var i in t)i&&t.hasOwnProperty(i)&&""!==t[i]&&(e+="&"+i+"="+encodeURIComponent(t[i]));return e}function s(t){var t=[];for(var e in k)t.push(k[e]); +var i=T=$.when.apply($,t);T.always(function(){i===T&&m()})}function a(){var t=Array.apply(null,arguments);if(!(!t.length>0))for(var e=0;e.51&&.52>t;S=S||bds.comm.bfe_sample;var a=S&&t>.6&&.9>t;if(t>.51&&.52>t||e.test(bds.comm.sid)&&t>0&&.2>t||bds.comm.intrSid||a){e.test(bds.comm.sid)&&(s?i("issam",2):i("issam",1)),a&&(i("issam",3),i("bfesam",bds.comm.bfe_sample)),n(),h(C),b(C),i("srvInfo",f()),i("sysv",navigator.appMinorVersion),r(),x.fire();var c="//www.baidu.com/nocache/fesplg/s.gif?log_type=sp",d="";d+=o(v)+o(w);var l=c+d,u=new Image,m="_LOG_"+(new Date).getTime(); +u.onload=function(){delete window[m]},window[m]=u,u.src=l}}function p(t){C=t,t.find("img").one("load",function(){var t=$(this).offset(),n=t.top,o=t.left,s="";if(I>n&&n>0){e("fs");var a=_.fs-_.dom;y.push(n+"_"+o+"_"+a),s=$(this).attr("data-src")||/^http/.test($(this).attr("src"))?$(this).attr("data-src")||$(this).attr("src"):"base64",i("ic_lis",s)}})}function f(){var t,e,i=$.parseJSON(bds.comm.speedInfo),n=[];for(var o in i){if(t=i[o],e=t.ModuleId+"_"+t.TimeCost+"_"+t.TimeSelf+"_"+t.Idc,t.hasOwnProperty("SubProcess"))for(var s in t.SubProcess)e+=","+t.SubProcess[s].ProcessId+"_"+t.SubProcess[s].TimeCost+"_"+t.SubProcess[s].isHitCache+"_"+t.SubProcess[s].Idc; +n.push(e)}return encodeURIComponent(n.join("|"))}function h(t){for(var e=0,n=t.find("img"),o=t.find("#content_left").find("img"),s=0,a=0,r=0;ra&&a>0&&e++;i("cus_ic",n.length),i("cus_extic",e),i("cus_extlic",s),i("cus_icl",o.length),i("cus_icr",t.find("#content_right").find("img").length),i("img_info",y.join(",")),i("psize",t.html().length)}function b(t){var e={},n=[],o=t.find("#content_left,#con-ar").children("*[tpl]"),s="";if(o.length>0)for(var a=0;a0&&i("tplp",n.join("|"))}function g(t){x.add(t)}var v={product_id:45,page_id:317,page_type:0},w={},_={st:0,pt:0,net:0,dom:0,fs:0},y=[],x=$.Callbacks(),k={},T=null,C=null,S=null,I=600;return l(),{trigger:d,mark:e,setParam:i,onSendlog:g,bindImgLoad:p,destroy:c,init:u}}function h(t,e){t?ei.done(function(){e(Be,Fe,We)}):$.when(ii).done(function(t){e(t)})}function b(t,e){var i,n;if(!(window.__sam_his_nopredict&&window.bds&&bds.comm&&0==bds.comm.supportis)){if(i||(i=Re.val()),C(""),F(),clearTimeout(ti),clearTimeout(fi),0==pageState&&window.__disable_index_predict||pe||he||Ze.isSlow())return void t.setMaxNum(10); +t.setMaxNum(ce);var o=new p({pn:"",wd:e.value});if(bds&&bds.comm&&bds.comm.logFlagSug&&1===bds.comm.logFlagSug&&o.p("rsv_slog","ipt_change"),0==pageState&&bds.comm.supportis&&$.trim(Re.val())){B(o);var s=$("
请按“回车”键发起检索
").insertBefore(".s_form");$(window).one("swap_begin",function(){s.remove()})}if(Ge)return void(Ge=!1);if(window.__restart_confirm_timeout&&E(),Ye="input",Ee=(new Date).getTime(),n&&(clearTimeout(n),n=!1),""==$.trim(e.value))return void I();if(Qe=e.checkStore(),!/^[a-zA-Z0-9~!@#$%^&*()_+=-]$/.test(e.value)){var a=Re.val(),r=e.imt.getLog(); +r.length>0&&r[r.length-1].type.indexOf("link")>-1&&o.p("_sglink","1");var c=e.imt.diffLog();c&&c.length>1&&(c=c.slice(-15).join("."),o.h({is_params:{imes:encodeURIComponent(c)}})),!window.__disable_is2&&i.length>a.length&&0===i.indexOf(a)?n=setTimeout(function(){q({env:o,use_cache:!0,force:!1,pstg:5,shouldShow:bds.comm.supportis}),n=!1},250):q({env:o,use_cache:!0,force:!1,pstg:5,shouldShow:bds.comm.supportis})}i=a}}function g(t,e,i,n){if(C(""),clearTimeout(ti),!(0==pageState&&window.__disable_index_predict||pe||he||Ze.isSlow()))if(-1==e){Je&&t.setVisibleSug(Je.real_wd); +var o=new p({pn:"",wd:n.value});bds&&bds.comm&&bds.comm.logFlagSug&&1===bds.comm.logFlagSug&&o.p("rsv_slog","sug_select"),q({env:o,use_cache:!0,force:!1,shouldShow:bds.comm.supportis,pstg:3})}else{t.setVisibleSug(),C("");var o=new p({pn:"",wd:i});bds&&bds.comm&&bds.comm.logFlagSug&&1===bds.comm.logFlagSug&&o.p("rsv_slog","sug_select");var s=n.stopRefresh?!1:bds.comm.supportis;q({env:o,force:!1,use_cache:!0,no_predict:!0,shouldShow:s,pstg:3})}}function v(t,e){var i=getCursortPosition(this);(9==e.keyCode||39==e.keyCode&&i==(this.value&&this.value.length))&&bds.comm.supportis&&Je&&Ae.text()&&(e.preventDefault(),Je.real_wd!=this.value&&(Re.val(Je.real_wd),t.check()),t.show(),C(""),j(Je,Ke,22)({tipConfirm:!0})) +}function w(t){Re.keydown(function(e){v(t,e)}),t.on("start",function(){Ye="focus"}),$(window).on("blur",function(){t.hide()}),$(document).on("click",function(e){return 2==e.isTrigger||3==e.isTrigger?!1:void t.hide()}),t.on("inputChange",function(e,i){b(t,i)}),t.on("selectSug",function(e,i,n,o){g(t,n,o,i)}),t.on("render",function(){Je&&t.setVisibleSug(Je.real_wd)}),t.on("dataReady",function(t,e){var i=e&&e.queryValue&&e.dataCached&&e.dataCached[e.queryValue];if(i&&i.gl)for(var n in i.gl)if(1*i.gl[n]>0){var o=new p({pn:"",wd:i.s[n]}); +q({env:o,force:!1,use_cache:!0,no_predict:!0,shouldShow:!1,pstg:7})}}),0==pageState&&t.start()}function _(t,e){t&&(e=$.extend(t.log,e))}function y(){if(bds.comm.seinfo){bds.comm.seinfo.rsv_pre=encodeURIComponent(x()),bds.comm.seinfo.rsv_reh=reh_rec(),bds.comm.seinfo.rsv_scr=scr_rec();var t=null;if(bds&&bds.comm&&bds.comm.personalData)try{"string"==typeof bds.comm.personalData&&(bds.comm.personalData=$.parseJSON(bds.comm.personalData)),t=bds.comm.personalData?bds.comm.personalData.fullSkinName&&bds.comm.personalData.fullSkinName.value:null +}catch(e){t=null}if(t&&(bds.comm.seinfo.rsv_skin=t),bds.comm.seinfo.rsv_psid=$.getCookie("BIDUPSID"),bds.comm.seinfo.rsv_pstm=$.getCookie("PSTM"),bds.comm.seinfo.rsv_idc=function(){var t=bds.comm.speedInfo||[];try{t=$.parseJSON(t)}catch(e){t=[]}for(var i=0,n=t.length;n>i;i++)if(9540==t[i].ModuleId)return t[i].Idc||"";return""}(),c(bds.comm.seinfo),"ON"===bds.comm._se_click_track_flag){var i=new Image,n="//www.baidu.com/s?wd="+bds.comm.queryEnc+"&qid="+bds.comm.queryId+"<s=91";i.src=n}}!function(){var t=Math.random(),e=function(){function t(){var t=[],n=[],o={}; +for(var s in i)!function(e){var s="_SSL_LOG_"+e+"_"+ +new Date,a=new Image,r=new Date;o[e]=$.Deferred(),n.push(o[e]),a.onload=function(){t.push(e+"_success="+(new Date-r)),o[e].resolve(),delete window[s]},a.onerror=function(){t.push(e+"_error="+(new Date-r)),o[e].resolve(),delete window[s]},a.src=i[e]}(s);var a=$.when.apply($,n);a.always(function(){var i="//www.baidu.com/nocache/fesplg/s.gif?log_type=hm&type=ssl&",n=t.join("&"),o=new Image,s="_HM_LOG_"+(new Date).getTime();o.onload=function(){delete window[s] +},window[s]=o,o.src=i+n+"&_tt="+e})}var e=+new Date,i={gt1:"https://gt1.baidu.com/nocache/imgdata/sp613.gif?t="+e,gt2:"https://gt2.baidu.com/nocache/imgdata/sp613.gif?t="+e};setTimeout(t,1e3)};t>.1&&.11>t&&e()}()}function x(){return Ue.length}function k(t){$(document).delegate("a","mousedown",function(){return function(){var e=$(this);T(e,t)}}())}function T(t,e){var i,n=e.prefix,o=t.attr("href");if(n&&o&&0==o.indexOf(n)&&(o=o.substring(n.length)),!n&&o){var s=o.match(/^http:\/\/[^\/]+/);if(!s)return; +n=s[0],o=o.replace(/^http:\/\/[^\/]+/,"")}if(o&&(i=o.match(/^\/*(link|baidu.php)\?(.*)$/),i=o.match(e.regex)),!(i&&i[2]&&i[2].match(/&(wd|word)=/))){if(o&&i){e.convertTable&&e.convertTable[i[1]]&&(i[1]=e.convertTable[i[1]]);var a=me.getLinkParams(o);a&&("https:"===le.protocol&&/Chrome|Safari/.test(navigator.userAgent)&&(n=n.replace(/^http:\/\/www\.baidu\.com/,"https://www.baidu.com")),o=n+"/"+i[1]+"?"+i[2]+"&"+a,t.attr("href",n+"/"+i[1]+"?"+i[2]+"&"+a),t.click(function(){window.PDC_ASYNC.setLinkData("click_t",(new Date).getTime()),window.PDC_ASYNC.setLinkData("linkpreload",$(this).attr("linkpreload")) +}))}return o}}function C(t){if(!window.__disable_is2||$.trim(t)!=$.trim(Re.val())){if(ci||!bds.comm.supportis)return void(Ae&&Ae.html(""));if(0!=pageState&&!window.__disable_kw_tip)if(Ae||(Ae=$('
').insertBefore(Re),Ae.parent().click(function(t){var e=Re.get(0);if(t.target===e)return!0;e.focus();var i=e.value.length;if(document.selection){var n=e.createTextRange();n.moveStart("character",i),n.collapse(),n.select() +}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=i);return!1}),Ae.get(0).onselectstart=function(){return!1}),Ae.text(t),""!=t){var e=Re.textWidth();Ae.css({"margin-left":e+10+"px","max-width":Ae.parent().width()-e-14+"px"}).text(t),window.__disable_is2&&Ae.css("z-index",1),Ae.show()}else Ae.hide()}}function S(){ci=!1}function I(){ci=!0,Je&&Je.real_wd&&$.trim(Re.val())?(C(Je.real_wd),D(Je)):(C(""),D())}function D(t){var e=o(Re.val());t&&e==t.real_wd&&$("#super_se_tip").remove() +}function L(t,e){var i=(new Date).getTime();if(e.force||_(e,{utime:(new Date).getTime()-He}),!e||!e.loaded)return!1;"string"==typeof e.html&&(e.html=$(e.html)),$(e).trigger("swap_begin"),m(function(){e.pdc.mark("pt"),$(window).trigger("swap_begin",[e,t]);var i=Ze&&Ze.getData();i&&(setTimeout(function(){e.pdc.setParam("ispeed",Ze.monitor(i))},3e3),e.pdc.setParam("upm",i.join(",")))}),m(function(){e.base64.restart();try{if(!e.base64_loaded){var t=$.parseJSON(e.html.find("#img_list").text());e.base64.loadImg(t.right,t.left) +}}catch(i){}e.base64.end()});var n=[$(window).scrollLeft(),$(window).scrollTop()];Ne.hide(),oldEnv=Ve,Ve=t,Ke=Je,Je=e,bds.comm.cur_disp_query=t.p("wd"),A(),bds&&bds.se&&bds.se.certification&&bds.se.certification.data&&(bds.se.certification.data=[]),0==pageState&&B(t),m(function(){$e()}),bds.clearReady(),Ne.empty();var o=e.html;if(oe.use_cache_repeatedly&&(o=o.clone()),m(function(){o.find("#head_style").children().removeAttr("data-for").appendTo("head")}),m(function(){$.globalEval(o.find("#head_script").html()) +}),bds.comm&&bds.comm.jsversion&&"006"!=bds.comm.jsversion){var s=Ve.buildSyncSearchUrl({jmp:"jsver",_vr:Math.random()});return void le.replace(s)}m(function(){o.find("#content_script script").each(function(t,e){$.globalEval($(e).html())})}),m(function(){var t=o.find("#s_tab");if(t.size()){var e=$("#s_tab");e.size()?e.replaceWith(t):t.insertBefore(Ne)}});var a=!1;!function(){var t=o.find("#con-at"),i=$("#con-at"),n=i.children().children();if(n.size())if(t.children().size()){var s=t.children().children(); +n.attr("cq")!=s.attr("cq")||n.attr("srcid")!=s.attr("srcid")||e.force&&oldEnv&&oldEnv.equals(Ve)||!Ve.p("cq")||!Ve.p("srcid")||1==Ve.p("_trf")?(i.remove(),$(window).trigger("top_result_removed"),u(Ne,t,"insertBefore")):a=!0}else i.remove(),$(window).trigger("top_result_removed");else t.children().size()&&u(Ne,t,"insertBefore")}();var r=o.find("#container");if(e.pdc.bindImgLoad(r),u(Ne,r),!$("#footer").size()){var c=o.find("#footer").children();u(Ne,c)}m(function(){var t=(new Date).getTime();o&&$.globalEval(o.find("#jsMerge").html()),_(e,{jsmergetime:(new Date).getTime()-t}) +}),bds&&bds.comm&&bds.comm.templateName==bds.comm.resTemplateName?bds.comm.seinfo&&(bds.comm.seinfo.rsv_tpfail=0):bds.comm.seinfo&&(bds.comm.seinfo.rsv_tpfail=1),0!=pageState&&bds&&bds.util&&bds.util.setContainerWidth&&bds.util.setContainerWidth(),document.title=t.p("wd")+"_百度搜索",Ne.show(),d(),_(e,{domtime:(new Date).getTime()-i}),_(e,{waittime:(new Date).getTime()-Ee}),e.pdc.mark("dom"),$(window).trigger("swap_dom_ready",[e,t]),window.__lazy_foot_js?setTimeout(function(){R(t,e,i)},0):R(t,e,i),a?window.scrollTo(n[0],n[1]):window.scrollTo(0,0),$(window).trigger("scroll"),swap_wait=!1 +}function R(t,e,i){var n;i||(i=0),e&&(n=e.html),m(function(){Ie.get(0).f.value=8}),m(function(){var t=(new Date).getTime();e&&e.base64&&(e.base64.setDomLoad("left"),e.base64.setDomLoad("right")),_(e,{base64time:(new Date).getTime()-t})}),$("#search").find("form").submit(function(){var t=Re;Re=$(this).find("[name='wd']");var e=O.call(this);return Re=t,e}),m(function(){var t=(new Date).getTime();bds.doReady(),_(e,{bdstime:(new Date).getTime()-t})}),m(function(){var t=(new Date).getTime();n&&$.globalEval(n.find("#ecomScript").html()),_(e,{ecomtime:(new Date).getTime()-t}) +}),m(function(){var t=(new Date).getTime();bds.se.tools&&(qe&&clearTimeout(qe),qe=setTimeout(function(){bds.se.tools()},600)),bds&&bds.se&&bds.se.certification&&bds.se.certification.build&&(Oe&&clearTimeout(Oe),Oe=setTimeout(function(){$(".certification").size()>0&&bds.se.certification.build.init()},1e3)),bds&&bds.se&&bds.se.safeTip&&(je&&clearTimeout(je),je=setTimeout(function(){$(".unsafe_ico_new").size()>0&&bds.se.safeTip.init()},1200)),_(e,{tiptime:(new Date).getTime()-t})}),m(function(){var t=(new Date).getTime(); +window.initResultClickLog(),_(e,{clicktime:(new Date).getTime()-t})}),m(function(){_(e,{rtime:(new Date).getTime()-i,used:1}),bds.comm.seinfo&&e&&(bds.comm.seinfo.rsv_pstg=e.type)}),m(function(){$(window).trigger("swap_end",[e,t]),z(),He=(new Date).getTime(),e&&e.pdc&&(e.pdc.mark("js"),e.pdc.trigger("swap_end"))})}function A(){m(function(){$.each(bds.comm.tips,function(t,e){e&&e.destroy&&e.destroy()}),$("#c-tips-container").empty(),bds.comm.tips=[]}),m(function(){window.app&&window.app.dispose&&window.app.dispose() +}),m(function(){bds.comm.resolveUnloadHandler()}),bds&&bds.se&&bds.se.certification&&bds.se.certification.data&&(bds.se.certification.data=[]),bds&&bds.se&&bds.se.userAction&&bds.se.userAction.destroy()}function E(){Me&&Pe&&(clearTimeout(Me),Me=setTimeout(Pe,re))}function j(t,e,i){return function(e){var n=$.extend({},e);if(t&&!t.confirm){bds.comm.cur_query=t.real_wd,!bds.comm.supportis&&t&&(i=t.pstg||0),t.confirm=!0,Me=!1,Pe=null;var o={};o.is_referer=ue,o.is_xhr="1";var s=new p(a(me.getQueryString()),!0); +t.env.equals(s)||t.env.clone({wd:t.prw}).equals(s)||me.setUrl(t.env),ue=le.protocol+"//"+le.host+le.pathname+le.search,t.seq?t.seq++:t.seq=1,t.pdc&&(20!=i&&bds.comm.supportis&&t.pdc.mark("st"),t.pdc&&t.pdc.setParam&&t.pdc.setParam("cus_pstg",i),t.force&&t.pdc.setParam("f4s",1),t.pdc.trigger("confirm"),window.PRE_CONN.startTimer()),m(function(){$(window).trigger("confirm",[t,i])});var r="/s?ie=utf-8&csq="+t.seq+"&pstg="+i+(n.tipConfirm?"&_cktip=1":"")+"&mod=2"+(bds.comm.supportis?"&isbd=1":"")+"&cqid="+t.qid+"&istc="+((new Date).getTime()-t.startTime)+"&ver="+bds.comm.baiduis_verify+"&chk="+t.chk+"&isid="+Ce+"&"+t.env.buildQueryString()+(t.force?"&f4s=1":"")+("function"==typeof ai?"&_ck="+ai(t.env.p("wd")):""); +if(bds.comm.indexSid&&(/9998_/.test(bds.comm.indexSid)&&"https:"===le.protocol&&(bds.comm.indexSid=bds.comm.indexSid.replace("9998","8499")),r+="&rsv_isid="+bds.comm.indexSid),t.no_predict&&(r+="&isnop="+(1>=xe?0:1)),t&&t.pstg&&(r+="&isctg="+t.pstg),xe=0,h(ne,function(e){if(Be&&e.getRsvStatus)try{r+="&rsv_stat="+e.getRsvStatus(t.env.p("wd"))}catch(i){}e.getStat("rsv_sug6")&&(r+="&rsv_sug6="+e.getStat("rsv_sug6"),bds.comm.seinfo&&(bds.comm.seinfo.rsv_sug6=e.getStat("rsv_sug6"))),e.getStat("rsv_sug7")&&(r+="&rsv_sug7="+e.getStat("rsv_sug7")),e.getStat("rsv_sug9")&&(r+="&rsv_sug9="+e.getStat("rsv_sug9")),e.getStat("rsv_bp")&&(r+="&rsv_bp="+e.getStat("rsv_bp")) +}),$.ajax({headers:o,url:r}).done(function(t){$('#form input[name="rqlang"]').val(bds.comm.search_tool.actualResultLang||"cn"),$('#form input[name="rsv_bp"]').val(1),$(t)}).fail(function(){}),bds.comm.seinfo){bds.comm.seinfo.rsv_prw=encodeURIComponent(Re.val()),bds.comm.seinfo.rsv_pstg=i,bds.comm.seinfo.rsv_svoice=window.__supportvoice?"1":"0",t.cftime+=1,bds.comm.cftime=t.cftime+"";var c=t.env.p("rsv_bak");c&&(bds.comm.seinfo.rsv_bak=c)}bds.comm.confirmQuery=bds.comm.query,bds.comm.confirmQid=bds.comm.qid,y(),Ce=t.qid,h(ne,function(t){20==i?t.updateInitData():22==i||bds.comm.supportis||i>=0&&5>=i&&t.updateInitData(),t.clearStat() +}),window.cfpromise.resolve()}}}function O(t){if(!me.support())return!0;if(ui)return!1;if(ui=!0,Re.blur(),C(""),$(this).attr("target"))return!0;li=!0,di=setTimeout(function(){li=!1},1e3);try{var e=$("#kw").attr("placeholder")||$(".kw-placeholder").text();if(!$.trim(Re.val())&&!e)return le.href="/",!1;var i,n=new p,o=$(this).serializeArray();for(i=0;i0&&(i.pstg=e.pstg),i.force&&i.pdc.mark("st"),i.base64=isbase64(i.pdc),Ue.push(i.log),ye++,xe++,U(i)}}function M(){var t=[];return Qe&&(t=$.map(Qe.slice(0,2),function(t){return t.value})),t.join(" ")}function P(t){e(),le.replace(t.buildSyncSearchUrl())}function N(t,e){e?(he=!0,pi&&(clearTimeout(pi),pi=!1),pi=setTimeout(function(){he=be +},t)):(pe=!0,mi&&(clearTimeout(mi),mi=!1),mi=setTimeout(function(){pe=fe},t))}function U(t){var e,a,r=t.env,c={};c.is_referer=Je&&Je.env?Je.env.buildSyncSearchUrl():Xe.replace(/\#.*$/,""),$.extend(c,r.buildHeaders()),c.is_xhr="1",window.bds&&bds.comm&&bds.comm.cur_query?r.p("bs",bds.comm.cur_query):r.p("bs",""),window.bds&&bds.comm&&bds.comm.cur_disp_query&&(c.is_pbs=encodeURIComponent(bds.comm.cur_disp_query));var d=t.no_predict||!bds.comm.supportis?1:11,l=t.pstg;if(!(1==d&&1==l||11==d&&3==l||11==d&&6==l||1==d&&4==l)){var u="ie=utf-8"+(bds.comm.newindex?"&newi=1":"")+(ke.sid?"&sid="+encodeURIComponent(ke.sid):"")+(ke.tnp?"&tnp="+encodeURIComponent(ke.tnp):"")+"&mod="+(t.no_predict||!bds.comm.supportis?"1":"11")+(bds.comm.supportis?"&isbd=1":"")+"&isid="+Ce+"&"+r.buildQueryString()+"&rsv_sid="+bds.comm.indexSid+"&_ss=1&clist="+encodeURIComponent(de.getCacheList())+"&hsug="+encodeURIComponent(M())+(t.force?"&f4s=1":"")+"&csor="+getCursortPosition(Re.get(0)); +t.pstg&&(u+="&pstg="+t.pstg);var m="/s?"+u;if(m+="&_cr1="+s(m),!t.no_predict)for(a=de.find(function(t){return t.loaded||t.no_predict?void 0:!0}),e=0;e0))){if(t.force&&t.shouldShow){var p=!1,f=(new Date).getTime();if(a=de.find(function(e){var i=r.equals(e.env);return e.loaded||e.no_predict||!i||e===t||(e.shouldShow=!1),!e.loaded&&e.no_predict&&e.force&&i&&e!==t&&(e.shouldShow=e.shouldShow||t.shouldShow,e.startTime&&f-e.startTime<2e3&&(p=!0),window.__sam_backup_request||(p=!0)),e.loaded||i?void e.pdc.mark("st"):!0 +}),p)return;for(e=0;e")>10)return void(t.force?(i(11),P(r)):de.deleteCache(t)); +_(t,{ntime:(new Date).getTime()-t.startTime,res:1});var a,c="",d=e.indexOf(c);if(-1!=d){a=$(e.substr(0,d)),t.html=e.substr(d+c.length),window.__dom_pre_parse&&"1"==a.find("#__need_parse_dom").html()&&(t.html=$(t.html));try{var l=$.parseJSON(a.find("#img_list").text());t.base64.loadImg(l.right,l.left),t.base64_loaded=!0}catch(u){}try{n(a.find("#limg_list").text())}catch(u){}}else a=t.html=$(e);var m=parseInt(a.find("#__status").eq(0).html()),p=parseInt(a.find("#__switchtime").eq(0).html()),f=parseInt(a.find("#__redirect").eq(0).html()),h={}; +try{h=$.parseJSON(a.find("#__sugPreInfo:eq(0)").html()||"{}")||{}}catch(u){}t.real_wd=a.find("#__real_wd").eq(0).text(),t.real_wd_org=a.find("#__real_wd_org").eq(0).text(),t.real_wd_nosynx=a.find("#__real_wd_nosynx").eq(0).text(),t.env&&t.env.p("nojc")&&t.real_wd_nosynx&&(t.real_wd=t.real_wd_nosynx);var b=!1;(r.p("wd")==o(Re.val())||t.force)&&t.shouldShow&&(b=!0),t.real_wd&&(t.prw=r.p("wd"),r.p("wd",t.real_wd));var g=a.find("#__queryId").html(),v=a.find("#__querySign").html();t.querySign=v,_(t,{stat:m?m:0}),bds.comm.isDebug&&$("#isDebugInfo").html(a.find("#__isDebugInfo").html()),g&&(t.qid=g); +var w=a.find("#__chk").html();if(t.chk=w?w:0,!e||!g&&!p&&!f&&!m||!v&&t.force)return t.force?(r.p("__eis",1),r.p("__eist",e?e.length:0),r.p("real_wd",t.real_wd),i(13),void P(r)):void de.deleteCache(t);if(p>0&&N(1e3*p,!t.no_predict),-11==m){var y=de.getCacheBySign(v);if(!y)return q({env:t.env.clone({wd:t.real_wd}),force:t.force,use_cache:!1,no_predict:!0}),void de.deleteCache(t);y.force=t.force,S(),C(y.real_wd),D(y),de.deleteCache(t),t=y,Je&&t.real_wd==Je.real_wd||(b=!0)}else{if(0>m){if(1==f&&t.force)return _(t,{redirect:1}),i(14),void P(r); +if(I(),-12==m&&h&&h.wait_time>0){var x=t.env.clone();ti=setTimeout(function(){q({env:x,force:!1,use_cache:!0,no_predict:!0,shouldShow:!1,pstg:6})},h.wait_time)}return void de.deleteCache(t)}if(m>0)return void de.deleteCache(t)}for(var k=de.find(function(e){return!e.loaded&&e!==t&&e.no_predict&&r.equals(e.env)?(e.shouldShow&&(b=!0),e.force&&(t.force=!0,t.no_predict=!0),!0):void 0}),T=0;T"}),h.parts(function(t,e){b(t,e,h)}),h.fail(function(e,n){t.force&&t.shouldShow&&"abort"!=n&&t.env&&(i(12),le.replace(t.env.buildSyncSearchUrl()+"&rsv_jmp=fail")),de.deleteCache(t)}),t.xhr=h,de.addCache(t)}}}function z(){Ue=[],ye=0,li=!1,clearTimeout(di)}function H(){window.index_off&&window.index_off(),Le[0]!==De[0]&&Le.val(""),Re=De,pageState=1,bds.comm.ishome=0,bds.comm.cur_query=bds.comm.query,Ve=new p,Je={env:Ve,real_wd:bds.comm.query,force:!0,confirm:!0},h(ne,function(t,e,i){return function(){var t=i?i:We; +t.start()}}()),$(window).trigger("index_off"),bds.util.setContainerWidth(),m(function(){$(window).trigger("swap_dom_ready")}),window.__lazy_foot_js?setTimeout(function(){R()},0):R()}function B(t){window.index_off&&window.index_off(),Le.get(0)!==De.get(0)&&(Le.val(""),De.val(t.p("wd"))),Re=De,pageState=1,bds.comm.ishome=0,h(ne,function(e,i,n){i!==n&&(i.stop(),n.hide(),n.setKey(t.p("wd")),n.start())}),bds.util.setContainerWidth(),$(window).trigger("index_off",t)}function F(){hi=!1,bi=!1,vi=[],clearTimeout(wi),wi=!1 +}function W(t){hi||(hi={x:t.pageX,y:t.pageY}),gi={x:t.pageX,y:t.pageY},bi||hi.x==t.pageX||hi.y==t.pageY||(bi=!0,vi=[hi],Q())}function Q(){vi.push(gi);var t=vi.length;if(Math.pow(gi.x-hi.x,2)+Math.pow(gi.y-hi.y,2)>=Math.pow(_e,2)||t*we>=ve){var e=Be,i=bds.comm.supportis?1:2;if(i&&e&&e.data()&&e.data()[0]&&e.visible()){var n=(new p).clone({wd:e.data()[0].value});q({env:n,force:!1,no_predict:!0,use_cache:!0,shouldShow:!1,pstg:1}),i--}if(i&&e&&e.data()&&e.data()[1]&&e.visible()){var n=(new p).clone({wd:e.data()[1].value}); +q({env:n,force:!1,no_predict:!0,use_cache:!0,shouldShow:!1,pstg:1}),i--}if(!bds.comm.supportis&&i&&$.trim(Re.val())&&(!Je||Je.env.p("wd")!=$.trim(Re.val()))){var n=(new p).clone({wd:$.trim(Re.val())});q({env:n,force:!1,no_predict:!0,use_cache:!0,shouldShow:!1,pstg:1}),i--}}else wi=setTimeout(function(){Q()},we)}document.write=document.writeln=function(){},bds&&bds.comm&&"clearissw"==bds.comm.query&&Cookie.clear("ISSW"),function(){var t=$.Deferred();bds.comm.registerUnloadHandler=function(e){t.done(e) +},bds.comm.resolveUnloadHandler=function(){t.resolve(),t=$.Deferred()}}(),window.b_rec=function(t){var e;if(t)e=navigator.userAgent;else try{e=window.external&&window.external.twGetRunPath?window.external.twGetRunPath():""}catch(i){e=""}return e=e.replace(/:/,"~").replace(/\t/,"`")},window.scr_rec=function(){var t="";try{t+=[document.body.clientWidth,document.body.clientHeight,window.screenTop,window.screenLeft,window.screen.height,window.screen.width].join("_")}catch(e){}return t},window.reh_rec=function(){var t=[],e=[]; +try{$("#content_left").children(".result,.result-op").each(function(e,i){t.push($(i).height())})}catch(i){}try{$("#con-ar").children(".result,.result-op").each(function(t,i){e.push($(i).height())})}catch(i){}return t.join("_")+"|"+e.join("_")},window.onerror=function(){window.console&&console.debug&&console.debug(arguments),bds.comm.jserror=Array.prototype.slice.call(arguments).join(" "),te(bds.comm.jserror)},window.hash=function(t,e){return t?t&&!e&&Ve?Ve.p(t):void(t&&e&&Ve&&(Ve.p(t,e),le.href=Ve.buildSearchUrl())):void 0 +};var G,V,J,X,K,Y,Z=!1;!function(){var t=$.globalEval;$.globalEval=function(){var e=(new Date).getTime();try{t.apply($,arguments)}catch(i){}(new Date).getTime()-e>500}}(),bds.comm.isDebug&&($('').appendTo("head"),$('
').appendTo("#wrapper"),$(window).on("swap_end",function(t,e){if(e){var i=$("#isDebugInfo"); +i.size()||(i=$('
').appendTo("#debug")),i.html(e.html.find("#__isDebugInfo").html());var n="";for(var o in e.log)e.log.hasOwnProperty(o)&&(n+="");n+="
"+o+""+encodeURIComponent(e.log[o])+"
",$("#debug").html(n)}}));var te=function(){var t;return function(e){bds.comm.isDebug&&alert(e),bds&&bds.comm&&bds.comm.js_error_monitor&&(t=new Image,t.src=bds.comm.js_error_monitor+"?"+$.param({url:le.href,time:bds.comm.serverTime,explore:navigator.userAgent,info:e,info_type:1})) +}}();if(window.setSugKey=function(t){Re&&t&&(We&&We.setKey?We.setKey(t):Re.val(t))},window.getCursortPosition=function(t){var e=0;try{if(document.selection){var i=document.selection.createRange(),n=0;t&&t.value&&(n=t.value.length),i.moveStart("character",-n),e=i.text.length}else(t.selectionStart||"0"==t.selectionStart)&&(e=t.selectionStart)}catch(o){e=t.value.length}return e},bds.comm.flagTranslateResult&&($("#wrapper_wrapper").delegate(".result","mouseenter",function(){$(".c-fanyi",$(this)).show() +}),$("#wrapper_wrapper").delegate(".result","mouseleave",function(){$(".c-fanyi",$(this)).hide()}),$("#wrapper_wrapper").delegate(".result .c-fanyi","click",function(){var t=$(this).closest(".result"),e=$("h3 a:first",t),i=$(".c-abstract:first",t),n=$(".c-fanyi-abstract",t).val(0).html(),o=$(".c-fanyi-title",t).val(0).html();$(".c-fanyi-abstract",t).val(0).html(i.html()),$(".c-fanyi-title",t).val(0).html(e.html()),e.html(o),i.html(n)})),bds&&bds.comm&&bds.comm.indexSid){var ee=(""+bds.comm.indexSid).split("_"); +$.inArray("28883",ee)>=0&&(window.__disable_preload=1,window.__disable_predict=1)}if(bds&&bds.comm&&bds.comm.sid){var ie=(""+bds.comm.sid).split("_");$.inArray("28883",ie)>=0&&(window.__disable_preload=1,window.__disable_predict=1)}var ne=0;bds&&bds.comm&&bds.comm.sampleval&&$.inArray("sam_ecom_sug",bds.comm.sampleval)>-1&&(ne="1");var oe={use_cache_repeatedly:!0,index_form:"#form",kw:"#kw",result_form:"#form"};t&&$.extend(oe,t);var se=15,ae=6e4,re=window.__confirm_timeout?window.__confirm_timeout:1e4,ce=bds.comm.supportis?4:10,de=function(){function t(t){"object"==typeof t&&null!=t&&(t.xhr&&t.xhr.abort&&t.xhr.abort(),t.base64&&t.base64.destroy(),t.pdc&&t.pdc.destroy(),t.backspace_preload_timeout_id&&clearTimeout(t.backspace_preload_timeout_id),delete t.xhr,delete t.html) +}var e=[];return{find:function(t){return $.grep(e,t)},getCacheList:function(){var t=$.map(e,function(t){return t&&(new Date).getTime()-t.startTime>ae?!1:t.querySign});return t=$.grep(t,function(t){return!!t}),t.join(" ")},hasCache:function(t,i){function n(t){var n,o;return(o=t.p("wd"))?($.grep(e,function(e){return i.loaded&&!e.loaded?!1:void(t.equals(e.real_wd?e.env.clone({wd:e.real_wd}):e.env)&&(n=e))}),n?n:null):!1}i||(i={});var o=n(t);return o&&(new Date).getTime()-o.startTime>ae&&(this.deleteCache(o),o=null),o +},shouldShow:function(t){if(t.force)return!0;if(!t.shouldShow&&!t.force&&t.no_predict)return!1;var e=o(Re.val());return!e||Je&&t.env.equals(Je.env)?!1:0==t.env.p("wd").indexOf(e)?!0:0==t.real_wd.indexOf(e)?!0:!1},getCacheBySign:function(t){var i=!1;return $.each(e,function(e,n){i||!n.loaded||n.querySign!=t||n.env.p("pn")&&0!=n.env.p("pn")||(i=n)}),i},addCache:function(i){if(-1==l(e,i)&&!i.env.p("srcid")&&!i.env.p("cq"))for(e.unshift(i);e.length>se;)t(e.pop())},deleteCache:function(i){t(i),e=$.grep(e,function(t){return t!==i +})},deleteCacheByEnv:function(){e=$.grep(e,function(e){var i=e.env.equals(e.env);return i&&t(e),!i})},clearCache:function(){e=$.grep(e,function(e,i){return i!==Je?(t(i),!1):!0}),e=[]}}}(),le=document.location,ue=le.protocol+"//"+le.host+le.pathname+le.search,me={onurlchange:function(){}};!function(){function t(){var t=le.href.match(/#+(.*)$/);return t?t[1].replace(/\+/g,"%2B"):""}function i(){var t=le.href.match(/\?([^#]+)/);return t?t[1].replace(/\?/g,"&"):""}function n(t,e){var i="";if("1"===window._thirdLinkSpeed&&(i="&qid="+bds.comm.queryId),window._bdlksmp>0&&(i="&bdlksmp="+window._bdlksmp),"1"===window._eclipse&&/^\/link\?/.test(e))return"wd=&eqid="+bds.comm.eqid+o(["pn","rn","ie"],t)+i; +var n=new p(a(t));return n.p("wd")?n.buildQueryString().replace(/&rsv[^=]*=[^&]*/g,"").replace(/[^a-zA-Z0-9]url=/g,"")+i:void 0}function o(t,e){var i="",n=a(e);for(var o in t)n.hasOwnProperty(o)&&(i+="&"+encodeURIComponent(n[o]));return i}function s(t){var e=new p(a(me.getQueryString()),!0);e.hashCode()?0==pageState&&B(e):0!=pageState?le.replace(le.pathname+le.search.replace(/([?&])isidx=[^&*]&?/,"$1")):le.search!=le.search.replace(/([?&])isidx=[^&*]&?/,"$1")&&le.replace(le.pathname+le.search.replace(/([?&])isidx=[^&*]&?/,"$1")),me.onurlchange(e,t) +}var r="onhashchange"in window,c="onpopstate"in window;window.__disable_popstate&&(c=!1);var l=le.pathname.length>1?le.pathname:"/s";(navigator.userAgent.match(/MSIE (6|7)/)||document.documentMode<8)&&(r=!1,c=!1),oe.disable_popstate&&(c=!1),r||c||e();var u=function(){var e="";return function(i,n){n&&(e=n.buildQueryString(),le.hash=e),(i||e!=t())&&(s(i),e=t())}}();me.setUrl=function(t){c?m(!1,t):r&&u(!1,t)};var m=function(){var t=i();return function(e,n){n&&(t=n.buildQueryString(),window.history.pushState(n,"",n.buildSyncSearchUrl())),e||t!=i()?(s(e),t=i()):d() +}}();me.getQueryString=function(){return c?i():/wd=/.test(t())?t():i()},me.init=function(){c?!function(){var e=le.href,i=!1;$(window).on("swap_begin",function(){i=!0}),$(window).bind("popstate",function(){(i||!e||e!=le.href)&&m(),e=null}),$(window).bind("hashchange",function(){var e=t();/wd=/.test(e)&&le.replace(l+"?"+e)})}():r&&($(window).bind("hashchange",function(){u()}),$(function(){u()}));var e=t();/wd=/.test(e)&&(c?(window.history.replaceState(null,"",l+"?"+e),m()):r?u():le.replace(l+"?"+e)) +},me.support=function(){return(c||r)&&1!=Cookie.get("ISSW")&&!window.__disable_preload},me.getLinkParams=function(e){if(!c){var o=t();return""==o&&(o=i()),n(o,e)}if("https:"===le.protocol||"1"===window._eclipse){var s=i();return s||(s=t()),n(s,e)}return!1},me.clickResultLink=function(t,e,i){return c?(window.history.pushState(null,"",new p(i,!0).buildSyncSearchUrl()),m(),!1):void t.attr("href",e.buildSearchUrl(i)).attr("target","_self")},me.submit=function(t,e){setTimeout(function(){c?(window.history.pushState(t,"",t.buildSyncSearchUrl()),m(e)):r?(le.href=t.buildSearchUrl(),u(e)):le.href=t.buildSyncSearchUrl() +},0)},window.changeUrl=function(t){var e=new p(a(t));me.submit(e,!0)}}(),me.onurlchange=function(t,e){h(ne,function(e){e.setKey(t.p("wd")),e.hide()}),Ee=(new Date).getTime(),Re.val(t.p("wd")),C("");var i=!0;e&&Je&&Je.env&&Je.env.equals(t)&&(i=!1),q({env:t,force:!0,use_cache:i,no_predict:!0})};var pe=oe.disable?oe.disable:!1;window.__disable_preload&&(pe=!0);var fe=pe,he=!1;window.__disable_predict&&(he=!0);var be=he,ge=bds.comm.switchAddMask?bds.comm.switchAddMask:!1;ge||(ge=window.__switch_add_mask?window.__switch_add_mask:!1),ge=!0; +var ve=(bds.comm.preloadMouseMoveDistance?bds.comm.preloadMouseMoveDistance:5,300),we=50,_e=80,ye=0,xe=0,$e=function(){},ke=a(le.search);me.support()||(!function(){function t(){le.hash&&le.hash.match(/[^a-zA-Z0-9](wd|word)=/)&&le.replace("//www.baidu.com/s?"+le.href.match(/#(.*)$/)[1])}le.hash.match(/[^a-zA-Z0-9](wd|word)=/)?(le.replace("//www.baidu.com/s?"+le.href.match(/#(.*)$/)[1]),function(){throw new Error("redirect to sync")}()):(document.getElementById("wrapper").style.display="block","onhashchange"in window?window.onhashchange=t:setInterval(t,200)) +}(),fe=pe=!0);for(var Te=Cookie.get("BAIDUID","nobdid").split(":")[0],Ce=Te.substr(0,6)+Te.substr(Te.length-5,5)+parseInt(99999*Math.random());Ce.length<16;)Ce+="0";Ce=encodeURIComponent(Ce);var Se,Ie,De,Le,Re,Ae;De=Le=Re=$(oe.kw);var Ee,je,Oe,qe,Me,Pe,Ne=$("#wrapper_wrapper"),Ue=[];window.__async_strategy,Se=$(oe.index_form),"_blank"==Se.attr("target")&&(window.__disable_index_predict=!0,fe=pe=!0);var ze=Se.serializeArray();Ie=$(oe.result_form);var He=(new Date).getTime();window.pageState=0;var Be,Fe,We,Qe,Ge,Ve=null,Je=null,Xe=document.location.href,Ke=!1,Ye="focus"; +!function(){window.PDC_ASYNC={setParam:function(t,e){Je&&Je.pdc&&Je.pdc.setParam(t,e)},setLinkData:function(e,i){t[e]=i},sendLinkLog:function(){var e="//www.baidu.com/nocache/fesplg/s.gif?log_type=linksp",i="";i+="&link_t="+((new Date).getTime()-t.click_t)+"&query="+bds.comm.queryEnc+"&qid="+bds.comm.queryId+"&linkpreload="+t.linkpreload;var n=Math.random();if(.01>n){var o=new Image,s="LINK_IMG_"+new Date;window[s]=o,o.onload=function(){delete window[s]},o.src=e+i}}};var t=(window.PDC_ASYNC.log={},{}); +window.bds&&(bds.pdc=window.PDC_ASYNC)}();var Ze=function(t){function e(){if(c=1,i(),1==c){var e=new Date,o=!1,s=function(){var i=new Date,l=i-e-t,u=n();0>l&&(l=0),u||o||(a[r]=l,r=(r+1)%20),o=u,1==c&&(e=i,d=setTimeout(s,t))};d=setTimeout(s,t)}}function i(){window.clearTimeout(d)}function n(){var t=["webkit","moz","ms","o"];if("hidden"in document)return document.hidden;for(var e=0;e1e3||e>150?(c=r?parseInt(r):0,c>=a-n&&a>c&&(l=1,Cookie.set("ispeed",2,document.domain,"/",d)),o>c&&(c=c+n>o?o:c+n,Cookie.set("ispeed_lsm",c,document.domain,"/",d))):(r&&parseInt(r)>a&&(s=5),r&&parseInt(r)>=s&&(parseInt(r)<=a+s&&parseInt(r)>a&&(l=2,Cookie.set("ispeed",1,document.domain,"/",d)),c=parseInt(r)-s,Cookie.set("ispeed_lsm",c,document.domain,"/",d))),l}catch(p){}return 0}function s(){return Cookie.get("ispeed")&&1==UPS.get("isSwitch")&&2==parseInt(Cookie.get("ispeed"))?!0:!1 +}var a=[],r=0,c=0,d=!1,t=t||250;return{start:e,stop:function(){window.clearTimeout(d),c=0},getData:function(){return a.slice(r).concat(a.slice(0,r))},isSlow:s,monitor:o}}();bds.comm.supportis&&1==UPS.get("isSwitch")&&Ze.start();var ti;if("1"===ne){var ei=$.ajax({dataType:"script",cache:!0,url:1===bds.comm.logFlagSug?"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/sug/js/bdsug_async_sam_sug_efdbf72.js":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/sug/js/bdsug_async_125a126.js"});ei.done(function(){Be=Fe=We=bds.se.sug({maxNum:10,withoutRich:bds.comm.supportis,withoutZhixin:!0,form:Ie[0],ipt:Re[0],cbname:"bdsugresultcb",submission:O}) +})}else var ii=function(){var t=$.Deferred();return require(["@baidu/search-sug"],function(e){Be=Fe=We=e({bds:bds,maxNum:10,withoutRich:bds.comm.supportis,withoutZhixin:!0,form:Ie[0],ipt:Re[0],cbname:"bdsugresultcb",submission:O}),t.resolve(Be)}),t.promise()}();h(ne,w);var ni,oi,si,ai;!function(){var t,e=-1,i=0,n=-1,o=-1,a=-1,r=-1,c=0;ni=function(e){if(e){a=e.pageX,r=e.pageY,t=e.target;var s=$(e.target);"submit"==s.attr("type")&&(c=1);var d=s.offset();n=a-d.left,o=r-d.top,i=(new Date).getTime()}},oi=function(n){n&&n.target==t&&(e=(new Date).getTime()-i) +},ai=function(t){bds&&bds.comm&&bds.comm.query&&(t=bds.comm.query);var i=c+"."+e+"."+n+"."+o+"."+a+"."+r;return i=s(i+t)+"."+i},si=function(){e=-1,i=0,n=-1,o=-1,a=-1,r=-1,c=0},$(window).on("confirm",function(){setTimeout(si,0)})}(),$(function(){$("#head").delegate(".index_tab_top>a,.index_tab_bottom>a,#u1>a,#u>a","mousedown",function(){return $(this).attr("name")?ns_c({fm:"behs",tab:$(this).attr("name"),query:"",un:encodeURIComponent(bds.comm.user||"")}):void 0})}),$(document).delegate("a","mousedown",function(){j(Je,Ke,22)() +}),k({prefix:"http://www.baidu.com",regex:/^\/*(link)\?(.*)$/}),k({prefix:"//www.baidu.com",regex:/^\/*(link)\?(.*)$/}),k({prefix:"http://www.baidu.com",convertTable:{"baidu.php":"baidu.php","aladdin.php":"aladdin.php","siva.php":"siva.php","adrc.php":"adrc.php","zhixin.php":"zhixin.php"},regex:/^\/*(baidu\.php|aladdin\.php|siva\.php|adrc\.php|zhixin\.php)\?(.*)$/}),"www.baidu.com"!=le.host&&k({prefix:"",convertTable:{"baidu.php":"baidu.php","aladdin.php":"aladdin.php","siva.php":"siva.php","adrc.php":"adrc.php","zhixin.php":"zhixin.php"},regex:/^\/*(baidu\.php|aladdin\.php|siva\.php|adrc\.php|zhixin\.php)\?(.*)$/}),k({prefix:"http://bzclk.baidu.com",regex:/^\/*(adrc\.php)\?(.*)$/}),k({prefix:"https://sp0.baidu.com/9q9JcDHa2gU2pMbgoY3K",regex:/^\/*(adrc\.php)\?(.*)$/}),"https:"==le.protocol&&bds.comm.ishome&&!/Chrome/.test(navigator.userAgent)&&$(document).delegate("a","mousedown",function(){var t=$(this),e=t.attr("href"),i={"http://v.baidu.com":"/?fr=bd"}; +i&&i.hasOwnProperty(e)&&t.attr("href",e+i[e])}),$(document).delegate("a","mousedown",function(){var t=$(this),e=t.attr("href"),i=new Image,n="//www.baidu.com/nocache/fesplg/s.gif?log_type=hm",o=Math.random();if(.01>o&&!/www\.baidu\.com\//.test(e)&&/^http/.test(e)){var s=n+"&c_url="+encodeURIComponent(e),i=new Image,a="_LOG_"+(new Date).getTime();i.onload=function(){delete window[a]},window[a]=i,i.src=s}}),me.support()&&$(document).delegate("a","click",function(){var t=le.protocol+"//"+le.host;return function(){var e=$(this); +if(!(e.attr("target")&&"_self"!=e.attr("target")||e.attr("sync")&&"true"==e.attr("sync"))){var i=$.trim(e.attr("href"));if(i&&0==i.indexOf(t)&&(i=i.substring(t.length)),i&&(matched=i.match(/^\/*s\?(.*)/)),i&&matched){var n=a(matched[0]);if(n.pn||(n.pn=""),l(["baidurt","baiduwb","baidufir","SE_baiduxueshu_c1gjeupa"],n.tn)<0){var o=e.parents("#con-at");o.size()>0&&r({top:o.offset().top+o.height()});var s=me.clickResultLink(e,Ve,n)}return s}}}}()),$(document).delegate("a","mousedown",function(t){ni(t) +}),$(document).delegate("a","mouseup",function(t){oi(t)}),$(document).delegate("#su,#su1","mouseup",function(t){oi(t)}),$(document).delegate("#su,#su1","mousedown",function(t){ni(t)}),!function(){var t;window._bdlkc>=1&&($(document).delegate(".c-container","mouseenter",function(){return function(){var e=$(this),i=300;2==window._bdlkc&&(i=100),t=setTimeout(function(){var t=e.find(".t>a"),i=T(t,{prefix:"http://www.baidu.com",regex:/^\/*(link)\?(.*)$/}),n=e.attr("mu")||e.find(".f13 .g").text(),o=/^(http[s]?:\/\/)?([^\/]+)(.*)/,s=n.match(o); +i&&i.match(le.protocol)&&/www\.baidu\.com\/link/.test(i)&&!/bdlkc=1/.test(i)&&(s[2]&&(n="http://"+s[2],e.append('')),$.ajax({url:i+"&bdlkc=1",type:"GET",contentType:"text/html",success:function(){t.attr("linkpreload","1")}}),t.attr("href",i+"&bdlkc=1"))},300)}}()),$(document).delegate(".c-container","mouseleave",function(){return function(){clearTimeout(t)}}()))}();var ri=$("body");document.title,!function(t){var e;t.fn.textWidth=function(){e||(e=t('
').appendTo("body").find("span")),e.html(escapeHTML(t(this).val())); +var i=e.width();return i}}(jQuery);var ci=!1;$(window).on("swap_dom_ready",function(t,e){var i="";!e||!e.real_wd||e.no_predict&&6!=e.pstg||(i=e.real_wd),C(i),D(e)}),$(window).on("swap_end",function(t,e){e&&(window.cfpromise=new $.Deferred,Me&&(clearTimeout(Me),Me=!1,Pe=null),e.confirm=!1,e.force?j(e,Ke,20)():(Pe=j(e,Ke,21),Me=setTimeout(Pe,re)))}),$(window).on("indexOff",function(t,e){h(ne,function(){C(e.p("wd"))})}),me.support()&&"_blank"!=Se.attr("target")&&h(ne,function(t){t.setMaxNum(ce)});var di,li=!1,ui=!1; +Ie.mousedown(function(){ui=!1}).delegate("a,input","focus",function(){ui=!1});var mi,pi,fi;$(window).on("swap_end",function(t,e){e||(bds.comm.confirmQuery=bds.comm.query,bds.comm.confirmQid=bds.comm.qid,y()),fi=setTimeout(function(){0==$("#content_left,.result,.content_none").length&&i(15,86400)},1e4)}),me.init(),$(function(){var t=$("script").last(),e=$("head");$e=function(){t.nextAll().not("[data-for]").not("#passport-login-pop").remove(),e.find("*").not("[data-for]").not("meta").not("title").not("script[async]").not('link[href*="passport"]').not('link[rel*="icon"]').not('link[rel*="shortcut icon"]').remove() +}}),bds.comm.resultPage&&H(),Ne.delegate("#page strong+a,#page a.n","mouseover",function(){q({env:new p(a($(this).attr("href"))),force:!1,use_cache:!0,no_predict:!0,shouldShow:!1,pstg:4})});var hi,bi,gi,vi,wi;h(ne,function(){$(document).mousemove(W)}),$("#u .back_org").click(function(){var t=new Date;t.setTime((new Date).getTime()+110376e7),Cookie.set("ORIGIN",2,document.domain,"/",t),Ve?le.replace(Ve.buildSyncSearchUrl({_r:Math.random()})):le.href="/"}),$(window).scroll(function(){var t,e=$("#head"),i=$(window),n=40,o=e.offset().top,s=function(){t&&(clearTimeout(t),t=!1),t=setTimeout(function(){var s=i.scrollTop(); +s>n+o?t=setTimeout(function(){e.addClass("s_down"),h(ne,function(){We.hide()})},0):n+o>=s&&(t=setTimeout(function(){e.removeClass("s_down")},0))},50)};return s(),s}()),Re.bind("paste",function(){if(!(window.__disable_index_predict&&0==pageState||pe||he)){var t=this,e=this.value;Ge=!0,setTimeout(function(){t.value&&t.value!=e&&q({env:(new p).clone({wd:$.trim(t.value)}),force:!1,use_cache:!0,no_predict:!0,shouldShow:bds.comm.supportis,pstg:2})},0)}})}function addEV(t,e,i){window.attachEvent?t.attachEvent("on"+e,i):window.addEventListener&&t.addEventListener(e,i,!1) +}function user_c(t){var e="",i="",n="",o="",s=encodeURIComponent(window.document.location.href),a=window["BD_PS_C"+(new Date).getTime()]=new Image,r=bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://nsclick.baidu.com"):"http://nsclick.baidu.com";for(v in t){switch(v){case"title":n=encodeURIComponent(t[v].replace(/<[^<>]+>/g,""));break;case"url":n=encodeURIComponent(t[v]);break;default:n=t[v]}e+=v+"="+n+"&"}return o="&mu="+s,a.src=r+"/v.gif?pid=201&pj=psuser&"+e+"path="+s+"&wd="+i+"&t="+(new Date).getTime(),!0 +}function initPassV3(){var t=bds.comm.passnew?3:2,e=bds.comm.ishome?-1:5;bds.se.passv3=passport.pop.init({apiOpt:{loginType:1,product:"mn",u:window.document.location.href,safeFlag:0,qrcode:t,staticPage:location.protocol+"//www.baidu.com/cache/user/html/v3Jump.html",sms:e},cache:!1,tangram:!0,authsite:["qzone","tsina"],authsiteCfg:{act:"implicit",display:"popup",jumpUrl:location.protocol+"//www.baidu.com/cache/user/html/xd.html",onBindSuccess:function(t,e){var i=decodeURIComponent(e.passport_uname||e.displayname); +return bds.se.login.success(i),!1}},onLoginSuccess:function(t){t.returnValue=!1;var e=t.rsp.data.userName||t.rsp.data.mail||t.rsp.data.phoneNumber;bds.se.login.success(e)},onSubmitStart:function(){},onSubmitedErr:function(){},onSystemErr:function(){},onShow:function(){},onHide:function(){bds.se.login.setSubpro(""),bds.se.login.setMakeText("")},onDestroy:function(){}})}function isp_hijack(t){var e,i,n,o=document.getElementById("wrapper"),s=!1;bds.comm.query||(s=!0),1==t.stat&&(e=document.createElement("div"),e.innerHTML='
百度提示您:
我们发现当前您可能受到异常广告弹窗的影响,通常这是受第三方恶意劫持导致。使用 防恶意广告专版杀毒软件,可有效改善您的上网体验,免受恶意广告的困扰。
',s?o.insertBefore(e,o.children[0]):(o.style.position="relative",document.getElementById("u").style.top=0,e.style.margin="-6px 0 8px 0",document.body.insertBefore(e,o)),i=document.getElementById("isp-close-btn"),n=i.parentNode.getElementsByTagName("a")[0],i.onclick=function(){s?o.removeChild(e):(document.body.removeChild(e),o.style.position="",document.getElementById("u").style.top="4px") +},i.onmousedown=function(){ns_c({fm:"behs",tab:"tj_notice",cont:"jcbro",action:"close",area:"topbar"})},n.onmousedown=function(){ns_c({fm:"behs",tab:"tj_notice",cont:"jcbro",action:"click",area:"topbar"})},ns_c({fm:"behs",tab:"tj_notice",cont:"jcbro",action:"show",area:"topbar"}))}function isbase64(t){function e(){p={left:$.Deferred(),right:$.Deferred()}}function i(t,e){b++;var t=t||[],e=e||[];if(t=$.grep(t,function(t){return f.right.hasOwnProperty(t)?!1:(f.right[t]=!1,!0)}),e=$.grep(e,function(t){return f.left.hasOwnProperty(t)?!1:(f.left[t]=!1,!0) +}),2==c.b64Exp&&e.length>0&&(h=!0,s(e,"left","reql")),t.length>0)if(t.length>12){var i=Math.round(t.length/2),n=[],o=[];$.each(t,function(t,e){i>t?n.push(e):o.push(e)}),s(n,"right","reqr2"),s(o,"right","reqr1")}else s(t,"right","reqr")}function n(t){for(var e=t,i=0;__callback_names.hasOwnProperty(t)||window[t];)t=e+"_"+i,i++;return __callback_names[t]=1,t}function o(t){if("string"==typeof t){var e,i=0,n=0;for(e=0;e9?t:"0"+t};return("number"==typeof t||"string"==typeof t)&&(t=new Date(t)),[t.getFullYear(),i(t.getMonth()+1),i(t.getDate())].join(e||"")}function baseChangeUrl(t){bds.comm.search_tool.st&&bds.comm.search_tool.et&&bds.comm.search_tool.stftype&&t.indexOf("&gpc=")<0&&(t+="&gpc="+encodeURIComponent("stf="+bds.comm.search_tool.st+","+bds.comm.search_tool.et+"|stftype="+bds.comm.search_tool.stftype)),bds.comm.search_tool.si&&t.indexOf("&si=")<0&&(t+="&si="+encodeURIComponent(bds.comm.search_tool.si)+"&ct=2097152"),bds.comm.search_tool.sl_lang&&t.indexOf("&sl_lang=")<0&&(t+="&rsv_srlang="+encodeURIComponent(bds.comm.search_tool.sl_lang),t+="&sl_lang="+encodeURIComponent(bds.comm.search_tool.sl_lang),t+="&rsv_rq="+encodeURIComponent(bds.comm.search_tool.sl_lang)),changeUrl(t) +}function langChangeUrl(t,e,i){ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI(i),rsv_advTool_lang:e}),baseChangeUrl("wd="+encodeURIComponent($("#kw").val())+"&"+t+"="+encodeURIComponent(e)+"&rsv_srlang="+encodeURIComponent(e)+"&rsv_rq="+encodeURIComponent(e))}function advChangeUrl(t,e,i,n){if(-1!=e.indexOf("="))var o=1;else var o=0;ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI(i),rsv_advTool_time:n,rsv_advTool_stet:e.substr(4).replace(",","_")}),baseChangeUrl("wd="+encodeURIComponent($("#kw").val())+"&"+t+"="+encodeURIComponent(e)+"&tfflag="+o) +}function fileChangeUrl(t,e,i){ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI(e),rsv_advTool_ft:i}),baseChangeUrl("wd="+encodeURIComponent(queryReplace("filetype",t)))}function queryReplace(t,e){if(!t||"filetype"!=t&&"site"!=t)return n;var i=new RegExp("("+t+"):[^\\s]*[ ]?"),n=$("#kw").val();return" "==e||null==e?n.replace(i,""):n.match(i)?n.replace(i,"$1:"+e+" "):t+":"+e+" "+n}function extChangeUrl(t){t?(ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("精确匹配"),rsv_advTool_ext:1}),baseChangeUrl('wd="'+encodeURIComponent($("#kw").val())+'"')):(ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("智能匹配"),rsv_advTool_ext:0}),baseChangeUrl("wd="+encodeURIComponent($("#kw").val().replace(/^\"(.*)\"$/,"$1")))) +}!function(){function getUA(){var t,e={},i=navigator.userAgent.toLowerCase();return e.mac=navigator.platform.toUpperCase().indexOf("MAC")>=0,(t=i.match(/rv:([\d.]+)\) like gecko/))?e.ie=t[1]:(t=i.match(/(msie\s|trident.*rv:)([\w.]+)/))?e.ie=t[2]:(t=i.match(/firefox\/([\d.]+)/))?e.firefox=t[1]:(t=i.match(/chrome\/([\d.]+)/))?e.chrome=t[1]:(t=i.match(/opera.([\d.]+)/))?e.opera=t[1]:(t=i.match(/version\/([\d.]+).*safari/))?e.safari=t[1]:0,e}function getDefaultQueryHis(){try{return JSON.parse(localStorage.getItem("index_ls_default_query")) +}catch(t){return{}}}function detectPlaceholder(t){var e="[object OperaMini]"===Object.prototype.toString.call(window.operamini);return t.ie?!1:"placeholder"in document.createElement("input")&&!e}function createPlaceHolder(t,e,i){if(e)t.attr("placeholder",i);else{var n="
"+i+"
";t.before(n),$(".kw-placeholder").on("click",function(e){t.focus(),e.target=t.get(0),t.trigger(e)}),$(document).ready(function(){$(".kw-placeholder").toggleClass("placeholders-hidden",t.val().length>0) +}),t.on("keydown keyup cut paste setValue input",checkInputValue)}}function checkInputValue(){var t=$input.val();setTimeout(function(){var e=$input.val();(e!==t||e.length>0)&&$(".kw-placeholder").toggleClass("placeholders-hidden",e.length>0)},0)}function removePlaceHolder(t,e){e?t.removeAttr("placeholder"):$(".kw-placeholder").remove()}function testLocalStorage(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(e){return!1}}function getShowCount(t,e){var i=0;return e&&e.query&&e.query===t&&e.count&&(i=e.count),i +}function recordDefaultQuery(t,e){var i={query:t,time:(new Date).getTime(),count:1};e&&e.query&&t===e.query&&e.count&&(i.count=e.count+1),setTimeout(function(){try{localStorage.removeItem("index_ls_default_query"),localStorage.setItem("index_ls_default_query",JSON.stringify(i))}catch(t){return!1}},0)}function jsonPolyfill(){var json={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(){var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,i=Array.isArray||function(e){return"[object Array]"===t.call(e) +},n={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},o=function(t){return n[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)},s=/[\\"\u0000-\u001F\u2028\u2029]/g;return function a(n){if(null==n)return"null";if("number"==typeof n)return isFinite(n)?n.toString():"null";if("boolean"==typeof n)return n.toString();if("object"==typeof n){if("function"==typeof n.toJSON)return a(n.toJSON());if(i(n)){for(var r="[",c=0;c9&&(defaultQuery=""),defaultQuery){var UA=getUA(),isPlaceHolderSupported=detectPlaceholder(UA); +createPlaceHolder($input,isPlaceHolderSupported,defaultQuery,UA),isSupportLocalStorage&&recordDefaultQuery(defaultQuery,defaultQueryHis),$(window).one("index_off",function(){removePlaceHolder($input,isPlaceHolderSupported),bds.comm.dpquery=""})}}();var define,require,esl;!function(t){function e(t){m(t,U)||(z[t]=1)}function i(t,e){function i(t){0===t.indexOf(".")&&o.push(t)}var o=[];if("string"==typeof t?i(t):R(t,function(t){i(t)}),o.length>0)throw new Error("[REQUIRE_FATAL]Relative ID is not allowed in global require: "+o.join(", ")); +var s=F.waitSeconds;return s&&t instanceof Array&&(O&&clearTimeout(O),O=setTimeout(n,1e3*s)),B(t,e)}function n(){function t(a,r){if(!s[a]&&!m(a,U)){s[a]=1;var c=q[a];c?(r||!m(a,N)||c.hang)&&(n[a]||(n[a]=1,e.push(a)),R(c.depMs,function(e){t(e.absId,e.hard)})):o[a]||(o[a]=1,i.push(a))}}var e=[],i=[],n={},o={},s={};for(var a in z)t(a,1);if(e.length||i.length)throw new Error("[MODULE_TIMEOUT]Hang("+(e.join(", ")||"none")+") Miss("+(i.join(", ")||"none")+")")}function o(t){R(W,function(e){r(t,e.deps,e.factory) +}),W.length=0}function s(t,e,i){if(null==i&&(null==e?(i=t,t=null):(i=e,e=null,t instanceof Array&&(e=t,t=null))),null!=i){var n=window.opera;if(!t&&document.attachEvent&&(!n||"[object Opera]"!==n.toString())){var o=E();t=o&&o.getAttribute("data-require-id")}t?r(t,e,i):W[0]={deps:e,factory:i}}}function a(){var t=F.config[this.id];return t&&"object"==typeof t?t:{}}function r(t,e,i){q[t]||(q[t]={id:t,depsDec:e,deps:e||["require","exports","module"],factoryDeps:[],factory:i,exports:{},config:a,state:M,require:k(t),depMs:[],depMkv:{},depRs:[],hang:0}) +}function c(t){var e=q[t];if(e&&!m(t,P)){var i=e.deps,n=e.factory,o=0;"function"==typeof n&&(o=Math.min(n.length,i.length),!e.depsDec&&n.toString().replace(/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,"").replace(/require\(\s*(['"])([^'"]+)\1\s*\)/g,function(t,e,n){i.push(n)}));var s=[],a=[];R(i,function(i,n){var r,c,d=I(i),l=T(d.mod,t);l&&!H[l]?(d.res&&(c={id:i,mod:l,res:d.res},a.push(i),e.depRs.push(c)),r=e.depMkv[l],r||(r={id:d.mod,absId:l,hard:o>n},e.depMs.push(r),e.depMkv[l]=r,s.push(l))):r={absId:l},o>n&&e.factoryDeps.push(c||r) +}),e.state=P,u(t),g(s),a.length&&e.require(a,function(){R(e.depRs,function(e){e.absId||(e.absId=T(e.id,t))}),d()})}}function d(){for(var t in z)c(t),l(t),p(t)}function l(t){function e(t){if(c(t),!m(t,P))return!1;if(m(t,N)||i[t])return!0;i[t]=1;var n=q[t],o=!0;return R(n.depMs,function(t){o=e(t.absId)&&o}),o&&R(n.depRs,function(t){return o=!!t.absId}),o&&!m(t,N)&&(n.state=N),i[t]=0,o}var i={};e(t)}function u(e){function i(){if(!n&&o.state===N){n=1;var i=1;if(R(o.factoryDeps,function(t){var e=t.absId; +return H[e]?void 0:(p(e),i=m(e,U))}),i){try{var s=o.factory,a="function"==typeof s?s.apply(t,f(o.factoryDeps,{require:o.require,exports:o.exports,module:o})):s;null!=a&&(o.exports=a),o.invokeFactory=null}catch(r){throw o.hang=1,r}b(e)}}}var n,o=q[e];o.invokeFactory=i}function m(t,e){return q[t]&&q[t].state>=e}function p(t){var e=q[t];e&&e.invokeFactory&&e.invokeFactory()}function f(t,e){var i=[];return R(t,function(t,n){"object"==typeof t&&(t=t.absId),i[n]=e[t]||q[t].exports}),i}function h(t,e){if(m(t,U))return void e(); +var i=Q[t];i||(i=Q[t]=[]),i.push(e)}function b(t){var e=q[t];e.state=U,delete z[t];for(var i=Q[t]||[],n=i.length;n--;)i[n]();i.length=0,Q[t]=null}function g(e,i,n){function o(){if("function"==typeof i&&!s){var n=1;R(e,function(t){return H[t]?void 0:n=!!m(t,U)}),n&&(s=1,i.apply(t,f(e,H)))}}var s=0;R(e,function(t){H[t]||m(t,U)||(h(t,o),(t.indexOf("!")>0?w:v)(t,n))}),o()}function v(e){function i(){var t=K[e];j(t||e,n)}function n(){if(a){var i;"function"==typeof a.init&&(i=a.init.apply(t,f(r,H))),null==i&&a.exports&&(i=t,R(a.exports.split("."),function(t){return i=i[t],!!i +})),s(e,r,function(){return i||{}})}else o(e);d()}if(!G[e]&&!q[e]){G[e]=1;var a=F.shim[e];a instanceof Array&&(F.shim[e]=a={deps:a});var r=a&&(a.deps||[]);r?(R(r,function(t){F.shim[t]||(F.shim[t]={})}),B(r,i)):i()}}function w(t,e){function i(e){c.exports=e||!0,b(t)}function n(n){var o=e?q[e].require:B;n.load(r.res,o,i,a.call({id:t}))}if(!q[t]){var s=K[t];if(s)return void v(s);var r=I(t),c={id:t,state:P};q[t]=c,i.fromText=function(t,e){new Function(e)(),o(t)},n(B(r.mod))}}function _(t,e){var i=D(t,1,e); +return i.sort(A),i}function y(){function t(t){K[C(t)]=i}F.baseUrl=F.baseUrl.replace(/\/$/,"")+"/",V=_(F.paths),X=_(F.map,1),R(X,function(t){t.v=_(t.v)});var e=X[X.length-1];e&&"*"===e.k&&R(X,function(t){t!=e&&(t.v=t.v.concat(e.v))}),J=[],R(F.packages,function(t){var e=t;"string"==typeof t&&(e={name:t.split("/")[0],location:t,main:"main"}),e.location=e.location||e.name,e.main=(e.main||"main").replace(/\.js$/i,""),e.reg=L(e.name),J.push(e)}),J.sort(A),Y=_(F.urlArgs,1),K={};for(var i in F.bundles)R(F.bundles[i],t) +}function x(t,e,i){R(e,function(e){return e.reg.test(t)?(i(e.v,e.k,e),!1):void 0})}function $(t,e){var i=/(\.[a-z0-9]+)$/i,n=/(\?[^#]*)$/,o="",s=t,a="";n.test(t)&&(a=RegExp.$1,t=t.replace(n,"")),i.test(t)&&(o=RegExp.$1,s=t.replace(i,"")),null!=e&&(s=T(s,e));var r,c=s;return x(s,V,function(t,e){c=c.replace(e,t),r=1}),r||x(s,J,function(t,e,i){c=c.replace(i.name,i.location)}),/^([a-z]{2,10}:\/)?\//i.test(c)||(c=F.baseUrl+c),c+=o+a,x(s,Y,function(t){c+=(c.indexOf("?")>0?"&":"?")+t}),c}function k(t){function i(i,o){if("string"==typeof i){if(!n[i]){var s=T(i,t); +if(p(s),!m(s,U))throw new Error('[MODULE_MISS]"'+s+'" is not exists!');n[i]=q[s].exports}return n[i]}if(i instanceof Array){var a=[],r=[];R(i,function(i,n){var o=I(i),s=T(o.mod,t),c=o.res,d=s;if(c){var l=s+"!"+c;0!==c.indexOf(".")&&K[l]?s=d=l:d=null}r[n]=d,e(s),a.push(s)}),g(a,function(){R(r,function(n,o){null==n&&(n=r[o]=T(i[o],t),e(n))}),g(r,o,t),d()},t),d()}}var n={};return i.toUrl=function(e){return $(e,t||"")},i}function T(t,e){if(!t)return"";e=e||"";var i=I(t);if(!i)return t;var n=i.res,o=S(i.mod,e); +if(x(e,X,function(t){x(o,t,function(t,e){o=o.replace(e,t)})}),o=C(o),n){var s=m(o,U)&&B(o);n=s&&s.normalize?s.normalize(n,function(t){return T(t,e)}):T(n,e),o+="!"+n}return o}function C(t){return R(J,function(e){var i=e.name;return i===t?(t=i+"/"+e.main,!1):void 0}),t}function S(t,e){if(0!==t.indexOf("."))return t;for(var i=e.split("/").slice(0,-1).concat(t.split("/")),n=[],o=0;oi&&e(t[i],i)!==!1;i++);}function A(t,e){var i=t.k||t.name,n=e.k||e.name;return"*"===n?-1:"*"===i?1:n.length-i.length}function E(){if(Z)return Z;if(te&&"interactive"===te.readyState)return te; +for(var t=document.getElementsByTagName("script"),e=t.length;e--;){var i=t[e];if("interactive"===i.readyState)return te=i,i}}function j(t,e){function i(){var t=n.readyState;("undefined"==typeof t||/^(loaded|complete)$/.test(t))&&(n.onload=n.onreadystatechange=null,n=null,e())}var n=document.createElement("script");n.setAttribute("data-require-id",t),n.src=$(t+".js"),n.async=!0,n.readyState?n.onreadystatechange=i:n.onload=i,Z=n,ie?ee.insertBefore(n,ie):ee.appendChild(n),Z=null}var O,q={},M=1,P=2,N=3,U=4,z={},H={require:i,exports:1,module:1},B=k(),F={baseUrl:"./",paths:{},config:{},map:{},packages:[],shim:{},waitSeconds:0,bundles:{},urlArgs:{}}; +i.version="2.1.4",i.loader="esl",i.toUrl=B.toUrl;var W=[];s.amd={};var Q={},G={};i.config=function(t){if(t){for(var e in F){var i=t[e],n=F[e];if(i)if("urlArgs"===e&&"string"==typeof i)F.urlArgs["*"]=i;else if(n instanceof Array)n.push.apply(n,i);else if("object"==typeof n)for(var o in i)n[o]=i[o];else F[e]=i}y()}},y();var V,J,X,K,Y,Z,te,ee=document.getElementsByTagName("head")[0],ie=document.getElementsByTagName("base")[0];ie&&(ee=ie.parentNode),define||(define=s,require||(require=i),esl=i);var ne; +!function(){for(var t=document.getElementsByTagName("script"),e=t.length;e--;){var i=t[e];if(ne=i.getAttribute("data-main"))break}}(),ne&&setTimeout(function(){i([ne])},4)}(this);var bds=window.bds||{};bds.amd={keys:{},addPaths:function(t){"object"==typeof t&&(require.config({paths:t}),$.extend(bds.amd.keys,t))},deletePath:function(t){var e="string"==typeof t?[t]:t;for(var i in e)e.hasOwnProperty(i)&&delete bds.amd.keys[i]},addConfig:function(t){if("object"==typeof t){require.config(t);for(var e in t)if(t.hasOwnProperty(e)){bds.amd[e]||(bds.amd[e]={}); +for(var i in t[e])t[e].hasOwnProperty(i)&&t[e][i]&&(bds.amd[e][i]=t[e][i])}}},getPath:function(t){return t&&"string"==typeof t?bds.amd.keys[t]||bds.amd.paths[t]||"":void 0},getBundle:function(t){if(t&&"string"==typeof t){var e=bds.amd.bundles,i="",n="";if(e&&"object"==typeof e)for(var o in e)if(e.hasOwnProperty(o)&&e[o].indexOf(t)>-1){i=o,n=bds.amd.getPath(o);break}return{name:i,path:n}}},exist:function(t){return t&&"undefined"!=typeof bds.amd.keys[t]?!0:!1}},function(){var t=bds.util&&bds.util.domain?bds.util.domain.get("http://s1.bdstatic.com"):"http://s1.bdstatic.com",e=bds.util&&bds.util.domain?bds.util.domain.get("http://ecmb.bdimg.com"):"http://ecmb.bdimg.com"; +require.config({baseUrl:t+"/r/www/cache/biz",packages:[{name:"ecma",location:e+"/public01"},{name:"ecmb",location:e+"/public01"}],paths:{aladdin:t+"/r/www/aladdin",ui:t+"/r/www/cache/amd/ui","ui/config":t+"/r/www/cache/amd/ui/Control","ui/lib":t+"/r/www/cache/amd/ui/Control","ui/Control":t+"/r/www/cache/amd/ui/Control"},urlArgs:{"ui/ImgZoomHover":"20141104","ui/ImgZoomHover1":"20141104","ui/ImgZoomHover2":"20141104","ui/ImgZoomHover3":"20141104"}})}(),bds.amd.addConfig({bundles:{"@baidu/ala-util":["@baidu/ala-util","@baidu/ala-util/env","@baidu/ala-util/es6-promise","@baidu/ala-util/fetch-jsonp","@baidu/ala-util/fetch","@baidu/ala-util/index","@baidu/ala-util/lodash","@baidu/ala-util/ala","@baidu/ala-util/update"]}}),bds.amd.addPaths({Atom:"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/bundles/atom_aa06f6b","voice/js/voice":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/voice/js/voice_1672ed3","plugins/swfobject":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/swfobject_0178953","soutu/js/tu":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/js/tu_77547af","lib/get_ua":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/lib/get_ua_5600c75","lib/get_zoom":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/lib/get_zoom_40318e9","plugins/zoom_prompt":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/zoom_prompt_d72a9cd","plugins/pcToWise":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/pcToWise_946ec60","plugins/qrcodegen":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/qrcodegen_3297c28","plugins/https_useable_sample":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/https_useable_sample_8f5c5a9","plugins/feedback_suggest":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/feedback_suggest_f73e42e","webb/instance":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/webb/instance_5d88cac","atom-logger":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/webb/atom-logger_098581c"}),bds.amd.addPaths({"@baidu/ala-util":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/ala-util_b8e7a51","@baidu/atom-web-runtime":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/atom-web-runtime_f8cc03e","@baidu/better-scroll":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/better-scroll_3ca1fd1","@baidu/pmd":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/pmd_9fac2fd","@baidu/search-sug":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/search-sug_d37baf2","@baidu/web-animations-js":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/web-animations-js_6166288","@baidu/webb":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/webb_f69c914","@searchfe/assert":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@searchfe/assert_8f1a1ad","@searchfe/promise":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@searchfe/promise_33d6467","@searchfe/user-agent":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@searchfe/user-agent_165a7ee","promise-polyfill":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/promise-polyfill_eb6da34","versions-compare":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/versions-compare_a4b1c27","whatwg-fetch":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/whatwg-fetch_435bd8d"}),bds.amd.addPaths({"@baidu/ala-util":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/bundles/ala-util_e489543","@baidu/webb":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/webb/webb2.min_62df7c4","@baidu/module-version":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/module-version/index_/static/amd_modules/@baidu/module-version/index.js"}),bds.amd.addPaths({"@baidu/ala-util/env":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/ala-util/env_c8c79df","@baidu/ala-util/es6-promise":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/ala-util/es6-promise_5db0418","@baidu/ala-util/fetch":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/ala-util/fetch_b79917d","@baidu/ala-util/fetch-jsonp":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/ala-util/fetch-jsonp_2e624b8","@baidu/ala-util/index":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/ala-util/index_6acb491","@baidu/ala-util/lodash":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/ala-util/lodash_e153b58","@baidu/atom-web-runtime/dist/atom.min":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/atom-web-runtime/dist/atom.min_960c107","@baidu/better-scroll/better-scroll":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/better-scroll/better-scroll_f35e74a","@baidu/pmd/dist/pmd":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/pmd/dist/pmd_abc3d9e","@baidu/search-sug/sug/index":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/search-sug/sug/index_c44054e","@baidu/web-animations-js/web-animations.min":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/web-animations-js/web-animations.min_5987b41","@baidu/webb/webb2.min":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@baidu/webb/webb2.min_62df7c4","@searchfe/assert/index":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@searchfe/assert/index_93ef523","@searchfe/promise/src/promise":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@searchfe/promise/src/promise_c5de809","@searchfe/promise/src/set-immediate":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@searchfe/promise/src/set-immediate_099c916","@searchfe/user-agent/src/index":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/@searchfe/user-agent/src/index_107eeda","promise-polyfill/lib/index":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/promise-polyfill/lib/index_18c4599","versions-compare/src/index":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/versions-compare/src/index_bf82f5e","versions-compare/src/util":"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/amd_modules/versions-compare/src/util_294470f"}),bds&&bds.comm&&(bds.comm.did=function(){for(var t="",e=0;32>e;e++)t+=Math.floor(16*Math.random()).toString(16); +return t}(),bds.comm.isAsync=function(){var t="onhashchange"in window,e="onpopstate"in window;return(e||t)&&1!=Cookie.get("ISSW")&&!window.__disable_preload}());try{window.MutationObserver=window.WebKitMutationObserver=window.MozMutationObserver=null}catch(e){}jQuery&&jQuery.extend({stringify:function(t){function e(t){return/["\\\x00-\x1f]/.test(t)&&(t=t.replace(/["\\\x00-\x1f]/g,function(t){var e=o[t];return e?e:(e=t.charCodeAt(),"\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16))})),'"'+t+'"' +}function i(t){var e,i,n,o=["["],s=t.length;for(i=0;s>i;i++)switch(n=t[i],typeof n){case"undefined":case"function":case"unknown":break;default:e&&o.push(","),o.push($.stringify(n)),e=1}return o.push("]"),o.join("")}if("JSON"in window)return JSON.stringify(t);var n=typeof t;if("object"!=n||null===t)return"string"==n&&(t='"'+t+'"'),String(t);var o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};switch(typeof t){case"undefined":return"undefined";case"number":return isFinite(t)?String(t):"null"; +case"string":return e(t);case"boolean":return String(t);default:if(null===t)return"null";if("[object Array]"===Object.prototype.toString.call(t))return i(t);var s,a,r=["{"],c=$.stringify;for(var d in t)if(Object.prototype.hasOwnProperty.call(t,d))switch(a=t[d],typeof a){case"undefined":case"unknown":case"function":break;default:s&&r.push(","),s=1,r.push(c(d)+":"+c(a))}return r.push("}"),r.join("")}},format:function(t,e){t=String(t);var i=Array.prototype.slice.call(arguments,1),n=Object.prototype.toString; +return i.length?(i=1==i.length&&null!==e&&/\[object Array\]|\[object Object\]/.test(n.call(e))?e:i,t.replace(/#\{(.+?)\}/g,function(t,e){var o=i[e];return"[object Function]"==n.call(o)&&(o=o(e)),"undefined"==typeof o?"":o})):t},subByte:function(t,e,i){var n=[],o=t.split("");i=i||"…";for(var s=0,a=o.length;a>s;s++)o[s].charCodeAt(0)>255&&n.push("*"),n.push(o[s]);return e&&e>0&&n.length>e?o=n.join("").substring(0,e-1).replace(/\*/g,"")+i:t},getByteLength:function(t){for(var e=[],i=t.split(""),n=0,o=i.length;o>n;n++)i[n].charCodeAt(0)>255&&e.push("*"),e.push(i[n]); +return e.length},_isValidKey:function(t){return new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+$').test(t)},setCookie:function(t,e,i){if(e=encodeURIComponent(e),jQuery._isValidKey(t)){i=i||{};var n=i.expires;"number"==typeof i.expires&&(n=new Date,n.setTime(n.getTime()+i.expires)),document.cookie=t+"="+e+(i.path?"; path="+i.path:"")+(n?"; expires="+n.toGMTString():"")+(i.domain?"; domain="+i.domain:"")+(i.secure?"; secure":"")}},getCookie:function(t){var e=""; +if(jQuery._isValidKey(t)){var i=new RegExp("(^| )"+t+"=([^;]*)(;|$)"),n=i.exec(document.cookie);if(n&&(e=n[2]||null,"string"==typeof e))return e=decodeURIComponent(e)}return null},removeCookie:function(t,e){e=e||{},e.expires=new Date(0),jQuery.setCookie(t,"",e)},limitWd:function(t,e){if(""===t)return"";t+="";var i=t.split(""),n=i.length,o=0,s=e||255;if(n<=parseInt(s/2))return t;for(var a=0;n>a;a++){if(o+=i[a].charCodeAt(0)>255?2:1,o===s)return i=t.substring(0,a+1);if(o>s)return i=t.substring(0,a) +}return t}}),$(window).on("resize",function(){"pageState"in window&&0!=pageState&&(bds.util.setContainerWidth(),bds.event.trigger("se.window_resize"))}),bds.util.addStyle=function(t){if(isIE){var e=document.createStyleSheet();e.cssText=t}else{var i=document.createElement("style");i.type="text/css",i.appendChild(document.createTextNode(t)),document.getElementsByTagName("HEAD")[0].appendChild(i)}},bds.util.getContentRightHeight=function(){return $("#content_right").get(0)?$("#content_right").get(0).offsetHeight:0 +},bds.util.getContentLeftHeight=function(){return $("#content_left").get(0)?$("#content_left").get(0).offsetHeight:0},window.A||(window.bds=window.bds||{},bds.util=bds.util||{},bds.util.getWinWidth=function(){return window.document.documentElement.clientWidth},bds.util.setContainerWidth=function(){var t=G("container"),e=G("wrapper"),i=function(t,e){e.className=e.className.replace(t,"")},n=function(t,e){e.className=(e.className+" "+t).replace(/^\s+/g,"")},o=function(t,e){return t.test(e.className) +};bds.util.getWinWidth()<1207?(t&&(i(/\bcontainer_l\b/g,t),o(/\bcontainer_s\b/,t)||n("container_s",t)),e&&(i(/\bwrapper_l\b/g,e),o(/\bwrapper_s\b/,e)||n("wrapper_s",e)),bds.comm.containerSize="s"):(t&&(i(/\bcontainer_s\b/g,t),o(/\bcontainer_l\b/,t)||n("container_l",t)),e&&(i(/\bwrapper_s\b/g,e),o(/\bwrapper_l\b/,e)||n("wrapper_l",e)),bds.comm.containerSize="l")},function(){var t=[],e=!1,i=function(t,e){try{t.call(e)}catch(i){}},n=function(){this.ids=[],this.has=!0,this.list=[],this.logs=[],this.loadTimes=[],this.groupData=[],this.mergeFns=[],this._currentContainer=null +};window.A=bds.aladdin={},i(n,window.A),bds.ready=function(n){"function"==typeof n&&(e?i(n):t.push(n))},bds.doReady=function(){for(e=!0;t.length;)i(t.shift())},bds.clearReady=function(){e=!1,t=[]},A.__reset=n;var o=function(){var t=document.getElementsByTagName("script");return function(){var e=t[t.length-1];window.currentScriptElem&&(e=window.currentScriptElem);for(var i=e;i;){if(i.className&&/(?:^|\s)result(?:-op)?(?:$|\s)/.test(i.className)&&(tplname=i.getAttribute("tpl")))return i;i=i.parentNode +}}}(),s=function(t,e,i){var n;if(t.initIndex?n=A.groupData[t.initIndex-1]:(n={container:t,data:{},handlers:[]},t.initIndex=A.groupData.length+1,A.groupData.push(n)),"function"==typeof e)n.handlers.push(e);else if("object"==typeof e)for(var o in e)e.hasOwnProperty(o)&&(n.data[o]=e[o]);else n.data[e]=i};A.init=A.setup=function(t,e){if(void 0!==t&&null!==t){var i=A._currentContainer||o();i&&s(i,t,e)}},A.merge=function(t,e){A.mergeFns.push({tplName:t,fn:e})}}()),A.uiPrefix="//www.baidu.com/cache/aladdin/ui/",function(){var t=window.bds.aladdin,e=[],i={},n=0,o=function(t,e){try{t.call(e) +}catch(i){}},s=function(t){t.ajaxId=++n,i[t.ajaxId]=t},a=function(t){delete i[t.ajaxId]},r=function(t){return t.ajaxId?i.hasOwnProperty(t.ajaxId):!1},c=function(t){var e={};if(t)try{var i=new Function("return "+t)();i&&(e=i)}catch(n){}return e},d=function(){for(var t,e,i=$(".result-op").get().concat($(".result").get()),n={},o=0;e=i[o];o++)(t=e.getAttribute("tpl"))&&(n[t]?n[t].push(e):n[t]=[e]);return n},l=[],u=[];t.addDisposeHandler=function(t){u.push(t)},t.dispose=function(){for(;l.length;){var t=l.shift(); +o(t.fn,t.obj)}for(var e=u,i=0;i1)if(a)t(r.shift(),function(){r.length>0&&t(r,a) +});else for(;r.length;)t(r.shift());else{if(s=r[0],"jquery"===s&&window.jQuery)return!o.ui.jquery&&(o.ui.jquery=window.jQuery),void(a&&a());var c=s.replace(/\./g,"/"),d=s.replace(/^[\s\S]*\./,""),l=o.uiPrefix+c+"/"+d;0==c.search("style/")?e(l+".css",a):(l+=".js",m.hasOwnProperty(s)?"function"==typeof m[s]?l=m[s](s,l):"string"==typeof m[s]&&(l=m[s]):m.hasOwnProperty("*")&&(l=m["*"](s,l)),a?n(l,a):i(l))}}function e(t,e){if(e=e||u,t in s)return void e();var i=c.createElement("link");i.rel="stylesheet",i.type="text/css",i.href=t,i.setAttribute("data-for","A.ui"),d.appendChild(i),s[t]=1,e() +}function i(t){return l?void n(t,u):void(t in s||(c.write(''),s[t]=1))}function n(t,e){if(e=e||u,t in s)return void e();if(t in a)return void r[t].push(e);a[t]=1;var i=r[t]=[e],n=c.createElement("script");n.type="text/javascript",n.charset="gb2312",n.onload=n.onreadystatechange=function(){if(!this.readyState||"loaded"===this.readyState||"complete"===this.readyState){for(;i.length;)i.shift()();delete a[t],s[t]=1,n.onload=n.onreadystatechange=null +}},n.src=t,n.setAttribute("data-for","A.ui"),d.insertBefore(n,d.firstChild)}var o=window.A,s={},a={},r={},c=document,d=c.getElementsByTagName("head")[0],l=!1,u=(o.baidu,function(){}),m={"*":function(t,e){return e+"?v=20170208"},scrollbarv:function(t,e){return e+"?v=20170208"},likeshare4:function(t,e){return e+"?v=20170208"},mboxsingleton:function(t,e){return e+"?v=20170208"},sms:function(t,e){return e+"?v=20170208"},tab:function(t,e){return e+"?v=20170208"},tabs:function(t,e){return e+"?v=20170208" +},musicplayer:function(t,e){return e+"?v=20170208"},slider:function(t,e){return e+"?v=20170208"},suggestion:function(t,e){return e+"?v=20170208"},tabs5:function(t,e){return e+"?v=20170208"},tabx:function(t,e){return e+"?v=20170208"},dropdown1:function(t,e){return e+"?v=20170208"},dropdown21:function(t,e){return e+"?v=20170208"},advert:function(t,e){return e+"?v=20170208"},advert2:function(t,e){return e+"?v=20170208"},honourCard:function(t,e){return e+"?v=20170208"},honourCard3:function(t,e){return e+"?v=20170208" +},honourCard4:function(t,e){return e+"?v=20190828"},share:function(t,e){return e+"?v=20170208"},qHotCity:function(t,e){return e+"?v=20170208"},mapapi:function(t,e){return e+"?v=20170208"},qunarfilters:function(t,e){return e+"?v=20170208"},renderIframe3:function(t,e){return e+"?v=20170208"},share2:function(t,e){return e+"?v=20170208"},ALD_feedback:function(t,e){return e+"?v=20170208"},addtohome:function(t,e){return e+"?v=20170208"},addtohome2:function(t,e){return e+"?v=20170208"},gpsApi:function(t,e){return e+"?v=20170208" +},simGps:function(t,e){return e+"?v=20170208"}};$(document).ready(function(){l=!0}),o.addDisposeHandler({obj:o,fn:function(){for(var t in r)if(r.hasOwnProperty(t))for(var e=r[t];e.length;)e.pop()}}),t.cache=s,o.uicss=function(t){e(o.uiPrefix+t)},o.uijs=function(t,e){n(o.uiPrefix+t,e)},o.uijsPathMap=function(t){$.extend(m,t)},o.use=t,o.ui=o.ui||{},o.addCssText=function(t){var e="opui-style-tag-id",i="data-for",n="A.ui",o=document.getElementById(e);o||(o=document.createElement("style"),o.setAttribute("type","text/css"),o.setAttribute(i,n),o.id=e,document.getElementsByTagName("head")[0].appendChild(o)); +try{var s=document.createTextNode(t);o.appendChild(s)}catch(a){o.styleSheet&&(o.styleSheet.cssText+=t)}},$(window).on("swap_end",function(){var t=/MSIE\s?6/.test(window.navigator.userAgent),e=function(t,e,i){$(t).each(function(t,n){var o=$(n),s=new Image,a=o.attr("src");s.onload=function(){var t=e,n=i,a=this.width,r=this.height,c=a/r/(t/n);c>1?(a=a>t?t:"auto",r="auto"):(r=r>n?n:"auto",a="auto"),o.css({height:r,width:a}),s.onload=null,s=null},s.src=a})};t&&e("img.result-left-img",98,121),$(".c-feedback").bind("click",function(){var t=this; +o.use("ALD_feedback",function(){var e,i,n="right",s=$(t);s.parents("#content_left").length?(n="left",i=s.parents(".result-op"),e=i.attr("srcid")):s.parents("#content_right").length&&(i=s.parents("#con-ar"));var a={query:bds.comm.query,srcid:e,target:i,username:bds.comm.username,flag:n},r=o.ui.ALD_feedback(a);o.addDisposeHandler({obj:r,fn:r.dispose})})})})}(),$(window).on("swap_begin",function(){A.dispose(),A.__reset(),A.__clearDispose()}),$(window).on("swap_dom_ready",function(){bds.ready(A.__runAla),bds.doReady() +}),bds.event=new function(){function t(t,e){if("function"==typeof e||e instanceof Function){var i=o(t);s[i.name]=s[i.name]||[],s[i.name].push({prod:i.prod,callback:e})}}function e(t,e){for(var i=o(t),a=s[i.name]||[],r=0;rc;c++){var l=a[c];try{n(l.prod,i.prod)&&l.callback.call(this,r)}catch(u){}}}function n(t,e){return new RegExp("^"+t.replace(/\./g,"\\.").replace(/\*/g,".+")+"$").test(e) +}function o(t){var e=t.match(/(.+)\.(.+)/);return e&&e[2]?{prod:e[1],name:e[2]}:{}}var s={};this.on=t,this.off=e,this.trigger=i,this.events=s},bds.se.link=function(){function t(t,e){var i="/s?",n={tn:bds.comm.tn},o="wd="+encodeURIComponent(t);e&&(n=$.extend(n,e));for(var s in n)n.hasOwnProperty(s)&&(o+="&"+s+"="+encodeURIComponent(n[s]));return i+o}return{getSearchUrl:t}}(),!function(A){function clickDebug(){}function bindP5(){var item,index=(bds.comm.pageNum-1)*bds.comm.pageSize+1,leftItems=contentLeft&&contentLeft.children||[],rightItems=contentRight&&contentRight.children||[],topItems=contentTop&&contentTop.children||[],isResult=function(t){return 1==t.nodeType&&t.className&&/\bresult(\-op)?\b/.test(t.className) +},isFrame=function(t){return 1==t.nodeType&&t.className&&/\bc\-frame\b/.test(t.className)},setClickData=function(wrap,data){var sData=wrap.getAttribute("data-click")||"{}";try{var oData=eval("("+sData+")");sData=$.stringify($.extend(oData,data)),wrap.setAttribute("data-click",sData)}catch(e){clickDebug(e)}},bindP5ClickData=function(t){for(var e=0,i=t.length;i>e;e++)if(item=t[e],isResult(item))setClickData(item,{p5:index++});else if(isFrame(item))try{for(var n=item.children[0].children,o=0,s=n.length;s>o;o++){var a=n[o]; +isResult(a)&&setClickData(a,{p5:index++})}}catch(r){clickDebug(r)}index=(bds.comm.pageNum-1)*bds.comm.pageSize+1};bindP5ClickData(leftItems),bindP5ClickData(rightItems),bindP5ClickData(topItems)}function getXPath(t,e,i){if(i=i||[],e=e||document,t===e)return i;if(t.parentNode!==e&&(i=getXPath(t.parentNode,e,i)),t.previousSibling){var n=1,o=t.previousSibling;do 1==o.nodeType&&o.nodeName==t.nodeName&&n++,o=o.previousSibling;while(o)}return 1==t.nodeType&&i.push(t.nodeName.toLowerCase()+(n>1?n:"")),i +}function bindLogEvent(){$body=$("body"),$body.on("mousedown",function(t){var t=window.event||t,e=t.srcElement||t.target,i=$(e);try{for(var n,o,s=i;s.length&&!(s.hasClass("result")||s.hasClass("result-op")||s.hasClass("xpath-log"));)s=s.parent();if(!s.length)return;s.hasClass("result-op")?n="alop":s.hasClass("result")&&(n="as"),o=s.get(0);var a=getXPath(e,o);check(a,e,o)&&log(a,e,o,n)}catch(t){clickDebug(t)}})}function getType(t,e,i){fixPcTypeNode(e,i);for(var n=e,o=Object.getOwnPropertyNames(LOG_CLASS).map(function(t){return LOG_CLASS[t] +}),s=o.length,a=C_LOG_CLASS,r=a.length,c=t.join(" "),d=0;n!==i;){for(d=0;s>d;d++)if($(n).hasClass("OP_LOG_"+o[d]))return o[d].toLowerCase();for(d=0;r>d;d++)if($(n).hasClass("c-"+a[d]))return a[d];n=n.parentNode}return/\bh3\d*\b/.test(c)?"title":/\ba\d*\b/.test(c)?/\bimg\d*\b/.test(c)?"img":"link":/\b(input|select|button|textarea|datalist)\d*\b/.test(c)?"input":/\blabel\d*\b/.test(c)&&e.getElementsByTagName("input").length>0?"input":""}function fixPcTypeNode(t,e){for(var i=null,n="",o="";t!==e&&null===i;)n=$(t).attr("class")||"",n.replace(new RegExp(".*("+wiseClassPrefix+"\\w+).*"),function(t,e){o=e +}),o&&(i=t),t=t.parentNode;var s=n.replace(o,""),a="",r="";if(o&&n!==o){switch(a=o.replace(wiseClassPrefix,"")){case WISE_LOG_CLASS.TAB:r=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.BTN:r=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.SF:r=LOG_CLASS.LINK;break;case WISE_LOG_CLASS.MSC:r=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.VD:r=LOG_CLASS.BTN;break;case WISE_LOG_CLASS.OTHER:r=LOG_CLASS.OTHERS;break;default:r=LOG_CLASS.OTHERS}$(i).attr("class",s+" "+classPrefix+r)}}function check(t,e,i){return A.LOGTOOL?(A.LOGTOOL.call(e,t,e,i),!1):!0 +}function log(t,e,i,n){if(null==e.getAttribute("data-nolog")){var o=getType(t,e,i);if(!o)return!1;if("title"==o&&!/\ba\d*\b/.test(t))return!1;var s="http://nourl.ubs.baidu.com",a=i.getAttribute("mu")||s;if(a==s){var r=i.getElementsByTagName("h3");if(r&&r[0]){var c=r[0].getElementsByTagName("a");a=c&&c[0]?c[0].href:a}}var d,l=t.length,u=e,m=i.getAttribute("srcid"),p="",f=1==e.nodeType?e.tagName.toLowerCase():"";if("input"==o)if(/input|textarea/.test(f))p=e.value,e.type&&"password"==e.type.toLowerCase()&&(p=""); +else if(/select|datalist/.test(f)){if(e.children.length>0){var h=e.selectedIndex||0;p=e.children[h>-1?h:0].innerHTML}}else p=e.innerHTML||e.value||"";else if("img"==f&&(p=e.title),!p)for(;l>0;){if(l--,/^a\d*\b/.test(t[l])){if(d=u.href,p=u.innerHTML,null!=u.getAttribute("data-nolog"))return;break}if(u.className&&/OP_LOG_/.test(u.className)){p=u.innerHTML;break}u=u.parentNode}p=$.trim(p),d&&"#"!==d.slice(-1)&&/^http/.test(d)||(d=a);var b={rsv_xpath:t.join("-")+"("+o+")",title:p,url:d,rsv_height:i.offsetHeight,rsv_width:i.offsetWidth,rsv_tpl:i.getAttribute("tpl")},g={url:1,title:1}; +i.id&&i.id.match(/^\d+$/)&&(b.p1=i.id),m&&(b.rsv_srcid=m);var v,w,_;u=e;do{if(null!=u.getAttribute("data-nolog"))return;if(v=u.getAttribute("data-click"))try{v=new Function("return "+v)();for(w in v)"fm"==w&&null===v.fm&&(_=!0),v.hasOwnProperty(w)&&("undefined"==typeof b[w]||g[w])&&(b[w]=v[w])}catch(y){clickDebug(y)}u=u.parentNode}while(u&&u!==i.parentNode);for(var x in b)null===b[x]&&delete b[x];if("title"==o?"mu"in b&&delete b.mu:b.mu||(b.mu=a),_)"fm"in b&&delete b.fm;else if("input"==o&&(b.fm="beha",b.url=s),b.fm||(b.fm=n),!b.fm)return; +window.c(b)}}var baidu=window.baidu,classPrefix="OP_LOG_",wiseClassPrefix="WA_LOG_",LOG_CLASS={TITLE:"TITLE",LINK:"LINK",IMG:"IMG",BTN:"BTN",INPUT:"INPUT",OTHERS:"OTHERS"},WISE_LOG_CLASS={TAB:"TAB",BTN:"BTN",SF:"SF",MSC:"MSC",VD:"VD",OTHER:"OTHER"},C_LOG_CLASS=["btn"],contentLeft,contentRight,contentTop;window.initResultClickLog=function(){if(contentLeft=$("#content_left").get(0),contentRight=$("#con-ar").get(0),contentTop=$("#con-at").get(0),A.has){var t,e=$(".result-op").get();$.each(e,function(e,i){(t=i.getAttribute("srcid"))&&A.ids.push([i.id,t]) +})}bindP5()},$(document).ready(function(){bindLogEvent()})}(window.bds.aladdin);for(ai in al_arr)al_arr[ai]();$(document).ready(function(){var t;$(document).on("click",".t>a,.op-se-listen-recommend",function(e){e=window.event||e;var i=$("#wrapper_wrapper"),n=$(this).closest(".c-container"),o=n.length?n.find(".c-recommend").eq(0):[],s=n.length?n.find(".wnor-fanli-wrap"):[];!e.ctrlKey&&(o.length&&"none"===o.css("display")||s.length&&"none"===s.css("display"))&&(t=setTimeout(function(){i.find(".c-recommend").hide(),o.show(),i.find(".wnor-fanli-wrap").hide(),s.show() +},150))}),$(window).on("swap_begin",function(){this.clearTimeout(t)})}),window.onunload=function(){},bds.se.openime=function(t){window.bdime?openIme.set("py",!0):$.ajax({cache:!0,dataType:"script",url:"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/ime_c5abb66.js",success:function(){t&&openIme.set("py",!0)}})},function(){/\bbdime=[12]/.test(document.cookie)||$(window).one("swap_end",function(){})}(),bds&&bds.comm&&!bds.comm.containerSize&&(bds.comm.containerSize="s"),bds.util.setContainerWidth=function(){var t=$("#container"),e=$("#wrapper"),i=bds.util.getWinWidth(),n=bds.comm.containerSize; +if(1217>i)t.removeClass("container_l container_xl").addClass("container_s"),e.removeClass("wrapper_l").addClass("wrapper_s"),bds.comm.containerSize="s";else{if(!(i>=1217))return;t.removeClass("container_s container_xl").addClass("container_l"),e.removeClass("wrapper_s").addClass("wrapper_l"),bds.comm.containerSize="l"}n!=bds.comm.containerSize&&$(window).trigger("container_resize",bds.comm.containerSize)},bds.util.setFootStyle=function(){this.init(),this.bindEvent()},$.extend(bds.util.setFootStyle.prototype,{ie6:bds.comm.upn&&"msie"===bds.comm.upn.browser&&6==bds.comm.upn.ie,init:function(){var t=$("#foot"); +if(t.addClass("foot_fixed_bottom"),this.ie6){var e=$(window).height()+$(window).scrollTop()-t.outerHeight(!0);t.css("top",e+"px")}},setFixedIe6:function(){var t=$("#foot"),e=$(window).height()+$(window).scrollTop()-t.outerHeight(!0);t.css("top",e+"px")},bindEvent:function(){var t=this;t.ie6&&$(window).on("resize.setFootStyle, scroll.setFootStyle",function(){t.setFixedIe6()})}});var bds=bds||{};bds.se=bds.se||{},bds.se.tip=bds.se.tip||{},bds.comm.tipZIndex=220,bds.comm.tips=[],bds.se.tip=function(t){this.init=function(){this.op={target:t.target||{},mode:t.mode||"over",title:t.title||null,content:t.content||null,uncontrolled:t.uncontrolled?!0:!1,arrow:{has:1,offset:10,r:!1,c:!1},close:t.close||0,align:t.align||"left",offset:{x:10,y:20},arrowSize:16},t.arrow&&(this.op.arrow.has=0==t.arrow.has?0:1,this.op.arrow.offset=t.arrow.offset>=0?t.arrow.offset:10,this.op.arrow.r=t.arrow.r,this.op.arrow.c=t.arrow.c),t.offset&&(this.op.offset.x=t.offset.x||0==t.offset.x?t.offset.x:10,this.op.offset.y=t.offset.y||0==t.offset.y?t.offset.y:20),this.ext=t.ext||{},this.dom=$("
",{"class":"c-tip-con"}),this.visible=!1,this.rendered=!1,this.isAuto="auto"===this.op.align?!0:!1,this.bindEvent() +},this.render=function(){this.op.close&&this.enableCloseIcon(),this.op.title&&this.setTitle(this.op.title),this.op.content&&this.setContent(this.op.content),this.op.arrow.has&&this.enableArrow(),$("#c-tips-container").append(this.dom)},this.bindEvent=function(){if(this.delay={overIcon:null,outIcon:null,overDom:null,outDom:null},"over"==this.op.mode){var t=this;$(t.op.target).on("mouseenter",function(){window.clearTimeout(t.delay.outIcon),window.clearTimeout(t.delay.outDom),t.delay.overIcon=setTimeout(function(){t.show() +},200)}),t.dom.on("mouseenter",function(){window.clearTimeout(t.delay.outIcon),window.clearTimeout(t.delay.outDom),t.delay.overDom=setTimeout(function(){t.show()},200)}),$(t.op.target).on("mouseleave",function(){window.clearTimeout(t.delay.overIcon),window.clearTimeout(t.delay.overDom),t.delay.outIcon=setTimeout(function(){t.hide()},200)}),t.dom.on("mouseleave",function(){window.clearTimeout(t.delay.overIcon),window.clearTimeout(t.delay.overDom),t.delay.outIcon=setTimeout(function(){t.hide()},200) +})}else if("none"==this.op.mode){var t=this;t.show()}},this.enableArrow=function(){if(this.op.arrow.r)var t=$("
",{"class":"c-tip-arrow"}).html("").appendTo(this.dom);else if(this.op.arrow.c)var t=$("
",{"class":"c-tip-arrow"}).html("").appendTo(this.dom);else var t=$("
",{"class":"c-tip-arrow"}).html("").appendTo(this.dom);this.arrow=t},this.enableCloseIcon=function(){var t=this,e=$("
",{"class":"c-tip-close"}).html("").appendTo(this.dom).click(function(){t.hide() +});this.close=e},this.setTitle=function(t){if(t.nodeType)var e=$("

",{"class":"c-tip-title"}).append(t).appendTo(this.dom);else var e=$("

",{"class":"c-tip-title"}).html(t).appendTo(this.dom);this.title=e},this.setContent=function(t){var e=$("
").html(t).appendTo(this.dom);this.content=e},this.setArrow=function(t){if(t&&t.offset>=0&&(this.op.arrow.offset=t.offset),this.op.arrow.has&&this.arrow)switch(this.op.align){case"left":this.arrow.css({left:this.op.arrow.offset+"px"});break;case"right":this.arrow.css({right:this.op.arrow.offset+16+"px"}) +}},this.setOffset=function(t){switch(t&&(this.op.offset.x=t.x||0==t.x?t.x:this.op.offset.x,this.op.offset.y=t.y||0==t.y?t.y:this.op.offset.y),this.op.align){case"left":var e=$(this.getTarget()).offset();this.getDom().css({top:e.top+this.op.offset.y+"px",left:e.left-this.op.offset.x+"px"});break;case"right":var e=$(this.getTarget()).offset();this.getDom().css({top:e.top+this.op.offset.y+"px",left:e.left+this.op.offset.x+$(this.getTarget()).width()-this.getDom().width()+"px"})}},this.autoOffset=function(){var t,e={w:this.dom.outerWidth(),h:this.dom.outerHeight()},i=$(this.getTarget()),n=i.offset(),o={w:i.outerWidth(),h:i.outerHeight()},s=$(window),a=s.scrollTop(),r={w:s.width(),h:s.height()},c={left:0,top:0},d={}; +r.h+a-o.h-n.top>e.h?(c.top=o.h+n.top+this.op.arrowSize/2,this.arrow&&this.arrow.removeClass("c-tip-arrow-down")):n.top-a>e.h?(c.top=n.top-e.h-this.op.arrowSize/2,this.arrow&&this.arrow.addClass("c-tip-arrow-down")):(c.top=o.h+n.top+this.op.arrowSize/2,this.arrow&&this.arrow.removeClass("c-tip-arrow-down")),t=n.left+o.w/2-this.op.arrow.offset-this.op.arrowSize/2,c.left=t,c.left>0&&c.left+e.w>r.w?(c.left=n.left+o.w/2-e.w+this.op.arrow.offset+this.op.arrowSize/2,d.right=this.op.arrow.offset+this.op.arrowSize,d.left="auto",c.left<0&&(c.left=t,d.left=this.op.arrow.offset,d.right="auto")):(d.left=this.op.arrow.offset,d.right="auto"),this.dom.css(c),this.arrow&&this.arrow.css(d) +},this.enable=function(){},this.disable=function(){},this.destroy=function(){},this.show=function(){this.visible||(this.onShow(),this.rendered||(bds.comm.tips.push(this),this.render(),this.rendered=!0),this.isAuto?this.autoOffset():(this.setOffset(),this.setArrow()),this.dom.css({"z-index":bds.comm.tipZIndex}),bds.comm.tipZIndex++,this.dom.css({display:"block"}),this.visible=!0)},this.hide=function(){this.visible&&(this.dom.css({display:"none"}),this.onHide(),this.visible=!1)},this.onShow=t.onShow||function(){},this.onHide=t.onHide||function(){},this.getTarget=function(){return this.op.target +},this.getDom=function(){return this.dom},this.init()},bds.event.trigger("se.api_tip_ready"),$(document).mousedown(function(t){t=t||window.event;for(var e=t.target||t.srcElement;e&&e.tagName&&e!=document.body&&"html"!=e.tagName.toLowerCase()&&"c-tip-con"!=e.className;)e=e.parentNode;e&&"c-tip-con"!=e.className&&$(bds.comm.tips).each(function(){this.op.uncontrolled||this.op.close&&this.hide()})});var sethfPos=sethfPos||0;!function(){function t(t){if(t){var e=t.parentNode;e&&(e.style.marginBottom="20px",e.style.marginTop="2px") +}}var e="//www.baidu.com/",i=-1!=navigator.userAgent.indexOf("MSIE")&&!window.opera,n=(100*Math.random(),"百度一下,你就知道"),o="";if(window.fa=function(t){try{window.sidebar?window.sidebar.addPanel(n,e,""):window.opera&&window.print?(t.setAttribute("rel","sidebar"),t.setAttribute("href",e),t.setAttribute("title",n),t.click()):window.external.AddFavorite(e,n)}catch(i){}},i)try{var s=/se /gi.test(navigator.userAgent),a=/AppleWebKit/gi.test(navigator.userAgent)&&/theworld/gi.test(navigator.userAgent),r=/theworld/gi.test(navigator.userAgent),c=/360se/gi.test(navigator.userAgent),d=/360chrome/gi.test(navigator.userAgent),l=/greenbrowser/gi.test(navigator.userAgent),u=/qqbrowser/gi.test(navigator.userAgent),m=/tencenttraveler/gi.test(navigator.userAgent),p=/maxthon/gi.test(navigator.userAgent),f=/krbrowser/gi.test(navigator.userAgent),h=!1; +try{h=+external.twGetVersion(external.twGetSecurityID(window)).replace(/\./g,"")>1013}catch(b){}if(s||h||a||r||c||d||l||u||m||p||f){var g=document.getElementById(sethfPos?"set_f":"setf");g&&sethfPos&&(t(g),o="favorites")}else{var v=document.getElementById(sethfPos?"set_f":"setf");v&&sethfPos&&(t(v),o="home"),v.setAttribute("onClick","h(this)"),v.setAttribute("onmousedown","return ns_c({'fm':'behs','tab':'homepage','pos':0})"),v.href="/",v.target="_self",v.id="seth"}}catch(b){}else{var g=document.getElementById(sethfPos?"set_f":"setf"); +sethfPos&&(t(g),o="favorites")}o&&sethfPos&&ns_c({fm:"sethf_show",tab:o})}(),bds.se.loginCallbackFunc=null,bds.se.login=function(){var t="",e=!1,i="",n=function(t){var e=t||bds.comm.user;e&&$("#lb").replaceWith(''+escapeHTML(bds.comm.username)+'')},o=function(n){e?(bds.se.passv3.setSubpro(t),bds.se.passv3.setMakeText(i),bds.se.loginCallbackFunc=n||function(){window.document.location.reload(!0)},bds.se.passv3.show()):$.getScript(location.protocol+"//passport.baidu.com/passApi/js/uni_login_wrapper.js?cdnversion="+(new Date).getTime(),function(){initPassV3(),e=!0,bds.se.passv3.setSubpro(t),bds.se.passv3.setMakeText(i),bds.se.loginCallbackFunc=n||function(){window.document.location.reload(!0) +},bds.se.passv3.show()})},s=function(t){if(bds.comm){bds.comm.user=t,bds.comm.username=t,window.bdUser=t,bds.se.passv3.hide(),bds.se.loginCallbackFunc.call(window,1,t);for(var e=0;e",{"class":"c-tip-menu"}),toolsList=$("
    "),toolsFavo=$("
  • "),toolsFavoLink=$("").html("收藏");toolsFavoLink.on("mousedown",function(){bds.se.tool.favo(ops,item.getAttribute("id")),ns_c({fm:"tools",tab:"favo"})}),toolsFavoLink.on("mouseover",function(){$(this).css("background-color","#ebebeb")}),toolsFavoLink.on("mouseout",function(){$(this).css("background-color","#fff")}),toolsFavo.append(toolsFavoLink),toolsList.append(toolsFavo); +var toolsShare=$("
  • "),toolsShareLink=$("").html("分享");toolsShareLink.on("mousedown",function(){bds.se.tool.share(ops,item),ns_c({fm:"tools",tab:"share"})}),toolsShareLink.on("mouseover",function(){$(this).css("background-color","#ebebeb")}),toolsShareLink.on("mouseout",function(){$(this).css("background-color","#fff")}),toolsShare.append(toolsShareLink),toolsList.append(toolsShare);var officalLogo=$($(item).closest(".c-container").find("h3.t").children()[1]),vLogo=$(item).parent().find(".vstar"),baoFlag=$(item).parent().find(".c-trust-as.c-icon-baozhang-new"),isOffical=0,vLevel=0; +officalLogo&&"官方"==officalLogo.html()&&(isOffical=1),vLogo&&vLogo.attr("hint-data")&&(vLevel=$.parseJSON(vLogo.attr("hint-data")).hint[0].vlevel),baoFlag.length>0&&(vLevel=8);var toolsReport=$("
  • ").html("举报'); +toolsList.append(toolsReport),toolsDom.append(toolsList);var tTip=new bds.se.tip({target:$(".c-icon",item)[0],mode:"none",align:"left",offset:{x:33},arrow:{has:1,offset:30},content:toolsDom,ext:{category:"tools"}});tTip.onShow=function(){ns_c({fm:"tools",tab:"show"})}},this.init()},bds.se.tool.share=function(t,e){this.op=t||{},this.init=function(t,e){$.getScript(bds.comm.host.share,function(){$(bds.comm.tips).each(function(){this.op.uncontrolled||this.hide()});var i=new bds.se.tip({target:$(".c-icon",e)[0],mode:"none",offset:{x:33},arrow:{has:0},close:1,content:'
    '}),n=$(".c-tools-share",i.dom.get(0))[0]; +__bdshare.render({boxEle:n,url:t.url,txt:t.title+" -- 分享自百度搜索"})})}(this.op,e)},bds.se.tool.favo=function(t,e){if(this.op=t||{},this.init=function(t,e){if(t){var i=document.createElement("script"),n=bds.comm.host.bfe,o=bds.comm.host.favo;i.src=n+"?url="+encodeURIComponent(t.url)+"&jump="+encodeURIComponent(o+"/myfavorite/set?irt=1&t="+encodeURIComponent(t.title)+"&id="+encodeURIComponent(e)+"&c=bds.se.tool.favo.succ")+"&key=url",document.body.appendChild(i)}},bds.comm.user)this.init(this.op,e);else if(bds.se.login&&bds.se.login.open){var i=this; +bds.se.login.open(function(t){1==t&&i.init(i.op,e)})}},bds.se.tool.favo.succ=function(json){if(json.suc){if(json.status)switch(json.status){case 302:bds.se.login&&bds.se.login.open&&bds.se.login.open(function(stat,user){1==stat&&bds.se.tool.favo(eval("("+$("#"+json.id)[0].getAttribute("data-tools")+")"),json.id)});break;case 5:var succContent='
    ';succContent+='

    收藏失败,请稍后再试

    ',succContent+="
    "}}else if(json.status){var succContent='
    '; +switch(succContent+='

    已收藏至:

    ',succContent+="",succContent+="
    "}$(bds.comm.tips).each(function(){this.op.uncontrolled||this.hide()}),succContent&&new bds.se.tip({target:$(".c-icon",document.getElementById(json.id))[0],offset:{x:33},arrow:{has:0},mode:"none",arrow:{has:0},close:1,content:succContent}) +};var bds=bds||{};bds.se=bds.se||{},bds.se.tools=bds.se.tools||{},bds.se.tools=function(){var t=delayHideOnIcon=delayShowOnTip=delayHideOnTip={};$("#container").delegate(".c-tools","mouseover",function(){var e=this;window.clearTimeout(delayHideOnIcon),window.clearTimeout(delayHideOnTip),t=setTimeout(function(){var t=1;$(bds.comm.tips).each(function(){return this.getTarget()==$(".c-icon",e)[0]?(t=0,this.show(),!1):void 0}),t&&(tools=new bds.se.tool(e))},200)}).delegate(".c-tools","mouseout",function(){window.clearTimeout(t),window.clearTimeout(delayShowOnTip); +var e=this;delayHideOnIcon=setTimeout(function(){$(bds.comm.tips).each(function(){return this.getTarget()==$(".c-icon",e)[0]?(this.hide(),!1):void 0})},200)}),$("#c-tips-container").delegate(".c-tip-con","mouseover",function(){var t=this;window.clearTimeout(delayHideOnIcon),window.clearTimeout(delayHideOnTip),delayShowOnTip=setTimeout(function(){$(bds.comm.tips).each(function(){return this.getDom().get(0)==t&&this.ext.category&&"tools"==this.ext.category?(this.show(),!1):void 0})},200)}).delegate(".c-tip-con","mouseout",function(){window.clearTimeout(t),window.clearTimeout(delayShowOnTip); +var e=this;delayHideOnTip=setTimeout(function(){$(bds.comm.tips).each(function(){return this.getDom().get(0)==e&&this.ext.category&&"tools"==this.ext.category?(this.hide(),!1):void 0})},200)})};var bds=bds||{};bds.se=bds.se||{},bds.se.slide=function(t){var e,i,n,o,s,a=this,r={},d=[],l=0,u=null;this._default={target:$("#lg"),src:"",width:270,height:129,offsetLeft:0,isPad:!1,isRetina:!1,frames:103,animations:[{isAutoPlay:!0,frame_start:1,frame_end:30,delay:0,duration:100,repeats:0,process_before:function(){},event_loop:0,process_after:function(){}},{trigger_type:"click",trigger_duration:100,trigger_frame:31,trigger_fn:function(){},frame_start:32,frame_end:103,process_before:function(){},process_after:function(){},delay:0,duration:100,repeats:1,event_loop:0}]},this.timer=[],this.otherTimer=[],this.op=$.extend({},a._default,t),this.init=function(){return a.op.src?(a.createDom(),void(bds.comm.ishome&&a.op.target.length&&a.initAnimate())):void a.createPlayer() +},this.createPlayer=function(){var t=a.op.target.find("map"),e=t.length?t.find("area").eq(0):"",n=a.op.play;n&&(i=$('").appendTo(a.op.target),e.length?(i.wrap(''),e.attr("title")&&i.attr("title",e.attr("title"))):i.wrap('
    '),i.on(n.trigger_type,function(){return n.trigger_duration?a.timer.push(window.setTimeout(function(){n.trigger_fn.call(a.op) +},n.trigger_duration)):n.trigger_fn.call(a.op),!1}))},this.createDom=function(){var t='
    ',l=a.op.offsetLeft+"px 0",u=a.op.target.find("map"),m=u.length?u.find("area").eq(0):"",p=m?"pointer":p,f=a.op.animations instanceof Array?a.op.animations:[a.op.animations],h=a.op.width,b=a.op.height;d=f,o=h,s=b,t=$.format(t,a.op.src,l,p,a.op.width,a.op.height,a.op.width/2),"static"===a.op.target.css("position")&&a.op.target.css({position:"relative",width:"100%"}),a.op.target.append(t),e=n=a.op.target.find("div").eq(0),a.op.play&&(i=$('").insertAfter(e),n=i),a.op.isPad&&e.css("background-size",a.op.width*a.op.frames/2+"px "+a.op.height+"px"),window.devicePixelRatio&&window.devicePixelRatio>1&&a.op.isRetina&&e.css("background-size",a.op.width*a.op.frames+"px "+a.op.height+"px"),m.length?(e.wrap(''),m.attr("title")&&e.attr("title",m.attr("title"))):e.on("mousedown",function(){c({tab:"logo_button_click"}) +});for(var g=0,v=d.length;v>g;g++){var w=d[g],_=w.frame_start;l=-((_-1)*h)+"px 0",r[g]={"background-position":l,cursor:p}}},this.initAnimate=function(){function t(){e.show(),a.play()}if(!(l>=d.length)){var i=d[l],o=i.isAutoPlay,s=i.trigger_type,r=i.trigger_fn,c=i.trigger_duration,m=i.trigger_frame,p=$("#lg area");p.length&&p.attr("onmousedown")&&e.on("mousedown",function(){return new Function(p.attr("onmousedown"))()}),u=new Image,u.src=a.op.src,e.bind("first_animate",function(){u.complete?t():u.onload=t +}),o?e.trigger("first_animate"):s&&(a.enablePointer(),n.show().on(s,function(){r&&(m&&a.toPos(m),r.call(a.op),c?a.timer.push(setTimeout(function(){e.trigger("first_animate")},c)):e.trigger("first_animate"))}))}},this.enablePointer=function(){bds.comm.upn&&"msie"===bds.comm.upn.browser&&"6"===bds.comm.upn.ie?alert("pointer"):e.css("cursor","pointer")},this.disablePointer=function(){e.css("cursor","default")},this.play=function(){if(l>=d.length)return void a.dispose();var t=d[l],e=t.process_before; +a.dispose(),e&&e.call(a),a.animation()},this.toPos=function(t){var i=-((t-1)*o)+"px 0";e.css("background-position",i)},this.animation=function(){var t,i=d[l],s=i.duration,r=i.frame_start,c=i.frame_end,u=i.delay,m=i.repeats,p=i.process_after,f=i.trigger_type,h=r-1>0?r-1:0,b=i.event_loop||0,g=0;if(t=b?d[l]:l+1>=d.length?d[l]:d[l+1]){var v=t.trigger_type,w=t.trigger_fn,_=t.trigger_duration,y=t.trigger_frame;v&&(f&&n.off(f),l=c?(a.dispose(),g++,0!==m&&g>=m?(h=null,g=null,p&&p.call(a),l++,l0?r-1:0,a.timer.push(setTimeout(arguments.callee,s)))):a.timer.push(setTimeout(arguments.callee,s))},u))}()},this.dispose=function(t){t=t||a.timer;for(var e=0,i=t.length;i>e;e++)window.clearTimeout(t[e]);t.length=0},this.disposeOther=function(t){t=t||a.otherTimer; +for(var e=0,i=t.length;i>e;e++)window.clearTimeout(t[e]);t.length=0},this.clear=function(){a.dispose(),a.disposeOther(),n.off("click").off("hover")},this.reset=function(t){t=t||0,e.css(r[t])},this.init()};var bds=bds||{};bds.se=bds.se||{},bds.se.banner=function(t,e,i){this.init=function(){i=i||{},this.$dom_panel=$(t),this.hintText=e,this.hintIcon=i.iconClass||"",this.downUrl=i.downUrl||"",this.hintCookie=i.cookie||"",this.showNum=this.hintCookie&&$.getCookie(this.hintCookie)?Number($.getCookie(this.hintCookie)):0,this.nscTab=i.nscTab||"",this.ishome=bds.comm&&1==bds.comm.ishome?1:0,this.bannerType=i.bannerType||"",t&&e&&this.showNum<5&&!$(".baiduapp_banner")[0]&&!$(".res_top_banner")[0]&&!$(".res_top_banner_for_win")[0]&&this.show() +},this.show=function(){this.render(),this.showNum+=1,$.setCookie(this.hintCookie,this.showNum,{expires:2592e6}),this.$dom_panel.prepend(this.bannerHtml),1!=this.ishome&&this.headFloat(),this.bindEvent(),ns_c({fm:"behs",qid:bds.comm.qid,tab:(1==this.ishome?"tj_":"")+"baidu_"+(this.nscTab?this.nscTab:"topbanner")+"show"})},this.render=function(){var t=[];t=t.concat("WIN"!==this.bannerType?['
    ','',""+this.hintText+"",this.downUrl?'立即体验':"",'',"
    "]:['
    ','',""+this.hintText+"",this.downUrl?'立即体验':"",'',"
    "]),this.bannerHtml=t.join("") +},this.headFloat=function(){var t=$("#head"),e=$(window),i=$(".res_top_banner");t.css("position"),$(window).scroll(function(){var n=i.height()||0,o=e.scrollTop();n>=o?t.attr("style","position:absolute;"):t.attr("style","top:0px;_top:"+n+"px;")})},this.bindEvent=function(){if("WIN"!==this.bannerType){var t=$(".res_top_banner"),e=this;$(".res_top_banner_download",t).on("mousedown",function(){e.hintCookie&&$.setCookie(e.hintCookie,5,{expires:2592e6}),ns_c({fm:"behs",qid:bds.comm.qid,tab:(1==e.ishome?"tj_":"")+"baidu_"+(e.nscTab?e.nscTab:"topbanner")+"down"}) +}),$(".res_top_banner_close",t).on("mousedown",function(){t.detach(),e.hintCookie&&$.setCookie(e.hintCookie,5,{expires:2592e6}),ns_c({fm:"behs",qid:bds.comm.qid,tab:(1==e.ishome?"tj_":"")+"baidu_"+(e.nscTab?e.nscTab:"topbanner")+"close"})}),$(window).on("swap_begin",function(){t.detach()})}else{var t=$(".res_top_banner_for_win"),e=this;$(".res_top_banner_download",t).on("mousedown",function(){e.hintCookie&&$.setCookie(e.hintCookie,5,{expires:2592e6}),ns_c({fm:"behs",qid:bds.comm.qid,tab:(1==e.ishome?"tj_":"")+"baidu_"+(e.nscTab?e.nscTab:"topbanner")+"down"}) +}),$(".res_top_banner_close",t).on("mousedown",function(){t.detach(),e.hintCookie&&$.setCookie(e.hintCookie,5,{expires:2592e6}),ns_c({fm:"behs",qid:bds.comm.qid,tab:(1==e.ishome?"tj_":"")+"baidu_"+(e.nscTab?e.nscTab:"topbanner")+"close"})}),$(window).on("swap_begin",function(){t.detach()})}},this.init()},function(){$(window).on("swap_end",function(){var t=["union","union2baidu","union_cpro","union_nosearch","redbull","hao123"],e=bds.comm.upn,i=navigator.userAgent.toLowerCase().search(/msie [6-7]/); +if(winFilter=/NT 6.1|NT 6.2|NT 6.3/i.test(navigator.userAgent),bds.comm.topHijack)for(var n=0;n0){var o="6"==e.ie?"您的浏览器采用的IE6内核已停止维护,推荐升级到更快更安全的百度浏览器!":"您的IE浏览器版本较低,即将停止更新维护,建议升级到更快、更安全的百度浏览器。";bds.se.banner($("body")[0],o,{downUrl:"http://j.br.baidu.com/v1/t/ui/p/browser/tn/10105001/ch_dl_url",cookie:"H_PS_BBANNER",nscTab:"browser"}) +}})}(),bds.se.safeTip=function(){function t(){var t=0,e=["bd"],i="",n=[];$(".unsafe_ico_new").each(function(e,o){n.push(o.getAttribute("data-id")),i=o.getAttribute("data-tpl");var s=$(o).attr("data-href"),a=$(o).attr("href"),r=s?s:a;$("h3 a",$(o).parents(".result")).attr("href",r),t++}),t>0&&ns_c({tab:"safetip",num_unsafe:t,prd:e.join("|"),hintId:n,hintTpl:i})}return{init:t}}();var bds=bds||{};bds.se=bds.se||{},bds.se.trust=bds.se.trust||{},bds.se.trust=function(){function t(){l=[],m=[],u=[],$(".c-trust").each(function(){var t=$(this),e=this.getAttribute("data_key"),i=this.getAttribute("hint-type"); +0==t.parent(".c-icons-inner").length&&t.wrap(""),"baozhang-v"===i?-1==$.inArray(e,u)&&u.push(this.getAttribute("data_key")):-1==$.inArray(e,l)&&l.push(this.getAttribute("data_key")),-1==$.inArray(this,m)&&m.push(this)}),$(".c-trust-as").each(function(){h=$.parseJSON($(this).attr("hint-data")),h&&!$(this).attr("render")&&(f=$(this),r(h,$(this).attr("hint-type")),$(this).attr("render","render"))}),l.length<1&&u.length<1||(b&&v0&&(g=$.getJSON(p+"/?urls="+l.join(",")+"&sid="+bds.comm.sid+"&qid="+bds.comm.qid+"&v="+d+"&callback=?",i)),u.length>0&&(g=$.getJSON(p+"/?urls="+u.join(",")+"&sid="+bds.comm.sid+"&qid="+bds.comm.qid+" &tag=asyncZ&v="+d+"&callback=?",i)),b=!0)}function i(t){b=!1,0==t.code&&$(m).each(function(){var e=this.getAttribute("data_key"),i=this.getAttribute("hint-type");h=t.data[e],h&&(f=$(this),!i&&h.vstar&&h.vstar.hint&&h.vstar.hint.length>0&&(f.html(""),n(h.vstar.hint[0].vlevel,h.vstar.url)),h.medical&&(f.html(""),s()),"baozhang-v"==i&&h.brand&&(f.html(""),o(h.brand.url)),h.aviation&&(f.html(""),a())) +})}function n(t,e){var i=$("",{"class":"c-vline"}),n=$("",{"class":"vstar c-icon c-icon-v"+t,target:"_blank",onclick:"return false",href:"#","hint-data":'{"hint": [{"vlevel": '+t+"}]}"});e&&n.attr({href:e,onclick:""}),f.append(i),f.append(n),r(h.vstar,"vstar")}function o(t){var e=$("",{"class":"c-vline"}),i=$("",{"class":"c-icon c-icon-R",target:"_blank",onclick:"return false",href:"#"});t&&i.attr({href:t,onclick:""}),f.append(e),f.append(i),r(h.brand,"baozhang-v")}function s(){var t=$("",{"class":"c-vline"}),e=$("",{"class":"c-icon c-icon-med",target:"_blank",onclick:"return false",href:"#"}); +f.append(t),f.append(e),r(h.medical,"medical")}function a(){var t=$("",{"class":"c-vline"}),e=$("",{"class":"c-icon c-icon-air",target:"_blank",onclick:"return false",href:"#"});f.append(t),f.append(e),r(h.aviation,"aviation")}function r(t,e){var i=t.hint,n="over",o=t.url,s=t.webIMUrl;if(t&&i){if("newBao"==e){var a="

    "+t.label+"

    ";a+=$.format('
    #{0}',t.text)}else if("vstar"==e||"baozhang"==e||"baozhang-v"==e||"chengqi"==e||"baozhang-v-auth"==e)var a="
    "; +else var a="
    ";if(i.length>0){a+="
      ";for(var r=0;r":">",a+=c(i[r].txt),a+=""):n="none";a+="
    "}a+="
    ";var d=!1,l=!1;"baozhang-v"==e||"baozhang-v-auth"==e?d=!0:"chengqi"==e&&(l=!0);var u=new bds.se.tip({target:f,mode:n,align:"auto",content:a,arrow:{has:1,offset:35,r:d,c:l},offset:{x:0,y:25}});u.onShow=function(){if(A.use("honourCard4",function(){}),"newBao"==e)ns_c({hintUrl:f.attr("data_key"),hintTpl:e,hintId:"safe:1"}); +else{var n=i[0].vlevel,r=i[0].unfixedInfo;ns_c({hintUrl:f.attr("data_key"),hintTpl:e,hintId:n}),-1!=a.indexOf("ecard")&&setTimeout(function(){A.use("honourCard4",function(){var a=$(u.getDom()).find(".c-trust-ecard4"),c=0;"baozhang"==e&&(c=i[0].bzAppliCounts);var d={compName:t.label,vLevel:n,centerPageUrl:o};r&&(d.unfixedInfo=r),s&&(d.webIMUrl=s),e&&(d.type=e),c&&(d.bzAppliCounts=c),t.brandName&&(d.brandName=t.brandName),t.brandLogo&&(d.brandLogo=t.brandLogo),t.brandScope&&(d.brandScope=t.brandScope),t.brandRelation&&(d.brandRelation=t.brandRelation),t.authBrandName&&(d.authBrandName=t.authBrandName),t.authBizScope&&(d.authBizScope=t.authBizScope),t.authBizType&&(d.authBizType=t.authBizType),A.ui.honourCard4(a,d) +})},0)}"newBao"==e?$(".opui-honourCard4-new-bao-style",this.dom).each(function(){$("a",this).each(function(t){this.onmousedown=function(){ns_c({hintUrl:o,hintTpl:e,title:this.innerHTML,pos:t})}})}):$("li",this.dom).each(function(){$("a",this).each(function(t){this.onmousedown=function(){ns_c({hintUrl:o,hintTpl:e,title:this.innerHTML,pos:t})}})})}}}function c(t){var e=t;return e=e.replace(//g,">").replace(/'/g,"'").replace(/"/g,"""),e=e.replace("[/url]","
    ").replace(/\[url ([^\s]*)\]/,""),e=e.replace(/\[img ([^\s]*)\]/,""),e=e.replace(/\[ecard (-?[\d]{0,3})\]/,"
    ") +}var d=4,l=[],u=[],m=[];if(bds.util&&bds.util.domain&&bds.util.domain.get)var p=bds.util.domain.get("http://tag.baidu.com");else var p="http://tag.baidu.com";var f=null,h=null,b=!1,g=null,v=0;return t(),{init:t,render:i}}();var __callback_names={};$(function(){bds.comm.user&&""!=bds.comm.user&&setTimeout(function(){$.ajax({dataType:"script",cache:!0,url:(bds.su&&bds.su.urStatic?bds.su.urStatic:"http://ss.bdimg.com")+"/static/message/js/mt_show_1.8.js",success:function(){function t(){$("#imsg")[0]&&$("#u")[0]&&$("#user")[0]&&(bds.se.message&&bds.se.message.init&&bds.se.message.init({button:$("#imsg"),refer:$("#u")}),$("#user").on("mouseover",function(){$("#s_mod_msg").hide() +})),$("#imsg1")[0]&&$("#u1")[0]&&$("#user1")[0]&&(bds.se.message&&bds.se.message.init&&bds.se.message.init({button:$("#imsg1"),refer:$("#u1")}),$("#user1").on("mouseover",function(){$("#s_mod_msg").hide()}))}function e(){bds.se.message&&bds.se.message.addStyle&&bds.se.message.addStyle()}bds.comm.loginAction.push(function(i){1==i&&(t(),e())}),bds.comm.newindex?$(window).on("index_off",function(){setTimeout(function(){t(),e()},0)}):(t(),e()),$(window).on("swap_end",e)}})},0)}),$(window).on("swap_end",function(){var t='
    ',e="//www.baidu.com/cache/fpid/ielib_0108.js",i="//www.baidu.com/cache/fpid/chromelib_0108.js",n=document.title,o={flashDomId:"_FP_userDataDiv",comDomId:"_FP_comDiv",IEStoreDomId:"_FP_userDataDiv"},s=navigator.userAgent.toLowerCase(),a=!1; +(s.indexOf("msie")>=0||new RegExp("trident(.*)rv.(\\d+)\\.(\\d+)").test(s))&&(a=!0);var r,c=!1,d=new RegExp("chrome/(\\d+)"),l=s.match(d);if(l&&(c=!0,r=l[1]),!(c&&r>=39)){$("body").append(t);var u=function(t){a&&window.setTimeout(function(){document.title=n},0),window._FPID_CACHE=t,$("#_FP_userDataDiv").remove(),$("#_FP_comDiv").remove();var e=bds.comm.qid,i="_WWW_BR_API_"+(new Date).getTime(),o=window[i]=new Image;o.onload=function(){window[i]=null};var s=$.getCookie("BAIDUID"),r=$.getCookie("BIDUPSID"),c=bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://eclick.baidu.com/ps_fp.htm?"):"http://eclick.baidu.com/ps_fp.htm?",d=c+"pid=ps&fp="+t.data.fp+"&im="+t.data.im+"&wf="+t.data.wf+"&br="+t.data.br+"&qid="+e+"&bi="+s+"&psid="+r; +o.src=d};return window._FPID_CACHE?void(window._FPIDTimer=window.setTimeout(function(){u(window._FPID_CACHE)},2500)):void(window._FPIDTimer=window.setTimeout(function(){var t="";t=a?e:i,$.ajax({url:t,cache:!0,dataType:"script",success:function(){fpLib.getFp(u,o)}})},2500))}}),$(window).on("swap_begin",function(){window._FPIDTimer&&(window.clearTimeout(window._FPIDTimer),$("#_FP_userDataDiv").remove(),$("#_FP_comDiv").remove())});var bds=bds||{};bds.se=bds.se||{},bds.se.upn={regexp:/BD_UPN=([\w|\d]*)/,cookieset:[],write:function(t){document.cookie="BD_UPN="+t+"; expires="+new Date((new Date).getTime()+864e6).toGMTString() +},set:function(t){var e=this;try{$.isArray(t)&&(e.cookieset=e.cookieset.concat(t))}catch(i){}},run:function(){var t=this;try{for(var e="",i=0;i0?n.match(/lbbrowser/gi):n.indexOf("maxthon")>0?n.match(/maxthon\/[\d.]+/gi):n.indexOf("bidubrowser")>0?n.match(/bidubrowser/gi):n.indexOf("baiduclient")>0?n.match(/baiduclient/gi):n.indexOf("metasr")>0?n.match(/metasr/gi):n.indexOf("qqbrowser")>0?n.match(/qqbrowser/gi):!function(){if(navigator.mimeTypes.length>0){var t; +for(t in navigator.mimeTypes)if("application/vnd.chromium.remoting-viewer"==navigator.mimeTypes[t].type)return!0}return!1}()&&"track"in document.createElement("track")&&!("scoped"in document.createElement("style"))&&!("v8Locale"in window)&&/Gecko\)\s+Chrome/.test(navigator.appVersion)&&"track"in document.createElement("track")&&"scoped"in document.createElement("style")&&"v8Locale"in window?"qihu":n.indexOf("msie")>0?n.match(/msie [\d.]+;/gi):window.document.documentMode?"msie":n.indexOf("edge")>0?n.match(/edge\/[\d.]+/gi):n.indexOf("firefox")>0?n.match(/firefox\/[\d.]+/gi):n.indexOf("opr")>0?n.match(/opr\/[\d.]+/gi):n.indexOf("chrome")>0?n.match(/chrome\/[\d.]+/gi):n.indexOf("safari")>0&&n.indexOf("chrome")<0?n.match(/safari\/[\d.]+/gi):"" +}function e(){var t="Win32"==navigator.platform||"Windows"==navigator.platform,e="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform;if(e)return"mac";var i="X11"==navigator.platform&&!t&&!e;if(i)return"unix";var n=String(navigator.platform).indexOf("Linux")>-1;return n?"linux":t?"windows":"other"}var i=navigator.userAgent,n=i.toLowerCase();browser=(t()+"").replace(/[0-9.\/|;|\s]/gi,""),browserversion=function(){return"msie"==browser?i.search(/MSIE [2-5]/)>0?"ie5":i.indexOf("MSIE 6")>0?"ie6":i.indexOf("MSIE 7")>0?"ie7":i.indexOf("MSIE 8")>0?"ie8":i.indexOf("MSIE 9")>0?"ie9":i.indexOf("MSIE 10")>0?"ie10":"11"==window.document.documentMode?"ie11":"other":"" +}(),browsertype=function(){return n.indexOf("msie")>0||new RegExp("trident(.*)rv.(\\d+)\\.(\\d+)").test(n)?"ie":n.indexOf("firefox")>0?"firefox":n.indexOf("chrome")>0?"chrome":n.indexOf("safari")>0&&n.indexOf("chrome")<0?"safari":"other"}(),os=e(),osversion=function(){return"windows"==os?i.indexOf("Windows NT 5.1")>-1||i.indexOf("Windows XP")>-1?"xp":(isWinVista=i.indexOf("Windows NT 6.0")>-1||i.indexOf("Windows Vista")>-1)?"vista":i.indexOf("Windows NT 6.1")>-1||i.indexOf("Windows 7")>-1?"win7":i.indexOf("Windows NT 6.2")>-1||i.indexOf("Windows 8")>-1?"win8":i.indexOf("Windows NT 6.3")>-1||i.indexOf("Windows 8.1")>-1?"win8.1":i.indexOf("Windows NT 10")>-1?"win10":"other":void 0 +}();var o=function(t){var e=0;switch(t){case"msie":e=1;break;case"chrome":e=2;break;case"firefox":e=3;break;case"safari":e=4;break;case"opr":e=5;break;case"lbbrowser":e=6;break;case"maxthon":e=7;break;case"bidubrowser":e=8;break;case"metasr":e=9;break;case"qqbrowser":e="a";break;case"qihu":e="b";break;case"baiduclient":e="c";break;case"edge":e="d"}return e}(browser),s=function(t){var e=0;switch(t){case"ie6":e=1;break;case"ie7":e=2;break;case"ie8":e=3;break;case"ie9":e=4;break;case"ie10":e=5;break; +case"ie11":e=6;break;case"other":e=7;break;case"ie5":e=8}return e}(browserversion),a=function(t){var e=0;switch(t){case"windows":e=1;break;case"mac":e=2;break;case"linux":e=3;break;case"unix":e=4}return e}(os),r=function(t){var e=0;switch(t){case"xp":e=1;break;case"vista":e=2;break;case"win7":e=3;break;case"win8":e=4;break;case"win8.1":e=5;break;case"other":e=6;break;case"win10":e=7}return e}(osversion),c=function(t){var e=0;switch(t){case"ie":e=1;break;case"firefox":e=2;break;case"chrome":e=3;break; +case"safari":e=4}return e}(browsertype);return[{k:1,v:o},{k:2,v:s},{k:3,v:a},{k:4,v:r},{k:5,v:c}]}()),bds.se.upn.run(),bds.se.heightControl={check:function(){return $("#content_right").height()>$("#content_left").height()},cleanEC:function(){var t=$(".ec_bdtg"),e=$("#ec_im_container").children("div"),i=e.length,n=i-1;for(bds.se.heightControl.check()&&t&&t.length&&t.css("display","none");bds.se.heightControl.check()&&n>=0;){var o=e[n];$(o).css("display","none"),n--}},cleanRes:function(){var t=$("#content_right").find(".result-op"),e=t.length,i=e-1; +if(0==i){var n=$(t[0]).parent();$("#content_right").height()+t.height()<$("#content_left").height()&&n.css({position:"static"})}else{for(var o=null,s=null,a=i;a>=0;a--){var r=t[a];null===o&&$(r).find(".FYB_RD").length>0?o=a:null===s&&$(r).find(".FYB_BD").length>0&&(s=a)}if(null!==o&&null!==s){var c=t[o];t[o]=t[s],t[s]=c}for(;bds.se.heightControl.check()&&i>0;){var d=t[i];$(d).css("display","none"),ns_c($.extend($(d).data("click"),{rsv_tpl:$(d).attr("tpl"),fm:"hide",qid:bds.comm.qid,tab:"baidu_rightheightadjust"})),i-- +}}},init:function(){bds.se.heightControl.cleanEC(),bds.se.heightControl.cleanRes()}},!function(){function t(){this.start=null,this.mouse=[],this.mouseTime=null,this.mouseSpeed=500,this.key=[],this.scroll=[],this.scrollTime=null,this.scrollSpeed=500,this.debug=!1,this.dataStore={},this.t=null,this.cycle=null,this.MIN_SPEED=2e3,this.MAX_SPEED=1e4,this.curSpeed=5e3,this.stayTime=0,this.heartTime=[],this.heartT=null,this.MAX_LEN=2e3,this.storeLen=-1,this.MAX_SEND=100,this.hostEnum={SCLICK:0,NSCLICK:1,SESTAT:2},this.keyMap={new_input:2,new_disp:2,new_view:2,new_user:2,new_heart:2,flow_monitor:2},this.hostAddr=[bds&&bds.comm&&bds.comm.ubsurl?bds.comm.ubsurl+"?":"",(bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://nsclick.baidu.com"):"http://nsclick.baidu.com")+"/v.gif?",(bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://sestat.baidu.com"):"http://sestat.baidu.com")+"/wb.gif?"],this.commLog={},this.isFirst=!0,this.sendNum={},this.init() +}t.prototype={setCommLog:function(t,e,i){if(!bds||!bds.comm)return!1;if(!(t in this.commLog)){var n={};e&&i?(n.log=e,n.len=i):(n.log="&q="+bds.comm.queryEnc+"&qid="+bds.comm.qid+"&rsv_did="+bds.comm.did+"&rsv_tn="+bds.comm.tn+"&rsv_sid="+bds.comm.sid,n.len=(n.log+"&t="+(new Date).getTime()).length),this.commLog[t]=n}return!0},fb:function(){var t,e=this.heartTime.length;return t=0===e||1===e?3e3:this.heartTime[e-1]+this.heartTime[e-2],this.heartTime.push(t),t},sendHeart:function(t){var e=0===t?this.stayTime:(new Date).getTime()-this.start,i=bds&&bds.comm&&bds.comm.qid; +if(i&&i in this.commLog&&i in this.sendNum){var n=[{stay_time:e,send_num:this.sendNum[i]}];this.send({type:t,fm:"new_heart",data:n},this.keyMap.new_heart)}},startHeart:function(){var t=this,e=t.fb();t.stayTime+=e,t.heartT=setTimeout(function(){t.sendHeart(0),t.startHeart()},e)},preInit:function(){this.start=(new Date).getTime(),this.mouse=[],null!==this.mouseTime&&clearTimeout(this.mouseTime),this.mouseTime=null,this.key=[],this.scroll=[],null!==this.scrollTime&&clearTimeout(this.scrollTime),this.scrollTime=null,this.cycle=null,null!==this.t&&clearTimeout(this.t),this.t=null,this.storeLen=-1; +var t=bds&&bds.comm&&bds.comm.qid?bds.comm.qid:"";t&&(this.setCommLog(t),this.sendNum[t]=0),bds&&bds.comm&&(1===bds.comm.logFlagSug||1===bds.comm.globalLogFlag)&&0===bds.comm.ishome&&(null!==this.heartT&&clearTimeout(this.heartT),this.heartT=null,this.stayTime=0,this.heartTime=[],this.startHeart())},collectPoint:function(t,e){function i(t,e){var i=[];if("mouse"===t)i[0]=e.pageX,i[1]=e.pageY;else if("scroll"===t){var n=$(window);i[0]=n.scrollLeft(),i[1]=n.scrollTop()}return i}var n=t+"Time",o=this[t+"Speed"],s=this; +if(0===s[t].length){var a=i(t,e);if(a.length<2)return;return void s[t].push([(new Date).getTime()-s.start,a[0],a[1]])}null===s[n]&&(s[n]=setTimeout(function(){var o=i(t,e);return o.length<2?void(s[n]=null):(s[t].push([(new Date).getTime()-s.start,o[0],o[1]]),void(s[n]=null))},o))},singleInit:function(){var t=this;$("body").on("mousemove",function(e){t.collectPoint("mouse",e)}).on("keydown",function(e){t.key.push([(new Date).getTime()-t.start,e.keyCode])}),$(window).on("scroll",function(e){t.collectPoint("scroll",e) +}),t.singleInit=function(){}},flushData:function(t){null!==this.t&&(clearTimeout(this.t),this.t=null),this.startSend(this.fetchData(t,!0),!0),this.startSend(this.fetchData(t,!0)),bds&&bds.comm&&(1===bds.comm.logFlagSug||1===bds.comm.globalLogFlag)&&(null!==this.heartT&&(clearTimeout(this.heartT),this.heartT=null),this.sendHeart(t))},init:function(){var t=this;t.preInit(),$(window).on("swap_begin",function(){null!==t.t&&(clearTimeout(t.t),t.t=null),bds&&bds.comm&&0===bds.comm.ishome&&(1===bds.comm.logFlag||1===bds.comm.globalLogFlag)&&t.isFirst===!1&&t.sendHeart(1) +}).on("unload",function(){bds&&bds.comm&&0===bds.comm.ishome&&(1===bds.comm.logFlagSug||1===bds.comm.globalLogFlag)&&t.flushData(2)}).on("swap_end",function(){t.preInit(),t.isFirst===!0&&(t.isFirst=!1),!t.hostAddr[0]&&bds&&bds.comm&&bds.comm.ubsurl&&(t.hostAddr[0]=bds.comm.ubsurl+"?")})},getData:function(t,e,i){if(null===this.start||0===t.length)return{startTime:this.start,record:[]};var n={startTime:this.start,record:[]},o=e,s=i;void 0===o?(o=0,s=t[t.length-1][0]):void 0!==o&&"number"==typeof o&&void 0===s?(o-=this.start,s=t[t.length-1][0]):void 0!==o&&"number"==typeof o&&void 0!==s&&"number"==typeof s?(o-=this.start,s-=this.start):(o=0,s=0); +for(var a in t)if(!(t[a][0]=s))break;return n},send:function(t,e,i){if(!t)return!1;if(this.debug,0===e&&!this.hostAddr[0]){if(!(bds&&bds.comm&&bds.comm.ubsurl))return!1;this.hostAddr[0]=bds.comm.ubsurl+"?"}var n="",o="",s="";if("object"==typeof t){for(var a in t)n=t[a],"object"==typeof n&&(n=$.stringify(n)),o+=a+"="+encodeURIComponent(n)+"&";o=o.substring(0,o.length-1)}else"string"==typeof t&&(o=t);if(!i&&bds&&bds.comm&&bds.comm.qid&&(i=bds.comm.qid),!(i&&i in this.commLog))return!1; +if(o+=this.commLog[i].log,o+="&t="+(new Date).getTime(),("number"!=typeof e||0>e||e>=this.hostAddr.length)&&(e=0),s=this.hostAddr[e]+o,s.length>this.MAX_LEN)return!1;var r=window["BD_PS_C"+(new Date).getTime()]=new Image;return r.src=this.hostAddr[e]+o,!0},sendNow:function(t,e,i){if(t&&"string"==typeof t&&t in this.keyMap&&e){var n="type=3&fm="+t+"&data="+encodeURIComponent($.stringify([e]));i&&i.qid&&i.log&&i.len?(this.setCommLog(i.qid,i.log,i),this.send(n,this.keyMap[t],i.qid)):send(n,this.keyMap[t]) +}},pushData:function(t,e,i){var n=bds&&bds.comm&&bds.comm.qid?bds.comm.qid:"";if(!n)return!1;i&&i.qid&&i.log&&i.len?(this.setCommLog(i.qid,i.log,i.len),n=i.qid):this.setCommLog(n),n in this.dataStore||(this.dataStore[n]={});var o=this.dataStore[n];t in o||(o[t]=[[],[]]),i&&i.level===!0?o[t][0].push(encodeURIComponent($.stringify(e))):o[t][1].push(encodeURIComponent($.stringify(e)))},fetchData:function(t,e){function i(){for(var e,i=0,n=[],s=!1,d=this.commLog[l].len,m=this.hostAddr[r].length,p=m+("type="+t+"&fm="+u+"&data=").length+d,f=p+6,h=f;0!==o.length&&i=this.MAX_LEN||h>=this.MAX_LEN)&&(n.length>=2&&(n.pop(),s=!0),a.push({qid:l,key:u,type:t,data:"%5B"+n.join("%2C")+"%5D",host:r}),n=[],s&&(n[0]=e,s=!1),h=n.length>0?p+3+e.length+3:p+6),f=h; +n.length>0&&a.push({qid:l,key:u,type:t,data:"%5B"+n.join("%2C")+"%5D",host:r})}var n,o,s=this.dataStore,a=[],r=0,c=!1,d=bds&&bds.comm&&bds.comm.qid?bds.comm.qid:"";if(!d)return[];for(var l in s){c=l!==d?!0:!1,n=s[l];for(var u in n)u in this.keyMap&&(r=this.keyMap[u],"number"==typeof r&&void 0!==this.hostAddr[r]&&(o=n[u][0].length>0?n[u][0]:n[u][1],i.call(this),(c===!0||e!==!0)&&0===o.length&&n[u][1].length>0&&(o=n[u][1],i.call(this)),c===!0&&delete this.dataStore[l]))}return a},startSend:function(t,e){var i,n,o=this,s=e===!0?0:100,a=setInterval(function(){return t.length<=0?void clearInterval(a):(i=t.shift(),void(i&&i.qid&&i.qid in o.commLog&&(n="type="+i.type+"&fm="+i.key+"&data="+i.data,o.send(n,i.host,i.qid),i.qid in o.sendNum&&(o.sendNum[i.qid]+=1)))) +},s)},startCycle:function(){var t=this;null===t.cycle&&(t.cycle=1),t.t=setTimeout(function(){var e=t.fetchData(0),i=e.length;-1===t.storeLen&&(t.storeLen=i),0!==t.storeLen&&i/t.storeLen>=2&&t.curSpeed>t.MIN_SPEED&&(t.curSpeed-=1e3),(0===i||t.storeLen/i>=2)&&t.curSpeed0&&new bds.util.setFootStyle,bds.comm.feedback=1,bds.comm.feedback?t()?$(document).delegate(".feedback","click",function(){var t=this;$.getScript("https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/feedback_67607cd.js",function(){var e=t.getAttribute("data-feedbackid")||1,i={product_id:18,entrance_id:e},n={username:bds.comm.username,query:bds.comm.query,fb_qid:bds.comm.qid}; +bds.qa.ShortCut.initRightBar(i,n)})}):$(".feedback").on("click",function(){bds.se.ShortCut.initRightBar()}):$(document).delegate(".feedback","click",function(){var t=this;$.getScript("https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/feedback_67607cd.js",function(){var e=t.getAttribute("data-feedbackid")||1,i={product_id:18,entrance_id:e},n={username:bds.comm.username,query:bds.comm.query,fb_qid:bds.comm.qid};bds.qa.ShortCut.initRightBar(i,n)})});var e=$("#form").find('input[type="hidden"][name=rsv_t]'); +e.length?$(e).val(bds.comm.encTn):$("#form").append(''),bds.comm.did=function(){for(var t="",e=0;32>e;e++)t+=Math.floor(16*Math.random()).toString(16);return t}()}),!function(){$(window).one("swap_end",function(){$("body").on("mousedown",".se_common_hint a",function(){var t=$(this),e=t.parents(".se_common_hint"),i=e.attr("data-id")||"",n=e.attr("data-tpl")||"",o=e.find("a").index(t);ns_c_pj({hintId:i,hintTpl:n,title:t.html(),pos:o,qid:bds.comm.qid||""},"pj=hint&") +})})}(),$(function(){$("#u,#u1").delegate(".lb","click",function(){var t=$(this).attr("data-subpro");t&&bds.se.login.setSubpro(t);try{bds.se.login.open()}catch(e){}})}),$.ajax({dataType:"script",cache:!0,url:"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/js/nu_instant_search_baaa58d.js"}),window.PRE_CONN=function(){var t,e=function(t,e){var i=1*new Date;t=bds.util.domain&&bds.util.domain.get?bds.util.domain.get(t):t;var o=/^(http[s]?:\/\/)?([^\/]+)(.*)/,s=t.match(o);if(s[2]&&!n[s[2]]){n.push(s[2]); +var a=new Image;a.src=t+"?_t="+(e?e:i),a.onload=a.onerror=function(){a=null}}},i=0,n=[],o=function(){try{window.pageState&&0!=window.pageState&&1!=i||($("#kw1,#kw").one("keydown",function(){"https:"===location.protocol?(e("https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/ps_default.gif"),e("https://ss1.baidu.com/6ONWsjip0QIZ8tyhnq/ps_default.gif"),e("https://ss2.baidu.com/6ONWsjip0QIZ8tyhnq/ps_default.gif"),e("https://ss3.baidu.com/6ONWsjip0QIZ8tyhnq/ps_default.gif")):(e("http://b1.bdstatic.com/img/pc.gif",parseInt(1e3*Math.random())),e("http://ecmb.bdimg.com/public03/pc.gif"),$.each(["i7","i8","i9","t10","t11","t12"],function(t,i){e("http://"+i+".baidu.com/ps_default.gif") +}))}),1==i&&$("#kw1,#kw").one("focus",function(){"https:"===location.protocol&&e("https://www.baidu.com/con?from=self")}))}catch(t){}},s=function(){i=1,o(),r()},a=function(){r(),t=setTimeout(s,55e3)},r=function(){clearTimeout(t),i=0};return o(),{init:o,startTimer:a}}(),!function(){$.ajaxPrefilter("parts",function(t,e,i){t.__partsCallback=[],t.__partsIndex=0,i.parts=function(e){t.__partsCallback.push(e)},t.parts&&i.parts(t.parts),t.converters["* parts"]=function(t){return t}}),$.ajaxTransport("parts",function(t){if(!t.crossDomain||support.cors){var e; +return{send:function(i,n){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)void 0!==i[o]&&s.setRequestHeader(o,i[o]+"");s.send(t.hasContent&&t.data||null),e=function(i,o){var a,r,c;if(3!==s.readyState&&4!==s.readyState||o||!function(){var e=t.delimiter,i="";try{i=s.responseText +}catch(n){}if(""!=i){var o,a,r=-1,c=0;if(e)for(;;){for(;c<=t.__partsIndex&&(o=-1==r?0:r+e.length,r=i.indexOf(e,o),-1!=r);c++);if(-1==r&&4!==s.readyState)return;for(a=0;a.2&&.201>o&&"http:"==location.protocol&&(t.url=i,t.headers=n,$.ajax({url:i,headers:n,success:e}))},n=function(e){if("string"==typeof e&&"object"==typeof t.headers){if(t.headers.hasOwnProperty("content_syni")&&12495!==e.length)return e;if(t.headers.hasOwnProperty("content_syns")&&19295!==e.length)return e}return"normal"},o=function(t){$.ajax({url:"//www.baidu.com/r/plog",type:"post",data:{page_html:t}})};window.ctwin={sendRequest:i}}();var bds=bds||{};bds.se=bds.se||{},bds.se.speedTester=function(){function t(){}function e(t,e,o){o=o||19558,i(t,function(t){return function(e,i,o){n(t,i,o) +}}(e),function(t){return function(){n(t)}}(e),o)}function i(e,i,n,o){i=i||t,n=n||t;var s=new Image;s.onload=function(){this.onload=this.onerror=null,o=this.fileSize||o;var t=new Date,e=t-a,n=o/e;i(this,e,n)},s.onerror=function(){this.onload=this.onerror=null,n(this)};var a=new Date;s.src=e}function n(t,e,i){var n=new Image;n.onload=n.onerror=function(){this.onload=this.onerror=null},n.src=t+(e?"&t="+e+"&v="+i:"&t=-1&v=-1")+"&r="+Math.random()}return{start:e}}(),bds.se.speedMonitor=function(t){function e(){var t=d.pop(); +t&&i(t),r&&(c=window.setTimeout(e,a))}function i(t){var e=t.url,i=t.size||-1,n=[];n.push("id="+encodeURIComponent(t.id)),n.push("name="+encodeURIComponent(t.name)),n.push("url="+encodeURIComponent(t.url)),n.push("size="+encodeURIComponent(t.id));for(key in t.logData)n.push(key+"="+encodeURIComponent(t.logData[key]));bds.se.speedTester.start(e,l+"&"+n.join("&"),i)}function n(){return!0}var o=t.logPath||"",s=t.flag||"default",a=t.sleep||"1000",r=!1,c=null,d=[],l=o+"?flag="+s;this.start=function(){this.stop(),r=!0,e() +},this.stop=function(){r=!1,window.clearInterval(c)},this.addTask=function(t){n(t)&&d.push(t)},this.clear=function(){d=[]}},setTimeout(function(){var t=Math.random(),e="http://velocity.baidu.com/sp";if("https:"==location.protocol&&(e="https://sp0.baidu.com/6r1_czmhAB63otqbppnN2DJv/sp"),.01>t){var i=document.createElement("script");i.src=e,document.body.appendChild(i)}},1e3),!function(t){var t=t||{};t.se=t.se||{},t.se.QuickDelete=function(t,e){this.form=t,this.options=e,this._init()},t.se.QuickDelete.prototype={constructor:t.se.QuickDelete,_init:function(){this._create_elem(),this._bind_event() +},_create_elem:function(){var t=this.form,e=this.options,i=e.top||0,n=e.right||0,o=$.trim(t.val())?"block":"none",s="quickdelete",a=t.parent(),r=$('
    ').attr("id",s).attr("title","清空").addClass("quickdelete");a.addClass("quickdelete-wrap").append(r),r.css({top:i+"px",right:n+"px",display:o}),e.wrapElem=a,e.elem=r},_show:function(){0===t.comm.ishome&&this.options.elem.show()},_hide:function(){this.options.elem.hide()},_bind_event:function(){var e=this.form,i=this.options.elem,n=this; +e.on("focus",function(){$.trim(e.val())?n._show():n._hide()}).on("keyup input propertychange",function(){$.trim(e.val())?n._show():n._hide()}),i.on("click",function(){var i=t.comm.supportis?2:0;return ns_c({input_clear:t.comm.ishome+i,delete_query:encodeURIComponent(e.val())}),e.val("").focus(),n._hide(),!1}),$(window).on("swap_end index_off",function(){$.trim(e.val())?n._show():n._hide()})}},new t.se.QuickDelete($("#kw"),{top:0,right:0})}(bds),window.bds&&bds.comm&&bds.comm.ishome&&$(window).on("load",function(){if(window.ctwin&&window.ctwin.sendRequest("//www.baidu.com/?tn=baidu",{content_syni:1}),window.performance&&performance.timing){var t=function(){var t=i("navigation"),e=i("domainLookup"),n=i("connect"),o=i("secureConnection"),s=(i("redirect"),i("request")),a=i("response"),r={start:performance.timing.domLoading,end:performance.timing.domComplete},c=i("loadEvent"); +return{navigation:n.start-t.start,dns:e.value,tcp:n.value,ssl:o.start>0?n.end-o.start:0,request:a.start-s.start,response:a.value,dom:r.end-r.start,loadEvent:c.end-t.start}},e=Cookie.get("__bsi"),i=function(t){var e=performance.timing,i=e[t+"Start"]?e[t+"Start"]:0,n=e[t+"End"]?e[t+"End"]:0;return{start:i,end:n,value:n-i>0?n-i:0}},n=function(){var i=[],n=t();for(var o in n)i.push(o+"="+n[o]);i.push("protocol="+encodeURIComponent(location.protocol));var s="//www.baidu.com/nocache/fesplg/s.gif?log_type=hm&type=timing&",a=""; +a+=i.join("&"),a+="&newindex="+(window.bds&&bds.comm?bds.comm.newindex:-1),e&&(a+="&bsi="+e);var r=s+a,c=new Image,d="_LOG_"+(new Date).getTime();c.onload=function(){delete window[d]},window[d]=c,c.src=r},o=Math.random();/8498/.test(bds.comm.indexSid)&&.01>o&&setTimeout(n,500)}}),$(window).on("swap_end",function(){bds.comm.search_tool&&(bds.comm.search_tool.init=!1)}),$(window).on("swap_begin",function(){$(document).off("click.searchTool")});var langfilterTip,timefilterTip,fileTypeTip,insideSearchTip; +$(document).delegate(".head_nums_cont_outer","mousedown",function(){if("undefined"!=typeof bds.comm.search_tool){if(bds.comm.search_tool.init)return;bds.comm.search_tool.init=!0;var t=$(this),e=t.find(".search_tool").eq(0),i=t.find(".search_tool_close").eq(0),n=t.find(".head_nums_cont_inner").eq(0);e.on("click",function(){n.animate({top:0},250),ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("搜索工具"),rsv_advTool:0})}),i.on("click",function(){n.animate({top:-42},250,function(){"en"==bds.comm.search_tool.sl_lang||bds.comm.search_tool.st||bds.comm.search_tool.et||bds.comm.search_tool.si||bds.comm.search_tool.ft||bds.comm.search_tool.exact?(ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("清除"),rsv_advTool:2}),baseChangeUrl("wd="+encodeURIComponent($("#kw").val().replace(/(filetype:[^\s]* )|(site:[^\s]*)/g,"").replace(/^\"+(.+)\"+$/,"$1"))+"&sl_lang=cn&rsv_srlang=cn&rsv_rq=cn&ct=0&si=&tfflag=0&gpc="+encodeURIComponent("stf=")),$("input[name='gpc'],input[name='si'],input[name='ct']","form").val("")):ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("收起工具"),rsv_advTool:1}) +})});var o=t.find(".search_tool_la").eq(0);if(o.length>0){var s="
      ";"en"==bds.comm.search_tool.sl_lang?(s+="
    • 所有网页
    • ",s+="
    • 英文网页
    • "):"cn"==bds.comm.search_tool.sl_lang&&(s+="
    • 所有网页
    • ",s+="
    • 英文网页
    • "),s+="
    ",langfilterTip=new bds.se.tip({target:o,mode:"none",content:$(s),arrow:{has:0,offset:0},offset:{x:15,y:21}}),langfilterTip.hide() +}var a=t.find(".search_tool_tf").eq(0);if(a.length>0){var r="
      ";r+=bds.comm.search_tool.st||bds.comm.search_tool.et?"
    • 时间不限
    • ":"
    • 时间不限
    • ",r+=bds.comm.search_tool.st>=bds.comm.search_tool.thisDay&&"1"==bds.comm.search_tool.stftype?"
    • 一天内
    • ":"
    • 一天内
    • ",r+=bds.comm.search_tool.st>=bds.comm.search_tool.thisWeek&&bds.comm.search_tool.st一周内":"
    • 一周内
    • ",r+=bds.comm.search_tool.st>=bds.comm.search_tool.thisMonth&&bds.comm.search_tool.st一月内":"
    • 一月内
    • ",r+=bds.comm.search_tool.st>=bds.comm.search_tool.thisYear&&bds.comm.search_tool.st一年内":"
    • 一年内
    • ",r+="
    • ",r+="
      自定义",r+="

      ":"value='"+formatDate(1e3*bds.comm.serverTime,"-")+"' data-value='' class='c-tip-custom-input c-tip-custom-input-init'/>

      ",r+="

      ":"value='"+formatDate(1e3*bds.comm.serverTime,"-")+"' data-value='' class='c-tip-custom-input c-tip-custom-input-init'/>

      ",r+="
      自定义时间错误!
      ",r+="确认",r+="
    ",timefilterTip=new bds.se.tip({target:a,mode:"none",content:$(r),arrow:{has:0,offset:0},offset:{x:15,y:21},onShow:function(){$(this.getTarget()).width()>95&&$("ul",this.getDom()).width($(this.getTarget()).width()+20),$(".c-tip-custom-input").on("click",function(t){var e=this,i=null,n=new Date,o=$(e).parents(".c-tip-custom"),s=o.find("input[name='st']"),a=o.find("input[name='et']"); +$(e).attr("data-value")&&n.setTime($(e).attr("data-value")),$(e).parents(".c-tip-custom").find(".c-tip-custom-input").removeClass("c-tip-custom-input-focus"),$(e).addClass("c-tip-custom-input-focus"),0==$("#c-tip-custom-calenderCont").length&&$(e).parents(".c-tip-custom").append("
    "),$("#c-tip-custom-calenderCont").html("");var r={element:"c-tip-custom-calenderCont",date:formatDate(n),between:[$(e).attr("date-min")-0,$(e).attr("date-max")-0],onSelectDay:function(t){if(t+="","st"==e.name){var i=new Date(t.substr(0,4),t.substr(4,2)-1,t.substr(6,2),0,0,0); +a.attr("date-min",t)}else{var i=new Date(t.substr(0,4),t.substr(4,2)-1,t.substr(6,2),23,59,59);s.attr("date-max",t)}$(e).val(formatDate(i,"-")),$(e).attr("data-value",i.getTime()),$("#c-tip-custom-calenderCont").hide(),$(e).removeClass("c-tip-custom-input-focus").removeClass("c-tip-custom-input-init")}};"undefined"==typeof WCal?$.getScript("https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/new_wcal_3426010.js",function(){i=new WCal(r),n&&i.setDay(formatDate(n),function(t){t.className+=" op_mon_day_selected" +})}):(i=new WCal(r),n&&i.setDay(formatDate(n),function(t){t.className+=" op_mon_day_selected"})),$("#c-tip-custom-calenderCont").css({top:$(this).position().top-2,left:$(this).position().left+$(this).width()+15,display:"block"}),t.stopPropagation()}),$(".c-tip-custom-input").on("focus",function(){$(this).removeClass("c-tip-custom-input-init")}),$(".c-tip-custom-input").on("blur",function(){function t(t){var e,i=/^\s*(\d{4})-(\d\d)-(\d\d)\s*$/,n=new Date(0/0),o=i.exec(t);return o&&(e=+o[2],n.setFullYear(o[1],e-1,o[3]),e!=n.getMonth()+1&&n.setTime(0/0)),n +}var e=this,i=t($(e).val());i instanceof Date&&i.getTime()?($(e).attr("data-value",i.getTime()),$(".c-tip-timerfilter-custom-error").hide()):""==$(e).val()?($(e).attr("data-value","0"),$(".c-tip-timerfilter-custom-error").hide()):($(e).attr("data-value",""),$(".c-tip-timerfilter-custom-error").show())});try{$(".c-tip-custom-submit").off("click.searchTool").on("click.searchTool",function(t){var e=this,i=$(e).parents(".c-tip-custom"),n=parseInt($(".c-tip-custom-input",i)[0].getAttribute("data-value")/1e3),o=parseInt($(".c-tip-custom-input",i)[1].getAttribute("data-value")/1e3); +return $("#c-tip-custom-calenderCont").hide(),""!=n&&n||(n=0),""!=o&&o||!n||""==n||(o=parseInt((new Date).setHours(23,59,58)/1e3)),o>bds.comm.serverTime&&(0>=n?(n="",o=""):o=parseInt((new Date).setHours(23,59,58)/1e3)),n>o||n>bds.comm.serverTime?($(".c-tip-timerfilter-custom-error").show(),void t.stopPropagation()):(0==n&&0==o&&(n="",o=""),$(".c-tip-timerfilter-custom-error").hide(),void advChangeUrl("gpc","stf="+n+","+o+"|stftype=2","自定义时间:"+n+"|"+o,5))})}catch(t){}}}),timefilterTip.hide()}var c=t.find(".search_tool_ft").eq(0); +if(c.length>0){var d="
    "; +var l=new bds.se.tip({target:c,mode:"none",content:$(d),arrow:{has:0,offset:0},offset:{x:15,y:21}});l.hide()}var u=t.find(".search_tool_si").eq(0);u.length>0&&(insideSearchTip=new bds.se.tip({target:u,mode:"none",content:$("
    • 确认
    • 无法识别,正确格式:baidu.com

    "),arrow:{has:0,offset:0},offset:{x:15,y:21},onShow:function(){$(".c-tip-si-input").on("focus",function(){$(this).addClass("c-tip-si-input-focus") +}),$(".c-tip-si-input").on("blur",function(){$(this).removeClass("c-tip-si-input-focus")});try{$(".c-tip-timerfilter-si-submit").off("click.searchTool").on("click.searchTool",function(t){var e=this,i=$(e).parents(".c-tip-timerfilter-si"),n=$("input",i).val(),o=queryReplace("site");if(""==n)ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("站内检索:"+n),rsv_advTool_si:encodeURI(n)}),baseChangeUrl("wd="+encodeURIComponent(o)+"&si=&ct=0");else{if(!n.match(/^[\w\-_]+(\.[\w\-_]+)+$/))return $(".c-tip-timerfilter-si-error").show(),t.stopPropagation(),t.preventDefault(),!1; +$(".c-tip-timerfilter-si-error").hide(),ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("站内检索:"+n),rsv_advTool_si:encodeURI(n)}),baseChangeUrl("wd="+encodeURIComponent(o)+"&si="+encodeURIComponent(n)+"&ct=2097152")}})}catch(t){}}}),insideSearchTip.hide());var m=!0;o.on("click",function(t){m?(langfilterTip&&langfilterTip.show(),m=!1,timefilterTip&&timefilterTip.hide(),p=!0,l&&l.hide(),f=!0,insideSearchTip&&insideSearchTip.hide(),h=!0,ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("语言筛选浮层展现"),rsv_advTool_tip:1}),$(document).on("click.searchTool",function(t){0==$(t.target).parents(".c-tip-langfilter").length&&langfilterTip&&(langfilterTip.hide(),m=!0,$(document).off("click.searchTool")) +})):(langfilterTip&&langfilterTip.hide(),m=!0,$(document).off("click.searchTool")),t.stopPropagation()});var p=!0;a.on("click",function(t){p?(langfilterTip&&langfilterTip.hide(),m=!0,timefilterTip&&timefilterTip.show(),p=!1,l&&l.hide(),f=!0,insideSearchTip&&insideSearchTip.hide(),h=!0,ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("时间筛选浮层展现"),rsv_advTool_tip:0}),$(document).on("click.searchTool",function(t){0==$(t.target).parents(".c-tips-container,#c-tip-custom-calenderCont").length&&timefilterTip&&(timefilterTip.hide(),$("#c-tip-custom-calenderCont").hide(),timefilterTip.getDom().find(".c-tip-custom-input-focus").removeClass("c-tip-custom-input-focus"),p=!0,$(document).off("click.searchTool")) +})):(timefilterTip&&timefilterTip.hide(),p=!0,$(document).off("click.searchTool")),t.stopPropagation()});var f=!0;c.on("click",function(t){f?(langfilterTip&&langfilterTip.hide(),m=!0,timefilterTip&&timefilterTip.hide(),p=!0,l&&l.show(),f=!1,insideSearchTip&&insideSearchTip.hide(),h=!0,ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("网页格式浮层展现"),rsv_advTool_tip:2}),$(document).on("click.searchTool",function(t){0==$(t.target).parents(".c-tip-timerfilter-ft").length&&l&&(l.hide(),f=!0,$(document).off("click.searchTool")) +})):(l&&l.hide(),f=!0,$(document).off("click.searchTool")),t.stopPropagation()});var h=!0;u.on("click",function(t){h?(langfilterTip&&langfilterTip.hide(),m=!0,timefilterTip&&timefilterTip.hide(),p=!0,l&&l.hide(),f=!0,insideSearchTip&&insideSearchTip.show(),h=!1,ns_c({fm:"advTool",qid:bds.comm.qid,title:encodeURI("站内搜索浮层展现"),rsv_advTool_tip:3}),$(document).on("click.searchTool",function(t){0==$(t.target).parents(".c-tip-timerfilter-si").length&&insideSearchTip&&(insideSearchTip.hide(),h=!0,$(document).off("click.searchTool")) +})):(insideSearchTip&&insideSearchTip.hide(),h=!0,$(document).off("click.searchTool")),t.stopPropagation()})}}),!function(){function t(){function t(t,e){var i={top:e.offset().top,left:e.offset().left},n={width:e.width(),height:e.height()},o=function(){var t=e.attr("data-click");if(t)try{return $.parseJSON(t)}catch(i){}}()||{},s=t+(o.p5||"");return{id:s,pos:i,size:n,dataClick:o,dom:e}}var e={},i={},n=$("#wrapper");return e.topResult=n.find("#con-at").find(".result-op"),e.rightResult=n.find("#con-ar").find(".result-op"),e.leftResult=n.find("#content_left").find(".result, .result-op"),e.topResult.length&&(i.T=[],e.topResult.each(function(){i.T.push(t("T",$(this))) +})),e.rightResult.length&&(i.R=[],e.rightResult.each(function(){i.R.push(t("R",$(this)))})),e.leftResult.length&&(i.L=[],e.leftResult.each(function(){i.L.push(t("L",$(this)))})),i}bds.se.skeleton=function(){var e;return function(){return e||(e=t(),$(window).one("swap_begin",function(){e=null})),e}}()}(),!function(){$(window).on("swap_end",function(){var t=function(){var t=[],e=bds.se.skeleton(),i=e.L;return i?($.each(i,function(e,i){var n={};n.dom=i.dom,n.id=i.id,n.itime=0,n.time=0,t.push(n)}),t):null +};bds.comm.orderplay=t()})}(),!function(){function t(){var t=this;t.display={},t.expand={},t.dom={},t.init()}bds.se.display=function(){new t},t.prototype={init:function(){var t=this;t.dom=bds.se.skeleton();var e=$("#wrapper");t.dom.rsResult=e.find("#rs a"),t.dom.hintResult=e.find(".se_common_hint"),t.rs=t.dom.rsResult.length||0,t.hint=t.dom.hintResult.length||0,t.display.base=t.getBase(),t.dom.L&&t.getResult(t.dom.L),t.dom.R&&t.getResult(t.dom.R),t.dom.T&&t.getResult(t.dom.T),t.rs&&(t.display.rs=t.getRS()),t.hint&&(t.display.hint=t.getHint()),t.send() +},send:function(){var t=this;for(var e in t.display){var i={};i[e]=t.display[e],bds.log.send.sendPack("new_disp",i)}for(var n in t.expand)if(n&&t.expand[n])for(var o in t.expand[n])if(o&&t.expand[n][o]&&t.expand[n][o].length)for(var s=t.expand[n][o],a=0;an;n++){var s=i[n].id,a=e.getResultDisplay(i[n]);e.expand[s]=a.expand,delete a.expand,e.display[s]=a +}},getResultDisplay:function(t){function e(){var e=t.size;return{w:e.width||0,h:e.height||0}}function i(){var e=t.pos;return{t:e.top||0,l:e.left||0}}function n(){return d.rsv_bdr&&0!=d.rsv_bdr?d.rsv_bdr:c.hasClass(".c-border")||c.find(".c-border").length?5:0}function o(){function t(t){var e;return t&&(e=c.find(t)),e&&e.length?!0:!1}var e={};return t(".favurl")&&(e.fi=1),t(".c-text-public.c-text-mult")&&(e.gwi=1),t(".icon-unsafe-icon")&&(e.fxi=1),t(".c-icon-v")&&(e.vi=1),t(".c-icon-med")&&(e.yjji=1),t(".c-icon-air")&&(e.hxi=1),t(".c-recommend")&&(e.cr=1),e +}function s(){var t=c.find("a").not(":hidden").not("h3 a, .m"),e=[],i=/^((https?:)?\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*(:\d+)*(\/.*)*/,n=/^(\/s\?)/;return t.each(function(){var t=this.getAttribute("href");if(t&&i.test(t)){var o=t&&t.match(/.*\/link\?url=([^&]*).*/);e.push(o&&o.length&&o.length>0&&o[1]?o[1]:t)}else t&&n.test(t)&&e.push(t)}),e.length?e:!1}function a(){var t=[],e=c.find("img").not(":hidden").not("[data-nolog]");return e.length?(e.each(function(){var e={w:this.width,h:this.height}; +t.push({size:e})}),t):!1}function r(){var t=[],e=c.find("object, video, audio");return e.length?(e.each(function(){var e=$(this),i={};i.type=e.is("object")&&e.attr("type")&&e.attr("type").indexOf("flash")>=0?1:e.is("video")?2:e.is("audio")?3:0,i.size={w:e.width(),h:e.height()},t.push(i)}),t):!1}var c=t.dom,d=t.dataClick,l={};if(l.id=d.p5||"",l.srcid=d.rsv_srcid||c.attr("srcid")||0,l.tpl=c.attr("tpl")||"",l.mu=d.mu||c.attr("mu")||"",l.fm=d.fm||"as",c.is(":hidden")&&(l.show=0),0==l.show)return l;l.size=e(),l.pos=i(),n()&&(l.bdr=n()),l.com=o(); +var u=s(),m=a(),p=r();return(u||m||p)&&(l.expand={},u&&(l.link=u.length,l.expand.links=u),m&&(l.img=m.length,l.expand.imgs=m),p&&(l.app=p.length,l.expand.apps=p)),l}}}(),!function(){function t(){this.pageElementsList=[],this.scrollTime=null,this.scrollChange=!1,this.resizeTime=null,this.resizeChange=!1,this.scrollTop=$(document).scrollTop(),this.scrollLeft=$(document).scrollLeft(),this.windowHeight=$(window).height(),this.windowWidth=$(window).width()}t.prototype={init:function(){var t=bds.se.skeleton(),e=this; +$.each(["L","R","T"],function(i,n){t[n]&&($.merge(e.pageElementsList,e.getDom(t[n])),e.bindEvent(t[n]))})},getDom:function(t){var e=[];return $.each(t,function(t,i){var n={};n.top=i.pos.top,n.height=i.size.height,n.id=i.id,n.visible=0,e.push(n)}),e},sendLog:function(t,e){bds.comm.globalLogFlag&&1==bds.comm.globalLogFlag&&bds.log.send.sendPack(t,e)},bindEvent:function(t){var e=this;$.each(t,function(t,i){var n=200,o=!1,s=null;i.dom.bind("mouseenter.useraction",function(){null!==s&&clearTimeout(s),s=setTimeout(function(){e.sendLog("new_view",{type:"mouseIn",id:i.id,t:(new Date).getTime()}),o=!0,s=null +},n)}).bind("mouseleave.useraction",function(){null!==s&&(clearTimeout(s),s=null),o&&(e.sendLog("new_view",{type:"mouseOut",id:i.id,t:(new Date).getTime()}),o=!1)})})},destroy:function(){$(window).unbind(".useraction"),this.pageElementsList.splice(0,this.pageElementsList.length)},sight:function(){var t=this;$.each(this.pageElementsList,function(e,i){var n=t.scrollTopi.top;if(1!==i.visible||n){if(0===i.visible&&n){if(t.sendLog("new_view",{type:"sight",resid:i.id,action:"in",t:(new Date).getTime()}),bds.comm.orderplay&&bds.comm.orderplay.length&&"L"==i.id.substr(0,1)&&bds.comm.pageSize){var o=(parseInt(i.id.substr(1))-1)%bds.comm.pageSize,s=bds.comm.orderplay[o]; +s&&!s.itime&&(s.itime=(new Date).getTime())}i.visible=1}}else{if(t.sendLog("new_view",{type:"sight",resid:i.id,action:"out",t:(new Date).getTime()}),bds.comm.orderplay&&bds.comm.orderplay.length&&"L"==i.id.substr(0,1)&&bds.comm.pageSize){var o=(parseInt(i.id.substr(1))-1)%bds.comm.pageSize,s=bds.comm.orderplay[o];s&&(s.time+=(new Date).getTime()-s.itime,s.itime=(new Date).getTime())}i.visible=0}})},collectPoint:function(t){function e(){s[n]=setTimeout(function(){s.sendLog("new_view",i(t)),s[o]=!1,s.sight(),s[o]?e():s[n]=null +},1e3)}function i(t){if("resize"===t){var e=$(window);return s.windowHeight=e.height(),s.windowWidth=e.width(),{type:"resize",t:(new Date).getTime(),height:s.windowHeight,width:s.windowWidth}}if("scroll"===t){var i=$(document);return s.scrollTop=i.scrollTop(),s.scrollLeft=i.scrollLeft(),{type:"scroll",t:(new Date).getTime(),offsetX:s.scrollTop,offsetY:s.scrollLeft}}}var n=t+"Time",o=t+"Change",s=this;null===s[n]&&e()},collect:function(){this.init();var t=this;null!==this.resizeTime&&clearTimeout(this.resizeTime),this.resizeTime=null,null!==this.scrollTime&&clearTimeout(this.scrollTime),this.scrollTime=null,$(window).bind("focus.useraction",function(){t.sendLog("new_view",{type:"focus",t:(new Date).getTime()}) +}).bind("blur.useraction",function(){t.sendLog("new_view",{type:"blur",t:(new Date).getTime()})}).bind("resize.useraction",function(e){t.resizeChange=!0,t.collectPoint("resize",e)}).bind("scroll.useraction",function(e){t.scrollChange=!0,t.collectPoint("scroll",e)}),this.sight()},outInterface:function(){var t=this;return{collect:function(){t.collect()},destroy:function(){t.destroy()}}}},bds.se.userAction=(new t).outInterface()}(),bds.comm.recommends={},bds.comm.recommends.recommWidth=0,bds.se.recommend=function(t){var e=this; +e.op=$.extend({},e._default,t),e.id=e.op.target.attr("id"),e.init()},bds.se.recommend.prototype={constructor:bds.se.recommend,__init__:!1,currInstance:null,recommDom:null,arrowDom:null,cssDom:null,loadDom:null,global:{},_default:{target:"",arrowOffset_s:-54,arrowOffset_l:-151,container_s:276,container_l:368,startOpacity:.3,endOpacity:1},init:function(){var t=this;t.currInstance&&t.currInstance.id==t.id||(t.delay={overIcon:null,loader:null,overArrow:null},t.doWhat(function(){t.__init__||(bds.se.recommend.prototype.__init__=!0,t.createRecommDom()),t.createArrowDom(),t.delay.overArrow=setTimeout(function(){var e=t.op.arrowDom.find(".rrecom-btn"); +"none"==e.css("display")&&e.show(),t.moveArrow(function(){e.addClass("rrecom-btn-hover"),t.showRecommDom()})},100)}))},dispose:function(){bds.se.recommend.prototype.currInstance=null,bds.se.recommend.prototype.recommDom&&bds.se.recommend.prototype.recommDom.remove(),bds.se.recommend.prototype.cssDom&&bds.se.recommend.prototype.cssDom.remove(),bds.comm.recommends={},bds.se.recommend.prototype.__init__=!1,$(window).off("resize.recommend container_resize.recommend scroll.recommend")},createArrowDom:function(){var t=this,e=t.op.target.find(".rrecom-btn-parent"); +if(e.length)t.op.arrowDom=e;else{var i=['','',"","",""].join("");t.op.arrowDom=$(i),t.op.arrowDom.on("click",".rrecom-btn",function(){t.hideRecommDom()}),t.op.target.css({position:"relative"}).append(t.op.arrowDom)}},resetArrow:function(){var t=this;t.op.arrowDom.css({right:t.op.arrowOffset_s}).removeClass("rrecom-btn-click rrecom-btn-moving").find(".rrecom-btn").stop().hide().removeClass("rrecom-btn-hover") +},setArrowPos:function(){var t=this;t.currInstance&&("l"===bds.comm.containerSize?t.currInstance.op.arrowDom.css("right",t.op.arrowOffset_l):t.currInstance.op.arrowDom.css("right",t.op.arrowOffset_s))},moveArrow:function(t){var e=this,i={opacity:e.op.endOpacity};i.right="l"===bds.comm.containerSize?e.op.arrowOffset_l:e.op.arrowOffset_s,e.op.arrowDom.stop().addClass("rrecom-btn-moving rrecom-btn-click").animate(i,0,function(){e.currInstance&&e.currInstance!==e&&e.currInstance.resetArrow(),t()})},log:function(t){var e={},i=this.op.target.attr("data-click"),n=this.op.target.attr("srcid"),o=this.op.target.attr("tpl"),s=this.op.target.attr("mu"); +if(n&&(e.rsv_srcid=n),o&&(e.rsv_tpl=o),s&&(e.mu=s),i&&$.extend(e,$.parseJSON(i)),e.p1&&!e.p5&&(e.p5=e.p1),e.p5&&!e.p1&&(e.p1=e.p5),!e.p1&&!e.p5)for(var a=$("#content_left").get(0),r=a.children,d=1,l=0,u=r.length;u>l;l++)if(1==r[l].nodeType&&r[l].className&&/\bresult(\-op)?\b/.test(r[l].className)){if(r[l]===this.op.target.get(0)){e.p1=d,e.p5=d;break}d++}e.fm="beha";var m=this.op.target.find(".t>a").eq(0);return e.rsv_re_fcurl=m.length?m.attr("href"):s,e.rsv_re_fcurl=e.rsv_re_fcurl||"",e.rsv_re_fcurl=encodeURIComponent(e.rsv_re_fcurl),c($.extend(e,t)) +},getLeftP:function(){var t=this.op.target.attr("data-click");return t=$.parseJSON(t)||{},t.p1&&!t.p5&&(t.p5=t.p1),t.p5&&!t.p1&&(t.p1=t.p5),t.p5||t.p1||(t.p1=1,t.p5=1),{p1:t.p1,p5:t.p5}},s_log:function(){this.log({rsv_re_fc:2})},setCacheData:function(t){bds.comm.recommends[this.id]=t},getCacheData:function(){return bds.comm.recommends[this.id]},doWhat:function(t){var e=this.getCacheData();"[NO DATA]"!==e&&(e?t():this.getRemoteData(t))},getJsonp:function(t){var e=this.op.target.find(".t>a").eq(0),i=(e.length?e.attr("href"):this.op.target.attr("mu"))||"",n=i&&i.match(/.*url=([^&]*).*/),o=bds.comm.query; +if(n&&n.length&&n.length>0&&n[1]){i=n[1];var s="http://lcr.open.baidu.com/link?url="+encodeURIComponent(i)+"&query="+encodeURIComponent(o),a=window.bds&&bds.util&&bds.util.domain&&bds.util.domain.get(s);return $.ajax({url:a,dataType:"jsonp",jsonp:"cb",data:{data_name:t,ie:"utf-8",oe:"utf-8",format:"json",t:Date.parse(new Date)}})}},getRemoteData:function(t){var e=this,i="recommend_common_merger_online";$.when(this.getJsonp(i)).then(function(i){i&&i.data&&i.data.length&&i.data[0]?(i.data[0].hintData&&e.asynClkRcmd(i.data[0].hintData),(i.data[0].extData||i.data[0].tplData)&&(e.setCacheData(i.data),t())):e.setCacheData("[NO DATA]") +},function(){})},asynClkRcmd:function(t){var e=this,t=t[0]||{},i=$("#wrapper_wrapper");if(t&&t.linkInfo){var n=e.op.target.find(".c-recommend"),o=n.find("a"),s=t.tip||"为您推荐:";if(t.defaultHide,o&&o.length&&(o.remove(),n.append(e.buildRcmdDom(t))),!n||!n.length){var a=$('
    '+s+"
    ");i.find(".c-recommend").hide(),a.append(e.buildRcmdDom(t)),e.op.target.append(a)}}},buildRcmdDom:function(t){for(var e=this,i="",n=t.linkInfo,o=t.linkInfo2,s=encodeURIComponent(bds.comm.query),a=0,r=n.length;r>a;a++){var c=n[a].txt,d=n[a].wd,l=n[a].sa,u="c-gap-left-large"; +0==a&&(u="");var m="wd="+d+"&rsv_crq="+l+"&bs="+s,p=e.buildURL(m);i+=''+escapeHTML(c)+""}if(o){i+='';for(var a=0,r=o.length;r>a;a++){var c=o[a].txt,d=o[a].wd,l=o[a].sa,u="c-gap-left-large",f="";0==a&&(f="margin-left:88px;");var m="wd="+d+"&rsv_crq="+l+"&bs="+s,p=e.buildURL(m);i+=''+escapeHTML(c)+"" +}}return i},buildURL:function(t){var e="/s?",i={tn:bds.comm.tn},n=$("#form"),o=n.find("input[name=rsv_idx]"),s="";i.rsv_idx=o.length?o.val():"";for(var a in i)i.hasOwnProperty(a)&&i[a]&&(s+=a+"="+encodeURIComponent(i[a])+"&");return e+s+t},renderTpl:function(t,e){var i=this;if(t&&e){var n={};return n.right_recommends_merge=function(t){function n(e,n){var o,s='
    #{1}
    ',a='
    ',r='
    ',c="
    ",d="",l=(e.showrow,e.shownums),u={rsv_srcid:t.StdStg||0}; +e.list&&!e.list.length&&(e.list=[e.list]),d+=$.format(s,e.subtitle,e.subtitle,$.stringify(u)),d+='
    ';for(var m=i.op.target.find(".t>a").eq(0),p=m.length?m.attr("href"):i.op.target.attr("mu"),f=0,h=e.list.length;h>f;f++){o=e.list[f];var b={rsv_re_ename:o.name,rsv_re_uri:o.uri,rsv_re_fcpoi:n+"-"+(f+1),rsv_clk_url:p},g=i.buildURL(o.params+"&euri="+(o.uri||""));if(f==l)break;f%4===0&&(d+=a),bds.util&&bds.util.domain&&bds.util.domain.get&&(o.img=bds.util.domain.get(o.img)),d+=$.format(r,g,o.img,o.name,g,$.subByte(o.name,20),(f+1)%4===0?" c-span-last rrecom-item-rowLast":(f+1)%4===3?" rrecom-item-s":"",$.stringify(b),o.attrpic),d+=c,((f+1)%4===0||f==h-1)&&(d+=c) +}return d+=c,d+=c}var t=t||e,o="",s=12,a=0;t.card&&!t.card.length&&(t.card=[t.card]);for(var r=0,c=t.card.length;c>r;r++){var d=t.card[r];if(a+=parseInt(d.shownums||0),a>s)break;o+=n(d,r+1)}return o},n[t]?n[t]():void 0}},render:function(t){for(var e="",i=0;i','
    ','
    ','','
    ',"
    ","
    "].join(""),e="https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/rrecom_icon_e34d796.png",i=[""].join(""); +bds.se.recommend.prototype.recommDom=$(t),bds.se.recommend.prototype.cssDom=$(i),bds.se.recommend.prototype.loadDom=this.recommDom.find(".rrecom-ajax-loading"),this.setRecommSize(),$("body").append(this.cssDom).append(this.recommDom.hide()),this.bindRecommEvent(),$(window).trigger("container_resize.recommend",bds.comm.containerSize);var n=$("#foot");"static"===n.css("position")&&n.css({position:"relative","z-index":104})},setRecommSize:function(){var t=$("#content_right"),e=$("#wrapper_wrapper"),i=$("body"),n=$(window),o=t.offset(),s={w:i.width()},a={h:n.height()},r=n.scrollTop(); +e.prevAll().each(function(){var t;return"div"===this.nodeName.toLowerCase()?(t=parseInt($(this).css("margin-bottom")),bds.se.recommend.prototype.global.topGap=isNaN(t)?0:t,!1):void 0}),bds.se.recommend.prototype.global.topDom=e,bds.se.recommend.prototype.global.headDom=$("#head");var c={top:this.global.topDom.offset().top-this.global.topGap},d=this.global.headDom.offset().top-r+56;this.recommDom.height(a.h),bds.comm.recommends.recommWidth=s.w-o.left-2,this.recommDom.css({width:s.w-o.left-2,top:r<=c.top-d?c.top:d,position:r<=c.top-d?"absolute":"fixed",left:o.left}) +},setRecommPosition:function(){this.setRecommTop(),this.setRecommLeft()},setRecommTop:function(){var t=$(window).scrollTop(),e={top:this.global.topDom.offset().top-this.global.topGap},i=this.global.headDom.offset().top-t+56;this.recommDom.css({top:t<=e.top-i?e.top:i,position:t<=e.top-i?"absolute":"fixed"}).find(".rrecom-container").css({"margin-top":"0px"}),bds.se.recommend.prototype.global.originalTop=t0?t.recommDom.find(".rrecom-content").css("width",t.op.container_s-17+"px"):t.recommDom.find(".rrecom-content").css("width",t.op.container_l-17+"px"),bds.se.recommend.prototype.currInstance=t,t.render(t.getCacheData()) +},showLoading:function(){this.loadDom.show()},hideLoading:function(){this.loadDom.hide()}},$(window).one("swap_end",function(){bds.comm.upn.ie&&6==bds.comm.upn.ie||$(document).on("click","#content_left .result .t>a, #content_left .result-op .t>a, .op-se-listen-recommend",function(t){if(!t.ctrlKey&&"0"==bds.comm.urlRecFlag){var e=$(this).closest(".result, .result-op");new bds.se.recommend({target:e})}})}),$(window).on("swap_begin",function(){bds.se.recommend.prototype.currInstance&&bds.se.recommend.prototype.hideRecommDom(),bds.se.recommend.prototype.currInstance=null,bds.se.recommend.prototype.__init__=!1,bds.comm.recommends={} +}),bds.se.asynAds=function(t){var e=t.dom||"",i=t.id||"",n=t.tnp||"",o=t.wd||"",s=t.cb&&"function"==typeof t.cb?t.cb:null;if(e&&n&&o&&i){c({fm:"inlo",rsv_ad:"ad_asyn_start"});for(var a=["wd","tnp","tn","pn","bs","fenlei","adext"],r="ie=utf-8&oe=utf-8&dsp=pc",d=0;de.time?-1:t.time"+n.css+"",o+=n.html,o+=""}}),n.html(o),$(document).scrollTop()n.position().top&&c({fm:"inlo",rsv_ad:"ad_asyn_shake"}),s&&s()}else c({fm:"inlo",rsv_ad:"ad_asyn_net_error"})},error:function(){c({fm:"inlo",rsv_ad:"ad_asyn_net_error"})}})}else c({fm:"inlo",rsv_ad:"ad_asyn_param_error"}) +},!function(){function t(){c=Math.random()}function e(){d=1e3*(new Date).getTime()+Math.round(1e3*Math.random())-149e13,c>=.005&&.0051>c&&(n(),o(),s(),a())}function i(){var t=Math.round(1e3*Math.random())%u.length,e=new Image,i=new Image,n=u[t];e.onload=function(){i.src="//www.baidu.com/nocache/fesplg/s.gif?lid="+d+"&url="+encodeURIComponent(n)+"&time="+((new Date).getTime()-o)+"&suc=1&type=aboard&dev=pc&protocol="+encodeURIComponent(location.protocol)+"&ran="+(new Date).getTime()},e.onerror=function(){i.src="//www.baidu.com/nocache/fesplg/s.gif?lid="+d+"&url="+encodeURIComponent(n)+"&time=&suc=0&type=aboard&dev=pc&protocol="+encodeURIComponent(location.protocol)+"&ran="+(new Date).getTime() +};var o=(new Date).getTime();e.src=n+"?ran="+(new Date).getTime()}function n(){var t=new Image;t.onload=function(){r("cndtestsuc")},t.onerror=function(){r("cndtesterr")},t.src="//ss0.bdstatic.com/5bd1bjqh_Q23odCf/static/wiseindex/img/w_icon2.png?ran"}function o(){var t=new Image;t.onload=function(){r("cndgsstestsuc")},t.onerror=function(){r("cndgsstesterr")},t.src="//gss0.bdstatic.com/5bd1bjqh_Q23odCf/static/wiseindex/img/w_icon2.png?ran"}function s(){var t=new Image;t.onload=function(){r("cndidctestsuc") +},t.onerror=function(){r("cndidctesterr")},t.src="//m.baidu.com/logo.gif"}function a(){var t=new Image;t.onload=function(){r("cndss0bdtestsuc")},t.onerror=function(){r("cndss0bdtesterr")},t.src="//ss0.baidu.com/5bd1bjqh_Q23odCf/static/wiseindex/img/w_icon2.png?ran"}function r(t,e){if(t){e=e||{},e.st=t,e.fm="inlo";var i="&terminal=pc";for(var n in e)i+="&"+n+"="+e[n];var o=new Image;o.src=bds.util.domain.get(l+i)}}var c,d="",l="http://sestat.baidu.com/cm.gif?type=cdnmonitor",u=["https://sptidchk.baidu.com/s.gif","https://sptidcsfo.baidu.com/s.gif","https://sptidcjp.baidu.com/s.gif","https://sptidcsin.baidu.com/s.gif"]; +location.protocol.indexOf("https")>-1&&$(window).on("swap_dom_ready",function(){t()}).on("swap_end",function(){e()}),"70"==bds.comm.bfe_sample&&$(window).on("swap_end",function(){d=1e3*(new Date).getTime()+Math.round(1e3*Math.random())-149e13,i()})}(),!function(){var t,e,i=bds&&bds.util&&bds.util.domain&&bds.util.domain.get("http://sensearch.baidu.com/sensearch/selecttext");$(window).one("swap_end",function(){bds.comm.upn&&bds.comm.upn.ie&&6==bds.comm.upn.ie||$(document).on("mousedown",function(i){t&&0==$(i.target).closest(t.getDom()).length&&(t.getDom().hide(),e&&e.abort()) +}).on("mouseup",function(n){var o,s,a,r,c;if(!t||!$(n.target).closest(t.getDom()).length)try{setTimeout(function(){if(window.getSelection){if(o=window.getSelection(),0==o.rangeCount)return;s=o.getRangeAt(0),a=s.getBoundingClientRect(),r=$.trim(o.toString()),c=$("#text"==s.commonAncestorContainer.nodeName?s.commonAncestorContainer.parentNode:s.commonAncestorContainer)}else document.selection&&(o=document.selection.createRange(),s=o,a=s.getBoundingClientRect(),r=$.trim(o.text.toString()),c=$(s.parentElement())); +if(r&&r.length>1&&c.closest("#content_left .result .c-abstract,#content_left .result .t").length){e&&e.abort();var n=/[^(\u4E00-\u9FA5)]+/i;if(!n.test(r))return;e=$.ajax({url:i,dataType:"jsonp",jsonp:"cb",timeout:5e3,data:{q:r},success:function(e){var i="";if(e&&e.data&&e.data.type&&e.data.to&&"zh"==e.data.to&&e.data.result&&e.data.result.length&&e.data.result!=r)if(1==e.data.type)for(var n=e.data.result,o=0,s=Math.min(n.length,2);s>o;o++)i+=(0==o?"":"
    ")+(n[o].pre?n[o].pre+" ":""),i+=n[o].cont?$.subByte(n[o].cont,46*(1==s?2:1)+1):""; +else if(2==e.data.type){var c=e.data.result.replace(//g,">").replace(/'/g,"'").replace(/"/g,""");i='译:'+c}if(i){t=t||new bds.se.tip({target:$("body"),mode:"none",content:'
    ',align:"left",arrow:{has:1,offset:10}});var d=t.getDom();d.find(".translateContent").html('

    '+i+"

    "),d.css({top:a.bottom+$(window).scrollTop()+8,left:(a.left+a.right)/2+$(window).scrollLeft()-20}).show(),ns_c({rsv_trans_type:"showresult",rsv_trans_st:encodeURIComponent(r),rsv_qid:bds.comm.qid||""}) +}}})}},0)}catch(n){}})}),$(window).on("swap_begin",function(){t=null,e&&e.abort()})}(),!function(){function t(t){return t=o(t),t.attr("id")||t.attr("data-click")&&$.parseJSON(t.attr("data-click")).rsv_srcid||t.attr("class")||"-1"}function e(t){var e=o(t),i=e.clone();i.unbind(),i.children(".fb-list-container").remove(),i.children(".fb-list-container-first").remove(),i.children(".fb-hint-tip").remove(),i.removeAttr("style"),i.css("margin","0"),t.append(i),t.addClass("fb-list-container-hover")}function i(t){t.empty(),t.removeClass("fb-list-container-hover") +}function n(){$(".fb-hint-tip").remove(),$(".fb-list-container-first").remove(),bds.se.ShortCut.ldialog&&bds.se.ShortCut.ldialog.destory(),bds.se.ShortCut.rdialog&&bds.se.ShortCut.rdialog.destory(),bds.se.ShortCut.ldialog=0,bds.se.ShortCut.rdialog=0,$(".fb-mask").remove(),$(".fb-list-container").remove()}function o(t){return t.closest(t.closest("#rs").length?"#rs":t.closest("#con-ar").length?".result-op":"#content_left > div")}function s(){var t=$("#content_left > div");t.append("
    "),$("#content_left > div").css("overflow","visible"),$(".leftBlock .fb-list-container").remove(),$(".hit_top_new .fb-list-container").remove(),t.each(function(){$(this).find(".fb-list-container").css("width",$(this).width()+20),$(this).find(".fb-list-container").css("height",$(this).height()+10) +}),$(".c-container").first().append("
    "),$(".c-container").first().find(".fb-list-container-first").css("width",$(".c-container").first().width()+20),$(".c-container").first().find(".fb-list-container-first").css("height",$(".c-container").first().height()+10),$(".c-container").first().append('
    鼠标点击,可对单条结果进行反馈
    ');var e=$("#rs");e.append("
    "),e.find(".fb-list-container").css("width",e.width()+20),e.find(".fb-list-container").css("height",e.height()+10); +var i=$("#con-ar .result-op");i.append("
    "),i.each(function(){$(this).find(".fb-list-container").css("width",$(this).width()+20),$(this).find(".fb-list-container").css("height",$(this).height()+10)})}function a(t){var e="";e=e+'',e=e+'
    '+t[0].value+'
    '; +for(var i=0;i"+t[i].value+"
    ";return e+="
    "}function r(t,e,i,o){this.init=function(){var i=new Date;return this.title=t,this.query=decodeURIComponent(bds.comm.query),this.srcid=e&&e.attr("srcid")||"-1",this.tpl=e&&e.attr("tpl")||"",this.url=window.location.href||"",this.time=i.getFullYear()+"/"+(i.getMonth()+1)+"/"+i.getDate()+" "+i.getHours()+":"+i.getMinutes()+":"+i.getSeconds(),this.username=bds.comm.username||"",this.order=e&&e.attr("id")||"",this.entry="1",this.build(),this.bindEvent(),this.render(),this +},this.build=function(){var t="";if("sug"===o){var e="
    ";i.forEach(function(t){e+="
    "+t+"
    "}),e+="
    ";var n=e,s='
    ' +}else var r=[{key:"27642",value:"申请删除提示词"},{key:"27464",value:"内容或图片陈旧"},{key:"27465",value:"变形、错乱、乱码等问题"},{key:"27469",value:"页面结果与搜索词无关"},{key:"27467",value:"其他问题及建议"}],n=a(r),s='
    ';var c="",d="";bds.se.ShortCut.uploadImg&&"sug"!==o&&(c='
    包含屏幕截图
    ',d='
    '); +var l='
    ',u="搜索结果反馈";"sug"===o&&(u="搜索联想词反馈"),t='
    ×

    '+u+'

    '+n+s+c+d+l+'
    请填写描述反馈
    请留下您的联系方式
    邮箱格式不正确
    '; +var m=document.createElement("div");m.id="fb_baidu_right_dialog",m.className="fb-feedback-right-dialog",m.className="fb-feedback-right-dialog",m.setAttribute("data-html2canvas-ignore","true"),m.innerHTML=t,this.dom=m},this.bindEvent=function(){var t=this;$(this.dom).find(".fb-close").on("click",function(){n()}),$(this.dom).find("#fb_right_post_save").on("click",function(){$(t.dom).find(".fb-textarea textarea").val()?-1==[27642].indexOf(Number($(t.dom).find(".fb-select-value").val()))||$(t.dom).find(".fb-email").val()?$(t.dom).find(".fb-email").val()&&!/^(\w)+(\.\w+)*@(\w)+((\.\w{2,3}){1,3})$/.test($(t.dom).find(".fb-email").val())?($(t.dom).find(".fb-hint-error-email").css("display","block"),setTimeout(function(){$(t.dom).find(".fb-hint-error-email").css("opacity","1"),setTimeout(function(){$(t.dom).find(".fb-hint-error-email").removeAttr("style") +},1500)},50)):($(t.dom).find(".fb-modal ").css("display","none"),$(t.dom).find(".fb-vertify").css("display","block"),$.getScript("https://wappass.baidu.com/static/machine/js/api/mkd.js",function(){var e;if(window.PassMachine&&window.PassMachine.mkd){var i=window.PassMachine.mkd;e=new i({type:"spin",id:"fb_vertify",ak:"dabac7bfca28a1c17b092fc071d0f56c",verifySuccessFn:function(e){t.post(e.ds,e.tk)}}),e.initVcode()}})):($(t.dom).find(".fb-hint-no-email").css("display","block"),setTimeout(function(){$(t.dom).find(".fb-hint-no-email").css("opacity","1"),setTimeout(function(){$(t.dom).find(".fb-hint-no-email").removeAttr("style") +},1500)},50)):($(t.dom).find(".fb-hint-no-content").css("display","block"),setTimeout(function(){$(t.dom).find(".fb-hint-no-content").css("opacity","1"),setTimeout(function(){$(t.dom).find(".fb-hint-no-content").removeAttr("style")},1500)},50))}),$(this.dom).find(".fb-cut-input").on("click",function(){$(t.dom).find(".fb-cut-input").hasClass("c-icon")?($(t.dom).find(".fb-cut-input").removeClass("c-icon"),$(t.dom).find(".fb-cut-input").removeClass("c-icon-success"),$(t.dom).find(".fb-canvas-block").css("display","none")):($(t.dom).find(".fb-cut-input").addClass("c-icon"),$(t.dom).find(".fb-cut-input").addClass("c-icon-success"),$(t.dom).find(".fb-canvas-block").css("display","block")) +}),$(this.dom).find(".fb-type-selected").on("click",function(){"block"==$(t.dom).find(".fb-type-container").css("display")?$(t.dom).find(".fb-type-container").hide():$(t.dom).find(".fb-type-container").show()}),$(this.dom).find(".fb-checkbox").on("click",function(t){"block"==$(t.currentTarget).find(".fb-selected").css("display")?($(t.currentTarget).find(".fb-selected").css("display","none"),$(t.currentTarget).removeClass("fb-checkbox-selected")):($(t.currentTarget).find(".fb-selected").css("display","block"),$(t.currentTarget).addClass("fb-checkbox-selected")) +}),$(this.dom).find(".fb-type-item").on("click",function(e){$(t.dom).find(".fb-type-container").hide(),$(t.dom).find(".fb-type-selected").html($(e.currentTarget).text()+"
    "),$(t.dom).find(".fb-select-value").val($(e.currentTarget).attr("value"))}),$(this.dom).find(".fb-des-content").on("click",function(){$(".c-container").first().children(".fb-hint-tip").remove(),$(".c-container").first().children(".fb-list-container-first").remove()})},this.render=function(){$("body").append(this.dom) +},this.grayed=function(t){t?$(this.dom).css("visibility","hidden"):$(this.dom).removeAttr("style")},this.destory=function(){$(this.dom).remove(),$(document).off("scroll.feedback")},this.post=function(t,e){var i=this;this.content=$(this.dom).find(".fb-des-content").val(),this.type=$(this.dom).find(".fb-select-value").val(),this.email=$(this.dom).find(".fb-email").val();var s=$(this.dom).find(".fb-checkbox.fb-checkbox-selected");sugText=[],s.each(function(t,e){sugText.push($(e).find("div").text())}),this.sugText=sugText.join("&"); +var a=26138,r=i.type;("27642"==this.type||"27643"==this.type||"33081"==this.type)&&(a=this.type,r=0),data="sug"===o?{product_type:"27642",sug_text:i.sugText,content:this.content,query:this.query,time:this.time,srcid:this.srcid,url:this.url,entry:"3",platform:"pc",ds:t,token:e}:{product_type:a,content:this.content,type:r,img_base64:bds.se.ShortCut.img_base64,email:this.email,query:this.query,srcid:this.srcid,tpl:this.tpl,url:this.url,time:this.time,username:this.username,order:this.order,entry:this.entry,platform:"pc",ds:t,token:e},bds.se.ShortCut.uploadImg?$.post(bds.se.ShortCut.domain,data).success(function(t){"Success"==jQuery.parseJSON(t).status +}).error(function(){}):$.ajax({url:bds.se.ShortCut.domain,dataType:"jsonp",data:data,jsonp:"cb1"}).success(function(t){"Success"==t.status}).error(function(){}),$(this.dom).find(".fb-vertify").remove(),$(this.dom).find(".fb-mask").remove(),$(this.dom).find(".fb-success").css("display","block"),setTimeout(function(){n()},1e3)},this.init()}function c(t,e){this.init=function(){var e=new Date;if(this.query=decodeURIComponent(bds.comm.query),this.srcid=t&&t.attr("srcid")||"-1",this.tpl=t&&t.attr("tpl")||"",this.cururl=t&&t.find("a").eq(0).attr("href")||"",this.url=window.location.href||"",this.time=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds(),this.username=bds.comm.username||"",t)if(t.closest("#con-ar").length){this.order="con-ar"; +var i=[{key:"27642",value:"申请删除提示词"},{key:"33081",value:"侵犯个人隐私与权益"},{key:"27464",value:"内容或图片陈旧"},{key:"27465",value:"变形、错乱、乱码等问题"},{key:"27469",value:"页面结果与搜索词无关"},{key:"27467",value:"其他问题及建议"}];this.content_tips_div=a(i)}else if(t.attr("id")&&"rs"==t.attr("id")){this.order="rs";var i=[{key:"27642",value:"申请删除提示词"},{key:"33081",value:"侵犯个人隐私与权益"}];this.content_tips_div=a(i)}else if(t.attr("tpl")&&"se_com_default"!=t.attr("tpl")){this.order=t.attr("id")||"-1";var i=[{key:"27464",value:"内容或图片陈旧"},{key:"33081",value:"侵犯个人隐私与权益"},{key:"27465",value:"变形、错乱、乱码等问题"},{key:"27466",value:"这条结果与搜索词无关"},{key:"27467",value:"其他问题及建议"}]; +this.content_tips_div=a(i)}else if(t.attr("tpl")){this.order=t.attr("id")||"-1";var i=[{key:"27643",value:"申请删除或更新这条信息"},{key:"33081",value:"侵犯个人隐私与权益"},{key:"27464",value:"内容或图片陈旧"},{key:"27465",value:"变形、错乱、乱码等问题"},{key:"27466",value:"这条结果与搜索词无关"},{key:"27467",value:"其他问题及建议"}];this.content_tips_div=a(i)}else{this.order="ec";var i=[{key:"27470",value:"推广信息侵权"},{key:"33081",value:"侵犯个人隐私与权益"},{key:"27471",value:"推广信息质量差"},{key:"27472",value:"推广信息与搜索词无关"},{key:"27473",value:"其他问题及产品建议"}];this.content_tips_div=a(i) +}return this.entry="2",this.top=t.offset().top-4,this.left=t.closest("#content_right").length?t.offset().left-390-23:t.offset().left+t.width()+30,this.build(),this.bindEvent(),this.render(),this},this.build=function(){var t="",e='
    ',i='
    ',n='

    请上传照片及身份证照片示例

    ',o='

    示例

    身份证正反面照示例

    身份证照片需要信息清晰,仅仅用于审核,百度会保证隐私安全

    '; +t='
    ×

    意见反馈

    '+this.content_tips_div+e+i+n+'
    请填写描述反馈
    请提交图片
    请留下您的联系方式
    邮箱格式不正确
    '+o; +var s=document.createElement("div");s.id="fb_baidu_list_dialog",s.className="fb-feedback-list-dialog",s.setAttribute("data-html2canvas-ignore","true"),s.innerHTML=t,this.dom=s,$(this.dom).css("top",this.top),$(this.dom).css("left",this.left),"con-ar"==this.order&&$(this.dom).attr("class","fb-feedback-list-dialog-left")},this.bindEvent=function(){var t=this;$(this.dom).find(".fb-close").on("click",function(){t.destory(),i($(".fb-list-container")),bds.se.ShortCut.key=0,bds.se.ShortCut.rdialog&&bds.se.ShortCut.rdialog.grayed(0),bds.se.ShortCut.rdialog||n() +}),$(this.dom).find("#fb_list_post_save").on("click",function(){$(t.dom).find(".fb-textarea textarea").val()?-1==[27642,27643].indexOf(Number($(t.dom).find(".fb-select-value").val()))||$(t.dom).find(".fb-email").val()?$(t.dom).find(".fb-email").val()&&!/^(\w)+(\.\w+)*@(\w)+((\.\w{2,3}){1,3})$/.test($(t.dom).find(".fb-email").val())?($(t.dom).find(".fb-hint-error-email").css("display","block"),setTimeout(function(){$(t.dom).find(".fb-hint-error-email").css("opacity","1"),setTimeout(function(){$(t.dom).find(".fb-hint-error-email").removeAttr("style") +},1500)},50)):($(t.dom).find(".fb-modal ").css("display","none"),$(t.dom).find(".fb-vertify").css("display","block"),$.getScript("https://wappass.baidu.com/static/machine/js/api/mkd.js",function(){var e;if(window.PassMachine&&window.PassMachine.mkd){var i=window.PassMachine.mkd;e=new i({type:"spin",id:"fb_vertify_list",ak:"dabac7bfca28a1c17b092fc071d0f56c",verifySuccessFn:function(e){t.post(e.ds,e.tk)}}),e.initVcode()}})):($(t.dom).find(".fb-hint-no-email").css("display","block"),setTimeout(function(){$(t.dom).find(".fb-hint-no-email").css("opacity","1"),setTimeout(function(){$(t.dom).find(".fb-hint-no-email").removeAttr("style") +},1500)},50)):($(t.dom).find(".fb-hint-no-content").css("display","block"),setTimeout(function(){$(t.dom).find(".fb-hint-no-content").css("opacity","1"),setTimeout(function(){$(t.dom).find(".fb-hint-no-content").removeAttr("style")},1500)},50))}),$(this.dom).find(".fb-type-selected").on("click",function(){"block"==$(t.dom).find(".fb-type-container").css("display")?$(t.dom).find(".fb-type-container").hide():$(t.dom).find(".fb-type-container").show()}),$(this.dom).find(".fb-type-item").on("click",function(e){$(t.dom).find(".fb-type-container").hide(),$(t.dom).find(".fb-type-selected").html($(e.currentTarget).text()+"
    "),$(t.dom).find(".fb-select-value").val($(e.currentTarget).attr("value")),33081==$(e.currentTarget).attr("value")?$(t.dom).find(".fb-photo-block").css("display","block"):$(t.dom).find(".fb-photo-block").css("display","none") +}),$(this.dom).find(".fb-photo-sub-block").on("click",function(){$(this).addClass("fb-photo-sub-block-hide"),$(t.dom).find(".fb-photo-update-hide").removeClass("fb-photo-update-hide"),$(t.dom).find(".fb-photo-update-hide").removeClass("fb-photo-update-hide")}),$(this.dom).find(".fb-photo-update-item-block").on("click",function(){var e=$(t.dom),i=$(this),n=$(this).index(),o=$(t.dom).find(".fb-photo-update-block").find("input").get(n);o.click(),$(o).on("change",function(t){var n=o.files[0],s=n.type; +if(s&&("image/png"==s||"image/jpg"==s||"image/jpeg"==s||"image/jpeg"==s)&&$(t.currentTarget).val()&&n.size<2097152){var a=new FileReader;a.addEventListener("load",function(){i.find(".fb-photo-update-item-show-img").attr("src",a.result),i.find(".fb-photo-update-item-close").css("display","block"),i.find(".fb-photo-update-item-show-img").css("display","block");var t=e.find(".fb-photo-block"),n=t.attr("upload_num");t.attr("upload_num",Number(n)+1)},!1),a.readAsDataURL(n)}})}),$(this.dom).find(".fb-photo-update-item-close").on("click",function(e){var i=$(t); +e.stopPropagation();var n=$(this).parent(".fb-photo-update-item-block").index();$(this).siblings("img").attr("src",""),$(".fb-photo-update-block").find("input").eq(n).val(""),$(this).css("display","none"),$(this).siblings("img").css("display","none");var o=i.find(".fb-photo-block"),s=o.attr("upload_num");o.attr("upload_num",Number(s)+1)}),$(this.dom).find(".fb-photo-block-title-ex").on("click",function(e){e.stopPropagation(),$(t.dom).find(".fb-modal").css("display","none"),$(t.dom).find(".fb-photo-block-example").css("display","block") +}),$(this.dom).find(".fb-photo-block-example-header img").on("click",function(e){e.stopPropagation(),$(t.dom).find(".fb-modal").css("display","block"),$(t.dom).find(".fb-photo-block-example").css("display","none")})},this.render=function(){$("body").append(this.dom)},this.destory=function(){$(this.dom).remove()},this.post=function(t,i){var o=this;this.content=$(this.dom).find(".fb-des-content").val(),this.type=$(this.dom).find(".fb-select-value").val(),this.email=$(this.dom).find(".fb-email").val(); +var s=$(this.dom).find(".fb-photo-block").find(".fb-photo-update-item-show-img");bds.se.ShortCut.get_Snapshot_list(-bds.se.ShortCut.curListDom.offset().left,-bds.se.ShortCut.curListDom.offset().top,bds.se.ShortCut.curListDom.width()+20,bds.se.ShortCut.curListDom.height()+12,function(){var n=26138,a=o.type;("27642"==o.type||"27643"==o.type||"33081"==o.type)&&(n=o.type,a=0),data={product_type:n,content:o.content,type:a,img_base64:bds.se.ShortCut.img_base64_list,email:o.email,query:o.query,srcid:o.srcid,tpl:o.tpl,url:o.url,time:o.time,username:o.username,order:o.order,entry:o.entry,platform:"pc",cururl:o.cururl,img_base64_1:s.eq(0).attr("src"),img_base64_2:s.eq(1).attr("src"),img_base64_3:s.eq(2).attr("src"),img_base64_4:s.eq(3).attr("src"),ds:t,token:i},e&&(data.ala=1),bds.se.ShortCut.uploadImg?$.post(bds.se.ShortCut.domain,data).success(function(t){"Success"==jQuery.parseJSON(t).status +}).error(function(){}):$.ajax({url:bds.se.ShortCut.domain,dataType:"jsonp",data:data,jsonp:"cb1"}).success(function(t){"Success"==t.status}).error(function(){})}),$(this.dom).find(".fb-vertify").remove(),$(this.dom).find(".fb-mask").remove(),$(this.dom).find(".fb-success").css("display","block"),setTimeout(function(){n()},1e3)},this.init()}bds&&bds.se&&(bds.se.ShortCut={base_url_path:"http://f3.baidu.com",up_file:!1,is_feedbacking:!1,product_id:0,entrance_id:0,send_img:!1,img_data:"",onlyUpFile:!1,pro_data:"",scrollTop:0,ldiaInf:{},rdiaInf:{},canvas_block_height:0,key:0,domain:bds.util.domain.get("api.open.baidu.com")+"/pae/common/api/feedback",img_base64:"",img_base64_list:"",initRightBar:function(){this.html2canvas(),this._getCss(),this._identifyCanvas()&&this._identifyCors()?(bds.se.ShortCut.uploadImg=!0,this.get_Snapshot()):bds.se.ShortCut.uploadImg=!1 +},initSugBar:function(t){$(window).scrollTop(0),$(".fb-mask").length>0&&n(),bds.se.ShortCut.rdialog=new r("","",t,"sug"),$("#container").append("
    "),$(".fb-mask").width($("body").width()),$(".fb-mask").height($("#wrapper_wrapper").height()>$(window).height?$("#wrapper_wrapper").height():$(window).height()),$(".fb-mask").on("click",function(){n(),bds.se.ShortCut.ldialog&&bds.se.ShortCut.ldialog.destory()})},_getCss:function(){bds.util.addStyle("#content_left > div,#rs,#con-ar .result-op{position: relative;}") +},_identifyCanvas:function(){try{var t=document.createElement("canvas").getContext("2d");return t=null,!0}catch(e){return!1}},_identifyCors:function(){var t=new XMLHttpRequest;return"withCredentials"in t},init_ala:function(t){this.html2canvas(),bds.se.ShortCut.uploadImg=this._identifyCanvas()&&this._identifyCors()?!0:!1,$("#container").append("
    "),t.append("
    "),t.find(".fb-list-container").css("width",t.width()+20),t.find(".fb-list-container").css("height",t.height()+10),e(t.find(".fb-list-container")),bds.se.ShortCut.ldialog=new c(t,1),bds.se.ShortCut.curListDom=t.find(".fb-list-container"),$(".fb-mask").on("click",function(){n(),bds.se.ShortCut.ldialog&&bds.se.ShortCut.ldialog.destory() +})},init_shade:function(){$("#container").append("
    "),$(".fb-mask").width($("body").width()),$(".fb-mask").height($("#wrapper_wrapper").height()>$(window).height?$("#wrapper_wrapper").height():$(window).height()),s(),$(".fb-list-container").hover(function(t){o($(t.currentTarget)),$(t.currentTarget).children().length||e($(t.currentTarget))},function(e){t($(e.currentTarget))!=bds.se.ShortCut.key&&i($(e.currentTarget))}),$(".fb-list-container").on("click",function(n){$(".c-container").first().children(".fb-hint-tip").remove(),$(".c-container").first().children(".fb-list-container-first").remove(),bds.se.ShortCut.ldialog&&bds.se.ShortCut.ldialog.destory(),i($(".fb-list-container")),t($(n.currentTarget))==bds.se.ShortCut.key?(bds.se.ShortCut.key=0,bds.se.ShortCut.rdialog&&bds.se.ShortCut.rdialog.grayed(0)):(bds.se.ShortCut.key=t($(n.currentTarget)),bds.se.ShortCut.curListDom=$(n.currentTarget),bds.se.ShortCut.ldialog=new c(o($(n.currentTarget))),bds.se.ShortCut.rdialog&&bds.se.ShortCut.rdialog.grayed(1),e($(n.currentTarget))),n.stopPropagation(),n.preventDefault() +}),$(".fb-mask").on("click",function(){bds.se.ShortCut.ldialog&&bds.se.ShortCut.ldialog.destory(),bds.se.ShortCut.key=0,bds.se.ShortCut.rdialog&&bds.se.ShortCut.rdialog.grayed(0),i($(".fb-list-container"))})},get_Snapshot:function(){$(window).scrollTop(0);var t=this;bds.se.ShortCut.rdialog=new r,t.init_shade(),$(".fb-canvas-block").addClass("c-loading"),html2canvas(document.body,{proxy:bds.util.domain.get("f3.baidu.com")+"/getProxyImage.php",onrendered:function(e){$(".fb-canvas-block").removeClass("c-loading"); +var i=document.createElement("canvas");i.width=e.width,i.height=$("body").height();var n=i.getContext("2d");n.drawImage(e,0,0),bds.se.ShortCut.img_base64=i.toDataURL("image/png"),$(".fb-canvas-block img").attr("src",i.toDataURL("image/png")),setTimeout(function(){t.canvas_block_height=$(".fb-canvas-block img").height()},50),$(document).on("scroll.feedback",function(){var e=$(window).scrollTop(),i=$(document).height(),n=$(window).height();scrollPercent=e/(i-n),$(".fb-canvas-block img").css("top",-(t.canvas_block_height-172)*scrollPercent) +})}})},get_Snapshot_list:function(t,e,i,n,o){html2canvas(document.body,{proxy:bds.util.domain.get("f3.baidu.com")+"/getProxyImage.php",onrendered:function(s){var a=document.createElement("canvas");a.width=i,a.height=n;var r=a.getContext("2d");r.drawImage(s,t,e),bds.se.ShortCut.img_base64_list=a.toDataURL("image/png"),o()}})},html2canvas:function(){!function(t,e,i){"use strict";function n(e){d.logging&&t.console&&t.console.log&&t.console.log(e)}function o(t,e,i,n,o,s){var a,r,c,l,u=d.Util.getCSS(e,t,o); +if(1===u.length&&(l=u[0],u=[],u[0]=l,u[1]=l),-1!==u[0].toString().indexOf("%"))c=parseFloat(u[0])/100,r=i.width*c,"backgroundSize"!==t&&(r-=(s||n).width*c);else if("backgroundSize"===t)if("auto"===u[0])r=n.width;else if(u[0].match(/contain|cover/)){var m=d.Util.resizeBounds(n.width,n.height,i.width,i.height,u[0]);r=m.width,a=m.height}else r=parseInt(u[0],10);else r=parseInt(u[0],10);return"auto"===u[1]?a=r/n.width*n.height:-1!==u[1].toString().indexOf("%")?(c=parseFloat(u[1])/100,a=i.height*c,"backgroundSize"!==t&&(a-=(s||n).height*c)):a=parseInt(u[1],10),[r,a] +}function s(t,e){var i=[];return{storage:i,width:t,height:e,clip:function(){i.push({type:"function",name:"clip",arguments:arguments})},translate:function(){i.push({type:"function",name:"translate",arguments:arguments})},fill:function(){i.push({type:"function",name:"fill",arguments:arguments})},save:function(){i.push({type:"function",name:"save",arguments:arguments})},restore:function(){i.push({type:"function",name:"restore",arguments:arguments})},fillRect:function(){i.push({type:"function",name:"fillRect",arguments:arguments}) +},createPattern:function(){i.push({type:"function",name:"createPattern",arguments:arguments})},drawShape:function(){var t=[];return i.push({type:"function",name:"drawShape",arguments:t}),{moveTo:function(){t.push({name:"moveTo",arguments:arguments})},lineTo:function(){t.push({name:"lineTo",arguments:arguments})},arcTo:function(){t.push({name:"arcTo",arguments:arguments})},bezierCurveTo:function(){t.push({name:"bezierCurveTo",arguments:arguments})},quadraticCurveTo:function(){t.push({name:"quadraticCurveTo",arguments:arguments}) +}}},drawImage:function(){i.push({type:"function",name:"drawImage",arguments:arguments})},fillText:function(){i.push({type:"function",name:"fillText",arguments:arguments})},setVariable:function(t,e){i.push({type:"variable",name:t,arguments:e})}}}function a(t){return{zindex:t,children:[]}}var r,c,d={};d.Util={},d.Util.trimText=function(t){return function(e){return t?t.apply(e):((e||"")+"").replace(/^\s+|\s+$/g,"")}}(String.prototype.trim),d.Util.parseBackgroundImage=function(t){var e,i,n,o,s,a,r,c,d=" \r\n ",l=[],u=0,m=0,p=function(){e&&('"'===i.substr(0,1)&&(i=i.substr(1,i.length-2)),i&&c.push(i),"-"===e.substr(0,1)&&(o=e.indexOf("-",1)+1)>0&&(n=e.substr(0,o),e=e.substr(o)),l.push({prefix:n,method:e.toLowerCase(),value:s,args:c})),c=[],e=n=i=s="" +};p();for(var f=0,h=t.length;h>f;f++)if(a=t[f],!(0===u&&d.indexOf(a)>-1)){switch(a){case'"':r?r===a&&(r=null):r=a;break;case"(":if(r)break;if(0===u){u=1,s+=a;continue}m++;break;case")":if(r)break;if(1===u){if(0===m){u=0,s+=a,p();continue}m--}break;case",":if(r)break;if(0===u){p();continue}if(1===u&&0===m&&!e.match(/^url$/i)){c.push(i),i="",s+=a;continue}}s+=a,0===u?e+=a:i+=a}return p(),l},d.Util.Bounds=function(t){var e,i={};return t.getBoundingClientRect?(e=t.getBoundingClientRect(),i.top=e.top,i.bottom=e.bottom||e.top+e.height,i.left=e.left,i.width=e.width||e.right-e.left,i.height=e.height||e.bottom-e.top,i):void 0 +},d.Util.getCSS=function(t,n,o){function s(e,i){var n,o=t.runtimeStyle&&t.runtimeStyle[e],s=t.style;return!/^-?[0-9]+\.?[0-9]*(?:px)?$/i.test(i)&&/^-?\d/.test(i)&&(n=s.left,o&&(t.runtimeStyle.left=t.currentStyle.left),s.left="fontSize"===e?"1em":i||0,i=s.pixelLeft+"px",s.left=n,o&&(t.runtimeStyle.left=o)),/^(thin|medium|thick)$/i.test(i)?i:Math.round(parseFloat(i))+"px"}var a,l=n.match(/^background(Size|Position)$/);if(r!==t&&(c=e.defaultView.getComputedStyle(t,null)),a=c[n],l){if(a=(a||"").split(","),a=a[o||0]||a[0]||"auto",a=d.Util.trimText(a).split(" "),"backgroundSize"!==n||a[0]&&!a[0].match(/cover|contain|auto/)){if(a[0]=-1===a[0].indexOf("%")?s(n+"X",a[0]):a[0],a[1]===i){if("backgroundSize"===n)return a[1]="auto",a; +a[1]=a[0]}a[1]=-1===a[1].indexOf("%")?s(n+"Y",a[1]):a[1]}}else if(/border(Top|Bottom)(Left|Right)Radius/.test(n)){var u=a.split(" ");u.length<=1&&(u[1]=u[0]),u[0]=parseInt(u[0],10),u[1]=parseInt(u[1],10),a=u}return a},d.Util.resizeBounds=function(t,e,i,n,o){var s,a,r=i/n,c=t/e;return o&&"auto"!==o?c>r^"contain"===o?(a=n,s=n*c):(s=i,a=i/c):(s=i,a=n),{width:s,height:a}},d.Util.BackgroundPosition=function(t,e,i,n,s){var a=o("backgroundPosition",t,e,i,n,s);return{left:a[0],top:a[1]}},d.Util.BackgroundSize=function(t,e,i,n){var s=o("backgroundSize",t,e,i,n); +return{width:s[0],height:s[1]}},d.Util.Extend=function(t,e){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},d.Util.Children=function(t){var e;try{e=t.nodeName&&"IFRAME"===t.nodeName.toUpperCase()?t.contentDocument||t.contentWindow.document:function(t){var e=[];return null!==t&&!function(t,e){var n=t.length,o=0;if("number"==typeof e.length)for(var s=e.length;s>o;o++)t[n++]=e[o];else for(;e[o]!==i;)t[n++]=e[o++];return t.length=n,t}(e,t),e}(t.childNodes)}catch(o){n("html2canvas.Util.Children failed with exception: "+o.message),e=[] +}return e},d.Util.Font=function(){var t={};return function(e,n,o){if(t[e+"-"+n]!==i)return t[e+"-"+n];var s,a,r,c=o.createElement("div"),d=o.createElement("img"),l=o.createElement("span"),u="Hidden Text";return c.style.visibility="hidden",c.style.fontFamily=e,c.style.fontSize=n,c.style.margin=0,c.style.padding=0,o.body.appendChild(c),d.src="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=",d.width=1,d.height=1,d.style.margin=0,d.style.padding=0,d.style.verticalAlign="baseline",l.style.fontFamily=e,l.style.fontSize=n,l.style.margin=0,l.style.padding=0,l.appendChild(o.createTextNode(u)),c.appendChild(l),c.appendChild(d),s=d.offsetTop-l.offsetTop+1,c.removeChild(l),c.appendChild(o.createTextNode(u)),c.style.lineHeight="normal",d.style.verticalAlign="super",a=d.offsetTop-c.offsetTop+1,r={baseline:s,lineWidth:1,middle:a},t[e+"-"+n]=r,o.body.removeChild(c),r +}}(),function(){d.Generate={};var t=[/^(-webkit-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-webkit-gradient)\((linear|radial),\s((?:\d{1,3}%?)\s(?:\d{1,3}%?),\s(?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)\-]+)\)$/,/^(-moz-linear-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)]+)\)$/,/^(-webkit-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z\-]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-moz-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s?([a-z\-]*)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z\-]+)([\w\d\.\s,%\(\)]+)\)$/]; +d.Generate.parseGradient=function(e,i){var n,o,s,a,r,c,d,l,u,m,p,f,h=t.length;for(o=0;h>o&&!(s=e.match(t[o]));o+=1);if(s)switch(s[1]){case"-webkit-linear-gradient":case"-o-linear-gradient":if(n={type:"linear",x0:null,y0:null,x1:null,y1:null,colorStops:[]},r=s[2].match(/\w+/g))for(c=r.length,o=0;c>o;o+=1)switch(r[o]){case"top":n.y0=0,n.y1=i.height;break;case"right":n.x0=i.width,n.x1=0;break;case"bottom":n.y0=i.height,n.y1=0;break;case"left":n.x0=0,n.x1=i.width}if(null===n.x0&&null===n.x1&&(n.x0=n.x1=i.width/2),null===n.y0&&null===n.y1&&(n.y0=n.y1=i.height/2),r=s[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g))for(c=r.length,d=1/Math.max(c-1,1),o=0;c>o;o+=1)l=r[o].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/),l[2]?(a=parseFloat(l[2]),a/="%"===l[3]?100:i.width):a=o*d,n.colorStops.push({color:l[1],stop:a}); +break;case"-webkit-gradient":if(n={type:"radial"===s[2]?"circle":s[2],x0:0,y0:0,x1:0,y1:0,colorStops:[]},r=s[3].match(/(\d{1,3})%?\s(\d{1,3})%?,\s(\d{1,3})%?\s(\d{1,3})%?/),r&&(n.x0=r[1]*i.width/100,n.y0=r[2]*i.height/100,n.x1=r[3]*i.width/100,n.y1=r[4]*i.height/100),r=s[4].match(/((?:from|to|color-stop)\((?:[0-9\.]+,\s)?(?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)\))+/g))for(c=r.length,o=0;c>o;o+=1)l=r[o].match(/(from|to|color-stop)\(([0-9\.]+)?(?:,\s)?((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\)/),a=parseFloat(l[2]),"from"===l[1]&&(a=0),"to"===l[1]&&(a=1),n.colorStops.push({color:l[3],stop:a}); +break;case"-moz-linear-gradient":if(n={type:"linear",x0:0,y0:0,x1:0,y1:0,colorStops:[]},r=s[2].match(/(\d{1,3})%?\s(\d{1,3})%?/),r&&(n.x0=r[1]*i.width/100,n.y0=r[2]*i.height/100,n.x1=i.width-n.x0,n.y1=i.height-n.y0),r=s[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}%)?)+/g))for(c=r.length,d=1/Math.max(c-1,1),o=0;c>o;o+=1)l=r[o].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%)?/),l[2]?(a=parseFloat(l[2]),l[3]&&(a/=100)):a=o*d,n.colorStops.push({color:l[1],stop:a}); +break;case"-webkit-radial-gradient":case"-moz-radial-gradient":case"-o-radial-gradient":if(n={type:"circle",x0:0,y0:0,x1:i.width,y1:i.height,cx:0,cy:0,rx:0,ry:0,colorStops:[]},r=s[2].match(/(\d{1,3})%?\s(\d{1,3})%?/),r&&(n.cx=r[1]*i.width/100,n.cy=r[2]*i.height/100),r=s[3].match(/\w+/),l=s[4].match(/[a-z\-]*/),r&&l)switch(l[0]){case"farthest-corner":case"cover":case"":u=Math.sqrt(Math.pow(n.cx,2)+Math.pow(n.cy,2)),m=Math.sqrt(Math.pow(n.cx,2)+Math.pow(n.y1-n.cy,2)),p=Math.sqrt(Math.pow(n.x1-n.cx,2)+Math.pow(n.y1-n.cy,2)),f=Math.sqrt(Math.pow(n.x1-n.cx,2)+Math.pow(n.cy,2)),n.rx=n.ry=Math.max(u,m,p,f); +break;case"closest-corner":u=Math.sqrt(Math.pow(n.cx,2)+Math.pow(n.cy,2)),m=Math.sqrt(Math.pow(n.cx,2)+Math.pow(n.y1-n.cy,2)),p=Math.sqrt(Math.pow(n.x1-n.cx,2)+Math.pow(n.y1-n.cy,2)),f=Math.sqrt(Math.pow(n.x1-n.cx,2)+Math.pow(n.cy,2)),n.rx=n.ry=Math.min(u,m,p,f);break;case"farthest-side":"circle"===r[0]?n.rx=n.ry=Math.max(n.cx,n.cy,n.x1-n.cx,n.y1-n.cy):(n.type=r[0],n.rx=Math.max(n.cx,n.x1-n.cx),n.ry=Math.max(n.cy,n.y1-n.cy));break;case"closest-side":case"contain":"circle"===r[0]?n.rx=n.ry=Math.min(n.cx,n.cy,n.x1-n.cx,n.y1-n.cy):(n.type=r[0],n.rx=Math.min(n.cx,n.x1-n.cx),n.ry=Math.min(n.cy,n.y1-n.cy)) +}if(r=s[5].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g))for(c=r.length,d=1/Math.max(c-1,1),o=0;c>o;o+=1)l=r[o].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/),l[2]?(a=parseFloat(l[2]),a/="%"===l[3]?100:i.width):a=o*d,n.colorStops.push({color:l[1],stop:a})}return n},d.Generate.Gradient=function(t,i){if(0!==i.width&&0!==i.height){var o,s,a,r,c=e.createElement("canvas"),l=c.getContext("2d");if(c.width=i.width,c.height=i.height,o=d.Generate.parseGradient(t,i))if("linear"===o.type){for(s=l.createLinearGradient(o.x0,o.y0,o.x1,o.y1),a=0,r=o.colorStops.length;r>a;a+=1)try{s.addColorStop(o.colorStops[a].stop,o.colorStops[a].color) +}catch(u){n(["failed to add color stop: ",u,"; tried to add: ",o.colorStops[a],"; stop: ",a,"; in: ",t])}l.fillStyle=s,l.fillRect(0,0,i.width,i.height)}else if("circle"===o.type){for(s=l.createRadialGradient(o.cx,o.cy,0,o.cx,o.cy,o.rx),a=0,r=o.colorStops.length;r>a;a+=1)try{s.addColorStop(o.colorStops[a].stop,o.colorStops[a].color)}catch(u){n(["failed to add color stop: ",u,"; tried to add: ",o.colorStops[a],"; stop: ",a,"; in: ",t])}l.fillStyle=s,l.fillRect(0,0,i.width,i.height)}else if("ellipse"===o.type){var m=e.createElement("canvas"),p=m.getContext("2d"),f=Math.max(o.rx,o.ry),h=2*f; +for(m.width=m.height=h,s=p.createRadialGradient(o.rx,o.ry,0,o.rx,o.ry,f),a=0,r=o.colorStops.length;r>a;a+=1)try{s.addColorStop(o.colorStops[a].stop,o.colorStops[a].color)}catch(u){n(["failed to add color stop: ",u,"; tried to add: ",o.colorStops[a],"; stop: ",a,"; in: ",t])}p.fillStyle=s,p.fillRect(0,0,h,h),l.fillStyle=o.colorStops[a-1].color,l.fillRect(0,0,c.width,c.height),l.drawImage(m,o.cx-o.rx,o.cy-o.ry,2*o.rx,2*o.ry)}return c}},d.Generate.ListAlpha=function(t){var e,i="";do e=t%26,i=String.fromCharCode(e+64)+i,t/=26; +while(26*t>26);return i},d.Generate.ListRoman=function(t){var e,i=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],n=[1e3,900,500,400,100,90,50,40,10,9,5,4,1],o="",s=i.length;if(0>=t||t>=4e3)return t;for(e=0;s>e;e+=1)for(;t>=n[e];)t-=n[e],o+=i[e];return o}}(),d.Parse=function(o,r){function c(){return Math.max(Math.max(re.body.scrollWidth,re.documentElement.scrollWidth),Math.max(re.body.offsetWidth,re.documentElement.offsetWidth),Math.max(re.body.clientWidth,re.documentElement.clientWidth)) +}function l(){return Math.max(Math.max(re.body.scrollHeight,re.documentElement.scrollHeight),Math.max(re.body.offsetHeight,re.documentElement.offsetHeight),Math.max(re.body.clientHeight,re.documentElement.clientHeight))}function u(t,e){var i=parseInt(ue(t,e),10);return isNaN(i)?0:i}function m(t,e,i,n,o,s){"transparent"!==s&&(t.setVariable("fillStyle",s),t.fillRect(e,i,n,o),ae+=1)}function p(t,e){switch(e){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,function(t,e,i){return t.length>0?e+i.toUpperCase():void 0 +});case"uppercase":return t.toUpperCase();default:return t}}function f(t){return/^(normal|none|0px)$/.test(t)}function h(t,e,i,n){null!==t&&d.Util.trimText(t).length>0&&(n.fillText(t,e,i),ae+=1)}function b(t,e,i,n){var o=!1,s=ue(e,"fontWeight"),a=ue(e,"fontFamily"),r=ue(e,"fontSize");switch(parseInt(s,10)){case 401:s="bold";break;case 400:s="normal"}return t.setVariable("fillStyle",n),t.setVariable("font",[ue(e,"fontStyle"),ue(e,"fontVariant"),s,r,a].join(" ")),t.setVariable("textAlign",o?"right":"left"),"none"!==i?d.Util.Font(a,r,re):void 0 +}function g(t,e,i,n,o){switch(e){case"underline":m(t,i.left,Math.round(i.top+n.baseline+n.lineWidth),i.width,1,o);break;case"overline":m(t,i.left,Math.round(i.top),i.width,1,o);break;case"line-through":m(t,i.left,Math.ceil(i.top+n.middle+n.lineWidth),i.width,1,o)}}function v(t,e,i,n){var o;if(ce.rangeBounds)("none"!==i||0!==d.Util.trimText(e).length)&&(o=w(e,t.node,t.textOffset)),t.textOffset+=e.length;else if(t.node&&"string"==typeof t.node.nodeValue){var s=n?t.node.splitText(e.length):null;o=_(t.node),t.node=s +}return o}function w(t,e,i){var n=re.createRange();return n.setStart(e,i),n.setEnd(e,i+t.length),n.getBoundingClientRect()}function _(t){var e=t.parentNode,i=re.createElement("wrapper"),n=t.cloneNode(!0);i.appendChild(t.cloneNode(!0)),e.replaceChild(i,t);var o=d.Util.Bounds(i);return e.replaceChild(n,i),o}function y(t,e,i){var n,o,s=i.ctx,a=ue(t,"color"),c=ue(t,"textDecoration"),l=ue(t,"textAlign"),u={node:e,textOffset:0};d.Util.trimText(e.nodeValue).length>0&&(e.nodeValue=p(e.nodeValue,ue(t,"textTransform")),l=l.replace(["-webkit-auto"],["auto"]),o=e.nodeValue.split(!r.letterRendering&&/^(left|right|justify|auto)$/.test(l)&&f(ue(t,"letterSpacing"))?/(\b| )/:""),n=b(s,t,c,a),r.chinese&&o.forEach(function(t,e){/.*[\u4E00-\u9FA5].*$/.test(t)&&(t=t.split(""),t.unshift(e,1),o.splice.apply(o,t)) +}),o.forEach(function(t,e){var i=v(u,t,c,e0||e[1]>0?(t.push(["line",n[0].start.x,n[0].start.y]),n[0].curveTo(t),n[1].curveTo(t)):t.push(["line",s,a]),(i[0]>0||i[1]>0)&&t.push(["line",o[0].start.x,o[0].start.y])}function j(t,e,i,n,o,s,a){var r=[];return e[0]>0||e[1]>0?(r.push(["line",n[1].start.x,n[1].start.y]),n[1].curveTo(r)):r.push(["line",t.c1[0],t.c1[1]]),i[0]>0||i[1]>0?(r.push(["line",s[0].start.x,s[0].start.y]),s[0].curveTo(r),r.push(["line",a[0].end.x,a[0].end.y]),a[0].curveToReversed(r)):(r.push(["line",t.c2[0],t.c2[1]]),r.push(["line",t.c3[0],t.c3[1]])),e[0]>0||e[1]>0?(r.push(["line",o[1].end.x,o[1].end.y]),o[1].curveToReversed(r)):r.push(["line",t.c4[0],t.c4[1]]),r +}function O(t,e,i){var n=t.left,o=t.top,s=t.width,a=t.height,r=e[0][0],c=e[0][1],d=e[1][0],l=e[1][1],u=e[2][0],m=e[2][1],p=e[3][0],f=e[3][1],h=s-d,b=a-u,g=s-m,v=a-f;return{topLeftOuter:fe(n,o,r,c).topLeft.subdivide(.5),topLeftInner:fe(n+i[3].width,o+i[0].width,Math.max(0,r-i[3].width),Math.max(0,c-i[0].width)).topLeft.subdivide(.5),topRightOuter:fe(n+h,o,d,l).topRight.subdivide(.5),topRightInner:fe(n+Math.min(h,s+i[3].width),o+i[0].width,h>s+i[3].width?0:d-i[3].width,l-i[0].width).topRight.subdivide(.5),bottomRightOuter:fe(n+g,o+b,m,u).bottomRight.subdivide(.5),bottomRightInner:fe(n+Math.min(g,s+i[3].width),o+Math.min(b,a+i[0].width),Math.max(0,m-i[1].width),Math.max(0,u-i[2].width)).bottomRight.subdivide(.5),bottomLeftOuter:fe(n,o+v,p,f).bottomLeft.subdivide(.5),bottomLeftInner:fe(n+i[3].width,o+v,Math.max(0,p-i[3].width),Math.max(0,f-i[2].width)).bottomLeft.subdivide(.5)} +}function q(t,e,i,n,o){var s=ue(t,"backgroundClip"),a=[];switch(s){case"content-box":case"padding-box":E(a,n[0],n[1],e.topLeftInner,e.topRightInner,o.left+i[3].width,o.top+i[0].width),E(a,n[1],n[2],e.topRightInner,e.bottomRightInner,o.left+o.width-i[1].width,o.top+i[0].width),E(a,n[2],n[3],e.bottomRightInner,e.bottomLeftInner,o.left+o.width-i[1].width,o.top+o.height-i[2].width),E(a,n[3],n[0],e.bottomLeftInner,e.topLeftInner,o.left+i[3].width,o.top+o.height-i[2].width);break;default:E(a,n[0],n[1],e.topLeftOuter,e.topRightOuter,o.left,o.top),E(a,n[1],n[2],e.topRightOuter,e.bottomRightOuter,o.left+o.width,o.top),E(a,n[2],n[3],e.bottomRightOuter,e.bottomLeftOuter,o.left+o.width,o.top+o.height),E(a,n[3],n[0],e.bottomLeftOuter,e.topLeftOuter,o.left,o.top+o.height) +}return a}function M(t,e,i){var n,o,s,a,r,c,d=e.left,l=e.top,u=e.width,m=e.height,p=R(t),f=O(e,p,i),h={clip:q(t,f,i,p,e),borders:[]};for(n=0;4>n;n++)if(i[n].width>0){switch(o=d,s=l,a=u,r=m-i[2].width,n){case 0:r=i[0].width,c=j({c1:[o,s],c2:[o+a,s],c3:[o+a-i[1].width,s+r],c4:[o+i[3].width,s+r]},p[0],p[1],f.topLeftOuter,f.topLeftInner,f.topRightOuter,f.topRightInner);break;case 1:o=d+u-i[1].width,a=i[1].width,c=j({c1:[o+a,s],c2:[o+a,s+r+i[2].width],c3:[o,s+r],c4:[o,s+i[0].width]},p[1],p[2],f.topRightOuter,f.topRightInner,f.bottomRightOuter,f.bottomRightInner); +break;case 2:s=s+m-i[2].width,r=i[2].width,c=j({c1:[o+a,s+r],c2:[o,s+r],c3:[o+i[3].width,s],c4:[o+a-i[2].width,s]},p[2],p[3],f.bottomRightOuter,f.bottomRightInner,f.bottomLeftOuter,f.bottomLeftInner);break;case 3:a=i[3].width,c=j({c1:[o,s+r+i[2].width],c2:[o,s],c3:[o+a,s+i[0].width],c4:[o+a,s+r]},p[3],p[0],f.bottomLeftOuter,f.bottomLeftInner,f.topLeftOuter,f.topLeftInner)}h.borders.push({args:c,color:i[n].color})}return h}function P(t,e){var i=t.drawShape();return e.forEach(function(t,e){i[0===e?"moveTo":t[0]+"To"].apply(null,t.slice(1)) +}),i}function N(t,e,i){"transparent"!==i&&(t.setVariable("fillStyle",i),P(t,e),t.fill(),ae+=1)}function U(t,e,i){var o,s,a=re.createElement("valuewrap"),r=["lineHeight","textAlign","fontFamily","color","fontSize","paddingLeft","paddingTop","width","height","border","borderLeftWidth","borderTopWidth"];r.forEach(function(e){try{a.style[e]=ue(t,e)}catch(i){n("html2canvas: Parse: Exception caught in renderFormValue: "+i.message)}}),a.style.borderColor="black",a.style.borderStyle="solid",a.style.display="block",a.style.position="absolute",(/^(submit|reset|button|text|password)$/.test(t.type)||"SELECT"===t.nodeName)&&(a.style.lineHeight=ue(t,"height")),a.style.top=e.top+"px",a.style.left=e.left+"px",o="SELECT"===t.nodeName?(t.options[t.selectedIndex]||0).text:t.value,o||(o=t.placeholder),s=re.createTextNode(o),a.appendChild(s),le.appendChild(a),y(t,s,i),le.removeChild(a) +}function z(t){t.drawImage.apply(t,Array.prototype.slice.call(arguments,1)),ae+=1}function H(i,o){var s=t.getComputedStyle(i,o);if(s&&s.content&&"none"!==s.content&&"-moz-alt-content"!==s.content){var a=s.content+"",r=a.substr(0,1);r===a.substr(a.length-1)&&r.match(/'|"/)&&(a=a.substr(1,a.length-2));var c="url"===a.substr(0,3),l=e.createElement(c?"img":"span");return l.className=me+"-before "+me+"-after",Object.keys(s).filter(B).forEach(function(t){try{l.style[t]=s[t]}catch(e){n(["Tried to assign readonly property ",t,"Error:",e]) +}}),c?l.src=d.Util.parseBackgroundImage(a)[0].args[0]:l.innerHTML=a,l}}function B(e){return isNaN(t.parseInt(e,10))}function F(t,e){var i=H(t,":before"),n=H(t,":after");(i||n)&&(i&&(t.className+=" "+me+"-before",t.parentNode.insertBefore(i,t),ie(i,e,!0),t.parentNode.removeChild(i),t.className=t.className.replace(me+"-before","").trim()),n&&(t.className+=" "+me+"-after",t.appendChild(n),ie(n,e,!0),t.removeChild(n),t.className=t.className.replace(me+"-after","").trim()))}function W(t,e,i,n){var o=Math.round(n.left+i.left),s=Math.round(n.top+i.top); +t.createPattern(e),t.translate(o,s),t.fill(),t.translate(-o,-s)}function Q(t,e,i,n,o,s,a,r){var c=[];c.push(["line",Math.round(o),Math.round(s)]),c.push(["line",Math.round(o+a),Math.round(s)]),c.push(["line",Math.round(o+a),Math.round(r+s)]),c.push(["line",Math.round(o),Math.round(r+s)]),P(t,c),t.save(),t.clip(),W(t,e,i,n),t.restore()}function G(t,e,i){m(t,e.left,e.top,e.width,e.height,i)}function V(t,e,i,n,o){var s=d.Util.BackgroundSize(t,e,n,o),a=d.Util.BackgroundPosition(t,e,n,o,s),r=ue(t,"backgroundRepeat").split(",").map(function(t){return t.trim() +});switch(n=X(n,s),r=r[o]||r[0]){case"repeat-x":Q(i,n,a,e,e.left,e.top+a.top,99999,n.height);break;case"repeat-y":Q(i,n,a,e,e.left+a.left,e.top,n.width,99999);break;case"no-repeat":Q(i,n,a,e,e.left+a.left,e.top+a.top,n.width,n.height);break;default:W(i,n,a,{top:e.top,left:e.left,width:n.width,height:n.height})}}function J(t,e,i){for(var o,s=ue(t,"backgroundImage"),a=d.Util.parseBackgroundImage(s),r=a.length;r--;)if(s=a[r],s.args&&0!==s.args.length){var c="url"===s.method?s.args[0]:s.value;o=C(c),o?V(t,e,i,o,r):n("html2canvas: Error loading background:",s) +}}function X(t,e){if(t.width===e.width&&t.height===e.height)return t;var i,n=re.createElement("canvas");return n.width=e.width,n.height=e.height,i=n.getContext("2d"),z(i,t,0,0,t.width,t.height,0,0,e.width,e.height),n}function K(t,e,i){var n=ue(e,"opacity")*(i?i.opacity:1);return t.setVariable("globalAlpha",n),n}function Y(t,e,i){var n=s(e?i.width:c(),e?i.height:l()),o={ctx:n,zIndex:I(ue(t,"zIndex"),e?e.zIndex:null),opacity:K(n,t,e),cssPosition:ue(t,"position"),borders:L(t),clip:e&&e.clip?d.Util.Extend({},e.clip):null}; +return r.useOverflow===!0&&/(hidden|scroll|auto)/.test(ue(t,"overflow"))===!0&&/(BODY)/i.test(t.nodeName)===!1&&(o.clip=o.clip?S(o.clip,i):i),o.zIndex.children.push(o),o}function Z(t,e,i){var n={left:e.left+t[3].width,top:e.top+t[0].width,width:e.width-(t[1].width+t[3].width),height:e.height-(t[0].width+t[2].width)};return i&&(n=S(n,i)),n}function te(t,e,i){var o,s=d.Util.Bounds(t),a=de.test(t.nodeName)?"#efefef":ue(t,"backgroundColor"),r=Y(t,e,s),c=r.borders,l=r.ctx,u=Z(c,s,r.clip),m=M(t,s,c);switch(P(l,m.clip),l.save(),l.clip(),u.height>0&&u.width>0&&(G(l,s,a),J(t,u,l)),l.restore(),m.borders.forEach(function(t){N(l,t.args,t.color) +}),i||F(t,r),t.nodeName){case"IMG":(o=C(t.getAttribute("src")))?D(l,t,o,s,c):n("html2canvas: Error loading :"+t.getAttribute("src"));break;case"INPUT":/^(text|url|email|submit|button|reset)$/.test(t.type)&&(t.value||t.placeholder).length>0&&U(t,s,r);break;case"TEXTAREA":(t.value||t.placeholder||"").length>0&&U(t,s,r);break;case"SELECT":(t.options||t.placeholder||"").length>0&&U(t,s,r);break;case"LI":T(t,r,u);break;case"CANVAS":D(l,t,t,s,c)}return r}function ee(t){return"none"!==ue(t,"display")&&"hidden"!==ue(t,"visibility")&&!t.hasAttribute("data-html2canvas-ignore") +}function ie(t,e,i){ee(t)&&(e=te(t,e,i)||e,de.test(t.nodeName)||d.Util.Children(t).forEach(function(n){1===n.nodeType?ie(n,e,i):3===n.nodeType&&y(t,n,e)}))}function ne(t,e){function i(t){var e,n,o,s,r,c=d.Util.Children(t),l=c.length;for(r=0;l>r;r+=1)if(s=c[r],3===s.nodeType)a+=s.nodeValue.replace(//g,">");else if(1===s.nodeType&&!/^(script|meta|title)$/.test(s.nodeName.toLowerCase())){if(a+="<"+s.nodeName.toLowerCase(),s.hasAttributes())for(e=s.attributes,o=e.length,n=0;o>n;n+=1)a+=" "+e[n].name+'="'+e[n].value+'"'; +a+=">",i(s),a+=""}}var n=new Image,o=c(),s=l(),a="";i(t),n.src=["data:image/svg+xml,","","","",a.replace(/\#/g,"%23"),"","",""].join(""),n.onload=function(){e.svgRender=n}}function oe(){var t=te(se,null);return ce.svgRendering&&ne(e.documentElement,t),Array.prototype.slice.call(se.children,0).forEach(function(e){ie(e,t) +}),t.backgroundColor=ue(e.documentElement,"backgroundColor"),le.removeChild(pe),t}bds.se.ShortCut.scrollTop=t.pageYOffset||e.documentElement.scrollTop||e.body.scrollTop,t.scroll(0,0);var se=r.elements===i?e.body:r.elements[0],ae=0,re=se.ownerDocument,ce=d.Util.Support(r,re),de=new RegExp("("+r.ignoreElements+")"),le=re.body,ue=d.Util.getCSS,me="___html2canvas___pseudoelement",pe=re.createElement("style");pe.innerHTML="."+me+'-before:before { content: "" !important; display: none !important; }.'+me+'-after:after { content: "" !important; display: none !important; }',le.appendChild(pe),o=o||{}; +var fe=function(t){return function(e,i,n,o){var s=n*t,a=o*t,r=e+n,c=i+o;return{topLeft:A({x:e,y:c},{x:e,y:c-a},{x:r-s,y:i},{x:r,y:i}),topRight:A({x:e,y:i},{x:e+s,y:i},{x:r,y:c-a},{x:r,y:c}),bottomRight:A({x:r,y:i},{x:r,y:i+a},{x:e+s,y:c},{x:e,y:c}),bottomLeft:A({x:r,y:c},{x:r-s,y:c},{x:e,y:i+a},{x:e,y:i})}}}(4*((Math.sqrt(2)-1)/3));return oe()},d.Preload=function(o){function s(t){C.href=t,C.href=C.href;var e=C.protocol+C.host;return e===b}function a(){n("html2canvas: start: images: "+_.numLoaded+" / "+_.numTotal+" (failed: "+_.numFailed+")"),!_.firstRun&&_.numLoaded>=_.numTotal&&(n("Finished loading images: # "+_.numTotal+" (failed: "+_.numFailed+")"),"function"==typeof o.complete&&o.complete(_)) +}function r(e,n,s){var r,c,d=o.proxy;C.href=e,e=C.href,r="html2canvas_"+y++,s.callbackname=r,d+=d.indexOf("?")>-1?"&":"?",d+="url="+encodeURIComponent(e)+"&callback="+r,c=$.createElement("script"),t[r]=function(e){"error:"===e.substring(0,6)?(s.succeeded=!1,_.numLoaded++,_.numFailed++,a()):(h(n,s),n.src=e),t[r]=i;try{delete t[r]}catch(o){}c.parentNode.removeChild(c),c=null,delete s.script,delete s.callbackname},c.setAttribute("type","text/javascript"),c.setAttribute("src",d),s.script=c,t.document.body.appendChild(c) +}function c(e,i){var n=t.getComputedStyle(e,i),o=n.content;"url"===o.substr(0,3)&&g.loadImage(d.Util.parseBackgroundImage(o)[0].args[0]),p(n.backgroundImage,e)}function l(t){c(t,":before"),c(t,":after")}function u(t,e){var n=d.Generate.Gradient(t,e);n!==i&&(_[t]={img:n,succeeded:!0},_.numTotal++,_.numLoaded++,a())}function m(t){return t&&t.method&&t.args&&t.args.length>0}function p(t,e){var n;d.Util.parseBackgroundImage(t).filter(m).forEach(function(t){"url"===t.method?g.loadImage(t.args[0]):t.method.match(/\-?gradient$/)&&(n===i&&(n=d.Util.Bounds(e)),u(t.value,n)) +})}function f(t){var e=!1;try{d.Util.Children(t).forEach(function(t){f(t)})}catch(o){}try{e=t.nodeType}catch(s){e=!1,n("html2canvas: failed to access some element's nodeType - Exception: "+s.message)}if(1===e||e===i){l(t);try{p(d.Util.getCSS(t,"backgroundImage"),t)}catch(o){n("html2canvas: failed to get background-image - Exception: "+o.message)}p(t)}}function h(e,n){e.onload=function(){n.timer!==i&&t.clearTimeout(n.timer),_.numLoaded++,n.succeeded=!0,e.onerror=e.onload=null,a()},e.onerror=function(){if("anonymous"===e.crossOrigin&&(t.clearTimeout(n.timer),o.proxy)){var i=e.src; +return e=new Image,n.img=e,e.src=i,void r(e.src,e,n)}_.numLoaded++,_.numFailed++,n.succeeded=!1,e.onerror=e.onload=null,a()}}var b,g,v,w,_={numLoaded:0,numFailed:0,numTotal:0,cleanupDone:!1},y=0,x=o.elements[0]||e.body,$=x.ownerDocument,k=$.images,T=k.length,C=$.createElement("a"),S=function(t){return t.crossOrigin!==i}(new Image);for(C.href=t.location.href,b=C.protocol+C.host,g={loadImage:function(e){var n,a;e&&_[e]===i&&(n=new Image,e.match(/data:image\/.*;base64,/i)?(n.src=e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),a=_[e]={img:n},_.numTotal++,h(n,a)):s(e)||o.allowTaint===!0?(a=_[e]={img:n},_.numTotal++,h(n,a),n.src=e):S&&!o.allowTaint&&o.useCORS?(n.crossOrigin="anonymous",a=_[e]={img:n},_.numTotal++,h(n,a),n.src=e,n.customComplete=function(){this.img.complete?this.img.onerror():this.timer=t.setTimeout(this.img.customComplete,100) +}.bind(a),n.customComplete()):o.proxy&&(a=_[e]={img:n},_.numTotal++,r(e,n,a)))},cleanupDOM:function(s){var r,c;if(!_.cleanupDone){n(s&&"string"==typeof s?"html2canvas: Cleanup because: "+s:"html2canvas: Cleanup after timeout: "+o.timeout+" ms.");for(c in _)if(_.hasOwnProperty(c)&&(r=_[c],"object"==typeof r&&r.callbackname&&r.succeeded===i)){t[r.callbackname]=i;try{delete t[r.callbackname]}catch(d){}r.script&&r.script.parentNode&&(r.script.setAttribute("src","about:blank"),r.script.parentNode.removeChild(r.script)),_.numLoaded++,_.numFailed++,n("html2canvas: Cleaned up failed img: '"+c+"' Steps: "+_.numLoaded+" / "+_.numTotal) +}t.stop!==i?t.stop():e.execCommand!==i&&e.execCommand("Stop",!1),e.close!==i&&e.close(),_.cleanupDone=!0,s&&"string"==typeof s||a()}},renderingDone:function(){w&&t.clearTimeout(w)}},o.timeout>0&&(w=t.setTimeout(g.cleanupDOM,o.timeout)),n("html2canvas: Preload starts: finding background-images"),_.firstRun=!0,f(x),n("html2canvas: Preload: Finding images"),v=0;T>v;v+=1)g.loadImage(k[v].getAttribute("src"));return _.firstRun=!1,n("html2canvas: Preload: Done."),_.numTotal===_.numLoaded&&a(),g},d.Renderer=function(t,n){function o(t){var e=[],i=function(t){var n=[],o=[]; +t.children.forEach(function(t){t.children&&t.children.length>0?(n.push(t),o.push(t.zindex)):e.push(t)}),o.sort(function(t,e){return t-e}),o.forEach(function(t){var e;n.some(function(i,n){return e=n,i.zindex===t}),i(n.splice(e,1)[0])})};return t&&t.zIndex&&i(t.zIndex),e}function s(t){var e;if("string"==typeof n.renderer&&d.Renderer[t]!==i)e=d.Renderer[t](n);else{if("function"!=typeof t)throw new Error("Unknown renderer");e=t(n)}if("function"!=typeof e)throw new Error("Invalid renderer defined");return e +}return s(n.renderer)(t,n,e,o(t),d)},d.Util.Support=function(t,e){function o(){var t=new Image,o=e.createElement("canvas"),s=o.getContext===i?!1:o.getContext("2d");if(s===!1)return!1;o.width=o.height=10,t.src=["data:image/svg+xml,","","","
    ","sup","
    ","
    ","
    "].join("");try{s.drawImage(t,0,0),o.toDataURL() +}catch(a){return!1}return n("html2canvas: Parse: SVG powered rendering available"),!0}function s(){var t,i,n,o,s=!1;return e.createRange&&(t=e.createRange(),t.getBoundingClientRect&&(i=e.createElement("boundtest"),i.style.height="123px",i.style.display="block",e.body.appendChild(i),t.selectNode(i),n=t.getBoundingClientRect(),o=n.height,123===o&&(s=!0),e.body.removeChild(i))),s}return{rangeBounds:s(),svgRendering:t.svgRendering&&o()}},t.html2canvas=function(e,i){e=e.length?e:[e];var o,s,a={logging:!1,elements:e,background:"#fff",proxy:null,timeout:0,useCORS:!1,allowTaint:!1,svgRendering:!1,ignoreElements:"IFRAME|OBJECT|PARAM",useOverflow:!0,letterRendering:!1,chinese:!1,width:null,height:null,taintTest:!0,renderer:"Canvas"}; +return a=d.Util.Extend(i,a),d.logging=a.logging,a.complete=function(t){("function"!=typeof a.onpreloaded||a.onpreloaded(t)!==!1)&&(o=d.Parse(t,a),("function"!=typeof a.onparsed||a.onparsed(o)!==!1)&&(s=d.Renderer(o,a),"function"==typeof a.onrendered&&a.onrendered(s)))},t.setTimeout(function(){d.Preload(a)},0),{render:function(t,e){return d.Renderer(t,d.Util.Extend(e,a))},parse:function(t,e){return d.Parse(t,d.Util.Extend(e,a))},preload:function(t){return d.Preload(d.Util.Extend(t,a))},log:n}},t.html2canvas.log=n,t.html2canvas.Renderer={Canvas:i},d.Renderer.Canvas=function(t){function o(t,e){t.beginPath(),e.forEach(function(e){t[e.name].apply(t,e.arguments) +}),t.closePath()}function s(t){if(-1===d.indexOf(t.arguments[0].src)){u.drawImage(t.arguments[0],0,0);try{u.getImageData(0,0,1,1)}catch(e){return l=c.createElement("canvas"),u=l.getContext("2d"),!1}d.push(t.arguments[0].src)}return!0}function a(t){return"transparent"===t||"rgba(0, 0, 0, 0)"===t}function r(e,i){switch(i.type){case"variable":e[i.name]=i.arguments;break;case"function":if("createPattern"===i.name){if(i.arguments[0].width>0&&i.arguments[0].height>0)try{e.fillStyle=e.createPattern(i.arguments[0],"repeat") +}catch(a){n("html2canvas: Renderer: Error creating pattern",a.message)}}else"drawShape"===i.name?o(e,i.arguments):"drawImage"===i.name?i.arguments[8]>0&&i.arguments[7]>0&&(!t.taintTest||t.taintTest&&s(i))&&e.drawImage.apply(e,i.arguments):e[i.name].apply(e,i.arguments)}}t=t||{};var c=e,d=[],l=e.createElement("canvas"),u=l.getContext("2d"),m=t.canvas||c.createElement("canvas");return function(t,e,o,s,c){var d,l,u,p,f,h,b=m.getContext("2d");if(m.width=m.style.width=e.width||t.ctx.width,m.height=m.style.height=e.height||t.ctx.height,h=b.fillStyle,b.fillStyle=a(t.backgroundColor)&&e.background!==i?e.background:t.backgroundColor,b.fillRect(0,0,m.width,m.height),b.fillStyle=h,e.svgRendering&&t.svgRender!==i)b.drawImage(t.svgRender,0,0); +else for(l=0,u=s.length;u>l;l+=1)d=s.splice(0,1)[0],d.canvasPosition=d.canvasPosition||{},b.textBaseline="bottom",d.clip&&(b.save(),b.beginPath(),b.rect(d.clip.left,d.clip.top,d.clip.width,d.clip.height),b.clip()),d.ctx.storage&&d.ctx.storage.forEach(r.bind(null,b)),d.clip&&b.restore();return n("html2canvas: Renderer: Canvas renderer done - returning canvas obj"),u=e.elements.length,1===u&&"object"==typeof e.elements[0]&&"BODY"!==e.elements[0].nodeName?(f=c.Util.Bounds(e.elements[0]),p=o.createElement("canvas"),p.width=f.width,p.height=f.height,b=p.getContext("2d"),b.drawImage(m,f.left,f.top,f.width,f.height,0,0,f.width,f.height),m=null,p):m +}}}(window,document)}})}(),define("plugins/frontend_sample",["require"],function(){var t={};return function(e,i){if(location.search.indexOf("s_"+e+"=hit")>=0)return!0;t[e]||(t[e]=Math.random());var n=t[e];return i>n}}),define("webb/instance",["require","@baidu/webb","webb/instance-config"],function(t){function e(){return bds&&bds.comm&&bds.comm.lid?bds.comm.lid:""}function i(t){if(!r[t]){var i={pid:t,lid:e()},s=o[t];if(!s)return null;for(var a in s)s.hasOwnProperty(a)&&(i[a]=s[a]);r[t]=new n(i)}return r[t] +}var n=t("@baidu/webb"),o=t("webb/instance-config").config;if(-1!==document.cookie.indexOf("webbtest=1"))for(var s in o)if(o.hasOwnProperty(s))for(var a in o[s])o[s].hasOwnProperty(a)&&(o[s][a].sample=1);var r={};return{getInstance:i}}),define("webb/instance-config",["require"],function(){var t={"1_3":{et_js:{sample:.1},et_comm:{sample:.1},pf_comm:{sample:.01}}};return{config:t}}),!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@baidu/webb",[],e):"object"==typeof exports?exports.webb2=e():t.webb2=e() +}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e) +},e.p="",e(e.s=7)}([function(t,e){"use strict";function i(t,e){var i=new Image,o=n();window[o]=i,i.onload=function(){e&&e(),delete window[o]},i.onerror=function(t){e&&e(t),delete window[o]},i.src=t}function n(){var t=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function o(t,e){if(!e||"object"!==(void 0===e?"undefined":b(e)))return t;for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function s(t){return Object.keys(t).map(function(e){var i=t[e]; +return void 0===i?i="":"string"!=typeof i&&(i=JSON.stringify(i)),encodeURIComponent(e)+"="+encodeURIComponent(i)}).join("&")}function a(t,e){var i=["webkit","moz","ms","o"];if(e in t)return e;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(i){t[i]=e[i]}),t}function m(){if(Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}}function p(t){var e=window.getComputedStyle(t)["background-image"]; +return e&&"none"!==e&&/^url\(/i.test(e)?e.replace(/^url\(['"]?([^'"]+)['"]?\)/i,"$1"):""}function f(t){return t&&"string"==typeof t&&/^\s?(http:|https:)?\/\//.test(t)}function h(t,e){/complete|loaded|interactive/.test(document.readyState)&&document.body?t():document.addEventListener("DOMContentLoaded",function(){return e?void t():void setTimeout(function(){t()},0)})}Object.defineProperty(e,"__esModule",{value:!0});var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t +}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.sendLog=i,e.guid=n,e.extend=o,e.stringify=s,e.getProp=a,e.getScrollInfo=r,e.bindVisibilityChangeEvent=c,e.disposeVisibilityChangeEvent=d,e.getPageHiddenValue=l,e.assign=u,e.matchesPolyfill=m,e.getUrlFromStyle=p,e.isUrl=f,e.afterReady=h;var g=a(document,"hidden"),v=g.replace(/hidden/i,"visibilitychange"),w="baiduboxappvisibilitychange"},function(t,e,i){"use strict";function n(t){var e=this,i=t.colno||window.event&&window.event.errorCharacter||0,n=t.error||{},s=o.assign({msg:t.message,ln:t.lineno,file:t.filename,col:i,stack:n.stack},this.exceptionInfo); +setTimeout(function(){e.send("et_js",s,e.exceptionDim)},0)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(0);e["default"]={initException:function(){this.exceptionDim=null,this.exceptionInfo={},this.onerrorCb=n.bind(this)},startJsExceptionLog:function(t,e){this.exceptionInfo=o.assign({},t),this.exceptionDim=o.assign({},e),window.removeEventListener("error",this.onerrorCb),window.addEventListener("error",this.onerrorCb)},startResExceptionLog:function(){},stopJsExceptionLog:function(){window.removeEventListener("error",this.onerrorCb) +},stopResExceptionLog:function(){},sendExceptionLog:function(t,e){this.send("et_comm",t,e)},destroyJsException:function(){this.stopJsExceptionLog(),this.exceptionDim=null,this.exceptionInfo=null,this.onerrorCb=null}},t.exports=e["default"]},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e["default"]={sendBaseDispLog:function(t,e,i){var o=document.documentElement,s={size:{doc:{w:o.scrollWidth,h:o.scrollHeight},wind:{w:o.clientWidth,h:o.clientHeight},scr:{w:screen.width,h:screen.height}},dpr:window.devicePixelRatio||1}; +t&&(s=n.assign(s,t)),this.send("disp_comm",s,e,null,i)},sendDispLog:function(t,e,i){var o=void 0;o=t instanceof Array?t:n.assign({},t),this.send("disp_content",o,e,null,i)}},t.exports=e["default"]},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e["default"]={sendBasePfLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],i=arguments[2],o=window.performance&&performance.timing||{},s=o.navigationStart,a=o.requestStart,r=o.responseStart,c=o.responseEnd,d=o.domComplete,l=o.domLoading,u=o.domainLookupStart,m=o.domainLookupEnd,p=o.connectStart,f=o.connectEnd,h=o.loadEventStart,b=o.loadEventEnd,g={dns:m-u,tcp:f-p,req:r-a,res:c-r,dct:d-l,ld:b-h},v=window.__webbbrige__||{},w=v.whiteScreenTime,_=v.firstScreenTime; +w&&(g=n.assign(g,{wst:w-s})),_&&(g=n.assign(g,{fst:_-s})),g=n.assign(g,t),this.send("pf_comm",g,e,null,i)},sendPfLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],i=arguments[2],o=n.assign({},t);this.send("pf_comm",o,e,null,i)}},t.exports=e["default"]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={sendCountLog:function(t,e){this.send("count_comm",t,e)}},t.exports=e["default"]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={sendDistributeLog:function(t,e){this.send("dist_comm",t,e) +}},t.exports=e["default"]},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i=2&&t.curSpeed>2e3?t.curSpeed-=1e3:e&&t.lastQueueLen/e>=2&&t.curSpeed<6e3?t.curSpeed+=1e3:!e&&t.curSpeed<6e3?t.curSpeed+=1e3:e&&!t.lastQueueLen&&t.curSpeed>2e3?t.curSpeed-=1e3:!e&&t.curSpeed<6e3&&(t.curSpeed+=1e3),t.lastQueueLen=e,t.flushIaQueue(),clearTimeout(t.iaTimer),t.startCycle() +},this.curSpeed)},startIaMonitor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options&&this.options.ia){this.iaDim=s.assign(this.iaDim,t),this.resetIaSwitch(),this.iaShowCb(null,!0),this.removeMonitorEvents(),clearTimeout(this.iaTimer),this.startCycle(),this.monitorItems=a;var e=[];this.options&&this.options.ia&&this.options.ia.iaMonitorItems?e=this.options.ia.iaMonitorItems:this.options&&this.options.iaMonitorItems&&(e=this.options.iaMonitorItems),e&&Array.isArray(e)&&e.length&&(this.monitorItems=e.filter(function(t){return n(a,t) +}),this.monitorItems.length||(this.monitorItems=a)),this.bindMonitorEvents()}},stopIaMonitor:function(){this.options&&this.options.ia&&(this.iaHideCb(null,!0),this.flushIaQueue(),this.removeMonitorEvents(),clearTimeout(this.iaTimer))},sendScrollLog:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.scrollLogLock||(this.scrollLogLock=!0,setTimeout(function(){t.scrollLogLock=!1},500),e.x>=0&&e.y>=0||(e=s.getScrollInfo()),this.iaQueue.push({k:"scroll",x:e.x,y:e.y,t:(new Date).getTime(),ele:e.scrollEle||"window"})) +},sendResizeLog:function(){var t=this;this.resizeLogLock||(this.resizeLogLock=!0,setTimeout(function(){t.resizeLogLock=!1},500),setTimeout(function(){t.iaQueue.push({k:"resize",w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight,t:(new Date).getTime()})},50))},bindMonitorEvents:function(){var t=this.monitorItems;n(t,"bf")&&(s.getProp(document,"hidden")&&s.bindVisibilityChangeEvent(this.iaVisibilityCb),window.addEventListener("beforeunload",this.iaHideCb,!1),window.addEventListener("unload",this.iaHideCb,!1),window.addEventListener("pagehide",this.iaHideCb,!1),window.addEventListener("pageshow",this.iaShowCb,!1)),n(t,"scroll")&&window.addEventListener("scroll",this.scrollCb),n(t,"resize")&&window.addEventListener("resize",this.resizeCb) +},removeMonitorEvents:function(){window.removeEventListener("scroll",this.scrollCb),window.removeEventListener("resize",this.resizeCb),s.disposeVisibilityChangeEvent(this.iaVisibilityCb),window.removeEventListener("beforeunload",this.iaHideCb,!1),window.removeEventListener("unload",this.iaHideCb,!1),window.removeEventListener("pagehide",this.iaHideCb,!1),window.removeEventListener("pageshow",this.iaShowCb,!1)},updateIaDim:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}; +this.iaDim=t},resetIaSwitch:function(){this.iaSendSwitch=!1},convertIaSwitch:function(){this.iaSendSwitch=!this.iaSendSwitch},iaHideCb:function(t,e){if(this.iaSendSwitch||e){var i=t?t.type:"";e&&(i="manual"),this.convertIaSwitch(),this.iaQueue.push({k:"blur",trigger:i,t:(new Date).getTime()}),this.flushIaQueue()}},iaShowCb:function(t,e){if(!this.iaSendSwitch||e){var i=t?t.type:"";e&&(i="manual"),this.convertIaSwitch(),this.iaQueue.push({k:"focus",trigger:i,t:(new Date).getTime()}),this.flushIaQueue() +}},destroyIaMonitor:function(){this.removeMonitorEvents(),clearTimeout(this.iaTimer),this.iaTimer=null,this.curSpeed=null,this.iaQueue=null,this.lastQueueLen=null,this.iaDim=null,this.scrollCb=null,this.resizeCb=null,this.pageActiveStatusChangeCb=null}},t.exports=e["default"]},function(t,e,i){"use strict";function n(){var t=this.__media__;t.sendSwitch=!0,t.continueSwitch=!1}function o(){var t=this.__media__;t.sendSwitch=!t.sendSwitch,t.continueSwitch=!t.continueSwitch}function s(t){c.getPageHiddenValue(t)?this.mediaHideCb(t):this.mediaShowCb(t) +}function a(){var t=this.__media__||{};t.continueSwitch&&(this.convertMediaSwitch(),t.count+=1,t.startTime=Date.now())}function r(t,e){var i=this.__media__;if(i.sendSwitch||e){var n=t?t.type:"";e&&(n="manual"),i.endTime=Date.now(),this.convertMediaSwitch();var o={t1:i.startTime,t2:i.endTime,count:i.count,trigger:n};this.sendBeacon(d,o,i.dim)}}Object.defineProperty(e,"__esModule",{value:!0});var c=i(0),d="time";e["default"]={initMediaTime:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.__media__={dim:e,startTime:0,endTime:0,count:1,sendSwitch:!0,continueSwitch:!1}; +t?i.startTime=t:window.__webbbrige__&&window.__webbbrige__.startTime?(i.startTime=window.__webbbrige__.startTime,window.__webbbrige__.startTime=null):i.startTime=Date.now(),this.hasMediaInit=!0,this.mediaHideCb=r.bind(this),this.mediaShowCb=a.bind(this),this.mediaVisibilityCb=s.bind(this),this.resetMediaSwitch=n.bind(this),this.convertMediaSwitch=o.bind(this),this.destroyMediaEvent(),this.bindMediaEvent()},reStartMediaTime:function(t){if(!this.hasMediaInit)return void this.initMediaTime();var e=this.__media__; +e.count=t?1:e.count+1,e.startTime=Date.now(),this.resetMediaSwitch(),this.destroyMediaEvent(),this.bindMediaEvent()},stopMediaTime:function(){!this.__media__||this.__media__&&!this.__media__.startTime||(this.mediaHideCb(null,!0),this.destroyMediaEvent(),this.__media__.startTime=null)},updateMediaDim:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.__media__.dim=t},bindMediaEvent:function(){c.getProp(document,"hidden")&&c.bindVisibilityChangeEvent(this.mediaVisibilityCb),window.addEventListener("beforeunload",this.mediaHideCb,!1),window.addEventListener("unload",this.mediaHideCb,!1),window.addEventListener("pagehide",this.mediaHideCb,!1),window.addEventListener("pageshow",this.mediaShowCb,!1) +},destroyMediaEvent:function(){c.disposeVisibilityChangeEvent(this.mediaVisibilityCb),window.removeEventListener("beforeunload",this.mediaHideCb,!1),window.removeEventListener("unload",this.mediaHideCb,!1),window.removeEventListener("pagehide",this.mediaHideCb,!1),window.removeEventListener("pageshow",this.mediaShowCb,!1)},destroyMediaTime:function(){this.destroyMediaEvent(),this.__media__=null,this.hasMediaInit=!1,this.mediaHideCb=null,this.mediaShowCb=null,this.mediaVisibilityCb=null,this.resetMediaSwitch=null,this.convertMediaSwitch=null +}},t.exports=e["default"]}])}),$(window).on("swap_begin",function(){bds&&bds.se&&void 0!==bds.se.displayTime&&null!==bds.se.displayTime&&(clearTimeout(bds.se.displayTime),bds.se.displayTime=null)}).on("confirm",function(){bds&&bds.comm&&bds.comm.globalLogFlag&&1==bds.comm.globalLogFlag&&(1==bds.comm.logFlagNoNetwork||1==bds.comm.logFlagNoIntegration||(bds.se.displayTime=setTimeout(function(){bds&&bds.se&&bds.se.display(),bds.se.displayTime=null},5e3))),bds&&bds.se.userAction.collect()}).on("swap_end",function(t,e){!e&&bds&&bds.comm&&bds.comm.globalLogFlag&&1==bds.comm.globalLogFlag&&(1==bds.comm.logFlagNoNetwork||1==bds.comm.logFlagNoIntegration||(bds.se.displayTime=setTimeout(function(){bds&&bds.se&&bds.se.display(),bds.se.displayTime=null +},5e3))),!e&&bds&&bds.se.userAction.collect(),bds.log.send.sendNow("flow_monitor",{},{qid:bds.comm.qid,log:{},len:1})}),$(window).on("swap_end",function(){bds.comm.__rdNum&&bds.comm.__rdNum>9e3&&setTimeout(function(){$.ajax({dataType:"script",cache:!0,url:"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/clean_7973b0f.js",success:function(){bds.se.cleanCookie.init()}})},0)}),window.icodetest=12,$(window).on("swap_end",function(){bds&&bds.comm&&bds.comm.sampleval&&$.inArray("ZOOM_TEST",bds.comm.sampleval)>-1?require(["plugins/zoom_prompt"],function(t){t() +}):bds&&bds.comm&&bds.comm.sampleval&&$.inArray("ZOOM_COMP",bds.comm.sampleval)>-1&&require(["lib/get_zoom"],function(t){var e=t();e&&1!=e&&ns_c({fm:"behs",qid:bds.comm.qid,tab:"baidu_zoomshow"})})}),$(window).on("swap_end",function(){if(bds&&bds.comm&&bds.comm.sampleval&&$.inArray("qrcode",bds.comm.sampleval)>-1){var t=encodeURIComponent(bds.comm.query);t.length<=150&&require(["plugins/pcToWise"],function(e){e(t)})}}),$(document).ready(function(){require(["plugins/frontend_sample"],function(t){t("op_https_cert_usable",.001)&&require(["plugins/https_useable_sample"],function(t){t(document,$) +})})}),!function(){var t=navigator.userAgent,e=t.match(/MSIE\s*(\d+)/),i=e&&e[1]&&+e[1]<=9;i||require(["plugins/swfobject","soutu/js/tu"],function(t,e){if(/^\/imgsearch/.test(location.pathname)){var i=$("#content_left").find(".result-op"),n=[];i.each(function(){var t=$(this),e=t.attr("tpl");"tu_relate_site"===e&&(e+="@"+t.find(".op-tu-relate-site-result").length),n.push(e)}),e.log({rsv_imageshow:n.join(":")}),$("#page").hide(),$("#wrapper").outerHeight()<$(document).outerHeight()&&$("#foot").addClass("foot_fixed_bottom") +}})}(),!function(){function t(t){var e=["voice_beha=1"],i=window.bds&&bds.util&&bds.util.domain?bds.util.domain.get("http://nsclick.baidu.com"):"http://nsclick.baidu.com";for(var n in t)t.hasOwnProperty(n)&&e.push(n+"="+t[n]);var o=window["nsIMG"+ +new Date]=new Image;return o.src=i+"/v.gif?pid=201&"+e.join("&"),!0}(location.href.match(/voice=1/)||navigator.userAgent.match(/mac os x/i))&&require(["plugins/swfobject","voice/js/voice"],function(e,i){if(i.log=t,i&&i.support()){i.addStyle(),window.__supportvoice=!0; +var n=$("#form .ipt_rec");n.css("display","block"),n.click(function(){var t=i.init({url:bds.util.domain.get("http://vse.baidu.com")+"/echo.fcgi"});t.done(function(t){t.openUI(),t.onfinish(function(t){var e=t.content.item[0],i=t&&t.result?t.result.corpus_no:"";changeUrl("wd="+encodeURIComponent(e)+"&rsv_voice=1&hsug_mtype=2&rsv_vcorpus="+encodeURIComponent(i)),bds.comm.lastVoiceQuery=e}),i.log({q:"resolve"})}).fail(function(){i.log({q:"reject"}),alert("不能获得麦克风的权限")}),i.log({q:"start"})})}})}(),$(document).ready(function(){bds.comm&&bds.comm.ishome&&!$(".s_tab .s_tab_inner").get(0)&&$(".s_tab").wrapInner("
    ") +}); \ No newline at end of file diff --git a/static/data/Component is not found in path_files/baidu_jgylogo3.gif b/static/data/Component is not found in path_files/baidu_jgylogo3.gif new file mode 100644 index 0000000..774b5d6 Binary files /dev/null and b/static/data/Component is not found in path_files/baidu_jgylogo3.gif differ diff --git a/static/data/Component is not found in path_files/baidu_resultlogo@2.png b/static/data/Component is not found in path_files/baidu_resultlogo@2.png new file mode 100644 index 0000000..ea746b9 Binary files /dev/null and b/static/data/Component is not found in path_files/baidu_resultlogo@2.png differ diff --git a/static/data/Component is not found in path_files/bd_logo1.png b/static/data/Component is not found in path_files/bd_logo1.png new file mode 100644 index 0000000..b2c1090 Binary files /dev/null and b/static/data/Component is not found in path_files/bd_logo1.png differ diff --git a/static/data/Component is not found in path_files/jquery-1.10.2.min_65682a2.js.下载 b/static/data/Component is not found in path_files/jquery-1.10.2.min_65682a2.js.下载 new file mode 100644 index 0000000..9a91a5c --- /dev/null +++ b/static/data/Component is not found in path_files/jquery-1.10.2.min_65682a2.js.下载 @@ -0,0 +1,157 @@ +!function(e,t){function n(e){var t=e.length,n=ct.type(e);return ct.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=kt[e]={};return ct.each(e.match(pt)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ct.acceptData(e)){var o,a,s=ct.expando,u=e.nodeType,l=u?ct.cache:e,c=u?e[s]:e[s]&&s;if(c&&l[c]&&(i||l[c].data)||r!==t||"string"!=typeof n)return c||(c=u?e[s]=tt.pop()||ct.guid++:s),l[c]||(l[c]=u?{}:{toJSON:ct.noop}),("object"==typeof n||"function"==typeof n)&&(i?l[c]=ct.extend(l[c],n):l[c].data=ct.extend(l[c].data,n)),a=l[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[ct.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[ct.camelCase(n)])):o=a,o +}}function o(e,t,n){if(ct.acceptData(e)){var r,i,o=e.nodeType,a=o?ct.cache:e,u=o?e[ct.expando]:ct.expando;if(a[u]){if(t&&(r=n?a[u]:a[u].data)){ct.isArray(t)?t=t.concat(ct.map(t,ct.camelCase)):t in r?t=[t]:(t=ct.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!s(r):!ct.isEmptyObject(r))return}(n||(delete a[u].data,s(a[u])))&&(o?ct.cleanData([e],!0):ct.support.deleteExpando||a!=a.window?delete a[u]:a[u]=null)}}}function a(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(St,"-$1").toLowerCase(); +if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:Et.test(r)?ct.parseJSON(r):r}catch(o){}ct.data(e,n,r)}else r=t}return r}function s(e){var t;for(t in e)if(("data"!==t||!ct.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(){return!0}function l(){return!1}function c(){try{return G.activeElement}catch(e){}}function f(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function p(e,t,n){if(ct.isFunction(t))return ct.grep(e,function(e,r){return!!t.call(e,r,e)!==n +});if(t.nodeType)return ct.grep(e,function(e){return e===t!==n});if("string"==typeof t){if($t.test(t))return ct.filter(t,e,n);t=ct.filter(t,e)}return ct.grep(e,function(e){return ct.inArray(e,t)>=0!==n})}function d(e){var t=Ut.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){return ct.nodeName(e,"table")&&ct.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e +}function g(e){return e.type=(null!==ct.find.attr(e,"type"))+"/"+e.type,e}function m(e){var t=on.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function y(e,t){for(var n,r=0;null!=(n=e[r]);r++)ct._data(n,"globalEval",!t||ct._data(t[r],"globalEval"))}function v(e,t){if(1===t.nodeType&&ct.hasData(e)){var n,r,i,o=ct._data(e),a=ct._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)ct.event.add(t,n,s[n][r])}a.data&&(a.data=ct.extend({},a.data)) +}}function b(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ct.support.noCloneEvent&&t[ct.expando]){i=ct._data(t);for(r in i.events)ct.removeEvent(t,r,i.handle);t.removeAttribute(ct.expando)}"script"===n&&t.text!==e.text?(g(t).text=e.text,m(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ct.support.html5Clone&&e.innerHTML&&!ct.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&tn.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue) +}}function x(e,n){var r,i,o=0,a=typeof e.getElementsByTagName!==Y?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==Y?e.querySelectorAll(n||"*"):t;if(!a)for(a=[],r=e.childNodes||e;null!=(i=r[o]);o++)!n||ct.nodeName(i,n)?a.push(i):ct.merge(a,x(i,n));return n===t||n&&ct.nodeName(e,n)?ct.merge([e],a):a}function T(e){tn.test(e.type)&&(e.defaultChecked=e.checked)}function w(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=kn.length;i--;)if(t=kn[i]+n,t in e)return t; +return r}function C(e,t){return e=t||e,"none"===ct.css(e,"display")||!ct.contains(e.ownerDocument,e)}function N(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=ct._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&C(r)&&(o[a]=ct._data(r,"olddisplay",A(r.nodeName)))):o[a]||(i=C(r),(n&&"none"!==n||!i)&&ct._data(r,"olddisplay",i?n:ct.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none")); +return e}function k(e,t,n){var r=vn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function E(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ct.css(e,n+Nn[o],!0,i)),r?("content"===n&&(a-=ct.css(e,"padding"+Nn[o],!0,i)),"margin"!==n&&(a-=ct.css(e,"border"+Nn[o]+"Width",!0,i))):(a+=ct.css(e,"padding"+Nn[o],!0,i),"padding"!==n&&(a+=ct.css(e,"border"+Nn[o]+"Width",!0,i)));return a}function S(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=fn(e),a=ct.support.boxSizing&&"border-box"===ct.css(e,"boxSizing",!1,o); +if(0>=i||null==i){if(i=pn(e,t,o),(0>i||null==i)&&(i=e.style[t]),bn.test(i))return i;r=a&&(ct.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+E(e,t,n||(a?"border":"content"),r,o)+"px"}function A(e){var t=G,n=Tn[e];return n||(n=j(e,t),"none"!==n&&n||(cn=(cn||ct(""),g.close(),l=g.w.frames[0].document,n=l.createElement("div")}catch(m){n=o.createElement("div"),l=o.body}i.set=s(function(e,t,s){return t=a(t),void 0===s?i.remove(t):(e.setAttribute(t,i.serialize(s)),void e.save(u))}),i.get=s(function(e,t){return t=a(t),i.deserialize(e.getAttribute(t))}),i.remove=s(function(e,t){t=a(t),e.removeAttribute(t),e.save(u) +}),i.clear=s(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(u);for(var s,a=0;s=t[a];a++)e.removeAttribute(s.name);e.save(u)}),i.getAll=s(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(u);for(var s,a={},n=0;s=t[n];++n)a[s]=i.get(s);return a})}try{i.set(c,c),i.get(c)!=c&&(i.disabled=!0),i.remove(c)}catch(m){i.disabled=!0}return i}();var ImeTrack=function(){function e(e){var t=0;if(document.selection){e.focus();var s=document.selection.createRange(),a=0;e&&e.value&&(a=e.value.length),s.moveStart("character",-a),t=s.text.length-1 +}else(e.selectionStart||"0"===e.selectionStart)&&(t=e.selectionStart);return t}function t(t){function s(e){n.ipt.value!==n.oldval&&(n.oldval=n.ipt.value,n.inputchangeHandle(e))}function a(){for(var e=0,t=n.logs.length-1;t0;)t--,-1!==this.logs[t].type.indexOf("unval-")?(e.type=(-1===e.type.indexOf("unval-")?"":"unval-")+this.logs[t].type.replace("unval-","")+"-"+e.type.replace("unval-",""),this.logs[t]=e,s=!0):t=-2;if(s)return!1;for(;this.logs.length>=this.opts.logmaxnum;)this.logs.shift(); +return!0},analyseLog:function(){function t(){if(s.opts.adv)for(var e=0;e256&&(o=i.substring(0,e+1),u=i.substring(e+1))}var s=this;if(this.logs.length>0&&-1===this.logs[this.logs.length-1].type.indexOf("unval")){var a=this.logs[this.logs.length-1],n=a.val.substring(0,a.start),i=a.val.substring(a.start,a.cursor),r=a.val.substring(a.cursor),o="",u="";229===a.kd?i.charCodeAt(i.length-1)>256||!i.match(/[\x00-\x80]/g)?(this._keyposition=e(this.ipt),a.type+="-endime",0===i.length&&(a.type+="-cancelime")):(a.type+="-imeinput",t()):a.type.indexOf("paste-mouse")>-1?this._keyposition=e(this.ipt):a.type.indexOf("change-unkey")>-1?0===i.length?(this._keyposition=e(this.ipt),this.logs.length>1&&this.logs[this.logs.length-2].type.indexOf("upsave")>-1&&(a.type+="-link")):i.charCodeAt(i.length-1)>256||!i.match(/[\x00-\x80]/g)?(this._keyposition=e(this.ipt),a.type+="-endime"):(a.type+="-imeinput",t()):this._keyposition=e(this.ipt),this.opts.adv&&(a.type+="-adv",a.strA=n,a.strB=i,a.strB1=o,a.strB2=u,a.strC=r),this.onLogChange&&this.onLogChange.call(this,a) +}},addLog:function(t){t.kd=this._kdcode,t.val=this.ipt.value,t.start=this._keyposition,t.cursor=e(this.ipt),t.type=t.type||0,t.time=(new Date).getTime(),(0===this.logs.length||this.logs[this.logs.length-1].val!==t.val||-1!==this.logs[this.logs.length-1].type.indexOf("unval-")||-1!==t.type.indexOf("unval-"))&&(this.checkLog(t)&&this.logs.push(t),this.analyseLog())},getLog:function(){var e=this.logs.slice(0);return e},triggerInputChange:function(e){this.inputchangeHandle(e)},diffLog:function(){var e=[],t=!1; +for(var s in this.logs)if("0"!==s){var a=this.logs[s];if(a.strB&&a.strA){if(0===a.strB.length&&a.strA.length-1||a.type.indexOf("paste")>-1){e=[];continue}}var n=a.time-this.logs[s-1].time;n>3e3&&(e=[]);var i=0,r=(a.val.match(/[^\x00-\x80]/g)||[]).length-(this.logs[s-1].val.match(/[^\x00-\x80]/g)||[]).length;r>0?i=1:r=(a.val.match(/[\x00-\x80]/g)||[]).length-(this.logs[s-1].val.match(/[\x00-\x80]/g)||[]).length,a.type.indexOf("ime")>-1?(i+=2,t=!0):a.type.indexOf("unval")>-1&&t?i+=2:t=!1,r>0&&e.push(i,r,n) +}return e}},t}(),bdSug=function(e){var t=new SUGOBJ(e);return t.outInterface()},supportInputEvent="oninput"in document.createElement("input")&&!navigator.userAgent.match(/MSIE 9/)&&!navigator.userAgent.match(/chrome\/(28|29|30|31)/i),BDSUG_TIMESTAMP_START=14183424e5,BDSUG_QUERY_LEV=4;return SUGOBJ.prototype={updateInitData:function(type){var me=this,opts=me.opts||{};me.setsug=!0,me.setsugstorage=!0,me.sets={},me.sugcookie=navigator.cookieEnabled&&/sug=(\d)/.test(document.cookie)?RegExp.$1:3,me.sugstorecookie=navigator.cookieEnabled&&/sugstore=(\d)/.test(document.cookie)?RegExp.$1:1,me.bds&&me.bds.comm&&me.bds.comm.personalData&&(me.sets="string"==typeof me.bds.comm.personalData?eval("("+me.bds.comm.personalData+")"):me.bds.comm.personalData),me.sets.errno&&0===me.sets.errno&&me.sets.sugSet&&me.sets.sugSet.ErrMsg&&"SUCCESS"===me.sets.sugSet.ErrMsg?"0"===me.sets.sugSet.value&&(me.setsug=!1):"0"===me.sugcookie&&(me.setsug=!1),me.sets.errno&&0===me.sets.errno&&me.sets.sugStoreSet&&me.sets.sugStoreSet.ErrMsg&&"SUCCESS"===me.sets.sugStoreSet.ErrMsg?"0"===me.sets.sugStoreSet.value&&(me.setsugstorage=!1):"0"===me.sugstorecookie&&(me.setsugstorage=!1),me.loggedon=me.bds&&me.bds.se.store&&!me.bds.se.store.disabled&&navigator.cookieEnabled,me.showsug=opts.showsug?opts.showsug:me.setsug,me.showsugstore=opts.showsugstore?opts.showsugstore:me.showsug&&me.loggedon&&me.setsugstorage,me.query=me.bds.comm.query,me.pinyin=me.bds.comm.pinyin,me.sugHost=me.bds.comm.sugHost||"",me.sid=navigator.cookieEnabled&&/H_PS_PSSID=([0-9_]+)/.test(document.cookie)?RegExp.$1:me.bds.comm.sid; +var canWriteStore=!0,sampleHis=!1;if(me.bds&&me.bds.comm&&me.bds.comm.sampleval&&$.inArray("sample_his",me.bds.comm.sampleval)>-1){var isLogin=me.bds&&me.bds.comm&&me.bds.comm.username;isLogin?canWriteStore=!1:1==me.bds.se.store.get("wwwPassLogout")&&(canWriteStore=!1)}("init"!==type||document.referrer)&&canWriteStore&&me.writeStore(),me.bds.se.store.set("wwwPassLogout",0)},check:function(){var e=this;e.value!==e.ipt.value&&e.showValue!==e.ipt.value&&(e.inputValue=e.showValue=e.value=e.ipt.value,e.bds&&e.bds.comm&&0===e.bds.comm.ishome&&e.addStat("oq",e.bds.comm.confirmQuery?xss(e.bds.comm.confirmQuery):""),e.bds&&e.bds.comm&&e.bds.comm.confirmQid&&e.addStat("rsv_pq",e.bds.comm.confirmQid),$(e.ipt).trigger("inputChange",[e]),e.request(e.value)) +},startCircle:function(){var e=this;e.timer||($(e.ipt).trigger("start",[e]),e.timer=setTimeout(function(){e.check(),e.timer=setTimeout(arguments.callee,200)},200),supportInputEvent&&$(e.ipt).bind("input",function(){e.check()}))},stopCircle:function(){var e=this;e.timer&&(clearTimeout(e.timer),supportInputEvent&&$(e.ipt).unbind("input"),e.timer=null,$(e.ipt).trigger("stop",[e]))},callback:function(e,t){function s(e){a.zhixintemplate[e]&&!a.zhixinused[e]&&(a.zhixinused[e]=$.ajax({crossDomain:!0,url:a.zhixintemplate[e],dataType:"script",scriptCharset:"UTF-8"})) +}var a=this;if(e&&e.exp){var n=a.stat.rsv_sug6||"";n.length>0&&e.exp.length>0&&-1===n.indexOf(e.exp)?n+="_"+e.exp:n=e.exp,a.addStat("rsv_sug6",n)}if(e&&(e.g||e.z||a.checkStore(e)&&a.checkStore(e).length>0)){if(a.queryValue=e.q,e.q&&2!==t&&(a.dataCached[e.q]=e),$(a.ipt).trigger("dataReady",[a]),!a.withoutZhixin&&e.zzx)for(var i=0;iBDSUG_QUERY_LEV&&(m.fq=o[l].s-BDSUG_QUERY_LEV+1),u.push(m),u.length>10&&u.shift() +}i="//www.baidu.com/sugrec?",r="prod=pc_his&from=pc_web&json=1&sid="+a.sid+"&hisdata=",$.stringify&&u.length&&(r+=encodeURIComponent($.stringify(u))),!window.__sam_his_hot||a.bds&&a.bds.comm&&a.bds.comm.username||(r+="&type=4")}if(a.withoutZhixin?"":"&zxmode=1",a.sugcookie>0&&(a.sugcookie=3),""===e)var p=i+r;else var p=i+"&wd="+encodeURIComponent(e);return bds.comm.supportis&&(p+="&req=2"),window.bds&&bds.comm&&bds.comm.cur_query&&(p+="&bs="+encodeURIComponent(bds.comm.cur_query)),window.bds&&bds.comm&&bds.comm.cur_disp_query&&(p+="&pbs="+encodeURIComponent(bds.comm.cur_disp_query)),!window._is_sugemptyhot_sam||!bds.comm.ishome||bds.comm.username||e||s?e||s||(p+="&sc=eb"):p+="&sc=hot",a.ipt&&(p+="&csor="+getCursortPosition(a.ipt)),a.pwd&&(p+="&pwd="+encodeURIComponent(a.pwd)),a.pwd=e,p +},request:function(e,t){var s=this;if(e&&(e=$.limitWd(e,160)),s.directSugSelected=!1,"_blank"===$(s.form).attr("target")&&1===$(s.ipt).attr("data-bfocus"))$(s.ipt).focus().attr("data-bfocus",0);else if(s.showsug){if(s.reqValue=e,2!==t&&s.dataCached[e])return void s.callback(s.dataCached[e]);s.jqXhr&&s.jqXhr.abort(),s.jqXhr=$.ajax({dataType:"jsonp",async:!0,url:s.buildUrl(e,t),jsonp:"cb",timeout:5e3,success:function(e){s.callback(e,t)},always:function(){s.jqXhr=null}}),s.rsv_sug3++,s.addStat("rsv_sug3",s.rsv_sug3),s.initTime=(new Date).getTime() +}},packData:function(e){var t=this,s=[];t.checkHot(e),t.checkAla(e),t.checkStore(e),t.bds.comm.supportis||t.checkDirect(e);for(var a=t.mergeData(e),n=0;n9)break}else if(t.bds&&t.bds.comm&&0===t.bds.comm.ishome&&t.bds.comm.supportis&&("store"===a[n].type||"hot"===a[n].type)){if(n>t.maxNum-1+5)break}else if(n>t.maxNum-1)break;t.reverse?s.unshift(a[n]):s.push(a[n])}return s},checkHot:function(e){var t=this;if(t.dataHot=[],e.g&&e.g.length)for(var s=0;s0&&!t.withoutRich)for(var s=0;s-1&&e.storearr.splice(i,1),e.storearr.push({q:t,p:s,s:a,t:n}),e.storearr.length>50&&e.storearr.shift(),e.setStore()}},checkStore:function(e){var t=this; +if(t.dataStored=[],t.showsugstore&&checkHsugShow(t.value)){if(e&&e.g&&e.g.length)for(var s=0;s"+e.substring(a)+"";return s+n}function o(e){return e=e.replace(/&/g,"&"),e=e.replace(//g,">")}var u={};u.value=e;var d=i(e,s.queryValue);switch(t){case"direct":u.html="-"===a.iconurl?'

    '+a.site+""+a.showurl+"官网

    ":'

    '+a.site+""+a.showurl+"

    ",u.type="direct"; +break;case"ala":u.html="

    "+d+"

    "+a.word+"

    ",u.type="ala",u.alaid=a.id;break;case"store":2===a["new"]&&(d+=' [企业]'),u.html=""+d+"",(s.bds.comm.username||"|"!==a)&&(u.html+='删除'),u.type="store",u.pinyin=a,u.s=n;break;default:a&&a["new"]&&2===a["new"]&&(d+=' [企业]'),u.html=d +}if(!s.withoutZhixin&&s.zhixinsug.length>0)for(var c=0;c0&&""===s.value){for(var r=0;r=8));r++);return a}if(s.dataDirect.length>0&&(a.push(t(s.dataDirect[0].value,"direct",s.dataDirect[0].otherData)),ns_c({pj_name:"zhida_sug",zhida_prefix:encodeURIComponent(s.inputValue),zhida_query:encodeURIComponent(s.dataDirect[0].value),zhida_chufa:encodeURIComponent(s.dataDirect[0].otherData.hit_q),zhida_bp:s.bds.comm.ishome?0:1})),s.dataAladdin.length>0)for(var r=0;r=1));r++);if(s.dataStored.length>0)for(var r=0;r=9)break;if(""!==s.value&&n>=2)break}var d=[];if(e.g&&e.g.length>0){for(var r=0;r0){for(var s=document.createElement("UL"),a=t.bds&&t.bds.util&&t.bds.util.domain?t.bds.util.domain.get("http://sclick.baidu.com"):"http://sclick.baidu.com",n=0;n0; +d||(t.zhixindata[r]=$.ajax({dataType:"jsonp",async:!0,url:u,jsonp:"cb"})),$(i).addClass("bdsug-zx").on("focused",function(){var e=$(this).data("key"),s=t.zhixindata[e]&&t.zhixindata[e].responseJSON&&0===t.zhixindata[e].responseJSON.status&&t.zhixindata[e].responseJSON.data&&t.zhixindata[e].responseJSON.data.length>0,a=$(t.sugcontainer).find(".bdsug-box")[0];if(s&&a&&t.bds.se.sugzx&&t.bds.se.sugzx[o]){var n=t.bds.se.sugzx[o](t.zhixindata[e].responseJSON.data,e,t.outInterface(),t);n instanceof jQuery&&($(t.sugcontainer).addClass("bdsug-showzx"),$(a).empty().append(n),$(t.sugcontainer).height()<$(t.sugcontainer).find(".bdsug-box").height()&&$(t.sugcontainer).css({height:$(t.sugcontainer).find(".bdsug-box").height()})) +}}).on("blured",function(){$(t.sugcontainer).removeClass("bdsug-showzx"),$(t.sugcontainer).css({height:"auto"})})}t.setSug(i,e[n].value,e[n].type),s.appendChild(i)}t.form?$(t.sugcontainer).insertBefore(t.form.firstChild):$(t.ipt).after(t.sugcontainer),t.sugcontainer.innerHTML="",t.sugcontainer.appendChild(s),$(t.sugcontainer).removeClass("bdsug-showzx"),$(t.sugcontainer).css({height:"auto"});var c=$(t.sugcontainer).find("ul li");t.withoutZhixin||($(t.sugcontainer).addClass("bdsug-showarrow"),$(t.sugcontainer).append($('
    ')),$(t.form).find(".bdsug-tmp").length||$(t.form).append($('
    ')),$(t.sugcontainer).find(".bdsug-box").on("mouseenter",function(){$(t.sugcontainer).addClass("bdsug-showzx"),$(c[t.index]).addClass("bdsug-s") +}).on("mouseleave",function(){$(t.sugcontainer).removeClass("bdsug-showzx"),$(c[t.index]).removeClass("bdsug-s"),$(t.sugcontainer).css({height:"auto"})}).on("click",function(e){e.stopPropagation()})),$(t.form).find(".bdsug-tmp").empty();var l=$("
  • ").appendTo($("
    ").addClass("bdsug-showzx").appendTo($(t.form).find(".bdsug-tmp"))),g=$("
    ").css({position:"absolute",display:"inline-block",top:"-10000px",left:"-10000px"}).appendTo($(t.form).find(".bdsug-tmp"));$.each(c,function(e,s){g.html($(s).html()); +var a=28;g.width()>l.width()-$(t.sugcontainer).find(".bdsug-arrow").width()-a&&$(s).addClass("bdsug-overflow")});var m="0";if(0===t.bds.comm.ishome?m="0":1===t.bds.comm.ishome&&window.s_domain&&"home"===window.s_domain.base?m="2":1===t.bds.comm.ishome&&(m="1"),""===t.value&&e.length){for(var p=0,n=0;n0&&$(".bdsug-feedback-wrap").remove(),t.dataStored.length&&t.dataStored.length>3||t.dataHot.length&&t.dataHot.length>3){var h=""; +t.bds.comm.username?(h='
    关闭历史|删除历史|更多历史
    ',$(t.sugcontainer).append(h)):t.dataHot.length?(h='
    关闭
    ',$(t.sugcontainer).append(h)):(h='
    关闭历史
    ',$(t.sugcontainer).append(h)),$(t.sugcontainer).find(".del_all_storeSug").click(function(){if(t.dataStored[0]&&t.dataStored[0].pinyin&&"|"===t.dataStored[0].pinyin){var e=t.bds&&t.bds.util&&t.bds.util.domain&&t.bds.util.domain.get("http://api.open.baidu.com/new_hsug/data/Deleteall"); +$.ajax({dataType:"jsonp",scriptCharset:"utf-8",jsonp:"cb",timeout:6e3,url:e,success:function(){}})}t.storearr=[],t.setStore(),t.hideSug();var s=window["BD_PS_C"+(new Date).getTime()]=new Image;s.src=a+"/w.gif?q=delall&fm=beha&rsv_sug=delall&rsv_sid="+t.bds.comm.sid+"&t="+(new Date).getTime()+"&rsv_sug9=es_"+m+"_"+(t.bds.comm.supportis?1:0)+"&path=http://www.baidu.com"}),$(t.sugcontainer).find(".more_storeSug").click(function(){ns_c({pj_name:"hs_sug_more"})}),$(t.sugcontainer).find(".close_hotSug").click(function(){t.hideSug(),ns_c({pj_name:"hot_sug_close"}) +}),$(t.sugcontainer).find(".setup_storeSug").click(function(){t.bds.event.trigger("bd.se.loadpanel",{tabindex:0,tipsConfig:{content:t.bds&&t.bds.comm&&t.bds.comm.username?"该选项可以关闭您账号下多个设备的搜索历史":"该选项可以关闭您的历史记录",wrapper:"#se-setting-5"}}),t.hideSug(),ns_c({pj_name:"hs_sug_setup"})})}}$.each(c,function(s,n){if(e[s]&&"store"===e[s].type){var i=s;$(n).find("u").click(function(s){if(s.stopPropagation(),$(n).remove(),t.bds&&t.bds.comm&&t.bds.comm.username){var r=t.bds&&t.bds.util&&t.bds.util.domain&&t.bds.util.domain.get("http://api.open.baidu.com/new_hsug/data/Delete"); +r=r+"?query="+encodeURIComponent(e[i].value),$.ajax({dataType:"jsonp",scriptCharset:"utf-8",jsonp:"cb",timeout:6e3,url:r,success:function(){}})}if(e[i].pinyin&&"|"===e[i].pinyin){t.dataCached={};var o=!1;$.each(t.storearr,function(e){encodeURIComponent(t.dataArray[i].value)===t.storearr[e].q&&(o=e)}),o!==!1&&(t.storearr.splice(o,1),t.setStore())}else{var o=!1;$.each(t.storearr,function(e){t.dataArray[i].pinyin===decodeURIComponent(t.storearr[e].p)&&(o=e)}),o!==!1&&(t.storearr.splice(o,1),t.setStore()) +}var u=window["BD_PS_C"+(new Date).getTime()]=new Image;u.src=a+"/w.gif?q="+encodeURIComponent(e[i].value)+"&fm=beha&rsv_sug=del&rsv_sid="+t.bds.comm.sid+"&t="+(new Date).getTime()+(""===t.value?"&rsv_sug9=es_"+m+"_"+(t.bds.comm.supportis?1:0):"")+"&path=http://www.baidu.com"})}});var v=!!window.ActiveXObject&&(!document.documentMode||document.documentMode<=9);v||(0!==$(".bdsug-feedback-wrap").length&&$(".bdsug-feedback-wrap").remove(),""!==t.value&&($(t.sugcontainer).append('
    反馈
    '),$(".bdsug-feedback-wrap").on("click",function(){var e=t.dataArray; +t.dataArray.forEach(function(t,s){e[s]=t.value}),t.bds.se.ShortCut.initSugBar(e),t.hideSug()}))),$(t.ipt).trigger("render",[t]),t.renderCallback(),t.showSug(),$(t.ipt).trigger("showSug",[t])}else t.renderCallback(),t.hideSug()},setAutocomplete:function(e){var t=this;$(t.ipt).attr("autocomplete",e)},setSug:function(e,t,s){$(e).attr("data-key",t),s&&$(e).addClass("bdsug-"+s)},clickIpt:function(){var e=this;e.bds.comm.query&&e.ipt.value&&e.bds.comm.query===e.ipt.value?e.request(e.ipt.value,"2"):e.request(e.ipt.value) +},showSug:function(){var e=this;e.index=-1,e.ipt.value===e.reqValue&&$(e.sugcontainer).show(),e.visible=!0,e.rsv_sug1++,e.addStat("rsv_sug1",e.rsv_sug1),e.addStat("rsv_sug7",e.rsv_sug7.join(""))},hideSug:function(){var e=this;e.is_selecting=!1,$(e.ipt).trigger("hide",[e]),$(e.sugcontainer).hide(),e.visible=!1,e.jqXhr&&e.jqXhr.abort(),e.jqXhr=null},selectSug:function(e){var t=this,s=$(t.sugcontainer).find("li");if(t.blurSug(s),t.directSugSelected=-1!==e&&s.eq(e).hasClass("bdsug-direct")?!0:!1,-1!==e){t.is_selecting=!0; +var a=$($(s)[e]).data("key");t.focusSug(s[e],a),t.sugValue=t.showValue=t.value=t.ipt.value=a,t.addStat("sug",a),t.bds&&t.bds.comm&&0===t.bds.comm.ishome&&t.addStat("oq",t.bds.comm.confirmQuery?xss(t.bds.comm.confirmQuery):""),t.bds&&t.bds.comm&&t.bds.comm.confirmQid&&t.addStat("rsv_pq",t.bds.comm.confirmQid),t.addStat("rsv_n",1)}else t.is_selecting=!1,t.selectCallback(t.inputValue),t.showValue=t.value=t.ipt.value=t.inputValue,t.sugValue="",t.removeStat("sug"),t.removeStat("rsv_n");t.stopRefresh=t.inputValue||1!==t.bds.comm.ishome?!1:!0,$(t.ipt).trigger("selectSug",[t,e,a]) +},blurSug:function(e){$(e).removeClass("bdsug-s"),$(e).trigger("blured")},focusSug:function(e,t){var s=this;$(e).addClass("bdsug-s"),$(e).trigger("focused"),s.selectCallback(t)},pressUp:function(e){var t=this,e=$(t.sugcontainer).find("li").length;t.index--,t.index<-1&&(t.index=e-1),t.selectSug(t.index)},pressDown:function(e){var t=this,e=$(t.sugcontainer).find("li").length;t.index++,t.index>=e&&(t.index=-1),t.selectSug(t.index)},addStat:function(e,t){t=encodeURIComponent(t);var s=this;if(s.stat||(s.stat={}),s.stat[e]=t,!s.withoutStat){var a=$(s.form).find('input[type="hidden"][name="'+e+'"]'); +a.length?$(a).val(t):$(s.form).append('')}},removeStat:function(e){var t=this;if(!t.withoutStat&&($(t.form).find('input[type="hidden"][name="'+e+'"]').remove(),!t.stat))try{delete t.stat[e]}catch(s){}},clearStat:function(){var e=this;e.bds&&e.bds.comm&&e.bds.comm.isAsync&&(e.removeStat("rsp"),e.removeStat("prefixsug"),1===e.bds.comm.ishome?e.addStat("rsv_dl","ib"):e.addStat("rsv_dl","tb")),e.rsv_sug7=[0,0,0],e.removeStat("rsv_n"),e.removeStat("rsv_sug"),e.removeStat("rsv_sug1"),e.removeStat("rsv_sug2"),e.removeStat("rsv_sug3"),e.removeStat("rsv_sug4"),e.removeStat("rsv_sug5"),e.removeStat("rsv_sug6"),e.removeStat("rsv_sug7"),e.removeStat("rsv_sug8"),e.removeStat("rsv_sug9"),e.stat={} +},getRsvStatus:function(e){var t=this,s=[],a=[-2];if(t.rsv_sug){a=[-1];for(var n in t.dataArray)e===t.dataArray[n].value&&(a=[0,n],n');return function(s){var a;for(t.remove(),a=0;aa;a++)H[a]()}}function n(e){X?e():H[H.length]=e}function i(e){if(typeof P.addEventListener!==O)P.addEventListener("load",e,!1);else if(typeof R.addEventListener!==O)R.addEventListener("load",e,!1);else if(typeof P.attachEvent!==O)b(P,"onload",e); +else if("function"==typeof P.onload){var t=P.onload;P.onload=function(){t(),e()}}else P.onload=e}function a(){var e=R.getElementsByTagName("body")[0],t=g(x);t.setAttribute("style","visibility:hidden;"),t.setAttribute("type",M);var n=e.appendChild(t);n?!function(){if(typeof n.GetVariable!==O)try{var i=n.GetVariable("$version");i&&(i=i.split(" ")[1].split(","),Q.pv=[w(i[0]),w(i[1]),w(i[2])])}catch(a){Q.pv=[8,0,0]}else Q.pv=[8,0,0];e.removeChild(t),n=null,r()}():r()}function r(){var e=W.length;if(e>0)for(var t=0;e>t;t++){var n=W[t].id,i=W[t].callbackFn,a={success:!1,id:n}; +if(Q.pv[0]>0){var r=m(n);if(r)if(!E(W[t].swfVersion)||Q.wk&&Q.wk<312)if(W[t].expressInstall&&l()){var f={};f.data=W[t].expressInstall,f.width=r.getAttribute("width")||"0",f.height=r.getAttribute("height")||"0",r.getAttribute("class")&&(f.styleclass=r.getAttribute("class")),r.getAttribute("align")&&(f.align=r.getAttribute("align"));for(var c={},u=r.getElementsByTagName("param"),p=u.length,v=0;p>v;v++)"movie"!==u[v].getAttribute("name").toLowerCase()&&(c[u[v].getAttribute("name")]=u[v].getAttribute("value")); +s(f,c,n,i)}else d(r),i&&i(a);else A(n,!0),i&&(a.success=!0,a.ref=o(n),a.id=n,i(a))}else if(A(n,!0),i){var y=o(n);y&&typeof y.SetVariable!==O&&(a.success=!0,a.ref=y,a.id=y.id),i(a)}}}function o(e){var t=null,n=m(e);return n&&"OBJECT"===n.nodeName.toUpperCase()&&(t=typeof n.SetVariable!==O?n:n.getElementsByTagName(x)[0]||n),t}function l(){return!z&&E("6.0.65")&&(Q.win||Q.mac)&&!(Q.wk&&Q.wk<312)}function s(e,t,n,i){var a=m(n);if(n=h(n),z=!0,k=i||null,B={success:!1,id:n},a){"OBJECT"===a.nodeName.toUpperCase()?(T=f(a),N=null):(T=a,N=n),e.id=j,(typeof e.width===O||!/%$/.test(e.width)&&w(e.width)<310)&&(e.width="310"),(typeof e.height===O||!/%$/.test(e.height)&&w(e.height)<137)&&(e.height="137"); +var r=Q.ie?"ActiveX":"PlugIn",o="MMredirectURL="+encodeURIComponent(P.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+r+"&MMdoctitle="+encodeURIComponent(R.title.slice(0,47)+" - Flash Player Installation");if(typeof t.flashvars!==O?t.flashvars+="&"+o:t.flashvars=o,Q.ie&&4!=a.readyState){var l=g("div");n+="SWFObjectNew",l.setAttribute("id",n),a.parentNode.insertBefore(l,a),a.style.display="none",v(a)}u(e,t,n)}}function d(e){if(Q.ie&&4!=e.readyState){e.style.display="none";var t=g("div"); +e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(f(e),t),v(e)}else e.parentNode.replaceChild(f(e),e)}function f(e){var t=g("div");if(Q.win&&Q.ie)t.innerHTML=e.innerHTML;else{var n=e.getElementsByTagName(x)[0];if(n){var i=n.childNodes;if(i)for(var a=i.length,r=0;a>r;r++)1==i[r].nodeType&&"PARAM"===i[r].nodeName||8==i[r].nodeType||t.appendChild(i[r].cloneNode(!0))}}return t}function c(e,t){var n=g("div");return n.innerHTML=""+t+"",n.firstChild +}function u(e,t,n){var i,a=m(n);if(n=h(n),Q.wk&&Q.wk<312)return i;if(a){var r,o,l,s=g(Q.ie?"div":x);typeof e.id===O&&(e.id=n);for(l in t)t.hasOwnProperty(l)&&"movie"!==l.toLowerCase()&&p(s,l,t[l]);Q.ie&&(s=c(e.data,s.innerHTML));for(r in e)e.hasOwnProperty(r)&&(o=r.toLowerCase(),"styleclass"===o?s.setAttribute("class",e[r]):"classid"!==o&&"data"!==o&&s.setAttribute(r,e[r]));Q.ie?G[G.length]=e.id:(s.setAttribute("type",M),s.setAttribute("data",e.data)),a.parentNode.replaceChild(s,a),i=s}return i}function p(e,t,n){var i=g("param"); +i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function v(e){var t=m(e);t&&"OBJECT"===t.nodeName.toUpperCase()&&(Q.ie?(t.style.display="none",function n(){if(4==t.readyState){for(var e in t)"function"==typeof t[e]&&(t[e]=null);t.parentNode.removeChild(t)}else setTimeout(n,10)}()):t.parentNode.removeChild(t))}function y(e){return e&&e.nodeType&&1===e.nodeType}function h(e){return y(e)?e.id:e}function m(e){if(y(e))return e;var t=null;try{t=R.getElementById(e)}catch(n){}return t +}function g(e){return R.createElement(e)}function w(e){return parseInt(e,10)}function b(e,t,n){e.attachEvent(t,n),J[J.length]=[e,t,n]}function E(e){e+="";var t=Q.pv,n=e.split(".");return n[0]=w(n[0]),n[1]=w(n[1])||0,n[2]=w(n[2])||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]?!0:!1}function C(e,t,n,i){var a=R.getElementsByTagName("head")[0];if(a){var r="string"==typeof n?n:"screen";if(i&&(I=null,L=null),!I||L!=r){var o=g("style");o.setAttribute("type","text/css"),o.setAttribute("media",r),I=a.appendChild(o),Q.ie&&typeof R.styleSheets!==O&&R.styleSheets.length>0&&(I=R.styleSheets[R.styleSheets.length-1]),L=r +}I&&(typeof I.addRule!==O?I.addRule(e,t):typeof R.createTextNode!==O&&I.appendChild(R.createTextNode(e+" {"+t+"}")))}}function A(e,t){if(Z){var n=t?"visible":"hidden",i=m(e);X&&i?i.style.visibility=n:"string"==typeof e&&C("#"+e,"visibility:"+n)}}function S(e){var t=/[\\\"<>\.;]/,n=null!==t.exec(e);return n&&typeof encodeURIComponent!==O?encodeURIComponent(e):e}{var T,N,k,B,I,L,O="undefined",x="object",F="Shockwave Flash",$="ShockwaveFlash.ShockwaveFlash",M="application/x-shockwave-flash",j="SWFObjectExprInst",U="onreadystatechange",P=window,R=document,V=navigator,D=!1,H=[],W=[],G=[],J=[],X=!1,z=!1,Z=!0,q=!1,Q=function(){var e=typeof R.getElementById!==O&&typeof R.getElementsByTagName!==O&&typeof R.createElement!==O,t=V.userAgent.toLowerCase(),n=V.platform.toLowerCase(),i=/win/.test(n?n:t),a=/mac/.test(n?n:t),r=/webkit/.test(t)?parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,o="Microsoft Internet Explorer"===V.appName,l=[0,0,0],s=null; +if(typeof V.plugins!==O&&typeof V.plugins[F]===x)s=V.plugins[F].description,s&&typeof V.mimeTypes!==O&&V.mimeTypes[M]&&V.mimeTypes[M].enabledPlugin&&(D=!0,o=!1,s=s.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),l[0]=w(s.replace(/^(.*)\..*$/,"$1")),l[1]=w(s.replace(/^.*\.(.*)\s.*$/,"$1")),l[2]=/[a-zA-Z]/.test(s)?w(s.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(typeof P.ActiveXObject!==O)try{var d=new ActiveXObject($);d&&(s=d.GetVariable("$version"),s&&(o=!0,s=s.split(" ")[1].split(","),l=[w(s[0]),w(s[1]),w(s[2])])) +}catch(f){}return{w3:e,pv:l,wk:r,ie:o,win:i,mac:a}}();!function(){Q.w3&&((typeof R.readyState!==O&&("complete"===R.readyState||"interactive"===R.readyState)||typeof R.readyState===O&&(R.getElementsByTagName("body")[0]||R.body))&&t(),X||(typeof R.addEventListener!==O&&R.addEventListener("DOMContentLoaded",t,!1),Q.ie&&(R.attachEvent(U,function e(){"complete"===R.readyState&&(R.detachEvent(U,e),t())}),P==top&&!function n(){if(!X){try{R.documentElement.doScroll("left")}catch(e){return void setTimeout(n,0) +}t()}}()),Q.wk&&!function i(){return X?void 0:/loaded|complete/.test(R.readyState)?void t():void setTimeout(i,0)}()))}()}H[0]=function(){D?a():r()};!function(){Q.ie&&window.attachEvent("onunload",function(){for(var t=J.length,n=0;t>n;n++)J[n][0].detachEvent(J[n][1],J[n][2]);for(var i=G.length,a=0;i>a;a++)v(G[a]);for(var r in Q)Q[r]=null;Q=null;for(var o in e)e[o]=null;e=null})}();return{registerObject:function(e,t,n,i){if(Q.w3&&e&&t){var a={};a.id=e,a.swfVersion=t,a.expressInstall=n,a.callbackFn=i,W[W.length]=a,A(e,!1) +}else i&&i({success:!1,id:e})},getObjectById:function(e){return Q.w3?o(e):void 0},embedSWF:function(e,t,i,a,r,o,d,f,c,p){var v=h(t),y={success:!1,id:v};Q.w3&&!(Q.wk&&Q.wk<312)&&e&&t&&i&&a&&r?(A(v,!1),n(function(){i+="",a+="";var n={};if(c&&typeof c===x)for(var h in c)n[h]=c[h];n.data=e,n.width=i,n.height=a;var m={};if(f&&typeof f===x)for(var g in f)m[g]=f[g];if(d&&typeof d===x)for(var w in d)if(d.hasOwnProperty(w)){var b=q?encodeURIComponent(w):w,C=q?encodeURIComponent(d[w]):d[w];typeof m.flashvars!==O?m.flashvars+="&"+b+"="+C:m.flashvars=b+"="+C +}if(E(r)){var S=u(n,m,t);n.id==v&&A(v,!0),y.success=!0,y.ref=S,y.id=S.id}else{if(o&&l())return n.data=o,void s(n,m,t,p);A(v,!0)}p&&p(y)})):p&&p(y)},switchOffAutoHideShow:function(){Z=!1},enableUriEncoding:function(e){q=typeof e===O?!0:e},ua:Q,getFlashPlayerVersion:function(){return{major:Q.pv[0],minor:Q.pv[1],release:Q.pv[2]}},hasFlashPlayerVersion:E,createSWF:function(e,t,n){return Q.w3?u(e,t,n):void 0},showExpressInstall:function(e,t,n,i){Q.w3&&l()&&s(e,t,n,i)},removeSWF:function(e){Q.w3&&v(e)},createCSS:function(e,t,n,i){Q.w3&&C(e,t,n,i) +},addDomLoadEvent:n,addLoadEvent:i,getQueryParamValue:function(e){var t=R.location.search||R.location.hash;if(t){if(/\?/.test(t)&&(t=t.split("?")[1]),!e)return S(t);for(var n=t.split("&"),i=0;ii;i+=a){for(var s=n.slice(i,i+a),u=new Array(s.length),l=0;l800||n>800){var r=Math.max(e/800,n/800);e/=r,n/=r}var o=document.createElement("canvas");o.width=e,o.height=n;var i=o.getContext("2d");i.fillRect(0,0,o.width,o.height),i.drawImage(t,0,0,e,n);var s=o.toDataURL("image/jpeg",1);return a(s.replace(/^.*?,/,""),"image/jpeg")}var r=new $.Deferred,o=t.size;return e(t,function(e,a){var i=new Image;i.onload=function(){return s>o&&i.width<800&&i.height<800?void r.resolve(t):(t=n(i),void r.resolve(t)) +},i.src=a}),r.promise()},sendLog:function(t){var e=location.href.match(/sign=(\w{32})\b/),a=e&&e[1]||"";t.sign=a,t.fm="inlo",t.rsv_imageclick&&(t.rsv_imageclick=l.getEnv()+"_"+t.rsv_imageclick),window.soutu_mixsearch&&(t.rsv_imagemix=1),window.ns_c(t)}},c={graphIconHtml:function(){return''},wrapHtml:function(){return'
    请输入正确的图片网址
    拖拽图片到这里
    本地上传图片
    ' +},waitingHtml:function(){return'
    正在加载图片
    '},errorHtml:function(t){return'

    '+t+',请重新上传

    仅支持10M以下JPG,JPEG,PNG,BMP,GIF格式图片

    '},newTabTipHtml:function(t){return['
    ','
    ','
    ',"
    ",'
    ',"

    "+t.text+"

    ","","
    ","
    ",'查看搜索结果',"
    "].join("") +}},d={init:function(){if("imgresult"===l.getEnv()){var t=$("#form"),e=t.find(".soutu-input-image");if(e.length){var a=!0,r=l.parseQuery(),o=t.find("input[type=hidden]"),i=o.clone();t.attr("action","/imgsearch"),o.remove(),delete r.wd,t.append('');var s=function(){e.remove(),e.off("click.soutu"),e.removeClass("soutu-input-image-active"),n.off(".soutu"),n.attr("placeholder","").removeClass("soutu-input"),a=!1,t.find("input[type=hidden]").remove(),t.append(i),t.attr("action","/s") +};e.on("click.soutu",function(){s(),l.sendLog({rsv_imageclick:"del_thumb_by_click"})}),n.on("keydown",function(t){var a=n.val();return 8!==t.which||a.length?void(a.length<=1&&e.hasClass("soutu-input-image-active")&&e.removeClass("soutu-input-image-active")):void(e.hasClass("soutu-input-image-active")?(s(),l.sendLog({rsv_imageclick:"del_thumb_by_return"})):e.addClass("soutu-input-image-active"))}),n.on("focus.soutu",function(){e.show()}),n.on("click",function(){l.sendLog(a?{rsv_imageclick:"click_input_thumb"}:{rsv_imageclick:"click_input"}) +}),n.on("blur.soutu",function(){e.removeClass("soutu-input-image-active")}),$("#su").on("click.soutu",function(){var t=n.val();return a&&!t.length?(l.sendLog({rsv_imageclick:"search_only_thumb"}),location.href="/imgsearch?"+$.param({sign:r.sign,wd:r.sign.substr(5,16)}),!1):void 0}),t.on("submit",function(){l.sendLog(a?{rsv_imageclick:"search_image_and_text"}:{rsv_imageclick:"search_only_text"})})}}}},p={init:function(){var t=this;t.canDrop="ondrop"in document.body;var e=$(''); +"newindex"===l.getEnv()?e.insertBefore(r.parent()):e.appendTo("head"),t.$graphIcon=$(c.graphIconHtml()).prependTo(n.parent()),r.addClass(a?"soutu-env-mac":"soutu-env-nomac").addClass("soutu-env-"+l.getEnv()),t.state="init",d.init(),t.listenIcon()},listenIcon:function(){var t=this;t.$graphIcon.on("click",function(e){e.stopPropagation(),e.preventDefault(),t.show(),t.log({rsv_imageclick:"camerabtn"})}),$(document).on("dragstart.soutu",function(t){var e,a=t.originalEvent.dataTransfer,n=t.target||t.srcElement,r=n.nodeName.toLowerCase(); +if("img"===r){e=n.src;try{a.setData("text/plain",e)}catch(o){a.setData("Text",e)}}else if("a"===r){var i=$(n).children("img");if(i.length){e=i[0].src;try{a.setData("text/plain",e)}catch(o){a.setData("Text",e)}}}}),n.on("drop.soutu",function(e){e.originalEvent.dataTransfer&&e.originalEvent.dataTransfer.files&&e.originalEvent.dataTransfer.files.length&&(e.stopPropagation(),e.preventDefault(),t.$graphIcon.trigger("click"),t.handleDrop(e),t.log({rsv_imageclick:"iptdrop"}))}).on("dragover.soutu",function(){var t=window.bds&&bds.se&&bds.se.upn&&bds.se.upn.cookieset||[],e=t[0]&&1===t[0].v; +return!e}),$(window).one("index_off",function(){r.removeClass("soutu-env-newindex"),r.removeClass("soutu-no-skin")})},show:function(){var t=this;t.$layer||t.addLayer();var e=t.$layer;t.setState("normal"),e.show(),t.$graphIcon.hide(),1!==window.pageState||r.hasClass("soutu-env-result")||r.addClass("soutu-env-result"),"newindex"===l.getEnv()&&(r.addClass("soutu-env-newindex"),window.s_session&&!!s_session.userSkinName!=!1?e.removeClass("soutu-no-skin"):e.addClass("soutu-no-skin"))},close:function(){var t=this; +t.$layer.hide(),t.$graphIcon.show(),t.setState("normal"),t.$urlErrorTip.hide(),t.$urlInput.val("")},addLayer:function(){var t=this,e=t.$layer=$(c.wrapHtml()).prependTo($("#form"));t.$urlInput=e.find("#soutu-url-kw").on("focus",function(){e.find(".soutu-url-layer").addClass("focus")}).on("blur",function(){e.find(".soutu-url-layer").removeClass("focus")}),"newindex"===l.getEnv()&&$(".s-lite").not(".hide-icon").length&&e.find(".soutu-url-btn").css("width","103px"),t.$dropArea=e.find(".soutu-drop"),t.$urlErrorTip=e.find(".soutu-url-error"),t.$urlSearchBtn=e.find(".soutu-url-btn"),t.panelHidden=!1,t.listenLayer() +},handleDrop:function(t){var e=this;e.$dropArea.removeClass("drag-over");var a;if(t.originalEvent.dataTransfer&&(a=t.originalEvent.dataTransfer.files),a&&0!==a.length){var n=a[0];e.uptype="drag",e.upload(n,"PC_UPLOAD_SEARCH_MOVE")}else{var r;try{r=t.originalEvent.dataTransfer.getData("text/plain")||t.originalEvent.dataTransfer.getData("text/uri-list")}catch(o){r=t.originalEvent.dataTransfer.getData("Text")||t.originalEvent.dataTransfer.getData("URL")}r?e.handleURL(r):e.setState("error")}},listenLayer:function(){var t=this,e=t.$layer; +t.$urlInput.on("focus",function(){e.find(".soutu-url-panel").addClass("focus")}).on("blur",function(){e.find(".soutu-url-panel").removeClass("focus")}).on("keydown",function(e){var a=e.keyCode;return"none"!==t.$urlErrorTip.css("display")&&t.$urlErrorTip.hide(),13===a?(t.handleURL(this.value),e.stopPropagation(),e.preventDefault(),!1):void 0}),t.$urlSearchBtn.on("click",function(){var e=t.$urlInput.val();t.handleURL(e)}),t.$layer.find(".upload-pic").on("change",function(){var e=this.files[0];e&&(t.uptype="upload",t.upload(e,"PC_UPLOAD_SEARCH_FILE")) +}),t.$layer.find(".upload-pic").on("click",function(){t.log({rsv_imageclick:"uploadbtn"})}),t.$dropArea.on("dragover",function(e){t.$dropArea.addClass("drag-over"),e.stopPropagation(),e.preventDefault()}).on("dragleave",function(e){t.$dropArea.removeClass("drag-over"),e.stopPropagation(),e.preventDefault()}).on("drop",function(e){e.stopPropagation(),e.preventDefault(),t.handleDrop(e)}),t.$layer.find(".soutu-close").on("click",function(){t.close(!0),t.log({rsv_imageclick:"close"})}),t.$layer.on("click",".soutu-error-upload",function(e){e.stopPropagation(),e.preventDefault(),t.setState("normal") +}),$(document).on("click",function(e){var a=e.target,n=!0;do if(a=a.parentNode,a===t.$layer[0]||a===t.$graphIcon[0]){n=!1;break}while(a.parentNode);n&&t.close()})},setNormal:function(){this.$layer.find(".soutu-state-normal").show();var t=this.$layer.find(".upload-pic");t.val("")},setWaiting:function(){var t=this;t.$layer.append(c.waitingHtml());var e=[[0,40],[20,20],[40,0]],a=["rgb(55,137,250)","rgb(99,99,99)","rgb(235,67,70)"];t.$layer.find(".b").each(function(t,n){var r=0;$(n).css({"background-color":a[t]}),function o(){$(n).animate({left:e[t][r%2]},{duration:800,easing:"swing",progress:function(e,o){o>=.5&&$(n).css({"background-color":a[(r+t)%3]}) +},complete:function(){o()}}),r++}()})},setError:function(t){var e=t.msg||u[2];this.$layer.append(c.errorHtml(e))},setNewTabTip:function(t){var e=this.$layer.find(".soutu-state-newtabtip");e.length&&e.remove(),e=$(c.newTabTipHtml(t)),this.$layer.append(e),l.sendLog({rsv_imageclick:"tipForNewTab"})},setState:function(t,e){var a=this;a.state=t,a.$layer.find(".soutu-state-normal").hide(),a.$layer.find(".soutu-state-error").remove(),a.$layer.find(".soutu-state-waiting").remove(),a.$layer.find(".soutu-state-newtabtip").remove(),a.$urlErrorTip.hide(),t=t.charAt(0).toUpperCase()+t.substring(1),a["set"+t].apply(a,[e||{}]) +},handleURL:function(t){l.isURL(t)?(this.$urlInput.val(t),this.setState("normal"),this.$urlErrorTip.hide(),this.uploadUrl(t),this.log({rsv_imageclick:"searchurl-success"})):(this.setState("normal"),this.$urlErrorTip.show(),this.log({rsv_imageclick:"searchurl-error"}))},openResutlPage:function(t){var e=this,a=$("#form").attr("target");if("_blank"===a){var n="图片上传完毕,根据您的搜索习惯,
    将打开新窗口展示搜索结果",r=window.player;r&&r.config&&r.config.play.on&&(n="您正在听音乐,为了不打扰您继续听音乐,
    将打开新窗口查看搜索结果"),$.isString(e.uploadObj)?e.setState("newTabTip",{text:n,imgUrl:e.uploadObj,url:t}):l.blobtoBase64(e.uploadObj,function(a){e.setState("newTabTip",{text:n,imgUrl:a,url:t}) +})}else location.href=t,e.close()},validate:function(t){var e=["jpg","jpeg","png","bmp","gif","webp"],a=t.name.split("."),n=a.pop().toLowerCase();return t.type&&n&&-1!==$.inArray(n,e)?t.size>i?2:0:1},doAjax:function(t){var a=this;"waiting"!==this.state&&this.setState("waiting"),$.ajax({url:e,type:"POST",data:t,processData:!1,contentType:!1,success:function(t){a.uploadComplete(t)},error:function(){a.setState("error")},always:function(){}})},uploadUrl:function(t){var e=this;e.uploadObj=t,this.log({rsv_imageclick:"uploadurl"}),e.upload(t,"PC_UPLOAD_SEARCH_URL") +},upload:function(t,e){var a=this,n=0===window.pageState?'{"page_from": "searchIndex"}':' {"page_from": "searchResult"}';if("PC_UPLOAD_SEARCH_URL"!==e){a.uploadObj=t,a.$urlInput.val("");var r=a.validate(t);if(r)return void a.setState("error",{msg:u[r]});a.log({rsv_imageclick:"uploadfile"})}a.setState("waiting");var o=new FormData;o.append("image",t),o.append("tn","pc"),o.append("from","pc"),o.append("image_source",e),o.append("range",n),a.doAjax(o)},uploadComplete:function(t){var e=this;0===t.status?setTimeout(function(){window.location.href=t.data.url +},30):e.setState("error")},log:l.sendLog};p.init(),"function"==typeof define&&define("soutu/js/tu",["require"],function(){return p})}(); \ No newline at end of file