2024-05-12 03:43:06 +00:00
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 defaultValidateLocale , aV as InputNumber , aW as Switch , aX as Alert , aY as Drawer , aZ as Message , a _ as Button , a$ as ConfigProvider , b0 as lang$1 , b1 as resolveComponent , b2 as Modal , b3 as createApp } from "./arco.02de294f.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.61cd37ef.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.4e4c1473.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 ) , s
* @ license MIT * / ( f u n c t i o n ( l , e ) { ( f u n c t i o n ( n , u ) { l . e x p o r t s = u ( ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( ) { v a r n = { } ; n . v e r s i o n = " 0 . 2 . 0 " ; v a r u = n . s e t t i n g s = { m i n i m u m : . 0 8 , e a s i n g : " e a s e " , p o s i t i o n U s i n g : " " , s p e e d : 2 0 0 , t r i c k l e : ! 0 , t r i c k l e R a t e : . 0 2 , t r i c k l e S p e e d : 8 0 0 , s h o w S p i n n e r : ! 0 , b a r S e l e c t o r : ' [ r o l e = " b a r " ] ' , s p i n n e r S e l e c t o r : ' [ r o l e = " s p i n n e r " ] ' , p a r e n t : " b o d y " , t e m p l a t e : ' < d i v c l a s s = " b a r " r o l e = " b a r " > < d i v c l a s s = " p e g " > < / d i v > < / d i v > < d i v c l a s s = " s p i n n e r " r o l e = " s p i n n e r " > < d i v c l a s s = " s p i n n e r - i c o n " > < / d i v > < / d i v > ' } ; n . c o n f i g u r e = f u n c t i o n ( k ) { v a r y , E ; f o r ( y i n k ) E = k [ y ] , E ! = = v o i d 0 & & k . h a s O w n P r o p e r t y ( y ) & & ( u [ y ] = E ) ; r e t u r n t h i s } , n . s t a t u s = n u l l , n . s e t = f u n c t i o n ( k ) { v a r y = n . i s S t a r t e d ( ) ; k = o ( k , u . m i n i m u m , 1 ) , n . s t a t u s = k = = = 1 ? n u l l : k ; v a r E = n . r e n d e r ( ! y ) , R = E . q u e r y S e l e c t o r ( u . b a r S e l e c t o r ) , Y = u . s p e e d , a 2 = u . e a s i n g ; r e t u r n E . o f f s e t W i d t h , m ( f u n c t i o n ( A ) { u . p o s i t i o n U s i n g = = = " " & & ( u . p o s i t i o n U s i n g = n . g e t P o s i t i o n i n g C S S ( ) ) , _ ( R , t ( k , Y , a 2 ) ) , k = = = 1 ? ( _ ( E , { t r a n s i t i o n : " n o n e " , o p a c i t y : 1 } ) , E . o f f s e t W i d t h , s e t T i m e o u t ( f u n c t i o n ( ) { _ ( E , { t r a n s i t i o n : " a l l " + Y + " m s l i n e a r " , o p a c i t y : 0 } ) , s e t T i m e o u t ( f u n c t i o n ( ) { n . r e m o v e ( ) , A ( ) } , Y ) } , Y ) ) : s e t T i m e o u t ( A , Y ) } ) , t h i s } , n . i s S t a r t e d = f u n c t i o n ( ) { r e t u r n t y p e o f n . s t a t u s = = " n u m b e r " } , n . s t a r t = f u n c t i o n ( ) { n . s t a t u s | | n . s e t ( 0 ) ; v a r k = f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { ! n . s t a t u s | | ( n . t r i c k l e ( ) , k ( ) ) } , u . t r i c k l e S p e e d ) } ; r e t u r n u . t r i c k l e & & k ( ) , t h i s } , n . d o n e = f u n c t i o n ( k ) { r e t u r n ! k & & ! n . s t a t u s ? t h i s : n . i n c ( . 3 + . 5 * M a t h . r a n d o m ( ) ) . s e t ( 1 ) } , n . i n c = f u n c t i o n ( k ) { v a r y = n . s t a t u s ; r e t u r n y ? ( t y p e o f k ! = " n u m b e r " & & ( k = ( 1 - y ) * o ( M a t h . r a n d o m ( ) * y , . 1 , . 9 5 ) ) , y = o ( y + k , 0 , . 9 9 4 ) , n . s e t ( y ) ) : n . s t a r t ( ) } , n . t r i c k l e = f u n c t i o n ( ) { r e t u r n n . i n c ( M a t h . r a n d o m ( ) * u . t r i c k l e R a t e ) } , f u n c t i o n ( ) { v a r k = 0 , y = 0 ; n . p r o m i s e = f u n c t i o n ( E ) { r e t u r n ! E | | E . s t a t e ( ) = = = " r e s o l v e d " ? t h i s : ( y = = = 0 & & n . s t a r t ( ) , k + + , y + + , E . a l w a y s ( f u n c t i o n ( ) { y - - , y = = = 0 ? ( k = 0 , n . d o n e ( ) ) : n . s e t ( ( k - y ) / k ) } ) , t h i s ) } } ( ) , n . r e n d e r = f u n c t i o n ( k ) { i f ( n . i s R e n d e r e d ( ) ) r e t u r n d o c u m e n t . g e t E l e m e n t B y I d ( " n p r o g r e s s " ) ; C ( d o c u m e n t . d o c u m e n t E l e m e n t , " n p r o g r e s s - b u s y " ) ; v a r y = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; y . i d = " n p r o g r e s s " , y . i n n e r H T M L = u . t e m p l a t e ; v a r E = y . q u e r y S e l e c t o r ( u . b a r S e l e c t o r ) , R = k ? " - 1 0 0 " : r ( n . s t a t u s | | 0 ) , Y = d o c u m e n t . q u e r y S e l e c t o r ( u . p a r e n t ) , a 2 ; r e t u r n _ ( E , { t r a n s i t i o n : " a l l 0 l i n e a r " , t r a n s f o r m : " t r a n s l a t e 3 d ( " + R + " % , 0 , 0 ) " } ) , u . s h o w S p i n n e r | | ( a 2 = y . q u e r y S e l e c t o r ( u . s p i n n e r S e l e c t o r ) , a 2 & & F ( a 2 ) ) , Y ! = d o c u m e n t . b o d y & & C ( Y , " n p r o g r e s s - c u s t o m - p a r e n t " ) , Y . a p p e n d C h i l d ( y ) , y } , n . r e m o v e = f u n c t i o n ( ) { b ( d o c u m e n t . d o c u m e n t E l e m e n t , " n p r o g r e s s - b u s y " ) , b ( d o c u m e n t . q u e r y S e l e c t o r ( u . p a r e n t ) , " n p r o g r e s s - c u s t o m - p a r e n t " ) ; v a r k = d o c u m e n t . g e t E l e m e n t B y I d ( " n p r o g r e s s " ) ; k & & F ( k ) } , n . i s R e n d e r e d = f u n c t i o n ( ) { r e t u r n ! ! d o c u m e n t . g e t E l e m e n t B y I d ( " n p r o g r e s s " ) } , n . g e t P o s i t i o n i n g C S S = f u n c t i o n ( ) { v a r k = d o c u m e n t . b o d y . s t y l e , y = " W e b k i t T r a n s f o r m " i n k ? " W e b k i t " : " M o z T r a n s f o r m " i n k ? " M o z " : " m s T r a n s f o r m " i n k ? " m s " : " O T r a n s f o r m " i n k ? " O " : " " ; r e t u r n y + " P e r s p e c t i v e " i n k ? " t r a n s l a t e 3 d " : y + " T r a n s f o r m " i n k ? " t r a n s l a t e " : " m a r g i n " } ; f u n c t i o n o ( k , y , E ) { r e t u r n k < y ? y : k > E ? E : k } f u n c t i o n r ( k ) { r e t u r n ( - 1 + k ) * 1 0 0 } f u n c t i o n t ( k , y , E ) { v a r R ; r e t u r n u . p o s i t i o n U s i n g = = = " t r a n s l a t e 3 d " ? R = { t r a n s f o r m : " t r a n s l a t e 3 d ( " + r ( k ) + " % , 0 , 0 ) " } : u . p o s i t i o n U s i n g = = = " t r a n s l a t e " ? R = { t r a n s f o r m : " t r a n s l a t e ( " + r ( k ) + " % , 0 ) " } : R = { " m a r g i n - l e f t " : r ( k ) + " % " } , R . t r a n s i t i o n = " a l l " + y + " m s " + E , R } v a r m = f u n c t i o n ( ) { v a r k = [ ] ; f u n c t i o n y ( ) { v a r E = k . s h i f t ( ) ; E & & E ( y ) } r e t u r n f u n c t i o n ( E ) { k . p u s h ( E ) , k . l e n g t h = = 1 & & y ( ) } } ( ) , _ = f u n c t i o n ( ) { v a r k = [ " W e b k i t " , " O " , " M o z " , " m s " ] , y = { } ; f u n c t i o n E ( A ) { r e t u r n A . r e p l a c e ( / ^ - m s - / , " m s - " ) . r e p l a c e ( / - ( [ \ d a - z ] ) / g i , f u n c t i o n ( u 2 , m 2 ) { r e t u r n m 2 . t o U p p e r C a s e ( ) } ) } f u n c t i o n R ( A ) { v a r u 2 = d o c u m e n t . b o d y . s t y l e ; i f ( A i n u 2 ) r e t u r n A ; f o r ( v a r m 2 = k . l e n g t h , j = A . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + A . s l i c e ( 1 ) , e 2 ; m 2 - - ; ) i f ( e 2 = k [ m 2 ] + j , e 2 i n u 2 ) r e t u r n e 2 ; r e t u r n A } f u n c t i o n Y ( A ) { r e t u r n A = E ( A ) , y [ A ] | | ( y [ A ] = R ( A ) ) } f u n c t i o n a 2 ( A , u 2 , m 2 ) { u 2 = Y ( u 2 ) , A . s t y l e [ u 2 ] = m 2 } r e t u r n f u n c t i o n ( A , u 2 ) { v a r m 2 = a r g u m e n t s , j , e 2 ; i f ( m 2 . l e n g t h = = 2 ) f o r ( j i n u 2 ) e 2 = u 2 [ j ] , e 2 ! = = v o i d 0 & & u 2 . h a s O w n P r o p e r t y ( j ) & & a 2 ( A , j , e 2 ) ; e l s e a 2 ( A , m 2 [ 1 ] , m 2 [ 2 ] ) } } ( ) ; f u n c t i o n p ( k , y ) { v a r E = t y p e o f k = = " s t r i n g " ? k : w ( k ) ; r e t u r n E . i n d e x O f ( " " + y + " " ) > = 0 } f u n c t i o n C ( k , y ) { v a r E = w ( k ) , R = E + y ; p ( E , y ) | | ( k . c l a s s N a m e = R . s u b s t r i n g ( 1 ) ) } f u n c t i o n b ( k , y ) { v a r E = w ( k ) , R ; ! p ( k , y ) | | ( R = E . r e p l a c e ( " " + y + " " , " " ) , k . c l a s s N a m e = R . s u b s t r i n g ( 1 , R . l e n g t h - 1 ) ) } f u n c t i o n w ( k ) { r e t u r n ( " " + ( k . c l a s s N a m e | | " " ) + " " ) . r e p l a c e ( / \ s + / g i , " " ) } f u n c t i o n F ( k ) { k & & k . p a r e n t N o d e & & k . p a r e n t N o d e . r e m o v e C h i l
` ),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,Y;function a2(){b.cancelToken&&b.cancelToken.unsubscribe(Y),b.signal&&b.signal.removeEventListener("abort",Y)}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)&&(Y=function( $ 2){!A||(k(! $ 2|| $ 2&& $ 2.type?new p("canceled"): $ 2),A.abort(),A=null)},b.cancelToken&&b.cancelToken.subscribe(Y),b.signal&&(b.signal.aborted?Y():b.signal.addEventListener("abort",Y))),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
2024-05-11 08:52:12 +00:00
* vue - i18n v9 . 11.1
* ( c ) 2024 kazuya kawaguchi
* Released under the MIT License .
2024-05-12 03:43:06 +00:00
* /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 / 2 p97mcze ",[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
2024-05-11 08:52:12 +00:00
Mock - 模拟请求 & 模拟数据
https : //github.com/nuysoft/Mock
墨智 mozhi . gyy @ taobao . com nuysoft @ gmail . com
2024-05-12 03:43:06 +00:00
* / v a r C = { H a n d l e r : u , R a n d o m : r , U t i l : o , X H R : p , R E : t , t o J S O N S c h e m a : m , v a l i d : _ , h e r e d o c : o . h e r e d o c , s e t u p : f u n c t i o n ( b ) { r e t u r n p . s e t u p ( b ) } , _ m o c k e d : { } } ; C . v e r s i o n = " 1 . 0 . 1 - b e t a 3 " , p & & ( p . M o c k = C ) , C . m o c k = f u n c t i o n ( b , w , F ) { r e t u r n a r g u m e n t s . l e n g t h = = = 1 ? u . g e n ( b ) : ( a r g u m e n t s . l e n g t h = = = 2 & & ( F = w , w = v o i d 0 ) , p & & ( w i n d o w . X M L H t t p R e q u e s t = p ) , C . _ m o c k e d [ b + ( w | | " " ) ] = { r u r l : b , r t y p e : w , t e m p l a t e : F } , C ) } , l . e x p o r t s = C } , f u n c t i o n ( m o d u l e , e x p o r t s , _ _ w e b p a c k _ r e q u i r e _ _ ) { v a r C o n s t a n t = _ _ w e b p a c k _ r e q u i r e _ _ ( 2 ) , U t i l = _ _ w e b p a c k _ r e q u i r e _ _ ( 3 ) , P a r s e r = _ _ w e b p a c k _ r e q u i r e _ _ ( 4 ) , R a n d o m = _ _ w e b p a c k _ r e q u i r e _ _ ( 5 ) , R E = _ _ w e b p a c k _ r e q u i r e _ _ ( 2 0 ) , H a n d l e r = { e x t e n d : U t i l . e x t e n d } ; H a n d l e r . g e n = f u n c t i o n ( l , e , n ) { e = e = = n u l l ? " " : e + " " , n = n | | { } , n = { p a t h : n . p a t h | | [ C o n s t a n t . G U I D ] , t e m p l a t e P a t h : n . t e m p l a t e P a t h | | [ C o n s t a n t . G U I D + + ] , c u r r e n t C o n t e x t : n . c u r r e n t C o n t e x t , t e m p l a t e C u r r e n t C o n t e x t : n . t e m p l a t e C u r r e n t C o n t e x t | | l , r o o t : n . r o o t | | n . c u r r e n t C o n t e x t , t e m p l a t e R o o t : n . t e m p l a t e R o o t | | n . t e m p l a t e C u r r e n t C o n t e x t | | l } ; v a r u = P a r s e r . p a r s e ( e ) , o = U t i l . t y p e ( l ) , r ; r e t u r n H a n d l e r [ o ] ? ( r = H a n d l e r [ o ] ( { t y p e : o , t e m p l a t e : l , n a m e : e , p a r s e d N a m e : e & & e . r e p l a c e ( C o n s t a n t . R E _ K E Y , " $ 1 " ) , r u l e : u , c o n t e x t : n } ) , n . r o o t | | ( n . r o o t = r ) , r ) : l } , H a n d l e r . e x t e n d ( { a r r a y : f u n c t i o n ( l ) { v a r e = [ ] , n , u ; i f ( l . t e m p l a t e . l e n g t h = = = 0 ) r e t u r n e ; i f ( l . r u l e . p a r a m e t e r s ) i f ( l . r u l e . m i n = = = 1 & & l . r u l e . m a x = = = v o i d 0 ) l . c o n t e x t . p a t h . p u s h ( l . n a m e ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( l . n a m e ) , e = R a n d o m . p i c k ( H a n d l e r . g e n ( l . t e m p l a t e , v o i d 0 , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e i f ( l . r u l e . p a r a m e t e r s [ 2 ] ) l . t e m p l a t e . _ _ o r d e r _ i n d e x = l . t e m p l a t e . _ _ o r d e r _ i n d e x | | 0 , l . c o n t e x t . p a t h . p u s h ( l . n a m e ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( l . n a m e ) , e = H a n d l e r . g e n ( l . t e m p l a t e , v o i d 0 , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) [ l . t e m p l a t e . _ _ o r d e r _ i n d e x % l . t e m p l a t e . l e n g t h ] , l . t e m p l a t e . _ _ o r d e r _ i n d e x + = + l . r u l e . p a r a m e t e r s [ 2 ] , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e f o r ( n = 0 ; n < l . r u l e . c o u n t ; n + + ) f o r ( u = 0 ; u < l . t e m p l a t e . l e n g t h ; u + + ) l . c o n t e x t . p a t h . p u s h ( e . l e n g t h ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( u ) , e . p u s h ( H a n d l e r . g e n ( l . t e m p l a t e [ u ] , e . l e n g t h , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e f o r ( n = 0 ; n < l . t e m p l a t e . l e n g t h ; n + + ) l . c o n t e x t . p a t h . p u s h ( n ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( n ) , e . p u s h ( H a n d l e r . g e n ( l . t e m p l a t e [ n ] , n , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; r e t u r n e } , o b j e c t : f u n c t i o n ( l ) { v a r e = { } , n , u , o , r , t , m ; i f ( l . r u l e . m i n ! = n u l l ) f o r ( n = U t i l . k e y s ( l . t e m p l a t e ) , n = R a n d o m . s h u f f l e ( n ) , n = n . s l i c e ( 0 , l . r u l e . c o u n t ) , m = 0 ; m < n . l e n g t h ; m + + ) o = n [ m ] , r = o . r e p l a c e ( C o n s t a n t . R E _ K E Y , " $ 1 " ) , l . c o n t e x t . p a t h . p u s h ( r ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( o ) , e [ r ] = H a n d l e r . g e n ( l . t e m p l a t e [ o ] , o , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e { n = [ ] , u = [ ] ; f o r ( o i n l . t e m p l a t e ) ( t y p e o f l . t e m p l a t e [ o ] = = " f u n c t i o n " ? u : n ) . p u s h ( o ) ; f o r ( n = n . c o n c a t ( u ) , m = 0 ; m < n . l e n g t h ; m + + ) o = n [ m ] , r = o . r e p l a c e ( C o n s t a n t . R E _ K E Y , " $ 1 " ) , l . c o n t e x t . p a t h . p u s h ( r ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( o ) , e [ r ] = H a n d l e r . g e n ( l . t e m p l a t e [ o ] , o , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) , t = o . m a t c h ( C o n s t a n t . R E _ K E Y ) , t & & t [ 2 ] & & U t i l . t y p e ( l . t e m p l a t e [ o ] ) = = = " n u m b e r " & & ( l . t e m p l a t e [ o ] + = p a r s e I n t ( t [ 2 ] , 1 0 ) ) } r e t u r n e } , n u m b e r : f u n c t i o n ( l ) { v a r e , n ; i f ( l . r u l e . d e c i m a l ) { f o r ( l . t e m p l a t e + = " " , n = l . t e m p l a t e . s p l i t ( " . " ) , n [ 0 ] = l . r u l e . r a n g e ? l . r u l e . c o u n t : n [ 0 ] , n [ 1 ] = ( n [ 1 ] | | " " ) . s l i c e ( 0 , l . r u l e
` ?(N.seenCR||N.line++,N.column=1,N.seenCR=!1):hl===" \r "||hl===" \u 2028"||hl===" \u 2029"?(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=Q3,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=Y2(),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=K3,g++):(f=null,U===0&&W(n3)),f!==null&&(n2=a,f=kl()),f===null&&(g=a),a=f,a}function Y2(){var a,f;return a=g,j.charCodeAt(g)===36?(f=gl,g++):(f=null,U===0&&W(Z2)),f!==null&&(n2=a,f=Yl()),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(Ql)),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=Q2(),N!==null?(j.charCodeAt(g)===44?(H=B3,g++):(H=null,U===0&&W( $ l)),H!==null?(f2=Q2(),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=Q2(),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=Q2(),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=Kl,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 Q2(){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),Y=0;Y<R;Y++)y+=this.gen(k.body,y,E);return y},quantifier:function(k,y,E){var R=Math.max(k.min,0),Y=isFinite(k.max)?k.max:R+o.integer(3,7);return o.integer(R,Y)},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,Y=0,a2;Y<k.body.length;Y++)switch(a2=k.body[Y],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(),Y=this.gen(k.end,y,E).charCodeAt();return String.fromCharCode(o.integer(R,Y))},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(Y){Y.name===y[E]&&(R=Y)}),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 +)|)|)/,Y=location.href,a2=R.exec(Y.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,Y){if(u.type(R)==="string")return R===Y;if(u.type(R)==="regexp")return R.test(Y)}}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:" \u 8BF7 \u 6C42 \u 6210 \u 529F",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:" \u 738B \u 7ACB \u 7FA4",avatar:"//lf1-xgcdn-tos.pstatp.com/obj/vcloud/vadmin/start.8e0e4855ee346a46ccff8ff3e24db27b.png",email:"wangliqun@email.com",job:"frontend",jobName:" \u 524D \u 7AEF \u 827A \u 672F \u 5BB6",organization:"Frontend",organizationName:" \u 524D \u 7AEF",location:"beijing",locationName:" \u 5317 \u 4EAC",introduction:" \u 4EBA \u 6F47 \u 6D12 \u FF0C \u 6027 \u 6E29 \u 5B58",personalWebsite:"https://www.arco.design",phone:"150****0000",registrationDate:"2013-05-10 12:10:00",accountId:"15012312300",certification:1,role:l})}return failResponseWrap(null," \u 672A \u 767B \u 5F55",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," \u 8D26 \u 53F7 \u 6216 \u 8005 \u 5BC6 \u 7801 \u 9519 \u 8BEF",5e4):failResponseWrap(null," \u 5BC6 \u 7801 \u 4E0D \u 80FD \u 4E3A \u 7A7A",5e4):failResponseWrap(null," \u 7528 \u 6237 \u 540D \u 4E0D \u 80FD \u 4E3A \u 7A7A",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:" \u 90D1 \u 66E6 \u 6708",subTitle:" \u 7684 \u 79C1 \u 4FE1",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/8361eeb82904210b4f55fab888fe8416.png~tplv-uwbnlip3yd-webp.webp",content:" \u 5BA1 \u 6279 \u 8BF7 \u 6C42 \u 5DF2 \u 53D1 \u 9001 \u FF0C \u 8BF7 \u 67E5 \u 6536",time:" \u 4ECA \u 5929 12:30:01"},{id:2,type:"message",title:" \u 5B81 \u 6CE2",subTitle:" \u 7684 \u 56DE \u 590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:" \u 6B64 \u 5904 bug \u 5DF2 \u 7ECF \u 4FEE \u 590D",time:" \u 4ECA \u 5929 12:30:01"},{id:3,type:"message",title:" \u 5B81 \u 6CE2",subTitle:" \u 7684 \u 56DE \u 590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:" \u 6B64 \u 5904 bug \u 5DF2 \u 7ECF \u 4FEE \u 590D",time:" \u 4ECA \u 5929 12:20:01"},{id:4,
2024-05-11 08:52:12 +00:00
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+ `
2024-05-12 03:43:06 +00:00
` +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&&Q2(v,this),v=Object.getPrototypeOf(v););r2.instances.length===0&&(h=Object.getPrototypeOf(this).constructor,Q2(h),Q2(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
2024-05-11 08:52:12 +00:00
2024-05-12 03:43:06 +00:00
` )+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 Y3,J,u3,Q3,M2,M3,T3,K3=!(Q.isIE=function(){return"ActiveXObject"in window}),n3=[],kl=/^ \/ [^/]/,gl=!1,Z2=[],Yl=(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"),K=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( `
2024-05-11 08:52:12 +00:00
2024-05-12 03:43:06 +00:00
` );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:K},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+ `
2024-05-11 08:52:12 +00:00
req url : ` +x+ `
res status : 0
res duration : ` +s2.duration+ ` ms
req method : ` +((z==null?void 0:z.method)||"get")+ `
req param : ` +i2+ `
2024-05-12 03:43:06 +00:00
` +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,Q3=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 Q3(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 Q3(S,I).then(function(t2){for(var K=t2.clone(),X=0;X<Z2.length;X++){var l2=Z2[X];try{typeof l2.then=="function"&&l2.then(K,Date.now()-s2,x,I)}catch{}}return K}).catch(function(t2){for(var K=0;K<Z2.length;K++){var X=Z2[K];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,K=v.aegisUrl||"";q2(K,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,K),setTimeout(function(){var X=w3(s,{url:K,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:K}):"",k3=g2?B2(v.response,(G=s.api)==null?void 0:G.resBodyHandler,{url:K}):"";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"&&(K2=[].concat(w2.ret.map(function(H3){return H3.toLowerCase()})));var fl=Object.getOwnPropertyNames(N2).filter(function(H3){return K2.indexOf(H3.toLowerCase())!==-1});if(fl.length)return(V2=N2[fl[0]])!==" \u 672A \u 77E5"&&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:K,ctx:v,payload:S},function(x2){var w2=x2.code,x2=x2.isErr,z2=[V?"AJAX_ERROR: request "+V:"","fetch req url: "+K,"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( `
2024-05-11 08:52:12 +00:00
2024-05-12 03:43:06 +00:00
` );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(K,!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),!K3&&window.XMLHttpRequest&&(Y3=window.XMLHttpRequest.prototype.send,J=window.XMLHttpRequest.prototype.open,u3=window.XMLHttpRequest.prototype.setRequestHeader,K3=!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)Q.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 Y3.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={},Ql=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]
2024-05-11 08:52:12 +00:00
` +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 : ` + $ + `
2024-05-12 03:43:06 +00:00
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=Kl,(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 K=0,X=[i2,s2,t2];K<X.length;K++)if(X[K]<=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;Q.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(Yl),Z.use(C3),Z.use(Sl),Z.use(Ol),Z.use(l3),Z.use(c2),Z.use(on),Z.use(Vl),Z.use(Ql),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