"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7104],{44613:(t,e,r)=>{r.d(e,{N:()=>d});var n=r(85688);function o(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))}}function a(){return a=Object.assign||function(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},c(u={exports:{}}),u.exports),f=function(t,e,r,n){void 0===r&&(r="/"),document.cookie=t+"="+e+";path="+r+";domain="+n},l=function(t,e){var r=!1;return function(){r||(r=!0,t(),setTimeout((function(){r=!1}),e||1e4))}},h="passport_fe_beating_status",p=function(){var t=i(s.mark((function t(e,r,o,i){var c;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===i&&(i={}),c=new n.TtWid(a({unionHost:o,aid:e,service:r},i)),t.prev=2,t.next=5,c.checkWebId();case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),console.log("check_ex",t.t0);case 10:case"end":return t.stop()}}),t,null,[[2,7]])})));return function(e,r,n,o){return t.apply(this,arguments)}}(),v={web:"/passport/token/beat/web/",aff:"/passport/token/beat/aff/web/"},d=function(t){var e=this;this.onAction=function(){e.beating?e.setOperationFlag(!0):e.startBeating("active")},this.setOperationFlag=function(t){localStorage.setItem(window.location.origin+"-operation",String(t))},this.getOperationFlag=function(){return"true"===localStorage.getItem(window.location.origin+"-operation")},this.sendBeat=function(t){void 0===t&&(t="polling");var r=e.initProps,n=r.type,o=void 0===n?"web":n,i=r.aid,a=r.onDrop,c=r.subjectAid,u=v[o]||v.web;if(!e.request){var s=new XMLHttpRequest;s.onreadystatechange=function(){if(4===s.readyState&&200===s.status){var t,r,n,o=s.responseText,i={};try{i=JSON.parse(o)}catch(t){}"error"===(null==(t=i)?void 0:t.message)&&401===(null==(r=i)||null==(n=r.data)?void 0:n.error_code)&&(e.stopBeating(),null==a||a())}},e.request=s}e.request.open("GET",u+"?device_platform=web&aid="+i+"&scene="+t+("aff"===o?"&subject_aid="+c:"")),e.request.send()},this.stopBeating=function(){e.timer&&clearInterval(e.timer),e.beating&&(e.beating=!1,f(h,!1,"/",window.location.host),e.setOperationFlag(!1))},this.startBeating=function(t){if(void 0===t&&(t="polling"),"true"!==function(t){for(var e=t+"=",r=document.cookie.split(";"),n=0;n