"use strict";var smsFlag=!1,smsShowFun=null,hasScroll=!1,isWeixin=function(){return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)};function getmeta(e){for(var t,n=document.getElementsByTagName("meta"),a=0;t=n[a++];)if(t.getAttribute("name")&&t.getAttribute("name").toLowerCase()===e)return encodeURIComponent(t.content)}function gray(){$require(["cmsAjax"],function(e){var t=window.location.origin+"/ndesigner/api/gray";e.cmsAjax.postJson(t).then(function(e){200==e.code&&($("html")[0].style="filter:progid:DXImageTransform.Microsoft.Basiclmage(grayscale=1);-webkit-filter:grayscale(100%);")})})}function festival(){isFrontEnv()&&$require(["cmsAjax"],function(e){e.cmsAjax.get("/fwebapi/cms/lowcode/festivalPendant/getSettings").then(function(e){var t;e.data&&200==e.data.code&&e.data.settings&&(1==(t=e.data.settings).location&&window.pageObj&&1!=window.pageObj.isHomePage||(e=t.showTime&&2==t.showTime.length&&t.nowTime>=t.showTime[0]&&t.nowTime<=t.showTime[1]||!t.showTime||0==t.showTime.length,t.isOpen&&e&&$require(["/npublic/commonjs/restival.js"],function(e){e.init(t)})))})})}function smartServiceInit(){isFrontEnv()&&$(window).on("mousemove scroll touchmove tap click keydown",function(){var a;hasScroll||(hasScroll=!0,a=function(a){$require(["css!/npublic/commonjs/smartService/t.css"],function(e){var t,n={};try{n=JSON.parse(a.setting.colorLayout)}catch(e){}1==n.entranceLocation&&(t='\n \n '),$("body").append(t),$(".smartIcon").hover(function(){$(this).css({"background-color":n.windowColor,color:"#fff"})},function(){$(this).css({"background-color":"#fff",color:n.windowColor})})),function(e,t){var n={};try{n=JSON.parse(t.setting.colorLayout)}catch(e){}$(document).on("click","[smartService]",a),1==n.showFlag&&t&&a();function a(){smsShowFun?smsFlag?smsShowFun.showFun():smsShowFun():e&&t&&(t.account&&localStorage.setItem("account_".concat(tenant.tenantId),t.account),$require(["/npublic/commonjs/smartService.js"],function(e){smsFlag=!0,smsShowFun=new e(t),window.ZQSensorsObj&&(e={tenantId:tenant.tenantId,iBusinessCode:"01",iBusinessName:"智慧客服业务线",iBusinessCustId:localStorage.getItem("account_".concat(tenant.tenantId))},ZQSensorsObj.track("SmartServiceWakeUp",e))}))}}(!0,a)})},$require(["cmsAjax"],function(e){var t=__ce.smartServiceUrl||"https://web-visitor.yun300.cn",n="".concat(t,"/visitormanager/intelligent/front/checkAndRegister?tenantId=").concat(tenant.tenantId,"&instance=").concat(tenant.bossProductInstance),t={account:localStorage.getItem("account_".concat(tenant.tenantId))};e.cmsAjax.postJson(n,t).then(function(e){200==e.status&&e.data&&a(e.data)})}))})}function preventFish(){var e=location.hostname,t=getCookie("realhost")||"";t&&t!=e&&(t="/repository/cheat?req="+e+"&rel="+t,$.ajax({url:t}))}function wxShare(){$require(["cmsAjax","/npublic/commonjs/jweixin/jweixin.js","pl_util"],function(e){var t={pageUrl:location.href,appCode:pageObj.appId,tid:pageObj.contentType,pageType:pageObj.pageType,isHomePage:pageObj.isHomePage,pageId:pageObj.pageId,contentId:pageObj._detailId,pageName:pageObj.name};e.cmsAjax.postJson("/fwebapi/cms/api/tdk/getWxShareInfo",t).then(function(e){var t,n,a,o=e.data;o.data&&(o=o.data),o.wxJsConfig&&(t=o.wxJsConfig,a=o.wxShareContent,n={title:a.title,desc:a.desc,link:location.href,imgUrl:(e=$.handleDataImg(a.imgUrl),o=104,a=-1