@conecli/cone-render 0.8.15-alpha.3 → 0.8.15-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.ts +1 -1
- package/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.module.scss +2 -0
- package/dist/components/base/Exposure/index.h5.module.scss +2 -1
- package/dist/components/base/Exposure/index.h5.tsx +1 -1
- package/dist/components/base/Exposure/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.h5.module.scss +5 -7
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/Skeleton/index.tsx +1 -1
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/config/shop.ts +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +28 -27
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -0
- package/dist/utils/draExceptionAndProfile.ts +1 -0
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/jm-js-agent-jd-profile.js +1 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/api/Ptag/report_manager.js +1 -0
- package/dist/wxapp/common/JD.js +1 -0
- package/dist/wxapp/common/finger-report/index.js +1 -0
- package/dist/wxapp/common/request/params-sign.js +1 -0
- package/dist/wxapp/libs/sha256.js +191 -0
- package/package.json +5 -1
- package/dist/components/BuiltInComponentDefined.ts +0 -1
- package/dist/components/system/Banner/index.module.scss +0 -75
- package/dist/components/system/Banner/index.tsx +0 -1
- package/dist/components/system/PictureHotSpot/index.module.scss +0 -33
- package/dist/components/system/PictureHotSpot/index.old.tsx +0 -1
- package/dist/components/system/PictureHotSpot/index.tsx +0 -1
- package/dist/components/system/Video/index.module.scss +0 -23
- package/dist/components/system/Video/index.tsx +0 -1
- package/dist/libs/aes.min.js +0 -37
- package/dist/libs/mo.min.js +0 -4
- package/dist/modules/decorate/floor.tsx +0 -1
- package/dist/utils/draExceptionHandle.ts +0 -1
- package/dist/utils/jm-js-agent.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports.JdDraProfileAndException=e():t.JdDraProfileAndException=e()}(self,(function(){return function(){var t={223:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(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}function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=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?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 a,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}var s=Object.prototype.toString;function c(){var t,n,r,i,o,a,s=arguments.length<=0?void 0:arguments[0],l=1,p=arguments.length,d=!1;for("boolean"===typeof s?(d=s,s=(arguments.length<=1?void 0:arguments[1])||{},l=2):("object"!==e(s)&&"function"!==typeof s||null==s)&&(s={});l<p;++l)if(null!=(t=l<0||arguments.length<=l?void 0:arguments[l]))for(n in t)r=s[n],s!==(i=t[n])&&(d&&i&&(f(i)||(o=u(i)))?(o?(o=!1,a=r&&u(r)?r:[]):a=r&&f(r)?r:{},s[n]=c(d,a,i)):"undefined"!==typeof i&&(s[n]=i));return s}function u(t){return"[object Array]"===s.call(t)}function f(t){if(!t||"[object Object]"!==s.call(t))return!1;var e,n=Object.prototype.hasOwnProperty,r=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)}function l(t,n,r){if(r>=3)return encodeURIComponent(n)+"=[RECURSIVE]";r=r+1||1;var i=[];for(var o in t)if(t.hasOwnProperty(o)&&null!=o&&null!=t[o]){var a=n?"".concat(n,"[").concat(o,"]"):o,s=t[o],c="object"===e(s)?l(s,a,r):encodeURIComponent(a)+"="+encodeURIComponent(s);i.push(c)}return i.sort().join("&")}function p(t){var e,n,r=[],i=a(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;n=o,"[object String]"===s.call(n)?r.push(o.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):o&&o.source&&r.push(o.source)}}catch(c){i.e(c)}finally{i.f()}return r.length?new RegExp(r.join("|"),"i"):null}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.replace(/(^\s*)|(\s*$)/g,"")}var h=new function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(e){var n,r,i,o,a,s,c,u="",f=0;for(e=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(e);f<e.length;)o=(n=e.charCodeAt(f++))>>2,a=(3&n)<<4|(r=e.charCodeAt(f++))>>4,s=(15&r)<<2|(i=e.charCodeAt(f++))>>6,c=63&i,isNaN(r)?s=c=64:isNaN(i)&&(c=64),u=u+t.charAt(o)+t.charAt(a)+t.charAt(s)+t.charAt(c);return u},this.decode=function(e){var n,r,i,o,a,s,c="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)n=t.indexOf(e.charAt(u++))<<2|(o=t.indexOf(e.charAt(u++)))>>4,r=(15&o)<<4|(a=t.indexOf(e.charAt(u++)))>>2,i=(3&a)<<6|(s=t.indexOf(e.charAt(u++))),c+=String.fromCharCode(n),64!=a&&(c+=String.fromCharCode(r)),64!=s&&(c+=String.fromCharCode(i));return c=function(t){var e,n,r,i="",o=0;e=n=0;for(;o<t.length;)(e=t.charCodeAt(o))<128?(i+=String.fromCharCode(e),o++):e>191&&e<224?(n=t.charCodeAt(o+1),i+=String.fromCharCode((31&e)<<6|63&n),o+=2):(n=t.charCodeAt(o+1),r=t.charCodeAt(o+2),i+=String.fromCharCode((15&e)<<12|(63&n)<<6|63&r),o+=3);return i}(c),c}};function g(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.unshift("<JS Agent>:"),console.warn.apply(console,e)}function m(t,e){g("\u53d1\u9001\u670d\u52a1\u8bf7\u6c42\uff1a",t+="?"+l(e));var n=new Image;return n.src=t,n}function v(t){var e,n=[],r=/^\s*at((?:\s\S+)+) \(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,i=/^\s*(.+)@\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o=a(t.stack.split("\n"));try{for(o.s();!(e=o.n()).done;){var s=e.value,c=r.exec(s)||i.exec(s);if(c){var u={url:c[2],func:d(c[1]),line:Number(c[3]),column:Number(c[4])};n.push(u)}}}catch(t){o.e(t)}finally{o.f()}return n}var y=function(){function t(){n(this,t),this.init(),this.limit=5,this.actionInfo={userTraceDom:[],userTraceEvent:[],userTraceTs:[]}}return i(t,[{key:"pushLimit",value:function(t,e){t.push(e),t.length>this.limit&&t.shift()}},{key:"addItem",value:function(t,e){this.pushLimit(this.actionInfo.userTraceDom,encodeURIComponent(t)),this.pushLimit(this.actionInfo.userTraceEvent,e),this.pushLimit(this.actionInfo.userTraceTs,(new Date).getTime())}},{key:"init",value:function(){var t=this;window.addEventListener("click",(function(e){t.addItem(function(t){if(t instanceof Element)try{for(var n=[];t&&t.nodeType===Node.ELEMENT_NODE;){var r=t.nodeName.toLowerCase();if(t.id){r+="#"+t.id,n.unshift(r);break}for(var i=t,o=1;i=i.previousElementSibling;)i.nodeName.toLowerCase()==r&&o++;if(1!=o&&(r+=":nth-of-type("+o+")"),n.unshift(r),!(t=t.parentNode))break}return n.join(">").replace(/div/g,"d").replace(/span/g,"s").replace(/header/g,"h").replace(/footer/g,"f").replace(/nth-of-type/g,"nth")}catch(e){return""}}(e.target),"click")}),!1)}},{key:"getActionInfo",value:function(){return this.actionInfo}}],[{key:"getInstance",value:function(){return this.instance||(this.instance=new t),this.instance}}]),t}(),w=navigator.userAgent.toLowerCase(),b=w.split(";"),T=-1!=w.indexOf("jdapp"),S="jdlog"===b[1]?"android"===b[2]:"android"===b[1],E="jdlog"===b[1]?"iphone"===b[2]:"iphone"===b[1],A=-1!=w.indexOf("ipad");var _={id:null,endpoint:"//h5speed.m.jd.com/v3/exception",rate:1,ignoreErrors:[],ignoreUrls:[],stackLimit:10,flag:10,autoReport:!0},k={net:1,busniess:2,business:2,others:3,code:4,resource:5,unhandlerejection:6,fetcherror:7,ajaxerror:8,ajaxtimeout:9},C=1,j=2,I=function(){function t(){var e=this;n(this,t),this.VERSION="3.0.3-alpha.0",this._config=null,this._installed=!1,this._ignoreOnError=!1,this._lastException=null,this._needReport=!1,this._plugins={},this._ignoreErrors=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/(\w*\s*)missing \) after argument list(\w*\s*)/,/(\w*\s*)\'offsetWidth\'(\s*)of(\s*)null(\s*\w*)/],this._ignoreUrls=[/.jd-jssdk.min.js$/],this._interceptors=[],this._action=y.getInstance(),this._autoReport=!0,function(){var t=window&&window.navigator?navigator.userAgent:"",e=/^jdapp/i.test(t),n=/ip(hone|od)|ipad/i.test(t),r=/android/i.test(t)&&!n;return new Promise((function(t){if(e){var i="getNetWorkType";window[i]||(window[i]=function(e){t({status:"0",msg:"success",data:e})});try{n&&window.webkit?window.webkit.messageHandlers.JDAppUnite.postMessage({method:"getNetWorkType",params:i}):r&&window.JDAppUnite&&window.JDAppUnite.getNetWorkType(i)}catch(s){t({msg:"fail",data:"error"})}}else{if(window&&window.navigator){var o=navigator.connection||navigator.mozConnection||navigator.webkitConnection||{},a=o.type||o.effectiveType||"unknown";t({msg:"success",data:a})}t({msg:"fail",data:"error"})}}))}().then((function(t){"success"===t.msg&&(e.network=t.data)})).catch((function(t){}))}return i(t,[{key:"init",value:function(t){if(this._config=c({},_,t),this._needReport=Math.random()<this._config.rate,this._config.flag){if(this._installed)return;this._autoReport=!!this._config.autoReport,this._ignoreErrors=this._ignoreErrors.concat(this._config.ignoreErrors),this._ignoreErrors=p(this._ignoreErrors),this._ignoreUrls=this._ignoreUrls.concat(this._config.ignoreUrls),this._ignoreUrls=p(this._ignoreUrls),this._wrapBuiltIns(),this._installPlugins(),this._installed=!0}else g("config.flag \u6ca1\u6709\u914d\u7f6e\uff0c\u5fc5\u987b\u914d\u7f6eflag.");return this}},{key:"addPlugin",value:function(t){if("function"===typeof t&&t.name&&!this._plugins[t.name]){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this._plugins[t.name]={args:n,fn:t,installed:!1},this._installed&&this._installPlugins()}return this}},{key:"addInterceptor",value:function(t){"function"===typeof t&&(this._interceptors||(this._interceptors=[]),this._interceptors.push(t))}},{key:"removeInterceptor",value:function(t){if("function"===typeof t&&this._interceptors){var e=this._interceptors.indexOf(t);e>-1&&this._interceptors.splice(e,1)}}},{key:"_installPlugins",value:function(){for(var t in this._plugins){var e=this._plugins[t];e.installed||(e.fn.apply(this,[this].concat(e.args)),e.installed=!0)}}},{key:"reportException",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this,o={type:t.name,stack:v(t).slice(0,i._config.stackLimit)};if(o.stack.length){var a=o.stack[0];o.row=a.line,o.col=a.column,o.file=a.url}var s={errType:k.code,errCode:750,errMsg:t.message,exceptionInfo:o};e&&(s.extraData=e),s.errLevel="number"===typeof n?n:4,s.reType=r?C:j,this._ignoreErrors&&this._ignoreErrors.test(t.message)||this._ignoreUrls&&this._ignoreUrls.test(t.file)||this._send(s)}},{key:"report",value:function(t,n,r,i,o){var a;if(1===arguments.length&&"object"===e(arguments[0])){var s=arguments[0];a={errType:s.errType,errCode:s.errCode,errMsg:s.errMsg,errLevel:4,reType:C}}else a={errType:t,errCode:n,errMsg:r,reType:j},i&&(a.extraData=i),a.errLevel="number"===typeof o?o:4;this._send(a)}},{key:"reportByJSbridge",value:function(t,e,n,r){var i={errType:t,errCode:e,errMsg:n};r&&(i.extraData=r),T?this._sendByJSbridge(i):this._send(i)}},{key:"wrap",value:function(t){if(t){if(t._wrapped)return t._wrapped;var e=this;if("function"!==typeof t&&"function"===typeof t.handleEvent){var n=t.handleEvent;return t.handleEvent=function(){try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.apply(t,i)}catch(a){throw e.reportException(a,null,4,!0),e._ignoreNextOnError(),a}},t._wrapped=t,t}var r=function(){try{for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}catch(o){throw e.reportException(o,null,4,!0),e._ignoreNextOnError(),o}};return"function"!==typeof t?t:(t._wrapped=r,r)}}},{key:"_wrapBuiltIns",value:function(){if(this._autoReport){for(var t=this,e=0,n=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];e<n.length;e++){i(n[e])}r(window,"setTimeout",a),r(window,"setInterval",a),window.requestAnimationFrame&&r(window,"requestAnimationFrame",o),window.$&&window.$.fn&&window.$.fn.ready&&r($.fn,"ready",o),r(window,"onerror",(function(e){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t._ignoreOnError||t._ignoreErrors&&t._ignoreErrors.test(r[0])||t._ignoreUrls&&t._ignoreUrls.test(r[1])||t.reportException(r[4]||new Error("window.onerror"),null,4,!0),e&&e.apply(this,r)}})),window.addEventListener("error",(function(e){var n=e.target;if("SCRIPT"===n.tagName||"LINK"===n.tagName){var r=n.src||n.href;t.report({errType:k.resource,errCode:0,errMsg:"".concat(r," \u6ca1\u6709\u52a0\u8f7d\u6210\u529f.")})}}),!0)}function r(t,e,n){var r=t[e];t[e]=n(r)}function i(e){var n=window[e]&&window[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(r(n,"addEventListener",(function(e){return function(n,r,i,o){return e.call(this,n,t.wrap(r),i,o)}})),r(n,"removeEventListener",(function(t){return function(e,n,r){return t.call(this,e,n&&n._wrapped||n,r)}})))}function o(e){return function(n){return e.call(this,t.wrap(n))}}function a(e){return function(n,r){return e.call(this,t.wrap(n),r)}}}},{key:"_send",value:function(t){if(this._interceptors&&this._interceptors.length>0){var e,n=a(this._interceptors);try{for(n.s();!(e=n.n()).done;){if(!(t=(0,e.value)(t)))return}}catch(p){n.e(p)}finally{n.f()}}var r=JSON.stringify(t);if(r!==this._lastException&&(this._lastException=r,this._needReport)){var i=this._action.getActionInfo(),o=i.userTraceDom,s=i.userTraceEvent,u=i.userTraceTs,f=document.getElementsByTagName("title")[0]&&document.getElementsByTagName("title")[0].innerText||"",l={flag:this._config.flag,rts:Date.now(),libVer:this.VERSION,url:window.location.href.split("?")[0]||"",title:f,userTraceDom:o,userTraceEvent:s,userTraceTs:u,network:this.network||"unknown"};c(l,t),g(l),m(this._config.endpoint,{data:h.encode(JSON.stringify(l))})}}},{key:"_sendByJSbridge",value:function(t){if(this._interceptors&&this._interceptors.length>0){var e,n=a(this._interceptors);try{for(n.s();!(e=n.n()).done;){if(!(t=(0,e.value)(t)))return}}catch(y){n.e(y)}finally{n.f()}}var r=t,i=r.errType,o=r.errCode,s=r.errMsg,c=r.extraData,u=void 0===c?{}:c,f=this._action.getActionInfo(),l=f.userTraceDom,p=f.userTraceEvent,d=f.userTraceTs,h=document.getElementsByTagName("title")[0]&&document.getElementsByTagName("title")[0].innerText||"",m={errCode:o,flag:this._config.flag,rts:Date.now(),libVer:this.VERSION,title:h,userTraceDom:l,userTraceEvent:p,userTraceTs:d,network:this.network||"unknown"},v={businessType:"exceptionReport",params:{functionInfo:"".concat(i),errMsg:s,exceptionInfo:JSON.stringify(m),url:window.location.href.split("?")[0]||"",extra:JSON.stringify(u)}};g(v);try{!function(t){if(E||A)try{window.webkit&&window.webkit.messageHandlers.JDAppUnite.postMessage({method:"notifyMessageToNative",params:t})}catch(e){console.log("jsbridge \u4e0a\u62a5\u5f02\u5e38",e)}else if(S)try{window.JDAppUnite&&window.JDAppUnite.notifyMessageToNative(t)}catch(e){console.log("jsbridge \u4e0a\u62a5\u5f02\u5e38",e)}}(JSON.stringify(v))}catch(w){console.warn("report by bridge error...",w)}}},{key:"_ignoreNextOnError",value:function(){var t=this;this._ignoreOnError=!0,setTimeout((function(){return t._ignoreOnError=!1}))}}]),t}(),O=window.JSAgent,x=new I;x.noConflict=function(){return window.JSAgent=O,x},x.EXCEPTION_TYPE=k,t.exports=x},955:function(t,e,n){var r;!function(){var i="undefined"!=typeof window&&window===this?this:"undefined"!=typeof n.g&&null!=n.g?n.g:this,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function a(){a=function(){},i.Symbol||(i.Symbol=c)}var s=0;function c(t){return"jscomp_symbol_"+(t||"")+s++}function u(){a();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&o(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return f(this)}}),u=function(){}}function f(t){var e=0;return function(t){return u(),t={next:t},t[i.Symbol.iterator]=function(){return this},t}((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))}function l(t){u();var e=t[Symbol.iterator];return e?e.call(t):f(t)}function p(t){if(!(t instanceof Array)){t=l(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}var d=0;var h="img script iframe link audio video source".split(" ");function g(t,e){for(var n=(t=l(t)).next();!n.done;n=t.next())if(n=n.value,e.includes(n.nodeName.toLowerCase())||g(n.children,e))return!0;return!1}function m(t,e){if(2<t.length)return performance.now();for(var n=[],r=(e=l(e)).next();!r.done;r=e.next())r=r.value,n.push({timestamp:r.start,type:"requestStart"}),n.push({timestamp:r.end,type:"requestEnd"});for(r=(e=l(t)).next();!r.done;r=e.next())n.push({timestamp:r.value,type:"requestStart"});for(n.sort((function(t,e){return t.timestamp-e.timestamp})),t=t.length,e=n.length-1;0<=e;e--)switch((r=n[e]).type){case"requestStart":t--;break;case"requestEnd":if(2<++t)return r.timestamp;break;default:throw Error("Internal Error: This should never happen")}return 0}function v(t){t=t||{},this.w=!!t.useMutationObserver,this.u=t.minValue||null,t=window.__tti&&window.__tti.e;var e=window.__tti&&window.__tti.o;this.a=t?t.map((function(t){return{start:t.startTime,end:t.startTime+t.duration}})):[],e&&e.disconnect(),this.b=[],this.f=new Map,this.j=null,this.v=-1/0,this.i=!1,this.h=this.c=this.s=null,function(t,e){var n=XMLHttpRequest.prototype.send,r=d++;XMLHttpRequest.prototype.send=function(i){for(var o=[],a=0;a<arguments.length;++a)o[a-0]=arguments[a];var s=this;return t(r),this.addEventListener("readystatechange",(function(){4===s.readyState&&e(r)})),n.apply(this,o)}}(this.m.bind(this),this.l.bind(this)),function(t,e){var n=fetch;fetch=function(r){for(var i=[],o=0;o<arguments.length;++o)i[o-0]=arguments[o];return new Promise((function(r,o){var a=d++;t(a),n.apply(null,[].concat(p(i))).then((function(t){e(a),r(t)}),(function(t){e(t),o(t)}))}))}}(this.m.bind(this),this.l.bind(this)),function(t){t.c=new PerformanceObserver((function(e){for(var n=(e=l(e.getEntries())).next();!n.done;n=e.next())if("resource"===(n=n.value).entryType&&(t.b.push({start:n.fetchStart,end:n.responseEnd}),w(t,m(t.g,t.b)+5e3)),"longtask"===n.entryType){var r=n.startTime+n.duration;t.a.push({start:n.startTime,end:r}),w(t,r+5e3)}})),t.c.observe({entryTypes:["longtask","resource"]})}(this),this.w&&(this.h=function(t){var e=new MutationObserver((function(e){for(var n=(e=l(e)).next();!n.done;n=e.next())("childList"==(n=n.value).type&&g(n.addedNodes,h)||"attributes"==n.type&&h.includes(n.target.tagName.toLowerCase()))&&t(n)}));return e.observe(document,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["href","src"]}),e}(this.B.bind(this)))}function y(t){t.i=!0;var e=0<t.a.length?t.a[t.a.length-1].end:0,n=m(t.g,t.b);w(t,Math.max(n+5e3,e))}function w(t,e){!t.i||t.v>e||(clearTimeout(t.j),t.j=setTimeout((function(){var e=performance.timing.navigationStart,n=m(t.g,t.b);e=(window.a&&window.a.A?1e3*window.a.A().C-e:0)||performance.timing.domContentLoadedEventEnd-e;if(t.u)var r=t.u;else performance.timing.domContentLoadedEventEnd?r=(r=performance.timing).domContentLoadedEventEnd-r.navigationStart:r=null;var i=performance.now();null===r&&w(t,Math.max(n+5e3,i+1e3));var o=t.a;5e3>i-n?n=null:n=5e3>i-(n=o.length?o[o.length-1].end:e)?null:Math.max(n,r),n&&(t.s(n),clearTimeout(t.j),t.i=!1,t.c&&t.c.disconnect(),t.h&&t.h.disconnect()),w(t,performance.now()+1e3)}),e-performance.now()),t.v=e)}v.prototype.getFirstConsistentlyInteractive=function(){var t=this;return new Promise((function(e){t.s=e,"complete"==document.readyState?y(t):window.addEventListener("load",(function(){y(t)}))}))},v.prototype.m=function(t){this.f.set(t,performance.now())},v.prototype.l=function(t){this.f.delete(t)},v.prototype.B=function(){w(this,performance.now()+5e3)},i.Object.defineProperties(v.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this.f.values()))}}});var b={getFirstConsistentlyInteractive:function(t){return t=t||{},"PerformanceLongTaskTiming"in window?new v(t).getFirstConsistentlyInteractive():Promise.resolve(null)}};t.exports?t.exports=b:void 0===(r=function(){return b}.apply(e,[]))||(t.exports=r)}()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{default:function(){return G}});var t,e,i=n(223),o=n.n(i),a=n(955),s=n.n(a);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(){try{if(!(t="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))){for(var n=0;n<16;n++)e[n]=Math.floor(255*Math.random());return e}return t(e)}catch(i){for(var r=0;r<16;r++)e[r]=Math.floor(255*Math.random());return e}}e="function"===typeof Uint8Array?new Uint8Array(16):[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(var p=[],d=0;d<256;++d)p.push((d+256).toString(16).substr(1));var h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function g(t){return"string"===typeof t&&h.test(t)}function m(t,e,n){var r=(t=t||{}).random||(t.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[t[e+0]]+p[t[e+1]]+p[t[e+2]]+p[t[e+3]]+"-"+p[t[e+4]]+p[t[e+5]]+"-"+p[t[e+6]]+p[t[e+7]]+"-"+p[t[e+8]]+p[t[e+9]]+"-"+p[t[e+10]]+p[t[e+11]]+p[t[e+12]]+p[t[e+13]]+p[t[e+14]]+p[t[e+15]]).toLowerCase();if(!g(n))throw TypeError("Stringified UUID is invalid");return n}(r)}function v(t){if(t instanceof Element)try{for(var e=[];t&&t.nodeType===Node.ELEMENT_NODE;){var n=t.nodeName.toLowerCase();if(t.id){n+="#"+t.id,e.unshift(n);break}for(var r=t,i=1;r=r.previousElementSibling;)r.nodeName.toLowerCase()==n&&i++;if(1!=i&&(n+=":nth-of-type("+i+")"),e.unshift(n),!(t=t.parentNode))break}return e.join(">").replace(/div/g,"d").replace(/span/g,"s").replace(/header/g,"h").replace(/footer/g,"f").replace(/nth-of-type/g,"nth")}catch(o){return""}}var y=function(t){var e=t;return"number"==typeof t&&(e=Number(t.toFixed(2))),e},w=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,"reportData",{fcp:null,fp:null,lcp:[],fid:null,cls:null,tbt:null,clsInfo:[],tti:null,longTask:[],fps:[]})}var e,n,r;return e=t,n=[{key:"setFPS",value:function(t){this.reportData.fps.push(t)}},{key:"setFP",value:function(t){this.reportData.fp=t}},{key:"setFCP",value:function(t){this.reportData.fcp=t}},{key:"setLCP",value:function(t){this.reportData.lcp=t}},{key:"setFID",value:function(t){this.reportData.fid=t}},{key:"setCLS",value:function(t){this.reportData.cls=t,this.reportData.clsInfo=[]}},{key:"setCLSInfo",value:function(t){var e;null===(e=this.reportData.clsInfo)||void 0===e||e.push(t)}},{key:"setTTI",value:function(t){this.reportData.tti=t}},{key:"setLongTask",value:function(t){this.reportData.longTask.push(t)}},{key:"setTBT",value:function(){var t=this.reportData,e=t.longTask,n=t.fcp,r=t.tti;if(e.length>0){var i=0;e.forEach((function(t){n&&t.startTime>=n&&(null==r||t.startTime<=r)&&(i+=t.duration-50)})),this.reportData.tbt=y(i)}}},{key:"buildServerInfoParam",value:function(t){var e=[];for(var n in t){var r;e.push(n+"="+encodeURIComponent(null!==(r=t[n])&&void 0!==r?r:""))}return e.join("&")}},{key:"buildPerformanceParam",value:function(){var t=[],e=this.reportData,n=e.fp,r=e.fcp,i=e.lcp,o=e.fid,a=e.cls,s=e.clsInfo,c=e.tti,u=e.longTask,f=e.tbt,l=e.fps;t.push("fp=".concat(null!==n&&void 0!==n?n:"")),t.push("fcp=".concat(null!==r&&void 0!==r?r:"")),t.push("lcp=".concat(encodeURIComponent(JSON.stringify(i)))),t.push("fid=".concat(null!==o&&void 0!==o?o:"")),t.push("cls=".concat(null!==a&&void 0!==a?a:"")),t.push("clsInfo=".concat(encodeURIComponent(JSON.stringify(s)))),t.push("tti=".concat(null!==c&&void 0!==c?c:"")),t.push("fps=".concat(encodeURIComponent(JSON.stringify(l))));for(var p=[],d=0;d<u.length&&(p.push(u[d].duration),9!=d);d++);return t.push("longTask=".concat(encodeURIComponent(JSON.stringify(p)))),t.push("tbt=".concat(null!==f&&void 0!==f?f:"")),t.join("&")}},{key:"report",value:function(t){if(t&&void 0!=t.options.flag){this.setTBT();var e,n=this.buildServerInfoParam(t.getServerInfo()),r=this.buildPerformanceParam();try{var i=new Image,o="//h5speed.m.jd.com",a=t.options.serverDomain.match(/.*\.com/);e=a,"[object Array]"===Object.prototype.toString.call(e)&&a.length>0&&(o=a[0]),i.src="".concat(o,"/v2/speed/event?").concat(n,"&").concat(r)}catch(s){}}}}],r=[{key:"getInstance",value:function(){return this.instance||(this.instance=new t),this.instance}}],n&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();f(w,"instance",void 0);var b,T=[],S=6e3,E=function(t){"function"==typeof t&&T.push(t)},A=function(t,e){try{if(-1!=PerformanceObserver.supportedEntryTypes.indexOf(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){for(var n=t.getEntries(),r=0;r<n.length;r++)e(n[r])}));return n.observe({type:t,buffered:!0}),E((function(){n.disconnect()})),n}}catch(r){}},_=0,k=[],C=0,j=[],I=0,O=function(){var t=w.getInstance();A("layout-shift",(function(e){if(!e.hadRecentInput){var n=j[0],r=j[j.length-1];C&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(C+=e.value,j.push(e)):(C=e.value,j=[e]),C>_&&(_=C,k=j,t.setCLS(function(t){var e=t;return"number"==typeof t&&(e=Number(t.toFixed(4))),e}(_)),k.forEach((function(e){if(++I<=10)if(t.setCLSInfo(Number(e.value.toFixed(4))),e.sources){for(var n=[],r=0;r<e.sources.length;r++)n.push(v(e.sources[r].node));t.setCLSInfo(n.join("|"))}else t.setCLSInfo("null")})))}}))},x=!1,P=function(){!function(){var t=performance.now(),e=0,n=performance.now(),r=function r(){var i=performance.now(),o=i-n;n=i;var a=Math.round(1e3/o);e++,i>1e3+t&&((a=Math.round(1e3*e/(i-t)))<=20&&R.setFPS(a),e=0,t=i),0==x&&window.requestAnimationFrame(r)};r(),E((function(){x=!0}))}()},R=w.getInstance();var N=!1;function L(t){var e,n;null!==t&&void 0!==t&&null!==(e=t.options)&&void 0!==e&&e.flag&&("number"==typeof(n=t.performanceReportTime)&&n>=3e3&&(S=n,clearTimeout(b),b=setTimeout((function(){T&&T.length>0&&T.forEach((function(t){t()}))}),S)),N||(N=!0,function(t){if("function"!==typeof PerformanceObserver)return void console.log("not support PerformanceObserver");try{A("paint",(function(t){"first-contentful-paint"==t.name?w.getInstance().setFCP(y(t.startTime)):"first-paint"==t.name&&w.getInstance().setFP(y(t.startTime))})),function(){var t=w.getInstance();A("largest-contentful-paint",(function(e){var n=e.startTime;t.setLCP([y(n)+"",v(null===e||void 0===e?void 0:e.element)])}))}(),function(){var t=w.getInstance();A("first-input",(function(e){var n=e.processingStart-e.startTime;t.setFID(y(n))}))}(),s().getFirstConsistentlyInteractive().then((function(t){t&&w.getInstance().setTTI(y(t))})),function(){var t=w.getInstance();A("longtask",(function(e){t.setLongTask({startTime:e.startTime,duration:y(e.duration)})}))}(),O(),P();var e=w.getInstance();E((function(){e.report(t)}))}catch(n){}}(t)))}var D=[/index\.bundle\..{20,32}\.css/gi,/app\..{20,32}\.css/gi,/index\.bundle\..{20}\.js/gi,/app\..{20}\.js/gi,"unify.min.js"],M=[-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function U(t){M[t]=1}function F(t,e){for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&(t[n]=e[n])}function J(t,e){var n=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/.exec(t)[9];if(n&&""!==n)for(var r=n.split("&"),i=0;i<r.length;i++){var o=r[i].split("=");if(o[0]===e)return decodeURIComponent(o[1])}return!1}function q(t,e){return""===e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function B(t){var e=[];for(var n in t)if(t.hasOwnProperty(n)&&void 0!==t[n])try{e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]))}catch(r){}return e}function V(t){var e=this;if(!(this instanceof V))return new V(t);this._installed=!1,this._plugins=[],this.sid=m(),this.selected=!1,this.timing={},this.isReported=!1,this.performanceReportTime=8e3,this.options={serverUrl:"//h5speed.m.jd.com",serverDomain:"//h5speed.m.jd.com",flag:null,profilingRate:1,autoReport:!1,autoAddStaticReport:!1,autoAddApiReport:!1,autoAddImageReport:!1,plugins:[]},this.init(t),this.pitsData=[],this.staticFiles=[],this.staticFilesSpecialType=[],this.customKeyValueData={},this.CONST_CREATE_TIME_MS=1550731072251,this.CONST_REASONABLE_TIME_LIMIT=6e4,this.performance=window.performance,this.isPerformanceApiAvailable="undefined"!==typeof this.performance,this.isTimingApiAvailable=this.isPerformanceApiAvailable&&"undefined"!==typeof this.performance.timing,this.isGetEntriesApiAvailable=this.isPerformanceApiAvailable&&"function"===typeof this.performance.getEntries,function(){var t=window&&window.navigator?navigator.userAgent:"",e=/^jdapp/i.test(t),n=/ip(hone|od)|ipad/i.test(t),r=/android/i.test(t)&&!n;return new Promise((function(t){if(e){var i="getNetWorkType";window[i]||(window[i]=function(e){t({status:"0",msg:"success",data:e})});try{n&&window.webkit?window.webkit.messageHandlers.JDAppUnite.postMessage({method:"getNetWorkType",params:i}):r&&window.JDAppUnite.getNetWorkType(i)}catch(s){t({msg:"fail",data:"error"})}}else{if(window&&window.navigator){var o=navigator.connection||navigator.mozConnection||navigator.webkitConnection||{},a=o.type||o.effectiveType||"unknown";t({msg:"success",data:a})}t({msg:"fail",data:"error"})}}))}().then((function(t){"success"===t.msg&&(e.network=t.data)})).catch((function(t){}))}var W={init:function(t){if("number"===typeof t.flag&&!this._installed)return"object"===c(t)&&F(this.options,t),t.performanceReportTime&&(this.performanceReportTime=t.performanceReportTime),t.plugins&&(this._plugins=t.plugins),this.options.autoAddStaticReport&&(this.staticFiles=D),this.options.serverUrl=this.options.serverDomain+(12==this.options.flag?"/v2/speed/ware":"/v2/speed/activity"),this.selected=Math.random()<this.options.profilingRate,!0===this.options.autoReport&&this.enableAutoReport(),L(this),this._installed=!0,this._loadPlugins(),this},_loadPlugins:function(){var t=this;if(this._installed&&Array.isArray(this._plugins))try{this._plugins.map((function(e){return e.handler(t)}))}catch(e){console.error("@jmfe/jd-profiler \u6267\u884c\u63d2\u4ef6\u5931\u8d25",e)}},getTimingData:function(){var t,e={},n=this;e.hasPerformanceApi=n.isPerformanceApiAvailable?1:0,e.hasTimingApi=n.isTimingApiAvailable?1:0,e.hasGetEntriesApi=n.isGetEntriesApiAvailable?1:0,t=function(){var t=0;return window.chrome&&"function"===typeof window.chrome.loadTimes?t=1e3*window.chrome.loadTimes().firstPaintTime:n.isTimingApiAvailable&&"number"===typeof n.performance.timing.msFirstPaint&&(t=n.performance.timing.msFirstPaint),Math.round(t)}(),e.hasFirstPaintApi=t>0?1:0;try{if(n.isTimingApiAvailable){n.performance.timing.firstPaint=t;var r=n.performance.timing;e.domainLookup=r.domainLookupEnd-r.domainLookupStart,e.redirection=r.fetchStart-r.navigationStart,e.serverConnection=r.requestStart-r.connectStart,e.request2ResponseStart=r.responseStart-r.requestStart,e.responseStart2responseEnd=r.responseEnd-r.responseStart,e.request2ResponseEnd=r.responseEnd-r.requestStart,e.domInteractive=r.domInteractive-r.navigationStart,e.domContentLoaded=r.domContentLoadedEventStart-r.navigationStart,e.firstPaint=r.firstPaint-r.navigationStart,e.pageLoad=r.loadEventStart-r.navigationStart,e.backEnd=r.responseEnd-r.navigationStart,e.frontEnd=r.loadEventStart-r.responseEnd,e.loadEvent=r.loadEventEnd-r.loadEventStart}}catch(i){}return e},traversalResources:function(t){try{var e=t.indexOf("img")>=0,n=t.indexOf("api")>=0,r=null,i={},o={};if(!this.isGetEntriesApiAvailable)return i;r=this.performance.getEntries();for(var a=0;a<r.length;a++){var s,c,u,f=r[a],l=f.name,p=f.initiatorType;if(e&&"img"==p&&l.indexOf("h5speed.m.jd.com/v1/exception")<0){var d=l.split("!")[0].split("/"),h=d[d.length-1];c=parseInt(f.duration),i[h]=c}!n||"script"!=p&&"xmlhttprequest"!=p||(s=J(l,"functionId"))&&(u=J(l,"nickName"),c=parseInt(f.duration),u?i["api-"+u]=c:o[s]?(o[s]+=1,i["api-"+s+o[s]]=c):(o[s]=1,i["api-"+s]=c))}return i}catch(g){}},report:function(){try{if(this.selected&&!this.isReported&&null!==this.options.flag){var t=new Image,e=[];this.options.autoAddApiReport&&e.push("api"),this.options.autoAddImageReport&&e.push("img");var n=e.length>0,r=this.buildUrl(this.getServerInfo(),this.getTimingData(),n?this.traversalResources(e):{});r&&(t.src=r),this.isReported=!0}}catch(i){}},getServerInfo:function(){var t=location.href.split("?")[0],e=document.getElementsByTagName("title")[0]&&document.getElementsByTagName("title")[0].innerText||"";return{flag:this.options.flag,sid:this.sid,libVer:"4.1.0-alpha.0",url:t,rts:(new Date).getTime(),title:e,network:this.network}},moduleReport:function(t,e){try{var n,r,i=[],o=new Image,a={},s="";if("string"===typeof e&&(a.moduleId=e),"[object Object]"===Object.prototype.toString.call(t)&&(t=[t]),"[object Array]"===Object.prototype.toString.call(t)&&(t.forEach((function(t){if(t.number&&t.key&&t.time){if(t.number>35)throw new Error("\u53ea\u63d0\u4f9b1-35\u5751\u4f4d\u4e0a\u62a5");var e={};U(t.number),e["k"+t.number]=t.key,e["v"+t.number]=t.time,t.desc&&(e["s"+t.number]=t.desc||""),i.push(e)}})),i.length>0)){i.forEach((function(t){F(a,t)})),r=this.getServerInfo(),F(a,r),n=B(a),"[object Array]"===Object.prototype.toString.call(n)&&n.length>0&&(s=n.join("&"));var c=q("//h5speed.m.jd.com/v2/speed/event",s);c&&(o.src=c)}}catch(u){throw u}},addPits:function(t){try{var e=this;"[object Object]"===Object.prototype.toString.call(t)&&(t=[t]),"[object Array]"===Object.prototype.toString.call(t)&&t.forEach((function(t){if(t.number&&t.key&&t.time){if(r=t.number,0!==M[r])throw new Error("JdProfiler.addPits\u4f7f\u7528\u7684\u56fa\u5b9a\u5751\u4f4d\u5df2\u7ecf\u88ab\u5360\u7528\uff0c\u8bf7\u66f4\u6362");var n={};U(t.number),n["k"+t.number]=t.key,n["v"+t.number]=t.time,t.desc&&(n["s"+t.number]=t.desc||""),e.pitsData.push(n)}var r}))}catch(n){throw n}},add:function(t){this.addKeyValues(t)},detectStaticFile:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&void 0!==t[n]&&e.push(t[n]);this.staticFiles=this.staticFiles.concat(e)},addStaticFile:function(t){try{"[object Array]"===Object.prototype.toString.call(t)&&(this.staticFiles=this.staticFiles.concat(t))}catch(e){}},addStaticFileByLimitedType:function(t){try{"[object Object]"===Object.prototype.toString.call(t)?this.staticFilesSpecialType=this.staticFilesSpecialType.concat([t]):"[object Array]"===Object.prototype.toString.call(t)&&(this.staticFilesSpecialType=this.staticFilesSpecialType.concat(t))}catch(e){}},addKeyValues:function(t){try{"[object Object]"===Object.prototype.toString.call(t)&&F(this.customKeyValueData,t)}catch(e){}},buildUrl:function(t,e,n){var r={},i={},o=[],a=[],s=[],c={},u="",f=this;F(r,t),(o=B(r)).length>0&&(u=o.join("&"));var l=0;for(var p in e)e.hasOwnProperty(p)&&void 0!==e[p]&&(l++,s.push("p"+l+"="+e[p]));return s.length>0&&(u=u+"&"+s.join("&")),f.isGetEntriesApiAvailable&&f.staticFiles.length>0&&(c=function(t){var e,n,r={},i=null;return f.isGetEntriesApiAvailable?(i=f.performance.getEntries(),t.forEach((function(t){try{if(e=t){var o=function(t,e){var n=[];if(t&&e.length>0)for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t.test){var a=o.name.match(t);a&&a.length>0&&n.push({name:a,time:o.duration})}else-1!==o.name.indexOf(t)&&n.push({name:t,time:o.duration})}return n}(e,i);o.forEach((function(t){t&&(n=parseInt(t.time))>=0&&(r[encodeURIComponent(t.name)]=n)}))}}catch(a){}})),r):r}(f.staticFiles),F(c,n),F(c,f.customKeyValueData),"[object Object]"===Object.prototype.toString.call(c)&&Object.getOwnPropertyNames(c).length>0&&(u=u+"&resources="+JSON.stringify(c))),f.isGetEntriesApiAvailable&&f.staticFilesSpecialType.length>0&&function(t){var e=null;f.isGetEntriesApiAvailable&&(e=f.performance.getEntries()),t.forEach((function(t){try{t&&function(t,e){var n=t.name,r=t.type,i=t.number,o=t.key;if(!(n&&r&&i&&o&&e.length>0))throw new Error("\u6307\u5b9a\u9759\u6001\u8d44\u6e90\u4e0a\u62a5\u7c7b\u578b\u53c2\u6570\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5\u5165\u53c2");for(var a=0,s=e.length;a<s;a++){var c=e[a];if(n.test){c.name.match(n),f.addPits({number:i,key:o,time:parseInt(c[r]),desc:t.desc});break}if(-1!==c.name.indexOf(n)){f.addPits({number:i,key:o,time:parseInt(c[r]),desc:t.desc});break}}}(t,e)}catch(n){}}))}(f.staticFilesSpecialType),f.isTimingApiAvailable&&f.pitsData.length>0&&(f.pitsData.forEach((function(t){F(i,t)})),a=B(i),"[object Array]"===Object.prototype.toString.call(a)&&a.length>0&&(u=u+"&"+a.join("&"))),q(this.options.serverUrl,u)},enableAutoReport:function(){var t=this;window.addEventListener("pageshow",(function(){window.setTimeout((function(){t.report()}),3e3)}),!1)}};V.prototype=W;var $=V({serverUrl:"//h5speed.m.jd.com",flag:null,profilingRate:1,autoReport:!1,autoAddStaticReport:!1,autoAddApiReport:!1,autoAddImageReport:!1});!0===$.options.autoReport&&$.enableAutoReport();var G={JSAgent:o(),jdProfiler:$}}(),r}()}));
|
package/dist/utils/utils.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
exceptionReportFn
|
|
3
2
|
if(isProd && isWxMinAndWxapp){
|
|
4
3
|
shopContentContainerListData = shopContentContainerListData.filter(
|
|
5
4
|
(item) =>
|
|
6
5
|
item.floors.length > 0 &&
|
|
7
6
|
!isIsvContainer(item.containerId, shopContentFloorListData, shopContentContainerListData)
|
|
8
7
|
)
|
|
9
8
|
}
|
|
10
9
|
exceptionReportFn(
|
|
11
10
|
`店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
12
11
|
)
|
|
13
12
|
const isIsvContainer = (containerId, floorListData, containerListData) => {
|
|
14
13
|
const objContainer = containerListData.find(item => item.containerId === containerId)
|
|
15
14
|
(itemUid) => {
|
|
16
15
|
const objectFloor = floorListData.find(floorItem => itemUid === floorItem.uid)
|
|
17
16
|
return objectFloor?.floorExtInfo?.moduleFlag === FloorModuleType.ISVDESIGNERH5MODULE
|
|
18
17
|
}
|
|
19
18
|
)?? false
|
|
19
|
+
import Taro from '@tarojs/taro'
|
|
20
20
|
exceptionReportFn
|
|
21
21
|
if(isProd && isWxMinAndWxapp){
|
|
22
22
|
shopContentContainerListData = shopContentContainerListData.filter(
|
|
23
23
|
(item) =>
|
|
24
24
|
item.floors.length > 0 &&
|
|
25
25
|
!isIsvContainer(item.containerId, shopContentFloorListData, shopContentContainerListData)
|
|
26
26
|
)
|
|
27
27
|
}
|
|
28
28
|
exceptionReportFn(
|
|
29
29
|
`店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
30
30
|
)
|
|
31
31
|
const isIsvContainer = (containerId, floorListData, containerListData) => {
|
|
32
32
|
const objContainer = containerListData.find(item => item.containerId === containerId)
|
|
33
33
|
(itemUid) => {
|
|
34
34
|
const objectFloor = floorListData.find(floorItem => itemUid === floorItem.uid)
|
|
35
35
|
return RemoteLoadFloorList.includes(objectFloor?.floorExtInfo?.moduleFlag)
|
|
36
36
|
}
|
|
37
37
|
)?? false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class ReportManager {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ParamsSign from "@legos/js-security-jdxcx";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class FingerReport {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const paramsSign = ({data}) => {
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Secure Hash Algorithm (SHA256)
|
|
4
|
+
* http://www.webtoolkit.info/
|
|
5
|
+
*
|
|
6
|
+
* Original code by Angel Marin, Paul Johnston.
|
|
7
|
+
*
|
|
8
|
+
**/
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
function SHA256(s) {
|
|
11
|
+
var chrsz = 8
|
|
12
|
+
var hexcase = 0
|
|
13
|
+
function safe_add(x, y) {
|
|
14
|
+
var lsw = (x & 0xffff) + (y & 0xffff)
|
|
15
|
+
var msw = (x >> 16) + (y >> 16) + (lsw >> 16)
|
|
16
|
+
return (msw << 16) | (lsw & 0xffff)
|
|
17
|
+
}
|
|
18
|
+
function S(X, n) {
|
|
19
|
+
return (X >>> n) | (X << (32 - n))
|
|
20
|
+
}
|
|
21
|
+
function R(X, n) {
|
|
22
|
+
return X >>> n
|
|
23
|
+
}
|
|
24
|
+
function Ch(x, y, z) {
|
|
25
|
+
return (x & y) ^ (~x & z)
|
|
26
|
+
}
|
|
27
|
+
function Maj(x, y, z) {
|
|
28
|
+
return (x & y) ^ (x & z) ^ (y & z)
|
|
29
|
+
}
|
|
30
|
+
function Sigma0256(x) {
|
|
31
|
+
return S(x, 2) ^ S(x, 13) ^ S(x, 22)
|
|
32
|
+
}
|
|
33
|
+
function Sigma1256(x) {
|
|
34
|
+
return S(x, 6) ^ S(x, 11) ^ S(x, 25)
|
|
35
|
+
}
|
|
36
|
+
function Gamma0256(x) {
|
|
37
|
+
return S(x, 7) ^ S(x, 18) ^ R(x, 3)
|
|
38
|
+
}
|
|
39
|
+
function Gamma1256(x) {
|
|
40
|
+
return S(x, 17) ^ S(x, 19) ^ R(x, 10)
|
|
41
|
+
}
|
|
42
|
+
function core_sha256(m, l) {
|
|
43
|
+
var K = new Array(
|
|
44
|
+
0x428a2f98,
|
|
45
|
+
0x71374491,
|
|
46
|
+
0xb5c0fbcf,
|
|
47
|
+
0xe9b5dba5,
|
|
48
|
+
0x3956c25b,
|
|
49
|
+
0x59f111f1,
|
|
50
|
+
0x923f82a4,
|
|
51
|
+
0xab1c5ed5,
|
|
52
|
+
0xd807aa98,
|
|
53
|
+
0x12835b01,
|
|
54
|
+
0x243185be,
|
|
55
|
+
0x550c7dc3,
|
|
56
|
+
0x72be5d74,
|
|
57
|
+
0x80deb1fe,
|
|
58
|
+
0x9bdc06a7,
|
|
59
|
+
0xc19bf174,
|
|
60
|
+
0xe49b69c1,
|
|
61
|
+
0xefbe4786,
|
|
62
|
+
0xfc19dc6,
|
|
63
|
+
0x240ca1cc,
|
|
64
|
+
0x2de92c6f,
|
|
65
|
+
0x4a7484aa,
|
|
66
|
+
0x5cb0a9dc,
|
|
67
|
+
0x76f988da,
|
|
68
|
+
0x983e5152,
|
|
69
|
+
0xa831c66d,
|
|
70
|
+
0xb00327c8,
|
|
71
|
+
0xbf597fc7,
|
|
72
|
+
0xc6e00bf3,
|
|
73
|
+
0xd5a79147,
|
|
74
|
+
0x6ca6351,
|
|
75
|
+
0x14292967,
|
|
76
|
+
0x27b70a85,
|
|
77
|
+
0x2e1b2138,
|
|
78
|
+
0x4d2c6dfc,
|
|
79
|
+
0x53380d13,
|
|
80
|
+
0x650a7354,
|
|
81
|
+
0x766a0abb,
|
|
82
|
+
0x81c2c92e,
|
|
83
|
+
0x92722c85,
|
|
84
|
+
0xa2bfe8a1,
|
|
85
|
+
0xa81a664b,
|
|
86
|
+
0xc24b8b70,
|
|
87
|
+
0xc76c51a3,
|
|
88
|
+
0xd192e819,
|
|
89
|
+
0xd6990624,
|
|
90
|
+
0xf40e3585,
|
|
91
|
+
0x106aa070,
|
|
92
|
+
0x19a4c116,
|
|
93
|
+
0x1e376c08,
|
|
94
|
+
0x2748774c,
|
|
95
|
+
0x34b0bcb5,
|
|
96
|
+
0x391c0cb3,
|
|
97
|
+
0x4ed8aa4a,
|
|
98
|
+
0x5b9cca4f,
|
|
99
|
+
0x682e6ff3,
|
|
100
|
+
0x748f82ee,
|
|
101
|
+
0x78a5636f,
|
|
102
|
+
0x84c87814,
|
|
103
|
+
0x8cc70208,
|
|
104
|
+
0x90befffa,
|
|
105
|
+
0xa4506ceb,
|
|
106
|
+
0xbef9a3f7,
|
|
107
|
+
0xc67178f2
|
|
108
|
+
)
|
|
109
|
+
var HASH = new Array(0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19)
|
|
110
|
+
var W = new Array(64)
|
|
111
|
+
var a, b, c, d, e, f, g, h, i, j
|
|
112
|
+
var T1, T2
|
|
113
|
+
m[l >> 5] |= 0x80 << (24 - (l % 32))
|
|
114
|
+
m[(((l + 64) >> 9) << 4) + 15] = l
|
|
115
|
+
for (var i = 0; i < m.length; i += 16) {
|
|
116
|
+
a = HASH[0]
|
|
117
|
+
b = HASH[1]
|
|
118
|
+
c = HASH[2]
|
|
119
|
+
d = HASH[3]
|
|
120
|
+
e = HASH[4]
|
|
121
|
+
f = HASH[5]
|
|
122
|
+
g = HASH[6]
|
|
123
|
+
h = HASH[7]
|
|
124
|
+
for (var j = 0; j < 64; j++) {
|
|
125
|
+
if (j < 16) W[j] = m[j + i]
|
|
126
|
+
else W[j] = safe_add(safe_add(safe_add(Gamma1256(W[j - 2]), W[j - 7]), Gamma0256(W[j - 15])), W[j - 16])
|
|
127
|
+
T1 = safe_add(safe_add(safe_add(safe_add(h, Sigma1256(e)), Ch(e, f, g)), K[j]), W[j])
|
|
128
|
+
T2 = safe_add(Sigma0256(a), Maj(a, b, c))
|
|
129
|
+
h = g
|
|
130
|
+
g = f
|
|
131
|
+
f = e
|
|
132
|
+
e = safe_add(d, T1)
|
|
133
|
+
d = c
|
|
134
|
+
c = b
|
|
135
|
+
b = a
|
|
136
|
+
a = safe_add(T1, T2)
|
|
137
|
+
}
|
|
138
|
+
HASH[0] = safe_add(a, HASH[0])
|
|
139
|
+
HASH[1] = safe_add(b, HASH[1])
|
|
140
|
+
HASH[2] = safe_add(c, HASH[2])
|
|
141
|
+
HASH[3] = safe_add(d, HASH[3])
|
|
142
|
+
HASH[4] = safe_add(e, HASH[4])
|
|
143
|
+
HASH[5] = safe_add(f, HASH[5])
|
|
144
|
+
HASH[6] = safe_add(g, HASH[6])
|
|
145
|
+
HASH[7] = safe_add(h, HASH[7])
|
|
146
|
+
}
|
|
147
|
+
return HASH
|
|
148
|
+
}
|
|
149
|
+
function str2binb(str) {
|
|
150
|
+
var bin = Array()
|
|
151
|
+
var mask = (1 << chrsz) - 1
|
|
152
|
+
for (var i = 0; i < str.length * chrsz; i += chrsz) {
|
|
153
|
+
bin[i >> 5] |= (str.charCodeAt(i / chrsz) & mask) << (24 - (i % 32))
|
|
154
|
+
}
|
|
155
|
+
return bin
|
|
156
|
+
}
|
|
157
|
+
function Utf8Encode(string) {
|
|
158
|
+
string = string.replace(/\r\n/g, '\n')
|
|
159
|
+
var utftext = ''
|
|
160
|
+
for (var n = 0; n < string.length; n++) {
|
|
161
|
+
var c = string.charCodeAt(n)
|
|
162
|
+
if (c < 128) {
|
|
163
|
+
utftext += String.fromCharCode(c)
|
|
164
|
+
} else if (c > 127 && c < 2048) {
|
|
165
|
+
utftext += String.fromCharCode((c >> 6) | 192)
|
|
166
|
+
utftext += String.fromCharCode((c & 63) | 128)
|
|
167
|
+
} else {
|
|
168
|
+
utftext += String.fromCharCode((c >> 12) | 224)
|
|
169
|
+
utftext += String.fromCharCode(((c >> 6) & 63) | 128)
|
|
170
|
+
utftext += String.fromCharCode((c & 63) | 128)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return utftext
|
|
174
|
+
}
|
|
175
|
+
function binb2hex(binarray) {
|
|
176
|
+
var hex_tab = hexcase ? '0123456789ABCDEF' : '0123456789abcdef'
|
|
177
|
+
var str = ''
|
|
178
|
+
for (var i = 0; i < binarray.length * 4; i++) {
|
|
179
|
+
str +=
|
|
180
|
+
hex_tab.charAt((binarray[i >> 2] >> ((3 - (i % 4)) * 8 + 4)) & 0xf) +
|
|
181
|
+
hex_tab.charAt((binarray[i >> 2] >> ((3 - (i % 4)) * 8)) & 0xf)
|
|
182
|
+
}
|
|
183
|
+
return str
|
|
184
|
+
}
|
|
185
|
+
s = Utf8Encode(s)
|
|
186
|
+
return binb2hex(core_sha256(str2binb(s), s.length * chrsz))
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
module.exports = {
|
|
190
|
+
sha256_digest: SHA256,
|
|
191
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conecli/cone-render",
|
|
3
|
-
"version": "0.8.15-alpha.
|
|
3
|
+
"version": "0.8.15-alpha.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/"
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"./components": "./dist/open/components/index.ts",
|
|
11
11
|
"./modules": "./dist/open/modules/index.ts",
|
|
12
12
|
"./_api": "./dist/api",
|
|
13
|
+
"./_config/": "./dist/config/",
|
|
13
14
|
"./_common/": "./dist/common/",
|
|
15
|
+
"./_components/": "./dist/components/",
|
|
14
16
|
"./_interface": "./dist/interface",
|
|
15
17
|
"./_jumpEventReport": "./dist/jumpEventReport",
|
|
16
18
|
"./_jumpEventReport/": "./dist/jumpEventReport/",
|
|
@@ -45,6 +47,7 @@
|
|
|
45
47
|
"dev:quickapp": "npm run build:quickapp -- --watch",
|
|
46
48
|
"compressWatch": "gulp compressWatch --gulpfile ./publish/gulpfile.js",
|
|
47
49
|
"compress": "gulp compress --gulpfile ./publish/gulpfile.js",
|
|
50
|
+
"build": "npm run compress",
|
|
48
51
|
"check": "gulp check --gulpfile ./publish/gulpfile.js"
|
|
49
52
|
},
|
|
50
53
|
"browserslist": [
|
|
@@ -69,6 +72,7 @@
|
|
|
69
72
|
"@tarojs/taro-loader": "3.5.4",
|
|
70
73
|
"@tarojs/webpack5-runner": "3.5.4",
|
|
71
74
|
"art-template": "^4.13.2",
|
|
75
|
+
"gulp-filter": "^7.0.0",
|
|
72
76
|
"normalize.css": "^8.0.1",
|
|
73
77
|
"raf": "^3.4.1",
|
|
74
78
|
"react": "^18.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { FloorModuleType } from '../common/const'
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
.d-banner {
|
|
2
|
-
width: 100%;
|
|
3
|
-
position: relative;
|
|
4
|
-
|
|
5
|
-
.list {
|
|
6
|
-
width: 100%;
|
|
7
|
-
position: relative;
|
|
8
|
-
&.d-h5-list {
|
|
9
|
-
//height: auto;
|
|
10
|
-
position: relative;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.d-item {
|
|
14
|
-
position: relative;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.d-img-wrap {
|
|
19
|
-
position: relative;
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
}
|
|
24
|
-
.d-img {
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
position: relative;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:global {
|
|
33
|
-
// h5 圆点选中样式
|
|
34
|
-
.swiper-pagination-bullet-active,
|
|
35
|
-
// 小程序圆点选中样式
|
|
36
|
-
.wx-swiper-dot-active {
|
|
37
|
-
width: 32px;
|
|
38
|
-
border-radius: 8px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.d-decorate-banner {
|
|
43
|
-
position: relative;
|
|
44
|
-
|
|
45
|
-
:global {
|
|
46
|
-
|
|
47
|
-
.swiper-pagination {
|
|
48
|
-
position: absolute;
|
|
49
|
-
bottom: 10PX;
|
|
50
|
-
left: 0;
|
|
51
|
-
right: 0;
|
|
52
|
-
font-size: 0;
|
|
53
|
-
text-align: center;
|
|
54
|
-
z-index: 10;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.swiper-pagination-bullet {
|
|
59
|
-
margin: 0 4PX;
|
|
60
|
-
width: 8PX;
|
|
61
|
-
height: 8PX;
|
|
62
|
-
display: inline-block;
|
|
63
|
-
border-radius: 50%;
|
|
64
|
-
background: #000;
|
|
65
|
-
background: rgba(0, 0, 0, .3);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.swiper-pagination-bullet-active {
|
|
69
|
-
width: 32px;
|
|
70
|
-
border-radius: 8px;
|
|
71
|
-
background: #fa2c19;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { ComponentInterFace } from '../../../interface/component'
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
.d-img-wrap {
|
|
2
|
-
position: relative;
|
|
3
|
-
.d-img {
|
|
4
|
-
display: block;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: auto;
|
|
7
|
-
// height: 100%;
|
|
8
|
-
// 在h5中父级有高度,子元素img不设置高度自适应或有精度丢失
|
|
9
|
-
img {
|
|
10
|
-
height: 100%;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.d-sku-price {
|
|
14
|
-
position: absolute;
|
|
15
|
-
}
|
|
16
|
-
.d-sku-price-container {
|
|
17
|
-
position: absolute;
|
|
18
|
-
line-height: 1.1;
|
|
19
|
-
.d-yec-sys {
|
|
20
|
-
font-size: 24px;
|
|
21
|
-
}
|
|
22
|
-
.d-yec-dec {
|
|
23
|
-
font-size: 28px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.d-price-text {
|
|
27
|
-
}
|
|
28
|
-
:global {
|
|
29
|
-
//.Mini-price{
|
|
30
|
-
// color: transparent;
|
|
31
|
-
//}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import React, { useRef } from 'react'
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.d-video-wrap {
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
|
|
6
|
-
.d-video-play {
|
|
7
|
-
display: block;
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
background-color: transparent;
|
|
12
|
-
-webkit-backface-visibility: hidden;
|
|
13
|
-
-webkit-transform: translate3d(0, 0, 0);
|
|
14
|
-
//video {
|
|
15
|
-
// border-radius: 24px;
|
|
16
|
-
// overflow: hidden;
|
|
17
|
-
//}
|
|
18
|
-
//taro-video-core {
|
|
19
|
-
// border-radius: 24px;
|
|
20
|
-
// overflow: hidden;
|
|
21
|
-
//}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useRef } from 'react'
|
package/dist/libs/aes.min.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
CryptoJS v3.1.2
|
|
3
|
-
code.google.com/p/crypto-js
|
|
4
|
-
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
|
5
|
-
code.google.com/p/crypto-js/wiki/License
|
|
6
|
-
*/
|
|
7
|
-
var CryptoJS=CryptoJS||function(u,p){var d={},l=d.lib={},s=function(){},t=l.Base={extend:function(a){s.prototype=this;var c=new s;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)});c.init.prototype=c;c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
|
8
|
-
r=l.WordArray=t.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=p?c:4*a.length},toString:function(a){return(a||v).stringify(this)},concat:function(a){var c=this.words,e=a.words,j=this.sigBytes;a=a.sigBytes;this.clamp();if(j%4)for(var k=0;k<a;k++)c[j+k>>>2]|=(e[k>>>2]>>>24-8*(k%4)&255)<<24-8*((j+k)%4);else if(65535<e.length)for(k=0;k<a;k+=4)c[j+k>>>2]=e[k>>>2];else c.push.apply(c,e);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<
|
|
9
|
-
32-8*(c%4);a.length=u.ceil(c/4)},clone:function(){var a=t.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],e=0;e<a;e+=4)c.push(4294967296*u.random()|0);return new r.init(c,a)}}),w=d.enc={},v=w.Hex={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++){var k=c[j>>>2]>>>24-8*(j%4)&255;e.push((k>>>4).toString(16));e.push((k&15).toString(16))}return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j+=2)e[j>>>3]|=parseInt(a.substr(j,
|
|
10
|
-
2),16)<<24-4*(j%8);return new r.init(e,c/2)}},b=w.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++)e.push(String.fromCharCode(c[j>>>2]>>>24-8*(j%4)&255));return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j++)e[j>>>2]|=(a.charCodeAt(j)&255)<<24-8*(j%4);return new r.init(e,c)}},x=w.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(c){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},
|
|
11
|
-
q=l.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=x.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,e=c.words,j=c.sigBytes,k=this.blockSize,b=j/(4*k),b=a?u.ceil(b):u.max((b|0)-this._minBufferSize,0);a=b*k;j=u.min(4*a,j);if(a){for(var q=0;q<a;q+=k)this._doProcessBlock(e,q);q=e.splice(0,a);c.sigBytes-=j}return new r.init(q,j)},clone:function(){var a=t.clone.call(this);
|
|
12
|
-
a._data=this._data.clone();return a},_minBufferSize:0});l.Hasher=q.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){q.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,e){return(new a.init(e)).finalize(b)}},_createHmacHelper:function(a){return function(b,e){return(new n.HMAC.init(a,
|
|
13
|
-
e)).finalize(b)}}});var n=d.algo={};return d}(Math);
|
|
14
|
-
(function(){var u=CryptoJS,p=u.lib.WordArray;u.enc.Base64={stringify:function(d){var l=d.words,p=d.sigBytes,t=this._map;d.clamp();d=[];for(var r=0;r<p;r+=3)for(var w=(l[r>>>2]>>>24-8*(r%4)&255)<<16|(l[r+1>>>2]>>>24-8*((r+1)%4)&255)<<8|l[r+2>>>2]>>>24-8*((r+2)%4)&255,v=0;4>v&&r+0.75*v<p;v++)d.push(t.charAt(w>>>6*(3-v)&63));if(l=t.charAt(64))for(;d.length%4;)d.push(l);return d.join("")},parse:function(d){var l=d.length,s=this._map,t=s.charAt(64);t&&(t=d.indexOf(t),-1!=t&&(l=t));for(var t=[],r=0,w=0;w<
|
|
15
|
-
l;w++)if(w%4){var v=s.indexOf(d.charAt(w-1))<<2*(w%4),b=s.indexOf(d.charAt(w))>>>6-2*(w%4);t[r>>>2]|=(v|b)<<24-8*(r%4);r++}return p.create(t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();
|
|
16
|
-
(function(u){function p(b,n,a,c,e,j,k){b=b+(n&a|~n&c)+e+k;return(b<<j|b>>>32-j)+n}function d(b,n,a,c,e,j,k){b=b+(n&c|a&~c)+e+k;return(b<<j|b>>>32-j)+n}function l(b,n,a,c,e,j,k){b=b+(n^a^c)+e+k;return(b<<j|b>>>32-j)+n}function s(b,n,a,c,e,j,k){b=b+(a^(n|~c))+e+k;return(b<<j|b>>>32-j)+n}for(var t=CryptoJS,r=t.lib,w=r.WordArray,v=r.Hasher,r=t.algo,b=[],x=0;64>x;x++)b[x]=4294967296*u.abs(u.sin(x+1))|0;r=r.MD5=v.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},
|
|
17
|
-
_doProcessBlock:function(q,n){for(var a=0;16>a;a++){var c=n+a,e=q[c];q[c]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360}var a=this._hash.words,c=q[n+0],e=q[n+1],j=q[n+2],k=q[n+3],z=q[n+4],r=q[n+5],t=q[n+6],w=q[n+7],v=q[n+8],A=q[n+9],B=q[n+10],C=q[n+11],u=q[n+12],D=q[n+13],E=q[n+14],x=q[n+15],f=a[0],m=a[1],g=a[2],h=a[3],f=p(f,m,g,h,c,7,b[0]),h=p(h,f,m,g,e,12,b[1]),g=p(g,h,f,m,j,17,b[2]),m=p(m,g,h,f,k,22,b[3]),f=p(f,m,g,h,z,7,b[4]),h=p(h,f,m,g,r,12,b[5]),g=p(g,h,f,m,t,17,b[6]),m=p(m,g,h,f,w,22,b[7]),
|
|
18
|
-
f=p(f,m,g,h,v,7,b[8]),h=p(h,f,m,g,A,12,b[9]),g=p(g,h,f,m,B,17,b[10]),m=p(m,g,h,f,C,22,b[11]),f=p(f,m,g,h,u,7,b[12]),h=p(h,f,m,g,D,12,b[13]),g=p(g,h,f,m,E,17,b[14]),m=p(m,g,h,f,x,22,b[15]),f=d(f,m,g,h,e,5,b[16]),h=d(h,f,m,g,t,9,b[17]),g=d(g,h,f,m,C,14,b[18]),m=d(m,g,h,f,c,20,b[19]),f=d(f,m,g,h,r,5,b[20]),h=d(h,f,m,g,B,9,b[21]),g=d(g,h,f,m,x,14,b[22]),m=d(m,g,h,f,z,20,b[23]),f=d(f,m,g,h,A,5,b[24]),h=d(h,f,m,g,E,9,b[25]),g=d(g,h,f,m,k,14,b[26]),m=d(m,g,h,f,v,20,b[27]),f=d(f,m,g,h,D,5,b[28]),h=d(h,f,
|
|
19
|
-
m,g,j,9,b[29]),g=d(g,h,f,m,w,14,b[30]),m=d(m,g,h,f,u,20,b[31]),f=l(f,m,g,h,r,4,b[32]),h=l(h,f,m,g,v,11,b[33]),g=l(g,h,f,m,C,16,b[34]),m=l(m,g,h,f,E,23,b[35]),f=l(f,m,g,h,e,4,b[36]),h=l(h,f,m,g,z,11,b[37]),g=l(g,h,f,m,w,16,b[38]),m=l(m,g,h,f,B,23,b[39]),f=l(f,m,g,h,D,4,b[40]),h=l(h,f,m,g,c,11,b[41]),g=l(g,h,f,m,k,16,b[42]),m=l(m,g,h,f,t,23,b[43]),f=l(f,m,g,h,A,4,b[44]),h=l(h,f,m,g,u,11,b[45]),g=l(g,h,f,m,x,16,b[46]),m=l(m,g,h,f,j,23,b[47]),f=s(f,m,g,h,c,6,b[48]),h=s(h,f,m,g,w,10,b[49]),g=s(g,h,f,m,
|
|
20
|
-
E,15,b[50]),m=s(m,g,h,f,r,21,b[51]),f=s(f,m,g,h,u,6,b[52]),h=s(h,f,m,g,k,10,b[53]),g=s(g,h,f,m,B,15,b[54]),m=s(m,g,h,f,e,21,b[55]),f=s(f,m,g,h,v,6,b[56]),h=s(h,f,m,g,x,10,b[57]),g=s(g,h,f,m,t,15,b[58]),m=s(m,g,h,f,D,21,b[59]),f=s(f,m,g,h,z,6,b[60]),h=s(h,f,m,g,C,10,b[61]),g=s(g,h,f,m,j,15,b[62]),m=s(m,g,h,f,A,21,b[63]);a[0]=a[0]+f|0;a[1]=a[1]+m|0;a[2]=a[2]+g|0;a[3]=a[3]+h|0},_doFinalize:function(){var b=this._data,n=b.words,a=8*this._nDataBytes,c=8*b.sigBytes;n[c>>>5]|=128<<24-c%32;var e=u.floor(a/
|
|
21
|
-
4294967296);n[(c+64>>>9<<4)+15]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360;n[(c+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;b.sigBytes=4*(n.length+1);this._process();b=this._hash;n=b.words;for(a=0;4>a;a++)c=n[a],n[a]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;return b},clone:function(){var b=v.clone.call(this);b._hash=this._hash.clone();return b}});t.MD5=v._createHelper(r);t.HmacMD5=v._createHmacHelper(r)})(Math);
|
|
22
|
-
(function(){var u=CryptoJS,p=u.lib,d=p.Base,l=p.WordArray,p=u.algo,s=p.EvpKDF=d.extend({cfg:d.extend({keySize:4,hasher:p.MD5,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,r){for(var p=this.cfg,s=p.hasher.create(),b=l.create(),u=b.words,q=p.keySize,p=p.iterations;u.length<q;){n&&s.update(n);var n=s.update(d).finalize(r);s.reset();for(var a=1;a<p;a++)n=s.finalize(n),s.reset();b.concat(n)}b.sigBytes=4*q;return b}});u.EvpKDF=function(d,l,p){return s.create(p).compute(d,
|
|
23
|
-
l)}})();
|
|
24
|
-
CryptoJS.lib.Cipher||function(u){var p=CryptoJS,d=p.lib,l=d.Base,s=d.WordArray,t=d.BufferedBlockAlgorithm,r=p.enc.Base64,w=p.algo.EvpKDF,v=d.Cipher=t.extend({cfg:l.extend(),createEncryptor:function(e,a){return this.create(this._ENC_XFORM_MODE,e,a)},createDecryptor:function(e,a){return this.create(this._DEC_XFORM_MODE,e,a)},init:function(e,a,b){this.cfg=this.cfg.extend(b);this._xformMode=e;this._key=a;this.reset()},reset:function(){t.reset.call(this);this._doReset()},process:function(e){this._append(e);return this._process()},
|
|
25
|
-
finalize:function(e){e&&this._append(e);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(b,k,d){return("string"==typeof k?c:a).encrypt(e,b,k,d)},decrypt:function(b,k,d){return("string"==typeof k?c:a).decrypt(e,b,k,d)}}}});d.StreamCipher=v.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var b=p.mode={},x=function(e,a,b){var c=this._iv;c?this._iv=u:c=this._prevBlock;for(var d=0;d<b;d++)e[a+d]^=
|
|
26
|
-
c[d]},q=(d.BlockCipherMode=l.extend({createEncryptor:function(e,a){return this.Encryptor.create(e,a)},createDecryptor:function(e,a){return this.Decryptor.create(e,a)},init:function(e,a){this._cipher=e;this._iv=a}})).extend();q.Encryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize;x.call(this,e,a,c);b.encryptBlock(e,a);this._prevBlock=e.slice(a,a+c)}});q.Decryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize,d=e.slice(a,a+c);b.decryptBlock(e,a);x.call(this,
|
|
27
|
-
e,a,c);this._prevBlock=d}});b=b.CBC=q;q=(p.pad={}).Pkcs7={pad:function(a,b){for(var c=4*b,c=c-a.sigBytes%c,d=c<<24|c<<16|c<<8|c,l=[],n=0;n<c;n+=4)l.push(d);c=s.create(l,c);a.concat(c)},unpad:function(a){a.sigBytes-=a.words[a.sigBytes-1>>>2]&255}};d.BlockCipher=v.extend({cfg:v.cfg.extend({mode:b,padding:q}),reset:function(){v.reset.call(this);var a=this.cfg,b=a.iv,a=a.mode;if(this._xformMode==this._ENC_XFORM_MODE)var c=a.createEncryptor;else c=a.createDecryptor,this._minBufferSize=1;this._mode=c.call(a,
|
|
28
|
-
this,b&&b.words)},_doProcessBlock:function(a,b){this._mode.processBlock(a,b)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,this.blockSize);var b=this._process(!0)}else b=this._process(!0),a.unpad(b);return b},blockSize:4});var n=d.CipherParams=l.extend({init:function(a){this.mixIn(a)},toString:function(a){return(a||this.formatter).stringify(this)}}),b=(p.format={}).OpenSSL={stringify:function(a){var b=a.ciphertext;a=a.salt;return(a?s.create([1398893684,
|
|
29
|
-
1701076831]).concat(a).concat(b):b).toString(r)},parse:function(a){a=r.parse(a);var b=a.words;if(1398893684==b[0]&&1701076831==b[1]){var c=s.create(b.slice(2,4));b.splice(0,4);a.sigBytes-=16}return n.create({ciphertext:a,salt:c})}},a=d.SerializableCipher=l.extend({cfg:l.extend({format:b}),encrypt:function(a,b,c,d){d=this.cfg.extend(d);var l=a.createEncryptor(c,d);b=l.finalize(b);l=l.cfg;return n.create({ciphertext:b,key:c,iv:l.iv,algorithm:a,mode:l.mode,padding:l.padding,blockSize:a.blockSize,formatter:d.format})},
|
|
30
|
-
decrypt:function(a,b,c,d){d=this.cfg.extend(d);b=this._parse(b,d.format);return a.createDecryptor(c,d).finalize(b.ciphertext)},_parse:function(a,b){return"string"==typeof a?b.parse(a,this):a}}),p=(p.kdf={}).OpenSSL={execute:function(a,b,c,d){d||(d=s.random(8));a=w.create({keySize:b+c}).compute(a,d);c=s.create(a.words.slice(b),4*c);a.sigBytes=4*b;return n.create({key:a,iv:c,salt:d})}},c=d.PasswordBasedCipher=a.extend({cfg:a.cfg.extend({kdf:p}),encrypt:function(b,c,d,l){l=this.cfg.extend(l);d=l.kdf.execute(d,
|
|
31
|
-
b.keySize,b.ivSize);l.iv=d.iv;b=a.encrypt.call(this,b,c,d.key,l);b.mixIn(d);return b},decrypt:function(b,c,d,l){l=this.cfg.extend(l);c=this._parse(c,l.format);d=l.kdf.execute(d,b.keySize,b.ivSize,c.salt);l.iv=d.iv;return a.decrypt.call(this,b,c,d.key,l)}})}();
|
|
32
|
-
(function(){for(var u=CryptoJS,p=u.lib.BlockCipher,d=u.algo,l=[],s=[],t=[],r=[],w=[],v=[],b=[],x=[],q=[],n=[],a=[],c=0;256>c;c++)a[c]=128>c?c<<1:c<<1^283;for(var e=0,j=0,c=0;256>c;c++){var k=j^j<<1^j<<2^j<<3^j<<4,k=k>>>8^k&255^99;l[e]=k;s[k]=e;var z=a[e],F=a[z],G=a[F],y=257*a[k]^16843008*k;t[e]=y<<24|y>>>8;r[e]=y<<16|y>>>16;w[e]=y<<8|y>>>24;v[e]=y;y=16843009*G^65537*F^257*z^16843008*e;b[k]=y<<24|y>>>8;x[k]=y<<16|y>>>16;q[k]=y<<8|y>>>24;n[k]=y;e?(e=z^a[a[a[G^z]]],j^=a[a[j]]):e=j=1}var H=[0,1,2,4,8,
|
|
33
|
-
16,32,64,128,27,54],d=d.AES=p.extend({_doReset:function(){for(var a=this._key,c=a.words,d=a.sigBytes/4,a=4*((this._nRounds=d+6)+1),e=this._keySchedule=[],j=0;j<a;j++)if(j<d)e[j]=c[j];else{var k=e[j-1];j%d?6<d&&4==j%d&&(k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255]):(k=k<<8|k>>>24,k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255],k^=H[j/d|0]<<24);e[j]=e[j-d]^k}c=this._invKeySchedule=[];for(d=0;d<a;d++)j=a-d,k=d%4?e[j]:e[j-4],c[d]=4>d||4>=j?k:b[l[k>>>24]]^x[l[k>>>16&255]]^q[l[k>>>
|
|
34
|
-
8&255]]^n[l[k&255]]},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._keySchedule,t,r,w,v,l)},decryptBlock:function(a,c){var d=a[c+1];a[c+1]=a[c+3];a[c+3]=d;this._doCryptBlock(a,c,this._invKeySchedule,b,x,q,n,s);d=a[c+1];a[c+1]=a[c+3];a[c+3]=d},_doCryptBlock:function(a,b,c,d,e,j,l,f){for(var m=this._nRounds,g=a[b]^c[0],h=a[b+1]^c[1],k=a[b+2]^c[2],n=a[b+3]^c[3],p=4,r=1;r<m;r++)var q=d[g>>>24]^e[h>>>16&255]^j[k>>>8&255]^l[n&255]^c[p++],s=d[h>>>24]^e[k>>>16&255]^j[n>>>8&255]^l[g&255]^c[p++],t=
|
|
35
|
-
d[k>>>24]^e[n>>>16&255]^j[g>>>8&255]^l[h&255]^c[p++],n=d[n>>>24]^e[g>>>16&255]^j[h>>>8&255]^l[k&255]^c[p++],g=q,h=s,k=t;q=(f[g>>>24]<<24|f[h>>>16&255]<<16|f[k>>>8&255]<<8|f[n&255])^c[p++];s=(f[h>>>24]<<24|f[k>>>16&255]<<16|f[n>>>8&255]<<8|f[g&255])^c[p++];t=(f[k>>>24]<<24|f[n>>>16&255]<<16|f[g>>>8&255]<<8|f[h&255])^c[p++];n=(f[n>>>24]<<24|f[g>>>16&255]<<16|f[h>>>8&255]<<8|f[k&255])^c[p++];a[b]=q;a[b+1]=s;a[b+2]=t;a[b+3]=n},keySize:8});u.AES=p._createHelper(d)})();
|
|
36
|
-
|
|
37
|
-
export default CryptoJS;
|
package/dist/libs/mo.min.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// version 0.0.8
|
|
3
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.jm=e.jm||{},e.jm.mpagent={}))}(this,function(e){"use strict";var t,n=!1,a=!1,o=!1,i=!1,s="develop";"undefined"!=typeof tt&&tt?(t=tt,a=!0):"undefined"!=typeof swan&&swan?(t=swan,o=!0):"undefined"!=typeof wx&&wx?(t=wx,n=!0):"undefined"!=typeof jd&&jd&&(t=jd,i=!0);var c=256,u=256,d=6e5,p=1500,f=!0,l=!0,h=5,g=[500,1500],m="2.6.4",v="MP_UUID",y="CONFIG_MONITOR",S="SAMPLING",D="SETDATA_THRESHOLD",T="SETDATA_TRACE",E="SETDATA_TRACEHINT",O="SETDATA_TIME_INTERVAL",q="REQUEST_HEADER_DATA",x="REQUEST_RESPONSE_DATA",b="recordCustomTime",I="RECORD_METHOD",R="request",w="api",k=["success","fail"];var P=Object.assign({latitude:"",longitude:"",accuracy:"",net:""},function(){var e={appid:"",envVersion:"",appVersion:""};if(n){var r=t.getAccountInfoSync().miniProgram;e.appid=r.appId,e.envVersion=r.envVersion,e.appVersion=r.version}else if(a)e.envVersion=t.env.VERSION;else if(o){let t=swan.getEnvInfoSync();t instanceof Error||(e.envVersion=t.env)}return e}(),function(){var e={};if(i)t.getSystemInfo({success(t){for(var n in(e=t).machineType=e.model,delete e.model,e.os=e.system,delete e.system,e.screen=e.screenWidth+"*"+e.screenHeight,delete e.screenWidth,delete e.screenHeight,e.sdkVersion=e.SDKVersion,delete e.SDKVersion,console.log(e),e)e[n]=e[n].toString();P=Object.assign({},e)}});else{e=t.getSystemInfoSync(),console.log(e),delete e.safeArea,e.machineType=e.model,delete e.model;var n=e.system.split(" ");for(var r in e.os=n[0],e.osVersion=n[1],delete e.system,e.screen=e.screenWidth+"*"+e.screenHeight,delete e.screenWidth,delete e.screenHeight,e.sdkVersion=e.SDKVersion,delete e.SDKVersion,e)e[r]=e[r].toString()}return e}()),L={mpVersion:"0.0.8",hookApp:function(e){return 0<=Xe(P,m)||!Te()?e:Le.apply(this,arguments)},hookPage:function(e){return 0<=Xe(P,m)||!Te()?e:He.apply(this,arguments)},hookComponent:function(e){return 0<=Xe(P,m)||!Te()?e:Fe.apply(this,arguments)},request:Ue},j={machineCode:function(){var e=t.getStorageSync(v);e||(e=function(){function e(e){return e<0?NaN:e<=30?0|Math.random()*(1<<e):e<=53?(0|Math.random()*(1<<30))+(0|Math.random()*(1<<e-30))*(1<<30):NaN}function t(e,t){for(var n=e.toString(16),r=t-n.length,a="0";0<r;r>>>=1,a+=a)1&r&&(n=a+n);return n}return t(e(32),8)+"-"+t(e(16),4)+"-"+t(16384|e(12),4)+"-"+t(32768|e(14),4)+"-"+t(e(48),12)}(),t.setStorageSync(v,e));return e}(),mpVersion:"0.0.8"},A=ye(),N={context:null},H={},M=[],F=[],C=t.request,_={},V={},K=[],J=0,U={},B={stuck:!1,firstLoad:0,jsError:!1,netError:!1},z={canSend:!1,sent:!1,apiRemain:0,isResetPerformanceData:!1},G=[],W=!1,Q=!1;c=256,u=256,d=6e5;function X(e){return function(t){return"Array"===e&&Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object "+e+"]"}}function Y(e){return X("String")(e)}function Z(e){return X("Array")(e)}function $(e){return X("Function")(e)}function ee(e){return X("Object")(e)}function te(e){return X("Number")(e)}var ne=le(S),re=le(I)||!1,ae=le(q)||H.reqHeaderData||!1,oe=le(x)||H.reqResponseData||!0;function ie(e,t){return function(){if($(t))try{t.apply(this,arguments)}catch(e){}if($(e))return e.apply(this,arguments)}}function se(e,t,n){return function(){var r;if($(t))try{t.apply(this,arguments)}catch(e){}if($(e)&&(r=e.apply(this,arguments)),$(n))try{n.apply(this,arguments)}catch(e){}return r}}function ce(){for(var e=0;e<arguments.length;e++)if(null!=arguments[e])return arguments[e]}function ue(e,t){var n="",r=!1;try{n=e.errMsg?e.errMsg:e,n=JSON.stringify(n)}catch(e){n="",r=!0}return t?{error:r,value:n}:n}function de(e,t){var n;return n=ee(e)?ue(e):Y(e)?e:"",t&&(n=n.substring(0,t)),n}function pe(e){return null!=e&&te(e)}function fe(e){return null!=e&&function(e){return X("Boolean")(e)}(e)}function le(e){var n=t.getStorageSync(y);if(n&&ee(n))return n[e]}function he(){return+new Date}function ge(){J=he()}function me(){M=[]}function ve(){return M.slice()}function ye(){return{pageId:0,requestId:0,apiId:0,setData:{threshold:ce(le(D),p),setDataTrace:ce(le(T),f),setDataTraceHint:ce(le(E),l),setDataTimeInterval:ce(le(O),g),stuck:!1,max:0,currentSegmentTime:0,data:{},requestBridge:[]},request:{headerData:ce(le(q),ae),responseData:ce(le(x),oe)},reqStat:{currentSegmentTime:0,data:{}},apis:[],lastSetDataInOnReady:0,stuck:!1,jsError:!1,netError:!1,recordFirstLoad:!1}}function Se(){B={stuck:!1,firstLoad:0,jsError:!1,netError:!1}}function De(e,n){var r=this,a={};e.forEach(function(e){var t=e.key,o=e.storeKey,i=e.validFunc;i&&i.call(r,n[t])&&(H[t]=n[t],a[o]=n[t])}),function(e){var n=t.getStorageSync(y);if(n&&ee(n)||(n={}),e)for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.setStorageSync(y,n)}(a)}function Te(){return W}function Ee(e,t,n,r,a){var o;this.id=++A.pageId,this.parent=e||null,this.name=t||"<root>",this.type=n||"event",this.subType="event"===this.type?r||"tap":r,this.requests=[],this.apis=[],this.remain=(o={},["request","api"].forEach(function(e){o[e]={current:0,children:0}}),o),this.start=he(),this.endTime=null,this.data=a;var i=this,s=H&&H.eventTimeout||d;this.interval=setTimeout(function(){i.timeout()},s),this.closed=!1,this.path=U.current,this.prevPath=U.prev}function Oe(e,t){if(ee(e)&&$(e.handler)){var n=e.name,r=e.handler,a=e.afterHandler;t[n]=se(t[n],r,a)}}function qe(e){return H.ignoredPages&&Z(H.ignoredPages)?H.ignoredPages.indexOf(e)<0:!H.pages||!Z(H.pages)||-1<H.pages.indexOf(e)}function xe(e){var n=Object.assign({},j,P||{},{appOnLaunch:_.onLaunch+""||"",appOnShow:_.onShow+""||"",appOnHide:_.onHide+""||""},{appid:H.appKey},{wxAppid:P.appid},{dimension:"app",app:"vapp",curTime:he().toString()});H.appKey&&H.url&&t.request({url:"".concat(H.url,"/v2/report?functionId=vappGetRule&appid="+H.serverName),data:{body:JSON.stringify(n)},header:{"content-type":"application/x-www-form-urlencoded"},method:"POST",_no_record:!0,success:function(e){var n,r,a,o=e.data||{},i=e.statusCode,s=o.data;200===i&&s&&pe(s.sampling)&&(ne=s.sampling)&&function(e){var n=t.getStorageSync(y);if(n&&ee(n)||(n={}),e)for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.setStorageSync(y,n)}((a=ne,(r=S)in(n={})?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n)),200===i&&De([{key:"setdataThreshold",storeKey:D,validFunc:pe},{key:"setdataTrace",storeKey:T,validFunc:fe},{key:"setdataTraceHint",storeKey:E,validFunc:fe},{key:"requestHeaderData",storeKey:q,validFunc:fe},{key:"requestResponseData",storeKey:x,validFunc:fe},{key:"recordMethod",storeKey:I,validFunc:fe}],s)},complete:function(){e&&e(ne)}})}function be(e,t,n){for(var r in t)if(t.hasOwnProperty(r)&&t[r]&&0<t[r].count&&("request"==n&&t[r].url||"setData"==n)){var a=t[r];a.traces=void 0!=t[r].traces?JSON.stringify(t[r].traces):"[]",e.push(Object.assign(a||{},{occurTime:+r},{type:n,typeId:1,chId:"setData"==n?21:23}))}}function Ie(e){var t=[];return e.length>0&&e.forEach(function(e){var n,r,a,o,i={};i.occurTime=e.occurTime,i.stack=e.stack,i.type="error",i.errorType=(n=e.stack,/ReferenceError/.test(n)?"ReferenceError":/TypeError/.test(n)?"TypeError":/URIError/.test(n)?"URIError":/RangeError/.test(n)?"RangeError":/SyntaxError/.test(n)?"SyntaxError":"Error"),i.methods=(r=e.methods,a=getCurrentPages(),o={},a.length&&(o=a[a.length-1]),r.forEach(function(e){e.currentRoute||(e.currentRoute=U.current?U.current:"",e.prevRoute=U.prev?U.prev:"",e.options=o.options?o.options:"")}),JSON.stringify(r)),i.typeId=1,i.chId=20,t.push(i)}),t}function Re(e){return e.forEach(function(e){for(var t in e)e[t]=e[t]+"";return e}),e}function we(e){if(Q&&(z.canSend=!0,!z.sent&&z.canSend)){var n=getCurrentPages(),r={};n.length&&(r=n[n.length-1]);var a=Re(Ie(K.slice())),o=function(){var e=[],t=[],n=[];be(e,A.setData.data,"setData"),be(n,A.reqStat.data,"request");var r={jsError:(K&&0<K.length).toString(),netError:A.netError.toString(),stuck:A.stuck.toString(),threshold:ce(A.setData.threshold,p).toString(),setDataTrace:ce(A.setData.setDataTrace,f).toString(),setDataTraceHint:ce(A.setData.setDataTraceHint,l).toString(),max:A.setData.max.toString()};if(B={jsError:K&&0<K.length,netError:A.netError,stuck:A.stuck},0<e.length&&(t=A.setData.requestBridge).forEach(function(e){e.type="requestBridge",e.typeId=1,e.chId=22}),V.onLoad){var a=A.lastSetDataInOnReady;if(a=a||V.onReady){var o=a-V.onLoad;o=0<o?o:0,r.firstLoad=o+""}}return{allData:r,setData:e,requestBridge:t,requestData:n}}();!function(e){M.push({occurTime:he(),route:e,type:"route",typeId:1,chId:19})}(U.current);var c=Re(ve()),u=Re(o.setData),d=Re(o.requestBridge),h=Re(o.requestData),g=function(e){var t=0,n=[];return e.length>0&&(e.forEach(function(e){n.push(parseInt(e.duration))}),n.sort(),t=n[n.length-1]+""),t}(h),m=function(e){var t,n=0,r=[];return e.length>0&&(r=e.sort((t="endTime",function(e,n){return e[t]-n[t]})),n=V.onLoad?r[0].end-V.onLoad:r[0].end-r[0].start),n+""}(h);c[0]&&(c[0].firstResponse=m);var v=Re(A.apis),y=Object.assign({},{dimension:"page",app:"vapp",curTime:he().toString(),maxRequest:g+"",path:U.current,pageOnLoad:V.onLoad+""||"",pageOnshow:V.onShow+""||"",pageOnReady:V.onReady+""||"",pageOnHide:V.onHide+""||"",appOnLaunch:_.onLaunch+""||"",appOnShow:_.onShow+""||"",appOnHide:_.onHide+""||"",data:[],options:r.options?JSON.stringify(r.options):"",fromPath:U.prev||""},Object.assign({},j,P||{},{wxAppid:P.appid}),{appid:H.appKey},0<J?{customTime:J}:{},o.allData);v.length>0&&(y.data=y.data.concat(v)),c.length>0&&(y.data=y.data.concat(c)),a.length>0&&(y.data=y.data.concat(a)),u.length>0&&(y.data=y.data.concat(u)),d.length>0&&(y.data=y.data.concat(d)),h.length>0&&(y.data=y.data.concat(h)),i&&(y.envVersion=s),t.request({url:"".concat(H.url,"/v2/report?functionId=vappReport&appid="+H.serverName),data:{body:JSON.stringify(y)},header:{"content-type":"application/x-www-form-urlencoded"},method:"POST",_no_record:!0,success:function(){}}),me(),F=[],V={},K=[],J=0,z.apiRemain=0,A=ye(),z.needClearDeferredData=!0,z.sent=!0,z.canSend=!1}}function ke(e){if(Q){var n=Object.assign({},j,P||{},{appOnLaunch:_.onLaunch+""||"",appOnShow:_.onShow+""||"",appOnHide:_.onHide+""||""},{appid:H.appKey},{wxAppid:P.appid},{dimension:"app",app:"vapp",curTime:he().toString()});e&&(n.data=e.routeTrack,n.closePath=e.closePath,n.jsError=e.metric.jsError.toString(),n.netError=e.metric.netError.toString(),n.stuck=e.metric.stuck.toString()),i&&(n.envVersion=s),t.request({url:"".concat(H.url,"/v2/report?functionId=vappReport&appid="+H.serverName),data:{body:JSON.stringify(n)},header:{"content-type":"application/x-www-form-urlencoded"},method:"POST",_no_record:!0,success:function(){}})}}setInterval(xe,d),Ee.prototype.end=function(e,t){if(!this.closed){if(e&&(e.type===R||e.type===w)){var n=e.requests||[],r=e.apis||[];this.requests.map(function(t){"".concat(t.url,"-").concat(t.requestId)===e.name&&(t.requests=n,t.apis=r)}),this.apis.map(function(t){"".concat(t.name,"-").concat(t.apiId)===e.name&&(t.requests=n,t.apis=r)})}(this.isNoRemain()||t)&&(this.endTime=he(),this.closed=!0,this.interval&&clearTimeout(this.interval),this.parent&&this.parent.end(this))}},Ee.prototype.isNoRemain=function(e){var t=!0;for(var n in this.remain)if(this.remain.hasOwnProperty(n)&&!(this.remain[n].current<=0&&(e||this.remain[n].children<=0))){t=!1;break}return t},Ee.prototype.timeout=function(){this.end(null,!0)},Ee.prototype.setData=function(e){this.data=e},Ee.prototype.hasPrevAssignedData=function(){return this.requests&&0<this.requests.length||this.apis&&0<this.apis.length},Ee.prototype.canEnd=function(e,t){return this.isNoRemain(!0)},Ee.prototype.updateRemain=function(e,t){t=t||R;var n=e||0;this.remain[t].current=this.remain[t].current+n;for(var r=this.parent;r;)r.remain[t].children=r.remain[t].children+n,r=r.parent},Object.defineProperty(Ee.prototype,"current",{get:function(){return N.context},enumerable:!0,configurable:!0}),Object.defineProperty(Ee,"createEvent",{value:function(e,t,n,r,a){return new Ee(e,t,n||"event",r||null,a)},enumerable:!0,configurable:!0,writable:!0});var Pe=[{name:"onLaunch",handler:function(e){_.onLaunch=he(),function(){ne=ne||+H.sampleRate||1;var e=Math.random();Q=e<=ne}();var n=e.path,r=JSON.stringify(e.query),a=e.scene+"";P.openPath=n,H.disableFetchQuery||(P.query=r),P.scene=a,t.getSetting({success(e){e.authSetting["scope.userLocation"]&&t.getLocation({type:"wgs84",success:e=>{P.latitude=e.latitude+"",P.longitude=e.longitude+"",P.accuracy=e.accuracy+""}})}}),t.getNetworkType({success:function(e){P.net=e.networkType},complete:function(){ke()}})}},{name:"onError",handler:function(e){var t="",n="";if(Y(e)?t=e:e&&(t=e.stack,n=e.message),t){var r={occurTime:he(),stack:t,methods:[]};F&&F.length>0&&(r.methods=F),F=[],n&&(r.msg=n),K.push(r)}}},{name:"onShow",handler:function(){_.onShow=he()}},{name:"onHide",handler:function(){_.onHide=he();var e=ve();me();var t=U.current;U.prev="",U.current="",ke({routeTrack:e,closePath:t,metric:B})}}];function Le(e){return Pe.forEach(function(t){Oe(t,e)}),e}function je(){var e=App;App=function(t){if(t=Le(t),e)return e.call(this,t)}}var Ae=[{name:"onLoad",handler:function(){qe(this.route)&&(z.isResetPerformanceData&&(Se(),z.isResetPerformanceData=!1),A.recordFirstLoad=!0,V.onLoad=he(),function(){var e=this.setData,t=A.setData.threshold,n=A.setData.setDataTrace,r=A.setData.setDataTraceHint;A.setData.setDataTimeInterval;try{Object.defineProperty(this,"setData",{enumerable:!0,configurable:!0,writable:!0,value:function(){var a=arguments[0],o=arguments[1],i=he(),s={start:i},c=N.context,u=c&&c.type===R&&c.data&&c.data.recordFirstLoad;(A.recordFirstLoad||u)&&(s.calcFirstLoad=!0);try{A.setData.currentSegmentTime,A.setData.currentSegmentTime=i,A.setData.data[i]={count:0,traces:[]},s.segmentTime=i}catch(e){}return e.call(this,arguments[0],function(){try{s.end=he(),s.calcFirstLoad&&s.end>A.lastSetDataInOnReady&&(A.lastSetDataInOnReady=s.end),s.duration=s.end-s.start;var e=A.setData.data[s.segmentTime];if(e.count++,s.duration>A.setData.max&&(A.setData.max=s.duration),s.duration>t&&(A.stuck||(A.stuck=!0)),e.traces.length<h&&n)try{var i=ue(a,!0),d={timestamp:s.start,duration:s.duration,size:i.value.length};r&&(d.hint=i.value.substring(0,200)),i.error&&(d.error=i.error),e.traces.push(d),e.duration=s.duration}catch(e){}u&&A.setData.requestBridge.push({start:s.start,end:s.end,occurTime:s.start,requestId:c.data.requestId,url:c.data.url})}catch(e){}return o&&o.apply(this,arguments)})}})}catch(e){console.log("rewriteSetData",e)}}.call(this))}},{name:"onShow",handler:function(){qe(this.route)&&(z.isResetPerformanceData&&(Se(),z.isResetPerformanceData=!1),V.onShow=he(),U.prev=U.current,U.current=this.route,z.sent=!1)}},{name:"onReady",handler:function(){qe(this.route)&&(V.onReady=he())},afterHandler:function(){qe(this.route)&&(A.recordFirstLoad=!1)}},{name:"onHide",handler:function(){qe(this.route)&&(V.onHide=he(),we())}},{name:"onUnload",handler:function(){qe(this.route)&&(V.onUnload=he(),we())}}];function Ne(e,t){var n=getCurrentPages();n.length&&n[n.length-1],e[t]=ie(e[t],function(){var e,n={occurTime:he(),method:t};e=n,F.push(e),F.length>20&&F.shift()})}function He(e){return Ae.forEach(function(t){Oe(t,e)}),re&&Object.keys(e).forEach(t=>{!(["onLoad","onShow","onReady","onHide","onUnload","onPageScroll"].indexOf(t)>=0)&&"function"==typeof e[t]&&Ne(e,t)}),e[b]=ge,e}function Me(){var e=Page;Page=function(t){if(t=He(t),e)return e.call(this,t)}}function Fe(e){return e.methods||(e.methods={}),Ae.forEach(function(t){Oe(t,e.methods)}),e}function Ce(){var e=Component;Component=function(t){t=Fe(t),e&&e.call(this,t)}}function _e(e){return function(e){var t=N.context;return function(){var n,r=N.context;N.context=t;try{n=e.apply(this,arguments)}finally{r&&!r.closed&&(N.context=r)}return n}}(e)}function Ve(e){return e?ee(e)?ue(e).length:Y(e)?e.length:e instanceof ArrayBuffer?e.byteLength:e.length?e.length:0:0}function Ke(e,t,n){var r=A.request.headerData,a=A.request.responseData;return Object.assign({requestId:e.requestId,type:R,url:e.url,method:e.method,start:e.start,end:e.end,cbTime:e.cbTime,duration:0<e.end-e.start?e.end-e.start:0,send:Ve(t.data),rec:function(e){if(!e)return 0;var t=e.header,n=e.data,r=0;return(r=+(t&&t["Content-Length"]))&&te(r)&&!Number.isNaN(r)||(r=Ve(n)||0),r}(n),statusCode:n.statusCode||0,failMessage:e.failMessage||"",recordFirstLoad:e.recordFirstLoad},r?{sendData:JSON.stringify(t.data)}:{},a?{recData:JSON.stringify(n)}:{})}function Je(e,t){if(!e.context){var n="".concat(e.url,"-").concat(e.requestId);e.context=Ee.createEvent(t,n,R,null,{url:e.url,requestId:e.requestId,recordFirstLoad:e.recordFirstLoad})}N.context=e.context}var Ue=function(e){var t=e||{};if(!t._no_record&&t.url&&Te()){var n=he(),r=A.reqStat.currentSegmentTime;r=n,A.reqStat.currentSegmentTime=n,A.reqStat.data[r]={count:0},A.reqStat.data[r].count++;var a=N.context,o={requestId:++A.requestId,url:t.url,method:t.method&&t.method.toUpperCase()||"GET",callbackContextCreated:!1,cbTime:0,recordFirstLoad:A.recordFirstLoad,statusCode:t.statusCode};o.id=he()%1e9,t.header=t.header||{};var i=t.success,s=t.fail,c=t.complete;t.success=_e(function(){var e;if(o.end||(o.end=he()),Je(o,a),i){var t=he();try{e=i.apply(this,arguments)}finally{var n=he()-t;0<n&&(o.cbTime+=n)}}return e}),t.fail=_e(function(){var e;if(o.end||(o.end=he()),Je(o,a),s){var t=he();try{e=s.apply(this,arguments)}finally{var n=he()-t;0<n&&(o.cbTime+=n)}}return e}),t.complete=_e(function(e){var n,i;o.end||(o.end=he());var s=H.custom;if(s&&$(s))try{var u=s.apply(this,arguments);ee(u)&&(i={custom:u})}catch(e){}if(Je(o,a),c){var d=he();try{n=c.apply(this,arguments)}finally{var p=he()-d;0<p&&(o.cbTime+=p)}}var f=void 0==e.statusCode||200!=e.statusCode;if(f&&!A.netError&&(A.netError=!0),f&&e){var l=e.data||e.errMsg||"request failed";o.failMessage=de(l,H.requestFailMessageSize)}o.failMessage=o.failMessage?o.failMessage:"";var h=Ke(o,t,e),g=Object.assign({},h||{},i||{});return A.reqStat.data[r]=Object.assign({},A.reqStat.data[r],g),function(e,t,n){N.context&&N.context.setData(n);var r=N.context&&N.context.hasPrevAssignedData(),a=N.context&&N.context.canEnd();a&&N.context.end(),t&&t.id===e.cid&&n&&(t.requests.push(n),t.updateRemain(-1,R),t.canEnd()&&a&&t.end(r?N.context:null))}(o,a,g),n}),o.start=n,a&&(o.cid=a.id,a.updateRemain(1))}return C.apply(this,arguments)};function Be(){Object.defineProperty(t,"request",{configurable:!0,enumerable:!0,writable:!0,value:Ue})}function ze(){H.hookApis&&H.hookApis.length>0&&H.hookApis.forEach(function(e){-1<G.indexOf(e)||"request"===e||G.push(e)})}function Ge(e,t){if(!e.context){var n="".concat(e.name,"-").concat(e.apiId);e.context=Ee.createEvent(t,n,w)}N.context=e.context}function We(e){var n=t[e];return function(){var t=N.context,a=arguments[0]||{},o={apiId:++A.apiId,name:e};return k.forEach(function(e){a[e]=_e(ie(a[e],function(){if(o.end||(o.end=he()),Ge(o,t),"fail"===e){o[e]=1;var n=arguments&&arguments[0];o.failMessage=de(n,H.apiFailMessageSize)}}))}),a.complete=_e(se(a.complete,function(){o.end||(o.end=he()),Ge(o,r)},function(){var e,n={apiId:(e=o).apiId,type:"api",typeId:1,chId:18,name:e.name,start:e.start,occurTime:e.start,end:e.end,duration:0<e.end-e.start?e.end-e.start:0,count:1,failMessage:e.failMessage||""};!function(e,t,n){N.context&&N.context.setData(n);var r=N.context&&N.context.hasPrevAssignedData(),a=N.context&&N.context.canEnd();A.apis.push(n),a&&N.context.end(),t&&t.id===e.cid&&n&&(t.apis.push(n),t.updateRemain(-1,w),t.canEnd()&&a&&t.end(r?N.context:null))}(o,t,n)})),t&&(o.cid=t.id,t.updateRemain(1,"api")),o.start=he(),n.apply(this,arguments)}}function Qe(){ze(),G.forEach(function(e){var n;(n=e)&&t[n]&&Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:We(n)})})}function Xe(e,t){var n="";return e&&(n=e.sdkVersion),n&&t?function(e,t){e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length);e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(var r=0;r<n;r++){var a=parseInt(e[r]),o=parseInt(t[r]);if(o<a)return 1;if(a<o)return-1}return 0}(n,t):-1}function Ye(e){n&&((!e||0<=Xe(P,m))&&(je(),Me(),Ce(),Be(),Qe()),e&&Object.assign(L,function(){ze();var e={};return G.forEach(function(t){e[t]=We(t)}),e}()||{})),(a||o||i)&&(je(),Me(),Ce(),Be(),Qe())}function Ze(e){if(e.jdEnv&&(s=e.jdEnv),!Te()){(function(e){null==(H=e||{}).requestFailMessageSize&&(H.requestFailMessageSize=c),null==H.apiFailMessageSize&&(H.apiFailMessageSize=u)})(e||{}),W=!0,xe();var t=!0;null!=H.plugin&&(t=H.plugin),Ye(t)}}t.onNetworkStatusChange(function(e){P.net=e.networkType});var $e=(L.config=Ze,L);e.monitor=$e,e.default=$e,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
4
|
-
/* eslint-disable no-new */
|