@antglobal/voyager-campaign-sdk 0.0.1788950302-dev.1 → 0.0.1788950302-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mp.js +1 -1
- package/dist/mp_web.js +1 -1
- package/package.json +1 -1
package/dist/mp.js
CHANGED
|
@@ -6,4 +6,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6
6
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,k=!0,D=!1;return{s:function(){n=n.call(t)},n:function(){var A=n.next();return k=A.done,A},e:function(A){D=!0,I=A},f:function(){try{k||n.return==null||n.return()}finally{if(D)throw I}}}}var init_createForOfIteratorHelper=__esm({"node_modules/_@babel_runtime@7.29.7@@babel/runtime/helpers/esm/createForOfIteratorHelper.js":function(){init_unsupportedIterableToArray()}}),init_nowBridge=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/common/bridge/nowBridge.js":function(){}}),EnvEnum,init_env=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/constant/env.js":function(){(function(t){t.dev="dev",t.test="test",t.sim="sim",t.pre="pre",t.prod="prod",t.local="local",t.stable="stable"})(EnvEnum||(EnvEnum={}))}}),init_storage2=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/constant/storage.js":function(){}}),init_constant=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/constant/index.js":function(){init_env(),init_storage2()}}),init_utils2=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/utils/index.js":function(){}}),import_lodash3,init_func=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/utils/func.js":function(){import_lodash3=__toESM(require_lodash_debounce_4_0_8_lodash())}}),init_monitor=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/common/monitor.js":function(){}}),init_json_parse=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/common/json-parse.js":function(){init_monitor()}}),getJSBridge,init_jsapi=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/h5-furion-check/common/jsapi.js":function(){init_typeof(),init_regeneratorRuntime(),init_asyncToGenerator(),init_nowBridge(),init_constant(),init_utils2(),init_func(),init_json_parse(),init_monitor(),getJSBridge=function(){if((typeof ap=="undefined"?"undefined":_typeof(ap))==="object")return ap;if((typeof Ali=="undefined"?"undefined":_typeof(Ali))==="object")return Ali;if((typeof AlipayJSBridge=="undefined"?"undefined":_typeof(AlipayJSBridge))==="object")return AlipayJSBridge;if((typeof my=="undefined"?"undefined":_typeof(my))==="object")return my}}});function numFormat(t,e){try{return t>MIN_TIME&&e>=MIN_TIME?t-e>=MAX_TIME?MIN_TIME:(t-e).toFixed(2):MIN_TIME}catch(n){return MIN_TIME}}function isGreater(t){var e=Number(t);return e>MIN_TIME?t:MIN_TIME}function analyzePerf(){var t=window.performance;if(!t||_typeof(t)!=="object")return null;var e={};if(KEYS.forEach(function(i){if(i==="navigationStart")e[i]=MIN_TIME;else if((t==null?void 0:t.timing[i])===0||!(t!=null&&t.timing[i]))e[i]=MIN_TIME;else{var P,I;e[i]=((P=new Date(t==null?void 0:t.timing[i]))===null||P===void 0?void 0:P.getTime())-((I=new Date(t==null?void 0:t.timing.navigationStart))===null||I===void 0?void 0:I.getTime())||MIN_TIME}}),typeof window.PerformanceNavigationTiming=="function"){var n=t.getEntriesByType("navigation")[0];n&&KEYS.forEach(function(i){var P;e[i]=+((P=n[i])===null||P===void 0?void 0:P.toFixed(2))||MIN_TIME})}return e}var init_performance=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/performance/index.js":function(){init_typeof(),init_constants(),init_objectTransfer(),window.TTI_LIMIT=1e4}}),require_dist2=__commonJS({"node_modules/_auto-compute-first-screen-time@5.7.7@auto-compute-first-screen-time/dist/index.js":function(t,e){(function(n,i){typeof t=="object"&&typeof e=="object"?e.exports=i():typeof t=="object"?t.autoComputeFirstScreenTime=i():n.autoComputeFirstScreenTime=i()})(window,function(){return(function(n){var i={};function P(I){if(i[I])return i[I].exports;var k=i[I]={i:I,l:!1,exports:{}};return n[I].call(k.exports,k,k.exports,P),k.l=!0,k.exports}return P.m=n,P.c=i,P.d=function(I,k,D){P.o(I,k)||Object.defineProperty(I,k,{enumerable:!0,get:D})},P.r=function(I){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(I,"__esModule",{value:!0})},P.t=function(I,k){if(1&k&&(I=P(I)),8&k||4&k&&typeof I=="object"&&I&&I.__esModule)return I;var D=Object.create(null);if(P.r(D),Object.defineProperty(D,"default",{enumerable:!0,value:I}),2&k&&typeof I!="string")for(var A in I)P.d(D,A,function(F){return I[F]}.bind(null,A));return D},P.n=function(I){var k=I&&I.__esModule?function(){return I.default}:function(){return I};return P.d(k,"a",k),k},P.o=function(I,k){return Object.prototype.hasOwnProperty.call(I,k)},P.p="",P(P.s=3)})([function(n,i){n.exports={watchingNavStartChange:!1,navigationTagChangeMap:{realChangeList:[],usedChangeList:[]},onloadFinished:!1,supportPerformance:window.performance&&window.performance.getEntries&&typeof window.performance.getEntries=="function"&&window.performance.getEntries()instanceof Array}},function(n,i,P){var I=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,k=P(0),D=Array.prototype.slice;n.exports={version:"5.7.3",getDomReadyTime:function(A,F){if(A._isUsingOriginalNavStart){var M=0,ee=function(){performance.timing.domContentLoadedEventStart!=0&&F(performance.timing.domContentLoadedEventStart,"domContentLoadedEventStart"),(++M>=50||performance.timing.domContentLoadedEventStart!=0)&&clearInterval(x)},x=setInterval(ee,500);ee()}else A.domUpdateTimeStamp?F(A.domUpdateTimeStamp,"domUpdateTimeStamp"):F(A.forcedNavStartTimeStamp,"forcedNavStartTimeStamp")},_getImgSrcFromBgImg:function(A){var F,M=A.match(/url\(.*?\)/g);if(M&&M.length){var ee=M[M.length-1].replace(/^url\([\'\"]?/,"").replace(/[\'\"]?\)$/,"");(/^http/.test(ee)||/^\/\//.test(ee))&&(F=ee)}return F},getImgSrcFromDom:function(A,F){var M;if(A.nodeName.toUpperCase()=="IMG")M=A.getAttribute("src");else{var ee=window.getComputedStyle(A),x=ee.getPropertyValue("background-image")||ee.getPropertyValue("background"),ne=this._getImgSrcFromBgImg(x,F);ne&&this._isImg(ne,F)&&(M=ne)}return M},_isImg:function(A,F){for(var M=0,ee=F.length;M<ee;M++)if(F[M].test(A))return!0;return!1},currentPos:{scrollTop:0,top:0,bottom:0,left:0,right:0},recordCurrentPos:function(A,F){var M,ee=A.getBoundingClientRect(),x=document.querySelector(F.scrollWrapper);if(x){var ne=x.getBoundingClientRect();M=ne.top<0?-ne.top:0}else M=document.documentElement.scrollTop||document.body.scrollTop;var re=ee.top,ue=ee.bottom,le=ee.left,ce=ee.right;this.currentPos.scrollTop=M,this.currentPos.top=re,this.currentPos.bottom=ue,this.currentPos.left=le,this.currentPos.right=ce},isInFirstScreen:function(A){if(!this.currentPos.top&&!this.currentPos.bottom)return!1;var F=window.innerHeight,M=window.innerWidth,ee=this.currentPos.scrollTop,x=this.currentPos.top,ne=this.currentPos.left,re=this.currentPos.right;return ee+x<F&&re>0&&ne<M},queryAllNode:function(A){var F=this;return document.createNodeIterator(document.body,NodeFilter.SHOW_ELEMENT,function(M){if(!F._shouldIgnoreNode(M,A))return NodeFilter.FILTER_ACCEPT})},_shouldIgnoreNode:function(A,F){for(var M=document.querySelectorAll(F),ee=0,x=M.length;ee<x;ee++)if(this._isChild(A,M[ee]))return!0;return!1},_isChild:function(A,F){for(var M=!1;A;){if(A===F){M=!0;break}A=A.parentNode}return M},parseUrl:function(A){var F=document.createElement("a");return F.href=A,F},transRequestDetails2Arr:function(A){var F=[],M={};for(var ee in A.requestDetails){var x=ee.split(">time")[0].replace(/^http(s)?:/,"").replace(/^\/\//,"");for(var ne in M={src:x},A.requestDetails[ee])M[ne]=A.requestDetails[ee][ne];F.push(M)}return F},_formateUrlByRemove:function(A){return A.replace(/^http(s)?\:/,"").replace(/^\/\//,"")},_formateUrlByAdd:function(A){return/^http/.test(A)?A:window.location.protocol+"//"+this._formateUrlByRemove(A)},formateUrlList:function(A,F){for(var M,ee=[],x=0,ne=A.length;x<ne;x++)M=F=="add"?this._formateUrlByAdd(A[x]):this._formateUrlByRemove(A[x]),ee.indexOf(M)===-1&&ee.push(M);return ee},initGlobal:function(){return{stopCatchingRequest:!1,isFirstRequestSent:!1,catchRequestTimeSections:[],ignoredImages:[],device:{},requestDetails:{},delayAll:0,ignoreTag:"[perf-ignore]",scrollWrapper:"[perf-scroll]",urlChangeStore:[],hasReported:!1,reportDesc:"",domUpdateTimeStamp:0,handExcuteTime:0,forcedNavStartTimeStamp:window.performance.timing.navigationStart,_originalNavStart:window.performance.timing.navigationStart,_isUsingOriginalNavStart:!0,_errorWatcher:function(){},errorMessages:[],abortReport:!1,onReport:function(){},onStableStatusFound:function(){},onNavigationStartChange:function(){},request:{limitedIn:[],exclude:[/(sockjs)|(socketjs)|(socket\.io)/]},renderTimeAfterGettingData:500,watingTimeWhenDefineStaticPage:2e3,img:[/(\.)(png|jpg|jpeg|gif|webp|ico|bmp|tiff|svg)/i],watchPerfStartChange:!0,delayReport:0,domChangeList:[],navigationStartChangeTag:["data-perf-start","perf-start"],navigationStartChangeDebounceTime:200,domUpdateMutationObserver:null,scriptLoadingMutationObserver:null,jsonpFilter:/callback=jsonp/,reportTimeFrom:"",stableTime:""}},getTime:function(){return new Date().getTime()},mergeGlobal:function(A,F){var M;for(M in F)A[M]=F[M];return A},forEach:function(A,F){if(typeof A=="object"&&A.length)for(var M=0,ee=A.length;M<ee;M++)F(A[M],M)},overrideRequest:function(A,F){var M=this,ee={},x=function(ue){A.requestDetails[ue]||(A.requestDetails[ue]={status:"",sendTime:"",completeTime:"",type:"",duration:""})},ne=function(ue,le){A.isFirstRequestSent||(A.isFirstRequestSent=!0);var ce=ue+">time:"+M.getTime();return x(ce),A.requestDetails[ce].status="sent",A.requestDetails[ce].type=le,A.requestDetails[ce].sendTime=M.getTime()-A.forcedNavStartTimeStamp,ee[ce]="start",{requestKey:ce}},re=function(ue){var le=M.getTime();x(ue),A.requestDetails[ue].status="complete",A.requestDetails[ue].completeTime=le-A.forcedNavStartTimeStamp,A.requestDetails[ue].duration=A.requestDetails[ue].completeTime-A.requestDetails[ue].sendTime,A.catchRequestTimeSections.push([le,le+A.renderTimeAfterGettingData]);var ce=setTimeout(function(){ee[ue]="stopped",(function(){for(var me in A.requestDetails)if(A.requestDetails[me]&&A.requestDetails[me].status!=="complete")return!1;return!0})()&&(function(){for(var me in ee)if(ee[me]!=="stopped")return!1;return!0})()&&F(),clearTimeout(ce)},A.renderTimeAfterGettingData)};(function(ue,le){if(window.fetch&&typeof Promise=="function"){var ce=window.fetch;window.fetch=function(){var me=this,ae=arguments;return new Promise(function(fe,ye){var ie,se;typeof ae[0]=="string"?ie=ae[0]:typeof ae[0]=="object"&&(ie=ae[0].url),ie&&(se=ue(ie,"fetch").requestKey),ce.apply(me,ae).then(function(oe){se&&le(se),fe(oe)}).catch(function(oe){se&&le(se),ye(oe)})})}}})(ne,re),(function(ue,le){var ce=XMLHttpRequest.prototype,me=ce.send,ae=ce.open;ce.open=function(fe,ye){return this.acfst_http=this._http||{},this.acfst_http.method=fe,this.acfst_http.url=ye,ae.apply(this,D.call(arguments))},ce.send=function(){if((function(ie){var se=!0;A.stopCatchingRequest&&(se=!1);for(var oe=M.getTime(),pe=0;pe<A.catchRequestTimeSections.length;pe++){var Se=A.catchRequestTimeSections[pe];if(oe>=Se[0]&&oe<=Se[1])break}A.catchRequestTimeSections.length&&pe===A.catchRequestTimeSections.length&&(se=!1);for(var Pe=0,Ie=A.request.limitedIn.length;Pe<Ie;Pe++)A.request.limitedIn[Pe].test(ie)||(se=!1);for(Pe=0,Ie=A.request.exclude.length;Pe<Ie;Pe++)A.request.exclude[Pe].test(ie)&&(se=!1);return se})(this.acfst_http.url)){var fe=ue(this.acfst_http.url,"xhr").requestKey,ye=this.onreadystatechange;this.onreadystatechange=function(){this.readyState===4&&(A.requestDetails[fe].response=this.response,le(fe)),ye&&ye.apply&&ye.apply(this,arguments)}}return me.apply(this,D.call(arguments))}})(ne,re),(function(ue,le){var ce={},me={},ae=function(ie){me[ie]||(me[ie]=!0,le(ie))},fe=function(ie){var se=(function(Se){return/script/i.test(Se.tagName)&&/^http/.test(Se.src)?Se.src:""})(ie);if(se&&A.jsonpFilter.test(se)&&!ce[se]){ce[se]=!0;var oe=ue(se,"jsonp").requestKey,pe=setTimeout(function(){ae(oe),clearTimeout(pe)},3e3);ie.readyState?ie.addEventListener("readystatechange",function(){script.readyState!="loaded"&&script.readyState!="complete"||(ae(oe),clearTimeout(pe))}):(ie.addEventListener("load",function(){ae(oe),clearTimeout(pe)}),ie.addEventListener("error",function(){ae(oe),clearTimeout(pe)}))}},ye=function(ie){for(var se=document.getElementsByTagName("script"),oe=D.call(se,0),pe=0,Se=oe.length;pe<Se;pe++)ie(oe[pe])};I?(A.scriptLoadingMutationObserver=new I(function(ie,se){M.forEach(ie,function(oe){oe.addedNodes&&M.forEach(oe.addedNodes,function(pe){fe(pe)})})}),A.scriptLoadingMutationObserver.observe(document.body,{attributes:!1,childList:!0,subtree:!0}),ye(function(ie){fe(ie)})):(A.scriptLoadingMutationObserverMockTimer=setInterval(function(){ye(function(ie){fe(ie)})},200),ye(function(ie){fe(ie)}))})(ne,re)},stopCatchingRequest:function(A){A.scriptLoadingMutationObserverMockTimer&&clearInterval(A.scriptLoadingMutationObserverMockTimer),A.scriptLoadingMutationObserver&&A.scriptLoadingMutationObserver.disconnect()},mergeUserConfig:function(A,F){if(F){for(var M in F)["watingTimeWhenDefineStaticPage","onReport","onStableStatusFound","renderTimeAfterGettingData","onAllXhrResolved","onNavigationStartChange","watchPerfStartChange","forcedNavStartTimeStamp","delayReport","navigationStartChangeTag","jsonpFilter"].indexOf(M)!==-1&&(A[M]=F[M]);var ee=F.request||F.xhr;ee&&(ee.limitedIn&&(A.request.limitedIn=A.request.limitedIn.concat(ee.limitedIn)),ee.exclude&&(A.request.exclude=A.request.exclude.concat(ee.exclude))),F.img&&(typeof F.img=="object"&&typeof F.img.test=="function"?A.img.push(F.img):console.error('[auto-compute-first-screen-time] param "img" should be type RegExp'))}A._isUsingOriginalNavStart=A.forcedNavStartTimeStamp==A._originalNavStart},testStaticPage:function(A,F){var M=function(){k.onloadFinished=!0;var ee=setTimeout(function(){clearTimeout(ee),F.isFirstRequestSent||A()},F.watingTimeWhenDefineStaticPage)};k.onloadFinished?M():window.addEventListener("load",M)},watchDomUpdate:function(A){I&&(A.domUpdateMutationObserver=new I(function(){A.domUpdateTimeStamp=new Date().getTime(),A.domChangeList.unshift({timeStamp:A.domUpdateTimeStamp,duration:A.domUpdateTimeStamp-A.forcedNavStartTimeStamp})}),A.domUpdateMutationObserver.observe(document.body,{childList:!0,subtree:!0}))},stopWatchDomUpdate:function(A){A.domUpdateMutationObserver&&A.domUpdateMutationObserver.disconnect()},onNavigationStartChange:function(A,F){var M=this;if(A.watchPerfStartChange&&!k.watchingNavStartChange){k.watchingNavStartChange=!0;var ee,x=k.navigationTagChangeMap.realChangeList,ne=k.navigationTagChangeMap.usedChangeList,re=function(){var ue=(function(ae){for(var fe,ye=0,ie=ae.length;ye<ie;ye++)if(fe=document.body.getAttribute(ae[ye]))return fe;return""})(A.navigationStartChangeTag);if((function(ae,fe){return!(!fe||fe==ae)||!(fe||!ae)})(ee,ue)){var le=new Date().getTime(),ce={preTagValue:ee,curTagValue:ue,value:ue,timeStamp:le,time:le-A._originalNavStart};if(x.push(ce),ee=ue,x.length===1)ne.push(ce);else{var me=ne.length;le-ne[me-1].timeStamp>=A.navigationStartChangeDebounceTime&&(ne.push(ce),F(ce))}}};I?new I(function(ue,le){M.forEach(ue,function(ce,me){A.navigationStartChangeTag.indexOf(ce.attributeName)!==-1&&re()})}).observe(document.body,{attributes:!0,childList:!1,subtree:!1}):setInterval(re,250)}},_getUnuniqueDetailFromSource:function(A,F,M){for(var ee=[],x=0,ne=A.length;x<ne;x++){var re=A[x];if(this._isImg(re.name,M)){var ue=this._formateUrlByRemove(re.name);F.indexOf(ue)!==-1&&ee.push({src:ue,responseEnd:parseInt(re.responseEnd),fetchStart:parseInt(re.fetchStart),from:"performance"})}}return ee},_getSrcMapFromUnuniqueDetail:function(A){var F={};return this.forEach(A,function(M,ee){var x="imgUrl-"+M.src;F[x]||(F[x]=[]),F[x].push(ee)}),F},_getUniquedFirstScreenDetail:function(A,F){var M=[];for(var ee in F)if(/^imgUrl\-/.test(ee)){var x=F[ee];if(x.length==1)M.push(A[x[0]]);else if(x.length>1){var ne=A[x[0]];this.forEach(x,function(re){A[re].responseEnd<ne.responseEnd&&(ne=A[re])}),M.push(ne)}}return M},cycleGettingPerformaceTime:function(A,F,M,ee){var x=5,ne=this,re=ne.formateUrlList(F,"remove"),ue=function(me){var ae=me[0].responseEnd;ae>0&&ae<1e6&&M({firstScreenTime:parseInt(ae),firstScreenTimeStamp:parseInt(ae)+A._originalNavStart,firstScreenImagesDetail:me})},le=function(){var me=performance.getEntries(),ae=ne._getUnuniqueDetailFromSource(me,re,A.img),fe=[],ye=ne._getSrcMapFromUnuniqueDetail(ae);(fe=ne._getUniquedFirstScreenDetail(ae,ye)).sort(function(ie,se){return se.responseEnd-ie.responseEnd}),--x>=0?fe.length===re.length&&(clearInterval(ce),ue(fe)):(fe.length>0?ue(fe):ee(),clearInterval(ce))},ce=setInterval(le,1e3);le()},watchError:function(A){window.addEventListener&&(A._errorWatcher=function(F){var M={lineno:F.lineno,colno:F.colno,time:new Date().getTime()-A.forcedNavStartTimeStamp};F.error&&(M.message=F.error.message,M.stack=F.error.stack),A.errorMessages.push(M)},window.addEventListener("error",A._errorWatcher))},stopWatchingError:function(A){window.removeEventListener&&A._errorWatcher&&window.removeEventListener("error",A._errorWatcher)},generateNetwork:function(){var A=[];if(window.performance&&typeof window.performance.getEntries=="function"){var F=window.performance.getEntries();F&&F.length&&(A=F)}return A}}},function(n,i,P){var I=window,k=(I.document,P(1)),D=P(0),A=0;function F(){var M=k.mergeGlobal(k.initGlobal(),{intervalDotTimer:null,hasStoppedObserve:!1,dotList:[],imgMap:{},dotDelay:250,abortTimeWhenDelay:500});function ee(re){var ue=M.dotList[0],le=function(){return!M.hasReported&&!M.abortReport};if(M.abortByDelayTimeout)M.onReport({success:!1,delayFirstScreen:M.delayAll,abortTimeSetting:M.abortTimeWhenDelay,url:window.location.href.substring(0,200),dotList:M.dotList,globalIndex:M.globalIndex,type:"dot"});else{var ce=(function(){var ae,fe,ye=null,ie=[],se=[];for(ae=0,fe=M.dotList.length;ae<fe;ae++)if(M.dotList[ae].isTargetDot){ye=M.dotList[ae].firstScreenImages;break}if(ye)for(ae=0,fe=ye.length;ae<fe;ae++)ie.push(ye[ae].replace(/^http(s)?:/,"").replace(/^\/\//,""));var oe=0;for(ae=0,fe=M.dotList.length;ae<fe;ae++)M.dotList[ae].delay&&M.dotList[ae].dotTimeStamp<=re.dotTimeStamp&&(oe+=M.dotList[ae].delay);for(var pe in M.requestDetails){var Se=pe.split(">time")[0].replace(/^http(s)?:/,"").replace(/^\/\//,"");se.push(Se)}return{type:"dot",success:!0,maxErrorTime:re.maxErrorTime,dotList:M.dotList,isStaticPage:!M.isFirstRequestSent&&(!!/auto/.test(M.reportDesc)||"unknown"),requests:k.transRequestDetails2Arr(M),firstScreenTime:re.firstScreenTimeStamp-M.forcedNavStartTimeStamp,firstScreenTimeStamp:re.firstScreenTimeStamp,firstScreenImages:ue.firstScreenImages,firstScreenImagesLength:ue.firstScreenImages.length,firstScreenImagesDetail:re.firstScreenImagesDetail,navigationStartTimeStamp:M.forcedNavStartTimeStamp,navigationStartTime:M.forcedNavStartTimeStamp-M._originalNavStart,isOriginalNavStart:M.forcedNavStartTimeStamp===M._originalNavStart,delayFirstScreen:oe,delayAll:M.delayAll,version:k.version,reportDesc:M.reportDesc,url:window.location.href.substring(0,200),ignoredImages:M.ignoredImages,device:M.device,globalIndex:M.globalIndex,domChangeList:M.domChangeList,navigationTagChangeMap:D.navigationTagChangeMap,reportTimeFrom:re.reportTimeFrom,errorMessages:M.errorMessages,stableTime:M.stableTime,tryReportTime:k.getTime()-M.forcedNavStartTimeStamp}})();if(M.delayReport)var me=setTimeout(function(){le()&&(ce.reportTime=k.getTime()-M.forcedNavStartTimeStamp,M.onReport(ce),M.hasReported=!0),clearTimeout(me)},M.delayReport);else le()&&(ce.reportTime=k.getTime()-M.forcedNavStartTimeStamp,M.onReport(ce),M.hasReported=!0)}}function x(re){var ue=re&&re.recordFirstScreen;if(M.delayAll>=M.abortTimeWhenDelay)M.abortByDelayTimeout=!0;else{var le=k.getTime(),ce=(function(se){var oe=I.innerHeight,pe=I.innerWidth;M.device.screenWidth||(M.device.screenWidth=pe),M.device.screenHeight||(M.device.screenHeight=oe);for(var Se=se&&se.searchInFirstScreen,Pe=k.queryAllNode(M.ignoreTag),Ie=Pe.nextNode(),$=[],we=function(Ae){var Te=k.parseUrl(Ae).protocol;Te&&Te.indexOf("http")===0&&$.indexOf(Ae)===-1&&$.push(Ae)};Ie;){var ve=k.getImgSrcFromDom(Ie,M.img);if(ve){if(Se)if(k.recordCurrentPos(Ie,M),k.isInFirstScreen(Ie))we(ve);else{var be=k.currentPos;M.ignoredImages.push({src:ve,screenHeight:oe,screenWidth:pe,scrollTop:be.scrollTop,top:be.top,bottom:be.bottom,vertical:be.scrollTop+be.top<=oe,left:be.left,right:be.right,horizontal:be.right>=0&&be.left<=pe})}else we(ve);Ie=Pe.nextNode()}else Ie=Pe.nextNode()}return k.formateUrlList($,"add")})({searchInFirstScreen:ue}),me=k.getTime();M.delayAll+=me-le;var ae={type:"dot",isImgInFirstScreen:ue||!1,isFromInternal:!(!re||!re.isFromInternal),firstScreenImages:ce,firstScreenImagesLength:ce.length,dotIndex:M.dotList.length,dotTimeStamp:le,dotTime:le-M.forcedNavStartTimeStamp,delay:me-le,finished:!1,isTargetDot:re&&re.isTargetDot||!1,firstScreenTimeStamp:-1,reportTimeFrom:"",firstScreenImagesDetail:[],maxErrorTime:"unkown"};if(M.dotList.push(ae),ce.length){var fe=0,ye=function(se){++fe===ce.length&&(ae.finished=!0)},ie=function(se){var oe=k.getTime();return{requestTime:se.requestTime,onloadTimeStamp:oe,onloadTime:oe-M.forcedNavStartTimeStamp,maxErrorTime:se.maxErrorTime,type:se.type}};k.forEach(ce,function(se){if(M.imgMap[se])ye();else{var oe=new Image;oe.src=se;var pe=k.getTime();if(oe.complete){if(!M.imgMap[se]){var Se=M.dotList[ae.dotIndex-1]?ae.dotTimeStamp-M.dotList[ae.dotIndex-1].dotTimeStamp:0;M.imgMap[se]=ie({requestTime:pe-M.forcedNavStartTimeStamp,maxErrorTime:Se,type:"complete"})}ye()}else oe.onload=oe.onerror=function(){M.imgMap[se]||(M.imgMap[se]=ie({requestTime:pe-M.forcedNavStartTimeStamp,maxErrorTime:0,type:"onload"})),ye()}}})}else ae.finished=!0}}function ne(){if(!M.hasStoppedObserve){M.hasStoppedObserve=!0,M.stopCatchingRequest=!0,M.stableTime=k.getTime()-M.forcedNavStartTimeStamp,k.stopWatchDomUpdate(M),k.stopCatchingRequest(M),k.stopWatchingError(M),clearInterval(M.intervalDotTimer),x({recordFirstScreen:!0});var re=(function(){M.dotList.sort(function(se,oe){return se.dotTimeStamp<oe.dotTimeStamp?1:-1});var ce,me=M.dotList.slice(1),ae=M.dotList[0].firstScreenImages,fe=function(se,oe){for(var pe=0,Se=oe.length;pe<Se;pe++)if(se.indexOf(oe[pe])===-1)return!1;return!0};if(ae.length>0){for(var ye=0,ie=me.length;ye<ie;ye++)fe(me[ye].firstScreenImages,ae)&&(ce=me[ye]);ce||(ce=M.dotList[0])}else(ce=M.dotList[0]).firstScreenTimeStamp=performance.timing.domComplete,ce.firstScreenTime=performance.timing.domComplete-M.forcedNavStartTimeStamp;return ce})(M.dotList);M.onStableStatusFound(re),re.isTargetDot=!0,M.onAllXhrResolved&&M.onAllXhrResolved(re.dotTimeStamp);var ue=null,le=function(){re.finished&&((function(ce){var me=M.dotList[0],ae=function(){for(var fe=[],ye=me.firstScreenImages,ie=0,se=ye.length;ie<se;ie++){var oe=ye[ie],pe=M.imgMap[oe];pe&&fe.push({src:oe,type:pe.type,maxErrorTime:pe.maxErrorTime,requestTime:pe.requestTime,onloadTimeStamp:pe.onloadTimeStamp,onloadTime:pe.onloadTime,from:"dot"})}return fe.sort(function(Se,Pe){return Pe.onloadTime-Se.onloadTime}),fe};ce.firstScreenImages.length===0?/^hand/.test(M.reportDesc)?(ce.firstScreenTimeStamp=M.handExcuteTime,ce.reportTimeFrom="dot-hand-from-force",ce.firstScreenImagesDetail=ae(),ee(ce)):k.getDomReadyTime(M,function(fe,ye){ce.firstScreenTimeStamp=fe,ce.reportTimeFrom=ye,ce.firstScreenImagesDetail=ae(),ee(ce)}):(function(fe){var ye=(function(ie){var se=[];return k.forEach(ie,function(oe){se.push(M.imgMap[oe])}),se.sort(function(oe,pe){return oe.onloadTimeStamp<pe.onloadTimeStamp?1:-1}),se[0]})(me.firstScreenImages);ce.firstScreenTimeStamp=ye.onloadTimeStamp,ce.maxErrorTime=ye.maxErrorTime,ce.reportTimeFrom=fe,ce.firstScreenImagesDetail=ae(),ee(ce)})("dot-img-from-onload")})(re),clearInterval(ue))};ue=setInterval(le,1e3),le()}}return M.globalIndex="dot-"+A++,k.watchDomUpdate(M),{mergeUserConfig:function(re){k.mergeUserConfig(M,re)},testStaticPage:function(){k.testStaticPage(function(){ne()},M)},observeDomChange:function(){var re,ue=function(le){var ce=k.getTime();re&&ce-re<M.dotDelay||(re=ce,x(le))};M.intervalDotTimer=setInterval(function(){ue({isFromInternal:!0})},M.dotDelay),ue()},overrideRequest:function(){k.overrideRequest(M,function(){ne()})},recordDomInfo:x,onStopObserving:ne,watchError:function(){k.watchError(M)},global:M}}n.exports={auto:function(M){var ee=function(){var re=F();return re.global.reportDesc="auto-dot",re.watchError(),re.mergeUserConfig(M),re.testStaticPage(),re.observeDomChange(),re.overrideRequest(),re},x=ee(),ne=x.global;return k.onNavigationStartChange(x.global,function(re){ne.abortReport=!0,ne.onNavigationStartChange(re),M.forcedNavStartTimeStamp=re.timeStamp,ne=ee().global}),x.global},hand:function(M){var ee=F();ee.global.reportDesc="hand-dot",ee.global.handExcuteTime=k.getTime(),ee.mergeUserConfig(M),ee.onStopObserving()}}},function(n,i,P){var I=!!document.querySelector,k=window.performance&&window.performance.timing,D=window.performance&&window.performance.getEntries&&typeof window.performance.getEntries=="function"&&window.performance.getEntries()instanceof Array,A=function(ee,x){return function(ne){if(I&&k){var re="perf";if(ne&&ne.type&&(re=ne.type),re==="auto"||re==="perf"||re==="dot"){var ue=I&&D;re==="auto"?ue?ee(ne):x(ne):re==="perf"?ue?ee(ne):console.log(`[auto-compute-first-screen-time] current browser doesn't support performance API. So forced type "perf" is ignored.`):re==="dot"&&x(ne)}else(function(le){console&&typeof console.error=="function"&&console.error(le)})('[auto-compute-first-screen-time] error message: config option of "type" should be one of values as below: "auto/perf/dot"')}else(function(le){console&&typeof console.log=="function"&&console.log(le)})("[auto-compute-first-screen-time] current browser doesn't support performance.timing. Page performance computation failed.")}},F=P(4),M=P(2);n.exports=A(F.auto,M.auto),n.exports.report=A(F.hand,M.hand)},function(n,i,P){var I=window,k=(I.document,P(1)),D=P(0),A=0;function F(){var M=k.mergeGlobal(k.initGlobal(),{hasStableFound:!1});function ee(){if(!M.hasStableFound){k.stopWatchDomUpdate(M),k.stopCatchingRequest(M),k.stopWatchingError(M),M.hasStableFound=!0,M.stopCatchingRequest=!0,M.stableTime=k.getTime()-M.forcedNavStartTimeStamp;var re=ne();M.onStableStatusFound(re)}}function x(re){var ue=function(){return!M.hasReported&&!M.abortReport};if(re.ignoredImages=M.ignoredImages,re.device=M.device,re.success=!0,re.tryReportTime=k.getTime()-M.forcedNavStartTimeStamp,re.errorMessages=M.errorMessages,re.network=k.generateNetwork(),M.delayReport)var le=setTimeout(function(){ue()&&(M.hasReported=!0,re.reportTime=k.getTime()-M.forcedNavStartTimeStamp,M.onReport(re)),clearTimeout(le)},M.delayReport);else ue()&&(re.reportTime=k.getTime()-M.forcedNavStartTimeStamp,M.onReport(re))}function ne(){var re=k.getTime(),ue=(function(){var ae=I.innerHeight,fe=I.innerWidth;M.device.screenHeight=ae,M.device.screenWidth=fe;for(var ye=k.queryAllNode(M.ignoreTag),ie=ye.nextNode(),se=[],oe=function(Pe){var Ie=k.parseUrl(Pe).protocol;Ie&&Ie.indexOf("http")===0&&se.indexOf(Pe)===-1&&se.push(Pe)};ie;){var pe=k.getImgSrcFromDom(ie,M.img);if(pe){if(k.recordCurrentPos(ie,M),k.isInFirstScreen(ie))oe(pe);else{var Se=k.currentPos;M.ignoredImages.push({src:pe,screenHeight:ae,screenWidth:fe,scrollTop:Se.scrollTop,top:Se.top,bottom:Se.bottom,vertical:Se.scrollTop+Se.top<=ae,left:Se.left,right:Se.right,horizontal:Se.right>=0&&Se.left<=fe})}ie=ye.nextNode()}else ie=ye.nextNode()}return k.formateUrlList(se,"add")})(),le=k.getTime(),ce={type:"perf",isStaticPage:!M.isFirstRequestSent&&(!!/auto/.test(M.reportDesc)||"unknown"),firstScreenImages:[],firstScreenImagesLength:0,firstScreenImagesDetail:[],requests:k.transRequestDetails2Arr(M),delayAll:le-re,delayFirstScreen:le-re,firstScreenTime:-1,firstScreenTimeStamp:-1,maxErrorTime:0,navigationStartTimeStamp:M.forcedNavStartTimeStamp,navigationStartTime:M.forcedNavStartTimeStamp-M._originalNavStart,isOriginalNavStart:M.forcedNavStartTimeStamp===M._originalNavStart,version:k.version,recordTime:k.getTime()-M.forcedNavStartTimeStamp,reportDesc:M.reportDesc,url:window.location.href.substring(0,200),globalIndex:M.globalIndex,domChangeList:M.domChangeList,navigationTagChangeMap:D.navigationTagChangeMap,reportTimeFrom:M.reportTimeFrom,errorMessages:[],network:[],stableTime:M.stableTime},me=function(){/^hand/.test(M.reportDesc)?(ce.firstScreenTimeStamp=M.handExcuteTime,ce.firstScreenTime=M.handExcuteTime-M._originalNavStart,ce.reportTimeFrom="perf-hand-from-force",x(ce)):k.getDomReadyTime(M,function(ae,fe){ce.firstScreenTimeStamp=ae,ce.firstScreenTime=ae-M._originalNavStart,ce.reportTimeFrom=fe,x(ce)})};return ce.firstScreenImages=ue,ce.firstScreenImagesLength=ue.length,ue.length?k.cycleGettingPerformaceTime(M,ue,function(ae){ce.firstScreenTime=ae.firstScreenTime,ce.firstScreenTimeStamp=ae.firstScreenTimeStamp,ce.firstScreenImagesDetail=ae.firstScreenImagesDetail,ce.reportTimeFrom="perf-img-from-performance",x(ce)},function(){me()}):me(),ce}return M.globalIndex="perf-"+A++,k.watchDomUpdate(M),{mergeUserConfig:function(re){k.mergeUserConfig(M,re)},testStaticPage:function(){k.testStaticPage(function(){ee()},M)},overrideRequest:function(){k.overrideRequest(M,function(){ee()})},recordFirstScreenInfo:ne,watchError:function(){k.watchError(M)},global:M}}n.exports={auto:function(M){var ee=(function(){var ne=F();return ne.global.reportDesc="auto-perf",ne.watchError(),ne.mergeUserConfig(M),ne.testStaticPage(),ne.overrideRequest(),ne})(),x=ee.global;return k.onNavigationStartChange(ee.global,function(ne){x.abortReport=!0,x.onNavigationStartChange(ne),M.forcedNavStartTimeStamp=ne.timeStamp,x=P(2).auto(M)}),ee.global},hand:function(M){var ee=F();ee.global.reportDesc="hand-perf",ee.global.handExcuteTime=k.getTime(),ee.mergeUserConfig(M),ee.recordFirstScreenInfo("perf-hand")}}}])})}});function calculateT2Time(){return new Promise(function(t){(0,import_auto_compute_first_screen_time.default)({onReport:function(e){e.success?t(e.firstScreenTime):t(0)}})})}var import_auto_compute_first_screen_time,init_t2=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/performance/t2.js":function(){import_auto_compute_first_screen_time=__toESM(require_dist2())}});function openWhiteScreen(t,e){var n=e.skeletonProject,i=e.whiteBoxElements,P=0,I=[],k=[];if(n){var D;((D=document)===null||D===void 0?void 0:D.readyState)!=="complete"&&ee()}else{var A;((A=document)===null||A===void 0?void 0:A.readyState)==="complete"?ee():window.addEventListener("load",ee)}function F(ne){if(ne!=null&&ne.id)return"#"+ne.id;if(ne!=null&&ne.className){var re,ue,le,ce;return"."+(ne==null||(re=ne.className)===null||re===void 0||(ue=re.split)===null||ue===void 0||(ue=ue.call(re," "))===null||ue===void 0||(le=ue.filter)===null||le===void 0||(le=le.call(ue,function(ae){return!!ae}))===null||le===void 0||(ce=le.join)===null||ce===void 0?void 0:ce.call(le,"."))}else{var me;return ne==null||(me=ne.nodeName)===null||me===void 0?void 0:me.toLowerCase()}}function M(ne){var re=F(ne);return n&&(P?I.push(re):I=[re]),i.indexOf(re)!==-1}function ee(){for(var ne=0,re=1;re<=9;re++){var ue=document.elementsFromPoint(window.innerWidth*re/10,window.innerHeight/2),le=document.elementsFromPoint(window.innerWidth/2,window.innerHeight*re/10);M(ue[0])&&ne++,re!==5&&M(le[0])&&ne++}if(ne!==17){if(n){if(!P)return x();if(k.join()===I.join())return t({status:"error"})}window._loopTimer&&(clearTimeout(window._loopTimer),window._loopTimer=null)}else window._loopTimer||x();t({status:ne===17?"error":"ok"})}function x(){window._loopTimer||(window._loopTimer=setInterval(function(){n&&(P++,k=[]),ee()},1e3))}}function getElementVisibleInfo(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.map(function(P){return document.querySelector(P)}).filter(function(P){return!!P});if(n.length===0)return{visible:!1,elementType:"common"};var i={visible:!1,elementType:"common"};return n.some(function(P){return i=isElementVisible(P,e),i.visible}),i}function isElementVisible(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t)return{visible:!1,elementType:"common"};if(typeof getComputedStyle=="function")try{if(t.nodeType===Node.COMMENT_NODE)return{visible:!1,elementType:"common"};if(t.nodeType===Node.TEXT_NODE){if(/^[\s\u200B\u200C\u200D\uFEFF\u200E\u200F]*$/.test(t.nodeValue||""))return{visible:!1,elementType:"common"};var n=t.parentElement;if(!n||!judgeElementVisible(n,e))return{visible:!1,elementType:"common"}}var i=t.querySelector("[".concat(SKELETON_FLAG,"]"));if(t.hasAttribute(SKELETON_FLAG)||i)return{visible:!1,elementType:"skeleton"};var P=getComputedStyle(t);if(P.visibility==="hidden"||P.display==="none"||P.opacity==="0")return{visible:!1,elementType:"common"};var I=t.getBoundingClientRect();if(I.height===0||I.width===0){if(I.height===0&&["hidden","clip"].includes(P.overflowY))return{visible:!1,elementType:"common"};if(I.width===0&&["hidden","clip"].includes(P.overflowX))return{visible:!1,elementType:"common"}}if(["IMG","PROGRESS","INPUT","SELECT","TEXTAREA","DETAILS","IFRAME","AUDIO","VIDEO","EMBED","OBJECT"].includes(t.tagName)){if(!judgeElementVisible(t,e))return{visible:!1,elementType:"common"};if(t.tagName==="VIDEO"&&t.readyState<2&&!t.poster&&!t.controls)return{visible:!1,elementType:"common"};if(t.tagName==="IFRAME"){var k=t;if(!isIframeCrossDomain(k)){var D=k.contentDocument;if(!D||!D.body||!D.body.childNodes.length||!judgeElementVisible(k,e))return{visible:!1,elementType:"common"}}}return{visible:!0,elementType:"common"}}if(t.hasChildNodes()){var A={visible:!1,elementType:"common"};return Array.from(t.childNodes).some(function(F){return A=isElementVisible(F,e),A.visible}),A}return{visible:!1,elementType:"common"}}catch(F){return{visible:!0,elementType:"common"}}return{visible:t.childNodes.length!==0,elementType:"common"}}function getIsElementInViewport(t){var e=t.getBoundingClientRect(),n=window.visualViewport||window,i=[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.right,y:e.bottom},{x:e.left,y:e.bottom}],P=n.width||document.documentElement.clientWidth,I=n.height||document.documentElement.clientHeight;return i.some(function(k){return k.x>=0&&k.y>=0&&k.x<=P&&k.y<=I})}function getIsElementInTopLayer(t){var e=t.getBoundingClientRect(),n=[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.right,y:e.bottom},{x:e.left,y:e.bottom},{x:e.left+e.width/2,y:e.top+e.height/2}];return n.some(function(i){var P=document.elementFromPoint(i.x,i.y);return P===t||t.contains(P)})}function isIframeCrossDomain(t){try{var e=new URL(window.location.href),n=new URL(t.src);return e.protocol!==n.protocol||document.domain!==n.hostname.split(".").slice(-2).join(".")||e.port!==n.port||!t.contentDocument}catch(i){return!0}}var SKELETON_FLAG,judgeElementVisible,WhiteScreenMonitor,init_whiteScreen=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/performance/whiteScreen.js":function(){init_objectSpread2(),init_regeneratorRuntime(),init_asyncToGenerator(),init_classCallCheck(),init_createClass(),init_defineProperty(),init_constants(),init_Interval(),SKELETON_FLAG="data-ant-monitor-skeleton-flag",judgeElementVisible=function(t,e){var n=getIsElementInViewport(t);return n?n&&getIsElementInTopLayer(t):!!e},WhiteScreenMonitor=(function(){function t(e,n,i){_classCallCheck(this,t),_defineProperty(this,"plugin",void 0),_defineProperty(this,"request",void 0),_defineProperty(this,"appId",void 0),this.appId=e,this.plugin=n,this.request=i}return _createClass(t,[{key:"open",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I,k,D;return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(I=P!=null?P:{},k=I.config,k){A.next=3;break}return A.abrupt("return");case 3:return D=this.pointsBlankMonitor("page",k),A.abrupt("return",D);case 5:case"end":return A.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"openKeyPoints",value:function(e,n){if(!e){console.error("openKeyPoints() - pointSelector is required");return}if(!n||!n.delay||typeof n.delay!="number"||n.delay<=0){console.error("openKeyPoints() - opt.delay is required and must be a positive number");return}var i=this.pointsBlankMonitor("key-points",_objectSpread2(_objectSpread2({},n),{},{selector:e}));return i}},{key:"pointsBlankMonitor",value:function(e,n){var i=this;if(!this.plugin.getWhiteScreenInfo){console.warn("tracker's plugin getWhiteScreenInfo is not implemented");return}var P="open",I=!1,k=!0,D=5e3,A=n.delay,F=n.persistent,M=n.selector,ee=[A].map(function(ne){return typeof ne=="function"?ne():ne}).map(function(ne){return typeof ne=="number"?Math.max(ne,0):6e3})[0],x=function(){return P==="business"?D:I||e==="key-points"?ee:Math.max(ee-performance.now(),0)};return new Promise((function(){var ne=_asyncToGenerator(_regeneratorRuntime().mark(function re(ue){var le,ce,me,ae,fe,ye,ie,se;return _regeneratorRuntime().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:oe.prev=0;case 1:if(!k){oe.next=25;break}return oe.next=4,superDelayExec(_asyncToGenerator(_regeneratorRuntime().mark(function pe(){var Se;return _regeneratorRuntime().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,i.plugin.getWhiteScreenInfo({selector:M,ignoreNotInViewport:e==="key-points"});case 2:return Se=Pe.sent,Pe.abrupt("return",{isVisible:Se.status==="ok",blankType:Se.blankType,detectTime:Date.now()});case 4:case"end":return Pe.stop()}},pe)})),x(),P==="business"?{forceUseNativeSetTimeout:!0,immediateEmitConfig:{events:["error","unhandledrejection"],debounceWait:500}}:void 0);case 4:if(le=oe.sent,ce=le||{},me=ce.result,ae=ce.triggerSource,fe=me||{isVisible:!0},ye=fe.isVisible,ie=fe.detectTime,se=fe.blankType,k){oe.next=9;break}return oe.abrupt("break",25);case 9:if(!ye){oe.next=16;break}if(I&&(I=!1),F!==!1){oe.next=13;break}return oe.abrupt("break",25);case 13:P==="open"&&(P="business"),oe.next=23;break;case 16:if(P!=="business"){oe.next=19;break}return i.reportPointBlankLog({pointsType:e,stage:P,detectTime:ie,keyPointSelector:e==="key-points"?M:void 0,blankType:se||"blank",triggerSource:ae||"timer",rootSelector:M}),oe.abrupt("break",25);case 19:if(!I){oe.next=21;break}return oe.abrupt("break",25);case 21:i.reportPointBlankLog({pointsType:e,stage:P,detectTime:ie,keyPointSelector:e==="key-points"?M:void 0,blankType:se||"blank",triggerSource:ae||"timer",rootSelector:M}),I=!0;case 23:oe.next=1;break;case 25:oe.next=30;break;case 27:oe.prev=27,oe.t0=oe.catch(0),console.error("pointsBlankMonitor error:",oe.t0);case 30:ue();case 31:case"end":return oe.stop()}},re,null,[[0,27]])}));return function(re){return ne.apply(this,arguments)}})()),function(){k=!1}}},{key:"reportPointBlankLog",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I,k,D,A,F,M,ee,x,ne,re,ue,le,ce,me;return _regeneratorRuntime().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return F=P.pointsType,M=P.stage,ee=P.detectTime,x=P.keyPointSelector,ne=P.blankType,re=ne===void 0?"blank":ne,ue=P.triggerSource,le=P.rootSelector,ce=Array.isArray(le)?le:[le],me=ce.map(function(fe){var ye,ie;return(ye=(ie=document)===null||ie===void 0||(ie=ie.querySelector(fe))===null||ie===void 0||(ie=ie.querySelectorAll("*"))===null||ie===void 0?void 0:ie.length)!==null&&ye!==void 0?ye:0}).join(","),ae.t0=this,ae.t1=WHITE_SCREEN_REPORT_CODE,ae.t2=(I=this.appId)!==null&&I!==void 0?I:"",ae.next=8,(D=(A=this.plugin).getNetWorkInfo)===null||D===void 0?void 0:D.call(A);case 8:if(ae.t4=k=ae.sent,ae.t3=ae.t4===null,ae.t3){ae.next=12;break}ae.t3=k===void 0;case 12:if(!ae.t3){ae.next=16;break}ae.t5=void 0,ae.next=17;break;case 16:ae.t5=k.networkType;case 17:return ae.t6=ae.t5,ae.t7=M,ae.t8=F,ae.t9=re,ae.t10=ee+"",ae.t11=F==="key-points"?x:"",ae.t12=ue,ae.t13=me,ae.t14={logType:"custom",code:ae.t1,msg:"\u767D\u5C4F\u5F02\u5E38",marmotId:ae.t2,d3:ae.t6,d4:ae.t7,d5:ae.t8,d6:ae.t9,c1:ae.t10,c2:ae.t11,c3:ae.t12,c5:ae.t13},ae.abrupt("return",ae.t0.request.call(ae.t0,ae.t14));case 27:case"end":return ae.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()}]),t})()}});function getSelector(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;if(t.nodeType!==Node.ELEMENT_NODE)return null;var i=t;if(i.id)return"#".concat(i.id);for(var P=[],I=0;i&&i.nodeType===Node.ELEMENT_NODE&&i!==document.body&&I<n;){I++;for(var k=0,D=!1,A=i.previousElementSibling;A;A=A.previousElementSibling)A.nodeType===Node.ELEMENT_NODE&&A.nodeName===i.nodeName&&k++;for(var F=i.nextElementSibling;F&&!D;F=F.nextElementSibling)if(F.nodeType===Node.ELEMENT_NODE&&F.nodeName===i.nodeName){D=!0;break}for(var M=i.nodeName.toLowerCase(),ee=k===0&&!D?1:k+1,x=["".concat(M,"(").concat(ee,")")],ne=e?["class","src","href"]:["class"],re=[],ue=0,le=ne;ue<le.length;ue++){var ce=le[ue],me=i.getAttribute(ce);if(me&&ce==="class"){var ae=me.split(/\s+/).slice(0,1).join(" ");re.push(ae?"[".concat(ce,"=").concat(ae,"]"):"")}else re.push(me?"[".concat(ce,"=").concat(me,"]"):"")}x.push(re.join("")),P.unshift(x.join("")),i=i.parentElement}return P.length?P.join(" "):null}var init_getSelector=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/getSelector.js":function(){}});function initBehaviorListener(t,e){initUIEventListeners(t),initNavigationListeners(t),e.enableConsole&&initConsoleListeners(t)}function initUIEventListeners(t){window.document.addEventListener("click",createUIEventListener("click",t),!0),window.document.addEventListener("input",createUIEventListener("input",t),!0)}function initNavigationListeners(t){trackInitialNavigation(t),overrideHistoryMethods(t)}function initConsoleListeners(t){if(window.console){var e=["log","error","info","warn"];e.forEach(function(n){var i=window.console[n];typeof i=="function"&&(window.console[n]=function(){for(var P=arguments.length,I=new Array(P),k=0;k<P;k++)I[k]=arguments[k];var D={type:"console.".concat(n),data:{msg:objToStr(I)},timestamp:Date.now()};return t(D),safeRun(i,I)})})}}function trackInitialNavigation(t){var e,n;if((e=document)!==null&&e!==void 0&&e.referrer&&(n=document)!==null&&n!==void 0&&n.location){var i={type:"navigation",data:{from:document.referrer,to:document.location.href},timestamp:Date.now()};t(i)}}function overrideHistoryMethods(t){var e=function(){var k,D=(k=window)===null||k===void 0||(k=k.chrome)===null||k===void 0||(k=k.app)===null||k===void 0?void 0:k.runtime,A="history"in window&&!!window.history.pushState&&!!window.history.replaceState;return!D&&A};if(e()){var n=window.location.href,i=function(k,D){var A={type:"navigation",data:{from:k,to:D},timestamp:Date.now()};t(A),n=D},P=function(k){var D=history[k].bind(history);return function(A,F,M){return typeof M=="string"&&i(n,M),D(A,F,M)}};history.pushState=P("pushState"),history.replaceState=P("replaceState");var I=window.onpopstate;window.onpopstate=function(){if(i(n,window.location.href),typeof I=="function"){for(var k=arguments.length,D=new Array(k),A=0;A<k;A++)D[A]=arguments[A];I.apply(this,D)}}}}function createUIEventListener(t,e){var n;return function(i){if(i&&i!==n){n=i;var P=i.target;if(i.target){var I={type:"ui.".concat(t),data:{msg:getSelector(P,!1)},timestamp:Date.now()};e(I)}}}}function safeRun(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];try{if(typeof t=="function")return t.apply(void 0,_toConsumableArray(e))}catch(n){console.error(n)}}var init_behaviorHandler=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/behaviorHandler.js":function(){init_toConsumableArray(),init_getSelector(),init_objToStr()}});function getClientFromUA(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return(t=CLIENT_PATTERNS.find(function(n){var i=_slicedToArray(n,1),P=i[0];return P.test(e)}))===null||t===void 0?void 0:t[1]}var CLIENT_PATTERNS,init_getClientFromUA=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/getClientFromUA.js":function(){init_slicedToArray(),CLIENT_PATTERNS=[[/(?:^|\s)Bettr(?:\/[\d.]+)?(?=\s|$)/i,"WebBettr"],[/(?:^|\s)Kwai(?:_Pro)?\/[\d.]+(?=\s|$)/i,"WebKwai"]]}});function getErrorInfo(t){if(t.type==="js-error-addeventlistener"){var e=t.error;try{var n=e.target||e.srcElement,i=e.message||"";if(n instanceof HTMLVideoElement){var P,I,k;return{message:i||((P=n.error)===null||P===void 0?void 0:P.message)||"VIDEO_ERROR",extra:{code:(I=n.error)===null||I===void 0?void 0:I.code,message:(k=n.error)===null||k===void 0?void 0:k.message,src:n.src,poster:n.poster},type:"video-error"}}if(n instanceof HTMLSourceElement&&n.parentElement instanceof HTMLVideoElement)return{message:i||"VIDEO_SOURCE_ERROR",extra:{poster:n.parentElement.poster,src:n.src,type:n.type,media:n.media,srcset:n.srcset,sizes:n.sizes},type:"video-source-error"};var D=n instanceof HTMLScriptElement||n instanceof HTMLLinkElement||n instanceof HTMLImageElement;if(!D){var A;return{message:i,extra:{src:e.filename,lineno:e.lineno,colno:e.colno,stack:(A=e.error)===null||A===void 0?void 0:A.stack},type:"js-error-addeventlistener"}}var F=n.localName,M=n.src||n.href;if(window.location.href.indexOf(M)!==0)return new Promise(function(ne){setTimeout(function(){ne({message:M,extra:{typeName:F,sourceUrl:M},type:"source-error"})},2e3)})}catch(ne){helper.console.log(ne)}}if(t.type==="promise-error"){var ee=t.error,x=(ee==null?void 0:ee.reason)instanceof Error;try{if(ee!=null&&ee.promise)return{message:x?ee.reason.message:stringify(ee.reason),extra:{stack:x?ee.reason.stack:void 0},type:"promise-error"}}catch(ne){helper.console.log(ne)}}}function onError(t){var e=(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function P(I){var k;return _regeneratorRuntime().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,getErrorInfo({type:"js-error-addeventlistener",error:I});case 2:k=D.sent,k&&t(k);case 4:case"end":return D.stop()}},P)}));return function(P){return i.apply(this,arguments)}})();window.addEventListener("error",e,!0);var n=(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function P(I){var k;return _regeneratorRuntime().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,getErrorInfo({type:"promise-error",error:I});case 2:k=D.sent,k&&t(k);case 4:case"end":return D.stop()}},P)}));return function(P){return i.apply(this,arguments)}})();return window.addEventListener("unhandledrejection",n),function(){window.removeEventListener("error",e,!0),window.removeEventListener("unhandledrejection",n)}}var stringify,init_onError=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/onError.js":function(){init_regeneratorRuntime(),init_asyncToGenerator(),init_helper(),stringify=function(t){try{return JSON.stringify(t)}catch(e){return t==null?void 0:t.toString()}}}});function onHTTPError(t){if(window.fetch){var e=window.fetch;window.fetch=_asyncToGenerator(_regeneratorRuntime().mark(function i(){var P,I,k,D,A,F,M,ee,x,ne,re,ue,le,ce=arguments;return _regeneratorRuntime().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:for(P=void 0,I=void 0,k=void 0,D=void 0,A=void 0,F=Date.now(),M=ce.length,ee=new Array(M),x=0;x<M;x++)ee[x]=ce[x];return me.prev=7,me.next=10,e.apply(void 0,ee);case 10:return ne=me.sent,P=ne.status,k=ne.type,D=ne.redirected?1:0,A=ne.url,me.abrupt("return",ne);case 18:throw me.prev=18,me.t0=me.catch(7),I=me.t0,me.t0;case 22:return me.prev=22,(!P||P<200||P>=300)&&(le=ee[0],t({status:P,error:I,url:le.url?le.url:le.toString(),time:Date.now()-F,redirected:D,responseUrl:A,method:(re=le.method)!==null&&re!==void 0?re:(ue=ee[1])===null||ue===void 0?void 0:ue.method,type:k,requestType:"fetch"})),me.finish(22);case 25:case"end":return me.stop()}},i,null,[[7,18,22,25]])}))}var n=window.XMLHttpRequest;window.XMLHttpRequest=(function(i){_inherits(I,i);var P=_createSuper(I);function I(){var k;_classCallCheck(this,I);for(var D=arguments.length,A=new Array(D),F=0;F<D;F++)A[F]=arguments[F];return k=P.call.apply(P,[this].concat(A)),_defineProperty(_assertThisInitialized(k),"method",void 0),_defineProperty(_assertThisInitialized(k),"url",void 0),k}return _createClass(I,[{key:"open",value:function(k,D){return this.method=k,this.url=D,_get(_getPrototypeOf(I.prototype),"open",this).apply(this,arguments)}},{key:"send",value:function(k){var D=this,A=Date.now(),F=function(){if(x(),D.status<200||D.status>=300){var ne,re;t({status:D.status,url:(ne=(re=D.url)===null||re===void 0?void 0:re.toString())!==null&&ne!==void 0?ne:"",time:Date.now()-A,responseUrl:D.responseURL,method:D.method,type:D.responseType,requestType:"xhr"})}},M=function(){var ne,re;x(),t({error:["","text"].indexOf(D.responseType)>-1?D.responseText:"".concat(D.status," ").concat(D.statusText),status:D.status,url:(ne=(re=D.url)===null||re===void 0?void 0:re.toString())!==null&&ne!==void 0?ne:"",time:Date.now()-A,responseUrl:D.responseURL,method:D.method,type:D.responseType,requestType:"xhr"})},ee=function(){var ne,re;x(),t({status:D.status,url:(ne=(re=D.url)===null||re===void 0?void 0:re.toString())!==null&&ne!==void 0?ne:"",time:Date.now()-A,responseUrl:D.responseURL,method:D.method,type:D.responseType,requestType:"xhr",aborted:1})},x=function(){D.removeEventListener("load",F),D.removeEventListener("error",M),D.removeEventListener("abort",ee)};return this.addEventListener("load",F),this.addEventListener("error",M),this.addEventListener("abort",ee),_get(_getPrototypeOf(I.prototype),"send",this).call(this,k)}}]),I})(n)}var init_onHTTPError=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/onHTTPError.js":function(){init_classCallCheck(),init_createClass(),init_assertThisInitialized(),init_get(),init_getPrototypeOf(),init_inherits(),init_createSuper(),init_defineProperty(),init_regeneratorRuntime(),init_asyncToGenerator()}}),getStyle,ELE_WEIGHT,START_TIME,IGNORE_TAG_SET,LIMIT,WW,WH,DELAY,timer,FMPTiming,fmp_default,init_fmp=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/performance/fmp.js":function(){init_toConsumableArray(),init_slicedToArray(),init_createForOfIteratorHelper(),init_classCallCheck(),init_createClass(),init_defineProperty(),init_getSelector(),getStyle=function(t,e){return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]},ELE_WEIGHT=(function(t){return t[t.SVG=2]="SVG",t[t.IMG=2]="IMG",t[t.CANVAS=4]="CANVAS",t[t.OBJECT=4]="OBJECT",t[t.EMBED=4]="EMBED",t[t.VIDEO=4]="VIDEO",t})(ELE_WEIGHT||{}),START_TIME=performance.now(),IGNORE_TAG_SET=["SCRIPT","STYLE","META","HEAD","LINK"],LIMIT=3e3,WW=window.innerWidth,WH=window.innerHeight,DELAY=2e3,FMPTiming=(function(){function t(e){var n=this;if(_classCallCheck(this,t),_defineProperty(this,"fmpTime",0),_defineProperty(this,"statusCollector",[]),_defineProperty(this,"flag",!0),_defineProperty(this,"observer",null),_defineProperty(this,"callbackCount",0),_defineProperty(this,"entries",{}),this.options=e,!performance||!performance.getEntries){console.log("your browser do not support performance.getEntries"),this.options.cb({time:0,selector:""},"not_support");return}this.initObserver();var i=Date.now();timer=setTimeout(function(){n.options.cb({time:Date.now()-i,selector:""},"timeout")},5e3)}return _createClass(t,[{key:"getFirstSnapShot",value:function(){var e=performance.now(),n=document.body;n&&this.setTag(n,this.callbackCount),this.statusCollector.push({time:e})}},{key:"initObserver",value:function(){var e=this;this.getFirstSnapShot(),this.observer=new MutationObserver(function(){e.callbackCount+=1;var n=performance.now(),i=document.body;i&&e.setTag(i,e.callbackCount),e.statusCollector.push({time:n})}),this.observer.observe(document,{childList:!0,subtree:!0}),this.calculateFinalScore()}},{key:"calculateFinalScore",value:function(){var e=this;if(this.flag&&MutationObserver)if(this.checkNeedCancel(START_TIME)){var n;(n=this.observer)===null||n===void 0||n.disconnect(),this.flag=!1;var i=this.getTreeScore(document.body),P=null,I=_createForOfIteratorHelper(i.dpss),k;try{for(I.s();!(k=I.n()).done;){var D=k.value;P&&P.st?P.st<D.st&&(P=D):P=D}}catch(ne){I.e(ne)}finally{I.f()}if(performance.getEntries().forEach(function(ne){e.entries[ne.name]=ne.responseEnd}),!P)return!1;var A=this.filterResult(P.els),F=this.getFmpTime(A),M=_slicedToArray(F,2),ee=M[0],x=M[1];this.fmpTime=ee,this.options.cb({time:ee,selector:x},"normal"),clearTimeout(timer)}else setTimeout(function(){e.calculateFinalScore()},DELAY)}},{key:"getFmpTime",value:function(e){var n=0,i=null,P=_createForOfIteratorHelper(e),I;try{for(P.s();!(I=P.n()).done;){var k=I.value,D=0;if(k.weight===1){var A,F=parseInt((A=k.ele.getAttribute("fmp_c"))!==null&&A!==void 0?A:"0",10);D=this.statusCollector[F]&&this.statusCollector[F].time}else if(k.weight===2)if(k.ele.tagName==="IMG")D=this.entries[k.ele.src];else if(k.ele.tagName==="SVG"){var M,ee=parseInt((M=k.ele.getAttribute("fmp_c"))!==null&&M!==void 0?M:"0",10);D=this.statusCollector[ee]&&this.statusCollector[ee].time}else{var x=getStyle(k.ele,"background-image").match(/url\("(.*?)"\)/),ne="";x&&x[1]&&(ne=x[1],ne.includes("http")||(ne=location.protocol+x[1])),D=this.entries[ne]}else if(k.weight===4)if(k.ele.tagName==="CANVAS"){var re,ue=parseInt((re=k.ele.getAttribute("fmp_c"))!==null&&re!==void 0?re:"0",10);D=this.statusCollector[ue]&&this.statusCollector[ue].time}else k.ele.tagName==="VIDEO"&&(D=this.entries[k.ele.src],D||(D=this.entries[k.ele.poster]));typeof D!="number"&&(D=0),n<D&&(n=D,i=k.ele)}}catch(le){P.e(le)}finally{P.f()}return[n,i?this.getSelector(i):""]}},{key:"filterResult",value:function(e){if(e.length===1)return e;var n=0;e.forEach(function(P){n+=P.st});var i=n/e.length;return e.filter(function(P){return P.st>i})}},{key:"checkNeedCancel",value:function(e){var n=performance.now()-e,i=this.statusCollector.length>0?this.statusCollector[this.statusCollector.length-1].time:0;return n>LIMIT||n-i>1e3}},{key:"getTreeScore",value:function(e){if(!e)return{};var n=[],i=e.children,P=_createForOfIteratorHelper(i),I;try{for(P.s();!(I=P.n()).done;){var k=I.value;if(k.getAttribute("fmp_c")){var D=this.getTreeScore(k);D.st&&n.push(D)}}}catch(A){P.e(A)}finally{P.f()}return this.calcaulteGrades(e,n)}},{key:"calcaulteGrades",value:function(e,n){var i=e.getBoundingClientRect(),P=i.width,I=i.height,k=i.left,D=i.top,A=!0;(WH<D||WW<k)&&(A=!1);var F=0;n.forEach(function(me){F+=me.st});var M=Number(ELE_WEIGHT[e.tagName])||1;M===1&&getStyle(e,"background-image")&&getStyle(e,"background-image")!=="initial"&&getStyle(e,"background-image")!=="none"&&(M=ELE_WEIGHT.IMG);var ee=A?P*I*M:0,x=[{ele:e,st:ee,weight:M}],ne=e,re=this.calculateAreaParent(e);if(F>ee*re||re===0){ee=F,x=[];var ue=_createForOfIteratorHelper(n),le;try{for(ue.s();!(le=ue.n()).done;){var ce=le.value;x=x.concat(ce.els)}}catch(me){ue.e(me)}finally{ue.f()}}return{dpss:n,st:ee,els:x,root:ne}}},{key:"calculateAreaParent",value:function(e){var n=e.getBoundingClientRect(),i=n.left,P=n.right,I=n.top,k=n.bottom,D=n.width,A=n.height,F=0,M=0,ee=WW,x=WH,ne=P-i+(ee-F)-(Math.max(P,ee)-Math.min(i,F)),re=k-I+(x-M)-(Math.max(k,x)-Math.min(I,M));return ne<=0||re<=0?0:ne*re/(D*A)}},{key:"setTag",value:function(e,n){var i=e.tagName,P=[],I=_createForOfIteratorHelper(this.options.ignoreElements),k;try{for(I.s();!(k=I.n()).done;){var D=k.value;P.push.apply(P,_toConsumableArray(document.querySelectorAll(D)))}}catch(ce){I.e(ce)}finally{I.f()}if(P.indexOf(e)===-1&&IGNORE_TAG_SET.indexOf(i)===-1){var A=e.children;if(A&&A.length>0)for(var F=A.length-1;F>=0;F--){var M=A[F],ee=M.getAttribute("fmp_c")!==null;if(!ee){var x=M.getBoundingClientRect(),ne=x.left,re=x.top,ue=x.width,le=x.height;if(WH<re||WW<ne||ue===0||le===0||P.indexOf(M)>-1)continue;M.setAttribute("fmp_c","".concat(n))}this.setTag(M,n)}}}},{key:"getSelector",value:function(e){var n;return(n=getSelector(e))!==null&&n!==void 0?n:""}}]),t})(),fmp_default=FMPTiming}});function setItem(t,e){try{storage3.setItem(t,e)}catch(n){}}function getItem(t){try{return storage3.getItem(t)}catch(e){}}function removeItem(t){try{return storage3.removeItem(t)}catch(e){}}function getText(t){var e=t.textContent;return e&&e.trim()}function isContentElement(t){var e=t&&t.tagName;return e&&!/^(?:HEAD|META|LINK|STYLE|SCRIPT)$/.test(e)}function isContentText(t){return t&&t.nodeType===1&&getText(t)&&isContentElement(t.parentElement)}function isFunction2(t){return typeof t=="function"}function getNow(){return Date.now()-START_TIME2}function setResult(t){result2={fcp:fcp?fcp.t:t,fmp:fmp?fmp.t:t,tti:t}}function checkNodeScore(t){var e=0,n,i;return t!==doc.body&&(n=t.getBoundingClientRect(),n.top<windowHeight&&n.width>0&&n.height>0&&(t.tagName!=="IMG"?(getText(t)||getComputedStyle(t).backgroundImage!=="none")&&(e=1,i=t.childNodes,i&&i.length&&(e+=checkNodeList(i))):t.src&&(e=1))),e}function checkTTI(){clearTimeout(timer2);var t,e,n,i,P;function I(){enabled&&!ended&&(n=getNow(),t||(t=e=n),timer2=setTimeout2(function(){i=getNow(),P=i-n,P-ttiDuration<10?ttiDuration<16?ttiDuration=ttiDuration*2:ttiDuration<25?ttiDuration=ttiDuration+1:ttiDuration=25:P>50&&(ttiDuration=Math.max(1,ttiDuration/2)),i-n>50&&(e=i),i-e>1e3||i>DURATION?(setResult(e),setItem(cacheKey,JSON.stringify(result2))):I()},ttiDuration))}I()}function addScore(t){if(t>0){var e=getNow(),n={t:getNow(),s:t,m:0,p:currentPaintPoint};currentPaintPoint=n,fcp||(fcp=n);for(var i=n;n=n.p;)e-n.t>FMP_DURATION?delete n.p:(t+=n.s,n.s>i.s&&(i=n));var P=fmp?fmp.m:0;t>=P&&(i.m=t,fmp!==i&&(fmp=i,isReady?checkTTI():onReady=checkTTI))}}function addImgScore(){addScore(checkNodeScore(this)),this.removeEventListener("load",addImgScore)}function checkNodeList(t){for(var e=0,n=0,i=t.length;n<i;n++){var P=t[n];P.tagName==="IMG"?P.addEventListener("load",addImgScore):isContentElement(P)?e+=checkNodeScore(P):isContentText(P)&&(e+=1)}return e}var win,storage3,doc,windowHeight,performance2,setTimeout2,MutationObserver2,timing,START_TIME2,DURATION,FMP_DURATION,cacheKey,enabled,ended,thenActionList,fcp,fmp,currentPaintPoint,result2,lastResult,isReady,onReady,observer,timer2,ttiDuration,index,fmp_tti_1_1_default,init_fmp_tti_1_1=__esm({"node_modules/_fmp-tti@1.1.4@fmp-tti/index.js":function(){win=window,storage3=win.localStorage,doc=document,windowHeight=win.innerHeight,performance2=win.performance,setTimeout2=win.setTimeout,MutationObserver2=win.MutationObserver,timing=performance2&&performance2.timing,START_TIME2=timing&&timing.navigationStart,DURATION=win.TTI_LIMIT||1e4,FMP_DURATION=50,cacheKey="ft-"+location.pathname,enabled=!!(START_TIME2&&MutationObserver2),ended=!enabled,thenActionList=[],timer2=0,ttiDuration=1,enabled&&(doc.addEventListener("DOMContentLoaded",function(){isReady=!0,onReady&&onReady()}),observer=new MutationObserver2(function(t){if(enabled&&doc.body){var e=0;t.forEach(function(n){e+=checkNodeList(n.addedNodes)}),addScore(e)}}),observer.observe(doc,{childList:!0,subtree:!0}),setTimeout2(function(){ended||(removeItem(cacheKey),ended=!0,result2||setResult(getNow()),observer.disconnect(),enabled&&thenActionList.forEach(function(t){return t(result2)}))},DURATION),lastResult=getItem(cacheKey)),index={startTime:START_TIME2,now:getNow,stop:function(){enabled=!1},last:function(t){if(lastResult){try{t(JSON.parse(lastResult))}catch(e){}removeItem(cacheKey)}},then:function(t){enabled&&isFunction2(t)&&(ended?t(result2):thenActionList.push(t))}},fmp_tti_1_1_default=index}}),r,a,o,c,u,f,s,d,l,p,v,m,h,g,y,T,E,C,L,w,b,S,B,R,H,N,O,q,j,_,z,G,J,K,Q,U,V,W,X,Y,Z,init_web_vitals=__esm({"node_modules/_web-vitals@3.5.2@web-vitals/dist/web-vitals.js":function(){a=-1,o=function(t){addEventListener("pageshow",(function(e){e.persisted&&(a=e.timeStamp,t(e))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},u=function(){var t=c();return t&&t.activationStart||0},f=function(t,e){var n=c(),i="navigate";return a>=0?i="back-forward-cache":n&&(document.prerendering||u()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:t,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},s=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver((function(P){Promise.resolve().then((function(){e(P.getEntries())}))}));return i.observe(Object.assign({type:t,buffered:!0},n||{})),i}}catch(P){}},d=function(t,e,n,i){var P,I;return function(k){e.value>=0&&(k||i)&&((I=e.value-(P||0))||P===void 0)&&(P=e.value,e.delta=I,e.rating=(function(D,A){return D>A[1]?"poor":D>A[0]?"needs-improvement":"good"})(e.value,n),t(e))}},l=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},p=function(t){var e=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||t(n)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},v=function(t){var e=!1;return function(n){e||(t(n),e=!0)}},m=-1,h=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},g=function(t){document.visibilityState==="hidden"&&m>-1&&(m=t.type==="visibilitychange"?t.timeStamp:0,T())},y=function(){addEventListener("visibilitychange",g,!0),addEventListener("prerenderingchange",g,!0)},T=function(){removeEventListener("visibilitychange",g,!0),removeEventListener("prerenderingchange",g,!0)},E=function(){return m<0&&(m=h(),y(),o((function(){setTimeout((function(){m=h(),y()}),0)}))),{get firstHiddenTime(){return m}}},C=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},L=[1800,3e3],w=function(t,e){e=e||{},C((function(){var n,i=E(),P=f("FCP"),I=s("paint",(function(k){k.forEach((function(D){D.name==="first-contentful-paint"&&(I.disconnect(),D.startTime<i.firstHiddenTime&&(P.value=Math.max(D.startTime-u(),0),P.entries.push(D),n(!0)))}))}));I&&(n=d(t,P,L,e.reportAllChanges),o((function(k){P=f("FCP"),n=d(t,P,L,e.reportAllChanges),l((function(){P.value=performance.now()-k.timeStamp,n(!0)}))})))}))},b=[.1,.25],S=function(t,e){e=e||{},w(v((function(){var n,i=f("CLS",0),P=0,I=[],k=function(A){A.forEach((function(F){if(!F.hadRecentInput){var M=I[0],ee=I[I.length-1];P&&F.startTime-ee.startTime<1e3&&F.startTime-M.startTime<5e3?(P+=F.value,I.push(F)):(P=F.value,I=[F])}})),P>i.value&&(i.value=P,i.entries=I,n())},D=s("layout-shift",k);D&&(n=d(t,i,b,e.reportAllChanges),p((function(){k(D.takeRecords()),n(!0)})),o((function(){P=0,i=f("CLS",0),n=d(t,i,b,e.reportAllChanges),l((function(){return n()}))})),setTimeout(n,0))})))},B=0,R=1/0,H=0,N=function(t){t.forEach((function(e){e.interactionId&&(R=Math.min(R,e.interactionId),H=Math.max(H,e.interactionId),B=H?(H-R)/7+1:0)}))},O=function(){return r?B:performance.interactionCount||0},q=function(){"interactionCount"in performance||r||(r=s("event",N,{type:"event",buffered:!0,durationThreshold:0}))},j=[200,500],_=0,z=function(){return O()-_},G=[],J={},K=function(t){var e=G[G.length-1],n=J[t.interactionId];if(n||G.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{var i={id:t.interactionId,latency:t.duration,entries:[t]};J[i.id]=i,G.push(i)}G.sort((function(P,I){return I.latency-P.latency})),G.splice(10).forEach((function(P){delete J[P.id]}))}},Q=function(t,e){e=e||{},C((function(){var n;q();var i,P=f("INP"),I=function(D){D.forEach((function(M){M.interactionId&&K(M),M.entryType==="first-input"&&!G.some((function(ee){return ee.entries.some((function(x){return M.duration===x.duration&&M.startTime===x.startTime}))}))&&K(M)}));var A,F=(A=Math.min(G.length-1,Math.floor(z()/50)),G[A]);F&&F.latency!==P.value&&(P.value=F.latency,P.entries=F.entries,i())},k=s("event",I,{durationThreshold:(n=e.durationThreshold)!==null&&n!==void 0?n:40});i=d(t,P,j,e.reportAllChanges),k&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&k.observe({type:"first-input",buffered:!0}),p((function(){I(k.takeRecords()),P.value<0&&z()>0&&(P.value=0,P.entries=[]),i(!0)})),o((function(){G=[],_=O(),P=f("INP"),i=d(t,P,j,e.reportAllChanges)})))}))},U=[2500,4e3],V={},W=function(t,e){e=e||{},C((function(){var n,i=E(),P=f("LCP"),I=function(A){var F=A[A.length-1];F&&F.startTime<i.firstHiddenTime&&(P.value=Math.max(F.startTime-u(),0),P.entries=[F],n())},k=s("largest-contentful-paint",I);if(k){n=d(t,P,U,e.reportAllChanges);var D=v((function(){V[P.id]||(I(k.takeRecords()),k.disconnect(),V[P.id]=!0,n(!0))}));["keydown","click"].forEach((function(A){addEventListener(A,(function(){return setTimeout(D,0)}),!0)})),p(D),o((function(A){P=f("LCP"),n=d(t,P,U,e.reportAllChanges),l((function(){P.value=performance.now()-A.timeStamp,V[P.id]=!0,n(!0)}))}))}}))},X=[800,1800],Y=function t(e){document.prerendering?C((function(){return t(e)})):document.readyState!=="complete"?addEventListener("load",(function(){return t(e)}),!0):setTimeout(e,0)},Z=function(t,e){e=e||{};var n=f("TTFB"),i=d(t,n,X,e.reportAllChanges);Y((function(){var P=c();if(P){var I=P.responseStart;if(I<=0||I>performance.now())return;n.value=Math.max(I-u(),0),n.entries=[P],i(!0),o((function(){n=f("TTFB",0),(i=d(t,n,X,e.reportAllChanges))(!0)}))}}))}}});function getLCP(t){return new Promise(function(e){try{W(function(n){e(n==null?void 0:n.value),t&&t(n==null?void 0:n.value)}),handleSetTimeout(e)}catch(n){e(void 0)}})}function getFCP(){return new Promise(function(t){try{w(function(e){t(e==null?void 0:e.value)}),setTimeout(function(){t(void 0)},1e4)}catch(e){t(void 0)}})}function getFP(){return new Promise(function(t){var e=performance.getEntriesByName("first-paint")[0];e&&e.startTime&&t(e.startTime),t(void 0)})}function getFMP(t){return new Promise(function(e){try{var n;new fmp_default({ignoreElements:typeof t=="function"?[]:(n=t==null?void 0:t.ignoreElements)!==null&&n!==void 0?n:[],cb:function(i,P){if(P==="normal"||P==="timeout"){e(i);var I=typeof t=="function"?t:t==null?void 0:t.cb;I&&I(i,P)}else e({time:-1,selector:""})}})}catch(i){e(void 0)}})}function getTTFB(){return new Promise(function(t){try{Z(function(e){t(e==null?void 0:e.value)})}catch(e){t(void 0)}})}function getTTI(){return _getTTI.apply(this,arguments)}function _getTTI(){return _getTTI=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",new Promise(function(n){fmp_tti_1_1_default.then(function(i){n(i==null?void 0:i.tti)}),handleSetTimeout(n)}));case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return",void 0);case 7:case"end":return e.stop()}},t,null,[[0,4]])})),_getTTI.apply(this,arguments)}function getINP(){return new Promise(function(t){try{Q(function(e){t(e==null?void 0:e.value)}),handleSetTimeout(t)}catch(e){t(void 0)}})}function getCLS(){return new Promise(function(t){try{S(function(e){t(e==null?void 0:e.value)}),handleSetTimeout(t)}catch(e){t(void 0)}})}function getResourcePerformance(t){if(!t)return null;var e=[];return t.forEach(function(n){var i=n.name,P=n.renderBlockingStatus,I=P===void 0?"":P,k=n.initiatorType,D=n.nextHopProtocol,A=n.secureConnectionStart,F=n.connectStart,M=n.connectEnd,ee=n.domainLookupStart,x=n.domainLookupEnd,ne=n.fetchStart,re=n.responseStart,ue=n.responseEnd,le=n.duration,ce=n.requestStart;e.push([encodeURIComponent(i),I,k,D,+A.toFixed(2),+F.toFixed(2),+M.toFixed(2),+ee.toFixed(2),+x.toFixed(2),+ne.toFixed(2),+re.toFixed(2),+ue.toFixed(2),+le.toFixed(2),+ce.toFixed(2)])}),{d2:JSON.stringify(e)}}var handleSetTimeout,init_performance2=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/performance.js":function(){init_regeneratorRuntime(),init_asyncToGenerator(),init_fmp(),init_fmp_tti_1_1(),init_web_vitals(),handleSetTimeout=function(t){setTimeout(function(){return t(void 0)},8e3)}}});function reportAPI(t,e){var n=void 0,i=void 0,P=void 0,I=void 0,k=void 0,D=void 0,A=void 0,F=void 0;if(window.fetch){var M=window.fetch;window.fetch=_asyncToGenerator(_regeneratorRuntime().mark(function x(){var ne,re,ue,le,ce,me,ae,fe,ye,ie,se,oe,pe,Se,Pe,Ie,$,we=arguments;return _regeneratorRuntime().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:for(re=Date.now(),ue=we.length,le=new Array(ue),ce=0;ce<ue;ce++)le[ce]=we[ce];return ve.prev=2,ve.next=5,M.apply(void 0,le);case 5:return me=ve.sent,ne=me,ve.abrupt("return",me);case 10:throw ve.prev=10,ve.t0=ve.catch(2),D=ve.t0,ve.t0;case 14:if(ve.prev=14,!ne){ve.next=31;break}if(pe=ne.clone(),Se={},!(((ye=pe.headers.get("Content-Type"))===null||ye===void 0?void 0:ye.indexOf("application/json"))!==-1||((ie=pe.headers.get("Content-Type"))===null||ie===void 0?void 0:ie.indexOf("text/plain"))!==-1)){ve.next=23;break}return ve.next=21,pe.text().catch(function(){return"{}"});case 21:Pe=ve.sent,Se=safeJsonParse2(Pe||"{}");case 23:P=pe.status,I=pe.type,Ie=t==null||(se=t.getFetchResponseInfo)===null||se===void 0?void 0:se.call(t,pe.headers,Se,le),i=(oe=Ie==null?void 0:Ie.isSuccess)!==null&&oe!==void 0?oe:isAPISuccess(P),k=Ie==null?void 0:Ie.traceId,A=Ie==null?void 0:Ie.errorCode,F=Ie==null?void 0:Ie.errorMsg,n=(Ie==null?void 0:Ie.responseUrl)||pe.url;case 31:return $=le==null?void 0:le[0],e({status:P,isSuccess:i,error:D,url:n||$.url||$.toString(),time:Date.now()-re,method:(ae=$.method)!==null&&ae!==void 0?ae:(fe=le[1])===null||fe===void 0?void 0:fe.method,type:I,requestType:"fetch",traceId:k,errorCode:A,errorMsg:F}),ve.finish(14);case 34:case"end":return ve.stop()}},x,null,[[2,10,14,34]])}))}var ee=window.XMLHttpRequest;window.XMLHttpRequest=(function(x){_inherits(re,x);var ne=_createSuper(re);function re(){var ue;_classCallCheck(this,re);for(var le=arguments.length,ce=new Array(le),me=0;me<le;me++)ce[me]=arguments[me];return ue=ne.call.apply(ne,[this].concat(ce)),_defineProperty(_assertThisInitialized(ue),"method",void 0),_defineProperty(_assertThisInitialized(ue),"url",void 0),ue}return _createClass(re,[{key:"open",value:function(ue,le){return this.method=ue,this.url=le,_get(_getPrototypeOf(re.prototype),"open",this).apply(this,arguments)}},{key:"send",value:function(ue){var le=this,ce=Date.now(),me=function(){ae();try{var fe,ye,ie,se=t==null||(fe=t.getXHRResponseInfo)===null||fe===void 0?void 0:fe.call(t,{headers:le.getAllResponseHeaders(),body:le.response});i=(ye=se==null?void 0:se.isSuccess)!==null&&ye!==void 0?ye:isAPISuccess(le.status),k=se==null?void 0:se.traceId,A=se==null?void 0:se.errorCode,F=se==null?void 0:se.errorMsg,n=(se==null?void 0:se.responseUrl)||le.responseURL||((ie=le.url)===null||ie===void 0?void 0:ie.toString())||"",e({status:P,isSuccess:i,error:D,url:n,time:Date.now()-ce,method:le.method,type:I,requestType:"xhr",traceId:k,errorCode:A,errorMsg:F})}catch(oe){console.error(D)}},ae=function(){le.removeEventListener("load",me),le.removeEventListener("error",me),le.removeEventListener("abort",me)};return this.addEventListener("load",me),this.addEventListener("error",me),this.addEventListener("abort",me),_get(_getPrototypeOf(re.prototype),"send",this).call(this,ue)}}]),re})(ee)}function isAPISuccess(t){return!!t&&t>=200&&t<300}function safeJsonParse2(t){try{return JSON.parse(t)}catch(e){return console.error("JSON\u89E3\u6790\u5931\u8D25:",e),{}}}var init_reportAPI=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/reportAPI.js":function(){init_classCallCheck(),init_createClass(),init_assertThisInitialized(),init_get(),init_getPrototypeOf(),init_inherits(),init_createSuper(),init_defineProperty(),init_regeneratorRuntime(),init_asyncToGenerator()}});function isMP(){return typeof my=="undefined"?!1:typeof my.SDKVersion=="string"}function getMatchName(t,e){var n=t.filter(function(I){return I.match.every(function(k){return k.test(e)})});if(n.length){var i=n[0].name;if(n.length>1){var P=n.map(function(I){return I.name}).join(",");notice("Multiple clients have been identified\uFF08".concat(P,"\uFF09, and the first one\uFF08").concat(i,"\uFF09is used by default."))}return i}}function createCommonEnv(t,e){return Object.keys(t).reduce(function(n,i){return n["is".concat(i)]=e===t[i],n},{})}function notice(t){console.info("[hylid-env]: ".concat(t))}function getSettingName(){var t,e="__hy_env__",n=((t=window.location.search)===null||t===void 0?void 0:t.match(/__app__=([^&]*)/))||[],i=n[1],P=window.location.search.match(/__platform__=([^&]*)/)||[],I=P[1],k=JSON.parse(localStorage.getItem(e)||"{}")||{};i&&(k.client=i),I&&(k.platform=I);try{localStorage.setItem(e,JSON.stringify(k))}catch(x){}if(n[1]){var D=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),A=window.location.hash||"",F="".concat(window.location.pathname).concat(D).concat(A);history.replaceState(null,"",F)}var M=JSON.parse(localStorage.getItem(e)||"{}"),ee=localStorage.getItem("_CB__app__");return ee?__assign(__assign({},M),{client:ee}):M}var __assign,init_utils3=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/utils.js":function(){__assign=function(){return __assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var P in e)Object.prototype.hasOwnProperty.call(e,P)&&(t[P]=e[P])}return t},__assign.apply(this,arguments)}}}),PLATFORM,CLIENT,HAVE_MINIPROGRAM,NO_MINIPROGRAM,HAVE_GRIVER,NO_GRIVER,init_constants2=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/constants.js":function(){PLATFORM={WEB:"web",MPWEB:"mpweb",MP:"mp"},CLIENT={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},HAVE_MINIPROGRAM=/miniprogram/i,NO_MINIPROGRAM=/^((?!miniprogram).)*$/i,HAVE_GRIVER=/griver/i,NO_GRIVER=/^((?!griver).)*$/i}}),mpChecker,init_mp=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/checker/mp.js":function(){init_constants2(),mpChecker=[{name:CLIENT.DEMO,match:[/demo/]},{name:CLIENT.ALIPAYHK,match:[/alipayHK/]},{name:CLIENT.TNGD,match:[/tngd/]},{name:CLIENT.GCASH,match:[/gcash/]},{name:CLIENT.TRUEMONEY,match:[/tmn/]},{name:CLIENT.DANA,match:[/dana/]},{name:CLIENT.TOSSPAY,match:[/toss/]},{name:CLIENT.ALIPAY,match:[/alipay/]},{name:CLIENT.MPAY,match:[/MPay/]},{name:CLIENT.HIPAY,match:[/hipay/]}]}}),mpWebChecker,init_mpWeb=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/checker/mpWeb.js":function(){init_constants2(),mpWebChecker=[{name:CLIENT.DEMO,match:[/alipayIDE/i]},{name:CLIENT.ALIPAYHK,match:[HAVE_MINIPROGRAM,NO_GRIVER,/AlipayClientHK/]},{name:CLIENT.TNGD,match:[HAVE_MINIPROGRAM,/TNGKit|Touch 'n Go/]},{name:CLIENT.GCASH,match:[HAVE_MINIPROGRAM,HAVE_GRIVER,/GCash/]},{name:CLIENT.TRUEMONEY,match:[HAVE_MINIPROGRAM,HAVE_GRIVER,/TrueMoney/]},{name:CLIENT.MPAY,match:[HAVE_MINIPROGRAM,NO_GRIVER,/mpay|macaupay/i]},{name:CLIENT.ALIPAY,match:[HAVE_MINIPROGRAM,NO_GRIVER,/alipay/i]},{name:CLIENT.DEMO,match:[HAVE_MINIPROGRAM,HAVE_GRIVER]}]}}),webChecker,init_web=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/checker/web.js":function(){init_constants2(),webChecker=[{name:CLIENT.ALIPAYHK,match:[NO_MINIPROGRAM,NO_GRIVER,/AlipayClientHK/]},{name:CLIENT.TNGD,match:[NO_MINIPROGRAM,HAVE_GRIVER,/TNGKit|Touch 'n Go/]},{name:CLIENT.TNGD_H5NG,match:[NO_MINIPROGRAM,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:CLIENT.GCASH,match:[NO_MINIPROGRAM,HAVE_GRIVER,/GCash/]},{name:CLIENT.TRUEMONEY,match:[NO_MINIPROGRAM,HAVE_GRIVER,/TrueMoney/i]},{name:CLIENT.KAKAOPAY,match:[NO_MINIPROGRAM,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:CLIENT.KAKAOTALK,match:[NO_MINIPROGRAM,/ALIPAYCONNECT_KAKAO_TALK/]},{name:CLIENT.NAVERPAY,match:[NO_MINIPROGRAM,/NAVER/]},{name:CLIENT.MPAY,match:[NO_MINIPROGRAM,/mpay|macaupay/i]},{name:CLIENT.TOSSPAY,match:[NO_MINIPROGRAM,/Toss/i]},{name:CLIENT.ALIPAY,match:[NO_MINIPROGRAM,NO_GRIVER,/AlipayClient/]},{name:CLIENT.DEMO,match:[NO_MINIPROGRAM,HAVE_GRIVER,/GriverDemo/]},{name:CLIENT.WORLDFIRST,match:[NO_MINIPROGRAM,NO_GRIVER,/WorldFirst/]},{name:CLIENT.CHANGIPAY,match:[NO_MINIPROGRAM,NO_GRIVER,/ChangiPay/]}]}}),init_checker=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/checker/index.js":function(){init_mp(),init_mpWeb(),init_web()}});function getName4MP(){return getMatchName(mpChecker,my.getSystemInfoSync().app)}var init_getName4Mp=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/getClientName/getName4Mp.js":function(){init_checker(),init_utils3()}});function getName4MpWeb(){return getMatchName(mpWebChecker,window.navigator.userAgent)}var init_getName4MpWeb=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/getClientName/getName4MpWeb.js":function(){init_checker(),init_utils3()}});function getName4Web(){return getMatchName(webChecker,window.navigator.userAgent)||CLIENT.H5}var init_getName4Web=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/getClientName/getName4Web.js":function(){init_checker(),init_constants2(),init_utils3()}}),init_getClientName=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/getClientName/index.js":function(){init_getName4Mp(),init_getName4MpWeb(),init_getName4Web()}});function getDefaultDiscernEnv(){var t,e;if(isMP())t=getName4MP(),e=PLATFORM.MP;else{var n=getSettingName();n.platform?(e=n.platform,t=n.client||(e==="mpweb"?getName4MpWeb():getName4Web())):(t=n.client||getName4MpWeb(),t?e=PLATFORM.MPWEB:(t=getName4Web(),e=PLATFORM.WEB))}return(!e||!t)&¬ice("Cannot identify your client."),{client:t,platform:e}}var _a,client,platform2,clientEnv,platformEnv,init_lib=__esm({"node_modules/_@hylid_env@4.1.1@@hylid/env/lib/index.js":function(){init_utils3(),init_getClientName(),init_constants2(),init_constants2(),_a=getDefaultDiscernEnv(),client=_a.client,platform2=_a.platform,clientEnv=createCommonEnv(CLIENT,client),platformEnv=createCommonEnv(PLATFORM,platform2)}}),Plugin,init_PluginTypes=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/core/PluginTypes.js":function(){init_createClass(),init_classCallCheck(),Plugin=_createClass(function t(e){_classCallCheck(this,t),this.context=e})}});function spmEventHandler(t){var e,n,i=this,P=t.target||t.srcElement,I=i.getClickSpm(P),k=/^c|^d/.test(I.spmId),D=I.spmId;if(I.spmId=k?I==null?void 0:I.spmId:i==null||(e=i.spmConfig)===null||e===void 0||(e=e.pages)===null||e===void 0||(e=e[i==null?void 0:i.currentPage])===null||e===void 0?void 0:e[I==null||(n=I.spmId)===null||n===void 0||(n=n.split("."))===null||n===void 0?void 0:n[1]],I.spmId||(I.spmId=D),_typeof(I)==="object"&&I.spmId){var A,F,M=I.dom,ee={};getAttr(M,spmAbTest)&&(ee.abTest=!0),getAttr(M,spmEntityid)&&(ee.entityId=getAttr(M,spmEntityid));var x=getContentParam(M);x&&x.param5&&(ee.param5=x.param5,ee.newScm=x.newScm);var ne=getDomConfig(M)||{},re=_objectSpread2(_objectSpread2({},this.trackerContext.userPath.parseUserPathExtra("click_".concat((A=I.spmId)===null||A===void 0||(F=A.split)===null||F===void 0||(F=F.call(A,"."))===null||F===void 0?void 0:F.pop()))),getDomParam(M));i.call("click",I.spmId,re,ee,_objectSpread2({combineType:config_exports.COMBINE_TYPE.MIX,event:t},ne));return}}var spmAbTest,spmEntityid,autoClick,context_default,init_context=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-click/plugin/context.js":function(){init_objectSpread2(),init_typeof(),init_utils(),spmAbTest="data-aspm-ab",spmEntityid="data-aspm-entityid",autoClick={spmClickEvent:function(t){var e=this,n,i=t||this.eventType;if(i){typeof this._clickEventDisposer=="function"&&this._clickEventDisposer();var P=function(I){var k=e._runBeforeFns("autoClick",I);k!==!1&&spmEventHandler.call(e,I)};this._clickEventDisposer=ownAddEventListener(i,this.container||((n=window)===null||n===void 0?void 0:n.document),P),this.call("addSideEffects",this._clickEventDisposer)}},_spmEventHandler:spmEventHandler,getClickSpm:function(t){var e=getDPosDom(t),n=getSpmDPos(e),i={dom:e,spmId:""};if(!this.spmAPos||!this.spmBPos)return i;if(e&&n){var P=n.split("."),I=P.length,k="";if(I===1)if(k=getSpmCPos(e),k)P.unshift(k);else return i;if(I===3)return i;i.spmId=P.join(".")}return i}},context_default=autoClick}}),autoClick2,auto_click_default,init_auto_click=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-click/index.js":function(){init_objectSpread2(),init_context(),autoClick2=function(t,e){return t.set(_objectSpread2({},context_default)),t.spmClickEvent("",t.eventType),t.before("set",function(n){var i=n;i.eventType=i.eventType||i.eventName,i.eventType&&t.spmClickEvent(t.eventType,i.eventType)}),e(),t},auto_click_default=autoClick2}}),require_base=__commonJS({"node_modules/_@ali_anima-contain-status@1.0.4@@ali/anima-contain-status/lib/base.js":function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,i,P){var I=void 0;return n<-i?I=-1:n<0?I=n/i:n+i<P?I=0:n<P?I=(n+i-P)/i:n>=P&&(I=1),I},e.exports=t.default}}),require_x=__commonJS({"node_modules/_@ali_anima-contain-status@1.0.4@@ali/anima-contain-status/lib/x.js":function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=require_base(),i=P(n);function P(A){return A&&A.__esModule?A:{default:A}}var I=window,k=I.document,D=k.documentElement;t.default=function(A){var F=A.getBoundingClientRect();return(0,i.default)(F.left,F.width,D.clientWidth)},e.exports=t.default}}),require_y=__commonJS({"node_modules/_@ali_anima-contain-status@1.0.4@@ali/anima-contain-status/lib/y.js":function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=require_base(),i=P(n);function P(A){return A&&A.__esModule?A:{default:A}}var I=window,k=I.document,D=k.documentElement;t.default=function(A){var F=A.getBoundingClientRect();return(0,i.default)(F.top,F.height,D.clientHeight)},e.exports=t.default}}),TRANSPARENT_TITLE,SCROLL_Y_WHEN_NOT_TRANSPARENT,SCROLL_Y_STATUS,init_contants=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/contants.js":function(){TRANSPARENT_TITLE={AUTO:"auto",NONE:"none",ALWAYS:"always"},SCROLL_Y_WHEN_NOT_TRANSPARENT=window.devicePixelRatio?255/window.devicePixelRatio:80,SCROLL_Y_STATUS={LESS:"less",GREATER:"greater"}}});function getExpoElements(t){if(!t||typeof t.querySelectorAll!="function")return[];for(var e=config_exports.DATA_ASPM_EXPO,n=[],i=t.querySelectorAll("[".concat(e,"]")),P=i.length-1;P>=0;P--)n.push(i[P]);return typeof t.getAttribute=="function"&&t.getAttribute(e)!==null&&n.push(t),n}function isTargetTransparentTitleValue(t,e){var n;return((n=t._transparentTitleInfo)===null||n===void 0?void 0:n.value)===e}var init_common=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/plugin/helper/common.js":function(){init_utils()}});function checkFixedDom(t,e,n,i){if(!(typeof document.elementsFromPoint!="function"&&typeof window.getComputedStyle!="function")){var P=(document.documentElement.clientHeight||document.body.clientHeight)/3;getFixedDomHeight({x:t.x,y:t.y+2},P,n,i,e);var I=0;if(e._haveFixedDom=i.length!==0,i.length===0)I=isTargetTransparentTitleValue(e,TRANSPARENT_TITLE.AUTO)?-e._titleBarHeight:0;else{var k=i[i.length-1];I=-(k.coordY+k.fixedDomHeight)}if(I!==n.intersectionObserverForCoverRootMargin)return n.intersectionObserverForCoverRootMargin=I,!0}}function getFixedDomHeight(t,e,n,i,P){var I=document.elementFromPoint(t.x,t.y),k=[];getTargetParentNode(I,k);for(var D=0,A=k;D<A.length;D++){var F=A[D],M=window.getComputedStyle(F,null);if(typeof M.getPropertyValue=="function"){var ee=M.getPropertyValue("position");if(!(ee!=="fixed"&&ee!=="sticky"||typeof F.getBoundingClientRect!="function")){var x=F.getBoundingClientRect();if(x.height>=e)break;if(isTargetTransparentTitleValue(P,TRANSPARENT_TITLE.AUTO)){var ne=x.top;if(!ne||ne<P._titleBarHeight-2)continue}if(i.push({fixedDomHeight:x.height,scrollY:n.curScrollY,coordY:x.top||t.y-2}),i.length===1){getFixedDomHeight({x:2,y:t.y+x.height},e,n,i,P);break}}}}}function getTargetParentNode(t,e){if(!t||!t.tagName||t.tagName==="BODY")return e;e.push(t),getTargetParentNode(t==null?void 0:t.parentNode,e)}function startCheckFixedDom(t,e,n,i){var P=t;if(e.length===2){if(scrollY>=e[1].scrollY)return;scrollY>=e[0].scrollY&&(e.length=1)}return e.length===1&&scrollY>=e[0].scrollY?P+=e[0].fixedDomHeight:e.length=0,checkFixedDom({x:2,y:P},n,i,e)}function checkCoverCbForScroll(t,e,n){try{var i,P,I=window.scrollY||((i=document.documentElement)===null||i===void 0?void 0:i.scrollY)||((P=document.body)===null||P===void 0?void 0:P.scrollY)||0;return e.curScrollY=I,isTargetTransparentTitleValue(t,TRANSPARENT_TITLE.ALWAYS)||isTargetTransparentTitleValue(t,TRANSPARENT_TITLE.NONE)?t.spmCheckCover===config_exports.SPM_CHECK_COVER.STICKY&&startCheckFixedDom(0,n,t,e):isTargetTransparentTitleValue(t,TRANSPARENT_TITLE.AUTO)?(I>=SCROLL_Y_WHEN_NOT_TRANSPARENT&&e.curScrollYStatus===SCROLL_Y_STATUS.LESS?(e.curScrollYStatus=SCROLL_Y_STATUS.GREATER,t.expoCheck()):I<SCROLL_Y_WHEN_NOT_TRANSPARENT&&e.curScrollYStatus===SCROLL_Y_STATUS.GREATER&&(e.curScrollYStatus=SCROLL_Y_STATUS.LESS,t.expoCheck()),t.spmCheckCover===config_exports.SPM_CHECK_COVER.STICKY&&startCheckFixedDom(t._titleBarHeight,n,t,e)):void 0}catch(k){warn("scroll \u76D1\u542C\u56DE\u8C03\u51FD\u6570\u6267\u884C\u5931\u8D25",k)}}function startCheckCoverCbForScroll(t,e,n){var i=checkCoverCbForScroll(t,e,n);t._resetIntersectionObserverForCover(i,e)}var init_titleBar=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/plugin/helper/titleBar.js":function(){init_utils(),init_localLog(),init_contants(),init_common()}});function singleAxisPercent(t,e,n){var i;return t<-e?i=-1:t<0?i=t/e:t+e<n?i=0:t<n?i=(t+e-n)/e:t>=n&&(i=1),i}function isNoneDom(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t)return!0;if(!t.offsetParent){if(!e||typeof window.getComputedStyle!="function")return error("\u5F53\u524D\u5143\u7D20\uFF1A",t,"\u7684\u6837\u5F0F\u4E3A position: fixed\uFF1B\u8BF7\u53C2\u8003\u4EE5\u4E0B\u6587\u7AE0\u6DFB\u52A0 expoFixedDom \u914D\u7F6E\uFF1A","https://yuque.antfin-inc.com/tracert/4.x/mqy0kt0m9nx06ypu"),!0;var n=window.getComputedStyle(t)||{};if(!n.position||n.position.toLowerCase()!=="fixed"||n.display&&n.display.toLowerCase()==="none")return!0}return!1}function expoSamePosition2(t,e){return t===0?(e&7)===0:t===(e&t)}function isEffectiveExpo2(t){return(t&(EXPO_AREA_STATE.HAFT|EXPO_AREA_STATE.WHOLE))!==0}function setExpoStatus2(t,e){return t!==EXPO_AREA_STATE.DISAPPEAR?e|t:isEffectiveExpo2(e)?EXPO_AREA_STATE.EXPOSURED:e>>3<<3}function getExpoSpmIdAndDom(t,e,n){var i={spmId:"",dom:t};if(!e||!n)return withoutSpmAOrSpmBTip(e,n),i;if(typeof(t==null?void 0:t.getAttribute)!="function"||t.getAttribute("data-aspm-expo")===null)return i;var P=getSpmCPos(t),I=getSpmDPos(t),k=I||P;if(!k)return i;var D=k.split(".");if(D.length>2){var A,F;return error("\u58F0\u660E\u5F0F\u57CB\u70B9\u4E0D\u652F\u6301 ".concat(D.length===3?'data-aspm="'.concat(k,'"'):'data-aspm-click="'.concat(k,'"')," \u683C\u5F0F\uFF0C\u8BF7\u6539\u7528 ").concat(D.length===3?'data-aspm="'.concat((A=k.split("."))===null||A===void 0?void 0:A[2],'"'):'data-aspm-click="'.concat((F=k.split("."))===null||F===void 0||(F=F.slice(-2))===null||F===void 0?void 0:F.join("."),'"')," \u683C\u5F0F")),i}return D.length===1&&P&&I&&(D=[e,n,P,I]),D.length===2&&(I||P)&&(D=[e,n].concat(D)),D.length===1&&P&&(D=[e,n,k]),(D.length===3||D.length===4)&&(i.spmId=D.join("."),i.dom.prevSpmId=i.spmId),i}function getDomXYPercent(t){var e,n=t.getBoundingClientRect(),i=(e=window)===null||e===void 0||(e=e.document)===null||e===void 0?void 0:e.documentElement,P=singleAxisPercent(n.left,n.width,i.clientWidth),I=singleAxisPercent(n.top,n.height,i.clientHeight),k=Math.round((1-Math.abs(P))*(1-Math.abs(I))*100),D=n.height===0||n.width===0;return[P,I,k,D]}function getExpoDomDs2(t,e,n){t[n]||(t[n]={}),t[n][e]||(t[n][e]={uuid:getUuid(),status:0,percent:0,direction:[-1,-1]});var i=t[n][e];return i.direction=i.direction||[-1,-1],i}function getSpmIdAndDom(t,e){if(isNoneDom(t,!0))return disappearDom(t,e),null;var n=getExpoSpmIdAndDom(t,e.spmAPos,e.spmBPos),i=n.spmId,P=n.dom;return i?{spmId:i,dom:P}:null}function disappearDom(t,e){var n;if(!(!t||!t[e._instanceId])){var i=t[e._instanceId],P=i.current;if(!(!P||!i[P]||(i[P].status&EXPO_AREA_STATE.START+EXPO_AREA_STATE.HAFT+EXPO_AREA_STATE.WHOLE)===EXPO_AREA_STATE.DISAPPEAR)){var I=(n=i[P])===null||n===void 0?void 0:n.mmaExpo;t[e._instanceId]={},e._doExpo(P,t,t,{mmaExpo:I,percent:0,combineType:COMBINE_TYPE.AUTO,expoState:EXPO_STATE.END})}}}function getExpoInfos(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=getDomXYPercent(t),P=_slicedToArray(i,4),I=P[0],k=P[1],D=P[2],A=P[3],F=_slicedToArray(e.direction,2),M=F[0],ee=F[1];if(!(A===!0||M===I&&ee===k)){var x=n.expoSection||[],ne=_slicedToArray(x,2),re=ne[0],ue=ne[1],le={expoDirection:"",percent:D,direction:[I,k]},ce=k>=re&&k<=ue&&I>=re&&I<=ue;if(ce)ee<re?le.expoDirection="up":ee>ue?le.expoDirection="down":M<re?le.expoDirection="left":M>ue?le.expoDirection="right":e.percent!==D&&(le.expoDirection="");else if(e.percent===D)return;return le}}function isTargetTransparentTitleValue2(t,e){var n;return((n=t._transparentTitleInfo)===null||n===void 0?void 0:n.value)===e}var init_helper2=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/plugin/helper/index.js":function(){init_slicedToArray(),init_utils(),init_config(),init_localLog(),init_common(),init_titleBar()}}),require_lodash_throttle_4_1_1_lodash=__commonJS({"node_modules/_lodash.throttle@4.1.1@lodash.throttle/index.js":function(t,e){var n="Expected a function",i=NaN,P="[object Symbol]",I=/^\s+|\s+$/g,k=/^[-+]0x[0-9a-f]+$/i,D=/^0b[01]+$/i,A=/^0o[0-7]+$/i,F=parseInt,M=typeof global=="object"&&global&&global.Object===Object&&global,ee=typeof self=="object"&&self&&self.Object===Object&&self,x=M||ee||Function("return this")(),ne=Object.prototype,re=ne.toString,ue=Math.max,le=Math.min,ce=function(){return x.Date.now()};function me(oe,pe,Se){var Pe,Ie,$,we,ve,be,Ae=0,Te=!1,De=!1,Re=!0;if(typeof oe!="function")throw new TypeError(n);pe=se(pe)||0,fe(Se)&&(Te=!!Se.leading,De="maxWait"in Se,$=De?ue(se(Se.maxWait)||0,pe):$,Re="trailing"in Se?!!Se.trailing:Re);function Me(Ne){var Xe=Pe,st=Ie;return Pe=Ie=void 0,Ae=Ne,we=oe.apply(st,Xe),we}function Ge(Ne){return Ae=Ne,ve=setTimeout($e,pe),Te?Me(Ne):we}function ze(Ne){var Xe=Ne-be,st=Ne-Ae,Pt=pe-Xe;return De?le(Pt,$-st):Pt}function Le(Ne){var Xe=Ne-be,st=Ne-Ae;return be===void 0||Xe>=pe||Xe<0||De&&st>=$}function $e(){var Ne=ce();if(Le(Ne))return Ve(Ne);ve=setTimeout($e,ze(Ne))}function Ve(Ne){return ve=void 0,Re&&Pe?Me(Ne):(Pe=Ie=void 0,we)}function We(){ve!==void 0&&clearTimeout(ve),Ae=0,Pe=be=Ie=ve=void 0}function Je(){return ve===void 0?we:Ve(ce())}function Be(){var Ne=ce(),Xe=Le(Ne);if(Pe=arguments,Ie=this,be=Ne,Xe){if(ve===void 0)return Ge(be);if(De)return ve=setTimeout($e,pe),Me(be)}return ve===void 0&&(ve=setTimeout($e,pe)),we}return Be.cancel=We,Be.flush=Je,Be}function ae(oe,pe,Se){var Pe=!0,Ie=!0;if(typeof oe!="function")throw new TypeError(n);return fe(Se)&&(Pe="leading"in Se?!!Se.leading:Pe,Ie="trailing"in Se?!!Se.trailing:Ie),me(oe,pe,{leading:Pe,maxWait:pe,trailing:Ie})}function fe(oe){var pe=typeof oe;return!!oe&&(pe=="object"||pe=="function")}function ye(oe){return!!oe&&typeof oe=="object"}function ie(oe){return typeof oe=="symbol"||ye(oe)&&re.call(oe)==P}function se(oe){if(typeof oe=="number")return oe;if(ie(oe))return i;if(fe(oe)){var pe=typeof oe.valueOf=="function"?oe.valueOf():oe;oe=fe(pe)?pe+"":pe}if(typeof oe!="string")return oe===0?oe:+oe;oe=oe.replace(I,"");var Se=D.test(oe);return Se||A.test(oe)?F(oe.slice(2),Se?2:8):k.test(oe)?i:+oe}e.exports=ae}});function addEvent3(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(t){var P=e||window.document;P.addEventListener?P.addEventListener(t,n,i):P.attachEvent?P.attachEvent("on".concat(t),n):P[t]=n}}function throttle(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}}function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function getBoundingClientRect(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):getEmptyRect()}function computeRectIntersection(t,e){var n=Math.max(t.top,e.top),i=Math.min(t.bottom,e.bottom),P=Math.max(t.left,e.left),I=Math.min(t.right,e.right),k=I-P,D=i-n;return k>=0&&D>=0&&{top:n,bottom:i,left:P,right:I,width:k,height:D}||null}var THROTTLE_TIMEOUT,SimpleIntersection,intersection_polyfill_default,init_intersection_polyfill=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/plugin/intersection-polyfill.js":function(){init_classCallCheck(),init_createClass(),THROTTLE_TIMEOUT=300,SimpleIntersection=(function(){function t(e,n){_classCallCheck(this,t),this._callback=e,this.throttle_timeout=n||THROTTLE_TIMEOUT,this.register=[],this._init(),this.id="tracert_id"}return _createClass(t,[{key:"_contains",value:function(e){if(e&&e.offsetParent)return!0;if(!e||typeof e.removeAttribute!="function"||typeof e.getAttribute!="function")return!1;var n=e.getAttribute("id")||this.id;n===this.id&&e.setAttribute("id",n);var i=document.getElementById(n);return n===this.id&&e.removeAttribute("id"),!!i}},{key:"_init",value:function(){var e=this,n=throttle(this._checkIntersection.bind(this),this.throttle_timeout);addEvent3("scroll",document,n);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!i)return null;this.domObserver=new i(function(P){e.removeDomFlag=!1;for(var I=!0,k=0;k<P.length;k++){var D=P[k]||{},A=D.type,F=D.attributeName,M=D.removedNodes;if(!e.removeDomFlag&&M&&M.length){e.removeDomFlag=!0,n();break}I&&(A!=="attributes"||F!=="id")&&(I=!1)}I||n()}),this.domObserver.observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}},{key:"observe",value:function(e){if(!(!e||e.nodeType!=1||!this._contains(e))){for(var n=0;n<this.register.length;n++){var i=this.register[n];if(i===e)return}this.register.push(e),this._checkIntersection([e])}}},{key:"unobserve",value:function(e){if(!(!e||e.nodeType!=1))for(var n=0;n<this.register.length;n++){var i=this.register[n];if(i===e){this.register[n]=this.register.pop();return}}}},{key:"disconnect",value:function(){this.register.length=0,this.domObserver&&typeof this.domObserver.disconnect=="function"&&(this.domObserver.disconnect(),this.domObserver=null)}},{key:"_computeTargetAndRootIntersection",value:function(e,n,i){if(!(!e||!this._contains(e)||window.getComputedStyle(e).display=="none")){for(var P=n,I=e.parentNode,k=!1;!k&&I;){var D=null,A=I.nodeType==1?window.getComputedStyle(I):{};if(A.display=="none")return null;if(I.nodeType==9)k=!0,D=i;else{var F=I.ownerDocument;F&&I!=F.body&&I!=F.documentElement&&A.overflow!="visible"&&(D=getBoundingClientRect(I))}if(D&&(P=computeRectIntersection(D,P)),!P)break;I=I&&I.parentNode}return P}}},{key:"_checkIntersection",value:function(e){var n=document.documentElement,i=document.body,P={x:0,y:0,top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight};e||(e=this.register);var I=[];try{for(var k=0;k<e.length;k++){var D=e[k],A=getBoundingClientRect(D);A.x=A.top,A.y=A.left;var F=this._computeTargetAndRootIntersection(D,A,P),M={target:D,boundingClientRect:A,rootBounds:P,intersectionRatio:0,isIntersecting:!!F};if(F){var ee=A.width*A.height,x=F.width*F.height;ee?M.intersectionRatio=Number((x/ee).toFixed(4)):M.intersectionRatio=M.isIntersecting?1:0}I.push(M)}if(I.length&&this._callback(I),this.removeDomFlag&&e===this.register){for(var ne=[],re=0;re<e.length;re++)this._contains(e[re])&&ne.push(e[re]);this.register.length=0,this.register=ne,this.domObserver&&(this.removeDomFlag=!1)}}catch(ue){}}},{key:"takeRecords",value:function(){return[]}}]),t})(),intersection_polyfill_default=SimpleIntersection}});function intersectionExpo(t,e){var n={startTime:Date.now(),logCount:t.length};t.forEach(function(i,P){var I=i.isIntersecting,k=i.intersectionRatio,D=i.target,A=i.scm,F=i.newScm,M=getSpmIdAndDom(D,e);if(M!==null){var ee=M.spmId,x=M.dom;if(((x==null?void 0:x.clientHeight)===0||(x==null?void 0:x.clientWidth)===0)&&((x==null?void 0:x.offsetHeight)===0||(x==null?void 0:x.offsetWidth)===0)){warn("\u57CB\u70B9\u5143\u7D20\u5BBD\u6216\u9AD8\u4E3A 0\uFF0C\u66DD\u5149\u57CB\u70B9\u4E0D\u4F1A\u4E0A\u62A5\uFF1A",x);return}var ne=getCurExpoInfo(I,k,e,D,ee),re=ne.nextStatus,ue=ne.percent,le=getTargetOldInfos(D,ee,e,re);if(le!==null){var ce=le.expoElDs,me=le.oldStatus,ae=setExpoParams({oldStatus:me,nextStatus:re,expoElDs:ce,percent:ue,expoTimeInfo:n,isLastEntry:P===t.length-1});e._doExpo(ee,x,D,_objectSpread2(_objectSpread2({},ae),{},{scm:A,newScm:F}),function(){ce.status=setExpoStatus(re,ce.status),ce.percent=ue,ce.mmaExpo=!0})}}})}function setExpoParams(t){var e=t.oldStatus,n=t.nextStatus,i=t.percent,P=t.expoElDs,I=t.expoTimeInfo,k=t.isLastEntry,D="auto";!isEffectiveExpo(e)&&isEffectiveExpo(n)&&(D="mix");var A={percent:i,combineType:D,uuid:P.uuid,mmaExpo:!0,expoState:n===EXPO_AREA_STATE.DISAPPEAR?"end":"start"};return k&&(A.expoTimeInfo=I),A}function createIntersection(t,e){var n=function(k){t._isIntersectionChecking=!0,intersectionExpo(k,t),t._isIntersectionChecking=!1,t.flushLogPayLoad(!0,t)};function i(k){try{var D=window.scrollY||document.documentElement.scrollY||document.body.scrollY||0;if(e){(t._haveFixedDom||isTargetTransparentTitleValue2(t,TRANSPARENT_TITLE.AUTO)&&D>=SCROLL_Y_WHEN_NOT_TRANSPARENT)&&n(k);return}if(t._haveFixedDom||isTargetTransparentTitleValue2(t,TRANSPARENT_TITLE.AUTO)&&D>=SCROLL_Y_WHEN_NOT_TRANSPARENT)return;n(k)}catch(A){error("%c [ e ]-141","font-size:13px; background:pink; color:#bf2c9f;",A),warn("Tracert IntersectionObserver \u56DE\u8C03\u51FD\u6570\u5931\u8D25")}}if(!window.IntersectionObserver||!window.IntersectionObserverEntry)return new intersection_polyfill_default(n);var P={threshold:[0,.5,1],rootMargin:e||"0px 0px 0px 0px"};t.endExpoPercent&&typeof t.endExpoPercent=="number"&&t.endExpoPercent>0&&t.endExpoPercent<.4&&P.threshold.push(t.endExpoPercent);var I=new IntersectionObserver(i,P);return I}var init_intersection=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/plugin/intersection.js":function(){init_objectSpread2(),init_utils(),init_config(),init_localLog(),init_contants(),init_helper2(),init_intersection_polyfill()}});function mutationCallback(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;!t||t.length===0||t.forEach(function(n){var i=n.addedNodes,P=i===void 0?[]:i,I=n.removedNodes,k=I===void 0?[]:I,D=n.type,A=D===void 0?"":D;switch(A){case"attributes":n.target&&e.expoCheck(n.target);break;case"subtree":case"childList":P&&P.length&&nodeListToArray(P).forEach(function(F){return e.expoCheck(F)}),k&&k.length&&checkRemovedNodes(nodeListToArray(k),e);break;default:break}})}function checkRemovedNodes(t,e){var n=[];t.forEach(function(i){i.getAttribute&&i.getAttribute("data-aspm-expo")!==null&&n.push(i),typeof i.querySelectorAll=="function"&&(n=n.concat(nodeListToArray(i.querySelectorAll("[data-aspm-expo]"))))}),n.forEach(function(i){var P=i[e._instanceId]||{};i[e._instanceId]={};var I=Object.keys(P);I.forEach(function(k){P[k]&&(P[k].status&7)!==0&&e._doExpo(k,i,i,{percent:0,combineType:"auto",expoState:"end"})})})}function throttleMutation(t,e){var n=[],i=(0,import_lodash4.default)(function(){var P=[].concat(n);n.length=0,t(P)},e,{leading:!1,trailing:!0});return function(P){P.forEach(function(I){var k=I.target,D=I.type,A=n.find(function(F){return F.target===k&&F.type===D});(k&&!A||D!=="attributes")&&n.push(I)}),i()}}function createMutation(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!i)return null;var P=new i(t),I=e||document.querySelector("body"),k={attributes:!0,childList:!0,subtree:!0,attributeFilter:mutationAttributes.concat(n)};return P.observe(I,k),P}var import_lodash4,mutationAttributes,init_mutation=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/plugin/mutation.js":function(){init_utils(),import_lodash4=__toESM(require_lodash_throttle_4_1_1_lodash()),mutationAttributes=["data-aspm-click","data-aspm-expo","data-aspm","data-aspm-param"]}});function oldExpoMethod(t,e){if(!isNoneDom(t,e.expoFixedDom)){var n=e.spmAPos,i=e.spmBPos,P=getSpmIdAndDom(t,n,i),I=P.spmId,k=P.dom;if(I){var D=getExpoDomDs2(t,I,e._instanceId),A=getExpoInfos(k,D,e);if(A){var F=A.percent,M=A.expoDirection,ee=EXPO_AREA_STATE.START;if(F===100?ee=EXPO_AREA_STATE.WHOLE:F>=50?ee=EXPO_AREA_STATE.HAFT:F===0&&(D.status&7)!==0&&(ee=EXPO_AREA_STATE.DISAPPEAR),!M&&expoSamePosition2(ee,D.status)){D.direction=A.direction;return}var x={combineType:M?"mix":"auto",percent:F,expoDirection:M,expoState:ee===EXPO_AREA_STATE.DISAPPEAR?"end":"start",uuid:D.uuid};e._doExpo(e,I,k,t,x,function(){D.status=setExpoStatus2(ee,D.status),D.direction=A.direction,D.percent=F})}}}}var import_x,import_y,import_lodash5,FLUSH_TIMER,eventArray,combineEventArray,PAYLOAD_LIMIT_SIZE,FLUSH_TIMEOUT,autoExpo,context_default2,init_context2=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/plugin/context.js":function(){init_createForOfIteratorHelper(),init_objectSpread2(),init_utils(),init_config(),init_localLog(),import_x=__toESM(require_x()),import_y=__toESM(require_y()),init_contants(),init_helper2(),import_lodash5=__toESM(require_lodash_throttle_4_1_1_lodash()),init_intersection(),init_mutation(),FLUSH_TIMER=0,eventArray=[],combineEventArray=[],PAYLOAD_LIMIT_SIZE=10,FLUSH_TIMEOUT=240,autoExpo={_expoTypeHandle:null,_exposureKey:"__uepExposureData",enableWatchStyle:!1,_getYStatus:function(t){try{return(0,import_y.default)(t)}catch(e){return null}},_getXStatus:function(t){try{return(0,import_x.default)(t)}catch(e){return null}},_getExpoDomDs:function(t,e){t[this._instanceId]||(t[this._instanceId]={}),t[this._instanceId][e]||(t[this._instanceId][e]={}),t[this._instanceId][e][this._exposureKey]||(t[this._instanceId][e][this._exposureKey]={percent:0,direction:[-1,-1]});var n=t[this._instanceId][e][this._exposureKey];return n.direction=n.direction||[-1,-1],n},_setExpoDomDs:function(t,e,n){t[this._instanceId]||(t[this._instanceId]={}),t[this._instanceId][n]||(t[this._instanceId][n]={}),t[this._instanceId][n][this._exposureKey]=e},_doExpo:function(t,e,n,i,P){var I,k,D,A,F,M=this,ee="expo_".concat(t==null||(I=t.split)===null||I===void 0||(I=I.call(t,"."))===null||I===void 0?void 0:I.pop()),x=M.trackerContext.userPath.getUserPathExtra(),ne=x==null||(k=x.cachePath)===null||k===void 0?void 0:k.some(function(we){return we===ee}),re=_objectSpread2(_objectSpread2({},ne?_objectSpread2({},x.extra):M.trackerContext.userPath.parseUserPathExtra(ee)),getDomParam(e)),ue=getDomConfig(e)||{},le=getContentParam(e),ce=getAttr(e,DATA_ASPM_EXPO),me=/^c|^d/.test(ae),ae=me?ae:"".concat(M==null?void 0:M.spmAPos,".").concat(M==null?void 0:M.spmBPos,".").concat(M==null||(D=M.spmConfig)===null||D===void 0||(D=D.pages)===null||D===void 0||(D=D[M==null?void 0:M.currentPage])===null||D===void 0?void 0:D[(A=ae)===null||A===void 0||(A=A.split("."))===null||A===void 0?void 0:A[2]]);(F=ae)!==null&&F!==void 0&&F.includes("undefined")&&(ae=t);var fe=i||{},ye=fe.expoDirection,ie=fe.combineType,se=fe.percent,oe=fe.expoState,pe=fe.uuid,Se=fe.mmaExpo,Pe=fe.expoTimeInfo,Ie=fe.isUpdateParam;Pe&&(ue.expoTimeInfo=Pe),le.percent=se;var $=this.expo(ae,re,ye||"",le,_objectSpread2(_objectSpread2({combineType:ie,expoState:oe||"end",event:n,uuid:pe,expoType:ce,mmaExpo:Se||!1,isUpdateParam:Ie},ue),{},{canDelayLog:this._isExpoChecking||this._isIntersectionChecking})).then(function(we){return!!we&&typeof P=="function"&&P()})},flushLogPayLoad:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=arguments.length>1?arguments[1]:void 0;if(!e&&eventArray.length+combineEventArray.length<PAYLOAD_LIMIT_SIZE){FLUSH_TIMER||(FLUSH_TIMER=setTimeout(function(){FLUSH_TIMER=null,t.flushLogPayLoad(!0,n)},FLUSH_TIMEOUT));return}if(FLUSH_TIMER&&(clearTimeout(FLUSH_TIMER),FLUSH_TIMER=null),!(eventArray.length===0&&combineEventArray.length===0)){var i={};eventArray.length&&(i.eventArray=[].concat(eventArray)),combineEventArray.length&&(i.combineEventArray=[].concat(combineEventArray)),eventArray.length=0,combineEventArray.length=0}},_checkCover:function(){if(!(this.spmCheckCover!==config_exports.SPM_CHECK_COVER.TITLE_BAR&&this.spmCheckCover!==config_exports.SPM_CHECK_COVER.STICKY)){var t=this._checkTitleBar(),e={curScrollYStatus:SCROLL_Y_STATUS.LESS,intersectionObserverForCoverRootMargin:t,curScrollY:0},n=[];this._checkStickyDOM(e,n),this._addScrollListenerForCover(e,n)}},_addScrollListenerForCover:function(t,e){var n=this;this._scrollListenerForTitleBar=ownAddEventListener("scroll",window.document||window,(0,import_lodash5.default)(function(){try{var i,P,I;if(((i=n._transparentTitleInfo)===null||i===void 0?void 0:i.from)!=="ap"){startCheckCoverCbForScroll(n,t,e);return}(P=window.AlipayJSBridge)===null||P===void 0||(I=P.call)===null||I===void 0||I.call(P,"getStartupParams",function(k){n._transparentTitleInfo={value:k==null?void 0:k.transparentTitle,from:"scroll"},startCheckCoverCbForScroll(n,t,e)})}catch(k){warn("tracert \u6EDA\u52A8\u76D1\u542C\u51FD\u6570\u6267\u884C\u5931\u8D25"),n.reportError(k,n)}},300,{leading:!0,trailing:!0}),!0)},_checkTitleBar:function(){return isTargetTransparentTitleValue2(this,TRANSPARENT_TITLE.AUTO)?(this.intersectionObserverForCover=this.intersectionObserverForCover||createIntersection(this,"-".concat(this._titleBarHeight,"px 0px 0px 0px")),-this._titleBarHeight):0},_checkStickyDOM:function(t,e){if(this.spmCheckCover===config_exports.SPM_CHECK_COVER.STICKY&&(isTargetTransparentTitleValue2(this,TRANSPARENT_TITLE.ALWAYS)||isTargetTransparentTitleValue2(this,TRANSPARENT_TITLE.NONE))){var n=checkFixedDom({x:2,y:0},this,t,e);this._resetIntersectionObserverForCover(n,t)}},_resetIntersectionObserverForCover:function(t,e){if(t){if(this.intersectionObserverForCover)for(var n=getExpoElements(this.container||window.document),i=0;i<n.length;i++){var P=n[i];this.intersectionObserverForCover.unobserve(P)}e.intersectionObserverForCoverRootMargin!==0&&(this.intersectionObserverForCover=createIntersection(this,"".concat(e.intersectionObserverForCoverRootMargin,"px 0px 0px 0px")),this.expoCheck())}},updateTransparentTitle:function(){var t,e,n=this;(t=window.AlipayJSBridge)===null||t===void 0||(e=t.call)===null||e===void 0||e.call(t,"getStartupParams",function(i){n._transparentTitleInfo={value:i==null?void 0:i.transparentTitle,from:"userMsg"}})},expoCheck:function(t){var e=t;if(this.intersectionObserver||(this.intersectionObserver=createIntersection(this)),isTargetTransparentTitleValue2(this,TRANSPARENT_TITLE.AUTO)&&!this.intersectionObserverForCover&&(this.intersectionObserverForCover=createIntersection(this,"-".concat(this._titleBarHeight,"px 0px 0px 0px"))),!e){var n;e=((n=window._to)===null||n===void 0?void 0:n._isPrimaryApp)===!1?document:this.container||document}if(typeof e.querySelectorAll=="function"){var i=this._runBeforeFns("autoExpo",e);if(i!==!1){var P=getExpoElements(e);this._isExpoChecking=!0;for(var I=0;I<P.length;I++){var k=P[I];this.intersectionObserver?(this.intersectionObserver.unobserve(k),this.intersectionObserver.observe(k),this.intersectionObserverForCover&&(this.intersectionObserverForCover.unobserve(k),this.intersectionObserverForCover.observe(k))):oldExpoMethod(k,this)}this._isExpoChecking=!1,this.flushLogPayLoad(!0,this)}}},clearExpoIden:function(t){var e=t;if(!e){var n;e=((n=window._to)===null||n===void 0?void 0:n._isPrimaryApp)===!1?document:this.container||document,this.expoObj={}}var i=getExpoElements(e);if(this.enableIntersectionObserver){var P=i.map(function(A){return{target:A,isIntersecting:!1,intersectionRatio:0}});intersectionExpo(P,this)}else{var I=_createForOfIteratorHelper(i),k;try{for(I.s();!(k=I.n()).done;){var D=k.value;D[this._instanceId]=null}}catch(A){I.e(A)}finally{I.f()}}},startAutoExpo:function(){typeof this._expoTypeHandle=="function"&&this._expoTypeHandle(),this.intersectionObserver=this.intersectionObserver||createIntersection(this),isAppx_default&&this._checkCover(),this.expoCheck(),this.startMutationObserver(document.querySelector("body"),void 0,this.enableWatchStyle?["style"]:[]),this.call("addSideEffects",this.stopAutoExpo)},stopAutoExpo:function(){this._expoTypeHandle&&this._expoTypeHandle(),this._scrollListenerForTitleBar&&this._scrollListenerForTitleBar(),this.destroyMutationObserver()},_observerCb:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.length!==0&&e.forEach(function(n){var i=n.target.parentNode,P=n.addedNodes,I=n.removedNodes,k=I===void 0?[]:I,D=n.type,A=D===void 0?"":D;switch(A){case"attributes":i&&t.expoCheck(i);break;case"subtree":case"childList":P&&P.length&&t._changeNodes(nodeListToArray(P).concat(nodeListToArray(k)));break;default:break}})},_changeNodes:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(n){t.expoCheck(n.parentNode)})},_mutationObserver:function(t,e){this.mutationObserver&&this.mutationObserver.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-aspm-click","data-aspm-expo","data-aspm","data-aspm-param"].concat(e),characterData:!0})},startMutationObserver:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(this.mutationObserver){warn("mutationObserver \u5DF2\u5F00\u542F\uFF0C\u8BF7\u4E0D\u8981\u91CD\u590D\u8C03\u7528");return}var i=this,P=throttleMutation(function(k){mutationCallback(k,i)},e),I=createMutation(P,t||this.container,n);I&&(this.mutationObserver=I)},stopMutationObserver:function(){this.mutationObserver&&this.mutationObserver.disconnect()},destroyMutationObserver:function(){this.mutationObserver&&(this.stopMutationObserver(),this.mutationObserver=null,delete this.mutationObserver)},getExpoSpmCPos:function(t){var e={dom:t,spmId:""};if(!this.spmAPos||!this.spmBPos)return e;var n=getSpmCPos(t);if(!n)return e;var i=[this.spmAPos,this.spmBPos,n];return e.spmId=i.join("."),e},getExpoSpmDPos:function(t){var e=getDPosDom(t),n=getSpmDPos(e),i={dom:e,spmId:""};if(!this.spmAPos||!this.spmBPos)return i;if(e&&n){var P=n.split("."),I=P.length,k=!0;switch(I){case 1:P.unshift(getSpmCPos(e));break;default:break}for(var D=2,A=0;A<D;A++)if(!P[A]){k=!1;break}if(k){var F=[this.spmAPos,this.spmBPos];i.spmId=F.concat(P).join(".")}}return i}},context_default2=autoExpo}}),autoExpo2,auto_expo_default,init_auto_expo=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/auto-expo/index.js":function(){init_objectSpread2(),init_context2(),autoExpo2=function(t,e){t.set(_objectSpread2({},context_default2));var n=!0;return t.before("set",function(i){if(!t.autoExpo){i.autoExpo===!1&&console.warn("autoExpo \u4E3A false\uFF0C\u66DD\u5149\u7C7B\u578B\u58F0\u660E\u5F0F\u57CB\u70B9\u4E0D\u4F1A\u81EA\u52A8\u4E0A\u62A5\uFF1B");return}if(t._calledLogPv!==void 0){if(t._calledLogPv){t.call("stopAutoExpo"),t.call("startAutoExpo");return}t.after("logPv",function(){n&&(t.call("stopAutoExpo"),t.call("startAutoExpo")),n=!1});return}}),e&&(e==null||e()),t},auto_expo_default=autoExpo2}}),require_name_storage_1_3=__commonJS({"node_modules/_name-storage@1.3.0@name-storage/index.js":function(t,e){var n=window,i="nameStorage:",P=/^([^=]+)(?:=(.*))?$/,I="?",k="=",D="&",A=encodeURIComponent,F=decodeURIComponent,M={},ee,x={};(function(ue){if(ue&&ue.indexOf(i)===0){var le=ue.split(/[:?]/);le.shift(),ee=F(le.shift())||"";for(var ce=le.join(""),me=ce.split(D),ae=0,fe,ye,ie,se=me.length;ae<se;ae++)fe=me[ae].match(P),!(!fe||!fe[1])&&(ye=F(fe[1]),ie=F(fe[2])||"",M[ye]=ie)}else ee=ue||""})(n.name),x.setItem=function(ue,le){!ue||typeof le=="undefined"||(M[ue]=String(le),ne())},x.getItem=function(ue){return M.hasOwnProperty(ue)?M[ue]:null},x.removeItem=function(ue){M.hasOwnProperty(ue)&&(M[ue]=null,delete M[ue],ne())},x.clear=function(){M={},ne()},x.valueOf=function(){return M},x.toString=function(){var ue=n.name;return ue.indexOf(i)===0?ue:i+ue};function ne(){var ue=[],le=!0,ce;for(var me in M)M.hasOwnProperty(me)&&(le=!1,ce=M[me]||"",ue.push(A(me)+k+A(ce)));n.name=le?ee:i+A(ee)+I+ue.join(D)}function re(ue,le,ce){ue&&(ue.addEventListener?ue.addEventListener(le,ce,!1):ue.attachEvent&&ue.attachEvent("on"+le,function(me){ce.call(ue,me)}))}re(n,"beforeunload",function(){ne()}),n.nameStorage=x,e.exports=x}}),import_name_storage,ALIPAYDOMAIN,refList,REF_PREFIX,FullfillRefspm,init_fullfill_refspm=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/fullfill-ref/fullfill_refspm.js":function(){init_classCallCheck(),init_createClass(),init_utils(),init_localLog(),import_name_storage=__toESM(require_name_storage_1_3()),ALIPAYDOMAIN=".alipay.com",refList=["refUrl","srcSpm","referPageId","referSPM","dtLogMonitor"],REF_PREFIX="TRACERT_REF_",FullfillRefspm=(function(){function t(e){var n=this;_classCallCheck(this,t),this.tracert=e||{},this.isAlipayDomain=document.domain&&document.domain.indexOf(ALIPAYDOMAIN)!==-1,this.cookiesDomain=this.isAlipayDomain?ALIPAYDOMAIN:null,this.initRef(),e.before("logPv",function(){e.srcSpm=e.lastClkSpm||e.srcSpm}),e.after("logPv",function(){e.referSPM=n.getPageSpmAB(),e.referPageId=e.pageId,e.refUrl=e.url,e.srcSpm=e.lastClkSpm}),addEvent2("beforeunload",window,function(){n.cache()})}return _createClass(t,[{key:"getPageSpmAB",value:function(e,n){var i=e,P=n;return!i&&!P&&(i=this.tracert.spmAPos,P=this.tracert.spmBPos),i&&P?"".concat(i,".").concat(encodeURIComponent(P)):""}},{key:"initRef",value:function(){try{var e=this.tracert,n={referSPM:this.getMetaSpmId()||""},i=this.get();refList.forEach(function(P){var I=getValue(P);if(!I&&!e.ignoreNameStorage){var k;I=(k=import_name_storage.default.getItem)===null||k===void 0?void 0:k.call(import_name_storage.default,"".concat(REF_PREFIX).concat(P))}!I&&i&&(I=i[P]),I&&(n[P]=I)}),e.call("set",n)}catch(P){warn(P)}}},{key:"getMetaSpmId",value:function(){for(var e,n=nodeListToArray((e=window)===null||e===void 0||(e=e.document)===null||e===void 0?void 0:e.getElementsByTagName("meta")),i="",P=0;P<n.length;P++){var I=n[P],k=getAttr(I,"name"),D=getAttr(I,"content");if(!(!D||!k))switch(k){case"pagename":i=D;break;default:break}}return i&&this.getPageSpmAB(this.tracert.spmAPos,i)}},{key:"cache",value:function(){try{var e=this.tracert||{},n=location.href||"";n.length>150&&(n=e.url);var i=this.getPageSpmAB(),P=e.lastClkSpm,I=e.referPageId,k=[n,i,P,I||""];if(temporary_storage_default.set("fullfill_ref",k.join(""),{domain:this.cookiesDomain,cookie:!0}),!e.ignoreNameStorage){var D={refUrl:n,referPageId:I,referSPM:i,srcSpm:P};Object.keys(D).forEach(function(A){if(D[A]){var F;(F=import_name_storage.default.setItem)===null||F===void 0||F.call(import_name_storage.default,"".concat(REF_PREFIX).concat(A),D[A])}})}}catch(A){warn(A)}}},{key:"get",value:function(){var e=temporary_storage_default.get("fullfill_ref",{domain:this.cookiesDomain},!0);if(typeof e!="string")return null;var n=e.split("");if(!n[0])return null;var i=n[0],P=n[1],I=n[2],k=n[3],D=url_default.parse(this.tracert.url||""),A=url_default.parse(i||"");return A.host===D.host?{refUrl:i,referSPM:P,srcSpm:I,referPageId:k}:null}}]),t})()}}),fullfill,fullfill_ref_default,init_fullfill_ref=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/fullfill-ref/index.js":function(){init_fullfill_refspm(),fullfill=function(t,e){var n=t,i=new FullfillRefspm(n);return n.set({fullfillRef:i}),e(),n},fullfill_ref_default=fullfill}}),TimeConsuming,init_time_consuming=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/time-on-page/plugin/time_consuming.js":function(){init_classCallCheck(),init_createClass(),init_defineProperty(),init_utils(),TimeConsuming=(function(){function t(e){var n=this;_classCallCheck(this,t),_defineProperty(this,"pause",function(i){i.target===window&&(n.paused=!0,n._time_consumed+=Date.now()-n._start_timestamp)}),_defineProperty(this,"resume",function(){n.paused&&(n._start_timestamp=Date.now())}),_defineProperty(this,"cache",function(){var i=location.href,P=n.gettimeConsuming();temporary_storage_default.set("residual","".concat(encodeURIComponent(i),"|").concat(P))}),this._tracert_inst=e,this.paused=!1,this.start(),this.bindEventListeners()}return _createClass(t,[{key:"start",value:function(){this._start_timestamp=Date.now(),this._time_consumed=0,this.lastClickEle=null,this.lastClickText=""}},{key:"bindEventListeners",value:function(){addEvent2("blur",window,this.pause),addEvent2("focus",window,this.resume),addEvent2("beforeunload",window,this.cache)}},{key:"gettimeConsuming",value:(function(){return this.paused?this._time_consumed:this._time_consumed+(Date.now()-this._start_timestamp)})},{key:"getTime",value:(function(){var e=temporary_storage_default.get("residual",{},!0);if(!e)return null;var n=e.split("|"),i=n[0],P=n[1];try{if(decodeURIComponent(i)===this._tracert_inst.refUrl)return P}catch(I){return null}return null})}]),t})()}});function cutOffTitle(t){return t.length<=20?t:"".concat(t.substring(0,10)).concat(t.substring(t.length-10),"|").concat(t.length-20)}var DelayReport,time_on_page_default,init_time_on_page=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/plugins/time-on-page/index.js":function(){init_time_consuming(),DelayReport=function(t,e){var n=t;n.before("logPv",function(P){var I,k=n==null||(I=n.timeConsuming)===null||I===void 0?void 0:I.getTime();k&&(P._consume=k),P._title=cutOffTitle(document.title),n.timeConsuming.cache(),n.timeConsuming.start()});var i=new TimeConsuming(n);return n.set({timeConsuming:i}),e(),n},time_on_page_default=DelayReport}}),isInMiniprogram,isInWeChatMiniprogram,fetchDataFromUrl,init_fetch=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/fetch.js":function(){isInMiniprogram=function(){return typeof my!="undefined"&&my.canIUse!==void 0},isInWeChatMiniprogram=function(){return typeof wx!="undefined"&&wx.canIUse!==void 0},fetchDataFromUrl=function(t){if(isInMiniprogram())return new Promise(function(e,n){my.call("httpRequest",{url:t},function(i){!i||i.error?n(i==null?void 0:i.error):e(i.data)})});if(isInWeChatMiniprogram())return new Promise(function(e,n){wx.request({url:t,dataType:"text",success:function(i){e(i.data)},fail:function(i){n(i)}})});if(typeof fetch=="function")return fetch(t).then(function(e){return e.text()});if(typeof XMLHttpRequest!="undefined")return new Promise(function(e,n){var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){i.readyState===4&&(i.status===200?e(i.responseText):n(i.statusText))},i.send()})}}});function getPath(){if(typeof window!="undefined"){var t;return(t=window)===null||t===void 0||(t=t.location)===null||t===void 0?void 0:t.href}if(isAppx_default){var e="";try{var n=getCurrentPages().length;e=getCurrentPages()[n-1].__proto__.route}catch(i){e=""}return e}return""}var init_getPath=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/getPath.js":function(){init_isAppx()}});function waitForJSBridgeReady(t){return new Promise(function(e,n){if(window.AlipayJSBridge){e();return}var i=setTimeout(function(){n(new Error("JSBridge\u672A\u5728".concat(t,"ms\u5185\u5C31\u7EEA")))},t),P=function(){clearTimeout(i),document.removeEventListener("AlipayJSBridgeReady",I)},I=function(){if(!window.AlipayJSBridge){P(),n(new Error("\u6536\u5230\u5C31\u7EEA\u4E8B\u4EF6\u4F46JSBridge\u672A\u521D\u59CB\u5316"));return}P(),e()};document.addEventListener("AlipayJSBridgeReady",I,{once:!0})})}function callFullLinkTrackReport(t,e){return new Promise(function(n){window.AlipayJSBridge.call("fullLinkTrackReportLog",{logCategory:t,logInfo:e},function(i){var P;n((P=i==null?void 0:i.success)!==null&&P!==void 0?P:!1)})})}var LogCategory,init_jsapi2=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/jsapi.js":function(){LogCategory=(function(t){return t.Crash="crash",t.AntEvent="antEvent",t.UserBehavior="userbehavor",t})({})}}),memoryCache,init_memory_cache=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/utils/memory-cache.js":function(){memoryCache=function(){var t={},e=function(i,P){t[i]=P},n=function(i){if(t.hasOwnProperty(i))return t[i]};return{set:e,get:n}}}}),cache,getRegexInstance,userAgentParser,init_user_agent=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/utils/user-agent.js":function(){init_memory_cache(),cache=memoryCache(),getRegexInstance=function(t){var e=cache.get(t);if(e)return e.value;var n=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:".concat(t,")"),"i");return cache.set(t,{value:n}),n},userAgentParser=function(t,e){try{var n=getRegexInstance(t),i=n.exec(e);return i?i.slice(1):null}catch(P){return null}}}}),variableReplacement,init_variable_replacement=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/utils/variable-replacement.js":function(){variableReplacement=function(t,e){var n=new RegExp("\\$\\d","g");return t==null?"":t.replace(n,function(i){var P=parseInt(i.substr(1),10),I=e[P-1];return I||""})}}}),trim,init_trim=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/utils/trim.js":function(){trim=function(t,e){return t.replace(new RegExp("^["+e+"]+|["+e+"]+$","g"),"")}}}),formatVersion,parseBrowserEngineVersion,init_version=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/utils/version.js":function(){init_trim(),formatVersion=function(t,e){if(t===void 0)return"";var n=trim(t,". ").replace(new RegExp("_","g"),"."),i=n.split(".");return/^\d+$/.test(i.join(""))?e!==0&&!/\.0*[1-9]+/.test(n)?parseInt(n,10).toFixed(1):i.length>1&&e!==null?i.slice(0,e+1).join("."):n:n},parseBrowserEngineVersion=function(t,e){if(!e)return"";if(e==="Gecko"){var n=/[ ](?:rv[: ]([0-9\.]+)).*gecko\/[0-9]{8,10}/i,i=t.match(n);if(i)return i.pop()}var P=new RegExp("".concat(e,"\\s*\\/?\\s*((?:(?=\\d+\\.\\d)\\d+[.\\d]*|\\d{1,7}(?=(?:\\D|$))))"),"i"),I=t.match(P);return I?I.pop():""}}}),browsers_default,init_browsers=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/_fixtures/regexes/client/browsers.js":function(){browsers_default=[{regex:"Chrome(?!book)(?:/(\\d+[\\.\\d]+))?",name:"Chrome",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"MSIE.*Trident/5.0",name:"Internet Explorer",version:"9.0",engine:{default:"Trident"}},{regex:"MSIE.*Trident/6.0",name:"Internet Explorer",version:"10.0",engine:{default:"Trident"}},{regex:"Trident/[78].0",name:"Internet Explorer",version:"11.0",engine:{default:"Trident"}},{regex:"MSIE (\\d+[\\.\\d]+)",name:"Internet Explorer",version:"$1",engine:{default:"Trident"}},{regex:"IE[ /](\\d+[\\.\\d]+)",name:"Internet Explorer",version:"$1",engine:{default:"Trident"}},{regex:"Version/(\\d+[\\.\\d]+).*Safari/|Safari/?\\d+",name:"Safari",version:"$1",engine:{default:"WebKit"}}]}}),browser_engine_default,init_browser_engine=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/_fixtures/regexes/client/browser_engine.js":function(){browser_engine_default=[{regex:"NetFront",name:"NetFront"},{regex:"Edge",name:"Edge"},{regex:"Trident",name:"Trident"},{regex:"(?<!SmartHu)Blink",name:"Blink"},{regex:"(?:Apple)?WebKit",name:"WebKit"},{regex:"Presto",name:"Presto"},{regex:"Goanna",name:"Goanna"},{regex:"(?<!like )Gecko",name:"Gecko"},{regex:"KHTML",name:"KHTML"},{regex:"NetSurf",name:"NetSurf"},{regex:"Servo",name:"Servo"},{regex:"Goanna",name:"Goanna"},{regex:"Ekioh(?:Flow)?",name:"EkiohFlow"}]}}),available_browsers_default,init_available_browsers=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/parsers/client/_fixtures/available-browsers.js":function(){available_browsers_default={IE:"Internet Explorer",CH:"Chrome",SF:"Safari"}}}),mobile_only_browsers_default,init_mobile_only_browsers=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/parsers/client/_fixtures/mobile-only-browsers.js":function(){mobile_only_browsers_default=["36","OC","PU","SK","MF","OI","OM","DD","DB","ST","BL","IV","FM","C1","C4","SA","SB","FR","WP","HA","NX","HU","VV","RE","CB","MZ","UM","FK","FX","WI","MN","M1","AH","SU","EU","EZ","UT","DT","S0","QU","YN","JB","GH","PI","SG","KD","PE","UH","S7","CW","OZ","GI","VE"]}}),_class,BrowserParser,init_browser=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/libs/device-detector-js/parsers/client/browser.js":function(){init_objectSpread2(),init_slicedToArray(),init_createForOfIteratorHelper(),init_createClass(),init_classCallCheck(),init_defineProperty(),init_user_agent(),init_variable_replacement(),init_version(),init_browsers(),init_browser_engine(),init_available_browsers(),init_mobile_only_browsers(),BrowserParser=_createClass(function t(e){var n=this;_classCallCheck(this,t),_defineProperty(this,"options",{versionTruncation:1}),_defineProperty(this,"parse",function(i){var P={type:"",name:"",version:"",rawVersion:"",engine:"",engineVersion:""},I=_createForOfIteratorHelper(browsers_default),k;try{var D=function(){var ne=k.value,re=userAgentParser(ne.regex,i);if(!re)return 0;var ue=variableReplacement(ne.version,re),le=formatVersion(ue,n.options.versionTruncation),ce=le&&parseFloat(formatVersion(ue,1))||"";if(ne.engine&&(P.engine=ne.engine.default,ne.engine&&ne.engine.versions&&ce)){var me=ne.engine.versions,ae=Object.keys(me).map(function(Se){return[Se,me[Se]]}),fe=ae.sort(function(Se,Pe){return parseFloat(Se[0])>parseFloat(Pe[0])?1:-1}),ye=_createForOfIteratorHelper(fe),ie;try{for(ye.s();!(ie=ye.n()).done;){var se=_slicedToArray(ie.value,2),oe=se[0],pe=se[1];parseFloat(oe)<=ce&&(P.engine=pe||"")}}catch(Se){ye.e(Se)}finally{ye.f()}}return P.type="browser",P.name=variableReplacement(ne.name,re),P.version=le,P.rawVersion=ue,1},A;for(I.s();!(k=I.n()).done&&(A=D(),!(A!==0&&A===1)););}catch(ne){I.e(ne)}finally{I.f()}if(!P.engine){var F=_createForOfIteratorHelper(browser_engine_default),M;try{for(F.s();!(M=F.n()).done;){var ee=M.value,x=null;try{x=RegExp(ee.regex,"i").exec(i)}catch(ne){}if(x){P.engine=ee.name;break}}}catch(ne){F.e(ne)}finally{F.f()}}return P.engineVersion=formatVersion(parseBrowserEngineVersion(i,P.engine),n.options.versionTruncation),P}),this.options=_objectSpread2(_objectSpread2({},this.options),e)}),_class=BrowserParser,_defineProperty(BrowserParser,"getBrowserShortName",function(t){for(var e in available_browsers_default){var n=available_browsers_default[e];if(n===t)return e}return""}),_defineProperty(BrowserParser,"isMobileOnlyBrowser",function(t){return mobile_only_browsers_default.indexOf(_class.getBrowserShortName(t))>-1})}});function sendBeacon(t,e){return new Promise(function(n){var i=new URLSearchParams(t),P=navigator.sendBeacon(e,i);n(P)})}function supportsSendBeacon(){if(navigator&&navigator.sendBeacon&&typeof navigator.sendBeacon=="function"&&Blob&&typeof Blob=="function"){if(client===CLIENT.ALIPAYHK)return!1;var t=new BrowserParser().parse(navigator.userAgent);return!(t.name==="Chrome"&&(parseInt(t.version,10)<88||["122.0.6261.95","133.0.0.0","116.0.5845.97","114.0.5735.289","108.0.5359.95"].indexOf(t.rawVersion)>-1)||t.name==="Safari"&&parseInt(t.version,10)<=13||t.name==="Internet Explorer")}return!1}function sendFetchData(t,e,n){return new Promise(function(i,P){fetch(t,{method:"POST",headers:{"Content-type":"application/x-www-form-urlencoded"},keepalive:!0,body:"data=".concat(encodeURIComponent(e.join()),"&time=").concat(new Date().getTime())}).then(function(I){if(!I.ok){n.unshift(e),P();return}i(I==null?void 0:I.ok)}).catch(function(){n.unshift(e)})})}var init_sendBatch=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/utils/sendBatch.js":function(){init_regeneratorRuntime(),init_asyncToGenerator(),init_browser(),init_lib()}}),import_lodash6,doc2,Tracert,tracert_default,init_tracert=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/core/plugins/Browser/tracert.js":function(){init_regeneratorRuntime(),init_asyncToGenerator(),init_toConsumableArray(),init_objectSpread2(),init_typeof(),init_classCallCheck(),init_createClass(),init_defineProperty(),init_Base64(),init_config(),init_event2(),init_getPath(),init_getUuid(),init_helper(),init_isAndroid(),init_isIos(),init_localLog(),init_objToStr(),init_storage(),import_lodash6=__toESM(require_lodash_throttle_4_1_1_lodash()),doc2=document,Tracert=(function(){function t(){var e,n,i=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck(this,t),_defineProperty(this,"dataCache",[]),_defineProperty(this,"logTask",0),_defineProperty(this,"bizType",""),_defineProperty(this,"deviceId",""),_defineProperty(this,"logLevel","2"),_defineProperty(this,"logVersion","3"),_defineProperty(this,"userId",""),_defineProperty(this,"spmAPos",""),_defineProperty(this,"spmBPos",""),_defineProperty(this,"pageId",""),_defineProperty(this,"server",""),_defineProperty(this,"servers",[]),_defineProperty(this,"debug",!1),_defineProperty(this,"chInfo",""),_defineProperty(this,"scm",""),_defineProperty(this,"env","prod"),_defineProperty(this,"referSPM",""),_defineProperty(this,"refUrl",""),_defineProperty(this,"eventType","click"),_defineProperty(this,"sessionId",""),_defineProperty(this,"mdata",{}),_defineProperty(this,"systemInfo",{}),_defineProperty(this,"networkType",""),_defineProperty(this,"url",""),_defineProperty(this,"appId",""),_defineProperty(this,"compatibleAppId",""),_defineProperty(this,"productId",""),_defineProperty(this,"packageVersion",""),_defineProperty(this,"pluginReady",!0),_defineProperty(this,"_plugins",[]),_defineProperty(this,"_pluginLoadCnt",0),_defineProperty(this,"_beforeEvObj",void 0),_defineProperty(this,"_afterEvObj",void 0),_defineProperty(this,"ready",!0),_defineProperty(this,"apiCashList",[]),_defineProperty(this,"_sideEffects",[]),_defineProperty(this,"switch",!0),_defineProperty(this,"autoExpo",!1),_defineProperty(this,"expoOnce",!1),_defineProperty(this,"expoObj",{}),_defineProperty(this,"contact",!1),_defineProperty(this,"sendFrequency",1e3),_defineProperty(this,"batchCount",5),_defineProperty(this,"userAgent",(e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0?void 0:e.userAgent),_defineProperty(this,"shouldKeepOriginKey",!0),_defineProperty(this,"keyFormat",void 0),_defineProperty(this,"compactExtraInfo",!1),_defineProperty(this,"container",(n=window)===null||n===void 0?void 0:n.document),_defineProperty(this,"platform",""),_defineProperty(this,"expoType",function(I){return ownAddEventListener("scroll",doc2,(0,import_lodash6.default)(I,300,{leading:!1,trailing:!0}))}),_defineProperty(this,"_isMain",void 0),_defineProperty(this,"_instanceId",void 0),_defineProperty(this,"startScreenshot",void 0),_defineProperty(this,"_logPvPromise",void 0),this.systemInfo={model:"",pixelRatio:0,windowWidth:0,windowHeight:0,language:"",version:"",platform:"",system:"",screenWidth:0,screenHeight:0,brand:"",app:""},this._beforeEvObj={logPv:[],click:[],expo:[],set:[],send:[],log:[]},this._afterEvObj={logPv:[],click:[],expo:[],send:[],log:[]},this._instanceId=getUuid(),Object.assign(this,P),this.before("send",function(){return i.switch}),this.init(P)}return _createClass(t,[{key:"init",value:function(e){this.set({autoExpo:e.autoExpo}),this.deviceId||this._setDeviceUUid(),this.sessionId=this.sessionId?this.sessionId:getUuid(),this.ready&&this._sendSuccessRate()}},{key:"get",value:function(e){var n=this;return n[e]}},{key:"before",value:function(e,n){var i=this._beforeEvObj;if(!i[e]){error("\u76EE\u6807\u65B9\u6CD5\u4E0D\u652F\u6301\u8BE5\u4E8B\u4EF6");return}if(typeof n!="function"){error("\u76D1\u542C\u5668\u4E0D\u662F\u51FD\u6570");return}i[e].push(n)}},{key:"_runBeforeFns",value:function(e,n){var i=this._beforeEvObj[e]||[];if(!(i!=null&&i.length))return!0;for(var P=0;P<i.length;P++){var I=i[P].call(this,n);if(I===!1)return debug("Tracert before fns: ".concat(e," stop propagation")),!1}return!0}},{key:"after",value:function(e,n){var i=this._afterEvObj;if(!i[e]){error("\u76EE\u6807\u65B9\u6CD5\u4E0D\u652F\u6301\u8BE5\u4E8B\u4EF6");return}if(typeof n!="function"){error("\u76D1\u542C\u5668\u4E0D\u662F\u51FD\u6570");return}i[e].push(n)}},{key:"_runAfterFns",value:function(e,n){var i=this._afterEvObj[e]||[];if(i!=null&&i.length)for(var P=0;P<i.length;P++)i[P].call(this,n)}},{key:"loadPlugins",value:function(e){if(e!=null&&e.length){this._plugins=e;for(var n=0;n<e.length;n++){var i=e[n];this.loadPlugin(i)}}}},{key:"loadPlugin",value:function(e){var n=this;if(typeof e=="function"){var i=e;i(this,function(){if(n._pluginLoadCnt++,n._pluginLoadCnt===n._plugins.length){n.set({pluginReady:!0});var P=document.createEvent("HTMLEvents");P._isMain=!!n._isMain,P._instanceId=n._instanceId,P.initEvent("TracertPluginReady",!0,!0),n.container.dispatchEvent(P)}})}}},{key:"addSideEffects",value:function(){var e=[].slice.call(arguments);typeof e[0]=="function"&&this._sideEffects.indexOf(e)===-1&&this._sideEffects.push(e)}},{key:"clearSideEffects",value:function(){if(!this._sideEffects||!this._sideEffects.length)return!0;for(var e=0;e<this._sideEffects.length;e++){var n=this._sideEffects[e],i=n.slice(1);typeof n[0]=="function"&&n[0].apply(this,i)}return this._sideEffects.length=0,!0}},{key:"set",value:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n,P=this===null||this===void 0||(e=this._runBeforeFns)===null||e===void 0?void 0:e.call(this,"set",i);if(P&&(_typeof(i.mdata)==="object"&&(i.mdata=_objectSpread2(_objectSpread2({},this.mdata),i.mdata)),Object.assign(this,i),i.ready===!0&&this.pluginReady||i.pluginReady===!0&&this.ready)){this._sendSuccessRate();for(var I=0;I<this.apiCashList.length;I++){var k=this.apiCashList[I];this.call.apply(this,_toConsumableArray(k))}this.apiCashList=[]}}},{key:"call",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var P=n[0],I=this[P];if(!I||typeof I!="function"){warn("\u672A\u627E\u5230\u65B9\u6CD5\uFF1A".concat(P));return}var k;if(this.ready&&this.pluginReady){var D=n.slice(1);k=I.apply(this,D)}else this.apiCashList.push(n);return k}},{key:"logPv",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(){var P,I,k,D,A=arguments;return _regeneratorRuntime().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(P=A.length>0&&A[0]!==void 0?A[0]:{},I=this._runBeforeFns("logPv",P),I){F.next=4;break}return F.abrupt("return");case 4:return k=this.spmAPos&&this.spmBPos?[this.spmAPos,this.spmBPos].join("."):"",this._setPageId(k),this._logPvPromise=this._initRefer(k),F.next=9,this._logPvPromise;case 9:this._logPvPromise=void 0,D={actionId:"pageMonitor",spmId:k,param1:"",param2:"",param3:"",param4:_objectSpread2(_objectSpread2({},this.mdata),P)},this.call("reportBehaviorDataimmediate",D),this._runAfterFns("logPv",P);case 13:case"end":return F.stop()}},i,this)}));function n(){return e.apply(this,arguments)}return n})()},{key:"click",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(){var P,I,k,D,A=arguments;return _regeneratorRuntime().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(P=A.length>0&&A[0]!==void 0?A[0]:"",I=A.length>1&&A[1]!==void 0?A[1]:{},!this._logPvPromise){F.next=5;break}return F.next=5,this._logPvPromise;case 5:if(k=this._runBeforeFns("click",I),k){F.next=8;break}return F.abrupt("return");case 8:D={param1:"",param2:"",param3:"",param4:_objectSpread2(_objectSpread2({},this.mdata),I),actionId:"clicked",spmId:this._fillspm(P)},I!=null&&I.immediate?this.call("reportBehaviorDataimmediate",D):this.call("remoteLog",D),this._runAfterFns("click",D);case 11:case"end":return F.stop()}},i,this)}));function n(){return e.apply(this,arguments)}return n})()},{key:"expo",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(){var P,I,k,D,A,F,M,ee,x,ne,re=arguments;return _regeneratorRuntime().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(P=re.length>0&&re[0]!==void 0?re[0]:"",I=re.length>1&&re[1]!==void 0?re[1]:{},k=re.length>2&&re[2]!==void 0?re[2]:"up",D=re.length>3&&re[3]!==void 0?re[3]:{},A=re.length>4&&re[4]!==void 0?re[4]:{},!this._logPvPromise){ue.next=8;break}return ue.next=8,this._logPvPromise;case 8:if(A.combineType=A.combineType||COMBINE_TYPE.MANUAL,F=this._runBeforeFns("expo",I),F){ue.next=12;break}return ue.abrupt("return");case 12:if(M={param1:"",param2:"",param3:"",param4:_objectSpread2(_objectSpread2({},this.mdata),I),actionId:"exposure",spmId:this._fillspm(P)},ee=D&&D.force,!(!ee&&this.expoOnce&&A.combineType!==COMBINE_TYPE.AUTO)){ue.next=29;break}if(this.expoObj=this.expoObj||{},x=this.expoObj[M.spmId]||{},this.expoObj[M.spmId]||(this.expoObj[M.spmId]=x),ne=A.uuid||M.spmId,x[ne]!==1){ue.next=28;break}if(A.combineType!==COMBINE_TYPE.MANUAL){ue.next=25;break}return warn("\u70B9\u4F4D ".concat(M.spmId," \u5DF2\u7ECF\u66DD\u5149\u8FC7\u4E86")),ue.abrupt("return");case 25:A.expoType!=="multi"&&(A.combineType=COMBINE_TYPE.AUTO);case 26:ue.next=29;break;case 28:x[ne]=1;case 29:if(!(M.actionId===EVENT_TYPE.EXPOSURE&&A&&A.combineType===COMBINE_TYPE.AUTO)){ue.next=31;break}return ue.abrupt("return",!0);case 31:return I!=null&&I.immediate?this.call("reportBehaviorDataimmediate",M):this.call("remoteLog",M),this._runAfterFns("expo",M),ue.abrupt("return",!0);case 34:case"end":return ue.stop()}},i,this)}));function n(){return e.apply(this,arguments)}return n})()},{key:"log",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"web_info",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this._runBeforeFns("log",n);if(i){var P=n.immediate,I={eventId:e,param4:_objectSpread2(_objectSpread2({},this.mdata),n)};n!=null&&n.immediate?this.call("reportDataimmediate",I):this.call("reportData",I),this._runAfterFns("log",I)}}},{key:"remoteLog",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I;return _regeneratorRuntime().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return P.param4=_objectSpread2(_objectSpread2({},P.param4),{},{containerType:this._getContainerType(),logVersion:1}),k.next=3,this.formatBehivorData(P);case 3:I=k.sent,helper.report(I.join(),"spm"),this._send(I,P);case 6:case"end":return k.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"reportData",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I;return _regeneratorRuntime().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return P.param4=_objectSpread2(_objectSpread2({},P.param4),{},{containerType:this._getContainerType(),logVersion:1}),k.next=3,this.formatEventData(P);case 3:I=k.sent,helper.report(I.join(),"report"),this._send(I,P);case 6:case"end":return k.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"reportDataimmediate",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I;return _regeneratorRuntime().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return P.param4=_objectSpread2(_objectSpread2({},P.param4),{},{containerType:this._getContainerType(),logVersion:1}),k.next=3,this.formatEventData(P);case 3:I=k.sent,helper.report(I.join(),"immediate"),this._sendBatch([{data:I,rawData:P}]);case 6:case"end":return k.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"_sendBatch",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I;return _regeneratorRuntime().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(I=this.get("sendBatch"),typeof I!="function"){k.next=8;break}return k.prev=2,k.next=5,I(P);case 5:return k.prev=5,this.dataCache.unshift(),k.finish(5);case 8:case"end":return k.stop()}},i,this,[[2,,5,8]])}));function n(i){return e.apply(this,arguments)}return n})()},{key:"reportBehaviorDataimmediate",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I;return _regeneratorRuntime().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return P.param4=_objectSpread2(_objectSpread2({},P.param4),{},{containerType:this._getContainerType(),logVersion:1}),k.next=3,this.formatBehivorData(P);case 3:I=k.sent,helper.report(I.join(),"immediate"),this._sendBatch([{data:I,rawData:P}]);case 6:case"end":return k.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"formatBehivorData",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I,k,D,A,F,M,ee,x,ne,re,ue,le,ce,me,ae,fe,ye,ie,se,oe,pe,Se,Pe,Ie,$,we,ve,be,Ae,Te;return _regeneratorRuntime().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(me=P.actionId,ae=P.spmId,fe=P.param1,ye=P.param2,ie=P.param3,se=P.param4,oe=P.param5,pe=P.stayTime,Se=new Date,Pe=function(Re){return Re<10?"0".concat(Re):"".concat(Re)},Ie={reporterJsVersion:"0.0.0-build-only",userAgent:this.userAgent,URL:this.url||getPath(),logId:getUuid()},$=this.compactExtraInfo?{brand:((I=this.systemInfo)===null||I===void 0?void 0:I.brand)||"",windowWidth:((k=this.systemInfo)===null||k===void 0?void 0:k.windowWidth)||"",windowHeight:((D=this.systemInfo)===null||D===void 0?void 0:D.windowHeight)||""}:{brand:((A=this.systemInfo)===null||A===void 0?void 0:A.brand)||"",windowWidth:((F=this.systemInfo)===null||F===void 0?void 0:F.windowWidth)||"",windowHeight:((M=this.systemInfo)===null||M===void 0?void 0:M.windowHeight)||"",screenWidth:((ee=this.systemInfo)===null||ee===void 0?void 0:ee.screenWidth)||"",screenHeight:((x=this.systemInfo)===null||x===void 0?void 0:x.screenHeight)||""},we="".concat(Se.getFullYear(),"-").concat(Pe(Se.getMonth()+1),"-").concat(Pe(Se.getDate())," ").concat(Pe(Se.getHours()),":").concat(Pe(Se.getMinutes()),":").concat(Pe(Se.getSeconds()),".").concat(Se.getMilliseconds()),ve=se,be=this.get("extraDataFilter"),!(ve&&be)){De.next=12;break}return De.next=11,be(ve);case 11:ve=De.sent;case 12:if(Ae=["D-VM",we,this._getClientId(),this.systemInfo.version,this.logVersion,this.deviceId,this.sessionId,this.userId||"-",me,"-",this.referSPM||"-","-","-",this.refUrl,"-",ae,this.logLevel,this.bizType,"c",fe||"-",ye||"-",ie||"-",ve?this._objToStr(ve):"-",this.chInfo||"-",pe||"-","-","-",this.pageId,"-",this.url||"","-","-","1000",((ne=this.systemInfo)===null||ne===void 0?void 0:ne.brand)||"-",((re=this.systemInfo)===null||re===void 0?void 0:re.system)||"-",this.networkType||"-",this.packageVersion||"-","-",((ue=this.systemInfo)===null||ue===void 0?void 0:ue.language)||"-","-","-","-","-",this._objToStr($),"-","".concat((le=this.systemInfo)===null||le===void 0?void 0:le.screenWidth,"x").concat((ce=this.systemInfo)===null||ce===void 0?void 0:ce.screenHeight)||"-","-",getUuid(),"-",oe?this._objToStr(Object.assign({},Ie,oe)):this._objToStr(Ie)],Te=this.get("dataFilter"),!Te){De.next=18;break}return De.next=17,Te(Ae);case 17:Ae=De.sent;case 18:return De.abrupt("return",Ae.map(function(Re){return new String(Re).replace(/,/gi,"_").toString()}));case 19:case"end":return De.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"formatEventData",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I,k,D,A,F,M,ee,x,ne,re,ue,le,ce,me,ae,fe,ye,ie,se;return _regeneratorRuntime().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(ue=P.eventId,le=P.param4,ce=new Date,me=function(pe){return pe<10?"0".concat(pe):"".concat(pe)},ae="".concat(ce.getFullYear(),"-").concat(me(ce.getMonth()+1),"-").concat(me(ce.getDate())," ").concat(me(ce.getHours()),":").concat(me(ce.getMinutes()),":").concat(me(ce.getSeconds()),":").concat(ce.getMilliseconds()),fe=Object.assign({},{reporterJsVersion:"0.0.0-build-only",userAgent:this.userAgent,URL:this.url||getPath(),logId:getUuid()},le),ye=this.get("extraDataFilter"),!(fe&&ye)){oe.next=10;break}return oe.next=9,ye(fe);case 9:fe=oe.sent;case 10:if(ie=["D-AE",ae,this._getClientId()||"-",((I=this.systemInfo)===null||I===void 0?void 0:I.version)||"-",this.logVersion||"-",this.deviceId||"-",this.sessionId||"-",((k=this.userId)===null||k===void 0?void 0:k.replace(/,/g,"%2C"))||"-",1e3,ue||"-",this.bizType||"-",this.logLevel||"-",this.pageId||"-","-","-","-",((D=this.systemInfo)===null||D===void 0||(D=D.platform)===null||D===void 0?void 0:D.replace(/,/g,"%2C"))||"-",((A=this.systemInfo)===null||A===void 0||(A=A.system)===null||A===void 0?void 0:A.replace(/,/g,"%2C"))||"-",this.networkType||"-",((F=this.systemInfo)===null||F===void 0||(F=F.model)===null||F===void 0?void 0:F.replace(/,/g,"%2C"))||"-",((M=this.packageVersion)===null||M===void 0?void 0:M.replace(/,/g,"%2C"))||"-","-","-",((ee=this.systemInfo)===null||ee===void 0||(ee=ee.language)===null||ee===void 0?void 0:ee.replace(/,/g,"%2C"))||"-","-","".concat((x=this.systemInfo)===null||x===void 0?void 0:x.screenWidth,"x").concat((ne=this.systemInfo)===null||ne===void 0?void 0:ne.screenHeight)||"-",this.compatibleAppId||this.appId||"-","-",((re=this.systemInfo)===null||re===void 0||(re=re.brand)===null||re===void 0?void 0:re.replace(/,/g,"%2C"))||"-","-","-",getUuid()||"-","-","-","-","-",this._objToStr(fe),"-","-"],se=this.get("dataFilter"),!se){oe.next=16;break}return oe.next=15,se(ie);case 15:ie=oe.sent;case 16:return oe.abrupt("return",ie.map(function(pe){return new String(pe).replace(/,/gi,"_").toString()}));case 17:case"end":return oe.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"_send",value:function(e,n){var i,P=this._runBeforeFns("send",e);if(P){if(this.debug&&log(e),!this.server&&!((i=this.servers)!==null&&i!==void 0&&i.length)){warn("\u8BF7\u914D\u7F6ETracert\u670D\u52A1\u63A5\u6536\u5730\u5740");return}this.dataCache.push({data:e,rawData:n}),this._httpRequest(),this._runAfterFns("send",e)}}},{key:"_httpRequest",value:function(){var e=this;this.logTask===0&&(this._sendBatch(this.dataCache.splice(0,this.batchCount)),this.logTask=setInterval(function(){var n=e.dataCache.splice(0,e.batchCount);if(!n.length)return clearInterval(e.logTask),e.logTask=0,!0;n.length&&e._sendBatch(n),e._httpRequest()},this.sendFrequency))}},{key:"_sendSuccessRate",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(){var P,I,k;return _regeneratorRuntime().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,storage2.getStorage("tracker-rate");case 2:if(P=D.sent,!P){D.next=11;break}return D.next=6,storage2.removeStorage("tracker-rate");case 6:return I={eventId:"web_info",param4:{containerType:this._getContainerType(),logVersion:1,idengine_tracker_rate:P}},D.next=9,this.formatEventData(I);case 9:k=D.sent,this.dataCache.unshift({data:k,rawData:I});case 11:case"end":return D.stop()}},i,this)}));function n(){return e.apply(this,arguments)}return n})()},{key:"_setDeviceUUid",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(){var P,I;return _regeneratorRuntime().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return P="deivceTag",k.next=3,storage2.getStorage(P,"");case 3:if(I=k.sent,I){k.next=9;break}return I="device_".concat(getUuid()),this.set({deviceId:I}),k.next=9,storage2.setStorage(P,I);case 9:this.set({deviceId:I});case 10:case"end":return k.stop()}},i,this)}));function n(){return e.apply(this,arguments)}return n})()},{key:"_initRefer",value:(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function i(P){var I,k;return _regeneratorRuntime().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return I="spm-refer",D.next=3,storage2.getStorage(I,"");case 3:return k=D.sent,this.set({referSPM:k}),D.next=7,storage2.setStorage(I,P+"|"+this.pageId);case 7:case"end":return D.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n})()},{key:"_setPageId",value:function(e){this.set({pageId:this._getPageId(e)})}},{key:"_getPageId",value:function(e){return"".concat(e,"_").concat(Base64_default.fromNumber(+new Date))}},{key:"_fillspm",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=e.split(".");return n.length>2?e:"".concat(this.spmAPos,".").concat(this.spmBPos,".").concat(e)}},{key:"_getClientId",value:function(){var e;return"".concat(this.productId||this.appId,"_").concat(((e=this.systemInfo)===null||e===void 0||(e=e.platform)===null||e===void 0?void 0:e.toUpperCase())||"","-").concat(this.env.toUpperCase())}},{key:"_getContainerType",value:function(){return isAndroid_default||isIos_default?"H5":"PC"}},{key:"_objToStr",value:function(e){return objToStr(e,{shouldKeepOriginKey:this.shouldKeepOriginKey,keyFormat:this.keyFormat})}}]),t})(),tracert_default=Tracert}}),Spm,init_Spm=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/core/plugins/Browser/Spm.js":function(){init_toConsumableArray(),init_regeneratorRuntime(),init_objectSpread2(),init_asyncToGenerator(),init_classCallCheck(),init_createClass(),init_assertThisInitialized(),init_inherits(),init_createSuper(),init_defineProperty(),init_constants(),init_PluginTypes(),init_auto_click(),init_auto_expo(),init_fullfill_ref(),init_time_on_page(),init_config(),init_fetch(),init_getEnv(),init_getPath(),init_getSystemInfo2(),init_getTimeZone(),init_jsapi2(),init_localLog(),init_sendBatch(),init_storage(),init_tracert(),Spm=(function(t){_inherits(n,t);var e=_createSuper(n);function n(){var i;_classCallCheck(this,n);for(var P=arguments.length,I=new Array(P),k=0;k<P;k++)I[k]=arguments[k];return i=e.call.apply(e,[this].concat(I)),_defineProperty(_assertThisInitialized(i),"tracert",new tracert_default),_defineProperty(_assertThisInitialized(i),"server",void 0),_defineProperty(_assertThisInitialized(i),"servers",void 0),_defineProperty(_assertThisInitialized(i),"useWhiteList",void 0),_defineProperty(_assertThisInitialized(i),"whiteList",void 0),_defineProperty(_assertThisInitialized(i),"noPermissionBaseDAEFieldIndexList",[]),_defineProperty(_assertThisInitialized(i),"noPermissionBaseDVMFieldIndexList",[]),_defineProperty(_assertThisInitialized(i),"noPermissionExtraFieldList",[]),_defineProperty(_assertThisInitialized(i),"logCacheBeforeWhiteListReady",[]),_defineProperty(_assertThisInitialized(i),"isWhiteListConfigReady",!1),_defineProperty(_assertThisInitialized(i),"whiteListConfigSource",void 0),_defineProperty(_assertThisInitialized(i),"loadRemoteWhiteListIdentifier",void 0),_defineProperty(_assertThisInitialized(i),"remoteConfigValidDuration",void 0),_defineProperty(_assertThisInitialized(i),"marmotId",void 0),_defineProperty(_assertThisInitialized(i),"_jsapiFailed",!1),_defineProperty(_assertThisInitialized(i),"enableJSAPIReport",!1),_defineProperty(_assertThisInitialized(i),"beforeSendData",[]),i}return _createClass(n,[{key:"init",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(k){var D,A,F,M=this,ee,x,ne,re,ue,le,ce,me,ae,fe,ye,ie,se,oe,pe,Se,Pe,Ie,$,we,ve,be,Ae,Te,De,Re,Me,Ge,ze,Le,$e,Ve,We,Je,Be,Ne,Xe,st,Pt,tr,At,qe,Ue,Ut,qt,lt;return _regeneratorRuntime().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(lt=function(Qe){try{return new Promise(function(bt){var wt=getPath(),xe=[getEnv(),getSystemInfo3(),Promise.resolve(De)];Promise.all(xe).then(function(rt){var Mt=rt[0]||"",It=rt[1]||{};bt({env:Mt,systemInfo:It,url:wt,userId:Ae,deviceId:rt[2]})})})}catch(bt){return error(bt),Promise.resolve({env:getEnv()||"PROD",url:getPath(),networkType:"",systemInfo:null,userId:Ae,deviceId:De})}},ee=k.spmConfig,x=k.autoExpo,ne=x===void 0?!0:x,re=k.autoClick,ue=re===void 0?!0:re,le=k.bizType,ce=k.appId,me=k.compatibleAppId,ae=k.productId,fe=k.batchCount,ye=fe===void 0?5:fe,ie=k.server,se=ie===void 0?"":ie,oe=k.servers,pe=oe===void 0?[]:oe,Se=k.mdata,Pe=Se===void 0?{}:Se,Ie=k.env,$=Ie===void 0?"":Ie,we=k.plugins,ve=we===void 0?[]:we,be=k.userId,Ae=be===void 0?"":be,Te=k.deviceId,De=Te===void 0?"":Te,Re=k.ready,Me=Re===void 0?!1:Re,Ge=k.isReport,ze=Ge===void 0?!0:Ge,Le=k.version,$e=Le===void 0?"unknown":Le,Ve=k.chInfo,We=k.expoOnce,Je=We===void 0?!0:We,Be=k.platform,Ne=Be===void 0?"":Be,Xe=k.spmCheckCover,st=Xe===void 0?SPM_CHECK_COVER.TITLE_BAR:Xe,Pt=k.enableJSAPIReport,tr=Pt===void 0?!1:Pt,At=k.compactExtraInfo,qe=At===void 0?!1:At,this.enableJSAPIReport=tr,!(!(ee!=null&&ee.bizType)&&!le)){ct.next=5;break}throw new Error("bizType is empty");case 5:if((!ce||typeof ce!="string")&&warn("invalid marmotId"),this.marmotId=ce,ae){ct.next=9;break}throw new Error("productId is empty, please check .env file");case 9:return Ue=se||"https://imdap-sea.alipay.com/loggw/dwcookieLogGet.do",this.server=Ue,this.servers=pe,this.tracert.set({bizType:(D=ee==null?void 0:ee.bizType)!==null&&D!==void 0?D:le,server:Ue,servers:this.servers,appId:ce,compatibleAppId:me,productId:ae||ce,env:$||getEnv(),ready:!1,logVersion:ae?"4":"3",packageVersion:"0.0.0-build-only",switch:ze,batchCount:ye,expoOnce:Je,platform:Ne,mdata:_objectSpread2(_objectSpread2({idengine_groupId:me||ce,idengine_chinfo:Ve||"",idengine_version:$e||"",idengine_timezone:getTimeZone()},Pe),ee==null?void 0:ee.mdata),chInfo:Ve,spmAPos:ee==null?void 0:ee.spmAPos,spmCheckCover:st,compactExtraInfo:qe}),this.context.userPath.reStoreUserPath(ce),Ne!=="cabin"&&(ve.push(time_on_page_default),ve.push(fullfill_ref_default),ue&&ve.push(auto_click_default),ne&&(ve.push(auto_expo_default),this.tracert.set({autoExpo:!0}))),this.tracert.set({trackerContext:this.context}),this.tracert.loadPlugins(ve),Ut=this.getRequester(),this.tracert.set({sendBatch:(function(){var Qe=_asyncToGenerator(_regeneratorRuntime().mark(function wt(xe){return _regeneratorRuntime().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,Promise.all([xe.map((function(){var Mt=_asyncToGenerator(_regeneratorRuntime().mark(function It(Ht){var $t,rr,Wt;return _regeneratorRuntime().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return $t=Ht.data,rr=Ht.rawData,Wt=$t==null?void 0:$t.join(),ht.next=4,Ut(Wt,rr);case 4:return ht.abrupt("return");case 5:case"end":return ht.stop()}},It)}));return function(It){return Mt.apply(this,arguments)}})())]);case 2:case"end":return rt.stop()}},wt)}));function bt(wt){return Qe.apply(this,arguments)}return bt})(),extraDataFilter:(A=this.getExtraDataFilter)===null||A===void 0?void 0:A.call(this),dataFilter:(F=this.getDataFilter)===null||F===void 0?void 0:F.call(this)}),setTimeout(function(){M.tracert.set({ready:!0})},1500),qt=$,typeof k.remoteConfigValidDuration=="number"&&(this.remoteConfigValidDuration=k.remoteConfigValidDuration),this.processWhiteListConfig(k.whiteListConfigSource),ct.abrupt("return",lt(qt).then(function(Qe){Qe.deviceId&&M.tracert.set({deviceId:Qe.deviceId}),Qe.systemInfo&&M.tracert.set({systemInfo:Qe.systemInfo}),Qe.userId&&M.tracert.set({userId:Qe.userId}),M.tracert.set({env:qt||Qe.env||"PROD",networkType:Qe.networkType,path:Qe.path}),Me||M.tracert.set({ready:!0})}));case 24:case"end":return ct.stop()}},I,this)}));function P(I){return i.apply(this,arguments)}return P})()},{key:"onSendData",value:function(i){this.beforeSendData.push(i)}},{key:"offSendData",value:function(i){var P=this.beforeSendData.indexOf(i);P<0||this.beforeSendData.splice(P,1)}},{key:"finishWhiteListConfig",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(){var k;return _regeneratorRuntime().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(this.isWhiteListConfigReady){D.next=10;break}this.isWhiteListConfigReady=!0,k=0;case 3:if(!(k<this.logCacheBeforeWhiteListReady.length)){D.next=9;break}return D.next=6,this.logCacheBeforeWhiteListReady[k]();case 6:k++,D.next=3;break;case 9:this.logCacheBeforeWhiteListReady=[];case 10:case"end":return D.stop()}},I,this)}));function P(){return i.apply(this,arguments)}return P})()},{key:"processWhiteListConfig",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(k){var D,A,F,M,ee,x;return _regeneratorRuntime().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!this.isWhiteListConfigReady){ne.next=2;break}return ne.abrupt("return");case 2:if(this.whiteListConfigSource=k,!(!this.marmotId||!k||k==="NONE")){ne.next=9;break}return this.useWhiteList=!1,this.whiteList=[],ne.next=8,this.finishWhiteListConfig();case 8:return ne.abrupt("return");case 9:if(k!=="REMOTE"){ne.next=50;break}return D="marmot-monitor-config-".concat(this.marmotId,"-cache"),ne.next=13,storage2.getStorage(D);case 13:if(A=ne.sent,!(typeof this.remoteConfigValidDuration=="number"&&this.remoteConfigValidDuration>0&&A&&typeof A.timestamp=="number"&&A.timestamp>Date.now()-this.remoteConfigValidDuration&&A.hasOwnProperty("useWhiteList")&&A.hasOwnProperty("whiteList"))){ne.next=23;break}return this.useWhiteList=!!A.useWhiteList,this.whiteList=A.whiteList||[],this.noPermissionBaseDAEFieldIndexList=A.noPermissionBaseDAEFieldIndexList||[],this.noPermissionBaseDVMFieldIndexList=A.noPermissionBaseDVMFieldIndexList||[],this.noPermissionExtraFieldList=A.noPermissionExtraFieldList||[],ne.next=22,this.finishWhiteListConfig();case 22:return ne.abrupt("return");case 23:this.useWhiteList=!0,this.whiteList=[],this.loadRemoteWhiteListIdentifier=Math.random(),F=this.loadRemoteWhiteListIdentifier,M=0;case 28:if(!(M<loadRemoteConfigRetryTimes)){ne.next=46;break}return ne.prev=29,ne.next=32,fetchDataFromUrl("https://cdn.marmot-cloud.com/marmot-monitor-config/".concat(this.marmotId,".json"));case 32:if(ee=ne.sent,!(this.loadRemoteWhiteListIdentifier!==F||this.whiteListConfigSource!==k)){ne.next=35;break}return ne.abrupt("return");case 35:return x=JSON.parse(ee||"{}"),typeof(x==null?void 0:x.useWhiteList)=="boolean"&&x!==null&&x!==void 0&&x.whiteList&&(this.useWhiteList=x.useWhiteList,this.whiteList=this.processWhiteListParams(x.whiteList||[]),this.noPermissionBaseDAEFieldIndexList=x.noPermissionBaseDAEFieldIndexList||[],this.noPermissionBaseDVMFieldIndexList=x.noPermissionBaseDVMFieldIndexList||[],this.noPermissionExtraFieldList=x.noPermissionExtraFieldList||[]),ne.abrupt("break",46);case 40:return ne.prev=40,ne.t0=ne.catch(29),ne.abrupt("continue",43);case 43:M++,ne.next=28;break;case 46:return storage2.setStorage(D,{timestamp:Date.now(),useWhiteList:this.useWhiteList,whiteList:this.whiteList,noPermissionBaseDAEFieldIndexList:this.noPermissionBaseDAEFieldIndexList,noPermissionBaseDVMFieldIndexList:this.noPermissionBaseDVMFieldIndexList,noPermissionExtraFieldList:this.noPermissionExtraFieldList}),ne.next=49,this.finishWhiteListConfig();case 49:return ne.abrupt("return");case 50:case"end":return ne.stop()}},I,this,[[29,40]])}));function P(I){return i.apply(this,arguments)}return P})()},{key:"processWhiteListParams",value:function(i){return i.reduce(function(P,I){return P.push.apply(P,_toConsumableArray(LOG_TYPE_TO_CODES[I]||[I])),P},[]).filter(function(P,I,k){return k.indexOf(P)===I})}},{key:"pageMonitor",value:function(i){this.tracert.set(_objectSpread2(_objectSpread2({},i.spmInfo),{},{url:getPath()})),i.logData&&(this.tracert.logPv(i.logData),this.tracert.set({_calledLogPv:!0}))}},{key:"click",value:function(i,P){this.tracert.click(i,P)}},{key:"expo",value:function(i,P){this.tracert.expo(i,P)}},{key:"set",value:function(i){i.server&&(this.server=i.server),i.servers&&(this.servers=i.servers),i.whiteListConfigSource&&this.processWhiteListConfig(i.whiteListConfigSource),typeof i.remoteConfigValidDuration=="number"&&(this.remoteConfigValidDuration=i.remoteConfigValidDuration),this.tracert.set(i)}},{key:"getSessionItem",value:function(i){return sessionStorage.getItem(i)}},{key:"removeSessionItem",value:function(i){return sessionStorage.removeItem(i)}},{key:"setSessionItem",value:function(i,P){sessionStorage.setItem(i,P)}},{key:"getDataFilter",value:function(){var i=this;return function(P){return new Promise(function(I){var k=(function(){var D=_asyncToGenerator(_regeneratorRuntime().mark(function A(){var F;return _regeneratorRuntime().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(i.useWhiteList){M.next=2;break}return M.abrupt("return",I(P));case 2:if(F=(function(){var ee=_asyncToGenerator(_regeneratorRuntime().mark(function x(){var ne,re,ue;return _regeneratorRuntime().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(ue=P[0]==="D-VM",!(ue&&(ne=i.noPermissionBaseDVMFieldIndexList)!==null&&ne!==void 0&&ne.length)){le.next=3;break}return le.abrupt("return",I(P.map(function(ce,me){var ae;return(ae=i.noPermissionBaseDVMFieldIndexList)!==null&&ae!==void 0&&ae.includes(me)?"-":ce})));case 3:if(!(!ue&&(re=i.noPermissionBaseDAEFieldIndexList)!==null&&re!==void 0&&re.length)){le.next=5;break}return le.abrupt("return",I(P.map(function(ce,me){var ae;return(ae=i.noPermissionBaseDAEFieldIndexList)!==null&&ae!==void 0&&ae.includes(me)?"-":ce})));case 5:return le.abrupt("return",I(P));case 6:case"end":return le.stop()}},x)}));return function(){return ee.apply(this,arguments)}})(),i.isWhiteListConfigReady){M.next=7;break}i.logCacheBeforeWhiteListReady.push(F),M.next=9;break;case 7:return M.next=9,F();case 9:case"end":return M.stop()}},A)}));return function(){return D.apply(this,arguments)}})();k()})}}},{key:"getExtraDataFilter",value:function(){var i=this;return function(P){return new Promise(function(I){var k=(function(){var D=_asyncToGenerator(_regeneratorRuntime().mark(function A(){var F;return _regeneratorRuntime().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(i.useWhiteList){M.next=2;break}return M.abrupt("return",I(P));case 2:if(F=(function(){var ee=_asyncToGenerator(_regeneratorRuntime().mark(function x(){var ne;return _regeneratorRuntime().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(!((ne=i.noPermissionExtraFieldList)!==null&&ne!==void 0&&ne.length)){re.next=2;break}return re.abrupt("return",I(Object.keys(P||{}).reduce(function(ue,le){var ce;return(ce=i.noPermissionExtraFieldList)!==null&&ce!==void 0&&ce.includes(le)||(ue[le]=P[le]),ue},{})));case 2:return re.abrupt("return",I(P));case 3:case"end":return re.stop()}},x)}));return function(){return ee.apply(this,arguments)}})(),i.isWhiteListConfigReady){M.next=7;break}i.logCacheBeforeWhiteListReady.push(F),M.next=9;break;case 7:return M.next=9,F();case 9:case"end":return M.stop()}},A)}));return function(){return D.apply(this,arguments)}})();k()})}}},{key:"getRequester",value:function(){var i=this;return(function(){var P=_asyncToGenerator(_regeneratorRuntime().mark(function I(k,D){var A,F,M;return _regeneratorRuntime().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(F=(A=i.servers)!==null&&A!==void 0&&A.length?i.servers:[i.server],M=(function(){var x=_asyncToGenerator(_regeneratorRuntime().mark(function ne(){var re,ue,le,ce,me,ae;return _regeneratorRuntime().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(re=i.useWhiteList?i.inWhiteList(D):!0,!re){fe.next=13;break}ue=i.beforeSendData||[],le=0;case 4:if(!(le<ue.length)){fe.next=13;break}if(me=(ce=ue[le])===null||ce===void 0?void 0:ce.call(i,D,k),me!==!1){fe.next=10;break}return log("skip data send"),re=!1,fe.abrupt("break",13);case 10:le++,fe.next=4;break;case 13:if(!re){fe.next=22;break}if(!(i.enableJSAPIReport&&!i._jsapiFailed)){fe.next=20;break}return ae=i.calcLogCategory(D),fe.next=18,i.handleJSAPIReport(k,ae,F);case 18:fe.next=22;break;case 20:return fe.next=22,i.sendDataToServer(k,F);case 22:case"end":return fe.stop()}},ne)}));return function(){return x.apply(this,arguments)}})(),i.isWhiteListConfigReady){ee.next=6;break}i.logCacheBeforeWhiteListReady.push(M),ee.next=8;break;case 6:return ee.next=8,M();case 8:case"end":return ee.stop()}},I)}));return function(I,k){return P.apply(this,arguments)}})()}},{key:"sendDataToServer",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(k,D){return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,Promise.all(D.map((function(){var F=_asyncToGenerator(_regeneratorRuntime().mark(function M(ee){var x,ne;return _regeneratorRuntime().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(ee){re.next=2;break}return re.abrupt("return");case 2:if(!supportsSendBeacon()){re.next=12;break}return x="data=".concat(encodeURIComponent(k),"&time=").concat(Date.now()),re.next=6,sendBeacon(x,ee);case 6:if(ne=re.sent,ne){re.next=10;break}return re.next=10,sendFetchData(ee,[k],[]);case 10:re.next=14;break;case 12:return re.next=14,sendFetchData(ee,[k],[]);case 14:case"end":return re.stop()}},M)}));return function(M){return F.apply(this,arguments)}})()));case 2:case"end":return A.stop()}},I)}));function P(I,k){return i.apply(this,arguments)}return P})()},{key:"handleJSAPIReport",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(k,D,A){var F;return _regeneratorRuntime().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.prev=0,M.next=3,this.reportToContainer(D,k);case 3:if(F=M.sent,!F){M.next=6;break}return M.abrupt("return");case 6:this._jsapiFailed=!0,M.next=13;break;case 9:M.prev=9,M.t0=M.catch(0),error("[JSAPI Report Error]",M.t0),this._jsapiFailed=!0;case 13:if(!(A.length>0&&this._jsapiFailed)){M.next=16;break}return M.next=16,this.sendDataToServer(k,A);case 16:case"end":return M.stop()}},I,this,[[0,9]])}));function P(I,k,D){return i.apply(this,arguments)}return P})()},{key:"reportToContainer",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(k,D){var A;return _regeneratorRuntime().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.prev=0,F.next=3,waitForJSBridgeReady(3e3);case 3:return F.next=5,callFullLinkTrackReport(k,D);case 5:return A=F.sent,F.abrupt("return",A);case 9:return F.prev=9,F.t0=F.catch(0),this._jsapiFailed=!0,F.abrupt("return",!1);case 13:case"end":return F.stop()}},I,this,[[0,9]])}));function P(I,k){return i.apply(this,arguments)}return P})()},{key:"inWhiteList",value:function(i){var P,I,k,D=i.spmId&&["pageMonitor","clicked","exposure"].includes(i.actionId),A=!D&&typeof i.code=="string",F=!D&&!A&&["web_info","web_error"].includes(i.eventId);return!(D&&!((P=this.whiteList)!==null&&P!==void 0&&P.includes("spm_".concat(i.actionId)))||A&&!((I=this.whiteList)!==null&&I!==void 0&&I.includes(i.code))||F&&!((k=this.whiteList)!==null&&k!==void 0&&k.includes(i.eventId)))}},{key:"calcLogCategory",value:function(i){return"eventId"in i?i.eventId==="web_error"?LogCategory.Crash:LogCategory.AntEvent:"logType"in i?this.isErrorLog(i)?LogCategory.Crash:LogCategory.AntEvent:LogCategory.UserBehavior}},{key:"isErrorLog",value:function(i){var P=["1","3","4","10001","10002","10104","10111","10120","10121","10150","22005","22052"];return P.indexOf(i==null?void 0:i.code)!==-1||(i==null?void 0:i.code)==="22061"&&String(i==null?void 0:i.d2)==="0"||(i==null?void 0:i.code)==="22071"&&String(i==null?void 0:i.d2)==="0"}}]),n})(Plugin)}}),containerPageSessionId,Browser,init_Browser=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/core/plugins/Browser/index.js":function(){init_createForOfIteratorHelper(),init_objectSpread2(),init_slicedToArray(),init_regeneratorRuntime(),init_typeof(),init_asyncToGenerator(),init_classCallCheck(),init_createClass(),init_assertThisInitialized(),init_get(),init_getPrototypeOf(),init_inherits(),init_createSuper(),init_defineProperty(),init_constants(),init_jsapi(),init_performance(),init_t2(),init_whiteScreen(),init_utils(),init_behaviorHandler(),init_getClientFromUA(),init_getEnv(),init_getMiniPerformance(),init_onError(),init_onHTTPError(),init_performance2(),init_reportAPI(),init_storage(),init_getSystemInfo(),init_lib(),init_Spm(),document.addEventListener("sendPageInfo",function(t){var e;containerPageSessionId=t==null||(e=t.data)===null||e===void 0?void 0:e.pageSessionId}),Browser=(function(t){_inherits(n,t);var e=_createSuper(n);function n(){var i;_classCallCheck(this,n);for(var P=arguments.length,I=new Array(P),k=0;k<P;k++)I[k]=arguments[k];return i=e.call.apply(e,[this].concat(I)),_defineProperty(_assertThisInitialized(i),"performanceCache",void 0),_defineProperty(_assertThisInitialized(i),"systemInfoPromise",getSystemInfo2()),_defineProperty(_assertThisInitialized(i),"isMarmot",void 0),_defineProperty(_assertThisInitialized(i),"visibleState",void 0),_defineProperty(_assertThisInitialized(i),"whiteScreenMonitor",void 0),i}return _createClass(n,[{key:"init",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(k){var D=this,A,F;return _regeneratorRuntime().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return this.isMarmot=k.isMarmot,A=this.getSessionItem("intlTrackerSessionId"),A||(F=getUuid(),this.setSessionItem("intlTrackerSessionId",F),A=F),this.set({sessionId:A}),document.addEventListener("pause",function(){D.visibleState="hidden"}),document.addEventListener("pagePause",function(){D.visibleState="page-hidden"}),document.addEventListener("appPause",function(){D.visibleState="app-hidden"}),document.addEventListener("resume",function(){D.visibleState="visible"}),document.addEventListener("pageResume",function(){D.visibleState="page-visible"}),document.addEventListener("appResume",function(){D.visibleState="app-visible"}),this.whiteScreenMonitor=new WhiteScreenMonitor(k.appId,this,(function(){var ee=_asyncToGenerator(_regeneratorRuntime().mark(function x(ne){var re,ue;return _regeneratorRuntime().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(_typeof(k.whiteScreenConfig)!=="object"){le.next=3;break}return le.next=3,(re=k.whiteScreenConfig)===null||re===void 0||(ue=re.callback)===null||ue===void 0?void 0:ue.call(re,ne);case 3:case"end":return le.stop()}},x)}));return function(x){return ee.apply(this,arguments)}})()),M.next=13,_get(_getPrototypeOf(n.prototype),"init",this).call(this,k);case 13:case"end":return M.stop()}},I,this)}));function P(I){return i.apply(this,arguments)}return P})()},{key:"getSessionId",value:function(){return this.getSessionItem("intlTrackerSessionId")||""}},{key:"getStorageItem",value:function(i){return storage2.getStorage(i)}},{key:"removeStorageItem",value:function(i){return storage2.removeStorage(i)}},{key:"setStorageItem",value:function(i,P){return storage2.setStorage(i,P)}},{key:"getAnalyzePerformanceInfo",value:function(){return this.getPerformance()}},{key:"getWhiteScreenInfo",value:function(i){if(this.isMarmot){if(i.selector){var P=Array.isArray(i.selector)?i.selector:[i.selector],I=getElementVisibleInfo(P,i.ignoreNotInViewport),k=I.visible,D=I.elementType;return Promise.resolve({status:k?"ok":"error",blankType:k?void 0:D==="skeleton"?"skeleton":"blank"})}return Promise.resolve({status:"ok"})}return new Promise(function(A){openWhiteScreen(A,{skeletonProject:!1,whiteBoxElements:["html","body","#app","#root"]})})}},{key:"getPagePerformanceInfo",value:function(){var i=this.getPerformance(),P={},I=getMiniPerformance();for(var k in i)P[k]=i[k]>=MAX_TIME||!i[k]?MIN_TIME:i[k];var D=numFormat(P.redirectEnd||MIN_TIME,P.redirectStart||MIN_TIME),A=numFormat(P.domainLookupEnd||MIN_TIME,P.domainLookupStart||MIN_TIME),F=numFormat(P.connectEnd||MIN_TIME,P.connectStart||MIN_TIME),M=numFormat(P.responseEnd||MIN_TIME,P.responseStart||MIN_TIME),ee=numFormat(P.domComplete||MIN_TIME,P.responseEnd||MIN_TIME),x=numFormat(P.domContentLoadedEventStart||MIN_TIME,P.navigationStart||MIN_TIME),ne=numFormat(P.loadEventEnd||MIN_TIME,P.navigationStart||MIN_TIME),re=numFormat(P.domainLookupStart||MIN_TIME,P.fetchStart||MIN_TIME),ue=numFormat(P.connectEnd||MIN_TIME,P.secureConnectionStart||MIN_TIME),le=numFormat(P.loadEventEnd||MIN_TIME,P.responseEnd||MIN_TIME),ce=numFormat(P.domInteractive||MIN_TIME,P.navigationStart||MIN_TIME),me=numFormat(P.domContentLoadedEventEnd||MIN_TIME,P.domContentLoadedEventStart||MIN_TIME),ae=numFormat(P.domComplete||MIN_TIME,P.navigationStart||MIN_TIME),fe=numFormat(P.responseStart||MIN_TIME,P.requestStart||MIN_TIME);return{random:RANDOM,onload:isGreater(ne),domContentLoad:isGreater(x),redirect:isGreater(D),appCache:isGreater(re),dns:isGreater(A),tcp:isGreater(F),ssl:isGreater(ue),reqt:isGreater(fe),rest:isGreater(M),dpt:isGreater(ee),ft:isGreater(le),domInteractive:isGreater(ce),domReady:isGreater(me),domComplete:isGreater(ae),miniPerformance:I,timeOrigin:window.performance.timeOrigin}}},{key:"getFMP",value:function(i){return getFMP(i)}},{key:"getFP",value:function(){return getFP()}},{key:"getTTI",value:function(){return getTTI()}},{key:"getT2Time",value:function(){return calculateT2Time()}},{key:"getWebVitalsInfo",value:function(){var i=getFCP(),P=getTTFB(),I=getLCP(),k=getINP(),D=getCLS();return{fcp:i,ttfb:P,lcp:I,inp:k,cls:D}}},{key:"onError",value:function(i){return onError(i)}},{key:"log",value:function(i,P){this.tracert.log(i,P)}},{key:"onPageLoad",value:function(i){var P=function(){i()};return document.readyState==="complete"?(P(),function(){}):(window.addEventListener("load",P),function(){window.removeEventListener("load",P)})}},{key:"getOSInfo",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(){var k,D;return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.t0=Promise,A.next=3,this.systemInfoPromise;case 3:if(A.t2=k=A.sent,A.t1=A.t2===null,A.t1){A.next=7;break}A.t1=k===void 0;case 7:if(!A.t1){A.next=11;break}A.t3=void 0,A.next=12;break;case 11:A.t3=k.platform;case 12:return A.t4=A.t3,A.next=15,this.systemInfoPromise;case 15:if(A.t6=D=A.sent,A.t5=A.t6===null,A.t5){A.next=19;break}A.t5=D===void 0;case 19:if(!A.t5){A.next=23;break}A.t7=void 0,A.next=24;break;case 23:A.t7=D.system;case 24:return A.t8=A.t7,A.t9={os:A.t4,osVer:A.t8},A.abrupt("return",A.t0.resolve.call(A.t0,A.t9));case 27:case"end":return A.stop()}},I,this)}));function P(){return i.apply(this,arguments)}return P})()},{key:"getEnvInfo",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(){var k,D,A,F;return _regeneratorRuntime().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return D=getCookie("x-marmot-canary")||getCookie("_CHIPS-x-marmot-canary"),A=getCookie("x-marmot-version")||getCookie("_CHIPS-x-marmot-version"),F=getCookie("x-marmot-unio-trace-id")||getCookie("_CHIPS-x-marmot-unio-trace-id"),M.abrupt("return",Promise.resolve({env:getEnv(),sprintId:(k=window.marmotInjectInfo)===null||k===void 0?void 0:k.iterationUniqId,canaryFlag:D||A?JSON.stringify([D,A]):void 0,unioTraceId:F}));case 4:case"end":return M.stop()}},I)}));function P(){return i.apply(this,arguments)}return P})()},{key:"getNetWorkInfo",value:function(){var i;return Promise.resolve({networkType:this.tracert.get("networkType")||((i=window.navigator.connection)===null||i===void 0?void 0:i.effectiveType)})}},{key:"getDefaultExtraInfo",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(){var k,D,A,F,M,ee,x,ne,re,ue;return _regeneratorRuntime().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return A=!!this.tracert.get("compactExtraInfo"),le.next=3,Promise.all([this.getBrowserInfo(A),this.getEnvInfo(),this.getOSInfo(),this.getDeviceInfo(A),this.getNetWorkInfo()]);case 3:return F=le.sent,M=_slicedToArray(F,5),ee=M[0],x=M[1],ne=M[2],re=M[3],ue=M[4],le.abrupt("return",_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},ee),x),ne),re),ue),{},{visibleState:(k=(D=this.visibleState)!==null&&D!==void 0?D:document.visibilityState)!==null&&k!==void 0?k:document.webkitVisibilityState}));case 11:case"end":return le.stop()}},I,this)}));function P(){return i.apply(this,arguments)}return P})()},{key:"getBrowserInfo",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(){var k,D,A,F,M,ee,x=arguments;return _regeneratorRuntime().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return F=x.length>0&&x[0]!==void 0?x[0]:!1,ne.next=3,this.systemInfoPromise;case 3:if(M=ne.sent,ee={title:document.title,domCnt:document.querySelectorAll("*").length,scrollTop:(k=window.document.body)===null||k===void 0?void 0:k.scrollTop,clientVer:M==null?void 0:M.version,containerPageSessionId,containerSessionId:((D=window)===null||D===void 0||(D=D.AlipayJSBridge)===null||D===void 0||(D=D.startupParams)===null||D===void 0?void 0:D.sessionId)||((A=window)===null||A===void 0||(A=A.AlipayJSBridge)===null||A===void 0?void 0:A.sessionId),browser:(M==null?void 0:M.browser)||"",container:(M==null?void 0:M.container)||"",cCoreVer:(M==null?void 0:M.cCoreVer)||"",referrer:window.document.referrer},!F){ne.next=7;break}return ne.abrupt("return",ee);case 7:return ne.abrupt("return",_objectSpread2(_objectSpread2({},ee),{},{fullUrl:window.location.href,url:window.location.href.split("?")[0],ua:window.navigator.userAgent,sessionId:this.tracert.get("sessionId")}));case 8:case"end":return ne.stop()}},I,this)}));function P(){return i.apply(this,arguments)}return P})()},{key:"getDeviceInfo",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(){var k,D,A,F,M,ee,x,ne,re,ue,le,ce,me=arguments;return _regeneratorRuntime().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return k=me.length>0&&me[0]!==void 0?me[0]:!1,ae.next=3,this.systemInfoPromise;case 3:if(D=ae.sent,A=D.platform,F=D.model,M=D.screenWidth,ee=D.screenHeight,x=D.brand,ne=A==="PC"?A:"H5",(["iOS","Android","H5"].indexOf(A)>-1||!A)&&client&&platform2&&(re=_defineProperty(_defineProperty(_defineProperty({},PLATFORM.WEB,"Web"),PLATFORM.MPWEB,"MpWeb"),PLATFORM.MP,"Mp")[platform2],ue=client.slice(0,1).toUpperCase()+client.slice(1).toLowerCase(),ne="".concat(re).concat(ue)),le=getClientFromUA(window.navigator.userAgent),le&&(ne=le),ce={pixelRatio:window.devicePixelRatio,cClient:ne,deviceModel:F,deviceBrand:x},!k){ae.next=16;break}return ae.abrupt("return",ce);case 16:return ae.abrupt("return",_objectSpread2(_objectSpread2({},ce),{},{screenWidth:M,screenHeight:ee}));case 17:case"end":return ae.stop()}},I,this)}));function P(){return i.apply(this,arguments)}return P})()},{key:"onHTTPError",value:function(i){var P=this;return onHTTPError(function(I){var k,D=(k=P.servers)!==null&&k!==void 0&&k.length?P.servers:[P.server];D&&I.url&&D.find(function(A){return A&&I.url.indexOf(A)===0})||i(I)})}},{key:"reportAPI",value:function(i,P){var I=this;return reportAPI(i,function(k){var D,A,F=(D=I.servers)!==null&&D!==void 0&&D.length?I.servers:[I.server];F&&k.url&&F.find(function(M){return M&&k.url.indexOf(M)===0})||i!=null&&(A=i.excludes)!==null&&A!==void 0&&A.some(function(M){var ee=k.url||"";return M instanceof RegExp?M.test(ee):ee.indexOf(M)!==-1})||P(k)})}},{key:"triggerPreCaptureReport",value:function(i){var P,I=(P=window._trackerPreCapture)!==null&&P!==void 0?P:{},k=I.listener,D=I.events;if(!(!window._trackerPreCapture||!k||!D)){var A=_createForOfIteratorHelper(D),F;try{for(A.s();!(F=A.n()).done;){var M=F.value;if(M){var ee=isPromiseRejectionEvent(M);if(ee){var x,ne,re;i({type:"promise-error",message:(x=(ne=M.reason)===null||ne===void 0?void 0:ne.message)!==null&&x!==void 0?x:M.reason,extra:{stack:(re=M.reason)===null||re===void 0?void 0:re.stack}})}else{var ue,le,ce;i({type:"js-error-addeventlistener",message:(ue=(le=M.error)===null||le===void 0?void 0:le.message)!==null&&ue!==void 0?ue:M.message,extra:{stack:(ce=M.error)===null||ce===void 0?void 0:ce.stack,src:M.filename,lineno:M.lineno,colno:M.colno}})}}}}catch(me){A.e(me)}finally{A.f()}window._trackerPreCapture.events=[],k.error&&(window.removeEventListener("error",k.error,!0),k.error=void 0),k.unhandledrejection&&(window.removeEventListener("unhandledrejection",k.unhandledrejection,!0),k.unhandledrejection=void 0),window._trackerPreCapture.listener={}}}},{key:"getPerformance",value:function(){return this.performanceCache||(this.performanceCache=analyzePerf()),this.performanceCache}},{key:"getAppName",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(){var k,D,A;return _regeneratorRuntime().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return k=getJSBridge(),F.prev=1,F.next=4,(D=k.getSystemInfo)===null||D===void 0?void 0:D.call(k);case 4:return A=F.sent,F.abrupt("return",A==null?void 0:A.app);case 8:return F.prev=8,F.t0=F.catch(1),F.abrupt("return",void 0);case 11:case"end":return F.stop()}},I,null,[[1,8]])}));function P(){return i.apply(this,arguments)}return P})()},{key:"sendPerformanceDataToContainer",value:(function(){var i=_asyncToGenerator(_regeneratorRuntime().mark(function I(k){var D;return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:typeof window!="undefined"&&(D=window.AlipayJSBridge)!==null&&D!==void 0&&D.call&&window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:_objectSpread2({method:"sendPerformance"},k)});case 1:case"end":return A.stop()}},I)}));function P(I){return i.apply(this,arguments)}return P})()},{key:"getDetailPerformance",value:function(){var i,P=(i=window.performance)===null||i===void 0?void 0:i.getEntriesByType("resource").filter(function(I){return COLLECT_RESOURCE_TYPE.includes(I.initiatorType)});return Promise.resolve(getResourcePerformance(P))}},{key:"onFpsLag",value:function(i){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:25,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3;if(window.requestAnimationFrame){var k=Date.now(),D=0,A=[],F=function M(){window.requestAnimationFrame(function(){var ee=Date.now(),x=ee-k;k=ee,A.splice(0,A.length-19),A.push(x),x>P?(D++,D>I?i(A):M()):M()})};F()}}},{key:"startCheckingPageWhiteScreen",value:function(i){var P;return Promise.resolve((P=this.whiteScreenMonitor)===null||P===void 0?void 0:P.open({config:i}))}},{key:"startCheckingDOMWhiteScreen",value:function(i,P){var I,k;return(I=this.whiteScreenMonitor)===null||I===void 0||(k=I.openKeyPoints)===null||k===void 0?void 0:k.call(I,i,P)}},{key:"initBehaviorListener",value:function(i,P){initBehaviorListener(i,P)}}]),n})(Spm)}}),autoReportConfig,requesterWithCacheWrapper,init_report=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/core/report.js":function(){init_objectSpread2(),init_sendBatch(),init_imdapServers(),init_RequesterCacheWrapper(),autoReportConfig=typeof window!="undefined"?window.autoReportConfig:void 0,requesterWithCacheWrapper=new RequesterCacheWrapper(autoReportConfig)}}),tracker,initiTracker,init_esm=__esm({"node_modules/_@antintl_intl-tracker@1.3.2@@antintl/intl-tracker/esm/index.js":function(){init_objectSpread2(),init_CompatibleTracker(),init_Browser(),init_report(),init_Tracker(),init_helper(),init_whiteScreen(),tracker=new CompatibleTracker(Browser),initiTracker=function(t){var e;return tracker.initi(_objectSpread2(_objectSpread2({},t),(e=window)===null||e===void 0?void 0:e.autoReportConfig))}}}),marmot_exports={};__export(marmot_exports,{report:function(){return report3},start:function(){return start}});function initialize(){return initTask||(initTask=initiTracker({appId:MARMOT_APP_ID,bizType:PRODUCT_ID,isMarmot:!0,productId:PRODUCT_ID}).catch(function(){return initTask=null,!1})),initTask}function start(){try{initialize().catch(function(){})}catch(t){}}function report3(t){try{initialize().then(function(e){if(e)try{tracker.log(t)}catch(n){}}).catch(function(){})}catch(e){}}var MARMOT_APP_ID,PRODUCT_ID,initTask,init_marmot=__esm({"src/monitor/utils/marmot.ts":function(){"use strict";init_esm(),MARMOT_APP_ID="180020050100010899",PRODUCT_ID="voyager",initTask=null}}),require_md5=__commonJS({"node_modules/_blueimp-md5@2.19.0@blueimp-md5/js/md5.js":function(t,e){(function(n){"use strict";function i(ie,se){var oe=(ie&65535)+(se&65535),pe=(ie>>16)+(se>>16)+(oe>>16);return pe<<16|oe&65535}function P(ie,se){return ie<<se|ie>>>32-se}function I(ie,se,oe,pe,Se,Pe){return i(P(i(i(se,ie),i(pe,Pe)),Se),oe)}function k(ie,se,oe,pe,Se,Pe,Ie){return I(se&oe|~se&pe,ie,se,Se,Pe,Ie)}function D(ie,se,oe,pe,Se,Pe,Ie){return I(se&pe|oe&~pe,ie,se,Se,Pe,Ie)}function A(ie,se,oe,pe,Se,Pe,Ie){return I(se^oe^pe,ie,se,Se,Pe,Ie)}function F(ie,se,oe,pe,Se,Pe,Ie){return I(oe^(se|~pe),ie,se,Se,Pe,Ie)}function M(ie,se){ie[se>>5]|=128<<se%32,ie[(se+64>>>9<<4)+14]=se;var oe,pe,Se,Pe,Ie,$=1732584193,we=-271733879,ve=-1732584194,be=271733878;for(oe=0;oe<ie.length;oe+=16)pe=$,Se=we,Pe=ve,Ie=be,$=k($,we,ve,be,ie[oe],7,-680876936),be=k(be,$,we,ve,ie[oe+1],12,-389564586),ve=k(ve,be,$,we,ie[oe+2],17,606105819),we=k(we,ve,be,$,ie[oe+3],22,-1044525330),$=k($,we,ve,be,ie[oe+4],7,-176418897),be=k(be,$,we,ve,ie[oe+5],12,1200080426),ve=k(ve,be,$,we,ie[oe+6],17,-1473231341),we=k(we,ve,be,$,ie[oe+7],22,-45705983),$=k($,we,ve,be,ie[oe+8],7,1770035416),be=k(be,$,we,ve,ie[oe+9],12,-1958414417),ve=k(ve,be,$,we,ie[oe+10],17,-42063),we=k(we,ve,be,$,ie[oe+11],22,-1990404162),$=k($,we,ve,be,ie[oe+12],7,1804603682),be=k(be,$,we,ve,ie[oe+13],12,-40341101),ve=k(ve,be,$,we,ie[oe+14],17,-1502002290),we=k(we,ve,be,$,ie[oe+15],22,1236535329),$=D($,we,ve,be,ie[oe+1],5,-165796510),be=D(be,$,we,ve,ie[oe+6],9,-1069501632),ve=D(ve,be,$,we,ie[oe+11],14,643717713),we=D(we,ve,be,$,ie[oe],20,-373897302),$=D($,we,ve,be,ie[oe+5],5,-701558691),be=D(be,$,we,ve,ie[oe+10],9,38016083),ve=D(ve,be,$,we,ie[oe+15],14,-660478335),we=D(we,ve,be,$,ie[oe+4],20,-405537848),$=D($,we,ve,be,ie[oe+9],5,568446438),be=D(be,$,we,ve,ie[oe+14],9,-1019803690),ve=D(ve,be,$,we,ie[oe+3],14,-187363961),we=D(we,ve,be,$,ie[oe+8],20,1163531501),$=D($,we,ve,be,ie[oe+13],5,-1444681467),be=D(be,$,we,ve,ie[oe+2],9,-51403784),ve=D(ve,be,$,we,ie[oe+7],14,1735328473),we=D(we,ve,be,$,ie[oe+12],20,-1926607734),$=A($,we,ve,be,ie[oe+5],4,-378558),be=A(be,$,we,ve,ie[oe+8],11,-2022574463),ve=A(ve,be,$,we,ie[oe+11],16,1839030562),we=A(we,ve,be,$,ie[oe+14],23,-35309556),$=A($,we,ve,be,ie[oe+1],4,-1530992060),be=A(be,$,we,ve,ie[oe+4],11,1272893353),ve=A(ve,be,$,we,ie[oe+7],16,-155497632),we=A(we,ve,be,$,ie[oe+10],23,-1094730640),$=A($,we,ve,be,ie[oe+13],4,681279174),be=A(be,$,we,ve,ie[oe],11,-358537222),ve=A(ve,be,$,we,ie[oe+3],16,-722521979),we=A(we,ve,be,$,ie[oe+6],23,76029189),$=A($,we,ve,be,ie[oe+9],4,-640364487),be=A(be,$,we,ve,ie[oe+12],11,-421815835),ve=A(ve,be,$,we,ie[oe+15],16,530742520),we=A(we,ve,be,$,ie[oe+2],23,-995338651),$=F($,we,ve,be,ie[oe],6,-198630844),be=F(be,$,we,ve,ie[oe+7],10,1126891415),ve=F(ve,be,$,we,ie[oe+14],15,-1416354905),we=F(we,ve,be,$,ie[oe+5],21,-57434055),$=F($,we,ve,be,ie[oe+12],6,1700485571),be=F(be,$,we,ve,ie[oe+3],10,-1894986606),ve=F(ve,be,$,we,ie[oe+10],15,-1051523),we=F(we,ve,be,$,ie[oe+1],21,-2054922799),$=F($,we,ve,be,ie[oe+8],6,1873313359),be=F(be,$,we,ve,ie[oe+15],10,-30611744),ve=F(ve,be,$,we,ie[oe+6],15,-1560198380),we=F(we,ve,be,$,ie[oe+13],21,1309151649),$=F($,we,ve,be,ie[oe+4],6,-145523070),be=F(be,$,we,ve,ie[oe+11],10,-1120210379),ve=F(ve,be,$,we,ie[oe+2],15,718787259),we=F(we,ve,be,$,ie[oe+9],21,-343485551),$=i($,pe),we=i(we,Se),ve=i(ve,Pe),be=i(be,Ie);return[$,we,ve,be]}function ee(ie){var se,oe="",pe=ie.length*32;for(se=0;se<pe;se+=8)oe+=String.fromCharCode(ie[se>>5]>>>se%32&255);return oe}function x(ie){var se,oe=[];for(oe[(ie.length>>2)-1]=void 0,se=0;se<oe.length;se+=1)oe[se]=0;var pe=ie.length*8;for(se=0;se<pe;se+=8)oe[se>>5]|=(ie.charCodeAt(se/8)&255)<<se%32;return oe}function ne(ie){return ee(M(x(ie),ie.length*8))}function re(ie,se){var oe,pe=x(ie),Se=[],Pe=[],Ie;for(Se[15]=Pe[15]=void 0,pe.length>16&&(pe=M(pe,ie.length*8)),oe=0;oe<16;oe+=1)Se[oe]=pe[oe]^909522486,Pe[oe]=pe[oe]^1549556828;return Ie=M(Se.concat(x(se)),512+se.length*8),ee(M(Pe.concat(Ie),640))}function ue(ie){var se="0123456789abcdef",oe="",pe,Se;for(Se=0;Se<ie.length;Se+=1)pe=ie.charCodeAt(Se),oe+=se.charAt(pe>>>4&15)+se.charAt(pe&15);return oe}function le(ie){return unescape(encodeURIComponent(ie))}function ce(ie){return ne(le(ie))}function me(ie){return ue(ce(ie))}function ae(ie,se){return re(le(ie),le(se))}function fe(ie,se){return ue(ae(ie,se))}function ye(ie,se,oe){return se?oe?ae(se,ie):fe(se,ie):oe?ce(ie):me(ie)}typeof e=="object"&&e.exports?e.exports=ye:n.md5=ye})(t)}});function checkAndriodSpecial(){return!0}function parseStack(t){for(var e=t.slice(0,STACK_LENGTH_LIMIT),n=["",""],i={},P=1,I=0;I<e.length;I+=1){var k=ChromeREGEX,D=(e[I]||"").match(k);if(D===null&&(k=GeckoREGEX,D=(e[I]||"").match(k)),D===null&&(k=WinJSREGEX,D=(e[I]||"").match(k)),D!==null){var A=D[1],F=i[A];F===void 0&&(i[A]="#".concat(P,"#"),P+=1,F=i[A]),e[I]=e[I].replace(A,F)}}e.length>0&&(n[1]=e.map(function(x){return x.trim()}).join(""));var M="";for(var ee in i)i.hasOwnProperty(ee)&&(M+="".concat(ee,"@").concat(i[ee],";"));return M=M.replace(/;$/,""),n[0]=M,n.join("").replace(/\^/g,"").replace(/=/g,"").replace(/,/g,"")}function unParseStack(t){var e=t&&t.split("")||[];if(!e[0]||!e[1])return t;for(var n={},i=e[0].split(";"),P=0;P<i.length;P+=1){var I=i[P]&&i[P].split("@#");n["#".concat(I[1])]=I[0]}return e[1].replace(/#[0-9]+#/g,function(k){return n[k]||""}).replace(/\u0004/g,"^").replace(/\u0005/g,"=").replace(/\u0006/g,",").split("")}var import_blueimp_md5,checkEnv,generateHandler,ErrorStack,STACK_LENGTH_LIMIT,ChromeREGEX,GeckoREGEX,WinJSREGEX,helper2,compressStack2,uncompressStack2,init_index_esm=__esm({"node_modules/_@alipay_monitor-stack@0.2.25@@alipay/monitor-stack/dist/index.esm.js":function(){init_toConsumableArray(),init_slicedToArray(),init_classCallCheck(),init_createClass(),import_blueimp_md5=__toESM(require_md5()),init_typeof(),checkEnv=(function(t){return function(){if(!t||!t.navigator||!t.navigator.userAgent)return"";var e=t.navigator.userAgent,n=!!e.match(/iphone|ipad|iPod/gi),i=!!e.match(/android/gi),P=!!e.match(/Firefox/gi),I=!!e.match(/Chrome/gi),k=!e.match(/Chrome/gi)&&!!e.match(/Safari/gi),D=!!e.match(/Opera/gi),A=!!e.match(/MSIE/gi),F="";return n&&(F="iOS"),i&&(F="Android"),P&&(F="Firefox"),I&&(F="Chrome"),k&&(F="Safari"),D&&(F="Opera"),A&&(F="IE"),F}})(void 0),generateHandler=function(t){switch(t){case"iOS":return{filter:function(e){return e.indexOf("[native code]")<0&&e.indexOf("@")>=0}};case"Android":return{filter:function(e,n){return n&&e.indexOf("nonymous")<0&&checkAndriodSpecial()}};default:return{filter:function(){return!0}}}},ErrorStack=(function(){function t(e){_classCallCheck(this,t),this.env=e||checkEnv(),this.stackFilter=generateHandler(this.env).filter}return _createClass(t,[{key:"makeReg",value:function(){switch(this.env){case"iOS":return new RegExp("(?:\\s*)\\w+(?=@)|(?:@).*?(?=:\\d*:)|(?::)\\d*(?=:)|(?::)\\d*$","g");default:return null}}},{key:"stackFormatter",value:function(e){var n=e.message,i=e.stack,P=[],I=this.env==="Android",k=this.env==="iOS",D=i.split(`
|
|
7
7
|
`).filter(this.stackFilter);D.shift();var A=D.join(`
|
|
8
8
|
`),F=this.makeReg();F?D.map(function(ee){var x=ee.match(F);if(x){var ne=_slicedToArray(x,4),re=ne[0],ue=re===void 0?"":re,le=ne[1],ce=le===void 0?"":le,me=ne[2],ae=me===void 0?"":me,fe=ne[3],ye=fe===void 0?"":fe,ie=I?ue.split(".").reverse()[0]:ue,se=k?1:0;P.push("at ".concat(ie," (").concat(ce.substr(se),":").concat(ae.substr(se),":").concat(ye.substr(se),")"))}else P.push(ee);return null}):P=D;var M=this.encryptStack(n,P);return{hash:M,message:n,stackList:P,stackStr:A}}},{key:"encryptStack",value:function(e,n){var i=[].concat(_toConsumableArray(n.slice(0,6)),_toConsumableArray(n.slice(7,8)),_toConsumableArray(n.slice(9,10)),_toConsumableArray(n.slice(11,12)),_toConsumableArray(n.slice(13,14))),P=i.join(";");return(0,import_blueimp_md5.default)("".concat(e,":").concat(P))}}])})(),STACK_LENGTH_LIMIT=20,ChromeREGEX=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,GeckoREGEX=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,WinJSREGEX=/^\s*at (?:(?:\[object object\])?.+ )?\(?((?:file|ms-appx|https?|blob):.*?):\d+(?::\d+)?\)?\s*$/i,typeof process=="undefined"||_typeof(process),helper2={compressStack:function(t){return parseStack(t)},uncompressStack:function(t){return unParseStack(t)}},compressStack2=helper2.compressStack,uncompressStack2=helper2.uncompressStack}});function _arrayLikeToArray2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function _arrayWithoutHoles2(t){if(Array.isArray(t))return _arrayLikeToArray2(t)}function _classCallCheck2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties2(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey(i.key),i)}}function _createClass2(t,e,n){return e&&_defineProperties2(t.prototype,e),n&&_defineProperties2(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty2(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _iterableToArray2(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _nonIterableSpread2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(P){return Object.getOwnPropertyDescriptor(t,P).enumerable})),n.push.apply(n,i)}return n}function _objectSpread22(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ownKeys2(Object(n),!0).forEach(function(i){_defineProperty2(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys2(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _toConsumableArray2(t){return _arrayWithoutHoles2(t)||_iterableToArray2(t)||_unsupportedIterableToArray2(t)||_nonIterableSpread2()}function _toPrimitive(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return typeof e=="symbol"?e:e+""}function _typeof2(t){"@babel/helpers - typeof";return _typeof2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof2(t)}function _unsupportedIterableToArray2(t,e){if(t){if(typeof t=="string")return _arrayLikeToArray2(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray2(t,e):void 0}}function allFieldsReady(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(!e.length)return!0;for(var i=0;i<e.length;i++){var P=e[i];if(t[P]===null||t[P]===void 0)return n&&n("Field is required. Log cached."),!1}return!0}function shallowMerge(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function objectAssign(t,e){if(!e||_typeof2(e)!=="object")return t;var n=t||{};for(var i in e)e.hasOwnProperty(i)&&e[i]!==void 0&&(n[i]=e[i]);return n}function getProperty(t,e){for(var n=e.split("."),i=0;i<n.length-1;i++)if(t=t[n[i]],_typeof2(t)!=="object"||!t||Array.isArray(t))return"";return t[n.pop()]}function setProperty(t,e,n){for(var i=e.split("."),P=0;P<i.length-1;P++){if(_typeof2(t[i[P]])!=="object"&&t[i[P]]!==void 0||Array.isArray(t[i[P]]))return;t[i[P]]||(t[i[P]]={}),t=t[i[P]]}t[i.pop()]=n}function nodeListToArray2(t){var e,n;try{return e=[].slice.call(t),e}catch(P){e=[],n=t.length;for(var i=0;i<n;i++)e.push(t[i]);return e}}function getAttr2(t,e){return t&&t.getAttribute&&t.getAttribute(e)||""}function getGlobal2(){if(!eval)return typeof global!="undefined"?global:window;try{return(0,eval)("this")}catch(t){return typeof global!="undefined"?global:window}}function getOptionsDefaulter(){return defaulterSingleton||(defaulterSingleton=createOptionsDefaulter()),defaulterSingleton}function getMetaOptions(){var t={};for(var e in metaMap)if(metaMap.hasOwnProperty(e)){var n=getMetaInfo(metaMap[e]);n&&(t[e]=n)}return t}function createOptionsDefaulter(){var t=new OptionsDefaulter,e=getMetaOptions();return t.set("yuyanId","call",function(n){return n||e.yuyanId}),t.set("bmAppid","call",function(n,i){return i.yuyanId?null:n||(i.appid?i.appid:i._appId||e._appId)}),t.set("userId","call",function(n,i){return i.roleId?i.roleId:n}),t.set("disableInterface","call",function(n){return n||!1}),t.set("oncePerSession","call",function(n){return n||!1}),t.set("autoCapture","call",function(n,i){return i.hasOwnProperty("autoCapture")?!!i.autoCapture:!0}),t.set("autoEnv","call",function(n,i){return i.hasOwnProperty("autoEnv")?!!i.autoEnv:!0}),t.set("defaults","call",function(n){return objectAssign({},n)}),t.set("sprintId","call",function(n){return n||e.sprintId}),t.set("requiredFields","call",function(n){return Array.isArray(n)?n:typeof n=="string"?[n]:[]}),t.set("eventId","call",function(n,i){return i.appType==="PC"?"102022":"102023"}),t.set("beforeLog","call",function(n){if(typeof n=="function")return n}),t.set("callBridge","call",function(n){if(typeof n=="function")return n}),t.set("plugins","call",function(n){return Array.isArray(n)?n:["tracert","performance","buc"]}),t.set("forceHttpReport","call",function(n){return!!n}),t}function logError(t,e,n){var i=n.log,P=n._warn,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{var k=(I==null?void 0:I.code)||ErrorCodeEnums.JS,D="";if(t)if(t.stack){var A=es.stackFormatter(t),F=A.hash,M=A.stackList;D=F,F&&M&&M.length&&e(F,function(ee,x){if(ee)return P("hash\u68C0\u6D4B\u5931\u8D25",ee);x||i(_objectSpread22(_objectSpread22({},I),{},{code:ErrorCodeEnums.JS,s1:F,s2:compressStack2(M),s3:1}))}),i(_objectSpread22({code:k,msg:t.message,s10:D},I),{originalError:t})}else i(_objectSpread22({code:k,msg:t.message||t},I),{originalError:t})}catch(ee){P("\u5F02\u5E38\u4E0A\u62A5\u5931\u8D25:",ee)}}function codeEquals(t,e){return String(t)===String(e)}function escapeValidation(t){return Number(t)>22e3&&Number(t)<23e3}function newPreProcess(t,e,n,i){var P,I=e.destroyed,k=e.beforeLog,D=e._warn,A=e.tenant;if(!I){if(typeof k=="function")try{t=k(t,{originalError:i==null?void 0:i.originalError})}catch(ie){D("beforeLog \u5931\u8D25\uFF1A",ie)}if(!t||_typeof2(t)!=="object"||Array.isArray(t)){D("beforeLog\u8FD4\u56DE\u503C\u4E0D\u662F\u5BF9\u8C61\uFF0C\u4E0D\u8FDB\u884C\u4E0A\u62A5");return}var F=[t.code,t.msg||"",t.uid].join("_"),M=newTrackedLogs[F],ee=(P=t.oncePerSession)!==null&&P!==void 0?P:e.oncePerSession;if(ee&&M){e._warn("\u5F53\u524D\u7531\u4E8E OncePerSession \u7B56\u7565\uFF0C\u672A\u88AB\u91C7\u96C6");return}var x=t.bmAppid||e.bmAppid;if(x===e.bmAppid){var ne,re;if(codeEquals(t.code,PERFORMACE_RESERVED_CODE)||A!=="MAIN_SITE")return t;var ue=((ne=e.monitorOptionMap)===null||ne===void 0?void 0:ne[Number(t.code)])||((re=e.monitorOptionMap)===null||re===void 0?void 0:re["".concat(t.code)]);if(!n&&!e.monitorConfigFailed&&!ue&&!escapeValidation(t.code)){e._warn("\u76D1\u63A7\u5E73\u53F0\u6CA1\u6709\u8BE5\u76D1\u63A7\u9879\u7684\u914D\u7F6E: ".concat(t.code));return}if(ue&&(!ue.isActive||ue.isDeleted)){e._warn("\u8BE5\u76D1\u63A7\u9879\u672A\u542F\u7528\u6216\u5DF2\u88AB\u5E9F\u5F03: ".concat(t.code));return}var le=ue!=null&&ue.sampleRate&&t.defaultSampleRate?1:t.defaultSampleRate||t.sampleRate||1;if(le!==1&&Math.random()>Number(le)){D("\u5F53\u524D\u5DF2\u8BBE\u7F6E\u4EE3\u7801\u91C7\u6837\u7387 ".concat(le,"\uFF0C\u672A\u88AB\u91C7\u96C6"));return}if(ue){var ce=ue.sampleRate||1;if(ce!==1&&Math.random()>Number(ce)){D("\u5F53\u524D\u5DF2\u914D\u7F6E\u91C7\u6837\u7387 ".concat(ce,"\uFF0C\u672A\u88AB\u91C7\u96C6"));return}objectAssign(t,{sampleRate:ce}),ue.level&&objectAssign(t,{level:ue.level});for(var me={},ae=ue.fields||[],fe=0;fe<ae.length;fe++)me[ae[fe]]=!0;for(var ye in t)!me[ye]&&/^[dmc]\d+$/.test(ye)&&delete t[ye]}}return newTrackedLogs[F]=1,t}}var OptionsDefaulter,defaulterSingleton,getMetaInfo,metaMap,ErrorCodeEnums,CodeLevelEnums,enums,es,newTrackedLogs,PERFORMACE_RESERVED_CODE,init_index_esm2=__esm({"node_modules/_@alipay_yuyan-monitor-utils@4.3.1@@alipay/yuyan-monitor-utils/dist/index.esm.js":function(){init_index_esm(),OptionsDefaulter=(function(){function t(){_classCallCheck2(this,t),this.defaults={},this.configs={}}return _createClass2(t,[{key:"set",value:function(e,n,i){i!==void 0?(this.defaults[e]=i,this.configs[e]=n):(this.defaults[e]=n,delete this.configs[e])}},{key:"process",value:function(e){var n;e=objectAssign({},e);for(var i in this.defaults)if(this.defaults.hasOwnProperty(i))switch(this.configs[i]){case"call":setProperty(e,i,this.defaults[i].call(this,getProperty(e,i),e));break;case"make":getProperty(e,i)===void 0&&setProperty(e,i,this.defaults[i].call(this,e));break;case"append":var P=getProperty(e,i);Array.isArray(P)||(P=[]),(n=P).push.apply(n,_toConsumableArray2(this.defaults[i])),setProperty(e,i,P);break;default:getProperty(e,i)===void 0&&setProperty(e,i,this.defaults[i])}return e}}])})(),getMetaInfo=(function(t){return function(e){var n;if(!(!(t==null||(n=t.document)===null||n===void 0)&&n.querySelectorAll))return"";for(var i=nodeListToArray2(t.document.querySelectorAll("meta")),P=0;P<i.length;P++){var I=i[P];if(getAttr2(I,"name")===e)return getAttr2(I,"content")}return null}})(getGlobal2()),metaMap={_appId:"bm_app_id",yuyanId:"yuyan_id",sprintId:"bm_sprint_id"},ErrorCodeEnums={JS:1,REQUEST:2,PROMISEREJECTION:3,ASSETS:4},CodeLevelEnums={B:"\u7981\u7528",L:"\u4F4E",M:"\u4E2D",H:"\u9AD8"},enums=Object.freeze({__proto__:null,ErrorCodeEnums,CodeLevelEnums}),es=new ErrorStack,newTrackedLogs={},PERFORMACE_RESERVED_CODE="32767"}}),require_lib=__commonJS({"node_modules/_timing2@0.3.4@timing2/lib/index.js":function(t,e){(function(n,i){typeof e=="object"&&e.exports?e.exports=i():n.timing2=i()})(typeof self!="undefined"?self:t,function(){if(typeof window=="object"){var n=window,i,P={0:"navigate",1:"reload",2:"back_forward"},I=["unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart"];if(!n||!n.performance||typeof n.performance!="object"||!n.performance.timing)return i;if(typeof n.performance.getEntries=="function"&&typeof n.performance.getEntriesByType=="function"&&typeof n.performance.getEntriesByName=="function"&&typeof n.performance.now=="function"&&n.performance.timeOrigin)return n.performance;var k=function(){for(var D=n.performance.timing,A=D.navigationStart||D.redirectStart||D.fetchStart,F={entryType:"navigation",initiatorType:"navigation",name:n.location.href,startTime:0,duration:D.loadEventEnd?D.loadEventEnd-A:0,redirectCount:n.performance.navigation.redirectCount,type:P[n.performance.navigation.type]},M=0;M<I.length;M++){var ee=I[M],x=D[ee];F[ee]=x?x-A:0}return F};return i={_entry:k(),timeOrigin:n.performance.timing.navigationStart,getEntries:function(){return[this._entry]},getEntriesByType:function(D){return D!=="navigation"?[]:[this._entry]},getEntriesByName:function(D){return D!==n.location.href?[]:[this._entry]},now:function(){return Date.now()-n.performance.timing.navigationStart}},i}})}});function _assertThisInitialized2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function asyncGeneratorStep2(t,e,n,i,P,I,k){try{var D=t[I](k),A=D.value}catch(F){return void n(F)}D.done?e(A):Promise.resolve(A).then(i,P)}function _asyncToGenerator2(t){return function(){var e=this,n=arguments;return new Promise(function(i,P){var I=t.apply(e,n);function k(A){asyncGeneratorStep2(I,i,P,k,D,"next",A)}function D(A){asyncGeneratorStep2(I,i,P,k,D,"throw",A)}k(void 0)})}}function _callSuper(t,e,n){return e=_getPrototypeOf2(e),_possibleConstructorReturn2(t,_isNativeReflectConstruct2()?Reflect.construct(e,n||[],_getPrototypeOf2(t).constructor):e.apply(t,n))}function _classCallCheck3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties3(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey2(i.key),i)}}function _createClass3(t,e,n){return e&&_defineProperties3(t.prototype,e),n&&_defineProperties3(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty3(t,e,n){return(e=_toPropertyKey2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf2(t)}function _inherits2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e)}function _isNativeReflectConstruct2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct2=function(){return!!t})()}function ownKeys3(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(P){return Object.getOwnPropertyDescriptor(t,P).enumerable})),n.push.apply(n,i)}return n}function _objectSpread23(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ownKeys3(Object(n),!0).forEach(function(i){_defineProperty3(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys3(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _possibleConstructorReturn2(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t)}function _regenerator2(){var t,e,n=typeof Symbol=="function"?Symbol:{},i=n.iterator||"@@iterator",P=n.toStringTag||"@@toStringTag";function I(ne,re,ue,le){var ce=re&&re.prototype instanceof D?re:D,me=Object.create(ce.prototype);return _regeneratorDefine2(me,"_invoke",(function(ae,fe,ye){var ie,se,oe,pe=0,Se=ye||[],Pe=!1,Ie={p:0,n:0,v:t,a:$,f:$.bind(t,4),d:function(we,ve){return ie=we,se=0,oe=t,Ie.n=ve,k}};function $(we,ve){for(se=we,oe=ve,e=0;!Pe&&pe&&!be&&e<Se.length;e++){var be,Ae=Se[e],Te=Ie.p,De=Ae[2];we>3?(be=De===ve)&&(oe=Ae[(se=Ae[4])?5:(se=3,3)],Ae[4]=Ae[5]=t):Ae[0]<=Te&&((be=we<2&&Te<Ae[1])?(se=0,Ie.v=ve,Ie.n=Ae[1]):Te<De&&(be=we<3||Ae[0]>ve||ve>De)&&(Ae[4]=we,Ae[5]=ve,Ie.n=De,se=0))}if(be||we>1)return k;throw Pe=!0,ve}return function(we,ve,be){if(pe>1)throw TypeError("Generator is already running");for(Pe&&ve===1&&$(ve,be),se=ve,oe=be;(e=se<2?t:oe)||!Pe;){ie||(se?se<3?(se>1&&(Ie.n=-1),$(se,oe)):Ie.n=oe:Ie.v=oe);try{if(pe=2,ie){if(se||(we="next"),e=ie[we]){if(!(e=e.call(ie,oe)))throw TypeError("iterator result is not an object");if(!e.done)return e;oe=e.value,se<2&&(se=0)}else se===1&&(e=ie.return)&&e.call(ie),se<2&&(oe=TypeError("The iterator does not provide a '"+we+"' method"),se=1);ie=t}else if((e=(Pe=Ie.n<0)?oe:ae.call(fe,Ie))!==k)break}catch(Ae){ie=t,se=1,oe=Ae}finally{pe=1}}return{value:e,done:Pe}}})(ne,ue,le),!0),me}var k={};function D(){}function A(){}function F(){}e=Object.getPrototypeOf;var M=[][i]?e(e([][i]())):(_regeneratorDefine2(e={},i,function(){return this}),e),ee=F.prototype=D.prototype=Object.create(M);function x(ne){return Object.setPrototypeOf?Object.setPrototypeOf(ne,F):(ne.__proto__=F,_regeneratorDefine2(ne,P,"GeneratorFunction")),ne.prototype=Object.create(ee),ne}return A.prototype=F,_regeneratorDefine2(ee,"constructor",F),_regeneratorDefine2(F,"constructor",A),A.displayName="GeneratorFunction",_regeneratorDefine2(F,P,"GeneratorFunction"),_regeneratorDefine2(ee),_regeneratorDefine2(ee,P,"Generator"),_regeneratorDefine2(ee,i,function(){return this}),_regeneratorDefine2(ee,"toString",function(){return"[object Generator]"}),(_regenerator2=function(){return{w:I,m:x}})()}function _regeneratorDefine2(t,e,n,i){var P=Object.defineProperty;try{P({},"",{})}catch(I){P=0}_regeneratorDefine2=function(I,k,D,A){function F(M,ee){_regeneratorDefine2(I,M,function(x){return this._invoke(M,ee,x)})}k?P?P(I,k,{value:D,enumerable:!A,configurable:!A,writable:!A}):I[k]=D:(F("next",0),F("throw",1),F("return",2))},_regeneratorDefine2(t,e,n,i)}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_setPrototypeOf2(t,e)}function _toPrimitive2(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _toPropertyKey2(t){var e=_toPrimitive2(t,"string");return typeof e=="symbol"?e:e+""}function _typeof3(t){"@babel/helpers - typeof";return _typeof3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof3(t)}function objToStr2(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"^",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=[],P;if(t instanceof Array)i=t;else if(t instanceof Object){var I=n?encodeValue:function(D){return D};for(P in t)if(t.hasOwnProperty(P)){var k=I(t[P]);i.push("".concat(P,"=").concat(k))}}return i.join(e)}function getTime(){var t=new Date,e=function(n){return n<10?"0".concat(n):"".concat(n)};return"".concat(t.getFullYear(),"-").concat(e(t.getMonth()+1),"-").concat(e(t.getDate())," ").concat(e(t.getHours()),":").concat(e(t.getMinutes()),":").concat(e(t.getSeconds()),":").concat(t.getMilliseconds())}function byteCount(t){return t.split(/%..|./).length-1}function parseItem(t){if(!t||_typeof3(t)!=="object")return[];var e=t.eventId,n=t.userId,i=t.ua,P=t.param4,I=t.resolution,k=["D-AE",getTime(),"","","2","","",n,"1000",e,"H5behavior","2","","","","","","","","","","","","","",I,"","","",i,"","","","","",""];return k.push(objToStr2(P,"^",!0)),k}function objectAssign2(t,e){var n=t||{};if(!e||_typeof3(e)!=="object")return n;for(var i in e)e.hasOwnProperty(i)&&e[i]!==void 0&&(n[i]=e[i]);return n}function checkIsAlipay(t){var e=t&&t.userAgent;if(!e)return!1;var n=checkApp(e);return["AP","AF","AFW","BK","AM","APHK","KB"].indexOf(n.name)>=0}function addEvent4(t,e,n){var i=e||window.document;i.addEventListener?i.addEventListener(t,n,!0):i.attachEvent?i.attachEvent("on".concat(t),n):i[t]=n}function removeEvent2(t,e,n){var i=e||window.document;i.removeEventListener?i.removeEventListener(t,n,!0):i.detachEvent?i.detachEvent("on".concat(t),n):i[t]=n}function getAttr3(t,e){return t&&t.getAttribute&&t.getAttribute(e)||""}function nodeListToArray3(t){var e,n;try{return e=[].slice.call(t),e}catch(P){e=[],n=t.length;for(var i=0;i<n;i++)e.push(t[i]);return e}}function getXPath(t,e){var n=t.id?"".concat(t.id):"",i=t.className?"".concat(t.className):"",P=t.tagName.toLowerCase(),I=n||i,k=[];n&&k.push('[@id="'.concat(n,'"]')),i&&k.push('[@class="'.concat(i,'"]'));var D="".concat(P).concat(I?k.join(""):"");return t.parentNode&&t.parentNode.tagName&&e-1!==0?"".concat(getXPath(t.parentNode,e-1),">").concat(D):D}function getResourceErrorSrc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.src||t.href;return t.tagName.toLowerCase()==="img"&&e.indexOf("data:")===0&&(e=e.split(",")[0]),e}function getMetaSpm(t){for(var e=nodeListToArray3(t||document.getElementsByTagName("meta")),n=e.length,i,P,I,k,D=0;D<n;D++)if(i=e[D],P=getAttr3(i,"name"),I=getAttr3(i,"content"),P===spmDataKey2&&I){k=I;break}var A={};return k&&(A.spmAPos=k),A}function getSpmBPos(){var t=getAttr3(document.body,spmDataKey2);return t}function interfaceRegister(t){var e={sampleRate:1,evaluate:null,fullSample:!1};if(typeof window!="undefined"&&"XMLHttpRequest"in window){var n=window.XMLHttpRequest.prototype,i=n.open;n.open=function(k,D){this.__interfaceMonitor__={method:k,url:D||"",status_code:null};for(var A=new Array(arguments.length),F=0;F<A.length;++F)A[F]=arguments[F];i.apply(this,A)};var P=n.send;n.send=function(k){var D=this;function A(){if(D.__interfaceMonitor__&&D.readyState===4)try{var x=D.__interfaceMonitor__.url;if(D.status===0)return;var ne=x.split("?")[0],re=x.split("?")[1]||"",ue=typeof k=="string"?k:JSON.stringify(k),le=String(D.response);le.length>2048&&(le="[too large]");var ce=!1;if(D.status<200||D.status>299||ce||e.fullSample){if(ne===t.server){t._warn("\u4E0A\u62A5\u5F02\u5E38",ue);return}t.logRequestError({type:"http",status:D.status,url:ne,method:D.__interfaceMonitor__.method,query:re,data:ue,response:le,traceId:t.traceId||""})}}catch(me){t._warn("\u63A5\u53E3\u5F02\u5E38\u4E0A\u62A5\u5931\u8D25:",me)}}if("onreadystatechange"in D&&typeof D.onreadystatechange=="function"){var F=D.onreadystatechange;D.onreadystatechange=function(){for(var x=new Array(arguments.length),ne=0;ne<x.length;++ne)x[ne]=arguments[ne];A.apply(this,x),F.apply(this,x)}}else D.onreadystatechange=A;for(var M=new Array(arguments.length),ee=0;ee<M.length;++ee)M[ee]=arguments[ee];return P.apply(this,arguments)}}if(typeof window!="undefined"&&"fetch"in window){var I=window.fetch;window.fetch=function(){for(var k=new Array(arguments.length),D=0;D<k.length;++D)k[D]=arguments[D];var A="GET";return k[1]&&k[1].method&&(A=k[1].method.toUpperCase()),k[1]&&k[1].headers&&(k[1].headers.Accept||k[1].headers.accept||"").includes("stream")?I.apply(this,k):I.apply(this,k).then(function(F){var M=F.headers.get("Content-Type");return M&&M.includes("stream")?F:new Promise(function(ee){try{var x=k[0],ne=x.split("?")[0],re=x.split("?")[1]||"",ue=k[1]&&k[1].body||"",le=typeof ue=="string"?ue:JSON.stringify(ue);F.clone().text().then(function(ce){if(!F.ok||e.fullSample){var me=(ce||"").length>2048?"[too large]":ce;t.logRequestError({type:"http",status:F.status,url:ne,method:A,query:re,data:le,response:me,traceId:F.headers.get("traceid")||F.headers.get("Request-Id")||t.traceId||""})}}).then(function(){ee(F)},function(){ee(F)})}catch(ce){ee(F)}})})}}}function __warn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(!(!console||!console.warn)){var P=t.split("%s").map(function(I,k){return I&&"[YuyanMonitor]".concat(I).concat(n[k])}).join("");console.warn(P)}}function getItem2(t){try{var e,n;return(e=window)===null||e===void 0||(n=e.localStorage)===null||n===void 0?void 0:n.getItem(t)}catch(i){return null}}function setItem2(t,e){try{var n,i;return(n=window)===null||n===void 0||(i=n.localStorage)===null||i===void 0?void 0:i.setItem(t,e)}catch(P){return null}}function extractPageMetrics(t,e,n){if(_typeof3(t)!=="object"||typeof t.getEntriesByType!="function")return null;var i=t==null?void 0:t.getEntriesByType("navigation");if(!i||i.length===0)return null;var P=i[0],I=extractPaintMetrics(t),k={LargestContentfulPaint:e},D={FirstInputDelay:n};return NAVIGATION_KEYS.reduce(function(A,F){var M=P[F]||I[F]||k[F]||D[F];return M==null||typeof M=="number"&&isNaN(M)?_objectSpread23(_objectSpread23({},A),{},_defineProperty3({},"".concat(F),0)):_objectSpread23(_objectSpread23({},A),{},_defineProperty3({},"".concat(F),M))},{})}function getPerformanceMetrics(t,e){return t?normalizeMetrics({m1:e.duration||parseFloat(t.loadEventEnd)-e.startTime,m2:parseFloat(t.domContentLoadedEventStart)-e.startTime,m3:parseFloat(t.domComplete)-e.startTime,m4:t.firstPaint,m5:t.firstContentfulPaint,m6:t.LargestContentfulPaint,m7:parseFloat(t.redirectEnd)-parseFloat(t.redirectStart),m8:parseFloat(t.domainLookupStart)-parseFloat(t.fetchStart),m9:parseFloat(t.domainLookupEnd)-parseFloat(t.domainLookupStart),m10:parseFloat(t.connectEnd)-parseFloat(t.connectStart),m11:parseFloat(t.connectEnd)-parseFloat(t.secureConnectionStart),m12:parseFloat(t.responseStart)-parseFloat(t.requestStart),m13:parseFloat(t.responseEnd)-parseFloat(t.responseStart),m14:parseFloat(t.domComplete)-parseFloat(t.responseEnd),m15:parseFloat(t.loadEventEnd)-parseFloat(t.responseEnd),m16:parseFloat(t.domInteractive)-e.startTime,m17:parseFloat(t.domContentLoadedEventEnd)-parseFloat(t.domContentLoadedEventStart),m18:t.FirstInputDelay}):{}}function normalizeMetrics(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(isNaN(t[n])?e[n]=0:e[n]=Math.round(Math.min(Math.max(0,parseFloat(t[n])),300*1e3)));return e}function sendMetrics(t,e){if(!(_typeof3(e)!=="object"||t.metricsSent))try{var n,i,P=e.getEntriesByType("navigation")[0],I=extractPageMetrics(e,lcp,fid),k={d1:((n=navigator)===null||n===void 0||(i=n.connection)===null||i===void 0?void 0:i.effectiveType)||"-",d2:P.duration===0?1:0,d3:document.hidden?0:1},D={c1:document.title};t.log(_objectSpread23(_objectSpread23(_objectSpread23({code:PERFORMACE_RESERVED_CODE2,msg:typeof location!="undefined"?location.href:""},getPerformanceMetrics(I,P)),k),D)),t.metricsSent=!0}catch(A){}}function detectHashWeb(t,e){if(hashMap[t])return e(null,!0);fetch("https://dataservice.alipayobjects.com/alertserver/hash/".concat(t)).then(function(n){return n.status===200||n.status===304?(hashMap[t]=!0,e(null,!0)):e(null,!1)}).catch(function(n){return e(n,!1)})}function detectHashAppx(t){return Promise.resolve(!1)}function compareVersion2(t,e){if(t&&e){var n=getVersion(t),i=getVersion(e);return compareNumArray(n,i)}else return!t&&e?-1:t&&!e?1:0}function compareNumArray(t,e){for(var n=0;n<t.length;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0}function getVersion(t){var e=t.split("-"),n=0,i=0,P=0,I=Label.Release,k=0,D=e[0].split(".");if(D[0]&&(n=parseInt(D[0],10)),D[1]&&(i=parseInt(D[1],10)),D[2]&&(P=parseInt(D[2],10)),e[1]){var A=e[1].split(".");I={alpha:Label.Alpha,beta:Label.Beta,rc:Label.ReleaseCandidate}[A[0]]||Label.Release,A[1]&&(k=parseInt(A[1],10))}return[n,i,P,I,k]}var import_timing2,encodeValue,checkApp,ClientEnvType,detectEnvSync,detectEnvAsync,getClient,spmDataKey2,serverUrl,host,ClientTypeEnum,NAVIGATION_KEYS,ErrorCodeEnums2,version,startTime,Base,monitorConfigCacheKey,expireDelta,ConfigStorage,ServerConfig,extractPaintMetrics,lcp,fid,RESOURCE_LIMIT,PERFORMACE_RESERVED_CODE2,Performace,REQUEST_BYTE_LIMIT,RequestQueue,hashMap,Label,ErrorCodeEnums$1,Monitor,index_esm_default,init_index_esm3=__esm({"node_modules/_@alipay_yuyan-monitor-sdk@1.3.3@@alipay/yuyan-monitor-sdk/dist/index.esm.js":function(){init_index_esm2(),import_timing2=__toESM(require_lib()),encodeValue=function(t){return encodeURIComponent(t).replace(/'/g,"%27")},checkApp=function(t){var e={is:!1,name:"",version:""},n=t.match(/AliApp\S+\b\)/ig);e.is=/(T-UA)|(TBIOS)|(WindVane)|(AliApp)/i.test(t);try{e.name=n?n[0].match(/\(\w+\-*\w*/)[0].split("(")[1]:"",e.version=n?n[0].match(/(\d+\.*)+/ig)[0]:""}catch(i){}return e},(function(t){t.stable="STABLE",t.test="TEST",t.pre="PRE",t.prod="PROD",t.sandbox="SANDBOX",t.unknown="UNKNOWN"})(ClientEnvType||(ClientEnvType={})),detectEnvSync=function(){var t=typeof my!="undefined";if(t){var e,n,i=t?(e=my)===null||e===void 0||(n=e.env)===null||n===void 0?void 0:n.clientEnv:void 0;switch(i){case"stable":case"test":case"pre":case"prod":return ClientEnvType[i];case"gray":return ClientEnvType.prod;default:return ClientEnvType.unknown}}else if(typeof navigator!="undefined"&&navigator.userAgent&&typeof window!="undefined"){var P,I;if(typeof window.AlipayJSBridge!="undefined"&&window.AlipayJSBridge.startupParams!=="undefined"){var k=window.AlipayJSBridge.startupParams.gateway_env;if(typeof k=="string"){var D;return(D=ClientEnvType[k])!==null&&D!==void 0?D:ClientEnvType.unknown}}if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&navigator.userAgent.indexOf("ProductType/dev")===-1||navigator.userAgent.indexOf("Android")>0&&typeof window.AlipayJSBridge!="undefined"&&typeof window.AlipayJSBridge.startupParams!="undefined"&&!(!((P=window.AlipayJSBridge)===null||P===void 0||(I=P.startupParams)===null||I===void 0)&&I.isSpecialEdition))return ClientEnvType.prod}return ClientEnvType.unknown},detectEnvAsync=(function(){var t=_asyncToGenerator2(_regenerator2().m(function e(){var n;return _regenerator2().w(function(i){for(;;)switch(i.n){case 0:if(n=detectEnvSync(),n===ClientEnvType.unknown){i.n=1;break}return i.a(2,n);case 1:if(!(typeof navigator!="undefined"&&navigator.userAgent&&typeof window!="undefined")){i.n=2;break}if(typeof window.AlipayJSBridge=="undefined"){i.n=2;break}return i.a(2,new Promise(function(P){window.AlipayJSBridge.call("getConfig",{configKeys:["rpcUrl"]},function(I){var k,D=(I==null||(k=I.data)===null||k===void 0?void 0:k.rpcUrl)||"";return D.indexOf("stable.alipay.net")>0?P(ClientEnvType.stable):D.indexOf("test.alipay.net")>0?P(ClientEnvType.test):D.indexOf("mobilegwpre.alipay.com")>0?P(ClientEnvType.pre):D.indexOf("mobilegw.alipaydev.com")>0?P(ClientEnvType.sandbox):D.indexOf("mobilegw.alipay.com")>0?P(ClientEnvType.prod):P(ClientEnvType.unknown)})}));case 2:return i.a(2,ClientEnvType.unknown)}},e)}));return function(){return t.apply(this,arguments)}})(),getClient=function(t){var e={name:"web",client:null};return(typeof dd=="undefined"?"undefined":_typeof3(dd))==="object"&&dd&&typeof dd.httpRequest=="function"?(e.client=dd,e.name="dd"):(typeof ac=="undefined"?"undefined":_typeof3(ac))==="object"&&ac&&typeof ac.call=="function"?(e.client=my,e.name="b2h"):(typeof my=="undefined"?"undefined":_typeof3(my))==="object"&&my&&typeof my.request=="function"?(e.client=my,e.name="my"):(typeof wx=="undefined"?"undefined":_typeof3(wx))==="object"&&wx&&typeof wx.request=="function"&&(e.client=wx,e.name="wx"),e[t]},spmDataKey2="data-aspm",serverUrl={main_site:"https://collect.alipay.com/yuyan/",mybank:"https://collect.mybank.cn/yuyan/"},host={main_site:"collect.alipay.com",mybank:"collect.mybank.cn"},(function(t){t.WX="wx",t.MY="my",t.DD="dd",t.B2H="b2h"})(ClientTypeEnum||(ClientTypeEnum={})),NAVIGATION_KEYS=["connectEnd","connectStart","decodedBodySize","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domainLookupEnd","domainLookupStart","duration","encodedBodySize","fetchStart","loadEventEnd","loadEventStart","redirectCount","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","secureConnectionStart","transferSize","type","unloadEventEnd","unloadEventStart","workerStart","firstPaint","firstContentfulPaint","LargestContentfulPaint","FirstInputDelay"],ErrorCodeEnums2=enums.ErrorCodeEnums,version="1.2.0",startTime=new Date().getTime(),Base=(function(){function t(e){var n=this,i,P;_classCallCheck3(this,t),this.eventId=void 0,this.bmAppid=void 0,this.debug=void 0,this.tenant=void 0,this.beforeLog=void 0,this.clientApp=void 0,this.clientName=void 0,this.aggregationPeriod=void 0,this.resolution=void 0,this.userConfig={},this.oncePerSession=void 0,this.defaults={},this.cOfflineVer="",this.cAppId="",this.cUserId="",this.autoEnv=void 0,this.autoCapture=void 0,this.disableInterface=void 0,this.trackedLogs=[],this.requiredFields=[],this.isErrorHandler=!1,this.enabledPlugins=[],this.forceHttpReport=!1,this.fullURL="",this.title="",this.env="",this.network="",this.monitorConfigInited=!1,this.monitorConfigFailed=!1,this.monitorOptions=[],this.getErrorEventHandler=function(k){n.handleErrorEvent(k,function(D){n.log(D,{reportDirectly:!0})})},this._warn=function(){var k=window;if(_typeof3(k)==="object"&&k.console&&typeof k.console.warn=="function"&&n.debug){for(var D=arguments.length,A=new Array(D),F=0;F<D;F++)A[F]=arguments[F];var M=Array.prototype.slice.call(A);k.console.warn.apply(null,["[Monitor Debug]".concat(M[0]),M.slice(1)])}},this.pcSend=function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"L",A=arguments.length>2?arguments[2]:void 0,F=A&&typeof A=="number"?k.join("$$"):encodeURIComponent(k.join());(n.debug||n.userConfig.debug)&&console.log("[YuyanMonitor]SEND: %s",F);var M=typeof navigator!="undefined"&&navigator;if(M&&M.sendBeacon&&typeof M.sendBeacon=="function"){var ee={type:"application/x-www-form-urlencoded",Host:"".concat(host[n.tenant.toLowerCase()])},x=new Blob(["data=".concat(F,"&time=").concat(new Date().getTime())],ee),ne=M.sendBeacon("".concat(serverUrl[n.tenant.toLowerCase()],"?biztype=yuyanmonitor").concat(D.toLowerCase()),x);if(ne)return}return fetch("".concat(serverUrl[n.tenant.toLowerCase()],"?biztype=yuyanmonitor").concat(D.toLowerCase()),{method:"POST",headers:{"Content-type":"application/x-www-form-urlencoded",Host:"".concat(host[n.tenant.toLowerCase()])},body:"data=".concat(F,"&time=").concat(new Date().getTime())}).catch(function(){try{var re=new Image;re.src="".concat(serverUrl[n.tenant.toLowerCase()],"?data=").concat(F,"&time=").concat(new Date().getTime())}catch(ue){__warn("\u901A\u8FC7 IMG \u4E0A\u62A5\u5931\u8D25: %s",ue)}})},this.clientHttpSend=function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"L",A={"Content-type":"application/x-www-form-urlencoded",Host:"".concat(host[n.tenant.toLowerCase()])},F={url:"".concat(serverUrl[n.tenant.toLowerCase()],"?biztype=yuyanmonitor").concat(D.toLowerCase()),method:"POST",data:"data=".concat(k,"&time=").concat(new Date().getTime()),fail:function(M){try{var ee=new Image;ee.src="".concat(serverUrl[n.tenant.toLowerCase()],"?data=").concat(k,"&time=").concat(new Date().getTime())}catch(x){__warn("\u901A\u8FC7 IMG \u4E0A\u62A5\u5931\u8D25: %s",x)}n.debug&&__warn("\u8BF7\u6C42\u53D1\u9001\u5931\u8D25",M)}};n.clientApp&&n.clientApp.canIUse("request")?n.clientName===ClientTypeEnum.WX?n.clientApp.request(_objectSpread23(_objectSpread23({},F),{},{header:A})):n.clientApp.request(_objectSpread23(_objectSpread23({},F),{},{headers:A})):n.clientApp&&n.clientApp.canIUse("httpRequest")?n.clientName===ClientTypeEnum.DD&&n.clientApp.httpRequest(_objectSpread23(_objectSpread23({},F),{},{headers:A})):__warn("\u8C03\u7528API\u5931\u8D25\uFF0C\u65E0\u6CD5\u5B8C\u6210\u4E0A\u62A5")};var I=getOptionsDefaulter().process(e);this.userConfig=I,this.eventId=I.eventId||"102022",this.bmAppid=I.bmAppid,this.tenant=I.tenant||"MAIN_SITE",this.resolution=I.resolution||"",this.aggregationPeriod=I.aggregationPeriod,this.debug=I.debug||!1,this.clientApp=getClient("client"),this.clientName=getClient("name")||"web",this.autoCapture=I.autoCapture,this.autoEnv=I.autoEnv||!0,this.disableInterface=I.disableInterface,this.oncePerSession=I.oncePerSession,this.beforeLog=I.beforeLog,this.defaults=I.defaults||{},this.requiredFields=I.requiredFields||[],this.enabledPlugins=I.plugins,this.forceHttpReport=!!I.forceHttpReport,this.fullURL=((i=I.defaults)===null||i===void 0?void 0:i.url)||I.url||"",this.title=((P=I.defaults)===null||P===void 0?void 0:P.title)||I.title||""}return _createClass3(t,[{key:"handleErrorEvent",value:function(e,n){try{var i=e.target||e.srcElement;if(!i)return;var P=e.type;if(P==="unhandledrejection"){var I=e.reason||{};if(I.message&&I.stack)this.logError(I,{code:ErrorCodeEnums2.PROMISEREJECTION});else{var k=I.message||(typeof I=="string"?I:JSON.stringify(I));n({code:ErrorCodeEnums2.PROMISEREJECTION,msg:k})}return}var D=i instanceof HTMLElement;if(D){var A=getResourceErrorSrc(i),F=i.tagName.toLowerCase(),M=i.alt,ee=M===void 0?"":M;n({code:ErrorCodeEnums2.ASSETS,msg:A===(typeof location!="undefined"&&location&&location.href)?"__EMPTY__SRC__":A||"",s1:F,s2:getXPath(i,5),s3:ee});return}if(e.error&&e.error.stack){this.logError(e.error);return}n({code:ErrorCodeEnums2.JS,msg:e.message,s3:0})}catch(x){__warn("handleErrorOptions failed: %s",x.message)}}},{key:"handlePreCapture",value:function(){var e=this,n=window.g_monitor;if(n){var i=n.listener,P=i===void 0?{}:i,I=n.events,k=I===void 0?[]:I;for(var D in P)P.hasOwnProperty(D)&&(removeEvent2(D,window,P[D]),delete P[D]);for(var A=0;A<k.length;A++)this.handleErrorEvent(k[A],function(F){e.log(F)});n.events=[]}}},{key:"register",value:(function(){var e=document;if(!this.autoCapture){this.debug&&__warn("\u5DF2\u901A\u8FC7 autoCapture \u7981\u7528\u5F02\u5E38\u6355\u83B7");return}try{if(!e)return this.debug&&__warn("\u5F53\u524D\u4E3A\u975E web \u73AF\u5883\uFF0C\u4E0D\u652F\u6301\u62A5\u9519\u76D1\u542C\u4E0E\u63D2\u4EF6\u4F7F\u7528"),this;if(this.isErrorHandler){this.debug&&__warn("\u9519\u8BEF\u4E8B\u4EF6\u5DF2\u76D1\u542C");return}addEvent4("error",window,this.getErrorEventHandler),addEvent4("unhandledrejection",window,this.getErrorEventHandler),this.isErrorHandler=!0}catch(n){__warn("\u5F02\u5E38\u76D1\u542C\u4E8B\u4EF6\u6CE8\u518C\u5931\u8D25: %s",n.message)}})},{key:"unregister",value:function(){removeEvent2("error",window,this.getErrorEventHandler),removeEvent2("unhandledrejection",window,this.getErrorEventHandler),this.isErrorHandler=!1}},{key:"getNetwork",value:function(){if(this.network)return this.network;if(typeof navigator!="undefined"){var e=navigator;return!e||!e.connection||!e.connection.effectiveType?"":e.connection.effectiveType}}},{key:"parseParam4",value:function(e){if(!e||_typeof3(e)!=="object")return null;var n=_objectSpread23(_objectSpread23({},this.defaults),e);(e.bmAppid||this.bmAppid)&&(n.bm_appid=e.bmAppid||this.bmAppid),this.userConfig.sprintId&&(n.bm_sid=this.userConfig.sprintId),this.userConfig.yuyanId&&(n.yuyan_id=this.userConfig.yuyanId),this.userConfig.cClientVer&&(n.c_client_ver=this.userConfig.cClientVer),this.userConfig.os&&(n.os=this.userConfig.os),this.userConfig.deviceModel&&(n.device_model=this.userConfig.deviceModel),this.userConfig.deviceBrand&&(n.device_brand=this.userConfig.deviceBrand),this.userConfig.deviceType&&(n.device_type=this.userConfig.deviceType),n.env=this.userConfig.env||this.env;var i=typeof location!="undefined"&&location?location.href:"";if(n.title=this.title||this.userConfig.title||"",n.fullURL=n.fullURL||i||this.fullURL||this.userConfig.fullURL||"",n.monitor_ver="sdk:".concat(version),!this.clientApp&&typeof document!="undefined"){if(typeof window!="undefined"){var P,I;this.resolution="".concat((P=window.screen)===null||P===void 0?void 0:P.width,"x").concat((I=window.screen)===null||I===void 0?void 0:I.height)}var k=document.documentElement;n.title=document.title||this.title,n.dom_cnt=document.getElementsByTagName("*").length,n.delay=new Date().getTime()-startTime,n.scroll_top=k.scrollTop+document.body.scrollTop,n.content_height=Math.max(k.clientHeight,k.offsetHeight,k.scrollHeight),n.s_c=!this.monitorConfigFailed}n.network=this.getNetwork()||this.userConfig.network||"";var D=this.userConfig.spmAPos&&this.userConfig.spmBPos?"".concat(this.userConfig.spmAPos,".").concat(this.userConfig.spmBPos):"";if(D&&(n.spmId=D),this.cOfflineVer&&(n.c_offline_ver=this.cOfflineVer),this.cAppId&&(n.c_app_id=this.cAppId),_typeof3(n)==="object"){var A=n;for(var F in A)A.hasOwnProperty(F)&&typeof A[F]=="string"&&A[F].replace(/\s+/g," ")}return n}},{key:"bridgeCall",value:(function(){if(this.clientApp&&(this.clientName===ClientTypeEnum.MY||this.clientName===ClientTypeEnum.B2H)&&typeof my.call=="function"){var e;(e=my).call.apply(e,arguments)}else{var n,i=window;if(!i.AlipayJSBridge||!i.AlipayJSBridge.call||typeof i.AlipayJSBridge.call!="function"){__warn("\u975E\u5BB9\u5668\u73AF\u5883\uFF0C\u4E0D\u80FD\u8C03\u7528 handleLoggingAction");return}(n=i.AlipayJSBridge).call.apply(n,arguments)}})},{key:"bridgeLog",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"L",i=e||{};this.bridgeCall("handleLoggingAction",{actionType:"reportEvent",params:{eventId:this.eventId,bizType:"yuyanmonitor".concat(n.toLowerCase()),extData:i}})}}])})(),monitorConfigCacheKey="_YUYAN_COOKIE_monitor_config_next",expireDelta=900*1e3,ConfigStorage=(function(){function t(){_classCallCheck3(this,t)}return _createClass3(t,[{key:"getStorageInfoMap",value:function(){var e=getItem2(monitorConfigCacheKey)||"{}";try{return JSON.parse(e)}catch(n){return{}}}},{key:"getMonitorConfig",value:function(e){var n=this.getStorageInfoMap(),i=n[e];return!i||i.expire<new Date().valueOf()?null:i.config}},{key:"saveMonitorConfig",value:function(e,n){var i=this.getStorageInfoMap(),P={config:n,expire:new Date().valueOf()+expireDelta};i[e]=P,setItem2(monitorConfigCacheKey,JSON.stringify(i))}}])})(),ServerConfig=(function(){function t(){_classCallCheck3(this,t),this.monitor=void 0,this.configStorage=new ConfigStorage}return _createClass3(t,[{key:"apply",value:function(e){this.monitor=e;var n=e.bmAppid,i=e.userConfig.yuyanId,P=n||i;this.enhance(e,P);try{this.fetchMonitorConfig(P)}catch(I){this.monitor.onFetchConfigError(I)}}},{key:"enhance",value:function(e,n){var i=this;objectAssign(e,{initMonitorConfigs:function(P){e.setMonitorConfigs(P),i.configStorage.saveMonitorConfig(n,P)},setMonitorConfigs:function(P){var I=P.monitors;e.monitorOptions=I,e.monitorConfigInited=!0,e.onMonitorConfigInited()}})}},{key:"fetchMonitorConfig",value:function(e){var n=this.monitor,i=n.setMonitorConfigs,P=n.tenant;if(P==="MAIN_SITE"){var I=this.configStorage.getMonitorConfig(e);if(I)return i(I);this.fetchRemoteConfigJson(e)}}},{key:"fetchRemoteConfigJson",value:function(e){var n=this;fetch("https://render.alipay.com/p/alertserver/".concat(e,"_config/index.json"),{redirect:"follow"}).then(function(i){return i.json()}).then(function(i){n.monitor.initMonitorConfigs(i)}).catch(function(i){n.monitor.onFetchConfigError(i)})}}])})(),extractPaintMetrics=function(t){if(_typeof3(t)!=="object")return[];var e=t.getEntriesByType("paint"),n={};if(e.length){var i=(e.filter(function(I){return I.name==="first-paint"})[0]||{}).startTime,P=(e.filter(function(I){return I.name==="first-contentful-paint"})[0]||{}).startTime;n.firstPaint=parseFloat(i),n.firstContentfulPaint=parseFloat(P)}return n},lcp=0,fid=0,RESOURCE_LIMIT=500,PERFORMACE_RESERVED_CODE2="32767",Performace=(function(){function t(){_classCallCheck3(this,t),this.monitor=void 0}return _createClass3(t,[{key:"apply",value:function(e){this.monitor=e;try{var n=new PerformanceObserver(function(A){A.getEntries().forEach(function(F){F.entryType==="largest-contentful-paint"?lcp=F.startTime:F.entryType==="first-input"&&(fid=F.processingStart-F.startTime)})});n.observe({type:"largest-contentful-paint",buffered:!0}),n.observe({type:"first-input",buffered:!0})}catch(A){}if(_typeof3(import_timing2.default)==="object")try{var i,P;typeof import_timing2.default.setResourceTimingBufferSize=="function"&&import_timing2.default.setResourceTimingBufferSize(RESOURCE_LIMIT);var I=((i=navigator)===null||i===void 0?void 0:i.swuserAgent)||((P=navigator)===null||P===void 0?void 0:P.userAgent)||"",k=!!I.match(/iPhone|iPad|iPod/i),D=k?"pagehide":"beforeunload";window.addEventListener(D,sendMetrics.bind(null,e,import_timing2.default))}catch(A){}}}])})(),REQUEST_BYTE_LIMIT=1024*1024-100,RequestQueue=(function(){function t(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"l",P=arguments.length>2?arguments[2]:void 0;_classCallCheck3(this,t),this.cache=[],this.cacheSize=0,this.bizType=void 0,this.aggregationPeriod=void 0,this.timer=void 0,this._send=void 0,this.send=function(){n.cache.length&&(n._send(n.cache,n.bizType,n.aggregationPeriod),n.cache.length=0,n.cacheSize=0,n.resetTimer())},this._send=e,this.bizType=i,P&&(this.aggregationPeriod=P*1e3)}return _createClass3(t,[{key:"add",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n)return this._send(e);this.addToCache(e)}},{key:"sendImmediately",value:function(){this.send()}},{key:"addToCache",value:function(e){var n=encodeURIComponent(e.join(",")),i=byteCount(n);this.cacheSize+i>REQUEST_BYTE_LIMIT&&this.send(),this.cache.push(n),this.cacheSize+=i,this.resetTimer()}},{key:"resetTimer",value:function(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(this.send,this.aggregationPeriod)}}])})(),hashMap={},(function(t){t[t.Alpha=1]="Alpha",t[t.Beta=2]="Beta",t[t.ReleaseCandidate=3]="ReleaseCandidate",t[t.Release=4]="Release"})(Label||(Label={})),ErrorCodeEnums$1=enums.ErrorCodeEnums,Monitor=(function(t){function e(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{appType:"H5"};return _classCallCheck3(this,e),n=_callSuper(this,e,[i]),n.isAlipay=void 0,n.jsBridgeReady=!1,n.commandCache=[],n.requestQueue={l:new RequestQueue(n.pcSend,"l",n.aggregationPeriod),m:new RequestQueue(n.pcSend,"m",n.aggregationPeriod),h:new RequestQueue(n.pcSend,"h",n.aggregationPeriod)},n.monitorOptionMap={},n.UserConfig={},n.destroyed=!1,n.clientApp=getClient("client"),n.clientName=getClient("name")||"web",n.pageChangeEventHandler=function(){typeof document!="undefined"&&document.visibilityState==="hidden"&&n.requestQueue.l.sendImmediately()},n.isAlipay=typeof window!="undefined"&&window?checkIsAlipay(window.navigator):!1,n.initJsBridge(),!n.clientApp&&typeof document!="undefined"&&typeof window!="undefined"&&(new ServerConfig().apply(n),n.enabledPlugins.indexOf("performance")!==-1&&new Performace().apply(n),n.fetchConfig(),n.handlePreCapture(),n.register(),n.pageChangeEvent()),n}return _inherits2(e,t),_createClass3(e,[{key:"log",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(n){var P=this.isAlipay&&!this.jsBridgeReady;if(!(i!=null&&i.forceHttpReport)&&(P||this.tenant==="MAIN_SITE"&&!this.monitorConfigInited&&!this.clientApp)){this.commandCache.push([n,i]),this.debug&&__warn("\u4E3B\u7AD9\u79DF\u6237\u4E14\u76D1\u63A7\u914D\u7F6E\u521D\u59CB\u5316\u672A\u5B8C\u6210\uFF0C\u4E0A\u62A5\u4FE1\u606F\u8FDB\u5165\u7F13\u5B58");return}if(!allFieldsReady(this.userConfig,this.requiredFields,this._warn.bind(this))){this.commandCache.push([n,i]),this.debug&&__warn("\u5FC5\u8981\u9879\u672A\u51C6\u5907\u597D\uFF0C\u4E0A\u62A5\u8FDB\u5165\u7F13\u5B58");return}if(!(i!=null&&i.forceHttpReport)&&!this.jsBridgeReady&&!this.monitorConfigInited&&this.clientApp&&this.clientName===ClientTypeEnum.MY){this.commandCache.push([n,i]),this.debug&&__warn("\u5C0F\u7A0B\u5E8F\u521D\u59CB\u5316\u53C2\u6570\u672A\u83B7\u53D6\uFF0C\u4E0A\u62A5\u4FE1\u606F\u8FDB\u5165\u7F13\u5B58");return}this._log(n,i)}}},{key:"logError",value:function(n,i){logError(n,this.clientApp?detectHashAppx:detectHashWeb,{log:this.log.bind(this),_warn:this._warn.bind(this)},i)}},{key:"logRequestError",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{if(!n||this.clientApp)return;var i=n.type,P=i===void 0?"http":i;if(P==="http"){var I=n.status,k=n.url,D=n.method,A=n.query,F=n.data,M=n.response,ee=n.traceId,x=n.code,ne="".concat(D.toUpperCase()," ").concat(k),re={code:x||2,msg:ne};I&&(re.s1=I),A&&(re.s2=A),F&&(re.s3=F),M&&(re.s4=M),ee&&(re.s5=ee),this.log(re)}}catch(ue){__warn("\u63A5\u53E3\u5F02\u5E38\u4E0A\u62A5\u5931\u8D25:%s",ue)}}},{key:"config",value:function(n){!n||_typeof3(n)!=="object"||(shallowMerge(this.userConfig,n),n.beforeLog&&(this.beforeLog=n.beforeLog),n.tenant&&(this.tenant=n.tenant),allFieldsReady(this.userConfig,this.requiredFields,this._warn.bind(this))&&this.logCache())}},{key:"pageChangeEvent",value:function(){this.aggregationPeriod&&typeof this.aggregationPeriod=="number"&&addEvent4("visibilitychange",document,this.pageChangeEventHandler)}},{key:"destroy",value:function(){this.unregister(),this.aggregationPeriod&&typeof this.aggregationPeriod=="number"&&removeEvent2("visibilitychange",document,this.pageChangeEventHandler),this.destroyed=!0}},{key:"isBridgeReport",value:function(){if(!this.clientApp)return typeof window!="undefined"&&!!window.AlipayJSBridge;if(this.clientApp&&this.clientName===ClientTypeEnum.MY)return!0;if(this.clientApp&&this.clientName===ClientTypeEnum.B2H){var n=(typeof $env=="undefined"?"undefined":_typeof3($env))==="object"?$env:{},i=n.clientVersion;if(compareVersion2(i,"10.7.66")>=0)return!0}return!1}},{key:"logCache",value:function(){for(var n=this.commandCache,i=0;i<n.length;i++){var P=n[i];Array.isArray(P)&&this._log(P[0],P[1])}this.commandCache=[]}},{key:"_log",value:function(n,i){var P,I,k,D=newPreProcess(n,this,!!this.clientApp,{originalError:i==null?void 0:i.originalError});if(D){var A=this.parseParam4(D);this.clientApp||this.getExtraInfo();var F=this.userConfig.forceHttpReport||!!(i!=null&&i.forceHttpReport),M=typeof navigator!="undefined"&&(P=((I=navigator)===null||I===void 0?void 0:I.swuserAgent)||((k=navigator)===null||k===void 0?void 0:k.userAgent))!==null&&P!==void 0?P:"",ee=M?M.replace(/,/g,"%2C"):"";if(!F&&this.isBridgeReport()){A._ua=ee;for(var x=0,ne=Object.keys(A);x<ne.length;x++){var re=ne[x];A[re]=encodeValue(A[re])}this.bridgeLog(A,D.level)}else{var ue=D.roleId||this.userConfig.userId||this.cUserId||"",le=D.resolution||this.resolution||"";delete D.roleId;var ce=parseItem({eventId:this.eventId,userId:ue,param4:A,ua:ee,resolution:le});if(!ce.length)return;if(this.clientApp){for(var me=0,ae=Object.keys(ce);me<ae.length;me++){var fe=ae[me];ce[fe]=encodeValue(ce[fe])}this.clientHttpSend(ce);return}if(this.aggregationPeriod&&typeof this.aggregationPeriod=="number"){var ye=D.level,ie=this.requestQueue[ye]||this.requestQueue.l;return ie.add(ce,i==null?void 0:i.reportDirectly)}return this.pcSend(ce,"l",this.aggregationPeriod)}}}},{key:"getExtraInfo",value:function(){var n=window._to||{};if(!this.userConfig.spmAPos){var i=getMetaSpm().spmAPos||n.spmAPos;i&&(this.userConfig.spmAPos=i)}if(!this.userConfig.spmBPos){var P=getSpmBPos()||n.spmBPos;P&&(this.userConfig.spmBPos=P)}}},{key:"initJsBridge",value:function(){var n=this;if(this.clientApp&&this.clientName===ClientTypeEnum.MY){var i=function(){n.jsBridgeReady||(n.jsBridgeReady=!0,n.logCache())};this.getInfoFromBridge(i),setTimeout(i,3e3)}else this.clientApp&&this.clientName===ClientTypeEnum.B2H?this.getInfoForB2h(function(){n.jsBridgeReady||(n.jsBridgeReady=!0,n.logCache())}):!this.clientApp&&typeof document!="undefined"&&typeof window!="undefined"?document.addEventListener("AlipayJSBridgeReady",function(){n.onJsBridgeReady()}):this.jsBridgeReady=!0}},{key:"getInfoForB2h",value:(function(){var n=_asyncToGenerator2(_regenerator2().m(function P(I){var k=this,D;return _regenerator2().w(function(A){for(;;)switch(A.n){case 0:D=(typeof $env=="undefined"?"undefined":_typeof3($env))==="object"?$env:{},this.registerParamsFromStartupParams({version:D.appVersion,appId:D.appId}),this.clientApp.getNetworkType({success:function(F){k.network=F.networkType},complete:function(){I()}});case 1:return A.a(2)}},P,this)}));function i(P){return n.apply(this,arguments)}return i})()},{key:"getInfoFromBridge",value:(function(){var n=_asyncToGenerator2(_regenerator2().m(function P(I){var k=this,D,A;return _regenerator2().w(function(F){for(;;)switch(F.p=F.n){case 0:if(F.p=0,!(this.autoEnv||this.userConfig.autoEnv)){F.n=2;break}return F.n=1,detectEnvAsync();case 1:this.env=F.v;case 2:typeof window!="undefined"&&typeof window.AlipayJSBridge!="undefined"&&typeof window.AlipayJSBridge.startupParams!="undefined"?(D=window.AlipayJSBridge.startupParams,this.registerParamsFromStartupParams(D),I()):this.bridgeCall("getStartupParams",function(M){k.registerParamsFromStartupParams(M),I()}),F.n=4;break;case 3:F.p=3,A=F.v,I(),__warn("\u8C03\u7528\u5BB9\u5668\u63A5\u53E3\u83B7\u53D6\u4FE1\u606F\u5931\u8D25:%s",A.message);case 4:return F.a(2)}},P,this,[[0,3]])}));function i(P){return n.apply(this,arguments)}return i})()},{key:"registerParamsFromStartupParams",value:function(n){this.cOfflineVer=n.version||n.appVersion||"",(n.version||n.appVersion)&&(this.cAppId=n.appId),this.fullURL=this.fullURL||n.url||"",this.title=this.title||n.defaultTitle||""}},{key:"onJsBridgeReady",value:function(){var n=this,i=function(){n.jsBridgeReady=!0,n.monitorConfigInited&&n.logCache()};this.getInfoFromBridge(i)}},{key:"set",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};objectAssign2(this,n)}},{key:"setMonitorConfigs",value:function(){}},{key:"initMonitorConfigs",value:function(n){}},{key:"fetchConfig",value:function(){}},{key:"fetchConfigByRequest",value:function(){}},{key:"fetchConfigByJSBridge",value:function(){}},{key:"onMonitorConfigInited",value:function(){var n=this;this.monitorOptions&&this.monitorOptions.forEach(function(D){D&&D.code&&(n.monitorOptionMap[D.code]=D)});var i=this.monitorOptionMap[ErrorCodeEnums$1.REQUEST];if(!this.disableInterface&&i){var P=i.code,I=i.isActive,k=i.isDeleted;P===ErrorCodeEnums$1.REQUEST&&I&&!k&&interfaceRegister(this)}this.isAlipay&&!this.jsBridgeReady||this.logCache()}},{key:"onFetchConfigError",value:function(n){this.monitorConfigInited=!0,this.monitorConfigFailed=!0,this.onMonitorConfigInited(),__warn("\u83B7\u53D6\u670D\u52A1\u7AEF\u914D\u7F6E\u5931\u8D25\uFF1A%s",n.message)}}])})(Base),index_esm_default=Monitor}}),yuyan_exports={};__export(yuyan_exports,{report:function(){return report4},start:function(){return start2}});function getMonitor(){return monitor||(monitor=new index_esm_default({yuyanId:YUYAN_ID})),monitor}function start2(){try{getMonitor()}catch(t){}}function report4(t){try{getMonitor().log(t)}catch(e){}}var YUYAN_ID,monitor,init_yuyan=__esm({"src/monitor/utils/yuyan.ts":function(){"use strict";init_index_esm3(),YUYAN_ID="180020010001275901",monitor=null}}),index_exports={};__export(index_exports,{request:function(){return request2}}),module.exports=__toCommonJS(index_exports);var PRODUCT_CD="GP000000000000000149",AGREEMENT_IDS=["AG01001180","AG01001181"],DEV_PRODUCT_CD="P000001",DEV_AGREEMENT_IDS=["AG02003063"];function createAgreementSignFlow(t){function e(){return t.isProdOrPreEnv()?PRODUCT_CD:DEV_PRODUCT_CD}function n(){return t.isProdOrPreEnv()?AGREEMENT_IDS:DEV_AGREEMENT_IDS}function i(k){for(var D=n(),A=0;A<D.length;A+=1){for(var F=!1,M=0;M<k.length;M+=1){var ee=k[M];if(ee.agreementId===D[A]&&ee.status==="S"){F=!0;break}}if(!F)return!1}return!0}function P(){return __async(this,null,function(){var k,D;return __generator(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,t.loadAgreementUtils().querySignRecord(e())];case 1:if(k=A.sent(),k.success===!1)throw new Error("querySignRecord returned success=false");return[2,{status:i(k.data&&k.data.signRecordVOS||[])?"MEMBER":"",userId:k.data&&k.data.userId}];case 2:throw D=A.sent(),D instanceof Error?D:new Error("Failed to query Voyager sign status");case 3:return[2]}})})}function I(){return __async(this,null,function(){var k,D;return __generator(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,t.loadAgreementUtils().signAgreement({productCd:e(),agreementIds:n()})];case 1:if(k=A.sent(),k.success===!1)throw new Error("signAgreement returned success=false");return[2,{status:"MEMBER",userId:k.userId}];case 2:throw D=A.sent(),D instanceof Error?D:new Error("Failed to sign Voyager agreement");case 3:return[2]}})})}return{querySignStatus:P,sign:I}}var agreementUtils=__toESM(require_dist());function isProdOrPreEnv(){var t,e=typeof my=="undefined"||(t=my.env)==null?void 0:t.clientEnv;return e==="prod"||e==="pre"}var MP_GATEWAYS={dev:"https://mobilegw.stable.alipay.net/mgw.htm",test:"https://mobilegw.test.alipay.net/mgw.htm",pre:"https://mobilegwpre.alipay.com/mgw.htm"};function getMpGateway(t){if(t)return MP_GATEWAYS[t.toLowerCase()]}var MARMOT_CONFIG_KEY="voyager-campaign-sdk-config_service-code-whitelist",MARMOT_CONFIG_URL="https://config.marmot-cloud.com/config/"+MARMOT_CONFIG_KEY+"/en_US.json",MARMOT_TIMEOUT=60*1e3,_b=createAgreementSignFlow({isProdOrPreEnv,loadAgreementUtils:function(){return agreementUtils}}),querySignStatus=_b.querySignStatus,sign=_b.sign;function rpc(t){if(typeof my=="undefined"||typeof my.rpc!="function")throw new Error("my.rpc is unavailable for platform mp");var e=getMpGateway(t.env);return new Promise(function(n,i){my.rpc(__spreadProps(__spreadValues({operationType:t.operationType,requestData:t.requestData},e?{gateway:e}:{}),{success:function(P){return n(P)},fail:function(P){return i(P)}}))})}function getSystemInfo(){if(typeof my=="undefined"||typeof my.getSystemInfo!="function")throw new Error("my.getSystemInfo is unavailable for platform mp");return new Promise(function(t,e){my.getSystemInfo({success:function(n){return t(n)},fail:function(n){return e(n)}})})}function getClientName(){return"alipay"}function getLocale(t){return String(t.language||t.locale||"")}function toMpRequestError(t){if(!t||typeof t!="object")return new Error("Marmot request failed: "+String(t));var e=t,n=e.errorCode===void 0?e.error:e.errorCode,i=e.errorMessage===void 0?e.message:e.errorMessage;return new Error("Marmot request failed"+(n===void 0?"":" ["+String(n)+"]")+(i===void 0?"":": "+String(i)))}function fetchWhitelistConfig(){return new Promise(function(t,e){if(typeof my=="undefined"||typeof my.request!="function"){e(new Error("my.request is unavailable for platform mp"));return}my.request({url:MARMOT_CONFIG_URL,method:"GET",dataType:"json",timeout:MARMOT_TIMEOUT,success:function(n){var i=n.status;if(i!==void 0&&(i<200||i>=300)){e(new Error("Marmot request failed with status "+i));return}t(n.data)},fail:function(n){return e(toMpRequestError(n))}})})}var storage={read:function(t){return typeof my=="undefined"||typeof my.getStorage!="function"?Promise.reject(new Error("Mini program storage is unavailable for platform mp")):new Promise(function(e,n){my.getStorage({key:t,success:function(i){return e(i.data)},fail:function(i){return n(i)}})})},write:function(t,e){return typeof my=="undefined"||typeof my.setStorage!="function"?Promise.reject(new Error("Mini program storage is unavailable for platform mp")):new Promise(function(n,i){my.setStorage({key:t,data:e,success:function(){return n()},fail:function(P){return i(P)}})})},remove:function(t){return typeof my=="undefined"||typeof my.removeStorage!="function"?Promise.reject(new Error("Mini program storage is unavailable for platform mp")):new Promise(function(e,n){my.removeStorage({key:t,success:function(){return e()},fail:function(i){return n(i)}})})}};function createMpAdapter(){return{platform:"mp",rpc,getSystemInfo,getClientName,getLocale,storage,fetchWhitelistConfig,querySignStatus,sign}}function normalizeLocale(t){var e=String(t||"").replace("-","_").split("_").filter(Boolean);return e.length?(e[0].toLowerCase()==="id"&&(e[0]="in"),e[1]&&(e[1]=e[1].toUpperCase()),e.join("_")):"en_US"}function getTerminalType(t){var e=String(t||"").toLowerCase();return e==="changipay"||e==="huawei_atomic"?"WAP":"MINI_APP"}function createEnvInfo(t,e){return{tokenId:e.tokenId,terminalType:getTerminalType(e.clientName),osType:/ios/i.test(String(t.platform||t.os||""))?"IOS":"ANDROID",osVersion:String(t.system||t.osVersion||""),appId:"",appVersion:String(t.version||t.appVersion||""),sdkVersion:"",locale:normalizeLocale(e.locale),extendInfo:{clientName:String(e.clientName||"")}}}function createEnvInfoLoader(t){var e=null;return function(){return e||(e=Promise.all([t.getSystemInfo(),t.getAppToken?t.getAppToken().catch(function(){}):Promise.resolve(void 0)]).then(function(n){var i=n[0],P=n[1];return createEnvInfo(i,{clientName:t.getClientName(),locale:t.getLocale(i),tokenId:P})}),e.then(void 0,function(){e=null})),e}}var OPERATION_TYPE="alipay.aplus.ivguserprod.withauth.unifiedservice";function createRawRequest(t,e){return function(n,i,P){return __async(this,null,function(){var I,k,D;return __generator(this,function(A){switch(A.label){case 0:return[4,e()];case 1:return I=A.sent(),k=__spreadValues({operationType:OPERATION_TYPE,requestData:[{serviceCode:n,params:[__spreadProps(__spreadValues({},i),{envInfo:I})]}]},P?{env:P}:{}),D=t.decoratePayload,D?[4,t.decoratePayload(k)]:[3,3];case 2:D=k=A.sent(),A.label=3;case 3:return[2,t.rpc(k)]}})})}}var VOYAGER_USER_INFO="VOYAGER_USER_INFO",VOYAGER_API_WHITELIST_CONFIG="VOYAGER_API_WHITELIST_CONFIG";function parseValue(t){if(t==null||t==="")return null;if(typeof t!="string")return t;try{return JSON.parse(t)}catch(e){return null}}function readCache(t,e){return __async(this,null,function(){var n;return __generator(this,function(i){switch(i.label){case 0:return[4,t.read(e)];case 1:return n=i.sent(),[2,parseValue(n)]}})})}function writeCache(t,e,n){return t.write(e,JSON.stringify(n))}function createState(){return{signStatus:null,signStatusTask:null,whitelist:null,whitelistTask:null}}var state=createState();function getRuntimeState(){return state}function ignoreCacheError(){}function persist(t,e){var n={status:e.status,userId:e.userId,updatedAt:Date.now()};writeCache(t.storage,VOYAGER_USER_INFO,n).then(ignoreCacheError,ignoreCacheError)}function resolveStatus(t){return __async(this,null,function(){var e,n,i,P;return __generator(this,function(I){switch(I.label){case 0:e=getRuntimeState(),n=null,I.label=1;case 1:return I.trys.push([1,3,,4]),[4,readCache(t.storage,VOYAGER_USER_INFO)];case 2:return n=I.sent(),[3,4];case 3:return i=I.sent(),n=null,[3,4];case 4:return n&&n.status==="MEMBER"?[2,(e.signStatus="MEMBER",{status:"MEMBER",userId:n.userId})]:[4,t.querySignStatus()];case 5:return P=I.sent(),[2,(e.signStatus=P.status,persist(t,P),P)]}})})}function getSignStatus(t){var e=getRuntimeState();if(e.signStatus==="MEMBER")return Promise.resolve({status:"MEMBER"});if(e.signStatusTask)return e.signStatusTask;var n=resolveStatus(t);e.signStatusTask=n;var i=function(){e.signStatusTask===n&&(e.signStatusTask=null)};return n.then(i,i),n}var SDK_SOURCE_TAG="voyager-campaign-sdk-ext",CN_CLIENT_NAMES={alipay:!0},APLUS_CLIENT_NAMES={alipayhk:!0,dana:!0,gcash:!0,hipay:!0,kakaopay:!0,mpay:!0,tinaba:!0,tmn:!0,tngd:!0,toss:!0,zalopay:!0};function resolveChannelFromClientName(t){var e=String(t||"").trim().toLowerCase();return CN_CLIENT_NAMES[e]?"CN":APLUS_CLIENT_NAMES[e]?"APLUS":"UNKNOWN"}var marmotProviderTask=null,yuyanProviderTask=null,channelResolver=function(){return Promise.resolve("UNKNOWN")};function configureMonitor(t){channelResolver=t}function loadProvider(t){return t==="APLUS"?(marmotProviderTask||(marmotProviderTask=Promise.resolve().then(function(){return init_marmot(),marmot_exports})),marmotProviderTask):t==="CN"?(yuyanProviderTask||(yuyanProviderTask=Promise.resolve().then(function(){return init_yuyan(),yuyan_exports})),yuyanProviderTask):Promise.resolve(null)}function readField(t,e){try{if(!t||typeof t!="object")return;var n=t[e];if(typeof n=="string"||typeof n=="number")return String(n)}catch(i){return}}function stringifyResult(t){if(t!=null){if(typeof t=="string")return t;try{return JSON.stringify(t)}catch(e){return}}}function dispatch(t){try{channelResolver().then(loadProvider).then(function(e){e&&e.report(t)}).catch(function(){})}catch(e){}}function log3(t){dispatch(t)}function startMonitor(){try{channelResolver().then(loadProvider).then(function(t){t&&t.start()}).catch(function(){})}catch(t){}}function reportRequestSuccess(t,e,n){log3({code:"1033",msg:"SUCCESS",m1:Date.now()-n,c1:readField(e,"traceId")||readField(e,"ariverRpcTraceId"),d1:t.serviceCode,d2:t.platform,d3:stringifyResult(e),d4:SDK_SOURCE_TAG})}function reportRequestFailure(t,e,n){log3({code:"1033",msg:"FAILED",m1:Date.now()-n,c1:readField(e,"traceId")||readField(e,"ariverRpcTraceId"),d1:t.serviceCode,d2:t.platform,d3:stringifyResult(e),d4:SDK_SOURCE_TAG})}function reportWhitelistHit(t,e){log3({code:"1034",msg:e?"SUCCESS":"FAILED",d1:t.serviceCode,d2:t.platform,d3:e?void 0:"VOYAGER_API_ACCESS_DENIED",d4:SDK_SOURCE_TAG})}function reportWhitelistConfig(t,e,n){log3({code:"1035",msg:e?"SUCCESS":"FAILED",d2:t,d4:SDK_SOURCE_TAG,d5:e?void 0:readField(n,"message")})}function reportSignStatus(t,e){log3({code:"1036",msg:e?"SUCCESS":"FAILED",d1:t.serviceCode,d2:t.platform,d3:e?void 0:"VOYAGER_NOT_SIGNED",d4:SDK_SOURCE_TAG})}var WHITELIST_TTL=1440*60*1e3;function ignoreCacheError2(){}function isValid(t){return!!(t&&Array.isArray(t.serviceCodes)&&typeof t.expiresAt=="number"&&Date.now()<t.expiresAt)}function createSnapshot(t){for(var e={},n=0;n<t.serviceCodes.length;n+=1)e["$"+t.serviceCodes[n]]=!0;return __spreadProps(__spreadValues({},t),{lookup:e})}function extractApiEntry(t){if(typeof t=="string")return t;if(t&&typeof t=="object"){var e=t.api;if(typeof e=="string"&&e)return e}return null}function parseServiceCodes(t){if(typeof t=="string")try{return parseServiceCodes(JSON.parse(t))}catch(I){return null}if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n+=1){var i=extractApiEntry(t[n]);i&&e.push(i)}return e}if(!t||typeof t!="object")return null;var P=t;return P.serviceCodes!==void 0?parseServiceCodes(P.serviceCodes):P.whitelist!==void 0?parseServiceCodes(P.whitelist):P.data!==void 0?parseServiceCodes(P.data):P.value!==void 0?parseServiceCodes(P.value):null}function loadRemote(t){return __async(this,null,function(){var e,n,i;return __generator(this,function(P){switch(P.label){case 0:return P.trys.push([0,2,,3]),n=parseServiceCodes,[4,t.fetchWhitelistConfig()];case 1:if(e=n.apply(void 0,[P.sent()]),!e||!e.length)throw new Error("Invalid Marmot whitelist config");return[2,{serviceCodes:e,expiresAt:Date.now()+WHITELIST_TTL}];case 2:throw i=P.sent(),i instanceof Error?i:new Error("Failed to load Voyager API whitelist");case 3:return[2]}})})}function resolveWhitelist(t,e){return __async(this,null,function(){var n,i,P,I,k;return __generator(this,function(D){switch(D.label){case 0:n=null,D.label=1;case 1:return D.trys.push([1,3,,4]),[4,readCache(e,VOYAGER_API_WHITELIST_CONFIG)];case 2:return n=D.sent(),[3,4];case 3:return i=D.sent(),n=null,[3,4];case 4:return isValid(n)?(P=n,[3,8]):[3,5];case 5:return D.trys.push([5,7,,8]),[4,loadRemote(t)];case 6:return P=D.sent(),reportWhitelistConfig(t.platform,!0),[3,8];case 7:throw I=D.sent(),reportWhitelistConfig(t.platform,!1,I),I;case 8:return k=createSnapshot(P),[2,(getRuntimeState().whitelist=k,isValid(n)||writeCache(e,VOYAGER_API_WHITELIST_CONFIG,P).then(ignoreCacheError2,ignoreCacheError2),k)]}})})}function loadWhitelist(t,e){var n=getRuntimeState();if(n.whitelist&&Date.now()<n.whitelist.expiresAt)return Promise.resolve(n.whitelist);if(n.whitelistTask)return n.whitelistTask;var i=resolveWhitelist(t,e);n.whitelistTask=i;var P=function(){n.whitelistTask===i&&(n.whitelistTask=null)};return i.then(P,P),i}function checkWhitelist(t){var e=getRuntimeState().whitelist;return!e||Date.now()>=e.expiresAt?!1:e.lookup["$*"]===!0||e.lookup["$"+t]===!0}function ignoreBackgroundError(){}function createErrorResponse(t,e){return{success:!1,resultCode:t,resultMsg:e}}function normalizeError(t){return t instanceof Error?t:new Error("Voyager request failed")}function createRequest(t){var e=createEnvInfoLoader(t),n=createRawRequest(t,e);return configureMonitor(function(){return __async(null,null,function(){var i,P;return __generator(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,e()];case 1:return i=I.sent(),[2,resolveChannelFromClientName(i.extendInfo.clientName)];case 2:return P=I.sent(),[2,"UNKNOWN"];case 3:return[2]}})})}),function(i){return __async(this,null,function(){var P,I,k,D,A,F,M;return __generator(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,6,,7]),P=loadWhitelist(t,t.storage),P.then(ignoreBackgroundError,ignoreBackgroundError),[4,getSignStatus(t)];case 1:return I=ee.sent().status==="MEMBER",reportSignStatus({platform:t.platform,serviceCode:i.serviceCode},I),I?[4,P]:[2,createErrorResponse("VOYAGER_NOT_SIGNED","Voyager sign-in is required before calling business APIs")];case 2:return ee.sent(),k=checkWhitelist(i.serviceCode),reportWhitelistHit({platform:t.platform,serviceCode:i.serviceCode},k),k?[4,n(i.serviceCode,i.params,i.env)]:[3,4];case 3:return D=ee.sent(),[3,5];case 4:D=createErrorResponse("VOYAGER_API_ACCESS_DENIED","The serviceCode is not included in the Voyager API whitelist"),ee.label=5;case 5:return[2,D];case 6:return A=ee.sent(),F=normalizeError(A),M=F.code,[2,createErrorResponse(M||"VOYAGER_REQUEST_FAILED",F.message)];case 7:return[2]}})})}}function isErrorResponse(t){return!!t&&typeof t=="object"&&t.success===!1&&typeof t.resultCode=="string"}var adapter=createMpAdapter(),executeRequest=createRequest(adapter);function request2(t){return __async(this,null,function(){var e,n;return __generator(this,function(i){switch(i.label){case 0:return e=Date.now(),startMonitor(),[4,executeRequest({serviceCode:t.serviceCode,params:t.params,env:t.env})];case 1:return n=i.sent(),[2,(isErrorResponse(n)?n.resultCode!=="VOYAGER_API_ACCESS_DENIED"&&n.resultCode!=="VOYAGER_NOT_SIGNED"&&reportRequestFailure({platform:adapter.platform,serviceCode:t.serviceCode},n,e):reportRequestSuccess({platform:adapter.platform,serviceCode:t.serviceCode},n,e),n)]}})})}
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(P){return Object.getOwnPropertyDescriptor(t,P).enumerable})),n.push.apply(n,i)}return n}function _objectSpread22(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ownKeys2(Object(n),!0).forEach(function(i){_defineProperty2(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys2(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _toConsumableArray2(t){return _arrayWithoutHoles2(t)||_iterableToArray2(t)||_unsupportedIterableToArray2(t)||_nonIterableSpread2()}function _toPrimitive(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return typeof e=="symbol"?e:e+""}function _typeof2(t){"@babel/helpers - typeof";return _typeof2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof2(t)}function _unsupportedIterableToArray2(t,e){if(t){if(typeof t=="string")return _arrayLikeToArray2(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray2(t,e):void 0}}function allFieldsReady(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(!e.length)return!0;for(var i=0;i<e.length;i++){var P=e[i];if(t[P]===null||t[P]===void 0)return n&&n("Field is required. Log cached."),!1}return!0}function shallowMerge(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function objectAssign(t,e){if(!e||_typeof2(e)!=="object")return t;var n=t||{};for(var i in e)e.hasOwnProperty(i)&&e[i]!==void 0&&(n[i]=e[i]);return n}function getProperty(t,e){for(var n=e.split("."),i=0;i<n.length-1;i++)if(t=t[n[i]],_typeof2(t)!=="object"||!t||Array.isArray(t))return"";return t[n.pop()]}function setProperty(t,e,n){for(var i=e.split("."),P=0;P<i.length-1;P++){if(_typeof2(t[i[P]])!=="object"&&t[i[P]]!==void 0||Array.isArray(t[i[P]]))return;t[i[P]]||(t[i[P]]={}),t=t[i[P]]}t[i.pop()]=n}function nodeListToArray2(t){var e,n;try{return e=[].slice.call(t),e}catch(P){e=[],n=t.length;for(var i=0;i<n;i++)e.push(t[i]);return e}}function getAttr2(t,e){return t&&t.getAttribute&&t.getAttribute(e)||""}function getGlobal2(){if(!eval)return typeof global!="undefined"?global:window;try{return(0,eval)("this")}catch(t){return typeof global!="undefined"?global:window}}function getOptionsDefaulter(){return defaulterSingleton||(defaulterSingleton=createOptionsDefaulter()),defaulterSingleton}function getMetaOptions(){var t={};for(var e in metaMap)if(metaMap.hasOwnProperty(e)){var n=getMetaInfo(metaMap[e]);n&&(t[e]=n)}return t}function createOptionsDefaulter(){var t=new OptionsDefaulter,e=getMetaOptions();return t.set("yuyanId","call",function(n){return n||e.yuyanId}),t.set("bmAppid","call",function(n,i){return i.yuyanId?null:n||(i.appid?i.appid:i._appId||e._appId)}),t.set("userId","call",function(n,i){return i.roleId?i.roleId:n}),t.set("disableInterface","call",function(n){return n||!1}),t.set("oncePerSession","call",function(n){return n||!1}),t.set("autoCapture","call",function(n,i){return i.hasOwnProperty("autoCapture")?!!i.autoCapture:!0}),t.set("autoEnv","call",function(n,i){return i.hasOwnProperty("autoEnv")?!!i.autoEnv:!0}),t.set("defaults","call",function(n){return objectAssign({},n)}),t.set("sprintId","call",function(n){return n||e.sprintId}),t.set("requiredFields","call",function(n){return Array.isArray(n)?n:typeof n=="string"?[n]:[]}),t.set("eventId","call",function(n,i){return i.appType==="PC"?"102022":"102023"}),t.set("beforeLog","call",function(n){if(typeof n=="function")return n}),t.set("callBridge","call",function(n){if(typeof n=="function")return n}),t.set("plugins","call",function(n){return Array.isArray(n)?n:["tracert","performance","buc"]}),t.set("forceHttpReport","call",function(n){return!!n}),t}function logError(t,e,n){var i=n.log,P=n._warn,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{var k=(I==null?void 0:I.code)||ErrorCodeEnums.JS,D="";if(t)if(t.stack){var A=es.stackFormatter(t),F=A.hash,M=A.stackList;D=F,F&&M&&M.length&&e(F,function(ee,x){if(ee)return P("hash\u68C0\u6D4B\u5931\u8D25",ee);x||i(_objectSpread22(_objectSpread22({},I),{},{code:ErrorCodeEnums.JS,s1:F,s2:compressStack2(M),s3:1}))}),i(_objectSpread22({code:k,msg:t.message,s10:D},I),{originalError:t})}else i(_objectSpread22({code:k,msg:t.message||t},I),{originalError:t})}catch(ee){P("\u5F02\u5E38\u4E0A\u62A5\u5931\u8D25:",ee)}}function codeEquals(t,e){return String(t)===String(e)}function escapeValidation(t){return Number(t)>22e3&&Number(t)<23e3}function newPreProcess(t,e,n,i){var P,I=e.destroyed,k=e.beforeLog,D=e._warn,A=e.tenant;if(!I){if(typeof k=="function")try{t=k(t,{originalError:i==null?void 0:i.originalError})}catch(ie){D("beforeLog \u5931\u8D25\uFF1A",ie)}if(!t||_typeof2(t)!=="object"||Array.isArray(t)){D("beforeLog\u8FD4\u56DE\u503C\u4E0D\u662F\u5BF9\u8C61\uFF0C\u4E0D\u8FDB\u884C\u4E0A\u62A5");return}var F=[t.code,t.msg||"",t.uid].join("_"),M=newTrackedLogs[F],ee=(P=t.oncePerSession)!==null&&P!==void 0?P:e.oncePerSession;if(ee&&M){e._warn("\u5F53\u524D\u7531\u4E8E OncePerSession \u7B56\u7565\uFF0C\u672A\u88AB\u91C7\u96C6");return}var x=t.bmAppid||e.bmAppid;if(x===e.bmAppid){var ne,re;if(codeEquals(t.code,PERFORMACE_RESERVED_CODE)||A!=="MAIN_SITE")return t;var ue=((ne=e.monitorOptionMap)===null||ne===void 0?void 0:ne[Number(t.code)])||((re=e.monitorOptionMap)===null||re===void 0?void 0:re["".concat(t.code)]);if(!n&&!e.monitorConfigFailed&&!ue&&!escapeValidation(t.code)){e._warn("\u76D1\u63A7\u5E73\u53F0\u6CA1\u6709\u8BE5\u76D1\u63A7\u9879\u7684\u914D\u7F6E: ".concat(t.code));return}if(ue&&(!ue.isActive||ue.isDeleted)){e._warn("\u8BE5\u76D1\u63A7\u9879\u672A\u542F\u7528\u6216\u5DF2\u88AB\u5E9F\u5F03: ".concat(t.code));return}var le=ue!=null&&ue.sampleRate&&t.defaultSampleRate?1:t.defaultSampleRate||t.sampleRate||1;if(le!==1&&Math.random()>Number(le)){D("\u5F53\u524D\u5DF2\u8BBE\u7F6E\u4EE3\u7801\u91C7\u6837\u7387 ".concat(le,"\uFF0C\u672A\u88AB\u91C7\u96C6"));return}if(ue){var ce=ue.sampleRate||1;if(ce!==1&&Math.random()>Number(ce)){D("\u5F53\u524D\u5DF2\u914D\u7F6E\u91C7\u6837\u7387 ".concat(ce,"\uFF0C\u672A\u88AB\u91C7\u96C6"));return}objectAssign(t,{sampleRate:ce}),ue.level&&objectAssign(t,{level:ue.level});for(var me={},ae=ue.fields||[],fe=0;fe<ae.length;fe++)me[ae[fe]]=!0;for(var ye in t)!me[ye]&&/^[dmc]\d+$/.test(ye)&&delete t[ye]}}return newTrackedLogs[F]=1,t}}var OptionsDefaulter,defaulterSingleton,getMetaInfo,metaMap,ErrorCodeEnums,CodeLevelEnums,enums,es,newTrackedLogs,PERFORMACE_RESERVED_CODE,init_index_esm2=__esm({"node_modules/_@alipay_yuyan-monitor-utils@4.3.1@@alipay/yuyan-monitor-utils/dist/index.esm.js":function(){init_index_esm(),OptionsDefaulter=(function(){function t(){_classCallCheck2(this,t),this.defaults={},this.configs={}}return _createClass2(t,[{key:"set",value:function(e,n,i){i!==void 0?(this.defaults[e]=i,this.configs[e]=n):(this.defaults[e]=n,delete this.configs[e])}},{key:"process",value:function(e){var n;e=objectAssign({},e);for(var i in this.defaults)if(this.defaults.hasOwnProperty(i))switch(this.configs[i]){case"call":setProperty(e,i,this.defaults[i].call(this,getProperty(e,i),e));break;case"make":getProperty(e,i)===void 0&&setProperty(e,i,this.defaults[i].call(this,e));break;case"append":var P=getProperty(e,i);Array.isArray(P)||(P=[]),(n=P).push.apply(n,_toConsumableArray2(this.defaults[i])),setProperty(e,i,P);break;default:getProperty(e,i)===void 0&&setProperty(e,i,this.defaults[i])}return e}}])})(),getMetaInfo=(function(t){return function(e){var n;if(!(!(t==null||(n=t.document)===null||n===void 0)&&n.querySelectorAll))return"";for(var i=nodeListToArray2(t.document.querySelectorAll("meta")),P=0;P<i.length;P++){var I=i[P];if(getAttr2(I,"name")===e)return getAttr2(I,"content")}return null}})(getGlobal2()),metaMap={_appId:"bm_app_id",yuyanId:"yuyan_id",sprintId:"bm_sprint_id"},ErrorCodeEnums={JS:1,REQUEST:2,PROMISEREJECTION:3,ASSETS:4},CodeLevelEnums={B:"\u7981\u7528",L:"\u4F4E",M:"\u4E2D",H:"\u9AD8"},enums=Object.freeze({__proto__:null,ErrorCodeEnums,CodeLevelEnums}),es=new ErrorStack,newTrackedLogs={},PERFORMACE_RESERVED_CODE="32767"}}),require_lib=__commonJS({"node_modules/_timing2@0.3.4@timing2/lib/index.js":function(t,e){(function(n,i){typeof e=="object"&&e.exports?e.exports=i():n.timing2=i()})(typeof self!="undefined"?self:t,function(){if(typeof window=="object"){var n=window,i,P={0:"navigate",1:"reload",2:"back_forward"},I=["unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart"];if(!n||!n.performance||typeof n.performance!="object"||!n.performance.timing)return i;if(typeof n.performance.getEntries=="function"&&typeof n.performance.getEntriesByType=="function"&&typeof n.performance.getEntriesByName=="function"&&typeof n.performance.now=="function"&&n.performance.timeOrigin)return n.performance;var k=function(){for(var D=n.performance.timing,A=D.navigationStart||D.redirectStart||D.fetchStart,F={entryType:"navigation",initiatorType:"navigation",name:n.location.href,startTime:0,duration:D.loadEventEnd?D.loadEventEnd-A:0,redirectCount:n.performance.navigation.redirectCount,type:P[n.performance.navigation.type]},M=0;M<I.length;M++){var ee=I[M],x=D[ee];F[ee]=x?x-A:0}return F};return i={_entry:k(),timeOrigin:n.performance.timing.navigationStart,getEntries:function(){return[this._entry]},getEntriesByType:function(D){return D!=="navigation"?[]:[this._entry]},getEntriesByName:function(D){return D!==n.location.href?[]:[this._entry]},now:function(){return Date.now()-n.performance.timing.navigationStart}},i}})}});function _assertThisInitialized2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function asyncGeneratorStep2(t,e,n,i,P,I,k){try{var D=t[I](k),A=D.value}catch(F){return void n(F)}D.done?e(A):Promise.resolve(A).then(i,P)}function _asyncToGenerator2(t){return function(){var e=this,n=arguments;return new Promise(function(i,P){var I=t.apply(e,n);function k(A){asyncGeneratorStep2(I,i,P,k,D,"next",A)}function D(A){asyncGeneratorStep2(I,i,P,k,D,"throw",A)}k(void 0)})}}function _callSuper(t,e,n){return e=_getPrototypeOf2(e),_possibleConstructorReturn2(t,_isNativeReflectConstruct2()?Reflect.construct(e,n||[],_getPrototypeOf2(t).constructor):e.apply(t,n))}function _classCallCheck3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties3(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey2(i.key),i)}}function _createClass3(t,e,n){return e&&_defineProperties3(t.prototype,e),n&&_defineProperties3(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty3(t,e,n){return(e=_toPropertyKey2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf2(t)}function _inherits2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e)}function _isNativeReflectConstruct2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct2=function(){return!!t})()}function ownKeys3(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(P){return Object.getOwnPropertyDescriptor(t,P).enumerable})),n.push.apply(n,i)}return n}function _objectSpread23(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ownKeys3(Object(n),!0).forEach(function(i){_defineProperty3(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys3(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _possibleConstructorReturn2(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t)}function _regenerator2(){var t,e,n=typeof Symbol=="function"?Symbol:{},i=n.iterator||"@@iterator",P=n.toStringTag||"@@toStringTag";function I(ne,re,ue,le){var ce=re&&re.prototype instanceof D?re:D,me=Object.create(ce.prototype);return _regeneratorDefine2(me,"_invoke",(function(ae,fe,ye){var ie,se,oe,pe=0,Se=ye||[],Pe=!1,Ie={p:0,n:0,v:t,a:$,f:$.bind(t,4),d:function(we,ve){return ie=we,se=0,oe=t,Ie.n=ve,k}};function $(we,ve){for(se=we,oe=ve,e=0;!Pe&&pe&&!be&&e<Se.length;e++){var be,Ae=Se[e],Te=Ie.p,De=Ae[2];we>3?(be=De===ve)&&(oe=Ae[(se=Ae[4])?5:(se=3,3)],Ae[4]=Ae[5]=t):Ae[0]<=Te&&((be=we<2&&Te<Ae[1])?(se=0,Ie.v=ve,Ie.n=Ae[1]):Te<De&&(be=we<3||Ae[0]>ve||ve>De)&&(Ae[4]=we,Ae[5]=ve,Ie.n=De,se=0))}if(be||we>1)return k;throw Pe=!0,ve}return function(we,ve,be){if(pe>1)throw TypeError("Generator is already running");for(Pe&&ve===1&&$(ve,be),se=ve,oe=be;(e=se<2?t:oe)||!Pe;){ie||(se?se<3?(se>1&&(Ie.n=-1),$(se,oe)):Ie.n=oe:Ie.v=oe);try{if(pe=2,ie){if(se||(we="next"),e=ie[we]){if(!(e=e.call(ie,oe)))throw TypeError("iterator result is not an object");if(!e.done)return e;oe=e.value,se<2&&(se=0)}else se===1&&(e=ie.return)&&e.call(ie),se<2&&(oe=TypeError("The iterator does not provide a '"+we+"' method"),se=1);ie=t}else if((e=(Pe=Ie.n<0)?oe:ae.call(fe,Ie))!==k)break}catch(Ae){ie=t,se=1,oe=Ae}finally{pe=1}}return{value:e,done:Pe}}})(ne,ue,le),!0),me}var k={};function D(){}function A(){}function F(){}e=Object.getPrototypeOf;var M=[][i]?e(e([][i]())):(_regeneratorDefine2(e={},i,function(){return this}),e),ee=F.prototype=D.prototype=Object.create(M);function x(ne){return Object.setPrototypeOf?Object.setPrototypeOf(ne,F):(ne.__proto__=F,_regeneratorDefine2(ne,P,"GeneratorFunction")),ne.prototype=Object.create(ee),ne}return A.prototype=F,_regeneratorDefine2(ee,"constructor",F),_regeneratorDefine2(F,"constructor",A),A.displayName="GeneratorFunction",_regeneratorDefine2(F,P,"GeneratorFunction"),_regeneratorDefine2(ee),_regeneratorDefine2(ee,P,"Generator"),_regeneratorDefine2(ee,i,function(){return this}),_regeneratorDefine2(ee,"toString",function(){return"[object Generator]"}),(_regenerator2=function(){return{w:I,m:x}})()}function _regeneratorDefine2(t,e,n,i){var P=Object.defineProperty;try{P({},"",{})}catch(I){P=0}_regeneratorDefine2=function(I,k,D,A){function F(M,ee){_regeneratorDefine2(I,M,function(x){return this._invoke(M,ee,x)})}k?P?P(I,k,{value:D,enumerable:!A,configurable:!A,writable:!A}):I[k]=D:(F("next",0),F("throw",1),F("return",2))},_regeneratorDefine2(t,e,n,i)}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_setPrototypeOf2(t,e)}function _toPrimitive2(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _toPropertyKey2(t){var e=_toPrimitive2(t,"string");return typeof e=="symbol"?e:e+""}function _typeof3(t){"@babel/helpers - typeof";return _typeof3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof3(t)}function objToStr2(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"^",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=[],P;if(t instanceof Array)i=t;else if(t instanceof Object){var I=n?encodeValue:function(D){return D};for(P in t)if(t.hasOwnProperty(P)){var k=I(t[P]);i.push("".concat(P,"=").concat(k))}}return i.join(e)}function getTime(){var t=new Date,e=function(n){return n<10?"0".concat(n):"".concat(n)};return"".concat(t.getFullYear(),"-").concat(e(t.getMonth()+1),"-").concat(e(t.getDate())," ").concat(e(t.getHours()),":").concat(e(t.getMinutes()),":").concat(e(t.getSeconds()),":").concat(t.getMilliseconds())}function byteCount(t){return t.split(/%..|./).length-1}function parseItem(t){if(!t||_typeof3(t)!=="object")return[];var e=t.eventId,n=t.userId,i=t.ua,P=t.param4,I=t.resolution,k=["D-AE",getTime(),"","","2","","",n,"1000",e,"H5behavior","2","","","","","","","","","","","","","",I,"","","",i,"","","","","",""];return k.push(objToStr2(P,"^",!0)),k}function objectAssign2(t,e){var n=t||{};if(!e||_typeof3(e)!=="object")return n;for(var i in e)e.hasOwnProperty(i)&&e[i]!==void 0&&(n[i]=e[i]);return n}function checkIsAlipay(t){var e=t&&t.userAgent;if(!e)return!1;var n=checkApp(e);return["AP","AF","AFW","BK","AM","APHK","KB"].indexOf(n.name)>=0}function addEvent4(t,e,n){var i=e||window.document;i.addEventListener?i.addEventListener(t,n,!0):i.attachEvent?i.attachEvent("on".concat(t),n):i[t]=n}function removeEvent2(t,e,n){var i=e||window.document;i.removeEventListener?i.removeEventListener(t,n,!0):i.detachEvent?i.detachEvent("on".concat(t),n):i[t]=n}function getAttr3(t,e){return t&&t.getAttribute&&t.getAttribute(e)||""}function nodeListToArray3(t){var e,n;try{return e=[].slice.call(t),e}catch(P){e=[],n=t.length;for(var i=0;i<n;i++)e.push(t[i]);return e}}function getXPath(t,e){var n=t.id?"".concat(t.id):"",i=t.className?"".concat(t.className):"",P=t.tagName.toLowerCase(),I=n||i,k=[];n&&k.push('[@id="'.concat(n,'"]')),i&&k.push('[@class="'.concat(i,'"]'));var D="".concat(P).concat(I?k.join(""):"");return t.parentNode&&t.parentNode.tagName&&e-1!==0?"".concat(getXPath(t.parentNode,e-1),">").concat(D):D}function getResourceErrorSrc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.src||t.href;return t.tagName.toLowerCase()==="img"&&e.indexOf("data:")===0&&(e=e.split(",")[0]),e}function getMetaSpm(t){for(var e=nodeListToArray3(t||document.getElementsByTagName("meta")),n=e.length,i,P,I,k,D=0;D<n;D++)if(i=e[D],P=getAttr3(i,"name"),I=getAttr3(i,"content"),P===spmDataKey2&&I){k=I;break}var A={};return k&&(A.spmAPos=k),A}function getSpmBPos(){var t=getAttr3(document.body,spmDataKey2);return t}function interfaceRegister(t){var e={sampleRate:1,evaluate:null,fullSample:!1};if(typeof window!="undefined"&&"XMLHttpRequest"in window){var n=window.XMLHttpRequest.prototype,i=n.open;n.open=function(k,D){this.__interfaceMonitor__={method:k,url:D||"",status_code:null};for(var A=new Array(arguments.length),F=0;F<A.length;++F)A[F]=arguments[F];i.apply(this,A)};var P=n.send;n.send=function(k){var D=this;function A(){if(D.__interfaceMonitor__&&D.readyState===4)try{var x=D.__interfaceMonitor__.url;if(D.status===0)return;var ne=x.split("?")[0],re=x.split("?")[1]||"",ue=typeof k=="string"?k:JSON.stringify(k),le=String(D.response);le.length>2048&&(le="[too large]");var ce=!1;if(D.status<200||D.status>299||ce||e.fullSample){if(ne===t.server){t._warn("\u4E0A\u62A5\u5F02\u5E38",ue);return}t.logRequestError({type:"http",status:D.status,url:ne,method:D.__interfaceMonitor__.method,query:re,data:ue,response:le,traceId:t.traceId||""})}}catch(me){t._warn("\u63A5\u53E3\u5F02\u5E38\u4E0A\u62A5\u5931\u8D25:",me)}}if("onreadystatechange"in D&&typeof D.onreadystatechange=="function"){var F=D.onreadystatechange;D.onreadystatechange=function(){for(var x=new Array(arguments.length),ne=0;ne<x.length;++ne)x[ne]=arguments[ne];A.apply(this,x),F.apply(this,x)}}else D.onreadystatechange=A;for(var M=new Array(arguments.length),ee=0;ee<M.length;++ee)M[ee]=arguments[ee];return P.apply(this,arguments)}}if(typeof window!="undefined"&&"fetch"in window){var I=window.fetch;window.fetch=function(){for(var k=new Array(arguments.length),D=0;D<k.length;++D)k[D]=arguments[D];var A="GET";return k[1]&&k[1].method&&(A=k[1].method.toUpperCase()),k[1]&&k[1].headers&&(k[1].headers.Accept||k[1].headers.accept||"").includes("stream")?I.apply(this,k):I.apply(this,k).then(function(F){var M=F.headers.get("Content-Type");return M&&M.includes("stream")?F:new Promise(function(ee){try{var x=k[0],ne=x.split("?")[0],re=x.split("?")[1]||"",ue=k[1]&&k[1].body||"",le=typeof ue=="string"?ue:JSON.stringify(ue);F.clone().text().then(function(ce){if(!F.ok||e.fullSample){var me=(ce||"").length>2048?"[too large]":ce;t.logRequestError({type:"http",status:F.status,url:ne,method:A,query:re,data:le,response:me,traceId:F.headers.get("traceid")||F.headers.get("Request-Id")||t.traceId||""})}}).then(function(){ee(F)},function(){ee(F)})}catch(ce){ee(F)}})})}}}function __warn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(!(!console||!console.warn)){var P=t.split("%s").map(function(I,k){return I&&"[YuyanMonitor]".concat(I).concat(n[k])}).join("");console.warn(P)}}function getItem2(t){try{var e,n;return(e=window)===null||e===void 0||(n=e.localStorage)===null||n===void 0?void 0:n.getItem(t)}catch(i){return null}}function setItem2(t,e){try{var n,i;return(n=window)===null||n===void 0||(i=n.localStorage)===null||i===void 0?void 0:i.setItem(t,e)}catch(P){return null}}function extractPageMetrics(t,e,n){if(_typeof3(t)!=="object"||typeof t.getEntriesByType!="function")return null;var i=t==null?void 0:t.getEntriesByType("navigation");if(!i||i.length===0)return null;var P=i[0],I=extractPaintMetrics(t),k={LargestContentfulPaint:e},D={FirstInputDelay:n};return NAVIGATION_KEYS.reduce(function(A,F){var M=P[F]||I[F]||k[F]||D[F];return M==null||typeof M=="number"&&isNaN(M)?_objectSpread23(_objectSpread23({},A),{},_defineProperty3({},"".concat(F),0)):_objectSpread23(_objectSpread23({},A),{},_defineProperty3({},"".concat(F),M))},{})}function getPerformanceMetrics(t,e){return t?normalizeMetrics({m1:e.duration||parseFloat(t.loadEventEnd)-e.startTime,m2:parseFloat(t.domContentLoadedEventStart)-e.startTime,m3:parseFloat(t.domComplete)-e.startTime,m4:t.firstPaint,m5:t.firstContentfulPaint,m6:t.LargestContentfulPaint,m7:parseFloat(t.redirectEnd)-parseFloat(t.redirectStart),m8:parseFloat(t.domainLookupStart)-parseFloat(t.fetchStart),m9:parseFloat(t.domainLookupEnd)-parseFloat(t.domainLookupStart),m10:parseFloat(t.connectEnd)-parseFloat(t.connectStart),m11:parseFloat(t.connectEnd)-parseFloat(t.secureConnectionStart),m12:parseFloat(t.responseStart)-parseFloat(t.requestStart),m13:parseFloat(t.responseEnd)-parseFloat(t.responseStart),m14:parseFloat(t.domComplete)-parseFloat(t.responseEnd),m15:parseFloat(t.loadEventEnd)-parseFloat(t.responseEnd),m16:parseFloat(t.domInteractive)-e.startTime,m17:parseFloat(t.domContentLoadedEventEnd)-parseFloat(t.domContentLoadedEventStart),m18:t.FirstInputDelay}):{}}function normalizeMetrics(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(isNaN(t[n])?e[n]=0:e[n]=Math.round(Math.min(Math.max(0,parseFloat(t[n])),300*1e3)));return e}function sendMetrics(t,e){if(!(_typeof3(e)!=="object"||t.metricsSent))try{var n,i,P=e.getEntriesByType("navigation")[0],I=extractPageMetrics(e,lcp,fid),k={d1:((n=navigator)===null||n===void 0||(i=n.connection)===null||i===void 0?void 0:i.effectiveType)||"-",d2:P.duration===0?1:0,d3:document.hidden?0:1},D={c1:document.title};t.log(_objectSpread23(_objectSpread23(_objectSpread23({code:PERFORMACE_RESERVED_CODE2,msg:typeof location!="undefined"?location.href:""},getPerformanceMetrics(I,P)),k),D)),t.metricsSent=!0}catch(A){}}function detectHashWeb(t,e){if(hashMap[t])return e(null,!0);fetch("https://dataservice.alipayobjects.com/alertserver/hash/".concat(t)).then(function(n){return n.status===200||n.status===304?(hashMap[t]=!0,e(null,!0)):e(null,!1)}).catch(function(n){return e(n,!1)})}function detectHashAppx(t){return Promise.resolve(!1)}function compareVersion2(t,e){if(t&&e){var n=getVersion(t),i=getVersion(e);return compareNumArray(n,i)}else return!t&&e?-1:t&&!e?1:0}function compareNumArray(t,e){for(var n=0;n<t.length;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0}function getVersion(t){var e=t.split("-"),n=0,i=0,P=0,I=Label.Release,k=0,D=e[0].split(".");if(D[0]&&(n=parseInt(D[0],10)),D[1]&&(i=parseInt(D[1],10)),D[2]&&(P=parseInt(D[2],10)),e[1]){var A=e[1].split(".");I={alpha:Label.Alpha,beta:Label.Beta,rc:Label.ReleaseCandidate}[A[0]]||Label.Release,A[1]&&(k=parseInt(A[1],10))}return[n,i,P,I,k]}var import_timing2,encodeValue,checkApp,ClientEnvType,detectEnvSync,detectEnvAsync,getClient,spmDataKey2,serverUrl,host,ClientTypeEnum,NAVIGATION_KEYS,ErrorCodeEnums2,version,startTime,Base,monitorConfigCacheKey,expireDelta,ConfigStorage,ServerConfig,extractPaintMetrics,lcp,fid,RESOURCE_LIMIT,PERFORMACE_RESERVED_CODE2,Performace,REQUEST_BYTE_LIMIT,RequestQueue,hashMap,Label,ErrorCodeEnums$1,Monitor,index_esm_default,init_index_esm3=__esm({"node_modules/_@alipay_yuyan-monitor-sdk@1.3.3@@alipay/yuyan-monitor-sdk/dist/index.esm.js":function(){init_index_esm2(),import_timing2=__toESM(require_lib()),encodeValue=function(t){return encodeURIComponent(t).replace(/'/g,"%27")},checkApp=function(t){var e={is:!1,name:"",version:""},n=t.match(/AliApp\S+\b\)/ig);e.is=/(T-UA)|(TBIOS)|(WindVane)|(AliApp)/i.test(t);try{e.name=n?n[0].match(/\(\w+\-*\w*/)[0].split("(")[1]:"",e.version=n?n[0].match(/(\d+\.*)+/ig)[0]:""}catch(i){}return e},(function(t){t.stable="STABLE",t.test="TEST",t.pre="PRE",t.prod="PROD",t.sandbox="SANDBOX",t.unknown="UNKNOWN"})(ClientEnvType||(ClientEnvType={})),detectEnvSync=function(){var t=typeof my!="undefined";if(t){var e,n,i=t?(e=my)===null||e===void 0||(n=e.env)===null||n===void 0?void 0:n.clientEnv:void 0;switch(i){case"stable":case"test":case"pre":case"prod":return ClientEnvType[i];case"gray":return ClientEnvType.prod;default:return ClientEnvType.unknown}}else if(typeof navigator!="undefined"&&navigator.userAgent&&typeof window!="undefined"){var P,I;if(typeof window.AlipayJSBridge!="undefined"&&window.AlipayJSBridge.startupParams!=="undefined"){var k=window.AlipayJSBridge.startupParams.gateway_env;if(typeof k=="string"){var D;return(D=ClientEnvType[k])!==null&&D!==void 0?D:ClientEnvType.unknown}}if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&navigator.userAgent.indexOf("ProductType/dev")===-1||navigator.userAgent.indexOf("Android")>0&&typeof window.AlipayJSBridge!="undefined"&&typeof window.AlipayJSBridge.startupParams!="undefined"&&!(!((P=window.AlipayJSBridge)===null||P===void 0||(I=P.startupParams)===null||I===void 0)&&I.isSpecialEdition))return ClientEnvType.prod}return ClientEnvType.unknown},detectEnvAsync=(function(){var t=_asyncToGenerator2(_regenerator2().m(function e(){var n;return _regenerator2().w(function(i){for(;;)switch(i.n){case 0:if(n=detectEnvSync(),n===ClientEnvType.unknown){i.n=1;break}return i.a(2,n);case 1:if(!(typeof navigator!="undefined"&&navigator.userAgent&&typeof window!="undefined")){i.n=2;break}if(typeof window.AlipayJSBridge=="undefined"){i.n=2;break}return i.a(2,new Promise(function(P){window.AlipayJSBridge.call("getConfig",{configKeys:["rpcUrl"]},function(I){var k,D=(I==null||(k=I.data)===null||k===void 0?void 0:k.rpcUrl)||"";return D.indexOf("stable.alipay.net")>0?P(ClientEnvType.stable):D.indexOf("test.alipay.net")>0?P(ClientEnvType.test):D.indexOf("mobilegwpre.alipay.com")>0?P(ClientEnvType.pre):D.indexOf("mobilegw.alipaydev.com")>0?P(ClientEnvType.sandbox):D.indexOf("mobilegw.alipay.com")>0?P(ClientEnvType.prod):P(ClientEnvType.unknown)})}));case 2:return i.a(2,ClientEnvType.unknown)}},e)}));return function(){return t.apply(this,arguments)}})(),getClient=function(t){var e={name:"web",client:null};return(typeof dd=="undefined"?"undefined":_typeof3(dd))==="object"&&dd&&typeof dd.httpRequest=="function"?(e.client=dd,e.name="dd"):(typeof ac=="undefined"?"undefined":_typeof3(ac))==="object"&&ac&&typeof ac.call=="function"?(e.client=my,e.name="b2h"):(typeof my=="undefined"?"undefined":_typeof3(my))==="object"&&my&&typeof my.request=="function"?(e.client=my,e.name="my"):(typeof wx=="undefined"?"undefined":_typeof3(wx))==="object"&&wx&&typeof wx.request=="function"&&(e.client=wx,e.name="wx"),e[t]},spmDataKey2="data-aspm",serverUrl={main_site:"https://collect.alipay.com/yuyan/",mybank:"https://collect.mybank.cn/yuyan/"},host={main_site:"collect.alipay.com",mybank:"collect.mybank.cn"},(function(t){t.WX="wx",t.MY="my",t.DD="dd",t.B2H="b2h"})(ClientTypeEnum||(ClientTypeEnum={})),NAVIGATION_KEYS=["connectEnd","connectStart","decodedBodySize","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domainLookupEnd","domainLookupStart","duration","encodedBodySize","fetchStart","loadEventEnd","loadEventStart","redirectCount","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","secureConnectionStart","transferSize","type","unloadEventEnd","unloadEventStart","workerStart","firstPaint","firstContentfulPaint","LargestContentfulPaint","FirstInputDelay"],ErrorCodeEnums2=enums.ErrorCodeEnums,version="1.2.0",startTime=new Date().getTime(),Base=(function(){function t(e){var n=this,i,P;_classCallCheck3(this,t),this.eventId=void 0,this.bmAppid=void 0,this.debug=void 0,this.tenant=void 0,this.beforeLog=void 0,this.clientApp=void 0,this.clientName=void 0,this.aggregationPeriod=void 0,this.resolution=void 0,this.userConfig={},this.oncePerSession=void 0,this.defaults={},this.cOfflineVer="",this.cAppId="",this.cUserId="",this.autoEnv=void 0,this.autoCapture=void 0,this.disableInterface=void 0,this.trackedLogs=[],this.requiredFields=[],this.isErrorHandler=!1,this.enabledPlugins=[],this.forceHttpReport=!1,this.fullURL="",this.title="",this.env="",this.network="",this.monitorConfigInited=!1,this.monitorConfigFailed=!1,this.monitorOptions=[],this.getErrorEventHandler=function(k){n.handleErrorEvent(k,function(D){n.log(D,{reportDirectly:!0})})},this._warn=function(){var k=window;if(_typeof3(k)==="object"&&k.console&&typeof k.console.warn=="function"&&n.debug){for(var D=arguments.length,A=new Array(D),F=0;F<D;F++)A[F]=arguments[F];var M=Array.prototype.slice.call(A);k.console.warn.apply(null,["[Monitor Debug]".concat(M[0]),M.slice(1)])}},this.pcSend=function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"L",A=arguments.length>2?arguments[2]:void 0,F=A&&typeof A=="number"?k.join("$$"):encodeURIComponent(k.join());(n.debug||n.userConfig.debug)&&console.log("[YuyanMonitor]SEND: %s",F);var M=typeof navigator!="undefined"&&navigator;if(M&&M.sendBeacon&&typeof M.sendBeacon=="function"){var ee={type:"application/x-www-form-urlencoded",Host:"".concat(host[n.tenant.toLowerCase()])},x=new Blob(["data=".concat(F,"&time=").concat(new Date().getTime())],ee),ne=M.sendBeacon("".concat(serverUrl[n.tenant.toLowerCase()],"?biztype=yuyanmonitor").concat(D.toLowerCase()),x);if(ne)return}return fetch("".concat(serverUrl[n.tenant.toLowerCase()],"?biztype=yuyanmonitor").concat(D.toLowerCase()),{method:"POST",headers:{"Content-type":"application/x-www-form-urlencoded",Host:"".concat(host[n.tenant.toLowerCase()])},body:"data=".concat(F,"&time=").concat(new Date().getTime())}).catch(function(){try{var re=new Image;re.src="".concat(serverUrl[n.tenant.toLowerCase()],"?data=").concat(F,"&time=").concat(new Date().getTime())}catch(ue){__warn("\u901A\u8FC7 IMG \u4E0A\u62A5\u5931\u8D25: %s",ue)}})},this.clientHttpSend=function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"L",A={"Content-type":"application/x-www-form-urlencoded",Host:"".concat(host[n.tenant.toLowerCase()])},F={url:"".concat(serverUrl[n.tenant.toLowerCase()],"?biztype=yuyanmonitor").concat(D.toLowerCase()),method:"POST",data:"data=".concat(k,"&time=").concat(new Date().getTime()),fail:function(M){try{var ee=new Image;ee.src="".concat(serverUrl[n.tenant.toLowerCase()],"?data=").concat(k,"&time=").concat(new Date().getTime())}catch(x){__warn("\u901A\u8FC7 IMG \u4E0A\u62A5\u5931\u8D25: %s",x)}n.debug&&__warn("\u8BF7\u6C42\u53D1\u9001\u5931\u8D25",M)}};n.clientApp&&n.clientApp.canIUse("request")?n.clientName===ClientTypeEnum.WX?n.clientApp.request(_objectSpread23(_objectSpread23({},F),{},{header:A})):n.clientApp.request(_objectSpread23(_objectSpread23({},F),{},{headers:A})):n.clientApp&&n.clientApp.canIUse("httpRequest")?n.clientName===ClientTypeEnum.DD&&n.clientApp.httpRequest(_objectSpread23(_objectSpread23({},F),{},{headers:A})):__warn("\u8C03\u7528API\u5931\u8D25\uFF0C\u65E0\u6CD5\u5B8C\u6210\u4E0A\u62A5")};var I=getOptionsDefaulter().process(e);this.userConfig=I,this.eventId=I.eventId||"102022",this.bmAppid=I.bmAppid,this.tenant=I.tenant||"MAIN_SITE",this.resolution=I.resolution||"",this.aggregationPeriod=I.aggregationPeriod,this.debug=I.debug||!1,this.clientApp=getClient("client"),this.clientName=getClient("name")||"web",this.autoCapture=I.autoCapture,this.autoEnv=I.autoEnv||!0,this.disableInterface=I.disableInterface,this.oncePerSession=I.oncePerSession,this.beforeLog=I.beforeLog,this.defaults=I.defaults||{},this.requiredFields=I.requiredFields||[],this.enabledPlugins=I.plugins,this.forceHttpReport=!!I.forceHttpReport,this.fullURL=((i=I.defaults)===null||i===void 0?void 0:i.url)||I.url||"",this.title=((P=I.defaults)===null||P===void 0?void 0:P.title)||I.title||""}return _createClass3(t,[{key:"handleErrorEvent",value:function(e,n){try{var i=e.target||e.srcElement;if(!i)return;var P=e.type;if(P==="unhandledrejection"){var I=e.reason||{};if(I.message&&I.stack)this.logError(I,{code:ErrorCodeEnums2.PROMISEREJECTION});else{var k=I.message||(typeof I=="string"?I:JSON.stringify(I));n({code:ErrorCodeEnums2.PROMISEREJECTION,msg:k})}return}var D=i instanceof HTMLElement;if(D){var A=getResourceErrorSrc(i),F=i.tagName.toLowerCase(),M=i.alt,ee=M===void 0?"":M;n({code:ErrorCodeEnums2.ASSETS,msg:A===(typeof location!="undefined"&&location&&location.href)?"__EMPTY__SRC__":A||"",s1:F,s2:getXPath(i,5),s3:ee});return}if(e.error&&e.error.stack){this.logError(e.error);return}n({code:ErrorCodeEnums2.JS,msg:e.message,s3:0})}catch(x){__warn("handleErrorOptions failed: %s",x.message)}}},{key:"handlePreCapture",value:function(){var e=this,n=window.g_monitor;if(n){var i=n.listener,P=i===void 0?{}:i,I=n.events,k=I===void 0?[]:I;for(var D in P)P.hasOwnProperty(D)&&(removeEvent2(D,window,P[D]),delete P[D]);for(var A=0;A<k.length;A++)this.handleErrorEvent(k[A],function(F){e.log(F)});n.events=[]}}},{key:"register",value:(function(){var e=document;if(!this.autoCapture){this.debug&&__warn("\u5DF2\u901A\u8FC7 autoCapture \u7981\u7528\u5F02\u5E38\u6355\u83B7");return}try{if(!e)return this.debug&&__warn("\u5F53\u524D\u4E3A\u975E web \u73AF\u5883\uFF0C\u4E0D\u652F\u6301\u62A5\u9519\u76D1\u542C\u4E0E\u63D2\u4EF6\u4F7F\u7528"),this;if(this.isErrorHandler){this.debug&&__warn("\u9519\u8BEF\u4E8B\u4EF6\u5DF2\u76D1\u542C");return}addEvent4("error",window,this.getErrorEventHandler),addEvent4("unhandledrejection",window,this.getErrorEventHandler),this.isErrorHandler=!0}catch(n){__warn("\u5F02\u5E38\u76D1\u542C\u4E8B\u4EF6\u6CE8\u518C\u5931\u8D25: %s",n.message)}})},{key:"unregister",value:function(){removeEvent2("error",window,this.getErrorEventHandler),removeEvent2("unhandledrejection",window,this.getErrorEventHandler),this.isErrorHandler=!1}},{key:"getNetwork",value:function(){if(this.network)return this.network;if(typeof navigator!="undefined"){var e=navigator;return!e||!e.connection||!e.connection.effectiveType?"":e.connection.effectiveType}}},{key:"parseParam4",value:function(e){if(!e||_typeof3(e)!=="object")return null;var n=_objectSpread23(_objectSpread23({},this.defaults),e);(e.bmAppid||this.bmAppid)&&(n.bm_appid=e.bmAppid||this.bmAppid),this.userConfig.sprintId&&(n.bm_sid=this.userConfig.sprintId),this.userConfig.yuyanId&&(n.yuyan_id=this.userConfig.yuyanId),this.userConfig.cClientVer&&(n.c_client_ver=this.userConfig.cClientVer),this.userConfig.os&&(n.os=this.userConfig.os),this.userConfig.deviceModel&&(n.device_model=this.userConfig.deviceModel),this.userConfig.deviceBrand&&(n.device_brand=this.userConfig.deviceBrand),this.userConfig.deviceType&&(n.device_type=this.userConfig.deviceType),n.env=this.userConfig.env||this.env;var i=typeof location!="undefined"&&location?location.href:"";if(n.title=this.title||this.userConfig.title||"",n.fullURL=n.fullURL||i||this.fullURL||this.userConfig.fullURL||"",n.monitor_ver="sdk:".concat(version),!this.clientApp&&typeof document!="undefined"){if(typeof window!="undefined"){var P,I;this.resolution="".concat((P=window.screen)===null||P===void 0?void 0:P.width,"x").concat((I=window.screen)===null||I===void 0?void 0:I.height)}var k=document.documentElement;n.title=document.title||this.title,n.dom_cnt=document.getElementsByTagName("*").length,n.delay=new Date().getTime()-startTime,n.scroll_top=k.scrollTop+document.body.scrollTop,n.content_height=Math.max(k.clientHeight,k.offsetHeight,k.scrollHeight),n.s_c=!this.monitorConfigFailed}n.network=this.getNetwork()||this.userConfig.network||"";var D=this.userConfig.spmAPos&&this.userConfig.spmBPos?"".concat(this.userConfig.spmAPos,".").concat(this.userConfig.spmBPos):"";if(D&&(n.spmId=D),this.cOfflineVer&&(n.c_offline_ver=this.cOfflineVer),this.cAppId&&(n.c_app_id=this.cAppId),_typeof3(n)==="object"){var A=n;for(var F in A)A.hasOwnProperty(F)&&typeof A[F]=="string"&&A[F].replace(/\s+/g," ")}return n}},{key:"bridgeCall",value:(function(){if(this.clientApp&&(this.clientName===ClientTypeEnum.MY||this.clientName===ClientTypeEnum.B2H)&&typeof my.call=="function"){var e;(e=my).call.apply(e,arguments)}else{var n,i=window;if(!i.AlipayJSBridge||!i.AlipayJSBridge.call||typeof i.AlipayJSBridge.call!="function"){__warn("\u975E\u5BB9\u5668\u73AF\u5883\uFF0C\u4E0D\u80FD\u8C03\u7528 handleLoggingAction");return}(n=i.AlipayJSBridge).call.apply(n,arguments)}})},{key:"bridgeLog",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"L",i=e||{};this.bridgeCall("handleLoggingAction",{actionType:"reportEvent",params:{eventId:this.eventId,bizType:"yuyanmonitor".concat(n.toLowerCase()),extData:i}})}}])})(),monitorConfigCacheKey="_YUYAN_COOKIE_monitor_config_next",expireDelta=900*1e3,ConfigStorage=(function(){function t(){_classCallCheck3(this,t)}return _createClass3(t,[{key:"getStorageInfoMap",value:function(){var e=getItem2(monitorConfigCacheKey)||"{}";try{return JSON.parse(e)}catch(n){return{}}}},{key:"getMonitorConfig",value:function(e){var n=this.getStorageInfoMap(),i=n[e];return!i||i.expire<new Date().valueOf()?null:i.config}},{key:"saveMonitorConfig",value:function(e,n){var i=this.getStorageInfoMap(),P={config:n,expire:new Date().valueOf()+expireDelta};i[e]=P,setItem2(monitorConfigCacheKey,JSON.stringify(i))}}])})(),ServerConfig=(function(){function t(){_classCallCheck3(this,t),this.monitor=void 0,this.configStorage=new ConfigStorage}return _createClass3(t,[{key:"apply",value:function(e){this.monitor=e;var n=e.bmAppid,i=e.userConfig.yuyanId,P=n||i;this.enhance(e,P);try{this.fetchMonitorConfig(P)}catch(I){this.monitor.onFetchConfigError(I)}}},{key:"enhance",value:function(e,n){var i=this;objectAssign(e,{initMonitorConfigs:function(P){e.setMonitorConfigs(P),i.configStorage.saveMonitorConfig(n,P)},setMonitorConfigs:function(P){var I=P.monitors;e.monitorOptions=I,e.monitorConfigInited=!0,e.onMonitorConfigInited()}})}},{key:"fetchMonitorConfig",value:function(e){var n=this.monitor,i=n.setMonitorConfigs,P=n.tenant;if(P==="MAIN_SITE"){var I=this.configStorage.getMonitorConfig(e);if(I)return i(I);this.fetchRemoteConfigJson(e)}}},{key:"fetchRemoteConfigJson",value:function(e){var n=this;fetch("https://render.alipay.com/p/alertserver/".concat(e,"_config/index.json"),{redirect:"follow"}).then(function(i){return i.json()}).then(function(i){n.monitor.initMonitorConfigs(i)}).catch(function(i){n.monitor.onFetchConfigError(i)})}}])})(),extractPaintMetrics=function(t){if(_typeof3(t)!=="object")return[];var e=t.getEntriesByType("paint"),n={};if(e.length){var i=(e.filter(function(I){return I.name==="first-paint"})[0]||{}).startTime,P=(e.filter(function(I){return I.name==="first-contentful-paint"})[0]||{}).startTime;n.firstPaint=parseFloat(i),n.firstContentfulPaint=parseFloat(P)}return n},lcp=0,fid=0,RESOURCE_LIMIT=500,PERFORMACE_RESERVED_CODE2="32767",Performace=(function(){function t(){_classCallCheck3(this,t),this.monitor=void 0}return _createClass3(t,[{key:"apply",value:function(e){this.monitor=e;try{var n=new PerformanceObserver(function(A){A.getEntries().forEach(function(F){F.entryType==="largest-contentful-paint"?lcp=F.startTime:F.entryType==="first-input"&&(fid=F.processingStart-F.startTime)})});n.observe({type:"largest-contentful-paint",buffered:!0}),n.observe({type:"first-input",buffered:!0})}catch(A){}if(_typeof3(import_timing2.default)==="object")try{var i,P;typeof import_timing2.default.setResourceTimingBufferSize=="function"&&import_timing2.default.setResourceTimingBufferSize(RESOURCE_LIMIT);var I=((i=navigator)===null||i===void 0?void 0:i.swuserAgent)||((P=navigator)===null||P===void 0?void 0:P.userAgent)||"",k=!!I.match(/iPhone|iPad|iPod/i),D=k?"pagehide":"beforeunload";window.addEventListener(D,sendMetrics.bind(null,e,import_timing2.default))}catch(A){}}}])})(),REQUEST_BYTE_LIMIT=1024*1024-100,RequestQueue=(function(){function t(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"l",P=arguments.length>2?arguments[2]:void 0;_classCallCheck3(this,t),this.cache=[],this.cacheSize=0,this.bizType=void 0,this.aggregationPeriod=void 0,this.timer=void 0,this._send=void 0,this.send=function(){n.cache.length&&(n._send(n.cache,n.bizType,n.aggregationPeriod),n.cache.length=0,n.cacheSize=0,n.resetTimer())},this._send=e,this.bizType=i,P&&(this.aggregationPeriod=P*1e3)}return _createClass3(t,[{key:"add",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n)return this._send(e);this.addToCache(e)}},{key:"sendImmediately",value:function(){this.send()}},{key:"addToCache",value:function(e){var n=encodeURIComponent(e.join(",")),i=byteCount(n);this.cacheSize+i>REQUEST_BYTE_LIMIT&&this.send(),this.cache.push(n),this.cacheSize+=i,this.resetTimer()}},{key:"resetTimer",value:function(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(this.send,this.aggregationPeriod)}}])})(),hashMap={},(function(t){t[t.Alpha=1]="Alpha",t[t.Beta=2]="Beta",t[t.ReleaseCandidate=3]="ReleaseCandidate",t[t.Release=4]="Release"})(Label||(Label={})),ErrorCodeEnums$1=enums.ErrorCodeEnums,Monitor=(function(t){function e(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{appType:"H5"};return _classCallCheck3(this,e),n=_callSuper(this,e,[i]),n.isAlipay=void 0,n.jsBridgeReady=!1,n.commandCache=[],n.requestQueue={l:new RequestQueue(n.pcSend,"l",n.aggregationPeriod),m:new RequestQueue(n.pcSend,"m",n.aggregationPeriod),h:new RequestQueue(n.pcSend,"h",n.aggregationPeriod)},n.monitorOptionMap={},n.UserConfig={},n.destroyed=!1,n.clientApp=getClient("client"),n.clientName=getClient("name")||"web",n.pageChangeEventHandler=function(){typeof document!="undefined"&&document.visibilityState==="hidden"&&n.requestQueue.l.sendImmediately()},n.isAlipay=typeof window!="undefined"&&window?checkIsAlipay(window.navigator):!1,n.initJsBridge(),!n.clientApp&&typeof document!="undefined"&&typeof window!="undefined"&&(new ServerConfig().apply(n),n.enabledPlugins.indexOf("performance")!==-1&&new Performace().apply(n),n.fetchConfig(),n.handlePreCapture(),n.register(),n.pageChangeEvent()),n}return _inherits2(e,t),_createClass3(e,[{key:"log",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(n){var P=this.isAlipay&&!this.jsBridgeReady;if(!(i!=null&&i.forceHttpReport)&&(P||this.tenant==="MAIN_SITE"&&!this.monitorConfigInited&&!this.clientApp)){this.commandCache.push([n,i]),this.debug&&__warn("\u4E3B\u7AD9\u79DF\u6237\u4E14\u76D1\u63A7\u914D\u7F6E\u521D\u59CB\u5316\u672A\u5B8C\u6210\uFF0C\u4E0A\u62A5\u4FE1\u606F\u8FDB\u5165\u7F13\u5B58");return}if(!allFieldsReady(this.userConfig,this.requiredFields,this._warn.bind(this))){this.commandCache.push([n,i]),this.debug&&__warn("\u5FC5\u8981\u9879\u672A\u51C6\u5907\u597D\uFF0C\u4E0A\u62A5\u8FDB\u5165\u7F13\u5B58");return}if(!(i!=null&&i.forceHttpReport)&&!this.jsBridgeReady&&!this.monitorConfigInited&&this.clientApp&&this.clientName===ClientTypeEnum.MY){this.commandCache.push([n,i]),this.debug&&__warn("\u5C0F\u7A0B\u5E8F\u521D\u59CB\u5316\u53C2\u6570\u672A\u83B7\u53D6\uFF0C\u4E0A\u62A5\u4FE1\u606F\u8FDB\u5165\u7F13\u5B58");return}this._log(n,i)}}},{key:"logError",value:function(n,i){logError(n,this.clientApp?detectHashAppx:detectHashWeb,{log:this.log.bind(this),_warn:this._warn.bind(this)},i)}},{key:"logRequestError",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{if(!n||this.clientApp)return;var i=n.type,P=i===void 0?"http":i;if(P==="http"){var I=n.status,k=n.url,D=n.method,A=n.query,F=n.data,M=n.response,ee=n.traceId,x=n.code,ne="".concat(D.toUpperCase()," ").concat(k),re={code:x||2,msg:ne};I&&(re.s1=I),A&&(re.s2=A),F&&(re.s3=F),M&&(re.s4=M),ee&&(re.s5=ee),this.log(re)}}catch(ue){__warn("\u63A5\u53E3\u5F02\u5E38\u4E0A\u62A5\u5931\u8D25:%s",ue)}}},{key:"config",value:function(n){!n||_typeof3(n)!=="object"||(shallowMerge(this.userConfig,n),n.beforeLog&&(this.beforeLog=n.beforeLog),n.tenant&&(this.tenant=n.tenant),allFieldsReady(this.userConfig,this.requiredFields,this._warn.bind(this))&&this.logCache())}},{key:"pageChangeEvent",value:function(){this.aggregationPeriod&&typeof this.aggregationPeriod=="number"&&addEvent4("visibilitychange",document,this.pageChangeEventHandler)}},{key:"destroy",value:function(){this.unregister(),this.aggregationPeriod&&typeof this.aggregationPeriod=="number"&&removeEvent2("visibilitychange",document,this.pageChangeEventHandler),this.destroyed=!0}},{key:"isBridgeReport",value:function(){if(!this.clientApp)return typeof window!="undefined"&&!!window.AlipayJSBridge;if(this.clientApp&&this.clientName===ClientTypeEnum.MY)return!0;if(this.clientApp&&this.clientName===ClientTypeEnum.B2H){var n=(typeof $env=="undefined"?"undefined":_typeof3($env))==="object"?$env:{},i=n.clientVersion;if(compareVersion2(i,"10.7.66")>=0)return!0}return!1}},{key:"logCache",value:function(){for(var n=this.commandCache,i=0;i<n.length;i++){var P=n[i];Array.isArray(P)&&this._log(P[0],P[1])}this.commandCache=[]}},{key:"_log",value:function(n,i){var P,I,k,D=newPreProcess(n,this,!!this.clientApp,{originalError:i==null?void 0:i.originalError});if(D){var A=this.parseParam4(D);this.clientApp||this.getExtraInfo();var F=this.userConfig.forceHttpReport||!!(i!=null&&i.forceHttpReport),M=typeof navigator!="undefined"&&(P=((I=navigator)===null||I===void 0?void 0:I.swuserAgent)||((k=navigator)===null||k===void 0?void 0:k.userAgent))!==null&&P!==void 0?P:"",ee=M?M.replace(/,/g,"%2C"):"";if(!F&&this.isBridgeReport()){A._ua=ee;for(var x=0,ne=Object.keys(A);x<ne.length;x++){var re=ne[x];A[re]=encodeValue(A[re])}this.bridgeLog(A,D.level)}else{var ue=D.roleId||this.userConfig.userId||this.cUserId||"",le=D.resolution||this.resolution||"";delete D.roleId;var ce=parseItem({eventId:this.eventId,userId:ue,param4:A,ua:ee,resolution:le});if(!ce.length)return;if(this.clientApp){for(var me=0,ae=Object.keys(ce);me<ae.length;me++){var fe=ae[me];ce[fe]=encodeValue(ce[fe])}this.clientHttpSend(ce);return}if(this.aggregationPeriod&&typeof this.aggregationPeriod=="number"){var ye=D.level,ie=this.requestQueue[ye]||this.requestQueue.l;return ie.add(ce,i==null?void 0:i.reportDirectly)}return this.pcSend(ce,"l",this.aggregationPeriod)}}}},{key:"getExtraInfo",value:function(){var n=window._to||{};if(!this.userConfig.spmAPos){var i=getMetaSpm().spmAPos||n.spmAPos;i&&(this.userConfig.spmAPos=i)}if(!this.userConfig.spmBPos){var P=getSpmBPos()||n.spmBPos;P&&(this.userConfig.spmBPos=P)}}},{key:"initJsBridge",value:function(){var n=this;if(this.clientApp&&this.clientName===ClientTypeEnum.MY){var i=function(){n.jsBridgeReady||(n.jsBridgeReady=!0,n.logCache())};this.getInfoFromBridge(i),setTimeout(i,3e3)}else this.clientApp&&this.clientName===ClientTypeEnum.B2H?this.getInfoForB2h(function(){n.jsBridgeReady||(n.jsBridgeReady=!0,n.logCache())}):!this.clientApp&&typeof document!="undefined"&&typeof window!="undefined"?document.addEventListener("AlipayJSBridgeReady",function(){n.onJsBridgeReady()}):this.jsBridgeReady=!0}},{key:"getInfoForB2h",value:(function(){var n=_asyncToGenerator2(_regenerator2().m(function P(I){var k=this,D;return _regenerator2().w(function(A){for(;;)switch(A.n){case 0:D=(typeof $env=="undefined"?"undefined":_typeof3($env))==="object"?$env:{},this.registerParamsFromStartupParams({version:D.appVersion,appId:D.appId}),this.clientApp.getNetworkType({success:function(F){k.network=F.networkType},complete:function(){I()}});case 1:return A.a(2)}},P,this)}));function i(P){return n.apply(this,arguments)}return i})()},{key:"getInfoFromBridge",value:(function(){var n=_asyncToGenerator2(_regenerator2().m(function P(I){var k=this,D,A;return _regenerator2().w(function(F){for(;;)switch(F.p=F.n){case 0:if(F.p=0,!(this.autoEnv||this.userConfig.autoEnv)){F.n=2;break}return F.n=1,detectEnvAsync();case 1:this.env=F.v;case 2:typeof window!="undefined"&&typeof window.AlipayJSBridge!="undefined"&&typeof window.AlipayJSBridge.startupParams!="undefined"?(D=window.AlipayJSBridge.startupParams,this.registerParamsFromStartupParams(D),I()):this.bridgeCall("getStartupParams",function(M){k.registerParamsFromStartupParams(M),I()}),F.n=4;break;case 3:F.p=3,A=F.v,I(),__warn("\u8C03\u7528\u5BB9\u5668\u63A5\u53E3\u83B7\u53D6\u4FE1\u606F\u5931\u8D25:%s",A.message);case 4:return F.a(2)}},P,this,[[0,3]])}));function i(P){return n.apply(this,arguments)}return i})()},{key:"registerParamsFromStartupParams",value:function(n){this.cOfflineVer=n.version||n.appVersion||"",(n.version||n.appVersion)&&(this.cAppId=n.appId),this.fullURL=this.fullURL||n.url||"",this.title=this.title||n.defaultTitle||""}},{key:"onJsBridgeReady",value:function(){var n=this,i=function(){n.jsBridgeReady=!0,n.monitorConfigInited&&n.logCache()};this.getInfoFromBridge(i)}},{key:"set",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};objectAssign2(this,n)}},{key:"setMonitorConfigs",value:function(){}},{key:"initMonitorConfigs",value:function(n){}},{key:"fetchConfig",value:function(){}},{key:"fetchConfigByRequest",value:function(){}},{key:"fetchConfigByJSBridge",value:function(){}},{key:"onMonitorConfigInited",value:function(){var n=this;this.monitorOptions&&this.monitorOptions.forEach(function(D){D&&D.code&&(n.monitorOptionMap[D.code]=D)});var i=this.monitorOptionMap[ErrorCodeEnums$1.REQUEST];if(!this.disableInterface&&i){var P=i.code,I=i.isActive,k=i.isDeleted;P===ErrorCodeEnums$1.REQUEST&&I&&!k&&interfaceRegister(this)}this.isAlipay&&!this.jsBridgeReady||this.logCache()}},{key:"onFetchConfigError",value:function(n){this.monitorConfigInited=!0,this.monitorConfigFailed=!0,this.onMonitorConfigInited(),__warn("\u83B7\u53D6\u670D\u52A1\u7AEF\u914D\u7F6E\u5931\u8D25\uFF1A%s",n.message)}}])})(Base),index_esm_default=Monitor}}),yuyan_exports={};__export(yuyan_exports,{report:function(){return report4},start:function(){return start2}});function getMonitor(){return monitor||(monitor=new index_esm_default({yuyanId:YUYAN_ID})),monitor}function start2(){try{getMonitor()}catch(t){}}function report4(t){try{getMonitor().log(t)}catch(e){}}var YUYAN_ID,monitor,init_yuyan=__esm({"src/monitor/utils/yuyan.ts":function(){"use strict";init_index_esm3(),YUYAN_ID="180020010001275901",monitor=null}}),index_exports={};__export(index_exports,{request:function(){return request2}}),module.exports=__toCommonJS(index_exports);var PRODUCT_CD="GP000000000000000149",AGREEMENT_IDS=["AG01001180","AG01001181"],DEV_PRODUCT_CD="P000001",DEV_AGREEMENT_IDS=["AG02003063"];function createAgreementSignFlow(t){function e(){return t.isProdOrPreEnv()?PRODUCT_CD:DEV_PRODUCT_CD}function n(){return t.isProdOrPreEnv()?AGREEMENT_IDS:DEV_AGREEMENT_IDS}function i(k){for(var D=n(),A=0;A<D.length;A+=1){for(var F=!1,M=0;M<k.length;M+=1){var ee=k[M];if(ee.agreementId===D[A]&&ee.status==="S"){F=!0;break}}if(!F)return!1}return!0}function P(){return __async(this,null,function(){var k,D;return __generator(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,t.loadAgreementUtils().querySignRecord(e())];case 1:if(k=A.sent(),k.success===!1)throw new Error("querySignRecord returned success=false");return[2,{status:i(k.data&&k.data.signRecordVOS||[])?"MEMBER":"",userId:k.data&&k.data.userId}];case 2:throw D=A.sent(),D instanceof Error?D:new Error("Failed to query Voyager sign status "+JSON.stringify(D));case 3:return[2]}})})}function I(){return __async(this,null,function(){var k,D;return __generator(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,t.loadAgreementUtils().signAgreement({productCd:e(),agreementIds:n()})];case 1:if(k=A.sent(),k.success===!1)throw new Error("signAgreement returned success=false");return[2,{status:"MEMBER",userId:k.userId}];case 2:throw D=A.sent(),D instanceof Error?D:new Error("Failed to sign Voyager agreement");case 3:return[2]}})})}return{querySignStatus:P,sign:I}}var agreementUtils=__toESM(require_dist());function isProdOrPreEnv(){var t,e=typeof my=="undefined"||(t=my.env)==null?void 0:t.clientEnv;return e==="prod"||e==="pre"}var MP_GATEWAYS={dev:"https://mobilegw.stable.alipay.net/mgw.htm",test:"https://mobilegw.test.alipay.net/mgw.htm",pre:"https://mobilegwpre.alipay.com/mgw.htm"};function getMpGateway(t){if(t)return MP_GATEWAYS[t.toLowerCase()]}var MARMOT_CONFIG_KEY="voyager-campaign-sdk-config_service-code-whitelist",MARMOT_CONFIG_URL="https://config.marmot-cloud.com/config/"+MARMOT_CONFIG_KEY+"/en_US.json",MARMOT_TIMEOUT=60*1e3,_b=createAgreementSignFlow({isProdOrPreEnv,loadAgreementUtils:function(){return agreementUtils}}),querySignStatus=_b.querySignStatus,sign=_b.sign;function rpc(t){if(typeof my=="undefined"||typeof my.rpc!="function")throw new Error("my.rpc is unavailable for platform mp");var e=getMpGateway(t.env);return new Promise(function(n,i){my.rpc(__spreadProps(__spreadValues({operationType:t.operationType,requestData:t.requestData},e?{gateway:e}:{}),{success:function(P){return n(P)},fail:function(P){return i(P)}}))})}function getSystemInfo(){if(typeof my=="undefined"||typeof my.getSystemInfo!="function")throw new Error("my.getSystemInfo is unavailable for platform mp");return new Promise(function(t,e){my.getSystemInfo({success:function(n){return t(n)},fail:function(n){return e(n)}})})}function getClientName(){return"alipay"}function getLocale(t){return String(t.language||t.locale||"")}function toMpRequestError(t){if(!t||typeof t!="object")return new Error("Marmot request failed: "+String(t));var e=t,n=e.errorCode===void 0?e.error:e.errorCode,i=e.errorMessage===void 0?e.message:e.errorMessage;return new Error("Marmot request failed"+(n===void 0?"":" ["+String(n)+"]")+(i===void 0?"":": "+String(i)))}function fetchWhitelistConfig(){return new Promise(function(t,e){if(typeof my=="undefined"||typeof my.request!="function"){e(new Error("my.request is unavailable for platform mp"));return}my.request({url:MARMOT_CONFIG_URL,method:"GET",dataType:"json",timeout:MARMOT_TIMEOUT,success:function(n){var i=n.status;if(i!==void 0&&(i<200||i>=300)){e(new Error("Marmot request failed with status "+i));return}t(n.data)},fail:function(n){return e(toMpRequestError(n))}})})}var storage={read:function(t){return typeof my=="undefined"||typeof my.getStorage!="function"?Promise.reject(new Error("Mini program storage is unavailable for platform mp")):new Promise(function(e,n){my.getStorage({key:t,success:function(i){return e(i.data)},fail:function(i){return n(i)}})})},write:function(t,e){return typeof my=="undefined"||typeof my.setStorage!="function"?Promise.reject(new Error("Mini program storage is unavailable for platform mp")):new Promise(function(n,i){my.setStorage({key:t,data:e,success:function(){return n()},fail:function(P){return i(P)}})})},remove:function(t){return typeof my=="undefined"||typeof my.removeStorage!="function"?Promise.reject(new Error("Mini program storage is unavailable for platform mp")):new Promise(function(e,n){my.removeStorage({key:t,success:function(){return e()},fail:function(i){return n(i)}})})}};function createMpAdapter(){return{platform:"mp",rpc,getSystemInfo,getClientName,getLocale,storage,fetchWhitelistConfig,querySignStatus,sign}}function normalizeLocale(t){var e=String(t||"").replace("-","_").split("_").filter(Boolean);return e.length?(e[0].toLowerCase()==="id"&&(e[0]="in"),e[1]&&(e[1]=e[1].toUpperCase()),e.join("_")):"en_US"}function getTerminalType(t){var e=String(t||"").toLowerCase();return e==="changipay"||e==="huawei_atomic"?"WAP":"MINI_APP"}function createEnvInfo(t,e){return{tokenId:e.tokenId,terminalType:getTerminalType(e.clientName),osType:/ios/i.test(String(t.platform||t.os||""))?"IOS":"ANDROID",osVersion:String(t.system||t.osVersion||""),appId:"",appVersion:String(t.version||t.appVersion||""),sdkVersion:"",locale:normalizeLocale(e.locale),extendInfo:{clientName:String(e.clientName||"")}}}function createEnvInfoLoader(t){var e=null;return function(){return e||(e=Promise.all([t.getSystemInfo(),t.getAppToken?t.getAppToken().catch(function(){}):Promise.resolve(void 0)]).then(function(n){var i=n[0],P=n[1];return createEnvInfo(i,{clientName:t.getClientName(),locale:t.getLocale(i),tokenId:P})}),e.then(void 0,function(){e=null})),e}}var OPERATION_TYPE="alipay.aplus.ivguserprod.withauth.unifiedservice";function createRawRequest(t,e){return function(n,i,P){return __async(this,null,function(){var I,k,D;return __generator(this,function(A){switch(A.label){case 0:return[4,e()];case 1:return I=A.sent(),k=__spreadValues({operationType:OPERATION_TYPE,requestData:[{serviceCode:n,params:[__spreadProps(__spreadValues({},i),{envInfo:I})]}]},P?{env:P}:{}),D=t.decoratePayload,D?[4,t.decoratePayload(k)]:[3,3];case 2:D=k=A.sent(),A.label=3;case 3:return[2,t.rpc(k)]}})})}}var VOYAGER_USER_INFO="VOYAGER_USER_INFO",VOYAGER_API_WHITELIST_CONFIG="VOYAGER_API_WHITELIST_CONFIG";function parseValue(t){if(t==null||t==="")return null;if(typeof t!="string")return t;try{return JSON.parse(t)}catch(e){return null}}function readCache(t,e){return __async(this,null,function(){var n;return __generator(this,function(i){switch(i.label){case 0:return[4,t.read(e)];case 1:return n=i.sent(),[2,parseValue(n)]}})})}function writeCache(t,e,n){return t.write(e,JSON.stringify(n))}function createState(){return{signStatus:null,signStatusTask:null,whitelist:null,whitelistTask:null}}var state=createState();function getRuntimeState(){return state}function ignoreCacheError(){}function persist(t,e){var n={status:e.status,userId:e.userId,updatedAt:Date.now()};writeCache(t.storage,VOYAGER_USER_INFO,n).then(ignoreCacheError,ignoreCacheError)}function resolveStatus(t){return __async(this,null,function(){var e,n,i,P;return __generator(this,function(I){switch(I.label){case 0:e=getRuntimeState(),n=null,I.label=1;case 1:return I.trys.push([1,3,,4]),[4,readCache(t.storage,VOYAGER_USER_INFO)];case 2:return n=I.sent(),[3,4];case 3:return i=I.sent(),n=null,[3,4];case 4:return n&&n.status==="MEMBER"?[2,(e.signStatus="MEMBER",{status:"MEMBER",userId:n.userId})]:[4,t.querySignStatus()];case 5:return P=I.sent(),[2,(e.signStatus=P.status,persist(t,P),P)]}})})}function getSignStatus(t){var e=getRuntimeState();if(e.signStatus==="MEMBER")return Promise.resolve({status:"MEMBER"});if(e.signStatusTask)return e.signStatusTask;var n=resolveStatus(t);e.signStatusTask=n;var i=function(){e.signStatusTask===n&&(e.signStatusTask=null)};return n.then(i,i),n}var SDK_SOURCE_TAG="voyager-campaign-sdk-ext",CN_CLIENT_NAMES={alipay:!0},APLUS_CLIENT_NAMES={alipayhk:!0,dana:!0,gcash:!0,hipay:!0,kakaopay:!0,mpay:!0,tinaba:!0,tmn:!0,tngd:!0,toss:!0,zalopay:!0};function resolveChannelFromClientName(t){var e=String(t||"").trim().toLowerCase();return CN_CLIENT_NAMES[e]?"CN":APLUS_CLIENT_NAMES[e]?"APLUS":"UNKNOWN"}var marmotProviderTask=null,yuyanProviderTask=null,channelResolver=function(){return Promise.resolve("UNKNOWN")};function configureMonitor(t){channelResolver=t}function loadProvider(t){return t==="APLUS"?(marmotProviderTask||(marmotProviderTask=Promise.resolve().then(function(){return init_marmot(),marmot_exports})),marmotProviderTask):t==="CN"?(yuyanProviderTask||(yuyanProviderTask=Promise.resolve().then(function(){return init_yuyan(),yuyan_exports})),yuyanProviderTask):Promise.resolve(null)}function readField(t,e){try{if(!t||typeof t!="object")return;var n=t[e];if(typeof n=="string"||typeof n=="number")return String(n)}catch(i){return}}function stringifyResult(t){if(t!=null){if(typeof t=="string")return t;try{return JSON.stringify(t)}catch(e){return}}}function dispatch(t){try{channelResolver().then(loadProvider).then(function(e){e&&e.report(t)}).catch(function(){})}catch(e){}}function log3(t){dispatch(t)}function startMonitor(){try{channelResolver().then(loadProvider).then(function(t){t&&t.start()}).catch(function(){})}catch(t){}}function reportRequestSuccess(t,e,n){log3({code:"1033",msg:"SUCCESS",m1:Date.now()-n,c1:readField(e,"traceId")||readField(e,"ariverRpcTraceId"),d1:t.serviceCode,d2:t.platform,d3:stringifyResult(e),d4:SDK_SOURCE_TAG})}function reportRequestFailure(t,e,n){log3({code:"1033",msg:"FAILED",m1:Date.now()-n,c1:readField(e,"traceId")||readField(e,"ariverRpcTraceId"),d1:t.serviceCode,d2:t.platform,d3:stringifyResult(e),d4:SDK_SOURCE_TAG})}function reportWhitelistHit(t,e){log3({code:"1034",msg:e?"SUCCESS":"FAILED",d1:t.serviceCode,d2:t.platform,d3:e?void 0:"VOYAGER_API_ACCESS_DENIED",d4:SDK_SOURCE_TAG})}function reportWhitelistConfig(t,e,n){log3({code:"1035",msg:e?"SUCCESS":"FAILED",d2:t,d4:SDK_SOURCE_TAG,d5:e?void 0:readField(n,"message")})}function reportSignStatus(t,e){log3({code:"1036",msg:e?"SUCCESS":"FAILED",d1:t.serviceCode,d2:t.platform,d3:e?void 0:"VOYAGER_NOT_SIGNED",d4:SDK_SOURCE_TAG})}var WHITELIST_TTL=1440*60*1e3;function ignoreCacheError2(){}function isValid(t){return!!(t&&Array.isArray(t.serviceCodes)&&typeof t.expiresAt=="number"&&Date.now()<t.expiresAt)}function createSnapshot(t){for(var e={},n=0;n<t.serviceCodes.length;n+=1)e["$"+t.serviceCodes[n]]=!0;return __spreadProps(__spreadValues({},t),{lookup:e})}function extractApiEntry(t){if(typeof t=="string")return t;if(t&&typeof t=="object"){var e=t.api;if(typeof e=="string"&&e)return e}return null}function parseServiceCodes(t){if(typeof t=="string")try{return parseServiceCodes(JSON.parse(t))}catch(I){return null}if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n+=1){var i=extractApiEntry(t[n]);i&&e.push(i)}return e}if(!t||typeof t!="object")return null;var P=t;return P.serviceCodes!==void 0?parseServiceCodes(P.serviceCodes):P.whitelist!==void 0?parseServiceCodes(P.whitelist):P.data!==void 0?parseServiceCodes(P.data):P.value!==void 0?parseServiceCodes(P.value):null}function loadRemote(t){return __async(this,null,function(){var e,n,i;return __generator(this,function(P){switch(P.label){case 0:return P.trys.push([0,2,,3]),n=parseServiceCodes,[4,t.fetchWhitelistConfig()];case 1:if(e=n.apply(void 0,[P.sent()]),!e||!e.length)throw new Error("Invalid Marmot whitelist config");return[2,{serviceCodes:e,expiresAt:Date.now()+WHITELIST_TTL}];case 2:throw i=P.sent(),i instanceof Error?i:new Error("Failed to load Voyager API whitelist");case 3:return[2]}})})}function resolveWhitelist(t,e){return __async(this,null,function(){var n,i,P,I,k;return __generator(this,function(D){switch(D.label){case 0:n=null,D.label=1;case 1:return D.trys.push([1,3,,4]),[4,readCache(e,VOYAGER_API_WHITELIST_CONFIG)];case 2:return n=D.sent(),[3,4];case 3:return i=D.sent(),n=null,[3,4];case 4:return isValid(n)?(P=n,[3,8]):[3,5];case 5:return D.trys.push([5,7,,8]),[4,loadRemote(t)];case 6:return P=D.sent(),reportWhitelistConfig(t.platform,!0),[3,8];case 7:throw I=D.sent(),reportWhitelistConfig(t.platform,!1,I),I;case 8:return k=createSnapshot(P),[2,(getRuntimeState().whitelist=k,isValid(n)||writeCache(e,VOYAGER_API_WHITELIST_CONFIG,P).then(ignoreCacheError2,ignoreCacheError2),k)]}})})}function loadWhitelist(t,e){var n=getRuntimeState();if(n.whitelist&&Date.now()<n.whitelist.expiresAt)return Promise.resolve(n.whitelist);if(n.whitelistTask)return n.whitelistTask;var i=resolveWhitelist(t,e);n.whitelistTask=i;var P=function(){n.whitelistTask===i&&(n.whitelistTask=null)};return i.then(P,P),i}function checkWhitelist(t){var e=getRuntimeState().whitelist;return!e||Date.now()>=e.expiresAt?!1:e.lookup["$*"]===!0||e.lookup["$"+t]===!0}function ignoreBackgroundError(){}function createErrorResponse(t,e){return{success:!1,resultCode:t,resultMsg:e}}function normalizeError(t){return t instanceof Error?t:new Error("Voyager request failed")}function createRequest(t){var e=createEnvInfoLoader(t),n=createRawRequest(t,e);return configureMonitor(function(){return __async(null,null,function(){var i,P;return __generator(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,e()];case 1:return i=I.sent(),[2,resolveChannelFromClientName(i.extendInfo.clientName)];case 2:return P=I.sent(),[2,"UNKNOWN"];case 3:return[2]}})})}),function(i){return __async(this,null,function(){var P,I,k,D,A,F,M;return __generator(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,6,,7]),P=loadWhitelist(t,t.storage),P.then(ignoreBackgroundError,ignoreBackgroundError),[4,getSignStatus(t)];case 1:return I=ee.sent().status==="MEMBER",reportSignStatus({platform:t.platform,serviceCode:i.serviceCode},I),I?[4,P]:[2,createErrorResponse("VOYAGER_NOT_SIGNED","Voyager sign-in is required before calling business APIs")];case 2:return ee.sent(),k=checkWhitelist(i.serviceCode),reportWhitelistHit({platform:t.platform,serviceCode:i.serviceCode},k),k?[4,n(i.serviceCode,i.params,i.env)]:[3,4];case 3:return D=ee.sent(),[3,5];case 4:D=createErrorResponse("VOYAGER_API_ACCESS_DENIED","The serviceCode is not included in the Voyager API whitelist"),ee.label=5;case 5:return[2,D];case 6:return A=ee.sent(),F=normalizeError(A),M=F.code,[2,createErrorResponse(M||"VOYAGER_REQUEST_FAILED",F.message)];case 7:return[2]}})})}}function isErrorResponse(t){return!!t&&typeof t=="object"&&t.success===!1&&typeof t.resultCode=="string"}var adapter=createMpAdapter(),executeRequest=createRequest(adapter);function request2(t){return __async(this,null,function(){var e,n;return __generator(this,function(i){switch(i.label){case 0:return e=Date.now(),startMonitor(),[4,executeRequest({serviceCode:t.serviceCode,params:t.params,env:t.env})];case 1:return n=i.sent(),[2,(isErrorResponse(n)?n.resultCode!=="VOYAGER_API_ACCESS_DENIED"&&n.resultCode!=="VOYAGER_NOT_SIGNED"&&reportRequestFailure({platform:adapter.platform,serviceCode:t.serviceCode},n,e):reportRequestSuccess({platform:adapter.platform,serviceCode:t.serviceCode},n,e),n)]}})})}
|