mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-15 06:46:27 +00:00
46 lines
1.3 MiB
JavaScript
46 lines
1.3 MiB
JavaScript
|
import{d as defineComponent,A as getPrefixCls,c as computed,B as isNumber$1,_ as _export_sfc$1,C as openBlock,D as createElementBlock,E as normalizeClass,F as normalizeStyle,G as createBaseVNode,H as createStaticVNode,I as IconCaretDown,J as IconCaretLeft,K as IconCaretRight,L as IconCaretUp,M as IconDoubleLeft,N as IconDoubleRight,O as IconDown,P as IconLeft,Q as IconMenuFold,R as IconMenuUnfold,S as IconRight,T as IconRotateLeft,U as IconRotateRight,V as IconToTop,W as IconUp,X as IconCheckCircleFill,Y as IconCloseCircleFill,Z as IconExclamationCircleFill,$ as IconInfoCircleFill,a0 as IconCheck,a1 as IconClockCircle,a2 as IconClose,a3 as IconExclamation,a4 as IconInfo,a5 as IconMinus,a6 as IconPlus,a7 as IconQuestionCircle,a8 as IconStarFill,a9 as IconEyeInvisible,aa as IconEye,ab as IconMore,ac as IconSearch,ad as IconUpload,ae as IconCopy,af as IconDelete,ag as IconEdit,ah as IconFilter,ai as IconLink,aj as IconObliqueLine,ak as IconOriginalSize,al as IconZoomIn,am as IconZoomOut,an as IconPlayArrowFill,ao as IconFullscreen,ap as IconPause,aq as IconFaceFrownFill,ar as IconFaceMehFill,as as IconFaceSmileFill,at as IconCalendar,au as IconDragDotVertical,av as IconDragDot,aw as IconEmpty,ax as IconFileAudio,ay as IconFileImage,az as IconFilePdf,aA as IconFileVideo,aB as IconFile,aC as IconImageClose,aD as IconLoading,f as ref,n as nextTick,aE as createBlock,u as unref,aF as createCommentVNode,aG as Breadcrumb,aH as withCtx,aI as createVNode,aJ as renderList,aK as Fragment,aL as BreadcrumbItem,aM as createTextVNode,aN as toDisplayString,aO as commonjsGlobal,aP as getDefaultExportFromCjs,aQ as Notification,aR as getAugmentedNamespace,aS as vue_esmBundler,aT as dayjs,aU as InputNumber,aV as Switch,aW as Alert,aX as Drawer,aY as Message,aZ as Button,a_ as ConfigProvider,a$ as lang,b0 as resolveComponent,b1 as Modal,b2 as createApp}from"./arco.06c99ad2.js";import{B,u as use,i as install$1,a as install$2,b as install$3,c as install$4,d as install$5,e as install$6,f as install$7,g as install$8,h as install$9,j as install$a}from"./chart.3b6dbf01.js";import{d as defineStore,c as createPinia,a as createRouter,b as createWebHashHistory,s as shared_esmBrowser,e as coreBase_esmBrowser,u as useClipboard}from"./vue.3660be0a.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&u(t)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function u(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();const _sfc_main$3F=defineComponent({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:l=>["butt","round","square"].includes(l)},strokeLinejoin:{type:String,default:"miter",validator:l=>["arcs","bevel","miter","miter-clip","round"].includes(l)},rotate:Number,spin:Boolean},emits:{click:l=>!0},setup(l,{emit:e}){const n=getPrefixCls("icon"),u=computed(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:l.spin}]),o=computed(()=>{const t={};return l.size&&(t.fontSize=isNumber$1(l.size)?`${l.size}px`:l.size),l.rotate&&(t.transform=`rotate(${l.rotate}deg)`),t});return{cls:u,innerStyle:o,onClick:t=>{e("click",t)}}}}),_hoisted_1$3A=["stroke-width","stroke-linecap","stroke-linejoin"],_hoisted_2$3A=createBaseVNode("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1),_hoisted_3$3w=[_hoisted_2$3A];function _sfc_render$3z(l,e,n,u,o,r){return openBlock(),createElementBlock("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:normalizeClass(l.cls),style:normalizeStyle(l.innerSty
|
|||
|
* @license MIT */(function(l,e){(function(n,u){l.exports=u()})(commonjsGlobal,function(){var n={};n.version="0.2.0";var u=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(k){var y,E;for(y in k)E=k[y],E!==void 0&&k.hasOwnProperty(y)&&(u[y]=E);return this},n.status=null,n.set=function(k){var y=n.isStarted();k=o(k,u.minimum,1),n.status=k===1?null:k;var E=n.render(!y),R=E.querySelector(u.barSelector),Q=u.speed,a2=u.easing;return E.offsetWidth,m(function(A){u.positionUsing===""&&(u.positionUsing=n.getPositioningCSS()),_(R,t(k,Q,a2)),k===1?(_(E,{transition:"none",opacity:1}),E.offsetWidth,setTimeout(function(){_(E,{transition:"all "+Q+"ms linear",opacity:0}),setTimeout(function(){n.remove(),A()},Q)},Q)):setTimeout(A,Q)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var k=function(){setTimeout(function(){!n.status||(n.trickle(),k())},u.trickleSpeed)};return u.trickle&&k(),this},n.done=function(k){return!k&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(k){var y=n.status;return y?(typeof k!="number"&&(k=(1-y)*o(Math.random()*y,.1,.95)),y=o(y+k,0,.994),n.set(y)):n.start()},n.trickle=function(){return n.inc(Math.random()*u.trickleRate)},function(){var k=0,y=0;n.promise=function(E){return!E||E.state()==="resolved"?this:(y===0&&n.start(),k++,y++,E.always(function(){y--,y===0?(k=0,n.done()):n.set((k-y)/k)}),this)}}(),n.render=function(k){if(n.isRendered())return document.getElementById("nprogress");C(document.documentElement,"nprogress-busy");var y=document.createElement("div");y.id="nprogress",y.innerHTML=u.template;var E=y.querySelector(u.barSelector),R=k?"-100":r(n.status||0),Q=document.querySelector(u.parent),a2;return _(E,{transition:"all 0 linear",transform:"translate3d("+R+"%,0,0)"}),u.showSpinner||(a2=y.querySelector(u.spinnerSelector),a2&&F(a2)),Q!=document.body&&C(Q,"nprogress-custom-parent"),Q.appendChild(y),y},n.remove=function(){b(document.documentElement,"nprogress-busy"),b(document.querySelector(u.parent),"nprogress-custom-parent");var k=document.getElementById("nprogress");k&&F(k)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var k=document.body.style,y="WebkitTransform"in k?"Webkit":"MozTransform"in k?"Moz":"msTransform"in k?"ms":"OTransform"in k?"O":"";return y+"Perspective"in k?"translate3d":y+"Transform"in k?"translate":"margin"};function o(k,y,E){return k<y?y:k>E?E:k}function r(k){return(-1+k)*100}function t(k,y,E){var R;return u.positionUsing==="translate3d"?R={transform:"translate3d("+r(k)+"%,0,0)"}:u.positionUsing==="translate"?R={transform:"translate("+r(k)+"%,0)"}:R={"margin-left":r(k)+"%"},R.transition="all "+y+"ms "+E,R}var m=function(){var k=[];function y(){var E=k.shift();E&&E(y)}return function(E){k.push(E),k.length==1&&y()}}(),_=function(){var k=["Webkit","O","Moz","ms"],y={};function E(A){return A.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(u2,m2){return m2.toUpperCase()})}function R(A){var u2=document.body.style;if(A in u2)return A;for(var m2=k.length,j=A.charAt(0).toUpperCase()+A.slice(1),e2;m2--;)if(e2=k[m2]+j,e2 in u2)return e2;return A}function Q(A){return A=E(A),y[A]||(y[A]=R(A))}function a2(A,u2,m2){u2=Q(u2),A.style[u2]=m2}return function(A,u2){var m2=arguments,j,e2;if(m2.length==2)for(j in u2)e2=u2[j],e2!==void 0&&u2.hasOwnProperty(j)&&a2(A,j,e2);else a2(A,m2[1],m2[2])}}();function p(k,y){var E=typeof k=="string"?k:w(k);return E.indexOf(" "+y+" ")>=0}function C(k,y){var E=w(k),R=E+y;p(E,y)||(k.className=R.substring(1))}function b(k,y){var E=w(k),R;!p(k,y)||(R=E.replace(" "+y+" "," "),k.className=R.substring(1,R.length-1))}function w(k){return(" "+(k.className||"")+" ").replace(/\s+/gi," ")}function F(k){k&&k.parentNode&&k.parentNode.removeChil
|
|||
|
`),function(p){if(m=p.indexOf(":"),r=l.trim(p.substr(0,m)).toLowerCase(),t=l.trim(p.substr(m+1)),r){if(o[r]&&e.indexOf(r)>=0)return;r==="set-cookie"?o[r]=(o[r]?o[r]:[]).concat([t]):o[r]=o[r]?o[r]+", "+t:t}}),o},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var l=utils$8;return isURLSameOrigin=l.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a"),o;function r(t){var m=t;return n&&(u.setAttribute("href",m),m=u.href),u.setAttribute("href",m),{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",host:u.host,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:u.pathname.charAt(0)==="/"?u.pathname:"/"+u.pathname}}return o=r(window.location.href),function(m){var _=l.isString(m)?r(m):m;return _.protocol===o.protocol&&_.host===o.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function l(e){this.message=e}return l.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},l.prototype.__CANCEL__=!0,Cancel_1=l,Cancel_1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var l=utils$8,e=requireSettle(),n=requireCookies(),u=buildURL$1,o=requireBuildFullPath(),r=requireParseHeaders(),t=requireIsURLSameOrigin(),m=requireCreateError(),_=requireDefaults(),p=requireCancel();return xhr=function(b){return new Promise(function(F,k){var y=b.data,E=b.headers,R=b.responseType,Q;function a2(){b.cancelToken&&b.cancelToken.unsubscribe(Q),b.signal&&b.signal.removeEventListener("abort",Q)}l.isFormData(y)&&delete E["Content-Type"];var A=new XMLHttpRequest;if(b.auth){var u2=b.auth.username||"",m2=b.auth.password?unescape(encodeURIComponent(b.auth.password)):"";E.Authorization="Basic "+btoa(u2+":"+m2)}var j=o(b.baseURL,b.url);A.open(b.method.toUpperCase(),u(j,b.params,b.paramsSerializer),!0),A.timeout=b.timeout;function e2(){if(!!A){var $2="getAllResponseHeaders"in A?r(A.getAllResponseHeaders()):null,W=!R||R==="text"||R==="json"?A.responseText:A.response,E2={data:W,status:A.status,statusText:A.statusText,headers:$2,config:b,request:A};e(function(y2){F(y2),a2()},function(y2){k(y2),a2()},E2),A=null}}if("onloadend"in A?A.onloadend=e2:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(e2)},A.onabort=function(){!A||(k(m("Request aborted",b,"ECONNABORTED",A)),A=null)},A.onerror=function(){k(m("Network Error",b,null,A)),A=null},A.ontimeout=function(){var W=b.timeout?"timeout of "+b.timeout+"ms exceeded":"timeout exceeded",E2=b.transitional||_.transitional;b.timeoutErrorMessage&&(W=b.timeoutErrorMessage),k(m(W,b,E2.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",A)),A=null},l.isStandardBrowserEnv()){var q=(b.withCredentials||t(j))&&b.xsrfCookieName?n.read(b.xsrfCookieName):void 0;q&&(E[b.xsrfHeaderName]=q)}"setRequestHeader"in A&&l.forEach(E,function(W,E2){typeof y>"u"&&E2.toLowerCase()==="content-type"?delete E[E2]:A.setRequestHeader(E2,W)}),l.isUndefined(b.withCredentials)||(A.withCredentials=!!b.withCredentials),R&&R!=="json"&&(A.responseType=b.responseType),typeof b.onDownloadProgress=="function"&&A.addEventListener("progress",b.onDownloadProgress),typeof b.onUploadProgress=="function"&&A.upload&&A.upload.addEventListener("progress",b.onUploadProgress),(b.cancelToken||b.signal)&&(Q=function($2){!A||(k(!$2||$2&&$2.type?new p("canceled"):$2),A.abort(),A=null)},b.cancelToken&&b.cancelToken.subscribe(Q),b.signal&&(b.signal.aborted?Q():b.signal.addEventListener("abort",Q))),y||(y=null),A.send(y)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var l=utils$8,e=normalizeHeaderName,n=enhanceError,u={"Content-Type":"application/x-www-form-urle
|
|||
|
* vue-i18n v9.11.1
|
|||
|
* (c) 2024 kazuya kawaguchi
|
|||
|
* Released under the MIT License.
|
|||
|
*/var shared=require$$0,coreBase=require$$1,vue=require$$2;const VERSION="9.11.1",code$1=coreBase.CoreWarnCodes.__EXTEND_POINT__,inc$1=shared.incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function getWarnMessage(l,...e){return shared.format(warnMessages[l],...e)}const code=coreBase.CoreErrorCodes.__EXTEND_POINT__,inc=shared.incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(l,...e){return coreBase.createCompileError(l,null,{messages:errorMessages,args:e})}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=shared.makeSymbol("__translateVNode"),DatetimePartsSymbol=shared.makeSymbol("__datetimeParts"),NumberPartsSymbol=shared.makeSymbol("__numberParts"),EnableEmitter=shared.makeSymbol("__enableEmitter"),DisableEmitter=shared.makeSymbol("__disableEmitter"),SetPluralRulesSymbol=shared.makeSymbol("__setPluralRules");shared.makeSymbol("__intlifyMeta");const InejctWithOptionSymbol=shared.makeSymbol("__injectWithOption"),DisposeSymbol=shared.makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(l){if(!shared.isObject(l))return
|
|||
|
Mock - 模拟请求 & 模拟数据
|
|||
|
https://github.com/nuysoft/Mock
|
|||
|
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
|
|||
|
*/var C={Handler:u,Random:r,Util:o,XHR:p,RE:t,toJSONSchema:m,valid:_,heredoc:o.heredoc,setup:function(b){return p.setup(b)},_mocked:{}};C.version="1.0.1-beta3",p&&(p.Mock=C),C.mock=function(b,w,F){return arguments.length===1?u.gen(b):(arguments.length===2&&(F=w,w=void 0),p&&(window.XMLHttpRequest=p),C._mocked[b+(w||"")]={rurl:b,rtype:w,template:F},C)},l.exports=C},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(l,e,n){e=e==null?"":e+"",n=n||{},n={path:n.path||[Constant.GUID],templatePath:n.templatePath||[Constant.GUID++],currentContext:n.currentContext,templateCurrentContext:n.templateCurrentContext||l,root:n.root||n.currentContext,templateRoot:n.templateRoot||n.templateCurrentContext||l};var u=Parser.parse(e),o=Util.type(l),r;return Handler[o]?(r=Handler[o]({type:o,template:l,name:e,parsedName:e&&e.replace(Constant.RE_KEY,"$1"),rule:u,context:n}),n.root||(n.root=r),r):l},Handler.extend({array:function(l){var e=[],n,u;if(l.template.length===0)return e;if(l.rule.parameters)if(l.rule.min===1&&l.rule.max===void 0)l.context.path.push(l.name),l.context.templatePath.push(l.name),e=Random.pick(Handler.gen(l.template,void 0,{path:l.context.path,templatePath:l.context.templatePath,currentContext:e,templateCurrentContext:l.template,root:l.context.root||e,templateRoot:l.context.templateRoot||l.template})),l.context.path.pop(),l.context.templatePath.pop();else if(l.rule.parameters[2])l.template.__order_index=l.template.__order_index||0,l.context.path.push(l.name),l.context.templatePath.push(l.name),e=Handler.gen(l.template,void 0,{path:l.context.path,templatePath:l.context.templatePath,currentContext:e,templateCurrentContext:l.template,root:l.context.root||e,templateRoot:l.context.templateRoot||l.template})[l.template.__order_index%l.template.length],l.template.__order_index+=+l.rule.parameters[2],l.context.path.pop(),l.context.templatePath.pop();else for(n=0;n<l.rule.count;n++)for(u=0;u<l.template.length;u++)l.context.path.push(e.length),l.context.templatePath.push(u),e.push(Handler.gen(l.template[u],e.length,{path:l.context.path,templatePath:l.context.templatePath,currentContext:e,templateCurrentContext:l.template,root:l.context.root||e,templateRoot:l.context.templateRoot||l.template})),l.context.path.pop(),l.context.templatePath.pop();else for(n=0;n<l.template.length;n++)l.context.path.push(n),l.context.templatePath.push(n),e.push(Handler.gen(l.template[n],n,{path:l.context.path,templatePath:l.context.templatePath,currentContext:e,templateCurrentContext:l.template,root:l.context.root||e,templateRoot:l.context.templateRoot||l.template})),l.context.path.pop(),l.context.templatePath.pop();return e},object:function(l){var e={},n,u,o,r,t,m;if(l.rule.min!=null)for(n=Util.keys(l.template),n=Random.shuffle(n),n=n.slice(0,l.rule.count),m=0;m<n.length;m++)o=n[m],r=o.replace(Constant.RE_KEY,"$1"),l.context.path.push(r),l.context.templatePath.push(o),e[r]=Handler.gen(l.template[o],o,{path:l.context.path,templatePath:l.context.templatePath,currentContext:e,templateCurrentContext:l.template,root:l.context.root||e,templateRoot:l.context.templateRoot||l.template}),l.context.path.pop(),l.context.templatePath.pop();else{n=[],u=[];for(o in l.template)(typeof l.template[o]=="function"?u:n).push(o);for(n=n.concat(u),m=0;m<n.length;m++)o=n[m],r=o.replace(Constant.RE_KEY,"$1"),l.context.path.push(r),l.context.templatePath.push(o),e[r]=Handler.gen(l.template[o],o,{path:l.context.path,templatePath:l.context.templatePath,currentContext:e,templateCurrentContext:l.template,root:l.context.root||e,templateRoot:l.context.templateRoot||l.template}),l.context.path.pop(),l.context.templatePath.pop(),t=o.match(Constant.RE_KEY),t&&t[2]&&Util.type(l.template[o])==="number"&&(l.template[o]+=parseInt(t[2],10))}return e},number:function(l){var e,n;if(l.rule.decimal){for(l.template+="",n=l.template.split("."),n[0]=l.rule.range?l.rule.count:n[0],n[1]=(n[1]||"").slice(0,l.rule
|
|||
|
`?(N.seenCR||N.line++,N.column=1,N.seenCR=!1):hl==="\r"||hl==="\u2028"||hl==="\u2029"?(N.line++,N.column=1,N.seenCR=!0):(N.column++,N.seenCR=!1)}return pl!==a&&(pl>a&&(pl=0,rn={line:1,column:1,seenCR:!1}),f(rn,pl,a),pl=a),rn}function W(a){Jl>g||(g>Jl&&(Jl=g,Xl=[]),Xl.push(a))}function E2(a){var f=0;for(a.sort();f<a.length;)a[f-1]===a[f]?a.splice(f,1):f++}function I2(){var a,f,N,H,f2;return a=g,f=y2(),f!==null?(N=g,j.charCodeAt(g)===124?(H=K3,g++):(H=null,U===0&&W(M2)),H!==null?(f2=I2(),f2!==null?(H=[H,f2],N=H):(g=N,N=J)):(g=N,N=J),N===null&&(N=u3),N!==null?(n2=a,f=M3(f,N),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J),a}function y2(){var a,f,N,H,f2;if(a=g,f=S2(),f===null&&(f=u3),f!==null)if(N=g,U++,H=A2(),U--,H===null?N=u3:(g=N,N=J),N!==null){for(H=[],f2=O2(),f2===null&&(f2=P2());f2!==null;)H.push(f2),f2=O2(),f2===null&&(f2=P2());H!==null?(f2=Q2(),f2===null&&(f2=u3),f2!==null?(n2=a,f=T3(f,H,f2),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J)}else g=a,a=J;else g=a,a=J;return a}function P2(){var a;return a=t3(),a===null&&(a=O(),a===null&&(a=A3())),a}function S2(){var a,f;return a=g,j.charCodeAt(g)===94?(f=Y3,g++):(f=null,U===0&&W(n3)),f!==null&&(n2=a,f=kl()),f===null&&(g=a),a=f,a}function Q2(){var a,f;return a=g,j.charCodeAt(g)===36?(f=gl,g++):(f=null,U===0&&W(Z2)),f!==null&&(n2=a,f=Ql()),f===null&&(g=a),a=f,a}function O2(){var a,f,N;return a=g,f=P2(),f!==null?(N=A2(),N!==null?(n2=a,f=I3(f,N),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J),a}function A2(){var a,f,N;return U++,a=g,f=B2(),f!==null?(N=U2(),N===null&&(N=u3),N!==null?(n2=a,f=G2(f,N),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J),U--,a===null&&(f=null,U===0&&W(Kl)),a}function B2(){var a;return a=q2(),a===null&&(a=L2(),a===null&&(a=d3(),a===null&&(a=$3(),a===null&&(a=f3(),a===null&&(a=m3()))))),a}function q2(){var a,f,N,H,f2,g3;return a=g,j.charCodeAt(g)===123?(f=o3,g++):(f=null,U===0&&W(J2)),f!==null?(N=K2(),N!==null?(j.charCodeAt(g)===44?(H=B3,g++):(H=null,U===0&&W($l)),H!==null?(f2=K2(),f2!==null?(j.charCodeAt(g)===125?(g3=E3,g++):(g3=null,U===0&&W(c3)),g3!==null?(n2=a,f=vl(N,f2),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J)):(g=a,a=J)):(g=a,a=J)):(g=a,a=J),a}function L2(){var a,f,N,H;return a=g,j.charCodeAt(g)===123?(f=o3,g++):(f=null,U===0&&W(J2)),f!==null?(N=K2(),N!==null?(j.substr(g,2)===ll?(H=ll,g+=2):(H=null,U===0&&W(nl)),H!==null?(n2=a,f=c2(N),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J)):(g=a,a=J),a}function d3(){var a,f,N,H;return a=g,j.charCodeAt(g)===123?(f=o3,g++):(f=null,U===0&&W(J2)),f!==null?(N=K2(),N!==null?(j.charCodeAt(g)===125?(H=E3,g++):(H=null,U===0&&W(c3)),H!==null?(n2=a,f=Cl(N),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J)):(g=a,a=J),a}function $3(){var a,f;return a=g,j.charCodeAt(g)===43?(f=Yl,g++):(f=null,U===0&&W(e3)),f!==null&&(n2=a,f=ln()),f===null&&(g=a),a=f,a}function f3(){var a,f;return a=g,j.charCodeAt(g)===42?(f=bl,g++):(f=null,U===0&&W(nn)),f!==null&&(n2=a,f=yl()),f===null&&(g=a),a=f,a}function m3(){var a,f;return a=g,j.charCodeAt(g)===63?(f=Sl,g++):(f=null,U===0&&W(el)),f!==null&&(n2=a,f=wl()),f===null&&(g=a),a=f,a}function U2(){var a;return j.charCodeAt(g)===63?(a=Sl,g++):(a=null,U===0&&W(el)),a}function K2(){var a,f,N;if(a=g,f=[],tl.test(j.charAt(g))?(N=j.charAt(g),g++):(N=null,U===0&&W(ul)),N!==null)for(;N!==null;)f.push(N),tl.test(j.charAt(g))?(N=j.charAt(g),g++):(N=null,U===0&&W(ul));else f=J;return f!==null&&(n2=a,f=r3(f)),f===null&&(g=a),a=f,a}function t3(){var a,f,N,H;return a=g,j.charCodeAt(g)===40?(f=D3,g++):(f=null,U===0&&W(i3)),f!==null?(N=k2(),N===null&&(N=F2(),N===null&&(N=o2(),N===null&&(N=b2()))),N!==null?(j.charCodeAt(g)===41?(H=ol,g++):(H=null,U===0&&W(rl)),H!==null?(n2=a,f=il(N),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J)):(g=a,a=J),a}function b2(){var a,f;return a=g,f=I2(),f!==null&&(n2=a,f=sl(f)),f===null&&(g=a),a=f,a}function o2(){var a,f,N;return a=g,j.substr(g,2)===O3?(f=O3,g+=2):(f=null,U===0&&W(Il)),f!==null?(N=I2(),N!==null?(n2=a,f=Bl(N),f===null&&(g=a),a=f):(g=a,a=J)):(g=a,a=J),a}function k2(){var a,f,N;return a=g,j.substr(g,2)===El?(f=El,g+=2):(f=null,U===0&&W(Fl)),f!==null?(N=I2(),N!==null?(n2=a,f=xl(N),f===null&&(g=a),a=f):(g=a,
|
|||
|
\r \v\xA0\u2028\u2029`,w={"\\w":t+m+_+"_","\\W":p.replace("_",""),"\\s":b,"\\S":function(){for(var k=C,y=0;y<b.length;y++)k=k.replace(b[y],"");return k}(),"\\d":_,"\\D":t+m+p};function F(k,y){for(var E="",R=k;R<=y;R++)E+=String.fromCharCode(R);return E}r.gen=function(k,y,E){return E=E||{guid:1},r[k.type]?r[k.type](k,y,E):r.token(k,y,E)},r.extend({token:function(k,y,E){switch(k.type){case"start":case"end":return"";case"any-character":return o.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return o.pick(_.split(""));case"non-digit":return o.pick((t+m+p).split(""));case"form-feed":break;case"line-feed":return k.body||k.text;case"carriage-return":break;case"white-space":return o.pick(b.split(""));case"non-white-space":return o.pick((t+m+_).split(""));case"tab":break;case"vertical-tab":break;case"word":return o.pick((t+m+_).split(""));case"non-word":return o.pick(p.replace("_","").split(""))}return k.body||k.text},alternate:function(k,y,E){return this.gen(o.boolean()?k.left:k.right,y,E)},match:function(k,y,E){y="";for(var R=0;R<k.body.length;R++)y+=this.gen(k.body[R],y,E);return y},"capture-group":function(k,y,E){return y=this.gen(k.body,y,E),E[E.guid++]=y,y},"non-capture-group":function(k,y,E){return this.gen(k.body,y,E)},"positive-lookahead":function(k,y,E){return this.gen(k.body,y,E)},"negative-lookahead":function(k,y,E){return""},quantified:function(k,y,E){y="";for(var R=this.quantifier(k.quantifier),Q=0;Q<R;Q++)y+=this.gen(k.body,y,E);return y},quantifier:function(k,y,E){var R=Math.max(k.min,0),Q=isFinite(k.max)?k.max:R+o.integer(3,7);return o.integer(R,Q)},charset:function(k,y,E){if(k.invert)return this["invert-charset"](k,y,E);var R=o.pick(k.body);return this.gen(R,y,E)},"invert-charset":function(k,y,E){for(var R=C,Q=0,a2;Q<k.body.length;Q++)switch(a2=k.body[Q],a2.type){case"literal":R=R.replace(a2.body,"");break;case"range":for(var A=this.gen(a2.start,y,E).charCodeAt(),u2=this.gen(a2.end,y,E).charCodeAt(),m2=A;m2<=u2;m2++)R=R.replace(String.fromCharCode(m2),"");default:var j=w[a2.text];if(j)for(var e2=0;e2<=j.length;e2++)R=R.replace(j[e2],"")}return o.pick(R.split(""))},range:function(k,y,E){var R=this.gen(k.start,y,E).charCodeAt(),Q=this.gen(k.end,y,E).charCodeAt();return String.fromCharCode(o.integer(R,Q))},literal:function(k,y,E){return k.escaped?k.body:k.text},unicode:function(k,y,E){return String.fromCharCode(parseInt(k.code,16))},hex:function(k,y,E){return String.fromCharCode(parseInt(k.code,16))},octal:function(k,y,E){return String.fromCharCode(parseInt(k.code,8))},"back-reference":function(k,y,E){return E[k.code]||""},CONTROL_CHARACTER_MAP:function(){for(var k="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),y=`\0 \x07 \b
|
|||
|
\v \f \r \x1B `.split(" "),E={},R=0;R<k.length;R++)E[k[R]]=y[R];return E}(),"control-character":function(k,y,E){return this.CONTROL_CHARACTER_MAP[k.code]}}),l.exports=r},function(l,e,n){l.exports=n(24)},function(l,e,n){var u=n(2),o=n(3),r=n(4);function t(m,_,p){p=p||[];var C={name:typeof _=="string"?_.replace(u.RE_KEY,"$1"):_,template:m,type:o.type(m),rule:r.parse(_)};switch(C.path=p.slice(0),C.path.push(_===void 0?"ROOT":C.name),C.type){case"array":C.items=[],o.each(m,function(b,w){C.items.push(t(b,w,C.path))});break;case"object":C.properties=[],o.each(m,function(b,w){C.properties.push(t(b,w,C.path))});break}return C}l.exports=t},function(l,e,n){l.exports=n(26)},function(l,e,n){var u=n(2),o=n(3),r=n(23);function t(p,C){for(var b=r(p),w=m.diff(b,C),F=0;F<w.length;F++);return w}var m={diff:function(C,b,w){var F=[];return this.name(C,b,w,F)&&this.type(C,b,w,F)&&(this.value(C,b,w,F),this.properties(C,b,w,F),this.items(C,b,w,F)),F},name:function(p,C,b,w){var F=w.length;return _.equal("name",p.path,b+"",p.name+"",w),w.length===F},type:function(p,C,b,w){var F=w.length;switch(p.type){case"string":if(p.template.match(u.RE_PLACEHOLDER))return!0;break;case"array":if(p.rule.parameters&&(p.rule.min!==void 0&&p.rule.max===void 0&&p.rule.count===1||p.rule.parameters[2]))return!0;break;case"function":return!0}return _.equal("type",p.path,o.type(C),p.type,w),w.length===F},value:function(p,C,b,w){var F=w.length,k=p.rule,y=p.type;if(y==="object"||y==="array"||y==="function")return!0;if(!k.parameters){switch(y){case"regexp":return _.match("value",p.path,C,p.template,w),w.length===F;case"string":if(p.template.match(u.RE_PLACEHOLDER))return w.length===F;break}return _.equal("value",p.path,C,p.template,w),w.length===F}var E;switch(y){case"number":var R=(C+"").split(".");R[0]=+R[0],k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("value",p.path,R[0],Math.min(k.min,k.max),w),_.lessThanOrEqualTo("value",p.path,R[0],Math.max(k.min,k.max),w)),k.min!==void 0&&k.max===void 0&&_.equal("value",p.path,R[0],k.min,w,"[value] "+b),k.decimal&&(k.dmin!==void 0&&k.dmax!==void 0&&(_.greaterThanOrEqualTo("value",p.path,R[1].length,k.dmin,w),_.lessThanOrEqualTo("value",p.path,R[1].length,k.dmax,w)),k.dmin!==void 0&&k.dmax===void 0&&_.equal("value",p.path,R[1].length,k.dmin,w));break;case"boolean":break;case"string":E=C.match(new RegExp(p.template,"g")),E=E?E.length:0,k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("repeat count",p.path,E,k.min,w),_.lessThanOrEqualTo("repeat count",p.path,E,k.max,w)),k.min!==void 0&&k.max===void 0&&_.equal("repeat count",p.path,E,k.min,w);break;case"regexp":E=C.match(new RegExp(p.template.source.replace(/^\^|\$$/g,""),"g")),E=E?E.length:0,k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("repeat count",p.path,E,k.min,w),_.lessThanOrEqualTo("repeat count",p.path,E,k.max,w)),k.min!==void 0&&k.max===void 0&&_.equal("repeat count",p.path,E,k.min,w);break}return w.length===F},properties:function(p,C,b,w){var F=w.length,k=p.rule,y=o.keys(C);if(!!p.properties){if(p.rule.parameters?(k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("properties length",p.path,y.length,Math.min(k.min,k.max),w),_.lessThanOrEqualTo("properties length",p.path,y.length,Math.max(k.min,k.max),w)),k.min!==void 0&&k.max===void 0&&k.count!==1&&_.equal("properties length",p.path,y.length,k.min,w)):_.equal("properties length",p.path,y.length,p.properties.length,w),w.length!==F)return!1;for(var E=0;E<y.length;E++)w.push.apply(w,this.diff(function(){var R;return o.each(p.properties,function(Q){Q.name===y[E]&&(R=Q)}),R||p.properties[E]}(),C[y[E]],y[E]));return w.length===F}},items:function(p,C,b,w){var F=w.length;if(!!p.items){var k=p.rule;if(!p.rule.parameters)_.equal("items length",p.path,C.length,p.items.length,w);else{if(k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("items",p.path,C.length,Math.min(k.min,k.max)*p.items.length,w,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),_.lessThanOrEqualTo("items",p.path,C.length,Math.max(k.
|
|||
|
`);return k},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(p.prototype,{addEventListener:function(k,y){var E=this.custom.events;E[k]||(E[k]=[]),E[k].push(y)},removeEventListener:function(k,y){for(var E=this.custom.events[k]||[],R=0;R<E.length;R++)E[R]===y&&E.splice(R--,1)},dispatchEvent:function(k){for(var y=this.custom.events[k.type]||[],E=0;E<y.length;E++)y[E].call(this,k);var R="on"+k.type;this[R]&&this[R](k)}});function C(){var F=function(){var E=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,R=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Q=location.href,a2=R.exec(Q.toLowerCase())||[];return E.test(a2[1])}();return window.ActiveXObject?!F&&k()||y():k();function k(){try{return new window._XMLHttpRequest}catch{}}function y(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function b(F){for(var k in p.Mock._mocked){var y=p.Mock._mocked[k];if((!y.rurl||E(y.rurl,F.url))&&(!y.rtype||E(y.rtype,F.type.toLowerCase())))return y}function E(R,Q){if(u.type(R)==="string")return R===Q;if(u.type(R)==="regexp")return R.test(Q)}}function w(F,k){return u.isFunction(F.template)?F.template(k):p.Mock.mock(F.template)}l.exports=p}])})})(mock);const Mock=mock.exports,debug=!1,setupMock=({mock:l,setup:e})=>{l!==!1&&debug&&e()},successResponseWrap=l=>({data:l,status:"ok",msg:"\u8BF7\u6C42\u6210\u529F",code:2e4}),failResponseWrap=(l,e,n=5e4)=>({data:l,status:"fail",msg:e,code:n});setupMock({setup(){Mock.mock(new RegExp("/api/user/info"),()=>{if(isLogin()){const l=window.localStorage.getItem("userRole")||"admin";return successResponseWrap({name:"\u738B\u7ACB\u7FA4",avatar:"//lf1-xgcdn-tos.pstatp.com/obj/vcloud/vadmin/start.8e0e4855ee346a46ccff8ff3e24db27b.png",email:"wangliqun@email.com",job:"frontend",jobName:"\u524D\u7AEF\u827A\u672F\u5BB6",organization:"Frontend",organizationName:"\u524D\u7AEF",location:"beijing",locationName:"\u5317\u4EAC",introduction:"\u4EBA\u6F47\u6D12\uFF0C\u6027\u6E29\u5B58",personalWebsite:"https://www.arco.design",phone:"150****0000",registrationDate:"2013-05-10 12:10:00",accountId:"15012312300",certification:1,role:l})}return failResponseWrap(null,"\u672A\u767B\u5F55",50008)}),Mock.mock(new RegExp("/api/user/login"),l=>{const{username:e,password:n}=JSON.parse(l.body);return e?n?e==="admin"&&n==="admin"?(window.localStorage.setItem("userRole","admin"),successResponseWrap({token:"12345"})):e==="user"&&n==="user"?(window.localStorage.setItem("userRole","user"),successResponseWrap({token:"54321"})):failResponseWrap(null,"\u8D26\u53F7\u6216\u8005\u5BC6\u7801\u9519\u8BEF",5e4):failResponseWrap(null,"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",5e4):failResponseWrap(null,"\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A",5e4)}),Mock.mock(new RegExp("/api/user/logout"),()=>successResponseWrap(null)),Mock.mock(new RegExp("/api/user/menu"),()=>successResponseWrap([{path:"/dashboard",name:"dashboard",meta:{locale:"menu.server.dashboard",requiresAuth:!0,icon:"icon-dashboard",order:1},children:[{path:"workplace",name:"Workplace",meta:{locale:"menu.server.workplace",requiresAuth:!0}},{path:"https://arco.design",name:"arcoWebsite",meta:{locale:"menu.arcoWebsite",requiresAuth:!0}}]}]))}});const haveReadIds=[],getMessageList=()=>[{id:1,type:"message",title:"\u90D1\u66E6\u6708",subTitle:"\u7684\u79C1\u4FE1",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/8361eeb82904210b4f55fab888fe8416.png~tplv-uwbnlip3yd-webp.webp",content:"\u5BA1\u6279\u8BF7\u6C42\u5DF2\u53D1\u9001\uFF0C\u8BF7\u67E5\u6536",time:"\u4ECA\u5929 12:30:01"},{id:2,type:"message",title:"\u5B81\u6CE2",subTitle:"\u7684\u56DE\u590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:"\u6B64\u5904 bug \u5DF2\u7ECF\u4FEE\u590D",time:"\u4ECA\u5929 12:30:01"},{id:3,type:"message",title:"\u5B81\u6CE2",subTitle:"\u7684\u56DE\u590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:"\u6B64\u5904 bug \u5DF2\u7ECF\u4FEE\u590D",time:"\u4ECA\u5929 12:20:01"},{id:4,
|
|||
|
Error.stack: `+d.stack;if(typeof d=="object"&&d!==null){if(s.has(d))return"[Circular "+(c||"root")+"]";s.add(d)}return d}},H2=function(s){if(typeof s=="string")return s;try{return s instanceof Error?(JSON.stringify(s,p3(),4)||"undefined").replace(/"/gim,""):JSON.stringify(s,p3(),4)||"undefined"}catch(c){return`error happen when aegis stringify:
|
|||
|
`+c.message+`
|
|||
|
`+c.stack}},A3=function(s){if(typeof s=="string")return s;try{return JSON.stringify(s,p3())||"undefined"}catch(c){return`error happen when aegis stringify:
|
|||
|
`+c.message+`
|
|||
|
`+c.stack}},v3=function(s,c){c===void 0&&(c=3);var d,h,$,v="";return Array.isArray(s)?(v+="[",d=s.length,s.forEach(function(S,I){v=(v+=typeof S=="object"&&1<c?v3(S,c-1):G3(S))+(I===d-1?"":",")}),v+="]"):s instanceof Object?(v="{",h=Object.keys(s),$=h.length,h.forEach(function(S,I){typeof s[S]=="object"&&1<c?v+='"'+S+'":'+v3(s[S],c-1):v+=Z3(S,s[S]),v+=I===$-1||I<$-1&&s[h[I+1]]===void 0?"":","}),v+="}"):v+=s,v},Z3=function(s,c){var d=typeof c,h="";return d=="string"||d=="object"?h+='"'+s+'":"'+c+'"':typeof c=="function"?h+='"'+s+'":"function '+c.name+'"':typeof c=="symbol"?h+='"'+s+'":"symbol"':typeof c!="number"&&d!="boolean"||(h+='"'+s+'": '+c),h},G3=function(s){var c=typeof s;return""+(c=="undefined"||c=="symbol"||c=="function"?"null":c=="string"||c=="object"?'"'+s+'"':s)},J3=/data:(image|text|application|font)\/.*;base64/,j3=((Z=o2=o2||{}).INFO_ALL="-1",Z.API_RESPONSE="1",Z.INFO="2",Z.ERROR="4",Z.PROMISE_ERROR="8",Z.AJAX_ERROR="16",Z.SCRIPT_ERROR="32",Z.IMAGE_ERROR="64",Z.CSS_ERROR="128",Z.CONSOLE_ERROR="256",Z.MEDIA_ERROR="512",Z.RET_ERROR="1024",Z.REPORT="2048",Z.PV="4096",Z.EVENT="8192",Z.PAGE_NOT_FOUND_ERROR="16384",Z.WEBSOCKET_ERROR="32768",Z.BRIDGE_ERROR="65536",Z.LAZY_LOAD_ERROR="131072",(Z=k2=k2||{}).LOG="log",Z.SPEED="speed",Z.PERFORMANCE="performance",Z.OFFLINE="offline",Z.WHITE_LIST="whiteList",Z.VITALS="vitals",Z.PV="pv",Z.CUSTOM_PV="customPV",Z.EVENT="event",Z.CUSTOM="custom",Z.SDK_ERROR="sdkError",Z.SET_DATA="setData",Z.LOAD_PACKAGE="loadPackage",(Z=F2=F2||{}).production="production",Z.development="development",Z.gray="gray",Z.pre="pre",Z.daily="daily",Z.local="local",Z.test="test",Z.others="others",function(s){return s.filter(function(c,d){return c.type!=="static"||!s.find(function(h,$){return c.url===h.url&&c.status===200&&d<$})})}),R3=function(s){s.level===o2.INFO_ALL&&(s.level=o2.INFO)},_2={},L={},T=function(s){return _2[s]||(_2[s]=setTimeout(function(){L[s]={},_2[s]=null},6e4)),_2[s]},d2=function(s){return(Array.isArray(s)?s:[s]).map(function(c){return Object.getOwnPropertyNames(c).reduce(function(d,h){return h!=="ctx"&&(d[h]=c[h]),d},{level:o2.INFO,msg:""})})},v2=function(s){return function(c){return s.sendPipeline([function(d,h){return h({url:s.config.url||"",data:I2(d2(d)),method:"post",contentType:"application/json",type:k2.LOG,log:d,requestConfig:{timeout:5e3},success:function(){var $=s.config.onReport;typeof $=="function"&&d.forEach(function(v){$(v)}),typeof h=="function"&&h([])}})}],k2.LOG)(c)}},j2=function(){},Z=(r2.use=function(s){r2.installedPlugins.indexOf(s)===-1&&s.aegisPlugin&&r2.installedPlugins.push(s)},r2.unuse=function(s){s=r2.installedPlugins.indexOf(s),s!==-1&&r2.installedPlugins.splice(s,1)},r2.prototype.init=function(s){this.setConfig(s);for(var c=0;c<r2.installedPlugins.length;c++)try{r2.installedPlugins[c].patch(this)}catch(d){this.sendSDKError(d)}this.lifeCycle.emit("onInited")},r2.prototype.destroy=function(s){s===void 0&&(s=!1);var c,d,h=r2.instances.indexOf(this);h!==-1&&r2.instances.splice(h,1);for(var $=r2.installedPlugins.length-1;0<=$;$--)try{r2.installedPlugins[$].unpatch(this)}catch(S){this.sendSDKError(S)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),s)c=this,d=Object.getOwnPropertyDescriptors(c),Object.keys(d).forEach(function(S){d[S].writable&&(c[S]=null)}),Object.setPrototypeOf(this,null);else{for(var v=this;v.constructor!==Object&&K2(v,this),v=Object.getPrototypeOf(v););r2.instances.length===0&&(h=Object.getPrototypeOf(this).constructor,K2(h),K2(r2))}},r2.prototype.setConfig=function(P){Object.assign(this.config,P);var P=this.config,c=P.id,d=P.uin,h=P.version,$=P.ext1,v=P.ext2,S=P.ext3,I=P.aid,z=P.env,x=z===void 0?"production":z,z=P.pageUrl,P=this.bean.id!==c||this.bean.uin!==d||this.bean.aid!==I;return this.bean.id=c||"",this.bean.uin=d||"",this.bean.version=h||"1.39.1",this.bean.aid=I||"",this.bean.env=function(){switch(x){case F2.production:case F2.development:case F2.gray:case F2.pre:case F2.daily:case F2.local:case F2.test:case F2.others:return 1;default:return}}()?x:F2.others,z&&this.extendBean("from",encodeURIComponent(z.slice(0,2048))),$&&th
|
|||
|
|
|||
|
`)+d+" header "+$+": "+v:h},""):""}function b3(s,c){return s&&["null","undefined"].indexOf(s)===-1?c+": "+s:""}function y3(v,c,d){c===void 0&&(c="");var h,$,v=typeof(($=v.api)==null?void 0:$.resourceTypeHandler)=="function"?($=v.api)==null?void 0:$.resourceTypeHandler(d):"";return w.indexOf(v)===-1&&(h=c===void 0?"":c,$=(d===void 0?"":d).split("?")[0],v=p2.test($)||O.some(function(S){return String(h).indexOf(S)!==-1})?"static":"fetch"),v}function S3(s,c){return s?o2.AJAX_ERROR:c?o2.RET_ERROR:o2.API_RESPONSE}function w3(s,c){return(s=s.api)!=null&&s.usePerformanceTiming&&typeof c.url=="string"&&(s=(s=performance.getEntriesByName(c.url))==null?void 0:s.pop(),s)?{url:c.url,isHttps:O2(c.url),method:c.method,type:c.type,status:c.status,duration:Number(s.duration.toFixed(2)),nextHopProtocol:s.nextHopProtocol||"",domainLookup:P2(s.domainLookupEnd-s.domainLookupStart),connectTime:P2(s.connectEnd-s.connectStart)}:{url:c.url,isHttps:O2(c.url),method:c.method,type:c.type,status:c.status,duration:Number(c.duration.toFixed(2)),nextHopProtocol:"",domainLookup:e2.number,connectTime:e2.number}}var Q3,J,u3,K3,M2,M3,T3,Y3=!(K.isIE=function(){return"ActiveXObject"in window}),n3=[],kl=/^\/[^/]/,gl=!1,Z2=[],Ql=(new C2({name:"reportApiSpeed"}),new C2({name:"reportApiSpeed",override:!1,onNewAegis:function(s){var c,d;this.override||(this.override=!0,(d=s.config.api)!=null&&d.injectTraceHeader&&(this.traceRequestHeader=new W(d.injectTraceHeader,(c=d==null?void 0:d.injectTraceIgnoreUrls)!=null?c:[],d==null?void 0:d.injectTraceUrls)),this.overrideFetch(s.config,s),this.overrideXhr(s.config,s))},overrideFetch:function(s,c){var d=this,h=s.api,h={name:this.name,traceRequestHeader:h!=null&&h.injectTraceHeader?this.traceRequestHeader:null,then:function(S,I,x,z){var P,M;q2(x,s.hostUrl)||(P=S.headers?S.headers.get("content-type"):"",(M=y3(s,P||"",x))==="fetch"?S.clone().text().then(function(D){var V,i2=S.status<=0||400<=S.status,G=((G=s.api)==null?void 0:G.reqHeaders)||[],s2=h3(z==null?void 0:z.headers,G,"req"),G=((G=s.api)==null?void 0:G.resHeaders)||[],t2=h3(S.headers,G,"res"),Y=j(z==null?void 0:z.headers),G=A2(D,s.api,{url:x,ctx:S,payload:z==null?void 0:z.body}),X=G.code,l2=G.isErr,G=(G=s.api)==null?void 0:G.apiDetail,h2=G?B2(z==null?void 0:z.body,(V=s.api)==null?void 0:V.reqParamHandler,{url:x}):"",X2=G?B2(D,(V=s.api)==null?void 0:V.resBodyHandler,{url:x,ctx:S}):"";setTimeout(function(){var g2=w3(s,{url:x,duration:I,type:M,status:S.status||0,method:(z==null?void 0:z.method)||"get"}),D2=[i2?"FETCH_ERROR: "+D:"","fetch req url: "+x,"res status: "+(g2.status||0),"res duration: "+g2.duration+"ms",s2,t2,"req method: "+(g2.method||"GET"),"res retcode: "+X,b3(h2,"req param"),b3(X2,"res data")].filter(function(k3){return k3}).join(`
|
|||
|
|
|||
|
`);g2.payload=z==null?void 0:z.body,g2.ret=X,g2.isErr=+l2,d.publishNormalLog({msg:D2,level:S3(i2,l2),code:X,trace:Y},c),d.publishSpeed(g2,c)},0)}):setTimeout(function(){var D=w3(s,{url:x,duration:I,type:M,status:S.status||0,method:(z==null?void 0:z.method)||"get"});D.type="static",D.urlQuery=S2(x,!0),d.publishSpeed(D,c)},0))},catch:function(S,I,x,z){var P,M,D,V,i2;throw q2(x,s.hostUrl)||(P=y3(s,"",x),M=((M=s.api)==null?void 0:M.reqHeaders)||[],D=h3(z==null?void 0:z.headers,M,"req"),V=j(z==null?void 0:z.headers),i2=(M=s.api)!=null&&M.apiDetail?B2(z==null?void 0:z.body,(M=s.api)==null?void 0:M.reqParamHandler,{url:x}):"",setTimeout(function(){var s2=w3(s,{url:x,duration:I,type:P,status:0,method:(z==null?void 0:z.method)||"get"}),s2=(d.publishSpeed(s2,c),"AJAX_ERROR: "+S+`
|
|||
|
|
|||
|
req url: `+x+`
|
|||
|
|
|||
|
res status: 0
|
|||
|
|
|||
|
res duration: `+s2.duration+`ms
|
|||
|
|
|||
|
req method: `+((z==null?void 0:z.method)||"get")+`
|
|||
|
|
|||
|
req param: `+i2+`
|
|||
|
|
|||
|
`+D);d.publishNormalLog({msg:s2,level:o2.AJAX_ERROR,code:-400,trace:V},c)},0)),S}},$=(this.hackFetchOptions=h,this.hackFetchOptions),v=(h=s.api)==null?void 0:h.ignoreHackReg;if(v===void 0&&(v=/\.flv(\?|$)/gi),Z2.find(function(S){return S.name===$.name}))throw new Error("name '"+$.name+"' is already in hackFetch option list");Z2.push($),!gl&&window.fetch&&(gl=!0,K3=window.fetch,window.fetch=function(S,I){I===void 0&&(I={});var x=typeof S=="string"?S:S==null?void 0:S.url;if((D=v==null?void 0:v.test)!=null&&D.call(v,x))return K3(x,I);kl.test(x)&&(x=""+location.origin+x);var z,P,M,D=($||{}).traceRequestHeader;D&&(z=(z=(I||{}).headers)===void 0?{}:z,P=(M=X3()).host,M=M.pathname,P=(D=D.generate(x,z,{host:P,pathname:M})||{}).name,M=D.value)&&P&&(I.headers=Object.assign(z,((D={})[P]=M,D)));for(var V=0;V<Z2.length;V++){var i2=Z2[V];try{typeof i2.beforeFetch=="function"&&i2.beforeFetch(x,I)}catch{}}var s2=Date.now();return K3(S,I).then(function(t2){for(var Y=t2.clone(),X=0;X<Z2.length;X++){var l2=Z2[X];try{typeof l2.then=="function"&&l2.then(Y,Date.now()-s2,x,I)}catch{}}return Y}).catch(function(t2){for(var Y=0;Y<Z2.length;Y++){var X=Z2[Y];try{typeof X.catch=="function"&&X.catch(t2,Date.now()-s2,x,I)}catch{}}throw t2})})},overrideXhr:function(s,c){var d,h=this,$={name:this.name,ignoreHackReg:($=s.api)==null?void 0:$.ignoreHackReg,send:function(v,S){var I,x,z=Date.now(),P=(((s==null?void 0:s.api)||{}).injectTraceHeader&&(x=(I=X3()).host,I=I.pathname,I=(x=h.traceRequestHeader.generate(v.aegisUrl,{},{host:x,pathname:I})||{}).name,x=x.value,I)&&x&&v.setRequestHeader(I,x),v.addEventListener("loadend",function(){var V,i2,s2,t2,Y=v.aegisUrl||"";q2(Y,s.hostUrl)||v.failType==="abort"||(V="",(v.failType||!v.status||400<=v.status)&&(V=v.failType||"failed"),i2=Date.now()-z,s2=v.getResponseHeader("content-type")||"",t2=y3(s,s2,Y),setTimeout(function(){var X=w3(s,{url:Y,duration:i2,type:t2,status:v.status,method:v.aegisMethod||"get"});if(t2==="fetch"){var g2=((g2=s.api)==null?void 0:g2.reqHeaders)||[],l2=h3(v.aegisXhrReqHeader,g2,"req"),g2=((g2=s.api)==null?void 0:g2.resHeaders)||[],G=v.getAllResponseHeaders().split(`\r
|
|||
|
`).reduce(function(N2,w2){return w2=w2.split(": "),w2[0]&&w2[1]&&(N2[w2[0]]=w2[1]),N2},{}),h2=h3(G,g2,"res"),X2=j(v.aegisXhrReqHeader),g2=(G=s.api)==null?void 0:G.apiDetail,D2=g2?B2(S,(G=s.api)==null?void 0:G.reqParamHandler,{url:Y}):"",k3=g2?B2(v.response,(G=s.api)==null?void 0:G.resBodyHandler,{url:Y}):"";try{(function(N2,w2,x2,z2){var U3,ql,V2,Ul;try{if(typeof(w2==null?void 0:w2.retCodeHandlerAsync)=="function")return w2.retCodeHandlerAsync(N2,x2==null?void 0:x2.url,x2==null?void 0:x2.ctx,function(P3){var ml=P3.code,P3=P3.isErr;z2!=null&&z2({code:ml===void 0?F:ml,isErr:P3})});if(typeof(w2==null?void 0:w2.retCodeHandler)=="function")return V2=(ql=w2.retCodeHandler(N2,x2==null?void 0:x2.url,x2==null?void 0:x2.ctx,x2==null?void 0:x2.payload)||{}).code,Ul=ql.isErr,z2!=null&&z2({code:V2===void 0?F:V2,isErr:Ul});if(!(N2=typeof N2=="string"?JSON.parse(N2):N2))return z2!=null&&z2({code:F,isErr:!1});typeof((U3=w2==null?void 0:w2.ret)==null?void 0:U3.join)=="function"&&(Y2=[].concat(w2.ret.map(function(H3){return H3.toLowerCase()})));var fl=Object.getOwnPropertyNames(N2).filter(function(H3){return Y2.indexOf(H3.toLowerCase())!==-1});if(fl.length)return(V2=N2[fl[0]])!=="\u672A\u77E5"&&V2!==""||(V2=F),z2!=null&&z2({code:""+V2,isErr:V2!==0&&V2!=="0"&&V2!==F});z2!=null&&z2({code:F,isErr:!1})}catch{z2!=null&&z2({code:F,isErr:!1})}})(v.response,s.api,{url:Y,ctx:v,payload:S},function(x2){var w2=x2.code,x2=x2.isErr,z2=[V?"AJAX_ERROR: request "+V:"","fetch req url: "+Y,"res status: "+(X.status||0),"res duration: "+X.duration+"ms",l2,h2,"req method: "+(X.method||"GET"),"res retcode: "+w2,b3(D2,"req param"),b3(k3,"res data")].filter(function(U3){return U3}).join(`
|
|||
|
|
|||
|
`);X.ret=w2,X.isErr=+x2,X.payload=S,h.publishNormalLog({msg:z2,level:S3(!!V,x2),code:w2,trace:X2},c),h.publishSpeed(X,c)})}catch{X.ret=F,h.publishSpeed(X,c)}}else X.type="static",X.urlQuery=S2(Y,!0),h.publishSpeed(X,c);v.removeEventListener("abort",P),v.removeEventListener("error",M),v.removeEventListener("timeout",D)},0))}),function(){v.failType="abort"}),M=function(){v.failType="error"},D=function(){v.failType="timeout"};v.addEventListener("abort",P),v.addEventListener("error",M),v.addEventListener("timeout",D)}};this.hackXHROptions=$,d=this.hackXHROptions,n3.find(function(v){return v.name===d.name})||(n3.push(d),!Y3&&window.XMLHttpRequest&&(Q3=window.XMLHttpRequest.prototype.send,J=window.XMLHttpRequest.prototype.open,u3=window.XMLHttpRequest.prototype.setRequestHeader,Y3=!0,window.XMLHttpRequest.prototype.open=function(){this.aegisMethod=arguments[0];var v,S=arguments[1];if(kl.test(S)&&(S=""+location.origin+S),this.aegisUrl=S,(S=(v=d.ignoreHackReg)==null?void 0:v.test)==null||!S.call(v,this.aegisUrl))if(this.aegisXhrStartTime=Date.now(),this.sendByAegis)K.isIE()||(this.timeout=5e3);else for(var I=0;I<n3.length;I++){var x=n3[I];try{typeof x.open=="function"&&x.open(this)}catch{}}return J.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var v,S,I;return(S=(I=d.ignoreHackReg)==null?void 0:I.test)!=null&&S.call(I,this.aegisUrl)?u3.apply(this,arguments):(S=arguments[0],I=arguments[1],this.aegisXhrReqHeader=(v=this.aegisXhrReqHeader)!=null?v:{},-1<["traceparent","b3","sw8","sentry-trace"].indexOf(S)&&(this.aegisXhrReqHeader[S]||(arguments[1]=I),this.aegisXhrReqHeader[S])?void 0:(this.aegisXhrReqHeader[S]=arguments[1],u3.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var v,S;if(!((S=(v=d.ignoreHackReg)==null?void 0:v.test)!=null&&S.call(v,this.aegisUrl)||this.sendByAegis))for(var I=0;I<n3.length;I++){var x=n3[I];try{typeof x.send=="function"&&x.send(this,arguments[0])}catch{}}return Q3.apply(this,arguments)}))},publishSpeed:function(s){var c=this;this.$walk(function(d){var h=c.$getConfig(d);s.type!=="fetch"||typeof(h==null?void 0:h.urlHandler)!="function"?(s.url=S2(s.url),d.speedLogPipeline(s)):d.speedLogPipeline(t(t({},s),{url:S2(h.urlHandler(s.url,s.payload))}))})},publishNormalLog:function(s){this.$walk(function(c){c.normalLogPipeline(s)})},destroy:function(){var s,c,d;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(s=this.option.hackXHROptions,(d=n3.findIndex(function(h){return h.name===s.name}))!==-1)&&n3.splice(d,1),this.option.hackFetchOptions&&(c=this.option.hackFetchOptions,(d=Z2.findIndex(function(h){return h.name===c.name}))!==-1)&&Z2.splice(d,1),this.option.override=!1}})),I3={},Kl=new C2({name:"reportBridgeSpeed",override:!1,onNewAegis:function(s){this.override||(this.override=!0,this.overrideBridge(s))},publishSpeed:function(s,c){this.$walk(function(d){d===c&&d.speedLogPipeline(s)})},overrideBridge:function(s){var c=this,d=s.config;d.reportBridgeSpeed&&d.h5Bridge&&d.h5BridgeFunc.length&&d.h5BridgeFunc.forEach(function(h){var $=d.h5Bridge[h];I3[h]=$,d.h5Bridge[h]=function(){for(var v=[],S=0;S<arguments.length;S++)v[S]=arguments[S];var I=v[0],x=v[1],z=v[2],P=v[3],M=Date.now();$(I,x,z,function(D){var V=A2(D,d.api),i2=V.code,V=V.isErr,i2={url:I+"-"+x,name:I+"-"+x,duration:Date.now()-M,type:"bridge",ret:i2,isErr:+V};c.publishSpeed(i2,s),P(D)})}})},unHackBridge:function(s){Object.keys(I3).forEach(function(c){I3[c]&&(s.config.h5Bridge[c]=I3[c])}),I3={}},destroy:function(s){this.option.publishSpeed=function(){},this.option.unHackBridge(s),this.option.override=!1}});(c2=M2=M2||{})[c2.unknown=100]="unknown",c2[c2.wifi=1]="wifi",c2[c2.net2g=2]="net2g",c2[c2.net3g=3]="net3g",c2[c2.net4g=4]="net4g",c2[c2.net5g=5]="net5g",c2[c2.net6g=6]="net6g",(c2=M3=M3||{})[c2.android=1]="android",c2[c2.ios=2]="ios",c2[c2.windows=3]="windows",c2[c2.macos=4]="macos",c2[c2.linux=5]="linux",c2[c2.other=100]="other",(c2=T3=T3||{})[c2.unknown=100]="unknown",c2[c2.normal=0]="normal",c2[c2.weak=1]="weak",c2[c2.disconnected=2]
|
|||
|
|
|||
|
`+H2(z[4]||""),level:o2.ERROR},s),x!=null&&x.call.apply(x,m([window],z))},window.addEventListener("unhandledrejection",c),window.document.addEventListener("error",d,!0),s.lifeCycle.on("destroy",function(){bl.countInstance()===0&&(window.document.removeEventListener("unhandledrejection",c),window.document.removeEventListener("error",d,!0))}),s.config.websocketHack&&(h={key:s.config.id+"-"+this.name,onErr:function(z){var P;(P=I.publishWsErrorLog)!=null&&P.call(I,z,s)},sendErr:function(z){var P;(P=I.publishWsErrorLog)!=null&&P.call(I,z,s)}},this.hackWebsocketConfig=h,h=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&($=window.WebSocket,window&&!$.isHack&&(v=new Proxy(WebSocket,ln),$.isHack=!0,window.WebSocket=v),S=h,e3.find(function(z){return z.key===S.key})||S&&e3.push(S))},publishErrorLog:function(s,c){this.$walk(function(d){d===c&&d.normalLogPipeline(s)})},publishWsErrorLog:function($,c){var d=$.connectUrl,h=$.msg,$=$.readyState;this.publishErrorLog({msg:`WEBSOCKET_ERROR:
|
|||
|
connect: `+d+`
|
|||
|
readyState: `+$+`
|
|||
|
msg: `+h,level:o2.WEBSOCKET_ERROR},c)},destroy:function(){var s,c;this.option.publishErrorLog=function(){},this.option.hackWebsocketConfig&&(s=this.option.hackWebsocketConfig,window.WebSocket=Yl,(c=e3.findIndex(function(d){return d.key===s.key}))!==-1)&&e3.splice(c,1)}}),yl=(new C2({name:"pagePerformance"}),3),Sl=new C2({name:"pagePerformance",performanceMap:{},onNewAegis:function(s){t3()&&(o3?this.publish(o3,s):this.startCalcPerformance(s))},publish:function(s,c){var d=this;this.$walk(function(h){h===c&&h.sendPipeline([function($,v){var S,I=[];for(S in $)I.push(S+"="+$[S]);var x,z=d.$getConfig(h);if(z)return x=((x=h.config.performanceUrl)==null?void 0:x.indexOf("?"))===-1?"?":"&",typeof z.urlHandler=="function"?v({url:h.config.performanceUrl+x+I.join("&")+"&from="+(encodeURIComponent(z.urlHandler())||window.location.href),beanFilter:["from"],type:k2.PERFORMANCE,log:$}):v({url:h.config.performanceUrl+x+I.join("&"),type:k2.PERFORMANCE,log:$})}],k2.PERFORMANCE)(t({},s))})},startCalcPerformance:function(s){var c=this;try{this.getFirstScreenTiming(s,function(d){var h=performance.timing;h&&(o3={dnsLookup:G2(h.domainLookupEnd-h.domainLookupStart),tcp:G2(h.connectEnd-h.connectStart),ssl:G2(h.secureConnectionStart===0?0:h.requestStart-h.secureConnectionStart),ttfb:G2(h.responseStart-h.requestStart),contentDownload:G2(h.responseEnd-h.responseStart),domParse:G2(h.domInteractive-h.domLoading,0,15e3,1070),resourceDownload:G2(h.loadEventStart-h.domInteractive,0,15e3,1070),firstScreenTiming:G2(Math.floor(d),0,15e3,15e3)},(h=s.config).extraPerformanceData&&JSON.stringify(h.extraPerformanceData)!=="{}"&&(h=(d=h.extraPerformanceData).engineInit,d=d.bundleLoad,o3=t(t({},o3),{engineInit:G2(h,0,1e4),bundleLoad:G2(d,0,1e4)})),c.publish(o3,s))})}catch{}},getFirstScreenTiming:function(s,c){var d=this;s.lifeCycle.on("destroy",function(){M&&clearTimeout(M)});var h,$=this,v=["script","style","link","br"],S=[],I={},x=(-1<((z=(z=window.PerformanceObserver)==null?void 0:z.supportedEntryTypes)==null?void 0:z.indexOf("paint"))&&(h=new PerformanceObserver(function(D){D.getEntries().forEach(function(V){var i2;V.entryType==="paint"&&V.name==="first-contentful-paint"&&0<(i2=document.querySelectorAll("[AEGIS-FIRST-SCREEN-TIMING]")).length&&(d.setFirstScreenInfo(s,V.startTime,i2[0],i2),c!=null&&c(V.startTime),x.disconnect(),h.disconnect())})})).observe({entryTypes:["paint"]}),new MutationObserver(function(D){var V={roots:[],ignores:[],rootsDomNum:[],time:performance.now()};D.forEach(function(i2){i2&&i2.addedNodes&&Array.prototype.slice.call(i2.addedNodes).forEach(function(s2){$.isEleInArray(s2,V.ignores)?V.ignores.push(s2):s2.nodeType===1&&s2.hasAttribute("AEGIS-FIRST-SCREEN-TIMING")?(Object.prototype.hasOwnProperty.apply(I,[V.time])||(I[V.time]=[]),I[V.time].push(s2)):s2.nodeType===1&&($.hasAncestorOrSelfWithAttribute(s2,"AEGIS-IGNORE-FIRST-SCREEN-TIMING")?V.ignores.push(s2):v.indexOf(s2.nodeName.toLocaleLowerCase())!==-1||$.isEleInArray(s2,V.roots)||(V.roots.push(s2),V.rootsDomNum.push($.walkAndCount(s2)||0)))})}),V.roots.length&&S.push(V)}));x.observe(document,{childList:!0,subtree:!0});var z,P=function(D){(D=D===void 0?0:D)||(V=0,(s2=Object.keys(I)).length?(D=Math.max.apply(null,s2),d.setFirstScreenInfo(s,D,(s2=I[D])==null?void 0:s2[0],I)):S.forEach(function(l2){for(var G=0;G<l2.roots.length;G++)l2.rootsDomNum[G]>V&&$.isInFirstScreen(l2.roots[G])&&(V=l2.rootsDomNum[G],D=l2.time,d.setFirstScreenInfo(s,D,l2.roots[G]))}),S.length=0,Object.keys(I).forEach(function(l2){I[l2]=I[l2].map(function(G){var h2={tagName:G.tagName},X2=G.attributes;if(!X2)return G;for(var g2=0;g2<X2.length;g2++){var D2=X2[g2];D2.name&&(h2[D2.name]=G.getAttribute(D2.name))}return h2})}));var V,s2=performance.timing,i2=s2.domInteractive-s2.domLoading,s2=s2.loadEventStart-s2.domInteractive,t2=D;M=null;for(var Y=0,X=[i2,s2,t2];Y<X.length;Y++)if(X[Y]<=0&&0<yl){M=setTimeout(function(){return P(t2)},3e3);break}M?--yl:(x.disconnect(),h!=null&&h.disconnect(),c!=null&&c(D))},M=setTimeout(function(){return P()},3e3)},setFirstScreenInfo:function(s,c,d,h){var $;s.config.id&&this.per
|
|||
|
It is recommended that you contact us for feedback and thank you for your support.`,"color: red"),v.sendSDKError(S)}return v}function Wl(){this.constructor=al}new C2({name:"ie"}),new C2({name:"onClose"});var Vl=new C2({name:"onClose",onNewAegis:function(s){var c,d=this;K.desktop()?(c=window.onunload,window.onunload=function(){for(var h=[],$=0;$<arguments.length;$++)h[$]=arguments[$];d.publishNotReportedLog(s),c!=null&&c.call.apply(c,m([window],h))}):xl(this.publishNotReportedLog.bind(this,s),{once:!0})},publishNotReportedLog:function(s){var c=this;this.$walk(function(d){d===s&&(d.sendNow=!0,d.publishPluginsLogs(),c.publishThrottlePipeLogs(d))})},publishThrottlePipeLogs:function(s){s!=null&&s.speedLogPipeline([]),s!=null&&s.eventPipeline([]),s!=null&&s.customTimePipeline([]),s!=null&&s.normalLogPipeline([])}});return new C2({name:"aid"}),Z.use(nn),Z.use(Ql),Z.use(C3),Z.use(Sl),Z.use(Ol),Z.use(l3),Z.use(c2),Z.use(on),Z.use(Vl),Z.use(Kl),Z})})(aegis_min);const Aegis=aegis_min.exports,encodingIndexes$1={big5:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null
|