!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@ali/aes-tracker/index",[],t):"object"==typeof exports?exports.AES=t():e.AES=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var o=n(2),i=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n.n(o);function r(e,t){"function"==typeof requestIdleCallback?requestIdleCallback(e,{timeout:t||1e3}):setTimeout(e,0)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1?arguments[1]:void 0;return t=t||"",e?u(--e,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+t):t}function a(e,t){for(var n in t)e[n]=t[n];return e}function c(e){return"undefined"!=typeof Promise&&e instanceof Promise}var s=function(e){var t=Object.prototype.toString.call(e);if("[object String]"===t&&e||"[object Number]"===t||"[object Boolean]"===t)return e;if("[object Object]"===t||"[object Array]"===t)try{return i()(e)}catch(e){}},f=function(e){var t={};for(var n in e){var o=e[n];void 0!==o&&(t[n]=s(o))}return t},l=function(e){var t=[];for(var n in e){var o=s(e[n]);void 0!==o&&t.push("".concat(n,"=").concat(encodeURIComponent(o)))}return t.join("&")};function d(e){return(e.requiredFields||[]).concat(["pid"]).some((function(t){return void 0===e[t]}))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;"undefined"!=typeof console&&console.warn("[AES] 日志解析报错，埋点将被丢弃 => ".concat(e),t)}function g(e){this._queue=[],this._reqQueue=[],this._plugins={},this._config={sdk_version:"3.1.0",pv_id:u(),timezone_offset:(new Date).getTimezoneOffset()},e&&(this._config=a(this._config,e))}g.prototype={constructor:g,_sendAll:function(){if(this._queue.length){var e,t=this._config.maxUrlLength||3e4,n=this._getSendConfig();try{e=this._processData(this._queue,n)}catch(e){}if(e&&e.length<t)return this._queue=[],void this.send(e);for(var o,i=[];this._queue.length;){i.push(this._queue.shift());try{o=this._processData(i,n)}catch(e){var r=i.pop();p(e.message,r);continue}if(o.length>t){i.length>1&&(this._queue.unshift(i.pop()),o=this._processData(i,n));break}}o&&this.send(o),this._queue.length&&this._sendAll()}},_send:function(e,t){if(!1===t){var n;try{n=this._processData([e])}catch(t){p(t.message,e)}n&&this.send(n)}else this._queue.push(e),r(this._sendAll.bind(this))},_getSendConfig:function(){var e={},t=this._config;for(var n in t)"requiredFields"!==n&&"maxUrlLength"!==n&&"queueGlobalName"!==n&&"debug"!==n&&0!==n.indexOf("plugin")&&""!==t[n]&&null!==t[n]&&void 0!==t[n]&&(e[n]=s(t[n]));return e},_processData:function(e,t){t=t||this._getSendConfig();var n=l(t);return n+="&msg="+encodeURIComponent(e.map((function(e){return l(e)})).join("|"))},setConfig:function(e,t){var n=this,o=function(){if(void 0!==t)n._config[e]=t;else for(var o in e)"[object Object]"===Object.prototype.toString.call(e[o])?n._config[o]=a(n._config[o]||{},e[o]):n._config[o]=e[o]};this._reqQueue.length?(o(),d(this._config)||(this._reqQueue.forEach((function(e){n._send.apply(n,e)})),this._reqQueue=[])):(function(){if(void 0!==t)return t!==n._config[e];for(var o in e)if(e[o]!==n._config[o])return!0;return!1}()&&this._sendAll(),o())},getConfig:function(e){return e?this._config[e]:this._config},updatePVID:function(){this.setConfig("pv_id",u())},log:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&(t.ts=t.ts||(new Date).getTime(),t.type=e,this._print("[AES] log",e,t),t=f(t),d(this._config)?this._reqQueue.push([t,n.combo]):this._send(t,n.combo))},before:function(e,t){var n=this;return function(){var o=arguments,i=t.apply(n,o);c(i)?i.then((function(t){e.apply(n,t||o)})):e.apply(n,i||o)}},after:function(e,t){var n=this;return function(){var o=arguments;e.apply(n,o),t.apply(n,o)}},use:function(e,t){var n=this;return"[object Array]"===Object.prototype.toString.call(e)?e.map((function(e){if("[object Array]"===Object.prototype.toString.call(e)){var t=e[0],o=e[1];return n._plugins[t]=new t(n,o)}return n._plugins[e]=new e(n)})):this._plugins[e]||(this._plugins[e]=new e(this,t))},_print:function(){this._config.debug&&"undefined"!=typeof console&&console.log.apply(console,arguments)}};var h,_=g,v=function(){try{if(window.xr){var e=Array.from(xr.global.recordingContexts.keys());if(e.length>0){var t=xr.global.recordingContexts.get(e[0]);if(t.appKey&&t.recordingId&&t.isRecording)return{appKey:t.appKey,recordingId:t.recordingId}}}}catch(e){}},y=location.href.indexOf("aes_debug")>-1;function m(e){var t=this;this._offlineQueue=[];var n=function(){if(window.goldlog&&goldlog.spm_ab)return goldlog.spm_ab;var e,t=document.querySelector('meta[name="spm-id"]')||document.querySelector('meta[name="data-spm"]');if(t&&(e=t.content)&&-1!==e.indexOf("."))return e.split(".");var n=document.body&&document.body.getAttribute("data-spm");return e&&n?[e,n]:[]}(),o={title:document.title,spm_a:n[0],spm_b:n[1],hash:location.hash,dpi:window.devicePixelRatio,sr:"".concat(window.screen.width,"x").concat(window.screen.height),platform:"web",language:navigator.language,debug:y,queueGlobalName:"AES_QUEUE"},i=document.querySelector('meta[name="aes-config"]');if(i)try{var u=i.getAttribute("content");u&&u.split("&").forEach((function(e){var t=e.split("="),n=t[0],i=decodeURIComponent(t[1]);if(-1!==n.indexOf(".")){var r=n.split(".")[0],u=n.split(".")[1];o[r]||(o[r]={}),o[r][u]=i}else o[n]=i}))}catch(e){}window.AES_CONFIG&&(o=a(o,AES_CONFIG)),e&&(o=a(o,e)),_.call(this,o),window.addEventListener("hashchange",(function(){t.setConfig("hash",location.hash)}));var c=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(c){var s=function(){t.setConfig({downlink:c.downlink,net_type:c.effectiveType}),navigator.onLine&&t._offlineQueue.length&&(t._offlineQueue.forEach((function(e){r((function(){t.send(e)}))})),t._offlineQueue=[])};s(),c.addEventListener("change",s)}try{var f=function(){var e=document.querySelector("title");e&&new MutationObserver((function(){t.setConfig("title",document.title)})).observe(e,{childList:!0,characterData:!0,subtree:!0})};document.querySelector("title")?f():document.addEventListener("DOMContentLoaded",f)}catch(e){}var l=o.queueGlobalName;"[object Array]"===Object.prototype.toString.call(window[l])?window[l].forEach((function(e){"function"==typeof e?e(t):t[e.action].apply(t,e.arguments)})):window[l]=[];var d=window[l].push;window[l].push=function(e){"function"==typeof e?e(t):t[e.action].apply(t,e.arguments),Array.prototype.push!==d&&d(e)}}m.prototype=((h=function(){}).prototype=_.prototype,new h),m.prototype.constructor=m,m.prototype.log=function(){var e;if(window.goldlog){var t=goldlog.spm_ab;t&&(this.getConfig("spm_a")!==t[0]&&((e||(e={})).spm_a=t[0]),this.getConfig("spm_b")!==t[1]&&((e||(e={})).spm_b=t[1]))}var n=location.href;n!==this.getConfig("origin_url")&&(e||(e={}),e.origin_url=location.href);var o=v();if(o){var i=o.appKey+","+o.recordingId;this.getConfig("xreplay_id")!==i&&((e||(e={})).xreplay_id=i)}e&&this.setConfig(e),_.prototype.log.apply(this,arguments)},m.prototype.send=function(e){if(navigator.onLine){var t,n=["/aes.1.1","EXP",e,"POST"];null!==(t=window.goldlog)&&void 0!==t&&t.record?(goldlog.record.apply(goldlog,n),this._print("[AES] send",n)):(window.goldlog_queue||(window.goldlog_queue=[]),goldlog_queue.push({action:"goldlog.record",arguments:n}),"undefined"!=typeof console&&console.warn("[AES] 未监测到Aplus SDK"))}else this._offlineQueue.length>500&&this._offlineQueue.shift(),this._offlineQueue.push(e)};t.default=m}]).default}));!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-pv/index",[],t):"object"==typeof exports?exports.AESPluginPV=t():e.AESPluginPV=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function o(e,t){for(var n in t)e[n]=t[n];return e}n.r(t);t.default=function(e,t){var n,r,i=null===(n=document)||void 0===n?void 0:n.referrer,u=!0,a=o(o({},e.getConfig("plugin_pv")),t),d=a.autoPV,l=void 0===d||d,f=a.autoLeave,c=void 0===f||f,p=a.enableHistory,s=a.enableHash,v=a.getPageId;function y(t){var n,o=location.href;null!==(n=t)&&void 0!==n&&n.page_id||!v||((t=t||{}).page_id=v(o)),t&&e.setConfig(t),u?u=!1:e.updatePVID(),e.log("pv",{p1:window!==window.parent,p2:i}),i=o}function g(){e.log("leave")}return l&&(y(),p?function(e){var t,n;window.addEventListener("popstate",e);var o=null===(t=window.history)||void 0===t?void 0:t.pushState;o&&(history.pushState=function(){o.apply(this,arguments),e()});var r=null===(n=window.history)||void 0===n?void 0:n.replaceState;r&&(history.replaceState=function(t,n,o){var i=null===history.state;r.apply(this,arguments),i&&0===(null==t?void 0:t.idx)&&!o||e()})}((function(){y()})):s&&(r=function(){y()},window.addEventListener("hashchange",r))),c&&window.addEventListener("beforeunload",g),{sendPV:y,sendLeave:g,switchPage:y}}}]).default}));!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-event/index",[],t):"object"==typeof exports?exports.AESPluginEvent=t():e.AESPluginEvent=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r=["ec","ea","el","et"];var o=function(e,t){var n=function(e){var n=e.ec,r=e.ea,o=e.el,l=e.et,u=void 0===l?"CLK":l,i=e.xpath;delete e.ec,delete e.ea,delete e.el,delete e.et,delete e.xpath,e.p1=n,e.p2=r,e.p3=o,e.p4=u,e.p5=i;try{t.log("event",e)}catch(e){}};return function(){var t=arguments,o={};if(0!==t.length){for(var l=0;l<t.length;l++){var u,i,a=t[l];if(0!==l&&"object"==typeof a&&l!==t.length-1)return void(null==e||null===(u=e.console)||void 0===u||null===(i=u.warn)||void 0===i||i.call(u,"[AES tracker-plugin-event]","Only the last argument can be object type"));if("string"==typeof a||"number"==typeof a)o[r[l]]=a;else if("object"==typeof a&&l===t.length-1)for(var f in a)a.hasOwnProperty(f)&&(o[f]=a[f])}n(o)}else{var c,p;null===(c=e.console)||void 0===c||null===(p=c.warn)||void 0===p||p.call(c,"[AES tracker-plugin-event]","At lease one augument")}}};t.default=function(e,t){return o(window,e)}}]).default}));!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-jserror/index",[],n):"object"==typeof exports?exports.AESPluginJSError=n():e.AESPluginJSError=n()}(window,(function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e,n){for(var t in n)e[t]=n[t];return e}t.r(n);var o=/\n\s+at\s+/;function i(e){if(e)return e.length<10001?e:e.substr(0,9997)+"..."}function a(e,n,t,r,o){return"string"==typeof e?{message:e,filename:n,lineno:t,colno:r,stack:null==o?void 0:o.stack,name:null==o?void 0:o.name,type:"error"}:"object"==typeof e?{stack:(null===(i=e.error)||void 0===i?void 0:i.stack)||e.stack,message:e.message,lineno:e.lineno||e.line||e.lineNumber,colno:e.colno||e.column||e.columnNumber,name:(null===(a=e.error)||void 0===a?void 0:a.name)||e.name,type:e.type,filename:e.filename||e.fileName}:void 0;var i,a}function l(e){if("string"==typeof e.reason)return{message:e.reason,type:e.type};var n=e.reason;return n.type=e.type,n}function c(e){if("string"==typeof e)try{var n=e.split("\n").map((function(e){return e.replace(/^\s+(at)?\s*/,"")})).filter((function(e){return!!e}));if(e.match(o)&&(n=n.slice(1)),n.join("^").length<=1e5)return n.join("^");try{for(var t=!1;n.join("^").length>1e5;)if(2===n.length)n.splice(1,1),t=!0;else if(1===n.length){var r=n[0];n[0]="".concat(r.substr(0,997),"...").concat(r.substr(-1e3,1e3))}else n.splice(n.length-2),t=!0;if(n.length>1&&t){var i=n.pop();return n.join("^")+"^...^"+i}return 1===n.length&&t?n[0]+"^...":n.join("^")}catch(e){return n.join("^")}}catch(e){}}var s=function(e){var n;if("object"==typeof(n="unhandledrejection"===(null==e?void 0:e.type)?l.apply(null,arguments):a.apply(null,arguments))){n.filename||(n.filename=n.sourceURL||n.fileName),"number"!=typeof n.lineno&&(n.lineno=n.line||n.lineNumber,n.colno=n.column||n.columnNumber);try{if("string"==typeof n.stack&&("number"!=typeof n.lineno||"string"!=typeof n.filename)&&n.stack&&n.stack.match(o)){var t,r=null===(t=n.stack.split("\n").slice(1,2))||void 0===t?void 0:t[0];if(r){var s=r.match(/^\s+at\s+[^\(]+\(([^\)]+?):(\d+):(\d+)\)$/)||r.match(/^\s+at\s+(.+)?:(\d+):(\d+)$/);s&&(n.filename=s[1],n.lineno=s[2],n.colno=s[3])}}}catch(e){}try{if(!n.filename&&"string"==typeof n.stack){var u=n.stack.match(/@([^\n]+?):(\d+):(\d+)$/);u&&(n.filename=u[1])}}catch(e){}var f={lineno:n.lineno,colno:n.colno,filename:i(n.filename),message:n.message,stack:c(n.stack),error_type:n.name,error_code:n.type};return f}};var u=function(e){try{if("unhandledrejection"===e.type){var n=this._config.plugin_js_error_processPromiseRejectReason;if("function"==typeof n){var t=n(e.reason);if(!t)return}}}catch(e){}try{var r=arguments,o=s.apply(null,r);if("object"!=typeof o)return;var i=o.message,a=void 0===i?"":i,l=o.filename,c=o.lineno,u=o.colno,f=o.stack,p=o.error_type,d=o.error_code,m=this._config.ignoreList;if(m&&m.some((function(n){if("string"==typeof n)return n===a;if("function"==typeof n)try{return n(a,o,"object"==typeof e?e:r)}catch(e){}else if(n instanceof RegExp)return n.test(a)})))return;this._aes.log("js_error",{message:a,url:l,lineno:c,colno:u,stack:f,error_type:p,error_code:d})}catch(e){}};n.default=function(e,n){this._config=r(r({},e.getConfig("plugin_jserror")),n),this._aes=e;var t=u.bind(this);return!this._config.disable_error&&window.addEventListener("error",t),!this._config.disable_unhandled_rejection&&window.addEventListener("unhandledrejection",t),{sendError:t}}}]).default}));!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-api/index",[],t):"object"==typeof exports?exports.AESPluginAPI=t():e.AESPluginAPI=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t,n){e.exports=!n(6)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=n(9)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(15),o=n(16),i=n(18),s=Object.defineProperty;t.f=n(0)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=n(8)},function(e,t,n){var r=n(1),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,n){n(10);var r=n(1).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(11);r(r.S+r.F*!n(0),"Object",{defineProperty:n(5).f})},function(e,t,n){var r=n(4),o=n(1),i=n(12),s=n(14),a=n(20),u=function(e,t,n){var c,f,p,d=e&u.F,l=e&u.G,y=e&u.S,v=e&u.P,h=e&u.B,g=e&u.W,m=l?o:o[t]||(o[t]={}),b=m.prototype,w=l?r:y?r[t]:(r[t]||{}).prototype;for(c in l&&(n=t),n)(f=!d&&w&&void 0!==w[c])&&a(m,c)||(p=f?w[c]:n[c],m[c]=l&&"function"!=typeof w[c]?n[c]:h&&f?i(p,r):g&&w[c]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((m.virtual||(m.virtual={}))[c]=p,e&u.R&&b&&!b[c]&&s(b,c,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(13);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(5),o=n(19);e.exports=n(0)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(0)&&!n(6)((function(){return 7!=Object.defineProperty(n(17)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(2),o=n(4).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(2);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";n.r(t);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if("string"==typeof e&&e)return e.length>t&&(e=e.substr(0,t-3)+"..."),e}var o=function(e,t,n){var o=e.url,i=e.success,s=e.msg,a=e.status,u=e.code,c=e.duration,f=e.traceId,p=e.params,d=e.body,l=e.response,y=e.headers,v=e.rtype,h=e.method,g=n.ignoreList,m=n.sendResponseOnSuccess;g&&g.some((function(t){if("string"==typeof t)return t===o;if("function"==typeof t)try{return t(o,e)}catch(e){}else if(t instanceof RegExp)return t.test(o)}))||t.log("api",{url:o,method:"string"==typeof h?h.toUpperCase():void 0,success:i,msg:r(s,200),status:a,code:u,duration:c,trace_id:f,params:p,body:r(d,1e4),response:!i||m?r(l,1e4):void 0,headers:y,rtype:v,plugin_version:"3.1.2"})};function i(e,t){return(void 0===t||t>=200&&t<300)&&(void 0!==e.success?!0===e.success||"true"===e.success:void 0!==e.isSuccess?!0===e.isSuccess||"true"===e.isSuccess:void 0!==e.isOk?!0===e.isOk||"true"===e.isOk:void 0!==e.ok?!0===e.ok||"true"===e.ok:isNaN(e.status)?!!isNaN(e.code)||200==e.code:200==e.status)}function s(e){return e.code||e.errorCode||e.errCode}function a(e){return e.msg||e.message||e.errMsg||e.errorMessage||e.errorMsg}function u(e,t){if(t=t.toUpperCase(),e&&("POST"===t||"PUT"===t)){if("string"==typeof e)return e;if(window.FormData&&e instanceof FormData){var n=[];return e.forEach((function(e,t){n.push("".concat(t,"=").concat("string"==typeof e?e:Object.prototype.toString.call(e)))})),n.join("&")}return window.URLSearchParams&&e instanceof URLSearchParams?e.toString():window.Request&&e instanceof Request?e.clone().text():Object.prototype.toString.call(e)}}function c(e,t,n,r){var o,u=e;if("string"==typeof u)try{u=JSON.parse(e)}catch(e){}if(o="[object Object]"===Object.prototype.toString.call(u)?{msg:a(u),code:s(u),success:i(u,t)}:{success:void 0===t||t>=200&&t<300},"function"==typeof r.parseResponse)try{var c=r.parseResponse(u,t,n)||{};for(var f in c)o[f]=c[f]}catch(e){}return o}function f(e){return!e||-1!==e.indexOf("api=")&&-1!==e.indexOf("v=")&&-1!==e.indexOf("jsv=")||-1!==e.indexOf(".mmstat.com")||e.match(/\.(js|css|png|jpg|gif|jpeg|webp|ico|svg)(\?.*)?$/)}function p(e){return"undefined"!=typeof Promise&&e instanceof Promise}function d(e,t){for(var n in t)e[n]=t[n];return e}function l(e){if(window.Headers&&e instanceof Headers){var t={};return e.forEach((function(e,n){t[n]=e})),t}if("[object Object]"===Object.prototype.toString.call(e))return e}function y(e,t){var n,r;if(t.originResponse)return e;if("jsonp"===t.method)return e.text();var o=null===(n=e.headers)||void 0===n||null===(r=n.get)||void 0===r?void 0:r.call(n,"content-type");return o&&-1===o.toLowerCase().indexOf("json")&&-1===o.toLowerCase().indexOf("text")?"[".concat(o,"]"):e.text()}var v=function(e,t){if(!("function"!=typeof window.fetch||window.fetch&&window.fetch.polyfill)){var n=window.fetch;window.fetch=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("HEAD"===i.method||"no-cors"===i.mode)return n.apply(window,arguments);var s="object"==typeof r?r.url||r.href:r;if(f(s))return n.apply(window,arguments);var a,v,h=s.split("?"),g=h[0],m=h[1],b=i.method||r.method||"GET";try{v=l(i.headers||r.headers)}catch(e){}try{p(a=u(i.body||r,b))&&a.then((function(e){a=e})).catch((function(){}))}catch(e){}var w=(new Date).getTime();return n.apply(window,arguments).then((function(n){try{if("[object Response]"!==Object.prototype.toString.call(n))return n;var r,s=(new Date).getTime()-w,u=n.clone?n.clone():n,f=u.status;u.headers.has("eagleeye-traceid")?r=u.headers.get("eagleeye-traceid"):u.headers.has("x-eagleeye-id")&&(r=u.headers.get("x-eagleeye-id"));var l=function(n){!1!==(u=c(n,f,{type:"fetch",params:m,url:g,body:i.body},t)).success&&t.disable_send_on_success||o(d({url:g,method:b,status:f,duration:s,traceId:r,params:m,headers:v,body:a,response:n,rtype:"fetch"},u),e,t)},h=y(u,i);p(h)?h.then(l).catch((function(){})):l(h)}catch(e){}return n}),(function(n){var r=(new Date).getTime()-w,i=c("",-1,{type:"fetch",params:m,url:g},t);throw o(d({url:g,method:b,success:!1,msg:n.message,status:-1,duration:r,params:m,body:a,headers:v,rtype:"fetch"},i),e,t),n}))}}};var h=function(e,t){if("function"==typeof window.XMLHttpRequest&&window.addEventListener){var n=window.XMLHttpRequest,r=n.prototype,i=r.open,s=r.send,a=r.setRequestHeader,p="_aesApi".concat(Math.random());n.prototype.open=function(e,t){i.apply(this,arguments),this[p]={method:e,url:t}},n.prototype.setRequestHeader=function(e,t){a.apply(this,arguments),this[p].headers||(this[p].headers={}),this[p].headers[e]=t},n.prototype.send=function(n){s.apply(this,arguments);try{var r=this[p],i=r.url,a=r.method,l=void 0===a?"GET":a,y=r.headers;delete this[p];var v=i?i.href||i:"";if(f(v))return;var h,g=v.split("?"),m=this,b=0,w=g[1],x=(new Date).getTime();i=g[0];try{h=u(n,l)}catch(e){}var j=function(){var r,s,a;b=m.status||b;var u,f=(new Date).getTime()-x;try{var p=m.getAllResponseHeaders();-1!==p.indexOf("eagleeye-traceid")?u=m.getResponseHeader("eagleeye-traceid"):-1!==p.indexOf("x-eagleeye-id")&&(u=m.getResponseHeader("x-eagleeye-id"))}catch(e){}var v=function(r){var s=c(r||"",b,{type:"xhr",params:w,url:i,body:n},t);s.success&&t.disable_send_on_success||o(d({url:i,method:l,status:b,duration:f,traceId:u,params:w,headers:y,body:h,response:r,rtype:"xhr"},s),e,t)},g=m.responseType||"text";"text"===g||"json"===g?v(m.response):"blob"!==g||"application/json"!==(null===(r=m.response)||void 0===r?void 0:r.type)&&"text/plain"!==(null===(s=m.response)||void 0===s?void 0:s.type)||null===(a=m.response)||void 0===a||!a.text?v(m.response?Object.prototype.toString.call(m.response):void 0):m.response.text().then(v).catch((function(){}))};void 0!==m.onloadend?(m.addEventListener("abort",(function(e){b=-2})),m.addEventListener("timeout",(function(e){b=-3})),m.addEventListener("loadend",j)):m.addEventListener("readystatechange",(function(){4===m.readyState&&j()}))}catch(e){}}}},g=n(7),m=n.n(g),b=n(3),w=n.n(b);function x(e,t,n,r,i){try{var s=t.ret;s instanceof Array&&(s=s.join(","));var a={};if("function"==typeof i.parseResponse)try{a=i.parseResponse(t,"",{type:"mtop",params:e.data,url:e.api})||{}}catch(e){}var u=void 0===a.success?-1===s.indexOf("SUCCESS"):!a.success;if(u||!i.disable_send_on_success){var c,f=t.responseHeaders,p=null===(c=t.stat)||void 0===c?void 0:c.eagleEyeTraceId;if(!p&&f){var l,y=null===(l=f.match)||void 0===l?void 0:l.call(f,/(x-eagleeye-id|eagleeye-traceid):\s*([a-z0-9]+)/);y&&(p=y[2])}var v,h,g=t.responseStatusCode||t.code;if(!g&&f){var b,w=null===(b=f.match)||void 0===b?void 0:b.call(f,/status:\s*(\d+)/);w&&(g=w[1])}if(s){var x=s.split("::");v=x[0],h=x[1]}o(d({url:e.api,success:!u,method:e.type||"GET",msg:h,status:g,code:v,duration:n,traceId:p,params:e.data,response:m()(t),rtype:"mtop"},a),r,i)}}catch(e){console.warn("[AES] plugin-api",e)}}var j=function(e,t){return function(n,r,o){var i=(new Date).getTime();return r||o?e(n,(function(e){t(n,e,(new Date).getTime()-i),r&&r(e)}),(function(e){t(n,e,(new Date).getTime()-i),o&&o(e)})):e(n).then((function(e){return t(n,e,(new Date).getTime()-i),e}),(function(e){throw t(n,e,(new Date).getTime()-i),e}))}},O=[];function S(e,t){var n;O.push([e,t]),window.lib||(window.lib={});var r,o=function(t){return j(t,(function(t,n,r){O.forEach((function(o){e._plugin_api_hookMR||x(t,n,r,o[0],o[1])}))}))};null!==(n=lib.mtop)&&void 0!==n&&n.request?lib.mtop.request=o(lib.mtop.request):w()(lib,"mtop",{configurable:!0,set:function(e){var t;(r=e).request?r.request=o(r.request):w()(r,"request",{configurable:!0,set:function(e){t=o(e)},get:function(){return t}})},get:function(){return r}})}function _(e,t,n){return t._plugin_api_hookMR=1,j(e,(function(e,r,o){x(e,r,o,t,n)}))}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t=d(d({},e.getConfig("plugin_api")),t),r=n.disableHook,i=n.disableHookFetch,s=n.disableHookXHR,a=n.disableHookMtop;return!0!==r&&(!0!==i&&v(e,t),!0!==s&&h(e,t),!0!==a&&S(e,t)),{sendApi:function(n){o(n,e,t)},hookMtopRequest:function(n){return _(n,e,t)}}}}]).default}));!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-resourceError/index",[],r):"object"==typeof exports?exports.AESPluginResourceError=r():e.AESPluginResourceError=r()}(window,(function(){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return a}));var n,o=function(e){for(var r=[],t=window,n=document,o=0,i=e.length;o<i;o++){var u=e[o];if(u===t||u===n)break;if(u.id){r.push("#".concat(u.id));break}u.className&&"string"==typeof u.className?r.push("."+u.className.split(/\s+/).filter((function(e){return!!e})).join(".")):r.push(u.nodeName)}return r.reverse().join(" ")},i=function(e){if("[object Array]"===Object.prototype.toString.apply(e))return o(e);for(var r=[],t=e;t;)r.push(t),t=t.parentNode;return o(r)},u=function(e){return e.filter((function(e){return!["xmlhttprequest","fetch"].includes(e.initiatorType)&&"number"==typeof e.responseStatus&&e.responseStatus>200})).map((function(e){return{src:e.name,type:e.initiatorType,status:e.responseStatus}}))},s=function(){var e;return null!==(e=window.performance)&&void 0!==e&&e.getEntriesByType?u(performance.getEntriesByType("resource")):[]},c=function(e){var r;if(null!==(r=window.performance)&&void 0!==r&&r.getEntriesByName){var t=performance.getEntriesByName(e)[0];if(t&&"number"==typeof t.responseStatus&&0!==t.responseStatus)return t.responseStatus}},f=(n=document.createElement("a"),function(e){return n.href=e,n.href});function a(e){var r,t,n,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=a.ignoreList||(null===(r=e.getConfig("plugin_resourceError"))||void 0===r?void 0:r.ignoreList)||[];l.push((function(e){return!e||-1!==e.indexOf(".mmstat.com")}));var p=function(r){var t,n;e.log("resource_error",{p1:null===(t=r.src)||void 0===t?void 0:t.substring(0,1e4),p2:r.type,p3:r.status,p4:r.src!==r.originSrc?null===(n=r.originSrc)||void 0===n?void 0:n.substring(0,1e4):void 0,p5:r.selector})},d=function(e,r){return!l.some((function(t){if("string"==typeof t)return t===e;if("function"==typeof t)try{return t(e,r)}catch(e){var n,o;null===(n=window.console)||void 0===n||null===(o=n.warn)||void 0===o||o.call(n,"[AES] check ignore resource failed",e)}else if(t instanceof RegExp)return t.test(e)}))};if(s().forEach((function(e){d(e.src)&&p(e)})),window.addEventListener("error",(function(e){if(!(e instanceof ErrorEvent)){var r,t,n=e.target,o=n.src||n.href,u=(null==n?void 0:n.getAttribute("src"))||(null==n?void 0:n.getAttribute("href"));"undefined"!=typeof SVGAnimatedString&&o instanceof SVGAnimatedString&&(o=f(u)),d(o,e)&&p({src:o,originSrc:u,type:null===(r=n.tagName)||void 0===r?void 0:r.toLowerCase(),selector:i(e.path||(null===(t=e.composedPath)||void 0===t?void 0:t.call(e))||n),status:c(o)})}}),!0),null!==(t=window.PerformanceObserver)&&void 0!==t&&null!==(n=t.supportedEntryTypes)&&void 0!==n&&null!==(o=n.includes)&&void 0!==o&&o.call(n,"resource")){var v=new PerformanceObserver((function(e){u(e.getEntries().filter((function(e){return"iframe"===e.initiatorType&&d(e.name)}))).forEach(p)}));v.observe({entryTypes:["resource"]})}return{sendError:p}}}]).default}));!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-perf/index",[],n):"object"==typeof exports?exports.AESPluginPerf=n():t.AESPluginPerf=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=84)}([function(t,n,e){var r=e(25)("wks"),o=e(17),i=e(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(10),o=e(33),i=e(20),u=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(12)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(3),o=e(13);t.exports=e(4)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(36),o=e(22);t.exports=function(t){return r(o(t))}},function(t,n,e){t.exports=e(48)},function(t,n,e){var r=e(2),o=e(1),i=e(32),u=e(6),a=e(5),c=function(t,n,e){var f,s,l,p=t&c.F,v=t&c.G,d=t&c.S,y=t&c.P,m=t&c.B,h=t&c.W,g=v?o:o[n]||(o[n]={}),b=g.prototype,w=v?r:d?r[n]:(r[n]||{}).prototype;for(f in v&&(e=n),e)(s=!p&&w&&void 0!==w[f])&&a(g,f)||(l=s?w[f]:e[f],g[f]=v&&"function"!=typeof w[f]?e[f]:m&&s?i(l,r):h&&w[f]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):y&&"function"==typeof l?i(Function.call,l):l,y&&((g.virtual||(g.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&u(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,e){var r=e(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var r=e(35),o=e(26);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(22);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(11);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(25)("keys"),o=e(17);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(1),o=e(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(3).f,o=e(5),i=e(0)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){n.f=e(0)},function(t,n,e){var r=e(2),o=e(1),i=e(16),u=e(29),a=e(3).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){t.exports=e(54)},function(t,n,e){var r=e(50);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){t.exports=!e(4)&&!e(12)((function(){return 7!=Object.defineProperty(e(34)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(11),o=e(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(5),o=e(7),i=e(52)(!1),u=e(24)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){"use strict";var r=e(56)(!0);e(39)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})}))},function(t,n,e){"use strict";var r=e(16),o=e(9),i=e(40),u=e(6),a=e(14),c=e(57),f=e(28),s=e(60),l=e(0)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,d,y,m,h){c(e,n,d);var g,b,w,S=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},x=n+" Iterator",E="values"==y,T=!1,O=t.prototype,_=O[l]||O["@@iterator"]||y&&O[y],L=_||S(y),P=y?E?S("entries"):L:void 0,k="Array"==n&&O.entries||_;if(k&&(w=s(k.call(new t)))!==Object.prototype&&w.next&&(f(w,x,!0),r||"function"==typeof w[l]||u(w,l,v)),E&&_&&"values"!==_.name&&(T=!0,L=function(){return _.call(this)}),r&&!h||!p&&!T&&O[l]||u(O,l,L),a[n]=L,a[x]=v,y)if(g={values:E?L:S("values"),keys:m?L:S("keys"),entries:P},h)for(b in g)b in O||i(O,b,g[b]);else o(o.P+o.F*(p||T),n,g);return g}},function(t,n,e){t.exports=e(6)},function(t,n,e){var r=e(10),o=e(58),i=e(26),u=e(24)("IE_PROTO"),a=function(){},c=function(){var t,n=e(34)("iframe"),r=i.length;for(n.style.display="none",e(59).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a.prototype=r(t),e=new a,a.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(21);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(35),o=e(26).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){t.exports=e(55)},function(t,n,e){t.exports=e(68)},function(t,n,e){t.exports=e(77)},function(t,n,e){t.exports=e(82)},function(t,n,e){e(49),t.exports=e(1).Object.assign},function(t,n,e){var r=e(9);r(r.S+r.F,"Object",{assign:e(51)})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";var r=e(4),o=e(15),i=e(27),u=e(18),a=e(19),c=e(36),f=Object.assign;t.exports=!f||e(12)((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=f({},t)[e]||Object.keys(f({},n)).join("")!=r}))?function(t,n){for(var e=a(t),f=arguments.length,s=1,l=i.f,p=u.f;f>s;)for(var v,d=c(arguments[s++]),y=l?o(d).concat(l(d)):o(d),m=y.length,h=0;m>h;)v=y[h++],r&&!p.call(d,v)||(e[v]=d[v]);return e}:f},function(t,n,e){var r=e(7),o=e(37),i=e(53);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(23),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(1),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,n,e){e(38),e(61),t.exports=e(1).Array.from},function(t,n,e){var r=e(23),o=e(22);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(41),o=e(13),i=e(28),u={};e(6)(u,e(0)("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(3),o=e(10),i=e(15);t.exports=e(4)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(2).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(5),o=e(19),i=e(24)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){"use strict";var r=e(32),o=e(9),i=e(19),u=e(62),a=e(63),c=e(37),f=e(64),s=e(65);o(o.S+o.F*!e(67)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,o,l,p=i(t),v="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,m=void 0!==y,h=0,g=s(p);if(m&&(y=r(y,d>2?arguments[2]:void 0,2)),null==g||v==Array&&a(g))for(e=new v(n=c(p.length));n>h;h++)f(e,h,m?y(p[h],h):p[h]);else for(l=g.call(p),e=new v;!(o=l.next()).done;h++)f(e,h,m?u(l,y,[o.value,h],!0):o.value);return e.length=h,e}})},function(t,n,e){var r=e(10);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){var r=e(14),o=e(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){"use strict";var r=e(3),o=e(13);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(66),o=e(0)("iterator"),i=e(14);t.exports=e(1).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){var r=e(21),o=e(0)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(0)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n,e){e(69),e(74),e(75),e(76),t.exports=e(1).Symbol},function(t,n,e){"use strict";var r=e(2),o=e(5),i=e(4),u=e(9),a=e(40),c=e(70).KEY,f=e(12),s=e(25),l=e(28),p=e(17),v=e(0),d=e(29),y=e(30),m=e(71),h=e(42),g=e(10),b=e(11),w=e(19),S=e(7),x=e(20),E=e(13),T=e(41),O=e(72),_=e(73),L=e(27),P=e(3),k=e(15),j=_.f,M=P.f,A=O.f,C=r.Symbol,N=r.JSON,R=N&&N.stringify,I=v("_hidden"),F=v("toPrimitive"),q={}.propertyIsEnumerable,H=s("symbol-registry"),D=s("symbols"),W=s("op-symbols"),z=Object.prototype,G="function"==typeof C&&!!L.f,J=r.QObject,V=!J||!J.prototype||!J.prototype.findChild,U=i&&f((function(){return 7!=T(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=j(z,n);r&&delete z[n],M(t,n,e),r&&t!==z&&M(z,n,r)}:M,X=function(t){var n=D[t]=T(C.prototype);return n._k=t,n},K=G&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},B=function(t,n,e){return t===z&&B(W,n,e),g(t),n=x(n,!0),g(e),o(D,n)?(e.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),e=T(e,{enumerable:E(0,!1)})):(o(t,I)||M(t,I,E(1,{})),t[I][n]=!0),U(t,n,e)):M(t,n,e)},Y=function(t,n){g(t);for(var e,r=m(n=S(n)),o=0,i=r.length;i>o;)B(t,e=r[o++],n[e]);return t},Q=function(t){var n=q.call(this,t=x(t,!0));return!(this===z&&o(D,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,I)&&this[I][t])||n)},$=function(t,n){if(t=S(t),n=x(n,!0),t!==z||!o(D,n)||o(W,n)){var e=j(t,n);return!e||!o(D,n)||o(t,I)&&t[I][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=A(S(t)),r=[],i=0;e.length>i;)o(D,n=e[i++])||n==I||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===z,r=A(e?W:S(t)),i=[],u=0;r.length>u;)!o(D,n=r[u++])||e&&!o(z,n)||i.push(D[n]);return i};G||(a((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===z&&n.call(W,e),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),U(this,t,E(1,e))};return i&&V&&U(z,t,{configurable:!0,set:n}),X(t)}).prototype,"toString",(function(){return this._k})),_.f=$,P.f=B,e(43).f=O.f=Z,e(18).f=Q,L.f=tt,i&&!e(16)&&a(z,"propertyIsEnumerable",Q,!0),d.f=function(t){return X(v(t))}),u(u.G+u.W+u.F*!G,{Symbol:C});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)v(nt[et++]);for(var rt=k(v.store),ot=0;rt.length>ot;)y(rt[ot++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return o(H,t+="")?H[t]:H[t]=C(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in H)if(H[n]===t)return n},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!G,"Object",{create:function(t,n){return void 0===n?T(t):Y(T(t),n)},defineProperty:B,defineProperties:Y,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=f((function(){L.f(1)}));u(u.S+u.F*it,"Object",{getOwnPropertySymbols:function(t){return L.f(w(t))}}),N&&u(u.S+u.F*(!G||f((function(){var t=C();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(b(n)||void 0!==t)&&!K(t))return h(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!K(n))return n}),r[1]=n,R.apply(N,r)}}),C.prototype[F]||e(6)(C.prototype,F,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(17)("meta"),o=e(11),i=e(5),u=e(3).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(12)((function(){return c(Object.preventExtensions({}))})),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},function(t,n,e){var r=e(15),o=e(27),i=e(18);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){var r=e(7),o=e(43).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,n,e){var r=e(18),o=e(13),i=e(7),u=e(20),a=e(5),c=e(33),f=Object.getOwnPropertyDescriptor;n.f=e(4)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){},function(t,n,e){e(30)("asyncIterator")},function(t,n,e){e(30)("observable")},function(t,n,e){e(38),e(78),t.exports=e(29).f("iterator")},function(t,n,e){e(79);for(var r=e(2),o=e(6),i=e(14),u=e(0)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,n,e){"use strict";var r=e(80),o=e(81),i=e(14),u=e(7);t.exports=e(39)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){e(83),t.exports=e(1).Array.isArray},function(t,n,e){var r=e(9);r(r.S,"Array",{isArray:e(42)})},function(t,n,e){"use strict";e.r(n);var r=e(8),o=e.n(r),i=e(31),u=e.n(i),a=function(t,n){var e=t.entryType,r=t.name,o=t.startTime,i=t.duration,u=t.detail,a=t.c1,c=t.c2,f=t.c3,s=t.c4,l=t.c5,p=t.c6,v=t.c7,d=t.c8,y=t.c9,m=t.c10;n.log("usertiming",{p1:o,p2:i,p3:e,p4:r,p5:u,c1:a,c2:c,c3:f,c4:s,c5:l,c6:p,c7:v,c8:d,c9:y,c10:m})},c=function(t,n,e){var r;n.log("elementtiming",{p1:t.startTime,p2:t.identifier,p3:t.name,p4:t.url,p5:null===(r=t.element)||void 0===r?void 0:r.tagName,p6:t.naturalHeight,p7:t.naturalWidth})},f=function(t,n,e){if("function"==typeof window.fetch&&e&&0!==e.length)try{var r=t.getConfig("pv_id"),o=t.getConfig("pid"),i={__topic__:"resourcetiming",__logs__:[{pid:o,name:r,resource:encodeURIComponent(u()(e.slice(0,200)))}]};if(!o||!r)return;var a=u()(i);fetch("https://aes.cn-wulanchabu.log.aliyuncs.com/logstores/aes-resourcetiming/track",{method:"POST",body:a,headers:{"Content-Type":"application/json","x-log-apiversion":"0.6.0","x-log-bodyrawsize":a.length}}).catch((function(t){var n,e;null===(n=window.console)||void 0===n||null===(e=n.warn)||void 0===e||e.call(n,"[AES] send resource timing failed",t)}))}catch(t){var c,f;null===(c=window.console)||void 0===c||null===(f=c.warn)||void 0===f||f.call(c,"[AES] send resource timing failed",t)}},s=(new Date).getTime(),l=function(){var t,n,e,r;return null!==(t=window)&&void 0!==t&&null!==(n=t.performance)&&void 0!==n&&n.now?performance.now():null!==(e=window)&&void 0!==e&&null!==(r=e.performance)&&void 0!==r&&r.timing?(new Date).getTime()-performance.timing.navigationStart:(new Date).getTime()-s};var p=function(t,n){var e=[],r=function(t){return e.concat([]).reverse().find((function(n){return n.name==="".concat(t)}))};return{mark:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var i=o()({name:n+"",entryType:"mark",startTime:l(),duration:0},r);return e.push(i),a(i,t),i}catch(t){console.error("Failed to execute 'mark' on 'Performance': ",t)}},measure:function(n,e,i){try{var u;if("object"==typeof e){if(void 0===e.start&&void 0===e.end)throw new Error("at least one of its 'start' or 'end' properties must be present");if(void 0!==e.start&&void 0!==e.end&&void 0!==e.duration)throw new Error("it must not have all of its 'start', 'duration', and 'end' properties defined");var c="number"==typeof e.start?e.start:"string"==typeof e.start?r(e.start).startTime:null,f="number"==typeof e.end?e.end:"string"==typeof e.end?r(e.end).startTime:null,s=e.duration;"number"!=typeof s&&(s=(f||l())-(c||0)),"number"!=typeof c&&(c=f-s),u=o()(o()({},e),{name:n+"",entryType:"measure",startTime:c,duration:s})}else{var p=void 0===e?null:r(e),v=void 0===i?null:r(i);u={name:n+"",entryType:"measure",startTime:(p=p||{startTime:0}).startTime,duration:((null==v?void 0:v.startTime)||l())-p.startTime}}return a(u,t),u}catch(t){var d,y;null===(d=window)||void 0===d||null===(y=d.console)||void 0===y||y.error("Failed to execute 'measure' on 'Performance'",t)}},markWithEntry:function(n){return a(o()({entryType:"mark",duration:0},n),t),n},measureWithEntry:function(n){return a(o()({entryType:"measure"},n),t),n}}},v=function(t,n){for(var e in n)t[e]=n[e];return t};function d(){try{performance.measure.apply(performance,arguments)}catch(t){}}function y(){try{performance.mark.apply(performance,arguments)}catch(t){}}function m(){var t,n;null===(t=window.console)||void 0===t||null===(n=t.log)||void 0===n||n.apply(console,arguments)}var h={hasHookRequest:!1,requestStackSize:0,listeners:[],runListeners:function(){var t=this;this.listeners.forEach((function(n){return n(t.requestStackSize)}))},hook:function(t){var n,e,r,o,i=this;if(window.fetch&&null!==(n=window)&&void 0!==n&&null!==(e=n.Response)&&void 0!==e&&null!==(r=e.prototype)&&void 0!==r&&r.blob){var u=window.fetch;window.fetch=function(n){var e,r,o,a;t&&i.listeners.length&&(e=null===(o=window.performance)||void 0===o||null===(a=o.now)||void 0===a?void 0:a.call(o),r="MCP fetch: "+("string"==typeof n?n:n.url));return i.requestStackSize++,i.runListeners(),u.apply(window,arguments).then((function(t){try{t.clone().blob().then((function(t){i.requestStackSize--,i.runListeners(),r&&d(r,{start:e})}))}catch(t){}return t}),(function(t){try{i.requestStackSize--,i.runListeners(),r&&d(r,{start:e})}catch(t){}throw t}))}}if(t){o="_aesMCP".concat(Math.random());var a=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(t,n){var e,r;a.apply(this,arguments),i.listeners.length&&(this[o]={name:"MCP XHR: "+n,start:null===(e=window.performance)||void 0===e||null===(r=e.now)||void 0===r?void 0:r.call(e)})}}var c=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(){c.apply(this,arguments),i.requestStackSize++,i.runListeners();var t=this;t.addEventListener("readystatechange",(function(){4===t.readyState&&(i.requestStackSize--,i.runListeners(),t[o]&&(d(t[o].name,{start:t[o].start}),delete t[o]))}))}},addEventListener:function(t,n){this.hasHookRequest||(this.hook(n),this.hasHookRequest=!0),this.listeners.push(t)},removeEventListener:function(t){this.listeners=this.listeners.filter((function(n){return n!==t}))}};function g(t,n){var e=this,r=n.debug;this.assetsStack=0,this.debug=r,this.observer=function(){1!==e.end&&t(h.requestStackSize+e.assetsStack<1)}}function b(t){this.inputTypes=["click","keypress","wheel"],this.eventHandler=t}function w(t){var n,e,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!window.PerformanceLongTaskTiming||!window.MutationObserver||null===(n=window)||void 0===n||null===(e=n.performance)||void 0===e||!e.now)return{abort:function(){}};var u,a,c,f,s,l,p,h=o.start,w="complete"===document.readyState,S=function(){document.hidden&&(i&&m("[AES] perf","页面离开，MCP停止采集"),E())},x=function(){u&&clearTimeout(u),u=setTimeout((function(){if(s&&w&&s.done&&(!p||p.done)){var n=(r||performance.now())-h;E(),t(v({name:"aes-mcp",startTime:n,_start:h,c1:h>0?0:1},o)),i&&(d("MCP",{start:h,duration:n}),y("MCP test over"))}}),100)},E=function(){u&&clearTimeout(u),u=null,[a,f,c,s,l,p].forEach((function(t){var n,e;null===(n=t)||void 0===n||null===(e=n.disconnect)||void 0===e||e.call(n),t=null})),S&&window.removeEventListener("visibilitychange",S),S=null,0===h&&window.removeEventListener("load",T)},T=function(){(s=new g((function(t){s.done=t,x()}),{debug:i})).observe(),(a=new MutationObserver((function(t,n){r=performance.now(),null==t||t.forEach((function(t){var n;"childList"===t.type&&(null==t||null===(n=t.addedNodes)||void 0===n||n.forEach((function(t){(("SCRIPT"===t.tagName||"IMG"===t.tagName)&&t.src||"LINK"===t.tagName&&"stylesheet"===t.rel&&t.href)&&s&&s.observe(t)})))})),i&&y("MCP mutation",{startTime:r})}))).observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0}),window.LayoutShiftAttribution&&(f=new PerformanceObserver((function(){r=performance.now(),x()}))).observe({entryTypes:["layout-shift"]}),(c=new PerformanceObserver((function(t){t.getEntries().some((function(t){t.duration>50&&x()}))}))).observe({entryTypes:["longtask"]}),o.observer&&(p=new o.observer((function(t){p.done=t,x()}),{debug:i})).observe(),(l=new b((function(){i&&m("[AES] perf","用户输入，MCP停止采集"),E()}))).observe(),window.addEventListener("visibilitychange",S),x()};return w?isNaN(h)&&(h=performance.now()):(isNaN(h)&&(h=0),window.addEventListener("load",(function(){w=!0,x()}))),i&&y("MCP test start"),T(),{abort:E}}g.prototype.observe=function(t){var n=this;if(t){var e,r,o,i;if(this.debug)e="MCP assets: ".concat(t.src||t.href),r=null===(o=window.performance)||void 0===o||null===(i=o.now)||void 0===i?void 0:i.call(o);this.assetsStack++;var u=function(){n.assetsStack--,n.observer(),e&&d(e,{start:r})};return t.addEventListener("load",u),t.addEventListener("error",u),void this.observer()}return h.addEventListener(this.observer,this.debug),this},g.prototype.disconnect=function(){this.end=1,h.removeEventListener(this.observer)},b.prototype.observe=function(){var t=this;this.inputTypes.forEach((function(n){window.addEventListener(n,t.eventHandler,!0)}))},b.prototype.disconnect=function(){var t=this;this.inputTypes.forEach((function(n){window.removeEventListener(n,t.eventHandler,!0)}))};var S=function(){var t,n;if((null===(t=window.performance)||void 0===t||null===(n=t.timing)||void 0===n?void 0:n.loadEventEnd)>0){var e={};for(var r in performance.timing)"number"==typeof performance.timing[r]&&performance.timing[r]>0&&(e[r]=Math.max(performance.timing[r]-performance.timing.navigationStart,0));return e}},x=e(44),E=e.n(x),T=e(45),O=e.n(T),_=e(46),L=e.n(_),P=e(47),k=e.n(P);function j(t,n){var e=void 0!==O.a&&t[L.a]||t["@@iterator"];if(!e){if(k()(t)||(e=function(t,n){if(!t)return;if("string"==typeof t)return M(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return E()(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return M(t,n)}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(a)throw i}}}}function M(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var A=function(t){function n(r){document.hidden&&(t(),document.removeEventListener("visibilitychange",n),window.removeEventListener("beforeunload",e))}function e(){t(),document.removeEventListener("visibilitychange",n)}window.addEventListener("beforeunload",e),document.addEventListener("visibilitychange",n)},C=function(t){"complete"===document.readyState?setTimeout(t):window.addEventListener("load",(function(){return setTimeout(t)}))};function N(t,n){for(var e in n)t[e]=n[e];return t}function R(t,n){var e,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==(e=window.PerformanceObserver)&&void 0!==e&&null!==(r=e.supportedEntryTypes)&&void 0!==r&&null!==(o=r.includes)&&void 0!==o&&o.call(r,t)){var u=!1!==i.buffered,a=new PerformanceObserver((function(t){var e,r=j(t.getEntries());try{for(r.s();!(e=r.n()).done;){var o=e.value;n(o)}}catch(t){r.e(t)}finally{r.f()}}));try{a.observe({type:t,buffered:u})}catch(n){a.observe({entryTypes:[t]})}return a}}function I(t){var n,e,r,o,i=R("paint",(function(t){"first-paint"===t.name?n=t:"first-contentful-paint"===t.name&&(e=t)})),u=R("largest-contentful-paint",(function(t){r=t})),a=function(){var a,c;null==i||null===(a=i.disconnect)||void 0===a||a.call(i),null==u||null===(c=u.disconnect)||void 0===c||c.call(u),!n&&!e||o||(t({fp:n,fcp:e,lcp:r}),o=!0)};!function(t){["keydown","click"].forEach((function(n){var e;window.addEventListener(n,e=function(){t(),window.removeEventListener(n,e,!0)},!0)}))}(a),A(a)}function F(t){var n,e=function(t){var n,e,r;if(null===(n=window.PerformanceObserver)||void 0===n||null===(e=n.supportedEntryTypes)||void 0===e||null===(r=e.includes)||void 0===r||!r.call(e,"layout-shift"))return function(){};var o=0,i=0,u=[],a=R("layout-shift",(function(n){if(!n.hadRecentInput){var e=u[0],r=u[u.length-1];i&&n.startTime-r.startTime<1e3&&n.startTime-e.startTime<5e3?(i+=n.value,u.push(n)):(i=n.value,u=[n]),i>o&&(o=i,t({times:u.length,value:o}))}}));return t({times:0,value:o}),function(){null==a||a.disconnect()}}((function(t){n=t}));A((function(){n&&t(n),e&&e()}))}n.default=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e=N(N({},t.getConfig()),e)).plugin_perf_resourceTimingThreshhold||8e3,o=e.plugin_perf_resourceTimingSampling||.01;C((function(){var i=S();i&&i.responseEnd>=i.responseStart&&i.loadEventEnd>=i.responseEnd&&t.log("perf",i),e.plugin_perf_enableResourceTiming&&i.loadEventEnd-i.navigationStart>r&&Math.random()<=o&&setTimeout((function(){var e,r;n||f(t,0,null===(e=window.performance)||void 0===e||null===(r=e.getEntries)||void 0===r?void 0:r.call(e))}),1e3)})),I((function(n){var e,r,o,i=n.lcp;t.log("paint",{p1:null===(e=n.fp)||void 0===e?void 0:e.startTime,p2:null===(r=n.fcp)||void 0===r?void 0:r.startTime,p3:null==i?void 0:i.startTime,p4:null==i||null===(o=i.element)||void 0===o?void 0:o.tagName,p5:null==i?void 0:i.url})}));var i=e.plugin_perf_enableUserTimingObserve;i&&(R("mark",(function(n){a(n,t)})),R("measure",(function(n){a(n,t)})));var u={};R("element",(function(n){u[n.identifier]||(u[n.identifier]=1,c(n,t))})),F((function(n){t.log("cls",{p1:n.value,p2:n.times})}));var s=p(t,e),l=s.mark,v=s.measure,d=s.markWithEntry,y=s.measureWithEntry;return{mark:l,measure:v,markWithEntry:d,measureWithEntry:y,markOnMCP:function(i,u){var a,c;n||(null===(a=window.performance)||void 0===a||null===(c=a.addEventListener)||void 0===c||c.call(a,"resourcetimingbufferfull",(function(){var t,n;"complete"===document.readyState&&(null===(t=window.performance)||void 0===t||null===(n=t.clearResourceTimings)||void 0===n||n.call(t))})));return n=!0,w((function(n){var u=n.startTime,a=n._start;if(d(n),i&&i({startTime:u}),e.plugin_perf_enableResourceTiming&&u>r&&Math.random()<=o){var c,s,l=null===(c=window.performance)||void 0===c||null===(s=c.getEntries)||void 0===s?void 0:s.call(c);l&&f(t,0,l.filter((function(t){return t.startTime>=a&&t.startTime<=a+u})))}}),u,t.getConfig("debug"))}}}}]).default}));!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-eventTiming/index",[],n):"object"==typeof exports?exports.AESPluginEventTiming=n():e.AESPluginEventTiming=n()}(window,(function(){return function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n);var i=function(e){for(var n=[],t=window,i=document,r=0,o=e.length;r<o;r++){var u=e[r];if(u===t||u===i)break;if(u.id){n.push("#".concat(u.id));break}u.className&&"string"==typeof u.className?n.push("."+u.className.split(/\s+/).filter((function(e){return!!e})).join(".")):n.push(u.nodeName)}return n.reverse().join(" ")},r=function(e){if("[object Array]"===Object.prototype.toString.apply(e))return i(e);for(var n=[],t=e;t;)n.push(t),t=t.parentNode;return i(n)},o=void 0!==document.hidden?{hidden:"hidden",visibilityChange:"visibilitychange"}:void 0!==document.webkitHidden?{hidden:"webkitHidden",visibilityChange:"webkitvisibilitychange"}:void 0!==document.msHidden?{hidden:"msHidden",visibilityChange:"msvisibilitychange"}:void 0,u=!!o;n.default=function(e,n){var t,i;if(window.PerformanceEventTiming){var c,d,a,s,f=function(n,t){var i,o;i=function(){e.log("eventTiming",{p1:n.startTime,p2:n.duration,p3:n.target&&r(n.target),p4:n.name,p5:n.processingStart,p6:n.processingEnd,p7:t?"1":"0"})},"function"==typeof requestIdleCallback?requestIdleCallback(i,{timeout:o||1e3}):setTimeout(i,0)},l=new PerformanceObserver((function(e){var n=e.getEntries().filter((function(e){return void 0!==e.interactionId&&e.processingStart&&e.processingEnd&&e.processingEnd-e.processingStart>1})),t=n.filter((function(e){return 0!==e.interactionId})).reduce((function(e,n){var t=n.interactionId;return e[t]||(e[t]=[]),e[t].push(n),e}),{});for(var i in t)f(t[i][t[i].length-1]);n.filter((function(e){return 0===e.interactionId})).forEach((function(e){f(e)}))}));try{l.observe({type:"event",durationThreshold:100})}catch(e){}null!==(t=window.PerformanceObserver)&&void 0!==t&&null!==(i=t.supportedEntryTypes)&&void 0!==i&&i.includes("first-input")&&(c=new PerformanceObserver((function(e,n){f(e.getEntries()[0],!0),n.disconnect(),c=null}))).observe({type:"first-input",buffered:!0}),d=function(e){e?setTimeout((function(){try{l.observe({type:"event",durationThreshold:100})}catch(e){}}),100):(c&&c.disconnect(),l&&l.disconnect())},u&&document.addEventListener(o.visibilityChange,s=function(e){a&&document.removeEventListener(o.visibilityChange,s),d(!document[o.hidden])})}}}]).default}));!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-blank/index",[],n):"object"==typeof exports?exports.AESPluginBlank=n():t.AESPluginBlank=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=6)}([function(t,n,e){t.exports=e(7)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(5)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){"use strict";e.r(n);var r=e(0),o=e.n(r);function u(t,n){for(var e in n)t[e]=n[e];return t}var i=function(t,n,e){var r=t.plugin_blank_target,u=t.plugin_blank_tester,i=t.plugin_blank_when,c=t.plugin_blank_timeout;if(r){n=n||o()();var f,a=[],l=function(){a.forEach((function(t){return t()})),a=[]},p=function(t){try{!f&&function(t,n){try{var e=document.querySelector(t);return!("function"==typeof n?n(e):"HAS_CONTENT"==n?e&&e.textContent:!!e)}catch(t){}}(r,u)&&(e.log("blank",{p1:c,p2:r,p3:o()()-n,p4:"complete"===document.readyState,p5:t}),f=!0),l()}catch(t){}};return i.forEach((function(t){var e=function(){p("function"==typeof t?"custom":t)};if("timeout"===t){var r=setTimeout(e,c-(o()()-n));a.push((function(){r&&clearTimeout(r)}))}else if("leave"===t){var u;document.addEventListener("visibilitychange",u=function(){"complete"===document.readyState&&document.hidden&&e()}),a.push((function(){document.removeEventListener("visibilitychange",u)}))}else if("error"===t){var i;window.addEventListener("error",i=function(){"complete"===document.readyState&&e()}),a.push((function(){window.removeEventListener("error",i)}))}else if("load"===t)"complete"===document.readyState?setTimeout(e,0):(window.addEventListener("load",e),a.push((function(){window.removeEventListener("load",e)})));else if("function"==typeof t){var f=t(e);"function"==typeof f&&a.push(f)}})),l}};n.default=function(t){var n,e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=u(u({plugin_blank_tester:"EXISTS",plugin_blank_when:["timeout","leave"],plugin_blank_timeout:5e3},t.getConfig()),r);return!1!==o.plugin_blank_autoTest&&i(o,null===(n=window.performance)||void 0===n||null===(e=n.timing)||void 0===e?void 0:e.navigationStart,t),{test:function(n){return i(u(u({},o),n),null,t)}}}},function(t,n,e){e(8),t.exports=e(4).Date.now},function(t,n,e){var r=e(9);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){var r=e(3),o=e(4),u=e(10),i=e(12),c=e(19),f=function(t,n,e){var a,l,p,s=t&f.F,d=t&f.G,v=t&f.S,y=t&f.P,m=t&f.B,b=t&f.W,g=d?o:o[n]||(o[n]={}),w=g.prototype,h=d?r:v?r[n]:(r[n]||{}).prototype;for(a in d&&(e=n),e)(l=!s&&h&&void 0!==h[a])&&c(g,a)||(p=l?h[a]:e[a],g[a]=d&&"function"!=typeof h[a]?e[a]:m&&l?u(p,r):b&&h[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(p):y&&"function"==typeof p?u(Function.call,p):p,y&&((g.virtual||(g.virtual={}))[a]=p,t&f.R&&w&&!w[a]&&i(w,a,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,e){var r=e(11);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(13),o=e(18);t.exports=e(2)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(14),o=e(15),u=e(17),i=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=u(n,!0),r(e),o)try{return i(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(1);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){t.exports=!e(2)&&!e(5)((function(){return 7!=Object.defineProperty(e(16)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(1),o=e(3).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,n,e){var r=e(1);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}}]).default}));!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-emogine/index",[],e):"object"==typeof exports?exports.AESPluginEmogine=e():t.AESPluginEmogine=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=157)}([function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(143)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r=n(29);function o(){return t.exports=o=r?r.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,o.apply(this,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(4),o=n(0),i=n(19),a=n(16),u=n(17),c=function(t,e,n){var s,f,l,p=t&c.F,v=t&c.G,d=t&c.S,h=t&c.P,y=t&c.B,m=t&c.W,g=v?o:o[e]||(o[e]={}),x=g.prototype,w=v?r:d?r[e]:(r[e]||{}).prototype;for(s in v&&(n=e),n)(f=!p&&w&&void 0!==w[s])&&u(g,s)||(l=f?w[s]:n[s],g[s]=v&&"function"!=typeof w[s]?n[s]:y&&f?i(l,r):m&&w[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[s]=l,t&c.R&&x&&!x[s]&&a(x,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=n(144)},function(t,e,n){t.exports=n(118)},function(t,e,n){var r=n(44)("wks"),o=n(32),i=n(4).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(6);function o(t,e,n,o,i,a,u){try{var c=t[a](u),s=c.value}catch(t){return void n(t)}c.done?e(s):r.resolve(s).then(o,i)}t.exports=function(t){return function(){var e=this,n=arguments;return new r((function(r,i){var a=t.apply(e,n);function u(t){o(a,r,i,u,c,"next",t)}function c(t){o(a,r,i,u,c,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(10);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(13)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(9),o=n(53),i=n(40),a=Object.defineProperty;e.f=n(11)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(28),o=n(130);function i(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),r(t,o(i.key),i)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),r(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(146)},function(t,e,n){var r=n(12),o=n(23);t.exports=n(11)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(55),o=n(31);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(54),o=n(45);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(31);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports={}},function(t,e,n){t.exports=n(128)},function(t,e,n){t.exports=n(88)},function(t,e,n){t.exports=n(93)},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(9),o=n(95),i=n(45),a=n(43)("IE_PROTO"),u=function(){},c=function(){var t,e=n(39)("iframe"),r=i.length;for(e.style.display="none",n(56).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){t.exports=n(101)},function(t,e,n){var r=n(12).f,o=n(17),i=n(7)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(7)},function(t,e,n){var r=n(34),o=n(48);function i(e){return t.exports=i="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(e)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(98)},function(t,e,n){var r=n(10),o=n(4).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(10);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(42),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(44)("keys"),o=n(32);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=n(4),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(25)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(4),o=n(0),i=n(25),a=n(36),u=n(12).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){t.exports=n(108)},function(t,e,n){"use strict";var r=n(109)(!0);n(63)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(20);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){t.exports=n(137)},function(t,e,n){var r=n(51),o=n(79);function i(e){return t.exports=i=r?o.bind():function(t){return t.__proto__||o(t)},t.exports.__esModule=!0,t.exports.default=t.exports,i(e)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=!n(11)&&!n(13)((function(){return 7!=Object.defineProperty(n(39)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(17),o=n(18),i=n(91)(!1),a=n(43)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(4).document;t.exports=r&&r.documentElement},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){t.exports=n(16)},function(t,e,n){var r=n(54),o=n(45).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(26),o=n(23),i=n(18),a=n(40),u=n(17),c=n(53),s=Object.getOwnPropertyDescriptor;e.f=n(11)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){"use strict";var r=n(25),o=n(3),i=n(59),a=n(16),u=n(27),c=n(110),s=n(35),f=n(64),l=n(7)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,d,h,y,m){c(n,e,d);var g,x,w,b=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",E="values"==h,S=!1,O=t.prototype,j=O[l]||O["@@iterator"]||h&&O[h],L=j||b(h),T=h?E?b("entries"):L:void 0,M="Array"==e&&O.entries||j;if(M&&(w=f(M.call(new t)))!==Object.prototype&&w.next&&(s(w,_,!0),r||"function"==typeof w[l]||a(w,l,v)),E&&j&&"values"!==j.name&&(S=!0,L=function(){return j.call(this)}),r&&!m||!p&&!S&&O[l]||a(O,l,L),u[e]=L,u[_]=v,h)if(g={values:E?L:b("values"),keys:y?L:b("keys"),entries:T},m)for(x in g)x in O||i(O,x,g[x]);else o(o.P+o.F*(p||S),e,g);return g}},function(t,e,n){var r=n(17),o=n(22),i=n(43)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(111);for(var r=n(4),o=n(16),i=n(27),a=n(7)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],f=r[s],l=f&&f.prototype;l&&!l[a]&&o(l,a,s),i[s]=i.Array}},function(t,e,n){var r=n(67),o=n(73);t.exports=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?r(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(114)},function(t,e,n){var r=n(9);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(27),o=n(7)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(71),o=n(7)("iterator"),i=n(27);t.exports=n(0).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(24),o=n(7)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(7)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(9),o=n(20),i=n(7)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(19),u=n(57),c=n(56),s=n(39),f=n(4),l=f.process,p=f.setImmediate,v=f.clearImmediate,d=f.MessageChannel,h=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},x=function(t){g.call(t.data)};p&&v||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},v=function(t){delete m[t]},"process"==n(24)(l)?r=function(t){l.nextTick(a(g,t,1))}:h&&h.now?r=function(t){h.now(a(g,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=x,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:v}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(9),o=n(10),i=n(50);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=n(134)},function(t,e,n){t.exports=n(141)},function(t,e,n){var r=n(3),o=n(0),i=n(13);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,e,n){var r=n(97),o=n(100),i=n(66),a=n(117);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(78),o=n(28),i=n(136);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=r(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o(t,"prototype",{writable:!1}),e&&i(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(37).default,o=n(140);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(147)},function(t,e,n){t.exports=n(150)},function(t,e,n){var r=n(154),o=n(155),i=n(66),a=n(156);t.exports=function(t){return r(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){n(89),t.exports=n(0).Object.assign},function(t,e,n){var r=n(3);r(r.S+r.F,"Object",{assign:n(90)})},function(t,e,n){"use strict";var r=n(11),o=n(21),i=n(46),a=n(26),u=n(22),c=n(55),s=Object.assign;t.exports=!s||n(13)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=u(t),s=arguments.length,f=1,l=i.f,p=a.f;s>f;)for(var v,d=c(arguments[f++]),h=l?o(d).concat(l(d)):o(d),y=h.length,m=0;y>m;)v=h[m++],r&&!p.call(d,v)||(n[v]=d[v]);return n}:s},function(t,e,n){var r=n(18),o=n(41),i=n(92);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(42),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){n(94),t.exports=n(0).Reflect.construct},function(t,e,n){var r=n(3),o=n(33),i=n(20),a=n(9),u=n(10),c=n(13),s=n(96),f=(n(4).Reflect||{}).construct,l=c((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),p=!c((function(){f((function(){}))}));r(r.S+r.F*(l||p),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!l)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var c=n.prototype,v=o(u(c)?c:Object.prototype),d=Function.apply.call(t,v,e);return u(d)?d:v}})},function(t,e,n){var r=n(12),o=n(9),i=n(21);t.exports=n(11)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){"use strict";var r=n(20),o=n(10),i=n(57),a=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?c(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e,n){var r=n(38);t.exports=function(t){if(r(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){n(99),t.exports=n(0).Array.isArray},function(t,e,n){var r=n(3);r(r.S,"Array",{isArray:n(58)})},function(t,e,n){var r=n(34),o=n(48);t.exports=function(t,e){var n=null==t?null:void 0!==r&&t[o]||t["@@iterator"];if(null!=n){var i,a,u,c,s=[],f=!0,l=!1;try{if(u=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;f=!1}else for(;!(f=(i=u.call(n)).done)&&(s.push(i.value),s.length!==e);f=!0);}catch(t){l=!0,a=t}finally{try{if(!f&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw a}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){n(102),n(62),n(106),n(107),t.exports=n(0).Symbol},function(t,e,n){"use strict";var r=n(4),o=n(17),i=n(11),a=n(3),u=n(59),c=n(103).KEY,s=n(13),f=n(44),l=n(35),p=n(32),v=n(7),d=n(36),h=n(47),y=n(104),m=n(58),g=n(9),x=n(10),w=n(22),b=n(18),_=n(40),E=n(23),S=n(33),O=n(105),j=n(61),L=n(46),T=n(12),M=n(21),P=j.f,k=T.f,A=O.f,I=r.Symbol,R=r.JSON,C=R&&R.stringify,F=v("_hidden"),N=v("toPrimitive"),D={}.propertyIsEnumerable,U=f("symbol-registry"),G=f("symbols"),B=f("op-symbols"),H=Object.prototype,q="function"==typeof I&&!!L.f,K=r.QObject,W=!K||!K.prototype||!K.prototype.findChild,J=i&&s((function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=P(H,e);r&&delete H[e],k(t,e,n),r&&t!==H&&k(H,e,r)}:k,V=function(t){var e=G[t]=S(I.prototype);return e._k=t,e},z=q&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},Q=function(t,e,n){return t===H&&Q(B,e,n),g(t),e=_(e,!0),g(n),o(G,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=S(n,{enumerable:E(0,!1)})):(o(t,F)||k(t,F,E(1,{})),t[F][e]=!0),J(t,e,n)):k(t,e,n)},Y=function(t,e){g(t);for(var n,r=y(e=b(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},X=function(t){var e=D.call(this,t=_(t,!0));return!(this===H&&o(G,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,F)&&this[F][t])||e)},$=function(t,e){if(t=b(t),e=_(e,!0),t!==H||!o(G,e)||o(B,e)){var n=P(t,e);return!n||!o(G,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=A(b(t)),r=[],i=0;n.length>i;)o(G,e=n[i++])||e==F||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===H,r=A(n?B:b(t)),i=[],a=0;r.length>a;)!o(G,e=r[a++])||n&&!o(H,e)||i.push(G[e]);return i};q||(u((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(B,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),J(this,t,E(1,n))};return i&&W&&J(H,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",(function(){return this._k})),j.f=$,T.f=Q,n(60).f=O.f=Z,n(26).f=X,L.f=tt,i&&!n(25)&&u(H,"propertyIsEnumerable",X,!0),d.f=function(t){return V(v(t))}),a(a.G+a.W+a.F*!q,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)v(et[nt++]);for(var rt=M(v.store),ot=0;rt.length>ot;)h(rt[ot++]);a(a.S+a.F*!q,"Symbol",{for:function(t){return o(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(t,e){return void 0===e?S(t):Y(S(t),e)},defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=s((function(){L.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return L.f(w(t))}}),R&&a(a.S+a.F*(!q||s((function(){var t=I();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(x(e)||void 0!==t)&&!z(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!z(e))return e}),r[1]=e,C.apply(R,r)}}),I.prototype[N]||n(16)(I.prototype,N,I.prototype.valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(32)("meta"),o=n(10),i=n(17),a=n(12).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(13)((function(){return c(Object.preventExtensions({}))})),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&c(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){var r=n(21),o=n(46),i=n(26);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(18),o=n(60).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){n(47)("asyncIterator")},function(t,e,n){n(47)("observable")},function(t,e,n){n(49),n(65),t.exports=n(36).f("iterator")},function(t,e,n){var r=n(42),o=n(31);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(33),o=n(23),i=n(35),a={};n(16)(a,n(7)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(112),o=n(113),i=n(27),a=n(18);t.exports=n(63)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(49),n(115),t.exports=n(0).Array.from},function(t,e,n){"use strict";var r=n(19),o=n(3),i=n(22),a=n(68),u=n(69),c=n(41),s=n(116),f=n(70);o(o.S+o.F*!n(72)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,l,p=i(t),v="function"==typeof this?this:Array,d=arguments.length,h=d>1?arguments[1]:void 0,y=void 0!==h,m=0,g=f(p);if(y&&(h=r(h,d>2?arguments[2]:void 0,2)),null==g||v==Array&&u(g))for(n=new v(e=c(p.length));e>m;m++)s(n,m,y?h(p[m],m):p[m]);else for(l=g.call(p),n=new v;!(o=l.next()).done;m++)s(n,m,y?a(l,h,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(12),o=n(23);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){n(62),n(49),n(65),n(119),n(126),n(127),t.exports=n(0).Promise},function(t,e,n){"use strict";var r,o,i,a,u=n(25),c=n(4),s=n(19),f=n(71),l=n(3),p=n(10),v=n(20),d=n(120),h=n(121),y=n(74),m=n(75).set,g=n(122)(),x=n(50),w=n(76),b=n(123),_=n(77),E=c.TypeError,S=c.process,O=S&&S.versions,j=O&&O.v8||"",L=c.Promise,T="process"==f(S),M=function(){},P=o=x.f,k=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n(7)("species")]=function(t){t(M,M)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==j.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(o||(2==t._h&&F(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&(f.exit(),a=!0)),n===e.promise?s(E("Promise-chain cycle")):(i=A(n))?i.call(n,c,s):c(n)):s(r)}catch(t){f&&!a&&f.exit(),s(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&R(t)}))}},R=function(t){m.call(c,(function(){var e,n,r,o=t._v,i=C(t);if(i&&(e=w((function(){T?S.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=T||C(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){m.call(c,(function(){var e;T?S.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=A(t))?g((function(){var r={_w:n,_d:!1};try{e.call(t,s(D,r,1),s(N,r,1))}catch(t){N.call(r,t)}})):(n._v=t,n._s=1,I(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};k||(L=function(t){d(this,L,"Promise","_h"),v(t),r.call(this);try{t(s(D,this,1),s(N,this,1))}catch(t){N.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(124)(L.prototype,{then:function(t,e){var n=P(y(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(D,t,1),this.reject=s(N,t,1)},x.f=P=function(t){return t===L||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!k,{Promise:L}),n(35)(L,"Promise"),n(125)("Promise"),a=n(0).Promise,l(l.S+l.F*!k,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!k),"Promise",{resolve:function(t){return _(u&&this===a?L:this,t)}}),l(l.S+l.F*!(k&&n(72)((function(t){L.all(t).catch(M)}))),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,o=n.reject,i=w((function(){var n=[],i=0,a=1;h(t,!1,(function(t){var u=i++,c=!1;n.push(void 0),a++,e.resolve(t).then((function(t){c||(c=!0,n[u]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,o=w((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(19),o=n(68),i=n(69),a=n(9),u=n(41),c=n(70),s={},f={};(e=t.exports=function(t,e,n,l,p){var v,d,h,y,m=p?function(){return t}:c(t),g=r(n,l,e?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(v=u(t.length);v>x;x++)if((y=e?g(a(d=t[x])[0],d[1]):g(t[x]))===s||y===f)return y}else for(h=m.call(t);!(d=h.next()).done;)if((y=o(h,g,d.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e,n){var r=n(4),o=n(75).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(24)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(s)}}else n=function(){o.call(r,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(4).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(16);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(12),a=n(11),u=n(7)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(3),o=n(0),i=n(4),a=n(74),u=n(77);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var r=n(3),o=n(50),i=n(76);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(129);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(3);r(r.S+r.F*!n(11),"Object",{defineProperty:n(12).f})},function(t,e,n){var r=n(37).default,o=n(131);t.exports=function(t){var e=o(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(132),o=n(37).default;t.exports=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[r];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(133)},function(t,e,n){t.exports=n(36).f("toPrimitive")},function(t,e,n){n(135);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(3);r(r.S,"Object",{create:n(33)})},function(t,e,n){var r=n(51);function o(e,n){return t.exports=o=r?r.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e,n)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){n(138),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(3);r(r.S,"Object",{setPrototypeOf:n(139).set})},function(t,e,n){var r=n(10),o=n(9),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(19)(Function.call,n(61).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){n(142),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){var r=n(22),o=n(64);n(80)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(37).default,o=n(28),i=n(34),a=n(78),u=n(79),c=n(51),s=n(6);function f(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=f=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,l=n.hasOwnProperty,p=o||function(t,e,n){t[e]=n.value},v="function"==typeof i?i:{},d=v.iterator||"@@iterator",h=v.asyncIterator||"@@asyncIterator",y=v.toStringTag||"@@toStringTag";function m(t,e,n){return o(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{m({},"")}catch(t){m=function(t,e,n){return t[e]=n}}function g(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,i=a(o.prototype),u=new I(r||[]);return p(i,"_invoke",{value:M(t,n,u)}),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=g;var w={};function b(){}function _(){}function E(){}var S={};m(S,d,(function(){return this}));var O=u&&u(u(R([])));O&&O!==n&&l.call(O,d)&&(S=O);var j=E.prototype=b.prototype=a(S);function L(t){["next","throw","return"].forEach((function(e){m(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){var n;p(this,"_invoke",{value:function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,u){var c=x(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==r(f)&&l.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}})}function M(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=P(a,n);if(u){if(u===w)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=x(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===w)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function P(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),w;var o=x(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,w;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,w):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,w)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function R(t){if(t){var e=t[d];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(l.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return _.prototype=E,p(j,"constructor",{value:E,configurable:!0}),p(E,"constructor",{value:_,configurable:!0}),_.displayName=m(E,y,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return c?c(t,E):(t.__proto__=E,m(t,y,"GeneratorFunction")),t.prototype=a(j),t},e.awrap=function(t){return{__await:t}},L(T.prototype),m(T.prototype,h,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,r,o,i){void 0===i&&(i=s);var a=new T(g(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(j),m(j,y,"Generator"),m(j,d,(function(){return this})),m(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=l.call(o,"catchLoc"),u=l.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,w):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),w},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),w}},e}t.exports=f,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){n(145),t.exports=n(0).Object.keys},function(t,e,n){var r=n(22),o=n(21);n(80)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){n(148),t.exports=n(0).Object.entries},function(t,e,n){var r=n(3),o=n(149)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){var r=n(11),o=n(21),i=n(18),a=n(26).f;t.exports=function(t){return function(e){for(var n,u=i(e),c=o(u),s=c.length,f=0,l=[];s>f;)n=c[f++],r&&!a.call(u,n)||l.push(t?[n,u[n]]:u[n]);return l}}},function(t,e,n){n(151),t.exports=n(0).parseInt},function(t,e,n){var r=n(3),o=n(152);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(4).parseInt,o=n(153).trim,i=n(81),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(3),o=n(31),i=n(13),a=n(81),u="["+a+"]",c=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(t,e,n){var o={},u=i((function(){return!!a[t]()||"​"!="​"[t]()})),c=o[t]=u?e(l):a[t];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},l=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},function(t,e,n){var r=n(38),o=n(73);t.exports=function(t){if(r(t))return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(34),o=n(48),i=n(67);t.exports=function(t){if(void 0!==r&&null!=t[o]||null!=t["@@iterator"])return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);var r=n(2),o=n.n(r),i=n(30),a=n.n(i),u=n(82),c=n.n(u),s=n(8),f=n.n(s),l=n(14),p=n.n(l),v=n(83),d=n.n(v),h=n(84),y=n.n(h),m=n(52),g=n.n(m),x=n(1),w=n.n(x),b=n(5),_=n.n(b),E=n(15),S=n.n(E),O=n(85),j=n.n(O),L=n(86),T=n.n(L),M=n(6),P=n.n(M),k=n(38),A=n.n(k);var I=window.location.search.indexOf("_emogineDaily_=true")>-1,R="emogine.insights.1688.com",C=I?"daily/page-targeting":"page-targeting",F="rule-",N=function(t){return function(t,e){return void 0===t&&(t="get"),new P.a((function(n,r){var o=new XMLHttpRequest;o.open(t,e),o.onload=function(){o.status>=200&&o.status<300?n({status:200,data:JSON.parse(o.response)}):r({status:o.status,statusText:o.statusText})},o.onerror=function(){r({status:o.status,statusText:o.statusText})},o.send()}))}("get",t).then((function(t){return 200===t.status&&A()(t.data)?{success:!0,data:t.data}:{success:!1,message:t.statusText}})).catch((function(e){var n="[OSS] page targeting config not exist. URL: "+t;return{success:!1,message:"string"==typeof e.message?e.message:n}}))},D=function(t){var e={};if("function"!=typeof t)return;return function(n){var r=function(t){var e="0123456789abcdef";function n(t){var n,r="";for(n=0;n<=3;n++)r+=e.charAt(t>>8*n+4&15)+e.charAt(t>>8*n&15);return r}function r(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function o(t,e,n,o,i,a){return r(function(t,e){return t<<e|t>>>32-e}(r(r(e,t),r(o,a)),i),n)}function i(t,e,n,r,i,a,u){return o(e&n|~e&r,t,e,i,a,u)}function a(t,e,n,r,i,a,u){return o(e&r|n&~r,t,e,i,a,u)}function u(t,e,n,r,i,a,u){return o(e^n^r,t,e,i,a,u)}function c(t,e,n,r,i,a,u){return o(n^(e|~r),t,e,i,a,u)}var s,f,l,p,v,d=function(t){var e,n=1+(t.length+8>>6),r=new Array(16*n);for(e=0;e<16*n;e++)r[e]=0;for(e=0;e<t.length;e++)r[e>>2]|=t.charCodeAt(e)<<e%4*8;return r[e>>2]|=128<<e%4*8,r[16*n-2]=8*t.length,r}(t),h=1732584193,y=-271733879,m=-1732584194,g=271733878;for(s=0;s<d.length;s+=16)f=h,l=y,p=m,v=g,h=i(h,y,m,g,d[s+0],7,-680876936),g=i(g,h,y,m,d[s+1],12,-389564586),m=i(m,g,h,y,d[s+2],17,606105819),y=i(y,m,g,h,d[s+3],22,-1044525330),h=i(h,y,m,g,d[s+4],7,-176418897),g=i(g,h,y,m,d[s+5],12,1200080426),m=i(m,g,h,y,d[s+6],17,-1473231341),y=i(y,m,g,h,d[s+7],22,-45705983),h=i(h,y,m,g,d[s+8],7,1770035416),g=i(g,h,y,m,d[s+9],12,-1958414417),m=i(m,g,h,y,d[s+10],17,-42063),y=i(y,m,g,h,d[s+11],22,-1990404162),h=i(h,y,m,g,d[s+12],7,1804603682),g=i(g,h,y,m,d[s+13],12,-40341101),m=i(m,g,h,y,d[s+14],17,-1502002290),h=a(h,y=i(y,m,g,h,d[s+15],22,1236535329),m,g,d[s+1],5,-165796510),g=a(g,h,y,m,d[s+6],9,-1069501632),m=a(m,g,h,y,d[s+11],14,643717713),y=a(y,m,g,h,d[s+0],20,-373897302),h=a(h,y,m,g,d[s+5],5,-701558691),g=a(g,h,y,m,d[s+10],9,38016083),m=a(m,g,h,y,d[s+15],14,-660478335),y=a(y,m,g,h,d[s+4],20,-405537848),h=a(h,y,m,g,d[s+9],5,568446438),g=a(g,h,y,m,d[s+14],9,-1019803690),m=a(m,g,h,y,d[s+3],14,-187363961),y=a(y,m,g,h,d[s+8],20,1163531501),h=a(h,y,m,g,d[s+13],5,-1444681467),g=a(g,h,y,m,d[s+2],9,-51403784),m=a(m,g,h,y,d[s+7],14,1735328473),h=u(h,y=a(y,m,g,h,d[s+12],20,-1926607734),m,g,d[s+5],4,-378558),g=u(g,h,y,m,d[s+8],11,-2022574463),m=u(m,g,h,y,d[s+11],16,1839030562),y=u(y,m,g,h,d[s+14],23,-35309556),h=u(h,y,m,g,d[s+1],4,-1530992060),g=u(g,h,y,m,d[s+4],11,1272893353),m=u(m,g,h,y,d[s+7],16,-155497632),y=u(y,m,g,h,d[s+10],23,-1094730640),h=u(h,y,m,g,d[s+13],4,681279174),g=u(g,h,y,m,d[s+0],11,-358537222),m=u(m,g,h,y,d[s+3],16,-722521979),y=u(y,m,g,h,d[s+6],23,76029189),h=u(h,y,m,g,d[s+9],4,-640364487),g=u(g,h,y,m,d[s+12],11,-421815835),m=u(m,g,h,y,d[s+15],16,530742520),h=c(h,y=u(y,m,g,h,d[s+2],23,-995338651),m,g,d[s+0],6,-198630844),g=c(g,h,y,m,d[s+7],10,1126891415),m=c(m,g,h,y,d[s+14],15,-1416354905),y=c(y,m,g,h,d[s+5],21,-57434055),h=c(h,y,m,g,d[s+12],6,1700485571),g=c(g,h,y,m,d[s+3],10,-1894986606),m=c(m,g,h,y,d[s+10],15,-1051523),y=c(y,m,g,h,d[s+1],21,-2054922799),h=c(h,y,m,g,d[s+8],6,1873313359),g=c(g,h,y,m,d[s+15],10,-30611744),m=c(m,g,h,y,d[s+6],15,-1560198380),y=c(y,m,g,h,d[s+13],21,1309151649),h=c(h,y,m,g,d[s+4],6,-145523070),g=c(g,h,y,m,d[s+11],10,-1120210379),m=c(m,g,h,y,d[s+2],15,718787259),y=c(y,m,g,h,d[s+9],21,-343485551),h=r(h,f),y=r(y,l),m=r(m,p),g=r(g,v);return n(h)+n(y)+n(m)+n(g)}(S()(n));return e[r]?P.a.resolve(e[r]):t(n).then((function(t){return e[r]=t,P.a.resolve(t)}))}}(f()(w.a.mark((function t(e){var n,r,o;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.host,r=null,o="https://"+R+"/"+C,t.prev=3,!n){t.next=8;break}return t.next=7,N(o+"/"+F+encodeURIComponent(z(n))+".json");case 7:r=t.sent;case 8:if((i=r)&&i.success&&404!==i.data.turboBizCode){t.next=10;break}throw new Error("页面定位配置不存在（若已发布过，则可能是缓存失效，建议重新发布一次该页面配置）");case 10:t.next=15;break;case 12:return t.prev=12,t.t0=t.catch(3),t.abrupt("return",{success:!1,message:"string"==typeof t.t0.message?t.t0.message:"getPageTargetRules failed"});case 15:return t.abrupt("return",r);case 16:case"end":return t.stop()}var i}),t,null,[[3,12]])}))));var U,G,B,H,q,K=function(t){var e=document.createElement("a");return e.href=t,e},W=function(t){var e="string"==typeof t?K(t):t;return V(e.hostname)+e.pathname},J=function(t){var e,n,r="string"==typeof t?K(t):t;return V(r.hostname)+r.pathname+((null==(e=r.hash)||null==(n=e.split("?"))?void 0:n[0])||"")},V=function(t){return t.replace(/^www\./,"")},z=function(t){var e=K(t);return V(e.hostname)},Q=D,Y=n(87),X=n.n(Y),$=p()((function(t){var e=this;this.max=void 0,this.queue=[],this.active=[],this.enqueue=function(t){return e.queue.push(o()({},t,{id:Math.random().toString(32).slice(2,8)})),e.dequeue()},this.dequeue=function(){if(!(e.active.length>=e.max||0===e.queue.length)){var t=e.queue.shift();e.active.push(t);var n=t.func,r=t.args,o=void 0===r?[]:r;return new P.a((function(t){n.apply(void 0,[function(e){t(e)}].concat(X()(o)))})).then((function(){e.taskDone(t)}))}},this.taskDone=function(t){e.active=e.active.filter((function(e){return e.id!==t.id})),e.dequeue()};var n=t.max,r=void 0===n?1:n;this.max=r})),Z="emogineAem",tt=function(t){return t.onBeforeLoad="onBeforeLoad",t.onLoaded="onLoaded",t.onLoadFailed="onLoadFailed",t.onUnLoad="onUnLoad",t.onReset="onReset",t}({});U=tt.onBeforeLoad,G=tt.onLoaded,B=tt.onLoadFailed,H=tt.onUnLoad,q=tt.onReset;var et=p()((function(){this[U]=[],this[G]=[],this[B]=[],this[H]=[],this[q]=[]})),nt=n(29),rt=n.n(nt);function ot(t,e){void 0===e&&(e=""),St.error(t,{stack:e}),function(t,e){var n=new Image,r="//aes.cn-wulanchabu.log.aliyuncs.com/logstores/"+t+"/track_ua.gif?"+_()(e).reduce((function(t,n){return t+"&"+n+"="+encodeURIComponent(e[n])}),"APIVersion=0.6.0");n.src=r}("aem_plugin_log",{errorCode:t,ua:navigator.userAgent,stack:st(e)})}var it=n(28),at=n.n(it);function ut(t,e,n){return at()(e,n,{get:function(){return function(e){"function"==typeof e&&t[n].push(e)}},set:function(e){"function"==typeof e&&t[n].push(e)}}),e}function ct(t,e,n){void 0===e&&(e="&");var r={},o=n;return"function"!=typeof o&&(o=function(t){return n?decodeURIComponent(t):t}),(t||"").split(e).forEach((function(t){var e=t.split("="),n=e.shift();n&&(r[o(n)]=o(e.join("")))})),r}var st=function(t){var e=[],n=S()(t,(function(t,n){if("object"==typeof n&&null!==n){if(-1!==e.indexOf(n))return;e.push(n)}return n}));return e=null,n},ft=function(t){return"[object Object]"!==Object.prototype.toString.call(t)?{}:_()(t).reduce((function(e,n){var r;return void 0===t[n]||"string"==typeof t[n]&&""===t[n].trim()?e:rt()(e,((r={})[n]=t[n],r))}),{})},lt=function(t){return"string"==typeof t?"true"===t.trim():"boolean"==typeof t?t:"number"==typeof t&&1===t},pt=function(t){var e,n={};return e=t,"[object Object]"!==Object.prototype.toString.call(e)||_()(e).length<1||_()(t).forEach((function(e){/^[emogine_ | plugin_emogine_]/.test(e)&&(n[e.replace(/^(emogine_)|(plugin_emogine_)/,"")]=t[e])})),n},vt=ct(window.location.search.replace(/^\?/,""),"&"),dt=wt(),ht=document.querySelector('[data-touchhook="ihelper-sdk"]'),yt=!!ht&&/^http(s)?:\/\/dev\./.test(ht.src),mt="true"===vt.sdkLoaderDaily,gt=window.location.search.indexOf("TURBO_PERF=true")>-1,xt=yt||mt;function wt(){var t=window.location,e=t.search;t.hostname,t.port;return"true"===ct(e.replace(/^\?/,""),"&")._emogineBased_?"dev":"prod"}var bt=function(){},_t=window.console;_t||(_t={log:bt,info:bt,warn:bt,error:bt});var Et=wt(),St={log:function(){var t;if("dev"===Et){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=_t).info.apply(t,["[iLoader]"].concat(n))}},info:function(){var t;if("dev"===Et){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=_t).info.apply(t,["[iLoader]"].concat(n))}},warn:function(){var t;if("dev"===Et){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=_t).warn.apply(t,["[iLoader]"].concat(n))}},error:function(){var t;if("dev"===Et){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=_t).error.apply(t,["[iLoader]"].concat(n))}},time:function(t){gt&&"dev"===Et&&_t.time("[iLoader] "+t)},timeEnd:function(t){gt&&"dev"===Et&&_t.timeEnd("[iLoader] "+t)}};function Ot(t){void 0===t&&(t=[]);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.map((function(t){if("function"==typeof t){if("prod"!==dt)return t.apply(void 0,n);try{return t.apply(void 0,n)}catch(t){St.error("plugin initialize error! Check error message bellow ↓"),St.error(t)}}}))}var jt,Lt=0,Tt={itv:50,timeout:15e3},Mt=function(){function t(t){var e=this;this.config=void 0,this.loadMap=void 0,this.load=function(t,n){var r=n||{},i=r.forceLoad,a=void 0!==i&&i,u=r.from,c=void 0===u?"public":u,s=(r.pid,t.name),f=t.src,l=t.srcDev,p=t.exportName,v=t.itv,d=void 0===v?e.config.itv:v,h=t.timeout,y=void 0===h?e.config.timeout:h,m=xt?l:f;e.loadMap[s]=o()({meta:t,timer:null,status:"not_start",instance:null},e.loadMap[s]);var g=e.loadMap[s],x=g.status,w=g.instance,b=new P.a((function(t,n){if(clearInterval(e.loadMap[s].timer),!w&&window[p])return e.loadMap[s].status="loaded",e.loadMap[s].instance=window[p],t(e.loadMap[s]);if(!a&&"loaded"===x&&w)return t(e.loadMap[s]);e.loadMap[s].status="loading",e.loadMap[s].timer=null;var r=y/d,i=0,u={error:!1},f=document.createElement("script");f.src=m,f.setAttribute("charset","utf-8"),"string"==typeof c&&f.setAttribute("data-from",c),f.setAttribute("crossorigin","anonymous"),f.onerror=function(t){u.error=!0,u.stack=t},f.onload=function(){e.loadMap[s].timer=setInterval((function(){return u.error?(clearInterval(e.loadMap[s].timer),e.loadMap[s].status="failed",ot("fileLoader.networkError",{target:e.loadMap[s],network:u}),n(o()({},e.loadMap[s],{errorCode:"fileLoader.networkError",network:u}))):i>r?(clearInterval(e.loadMap[s].timer),e.loadMap[s].status="failed",ot("fileLoader.loadTimeout",{target:e.loadMap[s]}),n(o()({},e.loadMap[s],{errorCode:"fileLoader.loadTimeout"}))):(i+=1,window[p]?(e.loadMap[s].status="loaded",clearInterval(e.loadMap[s].timer),e.loadMap[s].instance=window[p],t(e.loadMap[s])):void 0)}),d)},document.body.appendChild(f)}));return e.loadMap[s].loaderPromise=b,b},this.getInfo=function(t){var n=e.loadMap[t]||{};return["meta","status","instance"].reduce((function(t,e){var r;return void 0!==n[e]?rt()(t,((r={})[e]=n[e],r)):t}),{})},this.config=o()({},Tt,t||{}),this.loadMap={},this.id=Lt,Lt++}return p()(t,[{key:"allLoaderPromise",get:function(){var t=this;return _()(this.loadMap).map((function(e){return t.loadMap[e].loaderPromise}))}}]),t}(),Pt=Z,kt=((jt={})[Z]=function(t,e){e[tt.onLoaded]=function(t){var e=t.loaderInfo,n=t.envInfo;e.meta.name===Pt&&e.instance.start(o()({},n,{meta:e.meta}))},e[tt.onReset]=function(t){var e=t.loaderInfo,n=t.envInfo;e.meta.name===Pt&&e.instance.reset(o()({},n,{meta:e.meta}))}},jt),At=function(t){return _()(t).map((function(e){return o()({name:e,timeout:15e3},t[e],{loader:kt[e]})}))};function It(t){var e=function(){if("undefined"==typeof Reflect||!a.a)return!1;if(a.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a()(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var o=g()(this).constructor;n=a()(r,arguments,o)}else n=r.apply(this,arguments);return y()(this,n)}}var Rt={meta:[],mode:"pc"},Ct=function(t){return{hostname:t.hostname,pathname:t.pathname,search:t.search,hash:t.hash}};var Ft=function(t){d()(n,t);var e=It(n);function n(t,n){var r;(r=e.call(this)).ENABLE_AUTO_RESET=!0,r.AUTO_RESET_WITH_HASH=!1,r.config=void 0,r.meta=void 0,r.fileLoader=void 0,r.currentEnv={},r.lastCurrentEnv={},r.asyncQueue=void 0,r.aesConfig=void 0,r.AES=void 0,r.hasLoaded=!1,r.resetTryCount=0,r.resetTryTimer=null,r.popstateResetTimer=null,r.lastLocation=Ct(location),r.initUrlChangeEvent=function(){window.addEventListener("popstate",(function(){r.handlePageChange({type:"popstate"})}));var t=history.pushState;history.pushState=function(){try{r.handlePageChange({type:"pushState"})}catch(t){}for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.apply(history,n)};var e=history.replaceState;history.replaceState=function(){try{r.handlePageChange({type:"replaceState"})}catch(t){}for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.apply(history,n)}},r.handlePageChange=function(t){var e=t.type;setTimeout((function(){St.log("page url change detected. type: "+e);var t,n,o,i,a,u,c,s,f,l,p,v,d,h=Ct(location);if(t=h,n=r.lastLocation,o={withHash:r.AUTO_RESET_WITH_HASH},s=(o||{}).withHash,f=void 0!==s&&s,l=t.hostname===n.hostname,p=t.pathname===n.pathname,i=ct(t.search),a=ct(n.search),u=_()(i).sort().join()===_()(a).sort().join(),c=!!u&&_()(i).every((function(t){return i[t]===a[t]})),v=u&&c,d=!f||t.hash===n.hash,l&&p&&v&&d)return r.lastLocation=h,void St.log("url hasn't changed, no reset");r.lastLocation=h,St.log("url changed, will auto reset SDK"),clearTimeout(r.popstateResetTimer),r.popstateResetTimer=setTimeout((function(){r.reset(void 0,{autoReset:!0})}),1500)}),200)},r.updateCurrentEnv=f()(w.a.mark((function t(e){var n,i,a,u,s,f;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e||pt(r.aesConfig),r.lastCurrentEnv=JSON.parse(S()(r.currentEnv)),r.currentEnv={},r.currentEnv=o()({},r.currentEnv,n||{}),t.next=6,Q({host:window.location.protocol+"//"+window.location.host});case 6:return i=t.sent,a=i.data,(void 0===a?[]:a).map((function(t){var e=t.rule,n=t.matchType,o=t.pageId,i=(t.aemPid,document.createElement("a")),a=!!r.aesConfig.pid;if(i.href=e,e)switch(n){case"simple":if((null==i?void 0:i.pathname.indexOf("*"))>-1)if(new RegExp(i.href.replace("*","[^/?#]+"),"gi").test(location.href)&&a){u=o;break}W(i)===W(location)&&(u=o);break;case"simpleWithHash":J(i)===J(location)&&(u=o);break;case"simpleWithParam":var s=!1;if((null==i?void 0:i.pathname.indexOf("*"))>-1)s=new RegExp(i.pathname.replace("*","[^/?#]+"),"gi").test(location.pathname);var f=ct(i.search.replace(/^\?/,"")),l=ct(location.search.replace(/^\?/,""),"&",!0),p=j()(f).every((function(t,e){var n,r=c()(t,2),o=r[0],i=r[1];return null==(n=l[o])?void 0:n.includes(i)}));(W(i)===W(location)||s)&&p&&(u=o);break;case"exact":i.href===location.href&&a&&(u=o);break;case"regular":var v=new RegExp(i.href,"gi"),d=new RegExp(e,"gi");if((v.test(location.href)||d.test(location.href))&&a){u=o;break}}})),u&&(r.currentEnv.pageId=T()(u)),Number(r.currentEnv.pageId)||(r.currentEnv.pageId=void 0),f=(s=function(t){return"string"!=typeof t&&"number"!=typeof t?"":t.toString()})(r.lastCurrentEnv.pageId)!==s(r.currentEnv.pageId),t.abrupt("return",f);case 15:case"end":return t.stop()}}),t)}))),r.updateMeta=f()(w.a.mark((function t(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={emogineAem:{src:"//g.alicdn.com/aes/emogine-core/0.0.10/index.js",srcDev:"//dev.g.alicdn.com/aes/emogine-core/0.0.10/index.js",exportName:"__EMOGINE"}},r.meta=At(e),t.abrupt("return",!0);case 3:case"end":return t.stop()}}),t)}))),r.load=f()(w.a.mark((function t(e,n){return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n="public"),t.abrupt("return",r.asyncQueue.enqueue({func:function(){var t=f()(w.a.mark((function t(i){var a;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=function(){var t=f()(w.a.mark((function t(){var a,u,c,s,f;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r.hasLoaded=!1,r.hasLoaded){t.next=8;break}return t.next=5,r.updateMeta();case 5:if(t.sent){t.next=8;break}return t.abrupt("return",i());case 8:return t.next=10,r.updateCurrentEnv(e);case 10:return void 0!==(null==(a=r.currentEnv)?void 0:a.enable_auto_reset)&&(r.ENABLE_AUTO_RESET=lt(null==(c=r.currentEnv)?void 0:c.enable_auto_reset)),void 0!==(null==(u=r.currentEnv)?void 0:u.auto_reset_with_hash)&&(r.AUTO_RESET_WITH_HASH=lt(null==(s=r.currentEnv)?void 0:s.auto_reset_with_hash)),r.ENABLE_AUTO_RESET&&r.initUrlChangeEvent(),f=r.meta,r.initLoaders(f.map((function(t){return t.loader}))),f.forEach((function(t){if(t.loader&&"function"==typeof t.loader){var e=o()({},r.currentEnv,ft(r.currentEnv[t.name]),{aesConfig:r.aesConfig,AES:r.AES});Ot(r[tt.onBeforeLoad],{meta:t,envInfo:e}),r.fileLoader.load(t,{from:n,pid:r.aesConfig.pid}).then((function(t){"loaded"===t.status&&Ot(r[tt.onLoaded],{loaderInfo:t,envInfo:e})})).catch((function(t){Ot(r[tt.onLoadFailed],{loaderInfo:t,envInfo:e})}))}})),t.abrupt("return",P.a.all(r.fileLoader.allLoaderPromise).finally((function(){r.hasLoaded=!0})));case 19:t.prev=19,t.t0=t.catch(0),ot("core.load.failed",t.t0);case 22:case"end":return t.stop()}}),t,null,[[0,19]])})));return function(){return t.apply(this,arguments)}}(),t.next=3,a();case 3:i();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}));case 2:case"end":return t.stop()}}),t)}))),r.reset=f()(w.a.mark((function t(e,n){return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.asyncQueue.enqueue({func:function(){var t=f()(w.a.mark((function t(i){var a;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=function(){var t=f()(w.a.mark((function t(){var i,a,u,c,s;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,St.log("try to reset SDK",{env:e,opt:n}),a=(i=n||{}).autoReset,u=void 0!==a&&a,c=i.forceReset,s=void 0!==c&&c,clearTimeout(r.popstateResetTimer),clearTimeout(r.resetTryTimer),r.hasLoaded){t.next=9;break}return St.log("reset SDK failed, SDKS not loaded yet, will try again later..."),r.resetTryTimer=setTimeout((function(){r.resetTryCount+=1,r.resetTryCount<50?r.reset(e,n):St.log("reset SDK failed, SDK load timeout")}),100),t.abrupt("return");case 9:return r.resetTryCount=0,t.next=12,r.updateCurrentEnv(e);case 12:if(t.sent||s){t.next=16;break}return St.log("no need to reset SDK, env not changed"),t.abrupt("return");case 16:St.log("resetting SDK...","env",e,"currentEnv:",r.currentEnv,"opt:",n),P.a.all(r.fileLoader.allLoaderPromise).finally((function(){r.meta.filter((function(t){return!u||!t.disableAutoReset})).forEach((function(t){var e=r.fileLoader.getInfo(t.name);if("loaded"===e.status){var n=o()({},r.currentEnv,ft(r.currentEnv[t.name]),{aesConfig:r.aesConfig,AES:r.AES});Ot(r[tt.onReset],{loaderInfo:e,envInfo:n})}}))})),t.next=23;break;case 20:t.prev=20,t.t0=t.catch(0),ot("core.reset.jsError",t.t0);case 23:case"end":return t.stop()}}),t,null,[[0,20]])})));return function(){return t.apply(this,arguments)}}(),t.next=3,a();case 3:i();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}));case 1:case"end":return t.stop()}}),t)}))),r.getCookie=function(t){try{return function(t){var e=("; "+document.cookie).split("; "+t+"=");if(2==e.length)return e.pop().split(";").shift()}(t)}catch(t){}};var i=Rt;return r.config=i,r.aesConfig=n,r.AES=t,r.fileLoader=new Mt,r.asyncQueue=new $({max:1}),r}return n.prototype.initLoaders=function(t){var e=this;t.forEach((function(t){var n,r;t&&"function"==typeof t&&t(e,(ut(n=e,r={},tt.onBeforeLoad),ut(n,r,tt.onLoaded),ut(n,r,tt.onLoadFailed),ut(n,r,tt.onReset),ut(n,r,tt.onUnLoad),r))}))},p()(n)}(et);e.default=function(t,e){void 0===e&&(e={}),new Ft(t,o()({},t.getConfig(),e)).load()}}]).default}));!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-survey/index",[],n):"object"==typeof exports?exports.AESPluginSurvey=n():e.AESPluginSurvey=n()}(window,(function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=5)}([function(e,n,t){var r=t(12);e.exports=function(e,n,t){return(n=r(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n,t){var r=t(7),o=t(8),i=t(9),u=t(11);e.exports=function(e,n){return r(e)||o(e,n)||i(e,n)||u()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n,t){var r=t(6);e.exports=function(e,n){if(null==e)return{};var t,o,i=r(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)t=u[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=JSON.parse('{"name":"@ali/aes-tracker-plugin-survey","version":"3.0.18","unpkg":"build/index.js","main":"lib/index.js","module":"es/main.js","description":"AES 满意度统计插件","scripts":{"build":"rimraf ./build ./lib ./es && npm run umd && npm run lib && npm run es","dev":"babel --watch src --out-dir es --config-file ./babel.config.es.js","dev:web":"webpack-dev-server --content-base public --config webpack.config.base.js","umd":"cross-env NODE_ENV=production webpack --config webpack.config.base.js","lib":"webpack --config webpack.config.common.js","es":"babel src --out-dir es --config-file ./babel.config.es.js","prepack":"npm run build"},"keywords":["aes","aes-tracker-plugin-survey"],"devDependencies":{"@babel/cli":"^7.11.6","@babel/core":"^7.11.1","@babel/plugin-transform-runtime":"^7.11.5","@babel/preset-env":"^7.11.0","@modular-css/webpack":"^25.8.0","babel-loader":"^8.1.0","cross-env":"^5.2.0","html-webpack-plugin":"^4.3.0","rimraf":"^3.0.2","serve":"^11.0.0","webpack":"^4.30.0","webpack-bundle-analyzer":"^3.9.0","webpack-cli":"^3.3.0","webpack-dev-server":"^3.3.1"},"publishConfig":{"registry":"https://registry.npm.alibaba-inc.com"},"repository":{"type":"git","url":"http://gitlab.alibaba-inc.com/aes/tracker-plugin-survey.git","directory":"./"},"dependencies":{"@ali/aes-tracker-plugin-survey-core":"3.0.6","@babel/runtime":"^7.11.2"}}')},function(e,n,t){e.exports=t(14)},function(e,n){e.exports=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n){e.exports=function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,a=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(a.push(r.value),a.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n,t){var r=t(10);e.exports=function(e,n){if(e){if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n,t){var r=t(3).default,o=t(13);e.exports=function(e){var n=o(e,"string");return"symbol"===r(n)?n:String(n)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n,t){var r=t(3).default;e.exports=function(e,n){if("object"!==r(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,n,t){"use strict";t.r(n);var r=t(2),o=t.n(r),i=t(1),u=t.n(i),a=t(0),c=t.n(a);var s=function(){return(s=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var f;!function(e){e[e.MOUNT=0]="MOUNT",e[e.READY=1]="READY",e[e.EVENT=2]="EVENT",e[e.ON_EVENT=3]="ON_EVENT",e[e.UPDATE_SESSION=4]="UPDATE_SESSION",e[e.SET_STORAGE=5]="SET_STORAGE",e[e.GET_STORAGE=6]="GET_STORAGE",e[e.SET_STORAGE_RESPONSE=7]="SET_STORAGE_RESPONSE",e[e.GET_STORAGE_RESPONSE=8]="GET_STORAGE_RESPONSE"}(f||(f={}));var l=function(){function e(e,n,t){var r=this;this.onmessage=function(){},this._self=e,this._target=n,this._ready=t||!1,this._readyCallback=[],this._messageListener=function(e){try{var n=JSON.parse(e.data);n.__xdomain_message&&(r._ready||(r._ready=!0,r._readyCallback.forEach((function(e){e()})),r._readyCallback=[]),delete n.__xdomain_message,r.onmessage(n))}catch(e){}},this._self.addEventListener("message",this._messageListener)}return e.prototype.post=function(e,n){var t=this,r=function(){var n;try{t._target.postMessage(JSON.stringify(s(s({},e),((n={}).__xdomain_message=!0,n))),"*")}catch(e){}};this._ready||n?r():this._readyCallback.push(r)},e.prototype.destroy=function(){this._self.removeEventListener("message",this._messageListener)},e}(),d=function(){try{var e=window.localStorage;if(!e)return!1;var n="__storage_test__";e.setItem(n,n);var t=n===e.getItem(n);return e.removeItem(n),t}catch(e){return!1}}();d||console.warn("XDomainStorage is not working due to absence of LocalStorage.");var p=function(){return Promise.reject("XDomainStorage is not working due to absence of LocalStorage.")};window._XDomainStorageFrames_=window._XDomainStorageFrames_||{};var v={emulateSession:!0,pageTransitionTimeout:2e3,sessionTimeout:864e5},g=""+Math.random(),m=0,y={};function h(){return""+m+++g}function S(e){return new Promise((function(n){y[e]=n}))}var b=function(){function e(e,n){var t=this;if(void 0===e&&(e="https://g.alicdn.com/platform/xdomain-storage/0.2.4/frame.html"),void 0===n&&(n={}),this._navigationListener=null,this._listeners=[],this._receivedKey={},d){this._options=s(s({},v),n);var r={options:this._options,url:location.href.replace(/#.*$/,""),navigationTime:window.performance&&performance.timing.navigationStart},o=function(e){var n=document.createElement("a");return n.href=e,n.cloneNode(!1).href}(e).replace(/(#.*)?$/,"#"+encodeURIComponent(JSON.stringify(r)));this._frameURL=o;var i=window._XDomainStorageFrames_[o];i?i.setAttribute("data-count",""+(+(i.getAttribute("data-count")||0)+1)):((i=document.createElement("iframe")).src=o,i.style.display="none",i.setAttribute("data-count","1"),i.setAttribute("data-xreplay-ignored",""),function(e){if(document.body)e();else{setTimeout((function e(){document.body||setTimeout(e,100)}),0)}}((function(){document.body.appendChild(i)}))),this._frame=i,window._XDomainStorageFrames_[o]=i;var u=new l(window,i.contentWindow);u.onmessage=this._onMessage.bind(this),this._messager=u,this._options.emulateSession&&(this._navigationListener=function(){var e;null===(e=t._messager)||void 0===e||e.post({type:f.UPDATE_SESSION,url:location.href.replace(/#.*$/,"")})},["mousedown","touchstart","beforeunload"].forEach((function(e){window.addEventListener(e,t._navigationListener,{capture:!0,passive:!0})}))),u.post({type:f.MOUNT},!0)}}return e.prototype._onMessage=function(e){e.type==f.GET_STORAGE_RESPONSE||e.type==f.SET_STORAGE_RESPONSE?y[e.id]&&(y[e.id](e),delete y[e.id]):e.type==f.ON_EVENT&&(this._receivedKey[e.key]||(this._receivedKey[e.key]=!0,this._listeners.forEach((function(n){n.type==e.event&&n.callback(e.data)}))))},e.prototype.setItem=function(e,n,t){var r=this;return d?new Promise((function(o,i){var u;try{var a=h();null===(u=r._messager)||void 0===u||u.post({type:f.SET_STORAGE,id:a,key:e,session:!!t,value:JSON.stringify(n)}),S(a).then((function(e){e.type==f.SET_STORAGE_RESPONSE&&o()}))}catch(e){i(e)}})):p()},e.prototype.getItem=function(e){var n=this;return d?new Promise((function(t,r){var o,i=h();null===(o=n._messager)||void 0===o||o.post({type:f.GET_STORAGE,id:i,key:e}),S(i).then((function(e){if(e.type==f.GET_STORAGE_RESPONSE)try{t(JSON.parse(e.value))}catch(e){r(e)}}))})):p()},e.prototype.removeItem=function(e,n){return this.setItem(e,void 0,n)},e.prototype.addEventListener=function(e,n){this._listeners.push({type:e,callback:n})},e.prototype.removeEventListener=function(e,n){this._listeners=this._listeners.filter((function(t){return t.type!==e||n&&t.callback!==n}))},e.prototype.dispatchEvent=function(e,n,t){var r,o=Math.random();t&&(this._receivedKey[o]=!0),null===(r=this._messager)||void 0===r||r.post({type:f.EVENT,event:e,data:n,key:o})},e.prototype.destroy=function(){var e,n=this;if(this._frame&&this._frameURL){var t=+(this._frame.getAttribute("data-count")||0);t>1?this._frame.setAttribute("data-count",""+(t-1)):(this._frame.parentElement.removeChild(this._frame),delete window._XDomainStorageFrames_[this._frameURL]),this._navigationListener&&["mousedown","touchstart","beforeunload"].forEach((function(e){window.removeEventListener(e,n._navigationListener,{capture:!0})}))}null===(e=this._messager)||void 0===e||e.destroy()},e}(),w=b,_="1",E="2",O="4",x="0",T="1",P="2",C=0,j="wallHanging",N="includes",D="equal",I="notNull",A=new Promise((function(e,n){var t=window.indexedDB.open("aes-survey",1);t.onerror=function(){return n(t.error)},t.onsuccess=function(){return e(t.result)},t.onupgradeneeded=function(){return t.result.createObjectStore("aes-survey-idb")}})),M=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];return new Promise((function(t,o){A.then((function(i){var u=i.transaction("aes-survey-idb",e),a=u.objectStore("aes-survey-idb"),c=a[n].apply(a,r);u.oncomplete=function(){return t(c)},u.onabort=u.onerror=function(){return o(u.error)}}))}))},k=function(e){return new Promise((function(n,t){try{M("readwrite","get",e).then((function(e){var t=e.result;n(t)}))}catch(e){t()}}))},R=function(e,n){return void 0===n?M("readwrite","delete",e):M("readwrite","put",n,e)};function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var U=new w,G={UnOpenSurvey:"plugin-unopen-survey-ids",SurveyShowTimes:"plugin-survey-show-times",SurveyShowedInfo:"plugin-survey-showed-info",SurveyBehaviorInfo:"plugin-survey-behavior-info",SurveyConfigVersions:"plugin-survey-config-versions"},q=!1,J=function(e){return Promise.race([new Promise((function(n,t){U.getItem(e).then((function(e){return n(e||[])})).catch((function(e){n(Array.isArray(e)?e:[])}))})),new Promise((function(e){return setTimeout((function(){e([])}),1e3)}))])},V=function(e){try{return new Promise(q?function(n,t){k("aem-".concat(e)).then((function(e){var t;null!==(t=JSON.parse(e))&&void 0!==t&&t.length&&n(JSON.parse(e)),n([])})).catch((function(e){n([])}))}:function(n,t){J(e).then((function(t){null!=t&&t.length?n(t):k("aem-".concat(e)).then((function(e){var t;null!==(t=JSON.parse(e))&&void 0!==t&&t.length&&n(JSON.parse(e)),n([])})).catch((function(e){n([])}))})).catch((function(e){n([])}))})}catch(e){return Promise.resolve([])}},F=function(e,n,t){return(n||[]).filter((function(n){var r=(e||[]).some((function(e){return n.id===e.id}));return null!=n&&n.pid||!r||(n.pid=t),!((null==n?void 0:n.pid)===t&&!r)}))},B=function(e,n){try{var t=function(t){J(G[t]).then((function(r){var o=F(e,r,n);o&&U.setItem(G[t],o).then((function(e){})).catch((function(e){q=!0}))})),k("aem-".concat(G[t])).then((function(r){var o=F(e,JSON.parse(r||"[]"),n);o&&R("aem-".concat(G[t]),JSON.stringify(o))}))};for(var r in G)t(r)}catch(e){}},X=function(e,n){try{R("aem-".concat(e),JSON.stringify(n)),q||U.setItem(e,n).then((function(e){})).catch((function(e){q=!0}))}catch(e){console.error("[AES] plugin-survey","fail to write buffer")}},z=function(e){return new RegExp(e.replace(/\(\(\?\!/g,"零宽断言占位1").replace(/\)\.\)\*/g,"零宽断言占位2").replace(/([\/\?\.])/g,"\\$1").replace(/\*/g,".*").replace(/零宽断言占位1/g,"((?!").replace(/零宽断言占位2/g,").)*")).test(location.href)||0==location.href.indexOf(e)},W=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(n.length){var t=(n.find((function(e){return"include"==e.type}))||{}).children||[],r=(n.find((function(e){return"except"==e.type}))||{}).children||[],o=t.some((function(e){return z(e.value||"")})),i=r.some((function(e){return z(e.value||"")}));return t.length?r.length?o&&!i:o:!i}return z(e)},$=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.behaviorType,r=void 0===t?"0":t,o=n.behaviorData,i=void 0===o?[]:o;return e.triggerWay===P?"1"==r&&!i.filter((function(e){return(e||[]).filter((function(e){return"special"==e.range&&!W(e.rangeDetail)})).length})).length:e.triggerWay===x||!(e.triggerWay!==T||!e.triggerContent||!W(e.triggerContent,e.triggerContentList||[]))},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=e||{},o=r.frequencyList,i=!0;return(o||[]).filter((function(e){return e.ids.includes(n)})).forEach((function(e){var r=e.ids,o=e.days,u=e.showNum,a=t.filter((function(e){return r.find((function(n){return e.id==n}))})).filter((function(e){return e.cycleDate>Date.now()-864e5*o}));a.length<u||a.length==u&&a.find((function(e){return e.id==n}))||(i=!1)})),!i},Y=function(){return V(G.SurveyShowedInfo).then((function(e){return e||[]}))},H=function(e,n){Y().then((function(t){(t=t.filter((function(n){return n.id!=e}))).push({id:e,cycleDate:Date.now(),pid:n}),X(G.SurveyShowedInfo,t)}))},Q=function(e){return V(G.UnOpenSurvey).then((function(n){return(n||[]).filter((function(n){return!!e||!("object"!=L(n)||!Number(n.cycleDate))&&(!(Number(n.cycleDate)>-1e4)||Date.now()<Number(n.cycleDate))})).map((function(n){return"object"!=L(n)||e?n:n.id}))}))},Z=function(e,n,t){var r=Date.now();"-1"==n?r=-99999:r+=864e5*Number(n),Q(!0).then((function(n){(n=(n||[]).filter((function(n){return"object"===L(n)?n.id!=e:n!=e}))).push({id:e,cycleDate:r,pid:t}),X(G.UnOpenSurvey,n)}))},ee=function(e){var n,t,r=e.id,o=e.showTimes,i=e.isPreview,u=e.showCycle,a=e.pid;o=Number(o)||0,V(G.SurveyShowTimes).then((function(e){var c=(e=e||[]).find((function(e){return e.id==r}));return c?(n=c.showTimes,t=c.originTimes):(n=-999,t=""),-999!=n&&t==o?(--n<1&&(!i&&Z(r,u,a),n=-999,o=""),void ne({id:r,showTimes:n,originTimes:o,pid:a})):o<=1?(!i&&Z(r,u,a),void ne({id:r,showTimes:-999,originTimes:"",pid:a})):void ne({id:r,showTimes:o-1,originTimes:o,pid:a})}))};function ne(e){V(G.SurveyShowTimes).then((function(n){if(n){var t=n.find((function(n){return n.id==e.id}));t?(t.showTimes=e.showTimes,t.originTimes=e.originTimes):n.push(e)}else n=[e];X(G.SurveyShowTimes,n)}))}var te,re=function(e,n,t){var r=n.showSetting,o=n.displayInterval,i=n.displayIntervalUnit,u=n.displayLimitPeriod,a=n.displayLimitPeriodUnit,c=n.displayLimitTimes,s=n.visibleTiming,f=void 0===s?"2":s,l=n.showTimes,d=void 0===l?"1":l,p=n.showCycle,v=void 0===p?"-99":p;return void 0===r?"2"==f&&ee({id:e,showTimes:d,showCycle:"-1",pid:t}):"1"!==r?"0"===r?ee({id:e,showTimes:d,showCycle:v}):void("2"===r&&V(G.SurveyShowTimes).then((function(n){var r=c-1,s=null==n?void 0:n.find((function(n){return n.id===e}));if(s){var f=s.showTimes;s.originTimes===c&&(r=f-1)}var l=0;r<1?(l="number"==typeof u?u:Number(u)*a,r=c,Z(e,"Infinity"===u?"-1":l/864e5,t)):Z(e,(l=o*i)/864e5,t),ne({id:e,showTimes:r,originTimes:c,pid:t})}))):void 0},oe=function(e,n,t){var r=n.visibleTiming,o=void 0===r?"2":r,i=n.submitVisibleCycle,u=void 0===i?"-99":i;"-99"==u?"1"!=o&&"2"!=o||Z(e,"-1",t):"1"!=o&&"2"!=o||Z(e,u,t)},ie=function(){return new Promise((function(e,n){try{localStorage.setItem("aes-plugin-survey-test","true"),localStorage.removeItem("aes-plugin-survey-test"),R("aes-plugin-survey-test",!0),t="aes-plugin-survey-test",new Promise((function(e,n){try{M("readwrite","delete",t).then((function(n){var t=n.result;e(t)}))}catch(e){n()}})),"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then((function(n){n.quota<12e8&&e(!0),e(!1)})).catch((function(n){e(!1)})),e(!1)}catch(n){e(!0)}var t}))},ue=function(e,n){return V(G.SurveyBehaviorInfo).then((function(t){return e.forEach((function(e){var r=e.action,o=e.range,i=e.rangeDetail,u=e.num,a=e.operator,s=e.surveyId,f=(t||[]).find((function(e){return e.surveyId==s}));if(f){var l=!1;if(i==f.rangeDetail){switch(("timecount"==r||"daycount"==r&&f["".concat(r,"_").concat(o,"_date")]!=ce(Date.now()))&&(f["num_".concat(r,"_").concat(o)]=(Number(f["num_".concat(r,"_").concat(o)])||0)+1),a){case">=":l=u<=f["num_".concat(r,"_").concat(o)]}f.canShow=l}else{switch(a){case">=":l=u<=1}f["num_".concat(r,"_").concat(o)]=1,f.canShow=l}f["".concat(r,"_").concat(o,"_date")]=ce(Date.now())}else{var d,p=!1;switch(a){case">=":p=u<=1}t.push((d={},c()(d,"num_".concat(r,"_").concat(o),1),c()(d,"rangeDetail",i),c()(d,"num",u),c()(d,"surveyId",s),c()(d,"canShow",p),c()(d,"".concat(r,"_").concat(o,"_date"),ce(Date.now())),c()(d,"pid",n),d))}})),t})).then((function(e){return X(G.SurveyBehaviorInfo,e)}))},ae=function(){return V(G.SurveyBehaviorInfo).then((function(e){return(e||[]).filter((function(e){return!e.canShow}))}))},ce=function(e){var n=new Date(e);return"".concat(n.getFullYear(),"-").concat(n.getMonth()+1,"-").concat(n.getDate())};function se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){c()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function le(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=function(n){e.log("qnr",n)},r=[],o={},i={},a=function(t){var i=t.id,a=t.autoTrigger,c=void 0!==a&&a;return new Promise((function(t,a){var s=e.getConfig()||{},f=s.plugin_survey&&s.plugin_survey.pid||s.pid;f||a(new Error("pid not found"));var l=s.plugin_survey&&s.plugin_survey.pidChanged;Promise.all([new Promise((function(e,t){if(r&&r.length&&!l)e(r);else{var i=null==n?void 0:n.urlPrefix,u=i?"".concat(i,"api/open/").concat(f,"/qnrForm?pageSize=1000"):"https://xux-web-config.oss-accelerate.aliyuncs.com/aes-config/".concat(f,"/qnrForm.json");fetch(u).then((function(e){return e.json()})).then((function(e){if(!e.success)return console.error("[AES] plugin-survey","config file not found"),[];var n=e.data,t=void 0===n?{}:n,i=e.content,u=void 0===i?{}:i;return r=t.rows||u.rows||[],o=(e||{}).settings,r})).then((function(n){e(n)})).catch((function(n){e([])}))}})),new Promise((function(e,n){e(i&&!c?[]:Q())})),new Promise((function(e,n){return e(Y())})),ie(),ae()]).then((function(e){var n=u()(e,5),r=n[0],a=n[1],s=n[2],l=n[3],d=n[4],p=null,v=0;B(r,f),r.some((function(e,n){if(p)return!1;if(e.status==C)return!1;if(i&&i!=e.id)return!1;if(i&&i==e.id)return(l||!c||a.find((function(n){return n==e.id}))||K(o,e.id,s))&&c||(p=fe(fe({},e.formSchema),{},{id:e.id,hide:!1})),!0;if(l)return!1;var t=e.formSchema&&e.formSchema.triggerSetting||{},r=e.formSchema&&e.formSchema.schema||{},u=t.seconds||{},f=t.triggerBehavior,g=void 0===f?{}:f,m=t.triggerWay;return("1"!=g.type||m!=P||!d.find((function(n){return n.surveyId==e.id})))&&(!!$(t,{behaviorType:g.type,behaviorData:g.data})&&(!a.find((function(n){return n==e.id}))&&(t.triggerMoment===_||t.triggerMoment===O||t.triggerMoment===E&&(r.showType||r.schemaType==j)?(p=fe(fe({},e.formSchema),{},{id:e.id,hide:!1}),t.triggerMoment===O?v=1e3*Number(u)||0:t.triggerMoment!==E||!r.showType&&r.schemaType!=j||(p.hide=!0),!K(o,e.id,s)||(p=null,!1)):(t.triggerMoment,!1))))})),setTimeout((function(){t(p)}),v)}))}))},c=function(){var n=e.getConfig()||{},t=n.plugin_survey&&n.plugin_survey.pid||n.pid,o=n.plugin_survey&&n.plugin_survey.pidChanged;return new Promise((function(e,n){if(r&&r.length&&!o)return B(r,t),void e(r);a({}).then((function(n){e(r)}))}))},s=function(n){var t=n.id;if(!t)return Promise.resolve(null);var r=e.getConfig()||{},o=r.plugin_survey&&r.plugin_survey.pid||r.pid;if(o){var i="https://xux-web-config.cn-hangzhou.oss.aliyuncs.com/aes-config/".concat(o,"/qnrForm/").concat(t,"_draft.json");return fetch(i).then((function(e){return e.json()})).then((function(e){if(!e.success)return console.error("[AES] plugin-survey","draft config file not found"),[];var n=e.data,t=void 0===n?{}:n,r=e.content,o=void 0===r?{}:r;return t.rows||o.rows||[]})).then((function(e){var n=u()(e,1)[0],t=void 0===n?null:n;return t&&t.draftSchema?fe(fe({id:t.id},t.draftSchema),{},{hide:!1}):null})).catch((function(e){return null}))}console.error("[AES] plugin-survey","config pid not found")},f=function(n){var t=n.id,o=n.type,i=void 0===o?"nextMonth":o,u=n.nextMonthShow,a=void 0!==u&&u,c=e.getConfig()||{},s=c.plugin_survey&&c.plugin_survey.pid||c.pid,f=r.find((function(e){return e.id==t}));if(f){var l=(f.formSchema||[]).triggerSetting,d=void 0===l?{}:l;"nextMonth"===i||a?Z(t,"30",s):"open"===i?(H(t,s),re(t,d,s)):"submit"===i&&oe(t,d,s)}},l=function(e){var n=e.id,r=e.content,o=void 0===r?[]:r,u=e.config,a=void 0===u?{}:u,c=e.type,s=void 0===c?"expose":c,f=e.currentVersion,l=void 0===f?null:f;if(!s||!s.trim())return console.error("[AES] plugin-survey","sendLog type can not be empty"),!1;i[n]&&"expose"!==s||(i[n]={time_stamps:Number((1e3*Math.random()+100).toFixed(0)+Date.now()).toString(16),first_answer:!0});var p={p1:"form_view",p2:"expose",p3:n,p4:i[n].time_stamps};if(a&&(p=Object.assign(p,a)),"expose"===s)t(fe(fe({},p),{},{p10:l}));else if("close"===s)p.p2="close",t(p);else if("start_answer"===s&&i[n]&&i[n].first_answer)p.p2="start_answer",t(p),i[n].first_answer=!1;else if("submit"===s){var v=d(o)||[];o.filter((function(e){return e&&"title"!==e.name&&v.includes(e.id)})).forEach((function(e,n){p.p1="tags"==e.name?"tag":"suggestion"==e.name?"feedback":e.name,"tags"==e.name?(e.score||[]).filter((function(e){return!!e})).forEach((function(n){var r=n.value;t(fe(fe({},p),{},{p2:r,p5:e.id}))})):null!=e.score&&null!=e.score&&t(fe(fe({},p),{},{p2:e.score,p5:e.id}))}))}return i[n]&&"close"===s&&(i[n]={time_stamps:Number((1e3*Math.random()+100).toFixed(0)+Date.now()).toString(16),first_answer:!0}),!0},d=function(e){var n=!0;return e.map((function(t){n=!0;try{t.logicRules&&t.logicRules.length&&t.logicRules.forEach((function(t){var r=t||{},o=r.relyId,i=r.associateType,u=r.options,a=e.find((function(e){return e.id==o}))||{},c=a.score,s=a.name;if(n=!1,["satisfaction","nps","ces","rating"].includes(s)&&(i===N&&u.includes(c)||i===D&&c==u[0]||i===I&&c))n=!0;else if("tags"===s){var f=(c||[]).map((function(e){return e.index}));(i===N&&-1!=u.findIndex((function(e){return f.includes(e)}))||i===D&&c&&c.length&&u.length==c.length&&u.every((function(e){return f.includes(e)}))||i===I&&c&&c.length)&&(n=!0)}if(!1===n)throw"循环中止"}))}catch(e){}return fe(fe({},t),{},{show:n})})).filter((function(e){return e.show})).map((function(e){return e.id}))},p=function(e){var n=!1;return e.map((function(t){if("condition"!==t.required)return fe(fe({},t),{},{required:t.required});try{t.requiredRules&&t.requiredRules.length&&t.requiredRules.forEach((function(t){var r=t||{},o=r.relyId,i=r.associateType,u=r.options,a=e.find((function(e){return e.id==o}))||{},c=a.score,s=a.name;if(n=!1,["satisfaction","nps","ces","rating"].includes(s)&&(i===N&&u.includes(c)||i===D&&c==u[0]||i===I&&c))n=!0;else if("tags"===s){var f=(c||[]).map((function(e){return e.index}));(i===N&&-1!=u.findIndex((function(e){return f.includes(e)}))||i===D&&c&&c.length&&u.length==c.length&&u.every((function(e){return f.includes(e)}))||i===I&&c&&c.length)&&(n=!0)}}))}catch(e){}return fe(fe({},t),{},{required:n})}))},v=function(){var n=e.getConfig()||{},t=n.plugin_survey&&n.plugin_survey.pid||n.pid;return new Promise((function(e,n){try{var r=[];c().then((function(n){n.forEach((function(e,n){if(e.status==C)return!1;var t=e.formSchema&&e.formSchema.triggerSetting||{},o=t.triggerBehavior,i=void 0===o?{}:o,u=t.triggerWay,a=(i||{}).data,c=void 0===a?[]:a;if("1"!=i.type||"2"!=u)return!1;c.forEach((function(n){(n||[]).forEach((function(n){!("all"==n.range||"special"==n.range&&W(n.rangeDetail))||"daycount"!=n.action&&"timecount"!=n.action||r.push({action:n.action,range:n.range,rangeDetail:n.rangeDetail,num:n.num,operator:n.operator,surveyId:e.id})}))}))})),ue(r,t).then((function(){e(!0)}))}))}catch(n){e(!1)}}))},g=function(){var n=e.getConfig()||{},t=n.plugin_survey&&n.plugin_survey.pid||n.pid;return new Promise((function(e,n){Promise.all([c(),V(G.SurveyConfigVersions)]).then((function(n){for(var r=u()(n,2),o=r[0],i=r[1],a=function(){var e=o[c]||{},n=e.id,r=e.gmtModified,u=null==i?void 0:i.find((function(e){return(null==e?void 0:e.id)===n}));u?u.gmtModified=r:null==i||i.push({id:n,gmtModified:r,pid:t})},c=0;c<o.length;c++)a();X(G.SurveyConfigVersions,i),e(!0)}))}))},m=function(){return new Promise((function(e,n){try{for(var t in G){var r=JSON.parse(localStorage.getItem("aem-".concat(G[t]))||"[]")||[];null!=r&&r.length&&(localStorage.removeItem("aem-".concat(G[t])),R("aem-".concat(G[t]),JSON.stringify(r)))}e()}catch(e){console.error("[AES] plugin-survey","fail to transfer buffer into indexdb"),n()}}))},y=function(){return m().then((function(){g().then((function(){return v()}))}))},h={init:y,setFrequency:f,sendLog:l,setLogicRules:d,setRequireLogicRules:p,getStorage:V,setStorage:X};return{getSchema:a,getDraftSchema:s,getSchemaList:c,utils:h}}var de=!1,pe=!1,ve=window.Promise,ge=document.currentScript&&(null===(te=document.currentScript)||void 0===te||null===(te=te.src)||void 0===te?void 0:te.indexOf("//dev.g.alicdn.com"))>0?"dev.":"";function me(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"script";return new Promise((function(t,r){var o=document.createElement(n);"script"===n?(o.charset="utf-8",o.async=!0,o.src=e):(o.type="text/css",o.rel="stylesheet",o.href=e),o.onload=function(){t(!0)},o.onerror=function(e){r(!1)},"script"===n?(document.body||document.documentElement).appendChild(o):document.head&&document.head.appendChild(o)}))}function ye(){return new Promise((function(e,n){if(de)return e(!0);if(pe)return setTimeout((function(){e(ye())}),500);pe=!0;var t="//".concat(ge,"g.alicdn.com/aes/tracker-plugin-survey-ui/").concat("3.0.15","/index.js"),r="//".concat(ge,"g.alicdn.com/aes/tracker-plugin-survey-ui/").concat("3.0.15","/index.css");Promise.all([me(t),me(r,"link")]).then((function(){if("function"==typeof window.define&&window.define.amd){var n=window.require||window.requirejs;"function"==typeof n&&n(["@ali/aes-tracker-plugin-survey-ui/index"],(function(n){window.AESPluginSurveyUI=n,de=!!window.AESPluginSurveyUI,e(de)}))}de=!!window.AESPluginSurveyUI,e(de)}))}))}var he={};function Se(e){return ye().then((function(n){if(!n)return Promise.reject(!1);var t=he[e];t||(t=(0,window.AESPluginSurveyUI)(),he[e]=t);return Promise.resolve(t)}))}var be=function(e){var n=he[e];return Promise.resolve(n)};function we(e,n){var t="aes-tracker-plugin-sruvey-preview-banner",r=document.querySelector("#".concat(t));r||((r=document.createElement("div")).id=t,r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.zIndex="300000",r.style.width="100vw",r.style.height="40px",r.style.lineHeight="40px",r.style.backgroundColor="#ffd8df",r.style.textAlign="center",r.style.fontSize="14px"),r.innerText=e;var o=document.createElement("a");o.href="javascript: void(0);",o.style.color="blue",o.style.fontSize="14px",o.innerText="结束预览",o.onclick=n,r.appendChild(o),(document.body||document.documentElement)&&(document.body||document.documentElement).appendChild(r)}function _e(e){var n=window.location.href;setInterval((function(){window.location.href!==n&&(n=window.location.href,e())}),1300)}function Ee(e){var n={};try{n=JSON.parse(JSON.stringify(e))}catch(e){console.log(e)}return n}var Oe=t(4),xe=["id"],Te=["id","mountContainer","config","pluginConfig","autoTrigger","formSchema"];function Pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ce(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Pe(Object(t),!0).forEach((function(n){c()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var je=(Oe||{}).version,Ne=!1,De=function(){},Ie={onOpen:De,onSubmit:De,onRefuse:De,onClose:De,onSurveyMounted:De,onNextMonthChange:De};n.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ve)return console.log("tracker-plugin：当前环境不支持promise");var t=e.getConfig()||{},r=t.plugin_survey&&t.plugin_survey.pid||t.pid,o=Ce(Ce(Ce({},e.getConfig("plugin_survey")),n),{},{pid:r}),i=le(e,o);return Ae(i,o),_e((function(){Ae(i,o)})),{openSurvey:ke({surveyConfig:o,surveyCore:i}),closeSurvey:Re({surveyConfig:o}),renderEmbed:Le({surveyConfig:o,surveyCore:i}),destoryEmbed:Re({surveyConfig:o}),getSchemaById:Ue({surveyCore:i})}};function Ae(e,n){var t=n.pid,r=n.notAutoSend;if(!t||r)return!1;e.utils.init().then((function(){Ne||e.utils.getStorage("plugin-survey-preview-data").then((function(r){var o=Date.now(),i=(r||[]).filter((function(e){return(null==e?void 0:e.date)>o})).find((function(e){return-1!=location.href.indexOf(null==e?void 0:e.href)}));if(i)return Ne=!0,function(e){var n=e.previewData,t=e.pid,r=e.surveyCore,o=e.surveyConfig;0;var i=n.id,a=n.pid,c={mountContainer:null,loadForce:!0,currentVersion:je},s=function(){r.utils.setStorage("plugin-survey-preview-data",[]),window.location.reload()};if(a!==t)return we("目标地址不属于当前项目，预览失效 ",s);Promise.all([r.getDraftSchema({id:i}),ye()]).then((function(e){var n=u()(e,1)[0];if(!n)return we("未获取到插件配置，请保存后再预览 ",s);Me({schema:n,options:c,surveyCore:r,surveyConfig:o}),we("当前处于评分插件（ID：".concat(i,"）预览状态 "),s)}))}({previewData:i,pid:t,surveyCore:e,surveyConfig:n});Promise.all([e.getSchema({}),Se(t)]).then((function(t){var r=u()(t,2),o=r[0],i=r[1];return!(!o||!i)&&(null!=i&&i.hasOpen(o.id,!0)?void console.log("有插件已打开.",o.id):Me({schema:o,options:{initOpen:!0,currentVersion:je},surveyCore:e,surveyConfig:n}))}))}))})).catch((function(e){console.log("不弹问卷")}))}function Me(e){var n=e.schema,t=e.options,r=e.surveyCore,o=e.surveyConfig;return Se((o||{}).pid).then((function(e){if(de&&n)return e.loadUI({formSchema:Ee(n),options:t,surveyConfig:o},r.utils);"function"==typeof t.onSurveyMounted?t.onSurveyMounted(!1):t.onSurveyMounted&&console.error("onSurveyMounted属性类型错误，需要是函数类型")}))}function ke(e){var n=e.surveyConfig,t=e.surveyCore;return function(e){var r=e.id,o=e.autoTrigger,i=Ce(Ce({mountContainer:null,loadForce:!0,currentVersion:je},Ie),e);return Promise.all([t.getSchema({id:r,autoTrigger:o}),ye()]).then((function(e){Me({schema:u()(e,1)[0],options:i,surveyConfig:n,surveyCore:t})})).catch((function(e){return!1}))}}function Re(e){var n=e.surveyConfig;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=o()(e,xe),i=n.pid;be(i).then((function(e){e&&(null==e||e.destoryUI(t,r))}))}}function Le(e){var n=e.surveyConfig,t=e.surveyCore;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(e.id,e.mountContainer),i=e.config,a=e.pluginConfig,c=e.autoTrigger,s=e.formSchema,f=void 0===s?null:s,l=o()(e,Te);if(r){var d=Ce(Ce({mountContainer:r,loadForce:!0,config:i,pluginConfig:a,currentVersion:je},Ie),l);return Promise.all([f||t.getSchema({id:e.id,autoTrigger:c}),ye()]).then((function(e){return Me({schema:u()(e,1)[0],options:d,surveyCore:t,surveyConfig:n})}))}console.error("mountContainer 不能为空")}}function Ue(e){var n=e.surveyCore;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t?n.getSchema({id:e.id,autoTrigger:!1}).then((function(e){return Ee(e)})):Promise.reject("请输入id")}}}]).default}));!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-autolog/index",[],e):"object"==typeof exports?exports.AESPluginAutolog=e():t.AESPluginAutolog=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";r.r(e);var n=function(t,e){return s({click:"all",exposure:"manual",autoLoad:!0,autologProps:["data-autolog"],containerProps:["data-autolog-container"]},s((t.getConfig?o(t.getConfig("plugin_autolog")):{})||{},e||{}))},o=function(t){if(!t)return t;var e={};for(var r in t){void 0!==t[r]&&(e[r]=t[r])}return e},i=function(t,e){var r=[];if(e&&e.length>0&&(r=e.slice()),t&&t.length>0)for(var n=0;n<t.length;n++)r.push(t[n]);return r};function a(t,e){var r=t||{};for(var n in e)r[n]=e[n];return r}function s(t,e){var r=a({},t);return a(r,e)}function u(t){if("object"!=typeof t)return[];var e=[];for(var r in t)e.push(r);return e}function c(t,e){for(var r={},n={},o=0;o<e.length;o++){var i=e[o];i&&(n[i]=!0)}for(var a in t)n[a]||(r[a]=t[a]);return r}var l=/(^[\s　*]+)|([\s　：:~-]+$)|([(（]\d+[)）])/gm,f=function(t){return t.innerText||t.title||t.defaultValue},d=function(t){return t?/^[+-]?[\d,]+(\.\d+)?$/.test(t)?"[NUMBER]":t.substr(0,30):""};function h(t){for(var e,r=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),n=r.length,o=0;o<n;o++){var i=r[o];if(f(i)){var a=f(p(i));if(!a)continue;return d(a.replace(l,""))}}return""}function p(t){if(!!t.querySelector(".badge")){var e=t.cloneNode(!0);return(Array.prototype.slice.apply(e.querySelectorAll(".badge"))||[]).forEach((function(t){var e;return null==(e=t.parentElement)?void 0:e.removeChild(t)})),e}return t}var g=["button","checkbox","link","menuitem","radio","tab","combobox","search"];function v(t){var e=t.getAttribute("role");return e&&g.indexOf(e)>-1?e:""}function _(t){for(var e=[],r=[],n=[],o=t,i=!1,a=function(){var t=o.tagName,a="string"==typeof t?t.toLocaleLowerCase():o instanceof HTMLFormElement?"form":"unknown";if(n.push(a),e.push(o),!i){var s=o.id;if(s&&o!==document.body&&o!==document.documentElement&&(r.push('/*[@id="'+s+'"]'),i=!0),o.parentElement){var u=Array.prototype.slice.apply(o.parentElement.children).filter((function(t){return t.tagName.toLocaleLowerCase()===a}));u.length>1&&(a=a+"["+(u.indexOf(o)+1)+"]")}i||r.push(a)}o=o.parentElement};o;)a();return{reversedXPathArray:r,reversedDOMArray:e,xpath:m(r),reversedTagNameArray:n}}function m(t){return"/"+[].concat(t).reverse().join("/")}var E,y,w,b,A,O=function(t,e,r,n){T(t,e.name,!0);var i=s(e,{config:o(r)});t.registry[n?"unshift":"push"](i),x(t)},T=function(t,e,r){e&&(t.registry=!0===e?[]:t.registry.filter((function(t){return t.name!==e})),!r&&x(t))},x=function(t){var e=[],r=[];t.registry.forEach((function(t){if(t.prioritizedRules){var n=e.concat(t.prioritizedRules);e=n.map((function(e){return s(e,{plugin:t})}))}if(t.rules){var o=r.concat(t.rules);r=o.map((function(e){return s(e,{plugin:t})}))}})),t.ruleList=e.concat(r)},M=function(t,e){return s(e?function(t,e){var r=e.reversedDOMArray,n=e.reversedXPathArray,o=e.reversedTagNameArray,i=r.indexOf(t);if(-1!==i){var a=i+1,s=n.slice(0,a);return{reversedDOMArray:r.slice(0,a),reversedTagNameArray:o.slice(0,a),reversedXPathArray:s,xpath:m(s)}}return _(t)}(t,e):_(t),{tagName:t.tagName.toLowerCase()})},P=function(t,e,r,n){var i=function t(e,r){for(var n=r.source,i=r.logType,a=r.isRestarted,u=r.isByManual,l=e.ruleList.length,f={feature:"",text:"",xpath:"",container:"",target:n},d=s({source:n,logType:i,isByManual:u},{info:M(n),utils:{getFeature:v,getText:h}}),p=0;p<l;p++){var g=e.ruleList[p];try{var _=g.selector,m=g.action,E=g.plugin;d.config=s(E.defaultConfig,E.config);var y=_(d,e);if(y){d.target=y,f.target=y,y!==n&&y&&(d.info=M(y));var w="function"==typeof m?m(d,e):m;if(w){var b=w.__break,A=c(w,["__continue","__restart","__break"]);if(b){f.feature="";break}if(w.__restart){if(!a)return t(e,{source:y,logType:i,isRestarted:!0,isByManual:u});console.error("[aes-autolog] 已经重新执行过规则。请检查规则逻辑"),console.error(g)}if(f.feature=A.feature||f.feature||v(y),f.text=A.text||f.text||h(y)||A.placeholder||"",f.xpath=A.xpath||f.xpath||d.info.xpath,f.container=A.container||f.container||"",f.extra=A.extra?s(f.extra,o(A.extra)):f.extra,w.__continue)continue}else f.feature=f.feature||v(y),f.text=f.text||h(y),f.xpath=f.xpath||d.info.xpath;break}}catch(t){console.error("[aes-autolog] 规则执行出错",g),console.error(t)}}return f}(t,{source:e,logType:r,isByManual:n}),a=i.target,u=i.extra,l=c(i,["target","extra"]);if(!!l.feature)return s(o(u),s(o(l),{className:a.getAttribute("class")||"",selector:"",logtype:r}))},L=function(){return(new Date).valueOf()},S=window&&"ontouchstart"in window,N=function(t){for(var e in t.registeredListeners){var r=e,n=t.registeredListeners[r];n&&t.target.removeEventListener(r,n)}};!function(t){t.AUTOEXP_KEY="autolog-exp-hash"}(E||(E={})),function(t){t.EXP_CONFIG_CHANGE="EXP_CONFIG_CHANGE",t.DOM_CHANGE="DOM_CHANGE",t.DOM_REMOVE="DOM_REMOVE",t.EXP_WATCH_CHANGE="EXP_WATCH_CHANGE",t.DOM_DURATION_END="DOM_DURATION_END"}(y||(y={})),function(t){t[t.INIT=0]="INIT",t[t.IN_VIEW=1]="IN_VIEW",t[t.OUT_VIEW=2]="OUT_VIEW"}(w||(w={})),function(t){t[t.INIT=0]="INIT",t[t.REPORTED=1]="REPORTED"}(b||(b={})),function(t){t[t.WAITTING=0]="WAITTING",t[t.LISTENING=1]="LISTENING",t[t.REPORTED=2]="REPORTED"}(A||(A={}));var C=function(t){return"number"==typeof t};var I=function(){var t,e;return!(null==(t=window.__AES_AUTOLOG_EXP__)||null==(e=t.globalConfig)||!e.debug)},D=function(){var t;return!(!window.IntersectionObserver||null!=(t=window.__AES_AUTOLOG_EXP__)&&t.testOldIO)};function R(){var t=(new Date).getTime();return"xxxxxxxxxxxx4x".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))}function U(t){return t&&t.getAttribute?t.getAttribute("autolog-exp-hash"):null}var G=function(t){var e={};return t&&("function"==typeof t.getBoundingClientRect&&(e=t.getBoundingClientRect()),C(e.x)||C(e.left)&&(e.x=e.left),C(e.y)||C(e.top)&&(e.y=e.top),C(e.width)||(e.width=t.offsetWidth),C(e.height)||(e.height=t.offsetHeight),e.size=e.width*e.height),e},k=function(t,e){return e.x>=t.pLeftTop[0]&&e.x<=t.pRightBottom[0]&&e.y>=t.pLeftTop[1]&&e.y<=t.pRightBottom[1]};function W(t){var e=[];if(t&&"function"==typeof document.querySelector){var r=document.querySelector(t);if(r){var n=G(r)||{};if(C(n.x)&&C(n.y)&&C(n.width)&&C(n.height)){var o=n;e.push({pLeftTop:[o.x,o.y],pRightTop:[o.x+o.width,o.y],pLeftBottom:[o.x,o.y+o.height],pRightBottom:[o.x+o.width,o.y+o.height]})}}}var i=document.documentElement,a=document.body,s=i.clientWidth||a.offsetWidth||0,u=i.clientHeight||a.offsetHeight||0;return e.push({pLeftTop:[0,0],pRightTop:[s,0],pLeftBottom:[0,u],pRightBottom:[s,u]}),e}function H(t){var e,r,n,o,i,a,s,u,c,l,f=t.rootPositions,d=t.elemPosition;if(f&&f.length)for(var h=0;h<f.length;h++){var p=f[h];if(!p)return!1;if((n=void 0,o=void 0,i=void 0,a=void 0,s=void 0,u=void 0,c=void 0,l=void 0,a=0,s=k(e=p,r=d),u=k(e,{x:r.x+r.width,y:r.y}),c=k(e,{x:r.x,y:r.y+r.height}),l=k(e,{x:r.x+r.width,y:r.y+r.height}),n=0,s&&l&&(n=r.size/r.size),(a=n)>0?a:(o=0,i=0,s&&u&&!c&&!l?(o=r.width,i=e.pLeftBottom[1]-r.y):!s&&u&&!c&&l?(o=r.width+r.x,i=r.y):!s&&!u&&c&&l?(o=r.width,i=r.height+r.y):s&&!u&&c&&!l&&(o=e.pRightTop[0]-r.x,i=r.y),(a=r.size>0?Math.abs(o*i)/r.size:0)>0?a:a=function(){var t=0,n=0;return!s||u||c||l?s||!u||c||l?s||u||!c||l?s||u||c||!l||(t=e.pLeftTop[0]-r.x,n=e.pLeftTop[1]-r.y):(t=e.pRightTop[0]-r.x,n=e.pRightTop[1]-r.y):(t=e.pLeftBottom[0]-r.x,n=e.pLeftBottom[1]-r.y):(t=e.pRightBottom[0]-r.x,n=e.pRightBottom[1]-r.y),r.size>0?Math.abs(t*n)/r.size:0}()))<t.targetRate)return!1}return!0}function X(){var t,e;if(null!=(t=window.__AES_AUTOLOG_EXP__)&&null!=(e=t.globalConfig)&&e.debug)for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o]}function B(t){console.error("[tracker-plugin-autolog-exposure]",t)}var V=function(t){var e,r=this;this.isThrottleWatch=null==(e=t.isThrottleWatch)||e,this._observer=window.__AES_AUTOLOG_EXP__.mutationObserver,this._removeElementHashs=[],this._removing=!1,this._looptimes=0,this._oldWatching=!1,this.windowStatus="focus",this._eventMap={},this._throttleHandlerDomChange=function(t,e,r){var n,o,i,a,s=0;r||(r={});var u=function(){s=!1===r.leading?0:+new Date,n=null,a=t.apply(o,i),n||(o=i=null)},c=function(){var c=+new Date;s||!1!==r.leading||(s=c);var l=e-(c-s);return o=this,i=arguments,l<=0||l>e?(n&&(clearTimeout(n),n=null),s=c,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(n),s=0,n=o=i=null},c}((function(t){r.domChangeHandler(t)}),200)};V.prototype.initObserver=function(t,e){var r=this,n=["IFRAME","BODY","OBJECT","SCRIPT","NOSCRIPT","LINK","STYLE"],o=["class","style"],a=function(t){return"characterData"===t.type||"attributes"===t.type&&t.attributeName&&o.indexOf(t.attributeName)>-1?[t.target]:"childList"!==t.type?[]:void 0},s=function(t,r){var o,i,a=(null==(o=window.__AES_AUTOLOG_EXP__)||null==(i=o.globalConfig)?void 0:i.ignoreAttrs)||[];if(t&&t.length>0){var s=t.filter((function(t){return!(n.indexOf(t.nodeName)>-1)&&!a.some((function(e){return function(t,e){if(e(t))return!0;for(var r=t.parentNode;r;){if(e(r))return!0;r=r.parentNode}return!1}(t,(function(t){var r=t;return!!r&&!!r.getAttribute&&!!r.getAttribute(e)}))}))}));s.length&&e(s,r)}},u=function(t){for(var e=0;e<t.length;e++){var o=t[e];if(o&&(n.indexOf(o.nodeName)<0&&1===o.nodeType)){var i=U(o);i&&r._removeElementHashs.push(i)}}r._removing||(r._removing=!0,setTimeout((function(){r._removeElementHashs.length&&window.__AES_AUTOLOG_EXP__&&window.__AES_AUTOLOG_EXP__.pubSub.publish(y.DOM_REMOVE,r._removeElementHashs),r._removeElementHashs=[],r._removing=!1}),200))};this._observer||(this._observer=new t((function(t){if(t&&t.length>0)for(var e=0;e<t.length;e++){var r=t[e];if(r){var n=i(r.addedNodes||[]);n=i(a(r),n),s(n,r),r.removedNodes.length&&u(i(r.removedNodes))}}})),window.__AES_AUTOLOG_EXP__.mutationObserver=this._observer);this._observer.observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),X("init MutationObserver success!")},V.prototype.domChangeHandler=function(t){window.__AES_AUTOLOG_EXP__&&window.__AES_AUTOLOG_EXP__.pubSub.publish(y.DOM_CHANGE,t)},V.prototype.onFocusHandler=function(){this.windowStatus="focus",this._oldWatching||this.oldWatchDOMChange()},V.prototype.onBlurHandler=function(){this.windowStatus="blur"},V.prototype.onVisibilityChange=function(){"visible"===document.visibilityState?this.onFocusHandler():"hidden"===document.visibilityState&&this.onBlurHandler()},V.prototype.addEvent=function(t,e,r,n){this._eventMap[e]=r,t.addEventListener(e,r,n)},V.prototype.removeEvent=function(t,e,r){var n=this._eventMap[e];n&&(t.removeEventListener(e,n,r),delete this._eventMap[e])},V.prototype.addAllListener=function(){this.oldWatchDOMChange(),window.WindVane&&(this.addEvent(document,"WV.Event.APP.Active",this.onFocusHandler.bind(this),!1),this.addEvent(document,"WV.Event.APP.Background",this.onBlurHandler.bind(this),!1)),"hidden"in document?this.addEvent(window,"visibilitychange",this.onVisibilityChange.bind(this)):(this.addEvent(window,"focus",this.onFocusHandler.bind(this)),this.addEvent(window,"blur",this.onBlurHandler.bind(this)))},V.prototype.removeAllListener=function(){window.WindVane&&(this.removeEvent(document,"WV.Event.APP.Active",!1),this.removeEvent(document,"WV.Event.APP.Background",!1)),"hidden"in document?this.removeEvent(window,"visibilitychange"):(this.removeEvent(window,"focus"),this.removeEvent(window,"blur"))},V.prototype.scrollHandler=function(){this._throttleHandlerDomChange({type:"polling"})},V.prototype.oldWatchDOMChange=function(){var t=this;this._loopTimer=setTimeout((function(){if(clearTimeout(t._loopTimer),"blur"!==t.windowStatus){var e,r;t._looptimes++,t._oldWatching=!0,t.domChangeHandler({type:"polling"});var n=null==(e=window.__AES_AUTOLOG_EXP__)?void 0:e.dispatcher;null!=n&&null!=(r=n.listenerMap)&&r.size&&t.oldWatchDOMChange()}else t._oldWatching=!1}),1e3)},V.prototype.start=function(){var t,e=window.MutationObserver,r=this;(function(){var t;return!(!window.MutationObserver||null!=(t=window.__AES_AUTOLOG_EXP__)&&t.testOldMO)})()?this.initObserver(e,(function(){r._throttleHandlerDomChange({type:"mob"})})):null!=(t=window.__AES_AUTOLOG_EXP__.globalConfig)&&t.disabledPolling?X("当前浏览器版本不支持曝光监听"):(this.domChangeHandler({type:"init"}),this.addAllListener());D()||(this.addEvent(window,"touchmove",this.scrollHandler.bind(this),{passive:!0}),this.addEvent(window,"scroll",this.scrollHandler.bind(this),{passive:!0}),this.addEvent(window,"resize",this.scrollHandler.bind(this),{passive:!0}))},V.prototype.stop=function(){this._loopTimer&&(clearTimeout(this._loopTimer),this._loopTimer=null),this._observer?(this._observer.takeRecords(),this._observer.disconnect()):this.removeAllListener(),D()||(this.removeEvent(window,"touchmove",{passive:!0}),this.removeEvent(window,"scroll",{passive:!0}),this.removeEvent(window,"resize",{passive:!0}))};var F=function(){this._data={},this.size=0};F.prototype.set=function(t,e){this._data&&(this._data[t]=e,this.size++)},F.prototype.get=function(t){if(this._data)return this._data[t]},F.prototype.delete=function(t){this._data&&(delete this._data[t],this.size--)},F.prototype.has=function(t){return!!this._data&&void 0!==this._data[t]},F.prototype.forEach=function(t){var e=this._data||{};for(var r in e){var n=e&&e[r];n&&t(n,r)}},F.prototype.clear=function(){this._data={}};var z={every:!1,duration:200,threshold:.5},j=function(t){this.config=s(z,t),this.status=A.WAITTING,this.token=function(t){var e,r,n,o="";t.selectorFunc?o=t.selectorFunc.name||"selectorFunc":t.selector&&(o=t.selector,t.rootSelector&&(o+=t.rootSelector+"_"));var i=(null==(e=window.__AES_AUTOLOG_EXP__)||null==(r=e.cacheSelectorNameMap)?void 0:r[o])||0;return n=o+"_exp_"+(i+1),window.__AES_AUTOLOG_EXP__.cacheSelectorNameMap[o]=i+1,n}(t),this.observerNameMap=new F};j.prototype.needReport=function(t){return!(!this.config.every||!I())||!((e=t)&&e.getAttribute("autolog-exp-reported")===""+b.REPORTED);var e},j.prototype.onExposure=function(t){var e=t.element;"function"==typeof this.config.onExposure&&this.config.onExposure({element:e,config:this.config}),this.changeStatus(A.REPORTED)},j.prototype.getElements=function(){var t=this.config;if(t.selectorFunc)return i(t.selectorFunc());if(t.selector){var e=(t.rootSelector?document.querySelector(t.rootSelector):document)||document;return i(e.querySelectorAll(t.selector))}return[]},j.prototype.changeStatus=function(t){this.status=t};var q=function(t){this.dom=t.element,this.id=t.id,this.listenerMap=new F,this.everyListenerMap=new F,this.observerMap=new F,this.durationList=[],this.durationTaskMap=new F,this.status=w.INIT,this.reportStatus=b.INIT,this.dom.setAttribute("autolog-exp-hash",this.id)};q.prototype.addListener=function(t){this.listenerMap.set(t.token,t),t.config.every&&I()&&this.everyListenerMap.set(t.token,t)},q.prototype.needReport=function(){return!(!this.dom||0===this.listenerMap.size)&&(this.listenerMap.size>0||this.everyListenerMap.size>0)},q.prototype.watch=function(t){D()?this.intersectionWatch():this.watchByPolling(t)},q.prototype.watchByPolling=function(t){this.checkIsInView(t)&&this.exposureStart({isPolling:!0})},q.prototype.isInWatch=function(t){return this.observerMap.has(t)},q.prototype.intersectionWatch=function(){var t=this,e=window.__AES_AUTOLOG_EXP__.dispatcher;this.listenerMap.size&&this.listenerMap.forEach((function(r){var n=e.getIObserver(r.config),o=n.name,i=n.observer;t.isInWatch(o)||(i.observe(t.dom),t.observerMap.set(o,r.token)),r.observerNameMap.set(o,o)}))},q.prototype.isInView=function(t){var e=t.rootPositions,r=t.rate,n=t.elemPosition;return this.status===w.IN_VIEW&&H({rootPositions:e,elemPosition:n,targetRate:r||.5})},q.prototype.IOhandleDurationTask=function(t){if(t)for(var e=this.durationList,r=0;r<e.length;r++){var n=e[r];if(n&&n.flag===t){if(!(this.status===w.IN_VIEW)){this.exposureLeave();break}this.handleReport(n.listener)}}},q.prototype.checkIsInView=function(t){var e=G(this.dom),r=[];this.listenerMap.forEach((function(t){return r.push(t)}));for(var n=t,o=0;o<r.length;o++){var i=r[o];if(i){var a=i.config,s=null==a?void 0:a.rootSelector;if(s&&(n=W(s)),H({rootPositions:n,elemPosition:e,targetRate:a.threshold||.5}))return!0}}return!1},q.prototype.oldhandleDurationTask=function(t){if(t)for(var e=W(),r=G(this.dom),n=this.durationList,o=0;o<n.length;o++){var i=n[o];if(i&&i.flag===t){var a=e,s=i.listener.config,u=null==s?void 0:s.rootSelector;if(u&&(a=W(u)),!this.isInView({rootPositions:a,rate:null==s?void 0:s.threshold,elemPosition:r})){this.exposureLeave();break}this.handleReport(i.listener)}}},q.prototype.handleDurationTask=function(t){this.status!==w.OUT_VIEW&&(this.dom&&!function(t){for(var e;t&&"HTML"!==t.tagName&&"none"!==(e=t.style.display);)t=t.parentNode;return"none"===e}(this.dom)?(D()?this.IOhandleDurationTask(t):this.oldhandleDurationTask(t),this.durationList=this.durationList.filter((function(e){return e.flag!==t}))):this.exposureLeave())},q.prototype.handleReport=function(t){var e;this.reportStatus!==b.REPORTED&&(this.reportStatus=b.REPORTED,(e=this.dom)&&e.setAttribute("autolog-exp-reported",""+b.REPORTED)),t.onExposure({element:this.dom}),t.config.every&&I()||this.listenerMap.delete(t.token)},q.prototype.exposureStart=function(t){var e=this,r=t.observerName,n=t.isPolling;if((n||r)&&this.needReport()){var o=+new Date;this.status=w.IN_VIEW,this.listenerMap.forEach((function(t){var i=t.config.duration;if(i){if(n||r&&t.observerNameMap.has(r)){var a=o+"_"+r+"_"+i;if(!e.durationTaskMap.has(a)){var s=setTimeout((function(){e.handleDurationTask(a)}),i);e.durationTaskMap.set(a,{flag:a,timer:s})}e.durationList.push({listener:t,flag:a})}}else e.handleReport(t)}))}},q.prototype.exposureLeave=function(){this.status=w.OUT_VIEW,this.durationTaskMap.forEach((function(t){t&&clearTimeout(t)})),this.durationList=[],this.durationTaskMap.clear()};var Y=window.IntersectionObserver,K=function(){this.watchElemetMap=new F,this.listenerMap=new F,this.observerMap=new F,this.isThrottling=!1,this._watchTimes=0,this._domChangeTimes=0,this._configChangeTimes=0,Y&&this.observerMap.set("io_base",this.createIObserver({},"io_base")),this.start()};function Q(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}K.prototype.updateElementSub=function(t){var e=this,r=t.type;if("PAUSED"!==this.status){var n=0;this.listenerMap.forEach((function(t){for(var r=t.getElements(),o=0;o<r.length;o++){var i=r[o];if(i){var a=void 0;if(t.needReport(i)){a=U(i);var s=e.watchElemetMap.get(a);if(s)s.listenerMap.has(t.token)||(s.addListener(t),n++);else{a=a||R();var u=new q({id:a,element:i});n++,u.addListener(t),e.watchElemetMap.set(a,u)}}}}})),"polling"!==r&&0===n||window.__AES_AUTOLOG_EXP__&&window.__AES_AUTOLOG_EXP__.pubSub.publish(y.EXP_WATCH_CHANGE)}},K.prototype.watchDom=function(){var t,e,r,n,o=this,i=this;t=function(){i.domWatcher||(i.domWatcher=new V({isThrottleWatch:!0}),o.listenerMap.size&&i.domWatcher.start())},r=0,n=function(){0===r&&t(),r++},"complete"===document.readyState&&n(),document.addEventListener&&(e=function(){document.removeEventListener("DOMContentLoaded",e,!1),n()},document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",n,!1))},K.prototype.start=function(){this.watchDom(),this.status="WATCHING",window.__AES_AUTOLOG_EXP__&&(window.__AES_AUTOLOG_EXP__.pubSub.subscribe(y.EXP_CONFIG_CHANGE,this.handleConfigChange.bind(this)),window.__AES_AUTOLOG_EXP__.pubSub.subscribe(y.EXP_WATCH_CHANGE,this.onWatchMapChange.bind(this)),window.__AES_AUTOLOG_EXP__.pubSub.subscribe(y.DOM_CHANGE,this.handleDOMChange.bind(this)),window.__AES_AUTOLOG_EXP__.pubSub.subscribe(y.DOM_REMOVE,this.handleDOMRemove.bind(this)))},K.prototype.handleDOMRemove=function(t,e){var r=this;try{e.forEach((function(t){var e=r.watchElemetMap.get(t);e&&r.clearWatchElement(e,t)}))}catch(t){B(t)}},K.prototype.handleDOMChange=function(t,e){X("domChange",{info:e}),this.updateElementSub(e),this._domChangeTimes++},K.prototype.handleConfigChange=function(){this.reset(),this.updateElementSub({type:"config"}),this._configChangeTimes++},K.prototype.clearWatchElement=function(t,e){var r=this;t&&(t.dom&&t.observerMap.forEach((function(e){var n=r.observerMap.get(e);n&&n.unobserve(t.dom)})),this.watchElemetMap.delete(e))},K.prototype.cleanupWatchElement=function(t,e){return!t.needReport()&&(this.clearWatchElement(t,e),!0)},K.prototype.onWatchMapChange=function(){var t=this;if(!this.isThrottling){this.isThrottling=!0;var e=setTimeout((function(){clearTimeout(e);var r=W();t.watchElemetMap.forEach((function(e,n){t.cleanupWatchElement(e,n)||(t._watchTimes++,e.watch(r))})),t.isThrottling=!1}),50)}},K.prototype.handleDomExposureChange=function(t,e){var r=t.target.getAttribute("autolog-exp-hash");if(r){var n=this.watchElemetMap.get(r);if(n&&t.target===n.dom)(void 0===t.isIntersecting?t.intersectionRatio>=.5:t.isIntersecting)?n.exposureStart({observerName:e}):n.status===w.IN_VIEW&&n.exposureLeave()}},K.prototype.createIObserver=function(t,e){var r=this;return new Y((function(t){t.forEach((function(t){r.handleDomExposureChange(t,e)}))}),s({root:null,rootMargin:"0px",threshold:.5},t))},K.prototype.clearWatch=function(){this.watchElemetMap.clear(),Y&&this.clearIObserver()},K.prototype.clearIObserver=function(){this.observerMap.forEach((function(t){t.disconnect()}))},K.prototype.getIObserver=function(t){var e,r=.5===t.threshold?"io_base":"io_v_"+t.threshold;if("io_base"!==r){var n=this.observerMap.get(r);if(n)e=n;else{var o=this.createIObserver({threshold:t.threshold},r);this.observerMap.set(r,o),e=o}}else e=this.observerMap.get(r);return{name:r,observer:e}},K.prototype.reset=function(){this.domWatcher&&this.domWatcher.stop(),this.clearIObserver(),this.watchElemetMap.forEach((function(t){t.dom&&(t.dom.removeAttribute("autolog-exp-hash"),t.dom.removeAttribute("autolog-exp-reported"))})),this.watchElemetMap.clear(),this.domWatcher&&this.domWatcher.start()},K.prototype.pauseAll=function(){"PAUSED"!==this.status&&(this.clearWatch(),this.status="PAUSED")},K.prototype.restart=function(){this.status="WATCHING",window.__AES_AUTOLOG_EXP__&&window.__AES_AUTOLOG_EXP__.pubSub.publish(y.EXP_CONFIG_CHANGE)},K.prototype.getStatus=function(){return this.status},K.prototype.addExposureListener=function(t){var e=this;if(function(t){return t.selectorFunc?"function"==typeof t.selectorFunc||(B("config.selectorFunc 类型应该为函数"),!1):!!t.selector||(B("config.selector 和 config.selectorFunc必须有一个"),!1)}(t)){var r=new j(t);return this.listenerMap.set(r.token,r),this.isAddThrottling||(this.isAddThrottling=!0,setTimeout((function(){e.isAddThrottling=!1,window.__AES_AUTOLOG_EXP__&&window.__AES_AUTOLOG_EXP__.pubSub.publish(y.EXP_CONFIG_CHANGE)}),30)),r.token}},K.prototype.removeExposureListener=function(t){var e=this;this.listenerMap.has(t)&&(this.listenerMap.delete(t),this.watchElemetMap.forEach((function(r,n){r.listenerMap.has(t)&&r.listenerMap.delete(t),r.listenerMap.size||(r.dom&&r.observerMap.forEach((function(t){var n=e.observerMap.get(t);n&&n.unobserve(r.dom)})),e.watchElemetMap.delete(n))})))};var $=function(){this.handlerMap=new F};$.prototype.subscribe=function(t,e){if(Q(e)){var r=this.handlerMap.get(t);r?r.push(e):this.handlerMap.set(t,[e])}},$.prototype.unsubscribe=function(t,e){if(Q(e)){var r=this.handlerMap.get(t);if(!r)return this;if(r.length&&e)for(var n=0;n<r.length;n++){var o=r[n];o&&e.toString()===o.toString()&&r.splice(n,1)}else this.handlerMap.delete(t)}},$.prototype.subscribeOnce=function(t,e){var r=this;if(Q(e)){return this.subscribe.call(this,t,(function n(){r.unsubscribe.call(r,t,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];e.apply(r,i)})),this}},$.prototype.publish=function(t){for(var e=this,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return window.queueMicrotask?window.queueMicrotask((function(){var r=e.handlerMap.get(t)||[];r.length>0&&r.forEach((function(r){"function"==typeof r&&r.apply(e,[t].concat(n))}))})):setTimeout((function(){var r=e.handlerMap.get(t)||[];r.length>0&&r.forEach((function(r){"function"==typeof r&&r.apply(e,[t].concat(n))}))}),0),this},$.prototype.clearAllSubscriptions=function(){this.handlerMap.clear()},function(t){if(window.__AES_AUTOLOG_EXP__&&window.__AES_AUTOLOG_EXP__.dispatcher)X("already inited");else{window.__AES_AUTOLOG_EXP__={globalConfig:t,cacheSelectorNameMap:{},pubSub:new $};var e=new K;window.__AES_AUTOLOG_EXP__.dispatcher=e}}();var J=function(t){var e;if(null!=(e=window.__AES_AUTOLOG_EXP__)&&e.dispatcher)return window.__AES_AUTOLOG_EXP__.dispatcher.addExposureListener(t)},Z=function(t){if(window.URLSearchParams)return function(t){var e=window.URLSearchParams,r={};try{new e(t).forEach((function(t,e){r[e]=t}))}catch(t){console.error(t)}return r}(t);var e={};try{if("string"!=typeof t||0===t.length)return e;for(var r=t.split("&"),n=r.length,o=0;o<n;++o){var i,a,s,u,c=r[o]||"",l=c.indexOf("=");l>=0?(i=c.substr(0,l),a=c.substr(l+1)):(i=c,a=""),s=decodeURIComponent(i),u=decodeURIComponent(a),e[s]=u}}catch(t){console.error(t)}return e},tt=function(t,e){return t.exp===e||t.exposure===e},et=function(t){t.expToken&&(!function(t){var e;if(null!=(e=window.__AES_AUTOLOG_EXP__)&&e.dispatcher)window.__AES_AUTOLOG_EXP__.dispatcher.removeExposureListener(t)}(t.expToken),t.expToken=void 0)},rt=window.getComputedStyle?window.__aes_plugin_autolog_singleton?(console.warn("[aes-autolog] 已被载入，请勿重复载入"),!1):(window.__aes_plugin_autolog_singleton=!0,!0):(console.warn("[aes-autolog] 在当前环境下无法使用"),!1),nt=["button","checkbox","link","menuitem","radio","tab","combobox","search"],ot=function(t,e){var r=e.autologProps.map((function(r){var n=t.getAttribute(r);if(n)return e.autologPropsHandler(n,r)})).filter(Boolean)[0]||{};return!!u(r).length?r:void 0},it={name:"builtin",prioritizedRules:[{selector:function(t){var e=t.info,r=t.source,n=t.config,o=n.containerProps;if(o&&0!==o.length){var i=e.reversedDOMArray.filter((function(t){return o.map((function(e){return t.getAttribute(e)})).filter(Boolean)[0]}))[0];if(i){var a=ot(i,n);if(a&&"false"!==a.whole)return i}return r}},action:function(t){var e,r,n=t.target,o=t.config,i=t.source,a=t.info,s=t.logType;if(n!==i)e=n;else{var u=a.reversedDOMArray;e=u.filter((function(t){return o.containerProps.map((function(e){return t.getAttribute(e)})).filter(Boolean)[0]}))[0]}if((e&&(r=o.containerProps.map((function(t){return e&&e.getAttribute(t)})).filter(Boolean)[0]||""),"EXP"===s&&e&&e===i)&&!ot(e,o))return{container:r,feature:"custom",text:r,xpath:a.xpath,__continue:!1};return{container:r,__continue:!0}}},{selector:function(t,e){var r=t.info,n=t.config,o=t.source,i=t.isByManual,a=r.reversedDOMArray.slice(0,5).filter((function(t){return n.autologProps.map((function(e){return t.getAttribute(e)})).filter(Boolean)[0]}))[0];if(!a&&!i){var s=e.getConfig(),u=(n.autologProps.map((function(t){var e=o.getAttribute(t);if(e)return n.autologPropsHandler(e,t)})).filter(Boolean)[0]||{}).clk;if("all"!==s.click||"false"==u)return o}return a},action:function(t,e){var r=t.source,n=t.target,o=t.config,i=t.logType,a=t.isByManual;if(r===n){var s=!0,c=o.autologProps.map((function(t){var e=n.getAttribute(t);if(e)return o.autologPropsHandler(e,t)})).filter(Boolean)[0],l=c||{},f=l.feature,d=l.text,h=l.xpath,p=l.clk,g=l.extra;if("CLK"===i&&!a){var v=e.getConfig();"false"===p?s=!1:"auto"===v.click?s=!!c:"manual"===v.click&&(s="true"===p)}return s?{feature:f||"custom",text:d,xpath:h,extra:g&&u(g).length>0?g:void 0,__continue:!d&&!f}:{__break:!0}}return{__restart:!0}}}],rules:[{selector:function(t){var e=t.info,r=t.source;if("img"===e.tagName)return r},action:function(t){var e=t.target,r=t.info,n=e.alt,o=r.reversedTagNameArray.indexOf("a");if(-1!==o)return{feature:"link",text:n};var i=-1!==o?"link":"image";return"pointer"===getComputedStyle(e).cursor&&(i="icon-button"),{feature:i,text:n}}},{selector:function(t){var e=t.info,r=t.source;if("area"===e.tagName)return r;var n=e.reversedTagNameArray.indexOf("a");return-1!==n?e.reversedDOMArray[n]:void 0},action:{feature:"link"}},{selector:function(t){var e=t.info,r=e.reversedTagNameArray.indexOf("button");if(-1!==r)return e.reversedDOMArray[r]},action:{feature:"button"}},{selector:function(t){var e=t.info,r=t.source;if("icon"===e.tagName)return r;var n=e.reversedTagNameArray.indexOf("svg");return-1!==n?e.reversedDOMArray[n]:void 0},action:function(t){var e=t.target;if("pointer"===getComputedStyle(e).cursor)return{feature:"icon-button",placeholder:"ICON_BUTTON"}}},{selector:function(t){var e=t.info,r=t.source,n=e.tagName;if("input"===n||"textarea"===n)return r},action:function(t){var e=t.target,r=t.info,n=e,o=n.type,i=n.value,a=n.placeholder,s={feature:""};return"text"!==o&&"password"!==o||(s.placeholder=a||""),"submit"===o||"button"===o?(s.feature="button",i&&(s.text=i)):s.feature=o||r.tagName,s}},{selector:function(t){var e=t.info,r=e.reversedTagNameArray.indexOf("label");if(-1!==r)return e.reversedDOMArray[r]},action:function(t){var e=t.target.getElementsByTagName("input")[0];if(e){var r=e.type;if("checkbox"===r||"radio"===r)return{feature:r}}}},{selector:function(t){var e=t.info,r=t.source;if("select"===e.tagName)return r},action:function(t){var e=t.target;return{feature:t.info.tagName,placeholder:e.placeholder}}},{selector:function(t){var e=t.source,r=e.getAttribute("role");if(r&&nt.indexOf(r)>-1)return e},action:function(t){var e=t.target.getAttribute("role");if(e&&nt.indexOf(e)>-1)return{feature:e}}},{selector:function(t){var e=t.source;if(e.getAttribute("data-spm-click"))return e},action:{feature:"custom",__continue:!0}},{selector:function(t){var e=t.source;if("pointer"===getComputedStyle(e).cursor)return e},action:{feature:"clickable"}}],defaultConfig:{containerProps:["data-autolog-container"],autologProps:["data-autolog","data-xux-log"],autologPropsHandler:function(t){var e=Z(t),r=e.feature,n=e.text,o=e.xpath,i=e.clk;return{feature:r,text:n,xpath:o,exp:e.exp,clk:i,extra:c(e,["feature","text","xpath","clk","exp","exposure"])}}}},at="START_LOAD_TO_AUTOLOG",st="IN_AEM_CONTAINER",ut="PLUGIN_START",ct="START_LOAD_TO_AUTOLOG_FROM_PLUGIN",lt="READY_TO_LOAD_BY_AUTOLOG",ft="READY_TO_LOAD_BY_AUTOLOG_TO_PLUGIN",dt=function(t){if("string"!=typeof t)return!1;return/^https:\/\/(dev.)?g.alicdn.com\/aes\/tracker-plugin-adata\//.test(t)},ht=function(t){var e=t.self,r=t.target,n=t.onMessage,o=function(t,e,r){var n=function(t){t.data&&"object"==typeof t.data&&1===t.data._aes_adata_msg_flag_&&setTimeout((function(){r(t.data,t)}),0)};return t.addEventListener("message",n,!1),{send:function(t,r){var n="function"==typeof e?e():e;n&&n.postMessage(s(t,{_aes_adata_msg_flag_:1}),r||"*")},destroy:function(){t.removeEventListener("message",n,!1)}}}(e,r,(function(t,e){n(t,e)})),i=o.send;return{send:function(t,e){i(t,e)},destroy:o.destroy}};!function(){try{if(window.parent&&window!==window.parent){window._aes_autolog_adata_loader_=!0;var t=ht({self:window,target:window.parent,onMessage:function(e,r){if(e.type===st)t&&t.send({type:lt},r&&r.origin);else if(e.type===at){var n=e.payload&&e.payload.adataScriptUrl;if(n&&dt(n)){window._aes_autolog_adata_plugin_version="3";var o=document.createElement("script");o.src=n,document.body.appendChild(o)}t&&t.destroy(),t=null}}})}}catch(t){console.error(t)}}(),function(){try{var t=ht({self:window,target:function(){var t=document.getElementById("aesAdataPluginIframe");return t&&t.contentWindow},onMessage:function(e,r){if(e.type===ut)t&&t.send({type:ft},r&&r.origin);else if(e.type===ct){if(window._aes_autolog_adata_plugin_loader_)return;var n=e.payload&&e.payload.adataScriptUrl;if(n&&dt(n)){window._aes_autolog_adata_plugin_loader_=!0,window._aes_autolog_adata_plugin_version="3";var o=document.createElement("script");o.src=n,document.body.appendChild(o)}t&&t.destroy(),t=null}}}),e=ht({self:window,target:window,onMessage:function(t,r){"AES_ADATA_PLUGIN_LOAD"===t.type&&(e&&e.send({type:"HAS_AES_AUTOLOG_TO_PLUGIN"},r&&r.origin),e&&e.destroy(),e=null)}})}catch(t){console.error(t)}}();e.default=function(t,e){void 0===e&&(e={});var r={registry:[],ruleList:[],target:document,registeredListeners:{},getConfig:function(){return n(t,e)},getConfigByKey:function(r){return function(t,e,r){return n(t,e)[r]}(t,e,r)}};window.AES_ADATA_INSTANCE_PUSH_QUEUE=window.AES_ADATA_INSTANCE_PUSH_QUEUE||[],window.AES_ADATA_INSTANCE_PUSH_QUEUE.push((function(){return t}));var o=function(){var t=r.getConfigByKey("targetSelector"),e=t?document.querySelector(t):document;r.target=e||document},a=function(){var e=r.getConfig();o(),rt&&(function(t,e){var r=t.target,n=t.registeredListeners;if(N(t),S){var o,i=function(t){var e=t.touches,r=t.changedTouches;if(!(e&&1!==e.length||r&&1!==r.length)){var n=r[0],i=n.pageX,a=n.pageY;o={time:L(),pageX:i,pageY:a}}},a=function(t){var r=t.changedTouches;if((!r||1===r.length)&&o){var n=r[0],i=n.pageX,a=n.pageY,s=L()-o.time,u=o.pageX-i|0,c=o.pageY-a|0;s<500&&u*u+c*c<36&&e(t),o=void 0}};r.addEventListener("touchstart",i),r.addEventListener("touchend",a),n.touchstart=i,n.touchend=a}else r.addEventListener("mousedown",e),n.mousedown=e}(r,(function(n){if(!1!==e.click&&n.target&&n.target instanceof Element){var o=P(r,n.target,"CLK");o&&o.feature&&(e.debug&&(console.warn("[aes-autolog] 发送AES点击日志",o),window.validLog(o,"2.0"),window.validNewLog(o,n.target,t.getConfig())),e.dryRun||t.log("autolog",o))}})),function(t,e){var r,n;et(t);var o,a,s=t.getConfig(),u=t.getConfigByKey("exposureSelector");!1!==s.exposure&&(t.expToken||(t.expToken=J("function"!=typeof u?{selectorFunc:function(){var e=s.autologProps,r=void 0===e?[]:e,n=s.containerProps,o=void 0===n?[]:n;if(!r.length&&!o.length)return[];var a=[],u=r.map((function(t){return"["+t+"]"})).join(","),c=r.length?i(t.target.querySelectorAll(u)):[];if(o.length){var l=o.map((function(t){return"["+t+"]"})).join(",");i(t.target.querySelectorAll(l)).forEach((function(t){if(t.getAttribute&&r.length){var e=r.map((function(e){return t.getAttribute(e)})).filter(Boolean)[0];"auto"!==s.exposure||e||a.push(t)}}))}return c.forEach((function(t){if(t.getAttribute&&r.length){var e=r.map((function(e){return t.getAttribute(e)})).filter(Boolean)[0],n=e?Z(e):{};"auto"!==s.exposure||tt(n,"false")?"manual"===s.exposure&&tt(n,"true")&&a.push(t):a.push(t)}})),a},duration:(null==(r=s.exposureProps)?void 0:r.duration)||300,threshold:(null==(n=s.exposureProps)?void 0:n.areaThreshold)||.5,onExposure:function(t){var r=t.element;e(r)}}:{selectorFunc:function(){try{return u()||[]}catch(t){return console.error(t),[]}},duration:(null==(o=s.exposureProps)?void 0:o.duration)||300,threshold:(null==(a=s.exposureProps)?void 0:a.areaThreshold)||.5,onExposure:function(t){var r=t.element;e(r)}})))}(r,(function(n){if(n&&n instanceof Element){var o=P(r,n,"EXP");o&&o.feature&&(e.debug&&(console.warn("[aes-autolog] 发送AES曝光日志",o),window.validNewLog(o,n,t.getConfig())),e.dryRun||t.log("autolog",o))}})))};return function(){o();var t=r.getConfig();O(r,it,{autologProps:t.autologProps,autologPropsHandler:t.autologPropsHandler,containerProps:t.containerProps}),!1===t.autoLoad||!1===t.click&&!1===t.exposure||a()}(),{addPlugin:function(t,e,n){O(r,t,e,n)},removePlugin:function(t,e){T(r,t,e)},start:a,stop:function(){rt&&(N(r),et(r))},autolog:function(e){void 0===e&&(e={});var n=r.getConfig(),o=e,i=o.target,a=o.feature,u=o.text,l=o.logType,f=void 0===l?"CLK":l,d=c(e,["target","feature","text","logType"]);if(!(i&&i instanceof Element))return console.error('Parameter "target" is not an Element!'),!1;var h=P(r,i,f,!0);if(h){var p=s(h,s({feature:a||h.feature,text:u||h.text},d));p&&p.feature&&(n.debug&&(console.warn("[aes-autolog] 发送AES日志",p),window.validLog(p,"2.0")),n.dryRun||t.log("autolog",p))}}}}}]).default}));!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@ali/aes-tracker-plugin-longtask/index",[],t):"object"==typeof exports?exports.AESPluginLongTask=t():e.AESPluginLongTask=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var i=function(e){for(var t=[],n=window,i=document,o=0,r=e.length;o<r;o++){var u=e[o];if(u===n||u===i)break;if(u.id){t.push("#".concat(u.id));break}u.className&&"string"==typeof u.className?t.push("."+u.className.split(/\s+/).filter((function(e){return!!e})).join(".")):t.push(u.nodeName)}return t.reverse().join(" ")},o=function(e){if("[object Array]"===Object.prototype.toString.apply(e))return i(e);for(var t=[],n=e;n;)t.push(n),n=n.parentNode;return i(t)},r=void 0!==document.hidden?{hidden:"hidden",visibilityChange:"visibilitychange"}:void 0!==document.webkitHidden?{hidden:"webkitHidden",visibilityChange:"webkitvisibilitychange"}:void 0!==document.msHidden?{hidden:"msHidden",visibilityChange:"msvisibilitychange"}:void 0,u=!!r;function a(e,t){if(window.PerformanceLongTaskTiming){var n;["pointerdown","touchstart","mousedown","keydown","mouseover"].forEach((function(e){document.addEventListener(e,(function(e){var t;n=(null===(t=e.composedPath)||void 0===t?void 0:t.call(e))||e.path||e.target}),{capture:!0,passive:!0})}));var i,a,d,c=new PerformanceObserver((function(t){t.getEntries().forEach((function(t){var i,r;i=function(){e.log("longtask",{startTime:t.startTime,duration:t.duration,xpath:n&&o(n)})},"function"==typeof requestIdleCallback?requestIdleCallback(i,{timeout:r||1e3}):setTimeout(i,0)}))}));c.observe({entryTypes:["longtask"]}),i=function(e){e?setTimeout((function(){c.observe({entryTypes:["longtask"]})}),100):c.disconnect()},u&&document.addEventListener(r.visibilityChange,d=function(e){a&&document.removeEventListener(r.visibilityChange,d),i(!document[r.hidden])})}}}]).default}));