2024-09-16 17:10:21 +08:00
const _ _vite _ _mapDeps = ( i , m = _ _vite _ _mapDeps , d = ( m . f || ( m . f = [ "assets/dagre-C4YA43F3-CS1i9Mzh.js" , "assets/graph-yIYB0v6v.js" , "assets/_baseUniq-ByQqvOPy.js" , "assets/layout-gIBcRdj6.js" , "assets/min-CWFgAfkq.js" , "assets/json-D5d6YKXg.js" , "assets/c4Diagram-THADGKDP-9g24yl_4.js" , "assets/chunk-XVOYOM2C-rz3JpyH-.js" , "assets/flowDiagram-44NOAMKU-CVkND8V-.js" , "assets/chunk-WZBIATSK-Cu36bwzu.js" , "assets/chunk-GWHMDDHB-DowWjsl1.js" , "assets/channel-CbJQHmgg.js" , "assets/erDiagram-62CBQV5Y-vjuKFSxR.js" , "assets/gitGraphDiagram-UL5UFKDR-DPB_3Aa1.js" , "assets/chunk-OQCM5LHU-C8uJdes1.js" , "assets/chunk-2RYQ3QTB-BRZGgneN.js" , "assets/gitGraph-YCYPL57B-OKgwha6u.js" , "assets/ganttDiagram-ASEIQ4P5-DbCCy9WT.js" , "assets/linear-CwPXgFd2.js" , "assets/init-Gi6I4Gst.js" , "assets/infoDiagram-YGJTP6AA-Bi4Nq6J6.js" , "assets/pieDiagram-OZX6XH5M-D-YIYnHe.js" , "assets/arc-h4dfsZJk.js" , "assets/ordinal-Cboi1Yqb.js" , "assets/quadrantDiagram-VG34DGKC-CtpTKcc7.js" , "assets/xychartDiagram-TMT7NLBN-DEVT_-Tt.js" , "assets/requirementDiagram-FPZB6IJI-DCbdt44c.js" , "assets/sequenceDiagram-K7U7U2PU-CREZGLL9.js" , "assets/classDiagram-4BHYIK4I-ChvKWGNi.js" , "assets/chunk-BAVOGKFW-CvkmnuT7.js" , "assets/classDiagram-v2-SPY6V32O-CC1ydVmv.js" , "assets/chunk-MKAIFKW5-BTnm7K5x.js" , "assets/stateDiagram-WG76EWPK-DG1hHHbr.js" , "assets/chunk-NQF7MJAO-DvQWvhKn.js" , "assets/stateDiagram-v2-KR4XTQLW-_fOPLilc.js" , "assets/journeyDiagram-G5LC7W2K-8hP_26kT.js" , "assets/timeline-definition-KYQAIZUX-B6HhWkHV.js" , "assets/mindmap-definition-26FWEE7H-DEbThg6t.js" , "assets/cytoscape.esm-BXZzmjBR.js" , "assets/sankeyDiagram-KMMQDL5K-uYBBIB0h.js" , "assets/diagram-QS5GVLUX-Do7TrlIx.js" , "assets/blockDiagram-SLEYNUNN-D35BT3QB.js" , "assets/architectureDiagram-WQGLKCSC-C4ALl0OI.js" ] ) ) ) => i . map ( i => d [ i ] ) ;
2024-09-16 00:03:18 +08:00
var yA = Object . defineProperty ; var dS = Ra => { throw TypeError ( Ra ) } ; var EA = ( Ra , qa , ed ) => qa in Ra ? yA ( Ra , qa , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : ed } ) : Ra [ qa ] = ed ; var n _ = ( Ra , qa , ed ) => EA ( Ra , typeof qa != "symbol" ? qa + "" : qa , ed ) , TA = ( Ra , qa , ed ) => qa . has ( Ra ) || dS ( "Cannot " + ed ) ; var pS = ( Ra , qa , ed ) => qa . has ( Ra ) ? dS ( "Cannot add the same private member more than once" ) : qa instanceof WeakSet ? qa . add ( Ra ) : qa . set ( Ra , ed ) ; var kE = ( Ra , qa , ed ) => ( TA ( Ra , qa , "access private method" ) , ed ) ; ( function ( ) { const qa = document . createElement ( "link" ) . relList ; if ( qa && qa . supports && qa . supports ( "modulepreload" ) ) return ; for ( const rd of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) td ( rd ) ; new MutationObserver ( rd => { for ( const sd of rd ) if ( sd . type === "childList" ) for ( const od of sd . addedNodes ) od . tagName === "LINK" && od . rel === "modulepreload" && td ( od ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function ed ( rd ) { const sd = { } ; return rd . integrity && ( sd . integrity = rd . integrity ) , rd . referrerPolicy && ( sd . referrerPolicy = rd . referrerPolicy ) , rd . crossOrigin === "use-credentials" ? sd . credentials = "include" : rd . crossOrigin === "anonymous" ? sd . credentials = "omit" : sd . credentials = "same-origin" , sd } function td ( rd ) { if ( rd . ep ) return ; rd . ep = ! 0 ; const sd = ed ( rd ) ; fetch ( rd . href , sd ) } } ) ( ) ; const global$1 = globalThis || void 0 || self ; / * *
2024-09-07 10:27:05 +08:00
* @ vue / shared v3 . 5.3
2024-08-27 22:31:52 +08:00
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-09-16 00:03:18 +08:00
* * //*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra,qa){const ed=new Set(Ra.split(","));return td=>ed.has(td)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&(Ra.charCodeAt(2)>122||Ra.charCodeAt(2)<97),isModelListener=Ra=>Ra.startsWith("onUpdate:"),extend$3=Object.assign,remove$1=(Ra,qa)=>{const ed=Ra.indexOf(qa);ed>-1&&Ra.splice(ed,1)},hasOwnProperty$i=Object.prototype.hasOwnProperty,hasOwn$1=(Ra,qa)=>hasOwnProperty$i.call(Ra,qa),isArray$2=Array.isArray,isMap$1=Ra=>toTypeString(Ra)==="[object Map]",isSet$1=Ra=>toTypeString(Ra)==="[object Set]",isDate$1=Ra=>toTypeString(Ra)==="[object Date]",isFunction$4=Ra=>typeof Ra=="function",isString$3=Ra=>typeof Ra=="string",isSymbol$1=Ra=>typeof Ra=="symbol",isObject$5=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$5(Ra)||isFunction$4(Ra))&&isFunction$4(Ra.then)&&isFunction$4(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$3=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$3(Ra)&&Ra!=="NaN"&&Ra[0]!=="-"&&""+parseInt(Ra,10)===Ra,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=Ra=>{const qa=Object.create(null);return ed=>qa[ed]||(qa[ed]=Ra(ed))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,ed)=>ed?ed.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize$1(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let ed=0;ed<Ra.length;ed++)Ra[ed](...qa)},def$2=(Ra,qa,ed,td=!1)=>{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:td,value:ed})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$3=Ra=>{const qa=isString$3(Ra)?Number(Ra):NaN;return isNaN(qa)?Ra:qa};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global$1<"u"?global$1:{});function normalizeStyle(Ra){if(isArray$2(Ra)){const qa={};for(let ed=0;ed<Ra.length;ed++){const td=Ra[ed],rd=isString$3(td)?parseStringStyle(td):normalizeStyle(td);if(rd)for(const sd in rd)qa[sd]=rd[sd]}return qa}else if(isString$3(Ra)||isObject$5(Ra))return Ra}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(Ra){const qa={};return Ra.replace(styleCommentRE,"").split(listDelimiterRE).forEach(ed=>{if(ed){const td=ed.split(propertyDelimiterRE);td.length>1&&(qa[td[0].trim()]=td[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$3(Ra))qa=Ra;else if(isArray$2(Ra))for(let ed=0;ed<Ra.length;ed++){const td=normalizeClass(Ra[ed]);td&&(qa+=td+" ")}else if(isObject$5(Ra))for(const ed in Ra)Ra[ed]&&(qa+=ed+" ");return qa.trim()}function normalizeProps(Ra){if(!Ra)return null;let{class:qa,style:ed}=Ra;return qa&&!isString$3(qa)&&(Ra.class=normalizeClass(qa)),ed&&(Ra.style=normalizeStyle(ed)),Ra}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(Ra){return!!Ra||Ra===""}function looseCompareArrays(Ra,qa){if(Ra.length!==qa.length)return!1;let ed=!0;for(let td=0;ed&&td<Ra.length;td++)ed=looseEqual(Ra[td],qa[td]);return ed}function looseEqual(Ra,qa){if(Ra===qa)return!0;let ed=isDate$1(Ra),td=isDate$1(qa);if(ed||td)return ed&&td?Ra.getTime()===qa.getTime():!1;if(ed=isSymbol$1(Ra),td=isSymbol$1(qa),ed||td)return Ra===qa;if(ed=isArray$2(Ra),td=isArray$2(qa),ed||td)return ed&&td?looseCompareArrays(Ra,qa):!1;if(ed=isObject$5(Ra),td=isObject$5(qa),ed||td){if(!ed||!td)return!1;const rd=Object.keys(Ra).length,sd=Object.keys(qa).length;if(rd!==
2024-09-07 10:27:05 +08:00
* @ vue / reactivity v3 . 5.3
2024-08-27 22:31:52 +08:00
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-09-16 00:03:18 +08:00
* * / l e t a c t i v e E f f e c t S c o p e ; c l a s s E f f e c t S c o p e { c o n s t r u c t o r ( q a = ! 1 ) { t h i s . d e t a c h e d = q a , t h i s . _ a c t i v e = ! 0 , t h i s . e f f e c t s = [ ] , t h i s . c l e a n u p s = [ ] , t h i s . _ i s P a u s e d = ! 1 , t h i s . p a r e n t = a c t i v e E f f e c t S c o p e , ! q a & & a c t i v e E f f e c t S c o p e & & ( t h i s . i n d e x = ( a c t i v e E f f e c t S c o p e . s c o p e s | | ( a c t i v e E f f e c t S c o p e . s c o p e s = [ ] ) ) . p u s h ( t h i s ) - 1 ) } g e t a c t i v e ( ) { r e t u r n t h i s . _ a c t i v e } p a u s e ( ) { i f ( t h i s . _ a c t i v e ) { t h i s . _ i s P a u s e d = ! 0 ; l e t q a , e d ; i f ( t h i s . s c o p e s ) f o r ( q a = 0 , e d = t h i s . s c o p e s . l e n g t h ; q a < e d ; q a + + ) t h i s . s c o p e s [ q a ] . p a u s e ( ) ; f o r ( q a = 0 , e d = t h i s . e f f e c t s . l e n g t h ; q a < e d ; q a + + ) t h i s . e f f e c t s [ q a ] . p a u s e ( ) } } r e s u m e ( ) { i f ( t h i s . _ a c t i v e & & t h i s . _ i s P a u s e d ) { t h i s . _ i s P a u s e d = ! 1 ; l e t q a , e d ; i f ( t h i s . s c o p e s ) f o r ( q a = 0 , e d = t h i s . s c o p e s . l e n g t h ; q a < e d ; q a + + ) t h i s . s c o p e s [ q a ] . r e s u m e ( ) ; f o r ( q a = 0 , e d = t h i s . e f f e c t s . l e n g t h ; q a < e d ; q a + + ) t h i s . e f f e c t s [ q a ] . r e s u m e ( ) } } r u n ( q a ) { i f ( t h i s . _ a c t i v e ) { c o n s t e d = a c t i v e E f f e c t S c o p e ; t r y { r e t u r n a c t i v e E f f e c t S c o p e = t h i s , q a ( ) } f i n a l l y { a c t i v e E f f e c t S c o p e = e d } } } o n ( ) { a c t i v e E f f e c t S c o p e = t h i s } o f f ( ) { a c t i v e E f f e c t S c o p e = t h i s . p a r e n t } s t o p ( q a ) { i f ( t h i s . _ a c t i v e ) { l e t e d , t d ; f o r ( e d = 0 , t d = t h i s . e f f e c t s . l e n g t h ; e d < t d ; e d + + ) t h i s . e f f e c t s [ e d ] . s t o p ( ) ; f o r ( e d = 0 , t d = t h i s . c l e a n u p s . l e n g t h ; e d < t d ; e d + + ) t h i s . c l e a n u p s [ e d ] ( ) ; i f ( t h i s . s c o p e s ) f o r ( e d = 0 , t d = t h i s . s c o p e s . l e n g t h ; e d < t d ; e d + + ) t h i s . s c o p e s [ e d ] . s t o p ( ! 0 ) ; i f ( ! t h i s . d e t a c h e d & & t h i s . p a r e n t & & ! q a ) { c o n s t r d = t h i s . p a r e n t . s c o p e s . p o p ( ) ; r d & & r d ! = = t h i s & & ( t h i s . p a r e n t . s c o p e s [ t h i s . i n d e x ] = r d , r d . i n d e x = t h i s . i n d e x ) } t h i s . p a r e n t = v o i d 0 , t h i s . _ a c t i v e = ! 1 } } } f u n c t i o n e f f e c t S c o p e ( R a ) { r e t u r n n e w E f f e c t S c o p e ( R a ) } f u n c t i o n g e t C u r r e n t S c o p e ( ) { r e t u r n a c t i v e E f f e c t S c o p e } f u n c t i o n o n S c o p e D i s p o s e ( R a , q a = ! 1 ) { a c t i v e E f f e c t S c o p e & & a c t i v e E f f e c t S c o p e . c l e a n u p s . p u s h ( R a ) } l e t a c t i v e S u b ; c o n s t p a u s e d Q u e u e E f f e c t s = n e w W e a k S e t ; c l a s s R e a c t i v e E f f e c t { c o n s t r u c t o r ( q a ) { t h i s . f n = q a , t h i s . d e p s = v o i d 0 , t h i s . d e p s T a i l = v o i d 0 , t h i s . f l a g s = 5 , t h i s . n e x t E f f e c t = v o i d 0 , t h i s . c l e a n u p = v o i d 0 , t h i s . s c h e d u l e r = v o i d 0 , a c t i v e E f f e c t S c o p e & & a c t i v e E f f e c t S c o p e . a c t i v e & & a c t i v e E f f e c t S c o p e . e f f e c t s . p u s h ( t h i s ) } p a u s e ( ) { t h i s . f l a g s | = 6 4 } r e s u m e ( ) { t h i s . f l a g s & 6 4 & & ( t h i s . f l a g s & = - 6 5 , p a u s e d Q u e u e E f f e c t s . h a s ( t h i s ) & & ( p a u s e d Q u e u e E f f e c t s . d e l e t e ( t h i s ) , t h i s . t r i g g e r ( ) ) ) } n o t i f y ( ) { t h i s . f l a g s & 2 & & ! ( t h i s . f l a g s & 3 2 ) | | t h i s . f l a g s & 8 | | ( t h i s . f l a g s | = 8 , t h i s . n e x t E f f e c t = b a t c h e d E f f e c t , b a t c h e d E f f e c t = t h i s ) } r u n ( ) { i f ( ! ( t h i s . f l a g s & 1 ) ) r e t u r n t h i s . f n ( ) ; t h i s . f l a g s | = 2 , c l e a n u p E f f e c t ( t h i s ) , p r e p a r e D e p s ( t h i s ) ; c o n s t q a = a c t i v e S u b , e d = s h o u l d T r a c k ; a c t i v e S u b = t h i s , s h o u l d T r a c k = ! 0 ; t r y { r e t u r n t h i s . f n ( ) } f i n a l l y { c l e a n u p D e p s ( t h i s ) , a c t i v e S u b = q a , s h o u l d T r a c k = e d , t h i s . f l a g s & = - 3 } } s t o p ( ) { i f ( t h i s . f l a g s & 1 ) { f o r ( l e t q a = t h i s . d e p s ; q a ; q a = q a . n e x t D e p ) r e m o v e S u b ( q a ) ; t h i s . d e p s = t h i s . d e p s T a i l = v o i d 0 , c l e a n u p E f f e c t ( t h i s ) , t h i s . o n S t o p & & t h i s . o n S t o p ( ) , t h i s . f l a g s & = - 2 } } t r i g g e r ( ) { t h i s . f l a g s & 6 4 ? p a u s e d Q u e u e E f f e c t s . a d d ( t h i s ) : t h i s . s c h e d u l e r ? t h i s . s c h e d u l e r ( ) : t h i s . r u n I f D i r t y ( ) } r u n I f D i r t y ( ) { i s D i r t y ( t h i s ) & & t h i s . r u n ( ) } g e t d i r t y ( ) { r e t u r n i s D i r t y ( t h i s ) } } l e t b a t c h D e p t h = 0 , b a t c h e d E f f e c t ; f u n c t i o n s t a r t B a t c h ( ) { b a t c h D e p t h + + } f u n c t i o n e n d B a t c h ( ) { i f ( - - b a t c h D e p t h > 0 ) r e t u r n ; l e t R a ; f o r ( ; b a t c h e d E f f e c t ; ) { l e t q a = b a t c h e d E f f e c t ; f o r ( b a t c h e d E f f e c t = v o i d 0 ; q a ; ) { c o n s t e d = q a . n e x t E f f e c t ; i f ( q a . n e x t E f f e c t = v o i d 0 , q a . f l a g s & = - 9 , q a . f l a g s & 1 ) t r y { q a . t r i g g e r ( ) } c a t c h ( t d ) { R a | | ( R a = t d ) } q a = e d } } i f ( R a ) t h r o w R a } f u n c t i o n p r e p a r e D e p s ( R a ) { f o r ( l e t q a = R a . d e p s ; q a ; q a = q a . n e x t D e p ) q a . v e r s i o n = - 1 , q a . p r e v A c t i v e L i n k = q a . d e p . a c t i v e L i n k , q a . d e p . a c t i v e L i n k = q a } f u n c t i o n c l e a n u p D e p s ( R a ) { l e t q a , e d = R a . d e p s T a i l ; f o r ( l e t t d = e d ; t d ; t d = t d . p r e v D e p ) t d . v e r s i o n = = = - 1 ? ( t d = = = e d & & ( e d = t d . p r e v D e p ) , r e m o v e S u b ( t d ) , r e m o v e D e p ( t d ) ) : q a = t d , t d . d e p . a c t i v e L i n k = t d . p r e v A c t i v e L i n k , t d . p r e v A c t i v e L i n k = v o i d 0 ; R a . d e p s = q a , R a . d e p s T a i l = e d } f u n c t i o n i s D i r t y ( R a ) { f o r ( l e t q a = R a . d e p s ; q a ; q a = q a . n e x t D e p ) i f ( q a . d e p . v e r s i o n ! = = q a . v e r s i o n | | q a . d e p . c o m p u t e d & & r e f r e s h C o m p u t e d ( q a . d e p . c o m p u t e d ) = = = ! 1 | | q a . d e p . v e r s i o n ! = = q a . v e r s i o n ) r e t u r n ! 0 ; r e t u r n ! ! R a . _ d i r t y } f u n c t i o n r e f r e s h C o m p u t e d ( R a ) { i f ( R a . f l a g s & 2 ) r e t u r n ! 1 ; i f ( R a . f l a g s & 4 & & ! ( R a . f l a g s & 1 6 ) | | ( R a . f l a g s & = - 1 7 , R a . g l o b a l V e r s i o n = = = g l o b a l V e r s i o n ) ) r e t u r n ; R a . g l o b a l V e r s i o n = g l o b a l V e r s i o n ; c o n s t q a = R a . d e p ; i f ( R a . f l a g s | = 2 , q a . v e r s i o n > 0 & & ! R a . i s S S R & & ! i s D i r t y ( R a ) ) { R a . f l a g s & = - 3 ; r e t u r n } c o n s t e d = a c t i v e S u b , t d = s h o u l d T r a c k ; a c t i v e S u b = R a , s h o u l d T r a c k = ! 0 ; t r y { p r e p a r e D e p s ( R a ) ; c o n s t r d = R a . f n ( R a . _ v a l u e ) ; ( q a . v e r s i o n = = = 0 | | h a s C h a n g e d ( r d , R a . _ v a l u e ) ) & & ( R a . _ v a l u e = r d , q a . v e r s i o n + + ) } c a t c h ( r d ) { t h r o w q a . v e r s i o n + + , r d } f i n a l l y { a c t i v e S u b = e d , s
2024-09-07 10:27:05 +08:00
* @ vue / runtime - core v3 . 5.3
2024-08-27 22:31:52 +08:00
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-09-16 00:03:18 +08:00
* * / c o n s t s t a c k = [ ] ; l e t i s W a r n i n g = ! 1 ; f u n c t i o n w a r n $ 1 ( R a , . . . q a ) { i f ( i s W a r n i n g ) r e t u r n ; i s W a r n i n g = ! 0 , p a u s e T r a c k i n g ( ) ; c o n s t e d = s t a c k . l e n g t h ? s t a c k [ s t a c k . l e n g t h - 1 ] . c o m p o n e n t : n u l l , t d = e d & & e d . a p p C o n t e x t . c o n f i g . w a r n H a n d l e r , r d = g e t C o m p o n e n t T r a c e ( ) ; i f ( t d ) c a l l W i t h E r r o r H a n d l i n g ( t d , e d , 1 1 , [ R a + q a . m a p ( s d = > { v a r o d , l d ; r e t u r n ( l d = ( o d = s d . t o S t r i n g ) = = n u l l ? v o i d 0 : o d . c a l l ( s d ) ) ! = n u l l ? l d : J S O N . s t r i n g i f y ( s d ) } ) . j o i n ( " " ) , e d & & e d . p r o x y , r d . m a p ( ( { v n o d e : s d } ) = > ` a t < $ { f o r m a t C o m p o n e n t N a m e ( e d , s d . t y p e ) } > ` ) . j o i n ( `
` ),rd]);else{const sd=[ ` [ Vue warn ] : $ { Ra } ` ,...qa];rd.length&&sd.push( `
` ,...formatTrace(rd)),console.warn(...sd)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const qa=[];for(;Ra;){const ed=qa[0];ed&&ed.vnode===Ra?ed.recurseCount++:qa.push({vnode:Ra,recurseCount:0});const td=Ra.component&&Ra.component.parent;Ra=td&&td.vnode}return qa}function formatTrace(Ra){const qa=[];return Ra.forEach((ed,td)=>{qa.push(...td===0?[]:[ `
` ],...formatTraceEntry(ed))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const ed=qa>0? ` ... ( $ { qa } recursive calls ) ` :"",td=Ra.component?Ra.component.parent==null:!1,rd= ` at < $ { formatComponentName ( Ra . component , Ra . type , td ) } ` ,sd=">"+ed;return Ra.props?[rd,...formatProps(Ra.props),sd]:[rd+sd]}function formatProps(Ra){const qa=[],ed=Object.keys(Ra);return ed.slice(0,3).forEach(td=>{qa.push(...formatProp(td,Ra[td]))}),ed.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,ed){return isString $ 3(qa)?(qa=JSON.stringify(qa),ed?qa:[ ` $ { Ra } = $ { qa } ` ]):typeof qa=="number"||typeof qa=="boolean"||qa==null?ed?qa:[ ` $ { Ra } = $ { qa } ` ]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),ed?qa:[ ` $ { Ra } = Ref < ` ,qa,">"]):isFunction $ 4(qa)?[ ` $ { Ra } = fn$ { qa . name ? ` < ${ qa . name } > ` : "" } ` ]:(qa=toRaw(qa),ed?qa:[ ` $ { Ra } = ` ,qa])}function callWithErrorHandling(Ra,qa,ed,td){try{return td?Ra(...td):Ra()}catch(rd){handleError $ 1(rd,qa,ed)}}function callWithAsyncErrorHandling(Ra,qa,ed,td){if(isFunction $ 4(Ra)){const rd=callWithErrorHandling(Ra,qa,ed,td);return rd&&isPromise(rd)&&rd.catch(sd=>{handleError $ 1(sd,qa,ed)}),rd}if(isArray $ 2(Ra)){const rd=[];for(let sd=0;sd<Ra.length;sd++)rd.push(callWithAsyncErrorHandling(Ra[sd],qa,ed,td));return rd}}function handleError $ 1(Ra,qa,ed,td=!0){const rd=qa?qa.vnode:null,{errorHandler:sd,throwUnhandledErrorInProduction:od}=qa&&qa.appContext.config||EMPTY_OBJ;if(qa){let ld=qa.parent;const cd=qa.proxy,ud= ` https : //vuejs.org/error-reference/#runtime-${ed}`;for(;ld;){const _d=ld.ec;if(_d){for(let Ed=0;Ed<_d.length;Ed++)if(_d[Ed](Ra,cd,ud)===!1)return}ld=ld.parent}if(sd){pauseTracking(),callWithErrorHandling(sd,null,10,[Ra,cd,ud]),resetTracking();return}}logError(Ra,ed,rd,td,od)}function logError(Ra,qa,ed,td=!0,rd=!1){if(rd)throw Ra;console.error(Ra)}let isFlushing=!1,isFlushPending=!1;const queue$2=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(Ra){const qa=currentFlushPromise||resolvedPromise;return Ra?qa.then(this?Ra.bind(this):Ra):qa}function findInsertionIndex(Ra){let qa=isFlushing?flushIndex+1:0,ed=queue$2.length;for(;qa<ed;){const td=qa+ed>>>1,rd=queue$2[td],sd=getId(rd);sd<Ra||sd===Ra&&rd.flags&2?qa=td+1:ed=td}return qa}function queueJob(Ra){if(!(Ra.flags&1)){const qa=getId(Ra),ed=queue$2[queue$2.length-1];!ed||!(Ra.flags&2)&&qa>=getId(ed)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(qa),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(Ra){isArray$2(Ra)?pendingPostFlushCbs.push(...Ra):activePostFlushCbs&&Ra.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,Ra):Ra.flags&1||(pendingPostFlushCbs.push(Ra),Ra.flags|=1),queueFlush()}function flushPreFlushCbs(Ra,qa,ed=isFlushing?flushIndex+1:0){for(;ed<queue$2.length;ed++){const td=queue$2[ed];if(td&&td.flags&2){if(Ra&&td.id!==Ra.uid)continue;queue$2.splice(ed,1),ed--,td.flags&4&&(td.flags&=-2),td(),td.flags&=-2}}}function flushPostFlushCbs(Ra){if(pendingPostFlushCbs.length){const qa=[...new Set(pendingPostFlushCbs)].sort((ed,td)=>getId(ed)-getId(td));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const ed=activePostFlushCbs[postFlushIndex];ed.flags&4&&(ed.flags&=-2),ed.flags&8||ed(),ed.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=Ra=>Ra.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){isFlushPending=!1,isFlushing=!0;try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&!(qa.flags&8)&&(qa.flags&4&&(qa.flags&=-2),callWithErrorHandling(qa,qa.i,qa.i?15:14),qa.flags&=-2)}}finally{for(;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&(qa.flags&=-2)}flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&fl
2024-09-07 10:27:05 +08:00
* @ vue / runtime - dom v3 . 5.3
2024-08-27 22:31:52 +08:00
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-09-16 00:03:18 +08:00
* * /let policy;const tt$5=typeof window<"u"&&window.trustedTypes;if(tt$5)try{policy=tt$5.createPolicy("vue",{createHTML:Ra=>Ra})}catch{}const unsafeToTrustedHTML=policy?Ra=>policy.createHTML(Ra):Ra=>Ra,svgNS="http:/ / www . w3 . org / 2000 / svg ",mathmlNS=" http : //www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,qa,ed)=>{qa.insertBefore(Ra,ed||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,ed,td)=>{const rd=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):ed?doc.createElement(Ra,{is:ed}):doc.createElement(Ra);return Ra==="select"&&td&&td.multiple!=null&&rd.setAttribute("multiple",td.multiple),rd},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,qa)=>{Ra.nodeValue=qa},setElementText:(Ra,qa)=>{Ra.textContent=qa},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,qa){Ra.setAttribute(qa,"")},insertStaticContent(Ra,qa,ed,td,rd,sd){const od=ed?ed.previousSibling:qa.lastChild;if(rd&&(rd===sd||rd.nextSibling))for(;qa.insertBefore(rd.cloneNode(!0),ed),!(rd===sd||!(rd=rd.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(td==="svg"?`<svg>${Ra}</svg>`:td==="mathml"?`<math>${Ra}</math>`:Ra);const ld=templateContainer.content;if(td==="svg"||td==="mathml"){const cd=ld.firstChild;for(;cd.firstChild;)ld.appendChild(cd.firstChild);ld.removeChild(cd)}qa.insertBefore(ld,ed)}return[od?od.nextSibling:qa.firstChild,ed?ed.previousSibling:qa.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=Ra=>(Ra.displayName="Transition",Ra.props=TransitionPropsValidators,Ra),Transition$1=decorate$1((Ra,{slots:qa})=>h$1(BaseTransition,resolveTransitionProps(Ra),qa)),callHook=(Ra,qa=[])=>{isArray$2(Ra)?Ra.forEach(ed=>ed(...qa)):Ra&&Ra(...qa)},hasExplicitCallback=Ra=>Ra?isArray$2(Ra)?Ra.some(qa=>qa.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const qa={};for(const df in Ra)df in DOMTransitionPropsValidators||(qa[df]=Ra[df]);if(Ra.css===!1)return qa;const{name:ed="v",type:td,duration:rd,enterFromClass:sd=`${ed}-enter-from`,enterActiveClass:od=`${ed}-enter-active`,enterToClass:ld=`${ed}-enter-to`,appearFromClass:cd=sd,appearActiveClass:ud=od,appearToClass:_d=ld,leaveFromClass:Ed=`${ed}-leave-from`,leaveActiveClass:Ad=`${ed}-leave-active`,leaveToClass:Td=`${ed}-leave-to`}=Ra,Nd=normalizeDuration(rd),Rd=Nd&&Nd[0],Bd=Nd&&Nd[1],{onBeforeEnter:kd,onEnter:Od,onEnterCancelled:Md,onLeave:Pd,onLeaveCancelled:Fd,onBeforeAppear:Ud=kd,onAppear:Gd=Od,onAppearCancelled:Qd=Md}=qa,Vd=(df,mf,_f)=>{removeTransitionClass(df,mf?_d:ld),removeTransitionClass(df,mf?ud:od),_f&&_f()},zd=(df,mf)=>{df._isLeaving=!1,removeTransitionClass(df,Ed),removeTransitionClass(df,Td),removeTransitionClass(df,Ad),mf&&mf()},Xd=df=>(mf,_f)=>{const hf=df?Gd:Od,gf=()=>Vd(mf,df,_f);callHook(hf,[mf,gf]),nextFrame(()=>{removeTransitionClass(mf,df?cd:sd),addTransitionClass(mf,df?_d:ld),hasExplicitCallback(hf)||whenTransitionEnds(mf,td,Rd,gf)})};return extend$3(qa,{onBeforeEnter(df){callHook(kd,[df]),addTransitionClass(df,sd),addTransitionClass(df,od)},onBeforeAppear(df){callHook(Ud,[df]),addTransitionClass(df,cd),addTransitionClass(df,ud)},onEnter:Xd(!1),onAppear:Xd(!0),onLeave(df,mf){df._isLeaving=!0;const _f=()=>zd(df,mf);addTransitionClass(df,Ed),addTransitionClass(df,Ad),forceReflow(),nextFrame(()=>{df._isLeaving&&(removeTransitionClass(df,Ed),addTransitionClass(df,Td),hasExplicitCallback(Pd)||whenTransitionEnds(df,td,Bd,_f))}),callHook(Pd,[df,_f])},onEnterCancelled
` ).map(rd=>{const sd=rd.match(/^ \s +/);if(sd===null)return rd;const[od]=sd;return od.length>=td.length?rd.slice(td.length):rd}).join( `
` )}let _Tokenizer $ 1=class{constructor(qa){n_(this,"options");n_(this,"rules");n_(this,"lexer");this.options=qa||_defaults $ 1}space(qa){const ed=this.rules.block.newline.exec(qa);if(ed&&ed[0].length>0)return{type:"space",raw:ed[0]}}code(qa){const ed=this.rules.block.code.exec(qa);if(ed){const td=ed[0].replace(/^(?: {1,4}| {0,3} \t )/gm,"");return{type:"code",raw:ed[0],codeBlockStyle:"indented",text:this.options.pedantic?td:rtrim $ 1(td, `
` )}}}fences(qa){const ed=this.rules.block.fences.exec(qa);if(ed){const td=ed[0],rd=indentCodeCompensation $ 1(td,ed[3]||"");return{type:"code",raw:td,lang:ed[2]?ed[2].trim().replace(this.rules.inline.anyPunctuation," $ 1"):ed[2],text:rd}}}heading(qa){const ed=this.rules.block.heading.exec(qa);if(ed){let td=ed[2].trim();if(/# $ /.test(td)){const rd=rtrim $ 1(td,"#");(this.options.pedantic||!rd||/ $ /.test(rd))&&(td=rd.trim())}return{type:"heading",raw:ed[0],depth:ed[1].length,text:td,tokens:this.lexer.inline(td)}}}hr(qa){const ed=this.rules.block.hr.exec(qa);if(ed)return{type:"hr",raw:rtrim $ 1(ed[0], `
` )}}blockquote(qa){const ed=this.rules.block.blockquote.exec(qa);if(ed){let td=rtrim $ 1(ed[0], `
2024-08-27 22:31:52 +08:00
` ).split( `
2024-09-16 00:03:18 +08:00
` ),rd="",sd="";const od=[];for(;td.length>0;){let ld=!1;const cd=[];let ud;for(ud=0;ud<td.length;ud++)if(/^ {0,3}>/.test(td[ud]))cd.push(td[ud]),ld=!0;else if(!ld)cd.push(td[ud]);else break;td=td.slice(ud);const _d=cd.join( `
` ),Ed=_d.replace(/ \n {0,3}((?:=+|-+) *)(?= \n | $ )/g, `
$1 ` ).replace(/^ {0,3}>[ \t ]?/gm,"");rd=rd? ` $ { rd }
$ { _d } ` :_d,sd=sd? ` $ { sd }
$ { Ed } ` :Ed;const Ad=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(Ed,od,!0),this.lexer.state.top=Ad,td.length===0)break;const Td=od[od.length-1];if((Td==null?void 0:Td.type)==="code")break;if((Td==null?void 0:Td.type)==="blockquote"){const Nd=Td,Rd=Nd.raw+ `
` +td.join( `
` ),Bd=this.blockquote(Rd);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Nd.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Nd.text.length)+Bd.text;break}else if((Td==null?void 0:Td.type)==="list"){const Nd=Td,Rd=Nd.raw+ `
` +td.join( `
` ),Bd=this.list(Rd);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Td.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Nd.raw.length)+Bd.raw,td=Rd.substring(od[od.length-1].raw.length).split( `
` );continue}}return{type:"blockquote",raw:rd,tokens:od,text:sd}}}list(qa){let ed=this.rules.block.list.exec(qa);if(ed){let td=ed[1].trim();const rd=td.length>1,sd={type:"list",raw:"",ordered:rd,start:rd?+td.slice(0,-1):"",loose:!1,items:[]};td=rd? ` \ \ d { 1 , 9 } \ \ $ { td . slice ( - 1 ) } ` : ` \ \ $ { td } ` ,this.options.pedantic&&(td=rd?td:"[*+-]");const od=new RegExp( ` ^ ( { 0 , 3 } $ { td } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );let ld=!1;for(;qa;){let cd=!1,ud="",_d="";if(!(ed=od.exec(qa))||this.rules.block.hr.test(qa))break;ud=ed[0],qa=qa.substring(ud.length);let Ed=ed[2].split( `
` ,1)[0].replace(/^ \t +/,kd=>" ".repeat(3*kd.length)),Ad=qa.split( `
` ,1)[0],Td=!Ed.trim(),Nd=0;if(this.options.pedantic?(Nd=2,_d=Ed.trimStart()):Td?Nd=ed[1].length+1:(Nd=ed[2].search(/[^ ]/),Nd=Nd>4?1:Nd,_d=Ed.slice(Nd),Nd+=ed[1].length),Td&&/^[ \t ]* $ /.test(Ad)&&(ud+=Ad+ `
` ,qa=qa.substring(Ad.length+1),cd=!0),!cd){const kd=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Nd - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),Od=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Nd - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),Md=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Nd - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , Pd = new RegExp ( ` ^ {0, ${ Math . min ( 3 , Nd - 1 ) } }# ` ) ; for ( ; qa ; ) { const Fd = qa . split ( `
` ,1)[0];let Ud;if(Ad=Fd,this.options.pedantic?(Ad=Ad.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),Ud=Ad):Ud=Ad.replace(/ \t /g," "),Md.test(Ad)||Pd.test(Ad)||kd.test(Ad)||Od.test(Ad))break;if(Ud.search(/[^ ]/)>=Nd||!Ad.trim())_d+= `
` +Ud.slice(Nd);else{if(Td||Ed.replace(/ \t /g," ").search(/[^ ]/)>=4||Md.test(Ed)||Pd.test(Ed)||Od.test(Ed))break;_d+= `
` +Ad}!Td&&!Ad.trim()&&(Td=!0),ud+=Fd+ `
` ,qa=qa.substring(Fd.length+1),Ed=Ud.slice(Nd)}}sd.loose||(ld?sd.loose=!0:/ \n [ \t ]* \n [ \t ]* $ /.test(ud)&&(ld=!0));let Rd=null,Bd;this.options.gfm&&(Rd=/^ \[ [ xX] \] /.exec(_d),Rd&&(Bd=Rd[0]!=="[ ] ",_d=_d.replace(/^ \[ [ xX] \] +/,""))),sd.items.push({type:"list_item",raw:ud,task:!!Rd,checked:Bd,loose:!1,text:_d,tokens:[]}),sd.raw+=ud}sd.items[sd.items.length-1].raw=sd.items[sd.items.length-1].raw.trimEnd(),sd.items[sd.items.length-1].text=sd.items[sd.items.length-1].text.trimEnd(),sd.raw=sd.raw.trimEnd();for(let cd=0;cd<sd.items.length;cd++)if(this.lexer.state.top=!1,sd.items[cd].tokens=this.lexer.blockTokens(sd.items[cd].text,[]),!sd.loose){const ud=sd.items[cd].tokens.filter(Ed=>Ed.type==="space"),_d=ud.length>0&&ud.some(Ed=>/ \n .* \n /.test(Ed.raw));sd.loose=_d}if(sd.loose)for(let cd=0;cd<sd.items.length;cd++)sd.items[cd].loose=!0;return sd}}html(qa){const ed=this.rules.block.html.exec(qa);if(ed)return{type:"html",block:!0,raw:ed[0],pre:ed[1]==="pre"||ed[1]==="script"||ed[1]==="style",text:ed[0]}}def(qa){const ed=this.rules.block.def.exec(qa);if(ed){const td=ed[1].toLowerCase().replace(/ \s +/g," "),rd=ed[2]?ed[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline.anyPunctuation," $ 1"):"",sd=ed[3]?ed[3].substring(1,ed[3].length-1).replace(this.rules.inline.anyPunctuation," $ 1"):ed[3];return{type:"def",tag:td,raw:ed[0],href:rd,title:sd}}}table(qa){const ed=this.rules.block.table.exec(qa);if(!ed||!/[:|]/.test(ed[2]))return;const td=splitCells $ 1(ed[1]),rd=ed[2].replace(/^ \| | \| * $ /g,"").split("|"),sd=ed[3]&&ed[3].trim()?ed[3].replace(/ \n [ \t ]* $ /,"").split( `
` ):[],od={type:"table",raw:ed[0],header:[],align:[],rows:[]};if(td.length===rd.length){for(const ld of rd)/^ *-+: * $ /.test(ld)?od.align.push("right"):/^ *:-+: * $ /.test(ld)?od.align.push("center"):/^ *:-+ * $ /.test(ld)?od.align.push("left"):od.align.push(null);for(let ld=0;ld<td.length;ld++)od.header.push({text:td[ld],tokens:this.lexer.inline(td[ld]),header:!0,align:od.align[ld]});for(const ld of sd)od.rows.push(splitCells $ 1(ld,od.header.length).map((cd,ud)=>({text:cd,tokens:this.lexer.inline(cd),header:!1,align:od.align[ud]})));return od}}lheading(qa){const ed=this.rules.block.lheading.exec(qa);if(ed)return{type:"heading",raw:ed[0],depth:ed[2].charAt(0)==="="?1:2,text:ed[1],tokens:this.lexer.inline(ed[1])}}paragraph(qa){const ed=this.rules.block.paragraph.exec(qa);if(ed){const td=ed[1].charAt(ed[1].length-1)=== `
` ?ed[1].slice(0,-1):ed[1];return{type:"paragraph",raw:ed[0],text:td,tokens:this.lexer.inline(td)}}}text(qa){const ed=this.rules.block.text.exec(qa);if(ed)return{type:"text",raw:ed[0],text:ed[0],tokens:this.lexer.inline(ed[0])}}escape(qa){const ed=this.rules.inline.escape.exec(qa);if(ed)return{type:"escape",raw:ed[0],text:escape $ 1 $ 2(ed[1])}}tag(qa){const ed=this.rules.inline.tag.exec(qa);if(ed)return!this.lexer.state.inLink&&/^<a /i.test(ed[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(ed[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(ed[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(ed[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:ed[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:ed[0]}}link(qa){const ed=this.rules.inline.link.exec(qa);if(ed){const td=ed[2].trim();if(!this.options.pedantic&&/^</.test(td)){if(!/> $ /.test(td))return;const od=rtrim $ 1(td.slice(0,-1)," \\ ");if((td.length-od.length)%2===0)return}else{const od=findClosingBracket $ 1(ed[2],"()");if(od>-1){const cd=(ed[0].indexOf("!")===0?5:4)+ed[1].length+od;ed[2]=ed[2].substring(0,od),ed[0]=ed[0].substring(0,cd).trim(),ed[3]=""}}let rd=ed[2],sd="";if(this.options.pedantic){const od=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(rd);od&&(rd=od[1],sd=od[3])}else sd=ed[3]?ed[3].slice(1,-1):"";return rd=rd.trim(),/^</.test(rd)&&(this.options.pedantic&&!/> $ /.test(td)?rd=rd.slice(1):rd=rd.slice(1,-1)),outputLink $ 1(ed,{href:rd&&rd.replace(this.rules.inline.anyPunctuation," $ 1"),title:sd&&sd.replace(this.rules.inline.anyPunctuation," $ 1")},ed[0],this.lexer)}}reflink(qa,ed){let td;if((td=this.rules.inline.reflink.exec(qa))||(td=this.rules.inline.nolink.exec(qa))){const rd=(td[2]||td[1]).replace(/ \s +/g," "),sd=ed[rd.toLowerCase()];if(!sd){const od=td[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink $ 1(td,sd,td[0],this.lexer)}}emStrong(qa,ed,td=""){let rd=this.rules.inline.emStrongLDelim.exec(qa);if(!rd||rd[3]&&td.match(/[ \p {L} \p {N}]/u))return;if(!(rd[1]||rd[2]||"")||!td||this.rules.inline.punctuation.exec(td)){const od=[...rd[0]].length-1;let ld,cd,ud=od,_d=0;const Ed=rd[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(Ed.lastIndex=0,ed=ed.slice(-1*qa.length+od);(rd=Ed.exec(ed))!=null;){if(ld=rd[1]||rd[2]||rd[3]||rd[4]||rd[5]||rd[6],!ld)continue;if(cd=[...ld].length,rd[3]||rd[4]){ud+=cd;continue}else if((rd[5]||rd[6])&&od%3&&!((od+cd)%3)){_d+=cd;continue}if(ud-=cd,ud>0)continue;cd=Math.min(cd,cd+ud+_d);const Ad=[...rd[0]][0].length,Td=qa.slice(0,od+rd.index+Ad+cd);if(Math.min(od,cd)%2){const Rd=Td.slice(1,-1);return{type:"em",raw:Td,text:Rd,tokens:this.lexer.inlineTokens(Rd)}}const Nd=Td.slice(2,-2);return{type:"strong",raw:Td,text:Nd,tokens:this.lexer.inlineTokens(Nd)}}}}codespan(qa){const ed=this.rules.inline.code.exec(qa);if(ed){let td=ed[2].replace(/ \n /g," ");const rd=/[^ ]/.test(td),sd=/^ /.test(td)&&/ $ /.test(td);return rd&&sd&&(td=td.substring(1,td.length-1)),td=escape $ 1 $ 2(td,!0),{type:"codespan",raw:ed[0],text:td}}}br(qa){const ed=this.rules.inline.br.exec(qa);if(ed)return{type:"br",raw:ed[0]}}del(qa){const ed=this.rules.inline.del.exec(qa);if(ed)return{type:"del",raw:ed[0],text:ed[2],tokens:this.lexer.inlineTokens(ed[2])}}autolink(qa){const ed=this.rules.inline.autolink.exec(qa);if(ed){let td,rd;return ed[2]==="@"?(td=escape $ 1 $ 2(ed[1]),rd="mailto:"+td):(td=escape $ 1 $ 2(ed[1]),rd=td),{type:"link",raw:ed[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}url(qa){var td;let ed;if(ed=this.rules.inline.url.exec(qa)){let rd,sd;if(ed[2]==="@")rd=escape $ 1 $ 2(ed[0]),sd="mailto:"+rd;else{let od;do od=ed[0],ed[0]=((td=this.rules.inline._backpedal.exec(ed[0]))==null?void 0:td[0])??"";while(od!==ed[0]);rd=escape $ 1 $ 2(ed[0]),ed[1]==="www."?sd="http://"+ed[0]:sd=ed[0]}return{type:"link",raw:ed[0],text:rd,href:sd,tokens:[{type:"text",raw:rd,text:rd}]}}}inlineText(qa){const ed=this.rules.inline.text.exec(qa);if(ed){let td;return this.lexer.state.inRawBl
] ` ).replace("lheading",lheading $ 1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape $ 4=/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , inlineCode$1 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br$4 = /^( {2,}|\\)\n(?!\s*$)/ , inlineText$1 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , _punctuation$1 = "\\p{P}\\p{S}" , punctuation$1 = edit$1 ( /^((?![*_])[\spunctuation])/ , "u" ) . replace ( /punctuation/g , _punctuation$1 ) . getRegex ( ) , blockSkip$1 = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g , emStrongLDelim$1 = edit$1 ( /^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/ , "u" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , emStrongRDelimAst$1 = edit$1 ( "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])" , "gu" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , emStrongRDelimUnd$1 = edit$1 ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])" , "gu" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , anyPunctuation$1 = edit$1 ( /\\([punct])/ , "gu" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , autolink$1 = edit$1 ( /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ ) . replace ( "scheme" , /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ) . replace ( "email" , /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ) . getRegex ( ) , _inlineComment$1 = edit$1 ( _comment$1 ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) , tag$1 = edit$1 ( "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" ) . replace ( "comment" , _inlineComment$1 ) . replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ) . getRegex ( ) , _inlineLabel$1 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ , link$1 = edit$1 ( /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ ) . replace ( "label" , _inlineLabel$1 ) . replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ) . replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ) . getRegex ( ) , reflink$1 = edit$1 ( /^!?\[(label)\]\[(ref)\]/ ) . replace ( "label" , _inlineLabel$1 ) . replace ( "ref" , _blockLabel$1 ) . getRegex ( ) , nolink$1 = edit$1 ( /^!?\[(ref)\](?:\[\])?/ ) . replace ( "ref" , _blockLabel$1 ) . getRegex ( ) , reflinkSearch$1 = edit$1 ( "reflink|nolink(?!\\()" , "g" ) . replace ( "reflink" , reflink$1 ) . replace ( "nolink" , nolink$1 ) . getRegex ( ) , inlineNormal$1 = { _backpedal : noopTest$1 , anyPunctuation : anyPunctuation$1 , autolink : autolink$1 , blockSkip : blockSkip$1 , br : br$4 , code : inlineCode$1 , del : noopTest$1 , emStrongLDelim : emStrongLDelim$1 , emStrongRDelimAst : emStrongRDelimAst$1 , emStrongRDelimUnd : emStrongRDelimUnd$1 , escape : escape$4 , link : link$1 , nolink : nolink$1 , punctuation : punctuation$1 , reflink : reflink$1 , reflinkSearch : reflinkSearch$1 , tag : tag$1 , text : inlineText$1 , url : noopTest$1 } , inlinePedantic$1 = { ... inlineNormal$1 , link : edit$1 ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , _inlineLabel$1 ) . getRegex ( ) , reflink : edit$1 ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , _inlineLabel$1 ) . getRegex ( ) } , inlineGfm$1 = { ... inlineNormal$1 , escape : edit$1 ( escape$4 ) . replace ( "])" , "~|])" ) . getRegex ( ) , url : edit$1 ( /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ , "i" ) . replace ( "email" , /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ ) . getRegex ( ) , _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/ , text : /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ } , inlineBreaks$1 = { ... inlineGfm$1 , br : edit$1 ( br$4 ) . replace ( "{2,}" , "*" ) .
` ),this.blockTokens(qa,this.tokens);for(let ed=0;ed<this.inlineQueue.length;ed++){const td=this.inlineQueue[ed];this.inlineTokens(td.src,td.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,ed=[],td=!1){this.options.pedantic&&(qa=qa.replace(/ \t /g," ").replace(/^ + $ /gm,""));let rd,sd,od;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(ld=>(rd=ld.call({lexer:this},qa,ed))?(qa=qa.substring(rd.raw.length),ed.push(rd),!0):!1))){if(rd=this.tokenizer.space(qa)){qa=qa.substring(rd.raw.length),rd.raw.length===1&&ed.length>0?ed[ed.length-1].raw+= `
` :ed.push(rd);continue}if(rd=this.tokenizer.code(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.text,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(rd=this.tokenizer.fences(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.heading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.hr(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.blockquote(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.list(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.html(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.def(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.raw,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):this.tokens.links[rd.tag]||(this.tokens.links[rd.tag]={href:rd.href,title:rd.title});continue}if(rd=this.tokenizer.table(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.lheading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(od=qa,this.options.extensions&&this.options.extensions.startBlock){let ld=1/0;const cd=qa.slice(1);let ud;this.options.extensions.startBlock.forEach(_d=>{ud=_d.call({lexer:this},cd),typeof ud=="number"&&ud>=0&&(ld=Math.min(ld,ud))}),ld<1/0&&ld>=0&&(od=qa.substring(0,ld+1))}if(this.state.top&&(rd=this.tokenizer.paragraph(od))){sd=ed[ed.length-1],td&&(sd==null?void 0:sd.type)==="paragraph"?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd),td=od.length!==qa.length,qa=qa.substring(rd.raw.length);continue}if(rd=this.tokenizer.text(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&sd.type==="text"?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(qa){const ld="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ld);break}else throw new Error(ld)}}return this.state.top=!0,ed}inline(qa,ed=[]){return this.inlineQueue.push({src:qa,tokens:ed}),ed}inlineTokens(qa,ed=[]){let td,rd,sd,od=qa,ld,cd,ud;if(this.tokens.links){const _d=Object.keys(this.tokens.links);if(_d.length>0)for(;(ld=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)_d.includes(ld[0].slice(ld[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ld=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ld=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,ld.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(cd||(ud=""),cd=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(_d=>(td=_d.call({lexer:this},qa,ed))?(qa=qa.substring(td.raw.length),ed.push(td),!0):!1))){if(td=this.tokenizer.escape(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.tag(qa)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.link(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.emStrong(qa,od,ud)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.codespan(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.br(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.del(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.autolink(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(!this.state.inLink&&(td=this.tokenizer.url(qa))){qa=qa.substring(td.raw.length),ed.push(td);continue}if(sd=qa,this.options.extensions&&this.options.extensions.startInline){let _d=1/0;const Ed=qa.slice(1);let Ad;this.options.extensions.startInline.forEach(Td=>{Ad=Td.call({lexer:this},Ed),typeof Ad=="number"&&Ad>=0&&(_d=Math.min(_d,Ad))}),_d<1/0&&_d>=0&&(sd=qa.substring(0,_d+1))}if(td=this.tokenizer.inlineText(sd)){qa=qa.substring(td.raw.length),td.raw.slice(-1)!=="_"&&(ud=td.raw.slice(-1)),cd=!0,rd=ed[ed.length-1],rd&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(qa){const _d="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(_d);break}else throw new Error(_d)}}return ed}},_Renderer $ 1=class{constructor(qa){n_(this,"options");n_(this,"parser");this.options=qa||_defaults $ 1}space(qa){return""}code({text:qa,lang:ed,escaped:td}){var od;const rd=(od=(ed||"").match(/^ \S */))==null?void 0:od[0],sd=qa.replace(/ \n $ /,"")+ `
` ;return rd?'<pre><code class="language-'+escape $ 1 $ 2(rd)+'">'+(td?sd:escape $ 1 $ 2(sd,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(td?sd:escape $ 1 $ 2(sd,!0))+ ` < / c o d e > < / p r e >
2024-08-30 15:19:18 +08:00
` }blockquote({tokens:qa}){return ` < blockquote >
$ { this . parser . parse ( qa ) } < / b l o c k q u o t e >
2024-09-16 00:03:18 +08:00
` }html({text:qa}){return qa}heading({tokens:qa,depth:ed}){return ` < h$ { ed } > $ { this . parser . parseInline ( qa ) } < / h $ { e d } >
2024-08-30 15:19:18 +08:00
` }hr(qa){return ` < hr >
2024-09-16 00:03:18 +08:00
` }list(qa){const ed=qa.ordered,td=qa.start;let rd="";for(let ld=0;ld<qa.items.length;ld++){const cd=qa.items[ld];rd+=this.listitem(cd)}const sd=ed?"ol":"ul",od=ed&&td!==1?' start="'+td+'"':"";return"<"+sd+od+ ` >
` +rd+"</"+sd+ ` >
` }listitem(qa){let ed="";if(qa.task){const td=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=td+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=td+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:td+" ",text:td+" "}):ed+=td+" "}return ed+=this.parser.parse(qa.tokens,!!qa.loose), ` < li > $ { ed } < / l i >
2024-08-30 15:19:18 +08:00
` }checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return ` < p > $ { this . parser . parseInline ( qa ) } < / p >
2024-09-16 00:03:18 +08:00
` }table(qa){let ed="",td="";for(let sd=0;sd<qa.header.length;sd++)td+=this.tablecell(qa.header[sd]);ed+=this.tablerow({text:td});let rd="";for(let sd=0;sd<qa.rows.length;sd++){const od=qa.rows[sd];td="";for(let ld=0;ld<od.length;ld++)td+=this.tablecell(od[ld]);rd+=this.tablerow({text:td})}return rd&&(rd= ` < tbody > $ { rd } < / t b o d y > ` ) , ` < t a b l e >
2024-08-27 22:31:52 +08:00
< thead >
2024-09-16 00:03:18 +08:00
` +ed+ ` < / t h e a d >
` +rd+ ` < / t a b l e >
2024-08-30 15:19:18 +08:00
` }tablerow({text:qa}){return ` < tr >
$ { qa } < / t r >
2024-09-16 00:03:18 +08:00
` }tablecell(qa){const ed=this.parser.parseInline(qa.tokens),td=qa.header?"th":"td";return(qa.align? ` < $ { td } align = "${qa.align}" > ` : ` < $ { td } > ` )+ed+ ` < / $ { t d } >
` }strong({tokens:qa}){return ` < strong > $ { this . parser . parseInline ( qa ) } < / s t r o n g > ` } e m ( { t o k e n s : q a } ) { r e t u r n ` < e m > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / e m > ` } c o d e s p a n ( { t e x t : q a } ) { r e t u r n ` < c o d e > $ { q a } < / c o d e > ` } b r ( q a ) { r e t u r n " < b r > " } d e l ( { t o k e n s : q a } ) { r e t u r n ` < d e l > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / d e l > ` } l i n k ( { h r e f : q a , t i t l e : e d , t o k e n s : t d } ) { c o n s t r d = t h i s . p a r s e r . p a r s e I n l i n e ( t d ) , s d = c l e a n U r l $ 1 ( q a ) ; i f ( s d = = = n u l l ) r e t u r n r d ; q a = s d ; l e t o d = ' < a h r e f = " ' + q a + ' " ' ; r e t u r n e d & & ( o d + = ' t i t l e = " ' + e d + ' " ' ) , o d + = " > " + r d + " < / a > " , o d } i m a g e ( { h r e f : q a , t i t l e : e d , t e x t : t d } ) { c o n s t r d = c l e a n U r l $ 1 ( q a ) ; i f ( r d = = = n u l l ) r e t u r n t d ; q a = r d ; l e t s d = ` < i m g s r c = " $ { q a } " a l t = " $ { t d } " ` ; r e t u r n e d & & ( s d + = ` t i t l e = " $ { e d } " ` ) , s d + = " > " , s d } t e x t ( q a ) { r e t u r n " t o k e n s " i n q a & & q a . t o k e n s ? t h i s . p a r s e r . p a r s e I n l i n e ( q a . t o k e n s ) : q a . t e x t } } , _ T e x t R e n d e r e r $ 1 = c l a s s { s t r o n g ( { t e x t : q a } ) { r e t u r n q a } e m ( { t e x t : q a } ) { r e t u r n q a } c o d e s p a n ( { t e x t : q a } ) { r e t u r n q a } d e l ( { t e x t : q a } ) { r e t u r n q a } h t m l ( { t e x t : q a } ) { r e t u r n q a } t e x t ( { t e x t : q a } ) { r e t u r n q a } l i n k ( { t e x t : q a } ) { r e t u r n " " + q a } i m a g e ( { t e x t : q a } ) { r e t u r n " " + q a } b r ( ) { r e t u r n " " } } , _ P a r s e r $ 1 = c l a s s D T { c o n s t r u c t o r ( q a ) { n _ ( t h i s , " o p t i o n s " ) ; n _ ( t h i s , " r e n d e r e r " ) ; n _ ( t h i s , " t e x t R e n d e r e r " ) ; t h i s . o p t i o n s = q a | | _ d e f a u l t s $ 1 , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w _ R e n d e r e r $ 1 , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . r e n d e r e r . p a r s e r = t h i s , t h i s . t e x t R e n d e r e r = n e w _ T e x t R e n d e r e r $ 1 } s t a t i c p a r s e ( q a , e d ) { r e t u r n n e w D T ( e d ) . p a r s e ( q a ) } s t a t i c p a r s e I n l i n e ( q a , e d ) { r e t u r n n e w D T ( e d ) . p a r s e I n l i n e ( q a ) } p a r s e ( q a , e d = ! 0 ) { l e t t d = " " ; f o r ( l e t r d = 0 ; r d < q a . l e n g t h ; r d + + ) { c o n s t s d = q a [ r d ] ; i f ( t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ s d . t y p e ] ) { c o n s t l d = s d , c d = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ l d . t y p e ] . c a l l ( { p a r s e r : t h i s } , l d ) ; i f ( c d ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( l d . t y p e ) ) { t d + = c d | | " " ; c o n t i n u e } } c o n s t o d = s d ; s w i t c h ( o d . t y p e ) { c a s e " s p a c e " : { t d + = t h i s . r e n d e r e r . s p a c e ( o d ) ; c o n t i n u e } c a s e " h r " : { t d + = t h i s . r e n d e r e r . h r ( o d ) ; c o n t i n u e } c a s e " h e a d i n g " : { t d + = t h i s . r e n d e r e r . h e a d i n g ( o d ) ; c o n t i n u e } c a s e " c o d e " : { t d + = t h i s . r e n d e r e r . c o d e ( o d ) ; c o n t i n u e } c a s e " t a b l e " : { t d + = t h i s . r e n d e r e r . t a b l e ( o d ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { t d + = t h i s . r e n d e r e r . b l o c k q u o t e ( o d ) ; c o n t i n u e } c a s e " l i s t " : { t d + = t h i s . r e n d e r e r . l i s t ( o d ) ; c o n t i n u e } c a s e " h t m l " : { t d + = t h i s . r e n d e r e r . h t m l ( o d ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { t d + = t h i s . r e n d e r e r . p a r a g r a p h ( o d ) ; c o n t i n u e } c a s e " t e x t " : { l e t l d = o d , c d = t h i s . r e n d e r e r . t e x t ( l d ) ; f o r ( ; r d + 1 < q a . l e n g t h & & q a [ r d + 1 ] . t y p e = = = " t e x t " ; ) l d = q a [ + + r d ] , c d + = `
` +this.renderer.text(ld);ed?td+=this.renderer.paragraph({type:"paragraph",raw:cd,text:cd,tokens:[{type:"text",raw:cd,text:cd}]}):td+=cd;continue}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}parseInline(qa,ed){ed=ed||this.renderer;let td="";for(let rd=0;rd<qa.length;rd++){const sd=qa[rd];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[sd.type]){const ld=this.options.extensions.renderers[sd.type].call({parser:this},sd);if(ld!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(sd.type)){td+=ld||"";continue}}const od=sd;switch(od.type){case"escape":{td+=ed.text(od);break}case"html":{td+=ed.html(od);break}case"link":{td+=ed.link(od);break}case"image":{td+=ed.image(od);break}case"strong":{td+=ed.strong(od);break}case"em":{td+=ed.em(od);break}case"codespan":{td+=ed.codespan(od);break}case"br":{td+=ed.br(od);break}case"del":{td+=ed.del(od);break}case"text":{td+=ed.text(od);break}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}};var AT;let _Hooks $ 1=(AT=class{constructor(qa){n_(this,"options");n_(this,"block");this.options=qa||_defaults $ 1}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}provideLexer(){return this.block?_Lexer $ 1.lex:_Lexer $ 1.lexInline}provideParser(){return this.block?_Parser $ 1.parse:_Parser $ 1.parseInline}},n_(AT,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),AT),Marked $ 1=class{constructor(...qa){n_(this,"defaults",_getDefaults $ 1());n_(this,"options",this.setOptions);n_(this,"parse",this.parseMarkdown(!0));n_(this,"parseInline",this.parseMarkdown(!1));n_(this,"Parser",_Parser $ 1);n_(this,"Renderer",_Renderer $ 1);n_(this,"TextRenderer",_TextRenderer $ 1);n_(this,"Lexer",_Lexer $ 1);n_(this,"Tokenizer",_Tokenizer $ 1);n_(this,"Hooks",_Hooks $ 1);this.use(...qa)}walkTokens(qa,ed){var rd,sd;let td=[];for(const od of qa)switch(td=td.concat(ed.call(this,od)),od.type){case"table":{const ld=od;for(const cd of ld.header)td=td.concat(this.walkTokens(cd.tokens,ed));for(const cd of ld.rows)for(const ud of cd)td=td.concat(this.walkTokens(ud.tokens,ed));break}case"list":{const ld=od;td=td.concat(this.walkTokens(ld.items,ed));break}default:{const ld=od;(sd=(rd=this.defaults.extensions)==null?void 0:rd.childTokens)!=null&&sd[ld.type]?this.defaults.extensions.childTokens[ld.type].forEach(cd=>{const ud=ld[cd].flat(1/0);td=td.concat(this.walkTokens(ud,ed))}):ld.tokens&&(td=td.concat(this.walkTokens(ld.tokens,ed)))}}return td}use(...qa){const ed=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(td=>{const rd={...td};if(rd.async=this.defaults.async||rd.async||!1,td.extensions&&(td.extensions.forEach(sd=>{if(!sd.name)throw new Error("extension name required");if("renderer"in sd){const od=ed.renderers[sd.name];od?ed.renderers[sd.name]=function(...ld){let cd=sd.renderer.apply(this,ld);return cd===!1&&(cd=od.apply(this,ld)),cd}:ed.renderers[sd.name]=sd.renderer}if("tokenizer"in sd){if(!sd.level||sd.level!=="block"&&sd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const od=ed[sd.level];od?od.unshift(sd.tokenizer):ed[sd.level]=[sd.tokenizer],sd.start&&(sd.level==="block"?ed.startBlock?ed.startBlock.push(sd.start):ed.startBlock=[sd.start]:sd.level==="inline"&&(ed.startInline?ed.startInline.push(sd.start):ed.startInline=[sd.start]))}"childTokens"in sd&&sd.childTokens&&(ed.childTokens[sd.name]=sd.childTokens)}),rd.extensions=ed),td.renderer){const sd=this.defaults.renderer||new _Renderer $ 1(this.defaults);for(const od in td.renderer){if(!(od in sd))throw new Error( ` renderer '${od}' does not exist ` );if(["options","parser"].includes(od))continue;const ld=od,cd=td.renderer[ld],ud=sd[ld];sd[ld]=(..._d)=>{let Ed=cd.apply(sd,_d);return Ed===!1&&(Ed=ud.apply(sd,_d)),Ed||""}}rd.renderer=sd}if(td.tokenizer){const sd=this.defaults.tokenizer||new _Tokenizer $ 1(
Please report this to https : //github.com/markedjs/marked.`,qa){const rd="<p>An error occurred:</p><pre>"+escape$1$2(td.message+"",!0)+"</pre>";return ed?Promise.resolve(rd):rd}if(ed)return Promise.reject(td);throw td}}};const markedInstance$1=new Marked$1;function marked$1(Ra,qa){return markedInstance$1.parse(Ra,qa)}marked$1.options=marked$1.setOptions=function(Ra){return markedInstance$1.setOptions(Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.getDefaults=_getDefaults$1;marked$1.defaults=_defaults$1;marked$1.use=function(...Ra){return markedInstance$1.use(...Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.walkTokens=function(Ra,qa){return markedInstance$1.walkTokens(Ra,qa)};marked$1.parseInline=markedInstance$1.parseInline;marked$1.Parser=_Parser$1;marked$1.parser=_Parser$1.parse;marked$1.Renderer=_Renderer$1;marked$1.TextRenderer=_TextRenderer$1;marked$1.Lexer=_Lexer$1;marked$1.lexer=_Lexer$1.lex;marked$1.Tokenizer=_Tokenizer$1;marked$1.Hooks=_Hooks$1;marked$1.parse=marked$1;marked$1.options;marked$1.setOptions;marked$1.use;marked$1.walkTokens;marked$1.parseInline;_Parser$1.parse;_Lexer$1.lex;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(Ra){return Ra&&Ra.__esModule&&Object.prototype.hasOwnProperty.call(Ra,"default")?Ra.default:Ra}function getAugmentedNamespace(Ra){if(Ra.__esModule)return Ra;var qa=Ra.default;if(typeof qa=="function"){var ed=function td(){return this instanceof td?Reflect.construct(qa,arguments,this.constructor):qa.apply(this,arguments)};ed.prototype=qa.prototype}else ed={};return Object.defineProperty(ed,"__esModule",{value:!0}),Object.keys(Ra).forEach(function(td){var rd=Object.getOwnPropertyDescriptor(Ra,td);Object.defineProperty(ed,td,rd.get?rd:{enumerable:!0,get:function(){return Ra[td]}})}),ed}var codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(Ra,qa){(function(ed,td){Ra.exports=td()})(commonjsGlobal,function(){var ed=navigator.userAgent,td=navigator.platform,rd=/gecko\/\d/i.test(ed),sd=/MSIE \d/.test(ed),od=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ed),ld=/Edge\/(\d+)/.exec(ed),cd=sd||od||ld,ud=cd&&(sd?document.documentMode||6:+(ld||od)[1]),_d=!ld&&/WebKit\//.test(ed),Ed=_d&&/Qt\/\d+\.\d+/.test(ed),Ad=!ld&&/Chrome\/(\d+)/.exec(ed),Td=Ad&&+Ad[1],Nd=/Opera\//.test(ed),Rd=/Apple Computer/.test(navigator.vendor),Bd=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ed),kd=/PhantomJS/.test(ed),Od=Rd&&(/Mobile\/\w+/.test(ed)||navigator.maxTouchPoints>2),Md=/Android/.test(ed),Pd=Od||Md||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ed),Fd=Od||/Mac/.test(td),Ud=/\bCrOS\b/.test(ed),Gd=/win/i.test(td),Qd=Nd&&ed.match(/Version\/(\d*\.\d*)/);Qd&&(Qd=Number(Qd[1])),Qd&&Qd>=15&&(Nd=!1,_d=!0);var Vd=Fd&&(Ed||Nd&&(Qd==null||Qd<12.11)),zd=rd||cd&&ud>=9;function Xd(Id){return new RegExp("(^|\\s)"+Id+"(?:$|\\s)\\s*")}var df=function(Id,jd){var Kd=Id.className,Yd=Xd(jd).exec(Kd);if(Yd){var Zd=Kd.slice(Yd.index+Yd[0].length);Id.className=Kd.slice(0,Yd.index)+(Zd?Yd[1]+Zd:"")}};function mf(Id){for(var jd=Id.childNodes.length;jd>0;--jd)Id.removeChild(Id.firstChild);return Id}function _f(Id,jd){return mf(Id).appendChild(jd)}function hf(Id,jd,Kd,Yd){var Zd=document.createElement(Id);if(Kd&&(Zd.className=Kd),Yd&&(Zd.style.cssText=Yd),typeof jd=="string")Zd.appendChild(document.createTextNode(jd));else if(jd)for(var Sf=0;Sf<jd.length;++Sf)Zd.appendChild(jd[Sf]);return Zd}function gf(Id,jd,Kd,Yd){var Zd=hf(Id,jd,Kd,Yd);return Zd.setAttribute("role","presentation"),Zd}var yf;document.createRange?yf=function(Id,jd,Kd,Yd){var Zd=document.createRange();return Zd.setEnd(Yd||Id,Kd),Zd.setStart(Id,jd),Zd}:yf=function(Id,jd,Kd){var Yd=document.body.createTextRange();try{Yd.moveToElementText(Id.parentNode)}catch{return Yd}return Yd.collapse(!0),Yd.moveEnd("character",Kd),Yd.moveStart("character",jd),Yd};function Cf(Id,jd){
b ` .split(/ \n /).length!=3?function(Id){for(var jd=0,Kd=[],Yd=Id.length;jd<=Yd;){var Zd=Id.indexOf( `
` ,jd);Zd==-1&&(Zd=Id.length);var Sf=Id.slice(jd,Id.charAt(Zd-1)==" \r "?Zd-1:Zd),Mf=Sf.indexOf(" \r ");Mf!=-1?(Kd.push(Sf.slice(0,Mf)),jd+=Mf+1):(Kd.push(Sf),jd=Zd+1)}return Kd}:function(Id){return Id.split(/ \r \n ?| \n /)},ph=window.getSelection?function(Id){try{return Id.selectionStart!=Id.selectionEnd}catch{return!1}}:function(Id){var jd;try{jd=Id.ownerDocument.selection.createRange()}catch{}return!jd||jd.parentElement()!=Id?!1:jd.compareEndPoints("StartToEnd",jd)!=0},nh=function(){var Id=hf("div");return"oncopy"in Id?!0:(Id.setAttribute("oncopy","return;"),typeof Id.oncopy=="function")}(),fh=null;function Ah(Id){if(fh!=null)return fh;var jd=_f(Id,hf("span","x")),Kd=jd.getBoundingClientRect(),Yd=yf(jd,0,1).getBoundingClientRect();return fh=Math.abs(Kd.left-Yd.left)>1}var Ch={},Bh={};function Rh(Id,jd){arguments.length>2&&(jd.dependencies=Array.prototype.slice.call(arguments,2)),Ch[Id]=jd}function bh(Id,jd){Bh[Id]=jd}function dm(Id){if(typeof Id=="string"&&Bh.hasOwnProperty(Id))Id=Bh[Id];else if(Id&&typeof Id.name=="string"&&Bh.hasOwnProperty(Id.name)){var jd=Bh[Id.name];typeof jd=="string"&&(jd={name:jd}),Id=gh(jd,Id),Id.name=jd.name}else{if(typeof Id=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(Id))return dm("application/xml");if(typeof Id=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(Id))return dm("application/json")}return typeof Id=="string"?{name:Id}:Id||{name:"null"}}function cm(Id,jd){jd=dm(jd);var Kd=Ch[jd.name];if(!Kd)return cm(Id,"text/plain");var Yd=Kd(Id,jd);if(_m.hasOwnProperty(jd.name)){var Zd=_m[jd.name];for(var Sf in Zd)Zd.hasOwnProperty(Sf)&&(Yd.hasOwnProperty(Sf)&&(Yd["_"+Sf]=Yd[Sf]),Yd[Sf]=Zd[Sf])}if(Yd.name=jd.name,jd.helperType&&(Yd.helperType=jd.helperType),jd.modeProps)for(var Mf in jd.modeProps)Yd[Mf]=jd.modeProps[Mf];return Yd}var _m={};function Gf(Id,jd){var Kd=_m.hasOwnProperty(Id)?_m[Id]:_m[Id]={};bf(jd,Kd)}function Mm(Id,jd){if(jd===!0)return jd;if(Id.copyState)return Id.copyState(jd);var Kd={};for(var Yd in jd){var Zd=jd[Yd];Zd instanceof Array&&(Zd=Zd.concat([])),Kd[Yd]=Zd}return Kd}function g_(Id,jd){for(var Kd;Id.innerMode&&(Kd=Id.innerMode(jd),!(!Kd||Kd.mode==Id));)jd=Kd.state,Id=Kd.mode;return Kd||{mode:Id,state:jd}}function m_(Id,jd,Kd){return Id.startState?Id.startState(jd,Kd):!0}var s_=function(Id,jd,Kd){this.pos=this.start=0,this.string=Id,this.tabSize=jd||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Kd};s_.prototype.eol=function(){return this.pos>=this.string.length},s_.prototype.sol=function(){return this.pos==this.lineStart},s_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},s_.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},s_.prototype.eat=function(Id){var jd=this.string.charAt(this.pos),Kd;if(typeof Id=="string"?Kd=jd==Id:Kd=jd&&(Id.test?Id.test(jd):Id(jd)),Kd)return++this.pos,jd},s_.prototype.eatWhile=function(Id){for(var jd=this.pos;this.eat(Id););return this.pos>jd},s_.prototype.eatSpace=function(){for(var Id=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>Id},s_.prototype.skipToEnd=function(){this.pos=this.string.length},s_.prototype.skipTo=function(Id){var jd=this.string.indexOf(Id,this.pos);if(jd>-1)return this.pos=jd,!0},s_.prototype.backUp=function(Id){this.pos-=Id},s_.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Bf(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Bf(this.string,this.lineStart,this.tabSize):0)},s_.prototype.indentation=function(){return Bf(this.string,null,this.tabSize)-(this.lineStart?Bf(this.string,this.lineStart,this.tabSize):0)},s_.prototype.match=function(Id,jd,Kd){if(typeof Id=="string"){var Yd=function(Mf){return Kd?Mf.toLowerCase():Mf},Zd=this.string.substr(this.pos,Id.length);if(Yd(Zd)==Yd(Id))return jd!==!1&&(this.pos+=Id.length),!0}else{var Sf=this.string.slice(this.pos).match(Id);return Sf&&Sf.index>0?null:(Sf&&jd!==!1&&(this.pos+=Sf[0].length),Sf)}},s_.prototype.current=funct
` ?(Dm=Th.appendChild(hf("span",Yh[0]==" \r "?"␍":"","cm-invalidchar")),Dm.setAttribute("cm-text",Yh[0]),Id.col+=1):(Dm=Id.cm.options.specialCharPlaceholder(Yh[0]),Dm.setAttribute("cm-text",Yh[0]),cd&&ud<9?Th.appendChild(hf("span",[Dm])):Th.appendChild(Dm),Id.col+=1);Id.map.push(Id.pos,Id.pos+1,Dm),Id.pos++}}if(Id.trailingSpace=zf.charCodeAt(jd.length-1)==32,Kd||Yd||Zd||ah||Sf||Mf){var Xm=Kd||"";Yd&&(Xm+=Yd),Zd&&(Xm+=Zd);var Ym=hf("span",[Th],Xm,Sf);if(Mf)for(var Zm in Mf)Mf.hasOwnProperty(Zm)&&Zm!="style"&&Zm!="class"&&Ym.setAttribute(Zm,Mf[Zm]);return Id.content.appendChild(Ym)}Id.content.appendChild(Th)}}function Cb(Id,jd){if(Id.length>1&&!/ /.test(Id))return Id;for(var Kd=jd,Yd="",Zd=0;Zd<Id.length;Zd++){var Sf=Id.charAt(Zd);Sf==" "&&Kd&&(Zd==Id.length-1||Id.charCodeAt(Zd+1)==32)&&(Sf=" "),Yd+=Sf,Kd=Sf==" "}return Yd}function i1(Id,jd){return function(Kd,Yd,Zd,Sf,Mf,zf,eh){Zd=Zd?Zd+" cm-force-border":"cm-force-border";for(var ah=Kd.pos,Th=ah+Yd.length;;){for(var kh=void 0,Yh=0;Yh<jd.length&&(kh=jd[Yh],!(kh.to>ah&&kh.from<=ah));Yh++);if(kh.to>=Th)return Id(Kd,Yd,Zd,Sf,Mf,zf,eh);Id(Kd,Yd.slice(0,kh.to-ah),Zd,Sf,null,zf,eh),Sf=null,Yd=Yd.slice(kh.to-ah),ah=kh.to}}}function Mg(Id,jd,Kd,Yd){var Zd=!Yd&&Kd.widgetNode;Zd&&Id.map.push(Id.pos,Id.pos+jd,Zd),!Yd&&Id.cm.display.input.needsContentAttribute&&(Zd||(Zd=Id.content.appendChild(document.createElement("span"))),Zd.setAttribute("cm-marker",Kd.id)),Zd&&(Id.cm.display.input.setUneditable(Zd),Id.content.appendChild(Zd)),Id.pos+=jd,Id.trailingSpace=!1}function rv(Id,jd,Kd){var Yd=Id.markedSpans,Zd=Id.text,Sf=0;if(!Yd){for(var Mf=1;Mf<Kd.length;Mf+=2)jd.addToken(jd,Zd.slice(Sf,Sf=Kd[Mf]),T1(Kd[Mf+1],jd.cm.options));return}for(var zf=Zd.length,eh=0,ah=1,Th="",kh,Yh,Wh=0,mm,Dm,Um,Km,Xm;;){if(Wh==eh){mm=Dm=Um=Yh="",Xm=null,Km=null,Wh=1/0;for(var Ym=[],Zm=void 0,c_=0;c_<Yd.length;++c_){var o_=Yd[c_],A_=o_.marker;if(A_.type=="bookmark"&&o_.from==eh&&A_.widgetNode)Ym.push(A_);else if(o_.from<=eh&&(o_.to==null||o_.to>eh||A_.collapsed&&o_.to==eh&&o_.from==eh)){if(o_.to!=null&&o_.to!=eh&&Wh>o_.to&&(Wh=o_.to,Dm=""),A_.className&&(mm+=" "+A_.className),A_.css&&(Yh=(Yh?Yh+";":"")+A_.css),A_.startStyle&&o_.from==eh&&(Um+=" "+A_.startStyle),A_.endStyle&&o_.to==Wh&&(Zm||(Zm=[])).push(A_.endStyle,o_.to),A_.title&&((Xm||(Xm={})).title=A_.title),A_.attributes)for(var e1 in A_.attributes)(Xm||(Xm={}))[e1]=A_.attributes[e1];A_.collapsed&&(!Km||w0(Km.marker,A_)<0)&&(Km=o_)}else o_.from>eh&&Wh>o_.from&&(Wh=o_.from)}if(Zm)for(var v1=0;v1<Zm.length;v1+=2)Zm[v1+1]==Wh&&(Dm+=" "+Zm[v1]);if(!Km||Km.from==eh)for(var a1=0;a1<Ym.length;++a1)Mg(jd,0,Ym[a1]);if(Km&&(Km.from||0)==eh){if(Mg(jd,(Km.to==null?zf+1:Km.to)-eh,Km.marker,Km.from==null),Km.to==null)return;Km.to==eh&&(Km=!1)}}if(eh>=zf)break;for(var f1=Math.min(zf,Wh);;){if(Th){var S1=eh+Th.length;if(!Km){var x1=S1>f1?Th.slice(0,f1-eh):Th;jd.addToken(jd,x1,kh?kh+mm:mm,Um,eh+x1.length==Wh?Dm:"",Yh,Xm)}if(S1>=f1){Th=Th.slice(f1-eh),eh=f1;break}eh=S1,Um=""}Th=Zd.slice(Sf,Sf=Kd[ah++]),kh=T1(Kd[ah++],jd.cm.options)}}}function Iv(Id,jd,Kd){this.line=jd,this.rest= $ g(jd),this.size=this.rest?Vm(ch(this.rest))-Kd+1:1,this.node=this.text=null,this.hidden=s1(Id,jd)}function A0(Id,jd,Kd){for(var Yd=[],Zd,Sf=jd;Sf<Kd;Sf=Zd){var Mf=new Iv(Id.doc,Rm(Id.doc,Sf),Sf);Zd=Sf+Mf.size,Yd.push(Mf)}return Yd}var Cg=null;function Ov(Id){Cg?Cg.ops.push(Id):Id.ownsGroup=Cg={ops:[Id],delayedCallbacks:[]}}function Vy(Id){var jd=Id.delayedCallbacks,Kd=0;do{for(;Kd<jd.length;Kd++)jd[Kd].call(null);for(var Yd=0;Yd<Id.ops.length;Yd++){var Zd=Id.ops[Yd];if(Zd.cursorActivityHandlers)for(;Zd.cursorActivityCalled<Zd.cursorActivityHandlers.length;)Zd.cursorActivityHandlers[Zd.cursorActivityCalled++].call(null,Zd.cm)}}while(Kd<jd.length)}function Hd(Id,jd){var Kd=Id.ownsGroup;if(Kd)try{Vy(Kd)}finally{Cg=null,jd(Kd)}}var Ld=null;function Wd(Id,jd){var Kd=Wm(Id,jd);if(Kd.length){var Yd=Array.prototype.slice.call(arguments,2),Zd;Cg?Zd=Cg.delayedCallbacks:Ld?Zd=Ld:(Zd=Ld=[],setTimeout(pf,0));for(var Sf=function(zf){Zd.push(function(){return Kd[zf].apply(null,Yd)})},Mf=0;Mf<Kd.length;++Mf)S
top : ` +Zm+"px; width: "+(c_??eh-Ym)+ ` px ;
height : ` +(o_-Zm)+"px"))}function kh(Ym,Zm,c_){var o_=Rm(Zd,Ym),A_=o_.text.length,e1,v1;function a1(x1,K1){return gm(Id,Sm(Ym,x1),"div",o_,K1)}function f1(x1,K1,V1){var D1=r1(Id,o_,null,x1),C1=K1=="ltr"==(V1=="after")?"left":"right",h1=V1=="after"?D1.begin:D1.end-(/ \s /.test(o_.text.charAt(D1.end-1))?2:1);return a1(h1,C1)[C1]}var S1=om(o_,Zd.direction);return rh(S1,Zm||0,c_??A_,function(x1,K1,V1,D1){var C1=V1=="ltr",h1=a1(x1,C1?"left":"right"),Z1=a1(K1-1,C1?"right":"left"),Jb=Zm==null&&x1==0,U0=c_==null&&K1==A_,z1=D1==0,o0=!S1||D1==S1.length-1;if(Z1.top-h1.top<=3){var B1=(ah?Jb:U0)&&z1,RE=(ah?U0:Jb)&&o0,l0=B1?zf:(C1?h1:Z1).left,q0=RE?eh:(C1?Z1:h1).right;Th(l0,h1.top,q0-l0,h1.bottom)}else{var H0,X1,Zb,IE;C1?(H0=ah&&Jb&&z1?zf:h1.left,X1=ah?eh:f1(x1,V1,"before"),Zb=ah?zf:f1(K1,V1,"after"),IE=ah&&U0&&o0?eh:Z1.right):(H0=ah?f1(x1,V1,"before"):zf,X1=!ah&&Jb&&z1?eh:h1.right,Zb=!ah&&U0&&o0?zf:Z1.left,IE=ah?f1(K1,V1,"after"):eh),Th(H0,h1.top,X1-H0,h1.bottom),h1.bottom<Z1.top&&Th(zf,h1.bottom,null,Z1.top),Th(Zb,Z1.top,IE-Zb,Z1.bottom)}(!e1||tb(h1,e1)<0)&&(e1=h1),tb(Z1,e1)<0&&(e1=Z1),(!v1||tb(h1,v1)<0)&&(v1=h1),tb(Z1,v1)<0&&(v1=Z1)}),{start:e1,end:v1}}var Yh=jd.from(),Wh=jd.to();if(Yh.line==Wh.line)kh(Yh.line,Yh.ch,Wh.ch);else{var mm=Rm(Zd,Yh.line),Dm=Rm(Zd,Wh.line),Um=G_(mm)==G_(Dm),Km=kh(Yh.line,Yh.ch,Um?mm.text.length+1:null).end,Xm=kh(Wh.line,Um?0:null,Wh.ch).start;Um&&(Km.top<Xm.top-2?(Th(Km.right,Km.top,null,Km.bottom),Th(zf,Xm.top,Xm.left,Xm.bottom)):Th(Km.right,Km.top,Xm.left-Km.right,Km.bottom)),Km.bottom<Xm.top&&Th(zf,Km.bottom,null,Xm.top)}Kd.appendChild(Sf)}function rb(Id){if(Id.state.focused){var jd=Id.display;clearInterval(jd.blinker);var Kd=!0;jd.cursorDiv.style.visibility="",Id.options.cursorBlinkRate>0?jd.blinker=setInterval(function(){Id.hasFocus()||Ib(Id),jd.cursorDiv.style.visibility=(Kd=!Kd)?"":"hidden"},Id.options.cursorBlinkRate):Id.options.cursorBlinkRate<0&&(jd.cursorDiv.style.visibility="hidden")}}function R0(Id){Id.hasFocus()||(Id.display.input.focus(),Id.state.focused||Jy(Id))}function Rb(Id){Id.state.delayingBlurEvent=!0,setTimeout(function(){Id.state.delayingBlurEvent&&(Id.state.delayingBlurEvent=!1,Id.state.focused&&Ib(Id))},100)}function Jy(Id,jd){Id.state.delayingBlurEvent&&!Id.state.draggingText&&(Id.state.delayingBlurEvent=!1),Id.options.readOnly!="nocursor"&&(Id.state.focused||(Lm(Id,"focus",Id,jd),Id.state.focused=!0,Qf(Id.display.wrapper,"CodeMirror-focused"),!Id.curOp&&Id.display.selForContextMenu!=Id.doc.sel&&(Id.display.input.reset(),_d&&setTimeout(function(){return Id.display.input.reset(!0)},20)),Id.display.input.receivedFocus()),rb(Id))}function Ib(Id,jd){Id.state.delayingBlurEvent||(Id.state.focused&&(Lm(Id,"blur",Id,jd),Id.state.focused=!1,df(Id.display.wrapper,"CodeMirror-focused")),clearInterval(Id.display.blinker),setTimeout(function(){Id.state.focused||(Id.display.shift=!1)},150))}function Fv(Id){for(var jd=Id.display,Kd=jd.lineDiv.offsetTop,Yd=Math.max(0,jd.scroller.getBoundingClientRect().top),Zd=jd.lineDiv.getBoundingClientRect().top,Sf=0,Mf=0;Mf<jd.view.length;Mf++){var zf=jd.view[Mf],eh=Id.options.lineWrapping,ah=void 0,Th=0;if(!zf.hidden){if(Zd+=zf.line.height,cd&&ud<8){var kh=zf.node.offsetTop+zf.node.offsetHeight;ah=kh-Kd,Kd=kh}else{var Yh=zf.node.getBoundingClientRect();ah=Yh.bottom-Yh.top,!eh&&zf.text.firstChild&&(Th=zf.text.firstChild.getBoundingClientRect().right-Yh.left-1)}var Wh=zf.line.height-ah;if((Wh>.005||Wh<-.005)&&(Zd<Yd&&(Sf-=Wh),l_(zf.line,ah),av(zf.line),zf.rest))for(var mm=0;mm<zf.rest.length;mm++)av(zf.rest[mm]);if(Th>Id.display.sizerWidth){var Dm=Math.ceil(Th/_0(Id.display));Dm>Id.display.maxLineLength&&(Id.display.maxLineLength=Dm,Id.display.maxLine=zf.line,Id.display.maxLineChanged=!0)}}}Math.abs(Sf)>2&&(jd.scroller.scrollTop+=Sf)}function av(Id){if(Id.widgets)for(var jd=0;jd<Id.widgets.length;++jd){var Kd=Id.widgets[jd],Yd=Kd.node.parentNode;Yd&&(Kd.height=Yd.offsetHeight)}}function nb(Id,jd,Kd){var Yd=Kd&&Kd.top!=null?Math.max(0,Kd.top):Id.scroller.scrollTop;Yd=Math.floor(Yd-O1(Id));var Zd=Kd&&Kd.bottom!=null?Kd.bottom:Yd+Id
top : ` +(jd.top-Kd.viewOffset-O1(Id.display))+ ` px ;
height : ` +(jd.bottom-jd.top+e0(Id)+Kd.barHeight)+ ` px ;
left : ` +jd.left+"px; width: "+Math.max(2,jd.right-jd.left)+"px;");Id.display.lineSpace.appendChild(Mf),Mf.scrollIntoView(Zd),Id.display.lineSpace.removeChild(Mf)}}}function F2(Id,jd,Kd,Yd){Yd==null&&(Yd=0);var Zd;!Id.options.lineWrapping&&jd==Kd&&(Kd=jd.sticky=="before"?Sm(jd.line,jd.ch+1,"before"):jd,jd=jd.ch?Sm(jd.line,jd.sticky=="before"?jd.ch-1:jd.ch,"after"):jd);for(var Sf=0;Sf<5;Sf++){var Mf=!1,zf=fm(Id,jd),eh=!Kd||Kd==jd?zf:fm(Id,Kd);Zd={left:Math.min(zf.left,eh.left),top:Math.min(zf.top,eh.top)-Yd,right:Math.max(zf.left,eh.left),bottom:Math.max(zf.bottom,eh.bottom)+Yd};var ah=eE(Id,Zd),Th=Id.doc.scrollTop,kh=Id.doc.scrollLeft;if(ah.scrollTop!=null&&(sv(Id,ah.scrollTop),Math.abs(Id.doc.scrollTop-Th)>1&&(Mf=!0)),ah.scrollLeft!=null&&(jg(Id,ah.scrollLeft),Math.abs(Id.doc.scrollLeft-kh)>1&&(Mf=!0)),!Mf)break}return Zd}function qE(Id,jd){var Kd=eE(Id,jd);Kd.scrollTop!=null&&sv(Id,Kd.scrollTop),Kd.scrollLeft!=null&&jg(Id,Kd.scrollLeft)}function eE(Id,jd){var Kd=Id.display,Yd=Bg(Id.display);jd.top<0&&(jd.top=0);var Zd=Id.curOp&&Id.curOp.scrollTop!=null?Id.curOp.scrollTop:Kd.scroller.scrollTop,Sf=zy(Id),Mf={};jd.bottom-jd.top>Sf&&(jd.bottom=jd.top+Sf);var zf=Id.doc.height+Q0(Kd),eh=jd.top<Yd,ah=jd.bottom>zf-Yd;if(jd.top<Zd)Mf.scrollTop=eh?0:jd.top;else if(jd.bottom>Zd+Sf){var Th=Math.min(jd.top,(ah?zf:jd.bottom)-Sf);Th!=Zd&&(Mf.scrollTop=Th)}var kh=Id.options.fixedGutter?0:Kd.gutters.offsetWidth,Yh=Id.curOp&&Id.curOp.scrollLeft!=null?Id.curOp.scrollLeft:Kd.scroller.scrollLeft-kh,Wh=J0(Id)-Kd.gutters.offsetWidth,mm=jd.right-jd.left>Wh;return mm&&(jd.right=jd.left+Wh),jd.left<10?Mf.scrollLeft=0:jd.left<Yh?Mf.scrollLeft=Math.max(0,jd.left+kh-(mm?0:10)):jd.right>Wh+Yh-3&&(Mf.scrollLeft=jd.right+(mm?0:10)-Wh),Mf}function tE(Id,jd){jd!=null&&(jv(Id),Id.curOp.scrollTop=(Id.curOp.scrollTop==null?Id.doc.scrollTop:Id.curOp.scrollTop)+jd)}function o1(Id){jv(Id);var jd=Id.getCursor();Id.curOp.scrollToPos={from:jd,to:jd,margin:Id.options.cursorScrollMargin}}function N1(Id,jd,Kd){(jd!=null||Kd!=null)&&jv(Id),jd!=null&&(Id.curOp.scrollLeft=jd),Kd!=null&&(Id.curOp.scrollTop=Kd)}function j2(Id,jd){jv(Id),Id.curOp.scrollToPos=jd}function jv(Id){var jd=Id.curOp.scrollToPos;if(jd){Id.curOp.scrollToPos=null;var Kd=i_(Id,jd.from),Yd=i_(Id,jd.to);rE(Id,Kd,Yd,jd.margin)}}function rE(Id,jd,Kd,Yd){var Zd=eE(Id,{left:Math.min(jd.left,Kd.left),top:Math.min(jd.top,Kd.top)-Yd,right:Math.max(jd.right,Kd.right),bottom:Math.max(jd.bottom,Kd.bottom)+Yd});N1(Id,Zd.scrollLeft,Zd.scrollTop)}function sv(Id,jd){Math.abs(Id.doc.scrollTop-jd)<2||(rd||Ug(Id,{top:jd}),Uv(Id,jd,!0),rd&&Ug(Id),cv(Id,100))}function Uv(Id,jd,Kd){jd=Math.max(0,Math.min(Id.display.scroller.scrollHeight-Id.display.scroller.clientHeight,jd)),!(Id.display.scroller.scrollTop==jd&&!Kd)&&(Id.doc.scrollTop=jd,Id.display.scrollbars.setScrollTop(jd),Id.display.scroller.scrollTop!=jd&&(Id.display.scroller.scrollTop=jd))}function jg(Id,jd,Kd,Yd){jd=Math.max(0,Math.min(jd,Id.display.scroller.scrollWidth-Id.display.scroller.clientWidth)),!((Kd?jd==Id.doc.scrollLeft:Math.abs(Id.doc.scrollLeft-jd)<2)&&!Yd)&&(Id.doc.scrollLeft=jd,zE(Id),Id.display.scroller.scrollLeft!=jd&&(Id.display.scroller.scrollLeft=jd),Id.display.scrollbars.setScrollLeft(jd))}function ib(Id){var jd=Id.display,Kd=jd.gutters.offsetWidth,Yd=Math.round(Id.doc.height+Q0(Id.display));return{clientHeight:jd.scroller.clientHeight,viewHeight:jd.wrapper.clientHeight,scrollWidth:jd.scroller.scrollWidth,clientWidth:jd.scroller.clientWidth,viewWidth:jd.wrapper.clientWidth,barLeft:Id.options.fixedGutter?Kd:0,docHeight:Yd,scrollHeight:Yd+e0(Id)+jd.barHeight,nativeBarWidth:jd.nativeBarWidth,gutterWidth:Kd}}var Ag=function(Id,jd,Kd){this.cm=Kd;var Yd=this.vert=hf("div",[hf("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Zd=this.horiz=hf("div",[hf("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Yd.tabIndex=Zd.tabIndex=-1,Id(Yd),Id(Zd),um(Yd,"scroll",function(){Yd.clientHeight&&jd(Yd.scrollTop,"vertical")}),um(Zd,"scroll",function(){Zd.clientWidth&&jd(Zd.scrollLeft,"horizontal")}),thi
` },setDirection:k1(function(Id){Id!="rtl"&&(Id="ltr"),Id!=this.direction&&(this.direction=Id,this.iter(function(jd){return jd.order=null}),this.cm&&v0(this.cm))})}),Y1.prototype.eachLine=Y1.prototype.iter;var Kv=0;function eT(Id){var jd=this;if(p2(jd),!(e_(jd,Id)||z_(jd.display,Id))){Qm(Id),cd&&(Kv=+new Date);var Kd=t0(jd,Id,!0),Yd=Id.dataTransfer.files;if(!(!Kd||jd.isReadOnly()))if(Yd&&Yd.length&&window.FileReader&&window.File)for(var Zd=Yd.length,Sf=Array(Zd),Mf=0,zf=function(){++Mf==Zd&&J_(jd,function(){Kd=h_(jd.doc,Kd);var Wh={from:Kd,to:Kd,text:jd.doc.splitLines(Sf.filter(function(mm){return mm!=null}).join(jd.doc.lineSeparator())),origin:"paste"};Ub(jd.doc,Wh),M0(jd.doc,O0(h_(jd.doc,Kd),h_(jd.doc,k0(Wh))))})()},eh=function(Wh,mm){if(jd.options.allowDropFileTypes&&lh(jd.options.allowDropFileTypes,Wh.type)==-1){zf();return}var Dm=new FileReader;Dm.onerror=function(){return zf()},Dm.onload=function(){var Um=Dm.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(Um)){zf();return}Sf[mm]=Um,zf()},Dm.readAsText(Wh)},ah=0;ah<Yd.length;ah++)eh(Yd[ah],ah);else{if(jd.state.draggingText&&jd.doc.sel.contains(Kd)>-1){jd.state.draggingText(Id),setTimeout(function(){return jd.display.input.focus()},20);return}try{var Th=Id.dataTransfer.getData("Text");if(Th){var kh;if(jd.state.draggingText&&!jd.state.draggingText.copy&&(kh=jd.listSelections()),H1(jd.doc,O0(Kd,Kd)),kh)for(var Yh=0;Yh<kh.length;++Yh)ub(jd.doc,"",kh[Yh].anchor,kh[Yh].head,"drag");jd.replaceSelection(Th,"around","paste"),jd.display.input.focus()}}catch{}}}}function vE(Id,jd){if(cd&&(!Id.state.draggingText||+new Date-Kv<100)){Z_(jd);return}if(!(e_(Id,jd)||z_(Id.display,jd))&&(jd.dataTransfer.setData("Text",Id.getSelection()),jd.dataTransfer.effectAllowed="copyMove",jd.dataTransfer.setDragImage&&!Rd)){var Kd=hf("img",null,null,"position: fixed; left: 0; top: 0;");Kd.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Nd&&(Kd.width=Kd.height=1,Id.display.wrapper.appendChild(Kd),Kd._top=Kd.offsetTop),jd.dataTransfer.setDragImage(Kd,0,0),Nd&&Kd.parentNode.removeChild(Kd)}}function I_(Id,jd){var Kd=t0(Id,jd);if(Kd){var Yd=document.createDocumentFragment();Pv(Id,Kd,Yd),Id.display.dragCursor||(Id.display.dragCursor=hf("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),Id.display.lineSpace.insertBefore(Id.display.dragCursor,Id.display.cursorDiv)),_f(Id.display.dragCursor,Yd)}}function p2(Id){Id.display.dragCursor&&(Id.display.lineSpace.removeChild(Id.display.dragCursor),Id.display.dragCursor=null)}function f2(Id){if(document.getElementsByClassName){for(var jd=document.getElementsByClassName("CodeMirror"),Kd=[],Yd=0;Yd<jd.length;Yd++){var Zd=jd[Yd].CodeMirror;Zd&&Kd.push(Zd)}Kd.length&&Kd[0].operation(function(){for(var Sf=0;Sf<Kd.length;Sf++)Id(Kd[Sf])})}}var Gb=!1;function h2(){Gb||(tT(),Gb=!0)}function tT(){var Id;um(window,"resize",function(){Id==null&&(Id=setTimeout(function(){Id=null,f2(rT)},100))}),um(window,"blur",function(){return f2(Ib)})}function rT(Id){var jd=Id.display;jd.cachedCharWidth=jd.cachedTextHeight=jd.cachedPaddingH=null,jd.scrollbarsClipped=!1,Id.setSize()}for(var M1={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:" ` ",219:" [ ",220:" \ \ ",221:" ] ",222:" ' ",224:" Mod ",63232:" Up ",63233:" Down ",63234:" Left ",63235:" Right ",63272:" Delete ",63273:" Home ",63275:" End ",63276:" PageUp ",63277:" PageDown ",63302:" Insert "},hv=0;hv<10;hv++)M1[hv+48]=M1[hv+96]=String(hv);for(var fb=65;fb<=90;fb++)M1[fb]=String.fromCharCode(fb);for(var hb=1;hb<=12;hb++)M1[hb+111]=M1[hb+63235]=" F "+hb;var i0={};i0.basic={Left:" goCharLeft ",Right:" goCharRight ",Up:" goLineUp ",Down:" goLineDown ",End:" goLineEnd ",Home:" goLineStartSmart ",PageUp:" goPageUp ",PageDown:" goPageDown ",Delete:" delCharAfter ",Backspace:" delCharBefore "," Shift - Backspace ":"
` ,"start")},toggleOverwrite:function(Id){return Id.toggleOverwrite()}};function E0(Id,jd){var Kd=Rm(Id.doc,jd),Yd=G_(Kd);return Yd!=Kd&&(jd=Vm(Yd)),bv(!0,Id,Yd,jd,1)}function _2(Id,jd){var Kd=Rm(Id.doc,jd),Yd=K0(Kd);return Yd!=Kd&&(jd=Vm(Yd)),bv(!0,Id,Kd,jd,-1)}function TE(Id,jd){var Kd=E0(Id,jd.line),Yd=Rm(Id.doc,Kd.line),Zd=om(Yd,Id.doc.direction);if(!Zd||Zd[0].level==0){var Sf=Math.max(Kd.ch,Yd.text.search(/ \S /)),Mf=jd.line==Kd.line&&jd.ch<=Sf&&jd.ch;return Sm(Kd.line,Mf?0:Sf,Kd.sticky)}return Kd}function zb(Id,jd,Kd){if(typeof jd=="string"&&(jd=vv[jd],!jd))return!1;Id.display.input.ensurePolled();var Yd=Id.display.shift,Zd=!1;try{Id.isReadOnly()&&(Id.state.suppressEdits=!0),Kd&&(Id.display.shift=!1),Zd=jd(Id)!= $ f}finally{Id.display.shift=Yd,Id.state.suppressEdits=!1}return Zd}function nT(Id,jd,Kd){for(var Yd=0;Yd<Id.state.keyMaps.length;Yd++){var Zd=vg(jd,Id.state.keyMaps[Yd],Kd,Id);if(Zd)return Zd}return Id.options.extraKeys&&vg(jd,Id.options.extraKeys,Kd,Id)||vg(jd,Id.options.keyMap,Kd,Id)}var iT=new Wf;function yv(Id,jd,Kd,Yd){var Zd=Id.state.keySeq;if(Zd){if(Xv(jd))return"handled";if(/ \' $ /.test(jd)?Id.state.keySeq=null:iT.set(50,function(){Id.state.keySeq==Zd&&(Id.state.keySeq=null,Id.display.input.reset())}),SE(Id,Zd+" "+jd,Kd,Yd))return!0}return SE(Id,jd,Kd,Yd)}function SE(Id,jd,Kd,Yd){var Zd=nT(Id,jd,Yd);return Zd=="multi"&&(Id.state.keySeq=jd),Zd=="handled"&&Wd(Id,"keyHandled",Id,jd,Kd),(Zd=="handled"||Zd=="multi")&&(Qm(Kd),rb(Id)),!!Zd}function xE(Id,jd){var Kd=mv(jd,!0);return Kd?jd.shiftKey&&!Id.state.keySeq?yv(Id,"Shift-"+Kd,jd,function(Yd){return zb(Id,Yd,!0)})||yv(Id,Kd,jd,function(Yd){if(typeof Yd=="string"?/^go[A-Z]/.test(Yd):Yd.motion)return zb(Id,Yd)}):yv(Id,Kd,jd,function(Yd){return zb(Id,Yd)}):!1}function aT(Id,jd,Kd){return yv(Id,"'"+Kd+"'",jd,function(Yd){return zb(Id,Yd,!0)})}var ey=null;function CE(Id){var jd=this;if(!(Id.target&&Id.target!=jd.display.input.getField())&&(jd.curOp.focus=Ff(Nf(jd)),!e_(jd,Id))){cd&&ud<11&&Id.keyCode==27&&(Id.returnValue=!1);var Kd=Id.keyCode;jd.display.shift=Kd==16||Id.shiftKey;var Yd=xE(jd,Id);Nd&&(ey=Yd?Kd:null,!Yd&&Kd==88&&!nh&&(Fd?Id.metaKey:Id.ctrlKey)&&jd.replaceSelection("",null,"cut")),rd&&!Fd&&!Yd&&Kd==46&&Id.shiftKey&&!Id.ctrlKey&&document.execCommand&&document.execCommand("cut"),Kd==18&&!/ \b CodeMirror-crosshair \b /.test(jd.display.lineDiv.className)&&cg(jd)}}function cg(Id){var jd=Id.display.lineDiv;Qf(jd,"CodeMirror-crosshair");function Kd(Yd){(Yd.keyCode==18||!Yd.altKey)&&(df(jd,"CodeMirror-crosshair"),Fm(document,"keyup",Kd),Fm(document,"mouseover",Kd))}um(document,"keyup",Kd),um(document,"mouseover",Kd)}function Wg(Id){Id.keyCode==16&&(this.doc.sel.shift=!1),e_(this,Id)}function g2(Id){var jd=this;if(!(Id.target&&Id.target!=jd.display.input.getField())&&!(z_(jd.display,Id)||e_(jd,Id)||Id.ctrlKey&&!Id.altKey||Fd&&Id.metaKey)){var Kd=Id.keyCode,Yd=Id.charCode;if(Nd&&Kd==ey){ey=null,Qm(Id);return}if(!(Nd&&(!Id.which||Id.which<10)&&xE(jd,Id))){var Zd=String.fromCharCode(Yd??Kd);Zd!=" \b "&&(aT(jd,Id,Zd)||jd.display.input.onKeyPress(Id))}}}var sT=400,Wb=function(Id,jd,Kd){this.time=Id,this.pos=jd,this.button=Kd};Wb.prototype.compare=function(Id,jd,Kd){return this.time+sT>Id&&f_(jd,this.pos)==0&&Kd==this.button};var a0,Yb;function b2(Id,jd){var Kd=+new Date;return Yb&&Yb.compare(Kd,Id,jd)?(a0=Yb=null,"triple"):a0&&a0.compare(Kd,Id,jd)?(Yb=new Wb(Kd,Id,jd),a0=null,"double"):(a0=new Wb(Kd,Id,jd),Yb=null,"single")}function v2(Id){var jd=this,Kd=jd.display;if(!(e_(jd,Id)||Kd.activeTouch&&Kd.input.supportsTouch())){if(Kd.input.ensurePolled(),Kd.shift=Id.shiftKey,z_(Kd,Id)){_d||(Kd.scroller.draggable=!1,setTimeout(function(){return Kd.scroller.draggable=!0},100));return}if(!Xb(jd,Id)){var Yd=t0(jd,Id),Zd=j_(Id),Sf=Yd?b2(Yd,Zd):"single";Kf(jd).focus(),Zd==1&&jd.state.selectingText&&jd.state.selectingText(Id),!(Yd&&y2(jd,Zd,Yd,Sf,Id))&&(Zd==1?Yd?Ev(jd,Yd,Sf,Id):t1(Id)==Kd.scroller&&Qm(Id):Zd==2?(Yd&&Bb(jd.doc,Yd),setTimeout(function(){return Kd.input.focus()},20)):Zd==3&&(zd?jd.display.input.onContextMenu(Id):Rb(jd)))}}}function y2(Id,jd,Kd,Yd,Zd){var Sf="Click";
` )==jd){if(Yd.ranges.length%Dg.text.length==0){ah=[];for(var Th=0;Th<Dg.text.length;Th++)ah.push(Sf.splitLines(Dg.text[Th]))}}else eh.length==Yd.ranges.length&&Id.options.pasteLinesPerSelection&&(ah=_h(eh,function(Km){return[Km]}));for(var kh=Id.curOp.updateInput,Yh=Yd.ranges.length-1;Yh>=0;Yh--){var Wh=Yd.ranges[Yh],mm=Wh.from(),Dm=Wh.to();Wh.empty()&&(Kd&&Kd>0?mm=Sm(mm.line,mm.ch-Kd):Id.state.overwrite&&!zf?Dm=Sm(Dm.line,Math.min(Rm(Sf,Dm.line).text.length,Dm.ch+ch(eh).length)):zf&&Dg&&Dg.lineWise&&Dg.text.join( `
` )==eh.join( `
` )&&(mm=Dm=Sm(mm.line,0)));var Um={from:mm,to:Dm,text:ah?ah[Yh%ah.length]:eh,origin:Zd||(zf?"paste":Id.state.cutIncoming>Mf?"cut":"+input")};Ub(Id.doc,Um),Wd(Id,"inputRead",Id,Um)}jd&&!zf&&sy(Id,jd),o1(Id),Id.curOp.updateInput<2&&(Id.curOp.updateInput=kh),Id.curOp.typing=!0,Id.state.pasteIncoming=Id.state.cutIncoming=-1}function s0(Id,jd){var Kd=Id.clipboardData&&Id.clipboardData.getData("Text");if(Kd)return Id.preventDefault(),!jd.isReadOnly()&&!jd.options.disableInput&&jd.hasFocus()&&G1(jd,function(){return DE(jd,Kd,0,null,"paste")}),!0}function sy(Id,jd){if(!(!Id.options.electricChars||!Id.options.smartIndent))for(var Kd=Id.doc.sel,Yd=Kd.ranges.length-1;Yd>=0;Yd--){var Zd=Kd.ranges[Yd];if(!(Zd.head.ch>100||Yd&&Kd.ranges[Yd-1].head.line==Zd.head.line)){var Sf=Id.getModeAt(Zd.head),Mf=!1;if(Sf.electricChars){for(var zf=0;zf<Sf.electricChars.length;zf++)if(jd.indexOf(Sf.electricChars.charAt(zf))>-1){Mf=xv(Id,Zd.head.line,"smart");break}}else Sf.electricInput&&Sf.electricInput.test(Rm(Id.doc,Zd.head.line).text.slice(0,Zd.head.ch))&&(Mf=xv(Id,Zd.head.line,"smart"));Mf&&Wd(Id,"electricInput",Id,Zd.head.line)}}}function oy(Id){for(var jd=[],Kd=[],Yd=0;Yd<Id.doc.sel.ranges.length;Yd++){var Zd=Id.doc.sel.ranges[Yd].head.line,Sf={anchor:Sm(Zd,0),head:Sm(Zd+1,0)};Kd.push(Sf),jd.push(Id.getRange(Sf.anchor,Sf.head))}return{text:jd,ranges:Kd}}function Cv(Id,jd,Kd,Yd){Id.setAttribute("autocorrect",Kd?"on":"off"),Id.setAttribute("autocapitalize",Yd?"on":"off"),Id.setAttribute("spellcheck",!!jd)}function Av(){var Id=hf("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),jd=hf("div",[Id],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _d?Id.style.width="1000px":Id.setAttribute("wrap","off"),Od&&(Id.style.border="1px solid black"),jd}function Qb(Id){var jd=Id.optionHandlers,Kd=Id.helpers={};Id.prototype={constructor:Id,focus:function(){Kf(this).focus(),this.display.input.focus()},setOption:function(Yd,Zd){var Sf=this.options,Mf=Sf[Yd];Sf[Yd]==Zd&&Yd!="mode"||(Sf[Yd]=Zd,jd.hasOwnProperty(Yd)&&J_(this,jd[Yd])(this,Zd,Mf),Lm(this,"optionChange",this,Yd))},getOption:function(Yd){return this.options[Yd]},getDoc:function(){return this.doc},addKeyMap:function(Yd,Zd){this.state.keyMaps[Zd?"push":"unshift"](_v(Yd))},removeKeyMap:function(Yd){for(var Zd=this.state.keyMaps,Sf=0;Sf<Zd.length;++Sf)if(Zd[Sf]==Yd||Zd[Sf].name==Yd)return Zd.splice(Sf,1),!0},addOverlay:b_(function(Yd,Zd){var Sf=Yd.token?Yd:Id.getMode(this.options,Yd);if(Sf.startState)throw new Error("Overlays may not be stateful.");sh(this.state.overlays,{mode:Sf,modeSpec:Yd,opaque:Zd&&Zd.opaque,priority:Zd&&Zd.priority||0},function(Mf){return Mf.priority}),this.state.modeGen++,J1(this)}),removeOverlay:b_(function(Yd){for(var Zd=this.state.overlays,Sf=0;Sf<Zd.length;++Sf){var Mf=Zd[Sf].modeSpec;if(Mf==Yd||typeof Yd=="string"&&Mf.name==Yd){Zd.splice(Sf,1),this.state.modeGen++,J1(this);return}}}),indentLine:b_(function(Yd,Zd,Sf){typeof Zd!="string"&&typeof Zd!="number"&&(Zd==null?Zd=this.options.smartIndent?"smart":"prev":Zd=Zd?"add":"subtract"),tg(this.doc,Yd)&&xv(this,Yd,Zd,Sf)}),indentSelection:b_(function(Yd){for(var Zd=this.doc.sel.ranges,Sf=-1,Mf=0;Mf<Zd.length;Mf++){var zf=Zd[Mf];if(zf.empty())zf.head.line>Sf&&(xv(this,zf.head.line,Yd,!0),Sf=zf.head.line,Mf==this.doc.sel.primIndex&&o1(this));else{var eh=zf.from(),ah=zf.to(),Th=Math.max(Sf,eh.line);Sf=Math.min(this.lastLine(),ah.line-(ah.ch?0:1))+1;for(var kh=Th;kh<Sf;++kh)xv(this,kh,Yd);var Yh=this.doc.sel.ranges;eh.ch==0&&Zd.length==Yh.length&&Yh[Mf].from().ch>0&&Ng(this.doc,Mf,new W_(eh,Yh[Mf].to()),th)}}}),getTokenAt:function(Yd,Zd){return Tg(this,Yd,Zd)},getLineTokens:function(Yd,Zd){return Tg(this,Sm(Yd),Zd,!0)},getTokenTypeAt:function(Yd){Yd=h_(this.doc,Yd);var Zd=Eg(this,Rm(this.doc,Yd.line)),Sf=0,Mf=(Zd.length-1)/2,zf=Yd.ch,eh;if(zf==0)eh=Zd[2];else for(;;){var ah=Sf+Mf>>1;if((ah?Zd[ah*2-1]:0)>=zf)Mf=ah;else if(Zd[ah*2+1]<zf)Sf=ah+1;else{eh=Zd[ah*2+2];break}}var Th=eh?eh.indexOf("overlay "):-1;return Th<0?eh:Th==0?null:e
` ,Um=qh(Dm,Wh)?"w":Yh&&Dm== `
` ?"n":!Yh||/ \s /.test(Dm)?null:"p";if(Yh&&!mm&&!Um&&(Um="s"),kh&&kh!=Um){Kd<0&&(Kd=1,Th(),jd.sticky="after");break}if(Um&&(kh=Um),Kd>0&&!Th(!mm))break}var Km=Fb(Id,jd,Sf,Mf,!0);return I1(Sf,Km)&&(Km.hitSide=!0),Km}function Nv(Id,jd,Kd,Yd){var Zd=Id.doc,Sf=jd.left,Mf;if(Yd=="page"){var zf=Math.min(Id.display.wrapper.clientHeight,Kf(Id).innerHeight||Zd(Id).documentElement.clientHeight),eh=Math.max(zf-.5*Bg(Id.display),3);Mf=(Kd>0?jd.bottom:jd.top)+Kd*eh}else Yd=="line"&&(Mf=Kd>0?jd.bottom+3:jd.top-3);for(var ah;ah=U_(Id,Sf,Mf),!!ah.outside;){if(Kd<0?Mf<=0:Mf>=Zd.height){ah.hitSide=!0;break}Mf+=Kd*5}return ah}var Y_=function(Id){this.cm=Id,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Wf,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Y_.prototype.init=function(Id){var jd=this,Kd=this,Yd=Kd.cm,Zd=Kd.div=Id.lineDiv;Zd.contentEditable=!0,Cv(Zd,Yd.options.spellcheck,Yd.options.autocorrect,Yd.options.autocapitalize);function Sf(zf){for(var eh=zf.target;eh;eh=eh.parentNode){if(eh==Zd)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(eh.className))break}return!1}um(Zd,"paste",function(zf){!Sf(zf)||e_(Yd,zf)||s0(zf,Yd)||ud<=11&&setTimeout(J_(Yd,function(){return jd.updateFromDOM()}),20)}),um(Zd,"compositionstart",function(zf){jd.composing={data:zf.data,done:!1}}),um(Zd,"compositionupdate",function(zf){jd.composing||(jd.composing={data:zf.data,done:!1})}),um(Zd,"compositionend",function(zf){jd.composing&&(zf.data!=jd.composing.data&&jd.readFromDOMSoon(),jd.composing.done=!0)}),um(Zd,"touchstart",function(){return Kd.forceCompositionEnd()}),um(Zd,"input",function(){jd.composing||jd.readFromDOMSoon()});function Mf(zf){if(!(!Sf(zf)||e_(Yd,zf))){if(Yd.somethingSelected())ay({lineWise:!1,text:Yd.getSelections()}),zf.type=="cut"&&Yd.replaceSelection("",null,"cut");else if(Yd.options.lineWiseCopyCut){var eh=oy(Yd);ay({lineWise:!0,text:eh.text}),zf.type=="cut"&&Yd.operation(function(){Yd.setSelections(eh.ranges,0,th),Yd.replaceSelection("",null,"cut")})}else return;if(zf.clipboardData){zf.clipboardData.clearData();var ah=Dg.text.join( `
` );if(zf.clipboardData.setData("Text",ah),zf.clipboardData.getData("Text")==ah){zf.preventDefault();return}}var Th=Av(),kh=Th.firstChild;Cv(kh),Yd.display.lineSpace.insertBefore(Th,Yd.display.lineSpace.firstChild),kh.value=Dg.text.join( `
` );var Yh=Ff(Zf(Zd));Lf(kh),setTimeout(function(){Yd.display.lineSpace.removeChild(Th),Yh.focus(),Yh==Zd&&Kd.showPrimarySelection()},50)}}um(Zd,"copy",Mf),um(Zd,"cut",Mf)},Y_.prototype.screenReaderLabelChanged=function(Id){Id?this.div.setAttribute("aria-label",Id):this.div.removeAttribute("aria-label")},Y_.prototype.prepareSelection=function(){var Id=Qy(this.cm,!1);return Id.focus=Ff(Zf(this.div))==this.div,Id},Y_.prototype.showSelection=function(Id,jd){!Id||!this.cm.display.view.length||((Id.focus||jd)&&this.showPrimarySelection(),this.showMultipleSelections(Id))},Y_.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Y_.prototype.showPrimarySelection=function(){var Id=this.getSelection(),jd=this.cm,Kd=jd.doc.sel.primary(),Yd=Kd.from(),Zd=Kd.to();if(jd.display.viewTo==jd.display.viewFrom||Yd.line>=jd.display.viewTo||Zd.line<jd.display.viewFrom){Id.removeAllRanges();return}var Sf=L1(jd,Id.anchorNode,Id.anchorOffset),Mf=L1(jd,Id.focusNode,Id.focusOffset);if(!(Sf&&!Sf.bad&&Mf&&!Mf.bad&&f_(j1(Sf,Mf),Yd)==0&&f_(l1(Sf,Mf),Zd)==0)){var zf=jd.display.view,eh=Yd.line>=jd.display.viewFrom&&F0(jd,Yd)||{node:zf[0].measure.map[2],offset:0},ah=Zd.line<jd.display.viewTo&&F0(jd,Zd);if(!ah){var Th=zf[zf.length-1].measure,kh=Th.maps?Th.maps[Th.maps.length-1]:Th.map;ah={node:kh[kh.length-1],offset:kh[kh.length-2]-kh[kh.length-3]}}if(!eh||!ah){Id.removeAllRanges();return}var Yh=Id.rangeCount&&Id.getRangeAt(0),Wh;try{Wh=yf(eh.node,eh.offset,ah.offset,ah.node)}catch{}Wh&&(!rd&&jd.state.focused?(Id.collapse(eh.node,eh.offset),Wh.collapsed||(Id.removeAllRanges(),Id.addRange(Wh))):(Id.removeAllRanges(),Id.addRange(Wh)),Yh&&Id.anchorNode==null?Id.addRange(Yh):rd&&this.startGracePeriod()),this.rememberSelection()}},Y_.prototype.startGracePeriod=function(){var Id=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){Id.gracePeriod=!1,Id.selectionChanged()&&Id.cm.operation(function(){return Id.cm.curOp.selectionChanged=!0})},20)},Y_.prototype.showMultipleSelections=function(Id){_f(this.cm.display.cursorDiv,Id.cursors),_f(this.cm.display.selectionDiv,Id.selection)},Y_.prototype.rememberSelection=function(){var Id=this.getSelection();this.lastAnchorNode=Id.anchorNode,this.lastAnchorOffset=Id.anchorOffset,this.lastFocusNode=Id.focusNode,this.lastFocusOffset=Id.focusOffset},Y_.prototype.selectionInEditor=function(){var Id=this.getSelection();if(!Id.rangeCount)return!1;var jd=Id.getRangeAt(0).commonAncestorContainer;return Cf(this.div,jd)},Y_.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ff(Zf(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Y_.prototype.blur=function(){this.div.blur()},Y_.prototype.getField=function(){return this.div},Y_.prototype.supportsTouch=function(){return!0},Y_.prototype.receivedFocus=function(){var Id=this,jd=this;this.selectionInEditor()?setTimeout(function(){return Id.pollSelection()},20):G1(this.cm,function(){return jd.cm.curOp.selectionChanged=!0});function Kd(){jd.cm.state.focused&&(jd.pollSelection(),jd.polling.set(jd.cm.options.pollInterval,Kd))}this.polling.set(this.cm.options.pollInterval,Kd)},Y_.prototype.selectionChanged=function(){var Id=this.getSelection();return Id.anchorNode!=this.lastAnchorNode||Id.anchorOffset!=this.lastAnchorOffset||Id.focusNode!=this.lastFocusNode||Id.focusOffset!=this.lastFocusOffset},Y_.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var Id=this.getSelection(),jd=this.cm;if(Md&&Ad&&this.cm.display.gutterSpecs.length&&cT(Id.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Kd=L1(jd,Id.anchorNode,Id.anchorOffset),Yd=L1(jd,Id.focusNode,Id.focusOffset);Kd&&Yd&&G1(jd,function(){q1(jd.doc,O0(Kd,Yd),th),(Kd.bad||Yd.bad)&&(jd.curOp.selectionChanged=!0)})}}},Y_.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMT
` ),Lf(Zd))}else return;Mf.type=="cut"&&(Yd.state.cutIncoming=+new Date)}}um(Zd,"cut",Sf),um(Zd,"copy",Sf),um(Id.scroller,"paste",function(Mf){if(!(z_(Id,Mf)||e_(Yd,Mf))){if(!Zd.dispatchEvent){Yd.state.pasteIncoming=+new Date,Kd.focus();return}var zf=new Event("paste");zf.clipboardData=Mf.clipboardData,Zd.dispatchEvent(zf)}}),um(Id.lineSpace,"selectstart",function(Mf){z_(Id,Mf)||Qm(Mf)}),um(Zd,"compositionstart",function(){var Mf=Yd.getCursor("from");Kd.composing&&Kd.composing.range.clear(),Kd.composing={start:Mf,range:Yd.markText(Mf,Yd.getCursor("to"),{className:"CodeMirror-composing"})}}),um(Zd,"compositionend",function(){Kd.composing&&(Kd.poll(),Kd.composing.range.clear(),Kd.composing=null)})},b1.prototype.createField=function(Id){this.wrapper=Av(),this.textarea=this.wrapper.firstChild;var jd=this.cm.options;Cv(this.textarea,jd.spellcheck,jd.autocorrect,jd.autocapitalize)},b1.prototype.screenReaderLabelChanged=function(Id){Id?this.textarea.setAttribute("aria-label",Id):this.textarea.removeAttribute("aria-label")},b1.prototype.prepareSelection=function(){var Id=this.cm,jd=Id.display,Kd=Id.doc,Yd=Qy(Id);if(Id.options.moveInputWithCursor){var Zd=fm(Id,Kd.sel.primary().head,"div"),Sf=jd.wrapper.getBoundingClientRect(),Mf=jd.lineDiv.getBoundingClientRect();Yd.teTop=Math.max(0,Math.min(jd.wrapper.clientHeight-10,Zd.top+Mf.top-Sf.top)),Yd.teLeft=Math.max(0,Math.min(jd.wrapper.clientWidth-10,Zd.left+Mf.left-Sf.left))}return Yd},b1.prototype.showSelection=function(Id){var jd=this.cm,Kd=jd.display;_f(Kd.cursorDiv,Id.cursors),_f(Kd.selectionDiv,Id.selection),Id.teTop!=null&&(this.wrapper.style.top=Id.teTop+"px",this.wrapper.style.left=Id.teLeft+"px")},b1.prototype.reset=function(Id){if(!(this.contextMenuPending||this.composing&&Id)){var jd=this.cm;if(this.resetting=!0,jd.somethingSelected()){this.prevInput="";var Kd=jd.getSelection();this.textarea.value=Kd,jd.state.focused&&Lf(this.textarea),cd&&ud>=9&&(this.hasSelection=Kd)}else Id||(this.prevInput=this.textarea.value="",cd&&ud>=9&&(this.hasSelection=null));this.resetting=!1}},b1.prototype.getField=function(){return this.textarea},b1.prototype.supportsTouch=function(){return!1},b1.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Pd||Ff(Zf(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},b1.prototype.blur=function(){this.textarea.blur()},b1.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},b1.prototype.receivedFocus=function(){this.slowPoll()},b1.prototype.slowPoll=function(){var Id=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){Id.poll(),Id.cm.state.focused&&Id.slowPoll()})},b1.prototype.fastPoll=function(){var Id=!1,jd=this;jd.pollingFast=!0;function Kd(){var Yd=jd.poll();!Yd&&!Id?(Id=!0,jd.polling.set(60,Kd)):(jd.pollingFast=!1,jd.slowPoll())}jd.polling.set(20,Kd)},b1.prototype.poll=function(){var Id=this,jd=this.cm,Kd=this.textarea,Yd=this.prevInput;if(this.contextMenuPending||this.resetting||!jd.state.focused||ph(Kd)&&!Yd&&!this.composing||jd.isReadOnly()||jd.options.disableInput||jd.state.keySeq)return!1;var Zd=Kd.value;if(Zd==Yd&&!jd.somethingSelected())return!1;if(cd&&ud>=9&&this.hasSelection===Zd||Fd&&/[ \u f700- \u f7ff]/.test(Zd))return jd.display.input.reset(),!1;if(jd.doc.sel==jd.display.selForContextMenu){var Sf=Zd.charCodeAt(0);if(Sf==8203&&!Yd&&(Yd=" "),Sf==8666)return this.reset(),this.cm.execCommand("undo")}for(var Mf=0,zf=Math.min(Yd.length,Zd.length);Mf<zf&&Yd.charCodeAt(Mf)==Zd.charCodeAt(Mf);)++Mf;return G1(jd,function(){DE(jd,Zd.slice(Mf),Yd.length-Mf,null,Id.composing?"*compose":null),Zd.length>1e3||Zd.indexOf( `
` )>-1?Kd.value=Id.prevInput="":Id.prevInput=Zd,Id.composing&&(Id.composing.range.clear(),Id.composing.range=jd.markText(Id.composing.start,jd.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},b1.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},b1.prototype.onKeyPress=function(){cd&&ud>=9&&(this.hasSelection=null),this.fastPoll()},b1.prototype.onContextMenu=function(Id){var jd=this,Kd=jd.cm,Yd=Kd.display,Zd=jd.textarea;jd.contextMenuPending&&jd.contextMenuPending();var Sf=t0(Kd,Id),Mf=Yd.scroller.scrollTop;if(!Sf||Nd)return;var zf=Kd.options.resetSelectionOnContextMenu;zf&&Kd.doc.sel.contains(Sf)==-1&&J_(Kd,q1)(Kd.doc,O0(Sf),th);var eh=Zd.style.cssText,ah=jd.wrapper.style.cssText,Th=jd.wrapper.offsetParent.getBoundingClientRect();jd.wrapper.style.cssText="position: static",Zd.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
top : ` +(Id.clientY-Th.top-5)+"px; left: "+(Id.clientX-Th.left-5)+ ` px ;
z - index : 1000 ; background : ` +(cd?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2024-09-16 17:10:21 +08:00
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var kh;_d&&(kh=Zd.ownerDocument.defaultView.scrollY),Yd.input.focus(),_d&&Zd.ownerDocument.defaultView.scrollTo(null,kh),Yd.input.reset(),Kd.somethingSelected()||(Zd.value=jd.prevInput=" "),jd.contextMenuPending=Wh,Yd.selForContextMenu=Kd.doc.sel,clearTimeout(Yd.detectingSelectAll);function Yh(){if(Zd.selectionStart!=null){var Dm=Kd.somethingSelected(),Um=" "+(Dm?Zd.value:"");Zd.value="⇚",Zd.value=Um,jd.prevInput=Dm?"":" ",Zd.selectionStart=1,Zd.selectionEnd=Um.length,Yd.selForContextMenu=Kd.doc.sel}}function Wh(){if(jd.contextMenuPending==Wh&&(jd.contextMenuPending=!1,jd.wrapper.style.cssText=ah,Zd.style.cssText=eh,cd&&ud<9&&Yd.scrollbars.setScrollTop(Yd.scroller.scrollTop=Mf),Zd.selectionStart!=null)){(!cd||cd&&ud<9)&&Yh();var Dm=0,Um=function(){Yd.selForContextMenu==Kd.doc.sel&&Zd.selectionStart==0&&Zd.selectionEnd>0&&jd.prevInput==" "?J_(Kd,jb)(Kd):Dm++<10?Yd.detectingSelectAll=setTimeout(Um,500):(Yd.selForContextMenu=null,Yd.input.reset())};Yd.detectingSelectAll=setTimeout(Um,200)}}if(cd&&ud>=9&&Yh(),zd){Z_(Id);var mm=function(){Fm(window,"mouseup",mm),setTimeout(Wh,20)};um(window,"mouseup",mm)}else setTimeout(Wh,50)},b1.prototype.readOnlyChanged=function(Id){Id||this.reset(),this.textarea.disabled=Id=="nocursor",this.textarea.readOnly=!!Id},b1.prototype.setUneditable=function(){},b1.prototype.needsContentAttribute=!1;function w2(Id,jd){if(jd=jd?bf(jd):{},jd.value=Id.value,!jd.tabindex&&Id.tabIndex&&(jd.tabindex=Id.tabIndex),!jd.placeholder&&Id.placeholder&&(jd.placeholder=Id.placeholder),jd.autofocus==null){var Kd=Ff(Zf(Id));jd.autofocus=Kd==Id||Id.getAttribute("autofocus")!=null&&Kd==document.body}function Yd(){Id.value=zf.getValue()}var Zd;if(Id.form&&(um(Id.form,"submit",Yd),!jd.leaveSubmitMethodAlone)){var Sf=Id.form;Zd=Sf.submit;try{var Mf=Sf.submit=function(){Yd(),Sf.submit=Zd,Sf.submit(),Sf.submit=Mf}}catch{}}jd.finishInit=function(eh){eh.save=Yd,eh.getTextArea=function(){return Id},eh.toTextArea=function(){eh.toTextArea=isNaN,Yd(),Id.parentNode.removeChild(eh.getWrapperElement()),Id.style.display="",Id.form&&(Fm(Id.form,"submit",Yd),!jd.leaveSubmitMethodAlone&&typeof Id.form.submit=="function"&&(Id.form.submit=Zd))}},Id.style.display="none";var zf=q_(function(eh){return Id.parentNode.insertBefore(eh,Id.nextSibling)},jd);return zf}function dT(Id){Id.off=Fm,Id.on=um,Id.wheelEventPixels=K2,Id.Doc=Y1,Id.splitLines=Df,Id.countColumn=Bf,Id.findColumn=xf,Id.isWordChar=Xh,Id.Pass= $ f,Id.signal=Lm,Id.Line=Pf,Id.changeEnd=k0,Id.scrollbarModel=ab,Id.Pos=Sm,Id.cmpPos=f_,Id.modes=Ch,Id.mimeModes=Bh,Id.resolveMode=dm,Id.getMode=cm,Id.modeExtensions=_m,Id.extendMode=Gf,Id.copyState=Mm,Id.startState=m_,Id.innerMode=g_,Id.commands=vv,Id.keyMap=i0,Id.keyName=mv,Id.isModifierKey=Xv,Id.lookupKey=vg,Id.normalizeKeyMap=bg,Id.StringStream=s_,Id.SharedTextMarker=Vb,Id.TextMarker=zg,Id.LineWidget=pb,Id.e_preventDefault=Qm,Id.e_stopPropagation=P_,Id.e_stop=Z_,Id.addClass=Qf,Id.contains=Cf,Id.rmClass=df,Id.keyNames=M1}NE(q_),Qb(q_);var A2="iter insert remove copy getEditor constructor".split(" ");for(var uy in Y1.prototype)Y1.prototype.hasOwnProperty(uy)&&lh(A2,uy)<0&&(q_.prototype[uy]=function(Id){return function(){return Id.apply(this.doc,arguments)}}(Y1.prototype[uy]));return w_(Y1),q_.inputStyles={textarea:b1,contenteditable:Y_},q_.defineMode=function(Id){!q_.defaults.mode&&Id!="null"&&(q_.defaults.mode=Id),Rh.apply(this,arguments)},q_.defineMIME=bh,q_.defineMode("null",function(){return{token:function(Id){return Id.skipToEnd()}}}),q_.defineMIME("text/plain","null"),q_.defineExtension=function(Id,jd){q_.prototype[Id]=jd},q_.defineDocExtension=function(Id,jd){Y1.prototype[Id]=jd},q_.fromTextArea=w2,dT(q_),q_.version="5.65.17",q_})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);function tryOnScopeDispose $ 1(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function toValue $ 2(Ra){return typeof Ra=="function"?Ra():unref(Ra)}
2024-08-27 22:31:52 +08:00
( ? :
2024-09-16 00:03:18 +08:00
( ? : ` +td+":){7}(?:"+td+ ` | : ) | // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
( ? : ` +td+":){6}(?:"+ed+"|:"+td+ ` | : ) | // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
( ? : ` +td+":){5}(?::"+ed+"|(?::"+td+ ` ) { 1 , 2 } | : ) | // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
( ? : ` +td+":){4}(?:(?::"+td+"){0,1}:"+ed+"|(?::"+td+ ` ) { 1 , 3 } | : ) | // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
( ? : ` +td+":){3}(?:(?::"+td+"){0,2}:"+ed+"|(?::"+td+ ` ) { 1 , 4 } | : ) | // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
( ? : ` +td+":){2}(?:(?::"+td+"){0,3}:"+ed+"|(?::"+td+ ` ) { 1 , 5 } | : ) | // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
( ? : ` +td+":){1}(?:(?::"+td+"){0,4}:"+ed+"|(?::"+td+ ` ) { 1 , 6 } | : ) | // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
( ? : : ( ? : ( ? : : ` +td+"){0,5}:"+ed+"|(?::"+td+ ` ) { 1 , 7 } | : ) ) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
2024-08-27 22:31:52 +08:00
) ( ? : % [ 0 - 9 a - zA - Z ] { 1 , } ) ? // %eth0 %1
2024-09-16 00:03:18 +08:00
` ).replace(/ \s * \/ \/ .* $ /gm,"").replace(/ \n /g,"").trim(),sd=new RegExp("(?:^"+ed+" $ )|(?:^"+rd+" $ )"),od=new RegExp("^"+ed+" $ "),ld=new RegExp("^"+rd+" $ "),cd=function(Pd){return Pd&&Pd.exact?sd:new RegExp("(?:"+qa(Pd)+ed+qa(Pd)+")|(?:"+qa(Pd)+rd+qa(Pd)+")","g")};cd.v4=function(Md){return Md&&Md.exact?od:new RegExp(""+qa(Md)+ed+qa(Md),"g")},cd.v6=function(Md){return Md&&Md.exact?ld:new RegExp(""+qa(Md)+rd+qa(Md),"g")};var ud="(?:(?:[a-z]+:)?//)",_d="(?: \\ S+(?:: \\ S*)?@)?",Ed=cd.v4().source,Ad=cd.v6().source,Td="(?:(?:[a-z \\ u00a1- \\ uffff0-9][-_]*)*[a-z \\ u00a1- \\ uffff0-9]+)",Nd="(?: \\ .(?:[a-z \\ u00a1- \\ uffff0-9]-*)*[a-z \\ u00a1- \\ uffff0-9]+)*",Rd="(?: \\ .(?:[a-z \\ u00a1- \\ uffff]{2,}))",Bd="(?:: \\ d{2,5})?",kd='(?:[/?#][^ \\ s"]*)?',Od="(?:"+ud+"|www \\ .)"+_d+"(?:localhost|"+Ed+"|"+Ad+"|"+Td+Nd+Rd+")"+Bd+kd;return urlReg=new RegExp("(?:^"+Od+" $ )","i"),urlReg},pattern $ 2={email:/^(([^<>() \[ \] \\ .,;: \s @"]+( \. [^<>() \[ \] \\ .,;: \s @"]+)*)|(".+"))@(( \[ [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3}])|(([a-zA-Z \- 0-9 \u 00A0- \u D7FF \u F900- \u FDCF \u FDF0- \u FFEF]+ \. )+[a-zA-Z \u 00A0- \u D7FF \u F900- \u FDCF \u FDF0- \u FFEF]{2,})) $ /,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3}) $ /i},types $ 2={integer:function(qa){return types $ 2.number(qa)&&parseInt(qa,10)===qa},float:function(qa){return types $ 2.number(qa)&&!types $ 2.integer(qa)},array:function(qa){return Array.isArray(qa)},regexp:function(qa){if(qa instanceof RegExp)return!0;try{return!!new RegExp(qa)}catch{return!1}},date:function(qa){return typeof qa.getTime=="function"&&typeof qa.getMonth=="function"&&typeof qa.getYear=="function"&&!isNaN(qa.getTime())},number:function(qa){return isNaN(qa)?!1:typeof qa=="number"},object:function(qa){return typeof qa=="object"&&!types $ 2.array(qa)},method:function(qa){return typeof qa=="function"},email:function(qa){return typeof qa=="string"&&qa.length<=320&&!!qa.match(pattern $ 2.email)},url:function(qa){return typeof qa=="string"&&qa.length<=2048&&!!qa.match(getUrlRegex())},hex:function(qa){return typeof qa=="string"&&!!qa.match(pattern $ 2.hex)}},type $ 1 $ 1=function(qa,ed,td,rd,sd){if(qa.required&&ed===void 0){required $ 1(qa,ed,td,rd,sd);return}var od=["integer","float","array","regexp","object","method","email","number","date","url","hex"],ld=qa.type;od.indexOf(ld)>-1?types $ 2[ld](ed)||rd.push(format $ 2(sd.messages.types[ld],qa.fullField,qa.type)):ld&&typeof ed!==qa.type&&rd.push(format $ 2(sd.messages.types[ld],qa.fullField,qa.type))},range $ 4=function(qa,ed,td,rd,sd){var od=typeof qa.len=="number",ld=typeof qa.min=="number",cd=typeof qa.max=="number",ud=/[ \u D800- \u DBFF][ \u DC00- \u DFFF]/g,_d=ed,Ed=null,Ad=typeof ed=="number",Td=typeof ed=="string",Nd=Array.isArray(ed);if(Ad?Ed="number":Td?Ed="string":Nd&&(Ed="array"),!Ed)return!1;Nd&&(_d=ed.length),Td&&(_d=ed.replace(ud,"_").length),od?_d!==qa.len&&rd.push(format $ 2(sd.messages[Ed].len,qa.fullField,qa.len)):ld&&!cd&&_d<qa.min?rd.push(format $ 2(sd.messages[Ed].min,qa.fullField,qa.min)):cd&&!ld&&_d>qa.max?rd.push(format $ 2(sd.messages[Ed].max,qa.fullField,qa.max)):ld&&cd&&(_d<qa.min||_d>qa.max)&&rd.push(format $ 2(sd.messages[Ed].range,qa.fullField,qa.min,qa.max))},ENUM $ 1="enum",enumerable $ 1=function(qa,ed,td,rd,sd){qa[ENUM $ 1]=Array.isArray(qa[ENUM $ 1])?qa[ENUM $ 1]:[],qa[ENUM $ 1].indexOf(ed)===-1&&rd.push(format $ 2(sd.messages[ENUM $ 1],qa.fullField,qa[ENUM $ 1].join(", ")))},pattern $ 1=function(qa,ed,td,rd,sd){if(qa.pattern){if(qa.pattern instanceof RegExp)qa.pattern.lastIndex=0,qa.pattern.test(ed)||rd.push(format $ 2(sd.messages.pattern.mismatch,qa.fullField,ed,qa.pattern));else if(typeof qa.pattern=="string"){var od=new RegExp(qa.pattern);od.test(ed)||rd.push(format $ 2(sd.messages.pattern.mismatch,qa.fullField,ed,qa.pattern))}}},rules={required:required $ 1,whitespace:whitespace $ 1,type:type $ 1 $ 1,range:range $ 4,enum:enumerable $ 1,pattern:pattern $ 1},string=function(qa,ed,td,rd,sd){var od=[],ld=qa.required||!qa.required&&rd.hasOwnProperty(qa.field);if(ld){if(isEmptyValue(ed,"string")&&!qa.required)return td();rules.required(qa,ed,rd,od,sd,"string"),isEmptyValue(ed,"string")||(rules.type(qa,ed,rd,od,sd),rules.range(qa,ed,rd,od,sd),rules.pattern(qa,ed,rd,od,sd),qa.whitespace===!0&
2024-08-27 22:31:52 +08:00
height : 0 ! important ;
visibility : hidden ! important ;
$ { isFirefox ( ) ? "" : "overflow:hidden !important;" }
position : absolute ! important ;
z - index : - 1000 ! important ;
top : 0 ! important ;
right : 0 ! important ;
2024-09-16 00:03:18 +08:00
` ,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling(Ra){const qa=window.getComputedStyle(Ra),ed=qa.getPropertyValue("box-sizing"),td=Number.parseFloat(qa.getPropertyValue("padding-bottom"))+Number.parseFloat(qa.getPropertyValue("padding-top")),rd=Number.parseFloat(qa.getPropertyValue("border-bottom-width"))+Number.parseFloat(qa.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(od=> ` $ { od } : $ { qa . getPropertyValue ( od ) } ` ).join(";"),paddingSize:td,borderSize:rd,boxSizing:ed}}function calcTextareaHeight(Ra,qa=1,ed){var td;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:rd,borderSize:sd,boxSizing:od,contextStyle:ld}=calculateNodeStyling(Ra);hiddenTextarea.setAttribute("style", ` $ { ld } ; $ { HIDDEN _STYLE } ` ),hiddenTextarea.value=Ra.value||Ra.placeholder||"";let cd=hiddenTextarea.scrollHeight;const ud={};od==="border-box"?cd=cd+sd:od==="content-box"&&(cd=cd-rd),hiddenTextarea.value="";const _d=hiddenTextarea.scrollHeight-rd;if(isNumber $ 3(qa)){let Ed=_d*qa;od==="border-box"&&(Ed=Ed+rd+sd),cd=Math.max(Ed,cd),ud.minHeight= ` $ { Ed } px ` }if(isNumber $ 3(ed)){let Ed=_d*ed;od==="border-box"&&(Ed=Ed+rd+sd),cd=Math.min(Ed,cd)}return ud.height= ` $ { cd } px ` ,(td=hiddenTextarea.parentNode)==null||td.removeChild(hiddenTextarea),hiddenTextarea=void 0,ud}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"])}),inputEmits={[UPDATE_MODEL_EVENT]:Ra=>isString $ 3(Ra),input:Ra=>isString $ 3(Ra),change:Ra=>isString $ 3(Ra),focus:Ra=>Ra instanceof FocusEvent,blur:Ra=>Ra instanceof FocusEvent,clear:()=>!0,mouseleave:Ra=>Ra instanceof MouseEvent,mouseenter:Ra=>Ra instanceof MouseEvent,keydown:Ra=>Ra instanceof Event,compositionstart:Ra=>Ra instanceof CompositionEvent,compositionupdate:Ra=>Ra instanceof CompositionEvent,compositionend:Ra=>Ra instanceof CompositionEvent},__default__ $ s=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main $ 1q=defineComponent({...__default__ $ s,props:inputProps,emits:inputEmits,setup(Ra,{expose:qa,emit:ed}){const td=Ra,rd=useAttrs $ 1(),sd=useSlots(),od=computed(()=>{const Dh={};return td.containerRole==="combobox"&&(Dh["aria-haspopup"]=rd["aria-haspopup"],Dh["aria-owns"]=rd["aria-owns"],Dh["aria-expanded"]=rd["aria-expanded"]),Dh}),ld=computed(()=>[td.type==="textarea"?Bd.b():Rd.b(),Rd.m(Td.value),Rd.is("disabled",Nd.value),Rd.is("exceed",wf.value),{[Rd.b("group")]:sd.prepend||sd.append,[Rd.m("prefix")]:sd.prefix||td.prefixIcon,[Rd.m("suffix")]:sd.suffix||td.suffixIcon||td.clearable||td.showPassword,[Rd.bm("suffix","password-clear")]:Ff.value&&Qf.value,[Rd.b("hidden")]:td.type==="hidden"},rd.class]),cd=computed(()=>[Rd.e("wrapper"),Rd.is("focus",Vd.value)]),ud=useAttrs({excludeKeys:computed(()=>Object.keys(od.value))}),{form:_d,formItem:Ed}=useFormItem(),{inputId:Ad}=useFormItemInputId(td,{formItemContext:Ed}),Td=useFormSize(),Nd=useFormDisabled(),Rd=useNamespace("input"),Bd=useNamespace("textarea"),kd=shallowRef(),Od=shallowRef(),Md=ref $ 1(!1),Pd=ref $ 1(!1
2024-08-27 22:31:52 +08:00
M 50 50
2024-09-16 00:03:18 +08:00
m 0 $ { Pd ? "" : "-" } $ { Md }
a $ { Md } $ { Md } 0 1 1 0 $ { Pd ? "-" : "" } $ { Md * 2 }
a $ { Md } $ { Md } 0 1 1 0 $ { Pd ? "" : "-" } $ { Md * 2 }
` }),cd=computed(()=>2*Math.PI*od.value),ud=computed(()=>qa.type==="dashboard"?.75:1),_d=computed(()=> ` $ { - 1 * cd . value * ( 1 - ud . value ) / 2 } px ` ),Ed=computed(()=>({strokeDasharray: ` $ { cd . value * ud . value } px , $ { cd . value } px ` ,strokeDashoffset:_d.value})),Ad=computed(()=>({strokeDasharray: ` $ { cd . value * ud . value * ( qa . percentage / 100 ) } px , $ { cd . value } px ` ,strokeDashoffset:_d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),Td=computed(()=>{let Md;return qa.color?Md=Od(qa.percentage):Md=ed[qa.status]||ed.default,Md}),Nd=computed(()=>qa.status==="warning"?warning_filled_default:qa.type==="line"?qa.status==="success"?circle_check_default:circle_close_default:qa.status==="success"?check_default:close_default),Rd=computed(()=>qa.type==="line"?12+qa.strokeWidth*.4:qa.width*.111111+2),Bd=computed(()=>qa.format(qa.percentage));function kd(Md){const Pd=100/Md.length;return Md.map((Ud,Gd)=>isString $ 3(Ud)?{color:Ud,percentage:(Gd+1)*Pd}:Ud).sort((Ud,Gd)=>Ud.percentage-Gd.percentage)}const Od=Md=>{var Pd;const{color:Fd}=qa;if(isFunction $ 4(Fd))return Fd(Md);if(isString $ 3(Fd))return Fd;{const Ud=kd(Fd);for(const Gd of Ud)if(Gd.percentage>Md)return Gd.color;return(Pd=Ud[Ud.length-1])==null?void 0:Pd.color}};return(Md,Pd)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(td).b(),unref(td).m(Md.type),unref(td).is(Md.status),{[unref(td).m("without-text")]:!Md.showText,[unref(td).m("text-inside")]:Md.textInside}]),role:"progressbar","aria-valuenow":Md.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[Md.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(td).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(td).be("bar","outer")),style:normalizeStyle({height: ` $ { Md . strokeWidth } px ` })},[createBaseVNode("div",{class:normalizeClass([unref(td).be("bar","inner"),{[unref(td).bem("bar","inner","indeterminate")]:Md.indeterminate},{[unref(td).bem("bar","inner","striped")]:Md.striped},{[unref(td).bem("bar","inner","striped-flow")]:Md.stripedFlow}]),style:normalizeStyle(unref(rd))},[(Md.showText||Md. $ slots.default)&&Md.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(td).be("bar","innerText"))},[renderSlot(Md. $ slots,"default",{percentage:Md.percentage},()=>[createBaseVNode("span",null,toDisplayString(unref(Bd)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(td).b("circle")),style:normalizeStyle({height: ` $ { Md . width } px ` ,width: ` $ { Md . width } px ` })},[(openBlock(),createElementBlock("svg",{viewBox:"0 0 100 100"},[createBaseVNode("path",{class:normalizeClass(unref(td).be("circle","track")),d:unref(ld),stroke: ` var ( $ { unref ( td ) . cssVarName ( "fill-color-light" ) } , # e5e9f2 ) ` ,"stroke-linecap":Md.strokeLinecap,"stroke-width":unref(sd),fill:"none",style:normalizeStyle(unref(Ed))},null,14,["d","stroke","stroke-linecap","stroke-width"]),createBaseVNode("path",{class:normalizeClass(unref(td).be("circle","path")),d:unref(ld),stroke:unref(Td),fill:"none",opacity:Md.percentage?1:0,"stroke-linecap":Md.strokeLinecap,"stroke-width":unref(sd),style:normalizeStyle(unref(Ad))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(Md.showText||Md. $ slots.default)&&!Md.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(td).e("text")),style:normalizeStyle({fontSize: ` $ { unref ( Rd ) } px ` })},[renderSlot(Md. $ slots,"default",{percentage:Md.percentage},()=>[Md.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Nd))))]),_:1})):(openBlock(),createElementBlock("span",{key:0},toDisplayString(unref(Bd)),1))])],6)):createCommentVNode("v-if",!0)],10,["aria-valuenow"]))}});var Progress=_export_sfc $ 1(_sfc_main $ Y,[["__file","progress.vue"]]);const ElProgress=withInstall(Progress),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:isValidComponentSize},width:{type:[String,Number],default:"
2024-08-30 08:16:01 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-09-16 17:10:21 +08:00
* / ( f u n c t i o n ( R a ) { c o n s t q a = b a s e 6 4 J s $ 1 , e d = i e e e 7 5 4 $ 1 , t d = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; R a . B u f f e r = _ d , R a . S l o w B u f f e r = F d , R a . I N S P E C T _ M A X _ B Y T E S = 5 0 ; c o n s t r d = 2 1 4 7 4 8 3 6 4 7 ; R a . k M a x L e n g t h = r d ; c o n s t { U i n t 8 A r r a y : s d , A r r a y B u f f e r : o d , S h a r e d A r r a y B u f f e r : l d } = g l o b a l T h i s ; _ d . T Y P E D _ A R R A Y _ S U P P O R T = c d ( ) , ! _ d . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n c d ( ) { t r y { c o n s t i h = n e w s d ( 1 ) , k f = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( k f , s d . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( i h , k f ) , i h . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( _ d . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( _ d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( _ d . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( _ d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n u d ( i h ) { i f ( i h > r d ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + i h + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; c o n s t k f = n e w s d ( i h ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( k f , _ d . p r o t o t y p e ) , k f } f u n c t i o n _ d ( i h , k f , O f ) { i f ( t y p e o f i h = = " n u m b e r " ) { i f ( t y p e o f k f = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n N d ( i h ) } r e t u r n E d ( i h , k f , O f ) } _ d . p o o l S i z e = 8 1 9 2 ; f u n c t i o n E d ( i h , k f , O f ) { i f ( t y p e o f i h = = " s t r i n g " ) r e t u r n R d ( i h , k f ) ; i f ( o d . i s V i e w ( i h ) ) r e t u r n k d ( i h ) ; i f ( i h = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f i h ) ; i f ( D h ( i h , o d ) | | i h & & D h ( i h . b u f f e r , o d ) | | t y p e o f l d < " u " & & ( D h ( i h , l d ) | | i h & & D h ( i h . b u f f e r , l d ) ) ) r e t u r n O d ( i h , k f , O f ) ; i f ( t y p e o f i h = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; c o n s t r h = i h . v a l u e O f & & i h . v a l u e O f ( ) ; i f ( r h ! = n u l l & & r h ! = = i h ) r e t u r n _ d . f r o m ( r h , k f , O f ) ; c o n s t u h = M d ( i h ) ; i f ( u h ) r e t u r n u h ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f i h [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n _ d . f r o m ( i h [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , k f , O f ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f i h ) } _ d . f r o m = f u n c t i o n ( i h , k f , O f ) { r e t u r n E d ( i h , k f , O f ) } , O b j e c t . s e t P r o t o t y p e O f ( _ d . p r o t o t y p e , s d . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( _ d , s d ) ; f u n c t i o n A d ( i h ) { i f ( t y p e o f i h ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( i h < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + i h + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n T d ( i h , k f , O f ) { r e t u r n A d ( i h ) , i h < = 0 ? u d ( i h ) : k f ! = = v o i d 0 ? t y p e o f O f = = " s t r i n g " ? u d ( i h ) . f i l l ( k f , O f ) : u d ( i h ) . f i l l ( k f ) : u d ( i h ) } _ d . a l l o c = f u n c t i o n ( i h , k f , O f ) { r e t u r n T d ( i h , k f , O f ) } ; f u n c t i o n N d ( i h ) { r e t u r n A d ( i h ) , u d ( i h < 0 ? 0 : P d ( i h ) | 0 ) } _ d . a l l o c U n s a f e = f u n c t i o n ( i h ) { r e t u r n N d ( i h ) } , _ d . a l l o c U n s a f e S l o w = f u n c t i o n ( i h ) { r e t u r n N d ( i h ) } ; f u n c t i o n R d ( i h , k f ) { i f ( ( t y p e o f k f ! = " s t r i n g " | | k f = = = " " ) & & ( k f = " u t f 8 " ) , ! _ d . i s E n c o d i n g ( k f ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + k f ) ; c o n s t O f = U d ( i h , k f ) | 0 ; l e t r h = u d ( O f ) ; c o n s t u h = r h . w r i t e ( i h , k f ) ; r e t u r n u h ! = = O f & & ( r h = r h . s l i c e ( 0 , u h ) ) , r h } f u n c t i o n B d ( i h ) { c o n s t k f = i h . l e n g t h < 0 ? 0 : P d ( i h . l e n g t h ) | 0 , O f = u d ( k f ) ; f o r ( l e t r h = 0 ; r h < k f ; r h + = 1 ) O f [ r h ] = i h [ r h ] & 2 5 5 ; r e t u r n O f } f u n c t i o n k d ( i h ) { i f ( D h ( i h , s d ) ) { c o n s t k f = n e w s d ( i h ) ; r e t u r n O d ( k f . b u f f e r , k f . b y t e O f f s e t , k f . b y t e L e n g t h ) } r e t u r n B d ( i h ) } f u n c t i o n O d ( i h , k f , O f ) { i f ( k f < 0 | | i h . b y t e L e n g t h < k f ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( i h . b y t e L e n g t h < k f + ( O f | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; l e t r h ; r e t u r n k f = = = v o i d 0 & & O f = = = v o i d 0 ? r h = n e w s d ( i h ) : O f = = = v o i d 0 ? r h = n e w s d ( i h , k f ) : r h = n e w s d ( i h , k f , O f ) , O b j e c t . s e t P r o t o t y p e O f ( r h , _ d . p r o t o t y p e ) , r h } f u n c t i o n M d ( i h ) { i f ( _ d . i s B u f f e r ( i h ) ) { c o n s t k f = P d ( i h . l e n g t h ) | 0 , O f = u d ( k f ) ; r e t u r n O f . l e n g t h = = = 0 | | i h . c o p y ( O f , 0 , 0 , k f ) , O f } i f ( i h . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f i h . l e n g t h ! = " n u m b e r " | | X h ( i h . l e n g t h ) ? u d ( 0 ) : B d ( i h ) ; i f ( i h . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( i h . d a t a ) ) r e t u r n B d ( i h . d a t a ) } f u n c t i o n P d ( i h ) { i f ( i h > = r d ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + r d . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n i h | 0 } f u n c t i o n F d ( i h ) { r e t u r n + i h !
2024-09-16 00:03:18 +08:00
https : //github.com/highlightjs/highlight.js/issues/2277`),Uf=yf,Qf=Cf),Ff===void 0&&(Ff=!0);const Lf={code:Qf,language:Uf};hf("before:highlight",Lf);const wf=Lf.result?Lf.result:Ed(Lf.language,Lf.code,Ff);return wf.code=Lf.code,hf("after:highlight",wf),wf}function Ed(yf,Cf,Ff,Qf){const Uf=Object.create(null);function Lf(qh,sm){return qh.keywords[sm]}function wf(){if(!qf.keywords){_h.addText(sh);return}let qh=0;qf.keywordPatternRe.lastIndex=0;let sm=qf.keywordPatternRe.exec(sh),hm="";for(;sm;){hm+=sh.substring(qh,sm.index);const ih=Yf.case_insensitive?sm[0].toLowerCase():sm[0],kf=Lf(qf,ih);if(kf){const[Of,rh]=kf;if(_h.addText(hm),hm="",Uf[ih]=(Uf[ih]||0)+1,Uf[ih]<=MAX_KEYWORD_HITS&&(Ih+=rh),Of.startsWith("_"))hm+=sm[0];else{const uh=Yf.classNameAliases[Of]||Of;Kf(sm[0],uh)}}else hm+=sm[0];qh=qf.keywordPatternRe.lastIndex,sm=qf.keywordPatternRe.exec(sh)}hm+=sh.substring(qh),_h.addText(hm)}function Nf(){if(sh==="")return;let qh=null;if(typeof qf.subLanguage=="string"){if(!qa[qf.subLanguage]){_h.addText(sh);return}qh=Ed(qf.subLanguage,sh,!0,ch[qf.subLanguage]),ch[qf.subLanguage]=qh._top}else qh=Td(sh,qf.subLanguage.length?qf.subLanguage:null);qf.relevance>0&&(Ih+=qh.relevance),_h.__addSublanguage(qh._emitter,qh.language)}function Zf(){qf.subLanguage!=null?Nf():wf(),sh=""}function Kf(qh,sm){qh!==""&&(_h.startScope(sm),_h.addText(qh),_h.endScope())}function Tf(qh,sm){let hm=1;const ih=sm.length-1;for(;hm<=ih;){if(!qh._emit[hm]){hm++;continue}const kf=Yf.classNameAliases[qh[hm]]||qh[hm],Of=sm[hm];kf?Kf(Of,kf):(sh=Of,wf(),sh=""),hm++}}function bf(qh,sm){return qh.scope&&typeof qh.scope=="string"&&_h.openNode(Yf.classNameAliases[qh.scope]||qh.scope),qh.beginScope&&(qh.beginScope._wrap?(Kf(sh,Yf.classNameAliases[qh.beginScope._wrap]||qh.beginScope._wrap),sh=""):qh.beginScope._multi&&(Tf(qh.beginScope,sm),sh="")),qf=Object.create(qh,{parent:{value:qf}}),qf}function Bf(qh,sm,hm){let ih=startsWith$1(qh.endRe,hm);if(ih){if(qh["on:end"]){const kf=new Response$1(qh);qh["on:end"](sm,kf),kf.isMatchIgnored&&(ih=!1)}if(ih){for(;qh.endsParent&&qh.parent;)qh=qh.parent;return qh}}if(qh.endsWithParent)return Bf(qh.parent,sm,hm)}function Wf(qh){return qf.matcher.regexIndex===0?(sh+=qh[0],1):(Xh=!0,0)}function lh(qh){const sm=qh[0],hm=qh.rule,ih=new Response$1(hm),kf=[hm.__beforeBegin,hm["on:begin"]];for(const Of of kf)if(Of&&(Of(qh,ih),ih.isMatchIgnored))return Wf(sm);return hm.skip?sh+=sm:(hm.excludeBegin&&(sh+=sm),Zf(),!hm.returnBegin&&!hm.excludeBegin&&(sh=sm)),bf(hm,qh),hm.returnBegin?0:sm.length}function Xf(qh){const sm=qh[0],hm=Cf.substring(qh.index),ih=Bf(qf,qh,hm);if(!ih)return NO_MATCH;const kf=qf;qf.endScope&&qf.endScope._wrap?(Zf(),Kf(sm,qf.endScope._wrap)):qf.endScope&&qf.endScope._multi?(Zf(),Tf(qf.endScope,qh)):kf.skip?sh+=sm:(kf.returnEnd||kf.excludeEnd||(sh+=sm),Zf(),kf.excludeEnd&&(sh=sm));do qf.scope&&_h.closeNode(),!qf.skip&&!qf.subLanguage&&(Ih+=qf.relevance),qf=qf.parent;while(qf!==ih.parent);return ih.starts&&bf(ih.starts,qh),kf.returnEnd?0:sm.length}function $f(){const qh=[];for(let sm=qf;sm!==Yf;sm=sm.parent)sm.scope&&qh.unshift(sm.scope);qh.forEach(sm=>_h.openNode(sm))}let th={};function hh(qh,sm){const hm=sm&&sm[0];if(sh+=qh,hm==null)return Zf(),0;if(th.type==="begin"&&sm.type==="end"&&th.index===sm.index&&hm===""){if(sh+=Cf.slice(sm.index,sm.index+1),!rd){const ih=new Error(`0 width match regex (${yf})`);throw ih.languageName=yf,ih.badRule=th.rule,ih}return 1}if(th=sm,sm.type==="begin")return lh(sm);if(sm.type==="illegal"&&!Ff){const ih=new Error('Illegal lexeme "'+hm+'" for mode "'+(qf.scope||"<unnamed>")+'"');throw ih.mode=qf,ih}else if(sm.type==="end"){const ih=Xf(sm);if(ih!==NO_MATCH)return ih}if(sm.type==="illegal"&&hm==="")return 1;if(Dh>1e5&&Dh>sm.index*3)throw new Error("potential infinite loop, way more iterations than matches");return sh+=hm,hm.length}const Yf=Vd(yf);if(!Yf)throw error(sd.replace("{}",yf)),new Error('Unknown language: "'+yf+'"');const xf=compileLanguage(Yf);let Rf="",qf=Qf||xf;const ch={},_h=new ld.__emitter(ld);$f();let sh="",Ih=0,gh=0,Dh=0,Xh=!1;try{if(Yf.__emitTokens)Yf.__emitTokens(Cf,_h
` },Nd]}}return kotlin_1=rd,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function Ra(qa){const ed="[a-zA-Z_][ \\ w.]*",td="< \\ ?(lasso(script)?|=)",rd=" \\ ]| \\ ?>",sd={ $ pattern:ed+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},od=qa.COMMENT("<!--","-->",{relevance:0}),ld={className:"meta",begin:" \\ [noprocess \\ ]",starts:{end:" \\ [/noprocess \\ ]",returnEnd:!0,contains:[od]}},cd={className:"meta",begin:" \\ [/noprocess|"+td},ud={className:"symbol",begin:"'"+ed+"'"},_d=[qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.inherit(qa.C_NUMBER_MODE,{begin:qa.C_NUMBER_RE+"|(-?infinity|NaN) \\ b"}),qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:" ` ",end:" ` "},{variants:[{begin:"[# $ ]"+ed},{begin:"#",end:" \\ d+",illegal:" \\ W"}]},{className:"type",begin:":: \\ s*",end:ed,illegal:" \\ W"},{className:"params",variants:[{begin:"-(?!infinity)"+ed,relevance:0},{begin:"( \\ . \\ . \\ .)"}]},{begin:/(->| \. ) \s */,relevance:0,contains:[ud]},{className:"class",beginKeywords:"define",returnEnd:!0,end:" \\ (|=>",contains:[qa.inherit(qa.TITLE_MODE,{begin:ed+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:sd,contains:[{className:"meta",begin:rd,relevance:0,starts:{end:" \\ [|"+td,returnEnd:!0,relevance:0,contains:[od]}},ld,cd,{className:"meta",begin:" \\ [no_square_brackets",starts:{end:" \\ [/no_square_brackets \\ ]",keywords:sd,contains:[{className:"meta",begin:rd,relevance:0,starts:{end:" \\ [noprocess \\ ]|"+td,returnEnd:!0,contains:[od]}},ld,cd].concat(_d)}},{className:"meta",begin:" \\ [",relevance:0},{className:"meta",begin:"^#!",end:"lasso9 $ ",relevance:10}].concat(_d)}}return lasso_1=Ra,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function Ra(qa){const td=qa.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middl
] ` ,Nd={scope:"string",variants:[_d,ud,Ed,Ad]},Rd={scope:"number",variants:[{begin:" \\ b0[bB][01]+(?:_[01]+)* \\ b"},{begin:" \\ b0[oO][0-7]+(?:_[0-7]+)* \\ b"},{begin:" \\ b0[xX][ \\ da-fA-F]+(?:_[ \\ da-fA-F]+)* \\ b"},{begin:"(?: \\ b \\ d+(?:_ \\ d+)*( \\ .(?: \\ d+(?:_ \\ d+)*))?| \\ B \\ . \\ d+)(?:[eE][+-]? \\ d+)?"}],relevance:0},Bd=["false","null","true"],kd=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Od=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],Pd={keyword:kd,literal:(_f=>{const hf=[];return _f.forEach(gf=>{hf.push(gf),gf.toLowerCase()===gf?hf.push(gf.toUpperCase()):hf.push(gf.toLowerCase())}),hf})(Bd),built_in:Od},Fd=_f=>_f.map(hf=>hf.replace(/ \| \d + $ /,"")),Ud={variants:[{match:[/new/,ed.concat(Td,"+"),ed.concat("(?!",Fd(Od).join(" \\ b|")," \\ b)"),sd],scope:{1:"keyword",4:"title.class"}}]},Gd=ed.concat(rd," \\ b(?! \\ ()"),Qd={variants:[{match:[ed.concat(/::/,ed.lookahead(/(?!class \b )/)),Gd],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[sd,ed.concat(/::/,ed.lookahead(/(?!class \b )/)),Gd],scope:{1:"title.class",3:"variable.constant"}},{match:[sd,ed.concat("::",ed.lookahead(/(?!class \b )/))],scope:{1:"title.class"}},{match:[sd,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Vd={scope:"attr",match:ed.concat(rd,ed.lookahead(":"),ed.lookahead(/(?!::)/))},zd={relevance:0,begin:/ \( /,end:/ \) /,keywords:Pd,contains:[Vd,od,Qd,qa.C_BLOCK_COMMENT_MODE,Nd,Rd,Ud]},Xd={relevance:0,match:[/ \b /,ed.concat("(?!fn \\ b|function \\ b|",Fd(kd).join(" \\ b|"),"|",Fd(Od).join(" \\ b|")," \\ b)"),rd,ed.concat(Td,"*"),ed.lookahead(/(?= \( )/)],scope:{3:"title.function.invoke"},contains:[zd]};zd.contains.push(Xd);const df=[Vd,Qd,qa.C_BLOCK_COMMENT_MODE,Nd,Rd,Ud],mf={begin:ed.concat(/# \[ \s */,sd),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:Bd,keyword:["new","array"]},contains:[{begi
] * ; ` ,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=Ra,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function Ra(qa){const ed="[a-z][a-zA-Z0-9_]*",td={className:"string",begin:" \\ $ .{1}"},rd={className:"symbol",begin:"#"+qa.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[qa.COMMENT('"','"'),qa.APOS_STRING_MODE,{className:"type",begin:" \\ b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:ed+":",relevance:0},qa.C_NUMBER_MODE,rd,td,{begin:" \\ |[ ]*"+ed+"([ ]+"+ed+")*[ ]* \\ |",returnBegin:!0,end:/ \| /,illegal:/ \S /,contains:[{begin:"( \\ |[ ]*)?"+ed}]},{begin:"# \\ (",end:" \\ )",contains:[qa.APOS_STRING_MODE,td,qa.C_NUMBER_MODE,rd]}]}}return smalltalk_1=Ra,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function Ra(qa){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{ $ pattern:"[a-z_] \\ w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/ \/ \/ |>>/,contains:[{className:"literal",begin:/ \[ ( \| \| )? \] | \( \) /,relevance:0},qa.COMMENT(" \\ ( \\ *"," \\ * \\ )",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[ \\ w']*"},{className:"type",begin:" ` [ A - Z ] [ \ \ w ']*"},{className:"type",begin:"\\b[A-Z][\\w' ] * ",relevance:0},{begin:" [ a - z _ ] \ \ w * '[\\w' ] * "},qa.inherit(qa.APOS_STRING_MODE,{className:" string ",relevance:0}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:" number ",begin:" \ \ b ( 0 [ xX ] [ a - fA - F0 - 9_ ] + [ Lln ] ? | 0 [ oO ] [ 0 - 7_ ] + [ Lln ] ? | 0 [ bB ] [ 01_ ] + [ Lln ] ? | [ 0 - 9 ] [ 0 - 9_ ] * ( [ Lln ] | ( \ \ . [ 0 - 9_ ] * ) ? ( [ eE ] [ - + ] ? [ 0 - 9_ ] + ) ? ) ? ) ",relevance:0},{begin:/[-=]>/}]}}return sml_1=Ra,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function Ra(qa){const ed={className:" variable ",begin:/\b_+[a-zA-Z]\w*/},td={className:" title ",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},rd={className:" string ",variants:[{begin:'" ',end:' "',contains:[{begin:'" "',relevance:0}]},{begin:" '",end:"' ",contains:[{begin:" '' ",relevance:0}]}]},sd=[" break "," breakWith "," breakOut "," breakTo "," case "," catch "," continue "," continueWith "," default "," do "," else "," exit "," exitWith "," for "," forEach "," from "," if "," local "," private "," switch "," step "," then "," throw "," to "," try "," waitUntil "," while "," with "],od=[" blufor "," civilian "," configNull "," controlNull "," displayNull "," diaryRecordNull "," east "," endl "," false "," grpNull "," independent "," lineBreak "," locationNull "," nil "," objNull "," opfor "," pi "," resistance "," scriptNull "," sideAmbientLife "," sideEmpty "," sideEnemy "," sideFriendly "," sideLogic "," sideUnknown "," taskNull "," teamMemberNull "," true "," west "],ld=[" abs "," accTime "," acos "," action "," actionIDs "," actionKeys "," actionKeysEx "," actionKeysImages "," actionKeysNames "," actionKeysNamesArray "," actionName "," actionParams "," activateAddons "," activatedAddons "," activateKey "," activeTitleEffectParams "," add3DENConnection "," add3DENEventHandler "," add3DENLayer "," addAction "," addBackpack "," addBackpackCargo "," addBackpackCargoGlobal "," addBackpackGlobal "," addBinocularItem "," addCamShake "," addCuratorAddons "," addCuratorCameraArea "," addCuratorEditableObjects "," addCuratorEditingArea "," addCuratorPoints "," addEditorObject "," addEventHandler "," addForce "," addForceGeneratorRTD "," addGoggles "," addGroupIcon "," addHandgunItem "," addHeadgear "," addItem "," addItemCargo "," addItemCargoGlobal "," addItemPool "," addItemToBackpack "," addItemToUniform "," addItemToVest "," addLiveStats "," addMagazine "," addMagazineAmmoCargo "," addMagazineCargo "," addMagazineCargoGlobal "," addMagazineGlobal "," addMagazinePool "," addMagazines "," addMagazineTurret "," addMenu "," addMenuItem "," addMissionEventHandler "," addMPEventHandler "," addMusicEventHandler "," addonFiles "," addOwnedMine "," addPlayerSc
2024-08-27 22:31:52 +08:00
] * ? "'`},{begin:`" [ ^ \ r
2024-09-16 00:03:18 +08:00
"]*" ` }]},{className:"built_in",variants:[{begin:" \\ b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?= \\ ()"}]},qa.COMMENT("^[ ]* \\ *.* $ ",!1),qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE]}}return stata_1=Ra,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function Ra(qa){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{ $ pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.COMMENT("/ \\ * \\ *!"," \\ */"),qa.C_NUMBER_MODE,qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:" \\ d+",illegal:" \\ W"}]}]}}return step21_1=Ra,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const Ra=ud=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:ud.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4})) \b /},FUNCTION_DISPATCH:{className:"built_in",begin:/[ \w -]+(?= \( )/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/ \[ /,end:/ \] /,illegal:" $ ",contains:[ud.APOS_STRING_MODE,ud.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:ud.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),qa=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ed=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],td=[...qa,...ed],rd=["any
2024-08-27 22:31:52 +08:00
( multipart ) ? ` ,end: ` \ \ ]
2024-09-16 00:03:18 +08:00
` },{className:"string",begin:" \\ d{4}- \\ d{2}- \\ d{2}( \\ s+) \\ d{2}: \\ d{2}: \\ d{2}. \\ d+Z"},{className:"string",begin:"( \\ +|-) \\ d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?) \\ s+(test)?"},{begin:"^progress(:?)( \\ s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=Ra,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function Ra(Qd){return Qd?typeof Qd=="string"?Qd:Qd.source:null}function qa(Qd){return ed("(?=",Qd,")")}function ed(...Qd){return Qd.map(zd=>Ra(zd)).join("")}function td(Qd){const Vd=Qd[Qd.length-1];return typeof Vd=="object"&&Vd.constructor===Object?(Qd.splice(Qd.length-1,1),Vd):{}}function rd(...Qd){return"("+(td(Qd).capture?"":"?:")+Qd.map(Xd=>Ra(Xd)).join("|")+")"}const sd=Qd=>ed(/ \b /,Qd,/ \w $ /.test(Qd)?/ \b /:/ \B /),od=["Protocol","Type"].map(sd),ld=["init","self"].map(sd),cd=["Any","Self"],ud=["actor","any","associatedtype","async","await",/as \? /,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate \( set \) /,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init \? /,/init!/,"inout",/internal \( set \) /,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open \( set \) /,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private \( set \) /,"private","protocol",/public \( set \) /,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try \? /,/try!/,"try","typealias",/unowned \( safe \) /,/unowned \( unsafe \) /,"unowned","var","weak","where","while","willSet"],_d=["false","nil","true"],Ed=["assignment","associativity","higherThan","left","lowerThan","none","right"],Ad=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Td=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Nd=rd(/[/= \- +!*%<>&|^~?]/,/[ \u 00A1- \u 00A7]/,/[ \u 00A9 \u 00AB]/,/[ \u 00AC \u 00AE]/,/[ \u 00B0 \u 00B1]/,/[ \u 00B6 \u 00BB \u 00BF \u 00D7 \u 00F7]/,/[ \u 2016- \u 2017]/,/[ \u 2020- \u 2027]/,/[ \u 2030- \u 203E]/,/[ \u 2041- \u 2053]/,/[ \u 2055- \u 205E]/,/[ \u 2190- \u 23FF]/,/[ \u 2500- \u 2775]/,/[ \u 2794- \u 2BFF]/,/[ \u 2E00- \u 2E7F]/,/[ \u 3001- \u 3003]/,/[ \u 3008- \u 3020]/,/[ \u 3030]/),Rd=rd(Nd,/[ \u 0300- \u 036F]/,/[ \u 1DC0- \u 1DFF]/,/[ \u 20D0- \u 20FF]/,/[ \u FE00- \u FE0F]/,/[ \u FE20- \u FE2F]/),Bd=ed(Nd,Rd,"*"),kd=rd(/[a-zA-Z_]/,/[ \u 00A8 \u 00AA \u 00AD \u 00AF \u 00B2- \u 00B5 \u 00B7- \u 00BA]/,/[ \u 00BC- \u 00BE \u 00C0- \u 00D6 \u 00D8- \u 00F6 \u 00F8- \u 00FF]/,/[ \u 0100- \u 02FF \u 0370- \u 167F \u 1681- \u 180D \u 180F- \u 1DBF]/,/[ \u 1E00- \u 1FFF]/,/[ \u 200B- \u 200D \u 202A- \u 202E \u 203F- \u 2040 \u 2054 \u 2060- \u 206F]/,/[ \u 2070- \u 20CF \u 2100- \u 218F \u 2460- \u 24FF \u 2776- \u 2793]/,/[ \u 2C00- \u 2DFF \u 2E80- \u 2FFF]/,/[ \u 3004- \u 3007 \u 3021- \u 302F \u 3031- \u 303F \u 3040- \u D7FF]/,/[ \u F900- \u FD3D \u FD40- \u FDCF \u FDF0- \u FE1F \u FE30- \u FE44]/,/[ \u FE47- \u FEFE \u FF00- \u FFFD]/),Od=rd(kd,/ \d /,/[ \u 0300- \u 036F \u 1DC0- \u 1DFF \u 20D0- \u 20FF \u FE20- \u FE2F]/),Md=ed(kd,Od,"*"),Pd=ed(/[A-Z]/,Od,"*"),Fd=["attached","autoclosure",ed(/convention \( /,rd("swift","block","c"),/ \) /),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","N
` +g_),Xf&&arrayForEach([df,mf,_f],m_=>{g_=stringReplace(g_,m_," ")}),Pd&&qf?Pd.createHTML(g_):g_},qa.setConfig=function(){let Rh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};w_(Rh),hh=!0},qa.clearConfig=function(){e_=null,hh=!1},qa.isValidAttribute=function(Rh,bh,dm){e_||w_({});const cm=Lm(Rh),_m=Lm(bh);return fh(cm,_m,dm)},qa.addHook=function(Rh,bh){typeof bh=="function"&&(Xd[Rh]=Xd[Rh]||[],arrayPush(Xd[Rh],bh))},qa.removeHook=function(Rh){if(Xd[Rh])return arrayPop(Xd[Rh])},qa.removeHooks=function(Rh){Xd[Rh]&&(Xd[Rh]=[])},qa.removeAllHooks=function(){Xd={}},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var ed in qa)__defProp(Ra,ed,{get:qa[ed],enumerable:!0})},LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log $ 1={trace:__name((...Ra)=>{},"trace"),debug:__name((...Ra)=>{},"debug"),info:__name((...Ra)=>{},"info"),warn:__name((...Ra)=>{},"warn"),error:__name((...Ra)=>{},"error"),fatal:__name((...Ra)=>{},"fatal")},setLogLevel=__name(function(Ra="fatal"){let qa=LEVELS.fatal;typeof Ra=="string"?Ra.toLowerCase()in LEVELS&&(qa=LEVELS[Ra]):typeof Ra=="number"&&(qa=Ra),log $ 1.trace=()=>{},log $ 1.debug=()=>{},log $ 1.info=()=>{},log $ 1.warn=()=>{},log $ 1.error=()=>{},log $ 1.fatal=()=>{},qa<=LEVELS.fatal&&(log $ 1.fatal=console.error?console.error.bind(console,format $ 1("FATAL"),"color: orange"):console.log.bind(console," \x 1B[35m",format $ 1("FATAL"))),qa<=LEVELS.error&&(log $ 1.error=console.error?console.error.bind(console,format $ 1("ERROR"),"color: orange"):console.log.bind(console," \x 1B[31m",format $ 1("ERROR"))),qa<=LEVELS.warn&&(log $ 1.warn=console.warn?console.warn.bind(console,format $ 1("WARN"),"color: orange"):console.log.bind(console," \x 1B[33m",format $ 1("WARN"))),qa<=LEVELS.info&&(log $ 1.info=console.info?console.info.bind(console,format $ 1("INFO"),"color: lightblue"):console.log.bind(console," \x 1B[34m",format $ 1("INFO"))),qa<=LEVELS.debug&&(log $ 1.debug=console.debug?console.debug.bind(console,format $ 1("DEBUG"),"color: lightgreen"):console.log.bind(console," \x 1B[32m",format $ 1("DEBUG"))),qa<=LEVELS.trace&&(log $ 1.trace=console.debug?console.debug.bind(console,format $ 1("TRACE"),"color: lightgreen"):console.log.bind(console," \x 1B[32m",format $ 1("TRACE")))},"setLogLevel"),format $ 1=__name(Ra=> ` % c$ { dayjs2 ( ) . format ( "ss.SSS" ) } : $ { Ra } : ` ,"format"),frontMatterRegex=/^-{3} \s *[ \n \r ](.*?)[ \n \r ]-{3} \s *[ \n \r ]+/s,directiveRegex=/%{2}{ \s *(?:( \w +) \s *:|( \w +)) \s *(?:( \w +)|((?:(?!}%{2}).| \r ? \n )*))? \s *(?:}%{2})?/gi,anyCommentRegex=/ \s *%%.* \n /gm,Cy,UnknownDiagramError=(Cy=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(Cy,"UnknownDiagramError"),Cy),detectors={},detectType=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex, `
` );for(const[ed,{detector:td}]of Object.entries(detectors))if(td(Ra,qa))return ed;throw new UnknownDiagramError( ` No diagram type detected matching given configuration for text : $ { Ra } ` )},"detectType"),registerLazyLoadedDiagrams=__name((...Ra)=>{for(const{id:qa,detector:ed,loader:td}of Ra)addDetector(qa,ed,td)},"registerLazyLoadedDiagrams"),addDetector=__name((Ra,qa,ed)=>{detectors[Ra]&&log $ 1.warn( ` Detector with key $ { Ra } already exists . Overwriting . ` ),detectors[Ra]={detector:qa,loader:ed},log $ 1.debug( ` Detector with key $ { Ra } added$ { ed ? " with loader" : "" } ` )},"addDetector"),getDiagramLoader=__name(Ra=>detectors[Ra].loader,"getDiagramLoader"),assignWithDepth=__name((Ra,qa,{depth:ed=2,clobber:td=!1}={})=>{const rd={depth:ed,clobber:td};return Array.isArray(qa)&&!Array.isArray(Ra)?(qa.forEach(sd=>assignWithDepth(Ra,sd,rd)),Ra):Array.isArray(qa)&&Array.isArray(Ra)?(qa.forEach(sd=>{Ra.includes(sd)||Ra.push(sd)}),Ra):Ra===void 0||ed<=0?Ra!=null&&typeof Ra=="object"&&typeof qa=="object"?Object.assign(Ra,qa):qa:(qa!==void 0&&typeof Ra=="object"&&typeof qa=="object"&&Object.keys(qa).forEach(sd=>{typeof qa[sd]=="object"&&(Ra[sd]===void 0||typeof Ra[sd]=="object")?(Ra[sd]===void 0&&(Ra[sd]=Array.isArray(qa[sd])?[]:{}),Ra[sd]=assignWithDepth(Ra[sd],qa[sd],{depth:ed-1,clobber:td})):(td||typeof Ra[sd]!="object"&&typeof qa[sd]!="object")&&(Ra[sd]=qa[sd])}),Ra)},"assignWithDepth"),assignWithDepth_default=assignWithDepth,oldAttributeBackgroundColorOdd="#ffffff",oldAttributeBackgroundColorEven="#f2f2f2",mkBorder=__name((Ra,qa)=>qa?adjust(Ra,{s:-40,l:10}):adjust(Ra,{s:-40,l:-10}),"mkBorder"),Dy,Theme=(Dy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var ed,td,rd,sd,od,ld,cd,ud,_d,Ed,Ad;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||adjust(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||adjust(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mkBorder(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mkBorder(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||invert(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||invert(this.tertiaryColor),this.lineColor=this.lineColor||invert(this.background),this.arrowheadColor=this.arrowheadColor||invert(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?darken(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextCo
font - family : $ { ed . fontFamily } ;
font - size : $ { ed . fontSize } ;
fill : $ { ed . textColor }
2024-08-27 22:31:52 +08:00
}
/* Classes common for multiple diagrams */
& . error - icon {
2024-09-16 00:03:18 +08:00
fill : $ { ed . errorBkgColor } ;
2024-08-27 22:31:52 +08:00
}
& . error - text {
2024-09-16 00:03:18 +08:00
fill : $ { ed . errorTextColor } ;
stroke : $ { ed . errorTextColor } ;
2024-08-27 22:31:52 +08:00
}
& . edge - thickness - normal {
stroke - width : 1 px ;
}
& . edge - thickness - thick {
stroke - width : 3.5 px
}
& . edge - pattern - solid {
stroke - dasharray : 0 ;
}
& . edge - thickness - invisible {
stroke - width : 0 ;
fill : none ;
}
& . edge - pattern - dashed {
stroke - dasharray : 3 ;
}
. edge - pattern - dotted {
stroke - dasharray : 2 ;
}
& . marker {
2024-09-16 00:03:18 +08:00
fill : $ { ed . lineColor } ;
stroke : $ { ed . lineColor } ;
2024-08-27 22:31:52 +08:00
}
& . marker . cross {
2024-09-16 00:03:18 +08:00
stroke : $ { ed . lineColor } ;
2024-08-27 22:31:52 +08:00
}
& svg {
2024-09-16 00:03:18 +08:00
font - family : $ { ed . fontFamily } ;
font - size : $ { ed . fontSize } ;
2024-08-27 22:31:52 +08:00
}
& p {
margin : 0
}
2024-09-16 00:03:18 +08:00
$ { td }
2024-08-27 22:31:52 +08:00
2024-08-30 15:19:18 +08:00
$ { qa }
2024-09-04 13:02:35 +08:00
` },"getStyles"),addStylesForDiagram=__name((Ra,qa)=>{qa!==void 0&&(themes[Ra]=qa)},"addStylesForDiagram"),styles_default=getStyles $ 1,commonDb_exports={};__export(commonDb_exports,{clear:()=>clear $ 1,getAccDescription:()=>getAccDescription,getAccTitle:()=>getAccTitle,getDiagramTitle:()=>getDiagramTitle,setAccDescription:()=>setAccDescription,setAccTitle:()=>setAccTitle,setDiagramTitle:()=>setDiagramTitle});var accTitle="",diagramTitle="",accDescription="",sanitizeText2=__name(Ra=>sanitizeText(Ra,getConfig $ 1()),"sanitizeText"),clear $ 1=__name(()=>{accTitle="",accDescription="",diagramTitle=""},"clear"),setAccTitle=__name(Ra=>{accTitle=sanitizeText2(Ra).replace(/^ \s +/g,"")},"setAccTitle"),getAccTitle=__name(()=>accTitle,"getAccTitle"),setAccDescription=__name(Ra=>{accDescription=sanitizeText2(Ra).replace(/ \n \s +/g, `
2024-09-16 00:03:18 +08:00
` )},"setAccDescription"),getAccDescription=__name(()=>accDescription,"getAccDescription"),setDiagramTitle=__name(Ra=>{diagramTitle=sanitizeText2(Ra)},"setDiagramTitle"),getDiagramTitle=__name(()=>diagramTitle,"getDiagramTitle"),log2=log $ 1,setLogLevel2=setLogLevel,getConfig2=getConfig $ 1,setConfig2=setConfig,defaultConfig2=defaultConfig,sanitizeText3=__name(Ra=>sanitizeText(Ra,getConfig2()),"sanitizeText"),setupGraphViewbox2=setupGraphViewbox,getCommonDb=__name(()=>commonDb_exports,"getCommonDb"),diagrams={},registerDiagram=__name((Ra,qa,ed)=>{var td;diagrams[Ra]&&log2.warn( ` Diagram with id $ { Ra } already registered . Overwriting . ` ),diagrams[Ra]=qa,ed&&addDetector(Ra,ed),addStylesForDiagram(Ra,qa.styles),(td=qa.injectUtils)==null||td.call(qa,log2,setLogLevel2,getConfig2,sanitizeText3,setupGraphViewbox2,getCommonDb(),()=>{})},"registerDiagram"),getDiagram=__name(Ra=>{if(Ra in diagrams)return diagrams[Ra];throw new DiagramNotFoundError(Ra)},"getDiagram"),Py,DiagramNotFoundError=(Py=class extends Error{constructor(qa){super( ` Diagram $ { qa } not found . ` )}},__name(Py,"DiagramNotFoundError"),Py);const defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1}),defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)* $ /,stringToIcon=(Ra,qa,ed,td="")=>{const rd=Ra.split(":");if(Ra.slice(0,1)==="@"){if(rd.length<2||rd.length>3)return null;td=rd.shift().slice(1)}if(rd.length>3||!rd.length)return null;if(rd.length>1){const ld=rd.pop(),cd=rd.pop(),ud={provider:rd.length>0?rd[0]:td,prefix:cd,name:ld};return validateIconName(ud)?ud:null}const sd=rd[0],od=sd.split("-");if(od.length>1){const ld={provider:td,prefix:od.shift(),name:od.join("-")};return validateIconName(ld)?ld:null}if(ed&&td===""){const ld={provider:td,prefix:"",name:sd};return validateIconName(ld,ed)?ld:null}return null},validateIconName=(Ra,qa)=>Ra?!!((Ra.provider===""||Ra.provider.match(matchIconName))&&(qa&&Ra.prefix===""||Ra.prefix.match(matchIconName))&&Ra.name.match(matchIconName)):!1;function mergeIconTransformations(Ra,qa){const ed={};!Ra.hFlip!=!qa.hFlip&&(ed.hFlip=!0),!Ra.vFlip!=!qa.vFlip&&(ed.vFlip=!0);const td=((Ra.rotate||0)+(qa.rotate||0))%4;return td&&(ed.rotate=td),ed}function mergeIconData(Ra,qa){const ed=mergeIconTransformations(Ra,qa);for(const td in defaultExtendedIconProps)td in defaultIconTransformations?td in Ra&&!(td in ed)&&(ed[td]=defaultIconTransformations[td]):td in qa?ed[td]=qa[td]:td in Ra&&(ed[td]=Ra[td]);return ed}function getIconsTree(Ra,qa){const ed=Ra.icons,td=Ra.aliases||Object.create(null),rd=Object.create(null);function sd(od){if(ed[od])return rd[od]=[];if(!(od in rd)){rd[od]=null;const ld=td[od]&&td[od].parent,cd=ld&&sd(ld);cd&&(rd[od]=[ld].concat(cd))}return rd[od]}return(qa||Object.keys(ed).concat(Object.keys(td))).forEach(sd),rd}function internalGetIconData(Ra,qa,ed){const td=Ra.icons,rd=Ra.aliases||Object.create(null);let sd={};function od(ld){sd=mergeIconData(td[ld]||rd[ld],sd)}return od(qa),ed.forEach(od),mergeIconData(Ra,sd)}function getIconData(Ra,qa){if(Ra.icons[qa])return internalGetIconData(Ra,qa,[]);const ed=getIconsTree(Ra,[qa])[qa];return ed?internalGetIconData(Ra,qa,ed):null}const unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]* $ /g;function calculateSize(Ra,qa,ed){if(qa===1)return Ra;if(ed=ed||100,typeof Ra=="number")return Math.ceil(Ra*qa*ed)/ed;if(typeof Ra!="string")return Ra;const td=Ra.split(unitsSplit);if(td===null||!td.length)return Ra;const rd=[];let sd=td.shift(),od=unitsTest.test(sd);for(;;){if(od){const ld=parseFloat(sd);isNaN(ld)?rd.push(sd):rd.push(Math.ceil(ld*qa*ed)/ed)}else rd.push(sd);if(sd=td.shift(),sd===void 0)return rd.join("");od=!od}}function splitSVGDefs(Ra,qa="defs"){let ed=
` ,"ig");Ra=Ra.trim().replace(rd,"").replace(/'/gm,'"'),log $ 1.debug( ` Detecting diagram directive$ { qa !== null ? " type:" + qa : "" } based on the text : $ { Ra } ` );let sd;const od=[];for(;(sd=directiveRegex.exec(Ra))!==null;)if(sd.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,sd&&!qa||qa&&((ed=sd[1])!=null&&ed.match(qa))||qa&&((td=sd[2])!=null&&td.match(qa))){const ld=sd[1]?sd[1]:sd[2],cd=sd[3]?sd[3].trim():sd[4]?JSON.parse(sd[4].trim()):null;od.push({type:ld,args:cd})}return od.length===0?{type:Ra,args:null}:od.length===1?od[0]:od}catch(rd){return log $ 1.error( ` ERROR : $ { rd . message } - Unable to parse directive type : '${qa}' based on the text : '${Ra}' ` ),{type:void 0,args:null}}},"detectDirective"),removeDirectives=__name(function(Ra){return Ra.replace(directiveRegex,"")},"removeDirectives"),isSubstringInArray=__name(function(Ra,qa){for(const[ed,td]of qa.entries())if(td.match(Ra))return ed;return-1},"isSubstringInArray");function interpolateToCurve(Ra,qa){if(!Ra)return qa;const ed= ` curve$ { Ra . charAt ( 0 ) . toUpperCase ( ) + Ra . slice ( 1 ) } ` ;return d3CurveTypes[ed]??qa}__name(interpolateToCurve,"interpolateToCurve");function formatUrl(Ra,qa){const ed=Ra.trim();if(ed)return qa.securityLevel!=="loose"?sanitizeUrl_1(ed):ed}__name(formatUrl,"formatUrl");var runFunc=__name((Ra,...qa)=>{const ed=Ra.split("."),td=ed.length-1,rd=ed[td];let sd=window;for(let od=0;od<td;od++)if(sd=sd[ed[od]],!sd){log $ 1.error( ` Function name : $ { Ra } not found in window ` );return}sd[rd](...qa)},"runFunc");function distance(Ra,qa){return!Ra||!qa?0:Math.sqrt(Math.pow(qa.x-Ra.x,2)+Math.pow(qa.y-Ra.y,2))}__name(distance,"distance");function traverseEdge(Ra){let qa,ed=0;Ra.forEach(rd=>{ed+=distance(rd,qa),qa=rd});const td=ed/2;return calculatePoint(Ra,td)}__name(traverseEdge,"traverseEdge");function calcLabelPosition(Ra){return Ra.length===1?Ra[0]:traverseEdge(Ra)}__name(calcLabelPosition,"calcLabelPosition");var roundNumber=__name((Ra,qa=2)=>{const ed=Math.pow(10,qa);return Math.round(Ra*ed)/ed},"roundNumber"),calculatePoint=__name((Ra,qa)=>{let ed,td=qa;for(const rd of Ra){if(ed){const sd=distance(rd,ed);if(sd<td)td-=sd;else{const od=td/sd;if(od<=0)return ed;if(od>=1)return{x:rd.x,y:rd.y};if(od>0&&od<1)return{x:roundNumber((1-od)*ed.x+od*rd.x,5),y:roundNumber((1-od)*ed.y+od*rd.y,5)}}}ed=rd}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),calcCardinalityPosition=__name((Ra,qa,ed)=>{log $ 1.info( ` our points $ { JSON . stringify ( qa ) } ` ),qa[0]!==ed&&(qa=qa.reverse());const rd=calculatePoint(qa,25),sd=Ra?10:5,od=Math.atan2(qa[0].y-rd.y,qa[0].x-rd.x),ld={x:0,y:0};return ld.x=Math.sin(od)*sd+(qa[0].x+rd.x)/2,ld.y=-Math.cos(od)*sd+(qa[0].y+rd.y)/2,ld},"calcCardinalityPosition");function calcTerminalLabelPosition(Ra,qa,ed){const td=structuredClone(ed);log $ 1.info("our points",td),qa!=="start_left"&&qa!=="start_right"&&td.reverse();const rd=25+Ra,sd=calculatePoint(td,rd),od=10+Ra*.5,ld=Math.atan2(td[0].y-sd.y,td[0].x-sd.x),cd={x:0,y:0};return qa==="start_left"?(cd.x=Math.sin(ld+Math.PI)*od+(td[0].x+sd.x)/2,cd.y=-Math.cos(ld+Math.PI)*od+(td[0].y+sd.y)/2):qa==="end_right"?(cd.x=Math.sin(ld-Math.PI)*od+(td[0].x+sd.x)/2-5,cd.y=-Math.cos(ld-Math.PI)*od+(td[0].y+sd.y)/2-5):qa==="end_left"?(cd.x=Math.sin(ld)*od+(td[0].x+sd.x)/2-5,cd.y=-Math.cos(ld)*od+(td[0].y+sd.y)/2-5):(cd.x=Math.sin(ld)*od+(td[0].x+sd.x)/2,cd.y=-Math.cos(ld)*od+(td[0].y+sd.y)/2),cd}__name(calcTerminalLabelPosition,"calcTerminalLabelPosition");function getStylesFromArray(Ra){let qa="",ed="";for(const td of Ra)td!==void 0&&(td.startsWith("color:")||td.startsWith("text-align:")?ed=ed+td+";":qa=qa+td+";");return{style:qa,labelStyle:ed}}__name(getStylesFromArray,"getStylesFromArray");var cnt=0,generateId=__name(()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt),"generateId");function makeRandomHex(Ra){let qa="";const ed="0123456789abcdef",td=ed.length;for(let rd=0;rd<Ra;rd++)qa+=ed.charAt(Math.floor(Math.random()*td));return qa}__name(makeRandomHex,"makeRandomHex");var random=__name(Ra=>makeRandomHex(Ra.length),"random"),getTextObj=__name(function(){return{x:0,y:0,fill:vo
` ).map(rd=>{const sd=rd.match(/^ \s +/);if(sd===null)return rd;const[od]=sd;return od.length>=td.length?rd.slice(td.length):rd}).join( `
` )}class _Tokenizer{constructor(qa){n_(this,"options");n_(this,"rules");n_(this,"lexer");this.options=qa||_defaults}space(qa){const ed=this.rules.block.newline.exec(qa);if(ed&&ed[0].length>0)return{type:"space",raw:ed[0]}}code(qa){const ed=this.rules.block.code.exec(qa);if(ed){const td=ed[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ed[0],codeBlockStyle:"indented",text:this.options.pedantic?td:rtrim(td, `
` )}}}fences(qa){const ed=this.rules.block.fences.exec(qa);if(ed){const td=ed[0],rd=indentCodeCompensation(td,ed[3]||"");return{type:"code",raw:td,lang:ed[2]?ed[2].trim().replace(this.rules.inline.anyPunctuation," $ 1"):ed[2],text:rd}}}heading(qa){const ed=this.rules.block.heading.exec(qa);if(ed){let td=ed[2].trim();if(/# $ /.test(td)){const rd=rtrim(td,"#");(this.options.pedantic||!rd||/ $ /.test(rd))&&(td=rd.trim())}return{type:"heading",raw:ed[0],depth:ed[1].length,text:td,tokens:this.lexer.inline(td)}}}hr(qa){const ed=this.rules.block.hr.exec(qa);if(ed)return{type:"hr",raw:rtrim(ed[0], `
` )}}blockquote(qa){const ed=this.rules.block.blockquote.exec(qa);if(ed){let td=rtrim(ed[0], `
2024-08-27 22:31:52 +08:00
` ).split( `
2024-09-16 00:03:18 +08:00
` ),rd="",sd="";const od=[];for(;td.length>0;){let ld=!1;const cd=[];let ud;for(ud=0;ud<td.length;ud++)if(/^ {0,3}>/.test(td[ud]))cd.push(td[ud]),ld=!0;else if(!ld)cd.push(td[ud]);else break;td=td.slice(ud);const _d=cd.join( `
` ),Ed=_d.replace(/ \n {0,3}((?:=+|-+) *)(?= \n | $ )/g, `
$1 ` ).replace(/^ {0,3}>[ \t ]?/gm,"");rd=rd? ` $ { rd }
$ { _d } ` :_d,sd=sd? ` $ { sd }
$ { Ed } ` :Ed;const Ad=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(Ed,od,!0),this.lexer.state.top=Ad,td.length===0)break;const Td=od[od.length-1];if((Td==null?void 0:Td.type)==="code")break;if((Td==null?void 0:Td.type)==="blockquote"){const Nd=Td,Rd=Nd.raw+ `
` +td.join( `
` ),Bd=this.blockquote(Rd);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Nd.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Nd.text.length)+Bd.text;break}else if((Td==null?void 0:Td.type)==="list"){const Nd=Td,Rd=Nd.raw+ `
` +td.join( `
` ),Bd=this.list(Rd);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Td.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Nd.raw.length)+Bd.raw,td=Rd.substring(od[od.length-1].raw.length).split( `
` );continue}}return{type:"blockquote",raw:rd,tokens:od,text:sd}}}list(qa){let ed=this.rules.block.list.exec(qa);if(ed){let td=ed[1].trim();const rd=td.length>1,sd={type:"list",raw:"",ordered:rd,start:rd?+td.slice(0,-1):"",loose:!1,items:[]};td=rd? ` \ \ d { 1 , 9 } \ \ $ { td . slice ( - 1 ) } ` : ` \ \ $ { td } ` ,this.options.pedantic&&(td=rd?td:"[*+-]");const od=new RegExp( ` ^ ( { 0 , 3 } $ { td } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );let ld=!1;for(;qa;){let cd=!1,ud="",_d="";if(!(ed=od.exec(qa))||this.rules.block.hr.test(qa))break;ud=ed[0],qa=qa.substring(ud.length);let Ed=ed[2].split( `
` ,1)[0].replace(/^ \t +/,kd=>" ".repeat(3*kd.length)),Ad=qa.split( `
` ,1)[0],Td=!Ed.trim(),Nd=0;if(this.options.pedantic?(Nd=2,_d=Ed.trimStart()):Td?Nd=ed[1].length+1:(Nd=ed[2].search(/[^ ]/),Nd=Nd>4?1:Nd,_d=Ed.slice(Nd),Nd+=ed[1].length),Td&&/^ * $ /.test(Ad)&&(ud+=Ad+ `
` ,qa=qa.substring(Ad.length+1),cd=!0),!cd){const kd=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Nd - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),Od=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Nd - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),Md=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Nd - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , Pd = new RegExp ( ` ^ {0, ${ Math . min ( 3 , Nd - 1 ) } }# ` ) ; for ( ; qa ; ) { const Fd = qa . split ( `
` ,1)[0];if(Ad=Fd,this.options.pedantic&&(Ad=Ad.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Md.test(Ad)||Pd.test(Ad)||kd.test(Ad)||Od.test(qa))break;if(Ad.search(/[^ ]/)>=Nd||!Ad.trim())_d+= `
` +Ad.slice(Nd);else{if(Td||Ed.search(/[^ ]/)>=4||Md.test(Ed)||Pd.test(Ed)||Od.test(Ed))break;_d+= `
` +Ad}!Td&&!Ad.trim()&&(Td=!0),ud+=Fd+ `
` ,qa=qa.substring(Fd.length+1),Ed=Ad.slice(Nd)}}sd.loose||(ld?sd.loose=!0:/ \n * \n * $ /.test(ud)&&(ld=!0));let Rd=null,Bd;this.options.gfm&&(Rd=/^ \[ [ xX] \] /.exec(_d),Rd&&(Bd=Rd[0]!=="[ ] ",_d=_d.replace(/^ \[ [ xX] \] +/,""))),sd.items.push({type:"list_item",raw:ud,task:!!Rd,checked:Bd,loose:!1,text:_d,tokens:[]}),sd.raw+=ud}sd.items[sd.items.length-1].raw=sd.items[sd.items.length-1].raw.trimEnd(),sd.items[sd.items.length-1].text=sd.items[sd.items.length-1].text.trimEnd(),sd.raw=sd.raw.trimEnd();for(let cd=0;cd<sd.items.length;cd++)if(this.lexer.state.top=!1,sd.items[cd].tokens=this.lexer.blockTokens(sd.items[cd].text,[]),!sd.loose){const ud=sd.items[cd].tokens.filter(Ed=>Ed.type==="space"),_d=ud.length>0&&ud.some(Ed=>/ \n .* \n /.test(Ed.raw));sd.loose=_d}if(sd.loose)for(let cd=0;cd<sd.items.length;cd++)sd.items[cd].loose=!0;return sd}}html(qa){const ed=this.rules.block.html.exec(qa);if(ed)return{type:"html",block:!0,raw:ed[0],pre:ed[1]==="pre"||ed[1]==="script"||ed[1]==="style",text:ed[0]}}def(qa){const ed=this.rules.block.def.exec(qa);if(ed){const td=ed[1].toLowerCase().replace(/ \s +/g," "),rd=ed[2]?ed[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline.anyPunctuation," $ 1"):"",sd=ed[3]?ed[3].substring(1,ed[3].length-1).replace(this.rules.inline.anyPunctuation," $ 1"):ed[3];return{type:"def",tag:td,raw:ed[0],href:rd,title:sd}}}table(qa){const ed=this.rules.block.table.exec(qa);if(!ed||!/[:|]/.test(ed[2]))return;const td=splitCells(ed[1]),rd=ed[2].replace(/^ \| | \| * $ /g,"").split("|"),sd=ed[3]&&ed[3].trim()?ed[3].replace(/ \n [ \t ]* $ /,"").split( `
` ):[],od={type:"table",raw:ed[0],header:[],align:[],rows:[]};if(td.length===rd.length){for(const ld of rd)/^ *-+: * $ /.test(ld)?od.align.push("right"):/^ *:-+: * $ /.test(ld)?od.align.push("center"):/^ *:-+ * $ /.test(ld)?od.align.push("left"):od.align.push(null);for(let ld=0;ld<td.length;ld++)od.header.push({text:td[ld],tokens:this.lexer.inline(td[ld]),header:!0,align:od.align[ld]});for(const ld of sd)od.rows.push(splitCells(ld,od.header.length).map((cd,ud)=>({text:cd,tokens:this.lexer.inline(cd),header:!1,align:od.align[ud]})));return od}}lheading(qa){const ed=this.rules.block.lheading.exec(qa);if(ed)return{type:"heading",raw:ed[0],depth:ed[2].charAt(0)==="="?1:2,text:ed[1],tokens:this.lexer.inline(ed[1])}}paragraph(qa){const ed=this.rules.block.paragraph.exec(qa);if(ed){const td=ed[1].charAt(ed[1].length-1)=== `
` ?ed[1].slice(0,-1):ed[1];return{type:"paragraph",raw:ed[0],text:td,tokens:this.lexer.inline(td)}}}text(qa){const ed=this.rules.block.text.exec(qa);if(ed)return{type:"text",raw:ed[0],text:ed[0],tokens:this.lexer.inline(ed[0])}}escape(qa){const ed=this.rules.inline.escape.exec(qa);if(ed)return{type:"escape",raw:ed[0],text:escape $ 1 $ 1(ed[1])}}tag(qa){const ed=this.rules.inline.tag.exec(qa);if(ed)return!this.lexer.state.inLink&&/^<a /i.test(ed[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(ed[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(ed[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(ed[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:ed[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:ed[0]}}link(qa){const ed=this.rules.inline.link.exec(qa);if(ed){const td=ed[2].trim();if(!this.options.pedantic&&/^</.test(td)){if(!/> $ /.test(td))return;const od=rtrim(td.slice(0,-1)," \\ ");if((td.length-od.length)%2===0)return}else{const od=findClosingBracket(ed[2],"()");if(od>-1){const cd=(ed[0].indexOf("!")===0?5:4)+ed[1].length+od;ed[2]=ed[2].substring(0,od),ed[0]=ed[0].substring(0,cd).trim(),ed[3]=""}}let rd=ed[2],sd="";if(this.options.pedantic){const od=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(rd);od&&(rd=od[1],sd=od[3])}else sd=ed[3]?ed[3].slice(1,-1):"";return rd=rd.trim(),/^</.test(rd)&&(this.options.pedantic&&!/> $ /.test(td)?rd=rd.slice(1):rd=rd.slice(1,-1)),outputLink(ed,{href:rd&&rd.replace(this.rules.inline.anyPunctuation," $ 1"),title:sd&&sd.replace(this.rules.inline.anyPunctuation," $ 1")},ed[0],this.lexer)}}reflink(qa,ed){let td;if((td=this.rules.inline.reflink.exec(qa))||(td=this.rules.inline.nolink.exec(qa))){const rd=(td[2]||td[1]).replace(/ \s +/g," "),sd=ed[rd.toLowerCase()];if(!sd){const od=td[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink(td,sd,td[0],this.lexer)}}emStrong(qa,ed,td=""){let rd=this.rules.inline.emStrongLDelim.exec(qa);if(!rd||rd[3]&&td.match(/[ \p {L} \p {N}]/u))return;if(!(rd[1]||rd[2]||"")||!td||this.rules.inline.punctuation.exec(td)){const od=[...rd[0]].length-1;let ld,cd,ud=od,_d=0;const Ed=rd[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(Ed.lastIndex=0,ed=ed.slice(-1*qa.length+od);(rd=Ed.exec(ed))!=null;){if(ld=rd[1]||rd[2]||rd[3]||rd[4]||rd[5]||rd[6],!ld)continue;if(cd=[...ld].length,rd[3]||rd[4]){ud+=cd;continue}else if((rd[5]||rd[6])&&od%3&&!((od+cd)%3)){_d+=cd;continue}if(ud-=cd,ud>0)continue;cd=Math.min(cd,cd+ud+_d);const Ad=[...rd[0]][0].length,Td=qa.slice(0,od+rd.index+Ad+cd);if(Math.min(od,cd)%2){const Rd=Td.slice(1,-1);return{type:"em",raw:Td,text:Rd,tokens:this.lexer.inlineTokens(Rd)}}const Nd=Td.slice(2,-2);return{type:"strong",raw:Td,text:Nd,tokens:this.lexer.inlineTokens(Nd)}}}}codespan(qa){const ed=this.rules.inline.code.exec(qa);if(ed){let td=ed[2].replace(/ \n /g," ");const rd=/[^ ]/.test(td),sd=/^ /.test(td)&&/ $ /.test(td);return rd&&sd&&(td=td.substring(1,td.length-1)),td=escape $ 1 $ 1(td,!0),{type:"codespan",raw:ed[0],text:td}}}br(qa){const ed=this.rules.inline.br.exec(qa);if(ed)return{type:"br",raw:ed[0]}}del(qa){const ed=this.rules.inline.del.exec(qa);if(ed)return{type:"del",raw:ed[0],text:ed[2],tokens:this.lexer.inlineTokens(ed[2])}}autolink(qa){const ed=this.rules.inline.autolink.exec(qa);if(ed){let td,rd;return ed[2]==="@"?(td=escape $ 1 $ 1(ed[1]),rd="mailto:"+td):(td=escape $ 1 $ 1(ed[1]),rd=td),{type:"link",raw:ed[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}url(qa){var td;let ed;if(ed=this.rules.inline.url.exec(qa)){let rd,sd;if(ed[2]==="@")rd=escape $ 1 $ 1(ed[0]),sd="mailto:"+rd;else{let od;do od=ed[0],ed[0]=((td=this.rules.inline._backpedal.exec(ed[0]))==null?void 0:td[0])??"";while(od!==ed[0]);rd=escape $ 1 $ 1(ed[0]),ed[1]==="www."?sd="http://"+ed[0]:sd=ed[0]}return{type:"link",raw:ed[0],text:rd,href:sd,tokens:[{type:"text",raw:rd,text:rd}]}}}inlineText(qa){const ed=this.rules.inline.text.exec(qa);if(ed){let td;return this.lexer.state.inRawBlock?td=e
] ` ).replace("lheading",lheading).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape $ 2=/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , inlineCode = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br$3 = /^( {2,}|\\)\n(?!\s*$)/ , inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , _punctuation = "\\p{P}\\p{S}" , punctuation = edit ( /^((?![*_])[\spunctuation])/ , "u" ) . replace ( /punctuation/g , _punctuation ) . getRegex ( ) , blockSkip = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g , emStrongLDelim = edit ( /^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/ , "u" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , emStrongRDelimAst = edit ( "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])" , "gu" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , emStrongRDelimUnd = edit ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])" , "gu" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , anyPunctuation = edit ( /\\([punct])/ , "gu" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , autolink = edit ( /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ ) . replace ( "scheme" , /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ) . replace ( "email" , /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ) . getRegex ( ) , _inlineComment = edit ( _comment ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) , tag = edit ( "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" ) . replace ( "comment" , _inlineComment ) . replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ) . getRegex ( ) , _inlineLabel = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ , link = edit ( /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ ) . replace ( "label" , _inlineLabel ) . replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ) . replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ) . getRegex ( ) , reflink = edit ( /^!?\[(label)\]\[(ref)\]/ ) . replace ( "label" , _inlineLabel ) . replace ( "ref" , _blockLabel ) . getRegex ( ) , nolink = edit ( /^!?\[(ref)\](?:\[\])?/ ) . replace ( "ref" , _blockLabel ) . getRegex ( ) , reflinkSearch = edit ( "reflink|nolink(?!\\()" , "g" ) . replace ( "reflink" , reflink ) . replace ( "nolink" , nolink ) . getRegex ( ) , inlineNormal = { _backpedal : noopTest , anyPunctuation , autolink , blockSkip , br : br$3 , code : inlineCode , del : noopTest , emStrongLDelim , emStrongRDelimAst , emStrongRDelimUnd , escape : escape$2 , link , nolink , punctuation , reflink , reflinkSearch , tag , text : inlineText , url : noopTest } , inlinePedantic = { ... inlineNormal , link : edit ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , _inlineLabel ) . getRegex ( ) , reflink : edit ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , _inlineLabel ) . getRegex ( ) } , inlineGfm = { ... inlineNormal , escape : edit ( escape$2 ) . replace ( "])" , "~|])" ) . getRegex ( ) , url : edit ( /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ , "i" ) . replace ( "email" , /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ ) . getRegex ( ) , _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/ , text : /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ } , inlineBreaks = { ... inlineGfm , br : edit ( br$3 ) . replace ( "{2,}" , "*" ) . getRegex ( ) , text : edit ( inlineGfm . text ) . replace ( "\\b_" , "\\b_| {2,}\\n" ) . replace ( /\{2,\}/g , "*" ) . getRegex ( ) } , block$2 = { normal : blockNormal , gfm : blockGfm , pedantic : blockPedantic } , inline$1 = { normal : inlineNormal , gfm : inlineGfm , breaks : inlineBreaks , pedantic : inlinePedantic } ; class _Lexer { constructor (
` ),this.blockTokens(qa,this.tokens);for(let ed=0;ed<this.inlineQueue.length;ed++){const td=this.inlineQueue[ed];this.inlineTokens(td.src,td.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,ed=[],td=!1){this.options.pedantic?qa=qa.replace(/ \t /g," ").replace(/^ + $ /gm,""):qa=qa.replace(/^( *)( \t +)/gm,(ld,cd,ud)=>cd+" ".repeat(ud.length));let rd,sd,od;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(ld=>(rd=ld.call({lexer:this},qa,ed))?(qa=qa.substring(rd.raw.length),ed.push(rd),!0):!1))){if(rd=this.tokenizer.space(qa)){qa=qa.substring(rd.raw.length),rd.raw.length===1&&ed.length>0?ed[ed.length-1].raw+= `
` :ed.push(rd);continue}if(rd=this.tokenizer.code(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.text,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(rd=this.tokenizer.fences(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.heading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.hr(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.blockquote(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.list(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.html(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.def(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.raw,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):this.tokens.links[rd.tag]||(this.tokens.links[rd.tag]={href:rd.href,title:rd.title});continue}if(rd=this.tokenizer.table(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.lheading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(od=qa,this.options.extensions&&this.options.extensions.startBlock){let ld=1/0;const cd=qa.slice(1);let ud;this.options.extensions.startBlock.forEach(_d=>{ud=_d.call({lexer:this},cd),typeof ud=="number"&&ud>=0&&(ld=Math.min(ld,ud))}),ld<1/0&&ld>=0&&(od=qa.substring(0,ld+1))}if(this.state.top&&(rd=this.tokenizer.paragraph(od))){sd=ed[ed.length-1],td&&(sd==null?void 0:sd.type)==="paragraph"?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd),td=od.length!==qa.length,qa=qa.substring(rd.raw.length);continue}if(rd=this.tokenizer.text(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&sd.type==="text"?(sd.raw+= `
` +rd.raw,sd.text+= `
` +rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(qa){const ld="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ld);break}else throw new Error(ld)}}return this.state.top=!0,ed}inline(qa,ed=[]){return this.inlineQueue.push({src:qa,tokens:ed}),ed}inlineTokens(qa,ed=[]){let td,rd,sd,od=qa,ld,cd,ud;if(this.tokens.links){const _d=Object.keys(this.tokens.links);if(_d.length>0)for(;(ld=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)_d.includes(ld[0].slice(ld[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ld=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ld=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,ld.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(cd||(ud=""),cd=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(_d=>(td=_d.call({lexer:this},qa,ed))?(qa=qa.substring(td.raw.length),ed.push(td),!0):!1))){if(td=this.tokenizer.escape(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.tag(qa)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.link(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.emStrong(qa,od,ud)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.codespan(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.br(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.del(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.autolink(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(!this.state.inLink&&(td=this.tokenizer.url(qa))){qa=qa.substring(td.raw.length),ed.push(td);continue}if(sd=qa,this.options.extensions&&this.options.extensions.startInline){let _d=1/0;const Ed=qa.slice(1);let Ad;this.options.extensions.startInline.forEach(Td=>{Ad=Td.call({lexer:this},Ed),typeof Ad=="number"&&Ad>=0&&(_d=Math.min(_d,Ad))}),_d<1/0&&_d>=0&&(sd=qa.substring(0,_d+1))}if(td=this.tokenizer.inlineText(sd)){qa=qa.substring(td.raw.length),td.raw.slice(-1)!=="_"&&(ud=td.raw.slice(-1)),cd=!0,rd=ed[ed.length-1],rd&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(qa){const _d="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(_d);break}else throw new Error(_d)}}return ed}}class _Renderer{constructor(qa){n_(this,"options");n_(this,"parser");this.options=qa||_defaults}space(qa){return""}code({text:qa,lang:ed,escaped:td}){var od;const rd=(od=(ed||"").match(/^ \S */))==null?void 0:od[0],sd=qa.replace(/ \n $ /,"")+ `
` ;return rd?'<pre><code class="language-'+escape $ 1 $ 1(rd)+'">'+(td?sd:escape $ 1 $ 1(sd,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(td?sd:escape $ 1 $ 1(sd,!0))+ ` < / c o d e > < / p r e >
2024-08-30 15:19:18 +08:00
` }blockquote({tokens:qa}){return ` < blockquote >
$ { this . parser . parse ( qa ) } < / b l o c k q u o t e >
2024-09-16 00:03:18 +08:00
` }html({text:qa}){return qa}heading({tokens:qa,depth:ed}){return ` < h$ { ed } > $ { this . parser . parseInline ( qa ) } < / h $ { e d } >
2024-08-30 15:19:18 +08:00
` }hr(qa){return ` < hr >
2024-09-16 00:03:18 +08:00
` }list(qa){const ed=qa.ordered,td=qa.start;let rd="";for(let ld=0;ld<qa.items.length;ld++){const cd=qa.items[ld];rd+=this.listitem(cd)}const sd=ed?"ol":"ul",od=ed&&td!==1?' start="'+td+'"':"";return"<"+sd+od+ ` >
` +rd+"</"+sd+ ` >
` }listitem(qa){let ed="";if(qa.task){const td=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=td+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=td+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:td+" ",text:td+" "}):ed+=td+" "}return ed+=this.parser.parse(qa.tokens,!!qa.loose), ` < li > $ { ed } < / l i >
2024-08-30 15:19:18 +08:00
` }checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return ` < p > $ { this . parser . parseInline ( qa ) } < / p >
2024-09-16 00:03:18 +08:00
` }table(qa){let ed="",td="";for(let sd=0;sd<qa.header.length;sd++)td+=this.tablecell(qa.header[sd]);ed+=this.tablerow({text:td});let rd="";for(let sd=0;sd<qa.rows.length;sd++){const od=qa.rows[sd];td="";for(let ld=0;ld<od.length;ld++)td+=this.tablecell(od[ld]);rd+=this.tablerow({text:td})}return rd&&(rd= ` < tbody > $ { rd } < / t b o d y > ` ) , ` < t a b l e >
2024-08-27 22:31:52 +08:00
< thead >
2024-09-16 00:03:18 +08:00
` +ed+ ` < / t h e a d >
` +rd+ ` < / t a b l e >
2024-08-30 15:19:18 +08:00
` }tablerow({text:qa}){return ` < tr >
$ { qa } < / t r >
2024-09-16 00:03:18 +08:00
` }tablecell(qa){const ed=this.parser.parseInline(qa.tokens),td=qa.header?"th":"td";return(qa.align? ` < $ { td } align = "${qa.align}" > ` : ` < $ { td } > ` )+ed+ ` < / $ { t d } >
` }strong({tokens:qa}){return ` < strong > $ { this . parser . parseInline ( qa ) } < / s t r o n g > ` } e m ( { t o k e n s : q a } ) { r e t u r n ` < e m > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / e m > ` } c o d e s p a n ( { t e x t : q a } ) { r e t u r n ` < c o d e > $ { q a } < / c o d e > ` } b r ( q a ) { r e t u r n " < b r > " } d e l ( { t o k e n s : q a } ) { r e t u r n ` < d e l > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / d e l > ` } l i n k ( { h r e f : q a , t i t l e : e d , t o k e n s : t d } ) { c o n s t r d = t h i s . p a r s e r . p a r s e I n l i n e ( t d ) , s d = c l e a n U r l ( q a ) ; i f ( s d = = = n u l l ) r e t u r n r d ; q a = s d ; l e t o d = ' < a h r e f = " ' + q a + ' " ' ; r e t u r n e d & & ( o d + = ' t i t l e = " ' + e d + ' " ' ) , o d + = " > " + r d + " < / a > " , o d } i m a g e ( { h r e f : q a , t i t l e : e d , t e x t : t d } ) { c o n s t r d = c l e a n U r l ( q a ) ; i f ( r d = = = n u l l ) r e t u r n t d ; q a = r d ; l e t s d = ` < i m g s r c = " $ { q a } " a l t = " $ { t d } " ` ; r e t u r n e d & & ( s d + = ` t i t l e = " $ { e d } " ` ) , s d + = " > " , s d } t e x t ( q a ) { r e t u r n " t o k e n s " i n q a & & q a . t o k e n s ? t h i s . p a r s e r . p a r s e I n l i n e ( q a . t o k e n s ) : q a . t e x t } } c l a s s _ T e x t R e n d e r e r { s t r o n g ( { t e x t : q a } ) { r e t u r n q a } e m ( { t e x t : q a } ) { r e t u r n q a } c o d e s p a n ( { t e x t : q a } ) { r e t u r n q a } d e l ( { t e x t : q a } ) { r e t u r n q a } h t m l ( { t e x t : q a } ) { r e t u r n q a } t e x t ( { t e x t : q a } ) { r e t u r n q a } l i n k ( { t e x t : q a } ) { r e t u r n " " + q a } i m a g e ( { t e x t : q a } ) { r e t u r n " " + q a } b r ( ) { r e t u r n " " } } c l a s s _ P a r s e r { c o n s t r u c t o r ( q a ) { n _ ( t h i s , " o p t i o n s " ) ; n _ ( t h i s , " r e n d e r e r " ) ; n _ ( t h i s , " t e x t R e n d e r e r " ) ; t h i s . o p t i o n s = q a | | _ d e f a u l t s , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w _ R e n d e r e r , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . r e n d e r e r . p a r s e r = t h i s , t h i s . t e x t R e n d e r e r = n e w _ T e x t R e n d e r e r } s t a t i c p a r s e ( q a , e d ) { r e t u r n n e w _ P a r s e r ( e d ) . p a r s e ( q a ) } s t a t i c p a r s e I n l i n e ( q a , e d ) { r e t u r n n e w _ P a r s e r ( e d ) . p a r s e I n l i n e ( q a ) } p a r s e ( q a , e d = ! 0 ) { l e t t d = " " ; f o r ( l e t r d = 0 ; r d < q a . l e n g t h ; r d + + ) { c o n s t s d = q a [ r d ] ; i f ( t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ s d . t y p e ] ) { c o n s t l d = s d , c d = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ l d . t y p e ] . c a l l ( { p a r s e r : t h i s } , l d ) ; i f ( c d ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( l d . t y p e ) ) { t d + = c d | | " " ; c o n t i n u e } } c o n s t o d = s d ; s w i t c h ( o d . t y p e ) { c a s e " s p a c e " : { t d + = t h i s . r e n d e r e r . s p a c e ( o d ) ; c o n t i n u e } c a s e " h r " : { t d + = t h i s . r e n d e r e r . h r ( o d ) ; c o n t i n u e } c a s e " h e a d i n g " : { t d + = t h i s . r e n d e r e r . h e a d i n g ( o d ) ; c o n t i n u e } c a s e " c o d e " : { t d + = t h i s . r e n d e r e r . c o d e ( o d ) ; c o n t i n u e } c a s e " t a b l e " : { t d + = t h i s . r e n d e r e r . t a b l e ( o d ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { t d + = t h i s . r e n d e r e r . b l o c k q u o t e ( o d ) ; c o n t i n u e } c a s e " l i s t " : { t d + = t h i s . r e n d e r e r . l i s t ( o d ) ; c o n t i n u e } c a s e " h t m l " : { t d + = t h i s . r e n d e r e r . h t m l ( o d ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { t d + = t h i s . r e n d e r e r . p a r a g r a p h ( o d ) ; c o n t i n u e } c a s e " t e x t " : { l e t l d = o d , c d = t h i s . r e n d e r e r . t e x t ( l d ) ; f o r ( ; r d + 1 < q a . l e n g t h & & q a [ r d + 1 ] . t y p e = = = " t e x t " ; ) l d = q a [ + + r d ] , c d + = `
` +this.renderer.text(ld);ed?td+=this.renderer.paragraph({type:"paragraph",raw:cd,text:cd,tokens:[{type:"text",raw:cd,text:cd}]}):td+=cd;continue}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}parseInline(qa,ed){ed=ed||this.renderer;let td="";for(let rd=0;rd<qa.length;rd++){const sd=qa[rd];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[sd.type]){const ld=this.options.extensions.renderers[sd.type].call({parser:this},sd);if(ld!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(sd.type)){td+=ld||"";continue}}const od=sd;switch(od.type){case"escape":{td+=ed.text(od);break}case"html":{td+=ed.html(od);break}case"link":{td+=ed.link(od);break}case"image":{td+=ed.image(od);break}case"strong":{td+=ed.strong(od);break}case"em":{td+=ed.em(od);break}case"codespan":{td+=ed.codespan(od);break}case"br":{td+=ed.br(od);break}case"del":{td+=ed.del(od);break}case"text":{td+=ed.text(od);break}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}}class _Hooks{constructor(qa){n_(this,"options");this.options=qa||_defaults}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}}n_(_Hooks,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var vb,fS,RT,hS;class Marked{constructor(...qa){pS(this,vb);n_(this,"defaults",_getDefaults());n_(this,"options",this.setOptions);n_(this,"parse",kE(this,vb,RT).call(this,_Lexer.lex,_Parser.parse));n_(this,"parseInline",kE(this,vb,RT).call(this,_Lexer.lexInline,_Parser.parseInline));n_(this,"Parser",_Parser);n_(this,"Renderer",_Renderer);n_(this,"TextRenderer",_TextRenderer);n_(this,"Lexer",_Lexer);n_(this,"Tokenizer",_Tokenizer);n_(this,"Hooks",_Hooks);this.use(...qa)}walkTokens(qa,ed){var rd,sd;let td=[];for(const od of qa)switch(td=td.concat(ed.call(this,od)),od.type){case"table":{const ld=od;for(const cd of ld.header)td=td.concat(this.walkTokens(cd.tokens,ed));for(const cd of ld.rows)for(const ud of cd)td=td.concat(this.walkTokens(ud.tokens,ed));break}case"list":{const ld=od;td=td.concat(this.walkTokens(ld.items,ed));break}default:{const ld=od;(sd=(rd=this.defaults.extensions)==null?void 0:rd.childTokens)!=null&&sd[ld.type]?this.defaults.extensions.childTokens[ld.type].forEach(cd=>{const ud=ld[cd].flat(1/0);td=td.concat(this.walkTokens(ud,ed))}):ld.tokens&&(td=td.concat(this.walkTokens(ld.tokens,ed)))}}return td}use(...qa){const ed=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(td=>{const rd={...td};if(rd.async=this.defaults.async||rd.async||!1,td.extensions&&(td.extensions.forEach(sd=>{if(!sd.name)throw new Error("extension name required");if("renderer"in sd){const od=ed.renderers[sd.name];od?ed.renderers[sd.name]=function(...ld){let cd=sd.renderer.apply(this,ld);return cd===!1&&(cd=od.apply(this,ld)),cd}:ed.renderers[sd.name]=sd.renderer}if("tokenizer"in sd){if(!sd.level||sd.level!=="block"&&sd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const od=ed[sd.level];od?od.unshift(sd.tokenizer):ed[sd.level]=[sd.tokenizer],sd.start&&(sd.level==="block"?ed.startBlock?ed.startBlock.push(sd.start):ed.startBlock=[sd.start]:sd.level==="inline"&&(ed.startInline?ed.startInline.push(sd.start):ed.startInline=[sd.start]))}"childTokens"in sd&&sd.childTokens&&(ed.childTokens[sd.name]=sd.childTokens)}),rd.extensions=ed),td.renderer){const sd=this.defaults.renderer||new _Renderer(this.defaults);for(const od in td.renderer){if(!(od in sd))throw new Error( ` renderer '${od}' does not exist ` );if(["options","parser"].includes(od))continue;const ld=od;let cd=td.renderer[ld];td.useNewRenderer||(cd=kE(this,vb,fS).call(this,cd,ld,sd));const ud=sd[ld];sd[ld]=(..._d)=>{let Ed=cd.apply(sd,_d);return Ed===!1&&(Ed=ud.apply(sd,_d)),Ed||""}}rd.renderer=sd}if(td.tokenizer){const sd=this.defaults.tokenizer||new _Tokenizer(this.defaults);for(const od in
Please report this to https : //github.com/markedjs/marked.`,qa){const rd="<p>An error occurred:</p><pre>"+escape$1$1(td.message+"",!0)+"</pre>";return ed?Promise.resolve(rd):rd}if(ed)return Promise.reject(td);throw td}};const markedInstance=new Marked;function marked(Ra,qa){return markedInstance.parse(Ra,qa)}marked.options=marked.setOptions=function(Ra){return markedInstance.setOptions(Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.getDefaults=_getDefaults;marked.defaults=_defaults;marked.use=function(...Ra){return markedInstance.use(...Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.walkTokens=function(Ra,qa){return markedInstance.walkTokens(Ra,qa)};marked.parseInline=markedInstance.parseInline;marked.Parser=_Parser;marked.parser=_Parser.parse;marked.Renderer=_Renderer;marked.TextRenderer=_TextRenderer;marked.Lexer=_Lexer;marked.lexer=_Lexer.lex;marked.Tokenizer=_Tokenizer;marked.Hooks=_Hooks;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;_Parser.parse;_Lexer.lex;function dedent(Ra){for(var qa=[],ed=1;ed<arguments.length;ed++)qa[ed-1]=arguments[ed];var td=Array.from(typeof Ra=="string"?[Ra]:Ra);td[td.length-1]=td[td.length-1].replace(/\r?\n([\t ]*)$/,"");var rd=td.reduce(function(ld,cd){var ud=cd.match(/\n([\t ]+|(?!\s).)/g);return ud?ld.concat(ud.map(function(_d){var Ed,Ad;return(Ad=(Ed=_d.match(/[\t ]/g))===null||Ed===void 0?void 0:Ed.length)!==null&&Ad!==void 0?Ad:0})):ld},[]);if(rd.length){var sd=new RegExp(`
[ ] { ` +Math.min.apply(Math,rd)+"}","g");td=td.map(function(ld){return ld.replace(sd, `
` )})}td[0]=td[0].replace(/^ \r ? \n /,"");var od=td[0];return qa.forEach(function(ld,cd){var ud=od.match(/(?:^| \n )( *) $ /),_d=ud?ud[1]:"",Ed=ld;typeof ld=="string"&&ld.includes( `
` )&&(Ed=String(ld).split( `
` ).map(function(Ad,Td){return Td===0?Ad:""+_d+Ad}).join( `
` )),od+=Ed+td[cd+1]}),od}function preprocessMarkdown(Ra,{markdownAutoWrap:qa}){const td=Ra.replace(/<br \/ >/g, `
2024-08-27 22:31:52 +08:00
` ).replace(/ \n {2,}/g, `
2024-09-16 00:03:18 +08:00
` ),rd=dedent(td);return qa===!1?rd.replace(/ /g," "):rd}__name(preprocessMarkdown,"preprocessMarkdown");function markdownToLines(Ra,qa={}){const ed=preprocessMarkdown(Ra,qa),td=marked.lexer(ed),rd=[[]];let sd=0;function od(ld,cd="normal"){ld.type==="text"?ld.text.split( `
` ).forEach((_d,Ed)=>{Ed!==0&&(sd++,rd.push([])),_d.split(" ").forEach(Ad=>{Ad&&rd[sd].push({content:Ad,type:cd})})}):ld.type==="strong"||ld.type==="em"?ld.tokens.forEach(ud=>{od(ud,ld.type)}):ld.type==="html"&&rd[sd].push({content:ld.text,type:"normal"})}return __name(od,"processNode"),td.forEach(ld=>{var cd;ld.type==="paragraph"?(cd=ld.tokens)==null||cd.forEach(ud=>{od(ud)}):ld.type==="html"&&rd[sd].push({content:ld.text,type:"normal"})}),rd}__name(markdownToLines,"markdownToLines");function markdownToHTML(Ra,{markdownAutoWrap:qa}={}){const ed=marked.lexer(Ra);function td(rd){var sd,od,ld;return rd.type==="text"?qa===!1?rd.text.replace(/ \n */g,"<br/>").replace(/ /g," "):rd.text.replace(/ \n */g,"<br/>"):rd.type==="strong"? ` < strong > $ { ( sd = rd . tokens ) == null ? void 0 : sd . map ( td ) . join ( "" ) } < / s t r o n g > ` : r d . t y p e = = = " e m " ? ` < e m > $ { ( o d = r d . t o k e n s ) = = n u l l ? v o i d 0 : o d . m a p ( t d ) . j o i n ( " " ) } < / e m > ` : r d . t y p e = = = " p a r a g r a p h " ? ` < p > $ { ( l d = r d . t o k e n s ) = = n u l l ? v o i d 0 : l d . m a p ( t d ) . j o i n ( " " ) } < / p > ` : r d . t y p e = = = " s p a c e " ? " " : r d . t y p e = = = " h t m l " ? ` $ { r d . t e x t } ` : ` U n s u p p o r t e d m a r k d o w n : $ { r d . t y p e } ` } r e t u r n _ _ n a m e ( t d , " o u t p u t " ) , e d . m a p ( t d ) . j o i n ( " " ) } _ _ n a m e ( m a r k d o w n T o H T M L , " m a r k d o w n T o H T M L " ) ; f u n c t i o n s p l i t T e x t T o C h a r s ( R a ) { r e t u r n I n t l . S e g m e n t e r ? [ . . . n e w I n t l . S e g m e n t e r ( ) . s e g m e n t ( R a ) ] . m a p ( q a = > q a . s e g m e n t ) : [ . . . R a ] } _ _ n a m e ( s p l i t T e x t T o C h a r s , " s p l i t T e x t T o C h a r s " ) ; f u n c t i o n s p l i t W o r d T o F i t W i d t h ( R a , q a ) { c o n s t e d = s p l i t T e x t T o C h a r s ( q a . c o n t e n t ) ; r e t u r n s p l i t W o r d T o F i t W i d t h R e c u r s i o n ( R a , [ ] , e d , q a . t y p e ) } _ _ n a m e ( s p l i t W o r d T o F i t W i d t h , " s p l i t W o r d T o F i t W i d t h " ) ; f u n c t i o n s p l i t W o r d T o F i t W i d t h R e c u r s i o n ( R a , q a , e d , t d ) { i f ( e d . l e n g t h = = = 0 ) r e t u r n [ { c o n t e n t : q a . j o i n ( " " ) , t y p e : t d } , { c o n t e n t : " " , t y p e : t d } ] ; c o n s t [ r d , . . . s d ] = e d , o d = [ . . . q a , r d ] ; r e t u r n R a ( [ { c o n t e n t : o d . j o i n ( " " ) , t y p e : t d } ] ) ? s p l i t W o r d T o F i t W i d t h R e c u r s i o n ( R a , o d , s d , t d ) : ( q a . l e n g t h = = = 0 & & r d & & ( q a . p u s h ( r d ) , e d . s h i f t ( ) ) , [ { c o n t e n t : q a . j o i n ( " " ) , t y p e : t d } , { c o n t e n t : e d . j o i n ( " " ) , t y p e : t d } ] ) } _ _ n a m e ( s p l i t W o r d T o F i t W i d t h R e c u r s i o n , " s p l i t W o r d T o F i t W i d t h R e c u r s i o n " ) ; f u n c t i o n s p l i t L i n e T o F i t W i d t h ( R a , q a ) { i f ( R a . s o m e ( ( { c o n t e n t : e d } ) = > e d . i n c l u d e s ( `
` )))throw new Error("splitLineToFitWidth does not support newlines in the line");return splitLineToFitWidthRecursion(Ra,qa)}__name(splitLineToFitWidth,"splitLineToFitWidth");function splitLineToFitWidthRecursion(Ra,qa,ed=[],td=[]){if(Ra.length===0)return td.length>0&&ed.push(td),ed.length>0?ed:[];let rd="";Ra[0].content===" "&&(rd=" ",Ra.shift());const sd=Ra.shift()??{content:" ",type:"normal"},od=[...td];if(rd!==""&&od.push({content:rd,type:"normal"}),od.push(sd),qa(od))return splitLineToFitWidthRecursion(Ra,qa,ed,od);if(td.length>0)ed.push(td),Ra.unshift(sd);else if(sd.content){const[ld,cd]=splitWordToFitWidth(qa,sd);ed.push([ld]),cd.content&&Ra.unshift(cd)}return splitLineToFitWidthRecursion(Ra,qa,ed)}__name(splitLineToFitWidthRecursion,"splitLineToFitWidthRecursion");function applyStyle $ 1(Ra,qa){qa&&Ra.attr("style",qa)}__name(applyStyle $ 1,"applyStyle");async function addHtmlSpan(Ra,qa,ed,td,rd=!1){const sd=Ra.append("foreignObject"),od=sd.append("xhtml:div");let ld=qa.label;qa.label&&hasKatex(qa.label)&&(ld=await renderKatex(qa.label.replace(common_default.lineBreakRegex, `
` ),getConfig2()));const cd=qa.isNode?"nodeLabel":"edgeLabel",ud=od.append("span");ud.html(ld),applyStyle $ 1(ud,qa.labelStyle),ud.attr("class", ` $ { cd } $ { td } ` ),applyStyle $ 1(od,qa.labelStyle),od.style("display","table-cell"),od.style("white-space","nowrap"),od.style("line-height","1.5"),od.style("max-width",ed+"px"),od.style("text-align","center"),od.attr("xmlns","http://www.w3.org/1999/xhtml"),rd&&od.attr("class","labelBkg");let _d=od.node().getBoundingClientRect();return _d.width===ed&&(od.style("display","table"),od.style("white-space","break-spaces"),od.style("width",ed+"px"),_d=od.node().getBoundingClientRect()),sd.node()}__name(addHtmlSpan,"addHtmlSpan");function createTspan(Ra,qa,ed){return Ra.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",qa*ed-.1+"em").attr("dy",ed+"em")}__name(createTspan,"createTspan");function computeWidthOfText(Ra,qa,ed){const td=Ra.append("text"),rd=createTspan(td,1,qa);updateTextContentAndStyles(rd,ed);const sd=rd.node().getComputedTextLength();return td.remove(),sd}__name(computeWidthOfText,"computeWidthOfText");function computeDimensionOfText(Ra,qa,ed){var od;const td=Ra.append("text"),rd=createTspan(td,1,qa);updateTextContentAndStyles(rd,[{content:ed,type:"normal"}]);const sd=(od=rd.node())==null?void 0:od.getBoundingClientRect();return sd&&td.remove(),sd}__name(computeDimensionOfText,"computeDimensionOfText");function createFormattedText(Ra,qa,ed,td=!1){const sd=qa.append("g"),od=sd.insert("rect").attr("class","background").attr("style","stroke: none"),ld=sd.append("text").attr("y","-10.1");let cd=0;for(const ud of ed){const _d=__name(Ad=>computeWidthOfText(sd,1.1,Ad)<=Ra,"checkWidth"),Ed=_d(ud)?[ud]:splitLineToFitWidth(ud,_d);for(const Ad of Ed){const Td=createTspan(ld,cd,1.1);updateTextContentAndStyles(Td,Ad),cd++}}if(td){const ud=ld.node().getBBox(),_d=2;return od.attr("x",-_d).attr("y",-_d).attr("width",ud.width+2*_d).attr("height",ud.height+2*_d),sd.node()}else return ld.node()}__name(createFormattedText,"createFormattedText");function updateTextContentAndStyles(Ra,qa){Ra.text(""),qa.forEach((ed,td)=>{const rd=Ra.append("tspan").attr("font-style",ed.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",ed.type==="strong"?"bold":"normal");td===0?rd.text(ed.content):rd.text(" "+ed.content)})}__name(updateTextContentAndStyles,"updateTextContentAndStyles");function replaceIconSubstring(Ra){return Ra.replace(/fa[bklrs]?:fa-[ \w -]+/g,qa=> ` < i class = '${qa.replace(":"," ")}' > < /i>`)}__name(replaceIconSubstring,"replaceIconSubstring");var createText=__name(async(Ra,qa="",{style:ed="",isTitle:td=!1,classes:rd="",useHtmlLabels:sd=!0,isNode:od=!0,width:ld=200,addSvgBackground:cd=!1}={},ud)=>{if(log$1.info("XYZ createText",qa,ed,td,rd,sd,od,"addSvgBackground: ",cd),sd){const _d=markdownToHTML(qa,ud),Ed=replaceIconSubstring(decodeEntities(_d)),Ad=qa.replace(/ \ \ \ \ / g , "\\" ) , Td = { isNode : od , label : hasKatex ( qa ) ? Ad : Ed , labelStyle : ed . replace ( "fill:" , "color:" ) } ; return await addHtmlSpan ( Ra , Td , ld , rd , cd ) } else { const _d = qa . replace ( /<br\s*\/?>/g , "<br/>" ) , Ed = markdownToLines ( _d . replace ( "<br>" , "<br/>" ) , ud ) , Ad = createFormattedText ( ld , Ra , Ed , qa ? cd : ! 1 ) ; if ( od ) { /stroke:/ . exec ( ed ) && ( ed = ed . replace ( "stroke:" , "lineColor:" ) ) ; const Td = ed . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; select ( Ad ) . attr ( "style" , Td ) } else { const Td = ed . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /background:/g , "fill:" ) ; select ( Ad ) . select ( "rect" ) . attr ( "style" , Td . replace ( /background:/g , "fill:" ) ) ; const Nd = ed . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; select ( Ad ) . select ( "text" ) . attr ( "style" , Nd ) } return Ad } } , "createText" ) ; function t ( Ra , qa , ed ) { if ( Ra && Ra . length ) { const [ td , rd ] = qa , sd = Math . PI / 180 * ed , od = Math . cos ( sd ) , ld = Math . sin ( sd ) ; for ( const cd of Ra ) { const [ ud , _d ] = cd ; cd [ 0 ] = ( ud - td ) * od - ( _d - rd ) * ld + td , cd [ 1 ] = ( ud - td ) * ld + ( _d - rd ) * od + rd } } } function e ( Ra , qa ) { return Ra [ 0 ] === qa [ 0 ] && Ra [ 1 ] === qa [ 1 ] } function s ( Ra , qa , ed , td = 1 ) { const rd
` ),getConfig2()));const rd=Ra.isNode?"nodeLabel":"edgeLabel";return ed.html('<span class="'+rd+'" '+(Ra.labelStyle?'style="'+Ra.labelStyle+'"':"")+">"+td+"</span>"),applyStyle(ed,Ra.labelStyle),ed.style("display","inline-block"),ed.style("padding-right","1px"),ed.style("white-space","nowrap"),ed.attr("xmlns","http://www.w3.org/1999/xhtml"),qa.node()}__name(addHtmlLabel,"addHtmlLabel");var createLabel=__name(async(Ra,qa,ed,td)=>{let rd=Ra||"";if(typeof rd=="object"&&(rd=rd[0]),evaluate(getConfig2().flowchart.htmlLabels)){rd=rd.replace(/ \\ n| \n /g,"<br />"),log $ 1.info("vertexText"+rd);const sd={isNode:td,label:decodeEntities(rd).replace(/fa[blrs]?:fa-[ \w -]+/g,ld=> ` < i class = '${ld.replace(":"," ")}' > < /i>`),labelStyle:qa&&qa.replace("fill:","color:")};return await addHtmlLabel(sd)}else{const sd=document.createElementNS("http:/ / www . w3 . org / 2000 / svg "," text ");sd.setAttribute(" style ",qa.replace(" color : "," fill : "));let od=[];typeof rd==" string "?od=rd.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(rd)?od=rd:od=[];for(const ld of od){const cd=document.createElementNS(" http : //www.w3.org/2000/svg","tspan");cd.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),cd.setAttribute("dy","1em"),cd.setAttribute("x","0"),ed?cd.setAttribute("class","title-row"):cd.setAttribute("class","row"),cd.textContent=ld.trim(),sd.appendChild(cd)}return sd}},"createLabel"),createLabel_default=createLabel,createRoundedRectPathD=__name((Ra,qa,ed,td,rd)=>["M",Ra+rd,qa,"H",Ra+ed-rd,"A",rd,rd,0,0,1,Ra+ed,qa+rd,"V",qa+td-rd,"A",rd,rd,0,0,1,Ra+ed-rd,qa+td,"H",Ra+rd,"A",rd,rd,0,0,1,Ra,qa+td-rd,"V",qa+rd,"A",rd,rd,0,0,1,Ra+rd,qa,"Z"].join(" "),"createRoundedRectPathD"),solidStateFill=__name(Ra=>{const{handDrawnSeed:qa}=getConfig2();return{fill:Ra,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:Ra,seed:qa}},"solidStateFill"),compileStyles=__name(Ra=>{const qa=styles2Map([...Ra.cssCompiledStyles||[],...Ra.cssStyles||[]]);return{stylesMap:qa,stylesArray:[...qa]}},"compileStyles"),styles2Map=__name(Ra=>{const qa=new Map;return Ra.forEach(ed=>{const[td,rd]=ed.split(":");qa.set(td.trim(),rd==null?void 0:rd.trim())}),qa},"styles2Map"),styles2String=__name(Ra=>{const{stylesArray:qa}=compileStyles(Ra),ed=[],td=[],rd=[],sd=[];return qa.forEach(od=>{const ld=od[0];ld==="color"||ld==="font-size"||ld==="font-family"||ld==="font-weight"||ld==="font-style"||ld==="text-decoration"||ld==="text-align"||ld==="text-transform"||ld==="line-height"||ld==="letter-spacing"||ld==="word-spacing"||ld==="text-shadow"||ld==="text-overflow"||ld==="white-space"||ld==="word-wrap"||ld==="word-break"||ld==="overflow-wrap"||ld==="hyphens"?ed.push(od.join(":")+" !important"):(td.push(od.join(":")+" !important"),ld.includes("stroke")&&rd.push(od.join(":")+" !important"),ld==="fill"&&sd.push(od.join(":")+" !important"))}),{labelStyles:ed.join(";"),nodeStyles:td.join(";"),stylesArray:qa,borderStyles:rd,backgroundStyles:sd}},"styles2String"),userNodeOverrides=__name((Ra,qa)=>{const{themeVariables:ed,handDrawnSeed:td}=getConfig2(),{nodeBorder:rd,mainBkg:sd}=ed,{stylesMap:od}=compileStyles(Ra);return Object.assign({roughness:.7,fill:od.get("fill")||sd,fillStyle:"hachure",fillWeight:4,stroke:od.get("stroke")||rd,seed:td,strokeWidth:1.3},qa)},"userNodeOverrides"),rect$2=__name(async(Ra,qa)=>{log$1.info("Creating subgraph rect for ",qa.id,qa);const ed=getConfig2(),{themeVariables:td,handDrawnSeed:rd}=ed,{clusterBkg:sd,clusterBorder:od}=td,{labelStyles:ld,nodeStyles:cd,borderStyles:ud,backgroundStyles:_d}=styles2String(qa),Ed=Ra.insert("g").attr("class","cluster "+qa.cssClasses).attr("id",qa.id).attr("data-look",qa.look),Ad=evaluate(ed.flowchart.htmlLabels),Td=Ed.insert("g").attr("class","cluster-label "),Nd=await createText(Td,qa.label,{style:qa.labelStyle,useHtmlLabels:Ad,isNode:!0});let Rd=Nd.getBBox();if(evaluate(ed.flowchart.htmlLabels)){const Gd=Nd.children[0],Qd=select(Nd);Rd=Gd.getBoundingClientRect(),Qd.attr("width",Rd.width),Qd.attr("height",Rd.height)}const Bd=qa.width<=Rd.width+qa.padding?Rd.width+qa.padding:qa.width;qa.width<=Rd.width+qa.padding?qa.diff=(Bd-qa.widt
2024-08-30 15:19:18 +08:00
outsidePoint : $ { JSON . stringify ( qa ) }
2024-09-16 00:03:18 +08:00
insidePoint : $ { JSON . stringify ( ed ) }
node : x : $ { Ra . x } y : $ { Ra . y } w : $ { Ra . width } h : $ { Ra . height } ` );const td=Ra.x,rd=Ra.y,sd=Math.abs(td-ed.x),od=Ra.width/2;let ld=ed.x<qa.x?od-sd:od+sd;const cd=Ra.height/2,ud=Math.abs(qa.y-ed.y),_d=Math.abs(qa.x-ed.x);if(Math.abs(rd-qa.y)*od>Math.abs(td-qa.x)*cd){let Ed=ed.y<qa.y?qa.y-cd-rd:rd-cd-qa.y;ld=_d*Ed/ud;const Ad={x:ed.x<qa.x?ed.x+ld:ed.x-_d+ld,y:ed.y<qa.y?ed.y+ud-Ed:ed.y-ud+Ed};return ld===0&&(Ad.x=qa.x,Ad.y=qa.y),_d===0&&(Ad.x=qa.x),ud===0&&(Ad.y=qa.y),log $ 1.debug( ` abc89 top / bottom calc , Q $ { ud } , q $ { Ed } , R $ { _d } , r $ { ld } ` ,Ad),Ad}else{ed.x<qa.x?ld=qa.x-od-td:ld=td-od-qa.x;let Ed=ud*ld/_d,Ad=ed.x<qa.x?ed.x+_d-ld:ed.x-_d+ld,Td=ed.y<qa.y?ed.y+Ed:ed.y-Ed;return log $ 1.debug( ` sides calc abc89 , Q $ { ud } , q $ { Ed } , R $ { _d } , r $ { ld } ` ,{_x:Ad,_y:Td}),ld===0&&(Ad=qa.x,Td=qa.y),_d===0&&(Ad=qa.x),ud===0&&(Td=qa.y),{x:Ad,y:Td}}},"intersection"),cutPathAtIntersect=__name((Ra,qa)=>{log $ 1.warn("abc88 cutPathAtIntersect",Ra,qa);let ed=[],td=Ra[0],rd=!1;return Ra.forEach(sd=>{if(log $ 1.info("abc88 checking point",sd,qa),!outsideNode(qa,sd)&&!rd){const od=intersection(qa,td,sd);log $ 1.debug("abc88 inside",sd,td,od),log $ 1.debug("abc88 intersection",od,qa);let ld=!1;ed.forEach(cd=>{ld=ld||cd.x===od.x&&cd.y===od.y}),ed.some(cd=>cd.x===od.x&&cd.y===od.y)?log $ 1.warn("abc88 no intersect",od,ed):ed.push(od),rd=!0}else log $ 1.warn("abc88 outside",sd,td),td=sd,rd||ed.push(sd)}),log $ 1.debug("returning points",ed),ed},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],ed=[];for(let td=1;td<Ra.length-1;td++){const rd=Ra[td-1],sd=Ra[td],od=Ra[td+1];(rd.x===sd.x&&sd.y===od.y&&Math.abs(sd.x-od.x)>5&&Math.abs(sd.y-rd.y)>5||rd.y===sd.y&&sd.x===od.x&&Math.abs(sd.x-rd.x)>5&&Math.abs(sd.y-od.y)>5)&&(qa.push(sd),ed.push(td))}return{cornerPoints:qa,cornerPointPositions:ed}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,ed){const td=qa.x-Ra.x,rd=qa.y-Ra.y,sd=Math.sqrt(td*td+rd*rd),od=ed/sd;return{x:qa.x-od*td,y:qa.y-od*rd}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),ed=[];for(let td=0;td<Ra.length;td++)if(qa.includes(td)){const rd=Ra[td-1],sd=Ra[td+1],od=Ra[td],ld=findAdjacentPoint(rd,od,5),cd=findAdjacentPoint(sd,od,5),ud=cd.x-ld.x,_d=cd.y-ld.y;ed.push(ld);const Ed=Math.sqrt(2)*2;let Ad={x:od.x,y:od.y};if(Math.abs(sd.x-rd.x)>10&&Math.abs(sd.y-rd.y)>=10){log $ 1.debug("Corner point fixing",Math.abs(sd.x-rd.x),Math.abs(sd.y-rd.y));const Td=5;od.x===ld.x?Ad={x:ud<0?ld.x-Td+Ed:ld.x+Td-Ed,y:_d<0?ld.y-Ed:ld.y+Ed}:Ad={x:ud<0?ld.x-Ed:ld.x+Ed,y:_d<0?ld.y-Td+Ed:ld.y+Td-Ed}}else log $ 1.debug("Corner point skipping fixing",Math.abs(sd.x-rd.x),Math.abs(sd.y-rd.y));ed.push(Ad,cd)}else ed.push(Ra[td]);return ed},"fixCorners"),insertEdge=__name(function(Ra,qa,ed,td,rd,sd,od){const{handDrawnSeed:ld}=getConfig2();let cd=qa.points,ud=!1;const _d=rd;var Ed=sd;Ed.intersect&&_d.intersect&&(cd=cd.slice(1,qa.points.length-1),cd.unshift(_d.intersect(cd[0])),log $ 1.debug("Last point APA12",qa.start,"-->",qa.end,cd[cd.length-1],Ed,Ed.intersect(cd[cd.length-1])),cd.push(Ed.intersect(cd[cd.length-1]))),qa.toCluster&&(log $ 1.info("to cluster abc88",ed.get(qa.toCluster)),cd=cutPathAtIntersect(qa.points,ed.get(qa.toCluster).node),ud=!0),qa.fromCluster&&(log $ 1.debug("from cluster abc88",ed.get(qa.fromCluster),JSON.stringify(cd,null,2)),cd=cutPathAtIntersect(cd.reverse(),ed.get(qa.fromCluster).node).reverse(),ud=!0);let Ad=cd.filter(Qd=>!Number.isNaN(Qd.y));Ad=fixCorners(Ad);let Td=Ad[Ad.length-1];if(Ad.length>1){Td=Ad[Ad.length-1];const Qd=Ad[Ad.length-2],Vd=(Td.x-Qd.x)/2,zd=(Td.y-Qd.y)/2,Xd={x:Qd.x+Vd,y:Qd.y+zd};Ad.splice(-1,0,Xd)}let Nd=curveBasis;qa.curve&&(Nd=qa.curve);const{x:Rd,y:Bd}=getLineFunctionsWithOffset(qa),kd=line $ 1().x(Rd).y(Bd).curve(Nd);let Od;switch(qa.thickness){case"normal":Od="edge-thickness-normal";break;case"thick":Od="edge-thickness-thick";break;case"invisible":Od="edge-thickness-invisible";break;default:Od="edge-thickness-normal"}switch(qa.pattern){case"solid":Od+=" edge-pattern-solid";break;case"dotted":Od+=" edge-pattern-dotted";break;case"
point : ` ,Ad, `
2024-08-27 22:31:52 +08:00
node :
2024-08-30 15:19:18 +08:00
` ,qa, `
2024-09-16 17:10:21 +08:00
res : ` ,intersect_default.polygon(qa,ud,Ad)),intersect_default.polygon(qa,ud,Ad)},rd},"question"),createHexagonPathD=__name((Ra,qa,ed,td,rd)=>[ ` M$ { Ra + rd } , $ { qa } ` , ` L$ { Ra + ed - rd } , $ { qa } ` , ` L$ { Ra + ed } , $ { qa - td / 2 } ` , ` L$ { Ra + ed - rd } , $ { qa - td } ` , ` L$ { Ra + rd } , $ { qa - td } ` , ` L$ { Ra } , $ { qa - td / 2 } ` ,"Z"].join(" "),"createHexagonPathD"),hexagon=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=4,ld=sd.height+qa.padding,cd=ld/od,ud=sd.width+2*cd+qa.padding,_d=[{x:cd,y:0},{x:ud-cd,y:0},{x:ud,y:-ld/2},{x:ud-cd,y:-ld},{x:cd,y:-ld},{x:0,y:-ld/2}];let Ed;const{cssStyles:Ad}=qa;if(qa.look==="handDrawn"){const Td=at $ 4.svg(rd),Nd=userNodeOverrides(qa,{}),Rd=createHexagonPathD(0,0,ud,ld,cd),Bd=Td.path(Rd,Nd);Ed=rd.insert(()=>Bd,":first-child").attr("transform", ` translate ( $ { - ud / 2 } , $ { ld / 2 } ) ` ),Ad&&Ed.attr("style",Ad)}else Ed=insertPolygonShape(rd,ud,ld,_d);return td&&Ed.attr("style",td),qa.width=ud,qa.height=ld,updateNodeBounds(qa,Ed),qa.intersect=function(Td){return intersect_default.polygon(qa,_d,Td)},rd},"hexagon"),createLeanRightPathD=__name((Ra,qa,ed,td)=>[ ` M$ { Ra - 2 * td / 6 } , $ { qa } ` , ` L$ { Ra + ed - td / 6 } , $ { qa } ` , ` L$ { Ra + ed + 2 * td / 6 } , $ { qa - td } ` , ` L$ { Ra + td / 6 } , $ { qa - td } ` ,"Z"].join(" "),"createLeanRightPathD"),lean_right=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=sd.width+qa.padding,ld=sd.height+qa.padding,cd=[{x:-2*ld/6,y:0},{x:od-ld/6,y:0},{x:od+2*ld/6,y:-ld},{x:ld/6,y:-ld}];let ud;const{cssStyles:_d}=qa;if(qa.look==="handDrawn"){const Ed=at $ 4.svg(rd),Ad=userNodeOverrides(qa,{}),Td=createLeanRightPathD(0,0,od,ld),Nd=Ed.path(Td,Ad);ud=rd.insert(()=>Nd,":first-child").attr("transform", ` translate ( $ { - od / 2 } , $ { ld / 2 } ) ` ),_d&&ud.attr("style",_d)}else ud=insertPolygonShape(rd,od,ld,cd);return td&&ud.attr("style",td),qa.width=od,qa.height=ld,updateNodeBounds(qa,ud),qa.intersect=function(Ed){return intersect_default.polygon(qa,cd,Ed)},rd},"lean_right"),createLeanLeftPathD=__name((Ra,qa,ed,td)=>[ ` M$ { Ra + 2 * td / 6 } , $ { qa } ` , ` L$ { Ra + ed + td / 6 } , $ { qa } ` , ` L$ { Ra + ed - 2 * td / 6 } , $ { qa - td } ` , ` L$ { Ra - td / 6 } , $ { qa - td } ` ,"Z"].join(" "),"createLeanLeftPathD"),lean_left=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=sd.width+qa.padding,ld=sd.height+qa.padding,cd=[{x:2*ld/6,y:0},{x:od+ld/6,y:0},{x:od-2*ld/6,y:-ld},{x:-ld/6,y:-ld}];let ud;const{cssStyles:_d}=qa;if(qa.look==="handDrawn"){const Ed=at $ 4.svg(rd),Ad=userNodeOverrides(qa,{}),Td=createLeanLeftPathD(0,0,od,ld),Nd=Ed.path(Td,Ad);ud=rd.insert(()=>Nd,":first-child").attr("transform", ` translate ( $ { - od / 2 } , $ { ld / 2 } ) ` ),_d&&ud.attr("style",_d)}else ud=insertPolygonShape(rd,od,ld,cd);return td&&ud.attr("style",td),qa.width=od,qa.height=ld,updateNodeBounds(qa,ud),qa.intersect=function(Ed){return intersect_default.polygon(qa,cd,Ed)},rd},"lean_left"),createTrapezoidPathD=__name((Ra,qa,ed,td)=>[ ` M$ { Ra - 2 * td / 6 } , $ { qa } ` , ` L$ { Ra + ed + 2 * td / 6 } , $ { qa } ` , ` L$ { Ra + ed - td / 6 } , $ { qa - td } ` , ` L$ { Ra + td / 6 } , $ { qa - td } ` ,"Z"].join(" "),"createTrapezoidPathD"),trapezoid=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=sd.width+qa.padding,ld=sd.height+qa.padding,cd=[{x:-2*ld/6,y:0},{x:od+2*ld/6,y:0},{x:od-ld/6,y:-ld},{x:ld/6,y:-ld}];let ud;const{cssStyles:_d}=qa;if(qa.look==="handDrawn"){const Ed=at $ 4.svg(rd),Ad=userNodeOverrides(qa,{}),Td=createTrapezoidPathD(0,0,od,ld),Nd=Ed.path(Td,Ad);ud=rd.insert(()=>Nd,":first-child").attr("transform", ` translate ( $ { - od / 2 } , $ { ld / 2 } ) ` ),_d&&ud.attr("style",_d)}else ud=insertPolygonShape(rd,od,ld,cd);return td&&ud.attr("style",td),qa.width=od,qa.height=ld,updateNodeBounds(qa,ud),qa.intersect=function(Ed){return intersect_default.polygon(qa,cd,Ed)},rd},"trapezoid"),createInvertedTrapezoidPathD=__name((Ra,qa,ed,td)=>[ ` M$ { Ra + td / 6 } , $ { qa } ` , ` L$ { Ra + ed - td / 6 } , $ { qa } ` , ` L$ { Ra + ed + 2 * td / 6 } , $ { qa - td } ` , ` L$ { Ra - 2 * td / 6 } , $ { qa - td } ` ,"Z
` );const td=selectSvgElement(qa),rd=td.append("g");td.attr("viewBox","0 0 2412 512"),configureSvgSize(td,100,512,!0),rd.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),rd.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),rd.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),rd.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),rd.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),rd.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),rd.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),rd.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text( ` mermaid version $ { ed } ` )},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var ed;return/^ \s *flowchart-elk/.test(Ra)||/^ \s *flowchart|graph/.test(Ra)&&((ed=qa==null?void 0:qa.flowchart)==null?void 0:ed.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./flowDiagram-44NOAMKU-CVkND8V-.js");return{diagram:qa}},__vite__mapDeps([8,9,10,11]));return{id:id18,diagram:Ra}},"loader"),plugin16={id:id18,detector:detector18,loader:loader18},detector_default=plugin16,id19="timeline",detector19=__name(Ra=>/^ \s *timeline/.test(Ra),"detector"),loader19=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./timeline-definition-KYQAIZUX-B6HhWkHV.js");return{diagram:qa}},__vite__mapDeps([36,22]));return{id:id19,diagram:Ra}},"loader"),plugin17={id:id19,detector:detector19,loader:loader19},detector_default2=plugin17,id20="mindmap",detector20=__name(Ra=>/^ \s *mindmap/.test(Ra),"detector"),loader20=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./mindmap-definition-26FWEE7H-DEbThg6t.js");return{diagram:qa}},__vite__mapDeps([37,38]));return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="sankey",detector21=__name(Ra=>/^ \s *sankey-beta/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./sankeyDiagram-KMMQDL5K-uYBBIB0h.js");return{diagram:qa}},__vite__mapDeps([39,23,19]));return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},sankeyDetector_default=plugin19,id22="packet",detector22=__name(Ra=>/^ \s *packet-beta/.test(Ra),"detec
2024-09-16 00:03:18 +08:00
` ;try{getDiagram(rd)}catch{const Ed=getDiagramLoader(rd);if(!Ed)throw new UnknownDiagramError( ` Diagram $ { rd } not found . ` );const{id:Ad,diagram:Td}=await Ed();registerDiagram(Ad,Td)}const{db:sd,parser:od,renderer:ld,init:cd}=getDiagram(rd);return od.parser&&(od.parser.yy=sd),(ud=sd.clear)==null||ud.call(sd),cd==null||cd(td),ed.title&&((_d=sd.setDiagramTitle)==null||_d.call(sd,ed.title)),await od.parse(qa),new Rv(rd,qa,sd,od,ld)}async render(qa,ed){await this.renderer.draw(this.text,qa,ed,this)}getParser(){return this.parser}getType(){return this.type}},__name(Rv,"Diagram"),Rv),interactionFunctions=[],attachFunctions=__name(()=>{interactionFunctions.forEach(Ra=>{Ra()}),interactionFunctions=[]},"attachFunctions"),cleanupComments=__name(Ra=>Ra.replace(/^ \s *%%(?!{)[^ \n ]+ \n ?/gm,"").trimStart(),"cleanupComments");function isNothing(Ra){return typeof Ra>"u"||Ra===null}__name(isNothing,"isNothing");function isObject $ 2(Ra){return typeof Ra=="object"&&Ra!==null}__name(isObject $ 2,"isObject");function toArray $ 2(Ra){return Array.isArray(Ra)?Ra:isNothing(Ra)?[]:[Ra]}__name(toArray $ 2,"toArray");function extend $ 1(Ra,qa){var ed,td,rd,sd;if(qa)for(sd=Object.keys(qa),ed=0,td=sd.length;ed<td;ed+=1)rd=sd[ed],Ra[rd]=qa[rd];return Ra}__name(extend $ 1,"extend");function repeat(Ra,qa){var ed="",td;for(td=0;td<qa;td+=1)ed+=Ra;return ed}__name(repeat,"repeat");function isNegativeZero(Ra){return Ra===0&&Number.NEGATIVE_INFINITY===1/Ra}__name(isNegativeZero,"isNegativeZero");var isNothing_1=isNothing,isObject_1=isObject $ 2,toArray_1=toArray $ 2,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend $ 1,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(Ra,qa){var ed="",td=Ra.reason||"(unknown reason)";return Ra.mark?(Ra.mark.name&&(ed+='in "'+Ra.mark.name+'" '),ed+="("+(Ra.mark.line+1)+":"+(Ra.mark.column+1)+")",!qa&&Ra.mark.snippet&&(ed+= `
` +Ra.mark.snippet),td+" "+ed):td}__name(formatError,"formatError");function YAMLException $ 1(Ra,qa){Error.call(this),this.name="YAMLException",this.reason=Ra,this.mark=qa,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}__name(YAMLException $ 1,"YAMLException $ 1");YAMLException $ 1.prototype=Object.create(Error.prototype);YAMLException $ 1.prototype.constructor=YAMLException $ 1;YAMLException $ 1.prototype.toString=__name(function(qa){return this.name+": "+formatError(this,qa)},"toString");var exception=YAMLException $ 1;function getLine(Ra,qa,ed,td,rd){var sd="",od="",ld=Math.floor(rd/2)-1;return td-qa>ld&&(sd=" ... ",qa=td-ld+sd.length),ed-td>ld&&(od=" ...",ed=td+ld-od.length),{str:sd+Ra.slice(qa,ed).replace(/ \t /g,"→")+od,pos:td-qa+sd.length}}__name(getLine,"getLine");function padStart(Ra,qa){return common.repeat(" ",qa-Ra.length)+Ra}__name(padStart,"padStart");function makeSnippet(Ra,qa){if(qa=Object.create(qa||null),!Ra.buffer)return null;qa.maxLength||(qa.maxLength=79),typeof qa.indent!="number"&&(qa.indent=1),typeof qa.linesBefore!="number"&&(qa.linesBefore=3),typeof qa.linesAfter!="number"&&(qa.linesAfter=2);for(var ed=/ \r ? \n | \r | \0 /g,td=[0],rd=[],sd,od=-1;sd=ed.exec(Ra.buffer);)rd.push(sd.index),td.push(sd.index+sd[0].length),Ra.position<=sd.index&&od<0&&(od=td.length-2);od<0&&(od=td.length-1);var ld="",cd,ud,_d=Math.min(Ra.line+qa.linesAfter,rd.length).toString().length,Ed=qa.maxLength-(qa.indent+_d+3);for(cd=1;cd<=qa.linesBefore&&!(od-cd<0);cd++)ud=getLine(Ra.buffer,td[od-cd],rd[od-cd],Ra.position-(td[od]-td[od-cd]),Ed),ld=common.repeat(" ",qa.indent)+padStart((Ra.line-cd+1).toString(),_d)+" | "+ud.str+ `
` +ld;for(ud=getLine(Ra.buffer,td[od],rd[od],Ra.position,Ed),ld+=common.repeat(" ",qa.indent)+padStart((Ra.line+1).toString(),_d)+" | "+ud.str+ `
` ,ld+=common.repeat("-",qa.indent+_d+3+ud.pos)+ ` ^
` ,cd=1;cd<=qa.linesAfter&&!(od+cd>=rd.length);cd++)ud=getLine(Ra.buffer,td[od+cd],rd[od+cd],Ra.position-(td[od]-td[od+cd]),Ed),ld+=common.repeat(" ",qa.indent)+padStart((Ra.line+cd+1).toString(),_d)+" | "+ud.str+ `
` ;return ld.replace(/ \n $ /,"")}__name(makeSnippet,"makeSnippet");var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(Ra){var qa={};return Ra!==null&&Object.keys(Ra).forEach(function(ed){Ra[ed].forEach(function(td){qa[String(td)]=ed})}),qa}__name(compileStyleAliases,"compileStyleAliases");function Type $ 1(Ra,qa){if(qa=qa||{},Object.keys(qa).forEach(function(ed){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(ed)===-1)throw new exception('Unknown option "'+ed+'" is met in definition of "'+Ra+'" YAML type.')}),this.options=qa,this.tag=Ra,this.kind=qa.kind||null,this.resolve=qa.resolve||function(){return!0},this.construct=qa.construct||function(ed){return ed},this.instanceOf=qa.instanceOf||null,this.predicate=qa.predicate||null,this.represent=qa.represent||null,this.representName=qa.representName||null,this.defaultStyle=qa.defaultStyle||null,this.multi=qa.multi||!1,this.styleAliases=compileStyleAliases(qa.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+Ra+'" YAML type.')}__name(Type $ 1,"Type $ 1");var type $ 1=Type $ 1;function compileList(Ra,qa){var ed=[];return Ra[qa].forEach(function(td){var rd=ed.length;ed.forEach(function(sd,od){sd.tag===td.tag&&sd.kind===td.kind&&sd.multi===td.multi&&(rd=od)}),ed[rd]=td}),ed}__name(compileList,"compileList");function compileMap(){var Ra={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},qa,ed;function td(rd){rd.multi?(Ra.multi[rd.kind].push(rd),Ra.multi.fallback.push(rd)):Ra[rd.kind][rd.tag]=Ra.fallback[rd.tag]=rd}for(__name(td,"collectType"),qa=0,ed=arguments.length;qa<ed;qa+=1)arguments[qa].forEach(td);return Ra}__name(compileMap,"compileMap");function Schema $ 1(Ra){return this.extend(Ra)}__name(Schema $ 1,"Schema $ 1");Schema $ 1.prototype.extend=__name(function(qa){var ed=[],td=[];if(qa instanceof type $ 1)td.push(qa);else if(Array.isArray(qa))td=td.concat(qa);else if(qa&&(Array.isArray(qa.implicit)||Array.isArray(qa.explicit)))qa.implicit&&(ed=ed.concat(qa.implicit)),qa.explicit&&(td=td.concat(qa.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");ed.forEach(function(sd){if(!(sd instanceof type $ 1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(sd.loadKind&&sd.loadKind!=="scalar")throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(sd.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),td.forEach(function(sd){if(!(sd instanceof type $ 1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var rd=Object.create(Schema $ 1.prototype);return rd.implicit=(this.implicit||[]).concat(ed),rd.explicit=(this.explicit||[]).concat(td),rd.compiledImplicit=compileList(rd,"implicit"),rd.compiledExplicit=compileList(rd,"explicit"),rd.compiledTypeMap=compileMap(rd.compiledImplicit,rd.compiledExplicit),rd},"extend");var schema=Schema $ 1,str=new type $ 1("tag:yaml.org,2002:str",{kind:"scalar",construct:__name(function(Ra){return Ra!==null?Ra:""},"construct")}),seq $ 1=new type $ 1("tag:yaml.org,2002:seq",{kind:"sequence",construct:__name(function(Ra){return Ra!==null?Ra:[]},"construct")}),map $ 4=new type $ 1("tag:yaml.org,2002:map",{kind:"mapping",construct:__name(function(Ra){return Ra!==null?Ra:{}},"construct")}),failsafe=new schema({explicit:[str,seq $ 1,map $ 4]});function resolveYamlNull(Ra){if(Ra===null)return!0;var qa=Ra.length;return qa===1&&Ra==="~"||qa===4&&(Ra==="null"||Ra==="Null"||Ra==="NULL")}__name(resolveYamlNull,"resolveYamlNull");function constructYamlNull(){return null}__name(constructYamlNull,"constructYamlNull");function isNull(Ra){
\ r ` ;function resolveYamlBinary(Ra){if(Ra===null)return!1;var qa,ed,td=0,rd=Ra.length,sd=BASE64_MAP;for(ed=0;ed<rd;ed++)if(qa=sd.indexOf(Ra.charAt(ed)),!(qa>64)){if(qa<0)return!1;td+=6}return td%8===0}__name(resolveYamlBinary,"resolveYamlBinary");function constructYamlBinary(Ra){var qa,ed,td=Ra.replace(/[ \r \n =]/g,""),rd=td.length,sd=BASE64_MAP,od=0,ld=[];for(qa=0;qa<rd;qa++)qa%4===0&&qa&&(ld.push(od>>16&255),ld.push(od>>8&255),ld.push(od&255)),od=od<<6|sd.indexOf(td.charAt(qa));return ed=rd%4*6,ed===0?(ld.push(od>>16&255),ld.push(od>>8&255),ld.push(od&255)):ed===18?(ld.push(od>>10&255),ld.push(od>>2&255)):ed===12&&ld.push(od>>4&255),new Uint8Array(ld)}__name(constructYamlBinary,"constructYamlBinary");function representYamlBinary(Ra){var qa="",ed=0,td,rd,sd=Ra.length,od=BASE64_MAP;for(td=0;td<sd;td++)td%3===0&&td&&(qa+=od[ed>>18&63],qa+=od[ed>>12&63],qa+=od[ed>>6&63],qa+=od[ed&63]),ed=(ed<<8)+Ra[td];return rd=sd%3,rd===0?(qa+=od[ed>>18&63],qa+=od[ed>>12&63],qa+=od[ed>>6&63],qa+=od[ed&63]):rd===2?(qa+=od[ed>>10&63],qa+=od[ed>>4&63],qa+=od[ed<<2&63],qa+=od[64]):rd===1&&(qa+=od[ed>>2&63],qa+=od[ed<<4&63],qa+=od[64],qa+=od[64]),qa}__name(representYamlBinary,"representYamlBinary");function isBinary(Ra){return Object.prototype.toString.call(Ra)==="[object Uint8Array]"}__name(isBinary,"isBinary");var binary=new type $ 1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty $ 3=Object.prototype.hasOwnProperty,_toString $ 2=Object.prototype.toString;function resolveYamlOmap(Ra){if(Ra===null)return!0;var qa=[],ed,td,rd,sd,od,ld=Ra;for(ed=0,td=ld.length;ed<td;ed+=1){if(rd=ld[ed],od=!1,_toString $ 2.call(rd)!=="[object Object]")return!1;for(sd in rd)if(_hasOwnProperty $ 3.call(rd,sd))if(!od)od=!0;else return!1;if(!od)return!1;if(qa.indexOf(sd)===-1)qa.push(sd);else return!1}return!0}__name(resolveYamlOmap,"resolveYamlOmap");function constructYamlOmap(Ra){return Ra!==null?Ra:[]}__name(constructYamlOmap,"constructYamlOmap");var omap=new type $ 1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString $ 1=Object.prototype.toString;function resolveYamlPairs(Ra){if(Ra===null)return!0;var qa,ed,td,rd,sd,od=Ra;for(sd=new Array(od.length),qa=0,ed=od.length;qa<ed;qa+=1){if(td=od[qa],_toString $ 1.call(td)!=="[object Object]"||(rd=Object.keys(td),rd.length!==1))return!1;sd[qa]=[rd[0],td[rd[0]]]}return!0}__name(resolveYamlPairs,"resolveYamlPairs");function constructYamlPairs(Ra){if(Ra===null)return[];var qa,ed,td,rd,sd,od=Ra;for(sd=new Array(od.length),qa=0,ed=od.length;qa<ed;qa+=1)td=od[qa],rd=Object.keys(td),sd[qa]=[rd[0],td[rd[0]]];return sd}__name(constructYamlPairs,"constructYamlPairs");var pairs=new type $ 1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty $ 2=Object.prototype.hasOwnProperty;function resolveYamlSet(Ra){if(Ra===null)return!0;var qa,ed=Ra;for(qa in ed)if(_hasOwnProperty $ 2.call(ed,qa)&&ed[qa]!==null)return!1;return!0}__name(resolveYamlSet,"resolveYamlSet");function constructYamlSet(Ra){return Ra!==null?Ra:{}}__name(constructYamlSet,"constructYamlSet");var set=new type $ 1("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default $ 1=core $ 1.extend({implicit:[timestamp,merge $ 1],explicit:[binary,omap,pairs,set]}),_hasOwnProperty $ 1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[ \x 00- \x 08 \x 0B \x 0C \x 0E- \x 1F \x 7F- \x 84 \x 86- \x 9F \u FFFE \u FFFF]|[ \u D800- \u DBFF](?![ \u DC00- \u DFFF])|(?:[^ \u D800- \u DBFF]|^)[ \u DC00- \u DFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[ \x 85 \u 2028 \u 2029]/,PATTERN_FLOW_INDICATORS=/[, \[ \] \{ \} ]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z \- ]+!) $ /i,PATTERN_TAG_URI=/^(?:!|[^, \[ \] \{ \} ])(?:%[0-9a-f]{2}|[0-9a-z \- #; \/ \? :@&= \+ \$ ,_ \. !~ \* ' \( \) \[ \] ])* $ /i;function _class(Ra){return Object.prototype.toString.call(Ra)}__name(_class,"_class");function is_EOL(Ra){return Ra===10||R
` :Ra===118?" \v ":Ra===102?" \f ":Ra===114?" \r ":Ra===101?" \x 1B":Ra===32?" ":Ra===34?'"':Ra===47?"/":Ra===92?" \\ ":Ra===78?"
":Ra===95?" ":Ra===76?" \u 2028":Ra===80?" \u 2029":""}__name(simpleEscapeSequence,"simpleEscapeSequence");function charFromCodepoint(Ra){return Ra<=65535?String.fromCharCode(Ra):String.fromCharCode((Ra-65536>>10)+55296,(Ra-65536&1023)+56320)}__name(charFromCodepoint,"charFromCodepoint");var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256);for(i $ 1=0;i $ 1<256;i $ 1++)simpleEscapeCheck[i $ 1]=simpleEscapeSequence(i $ 1)?1:0,simpleEscapeMap[i $ 1]=simpleEscapeSequence(i $ 1);var i $ 1;function State $ 1(Ra,qa){this.input=Ra,this.filename=qa.filename||null,this.schema=qa.schema||_default $ 1,this.onWarning=qa.onWarning||null,this.legacy=qa.legacy||!1,this.json=qa.json||!1,this.listener=qa.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Ra.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}__name(State $ 1,"State $ 1");function generateError(Ra,qa){var ed={name:Ra.filename,buffer:Ra.input.slice(0,-1),position:Ra.position,line:Ra.line,column:Ra.position-Ra.lineStart};return ed.snippet=snippet(ed),new exception(qa,ed)}__name(generateError,"generateError");function throwError(Ra,qa){throw generateError(Ra,qa)}__name(throwError,"throwError");function throwWarning(Ra,qa){Ra.onWarning&&Ra.onWarning.call(null,generateError(Ra,qa))}__name(throwWarning,"throwWarning");var directiveHandlers={YAML:__name(function(qa,ed,td){var rd,sd,od;qa.version!==null&&throwError(qa,"duplication of %YAML directive"),td.length!==1&&throwError(qa,"YAML directive accepts exactly one argument"),rd=/^([0-9]+) \. ([0-9]+) $ /.exec(td[0]),rd===null&&throwError(qa,"ill-formed argument of the YAML directive"),sd=parseInt(rd[1],10),od=parseInt(rd[2],10),sd!==1&&throwError(qa,"unacceptable YAML version of the document"),qa.version=td[0],qa.checkLineBreaks=od<2,od!==1&&od!==2&&throwWarning(qa,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:__name(function(qa,ed,td){var rd,sd;td.length!==2&&throwError(qa,"TAG directive accepts exactly two arguments"),rd=td[0],sd=td[1],PATTERN_TAG_HANDLE.test(rd)||throwError(qa,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty $ 1.call(qa.tagMap,rd)&&throwError(qa,'there is a previously declared suffix for "'+rd+'" tag handle'),PATTERN_TAG_URI.test(sd)||throwError(qa,"ill-formed tag prefix (second argument) of the TAG directive");try{sd=decodeURIComponent(sd)}catch{throwError(qa,"tag prefix is malformed: "+sd)}qa.tagMap[rd]=sd},"handleTagDirective")};function captureSegment(Ra,qa,ed,td){var rd,sd,od,ld;if(qa<ed){if(ld=Ra.input.slice(qa,ed),td)for(rd=0,sd=ld.length;rd<sd;rd+=1)od=ld.charCodeAt(rd),od===9||32<=od&&od<=1114111||throwError(Ra,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(ld)&&throwError(Ra,"the stream contains non-printable characters");Ra.result+=ld}}__name(captureSegment,"captureSegment");function mergeMappings(Ra,qa,ed,td){var rd,sd,od,ld;for(common.isObject(ed)||throwError(Ra,"cannot merge mappings; the provided source object is unacceptable"),rd=Object.keys(ed),od=0,ld=rd.length;od<ld;od+=1)sd=rd[od],_hasOwnProperty $ 1.call(qa,sd)||(qa[sd]=ed[sd],td[sd]=!0)}__name(mergeMappings,"mergeMappings");function storeMappingPair(Ra,qa,ed,td,rd,sd,od,ld,cd){var ud,_d;if(Array.isArray(rd))for(rd=Array.prototype.slice.call(rd),ud=0,_d=rd.length;ud<_d;ud+=1)Array.isArray(rd[ud])&&throwError(Ra,"nested arrays are not supported inside keys"),typeof rd=="object"&&_class(rd[ud])==="[object Object]"&&(rd[ud]="[object Object]");if(typeof rd=="object"&&_class(rd)==="[object Object]"&&(rd="[object Object]"),rd=String(rd),qa===null&&(qa={}),td==="tag:yaml.org,2002:merge")if(Array.isArray(sd))for(ud=0,_d=sd.length;ud<_d;ud+=1)mergeMappings(Ra,qa,sd[ud],ed);else mergeMappings(Ra,qa,sd,ed);else!Ra.json&&!_hasOwnProperty $ 1.call(ed,rd)&&_hasOwnProperty $ 1.call(qa,rd)&&(Ra.line=od||Ra.line,Ra.lineStart=ld||Ra.lineStart,Ra.position=cd||Ra.posit
` ,qa-1))}__name(writeFoldedLines,"writeFoldedLines");function readPlainScalar(Ra,qa,ed){var td,rd,sd,od,ld,cd,ud,_d,Ed=Ra.kind,Ad=Ra.result,Td;if(Td=Ra.input.charCodeAt(Ra.position),is_WS_OR_EOL(Td)||is_FLOW_INDICATOR(Td)||Td===35||Td===38||Td===42||Td===33||Td===124||Td===62||Td===39||Td===34||Td===37||Td===64||Td===96||(Td===63||Td===45)&&(rd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(rd)||ed&&is_FLOW_INDICATOR(rd)))return!1;for(Ra.kind="scalar",Ra.result="",sd=od=Ra.position,ld=!1;Td!==0;){if(Td===58){if(rd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(rd)||ed&&is_FLOW_INDICATOR(rd))break}else if(Td===35){if(td=Ra.input.charCodeAt(Ra.position-1),is_WS_OR_EOL(td))break}else{if(Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)||ed&&is_FLOW_INDICATOR(Td))break;if(is_EOL(Td))if(cd=Ra.line,ud=Ra.lineStart,_d=Ra.lineIndent,skipSeparationSpace(Ra,!1,-1),Ra.lineIndent>=qa){ld=!0,Td=Ra.input.charCodeAt(Ra.position);continue}else{Ra.position=od,Ra.line=cd,Ra.lineStart=ud,Ra.lineIndent=_d;break}}ld&&(captureSegment(Ra,sd,od,!1),writeFoldedLines(Ra,Ra.line-cd),sd=od=Ra.position,ld=!1),is_WHITE_SPACE(Td)||(od=Ra.position+1),Td=Ra.input.charCodeAt(++Ra.position)}return captureSegment(Ra,sd,od,!1),Ra.result?!0:(Ra.kind=Ed,Ra.result=Ad,!1)}__name(readPlainScalar,"readPlainScalar");function readSingleQuotedScalar(Ra,qa){var ed,td,rd;if(ed=Ra.input.charCodeAt(Ra.position),ed!==39)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,td=rd=Ra.position;(ed=Ra.input.charCodeAt(Ra.position))!==0;)if(ed===39)if(captureSegment(Ra,td,Ra.position,!0),ed=Ra.input.charCodeAt(++Ra.position),ed===39)td=Ra.position,Ra.position++,rd=Ra.position;else return!0;else is_EOL(ed)?(captureSegment(Ra,td,rd,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),td=rd=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a single quoted scalar"):(Ra.position++,rd=Ra.position);throwError(Ra,"unexpected end of the stream within a single quoted scalar")}__name(readSingleQuotedScalar,"readSingleQuotedScalar");function readDoubleQuotedScalar(Ra,qa){var ed,td,rd,sd,od,ld;if(ld=Ra.input.charCodeAt(Ra.position),ld!==34)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,ed=td=Ra.position;(ld=Ra.input.charCodeAt(Ra.position))!==0;){if(ld===34)return captureSegment(Ra,ed,Ra.position,!0),Ra.position++,!0;if(ld===92){if(captureSegment(Ra,ed,Ra.position,!0),ld=Ra.input.charCodeAt(++Ra.position),is_EOL(ld))skipSeparationSpace(Ra,!1,qa);else if(ld<256&&simpleEscapeCheck[ld])Ra.result+=simpleEscapeMap[ld],Ra.position++;else if((od=escapedHexLen(ld))>0){for(rd=od,sd=0;rd>0;rd--)ld=Ra.input.charCodeAt(++Ra.position),(od=fromHexCode(ld))>=0?sd=(sd<<4)+od:throwError(Ra,"expected hexadecimal character");Ra.result+=charFromCodepoint(sd),Ra.position++}else throwError(Ra,"unknown escape sequence");ed=td=Ra.position}else is_EOL(ld)?(captureSegment(Ra,ed,td,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),ed=td=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a double quoted scalar"):(Ra.position++,td=Ra.position)}throwError(Ra,"unexpected end of the stream within a double quoted scalar")}__name(readDoubleQuotedScalar,"readDoubleQuotedScalar");function readFlowCollection(Ra,qa){var ed=!0,td,rd,sd,od=Ra.tag,ld,cd=Ra.anchor,ud,_d,Ed,Ad,Td,Nd=Object.create(null),Rd,Bd,kd,Od;if(Od=Ra.input.charCodeAt(Ra.position),Od===91)_d=93,Td=!1,ld=[];else if(Od===123)_d=125,Td=!0,ld={};else return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=ld),Od=Ra.input.charCodeAt(++Ra.position);Od!==0;){if(skipSeparationSpace(Ra,!0,qa),Od=Ra.input.charCodeAt(Ra.position),Od===_d)return Ra.position++,Ra.tag=od,Ra.anchor=cd,Ra.kind=Td?"mapping":"sequence",Ra.result=ld,!0;ed?Od===44&&throwError(Ra,"expected the node content, but found ','"):throwError(Ra,"missed comma between flow collection entries"),Bd=Rd=kd=null,Ed=Ad=!1,Od===63&&(ud=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(ud)&&(Ed=Ad=!0,Ra.position++,skipSeparationSpace(Ra,!0,qa))),td=Ra.l
` ,sd?1+cd:cd):rd===CHOMPING_CLIP&&sd&&(Ra.result+= `
` );break}for(td?is_WHITE_SPACE(Ed)?(ud=!0,Ra.result+=common.repeat( `
` ,sd?1+cd:cd)):ud?(ud=!1,Ra.result+=common.repeat( `
` ,cd+1)):cd===0?sd&&(Ra.result+=" "):Ra.result+=common.repeat( `
` ,cd):Ra.result+=common.repeat( `
` ,sd?1+cd:cd),sd=!0,od=!0,cd=0,ed=Ra.position;!is_EOL(Ed)&&Ed!==0;)Ed=Ra.input.charCodeAt(++Ra.position);captureSegment(Ra,ed,Ra.position,!1)}return!0}__name(readBlockScalar,"readBlockScalar");function readBlockSequence(Ra,qa){var ed,td=Ra.tag,rd=Ra.anchor,sd=[],od,ld=!1,cd;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=sd),cd=Ra.input.charCodeAt(Ra.position);cd!==0&&(Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),!(cd!==45||(od=Ra.input.charCodeAt(Ra.position+1),!is_WS_OR_EOL(od))));){if(ld=!0,Ra.position++,skipSeparationSpace(Ra,!0,-1)&&Ra.lineIndent<=qa){sd.push(null),cd=Ra.input.charCodeAt(Ra.position);continue}if(ed=Ra.line,composeNode(Ra,qa,CONTEXT_BLOCK_IN,!1,!0),sd.push(Ra.result),skipSeparationSpace(Ra,!0,-1),cd=Ra.input.charCodeAt(Ra.position),(Ra.line===ed||Ra.lineIndent>qa)&&cd!==0)throwError(Ra,"bad indentation of a sequence entry");else if(Ra.lineIndent<qa)break}return ld?(Ra.tag=td,Ra.anchor=rd,Ra.kind="sequence",Ra.result=sd,!0):!1}__name(readBlockSequence,"readBlockSequence");function readBlockMapping(Ra,qa,ed){var td,rd,sd,od,ld,cd,ud=Ra.tag,_d=Ra.anchor,Ed={},Ad=Object.create(null),Td=null,Nd=null,Rd=null,Bd=!1,kd=!1,Od;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=Ed),Od=Ra.input.charCodeAt(Ra.position);Od!==0;){if(!Bd&&Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),td=Ra.input.charCodeAt(Ra.position+1),sd=Ra.line,(Od===63||Od===58)&&is_WS_OR_EOL(td))Od===63?(Bd&&(storeMappingPair(Ra,Ed,Ad,Td,Nd,null,od,ld,cd),Td=Nd=Rd=null),kd=!0,Bd=!0,rd=!0):Bd?(Bd=!1,rd=!0):throwError(Ra,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Ra.position+=1,Od=td;else{if(od=Ra.line,ld=Ra.lineStart,cd=Ra.position,!composeNode(Ra,ed,CONTEXT_FLOW_OUT,!1,!0))break;if(Ra.line===sd){for(Od=Ra.input.charCodeAt(Ra.position);is_WHITE_SPACE(Od);)Od=Ra.input.charCodeAt(++Ra.position);if(Od===58)Od=Ra.input.charCodeAt(++Ra.position),is_WS_OR_EOL(Od)||throwError(Ra,"a whitespace character is expected after the key-value separator within a block mapping"),Bd&&(storeMappingPair(Ra,Ed,Ad,Td,Nd,null,od,ld,cd),Td=Nd=Rd=null),kd=!0,Bd=!1,rd=!1,Td=Ra.tag,Nd=Ra.result;else if(kd)throwError(Ra,"can not read an implicit mapping pair; a colon is missed");else return Ra.tag=ud,Ra.anchor=_d,!0}else if(kd)throwError(Ra,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Ra.tag=ud,Ra.anchor=_d,!0}if((Ra.line===sd||Ra.lineIndent>qa)&&(Bd&&(od=Ra.line,ld=Ra.lineStart,cd=Ra.position),composeNode(Ra,qa,CONTEXT_BLOCK_OUT,!0,rd)&&(Bd?Nd=Ra.result:Rd=Ra.result),Bd||(storeMappingPair(Ra,Ed,Ad,Td,Nd,Rd,od,ld,cd),Td=Nd=Rd=null),skipSeparationSpace(Ra,!0,-1),Od=Ra.input.charCodeAt(Ra.position)),(Ra.line===sd||Ra.lineIndent>qa)&&Od!==0)throwError(Ra,"bad indentation of a mapping entry");else if(Ra.lineIndent<qa)break}return Bd&&storeMappingPair(Ra,Ed,Ad,Td,Nd,null,od,ld,cd),kd&&(Ra.tag=ud,Ra.anchor=_d,Ra.kind="mapping",Ra.result=Ed),kd}__name(readBlockMapping,"readBlockMapping");function readTagProperty(Ra){var qa,ed=!1,td=!1,rd,sd,od;if(od=Ra.input.charCodeAt(Ra.position),od!==33)return!1;if(Ra.tag!==null&&throwError(Ra,"duplication of a tag property"),od=Ra.input.charCodeAt(++Ra.position),od===60?(ed=!0,od=Ra.input.charCodeAt(++Ra.position)):od===33?(td=!0,rd="!!",od=Ra.input.charCodeAt(++Ra.position)):rd="!",qa=Ra.position,ed){do od=Ra.input.charCodeAt(++Ra.position);while(od!==0&&od!==62);Ra.position<Ra.length?(sd=Ra.input.slice(qa,Ra.position),od=Ra.input.charCodeAt(++Ra.position)):throwError(Ra,"unexpected end of the stream within a verbatim tag")}else{for(;od!==0&&!is_WS_OR_EOL(od);)od===33&&(td?throwError(Ra,"tag suffix cannot contain exclamation marks"):(rd=Ra.input.slice(qa-1,Ra.position+1),PATTERN_TAG_HANDLE.test(rd)||throwError(Ra,"named tag handle cannot contain such characters"),td=!0,qa=Ra.position+1)),od=Ra.input.charCodeAt(++Ra.position);
` ),Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)));var ed=new State $ 1(Ra,qa),td=Ra.indexOf(" \0 ");for(td!==-1&&(ed.position=td,throwError(ed,"null byte is not allowed in input")),ed.input+=" \0 ";ed.input.charCodeAt(ed.position)===32;)ed.lineIndent+=1,ed.position+=1;for(;ed.position<ed.length-1;)readDocument(ed);return ed.documents}__name(loadDocuments,"loadDocuments");function loadAll $ 1(Ra,qa,ed){qa!==null&&typeof qa=="object"&&typeof ed>"u"&&(ed=qa,qa=null);var td=loadDocuments(Ra,ed);if(typeof qa!="function")return td;for(var rd=0,sd=td.length;rd<sd;rd+=1)qa(td[rd])}__name(loadAll $ 1,"loadAll $ 1");function load $ 1(Ra,qa){var ed=loadDocuments(Ra,qa);if(ed.length!==0){if(ed.length===1)return ed[0];throw new exception("expected a single document in the stream, but found more")}}__name(load $ 1,"load $ 1");var loadAll_1=loadAll $ 1,load_1=load $ 1,loader25={loadAll:loadAll_1,load:load_1},_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_BOM=65279,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]=" \\ 0";ESCAPE_SEQUENCES[7]=" \\ a";ESCAPE_SEQUENCES[8]=" \\ b";ESCAPE_SEQUENCES[9]=" \\ t";ESCAPE_SEQUENCES[10]=" \\ n";ESCAPE_SEQUENCES[11]=" \\ v";ESCAPE_SEQUENCES[12]=" \\ f";ESCAPE_SEQUENCES[13]=" \\ r";ESCAPE_SEQUENCES[27]=" \\ e";ESCAPE_SEQUENCES[34]=' \\ "';ESCAPE_SEQUENCES[92]=" \\ \\ ";ESCAPE_SEQUENCES[133]=" \\ N";ESCAPE_SEQUENCES[160]=" \\ _";ESCAPE_SEQUENCES[8232]=" \\ L";ESCAPE_SEQUENCES[8233]=" \\ P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?: \. [0-9_]*)? $ /;function compileStyleMap(Ra,qa){var ed,td,rd,sd,od,ld,cd;if(qa===null)return{};for(ed={},td=Object.keys(qa),rd=0,sd=td.length;rd<sd;rd+=1)od=td[rd],ld=String(qa[od]),od.slice(0,2)==="!!"&&(od="tag:yaml.org,2002:"+od.slice(2)),cd=Ra.compiledTypeMap.fallback[od],cd&&_hasOwnProperty.call(cd.styleAliases,ld)&&(ld=cd.styleAliases[ld]),ed[od]=ld;return ed}__name(compileStyleMap,"compileStyleMap");function encodeHex(Ra){var qa,ed,td;if(qa=Ra.toString(16).toUpperCase(),Ra<=255)ed="x",td=2;else if(Ra<=65535)ed="u",td=4;else if(Ra<=4294967295)ed="U",td=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return" \\ "+ed+common.repeat("0",td-qa.length)+qa}__name(encodeHex,"encodeHex");var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(Ra){this.schema=Ra.schema||_default $ 1,this.indent=Math.max(1,Ra.indent||2),this.noArrayIndent=Ra.noArrayIndent||!1,this.skipInvalid=Ra.skipInvalid||!1,this.flowLevel=common.isNothing(Ra.flowLevel)?-1:Ra.flowLevel,this.styleMap=compileStyleMap(this.schema,Ra.styles||null),this.sortKeys=Ra.sortKeys||!1,this.lineWidth=Ra.lineWidth||80,this.noRefs=Ra.noRefs||!1,this.noCompatMode=Ra.noCompatMode||!1,this.condenseFlow=Ra.condenseFlow||!1,this.quotingType=Ra.quotingType==='"'?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE,this.forceQuotes=Ra.forceQuotes||!1,this.replacer=typeof Ra.replacer=="function"?Ra.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}__name(State,"State");function indentString(Ra,qa){for(var ed=common.repeat(" ",qa),td=0,rd=-1,sd="",od,ld=Ra.length;td<ld;)rd=Ra.indexOf( `
` ,td),rd===-1?(od=Ra.slice(td),td=ld):(od=Ra.slice(td,rd+1),td=rd+1),od.length&&od!== `
` &&(sd+=ed),sd+=od;return sd}__name(indentString,"indentString");function generateNextLine(Ra,qa){return `
` +common.repeat(" ",Ra.indent*qa)}__name(generateNextLine,"generateNextLine");function testImplicitResolving(Ra,qa){var ed,td,rd;for(ed=0,td=Ra.implicitTypes.length;ed<td;ed+=1)if(rd=Ra.implicitTypes[ed],rd.resolve(qa))return!0;return!1}__name(testImplicitResolving,"testImplicitResolving");function isWhitespace $ 1(Ra){return Ra===CHAR_SPACE||Ra===CHAR_TAB}__name(isWhitespace $ 1,"isWhitespace");function isPrintable(Ra){return 32<=Ra&&Ra<=126||161<=Ra&&Ra<=55295&&Ra!==8232&&Ra!==8233||57344<=Ra&&Ra<=65533&&Ra!==CHAR_BOM||65536<=Ra&&Ra<=1114111}__name(isPrintable,"isPrintable");function isNsCharOrWhitespace(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&Ra!==CHAR_CARRIAGE_RETURN&&Ra!==CHAR_LINE_FEED}__name(isNsCharOrWhitespace,"isNsCharOrWhitespace");function isPlainSafe(Ra,qa,ed){var td=isNsCharOrWhitespace(Ra),rd=td&&!isWhitespace $ 1(Ra);return(ed?td:td&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET)&&Ra!==CHAR_SHARP&&!(qa===CHAR_COLON&&!rd)||isNsCharOrWhitespace(qa)&&!isWhitespace $ 1(qa)&&Ra===CHAR_SHARP||qa===CHAR_COLON&&rd}__name(isPlainSafe,"isPlainSafe");function isPlainSafeFirst(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&!isWhitespace $ 1(Ra)&&Ra!==CHAR_MINUS&&Ra!==CHAR_QUESTION&&Ra!==CHAR_COLON&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET&&Ra!==CHAR_SHARP&&Ra!==CHAR_AMPERSAND&&Ra!==CHAR_ASTERISK&&Ra!==CHAR_EXCLAMATION&&Ra!==CHAR_VERTICAL_LINE&&Ra!==CHAR_EQUALS&&Ra!==CHAR_GREATER_THAN&&Ra!==CHAR_SINGLE_QUOTE&&Ra!==CHAR_DOUBLE_QUOTE&&Ra!==CHAR_PERCENT&&Ra!==CHAR_COMMERCIAL_AT&&Ra!==CHAR_GRAVE_ACCENT}__name(isPlainSafeFirst,"isPlainSafeFirst");function isPlainSafeLast(Ra){return!isWhitespace $ 1(Ra)&&Ra!==CHAR_COLON}__name(isPlainSafeLast,"isPlainSafeLast");function codePointAt(Ra,qa){var ed=Ra.charCodeAt(qa),td;return ed>=55296&&ed<=56319&&qa+1<Ra.length&&(td=Ra.charCodeAt(qa+1),td>=56320&&td<=57343)?(ed-55296)*1024+td-56320+65536:ed}__name(codePointAt,"codePointAt");function needIndentIndicator(Ra){var qa=/^ \n * /;return qa.test(Ra)}__name(needIndentIndicator,"needIndentIndicator");var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(Ra,qa,ed,td,rd,sd,od,ld){var cd,ud=0,_d=null,Ed=!1,Ad=!1,Td=td!==-1,Nd=-1,Rd=isPlainSafeFirst(codePointAt(Ra,0))&&isPlainSafeLast(codePointAt(Ra,Ra.length-1));if(qa||od)for(cd=0;cd<Ra.length;ud>=65536?cd+=2:cd++){if(ud=codePointAt(Ra,cd),!isPrintable(ud))return STYLE_DOUBLE;Rd=Rd&&isPlainSafe(ud,_d,ld),_d=ud}else{for(cd=0;cd<Ra.length;ud>=65536?cd+=2:cd++){if(ud=codePointAt(Ra,cd),ud===CHAR_LINE_FEED)Ed=!0,Td&&(Ad=Ad||cd-Nd-1>td&&Ra[Nd+1]!==" ",Nd=cd);else if(!isPrintable(ud))return STYLE_DOUBLE;Rd=Rd&&isPlainSafe(ud,_d,ld),_d=ud}Ad=Ad||Td&&cd-Nd-1>td&&Ra[Nd+1]!==" "}return!Ed&&!Ad?Rd&&!od&&!rd(Ra)?STYLE_PLAIN:sd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:ed>9&&needIndentIndicator(Ra)?STYLE_DOUBLE:od?sd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Ad?STYLE_FOLDED:STYLE_LITERAL}__name(chooseScalarStyle,"chooseScalarStyle");function writeScalar(Ra,qa,ed,td,rd){Ra.dump=function(){if(qa.length===0)return Ra.quotingType===QUOTING_TYPE_DOUBLE?'""':"''";if(!Ra.noCompatMode&&(DEPRECATED_BOOLEANS_SYNTAX.indexOf(qa)!==-1||DEPRECATED_BASE60_SYNTAX.test(qa)))return Ra.quotingType===QUOTING_TYPE_DOUBLE?'"'+qa+'"':"'"+qa+"'";var sd=Ra.indent*Math.max(1,ed),od=Ra.lineWidth===-1?-1:Math.max(Math.min(Ra.lineWidth,40),Ra.lineWidth-sd),ld=td||Ra.flowLevel>-1&&ed>=Ra.flowLevel;function cd(ud){return testImplicitResolving(Ra,ud)}switch(__name(cd,"testAmbiguity"),chooseScalarStyle(qa,ld,Ra.indent,od,cd,Ra.quotingType,Ra.forceQuotes&&!td,rd)){case STYLE_PLAIN:return qa;case STYLE_SINGLE:return"'"+qa.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(qa,sd));case STYLE_FOLDED:return">"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(foldString(qa,od),sd));case STYLE_DOUBLE:return'"'+escapeString(qa)+'"';defaul
` ,rd=td&&(Ra[Ra.length-2]=== `
2024-08-30 15:19:18 +08:00
` ||Ra=== `
2024-09-16 00:03:18 +08:00
` ),sd=rd?"+":td?"":"-";return ed+sd+ `
2024-08-30 15:19:18 +08:00
` }__name(blockHeader,"blockHeader");function dropEndingNewline(Ra){return Ra[Ra.length-1]=== `
2024-09-16 00:03:18 +08:00
` ?Ra.slice(0,-1):Ra}__name(dropEndingNewline,"dropEndingNewline");function foldString(Ra,qa){for(var ed=/( \n +)([^ \n ]*)/g,td=function(){var ud=Ra.indexOf( `
` );return ud=ud!==-1?ud:Ra.length,ed.lastIndex=ud,foldLine(Ra.slice(0,ud),qa)}(),rd=Ra[0]=== `
` ||Ra[0]===" ",sd,od;od=ed.exec(Ra);){var ld=od[1],cd=od[2];sd=cd[0]===" ",td+=ld+(!rd&&!sd&&cd!==""? `
` :"")+foldLine(cd,qa),rd=sd}return td}__name(foldString,"foldString");function foldLine(Ra,qa){if(Ra===""||Ra[0]===" ")return Ra;for(var ed=/ [^ ]/g,td,rd=0,sd,od=0,ld=0,cd="";td=ed.exec(Ra);)ld=td.index,ld-rd>qa&&(sd=od>rd?od:ld,cd+= `
` +Ra.slice(rd,sd),rd=sd+1),od=ld;return cd+= `
` ,Ra.length-rd>qa&&od>rd?cd+=Ra.slice(rd,od)+ `
` +Ra.slice(od+1):cd+=Ra.slice(rd),cd.slice(1)}__name(foldLine,"foldLine");function escapeString(Ra){for(var qa="",ed=0,td,rd=0;rd<Ra.length;ed>=65536?rd+=2:rd++)ed=codePointAt(Ra,rd),td=ESCAPE_SEQUENCES[ed],!td&&isPrintable(ed)?(qa+=Ra[rd],ed>=65536&&(qa+=Ra[rd+1])):qa+=td||encodeHex(ed);return qa}__name(escapeString,"escapeString");function writeFlowSequence(Ra,qa,ed){var td="",rd=Ra.tag,sd,od,ld;for(sd=0,od=ed.length;sd<od;sd+=1)ld=ed[sd],Ra.replacer&&(ld=Ra.replacer.call(ed,String(sd),ld)),(writeNode(Ra,qa,ld,!1,!1)||typeof ld>"u"&&writeNode(Ra,qa,null,!1,!1))&&(td!==""&&(td+=","+(Ra.condenseFlow?"":" ")),td+=Ra.dump);Ra.tag=rd,Ra.dump="["+td+"]"}__name(writeFlowSequence,"writeFlowSequence");function writeBlockSequence(Ra,qa,ed,td){var rd="",sd=Ra.tag,od,ld,cd;for(od=0,ld=ed.length;od<ld;od+=1)cd=ed[od],Ra.replacer&&(cd=Ra.replacer.call(ed,String(od),cd)),(writeNode(Ra,qa+1,cd,!0,!0,!1,!0)||typeof cd>"u"&&writeNode(Ra,qa+1,null,!0,!0,!1,!0))&&((!td||rd!=="")&&(rd+=generateNextLine(Ra,qa)),Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?rd+="-":rd+="- ",rd+=Ra.dump);Ra.tag=sd,Ra.dump=rd||"[]"}__name(writeBlockSequence,"writeBlockSequence");function writeFlowMapping(Ra,qa,ed){var td="",rd=Ra.tag,sd=Object.keys(ed),od,ld,cd,ud,_d;for(od=0,ld=sd.length;od<ld;od+=1)_d="",td!==""&&(_d+=", "),Ra.condenseFlow&&(_d+='"'),cd=sd[od],ud=ed[cd],Ra.replacer&&(ud=Ra.replacer.call(ed,cd,ud)),writeNode(Ra,qa,cd,!1,!1)&&(Ra.dump.length>1024&&(_d+="? "),_d+=Ra.dump+(Ra.condenseFlow?'"':"")+":"+(Ra.condenseFlow?"":" "),writeNode(Ra,qa,ud,!1,!1)&&(_d+=Ra.dump,td+=_d));Ra.tag=rd,Ra.dump="{"+td+"}"}__name(writeFlowMapping,"writeFlowMapping");function writeBlockMapping(Ra,qa,ed,td){var rd="",sd=Ra.tag,od=Object.keys(ed),ld,cd,ud,_d,Ed,Ad;if(Ra.sortKeys===!0)od.sort();else if(typeof Ra.sortKeys=="function")od.sort(Ra.sortKeys);else if(Ra.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(ld=0,cd=od.length;ld<cd;ld+=1)Ad="",(!td||rd!=="")&&(Ad+=generateNextLine(Ra,qa)),ud=od[ld],_d=ed[ud],Ra.replacer&&(_d=Ra.replacer.call(ed,ud,_d)),writeNode(Ra,qa+1,ud,!0,!0,!0)&&(Ed=Ra.tag!==null&&Ra.tag!=="?"||Ra.dump&&Ra.dump.length>1024,Ed&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Ad+="?":Ad+="? "),Ad+=Ra.dump,Ed&&(Ad+=generateNextLine(Ra,qa)),writeNode(Ra,qa+1,_d,!0,Ed)&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Ad+=":":Ad+=": ",Ad+=Ra.dump,rd+=Ad));Ra.tag=sd,Ra.dump=rd||"{}"}__name(writeBlockMapping,"writeBlockMapping");function detectType2(Ra,qa,ed){var td,rd,sd,od,ld,cd;for(rd=ed?Ra.explicitTypes:Ra.implicitTypes,sd=0,od=rd.length;sd<od;sd+=1)if(ld=rd[sd],(ld.instanceOf||ld.predicate)&&(!ld.instanceOf||typeof qa=="object"&&qa instanceof ld.instanceOf)&&(!ld.predicate||ld.predicate(qa))){if(ed?ld.multi&&ld.representName?Ra.tag=ld.representName(qa):Ra.tag=ld.tag:Ra.tag="?",ld.represent){if(cd=Ra.styleMap[ld.tag]||ld.defaultStyle,_toString.call(ld.represent)==="[object Function]")td=ld.represent(qa,cd);else if(_hasOwnProperty.call(ld.represent,cd))td=ld.represent[cd](qa,cd);else throw new exception("!<"+ld.tag+'> tag resolver accepts not "'+cd+'" style');Ra.dump=td}return!0}return!1}__name(detectType2,"detectType");function writeNode(Ra,qa,ed,td,rd,sd,od){Ra.tag=null,Ra.dump=ed,detectType2(Ra,ed,!1)||detectType2(Ra,ed,!0);var ld=_toString.call(Ra.dump),cd=td,ud;td&&(td=Ra.flowLevel<0||Ra.flowLevel>qa);var _d=ld==="[object Object]"||ld==="[object Array]",Ed,Ad;if(_d&&(Ed=Ra.duplicates.indexOf(ed),Ad=Ed!==-1),(Ra.tag!==null&&Ra.tag!=="?"||Ad||Ra.indent!==2&&qa>0)&&(rd=!1),Ad&&Ra.usedDuplicates[Ed])Ra.dump="*ref_"+Ed;else{if(_d&&Ad&&!Ra.usedDuplicates[Ed]&&(Ra.usedDuplicates[Ed]=!0),ld==="[object Object]")td&&Object.keys(Ra.dump).length!==0?(writeBlockMapping(Ra,qa,Ra.dump,rd),Ad&&(Ra.dump="&ref_"+Ed+Ra.dump)):(writeFlowMapping(Ra,qa,Ra.dump),Ad&&(Ra.dump="&ref_"+Ed+" "+Ra.dump));else if(ld==="[object Array]")td&&Ra.dump.length!==0?(Ra.noArrayIndent&&!od&&qa>0?writeBlockSequence(Ra,qa-1,Ra.dump,rd):writeBlockSequence(Ra,qa,Ra.dump,rd),Ad&&(Ra.dump="&ref_"+Ed+Ra.dump)):(writeFlowSequence(Ra,qa,Ra.dump),Ad&&(Ra.dump="
` :""}__name(dump $ 1,"dump $ 1");function renamed(Ra,qa){return function(){throw new Error("Function yaml."+Ra+" is removed in js-yaml 4. Use yaml."+qa+" instead, which is now safe by default.")}}__name(renamed,"renamed");var JSON_SCHEMA=json,load $ 2=loader25.load;function extractFrontMatter(Ra){const qa=Ra.match(frontMatterRegex);if(!qa)return{text:Ra,metadata:{}};let ed=load $ 2(qa[1],{schema:JSON_SCHEMA})??{};ed=typeof ed=="object"&&!Array.isArray(ed)?ed:{};const td={};return ed.displayMode&&(td.displayMode=ed.displayMode.toString()),ed.title&&(td.title=ed.title.toString()),ed.config&&(td.config=ed.config),{text:Ra.slice(qa[0].length),metadata:td}}__name(extractFrontMatter,"extractFrontMatter");var cleanupText=__name(Ra=>Ra.replace(/ \r \n ?/g, `
` ).replace(/<( \w +)([^>]*)>/g,(qa,ed,td)=>"<"+ed+td.replace(/="([^"]*)"/g,"=' $ 1'")+">"),"cleanupText"),processFrontmatter=__name(Ra=>{const{text:qa,metadata:ed}=extractFrontMatter(Ra),{displayMode:td,title:rd,config:sd={}}=ed;return td&&(sd.gantt||(sd.gantt={}),sd.gantt.displayMode=td),{title:rd,config:sd,text:qa}},"processFrontmatter"),processDirectives=__name(Ra=>{const qa=utils_default.detectInit(Ra)??{},ed=utils_default.detectDirective(Ra,"wrap");return Array.isArray(ed)?qa.wrap=ed.some(({type:td})=>td==="wrap"):(ed==null?void 0:ed.type)==="wrap"&&(qa.wrap=!0),{text:removeDirectives(Ra),directive:qa}},"processDirectives");function preprocessDiagram(Ra){const qa=cleanupText(Ra),ed=processFrontmatter(qa),td=processDirectives(ed.text),rd=cleanAndMerge(ed.config,td.directive);return Ra=cleanupComments(td.text),{code:Ra,title:ed.title,config:rd}}__name(preprocessDiagram,"preprocessDiagram");function toBase64 $ 1(Ra){const qa=new TextEncoder().encode(Ra),ed=Array.from(qa,td=>String.fromCodePoint(td)).join("");return btoa(ed)}__name(toBase64 $ 1,"toBase64");var MAX_TEXTLENGTH=5e4,MAX_TEXTLENGTH_EXCEEDED_MSG="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",SECURITY_LVL_SANDBOX="sandbox",SECURITY_LVL_LOOSE="loose",XMLNS_SVG_STD="http://www.w3.org/2000/svg",XMLNS_XLINK_STD="http://www.w3.org/1999/xlink",XMLNS_XHTML_STD="http://www.w3.org/1999/xhtml",IFRAME_WIDTH="100%",IFRAME_HEIGHT="100%",IFRAME_STYLES="border:0;margin:0;",IFRAME_BODY_STYLE="margin:0",IFRAME_SANDBOX_OPTS="allow-top-navigation-by-user-activation allow-popups",IFRAME_NOT_SUPPORTED_MSG='The "iframe" tag is not supported by your browser.',DOMPURIFY_TAGS=["foreignobject"],DOMPURIFY_ATTR=["dominant-baseline"];function processAndSetConfigs(Ra){const qa=preprocessDiagram(Ra);return reset(),addDirective(qa.config??{}),qa}__name(processAndSetConfigs,"processAndSetConfigs");async function parse $ 4(Ra,qa){addDiagrams();try{const{code:ed}=processAndSetConfigs(Ra);return{diagramType:(await getDiagramFromText(ed)).type}}catch(ed){if(qa!=null&&qa.suppressErrors)return!1;throw ed}}__name(parse $ 4,"parse");var cssImportantStyles=__name((Ra,qa,ed=[])=> `
. $ { Ra } $ { qa } { $ { ed . join ( " !important; " ) } ! important ; } ` ,"cssImportantStyles"),createCssStyles=__name((Ra,qa=new Map)=>{var td;let ed="";if(Ra.themeCSS!==void 0&&(ed+= `
$ { Ra . themeCSS } ` ),Ra.fontFamily!==void 0&&(ed+= `
: root { -- mermaid - font - family : $ { Ra . fontFamily } } ` ),Ra.altFontFamily!==void 0&&(ed+= `
: root { -- mermaid - alt - font - family : $ { Ra . altFontFamily } } ` ),qa instanceof Map){const ld=Ra.htmlLabels??((td=Ra.flowchart)==null?void 0:td.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];qa.forEach(cd=>{isEmpty $ 1(cd.styles)||ld.forEach(ud=>{ed+=cssImportantStyles(cd.id,ud,cd.styles)}),isEmpty $ 1(cd.textStyles)||(ed+=cssImportantStyles(cd.id,"tspan",((cd==null?void 0:cd.textStyles)||[]).map(ud=>ud.replace("color","fill"))))})}return ed},"createCssStyles"),createUserStyles=__name((Ra,qa,ed,td)=>{const rd=createCssStyles(Ra,ed),sd=styles_default(qa,rd,Ra.themeVariables);return serialize(compile $ 2( ` $ { td } { $ { sd } } ` ),stringify $ 4)},"createUserStyles"),cleanUpSvgCode=__name((Ra="",qa,ed)=>{let td=Ra;return!ed&&!qa&&(td=td.replace(/marker-end="url \( [ \d +./:=?A-Za-z-]*?#/g,'marker-end="url(#')),td=decodeEntities(td),td=td.replace(/<br>/g,"<br/>"),td},"cleanUpSvgCode"),putIntoIFrame=__name((Ra="",qa)=>{var rd,sd;const ed=(sd=(rd=qa==null?void 0:qa.viewBox)==null?void 0:rd.baseVal)!=null&&sd.height?qa.viewBox.baseVal.height+"px":IFRAME_HEIGHT,td=toBase64 $ 1( ` < body style = "${IFRAME_BODY_STYLE}" > $ { Ra } < / b o d y > ` ) ; r e t u r n ` < i f r a m e s t y l e = " w i d t h : $ { I F R A M E _ W I D T H } ; h e i g h t : $ { e d } ; $ { I F R A M E _ S T Y L E S } " s r c = " d a t a : t e x t / h t m l ; c h a r s e t = U T F - 8 ; b a s e 6 4 , $ { t d } " s a n d b o x = " $ { I F R A M E _ S A N D B O X _ O P T S } " >
2024-08-27 22:31:52 +08:00
$ { IFRAME _NOT _SUPPORTED _MSG }
2024-09-16 00:03:18 +08:00
< / i f r a m e > ` } , " p u t I n t o I F r a m e " ) , a p p e n d D i v S v g G = _ _ n a m e ( ( R a , q a , e d , t d , r d ) = > { c o n s t s d = R a . a p p e n d ( " d i v " ) ; s d . a t t r ( " i d " , e d ) , t d & & s d . a t t r ( " s t y l e " , t d ) ; c o n s t o d = s d . a p p e n d ( " s v g " ) . a t t r ( " i d " , q a ) . a t t r ( " w i d t h " , " 1 0 0 % " ) . a t t r ( " x m l n s " , X M L N S _ S V G _ S T D ) ; r e t u r n r d & & o d . a t t r ( " x m l n s : x l i n k " , r d ) , o d . a p p e n d ( " g " ) , R a } , " a p p e n d D i v S v g G " ) ; f u n c t i o n s a n d b o x e d I f r a m e ( R a , q a ) { r e t u r n R a . a p p e n d ( " i f r a m e " ) . a t t r ( " i d " , q a ) . a t t r ( " s t y l e " , " w i d t h : 1 0 0 % ; h e i g h t : 1 0 0 % ; " ) . a t t r ( " s a n d b o x " , " " ) } _ _ n a m e ( s a n d b o x e d I f r a m e , " s a n d b o x e d I f r a m e " ) ; v a r r e m o v e E x i s t i n g E l e m e n t s = _ _ n a m e ( ( R a , q a , e d , t d ) = > { v a r r d , s d , o d ; ( r d = R a . g e t E l e m e n t B y I d ( q a ) ) = = n u l l | | r d . r e m o v e ( ) , ( s d = R a . g e t E l e m e n t B y I d ( e d ) ) = = n u l l | | s d . r e m o v e ( ) , ( o d = R a . g e t E l e m e n t B y I d ( t d ) ) = = n u l l | | o d . r e m o v e ( ) } , " r e m o v e E x i s t i n g E l e m e n t s " ) , r e n d e r = _ _ n a m e ( a s y n c f u n c t i o n ( R a , q a , e d ) { v a r d f , m f , _ f , h f , g f , y f ; a d d D i a g r a m s ( ) ; c o n s t t d = p r o c e s s A n d S e t C o n f i g s ( q a ) ; q a = t d . c o d e ; c o n s t r d = g e t C o n f i g $ 1 ( ) ; l o g $ 1 . d e b u g ( r d ) , q a . l e n g t h > ( ( r d = = n u l l ? v o i d 0 : r d . m a x T e x t S i z e ) ? ? M A X _ T E X T L E N G T H ) & & ( q a = M A X _ T E X T L E N G T H _ E X C E E D E D _ M S G ) ; c o n s t s d = " # " + R a , o d = " i " + R a , l d = " # " + o d , c d = " d " + R a , u d = " # " + c d , _ d = _ _ n a m e ( ( ) = > { c o n s t F f = s e l e c t ( A d ? l d : u d ) . n o d e ( ) ; F f & & " r e m o v e " i n F f & & F f . r e m o v e ( ) } , " r e m o v e T e m p E l e m e n t s " ) ; l e t E d = s e l e c t ( " b o d y " ) ; c o n s t A d = r d . s e c u r i t y L e v e l = = = S E C U R I T Y _ L V L _ S A N D B O X , T d = r d . s e c u r i t y L e v e l = = = S E C U R I T Y _ L V L _ L O O S E , N d = r d . f o n t F a m i l y ; i f ( e d ! = = v o i d 0 ) { i f ( e d & & ( e d . i n n e r H T M L = " " ) , A d ) { c o n s t C f = s a n d b o x e d I f r a m e ( s e l e c t ( e d ) , o d ) ; E d = s e l e c t ( C f . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , E d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e E d = s e l e c t ( e d ) ; a p p e n d D i v S v g G ( E d , R a , c d , ` f o n t - f a m i l y : $ { N d } ` , X M L N S _ X L I N K _ S T D ) } e l s e { i f ( r e m o v e E x i s t i n g E l e m e n t s ( d o c u m e n t , R a , c d , o d ) , A d ) { c o n s t C f = s a n d b o x e d I f r a m e ( s e l e c t ( " b o d y " ) , o d ) ; E d = s e l e c t ( C f . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , E d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e E d = s e l e c t ( " b o d y " ) ; a p p e n d D i v S v g G ( E d , R a , c d ) } l e t R d , B d ; t r y { R d = a w a i t D i a g r a m . f r o m T e x t ( q a , { t i t l e : t d . t i t l e } ) } c a t c h ( C f ) { i f ( r d . s u p p r e s s E r r o r R e n d e r i n g ) t h r o w _ d ( ) , C f ; R d = a w a i t D i a g r a m . f r o m T e x t ( " e r r o r " ) , B d = C f } c o n s t k d = E d . s e l e c t ( u d ) . n o d e ( ) , O d = R d . t y p e , M d = k d . f i r s t C h i l d , P d = M d . f i r s t C h i l d , F d = ( m f = ( d f = R d . r e n d e r e r ) . g e t C l a s s e s ) = = n u l l ? v o i d 0 : m f . c a l l ( d f , q a , R d ) , U d = c r e a t e U s e r S t y l e s ( r d , O d , F d , s d ) , G d = d o c u m e n t . c r e a t e E l e m e n t ( " s t y l e " ) ; G d . i n n e r H T M L = U d , M d . i n s e r t B e f o r e ( G d , P d ) ; t r y { a w a i t R d . r e n d e r e r . d r a w ( q a , R a , v e r s i o n , R d ) } c a t c h ( C f ) { t h r o w r d . s u p p r e s s E r r o r R e n d e r i n g ? _ d ( ) : e r r o r R e n d e r e r _ d e f a u l t . d r a w ( q a , R a , v e r s i o n ) , C f } c o n s t Q d = E d . s e l e c t ( ` $ { u d } s v g ` ) , V d = ( h f = ( _ f = R d . d b ) . g e t A c c T i t l e ) = = n u l l ? v o i d 0 : h f . c a l l ( _ f ) , z d = ( y f = ( g f = R d . d b ) . g e t A c c D e s c r i p t i o n ) = = n u l l ? v o i d 0 : y f . c a l l ( g f ) ; a d d A 1 1 y I n f o ( O d , Q d , V d , z d ) , E d . s e l e c t ( ` [ i d = " $ { R a } " ] ` ) . s e l e c t A l l ( " f o r e i g n o b j e c t > * " ) . a t t r ( " x m l n s " , X M L N S _ X H T M L _ S T D ) ; l e t X d = E d . s e l e c t ( u d ) . n o d e ( ) . i n n e r H T M L ; i f ( l o g $ 1 . d e b u g ( " c o n f i g . a r r o w M a r k e r A b s o l u t e " , r d . a r r o w M a r k e r A b s o l u t e ) , X d = c l e a n U p S v g C o d e ( X d , A d , e v a l u a t e ( r d . a r r o w M a r k e r A b s o l u t e ) ) , A d ) { c o n s t C f = E d . s e l e c t ( u d + " s v g " ) . n o d e ( ) ; X d = p u t I n t o I F r a m e ( X d , C f ) } e l s e T d | | ( X d = p u r i f y . s a n i t i z e ( X d , { A D D _ T A G S : D O M P U R I F Y _ T A G S , A D D _ A T T R : D O M P U R I F Y _ A T T R } ) ) ; i f ( a t t a c h F u n c t i o n s ( ) , B d ) t h r o w B d ; r e t u r n _ d ( ) , { d i a g r a m T y p e : O d , s v g : X d , b i n d F u n c t i o n s : R d . d b . b i n d F u n c t i o n s } } , " r e n d e r " ) ; f u n c t i o n i n i t i a l i z e ( R a = { } ) { v a r t d ; c o n s t q a = a s s i g n W i t h D e p t h _ d e f a u l t ( { } , R a ) ; q a ! = n u l l & & q a . f o n t F a m i l y & & ! ( ( t d = q a . t h e m e V a r i a b l e s ) ! = n u l l & & t d . f o n t F a m i l y ) & & ( q a . t h e m e V a r i a b l e s | | ( q a . t h e m e V a r i a b l e s = { } ) , q a . t h e m e V a r i a b l e s . f o n t F a m i l y = q a . f o n t F a m i l y ) , s a v e C o n f i g F r o m I n i t i a l i z e ( q a ) , q a ! = n u l l & & q a . t h e m e & & q a . t h e m e i n t h e m e s _ d e f a u l t ? q a . t h e m e V a r i a b l e s = t h e m e s _ d e f a u l t [ q a . t h e m e ] . g e t T h e m e V a r i a b l e s ( q a . t h e m e V a r i a b l e s ) : q a & & ( q a . t h e m e V a r i a b l e s = t h e m e s _ d e f a u l t . d e f a u l t . g e t T h e m e V a r i a b l e s ( q a . t h e m e V a r i a b l e s ) ) ; c o n s t e d = t y p e o f q a = = " o b j e c t " ? s e t S i t e C o n f i g ( q a ) : g e t S i t e C o n f i g ( ) ; s e t L o g L e v e l ( e d . l o g L e v e l ) , a d d D i a g r a m s ( ) } _ _ n a m e ( i n i t i a l i z e , " i n i t i a l i z e " ) ; v a r g e t D i a g r a m F r o m T e x t = _ _ n a m e ( ( R a , q a = { } ) = > { c o n s t { c o d e : e d } = p r e p r o c e s s D i a g r a m ( R a ) ; r e t u r n D i a g r a m . f r o m T e x t ( e d , q a ) } , " g e t D i a g r a m F r o m T e x t " ) ; f u n c t i o n a d d A 1 1 y I n f o ( R a , q a , e d , t d ) { s e t A 1 1 y D i a g r a m I n f o ( q a , R a ) , a d d S V G a 1 1 y T i t l e D e s c r i p t i o n ( q a , e d , t d , q a . a t t r ( " i d " ) ) } _ _ n a m e ( a d d A 1 1 y I n f o , " a d d A 1 1 y I n f o " ) ; v a r m e r m a i d A P I = O b j e c t . f r e e z e ( { r e n d e r , p a r s e : p a r s e $ 4 , g e t D i a g r a m F r o m T e x t , i n i t i a l i z e , g e t C o n f i g : g e t C o n f i g $ 1 , s e t C o n f i g , g e t S i t e C o n f i g , u p d a t e S i t e C o n f i g , r e s e t : _ _ n a m e ( ( ) = > { r e s e t ( ) } , " r e s e t " ) , g l o b a l R e s e t : _ _ n a m e ( ( ) = > { r e s e t ( d e f a u l t C o n f i g ) } , " g l o b a l R e s e t " ) , d e f a u l t C o n f i g } ) ; s e t L o g L e v e l ( g e t C o n f i g $ 1 ( )
2024-08-27 22:31:52 +08:00
* Wait for document loaded before starting the execution
* //*! Bundled license information:
js - yaml / dist / js - yaml . mjs :
( * ! js - yaml 4.1 . 0 https : //github.com/nodeca/js-yaml @license MIT *)
2024-09-16 00:03:18 +08:00
* /const inlineRule=/ ^ ( \ $ { 1 , 2 } ) ( ? ! \ $ ) ( ( ? : \ \ . | [ ^ \ \ \ n ] ) * ? ( ? : \ \ . | [ ^ \ \ \ n$ ] ) ) \ 1 ( ? = [ \ s ? ! . , : ? ! 。 , : ] | $ ) / , inlineRuleNonStandard = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1/ , blockRule = /^(\${1,2})\n((?:\\[\s\S]|[^\\])+?)\n\1(?:\n|$)/ ; function createRenderer ( Ra ) { return qa => { window . MathJax . texReset ( ) ; const td = window . MathJax . tex2svg ( qa . text , { display : Ra } ) . firstChild , rd = td . style [ "min-width" ] || td . getAttribute ( "width" ) ; return td . removeAttribute ( "width" ) , td . style = "max-width: 300vw !important;" , td . style . width = rd , td . style . display = "initial" , Ra ? ` <section style="text-align: center; overflow: auto;"> ${ td . outerHTML } </section> ` : ` <span style="vertical-align: middle; line-height: 1;"> ${ td . outerHTML } </span> ` } } function inlineKatex ( Ra , qa ) { const ed = Ra && Ra . nonStandard , td = ed ? inlineRuleNonStandard : inlineRule ; return { name : "inlineKatex" , level : "inline" , start ( rd ) { let sd , od = rd ; for ( ; od ; ) { if ( sd = od . indexOf ( "$" ) , sd === - 1 ) return ; if ( ( ed ? sd > - 1 : sd === 0 || od . charAt ( sd - 1 ) === " " ) && od . substring ( sd ) . match ( td ) ) return sd ; od = od . substring ( sd + 1 ) . replace ( /^\$+/ , "" ) } } , tokenizer ( rd ) { const sd = rd . match ( td ) ; if ( sd ) return { type : "inlineKatex" , raw : sd [ 0 ] , text : sd [ 2 ] . trim ( ) , displayMode : sd [ 1 ] . length === 2 } } , renderer : qa } } function blockKatex ( Ra , qa ) { return { name : "blockKatex" , level : "block" , tokenizer ( ed ) { const td = ed . match ( blockRule ) ; if ( td ) return { type : "blockKatex" , raw : td [ 0 ] , text : td [ 2 ] . trim ( ) , displayMode : td [ 1 ] . length === 2 } } , renderer : qa } } function MDKatex ( Ra = { } ) { return { extensions : [ inlineKatex ( Ra , createRenderer ( ! 1 ) ) , blockKatex ( Ra , createRenderer ( ! 0 ) ) ] } } marked$1 . use ( MDKatex ( { nonStandard : ! 0 } ) ) ; function buildTheme ( { theme : Ra , fonts : qa , size : ed } ) { const td = toMerged ( Ra . base , { "font-family" : qa , "font-size" : ed } ) , rd = sd => Object . fromEntries ( Object . entries ( sd ) . map ( ( [ od , ld ] ) => [ od , toMerged ( td , ld ) ] ) ) ; return { ... rd ( Ra . inline ) , ... rd ( Ra . block ) } } function buildAddition ( ) { return `
2024-08-27 22:31:52 +08:00
< style >
. preview - wrapper pre : : before {
position : absolute ;
top : 0 ;
right : 0 ;
color : # ccc ;
text - align : center ;
font - size : 0.8 em ;
padding : 5 px 10 px 0 ;
line - height : 15 px ;
height : 15 px ;
font - weight : 600 ;
}
< / s t y l e >
2024-09-16 00:03:18 +08:00
` }function getStyles(Ra,qa,ed=""){const td=Ra[qa];return td? ` style = "${Object.entries(td).map(([sd,od])=>`${sd}:${od}`).join(" ; ")}${ed}" ` :""}function buildFootnoteArray(Ra){return Ra.map(([qa,ed,td])=>td===ed? ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { qa } ] < /code>: <i style="word-break: break-all">${ed}</i > < br / > ` : ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { qa } ] < /code> ${ed}: <i style="word-break: break-all">${td}</i > < br / > ` ).join( `
` )}function transform $ 1(Ra,qa,ed){const td=Ra.split("-");for(const rd of td){if(rd==="alt"&&qa)return qa;if(rd==="title"&&ed)return ed}return""}const macCodeSvg= `
2024-09-08 09:47:40 +08:00
< svg xmlns = "http://www.w3.org/2000/svg" version = "1.1" x = "0px" y = "0px" width = "45px" height = "13px" viewBox = "0 0 450 130" >
2024-09-07 21:44:41 +08:00
< ellipse cx = "65" cy = "65" rx = "50" ry = "52" stroke = "rgb(220,60,54)" stroke - width = "2" fill = "rgb(237,108,96)" / >
< ellipse cx = "225" cy = "65" rx = "50" ry = "52" stroke = "rgb(218,151,33)" stroke - width = "2" fill = "rgb(247,193,81)" / >
< ellipse cx = "385" cy = "65" rx = "50" ry = "52" stroke = "rgb(27,161,37)" stroke - width = "2" fill = "rgb(100,200,86)" / >
< / s v g >
2024-09-16 00:03:18 +08:00
` .trim();function initRenderer(Ra){const qa=[];let ed=0,td=buildTheme(Ra),rd=0,sd=0,od=!1;function ld(Nd,Rd=""){return getStyles(td,Nd,Rd)}function cd(Nd,Rd,Bd){const kd=Bd??Nd;return ` < $ { kd } $ { ld ( Nd ) } > $ { Rd } < /${kd}>`}function ud(Nd,Rd){return qa.push([++ed,Nd,Rd]),ed}function _d(Nd){qa.length=0,ed=0,Ed(Nd)}function Ed(Nd){Ra={...Ra,...Nd},td=buildTheme(Ra)}const Ad=()=>qa.length?cd("h4","引用链接")+cd("footnotes",buildFootnoteArray(qa),"p"):"",Td={heading({tokens:Nd,depth:Rd}){const Bd=this.parser.parseInline(Nd),kd=`h${Rd}`;return cd(kd,Bd)},paragraph({tokens:Nd}){const Rd=this.parser.parseInline(Nd),Bd=Rd.includes("<figure")&&Rd.includes("<img"),kd=Rd.trim()==="";return Bd||kd?Rd:cd("p",Rd)},blockquote({tokens:Nd}){let Rd=this.parser.parse(Nd);return Rd=Rd.replace(/ < p . * ? > / g , ` < p $ { l d ( " b l o c k q u o t e _ p " ) } > ` ) , c d ( " b l o c k q u o t e " , R d ) } , c o d e ( { t e x t : N d , l a n g : R d = " " } ) { i f ( R d . s t a r t s W i t h ( " m e r m a i d " ) ) r e t u r n c l e a r T i m e o u t ( r d ) , r d = s e t T i m e o u t ( ( ) = > { m e r m a i d _ d e f a u l t . r u n ( ) } , 0 ) , ` < p r e c l a s s = " m e r m a i d " > $ { N d } < / p r e > ` ; c o n s t B d = R d . s p l i t ( " " ) [ 0 ] , k d = H i g h l i g h t J S . g e t L a n g u a g e ( B d ) ? B d : " p l a i n t e x t " ; l e t O d = H i g h l i g h t J S . h i g h l i g h t ( N d , { l a n g u a g e : k d } ) . v a l u e ; O d = O d . r e p l a c e ( / \ r \ n / g , " < b r / > " ) . r e p l a c e ( / \ n / g , " < b r / > " ) . r e p l a c e ( / ( > [ ^ < ] + ) | ( ^ [ ^ < ] + ) / g , F d = > F d . r e p l a c e ( / \ s / g , " & n b s p ; " ) ) ; c o n s t M d = ` < s p a n c l a s s = " m a c - s i g n " s t y l e = " p a d d i n g : 1 0 p x 1 4 p x 0 ; " h i d d e n > $ { m a c C o d e S v g } < / s p a n > ` , P d = ` < c o d e c l a s s = " l a n g u a g e - $ { R d } " $ { l d ( " c o d e " ) } > $ { O d } < / c o d e > ` ; r e t u r n ` < p r e c l a s s = " h l j s c o d e _ _ p r e " $ { l d ( " c o d e _ p r e " ) } > $ { M d } $ { P d } < / p r e > ` } , c o d e s p a n ( { t e x t : N d } ) { r e t u r n c d ( " c o d e s p a n " , N d , " c o d e " ) } , l i s t i t e m ( N d ) { c o n s t R d = o d ? ` $ { s d + 1 } . ` : " • " , B d = N d . t o k e n s . m a p ( k d = > t h i s [ k d . t y p e ] ( k d ) ) . j o i n ( " " ) ; r e t u r n c d ( " l i s t i t e m " , ` $ { R d } $ { B d } ` , " l i " ) } , l i s t ( { o r d e r e d : N d , i t e m s : R d } ) { c o n s t B d = [ ] ; f o r ( l e t O d = 0 ; O d < R d . l e n g t h ; O d + + ) { o d = N d , s d = O d ; c o n s t M d = R d [ O d ] ; B d . p u s h ( t h i s . l i s t i t e m ( M d ) ) } r e t u r n c d ( N d ? " o l " : " u l " , B d . j o i n ( " " ) ) } , i m a g e ( { h r e f : N d , t i t l e : R d , t e x t : B d } ) { c o n s t k d = c d ( " f i g c a p t i o n " , t r a n s f o r m $ 1 ( R a . l e g e n d , B d , R d ) ) , O d = l d ( " f i g u r e " ) , M d = l d ( " i m a g e " ) ; r e t u r n ` < f i g u r e $ { O d } > < i m g $ { M d } s r c = " $ { N d } " t i t l e = " $ { R d } " a l t = " $ { B d } " / > $ { k d } < / f i g u r e > ` } , l i n k ( { h r e f : N d , t i t l e : R d , t e x t : B d } ) { i f ( N d . s t a r t s W i t h ( " h t t p s : / / m p . w e i x i n . q q . c o m " ) ) r e t u r n ` < a h r e f = " $ { N d } " t i t l e = " $ { R d | | B d } " $ { l d ( " w x _ l i n k " ) } > $ { B d } < / a > ` ; i f ( N d = = = B d ) r e t u r n B d ; i f ( R a . s t a t u s ) { c o n s t k d = u d ( R d | | B d , N d ) ; r e t u r n ` < s p a n $ { l d ( " l i n k " ) } > $ { B d } < s u p > [ $ { k d } ] < / s u p > < / s p a n > ` } r e t u r n c d ( " l i n k " , B d , " s p a n " ) } , s t r o n g ( { t o k e n s : N d } ) { r e t u r n c d ( " s t r o n g " , t h i s . p a r s e r . p a r s e I n l i n e ( N d ) ) } , e m ( { t o k e n s : N d } ) { r e t u r n c d ( " e m " , t h i s . p a r s e r . p a r s e I n l i n e ( N d ) , " s p a n " ) } , t a b l e ( { h e a d e r : N d , r o w s : R d } ) { c o n s t B d = N d . m a p ( O d = > t h i s . t a b l e c e l l ( O d ) ) . j o i n ( " " ) , k d = R d . m a p ( O d = > { c o n s t M d = O d . m a p ( P d = > t h i s . t a b l e c e l l ( P d ) ) . j o i n ( " " ) ; r e t u r n c d ( " t r " , M d ) } ) . j o i n ( " " ) ; r e t u r n `
2024-09-04 13:02:35 +08:00
< section style = "padding:0 8px; max-width: 100%; overflow: auto" >
< table class = "preview-table" >
2024-09-16 00:03:18 +08:00
< thead $ { ld ( "thead" ) } > $ { Bd } < / t h e a d >
< tbody > $ { kd } < / t b o d y >
2024-09-04 13:02:35 +08:00
< / t a b l e >
< / s e c t i o n >
2024-09-16 00:03:18 +08:00
` },tablecell(Nd){const Rd=this.parser.parseInline(Nd.tokens);return cd("td",Rd)},hr(Nd){return cd("hr","")}};return marked $ 1.use({renderer:Td}),{buildAddition,buildFootnotes:Ad,setOptions:Ed,reset:_d}}const DEFAULT_CONTENT= ` # 探索 Markdown 的奇妙世界
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
欢迎来到 Markdown 的奇妙世界 ! 无论你是写作爱好者 、 开发者 、 博主 , 还是想要简单记录点什么的人 , Markdown 都能成为你新的好伙伴 。 它不仅让写作变得简单明了 , 还能轻松地将内容转化为漂亮的网页格式 。 今天 , 我们将全面探讨 Markdown 的基础和进阶语法 , 让你在这个过程中充分享受写作的乐趣 !
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
Markdown 是一种轻量级标记语言 , 用于格式化纯文本 。 它以简单 、 直观的语法而著称 , 可以快速地生成 HTML 。 Markdown 是写作与代码的完美结合 , 既简单又强大 。
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
# # Markdown 基础语法
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
# # # 1. 标题 : 让你的内容层次分明
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
用 \ ` # \` 号来创建标题。标题从 \` # \` 开始,我们最多支持 4 个 \` # \` 号,对应 4 级标题。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
\ ` \` \` markdown
# 一级标题
2024-09-04 13:02:35 +08:00
2024-08-31 15:27:49 +08:00
# # 二级标题
2024-09-04 13:02:35 +08:00
2024-08-31 15:27:49 +08:00
# # # 三级标题
2024-09-04 13:02:35 +08:00
2024-08-31 15:27:49 +08:00
# # # # 四级标题
\ ` \` \`
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
以上代码将渲染出一组层次分明的标题 , 使你的文章井井有条 。
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
> 标准 Markdown 支持 1 ~ 6 级标题 , 此编辑器也不例外 , 不过我们只准备了四个级别样式 , 同时也是不推荐文章超过四级标题 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 2. 段落与换行 : 自然流畅
2024-08-31 15:27:49 +08:00
2024-09-04 13:02:35 +08:00
Markdown 中的段落就是一行接一行的文本 。 要创建新段落 , 只需在两行文本之间空一行 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 3. 字体样式 : 强调你的文字
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
- * * 粗体 * * : 用两个星号或下划线包裹文字 , 如 \ ` **粗体** \` 或 \` __粗体__ \` 。
2024-09-04 13:02:35 +08:00
- _斜体 _ : 用一个星号或下划线包裹文字 , 如 \ ` *斜体* \` 或 \` _斜体_ \` 。
2024-09-01 06:41:46 +08:00
- ~ ~ 删除线 ~ ~ : 用两个波浪线包裹文字 , 如 \ ` ~~删除线~~ \` 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
这些简单的标记可以让你的内容更有层次感和重点突出 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 4. 列表 : 整洁有序
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
- * * 无序列表 * * : 用 \ ` - \` 、 \` * \` 或 \` + \` 加空格开始一行。
- * * 有序列表 * * : 使用数字加点号 ( \ ` 1. \` 、 \` 2. \` )开始一行。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
在列表中嵌套其他内容 ? 只需缩进即可实现嵌套效果 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
- 无序列表项 1
2024-09-04 13:02:35 +08:00
1. 嵌套有序列表项 1
2. 嵌套有序列表项 2
2024-09-01 06:41:46 +08:00
- 无序列表项 2
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
1. 有序列表项 1
2. 有序列表项 2
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 5. 链接与图片 : 丰富内容
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
- * * 链接 * * : 用方括号和圆括号创建链接 \ ` [显示文本](链接地址) \` 。
- * * 图片 * * : 和链接类似 , 只需在前面加上 \ ` ! \` ,如 \` ![描述文本](图片链接) \` 。
2024-08-31 15:27:49 +08:00
2024-09-04 13:02:35 +08:00
[ 访问 Doocs ] ( https : //github.com/doocs)
2024-08-31 15:27:49 +08:00
2024-09-04 13:02:35 +08:00
! [ doocs ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/logo-2.png)
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
轻松实现富媒体内容展示 !
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
> 因微信公众号平台不支持除公众号文章以外的链接 , 故其他平台的链接 , 会呈现链接色泽但不能点击 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
> 对于这些链接请注意明文书写 , 或点击左上角 「 格式 - > 微信外链接转底部引用 」 开启引用 , 这样就可以在底部观察到链接指向 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 6. 引用 : 引用名言或引人深思的句子
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
使用 \ ` > \` 来创建引用,只需在文本前面加上它。多层引用?在前一层 \` > \` 后再加一个就行。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
> 这是一个引用
2024-09-04 13:02:35 +08:00
>
> > 这是一个嵌套引用
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
这让你的引用更加富有层次感 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 7. 代码块 : 展示你的代码
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
- * * 行内代码 * * : 用反引号包裹 , 如 \ ` code \` 。
- * * 代码块 * * : 用三个反引号包裹 , 并指定语言 , 如 :
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
\ ` \` \` js
2024-09-04 13:02:35 +08:00
console . log ( "Hello, Doocs!" ) ;
2024-08-31 15:27:49 +08:00
\ ` \` \`
2024-09-01 06:41:46 +08:00
语法高亮让你的代码更易读 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 8. 分割线 : 分割内容
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
用三个或更多的 \ ` - \` 、 \` * \` 或 \` _ \` 来创建分割线。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
-- -
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
为你的内容添加视觉分隔 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 9. 表格 : 清晰展示数据
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
Markdown 支持简单的表格 , 用 \ ` | \` 和 \` - \` 分隔单元格和表头。
2024-08-31 15:27:49 +08:00
2024-09-04 13:02:35 +08:00
| 项目人员 | 邮箱 | 微信号 |
| -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - | -- -- -- -- -- -- -- -- -- -- -- | -- -- -- -- -- -- |
| [ yanglbme ] ( https : //github.com/yanglbme) | contact@yanglibin.info | YLB0109 |
| [ YangFong ] ( https : //github.com/YangFong) | yangfong2022@gmail.com | yq2419731931 |
| [ thinkasany ] ( https : //github.com/thinkasany) | thinkasany@gmail.com | thinkasany |
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
这样的表格让数据展示更为清爽 !
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
> 手动编写标记太麻烦 ? 我们提供了便捷方式 。 左上方点击 「 编辑 - > 插入表格 」 , 即可快速实现表格渲染 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # Markdown 进阶技巧
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 1. LaTeX 公式 : 完美展示数学表达式
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
Markdown 允许嵌入 LaTeX 语法展示数学公式 :
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
- * * 行内公式 * * : 用 \ ` $ \` 包裹公式,如 $ E = mc^2 $ 。
- * * 块级公式 * * : 用 \ ` $ $ \` 包裹公式,如:
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
$$
\ \ begin { aligned }
d _ { i , j } & \ \ leftarrow d _ { i , j } + 1 \ \ \ \
d _ { i , y + 1 } & \ \ leftarrow d _ { i , y + 1 } - 1 \ \ \ \
d _ { x + 1 , j } & \ \ leftarrow d _ { x + 1 , j } - 1 \ \ \ \
d _ { x + 1 , y + 1 } & \ \ leftarrow d _ { x + 1 , y + 1 } + 1
\ \ end { aligned }
$$
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
这是展示复杂数学表达的利器 !
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # 2. Mermaid 流程图 : 可视化流程
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
Mermaid 是强大的可视化工具 , 可以在 Markdown 中创建流程图 、 时序图等 。
2024-08-31 15:27:49 +08:00
\ ` \` \` mermaid
2024-09-04 13:02:35 +08:00
graph TD ;
A -- > B ;
A -- > C ;
B -- > D ;
2024-09-01 06:41:46 +08:00
C -- > D ;
2024-08-31 15:27:49 +08:00
\ ` \` \`
\ ` \` \` mermaid
pie
2024-09-01 06:41:46 +08:00
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5
2024-08-31 15:27:49 +08:00
\ ` \` \`
\ ` \` \` mermaid
pie
2024-09-01 06:41:46 +08:00
title 为什么总是宅在家里 ?
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"没人约" : 95
2024-08-31 15:27:49 +08:00
\ ` \` \`
2024-09-01 06:41:46 +08:00
这种方式不仅能直观展示流程 , 还能提升文档的专业性 。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
> 更多用法 , 参见 : [ Mermaid User Guide ] ( https : //mermaid.js.org/intro/getting-started.html)。
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # 结语
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
Markdown 是一种简单 、 强大且易于掌握的标记语言 , 通过学习基础和进阶语法 , 你可以快速创作内容并有效传达信息 。 无论是技术文档 、 个人博客还是项目说明 , Markdown 都是你的得力助手 。 希望这篇文章能够带你全面了解 Markdown 的潜力 , 让你的写作更加丰富多彩 !
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
现在 , 拿起 Markdown 编辑器 , 开始创作吧 ! 探索 Markdown 的世界 , 你会发现它远比想象中更精彩 !
2024-08-31 15:27:49 +08:00
2024-09-01 06:41:46 +08:00
# # # # 推荐阅读
2024-08-27 22:31:52 +08:00
2024-09-01 06:41:46 +08:00
- [ 阿里又一个 20 k + stars 开源项目诞生 , 恭喜 fastjson ! ] ( https : //mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)
- [ 刷掉 90 % 候选人的互联网大厂海量数据面试题 ( 附题解 + 方法总结 ) ] ( https : //mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)
- [ 好用 ! 期待已久的文本块功能究竟如何在 Java 13 中发挥作用 ? ] ( https : //mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)
- [ 2019 GitHub 开源贡献排行榜新鲜出炉 ! 微软谷歌领头 , 阿里跻身前 12 ! ] ( https : //mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
-- -
2024-09-01 06:41:46 +08:00
< center >
< img src = "https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png" style = "width: 100px;" >
< / c e n t e r >
2024-08-29 18:38:21 +08:00
` ,DEFAULT_CSS_CONTENT= ` / * *
* 按 Alt / Option + Shift + F 可格式化
* 如需使用主题色 , 请使用 var ( -- md - primary - color ) 代替颜色值
* 如 : color : var ( -- md - primary - color ) ;
*
* 召集令 : 如果你有好看的主题样式 , 欢迎分享 , 让更多人能够使用到你的主题 。
* 提交区 : https : //github.com/doocs/md/issues/363
* /
2024-08-27 22:31:52 +08:00
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote _p {
}
/* 段落样式 */
p {
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx _link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}
2024-09-14 09:13:11 +08:00
/* 代码块外层样式 */
code _pre {
}
2024-09-16 00:03:18 +08:00
` ;var cheerio $ 2={exports:{}},lib $ e={},extendStatics=function(Ra,qa){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ed,td){ed.__proto__=td}||function(ed,td){for(var rd in td)Object.prototype.hasOwnProperty.call(td,rd)&&(ed[rd]=td[rd])},extendStatics(Ra,qa)};function __extends $ 4(Ra,qa){if(typeof qa!="function"&&qa!==null)throw new TypeError("Class extends value "+String(qa)+" is not a constructor or null");extendStatics(Ra,qa);function ed(){this.constructor=Ra}Ra.prototype=qa===null?Object.create(qa):(ed.prototype=qa.prototype,new ed)}var __assign $ 7=function(){return __assign $ 7=Object.assign||function(qa){for(var ed,td=1,rd=arguments.length;td<rd;td++){ed=arguments[td];for(var sd in ed)Object.prototype.hasOwnProperty.call(ed,sd)&&(qa[sd]=ed[sd])}return qa},__assign $ 7.apply(this,arguments)};function __rest $ 1(Ra,qa){var ed={};for(var td in Ra)Object.prototype.hasOwnProperty.call(Ra,td)&&qa.indexOf(td)<0&&(ed[td]=Ra[td]);if(Ra!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rd=0,td=Object.getOwnPropertySymbols(Ra);rd<td.length;rd++)qa.indexOf(td[rd])<0&&Object.prototype.propertyIsEnumerable.call(Ra,td[rd])&&(ed[td[rd]]=Ra[td[rd]]);return ed}function __decorate(Ra,qa,ed,td){var rd=arguments.length,sd=rd<3?qa:td===null?td=Object.getOwnPropertyDescriptor(qa,ed):td,od;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")sd=Reflect.decorate(Ra,qa,ed,td);else for(var ld=Ra.length-1;ld>=0;ld--)(od=Ra[ld])&&(sd=(rd<3?od(sd):rd>3?od(qa,ed,sd):od(qa,ed))||sd);return rd>3&&sd&&Object.defineProperty(qa,ed,sd),sd}function __param(Ra,qa){return function(ed,td){qa(ed,td,Ra)}}function __esDecorate(Ra,qa,ed,td,rd,sd){function od(kd){if(kd!==void 0&&typeof kd!="function")throw new TypeError("Function expected");return kd}for(var ld=td.kind,cd=ld==="getter"?"get":ld==="setter"?"set":"value",ud=!qa&&Ra?td.static?Ra:Ra.prototype:null,_d=qa||(ud?Object.getOwnPropertyDescriptor(ud,td.name):{}),Ed,Ad=!1,Td=ed.length-1;Td>=0;Td--){var Nd={};for(var Rd in td)Nd[Rd]=Rd==="access"?{}:td[Rd];for(var Rd in td.access)Nd.access[Rd]=td.access[Rd];Nd.addInitializer=function(kd){if(Ad)throw new TypeError("Cannot add initializers after decoration has completed");sd.push(od(kd||null))};var Bd=(0,ed[Td])(ld==="accessor"?{get:_d.get,set:_d.set}:_d[cd],Nd);if(ld==="accessor"){if(Bd===void 0)continue;if(Bd===null||typeof Bd!="object")throw new TypeError("Object expected");(Ed=od(Bd.get))&&(_d.get=Ed),(Ed=od(Bd.set))&&(_d.set=Ed),(Ed=od(Bd.init))&&rd.unshift(Ed)}else(Ed=od(Bd))&&(ld==="field"?rd.unshift(Ed):_d[cd]=Ed)}ud&&Object.defineProperty(ud,td.name,_d),Ad=!0}function __runInitializers(Ra,qa,ed){for(var td=arguments.length>2,rd=0;rd<qa.length;rd++)ed=td?qa[rd].call(Ra,ed):qa[rd].call(Ra);return td?ed:void 0}function __propKey(Ra){return typeof Ra=="symbol"?Ra:"".concat(Ra)}function __setFunctionName(Ra,qa,ed){return typeof qa=="symbol"&&(qa=qa.description?"[".concat(qa.description,"]"):""),Object.defineProperty(Ra,"name",{configurable:!0,value:ed?"".concat(ed," ",qa):qa})}function __metadata(Ra,qa){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Ra,qa)}function __awaiter $ 8(Ra,qa,ed,td){function rd(sd){return sd instanceof ed?sd:new ed(function(od){od(sd)})}return new(ed||(ed=Promise))(function(sd,od){function ld(_d){try{ud(td.next(_d))}catch(Ed){od(Ed)}}function cd(_d){try{ud(td.throw(_d))}catch(Ed){od(Ed)}}function ud(_d){_d.done?sd(_d.value):rd(_d.value).then(ld,cd)}ud((td=td.apply(Ra,qa||[])).next())})}function __generator $ 8(Ra,qa){var ed={label:0,sent:function(){if(sd[0]&1)throw sd[1];return sd[1]},trys:[],ops:[]},td,rd,sd,od=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return od.next=ld(0),od.throw=ld(1),od.return=ld(2),typeof Symbol=="function"&&(od[Symbol.iterator]=function(){return this}),od;function ld(ud){return function(_d){return cd([ud,_d])}}function cd(ud){if(td)throw new TypeError("Generator is already executing.");for(;od&&(od=0,ud[0]&&(ed=0)),ed;)try{if(td=1,rd&&(sd=ud[0]&2?rd.return:ud[0]?rd.throw||((sd=rd.return)
` ,nexist $ 1="∄",nexists $ 1="∄",Nfr $ 1="𝔑 ",nfr $ 1="𝔫 ",ngE $ 1="≧̸",nge $ 1="≱",ngeq $ 1="≱",ngeqq $ 1="≧̸",ngeqslant $ 1="⩾̸",nges $ 1="⩾̸",nGg $ 1="⋙̸",ngsim $ 1="≵",nGt $ 1="≫⃒",ngt $ 1="≯",ngtr $ 1="≯",nGtv $ 1="≫̸",nharr $ 1="↮",nhArr $ 1="⇎",nhpar $ 1="⫲",ni $ 6="∋",nis $ 1="⋼",nisd $ 1="⋺",niv $ 1="∋",NJcy $ 1="Њ",njcy $ 1="њ",nlarr $ 1="↚",nlArr $ 1="⇍",nldr $ 1="‥",nlE $ 1="≦̸",nle $ 1="≰",nleftarrow $ 1="↚",nLeftarrow $ 1="⇍",nleftrightarrow $ 1="↮",nLeftrightarrow $ 1="⇎",nleq $ 1="≰",nleqq $ 1="≦̸",nleqslant $ 1="⩽̸",nles $ 1="⩽̸",nless $ 1="≮",nLl $ 1="⋘̸",nlsim $ 1="≴",nLt $ 1="≪⃒",nlt $ 1="≮",nltri $ 1="⋪",nltrie $ 1="⋬",nLtv $ 1="≪̸",nmid $ 1="∤",NoBreak $ 1=" ",NonBreakingSpace $ 1=" ",nopf $ 1="𝕟 ",Nopf $ 1="ℕ ",Not $ 1="⫬",not $ 3="¬",NotCongruent $ 1="≢",NotCupCap $ 1="≭",NotDoubleVerticalBar $ 1="∦",NotElement $ 1="∉",NotEqual $ 1="≠",NotEqualTilde $ 1="≂̸",NotExists $ 1="∄",NotGreater $ 1="≯",NotGreaterEqual $ 1="≱",NotGreaterFullEqual $ 1="≧̸",NotGreaterGreater $ 1="≫̸",NotGreaterLess $ 1="≹",NotGreaterSlantEqual $ 1="⩾̸",NotGreaterTilde $ 1="≵",NotHumpDownHump $ 1="≎̸",NotHumpEqual $ 1="≏̸",notin $ 1="∉",notindot $ 1="⋵̸",notinE $ 1="⋹̸",notinva $ 1="∉",notinvb $ 1="⋷",notinvc $ 1="⋶",NotLeftTriangleBar $ 1="⧏̸",NotLeftTriangle $ 1="⋪",NotLeftTriangleEqual $ 1="⋬",NotLess $ 1="≮",NotLessEqual $ 1="≰",NotLessGreater $ 1="≸",NotLessLess $ 1="≪̸",NotLessSlantEqual $ 1="⩽̸",NotLessTilde $ 1="≴",NotNestedGreaterGreater $ 1="⪢̸",NotNestedLessLess $ 1="⪡̸",notni $ 1="∌",notniva $ 1="∌",notnivb $ 1="⋾",notnivc $ 1="⋽",NotPrecedes $ 1="⊀",NotPrecedesEqual $ 1="⪯̸",NotPrecedesSlantEqual $ 1="⋠",NotReverseElement $ 1="∌",NotRightTriangleBar $ 1="⧐̸",NotRightTriangle $ 1="⋫",NotRightTriangleEqual $ 1="⋭",NotSquareSubset $ 1="⊏̸",NotSquareSubsetEqual $ 1="⋢",NotSquareSuperset $ 1="⊐̸",NotSquareSupersetEqual $ 1="⋣",NotSubset $ 1="⊂⃒",NotSubsetEqual $ 1="⊈",NotSucceeds $ 1="⊁",NotSucceedsEqual $ 1="⪰̸",NotSucceedsSlantEqual $ 1="⋡",NotSucceedsTilde $ 1="≿̸",NotSuperset $ 1="⊃⃒",NotSupersetEqual $ 1="⊉",NotTilde $ 1="≁",NotTildeEqual $ 1="≄",NotTildeFullEqual $ 1="≇",NotTildeTilde $ 1="≉",NotVerticalBar $ 1="∤",nparallel $ 1="∦",npar $ 1="∦",nparsl $ 1="⫽⃥",npart $ 1="∂̸",npolint $ 1="⨔",npr $ 1="⊀",nprcue $ 1="⋠",nprec $ 1="⊀",npreceq $ 1="⪯̸",npre $ 1="⪯̸",nrarrc $ 1="⤳̸",nrarr $ 1="↛",nrArr $ 1="⇏",nrarrw $ 1="↝̸",nrightarrow $ 1="↛",nRightarrow $ 1="⇏",nrtri $ 1="⋫",nrtrie $ 1="⋭",nsc $ 1="⊁",nsccue $ 1="⋡",nsce $ 1="⪰̸",Nscr $ 1="𝒩 ",nscr $ 1="𝓃 ",nshortmid $ 1="∤",nshortparallel $ 1="∦",nsim $ 1="≁",nsime $ 1="≄",nsimeq $ 1="≄",nsmid $ 1="∤",nspar $ 1="∦",nsqsube $ 1="⋢",nsqsupe $ 1="⋣",nsub $ 1="⊄",nsubE $ 1="⫅̸",nsube $ 1="⊈",nsubset $ 1="⊂⃒",nsubseteq $ 1="⊈",nsubseteqq $ 1="⫅̸",nsucc $ 1="⊁",nsucceq $ 1="⪰̸",nsup $ 1="⊅",nsupE $ 1="⫆̸",nsupe $ 1="⊉",nsupset $ 1="⊃⃒",nsupseteq $ 1="⊉",nsupseteqq $ 1="⫆̸",ntgl $ 1="≹",Ntilde $ 3="Ñ",ntilde $ 3="ñ",ntlg $ 1="≸",ntriangleleft $ 1="⋪",ntrianglelefteq $ 1="⋬",ntriangleright $ 1="⋫",ntrianglerighteq $ 1="⋭",Nu $ 4="Ν ",nu $ 6="ν ",num $ 1="#",numero $ 1="№",numsp $ 1=" ",nvap $ 1="≍⃒",nvdash $ 1="⊬",nvDash $ 1="⊭",nVdash $ 1="⊮",nVDash $ 1="⊯",nvge $ 1="≥⃒",nvgt $ 1=">⃒",nvHarr $ 1="⤄",nvinfin $ 1="⧞",nvlArr $ 1="⤂",nvle $ 1="≤⃒",nvlt $ 1="<⃒",nvltrie $ 1="⊴⃒",nvrArr $ 1="⤃",nvrtrie $ 1="⊵⃒",nvsim $ 1="∼⃒",nwarhk $ 1="⤣",nwarr $ 1="↖",nwArr $ 1="⇖",nwarrow $ 1="↖",nwnear $ 1="⤧",Oacute $ 3="Ó",oacute $ 3="ó",oast $ 1="⊛",Ocirc $ 3="Ô",ocirc $ 3="ô",ocir $ 1="⊚",Ocy $ 1="О ",ocy $ 1="о ",odash $ 1="⊝",Odblac $ 1="Ő",odblac $ 1="ő",odiv $ 1="⨸",odot $ 1="⊙",odsold $ 1="⦼",OElig $ 1="Œ",oelig $ 1="œ",ofcir $ 1="⦿",Ofr $ 1="𝔒 ",ofr $ 1="𝔬 ",ogon $ 1="˛ ",Ograve $ 3="Ò",ograve $ 3="ò",ogt $ 1="⧁",ohbar $ 1="⦵",ohm $ 1="Ω",oint $ 1="∮",olarr $ 1="↺",olcir $ 1="⦾",olcross $ 1="⦻",oline $ 1="‾",olt $ 1="⧀",Omacr $ 1="Ō",omacr $ 1="ō",Omega $ 1="Ω",omega $ 1="ω",Omicron $ 1="Ο ",omicron $ 1="ο ",omid $ 1="⦶",ominus $ 1="⊖",Oopf $ 1="𝕆 ",oopf $ 1="𝕠 ",opar $ 1="⦷",OpenCurlyDoubleQuote $ 1="“",OpenCurlyQuote $ 1="‘ ",operp $ 1="⦹",oplus
` :od(ud.children):(0,qa.isCDATA)(ud)?od(ud.children):(0,qa.isText)(ud)?ud.data:""}stringify $ 2.getText=od;function ld(ud){return Array.isArray(ud)?ud.map(ld).join(""):(0,qa.hasChildren)(ud)&&!(0,qa.isComment)(ud)?ld(ud.children):(0,qa.isText)(ud)?ud.data:""}stringify $ 2.textContent=ld;function cd(ud){return Array.isArray(ud)?ud.map(cd).join(""):(0,qa.hasChildren)(ud)&&(ud.type===td.ElementType.Tag||(0,qa.isCDATA)(ud))?cd(ud.children):(0,qa.isText)(ud)?ud.data:""}return stringify $ 2.innerText=cd,stringify $ 2}var traversal={},hasRequiredTraversal;function requireTraversal(){if(hasRequiredTraversal)return traversal;hasRequiredTraversal=1,Object.defineProperty(traversal,"__esModule",{value:!0}),traversal.prevElementSibling=traversal.nextElementSibling=traversal.getName=traversal.hasAttrib=traversal.getAttributeValue=traversal.getSiblings=traversal.getParent=traversal.getChildren=void 0;var Ra=requireLib $ a(),qa=[];function ed(_d){var Ed;return(Ed=_d.children)!==null&&Ed!==void 0?Ed:qa}traversal.getChildren=ed;function td(_d){return _d.parent||null}traversal.getParent=td;function rd(_d){var Ed,Ad,Td=td(_d);if(Td!=null)return ed(Td);for(var Nd=[_d],Rd=_d.prev,Bd=_d.next;Rd!=null;)Nd.unshift(Rd),Ed=Rd,Rd=Ed.prev;for(;Bd!=null;)Nd.push(Bd),Ad=Bd,Bd=Ad.next;return Nd}traversal.getSiblings=rd;function sd(_d,Ed){var Ad;return(Ad=_d.attribs)===null||Ad===void 0?void 0:Ad[Ed]}traversal.getAttributeValue=sd;function od(_d,Ed){return _d.attribs!=null&&Object.prototype.hasOwnProperty.call(_d.attribs,Ed)&&_d.attribs[Ed]!=null}traversal.hasAttrib=od;function ld(_d){return _d.name}traversal.getName=ld;function cd(_d){for(var Ed,Ad=_d.next;Ad!==null&&!(0,Ra.isTag)(Ad);)Ed=Ad,Ad=Ed.next;return Ad}traversal.nextElementSibling=cd;function ud(_d){for(var Ed,Ad=_d.prev;Ad!==null&&!(0,Ra.isTag)(Ad);)Ed=Ad,Ad=Ed.prev;return Ad}return traversal.prevElementSibling=ud,traversal}var manipulation $ 1={},hasRequiredManipulation $ 1;function requireManipulation $ 1(){if(hasRequiredManipulation $ 1)return manipulation $ 1;hasRequiredManipulation $ 1=1,Object.defineProperty(manipulation $ 1,"__esModule",{value:!0}),manipulation $ 1.prepend=manipulation $ 1.prependChild=manipulation $ 1.append=manipulation $ 1.appendChild=manipulation $ 1.replaceElement=manipulation $ 1.removeElement=void 0;function Ra(od){if(od.prev&&(od.prev.next=od.next),od.next&&(od.next.prev=od.prev),od.parent){var ld=od.parent.children;ld.splice(ld.lastIndexOf(od),1)}}manipulation $ 1.removeElement=Ra;function qa(od,ld){var cd=ld.prev=od.prev;cd&&(cd.next=ld);var ud=ld.next=od.next;ud&&(ud.prev=ld);var _d=ld.parent=od.parent;if(_d){var Ed=_d.children;Ed[Ed.lastIndexOf(od)]=ld}}manipulation $ 1.replaceElement=qa;function ed(od,ld){if(Ra(ld),ld.next=null,ld.parent=od,od.children.push(ld)>1){var cd=od.children[od.children.length-2];cd.next=ld,ld.prev=cd}else ld.prev=null}manipulation $ 1.appendChild=ed;function td(od,ld){Ra(ld);var cd=od.parent,ud=od.next;if(ld.next=ud,ld.prev=od,od.next=ld,ld.parent=cd,ud){if(ud.prev=ld,cd){var _d=cd.children;_d.splice(_d.lastIndexOf(ud),0,ld)}}else cd&&cd.children.push(ld)}manipulation $ 1.append=td;function rd(od,ld){if(Ra(ld),ld.parent=od,ld.prev=null,od.children.unshift(ld)!==1){var cd=od.children[1];cd.prev=ld,ld.next=cd}else ld.next=null}manipulation $ 1.prependChild=rd;function sd(od,ld){Ra(ld);var cd=od.parent;if(cd){var ud=cd.children;ud.splice(ud.indexOf(od),0,ld)}od.prev&&(od.prev.next=ld),ld.parent=cd,ld.prev=od.prev,ld.next=od,od.prev=ld}return manipulation $ 1.prepend=sd,manipulation $ 1}var querying={},hasRequiredQuerying;function requireQuerying(){if(hasRequiredQuerying)return querying;hasRequiredQuerying=1,Object.defineProperty(querying,"__esModule",{value:!0}),querying.findAll=querying.existsOne=querying.findOne=querying.findOneChild=querying.find=querying.filter=void 0;var Ra=requireLib $ a();function qa(ld,cd,ud,_d){return ud===void 0&&(ud=!0),_d===void 0&&(_d=1/0),Array.isArray(cd)||(cd=[cd]),ed(ld,cd,ud,_d)}querying.filter=qa;function ed(ld,cd,ud,_d){for(var Ed=[],Ad=0,Td=cd;Ad<Td.length;Ad++){var Nd=Td[Ad];if(ld(Nd)&&(Ed.push(Nd),--_d<=0))break;if(ud&&(0,Ra.hasChildren)(Nd)&&
2024-08-27 22:31:52 +08:00
: is ( button , input , select , textarea , optgroup , option ) [ disabled ] ,
optgroup [ disabled ] > option ,
fieldset [ disabled ] : not ( fieldset [ disabled ] legend : first - of - type * )
2024-09-16 00:03:18 +08:00
) ` ,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}),aliases}var subselects={},hasRequiredSubselects;function requireSubselects(){return hasRequiredSubselects||(hasRequiredSubselects=1,function(Ra){var qa=commonjsGlobal&&commonjsGlobal.__spreadArray||function(ld,cd,ud){if(ud||arguments.length===2)for(var _d=0,Ed=cd.length,Ad;_d<Ed;_d++)(Ad||!(_d in cd))&&(Ad||(Ad=Array.prototype.slice.call(cd,0,_d)),Ad[_d]=cd[_d]);return ld.concat(Ad||Array.prototype.slice.call(cd))};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.subselects=Ra.getNextSiblings=Ra.ensureIsTag=Ra.PLACEHOLDER_ELEMENT=void 0;var ed=requireBoolbase(),td=requireProcedure();Ra.PLACEHOLDER_ELEMENT={};function rd(ld,cd){return ld===ed.falseFunc?ed.falseFunc:function(ud){return cd.isTag(ud)&&ld(ud)}}Ra.ensureIsTag=rd;function sd(ld,cd){var ud=cd.getSiblings(ld);if(ud.length<=1)return[];var _d=ud.indexOf(ld);return _d<0||_d===ud.length-1?[]:ud.slice(_d+1).filter(cd.isTag)}Ra.getNextSiblings=sd;var od=function(ld,cd,ud,_d,Ed){var Ad={xmlMode:!!ud.xmlMode,adapter:ud.adapter,equals:ud.equals},Td=Ed(cd,Ad,_d);return function(Nd){return Td(Nd)&&ld(Nd)}};Ra.subselects={is:od,matches:od,where:od,not:function(ld,cd,ud,_d,Ed){var Ad={xmlMode:!!ud.xmlMode,adapter:ud.adapter,equals:ud.equals},Td=Ed(cd,Ad,_d);return Td===ed.falseFunc?ld:Td===ed.trueFunc?ed.falseFunc:function(Rd){return!Td(Rd)&&ld(Rd)}},has:function(ld,cd,ud,_d,Ed){var Ad=ud.adapter,Td={xmlMode:!!ud.xmlMode,adapter:Ad,equals:ud.equals},Nd=cd.some(function(Md){return Md.some(td.isTraversal)})?[Ra.PLACEHOLDER_ELEMENT]:void 0,Rd=Ed(cd,Td,Nd);if(Rd===ed.falseFunc)return ed.falseFunc;if(Rd===ed.trueFunc)return function(Md){return Ad.getChildren(Md).some(Ad.isTag)&&ld(Md)};var Bd=rd(Rd,Ad),kd=Rd.shouldTestNextSiblings,Od=kd===void 0?!1:kd;return Nd?function(Md){Nd[0]=Md;var Pd=Ad.getChildren(Md),Fd=Od?qa(qa([],Pd,!0),sd(Md,Ad),!0):Pd;return ld(Md)&&Ad.existsOne(Bd,Fd)}:function(Md){return ld(Md)&&Ad.existsOne(Bd,Ad.getChildren(Md))}}}}(subselects)),subselects}var hasRequiredPseudoSelectors;function requirePseudoSelectors(){return hasRequiredPseudoSelectors||(hasRequiredPseudoSelectors=1,function(Ra){Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.compilePseudoSelector=Ra.aliases=Ra.pseudos=Ra.filters=void 0;var qa=requireBoolbase(),ed=require $ $ 0 $ 5,td=requireFilters();Object.defineProperty(Ra,"filters",{enumerable:!0,get:function(){return td.filters}});var rd=requirePseudos();Object.defineProperty(Ra,"pseudos",{enumerable:!0,get:function(){return rd.pseudos}});var sd=requireAliases();Object.defineProperty(Ra,"aliases",{enumerable:!0,get:function(){return sd.aliases}});var od=requireSubselects();function ld(cd,ud,_d,Ed,Ad){var Td=ud.name,Nd=ud.data;if(Array.isArray(Nd))return od.subselects[Td](cd,Nd,_d,Ed,Ad);if(Td in sd.aliases){if(Nd!=null)throw new Error("Pseudo ".concat(Td," doesn't have any arguments"));var Rd=(0,ed.parse)(sd.aliases[Td]);return od.subselects.is(cd,Rd,_d,Ed,Ad)}if(Td in td.filters)return td.filters[Td](cd,Nd,_d,Ed);if(Td in rd.pseudos){var Bd=rd.pseudos[Td];return(0,rd.verifyPseudoArgs)(Bd,Td,Nd),Bd===qa.falseFunc?qa.falseFunc:cd===qa.trueFunc?function(kd){return Bd(kd,_d,Nd)}:function(kd){return Bd(kd,_d,Nd)&&cd(kd)}}throw new Error("unmatched pseudo-class :".concat(Td))}Ra.compilePseudoSelector=ld}(pseudoSelectors)),pseudoSelectors}var hasRequiredGeneral;function requireGeneral(){if(hasRequiredGeneral)return general;hasRequiredGeneral=1,Object.defineProperty(general,"
` ,nexist="∄",nexists="∄",Nfr="𝔑 ",nfr="𝔫 ",ngE="≧̸",nge="≱",ngeq="≱",ngeqq="≧̸",ngeqslant="⩾̸",nges="⩾̸",nGg="⋙̸",ngsim="≵",nGt="≫⃒",ngt="≯",ngtr="≯",nGtv="≫̸",nharr="↮",nhArr="⇎",nhpar="⫲",ni $ 5="∋",nis="⋼",nisd="⋺",niv="∋",NJcy="Њ",njcy="њ",nlarr="↚",nlArr="⇍",nldr="‥",nlE="≦̸",nle="≰",nleftarrow="↚",nLeftarrow="⇍",nleftrightarrow="↮",nLeftrightarrow="⇎",nleq="≰",nleqq="≦̸",nleqslant="⩽̸",nles="⩽̸",nless="≮",nLl="⋘̸",nlsim="≴",nLt="≪⃒",nlt="≮",nltri="⋪",nltrie="⋬",nLtv="≪̸",nmid="∤",NoBreak=" ",NonBreakingSpace=" ",nopf="𝕟 ",Nopf="ℕ ",Not="⫬",not $ 1="¬",NotCongruent="≢",NotCupCap="≭",NotDoubleVerticalBar="∦",NotElement="∉",NotEqual="≠",NotEqualTilde="≂̸",NotExists="∄",NotGreater="≯",NotGreaterEqual="≱",NotGreaterFullEqual="≧̸",NotGreaterGreater="≫̸",NotGreaterLess="≹",NotGreaterSlantEqual="⩾̸",NotGreaterTilde="≵",NotHumpDownHump="≎̸",NotHumpEqual="≏̸",notin="∉",notindot="⋵̸",notinE="⋹̸",notinva="∉",notinvb="⋷",notinvc="⋶",NotLeftTriangleBar="⧏̸",NotLeftTriangle="⋪",NotLeftTriangleEqual="⋬",NotLess="≮",NotLessEqual="≰",NotLessGreater="≸",NotLessLess="≪̸",NotLessSlantEqual="⩽̸",NotLessTilde="≴",NotNestedGreaterGreater="⪢̸",NotNestedLessLess="⪡̸",notni="∌",notniva="∌",notnivb="⋾",notnivc="⋽",NotPrecedes="⊀",NotPrecedesEqual="⪯̸",NotPrecedesSlantEqual="⋠",NotReverseElement="∌",NotRightTriangleBar="⧐̸",NotRightTriangle="⋫",NotRightTriangleEqual="⋭",NotSquareSubset="⊏̸",NotSquareSubsetEqual="⋢",NotSquareSuperset="⊐̸",NotSquareSupersetEqual="⋣",NotSubset="⊂⃒",NotSubsetEqual="⊈",NotSucceeds="⊁",NotSucceedsEqual="⪰̸",NotSucceedsSlantEqual="⋡",NotSucceedsTilde="≿̸",NotSuperset="⊃⃒",NotSupersetEqual="⊉",NotTilde="≁",NotTildeEqual="≄",NotTildeFullEqual="≇",NotTildeTilde="≉",NotVerticalBar="∤",nparallel="∦",npar="∦",nparsl="⫽⃥",npart="∂̸",npolint="⨔",npr="⊀",nprcue="⋠",nprec="⊀",npreceq="⪯̸",npre="⪯̸",nrarrc="⤳̸",nrarr="↛",nrArr="⇏",nrarrw="↝̸",nrightarrow="↛",nRightarrow="⇏",nrtri="⋫",nrtrie="⋭",nsc="⊁",nsccue="⋡",nsce="⪰̸",Nscr="𝒩 ",nscr="𝓃 ",nshortmid="∤",nshortparallel="∦",nsim="≁",nsime="≄",nsimeq="≄",nsmid="∤",nspar="∦",nsqsube="⋢",nsqsupe="⋣",nsub="⊄",nsubE="⫅̸",nsube="⊈",nsubset="⊂⃒",nsubseteq="⊈",nsubseteqq="⫅̸",nsucc="⊁",nsucceq="⪰̸",nsup="⊅",nsupE="⫆̸",nsupe="⊉",nsupset="⊃⃒",nsupseteq="⊉",nsupseteqq="⫆̸",ntgl="≹",Ntilde $ 1="Ñ",ntilde $ 1="ñ",ntlg="≸",ntriangleleft="⋪",ntrianglelefteq="⋬",ntriangleright="⋫",ntrianglerighteq="⋭",Nu $ 3="Ν ",nu $ 5="ν ",num="#",numero="№",numsp=" ",nvap="≍⃒",nvdash="⊬",nvDash="⊭",nVdash="⊮",nVDash="⊯",nvge="≥⃒",nvgt=">⃒",nvHarr="⤄",nvinfin="⧞",nvlArr="⤂",nvle="≤⃒",nvlt="<⃒",nvltrie="⊴⃒",nvrArr="⤃",nvrtrie="⊵⃒",nvsim="∼⃒",nwarhk="⤣",nwarr="↖",nwArr="⇖",nwarrow="↖",nwnear="⤧",Oacute $ 1="Ó",oacute $ 1="ó",oast="⊛",Ocirc $ 1="Ô",ocirc $ 1="ô",ocir="⊚",Ocy="О ",ocy="о ",odash="⊝",Odblac="Ő",odblac="ő",odiv="⨸",odot="⊙",odsold="⦼",OElig="Œ",oelig="œ",ofcir="⦿",Ofr="𝔒 ",ofr="𝔬 ",ogon="˛ ",Ograve $ 1="Ò",ograve $ 1="ò",ogt="⧁",ohbar="⦵",ohm="Ω",oint="∮",olarr="↺",olcir="⦾",olcross="⦻",oline="‾",olt="⧀",Omacr="Ō",omacr="ō",Omega="Ω",omega="ω",Omicron="Ο ",omicron="ο ",omid="⦶",ominus="⊖",Oopf="𝕆 ",oopf="𝕠 ",opar="⦷",OpenCurlyDoubleQuote="“",OpenCurlyQuote="‘ ",operp="⦹",oplus="⊕",orarr="↻",Or $ 4="⩔",or $ 3="∨ ",ord="⩝",order="ℴ ",orderof="ℴ ",ordf $ 1="ª",ordm $ 1="º",origof="⊶",oror="⩖",orslope="⩗",orv="⩛",oS="Ⓢ",Oscr="𝒪 ",oscr="ℴ ",Oslash $ 1="Ø",oslash $ 1="ø",osol="⊘",Otilde $ 1="Õ",otilde $ 1="õ",otimesas="⨶",Otimes="⨷",otimes="⊗",Ouml $ 1="Ö",ouml $ 1="ö",ovbar="⌽",OverBar="‾",OverBrace="⏞",OverBracket="⎴",OverParenthesis="⏜",para $ 1="¶",parallel $ 1="∥",par="∥",parsim="⫳",parsl="
` ||wf===" "||wf===" \f "||wf===" \r "}function od(wf){return wf>="a"&&wf<="z"||wf>="A"&&wf<="Z"}function ld(wf,Nf,Zf){var Kf=wf.toLowerCase();return wf===Kf?function(Tf,bf){bf===Kf?Tf._state=Nf:(Tf._state=Zf,Tf._index--)}:function(Tf,bf){bf===Kf||bf===wf?Tf._state=Nf:(Tf._state=Zf,Tf._index--)}}function cd(wf,Nf){var Zf=wf.toLowerCase();return function(Kf,Tf){Tf===Zf||Tf===wf?Kf._state=Nf:(Kf._state=3,Kf._index--)}}var ud=ld("C",24,16),_d=ld("D",25,16),Ed=ld("A",26,16),Ad=ld("T",27,16),Td=ld("A",28,16),Nd=cd("R",35),Rd=cd("I",36),Bd=cd("P",37),kd=cd("T",38),Od=ld("R",40,1),Md=ld("I",41,1),Pd=ld("P",42,1),Fd=ld("T",43,1),Ud=cd("Y",45),Gd=cd("L",46),Qd=cd("E",47),Vd=ld("Y",49,1),zd=ld("L",50,1),Xd=ld("E",51,1),df=cd("I",54),mf=cd("T",55),_f=cd("L",56),hf=cd("E",57),gf=ld("I",58,1),yf=ld("T",59,1),Cf=ld("L",60,1),Ff=ld("E",61,1),Qf=ld("#",63,64),Uf=ld("X",66,65),Lf=function(){function wf(Nf,Zf){var Kf;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=Zf,this.xmlMode=!!(Nf!=null&&Nf.xmlMode),this.decodeEntities=(Kf=Nf==null?void 0:Nf.decodeEntities)!==null&&Kf!==void 0?Kf:!0}return wf.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},wf.prototype.write=function(Nf){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=Nf,this.parse()},wf.prototype.end=function(Nf){this.ended&&this.cbs.onerror(Error(".end() after done!")),Nf&&this.write(Nf),this.ended=!0,this.running&&this.finish()},wf.prototype.pause=function(){this.running=!1},wf.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},wf.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},wf.prototype.stateText=function(Nf){Nf==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&Nf==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},wf.prototype.isTagStartChar=function(Nf){return od(Nf)||this.xmlMode&&!sd(Nf)&&Nf!=="/"&&Nf!==">"},wf.prototype.stateBeforeTagName=function(Nf){Nf==="/"?this._state=5:Nf==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):Nf===">"||this.special!==1||sd(Nf)?this._state=1:Nf==="!"?(this._state=15,this.sectionStart=this._index+1):Nf==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(Nf)?(this._state=!this.xmlMode&&(Nf==="s"||Nf==="S")?32:!this.xmlMode&&(Nf==="t"||Nf==="T")?52:3,this.sectionStart=this._index):this._state=1},wf.prototype.stateInTagName=function(Nf){(Nf==="/"||Nf===">"||sd(Nf))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},wf.prototype.stateBeforeClosingTagName=function(Nf){sd(Nf)||(Nf===">"?this._state=1:this.special!==1?this.special!==4&&(Nf==="s"||Nf==="S")?this._state=33:this.special===4&&(Nf==="t"||Nf==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar(Nf)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},wf.prototype.stateInClosingTagName=function(Nf){(Nf===">"||sd(Nf))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},wf.prototype.stateAfterClosingTagName=function(Nf){Nf===">"&&(this._state=1,this.sectionStart=this._index+1)},wf.prototype.stateBeforeAttributeName=function(Nf){Nf===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):Nf==="/"?this._state=4:sd(Nf)||(this._state=9,this.sectionStart=this._index)},wf.prototype.stateInSelfClosingTag=function(Nf){Nf===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):sd(Nf)||(this._state=8,this._index--)},wf.prototype.stateInAttributeName=function(Nf){(Nf==="="||Nf==="/"||Nf===">"||sd(Nf))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,th
` ||od===" \r "&&this.html[sd+1]!== `
` )&&(td.isEol=!0),td.col=sd-td.lineStartPos+1,td.offset=td.droppedBufferSize+sd,rd.advance.call(this)},retreat(){rd.retreat.call(this),td.isEol=!1,td.col=this.pos-td.lineStartPos+1},dropParsedChunk(){const sd=this.pos;rd.dropParsedChunk.call(this);const od=sd-this.pos;td.lineStartPos-=od,td.droppedBufferSize+=od,td.offset=td.droppedBufferSize+this.pos}}}}return preprocessorMixin $ 1=qa,preprocessorMixin $ 1}var tokenizerMixin $ 1,hasRequiredTokenizerMixin $ 1;function requireTokenizerMixin $ 1(){if(hasRequiredTokenizerMixin $ 1)return tokenizerMixin $ 1;hasRequiredTokenizerMixin $ 1=1;const Ra=requireMixin(),qa=requireTokenizer(),ed=requirePreprocessorMixin $ 1();class td extends Ra{constructor(sd){super(sd),this.tokenizer=sd,this.posTracker=Ra.install(sd.preprocessor,ed),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const sd=this.tokenizer.currentToken,od=this.tokenizer.currentAttr;sd.location.attrs||(sd.location.attrs=Object.create(null)),sd.location.attrs[od.name]=this.currentAttrLocation}_getOverriddenMethods(sd,od){const ld={_createStartTagToken(){od._createStartTagToken.call(this),this.currentToken.location=sd.ctLoc},_createEndTagToken(){od._createEndTagToken.call(this),this.currentToken.location=sd.ctLoc},_createCommentToken(){od._createCommentToken.call(this),this.currentToken.location=sd.ctLoc},_createDoctypeToken(cd){od._createDoctypeToken.call(this,cd),this.currentToken.location=sd.ctLoc},_createCharacterToken(cd,ud){od._createCharacterToken.call(this,cd,ud),this.currentCharacterToken.location=sd.ctLoc},_createEOFToken(){od._createEOFToken.call(this),this.currentToken.location=sd._getCurrentLocation()},_createAttr(cd){od._createAttr.call(this,cd),sd.currentAttrLocation=sd._getCurrentLocation()},_leaveAttrName(cd){od._leaveAttrName.call(this,cd),sd._attachCurrentAttrLocationInfo()},_leaveAttrValue(cd){od._leaveAttrValue.call(this,cd),sd._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const cd=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=cd.startLine,this.currentCharacterToken.location.endCol=cd.startCol,this.currentCharacterToken.location.endOffset=cd.startOffset),this.currentToken.type===qa.EOF_TOKEN?(cd.endLine=cd.startLine,cd.endCol=cd.startCol,cd.endOffset=cd.startOffset):(cd.endLine=sd.posTracker.line,cd.endCol=sd.posTracker.col+1,cd.endOffset=sd.posTracker.offset+1),od._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const cd=this.currentCharacterToken&&this.currentCharacterToken.location;cd&&cd.endOffset===-1&&(cd.endLine=sd.posTracker.line,cd.endCol=sd.posTracker.col,cd.endOffset=sd.posTracker.offset),od._emitCurrentCharacterToken.call(this)}};return Object.keys(qa.MODE).forEach(cd=>{const ud=qa.MODE[cd];ld[ud]=function(_d){sd.ctLoc=sd._getCurrentLocation(),od[ud].call(this,_d)}}),ld}}return tokenizerMixin $ 1=td,tokenizerMixin $ 1}var openElementStackMixin,hasRequiredOpenElementStackMixin;function requireOpenElementStackMixin(){if(hasRequiredOpenElementStackMixin)return openElementStackMixin;hasRequiredOpenElementStackMixin=1;const Ra=requireMixin();class qa extends Ra{constructor(td,rd){super(td),this.onItemPop=rd.onItemPop}_getOverriddenMethods(td,rd){return{pop(){td.onItemPop(this.current),rd.pop.call(this)},popAllUpToHtmlElement(){for(let sd=this.stackTop;sd>0;sd--)td.onItemPop(this.items[sd]);rd.popAllUpToHtmlElement.call(this)},remove(sd){td.onItemPop(this.current),rd.remove.call(this,sd)}}}}return openElementStackMixin=qa,openElementStackMixin}var parserMixin $ 1,hasRequiredParserMixin $ 1;function requireParserMixin $ 1(){if(hasRequiredParserMixin $ 1)return parserMixin $ 1;hasRequiredParserMixin $ 1=1;const Ra=requireMixin(),qa=requireTokenizer(),ed=requireTokenizerMixin $ 1(),td=requireOpenElementStackMixin(
` )){if(jf.chars.length===1)continue;jf.chars=jf.chars.substr(1)}if(this._processInputToken(jf),Pf&&this.pendingScript)break}}runParsingLoopForCurrentChunk(Pf,jf){if(this._runParsingLoop(jf),jf&&this.pendingScript){const Pm=this.pendingScript;this.pendingScript=null,jf(Pm);return}Pf&&Pf()}_setupTokenizerCDATAMode(){const Pf=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=Pf&&Pf!==this.document&&this.treeAdapter.getNamespaceURI(Pf)!==Nd.HTML&&!this._isIntegrationPoint(Pf)}_switchToTextParsing(Pf,jf){this._insertElement(Pf,Nd.HTML),this.tokenizer.state=jf,this.originalInsertionMode=this.insertionMode,this.insertionMode=Xd}switchToPlaintextParsing(){this.insertionMode=Xd,this.originalInsertionMode=zd,this.tokenizer.state=Ra.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let Pf=this.fragmentContext;do{if(this.treeAdapter.getTagName(Pf)===Td.FORM){this.formElement=Pf;break}Pf=this.treeAdapter.getParentNode(Pf)}while(Pf)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Nd.HTML){const Pf=this.treeAdapter.getTagName(this.fragmentContext);Pf===Td.TITLE||Pf===Td.TEXTAREA?this.tokenizer.state=Ra.MODE.RCDATA:Pf===Td.STYLE||Pf===Td.XMP||Pf===Td.IFRAME||Pf===Td.NOEMBED||Pf===Td.NOFRAMES||Pf===Td.NOSCRIPT?this.tokenizer.state=Ra.MODE.RAWTEXT:Pf===Td.SCRIPT?this.tokenizer.state=Ra.MODE.SCRIPT_DATA:Pf===Td.PLAINTEXT&&(this.tokenizer.state=Ra.MODE.PLAINTEXT)}}_setDocumentType(Pf){const jf=Pf.name||"",Pm=Pf.publicId||"",u_=Pf.systemId||"";this.treeAdapter.setDocumentType(this.document,jf,Pm,u_)}_attachElementToTree(Pf){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(Pf);else{const jf=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(jf,Pf)}}_appendElement(Pf,jf){const Pm=this.treeAdapter.createElement(Pf.tagName,jf,Pf.attrs);this._attachElementToTree(Pm)}_insertElement(Pf,jf){const Pm=this.treeAdapter.createElement(Pf.tagName,jf,Pf.attrs);this._attachElementToTree(Pm),this.openElements.push(Pm)}_insertFakeElement(Pf){const jf=this.treeAdapter.createElement(Pf,Nd.HTML,[]);this._attachElementToTree(jf),this.openElements.push(jf)}_insertTemplate(Pf){const jf=this.treeAdapter.createElement(Pf.tagName,Nd.HTML,Pf.attrs),Pm=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(jf,Pm),this._attachElementToTree(jf),this.openElements.push(jf)}_insertFakeRootElement(){const Pf=this.treeAdapter.createElement(Td.HTML,Nd.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,Pf),this.openElements.push(Pf)}_appendCommentNode(Pf,jf){const Pm=this.treeAdapter.createCommentNode(Pf.data);this.treeAdapter.appendChild(jf,Pm)}_insertCharacters(Pf){if(this._shouldFosterParentOnInsertion())this._fosterParentText(Pf.chars);else{const jf=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(jf,Pf.chars)}}_adoptNodes(Pf,jf){for(let Pm=this.treeAdapter.getFirstChild(Pf);Pm;Pm=this.treeAdapter.getFirstChild(Pf))this.treeAdapter.detachNode(Pm),this.treeAdapter.appendChild(jf,Pm)}_shouldProcessTokenInForeignContent(Pf){const jf=this._getAdjustedCurrentElement();if(!jf||jf===this.document)return!1;const Pm=this.treeAdapter.getNamespaceURI(jf);if(Pm===Nd.HTML||this.treeAdapter.getTagName(jf)===Td.ANNOTATION_XML&&Pm===Nd.MATHML&&Pf.type===Ra.START_TAG_TOKEN&&Pf.tagName===Td.SVG)return!1;const u_=Pf.type===Ra.CHARACTER_TOKEN||Pf.type===Ra.NULL_CHARACTER_TOKEN||Pf.type===Ra.WHITESPACE_CHARACTER_TOKEN;return(Pf.type===Ra.START_TAG_TOKEN&&Pf.tagName!==Td.MGLYPH&&Pf.tagName!==Td.MALIGNMARK||u_)&&this._isIntegrationPoint(jf,Nd.MATHML)||(Pf.type===Ra.START_TAG_TOKEN||u_)&&this._isIntegrationPoint(jf,Nd.HTML)?!1:Pf.type!==Ra.EOF_TOKEN}_processToken(Pf){Bf[this.insertionMode][Pf.type](this,Pf)}_processTokenInBodyMode(Pf){Bf[zd][Pf.type](this,Pf)}_processTokenInForeignContent(Pf){Pf.type===Ra.CHARACTER_TOKEN?h0(this,Pf):Pf.type===Ra.NULL_CHARACTER_TOKEN?s1(this,Pf)
` )}}):{name:Ed,value:Ad.replace(td, ` \ r
2024-09-16 17:10:21 +08:00
` )}}).toArray()}return forms.serializeArray=sd,forms}var hasRequiredCheerio;function requireCheerio(){if(hasRequiredCheerio)return cheerio $ 1;hasRequiredCheerio=1,Object.defineProperty(cheerio $ 1,"__esModule",{value:!0}),cheerio $ 1.Cheerio=void 0;var Ra=require $ $ 0 $ 6,qa=Ra.__importDefault(requireParse()),ed=Ra.__importDefault(requireOptions()),td=requireUtils $ 2(),rd=Ra.__importStar(requireAttributes()),sd=Ra.__importStar(requireTraversing()),od=Ra.__importStar(requireManipulation()),ld=Ra.__importStar(requireCss()),cd=Ra.__importStar(requireForms()),ud=function(){function Ed(Ad,Td,Nd,Rd){var Bd=this;if(Rd===void 0&&(Rd=ed.default),this.length=0,this.options=Rd,!Ad)return this;if(Nd&&(typeof Nd=="string"&&(Nd=qa.default(Nd,this.options,!1)),this._root=new this.constructor(Nd,null,null,this.options),this._root._root=this._root),td.isCheerio(Ad))return Ad;var kd=typeof Ad=="string"&&td.isHtml(Ad)?qa.default(Ad,this.options,!1).children:_d(Ad)?[Ad]:Array.isArray(Ad)?Ad:null;if(kd)return kd.forEach(function(Pd,Fd){Bd[Fd]=Pd}),this.length=kd.length,this;var Od=Ad,Md=Td?typeof Td=="string"?td.isHtml(Td)?this._make(qa.default(Td,this.options,!1)):(Od=Td+" "+Od,this._root):td.isCheerio(Td)?Td:this._make(Td):this._root;return Md?Md.find(Od):this}return Ed.prototype._make=function(Ad,Td){var Nd=new this.constructor(Ad,Td,this._root,this.options);return Nd.prevObject=this,Nd},Ed}();cheerio $ 1.Cheerio=ud,ud.prototype.cheerio="[cheerio object]",ud.prototype.splice=Array.prototype.splice,ud.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(ud.prototype,rd,sd,od,ld,cd);function _d(Ed){return!!Ed.name||Ed.type==="root"||Ed.type==="text"||Ed.type==="comment"}return cheerio $ 1}var hasRequiredLoad;function requireLoad(){if(hasRequiredLoad)return load;hasRequiredLoad=1,Object.defineProperty(load,"__esModule",{value:!0}),load.load=void 0;var Ra=require $ $ 0 $ 6,qa=Ra.__importStar(requireOptions()),ed=Ra.__importStar(require_static()),td=requireCheerio(),rd=Ra.__importDefault(requireParse());function sd(od,ld,cd){if(cd===void 0&&(cd=!0),od==null)throw new Error("cheerio.load() expects a string");var ud=Ra.__assign(Ra.__assign({},qa.default),qa.flatten(ld)),_d=rd.default(od,ud,cd),Ed=function(Td){Ra.__extends(Nd,Td);function Nd(){return Td!==null&&Td.apply(this,arguments)||this}return Nd}(td.Cheerio);function Ad(Td,Nd,Rd,Bd){return Rd===void 0&&(Rd=_d),new Ed(Td,Nd,Rd,Ra.__assign(Ra.__assign({},ud),qa.flatten(Bd)))}return Object.assign(Ad,ed,{load:sd,_root:_d,_options:ud,fn:Ed.prototype,prototype:Ed.prototype}),Ad}return load.load=sd,load}(function(Ra){Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.root=Ra.parseHTML=Ra.merge=Ra.contains=void 0;var qa=require $ $ 0 $ 6;qa.__exportStar(requireTypes(),Ra),qa.__exportStar(requireLoad(),Ra);var ed=requireLoad();Ra.default=ed.load([]);var td=qa.__importStar(require_static());Ra.contains=td.contains,Ra.merge=td.merge,Ra.parseHTML=td.parseHTML,Ra.root=td.root})(lib $ e);var utils $ 4={},lexer={exports:{}},debug={exports:{}};(function(Ra,qa){var ed={version:"v20.17.0",versions:{node:"20.17.0",acorn:"8.11.3",ada:"2.9.0",ares:"1.32.3",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.2.2",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.13+quic",simdutf:"5.3.0",tz:"2024a",undici:"6.19.2",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-209717d"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Interna
2024-09-16 00:03:18 +08:00
` )}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=ed;function ed(td){var rd="",sd,od=0,ld=-1,cd=0,ud=1,_d="before-selector",Ed=[_d],Ad={},Td=[],Nd=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Rd(){return Qd(),td[ld]}function Bd(yf){return yf?Ed[Ed.length-1-yf]:_d}function kd(yf){var Cf=ld+1;return yf===td.slice(Cf,Cf+yf.length)}function Od(yf){var Cf=td.slice(ld).indexOf(yf);return Cf>0?Cf:!1}function Md(yf){return yf===Pd(1)}function Pd(yf){return td[ld+(yf||1)]}function Fd(){var yf=Ed.pop();return _d=Ed[Ed.length-1],yf}function Ud(yf){return _d=yf,Ed.push(_d),Ed.length}function Gd(yf){var Cf=_d;return Ed[Ed.length-1]=_d=yf,Cf}function Qd(yf){if((yf||1)==1)td[ld]== `
` ?(ud++,od=1):od++,ld++;else{var Cf=td.slice(ld,ld+yf).split( `
` );Cf.length>1&&(ud+=Cf.length-1,od=1),od+=Cf[Cf.length-1].length,ld=ld+yf}}function Vd(){Ad.end={line:ud,col:od},Td.push(Ad),rd="",Ad={}}function zd(yf){Ad={type:yf,start:{line:ud,col:od}}}for(;sd=Rd();)switch(sd){case" ":switch(Bd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":rd+=sd;break}break;case `
` :case" ":case" \r ":case" \f ":switch(Bd()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":rd+=sd;break;case"at-value":sd=== `
` &&(Ad.value=rd.trim(),Vd(),Fd());break}break;case":":switch(Bd()){case"name":Ad.name=rd.trim(),rd="",Gd("before-value");break;case"before-selector":rd+=sd,zd("selector"),Ud("selector");break;case"before-value":Gd("value"),rd+=sd;break;default:rd+=sd;break}break;case";":switch(Bd()){case"name":case"before-value":case"value":rd.trim().length>0&&(Ad.value=rd.trim(),Vd()),Gd("before-name");break;case"value-paren":rd+=sd;break;case"at-value":Ad.value=rd.trim(),Vd(),Fd();break;case"before-name":break;default:rd+=sd;break}break;case"{":switch(Bd()){case"selector":if(Pd(-1)===" \\ "){rd+=sd;break}Ad.text=rd.trim(),Vd(),Gd("before-name"),cd=cd+1;break;case"at-group":switch(Ad.name=rd.trim(),Ad.type){case"font-face":case"viewport":case"page":Ud("before-name");break;default:Ud("before-selector")}Vd(),cd=cd+1;break;case"name":case"at-rule":Ad.name=rd.trim(),Vd(),Ud("before-name"),cd=cd+1;break;case"comment":case"double-string":case"single-string":rd+=sd;break;case"before-value":Gd("value"),rd+=sd;break}break;case"}":switch(Bd()){case"before-name":case"name":case"before-value":case"value":rd&&(Ad.value=rd.trim()),Ad.name&&Ad.value&&Vd(),zd("end"),Vd(),Fd(),Bd()==="at-group"&&(zd("at-group-end"),Vd(),Fd()),cd>0&&(cd=cd-1);break;case"at-group":case"before-selector":case"selector":if(Pd(-1)===" \\ "){rd+=sd;break}cd>0&&Bd(1)==="at-group"&&(zd("at-group-end"),Vd()),cd>1&&Fd(),cd>0&&(cd=cd-1);break;case"double-string":case"single-string":case"comment":rd+=sd;break}break;case'"':case"'":switch(Bd()){case"double-string":sd==='"'&&Pd(-1)!==" \\ "&&Fd();break;case"single-string":sd==="'"&&Pd(-1)!==" \\ "&&Fd();break;case"before-at-value":Gd("at-value"),Ud(sd==='"'?"double-string":"single-string");break;case"before-value":Gd("value"),Ud(sd==='"'?"double-string":"single-string");break;case"comment":break;default:Pd(-1)!==" \\ "&&Ud(sd==='"'?"double-string":"single-string")}rd+=sd;break;case"/":switch(Bd()){case"comment":case"double-string":case"single-string":rd+=sd;break;case"before-value":case"selector":case"name":case"value":if(Md("*")){var Xd=Od("*/");Xd&&Qd(Xd+1)}else Bd()=="before-value"&&Gd("value"),rd+=sd;break;default:Md("*")?(zd("comment"),Ud("comment"),Qd()):rd+=sd;break}break;case"*":switch(Bd()){case"comment":Md("/")?(Ad.text=rd,Qd(),Vd(),Fd()):rd+=sd;break;case"before-selector":rd+=sd,zd("selector"),Ud("selector");break;case"before-value":Gd("value"),rd+=sd;break;default:rd+=sd}break;case"@":switch(Bd()){case"comment":case"double-string":case"single-string":rd+=sd;break;case"before-value":Gd("value"),rd+=sd;break;default:for(var df=!1,mf,_f,hf=0,gf=Nd.length;!df&&hf<gf;++hf)_f=Nd[hf],mf=_f.name||_f,kd(mf)&&(df=!0,zd(mf),Ud(_f.state||"at-group"),Qd(mf.length),_f.prefix&&(Ad.prefix=_f.prefix),_f.type&&(Ad.type=_f.type));df||(rd+=sd);break}break;case"(":switch(Bd()){case"value":Ud("value-paren");break;case"before-value":Gd("value");break}rd+=sd;break;case")":switch(Bd()){case"value-paren":Fd();break;case"before-value":Gd("value");break}rd+=sd;break;default:switch(Bd()){case"before-selector":zd("selector"),Ud("selector");break;case"before-name":zd("property"),Gd("name");break;case"before-value":Gd("value");break;case"before-at-value":Gd("at-value");break}rd+=sd;break}return Td}})(lexer);var lexerExports=lexer.exports,parser $ 2={exports:{}};(function(Ra,qa){debugExports("parse");var ed=lexerExports;Ra.exports=ld;var td,rd,sd,od;function ld(Fd,Ud){Ud||(Ud={}),td=!!Ud.comments,sd=!!Ud.position,rd=0,od=Array.isArray(Fd)?Fd.slice():ed(Fd);for(var Gd,Qd=[],Vd;Vd=ud();)Gd=kd(Vd),Gd&&Qd.push(Gd);return{type:"stylesheet",stylesheet:{rules:Qd}}}function cd(Fd,Ud){Ud||(Ud={});for(var Gd,Qd=["type","name","value"],Vd={},zd=0;zd<Qd.length;++zd)Gd=Qd[zd],Fd[Gd]&&(Vd[Gd]=Ud[Gd]||Fd[Gd]);for(Qd=Object.keys(Ud),zd=0;zd<Qd.length;++zd)Gd=Qd[zd],Vd[Gd]||(Vd[Gd]=Ud[Gd]);return sd&&(Vd.position={start:Fd.start,end:Fd.end}),Vd}function ud(){var Fd=od.shift();return Fd}function _d(Fd){rd=rd+1;var Ud={};switch(Fd.type){case"font-face":case"viewport":Ud.declarations=Md();break;case"page":Ud.prefix=Fd.prefix,Ud.declarations=Md();break;default:Ud.prefix=Fd.prefix,Ud.rul
` ,ld=" ");var Ud=Nd(Pd.stylesheet.rules,Od).join( `
` ).trim();return Ud}function ud(Pd){if(Pd){sd+=Pd;return}return td?"":Array(sd).join(rd||"")}function _d(Pd){return"@"+Pd.type+" "+Pd.value+";"+od}function Ed(Pd){var Fd="",Ud=Pd.prefix||"";Pd.name&&(Fd=" "+Pd.name);var Gd=Pd.type!=="page";return"@"+Ud+Pd.type+Fd+ld+Rd(Pd,Gd)+od}function Ad(Pd){return ed?"/*"+(Pd.text||"")+"*/"+od:""}function Td(Pd){var Fd;return Pd.selectors?Fd=Pd.selectors.join(","+od):(Fd="@"+Pd.type,Fd+=Pd.name?" "+Pd.name:""),ud()+Fd+ld+Rd(Pd)+od}function Nd(Pd,Fd){return Pd.reduce(function(Ud,Gd){var Qd=Gd.type==="comment"?Ad(Gd):Fd(Gd);return Qd&&Ud.push(Qd),Ud},[])}function Rd(Pd,Fd){var Ud=Pd.declarations,Gd=kd;return Pd.rules&&(Ud=Pd.rules,Gd=Td),Ud=Bd(Ud,Gd),Ud&&(Ud=od+Ud+(Fd?"":od)),"{"+Ud+ud()+"}"}function Bd(Pd,Fd){if(!Pd)return"";ud(1);var Ud=Nd(Pd,Fd);return ud(-1),Ud.length?Ud.join(od):""}function kd(Pd){if(Pd.type==="property")return Md(Pd)}function Od(Pd){switch(Pd.type){case"rule":return Td(Pd);case"media":case"keyframes":return Ed(Pd);case"comment":return Ad(Pd);case"import":case"charset":case"namespace":return _d(Pd);case"font-face":case"supports":case"viewport":case"document":case"page":return Ed(Pd)}}function Md(Pd){var Fd=Pd.name?Pd.name+":"+ld:"";return ud()+Fd+Pd.value+";"}})(stringify $ 1);var stringifyExports=stringify $ 1.exports,mensch={lex:lexerExports,parse:parserExports,stringify:stringifyExports},selector={exports:{}},escapeRe=/([-.*+?^ ${ } ()|[ \] \/ \\ ])/g,unescapeRe=/ \\ /g,escape $ 1=function(Ra){return(Ra+"").replace(escapeRe," \\ $ 1")},unescape $ 1=function(Ra){return(Ra+"").replace(unescapeRe,"")},slickRe=RegExp( ` ^ ( ? : \ \ s * ( , ) \ \ s * | \ \ s * ( < combinator > + ) \ \ s * | ( \ \ s + ) | ( < unicode > + | \ \ * ) | \ \ # ( < unicode > + ) | \ \ . ( < unicode > + ) | \ \ [ \ \ s * ( < unicode1 > + ) ( ? : \ \ s * ( [ * ^ $ ! ~ | ] ? = ) ( ? : \ \ s * ( ? : ( [ "']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([" '])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/,"["+escape$1(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(qa){this.combinator=qa||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var Ra="",qa,ed;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;ed=this.attributes[qa++];)Ra+="["+ed.name+(ed.operator?ed.operator+' "'+ed.value+'" ' : "" ) + "]" ; if ( this . pseudos ) for ( qa = 0 ; ed = this . pseudos [ qa ++ ] ; ) Ra += ":" + ed . name , ed . value && ( Ra += "(" + ed . value + ")" ) ; this . raw = Ra } return this . raw } ; var Expression = function ( ) { this . length = 0 } ; Expression . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var Ra = "" , qa = 0 , ed ; ed = this [ qa ++ ] ; ) qa !== 1 && ( Ra += " " ) , ed . combinator !== " " && ( Ra += ed . combinator + " " ) , Ra += ed ; this . raw = Ra } return this . raw } ; var replacer = function ( Ra , qa , ed , td , rd , sd , od , ld , cd , ud , _d , Ed , Ad , Td , Nd , Rd ) { var Bd , kd ; if ( ( qa || ! this . length ) && ( Bd = this [ this . length ++ ] = new Expression , qa ) ) return "" ; if ( Bd || ( Bd = this [ this . length - 1 ] ) , ( ed || td || ! Bd . length ) && ( kd = Bd [ Bd . length ++ ] = new Part ( ed ) ) , kd || ( kd = Bd [ Bd . length - 1 ] ) , rd ) kd . tag = unescape$1 ( rd ) ; else if ( sd ) kd . id = unescape$1 ( sd ) ; else if ( od ) { var Od = unescape$1 ( od ) , Md = kd . classes || ( kd . classes = { } ) ; if ( ! Md [ Od ] ) { Md [ Od ] = escape$1 ( od ) ; var Pd = kd . classList || ( kd . classList = [ ] ) ; Pd . push ( Od ) , Pd . sort ( ) } } else Ad ? ( Rd = Rd || Nd , ( kd . pseudos || ( kd . pseudos = [ ] ) ) . push ( { type : Ed . length == 1 ? "class" : "element" , name : unescape$1 ( Ad ) , escapedName : escape$1 ( Ad ) , value : Rd ? unescape$1 ( Rd ) : null , escapedValue : Rd ? escape$1 ( Rd ) : null } ) ) : ld && ( _d = _d ? escape$1 ( _d ) : null , ( kd . attributes || ( kd . attributes = [ ] ) ) . push ( { operator : cd , name : unescape$1 ( ld ) , escapedName : escape$1 ( ld ) , value : _d ? unescape$1 ( _d ) : null , escapedValue : _d ? escape$1 ( _d ) : null } ) ) ; return "" } , Expressions = function ( qa ) { this . length = 0 ; for ( var ed = this , td = qa , rd ; qa ; ) { if ( rd = qa . replace ( slickRe , function ( ) { return replacer . apply ( ed , arguments ) } ) , rd === qa ) throw new Error ( td + " is an invalid expression" ) ; qa = rd } } ; Expressions . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var Ra = [ ] , qa = 0 , ed ; ed = this [ qa ++ ] ; ) Ra . push ( ed ) ; this . raw = Ra . join ( ", " ) } return this . raw } ; var cache$1 = { } , parse = function ( Ra ) { return Ra == null ? null : ( Ra = ( "" + Ra ) . replace ( /^\s+|\s+$/g , "" ) , cache$1 [ Ra ] || ( cache$1 [ R
2024-08-27 22:31:52 +08:00
* Returns an array of the selectors .
*
* @ license Sizzle CSS Selector Engine - MIT
* @ param { String } selectorText from mensch
* @ api public
2024-09-16 00:03:18 +08:00
* / R a . e x t r a c t = f u n c t i o n ( s d ) { f o r ( v a r o d = 0 , l d = [ ] , c d = " " , u d = 0 , _ d = s d . l e n g t h ; u d < _ d ; u d + + ) { v a r E d = s d . c h a r A t ( u d ) ; o d ? ( ( E d = = = " ] " | | E d = = = " ) " ) & & o d - - , c d + = E d ) : E d = = = " , " ? ( l d . p u s h ( c d ) , c d = " " ) : ( ( E d = = = " [ " | | E d = = = " ( " ) & & o d + + , ( c d . l e n g t h | | E d ! = = " , " & & E d ! = = `
` &&Ed!==" ")&&(cd+=Ed))}return cd.length&&ld.push(cd),ld},Ra.parseCSS=function(rd){for(var sd=qa.parse(rd,{position:!0,comments:!0}),od=typeof sd.stylesheet<"u"&&sd.stylesheet.rules?sd.stylesheet.rules:[],ld=[],cd=0,ud=od.length;cd<ud;cd++)if(od[cd].type=="rule")for(var _d=od[cd],Ed=_d.selectors,Ad=0,Td=Ed.length;Ad<Td;Ad++)ld.push([Ed[Ad],_d.declarations]);return ld},Ra.getPreservedText=function(rd,sd,od){for(var ld=qa.parse(rd,{position:!0,comments:!0}),cd=typeof ld.stylesheet<"u"&&ld.stylesheet.rules?ld.stylesheet.rules:[],ud=[],_d=cd.length-1;_d>=0;_d--)(sd.fontFaces&&cd[_d].type==="font-face"||sd.mediaQueries&&cd[_d].type==="media"||sd.keyFrames&&cd[_d].type==="keyframes"||sd.pseudos&&cd[_d].selectors&&this.matchesPseudo(cd[_d].selectors[0],od))&&ud.unshift(qa.stringify({stylesheet:{rules:[cd[_d]]}},{comments:!1,indentation:" "})),cd[_d].position.start;return ud.length===0?!1: `
` +ud.join( `
2024-08-27 22:31:52 +08:00
` )+ `
2024-09-16 00:03:18 +08:00
` },Ra.normalizeLineEndings=function(rd){return rd.replace(/ \r \n /g, `
2024-08-27 22:31:52 +08:00
` ).replace(/ \n /g, ` \ r
2024-09-16 00:03:18 +08:00
` )},Ra.matchesPseudo=function(rd,sd){return sd.find(function(od){return rd.indexOf(od)>-1})},Ra.compareFunc=function(rd,sd){for(var od=Math.min(rd.length,sd.length),ld=0;ld<od;ld++)if(rd[ld]!==sd[ld])return rd[ld]>sd[ld]?1:-1;return rd.length-sd.length},Ra.compare=function(rd,sd){return Ra.compareFunc(rd,sd)==1?rd:sd},Ra.getDefaultOptions=function(rd){var sd=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},rd);return sd.webResources=sd.webResources||{},sd}}(utils $ 4)),utils $ 4}(function(Ra){var qa=lib $ e;requireUtils $ 1();var ed=function(rd,sd,od){return sd=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},sd),rd=od(rd),qa.load(rd,sd)},td=function(){var rd=[],sd=function(ld){var cd=Ra.exports.codeBlocks;return Object.keys(cd).forEach(function(ud){var _d=new RegExp(cd[ud].start+"([ \\ S \\ s]*?)"+cd[ud].end,"g");ld=ld.replace(_d,function(Ed,Ad){return rd.push(Ed),"JUICE_CODE_BLOCK_"+(rd.length-1)+"_"})}),ld},od=function(ld){for(var cd=0;cd<rd.length;cd++){var ud=new RegExp("JUICE_CODE_BLOCK_"+cd+'_(="")?',"gi");ld=ld.replace(ud,function(){return rd[cd]})}return ld};return{encodeEntities:sd,decodeEntities:od}};Ra.exports=function(rd,sd,od,ld){var cd=td(),ud=ed(rd,sd,cd.encodeEntities),_d=[ud];_d.push.apply(_d,ld);var Ed=od.apply(void 0,_d)||ud;return sd&&sd.xmlMode?cd.decodeEntities(Ed.xml()):cd.decodeEntities(Ed.html())},Ra.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cheerio $ 2);var cheerioExports=cheerio $ 2.exports,numbers $ 1={};numbers $ 1.romanize=function(Ra){if(isNaN(Ra))return NaN;for(var qa=String(+Ra).split(""),ed=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],td="",rd=3;rd--;)td=(ed[+qa.pop()+rd*10]||"")+td;return Array(+qa.join("")+1).join("M")+td};numbers $ 1.alphanumeric=function(Ra){for(var qa="",ed;Ra>0;)ed=(Ra-1)%26,qa=String.fromCharCode(65+ed)+qa,Ra=(Ra-ed)/26|0;return qa||void 0};var utils $ 3=requireUtils $ 1(),numbers=numbers $ 1,inline=function(qa){qa.ignoredPseudos=["hover","active","focus","visited","link"],qa.widthElements=["TABLE","TD","TH","IMG"],qa.heightElements=["TABLE","TD","TH","IMG"],qa.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],qa.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],qa.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},qa.excludedProperties=[],qa.juiceDocument=_d,qa.inlineDocument=ed;function ed(Td,Nd,Rd){Rd=Rd||{};var Bd=utils $ 3.parseCSS(Nd),kd=[],Od="style",Md={};if(Rd.styleAttributeName&&(Od=Rd.styleAttributeName),Bd.forEach(Ud),kd.forEach(Gd),Rd.inlinePseudoElements&&kd.forEach(Qd),Rd.applyWidthAttributes&&kd.forEach(function(df){Vd(df,"width")}),Rd.applyHeightAttributes&&kd.forEach(function(df){Vd(df,"height")}),Rd.applyAttributesTableElements&&kd.forEach(Xd),Rd.insertPreservedExtraCss&&Rd.extraCss){var Pd=utils $ 3.getPreservedText(Rd.extraCss,{mediaQueries:Rd.preserveMediaQueries,fontFaces:Rd.preserveFontFaces,keyFrames:Rd.preserveKeyFrames});if(Pd){var Fd=null;Rd.insertPreservedExtraCss!==!0?Fd=Td(Rd.insertPreservedExtraCss):(Fd=Td("head"),Fd.length||(Fd=Td("body")),Fd.length||(Fd=Td.root())),Fd.first().append("<style>"+Pd+"</style>")}}function Ud(df){var mf=df[0],_f=df[1],hf=new utils $ 3.Selector(mf),gf=hf.parsed();if(gf){for(var yf=ld(gf),Cf=0;Cf<gf.length;++Cf){var Ff=gf[Cf];if(Ff.pseudos)for(var Qf=0;Qf<Ff.pseudos.length;++Qf){var Uf=Ff.pseudos[Qf];if(qa.ignoredPseudos.indexOf(Uf.name)>=0)return}}if(yf){var Lf=gf[gf.length-1],wf=Lf.pseudos;Lf.pseudos=ud(Lf.pseudos),mf=gf.toString(),Lf.pseudos=wf}var Nf;try{Nf=Td(mf)}catch{return}Nf.each(function(){var Zf=this;if(Zf.name&&qa.nonVisualElements.indexOf(Zf.name.toUpperCase())>=0)return;if(yf){var Kf="pseudo"+yf,Tf=Zf[Kf];Tf||(Tf=Zf[Kf]=Td
` +Nd.extraCss,ed(Td,Rd,Nd),Td}function Ed(Td,Nd){var Rd=[],Bd=Td("style"),kd,Od,Md;return Bd.each(function(){Md=this;var Pd=!!Md.childNodes;if(kd=Pd?Md.childNodes:Md.children,kd.length!==1){Nd.removeStyleTags&&Td(Md).remove();return}if(Od=kd[0].data,Nd.applyStyleTags&&Td(Md).attr("data-embed")===void 0&&Rd.push(Od),Nd.removeStyleTags&&Td(Md).attr("data-embed")===void 0){var Fd=Pd?Md.childNodes[0].nodeValue:Md.children[0].data,Ud=utils $ 3.getPreservedText(Fd,{mediaQueries:Nd.preserveMediaQueries,fontFaces:Nd.preserveFontFaces,keyFrames:Nd.preserveKeyFrames,pseudos:Nd.preservePseudos},qa.ignoredPseudos);Ud?Pd?Md.childNodes[0].nodeValue=Ud:Md.children[0].data=Ud:Td(Md).remove()}Td(Md).removeAttr("data-embed")}),Rd}function Ad(Td,Nd){var Rd=Ed(Td,Nd),Bd=Rd.join( `
` );return Bd}return qa},cheerio=cheerioExports,makeJuiceClient=inline,juiceClient=makeJuiceClient(function(Ra,qa){return cheerio(Ra,{xmlMode:qa&&qa.xmlMode},juiceDocument,[qa])}),juiceDocument=function(Ra,qa){return juiceClient.juiceDocument(Ra,qa)};juiceClient.inlineContent=function(Ra,qa,ed){return cheerio(Ra,{xmlMode:ed&&ed.xmlMode},juiceClient.inlineDocument,[qa,ed])};var client=juiceClient;const juice=getDefaultExportFromCjs(client);var yu $ 2=Object.create,He $ 2=Object.defineProperty,Au $ 1=Object.getOwnPropertyDescriptor,Bu $ 1=Object.getOwnPropertyNames,wu $ 2=Object.getPrototypeOf,xu $ 1=Object.prototype.hasOwnProperty,sr $ 2=Ra=>{throw TypeError(Ra)},_u $ 2=(Ra,qa)=>()=>(Ra&&(qa=Ra(Ra=0)),qa),At $ 5=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),We $ 1=(Ra,qa)=>{for(var ed in qa)He $ 2(Ra,ed,{get:qa[ed],enumerable:!0})},ar $ 2=(Ra,qa,ed,td)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let rd of Bu $ 1(qa))!xu $ 1.call(Ra,rd)&&rd!==ed&&He $ 2(Ra,rd,{get:()=>qa[rd],enumerable:!(td=Au $ 1(qa,rd))||td.enumerable});return Ra},Me $ 5=(Ra,qa,ed)=>(ed=Ra!=null?yu $ 2(wu $ 2(Ra)):{},ar $ 2(He $ 2(ed,"default",{value:Ra,enumerable:!0}),Ra)),vu $ 3=Ra=>ar $ 2(He $ 2({},"__esModule",{value:!0}),Ra),bu $ 2=(Ra,qa,ed)=>qa.has(Ra)||sr $ 2("Cannot "+ed),Dr $ 2=(Ra,qa,ed)=>qa.has(Ra)?sr $ 2("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,ed),pe $ 1=(Ra,qa,ed)=>(bu $ 2(Ra,qa,"access private method"),ed),it $ 2=At $ 5((Ra,qa)=>{var ed=new Proxy(String,{get:()=>ed});qa.exports=ed}),Tn $ 3={};We $ 1(Tn $ 3,{default:()=>_o $ 2,shouldHighlight:()=>xo $ 3});var xo $ 3,_o $ 2,kn $ 1=_u $ 2(()=>{xo $ 3=()=>!1,_o $ 2=String}),Pn $ 4=At $ 5((Ra,qa)=>{var ed=String,td=function(){return{isColorSupported:!1,reset:ed,bold:ed,dim:ed,italic:ed,underline:ed,inverse:ed,hidden:ed,strikethrough:ed,black:ed,red:ed,green:ed,yellow:ed,blue:ed,magenta:ed,cyan:ed,white:ed,gray:ed,bgBlack:ed,bgRed:ed,bgGreen:ed,bgYellow:ed,bgBlue:ed,bgMagenta:ed,bgCyan:ed,bgWhite:ed}};qa.exports=td(),qa.exports.createColors=td}), $ n $ 4=At $ 5(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.codeFrameColumns=Td,Ra.default=Nd;var qa=(kn $ 1(),vu $ 3(Tn $ 3)),ed=rd(Pn $ 4(),!0);function td(Rd){if(typeof WeakMap!="function")return null;var Bd=new WeakMap,kd=new WeakMap;return(td=function(Od){return Od?kd:Bd})(Rd)}function rd(Rd,Bd){if(Rd===null||typeof Rd!="object"&&typeof Rd!="function")return{default:Rd};var kd=td(Bd);if(kd&&kd.has(Rd))return kd.get(Rd);var Od={__proto__:null},Md=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pd in Rd)if(Pd!=="default"&&{}.hasOwnProperty.call(Rd,Pd)){var Fd=Md?Object.getOwnPropertyDescriptor(Rd,Pd):null;Fd&&(Fd.get||Fd.set)?Object.defineProperty(Od,Pd,Fd):Od[Pd]=Rd[Pd]}return Od.default=Rd,kd&&kd.set(Rd,Od),Od}var sd=ed.default,od=(Rd,Bd)=>kd=>Rd(Bd(kd)),ld;function cd(Rd){return Rd?(ld!=null||(ld=(0,ed.createColors)(!0)),ld):sd}var ud=!1;function _d(Rd){return{gutter:Rd.gray,marker:od(Rd.red,Rd.bold),message:od(Rd.red,Rd.bold)}}var Ed=/ \r \n |[ \n \r \u 2028 \u 2029]/;function Ad(Rd,Bd,kd){let Od=Object.assign({column:0,line:-1},Rd.start),Md=Object.assign({},Od,Rd.end),{linesAbove:Pd=2,linesBelow:Fd=3}=kd||{},Ud=Od.line,Gd=Od.column,Qd=Md.line,Vd=Md.column,zd=Math.max(Ud-(Pd+1),0),Xd=Math.min(Bd.length,Qd+Fd);Ud===-1&&(zd=0),Qd===-1&&(Xd=Bd.length);let df=Qd-Ud,mf={};if(df)for(let _f=0;_f<=df;_f++){let hf=_f+Ud;if(!Gd)mf[hf]=!0;else if(_f===0){let gf=Bd[hf-1].length;mf[hf]=[Gd,gf-Gd+1]}else if(_f===df)mf[hf]=[0,Vd];else{let gf=Bd[hf-_f].length;mf[hf]=[0,gf]}}else Gd===Vd?Gd?mf[Ud]=[Gd,0]:mf[Ud]=!0:mf[Ud]=[Gd,Vd-Gd];return{start:zd,end:Xd,markerLines:mf}}function Td(Rd,Bd,kd={}){let Od=(kd.highlightCode||kd.forceColor)&&(0,qa.shouldHighlight)(kd),Md=cd(kd.forceColor),Pd=_d(Md),Fd=(mf,_f)=>Od?mf(_f):_f,Ud=Rd.split(Ed),{start:Gd,end:Qd,markerLines:Vd}=Ad(Bd,Ud,kd),zd=Bd.start&&typeof Bd.start.column=="number",Xd=String(Qd).length,df=(Od?(0,qa.default)(Rd,kd):Rd).split(Ed,Qd).slice(Gd,Qd).map((mf,_f)=>{let hf=Gd+1+_f,gf= ` $ { ` ${ hf } ` . slice ( - Xd ) } | ` ,yf=Vd[hf],Cf=!Vd[hf+1];if(yf){let Ff="";if(Array.isArray(yf)){let Qf=mf.slice(0,Math.max(yf[0]-1,0)).rep
` ,Fd(Pd.gutter,gf.replace(/ \d /g," "))," ",Qf,Fd(Pd.marker,"^").repeat(Uf)].join(""),Cf&&kd.message&&(Ff+=" "+Fd(Pd.message,kd.message))}return[Fd(Pd.marker,">"),Fd(Pd.gutter,gf),mf.length>0? ` $ { mf } ` :"",Ff].join("")}else return ` $ { Fd ( Pd . gutter , gf ) } $ { mf . length > 0 ? ` ${ mf } ` : "" } ` }).join( `
` );return kd.message&&!zd&&(df= ` $ { " " . repeat ( Xd + 1 ) } $ { kd . message }
$ { df } ` ),Od?Md.reset(df):df}function Nd(Rd,Bd,kd,Od={}){if(!ud){ud=!0;let Md="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use ` codeFrameColumns ` .";{let Pd=new Error(Md);Pd.name="DeprecationWarning",console.warn(new Error(Md))}}return kd=Math.max(kd,0),Td(Rd,{start:{column:kd,line:Bd}},Od)}}),ir $ 3={};We $ 1(ir $ 3,{__debug:()=>di $ 3,check:()=>fi $ 3,doc:()=>nr $ 2,format:()=>gu $ 2,formatWithCursor:()=>Cu $ 2,getSupportInfo:()=>pi $ 4,util:()=>or $ 2,version:()=>fu $ 1});var Ou $ 2=(Ra,qa,ed,td)=>{if(!(Ra&&qa==null))return qa.replaceAll?qa.replaceAll(ed,td):ed.global?qa.replace(ed,td):qa.split(ed).join(td)},ne $ 3=Ou $ 2;function Z $ 1(){}Z $ 1.prototype={diff:function(Ra,qa){var ed,td=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rd=td.callback;typeof td=="function"&&(rd=td,td={}),this.options=td;var sd=this;function od(Md){return rd?(setTimeout(function(){rd(void 0,Md)},0),!0):Md}Ra=this.castInput(Ra),qa=this.castInput(qa),Ra=this.removeEmpty(this.tokenize(Ra)),qa=this.removeEmpty(this.tokenize(qa));var ld=qa.length,cd=Ra.length,ud=1,_d=ld+cd;td.maxEditLength&&(_d=Math.min(_d,td.maxEditLength));var Ed=(ed=td.timeout)!==null&&ed!==void 0?ed:1/0,Ad=Date.now()+Ed,Td=[{oldPos:-1,lastComponent:void 0}],Nd=this.extractCommon(Td[0],qa,Ra,0);if(Td[0].oldPos+1>=cd&&Nd+1>=ld)return od([{value:this.join(qa),count:qa.length}]);var Rd=-1/0,Bd=1/0;function kd(){for(var Md=Math.max(Rd,-ud);Md<=Math.min(Bd,ud);Md+=2){var Pd=void 0,Fd=Td[Md-1],Ud=Td[Md+1];Fd&&(Td[Md-1]=void 0);var Gd=!1;if(Ud){var Qd=Ud.oldPos-Md;Gd=Ud&&0<=Qd&&Qd<ld}var Vd=Fd&&Fd.oldPos+1<cd;if(!Gd&&!Vd){Td[Md]=void 0;continue}if(!Vd||Gd&&Fd.oldPos+1<Ud.oldPos?Pd=sd.addToPath(Ud,!0,void 0,0):Pd=sd.addToPath(Fd,void 0,!0,1),Nd=sd.extractCommon(Pd,qa,Ra,Md),Pd.oldPos+1>=cd&&Nd+1>=ld)return od(Su $ 1(sd,Pd.lastComponent,qa,Ra,sd.useLongestToken));Td[Md]=Pd,Pd.oldPos+1>=cd&&(Bd=Math.min(Bd,Md-1)),Nd+1>=ld&&(Rd=Math.max(Rd,Md+1))}ud++}if(rd)(function Md(){setTimeout(function(){if(ud>_d||Date.now()>Ad)return rd();kd()||Md()},0)})();else for(;ud<=_d&&Date.now()<=Ad;){var Od=kd();if(Od)return Od}},addToPath:function(Ra,qa,ed,td){var rd=Ra.lastComponent;return rd&&rd.added===qa&&rd.removed===ed?{oldPos:Ra.oldPos+td,lastComponent:{count:rd.count+1,added:qa,removed:ed,previousComponent:rd.previousComponent}}:{oldPos:Ra.oldPos+td,lastComponent:{count:1,added:qa,removed:ed,previousComponent:rd}}},extractCommon:function(Ra,qa,ed,td){for(var rd=qa.length,sd=ed.length,od=Ra.oldPos,ld=od-td,cd=0;ld+1<rd&&od+1<sd&&this.equals(qa[ld+1],ed[od+1]);)ld++,od++,cd++;return cd&&(Ra.lastComponent={count:cd,previousComponent:Ra.lastComponent}),Ra.oldPos=od,ld},equals:function(Ra,qa){return this.options.comparator?this.options.comparator(Ra,qa):Ra===qa||this.options.ignoreCase&&Ra.toLowerCase()===qa.toLowerCase()},removeEmpty:function(Ra){for(var qa=[],ed=0;ed<Ra.length;ed++)Ra[ed]&&qa.push(Ra[ed]);return qa},castInput:function(Ra){return Ra},tokenize:function(Ra){return Ra.split("")},join:function(Ra){return Ra.join("")}};function Su $ 1(Ra,qa,ed,td,rd){for(var sd=[],od;qa;)sd.push(qa),od=qa.previousComponent,delete qa.previousComponent,qa=od;sd.reverse();for(var ld=0,cd=sd.length,ud=0,_d=0;ld<cd;ld++){var Ed=sd[ld];if(Ed.removed){if(Ed.value=Ra.join(td.slice(_d,_d+Ed.count)),_d+=Ed.count,ld&&sd[ld-1].added){var Ad=sd[ld-1];sd[ld-1]=sd[ld],sd[ld]=Ad}}else{if(!Ed.added&&rd){var Td=ed.slice(ud,ud+Ed.count);Td=Td.map(function(Rd,Bd){var kd=td[_d+Bd];return kd.length>Rd.length?kd:Rd}),Ed.value=Ra.join(Td)}else Ed.value=Ra.join(ed.slice(ud,ud+Ed.count));ud+=Ed.count,Ed.added||(_d+=Ed.count)}}var Nd=sd[cd-1];return cd>1&&typeof Nd.value=="string"&&(Nd.added||Nd.removed)&&Ra.equals("",Nd.value)&&(sd[cd-2].value+=Nd.value,sd.pop()),sd}var lr $ 1=/^[A-Za-z \x C0- \u 02C6 \u 02C8- \u 02D7 \u 02DE- \u 02FF \u 1E00- \u 1EFF]+ $ /,cr $ 2=/ \S /,fr $ 1=new Z $ 1;fr $ 1.equals=function(Ra,qa){return this.options.ignoreCase&&(Ra=Ra.toLowerCase(),qa=qa.toLowerCase()),Ra===qa||this.options.ignoreWhitespace&&!cr $ 2.test(Ra)&&!cr $ 2.test(qa)};fr $ 1.tokenize=function(Ra){for(var qa=Ra.split(/([^ \S \r \n ]+|[()[ \] {}'" \r \n ]| \b )/),ed=0;ed<qa.le
` ));var qa=[],ed=Ra.split(/( \n | \r \n )/);ed[ed.length-1]||ed.pop();for(var td=0;td<ed.length;td++){var rd=ed[td];td%2&&!this.options.newlineIsToken?qa[qa.length-1]+=rd:(this.options.ignoreWhitespace&&(rd=rd.trim()),qa.push(rd))}return qa};var Nu $ 2=new Z $ 1;Nu $ 2.tokenize=function(Ra){return Ra.split(/( \S .+?[.!?])(?= \s +| $ )/)};var Tu $ 2=new Z $ 1;Tu $ 2.tokenize=function(Ra){return Ra.split(/([{}:;,]| \s +)/)};function $ e $ 3(Ra){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"? $ e $ 3=function(qa){return typeof qa}: $ e $ 3=function(qa){return qa&&typeof Symbol=="function"&&qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa}, $ e $ 3(Ra)}var ku $ 1=Object.prototype.toString,Ae $ 2=new Z $ 1;Ae $ 2.useLongestToken=!0;Ae $ 2.tokenize=pr $ 2.tokenize;Ae $ 2.castInput=function(Ra){var qa=this.options,ed=qa.undefinedReplacement,td=qa.stringifyReplacer,rd=td===void 0?function(sd,od){return typeof od>"u"?ed:od}:td;return typeof Ra=="string"?Ra:JSON.stringify(Bt $ 4(Ra,null,null,rd),rd," ")};Ae $ 2.equals=function(Ra,qa){return Z $ 1.prototype.equals.call(Ae $ 2,Ra.replace(/,([ \r \n ])/g," $ 1"),qa.replace(/,([ \r \n ])/g," $ 1"))};function Bt $ 4(Ra,qa,ed,td,rd){qa=qa||[],ed=ed||[],td&&(Ra=td(rd,Ra));var sd;for(sd=0;sd<qa.length;sd+=1)if(qa[sd]===Ra)return ed[sd];var od;if(ku $ 1.call(Ra)==="[object Array]"){for(qa.push(Ra),od=new Array(Ra.length),ed.push(od),sd=0;sd<Ra.length;sd+=1)od[sd]=Bt $ 4(Ra[sd],qa,ed,td,rd);return qa.pop(),ed.pop(),od}if(Ra&&Ra.toJSON&&(Ra=Ra.toJSON()), $ e $ 3(Ra)==="object"&&Ra!==null){qa.push(Ra),od={},ed.push(od);var ld=[],cd;for(cd in Ra)Ra.hasOwnProperty(cd)&&ld.push(cd);for(ld.sort(),sd=0;sd<ld.length;sd+=1)cd=ld[sd],od[cd]=Bt $ 4(Ra[cd],qa,ed,td,cd);qa.pop(),ed.pop()}else od=Ra;return od}var Ve $ 3=new Z $ 1;Ve $ 3.tokenize=function(Ra){return Ra.slice()};Ve $ 3.join=Ve $ 3.removeEmpty=function(Ra){return Ra};function dr $ 2(Ra,qa,ed){return Ve $ 3.diff(Ra,qa,ed)}function Fr $ 2(Ra){let qa=Ra.indexOf(" \r ");return qa>=0?Ra.charAt(qa+1)=== `
2024-08-30 15:19:18 +08:00
` ?"crlf":"cr":"lf"}function Be $ 4(Ra){switch(Ra){case"cr":return" \r ";case"crlf":return ` \ r
2024-08-27 22:31:52 +08:00
` ;default:return `
2024-09-16 00:03:18 +08:00
` }}function wt $ 2(Ra,qa){let ed;switch(qa){case `
` :ed=/ \n /gu;break;case" \r ":ed=/ \r /gu;break;case ` \ r
` :ed=/ \r \n /gu;break;default:throw new Error( ` Unexpected "eol" $ { JSON . stringify ( qa ) } . ` )}let td=Ra.match(ed);return td?td.length:0}function mr $ 2(Ra){return ne $ 3(!1,Ra,/ \r \n ?/gu, `
2024-08-30 15:19:18 +08:00
` )}var U $ 2="string",W $ 2="array",z $ 2="cursor",L $ 3="indent",P $ 2="align",I="trim",x $ 1="group",S="fill",_ $ 2="if-break",R $ 2="indent-if-break",Y $ 2="line-suffix",j="line-suffix-boundary",B $ 1="line",N $ 3="label",b $ 1="break-parent",Ue $ 4=new Set([z $ 2,L $ 3,P $ 2,I,x $ 1,S,_ $ 2,R $ 2,Y $ 2,j,B $ 1,N $ 3,b $ 1]);function Lu $ 1(Ra){if(typeof Ra=="string")return U $ 2;if(Array.isArray(Ra))return W $ 2;if(!Ra)return;let{type:qa}=Ra;if(Ue $ 4.has(qa))return qa}var G $ 3=Lu $ 1,Pu $ 1=Ra=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Ra);function Iu $ 2(Ra){let qa=Ra===null?"null":typeof Ra;if(qa!=="string"&&qa!=="object")return ` Unexpected doc '${qa}' ,
2024-09-16 00:03:18 +08:00
Expected it to be 'string' or 'object' . ` ;if(G $ 3(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return ` Unexpected doc '${ed}' . ` ;let td=Pu $ 1([...Ue $ 4].map(rd=> ` '${rd}' ` ));return ` Unexpected doc . type '${Ra.type}' .
Expected it to be $ { td } . ` }var xt=class extends Error{constructor(qa){super(Iu $ 2(qa));n_(this,"name","InvalidDocError");this.doc=qa}},Q $ 3=xt,Er $ 2={};function Ru $ 2(Ra,qa,ed,td){let rd=[Ra];for(;rd.length>0;){let sd=rd.pop();if(sd===Er $ 2){ed(rd.pop());continue}ed&&rd.push(sd,Er $ 2);let od=G $ 3(sd);if(!od)throw new Q $ 3(sd);if((qa==null?void 0:qa(sd))!==!1)switch(od){case W $ 2:case S:{let ld=od===W $ 2?sd:sd.parts;for(let cd=ld.length,ud=cd-1;ud>=0;--ud)rd.push(ld[ud]);break}case _ $ 2:rd.push(sd.flatContents,sd.breakContents);break;case x $ 1:if(td&&sd.expandedStates)for(let ld=sd.expandedStates.length,cd=ld-1;cd>=0;--cd)rd.push(sd.expandedStates[cd]);else rd.push(sd.contents);break;case P $ 2:case L $ 3:case R $ 2:case N $ 3:case Y $ 2:rd.push(sd.contents);break;case U $ 2:case z $ 2:case I:case j:case B $ 1:case b $ 1:break;default:throw new Q $ 3(sd)}}}var we $ 2=Ru $ 2,hr $ 1=()=>{},ze $ 3=hr $ 1;function De $ 2(Ra){return{type:L $ 3,contents:Ra}}function ae $ 2(Ra,qa){return{type:P $ 2,contents:qa,n:Ra}}function _t $ 2(Ra,qa={}){return ze $ 3(qa.expandedStates),{type:x $ 1,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function Cr $ 1(Ra){return ae $ 2(Number.NEGATIVE_INFINITY,Ra)}function gr $ 2(Ra){return ae $ 2({type:"root"},Ra)}function yr $ 2(Ra){return ae $ 2(-1,Ra)}function Ar $ 2(Ra,qa){return _t $ 2(Ra[0],{...qa,expandedStates:Ra})}function Ge $ 2(Ra){return{type:S,parts:Ra}}function Br $ 4(Ra,qa="",ed={}){return{type:_ $ 2,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}function wr $ 3(Ra,qa){return{type:R $ 2,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function xe $ 3(Ra){return{type:Y $ 2,contents:Ra}}var xr $ 3={type:j},de $ 2={type:b $ 1},_r $ 3={type:I},_e $ 4={type:B $ 1,hard:!0},vt $ 3={type:B $ 1,hard:!0,literal:!0},Ke $ 2={type:B $ 1},vr $ 2={type:B $ 1,soft:!0},q $ 2=[_e $ 4,de $ 2],qe $ 3=[vt $ 3,de $ 2],ve $ 3={type:z $ 2};function be $ 5(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}function Je $ 3(Ra,qa,ed){let td=Ra;if(qa>0){for(let rd=0;rd<Math.floor(qa/ed);++rd)td=De $ 2(td);td=ae $ 2(qa%ed,td),td=ae $ 2(Number.NEGATIVE_INFINITY,td)}return td}function br $ 2(Ra,qa){return Ra?{type:N $ 3,label:Ra,contents:qa}:qa}function ee $ 2(Ra){var qa;if(!Ra)return"";if(Array.isArray(Ra)){let ed=[];for(let td of Ra)if(Array.isArray(td))ed.push(...ee $ 2(td));else{let rd=ee $ 2(td);rd!==""&&ed.push(rd)}return ed}return Ra.type===_ $ 2?{...Ra,breakContents:ee $ 2(Ra.breakContents),flatContents:ee $ 2(Ra.flatContents)}:Ra.type===x $ 1?{...Ra,contents:ee $ 2(Ra.contents),expandedStates:(qa=Ra.expandedStates)==null?void 0:qa.map(ee $ 2)}:Ra.type===S?{type:"fill",parts:Ra.parts.map(ee $ 2)}:Ra.contents?{...Ra,contents:ee $ 2(Ra.contents)}:Ra}function Or $ 3(Ra){let qa=Object.create(null),ed=new Set;return td(ee $ 2(Ra));function td(sd,od,ld){var cd,ud;if(typeof sd=="string")return JSON.stringify(sd);if(Array.isArray(sd)){let _d=sd.map(td).filter(Boolean);return _d.length===1?_d[0]: ` [ $ { _d . join ( ", " ) } ] ` }if(sd.type===B $ 1){let _d=((cd=ld==null?void 0:ld[od+1])==null?void 0:cd.type)===b $ 1;return sd.literal?_d?"literalline":"literallineWithoutBreakParent":sd.hard?_d?"hardline":"hardlineWithoutBreakParent":sd.soft?"softline":"line"}if(sd.type===b $ 1)return((ud=ld==null?void 0:ld[od-1])==null?void 0:ud.type)===B $ 1&&ld[od-1].hard?void 0:"breakParent";if(sd.type===I)return"trim";if(sd.type===L $ 3)return"indent("+td(sd.contents)+")";if(sd.type===P $ 2)return sd.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+td(sd.contents)+")":sd.n<0?"dedent("+td(sd.contents)+")":sd.n.type==="root"?"markAsRoot("+td(sd.contents)+")":"align("+JSON.stringify(sd.n)+", "+td(sd.contents)+")";if(sd.type===_ $ 2)return"ifBreak("+td(sd.breakContents)+(sd.flatContents?", "+td(sd.flatContents):"")+(sd.groupId?(sd.flatContents?"":', ""')+ ` , { groupId : $ { rd ( sd . groupId ) } } ` :"")+")";if(sd.type===R $ 2){let _d=[];sd.negate&&_d.push("negate: true"),sd.groupId&&_d.push( ` groupId : $ { rd ( sd . groupId ) } ` );let Ed=_d.length>0? ` , { $ { _d . join ( ", " ) } } ` :"";return ` indentIfBreak ( $ { td ( sd . contents ) } $ { Ed } ) ` }if(sd.type===x $ 1){let _d=[];sd.break&&sd.break!=="propagated"&&_d.push("shouldBreak: true"),sd.id&&_d.push( ` id : $ { rd ( sd . id ) } ` );let Ed=_d.length>0? ` , {
` )):ed)}function Uu $ 3(Ra){if(Ra.type===B $ 1)return!0}function Hr $ 4(Ra){return Xe $ 2(Ra,Uu $ 3,!1)}function Qe $ 2(Ra,qa){return Ra.type===N $ 3?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}var H $ 2=Symbol("MODE_BREAK"),J $ 2=Symbol("MODE_FLAT"),Te $ 3=Symbol("cursor");function Wr $ 3(){return{value:"",length:0,queue:[]}}function zu $ 1(Ra,qa){return bt $ 4(Ra,{type:"indent"},qa)}function Gu $ 2(Ra,qa,ed){return qa===Number.NEGATIVE_INFINITY?Ra.root||Wr $ 3():qa<0?bt $ 4(Ra,{type:"dedent"},ed):qa?qa.type==="root"?{...Ra,root:Ra}:bt $ 4(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},ed):Ra}function bt $ 4(Ra,qa,ed){let td=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],rd="",sd=0,od=0,ld=0;for(let Nd of td)switch(Nd.type){case"indent":_d(),ed.useTabs?cd(1):ud(ed.tabWidth);break;case"stringAlign":_d(),rd+=Nd.n,sd+=Nd.n.length;break;case"numberAlign":od+=1,ld+=Nd.n;break;default:throw new Error( ` Unexpected type '${Nd.type}' ` )}return Ad(),{...Ra,value:rd,length:sd,queue:td};function cd(Nd){rd+=" ".repeat(Nd),sd+=ed.tabWidth*Nd}function ud(Nd){rd+=" ".repeat(Nd),sd+=Nd}function _d(){ed.useTabs?Ed():Ad()}function Ed(){od>0&&cd(od),Td()}function Ad(){ld>0&&ud(ld),Td()}function Td(){od=0,ld=0}}function Ot $ 3(Ra){let qa=0,ed=0,td=Ra.length;e:for(;td--;){let rd=Ra[td];if(rd===Te $ 3){ed++;continue}for(let sd=rd.length-1;sd>=0;sd--){let od=rd[sd];if(od===" "||od===" ")qa++;else{Ra[td]=rd.slice(0,sd+1);break e}}}if(qa>0||ed>0)for(Ra.length=td+1;ed-- >0;)Ra.push(Te $ 3);return qa}function et $ 3(Ra,qa,ed,td,rd,sd){if(ed===Number.POSITIVE_INFINITY)return!0;let od=qa.length,ld=[Ra],cd=[];for(;ed>=0;){if(ld.length===0){if(od===0)return!0;ld.push(qa[--od]);continue}let{mode:ud,doc:_d}=ld.pop(),Ed=G $ 3(_d);switch(Ed){case U $ 2:cd.push(_d),ed-=Oe $ 4(_d);break;case W $ 2:case S:{let Ad=Ed===W $ 2?_d:_d.parts;for(let Td=Ad.length-1;Td>=0;Td--)ld.push({mode:ud,doc:Ad[Td]});break}case L $ 3:case P $ 2:case R $ 2:case N $ 3:ld.push({mode:ud,doc:_d.contents});break;case I:ed+=Ot $ 3(cd);break;case x $ 1:{if(sd&&_d.break)return!1;let Ad=_d.break?H $ 2:ud,Td=_d.expandedStates&&Ad===H $ 2?y $ 1(!1,_d.expandedStates,-1):_d.contents;ld.push({mode:Ad,doc:Td});break}case _ $ 2:{let Ad=(_d.groupId?rd[_d.groupId]||J $ 2:ud)===H $ 2?_d.breakContents:_d.flatContents;Ad&&ld.push({mode:ud,doc:Ad});break}case B $ 1:if(ud===H $ 2||_d.hard)return!0;_d.soft||(cd.push(" "),ed--);break;case Y $ 2:td=!0;break;case j:if(td)return!1;break}}return!1}function Fe $ 2(Ra,qa){let ed={},td=qa.printWidth,rd=Be $ 4(qa.endOfLine),sd=0,od=[{ind:Wr $ 3(),mode:H $ 2,doc:Ra}],ld=[],cd=!1,ud=[],_d=0;for(Rr $ 2(Ra);od.length>0;){let{ind:Ad,mode:Td,doc:Nd}=od.pop();switch(G $ 3(Nd)){case U $ 2:{let Rd=rd!== `
` ?ne $ 3(!1,Nd, `
` ,rd):Nd;ld.push(Rd),od.length>0&&(sd+=Oe $ 4(Rd));break}case W $ 2:for(let Rd=Nd.length-1;Rd>=0;Rd--)od.push({ind:Ad,mode:Td,doc:Nd[Rd]});break;case z $ 2:if(_d>=2)throw new Error("There are too many 'cursor' in doc.");ld.push(Te $ 3),_d++;break;case L $ 3:od.push({ind:zu $ 1(Ad,qa),mode:Td,doc:Nd.contents});break;case P $ 2:od.push({ind:Gu $ 2(Ad,Nd.n,qa),mode:Td,doc:Nd.contents});break;case I:sd-=Ot $ 3(ld);break;case x $ 1:switch(Td){case J $ 2:if(!cd){od.push({ind:Ad,mode:Nd.break?H $ 2:J $ 2,doc:Nd.contents});break}case H $ 2:{cd=!1;let Rd={ind:Ad,mode:J $ 2,doc:Nd.contents},Bd=td-sd,kd=ud.length>0;if(!Nd.break&&et $ 3(Rd,od,Bd,kd,ed))od.push(Rd);else if(Nd.expandedStates){let Od=y $ 1(!1,Nd.expandedStates,-1);if(Nd.break){od.push({ind:Ad,mode:H $ 2,doc:Od});break}else for(let Md=1;Md<Nd.expandedStates.length+1;Md++)if(Md>=Nd.expandedStates.length){od.push({ind:Ad,mode:H $ 2,doc:Od});break}else{let Pd=Nd.expandedStates[Md],Fd={ind:Ad,mode:J $ 2,doc:Pd};if(et $ 3(Fd,od,Bd,kd,ed)){od.push(Fd);break}}}else od.push({ind:Ad,mode:H $ 2,doc:Nd.contents});break}}Nd.id&&(ed[Nd.id]=y $ 1(!1,od,-1).mode);break;case S:{let Rd=td-sd,{parts:Bd}=Nd;if(Bd.length===0)break;let[kd,Od]=Bd,Md={ind:Ad,mode:J $ 2,doc:kd},Pd={ind:Ad,mode:H $ 2,doc:kd},Fd=et $ 3(Md,[],Rd,ud.length>0,ed,!0);if(Bd.length===1){Fd?od.push(Md):od.push(Pd);break}let Ud={ind:Ad,mode:J $ 2,doc:Od},Gd={ind:Ad,mode:H $ 2,doc:Od};if(Bd.length===2){Fd?od.push(Ud,Md):od.push(Gd,Pd);break}Bd.splice(0,2);let Qd={ind:Ad,mode:Td,doc:Ge $ 2(Bd)},Vd=Bd[0];et $ 3({ind:Ad,mode:J $ 2,doc:[kd,Od,Vd]},[],Rd,ud.length>0,ed,!0)?od.push(Qd,Ud,Md):Fd?od.push(Qd,Gd,Md):od.push(Qd,Gd,Pd);break}case _ $ 2:case R $ 2:{let Rd=Nd.groupId?ed[Nd.groupId]:Td;if(Rd===H $ 2){let Bd=Nd.type===_ $ 2?Nd.breakContents:Nd.negate?Nd.contents:De $ 2(Nd.contents);Bd&&od.push({ind:Ad,mode:Td,doc:Bd})}if(Rd===J $ 2){let Bd=Nd.type===_ $ 2?Nd.flatContents:Nd.negate?De $ 2(Nd.contents):Nd.contents;Bd&&od.push({ind:Ad,mode:Td,doc:Bd})}break}case Y $ 2:ud.push({ind:Ad,mode:Td,doc:Nd.contents});break;case j:ud.length>0&&od.push({ind:Ad,mode:Td,doc:_e $ 4});break;case B $ 1:switch(Td){case J $ 2:if(Nd.hard)cd=!0;else{Nd.soft||(ld.push(" "),sd+=1);break}case H $ 2:if(ud.length>0){od.push({ind:Ad,mode:Td,doc:Nd},...ud.reverse()),ud.length=0;break}Nd.literal?Ad.root?(ld.push(rd,Ad.root.value),sd=Ad.root.length):(ld.push(rd),sd=0):(sd-=Ot $ 3(ld),ld.push(rd+Ad.value),sd=Ad.length);break}break;case N $ 3:od.push({ind:Ad,mode:Td,doc:Nd.contents});break;case b $ 1:break;default:throw new Q $ 3(Nd)}od.length===0&&ud.length>0&&(od.push(...ud.reverse()),ud.length=0)}let Ed=ld.indexOf(Te $ 3);if(Ed!==-1){let Ad=ld.indexOf(Te $ 3,Ed+1),Td=ld.slice(0,Ed).join(""),Nd=ld.slice(Ed+1,Ad).join(""),Rd=ld.slice(Ad+1).join("");return{formatted:Td+Nd+Rd,cursorNodeStart:Td.length,cursorNodeText:Nd}}return{formatted:ld.join("")}}function Ku $ 3(Ra,qa,ed=0){let td=0;for(let rd=ed;rd<Ra.length;++rd)Ra[rd]===" "?td=td+qa-td%qa:td++;return td}var me $ 1=Ku $ 3,te $ 3,Nt $ 3,tt $ 2,St $ 3=class{constructor(qa){Dr $ 2(this,te $ 3),this.stack=[qa]}get key(){let{stack:qa,siblings:ed}=this;return y $ 1(!1,qa,ed===null?-2:-4)??null}get index(){return this.siblings===null?null:y $ 1(!1,this.stack,-2)}get node(){return y $ 1(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:qa}=this,ed=y $ 1(!1,qa,-3);return Array.isArray(ed)?ed:null}get next(){let{siblings:qa}=this;return qa===null?null:qa[this.index+1]}get previous(){let{siblings:qa}=this;return qa===null?null:qa[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:qa,index:ed}=this;return qa!==null&&ed===qa.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...pe $ 1(this,te $ 3,tt $ 2).call(this)]}getName(){let{stack:qa}=this,{length:ed}=qa;return ed>1?y $ 1(!1,qa,-2):null}getValue(){return y $ 1(!1,this.stack,-1)}getNode(qa=0){let ed=pe $ 1(this,te $ 3,Nt $ 3).call(this,qa);return ed===-1?null:this.stack[ed]}getParentNode(qa=0){return this.getNode(qa+1)}call(qa,...ed){let{stack:td}=this,{length:rd}=td,sd=y $ 1(!1,td,-1);for(let od of ed)sd=s
` )return qa-2;if(rd=== `
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa-1}else{if(rd===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(rd=== `
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa+1}return qa}var M $ 3=Ju $ 3;function Xu $ 3(Ra,qa,ed={}){let td=T $ 1(Ra,ed.backwards?qa-1:qa,ed),rd=M $ 3(Ra,td,ed);return td!==rd}var V $ 4=Xu $ 3;function Zu $ 4(Ra){return Array.isArray(Ra)&&Ra.length>0}var kt $ 4=Zu $ 4,Gr $ 3=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Qu $ 2=Ra=>Object.keys(Ra).filter(qa=>!Gr $ 3.has(qa));function eo $ 1(Ra){return Ra?qa=>Ra(qa,Gr $ 3):Qu $ 2}var X $ 3=eo $ 1;function to $ 1(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",ed=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return ed.length>20&&(ed=ed.slice(0,19)+"…"),qa+(ed?" "+ed:"")}function Lt $ 2(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=to $ 1(Ra)}function ue $ 2(Ra,qa){qa.leading=!0,qa.trailing=!1,Lt $ 2(Ra,qa)}function re $ 4(Ra,qa,ed){qa.leading=!1,qa.trailing=!1,ed&&(qa.marker=ed),Lt $ 2(Ra,qa)}function oe $ 3(Ra,qa){qa.leading=!1,qa.trailing=!0,Lt $ 2(Ra,qa)}var Pt $ 2=new WeakMap;function ut $ 1(Ra,qa){if(Pt $ 2.has(Ra))return Pt $ 2.get(Ra);let{printer:{getCommentChildNodes:ed,canAttachComment:td,getVisitorKeys:rd},locStart:sd,locEnd:od}=qa;if(!td)return[];let ld=((ed==null?void 0:ed(Ra,qa))??[...Tt $ 3(Ra,{getVisitorKeys:X $ 3(rd)})]).flatMap(cd=>td(cd)?[cd]:ut $ 1(cd,qa));return ld.sort((cd,ud)=>sd(cd)-sd(ud)||od(cd)-od(ud)),Pt $ 2.set(Ra,ld),ld}function qr $ 3(Ra,qa,ed,td){let{locStart:rd,locEnd:sd}=ed,od=rd(qa),ld=sd(qa),cd=ut $ 1(Ra,ed),ud,_d,Ed=0,Ad=cd.length;for(;Ed<Ad;){let Td=Ed+Ad>>1,Nd=cd[Td],Rd=rd(Nd),Bd=sd(Nd);if(Rd<=od&&ld<=Bd)return qr $ 3(Nd,qa,ed,Nd);if(Bd<=od){ud=Nd,Ed=Td+1;continue}if(ld<=Rd){_d=Nd,Ad=Td;continue}throw new Error("Comment location overlaps with node location")}if((td==null?void 0:td.type)==="TemplateLiteral"){let{quasis:Td}=td,Nd=Rt $ 4(Td,qa,ed);ud&&Rt $ 4(Td,ud,ed)!==Nd&&(ud=null),_d&&Rt $ 4(Td,_d,ed)!==Nd&&(_d=null)}return{enclosingNode:td,precedingNode:ud,followingNode:_d}}var It $ 3=()=>!1;function Jr $ 3(Ra,qa){let{comments:ed}=Ra;if(delete Ra.comments,!kt $ 4(ed)||!qa.printer.canAttachComment)return;let td=[],{locStart:rd,locEnd:sd,printer:{experimentalFeatures:{avoidAstMutation:od=!1}={},handleComments:ld={}},originalText:cd}=qa,{ownLine:ud=It $ 3,endOfLine:_d=It $ 3,remaining:Ed=It $ 3}=ld,Ad=ed.map((Td,Nd)=>({...qr $ 3(Ra,Td,qa),comment:Td,text:cd,options:qa,ast:Ra,isLastComment:ed.length-1===Nd}));for(let[Td,Nd]of Ad.entries()){let{comment:Rd,precedingNode:Bd,enclosingNode:kd,followingNode:Od,text:Md,options:Pd,ast:Fd,isLastComment:Ud}=Nd;if(Pd.parser==="json"||Pd.parser==="json5"||Pd.parser==="jsonc"||Pd.parser==="__js_expression"||Pd.parser==="__ts_expression"||Pd.parser==="__vue_expression"||Pd.parser==="__vue_ts_expression"){if(rd(Rd)-rd(Fd)<=0){ue $ 2(Fd,Rd);continue}if(sd(Rd)-sd(Fd)>=0){oe $ 3(Fd,Rd);continue}}let Gd;if(od?Gd=[Nd]:(Rd.enclosingNode=kd,Rd.precedingNode=Bd,Rd.followingNode=Od,Gd=[Rd,Md,Pd,Fd,Ud]),ro $ 1(Md,Pd,Ad,Td))Rd.placement="ownLine",ud(...Gd)||(Od?ue $ 2(Od,Rd):Bd?oe $ 3(Bd,Rd):re $ 4(kd||Fd,Rd));else if(no $ 2(Md,Pd,Ad,Td))Rd.placement="endOfLine",_d(...Gd)||(Bd?oe $ 3(Bd,Rd):Od?ue $ 2(Od,Rd):re $ 4(kd||Fd,Rd));else if(Rd.placement="remaining",!Ed(...Gd))if(Bd&&Od){let Qd=td.length;Qd>0&&td[Qd-1].followingNode!==Od&&Kr $ 4(td,Pd),td.push(Nd)}else Bd?oe $ 3(Bd,Rd):Od?ue $ 2(Od,Rd):re $ 4(kd||Fd,Rd)}if(Kr $ 4(td,qa),!od)for(let Td of ed)delete Td.precedingNode,delete Td.enclosingNode,delete Td.followingNode}var Xr $ 3=Ra=>!/[ \S \n \u 2028 \u 2029]/u.test(Ra);function ro $ 1(Ra,qa,ed,td){let{comment:rd,precedingNode:sd}=ed[td],{locStart:od,locEnd:ld}=qa,cd=od(rd);if(sd)for(let ud=td-1;ud>=0;ud--){let{comment:_d,precedingNode:Ed}=ed[ud];if(Ed!==sd||!Xr $ 3(Ra.slice(ld(_d),cd)))break;cd=od(_d)}return V $ 4(Ra,cd,{backwards:!0})}function no $ 2(Ra,qa,ed,td){let{comment:rd,followingNode:sd}=ed[td],{locStart:od,locEnd:ld}=qa,cd=ld(rd);if(sd)for(let ud=td+1;ud<ed.length;ud++){let{comment:_d,followingNode:Ed}=ed[ud];if(Ed!==sd||!Xr $ 3(Ra.slice(cd,od(_d))))break;cd=ld(_d)}return V $ 4(Ra,cd)}function Kr $ 4(Ra,qa){var ed
2024-08-30 15:19:18 +08:00
( mixed values within one file are normalised by looking at what 's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file' s first docblock comment . ",cliCategory:" Other "},parser:{category:" Global ",type:" choice ",default:void 0,description:" Which parser to use . ",exception:Ra=>typeof Ra==" string "||typeof Ra==" function ",choices:[{value:" flow ",description:" Flow "},{value:" babel ",description:" JavaScript "},{value:" babel - flow ",description:" Flow "},{value:" babel - ts ",description:" TypeScript "},{value:" typescript ",description:" TypeScript "},{value:" acorn ",description:" JavaScript "},{value:" espree ",description:" JavaScript "},{value:" meriyah ",description:" JavaScript "},{value:" css ",description:" CSS "},{value:" less ",description:" Less "},{value:" scss ",description:" SCSS "},{value:" json ",description:" JSON "},{value:" json5 ",description:" JSON5 "},{value:" jsonc ",description:" JSON with Comments "},{value:" json - stringify ",description:" JSON . stringify "},{value:" graphql ",description:" GraphQL "},{value:" markdown ",description:" Markdown "},{value:" mdx ",description:" MDX "},{value:" vue ",description:" Vue "},{value:" yaml ",description:" YAML "},{value:" glimmer ",description:" Ember / Handlebars "},{value:" html ",description:" HTML "},{value:" angular ",description:" Angular "},{value:" lwc ",description:" Lightning Web Components "}]},plugins:{type:" path ",array:!0,default:[{value:[]}],category:" Global ",description:" Add a plugin . Multiple plugins can be passed as separate ` --plugin ` s . ",exception:Ra=>typeof Ra==" string "||typeof Ra==" object ",cliName:" plugin ",cliCategory:" Config "},printWidth:{category:" Global ",type:" int ",default:80,description:" The line length where Prettier will try wrap . ",range:{start:0,end:1/0,step:1}},rangeEnd:{category:" Special ",type:" int " , default : 1 / 0 , range : { start : 0 , end : 1 / 0 , step : 1 } , description : ` Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement . ` ,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description: ` Format code starting at a given character offset .
The range will extend backwards to the start of the first line containing the selected statement . ` ,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description: ` Require either '@prettier' or '@format' to be present in the file ' s first docblock comment
2024-09-16 00:03:18 +08:00
in order for it to be formatted . ` ,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function ot $ 1({plugins:Ra=[],showDeprecated:qa=!1}={}){let ed=Ra.flatMap(rd=>rd.languages??[]),td=[];for(let rd of lo $ 3(Object.assign({},...Ra.map(({options:sd})=>sd),rn $ 2)))!qa&&rd.deprecated||(Array.isArray(rd.choices)&&(qa||(rd.choices=rd.choices.filter(sd=>!sd.deprecated)),rd.name==="parser"&&(rd.choices=[...rd.choices,...Do $ 2(rd.choices,ed,Ra)])),rd.pluginDefaults=Object.fromEntries(Ra.filter(sd=>{var od;return((od=sd.defaultOptions)==null?void 0:od[rd.name])!==void 0}).map(sd=>[sd.name,sd.defaultOptions[rd.name]])),td.push(rd));return{languages:ed,options:td}}function*Do $ 2(Ra,qa,ed){let td=new Set(Ra.map(rd=>rd.value));for(let rd of qa)if(rd.parsers){for(let sd of rd.parsers)if(!td.has(sd)){td.add(sd);let od=ed.find(cd=>cd.parsers&&Object.prototype.hasOwnProperty.call(cd.parsers,sd)),ld=rd.name;od!=null&&od.name&&(ld+= ` ( plugin : $ { od . name } ) ` ),yield{value:sd,description:ld}}}}function lo $ 3(Ra){let qa=[];for(let[ed,td]of Object.entries(Ra)){let rd={name:ed,...td};Array.isArray(rd.default)&&(rd.default=y $ 1(!1,rd.default,-1).value),qa.push(rd)}return qa}var co $ 2=Ra=>String(Ra).split(/[/ \\ ]/u).pop();function nn $ 2(Ra,qa){if(!qa)return;let ed=co $ 2(qa).toLowerCase();return Ra.find(({filenames:td})=>td==null?void 0:td.some(rd=>rd.toLowerCase()===ed))??Ra.find(({extensions:td})=>td==null?void 0:td.some(rd=>ed.endsWith(rd)))}function fo $ 1(Ra,qa){if(qa)return Ra.find(({name:ed})=>ed.toLowerCase()===qa)??Ra.find(({aliases:ed})=>ed==null?void 0:ed.includes(qa))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.includes( ` . $ { qa } ` ))}function po $ 2(Ra,qa){let ed=Ra.plugins.flatMap(rd=>rd.languages??[]),td=fo $ 1(ed,qa.language)??nn $ 2(ed,qa.physicalFile)??nn $ 2(ed,qa.file)??(qa.physicalFile,void 0);return td==null?void 0:td.parsers[0]}var un $ 2=po $ 2,ie $ 3={key:Ra=>/^[ $ _a-zA-Z][ $ _a-zA-Z0-9]* $ /.test(Ra)?Ra:JSON.stringify(Ra),value(Ra){if(Ra===null||typeof Ra!="object")return JSON.stringify(Ra);if(Array.isArray(Ra))return ` [ $ { Ra . map ( ed => ie$3 . value ( ed ) ) . join ( ", " ) } ] ` ;let qa=Object.keys(Ra);return qa.length===0?"{}": ` { $ { qa . map ( ed => ` ${ ie$3 . key ( ed ) } : ${ ie$3 . value ( Ra [ ed ] ) } ` ) . join ( ", " ) } } ` },pair:({key:Ra,value:qa})=>ie $ 3.value({[Ra]:qa})},Yt $ 1=Me $ 5(it $ 2()),an $ 2=(Ra,qa,{descriptor:ed})=>{let td=[ ` $ { Yt$1 . default . yellow ( typeof Ra == "string" ? ed . key ( Ra ) : ed . pair ( Ra ) ) } is deprecated ` ];return qa&&td.push( ` we now treat it as $ { Yt$1 . default . blue ( typeof qa == "string" ? ed . key ( qa ) : ed . pair ( qa ) ) } ` ),td.join("; ")+"."},le $ 3=Me $ 5(it $ 2()),st $ 1=Symbol.for("vnopts.VALUE_NOT_EXIST"),he $ 2=Symbol.for("vnopts.VALUE_UNCHANGED"),Dn $ 3=" ".repeat(2),cn $ 3=(Ra,qa,ed)=>{let{text:td,list:rd}=ed.normalizeExpectedResult(ed.schemas[Ra].expected(ed)),sd=[];return td&&sd.push(ln $ 2(Ra,qa,td,ed.descriptor)),rd&&sd.push([ln $ 2(Ra,qa,rd.title,ed.descriptor)].concat(rd.values.map(od=>fn $ 2(od,ed.loggerPrintWidth))).join( `
` )),pn $ 2(sd,ed.loggerPrintWidth)};function ln $ 2(Ra,qa,ed,td){return[ ` Invalid $ { le$3 . default . red ( td . key ( Ra ) ) } value . ` , ` Expected $ { le$3 . default . blue ( ed ) } , ` , ` but received $ { qa === st$1 ? le$3 . default . gray ( "nothing" ) : le$3 . default . red ( td . value ( qa ) ) } . ` ].join(" ")}function fn $ 2({text:Ra,list:qa},ed){let td=[];return Ra&&td.push( ` - $ { le$3 . default . blue ( Ra ) } ` ),qa&&td.push([ ` - $ { le$3 . default . blue ( qa . title ) } : ` ].concat(qa.values.map(rd=>fn $ 2(rd,ed-Dn $ 3.length).replace(/^| \n /g, ` $ & $ { Dn$3 } ` ))).join( `
` )),pn $ 2(td,ed)}function pn $ 2(Ra,qa){if(Ra.length===1)return Ra[0];let[ed,td]=Ra,[rd,sd]=Ra.map(od=>od.split( `
` ,1)[0].length);return rd>qa&&rd>sd?td:ed}var Wt $ 1=Me $ 5(it $ 2()),jt $ 2=[],dn $ 3=[];function Ht $ 3(Ra,qa){if(Ra===qa)return 0;let ed=Ra;Ra.length>qa.length&&(Ra=qa,qa=ed);let td=Ra.length,rd=qa.length;for(;td>0&&Ra.charCodeAt(~-td)===qa.charCodeAt(~-rd);)td--,rd--;let sd=0;for(;sd<td&&Ra.charCodeAt(sd)===qa.charCodeAt(sd);)sd++;if(td-=sd,rd-=sd,td===0)return rd;let od,ld,cd,ud,_d=0,Ed=0;for(;_d<td;)dn $ 3[_d]=Ra.charCodeAt(sd+_d),jt $ 2[_d]=++_d;for(;Ed<rd;)for(od=qa.charCodeAt(sd+Ed),cd=Ed++,ld=Ed,_d=0;_d<td;_d++)ud=od===dn $ 3[_d]?cd:cd+1,cd=jt $ 2[_d],ld=jt $ 2[_d]=cd>ld?ud>ld?ld+1:ud:ud>cd?cd+1:ud;return ld}var at $ 3=(Ra,qa,{descriptor:ed,logger:td,schemas:rd})=>{let sd=[ ` Ignored unknown option $ { Wt$1 . default . yellow ( ed . pair ( { key : Ra , value : qa } ) ) } . ` ],od=Object.keys(rd).sort().find(ld=>Ht $ 3(Ra,ld)<3);od&&sd.push( ` Did you mean $ { Wt$1 . default . blue ( ed . key ( od ) ) } ? ` ),td.warn(sd.join(" "))},Fo $ 2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mo $ 3(Ra,qa){let ed=new Ra(qa),td=Object.create(ed);for(let rd of Fo $ 2)rd in qa&&(td[rd]=Eo $ 1(qa[rd],ed,O $ 2.prototype[rd].length));return td}var O $ 2=class{static create(qa){return mo $ 3(this,qa)}constructor(qa){this.name=qa.name}default(qa){}expected(qa){return"nothing"}validate(qa,ed){return!1}deprecated(qa,ed){return!1}forward(qa,ed){}redirect(qa,ed){}overlap(qa,ed,td){return qa}preprocess(qa,ed){return qa}postprocess(qa,ed){return he $ 2}};function Eo $ 1(Ra,qa,ed){return typeof Ra=="function"?(...td)=>Ra(...td.slice(0,ed-1),qa,...td.slice(ed-1)):()=>Ra}var Dt $ 4=class extends O $ 2{constructor(qa){super(qa),this._sourceName=qa.sourceName}expected(qa){return qa.schemas[this._sourceName].expected(qa)}validate(qa,ed){return ed.schemas[this._sourceName].validate(qa,ed)}redirect(qa,ed){return this._sourceName}},lt $ 2=class extends O $ 2{expected(){return"anything"}validate(){return!0}},ct $ 1=class extends O $ 2{constructor({valueSchema:qa,name:ed=qa.name,...td}){super({...td,name:ed}),this._valueSchema=qa}expected(qa){let{text:ed,list:td}=qa.normalizeExpectedResult(this._valueSchema.expected(qa));return{text:ed&& ` an array of $ { ed } ` ,list:td&&{title:"an array of the following values",values:[{list:td}]}}}validate(qa,ed){if(!Array.isArray(qa))return!1;let td=[];for(let rd of qa){let sd=ed.normalizeValidateResult(this._valueSchema.validate(rd,ed),rd);sd!==!0&&td.push(sd.value)}return td.length===0?!0:{value:td}}deprecated(qa,ed){let td=[];for(let rd of qa){let sd=ed.normalizeDeprecatedResult(this._valueSchema.deprecated(rd,ed),rd);sd!==!1&&td.push(...sd.map(({value:od})=>({value:[od]})))}return td}forward(qa,ed){let td=[];for(let rd of qa){let sd=ed.normalizeForwardResult(this._valueSchema.forward(rd,ed),rd);td.push(...sd.map(Fn $ 2))}return td}redirect(qa,ed){let td=[],rd=[];for(let sd of qa){let od=ed.normalizeRedirectResult(this._valueSchema.redirect(sd,ed),sd);"remain"in od&&td.push(od.remain),rd.push(...od.redirect.map(Fn $ 2))}return td.length===0?{redirect:rd}:{redirect:rd,remain:td}}overlap(qa,ed){return qa.concat(ed)}};function Fn $ 2({from:Ra,to:qa}){return{from:[Ra],to:qa}}var ft $ 2=class extends O $ 2{expected(){return"true or false"}validate(qa){return typeof qa=="boolean"}};function En $ 2(Ra,qa){let ed=Object.create(null);for(let td of Ra){let rd=td[qa];if(ed[rd])throw new Error( ` Duplicate $ { qa } $ { JSON . stringify ( rd ) } ` );ed[rd]=td}return ed}function hn $ 2(Ra,qa){let ed=new Map;for(let td of Ra){let rd=td[qa];if(ed.has(rd))throw new Error( ` Duplicate $ { qa } $ { JSON . stringify ( rd ) } ` );ed.set(rd,td)}return ed}function Cn $ 3(){let Ra=Object.create(null);return qa=>{let ed=JSON.stringify(qa);return Ra[ed]?!0:(Ra[ed]=!0,!1)}}function gn $ 3(Ra,qa){let ed=[],td=[];for(let rd of Ra)qa(rd)?ed.push(rd):td.push(rd);return[ed,td]}function yn $ 3(Ra){return Ra===Math.floor(Ra)}function An $ 2(Ra,qa){if(Ra===qa)return 0;let ed=typeof Ra,td=typeof qa,rd=["undefined","object","boolean","number","string"];return ed!==td?rd.indexOf(ed)-rd.indexOf(td):ed!=="string"?Number(Ra)-Number(qa):Ra.localeCompare(qa)}function Bn $ 3(Ra){return(...qa)=>{let ed=Ra(...qa);return typeof ed=="string"?new
` +td,Ra.codeFrame=td,Ra}throw Ra}var ce $ 3=ko $ 1;async function Un $ 3(Ra,qa,ed,td,rd){let{embeddedLanguageFormatting:sd,printer:{embed:od,hasPrettierIgnore:ld=()=>!1,getVisitorKeys:cd}}=ed;if(!od||sd!=="auto")return;if(od.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let ud=X $ 3(od.getVisitorKeys??cd),_d=[];Td();let Ed=Ra.stack;for(let{print:Nd,node:Rd,pathStack:Bd}of _d)try{Ra.stack=Bd;let kd=await Nd(Ad,qa,Ra,ed);kd&&rd.set(Rd,kd)}catch(kd){if(globalThis.PRETTIER_DEBUG)throw kd}Ra.stack=Ed;function Ad(Nd,Rd){return Po $ 1(Nd,Rd,ed,td)}function Td(){let{node:Nd}=Ra;if(Nd===null||typeof Nd!="object"||ld(Ra))return;for(let Bd of ud(Nd))Array.isArray(Nd[Bd])?Ra.each(Td,Bd):Ra.call(Td,Bd);let Rd=od(Ra,ed);if(Rd){if(typeof Rd=="function"){_d.push({print:Rd,node:Nd,pathStack:[...Ra.stack]});return}rd.set(Nd,Rd)}}}async function Po $ 1(Ra,qa,ed,td){let rd=await se $ 2({...ed,...qa,parentParser:ed.parser,originalText:Ra},{passThrough:!0}),{ast:sd}=await ce $ 3(Ra,rd),od=await td(sd,rd);return Ze $ 3(od)}function Io $ 1(Ra,qa){let{originalText:ed,[Symbol.for("comments")]:td,locStart:rd,locEnd:sd,[Symbol.for("printedComments")]:od}=qa,{node:ld}=Ra,cd=rd(ld),ud=sd(ld);for(let _d of td)rd(_d)>=cd&&sd(_d)<=ud&&od.add(_d);return ed.slice(cd,ud)}var zn $ 3=Io $ 1;async function Ye $ 2(Ra,qa){({ast:Ra}=await Qt $ 2(Ra,qa));let ed=new Map,td=new Mr $ 3(Ra),rd=new Map;await Un $ 3(td,od,qa,Ye $ 2,rd);let sd=await Gn $ 4(td,qa,od,void 0,rd);return en $ 2(qa),sd;function od(cd,ud){return cd===void 0||cd===td?ld(ud):Array.isArray(cd)?td.call(()=>ld(ud),...cd):td.call(()=>ld(ud),cd)}function ld(cd){let ud=td.node;if(ud==null)return"";let _d=ud&&typeof ud=="object"&&cd===void 0;if(_d&&ed.has(ud))return ed.get(ud);let Ed=Gn $ 4(td,qa,od,cd,rd);return _d&&ed.set(ud,Ed),Ed}}function Gn $ 4(Ra,qa,ed,td,rd){var sd;let{node:od}=Ra,{printer:ld}=qa,cd;return(sd=ld.hasPrettierIgnore)!=null&&sd.call(ld,Ra)?cd=zn $ 3(Ra,qa):rd.has(od)?cd=rd.get(od):cd=ld.print(Ra,qa,ed,td),od===qa.cursorNode&&(cd=Qe $ 2(cd,ud=>[ve $ 3,ud,ve $ 3])),ld.printComment&&(!ld.willPrintOwnComments||!ld.willPrintOwnComments(Ra,qa))&&(cd=Qr $ 4(Ra,cd,qa)),cd}async function Qt $ 2(Ra,qa){let ed=Ra.comments??[];qa[Symbol.for("comments")]=ed,qa[Symbol.for("tokens")]=Ra.tokens??[],qa[Symbol.for("printedComments")]=new Set,Jr $ 3(Ra,qa);let{printer:{preprocess:td}}=qa;return Ra=td?await td(Ra,qa):Ra,{ast:Ra,comments:ed}}function Ro $ 1(Ra,qa){let{cursorOffset:ed,locStart:td,locEnd:rd}=qa,sd=X $ 3(qa.printer.getVisitorKeys),od=cd=>td(cd)<=ed&&rd(cd)>=ed,ld=Ra;for(let cd of Ur $ 3(Ra,{getVisitorKeys:sd,filter:od}))ld=cd;return ld}var Kn $ 3=Ro $ 1;function Yo $ 1(Ra,qa){let{printer:{massageAstNode:ed,getVisitorKeys:td}}=qa;if(!ed)return Ra;let rd=X $ 3(td),sd=ed.ignoredProperties??new Set;return od(Ra);function od(ld,cd){if(!(ld!==null&&typeof ld=="object"))return ld;if(Array.isArray(ld))return ld.map(Ad=>od(Ad,cd)).filter(Boolean);let ud={},_d=new Set(rd(ld));for(let Ad in ld)!Object.prototype.hasOwnProperty.call(ld,Ad)||sd.has(Ad)||(_d.has(Ad)?ud[Ad]=od(ld[Ad],ld):ud[Ad]=ld[Ad]);let Ed=ed(ld,ud,cd);if(Ed!==null)return Ed??ud}}var qn $ 3=Yo $ 1,jo $ 2=(Ra,qa,ed)=>{if(!(Ra&&qa==null)){if(qa.findLastIndex)return qa.findLastIndex(ed);for(let td=qa.length-1;td>=0;td--){let rd=qa[td];if(ed(rd,td,qa))return td}return-1}},Jn $ 4=jo $ 2,Ho $ 3=({parser:Ra})=>Ra==="json"||Ra==="json5"||Ra==="jsonc"||Ra==="json-stringify";function Wo $ 2(Ra,qa){let ed=[Ra.node,...Ra.parentNodes],td=new Set([qa.node,...qa.parentNodes]);return ed.find(rd=>Qn $ 4.has(rd.type)&&td.has(rd))}function Xn $ 4(Ra){let qa=Jn $ 4(!1,Ra,ed=>ed.type!=="Program"&&ed.type!=="File");return qa===-1?Ra:Ra.slice(0,qa+1)}function Mo $ 3(Ra,qa,{locStart:ed,locEnd:td}){let rd=Ra.node,sd=qa.node;if(rd===sd)return{startNode:rd,endNode:sd};let od=ed(Ra.node);for(let cd of Xn $ 4(qa.parentNodes))if(ed(cd)>=od)sd=cd;else break;let ld=td(qa.node);for(let cd of Xn $ 4(Ra.parentNodes)){if(td(cd)<=ld)rd=cd;else break;if(rd===sd)break}return{startNode:rd,endNode:sd}}function er $ 2(Ra,qa,ed,td,rd=
` ,rd)+1),cd=td.slice(ld,rd).match(/^ \s */u)[0],ud=me $ 1(cd,qa.tabWidth),_d=await ou $ 3(od,{...qa,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:qa.cursorOffset>rd&&qa.cursorOffset<=sd?qa.cursorOffset-rd:-1,endOfLine:"lf"},ud),Ed=_d.formatted.trimEnd(),{cursorOffset:Ad}=qa;Ad>sd?Ad+=Ed.length-od.length:_d.cursorOffset>=0&&(Ad=_d.cursorOffset+rd);let Td=td.slice(0,rd)+Ed+td.slice(sd);if(qa.endOfLine!=="lf"){let Nd=Be $ 4(qa.endOfLine);Ad>=0&&Nd=== ` \ r
` &&(Ad+=wt $ 2(Td.slice(0,Ad), `
` )),Td=ne $ 3(!1,Td, `
` ,Nd)}return{formatted:Td,cursorOffset:Ad,comments:_d.comments}}function tr $ 2(Ra,qa,ed){return typeof qa!="number"||Number.isNaN(qa)||qa<0||qa>Ra.length?ed:qa}function ru $ 3(Ra,qa){let{cursorOffset:ed,rangeStart:td,rangeEnd:rd}=qa;return ed=tr $ 2(Ra,ed,-1),td=tr $ 2(Ra,td,0),rd=tr $ 2(Ra,rd,Ra.length),{...qa,cursorOffset:ed,rangeStart:td,rangeEnd:rd}}function iu $ 2(Ra,qa){let{cursorOffset:ed,rangeStart:td,rangeEnd:rd,endOfLine:sd}=ru $ 3(Ra,qa),od=Ra.charAt(0)===uu $ 4;if(od&&(Ra=Ra.slice(1),ed--,td--,rd--),sd==="auto"&&(sd=Fr $ 2(Ra)),Ra.includes(" \r ")){let ld=cd=>wt $ 2(Ra.slice(0,Math.max(cd,0)), ` \ r
` );ed-=ld(ed),td-=ld(td),rd-=ld(rd),Ra=mr $ 2(Ra)}return{hasBOM:od,text:Ra,options:ru $ 3(Ra,{...qa,cursorOffset:ed,rangeStart:td,rangeEnd:rd,endOfLine:sd})}}async function nu $ 4(Ra,qa){let ed=await ht $ 3(qa);return!ed.hasPragma||ed.hasPragma(Ra)}async function rr $ 2(Ra,qa){let{hasBOM:ed,text:td,options:rd}=iu $ 2(Ra,await se $ 2(qa));if(rd.rangeStart>=rd.rangeEnd&&td!==""||rd.requirePragma&&!await nu $ 4(td,rd))return{formatted:Ra,cursorOffset:qa.cursorOffset,comments:[]};let sd;return rd.rangeStart>0||rd.rangeEnd<td.length?sd=await Uo $ 3(td,rd):(!rd.requirePragma&&rd.insertPragma&&rd.printer.insertPragma&&!await nu $ 4(td,rd)&&(td=rd.printer.insertPragma(td)),sd=await ou $ 3(td,rd)),ed&&(sd.formatted=uu $ 4+sd.formatted,sd.cursorOffset>=0&&sd.cursorOffset++),sd}async function su $ 3(Ra,qa,ed){let{text:td,options:rd}=iu $ 2(Ra,await se $ 2(qa)),sd=await ce $ 3(td,rd);return ed&&(ed.preprocessForPrint&&(sd.ast=await Qt $ 2(sd.ast,rd)),ed.massage&&(sd.ast=qn $ 3(sd.ast,rd))),sd}async function au $ 3(Ra,qa){qa=await se $ 2(qa);let ed=await Ye $ 2(Ra,qa);return Fe $ 2(ed,qa)}async function Du $ 2(Ra,qa){let ed=Or $ 3(Ra),{formatted:td}=await rr $ 2(ed,{...qa,parser:"__js_expression"});return td}async function lu $ 3(Ra,qa){qa=await se $ 2(qa);let{ast:ed}=await ce $ 3(Ra,qa);return Ye $ 2(ed,qa)}async function cu $ 2(Ra,qa){return Fe $ 2(Ra,await se $ 2(qa))}var nr $ 2={};We $ 1(nr $ 2,{builders:()=>Go $ 1,printer:()=>Ko $ 2,utils:()=>qo $ 1});var Go $ 1={join:be $ 5,line:Ke $ 2,softline:vr $ 2,hardline:q $ 2,literalline:qe $ 3,group:_t $ 2,conditionalGroup:Ar $ 2,fill:Ge $ 2,lineSuffix:xe $ 3,lineSuffixBoundary:xr $ 3,cursor:ve $ 3,breakParent:de $ 2,ifBreak:Br $ 4,trim:_r $ 3,indent:De $ 2,indentIfBreak:wr $ 3,align:ae $ 2,addAlignmentToDoc:Je $ 3,markAsRoot:gr $ 2,dedentToRoot:Cr $ 1,dedent:yr $ 2,hardlineWithoutBreakParent:_e $ 4,literallineWithoutBreakParent:vt $ 3,label:br $ 2,concat:Ra=>Ra},Ko $ 2={printDocToString:Fe $ 2},qo $ 1={willBreak:Ir $ 3,traverseDoc:we $ 2,findInDoc:Xe $ 2,mapDoc:Ne $ 2,removeLines:Yr $ 4,stripTrailingHardline:Ze $ 3,replaceEndOfLine:jr $ 3,canBreak:Hr $ 4},fu $ 1="3.3.3",or $ 2={};We $ 1(or $ 2,{addDanglingComment:()=>re $ 4,addLeadingComment:()=>ue $ 2,addTrailingComment:()=>oe $ 3,getAlignmentSize:()=>me $ 1,getIndentSize:()=>pu $ 2,getMaxContinuousCount:()=>du $ 3,getNextNonSpaceNonCommentCharacter:()=>Fu $ 2,getNextNonSpaceNonCommentCharacterIndex:()=>si $ 4,getStringWidth:()=>Oe $ 4,hasNewline:()=>V $ 4,hasNewlineInRange:()=>mu $ 3,hasSpaces:()=>Eu $ 2,isNextLineEmpty:()=>ci $ 3,isNextLineEmptyAfterIndex:()=>gt $ 2,isPreviousLineEmpty:()=>Di $ 3,makeString:()=>hu $ 3,skip:()=>Ee $ 3,skipEverythingButNewLine:()=>nt $ 1,skipInlineComment:()=>Ce $ 2,skipNewline:()=>M $ 3,skipSpaces:()=>T $ 1,skipToLineEnd:()=>rt $ 2,skipTrailingComment:()=>ge $ 4,skipWhitespace:()=>zr $ 3});function Jo $ 2(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let ed=qa+2;ed<Ra.length;++ed)if(Ra.charAt(ed)==="*"&&Ra.charAt(ed+1)==="/")return ed+2}return qa}var Ce $ 2=Jo $ 2;function Xo $ 1(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?nt $ 1(Ra,qa):qa}var ge $ 4=Xo $ 1;function Zo $ 2(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=T $ 1(Ra,td),td=Ce $ 2(Ra,td),td=ge $ 4(Ra,td),td=M $ 3(Ra,td);return td}var je $ 4=Zo $ 2;function Qo $ 2(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=rt $ 2(Ra,td),td=Ce $ 2(Ra,td),td=T $ 1(Ra,td);return td=ge $ 4(Ra,td),td=M $ 3(Ra,td),td!==!1&&V $ 4(Ra,td)}var gt $ 2=Qo $ 2;function ei $ 3(Ra,qa){let ed=Ra.lastIndexOf( `
` );return ed===-1?0:me $ 1(Ra.slice(ed+1).match(/^[ \t ]*/u)[0],qa)}var pu $ 2=ei $ 3;function ur $ 2(Ra){if(typeof Ra!="string")throw new TypeError("Expected a string");return Ra.replace(/[| \\ {}()[ \] ^ $ +*?.]/g," \\ $ &").replace(/-/g," \\ x2d")}function ti $ 4(Ra,qa){let ed=Ra.match(new RegExp( ` ( $ { ur$2 ( qa ) } ) + ` ,"gu"));return ed===null?0:ed.reduce((td,rd)=>Math.max(td,rd.length/qa.length),0)}var du $ 3=ti $ 4;function ri $ 4(Ra,qa){let ed=je $ 4(Ra,qa);return ed===!1?"":Ra.charAt(ed)}var Fu $ 2=ri $ 4;function ni $ 4(Ra,qa,ed){for(let td=qa;td<ed;++td)if(Ra.charAt(td)=== `
` )return!0;return!1}var mu $ 3=ni $ 4;function ui $ 3(Ra,qa,ed={}){return T $ 1(Ra,ed.backwards?qa-1:qa,ed)!==qa}var Eu $ 2=ui $ 3;function oi $ 3(Ra,qa,ed){let td=qa==='"'?"'":'"',rd=ne $ 3(!1,Ra,/ \\ (.)|(["'])/gsu,(sd,od,ld)=>od===td?od:ld===qa?" \\ "+ld:ld||(ed&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /u.test(od)?od:" \\ "+od));return qa+rd+qa}var hu $ 3=oi $ 3;function ii $ 4(Ra,qa,ed){return je $ 4(Ra,ed(qa))}function si $ 4(Ra,qa){return arguments.length===2||typeof qa=="number"?je $ 4(Ra,qa):ii $ 4(...arguments)}function ai $ 4(Ra,qa,ed){return Le $ 3(Ra,ed(qa))}function Di $ 3(Ra,qa){return arguments.length===2||typeof qa=="number"?Le $ 3(Ra,qa):ai $ 4(...arguments)}function li $ 4(Ra,qa,ed){return gt $ 2(Ra,ed(qa))}function ci $ 3(Ra,qa){return arguments.length===2||typeof qa=="number"?gt $ 2(Ra,qa):li $ 4(...arguments)}function fe $ 3(Ra,qa=1){return async(...ed)=>{let td=ed[qa]??{},rd=td.plugins??[];return ed[qa]={...td,plugins:Array.isArray(rd)?rd:Object.values(rd)},Ra(...ed)}}var Cu $ 2=fe $ 3(rr $ 2);async function gu $ 2(Ra,qa){let{formatted:ed}=await Cu $ 2(Ra,{...qa,cursorOffset:-1});return ed}async function fi $ 3(Ra,qa){return await gu $ 2(Ra,qa)===Ra}var pi $ 4=fe $ 3(ot $ 1,0),di $ 3={parse:fe $ 3(su $ 3),formatAST:fe $ 3(au $ 3),formatDoc:fe $ 3(Du $ 2),printToDoc:fe $ 3(lu $ 3),printDocToString:fe $ 3(cu $ 2)},el $ 2=Object.create,ft $ 1=Object.defineProperty,rl $ 2=Object.getOwnPropertyDescriptor,tl $ 2=Object.getOwnPropertyNames,nl $ 2=Object.getPrototypeOf,il $ 2=Object.prototype.hasOwnProperty,C=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ln $ 3=(Ra,qa)=>{for(var ed in qa)ft $ 1(Ra,ed,{get:qa[ed],enumerable:!0})},ul $ 2=(Ra,qa,ed,td)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let rd of tl $ 2(qa))!il $ 2.call(Ra,rd)&&rd!==ed&&ft $ 1(Ra,rd,{get:()=>qa[rd],enumerable:!(td=rl $ 2(qa,rd))||td.enumerable});return Ra},Ue $ 3=(Ra,qa,ed)=>(ed=Ra!=null?el $ 2(nl $ 2(Ra)):{},ul $ 2(ft $ 1(ed,"default",{value:Ra,enumerable:!0}),Ra)),xr $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td){return String(td).replace(/ \s +/g," ")}}),Pi $ 2=C((Ra,qa)=>{qa.exports=Nd;var ed=9,td=10,rd=32,sd=33,od=58,ld=91,cd=92,ud=93,_d=94,Ed=96,Ad=4,Td=1024;function Nd(Fd){var Ud=this.Parser,Gd=this.Compiler;Rd(Ud)&&kd(Ud,Fd),Bd(Gd)&&Od(Gd)}function Rd(Fd){return!!(Fd&&Fd.prototype&&Fd.prototype.blockTokenizers)}function Bd(Fd){return!!(Fd&&Fd.prototype&&Fd.prototype.visitors)}function kd(Fd,Ud){for(var Gd=Ud||{},Qd=Fd.prototype,Vd=Qd.blockTokenizers,zd=Qd.inlineTokenizers,Xd=Qd.blockMethods,df=Qd.inlineMethods,mf=Vd.definition,_f=zd.reference,hf=[],gf=-1,yf=Xd.length,Cf;++gf<yf;)Cf=Xd[gf],!(Cf==="newline"||Cf==="indentedCode"||Cf==="paragraph"||Cf==="footnoteDefinition")&&hf.push([Cf]);hf.push(["footnoteDefinition"]),Gd.inlineNotes&&(Md(df,"reference","inlineNote"),zd.inlineNote=Uf),Md(Xd,"definition","footnoteDefinition"),Md(df,"reference","footnoteCall"),Vd.definition=wf,Vd.footnoteDefinition=Ff,zd.footnoteCall=Qf,zd.reference=Lf,Qd.interruptFootnoteDefinition=hf,Lf.locator=_f.locator,Qf.locator=Nf,Uf.locator=Zf;function Ff(Kf,Tf,bf){for(var Bf=this,Wf=Bf.interruptFootnoteDefinition,lh=Bf.offset,Xf=Tf.length+1, $ f=0,th=[],hh,Yf,xf,Rf,qf,ch,_h,sh,Ih,gh,Dh,Xh,qh; $ f<Xf&&(Rf=Tf.charCodeAt( $ f),!(Rf!==ed&&Rf!==rd));) $ f++;if(Tf.charCodeAt( $ f++)===ld&&Tf.charCodeAt( $ f++)===_d){for(Yf= $ f; $ f<Xf;){if(Rf=Tf.charCodeAt( $ f),Rf!==Rf||Rf===td||Rf===ed||Rf===rd)return;if(Rf===ud){xf= $ f, $ f++;break} $ f++}if(!(xf===void 0||Yf===xf||Tf.charCodeAt( $ f++)!==od)){if(bf)return!0;for(hh=Tf.slice(Yf,xf),qf=Kf.now(),Ih=0,gh=0,Dh= $ f,Xh=[]; $ f<Xf;){if(Rf=Tf.charCodeAt( $ f),Rf!==Rf||Rf===td)qh={start:Ih,contentStart:Dh|| $ f,contentEnd: $ f,end: $ f},Xh.push(qh),Rf===td&&(Ih= $ f+1,gh=0,Dh=void 0,qh.end=Ih);else if(gh!==void 0)if(Rf===rd||Rf===ed)gh+=Rf===rd?1:Ad-gh%Ad,gh>Ad&&(gh=void 0,Dh= $ f);else{if(gh<Ad&&qh&&(qh.contentStart===qh.contentEnd||Pd(Wf,Vd,Bf,[Kf,Tf.slice( $ f,Td),!0])))break;gh=void 0,Dh= $ f} $ f++}for( $ f=-1,Xf=Xh.length;Xf>0&&(qh=Xh[Xf-1],qh.contentStart===qh.contentEnd);)Xf--;for(ch=Kf(Tf.slice(0,qh.contentEnd));++ $ f<Xf;)qh=Xh[ $ f],lh[qf.line+ $ f]=(lh[qf.line+ $ f]||0)+(qh.contentStart-qh.start),th.push(Tf.slice(qh.contentStart,qh.end));return _h=Bf.enterBlock(),sh=Bf.toke
2024-08-27 22:31:52 +08:00
2024-08-30 15:19:18 +08:00
` ).split( `
2024-09-16 00:03:18 +08:00
` ),mf=0,_f=df.length,hf;++mf<_f;)hf=df[mf],hf!==""&&(df[mf]=Gd+hf);return"[^"+(Xd.label||Xd.identifier)+"]: "+df.join( `
` )}}function Md(Fd,Ud,Gd){Fd.splice(Fd.indexOf(Ud),0,Gd)}function Pd(Fd,Ud,Gd,Qd){for(var Vd=Fd.length,zd=-1;++zd<Vd;)if(Ud[Fd[zd][0]].apply(Gd,Qd))return!0;return!1}}),Bt $ 3=C(Ra=>{Ra.isRemarkParser=qa,Ra.isRemarkCompiler=ed;function qa(td){return!!(td&&td.prototype&&td.prototype.blockTokenizers)}function ed(td){return!!(td&&td.prototype&&td.prototype.visitors)}}),Mi $ 1=C((Ra,qa)=>{var ed=Bt $ 3();qa.exports=Ed;var td=9,rd=32,sd=36,od=48,ld=57,cd=92,ud=["math","math-inline"],_d="math-display";function Ed(Nd){let Rd=this.Parser,Bd=this.Compiler;ed.isRemarkParser(Rd)&&Ad(Rd,Nd),ed.isRemarkCompiler(Bd)&&Td(Bd)}function Ad(Nd,Rd){let Bd=Nd.prototype,kd=Bd.inlineMethods;Md.locator=Od,Bd.inlineTokenizers.math=Md,kd.splice(kd.indexOf("text"),0,"math");function Od(Pd,Fd){return Pd.indexOf(" $ ",Fd)}function Md(Pd,Fd,Ud){let Gd=Fd.length,Qd=!1,Vd=!1,zd=0,Xd,df,mf,_f,hf,gf,yf;if(Fd.charCodeAt(zd)===cd&&(Vd=!0,zd++),Fd.charCodeAt(zd)===sd){if(zd++,Vd)return Ud?!0:Pd(Fd.slice(0,zd))({type:"text",value:" $ "});if(Fd.charCodeAt(zd)===sd&&(Qd=!0,zd++),mf=Fd.charCodeAt(zd),!(mf===rd||mf===td)){for(_f=zd;zd<Gd;){if(df=mf,mf=Fd.charCodeAt(zd+1),df===sd){if(Xd=Fd.charCodeAt(zd-1),Xd!==rd&&Xd!==td&&(mf!==mf||mf<od||mf>ld)&&(!Qd||mf===sd)){hf=zd-1,zd++,Qd&&zd++,gf=zd;break}}else df===cd&&(zd++,mf=Fd.charCodeAt(zd+1));zd++}if(gf!==void 0)return Ud?!0:(yf=Fd.slice(_f,hf+1),Pd(Fd.slice(0,gf))({type:"inlineMath",value:yf,data:{hName:"span",hProperties:{className:ud.concat(Qd&&Rd.inlineMathDouble?[_d]:[])},hChildren:[{type:"text",value:yf}]}}))}}}}function Td(Nd){let Rd=Nd.prototype;Rd.visitors.inlineMath=Bd;function Bd(kd){let Od=" $ ";return(kd.data&&kd.data.hProperties&&kd.data.hProperties.className||[]).includes(_d)&&(Od=" $ $ "),Od+kd.value+Od}}}), $ i $ 2=C((Ra,qa)=>{var ed=Bt $ 3();qa.exports=_d;var td=10,rd=32,sd=36,od= `
` ,ld=" $ ",cd=2,ud=["math","math-display"];function _d(){let Td=this.Parser,Nd=this.Compiler;ed.isRemarkParser(Td)&&Ed(Td),ed.isRemarkCompiler(Nd)&&Ad(Nd)}function Ed(Td){let Nd=Td.prototype,Rd=Nd.blockMethods,Bd=Nd.interruptParagraph,kd=Nd.interruptList,Od=Nd.interruptBlockquote;Nd.blockTokenizers.math=Md,Rd.splice(Rd.indexOf("fencedCode")+1,0,"math"),Bd.splice(Bd.indexOf("fencedCode")+1,0,["math"]),kd.splice(kd.indexOf("fencedCode")+1,0,["math"]),Od.splice(Od.indexOf("fencedCode")+1,0,["math"]);function Md(Pd,Fd,Ud){var Gd=Fd.length,Qd=0;let Vd,zd,Xd,df,mf,_f,hf,gf,yf,Cf,Ff;for(;Qd<Gd&&Fd.charCodeAt(Qd)===rd;)Qd++;for(mf=Qd;Qd<Gd&&Fd.charCodeAt(Qd)===sd;)Qd++;if(_f=Qd-mf,!(_f<cd)){for(;Qd<Gd&&Fd.charCodeAt(Qd)===rd;)Qd++;for(hf=Qd;Qd<Gd;){if(Vd=Fd.charCodeAt(Qd),Vd===sd)return;if(Vd===td)break;Qd++}if(Fd.charCodeAt(Qd)===td){if(Ud)return!0;for(zd=[],hf!==Qd&&zd.push(Fd.slice(hf,Qd)),Qd++,Xd=Fd.indexOf(od,Qd+1),Xd=Xd===-1?Gd:Xd;Qd<Gd;){for(gf=!1,Cf=Qd,Ff=Xd,df=Xd,yf=0;df>Cf&&Fd.charCodeAt(df-1)===rd;)df--;for(;df>Cf&&Fd.charCodeAt(df-1)===sd;)yf++,df--;for(_f<=yf&&Fd.indexOf(ld,Cf)===df&&(gf=!0,Ff=df);Cf<=Ff&&Cf-Qd<mf&&Fd.charCodeAt(Cf)===rd;)Cf++;if(gf)for(;Ff>Cf&&Fd.charCodeAt(Ff-1)===rd;)Ff--;if((!gf||Cf!==Ff)&&zd.push(Fd.slice(Cf,Ff)),gf)break;Qd=Xd+1,Xd=Fd.indexOf(od,Qd+1),Xd=Xd===-1?Gd:Xd}return zd=zd.join( `
` ),Pd(Fd.slice(0,Xd))({type:"math",value:zd,data:{hName:"div",hProperties:{className:ud.concat()},hChildren:[{type:"text",value:zd}]}})}}}}function Ad(Td){let Nd=Td.prototype;Nd.visitors.math=Rd;function Rd(Bd){return ` $$
` +Bd.value+ `
$$ ` }}}),Wi $ 1=C((Ra,qa)=>{var ed=Mi $ 1(),td= $ i $ 2();qa.exports=rd;function rd(sd){var od=sd||{};td.call(this,od),ed.call(this,od)}}),Ie $ 1=C((Ra,qa)=>{qa.exports=td;var ed=Object.prototype.hasOwnProperty;function td(){for(var rd={},sd=0;sd<arguments.length;sd++){var od=arguments[sd];for(var ld in od)ed.call(od,ld)&&(rd[ld]=od[ld])}return rd}}),Ji $ 3=C((Ra,qa)=>{typeof Object.create=="function"?qa.exports=function(ed,td){td&&(ed.super_=td,ed.prototype=Object.create(td.prototype,{constructor:{value:ed,enumerable:!1,writable:!0,configurable:!0}}))}:qa.exports=function(ed,td){if(td){ed.super_=td;var rd=function(){};rd.prototype=td.prototype,ed.prototype=new rd,ed.prototype.constructor=ed}}}),Zi $ 1=C((Ra,qa)=>{var ed=Ie $ 1(),td=Ji $ 3();qa.exports=rd;function rd(sd){var od,ld,cd;td(_d,sd),td(ud,_d),od=_d.prototype;for(ld in od)cd=od[ld],cd&&typeof cd=="object"&&(od[ld]="concat"in cd?cd.concat():ed(cd));return _d;function ud(Ed){return sd.apply(this,Ed)}function _d(){return this instanceof _d?sd.apply(this,arguments):new ud(arguments)}}}),ru $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td,rd,sd){return od;function od(){var ld=sd||this,cd=ld[td];return ld[td]=!rd,ud;function ud(){ld[td]=cd}}}}),nu $ 3=C((Ra,qa)=>{qa.exports=ed;function ed(td){for(var rd=String(td),sd=[],od=/ \r ? \n | \r /g;od.exec(rd);)sd.push(od.lastIndex);return sd.push(rd.length+1),{toPoint:ld,toPosition:ld,toOffset:cd};function ld(ud){var _d=-1;if(ud>-1&&ud<sd[sd.length-1]){for(;++_d<sd.length;)if(sd[_d]>ud)return{line:_d+1,column:ud-(sd[_d-1]||0)+1,offset:ud}}return{}}function cd(ud){var _d=ud&&ud.line,Ed=ud&&ud.column,Ad;return!isNaN(_d)&&!isNaN(Ed)&&_d-1 in sd&&(Ad=(sd[_d-2]||0)+Ed-1||0),Ad>-1&&Ad<sd[sd.length-1]?Ad:-1}}}),uu $ 3=C((Ra,qa)=>{qa.exports=td;var ed=" \\ ";function td(rd,sd){return od;function od(ld){for(var cd=0,ud=ld.indexOf(ed),_d=rd[sd],Ed=[],Ad;ud!==-1;)Ed.push(ld.slice(cd,ud)),cd=ud+1,Ad=ld.charAt(cd),(!Ad||_d.indexOf(Ad)===-1)&&Ed.push(ed),ud=ld.indexOf(ed,cd+1);return Ed.push(ld.slice(cd)),Ed.join("")}}}),au $ 2=C((Ra,qa)=>{qa.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´ ",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸ ",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:" ",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"× ",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),ou $ 2=C((Ra,qa)=>{qa.exports={0:"<22> ",128:"€",130:"‚ ",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ ",137:"‰",138:"Š",139:"‹ ",140:"Œ",142:"Ž",145:"‘ ",146:"’ ",147:"“",148:"”",149:"•",150:"– ",151:"—",152:"˜ ",153:"™",154:"š",155:"› ",156:"œ",158:"ž",159:"Ÿ"}}),Ne $ 1=C((Ra,qa)=>{qa.exports=ed;function ed(td){var rd=typeof td=="string"?td.charCodeAt(0):td;return rd>=48&&rd<=57}}),lu $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td){var rd=typeof td=="string"?td.charCodeAt(0):td;return rd>=97&&rd<=102||rd>=65&&rd<=70||rd>=48&&rd<=57}}),Ve $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td){var rd=typeof td=="string"?td.charCodeAt(0):td;return rd>=97&&rd<=122||rd>=65&&rd<=90}}),pu $ 1=C((Ra,qa)=>{var ed=Ve $ 2(),td=Ne $ 1();qa.exports=rd;function rd(sd){return ed(sd)||td(sd)}}),du $ 2=C((Ra,qa)=>{qa.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"
` ,Nfr:"𝔑 ",NoBreak:" ",NonBreakingSpace:" ",Nopf:"ℕ ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩 ",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν ",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О ",Odblac:"Ő",Ofr:"𝔒 ",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο ",Oopf:"𝕆 ",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘ ",Or:"⩔",Oscr:"𝒪 ",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓 ",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ ",Popf:"ℙ ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫 ",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔 ",Qopf:"ℚ ",Qscr:"𝒬 ",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р ",Re:"ℜ ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ ",Rho:"Ρ ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь ",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С ",Sfr:"𝔖 ",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊 ",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮 ",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т ",Tfr:"𝔗 ",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼ ",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋 ",TripleDot:"⃛",Tscr:"𝒯 ",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У ",Udblac:"Ű",Ufr:"𝔘 ",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃ ",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌 ",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"
` );yf!==-1;)Rd++,gf=yf,yf=hf.indexOf( `
` ,yf+1);gf===-1?Bd+=hf.length:Bd=hf.length-gf,Rd in Ed&&(gf!==-1?Bd+=Ed[Rd]:Bd<=Ed[Rd]&&(Bd=Ed[Rd]+1))}function Qd(){var hf=[],gf=Rd+1;return function(){for(var yf=Rd+1;gf<yf;)hf.push((Ed[gf]||0)+1),gf++;return hf}}function Vd(){var hf={line:Rd,column:Bd};return hf.offset=_d.toOffset(hf),hf}function zd(hf){this.start=hf,this.end=Vd()}function Xd(hf){cd.slice(0,hf.length)!==hf&&_d.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),Vd())}function df(){var hf=Vd();return gf;function gf(yf,Cf){var Ff=yf.position,Qf=Ff?Ff.start:hf,Uf=[],Lf=Ff&&Ff.end.line,wf=hf.line;if(yf.position=new zd(Qf),Ff&&Cf&&Ff.indent){if(Uf=Ff.indent,Lf<wf){for(;++Lf<wf;)Uf.push((Ed[Lf]||0)+1);Uf.push(hf.column)}Cf=Uf.concat(Cf)}return yf.position.indent=Cf||[],yf}}function mf(hf,gf){var yf=gf?gf.children:Ad,Cf=yf[yf.length-1],Ff;return Cf&&hf.type===Cf.type&&(hf.type==="text"||hf.type==="blockquote")&&td(Cf)&&td(hf)&&(Ff=hf.type==="text"?rd:sd,hf=Ff.call(_d,Cf,hf)),hf!==Cf&&yf.push(hf),_d.atStart&&Ad.length!==0&&_d.exitStart(),hf}function _f(hf){var gf=Qd(),yf=df(),Cf=Vd();return Xd(hf),Ff.reset=Qf,Qf.test=Uf,Ff.test=Uf,cd=cd.slice(hf.length),Gd(hf),gf=gf(),Ff;function Ff(Lf,wf){return yf(mf(yf(Lf),wf),gf)}function Qf(){var Lf=Ff.apply(null,arguments);return Rd=Cf.line,Bd=Cf.column,cd=hf+cd,Lf}function Uf(){var Lf=yf({});return Rd=Cf.line,Bd=Cf.column,cd=hf+cd,Lf.position}}}}function td(od){var ld,cd;return od.type!=="text"||!od.position?!0:(ld=od.position.start,cd=od.position.end,ld.line!==cd.line||cd.column-ld.column===od.value.length)}function rd(od,ld){return od.value+=ld.value,od}function sd(od,ld){return this.options.commonmark||this.options.gfm?ld:(od.children=od.children.concat(ld.children),od)}}),Uu $ 2=C((Ra,qa)=>{qa.exports=sd;var ed=[" \\ "," ` "," * "," { "," } "," [ "," ] "," ( "," ) "," # "," + "," - "," . "," ! "," _ "," > "],td=ed.concat([" ~ "," | " ] ) , rd = td . concat ( [ `
` ,'"'," $ ","%","&","'",",","/",":",";","<","=","?","@","^"]);sd.default=ed,sd.gfm=td,sd.commonmark=rd;function sd(od){var ld=od||{};return ld.commonmark?rd:ld.gfm?td:ed}}),Mu $ 1=C((Ra,qa)=>{qa.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}),Rt $ 3=C((Ra,qa)=>{qa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu $ 1()}}),Vu $ 2=C((Ra,qa)=>{var ed=Ie $ 1(),td=Uu $ 2(),rd=Rt $ 3();qa.exports=sd;function sd(od){var ld=this,cd=ld.options,ud,_d;if(od==null)od={};else if(typeof od=="object")od=ed(od);else throw new Error("Invalid value ` "+od+" ` for setting ` options ` ");for(ud in rd){if(_d=od[ud],_d==null&&(_d=cd[ud]),ud!=="blocks"&&typeof _d!="boolean"||ud==="blocks"&&typeof _d!="object")throw new Error("Invalid value ` "+_d+" ` for setting ` options . "+ud+" ` ");od[ud]=_d}return ld.options=od,ld.escape=td(od),ld}}),Hu $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(ld){if(ld==null)return od;if(typeof ld=="string")return sd(ld);if(typeof ld=="object")return"length"in ld?rd(ld):td(ld);if(typeof ld=="function")return ld;throw new Error("Expected function, string, or object as test")}function td(ld){return cd;function cd(ud){var _d;for(_d in ld)if(ud[_d]!==ld[_d])return!1;return!0}}function rd(ld){for(var cd=[],ud=-1;++ud<ld.length;)cd[ud]=ed(ld[ud]);return _d;function _d(){for(var Ed=-1;++Ed<cd.length;)if(cd[Ed].apply(this,arguments))return!0;return!1}}function sd(ld){return cd;function cd(ud){return!!(ud&&ud.type===ld)}}function od(){return!0}}),Ku $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td){return td}}),Zu $ 3=C((Ra,qa)=>{qa.exports=ld;var ed=Hu $ 2(),td=Ku $ 2(),rd=!0,sd="skip",od=!1;ld.CONTINUE=rd,ld.SKIP=sd,ld.EXIT=od;function ld(ud,_d,Ed,Ad){var Td,Nd;typeof _d=="function"&&typeof Ed!="function"&&(Ad=Ed,Ed=_d,_d=null),Nd=ed(_d),Td=Ad?-1:1,Rd(ud,null,[])();function Rd(Bd,kd,Od){var Md=typeof Bd=="object"&&Bd!==null?Bd:{},Pd;return typeof Md.type=="string"&&(Pd=typeof Md.tagName=="string"?Md.tagName:typeof Md.name=="string"?Md.name:void 0,Fd.displayName="node ("+td(Md.type+(Pd?"<"+Pd+">":""))+")"),Fd;function Fd(){var Ud=Od.concat(Bd),Gd=[],Qd,Vd;if((!_d||Nd(Bd,kd,Od[Od.length-1]||null))&&(Gd=cd(Ed(Bd,Od)),Gd[0]===od))return Gd;if(Bd.children&&Gd[0]!==sd)for(Vd=(Ad?Bd.children.length:-1)+Td;Vd>-1&&Vd<Bd.children.length;){if(Qd=Rd(Bd.children[Vd],Vd,Ud)(),Qd[0]===od)return Qd;Vd=typeof Qd[1]=="number"?Qd[1]:Vd+Td}return Gd}}}function cd(ud){return ud!==null&&typeof ud=="object"&&"length"in ud?ud:typeof ud=="number"?[rd,ud]:[ud]}}),ra $ 2=C((Ra,qa)=>{qa.exports=od;var ed=Zu $ 3(),td=ed.CONTINUE,rd=ed.SKIP,sd=ed.EXIT;od.CONTINUE=td,od.SKIP=rd,od.EXIT=sd;function od(ld,cd,ud,_d){typeof cd=="function"&&typeof ud!="function"&&(_d=ud,ud=cd,cd=null),ed(ld,cd,Ed,_d);function Ed(Ad,Td){var Nd=Td[Td.length-1],Rd=Nd?Nd.children.indexOf(Ad):null;return ud(Ad,Rd,Nd)}}}),na $ 1=C((Ra,qa)=>{var ed=ra $ 2();qa.exports=td;function td(od,ld){return ed(od,ld?rd:sd),od}function rd(od){delete od.position}function sd(od){od.position=void 0}}),aa $ 3=C((Ra,qa)=>{var ed=Ie $ 1(),td=na $ 1();qa.exports=od;var rd= `
` ,sd=/ \r \n | \r /g;function od(){var ld=this,cd=String(ld.file),ud={line:1,column:1,offset:0},_d=ed(ud),Ed;return cd=cd.replace(sd,rd),cd.charCodeAt(0)===65279&&(cd=cd.slice(1),_d.column++,_d.offset++),Ed={type:"root",children:ld.tokenizeBlock(cd,_d),position:{start:ud,end:ld.eof||ed(ud)}},ld.options.position||td(Ed,!0),Ed}}),sa $ 1=C((Ra,qa)=>{var ed=/^[ \t ]*( \n | $ )/;qa.exports=td;function td(rd,sd,od){for(var ld,cd="",ud=0,_d=sd.length;ud<_d&&(ld=ed.exec(sd.slice(ud)),ld!=null);)ud+=ld[0].length,cd+=ld[0];if(cd!==""){if(od)return!0;rd(cd)}}}),Hr $ 3=C((Ra,qa)=>{var ed="",td;qa.exports=rd;function rd(sd,od){if(typeof sd!="string")throw new TypeError("expected a string");if(od===1)return sd;if(od===2)return sd+sd;var ld=sd.length*od;if(td!==sd||typeof td>"u")td=sd,ed="";else if(ed.length>=ld)return ed.substr(0,ld);for(;ld>ed.length&&od>1;)od&1&&(ed+=sd),od>>=1,sd+=sd;return ed+=sd,ed=ed.substr(0,ld),ed}}),Mt $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td){return String(td).replace(/ \n + $ /,"")}}),pa $ 1=C((Ra,qa)=>{var ed=Hr $ 3(),td=Mt $ 2();qa.exports=ud;var rd= `
` ,sd=" ",od=" ",ld=4,cd=ed(od,ld);function ud(_d,Ed,Ad){for(var Td=-1,Nd=Ed.length,Rd="",Bd="",kd="",Od="",Md,Pd,Fd;++Td<Nd;)if(Md=Ed.charAt(Td),Fd)if(Fd=!1,Rd+=kd,Bd+=Od,kd="",Od="",Md===rd)kd=Md,Od=Md;else for(Rd+=Md,Bd+=Md;++Td<Nd;){if(Md=Ed.charAt(Td),!Md||Md===rd){Od=Md,kd=Md;break}Rd+=Md,Bd+=Md}else if(Md===od&&Ed.charAt(Td+1)===Md&&Ed.charAt(Td+2)===Md&&Ed.charAt(Td+3)===Md)kd+=cd,Td+=3,Fd=!0;else if(Md===sd)kd+=Md,Fd=!0;else{for(Pd="";Md===sd||Md===od;)Pd+=Md,Md=Ed.charAt(++Td);if(Md!==rd)break;kd+=Pd+Md,Od+=Md}if(Bd)return Ad?!0:_d(Rd)({type:"code",lang:null,meta:null,value:td(Bd)})}}),ma $ 1=C((Ra,qa)=>{qa.exports=ud;var ed= `
` ,td=" ",rd=" ",sd="~",od=" ` ",ld=3,cd=4;function ud(_d,Ed,Ad){var Td=this,Nd=Td.options.gfm,Rd=Ed.length+1,Bd=0,kd=" ",Od,Md,Pd,Fd,Ud,Gd,Qd,Vd,zd,Xd,df,mf,_f;if(Nd){for(;Bd<Rd&&(Pd=Ed.charAt(Bd),!(Pd!==rd&&Pd!==td));)kd+=Pd,Bd++;if(mf=Bd,Pd=Ed.charAt(Bd),!(Pd!==sd&&Pd!==od)){for(Bd++,Md=Pd,Od=1,kd+=Pd;Bd<Rd&&(Pd=Ed.charAt(Bd),Pd===Md);)kd+=Pd,Od++,Bd++;if(!(Od<ld)){for(;Bd<Rd&&(Pd=Ed.charAt(Bd),!(Pd!==rd&&Pd!==td));)kd+=Pd,Bd++;for(Fd=" ",Qd=" ";Bd<Rd&&(Pd=Ed.charAt(Bd),!(Pd===ed||Md===od&&Pd===Md));)Pd===rd||Pd===td?Qd+=Pd:(Fd+=Qd+Pd,Qd=" "),Bd++;if(Pd=Ed.charAt(Bd),!(Pd&&Pd!==ed)){if(Ad)return!0;_f=_d.now(),_f.column+=kd.length,_f.offset+=kd.length,kd+=Fd,Fd=Td.decode.raw(Td.unescape(Fd),_f),Qd&&(kd+=Qd),Qd=" ",Xd=" ",df=" ",Vd=" ",zd=" ";for(var hf=!0;Bd<Rd;){if(Pd=Ed.charAt(Bd),Vd+=Xd,zd+=df,Xd=" ",df=" ",Pd!==ed){Vd+=Pd,df+=Pd,Bd++;continue}for(hf?(kd+=Pd,hf=!1):(Xd+=Pd,df+=Pd),Qd=" ",Bd++;Bd<Rd&&(Pd=Ed.charAt(Bd),Pd===rd);)Qd+=Pd,Bd++;if(Xd+=Qd,df+=Qd.slice(mf),!(Qd.length>=cd)){for(Qd=" ";Bd<Rd&&(Pd=Ed.charAt(Bd),Pd===Md);)Qd+=Pd,Bd++;if(Xd+=Qd,df+=Qd,!(Qd.length<Od)){for(Qd=" ";Bd<Rd&&(Pd=Ed.charAt(Bd),!(Pd!==rd&&Pd!==td));)Xd+=Pd,df+=Pd,Bd++;if(!Pd||Pd===ed)break}}}for(kd+=Vd+Xd,Bd=-1,Rd=Fd.length;++Bd<Rd;)if(Pd=Fd.charAt(Bd),Pd===rd||Pd===td)Ud||(Ud=Fd.slice(0,Bd));else if(Ud){Gd=Fd.slice(Bd);break}return _d(kd)({type:" code ",lang:Ud||Fd||null,meta:Gd||null,value:zd})}}}}}}),Re$4=C((Ra,qa)=>{Ra=qa.exports=ed;function ed(td){return td.trim?td.trim():Ra.right(Ra.left(td))}Ra.left=function(td){return td.trimLeft?td.trimLeft():td.replace(/^\s\s*/," " ) } , Ra . right = function ( td ) { if ( td . trimRight ) return td . trimRight ( ) ; for ( var rd = /\s/ , sd = td . length ; rd . test ( td . charAt ( -- sd ) ) ; ) ; return td . slice ( 0 , sd + 1 ) } } ) , Kr$3 = C ( ( Ra , qa ) => { qa . exports = ed ; function ed ( td , rd , sd , od ) { for ( var ld = td . length , cd = - 1 , ud , _d ; ++ cd < ld ; ) if ( ud = td [ cd ] , _d = ud [ 1 ] || { } , ! ( _d . pedantic !== void 0 && _d . pedantic !== sd . options . pedantic ) && ! ( _d . commonmark !== void 0 && _d . commonmark !== sd . options . commonmark ) && rd [ ud [ 0 ] ] . apply ( sd , od ) ) return ! 0 ; return ! 1 } } ) , ba$2 = C ( ( Ra , qa ) => { var ed = Re$4 ( ) , td = Kr$3 ( ) ; qa . exports = cd ; var rd = `
` ,sd=" ",od=" ",ld=">";function cd(ud,_d,Ed){for(var Ad=this,Td=Ad.offset,Nd=Ad.blockTokenizers,Rd=Ad.interruptBlockquote,Bd=ud.now(),kd=Bd.line,Od=_d.length,Md=[],Pd=[],Fd=[],Ud,Gd=0,Qd,Vd,zd,Xd,df,mf,_f,hf;Gd<Od&&(Qd=_d.charAt(Gd),!(Qd!==od&&Qd!==sd));)Gd++;if(_d.charAt(Gd)===ld){if(Ed)return!0;for(Gd=0;Gd<Od;){for(zd=_d.indexOf(rd,Gd),mf=Gd,_f=!1,zd===-1&&(zd=Od);Gd<Od&&(Qd=_d.charAt(Gd),!(Qd!==od&&Qd!==sd));)Gd++;if(_d.charAt(Gd)===ld?(Gd++,_f=!0,_d.charAt(Gd)===od&&Gd++):Gd=mf,Xd=_d.slice(Gd,zd),!_f&&!ed(Xd)){Gd=mf;break}if(!_f&&(Vd=_d.slice(Gd),td(Rd,Nd,Ad,[ud,Vd,!0])))break;df=mf===Gd?Xd:_d.slice(mf,zd),Fd.push(Gd-mf),Md.push(df),Pd.push(Xd),Gd=zd+1}for(Gd=-1,Od=Fd.length,Ud=ud(Md.join(rd));++Gd<Od;)Td[kd]=(Td[kd]||0)+Fd[Gd],kd++;return hf=Ad.enterBlock(),Pd=Ad.tokenizeBlock(Pd.join(rd),Bd),hf(),Ud({type:"blockquote",children:Pd})}}}),xa $ 2=C((Ra,qa)=>{qa.exports=ld;var ed= `
` ,td=" ",rd=" ",sd="#",od=6;function ld(cd,ud,_d){for(var Ed=this,Ad=Ed.options.pedantic,Td=ud.length+1,Nd=-1,Rd=cd.now(),Bd="",kd="",Od,Md,Pd;++Nd<Td;){if(Od=ud.charAt(Nd),Od!==rd&&Od!==td){Nd--;break}Bd+=Od}for(Pd=0;++Nd<=Td;){if(Od=ud.charAt(Nd),Od!==sd){Nd--;break}Bd+=Od,Pd++}if(!(Pd>od)&&!(!Pd||!Ad&&ud.charAt(Nd+1)===sd)){for(Td=ud.length+1,Md="";++Nd<Td;){if(Od=ud.charAt(Nd),Od!==rd&&Od!==td){Nd--;break}Md+=Od}if(!(!Ad&&Md.length===0&&Od&&Od!==ed)){if(_d)return!0;for(Bd+=Md,Md="",kd="";++Nd<Td&&(Od=ud.charAt(Nd),!(!Od||Od===ed));){if(Od!==rd&&Od!==td&&Od!==sd){kd+=Md+Od,Md="";continue}for(;Od===rd||Od===td;)Md+=Od,Od=ud.charAt(++Nd);if(!Ad&&kd&&!Md&&Od===sd){kd+=Od;continue}for(;Od===sd;)Md+=Od,Od=ud.charAt(++Nd);for(;Od===rd||Od===td;)Md+=Od,Od=ud.charAt(++Nd);Nd--}return Rd.column+=Bd.length,Rd.offset+=Bd.length,Bd+=kd+Md,cd(Bd)({type:"heading",depth:Pd,children:Ed.tokenizeInline(kd,Rd)})}}}}),Ba $ 1=C((Ra,qa)=>{qa.exports=ud;var ed=" ",td= `
` ,rd=" ",sd="*",od="-",ld="_",cd=3;function ud(_d,Ed,Ad){for(var Td=-1,Nd=Ed.length+1,Rd="",Bd,kd,Od,Md;++Td<Nd&&(Bd=Ed.charAt(Td),!(Bd!==ed&&Bd!==rd));)Rd+=Bd;if(!(Bd!==sd&&Bd!==od&&Bd!==ld))for(kd=Bd,Rd+=Bd,Od=1,Md="";++Td<Nd;)if(Bd=Ed.charAt(Td),Bd===kd)Od++,Rd+=Md+kd,Md="";else if(Bd===rd)Md+=Bd;else return Od>=cd&&(!Bd||Bd===td)?(Rd+=Md,Ad?!0:_d(Rd)({type:"thematicBreak"})):void 0}}), $ t $ 2=C((Ra,qa)=>{qa.exports=od;var ed=" ",td=" ",rd=1,sd=4;function od(ld){for(var cd=0,ud=0,_d=ld.charAt(cd),Ed={},Ad,Td=0;_d===ed||_d===td;){for(Ad=_d===ed?sd:rd,ud+=Ad,Ad>1&&(ud=Math.floor(ud/Ad)*Ad);Td<ud;)Ed[++Td]=cd;_d=ld.charAt(++cd)}return{indent:ud,stops:Ed}}}),Oa $ 3=C((Ra,qa)=>{var ed=Re $ 4(),td=Hr $ 3(),rd= $ t $ 2();qa.exports=cd;var sd= `
` ,od=" ",ld="!";function cd(ud,_d){var Ed=ud.split(sd),Ad=Ed.length+1,Td=1/0,Nd=[],Rd,Bd,kd;for(Ed.unshift(td(od,_d)+ld);Ad--;)if(Bd=rd(Ed[Ad]),Nd[Ad]=Bd.stops,ed(Ed[Ad]).length!==0)if(Bd.indent)Bd.indent>0&&Bd.indent<Td&&(Td=Bd.indent);else{Td=1/0;break}if(Td!==1/0)for(Ad=Ed.length;Ad--;){for(kd=Nd[Ad],Rd=Td;Rd&&!(Rd in kd);)Rd--;Ed[Ad]=Ed[Ad].slice(kd[Rd]+1)}return Ed.shift(),Ed.join(sd)}}),Ua $ 3=C((Ra,qa)=>{var ed=Re $ 4(),td=Hr $ 3(),rd=Ne $ 1(),sd= $ t $ 2(),od=Oa $ 3(),ld=Kr $ 3();qa.exports=Qd;var cd="*",ud="_",_d="+",Ed="-",Ad=".",Td=" ",Nd= `
` ,Rd=" ",Bd=")",kd="x",Od=4,Md=/ \n \n (?! \s * $ )/,Pd=/^ \[ ([ X \t x])][ \t ]/,Fd=/^([ \t ]*)([*+-]| \d +[.)])( {1,4}(?! )| | \t | $ |(?= \n ))([^ \n ]*)/,Ud=/^([ \t ]*)([*+-]| \d +[.)])([ \t ]+)/,Gd=/^( {1,4}| \t )?/gm;function Qd(df,mf,_f){for(var hf=this,gf=hf.options.commonmark,yf=hf.options.pedantic,Cf=hf.blockTokenizers,Ff=hf.interruptList,Qf=0,Uf=mf.length,Lf=null,wf,Nf,Zf,Kf,Tf,bf,Bf,Wf,lh,Xf, $ f,th,hh,Yf,xf,Rf,qf,ch,_h,sh=!1,Ih,gh,Dh,Xh;Qf<Uf&&(Kf=mf.charAt(Qf),!(Kf!==Rd&&Kf!==Td));)Qf++;if(Kf=mf.charAt(Qf),Kf===cd||Kf===_d||Kf===Ed)Tf=Kf,Zf=!1;else{for(Zf=!0,Nf="";Qf<Uf&&(Kf=mf.charAt(Qf),!!rd(Kf));)Nf+=Kf,Qf++;if(Kf=mf.charAt(Qf),!Nf||!(Kf===Ad||gf&&Kf===Bd)||_f&&Nf!=="1")return;Lf=parseInt(Nf,10),Tf=Kf}if(Kf=mf.charAt(++Qf),!(Kf!==Td&&Kf!==Rd&&(yf||Kf!==Nd&&Kf!==""))){if(_f)return!0;for(Qf=0,Yf=[],xf=[],Rf=[];Qf<Uf;){for(bf=mf.indexOf(Nd,Qf),Bf=Qf,Wf=!1,Xh=!1,bf===-1&&(bf=Uf),wf=0;Qf<Uf;){if(Kf=mf.charAt(Qf),Kf===Rd)wf+=Od-wf%Od;else if(Kf===Td)wf++;else break;Qf++}if(qf&&wf>=qf.indent&&(Xh=!0),Kf=mf.charAt(Qf),lh=null,!Xh){if(Kf===cd||Kf===_d||Kf===Ed)lh=Kf,Qf++,wf++;else{for(Nf="";Qf<Uf&&(Kf=mf.charAt(Qf),!!rd(Kf));)Nf+=Kf,Qf++;Kf=mf.charAt(Qf),Qf++,Nf&&(Kf===Ad||gf&&Kf===Bd)&&(lh=Kf,wf+=Nf.length+1)}if(lh)if(Kf=mf.charAt(Qf),Kf===Rd)wf+=Od-wf%Od,Qf++;else if(Kf===Td){for(Dh=Qf+Od;Qf<Dh&&mf.charAt(Qf)===Td;)Qf++,wf++;Qf===Dh&&mf.charAt(Qf)===Td&&(Qf-=Od-1,wf-=Od-1)}else Kf!==Nd&&Kf!==""&&(lh=null)}if(lh){if(!yf&&Tf!==lh)break;Wf=!0}else!gf&&!Xh&&mf.charAt(Bf)===Td?Xh=!0:gf&&qf&&(Xh=wf>=qf.indent||wf>Od),Wf=!1,Qf=Bf;if( $ f=mf.slice(Bf,bf),Xf=Bf===Qf? $ f:mf.slice(Qf,bf),(lh===cd||lh===ud||lh===Ed)&&Cf.thematicBreak.call(hf,df, $ f,!0))break;if(th=hh,hh=!Wf&&!ed(Xf).length,Xh&&qf)qf.value=qf.value.concat(Rf, $ f),xf=xf.concat(Rf, $ f),Rf=[];else if(Wf)Rf.length!==0&&(sh=!0,qf.value.push(""),qf.trail=Rf.concat()),qf={value:[ $ f],indent:wf,trail:[]},Yf.push(qf),xf=xf.concat(Rf, $ f),Rf=[];else if(hh){if(th&&!gf)break;Rf.push( $ f)}else{if(th||ld(Ff,Cf,hf,[df, $ f,!0]))break;qf.value=qf.value.concat(Rf, $ f),xf=xf.concat(Rf, $ f),Rf=[]}Qf=bf+1}for(Ih=df(xf.join(Nd)).reset({type:"list",ordered:Zf,start:Lf,spread:sh,children:[]}),ch=hf.enterList(),_h=hf.enterBlock(),Qf=-1,Uf=Yf.length;++Qf<Uf;)qf=Yf[Qf].value.join(Nd),gh=df.now(),df(qf)(Vd(hf,qf,gh),Ih),qf=Yf[Qf].trail.join(Nd),Qf!==Uf-1&&(qf+=Nd),df(qf);return ch(),_h(),Ih}}function Vd(df,mf,_f){var hf=df.offset,gf=df.options.pedantic?zd:Xd,yf=null,Cf,Ff;return mf=gf.apply(null,arguments),df.options.gfm&&(Cf=mf.match(Pd),Cf&&(Ff=Cf[0].length,yf=Cf[1].toLowerCase()===kd,hf[_f.line]+=Ff,mf=mf.slice(Ff))),{type:"listItem",spread:Md.test(mf),checked:yf,children:df.tokenizeBlock(mf,_f)}}function zd(df,mf,_f){var hf=df.offset,gf=_f.line;return mf=mf.replace(Ud,yf),gf=_f.line,mf.replace(Gd,yf);function yf(Cf){return hf[gf]=(hf[gf]||0)+Cf.length,gf++,""}}function Xd(df,mf,_f){var hf=df.offset,gf=_f.line,yf,Cf,Ff,Qf,Uf,Lf,wf;for(mf=mf.replace(Fd,Nf),Qf=mf.split(Nd),Uf=od(mf,sd(yf).indent).split(Nd),Uf[0]=Ff,hf[gf]=(hf[gf]||0)+Cf.length,gf++,Lf=0,wf=Qf.length;++Lf<wf;)hf[gf]=(hf[gf]||0)+Qf[Lf].length-Uf[Lf].length,gf++;return Uf.join(Nd);function Nf(Zf,Kf,Tf,bf,Bf){return Cf=Kf+Tf+bf,Ff=Bf,Number(Tf)<10&&Cf.length%2===1&&(Tf=Td+Tf),yf=Kf+td(Td,Tf.length)+bf,yf+Ff}}}),Ga $ 2=C((Ra,qa)=>{qa.exports=_d;var ed= `
` ,td=" ",rd=" ",sd="=",od="-",ld=3,cd=1,ud=2;function _d(Ed,Ad,Td){for(var Nd=this,Rd=Ed.now(),Bd=Ad.length,kd=-1,Od="",Md,Pd,Fd,Ud,Gd;++kd<Bd;){if(Fd=Ad.charAt(kd),Fd!==rd||kd>=ld){kd--;break}Od+=Fd}for(Md="",Pd="";++kd<Bd;){if(Fd=Ad.charAt(kd),Fd===ed){kd--;break}Fd===rd||Fd===td?Pd+=Fd:(Md+=Pd+Fd,Pd="")}if(Rd.column+=Od.length,Rd.offset+=Od.length,Od+=Md+Pd,Fd=Ad.charAt(++kd),Ud=Ad.charAt(++kd),!(Fd!==ed||Ud!==sd&&Ud!==od)){for(Od+=Fd,Pd=Ud,Gd=Ud===sd?cd:ud;++kd<Bd;){if(Fd=Ad.charAt(kd),Fd!==Ud){if(Fd!==ed)return;kd--;break}Pd+=Fd}return Td?!0:Ed(Od+Pd)({type:"heading",depth:Gd,children:Nd.tokenizeInline(Md,Rd)})}}}),Xt $ 3=C(Ra=>{var qa="[a-zA-Z_:][a-zA-Z0-9:._-]*",ed="[^ \" '=<> ` \ \u0000 - \ \u0020 ] + ",td=" '[^' ] * '",rd=' "[^" ] * "',sd=" ( ? : "+ed+" | "+td+" | "+rd+" ) ",od=" ( ? : \ \ s + "+qa+" ( ? : \ \ s *= \ \ s * "+sd+" ) ? ) ",ld=" < [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * "+od+" * \ \ s * \ \ / ? > ",cd=" < \ \ / [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * \ \ s * > ",ud=" <!-- -- > | <!-- ( ? : - ? [ ^ > - ] ) ( ? : - ? [ ^ - ] ) * -- > ",_d=" < [ ? ] . * ? [ ? ] > ",Ed=" < ! [ A - Za - z ] + \ \ s + [ ^ > ] * > ",Ad=" < ! \ \ [ CDATA \ \ [ [ \ \ s \ \ S ] * ? \ \ ] \ \ ] > ";Ra.openCloseTag=new RegExp(" ^ ( ? : "+ld+" | "+cd+" ) "),Ra.tag=new RegExp(" ^ ( ? : "+ld+" | "+cd+" | "+ud+" | "+_d+" | "+Ed+" | "+Ad+" ) ")}),Ka$1=C((Ra,qa)=>{var ed=Xt$3().openCloseTag;qa.exports=Md;var td=" ",rd=" " , sd = `
` ,od="<",ld=/^<(script|pre|style)(?=( \s |>| $ ))/i,cd=/< \/ (script|pre|style)>/i,ud=/^<!--/,_d=/-->/,Ed=/^< \? /,Ad=/ \? >/,Td=/^<![A-Za-z]/,Nd=/>/,Rd=/^<! \[ CDATA \[ /,Bd=/]]>/,kd=/^ $ /,Od=new RegExp(ed.source+" \\ s* $ ");function Md(Pd,Fd,Ud){for(var Gd=this,Qd=Gd.options.blocks.join("|"),Vd=new RegExp("^</?("+Qd+")(?=( \\ s|/?>| $ ))","i"),zd=Fd.length,Xd=0,df,mf,_f,hf,gf,yf,Cf,Ff=[[ld,cd,!0],[ud,_d,!0],[Ed,Ad,!0],[Td,Nd,!0],[Rd,Bd,!0],[Vd,kd,!0],[Od,kd,!1]];Xd<zd&&(hf=Fd.charAt(Xd),!(hf!==td&&hf!==rd));)Xd++;if(Fd.charAt(Xd)===od){for(df=Fd.indexOf(sd,Xd+1),df=df===-1?zd:df,mf=Fd.slice(Xd,df),_f=-1,gf=Ff.length;++_f<gf;)if(Ff[_f][0].test(mf)){yf=Ff[_f];break}if(yf){if(Ud)return yf[2];if(Xd=df,!yf[1].test(mf))for(;Xd<zd;){if(df=Fd.indexOf(sd,Xd+1),df=df===-1?zd:df,mf=Fd.slice(Xd+1,df),yf[1].test(mf)){mf&&(Xd=df);break}Xd=df}return Cf=Fd.slice(0,Xd),Pd(Cf)({type:"html",value:Cf})}}}}),ue $ 1=C((Ra,qa)=>{qa.exports=rd;var ed=String.fromCharCode,td=/ \s /;function rd(sd){return td.test(typeof sd=="number"?ed(sd):sd.charAt(0))}}),Qt $ 1=C((Ra,qa)=>{var ed=xr $ 2();qa.exports=td;function td(rd){return ed(rd).toLowerCase()}}),io $ 1=C((Ra,qa)=>{var ed=ue $ 1(),td=Qt $ 1();qa.exports=kd;var rd='"',sd="'",od=" \\ ",ld= `
` ,cd=" ",ud=" ",_d="[",Ed="]",Ad="(",Td=")",Nd=":",Rd="<",Bd=">";function kd(Pd,Fd,Ud){for(var Gd=this,Qd=Gd.options.commonmark,Vd=0,zd=Fd.length,Xd="",df,mf,_f,hf,gf,yf,Cf,Ff;Vd<zd&&(hf=Fd.charAt(Vd),!(hf!==ud&&hf!==cd));)Xd+=hf,Vd++;if(hf=Fd.charAt(Vd),hf===_d){for(Vd++,Xd+=hf,_f="";Vd<zd&&(hf=Fd.charAt(Vd),hf!==Ed);)hf===od&&(_f+=hf,Vd++,hf=Fd.charAt(Vd)),_f+=hf,Vd++;if(!(!_f||Fd.charAt(Vd)!==Ed||Fd.charAt(Vd+1)!==Nd)){for(yf=_f,Xd+=_f+Ed+Nd,Vd=Xd.length,_f="";Vd<zd&&(hf=Fd.charAt(Vd),!(hf!==cd&&hf!==ud&&hf!==ld));)Xd+=hf,Vd++;if(hf=Fd.charAt(Vd),_f="",df=Xd,hf===Rd){for(Vd++;Vd<zd&&(hf=Fd.charAt(Vd),!!Od(hf));)_f+=hf,Vd++;if(hf=Fd.charAt(Vd),hf===Od.delimiter)Xd+=Rd+_f+hf,Vd++;else{if(Qd)return;Vd-=_f.length+1,_f=""}}if(!_f){for(;Vd<zd&&(hf=Fd.charAt(Vd),!!Md(hf));)_f+=hf,Vd++;Xd+=_f}if(_f){for(Cf=_f,_f="";Vd<zd&&(hf=Fd.charAt(Vd),!(hf!==cd&&hf!==ud&&hf!==ld));)_f+=hf,Vd++;if(hf=Fd.charAt(Vd),gf=null,hf===rd?gf=rd:hf===sd?gf=sd:hf===Ad&&(gf=Td),!gf)_f="",Vd=Xd.length;else if(_f){for(Xd+=_f+hf,Vd=Xd.length,_f="";Vd<zd&&(hf=Fd.charAt(Vd),hf!==gf);){if(hf===ld){if(Vd++,hf=Fd.charAt(Vd),hf===ld||hf===gf)return;_f+=ld}_f+=hf,Vd++}if(hf=Fd.charAt(Vd),hf!==gf)return;mf=Xd,Xd+=_f+hf,Vd++,Ff=_f,_f=""}else return;for(;Vd<zd&&(hf=Fd.charAt(Vd),!(hf!==cd&&hf!==ud));)Xd+=hf,Vd++;if(hf=Fd.charAt(Vd),!hf||hf===ld)return Ud?!0:(df=Pd(df).test().end,Cf=Gd.decode.raw(Gd.unescape(Cf),df,{nonTerminated:!1}),Ff&&(mf=Pd(mf).test().end,Ff=Gd.decode.raw(Gd.unescape(Ff),mf)),Pd(Xd)({type:"definition",identifier:td(yf),label:yf,title:Ff||null,url:Cf}))}}}}function Od(Pd){return Pd!==Bd&&Pd!==_d&&Pd!==Ed}Od.delimiter=Bd;function Md(Pd){return Pd!==_d&&Pd!==Ed&&!ed(Pd)}}),oo $ 3=C((Ra,qa)=>{var ed=ue $ 1();qa.exports=Rd;var td=" ",rd= `
` ,sd=" ",od="-",ld=":",cd=" \\ ",ud="|",_d=1,Ed=2,Ad="left",Td="center",Nd="right";function Rd(Bd,kd,Od){var Md=this,Pd,Fd,Ud,Gd,Qd,Vd,zd,Xd,df,mf,_f,hf,gf,yf,Cf,Ff,Qf,Uf,Lf,wf,Nf,Zf;if(Md.options.gfm){for(Pd=0,Ff=0,Vd=kd.length+1,zd=[];Pd<Vd;){if(wf=kd.indexOf(rd,Pd),Nf=kd.indexOf(ud,Pd+1),wf===-1&&(wf=kd.length),Nf===-1||Nf>wf){if(Ff<Ed)return;break}zd.push(kd.slice(Pd,wf)),Ff++,Pd=wf+1}for(Gd=zd.join(rd),Fd=zd.splice(1,1)[0]||[],Pd=0,Vd=Fd.length,Ff--,Ud=!1,_f=[];Pd<Vd;){if(df=Fd.charAt(Pd),df===ud){if(mf=null,Ud===!1){if(Zf===!1)return}else _f.push(Ud),Ud=!1;Zf=!1}else if(df===od)mf=!0,Ud=Ud||null;else if(df===ld)Ud===Ad?Ud=Td:mf&&Ud===null?Ud=Nd:Ud=Ad;else if(!ed(df))return;Pd++}if(Ud!==!1&&_f.push(Ud),!(_f.length<_d)){if(Od)return!0;for(Cf=-1,Uf=[],Lf=Bd(Gd).reset({type:"table",align:_f,children:Uf});++Cf<Ff;){for(Qf=zd[Cf],Qd={type:"tableRow",children:[]},Cf&&Bd(rd),Bd(Qf).reset(Qd,Lf),Vd=Qf.length+1,Pd=0,Xd="",hf="",gf=!0;Pd<Vd;){if(df=Qf.charAt(Pd),df===td||df===sd){hf?Xd+=df:Bd(df),Pd++;continue}df===""||df===ud?gf?Bd(df):((hf||df)&&!gf&&(Gd=hf,Xd.length>1&&(df?(Gd+=Xd.slice(0,-1),Xd=Xd.charAt(Xd.length-1)):(Gd+=Xd,Xd="")),yf=Bd.now(),Bd(Gd)({type:"tableCell",children:Md.tokenizeInline(hf,yf)},Qd)),Bd(Xd+df),Xd="",hf=""):(Xd&&(hf+=Xd,Xd=""),hf+=df,df===cd&&Pd!==Vd-2&&(hf+=Qf.charAt(Pd+1),Pd++)),gf=!1,Pd++}Cf||Bd(rd+Fd)}return Lf}}}}),lo $ 2=C((Ra,qa)=>{var ed=Re $ 4(),td=Mt $ 2(),rd=Kr $ 3();qa.exports=ud;var sd=" ",od= `
` ,ld=" ",cd=4;function ud(_d,Ed,Ad){for(var Td=this,Nd=Td.options,Rd=Nd.commonmark,Bd=Td.blockTokenizers,kd=Td.interruptParagraph,Od=Ed.indexOf(od),Md=Ed.length,Pd,Fd,Ud,Gd,Qd;Od<Md;){if(Od===-1){Od=Md;break}if(Ed.charAt(Od+1)===od)break;if(Rd){for(Gd=0,Pd=Od+1;Pd<Md;){if(Ud=Ed.charAt(Pd),Ud===sd){Gd=cd;break}else if(Ud===ld)Gd++;else break;Pd++}if(Gd>=cd&&Ud!==od){Od=Ed.indexOf(od,Od+1);continue}}if(Fd=Ed.slice(Od+1),rd(kd,Bd,Td,[_d,Fd,!0]))break;if(Pd=Od,Od=Ed.indexOf(od,Od+1),Od!==-1&&ed(Ed.slice(Pd,Od))===""){Od=Pd;break}}return Fd=Ed.slice(0,Od),Ad?!0:(Qd=_d.now(),Fd=td(Fd),_d(Fd)({type:"paragraph",children:Td.tokenizeInline(Fd,Qd)}))}}),Do $ 1=C((Ra,qa)=>{qa.exports=ed;function ed(td,rd){return td.indexOf(" \\ ",rd)}}),Fo $ 1=C((Ra,qa)=>{var ed=Do $ 1();qa.exports=sd,sd.locator=ed;var td= `
` ,rd=" \\ ";function sd(od,ld,cd){var ud=this,_d,Ed;if(ld.charAt(0)===rd&&(_d=ld.charAt(1),ud.escape.indexOf(_d)!==-1))return cd?!0:(_d===td?Ed={type:"break"}:Ed={type:"text",value:_d},od(rd+_d)(Ed))}}),tn $ 3=C((Ra,qa)=>{qa.exports=ed;function ed(td,rd){return td.indexOf("<",rd)}}),yo $ 2=C((Ra,qa)=>{var ed=ue $ 1(),td=pr $ 1(),rd=tn $ 3();qa.exports=Ed,Ed.locator=rd,Ed.notInLink=!0;var sd="<",od=">",ld="@",cd="/",ud="mailto:",_d=ud.length;function Ed(Ad,Td,Nd){var Rd=this,Bd="",kd=Td.length,Od=0,Md="",Pd=!1,Fd="",Ud,Gd,Qd,Vd,zd;if(Td.charAt(0)===sd){for(Od++,Bd=sd;Od<kd&&(Ud=Td.charAt(Od),!(ed(Ud)||Ud===od||Ud===ld||Ud===":"&&Td.charAt(Od+1)===cd));)Md+=Ud,Od++;if(Md){if(Fd+=Md,Md="",Ud=Td.charAt(Od),Fd+=Ud,Od++,Ud===ld)Pd=!0;else{if(Ud!==":"||Td.charAt(Od+1)!==cd)return;Fd+=cd,Od++}for(;Od<kd&&(Ud=Td.charAt(Od),!(ed(Ud)||Ud===od));)Md+=Ud,Od++;if(Ud=Td.charAt(Od),!(!Md||Ud!==od))return Nd?!0:(Fd+=Md,Qd=Fd,Bd+=Fd+Ud,Gd=Ad.now(),Gd.column++,Gd.offset++,Pd&&(Fd.slice(0,_d).toLowerCase()===ud?(Qd=Qd.slice(_d),Gd.column+=_d,Gd.offset+=_d):Fd=ud+Fd),Vd=Rd.inlineTokenizers,Rd.inlineTokenizers={text:Vd.text},zd=Rd.enterLink(),Qd=Rd.tokenizeInline(Qd,Gd),Rd.inlineTokenizers=Vd,zd(),Ad(Bd)({type:"link",title:null,url:td(Fd,{nonTerminated:!1}),children:Qd}))}}}}),xo $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td,rd){var sd=String(td),od=0,ld;if(typeof rd!="string")throw new Error("Expected character");for(ld=sd.indexOf(rd);ld!==-1;)od++,ld=sd.indexOf(rd,ld+rd.length);return od}}),Bo $ 1=C((Ra,qa)=>{qa.exports=td;var ed=["www.","http://","https://"];function td(rd,sd){var od=-1,ld,cd,ud;if(!this.options.gfm)return od;for(cd=ed.length,ld=-1;++ld<cd;)ud=rd.indexOf(ed[ld],sd),ud!==-1&&(od===-1||ud<od)&&(od=ud);return od}}),Oo $ 1=C((Ra,qa)=>{var ed=xo $ 2(),td=pr $ 1(),rd=Ne $ 1(),sd=Ve $ 2(),od=ue $ 1(),ld=Bo $ 1();qa.exports=Gd,Gd.locator=ld,Gd.notInLink=!0;var cd=33,ud=38,_d=41,Ed=42,Ad=44,Td=45,Nd=46,Rd=58,Bd=59,kd=63,Od=60,Md=95,Pd=126,Fd="(",Ud=")";function Gd(Qd,Vd,zd){var Xd=this,df=Xd.options.gfm,mf=Xd.inlineTokenizers,_f=Vd.length,hf=-1,gf=!1,yf,Cf,Ff,Qf,Uf,Lf,wf,Nf,Zf,Kf,Tf,bf,Bf,Wf;if(df){if(Vd.slice(0,4)==="www.")gf=!0,Qf=4;else if(Vd.slice(0,7).toLowerCase()==="http://")Qf=7;else if(Vd.slice(0,8).toLowerCase()==="https://")Qf=8;else return;for(hf=Qf-1,Ff=Qf,yf=[];Qf<_f;){if(wf=Vd.charCodeAt(Qf),wf===Nd){if(hf===Qf-1)break;yf.push(Qf),hf=Qf,Qf++;continue}if(rd(wf)||sd(wf)||wf===Td||wf===Md){Qf++;continue}break}if(wf===Nd&&(yf.pop(),Qf--),yf[0]!==void 0&&(Cf=yf.length<2?Ff:yf[yf.length-2]+1,Vd.slice(Cf,Qf).indexOf("_")===-1)){if(zd)return!0;for(Nf=Qf,Uf=Qf;Qf<_f&&(wf=Vd.charCodeAt(Qf),!(od(wf)||wf===Od));)Qf++,wf===cd||wf===Ed||wf===Ad||wf===Nd||wf===Rd||wf===kd||wf===Md||wf===Pd||(Nf=Qf);if(Qf=Nf,Vd.charCodeAt(Qf-1)===_d)for(Lf=Vd.slice(Uf,Qf),Zf=ed(Lf,Fd),Kf=ed(Lf,Ud);Kf>Zf;)Qf=Uf+Lf.lastIndexOf(Ud),Lf=Vd.slice(Uf,Qf),Kf--;if(Vd.charCodeAt(Qf-1)===Bd&&(Qf--,sd(Vd.charCodeAt(Qf-1)))){for(Nf=Qf-2;sd(Vd.charCodeAt(Nf));)Nf--;Vd.charCodeAt(Nf)===ud&&(Qf=Nf)}return Tf=Vd.slice(0,Qf),Bf=td(Tf,{nonTerminated:!1}),gf&&(Bf="http://"+Bf),Wf=Xd.enterLink(),Xd.inlineTokenizers={text:mf.text},bf=Xd.tokenizeInline(Tf,Qd.now()),Xd.inlineTokenizers=mf,Wf(),Qd(Tf)({type:"link",title:null,url:Bf,children:bf})}}}}),No $ 1=C((Ra,qa)=>{var ed=Ne $ 1(),td=Ve $ 2(),rd=43,sd=45,od=46,ld=95;qa.exports=cd;function cd(_d,Ed){var Ad=this,Td,Nd;if(!this.options.gfm||(Td=_d.indexOf("@",Ed),Td===-1))return-1;if(Nd=Td,Nd===Ed||!ud(_d.charCodeAt(Nd-1)))return cd.call(Ad,_d,Td+1);for(;Nd>Ed&&ud(_d.charCodeAt(Nd-1));)Nd--;return Nd}function ud(_d){return ed(_d)||td(_d)||_d===rd||_d===sd||_d===od||_d===ld}}),Mo $ 2=C((Ra,qa)=>{var ed=pr $ 1(),td=Ne $ 1(),rd=Ve $ 2(),sd=No $ 1();qa.exports=Ed,Ed.locator=sd,Ed.notInLink=!0;var od=43,ld=45,cd=46,ud=64,_d=95;function Ed(Ad,Td,Nd){var Rd=this,Bd=Rd.options.gfm,kd=Rd.inlineTokenizers,Od=0,Md=Td.length,Pd=-1,Fd,Ud,Gd,Qd;if(Bd){for(Fd=Td.charCodeAt(Od);td(Fd)||rd(Fd)||Fd===od||Fd===ld||Fd===cd||Fd===_d;)Fd=Td.charCodeAt(++Od);if(Od!==0&&Fd===ud){for(Od++;Od<Md;){if(Fd=Td.charCodeAt(Od),td(Fd)||rd(Fd)||Fd===ld||Fd===cd||Fd===_d){Od++,Pd===-1&&Fd===cd&&(Pd=Od)
` ,sd="!",od='"',ld="'",cd="(",ud=")",_d="<",Ed=">",Ad="[",Td=" \\ ",Nd="]",Rd=" ` ";function Bd(kd,Od,Md){var Pd=this,Fd=" ",Ud=0,Gd=Od.charAt(0),Qd=Pd.options.pedantic,Vd=Pd.options.commonmark,zd=Pd.options.gfm,Xd,df,mf,_f,hf,gf,yf,Cf,Ff,Qf,Uf,Lf,wf,Nf,Zf,Kf,Tf,bf;if(Gd===sd&&(Cf=!0,Fd=Gd,Gd=Od.charAt(++Ud)),Gd===Ad&&!(!Cf&&Pd.inLink)){for(Fd+=Gd,Nf=" ",Ud++,Uf=Od.length,Kf=kd.now(),wf=0,Kf.column+=Ud,Kf.offset+=Ud;Ud<Uf;){if(Gd=Od.charAt(Ud),gf=Gd,Gd===Rd){for(df=1;Od.charAt(Ud+1)===Rd;)gf+=Gd,Ud++,df++;mf?df>=mf&&(mf=0):mf=df}else if(Gd===Td)Ud++,gf+=Od.charAt(Ud);else if((!mf||zd)&&Gd===Ad)wf++;else if((!mf||zd)&&Gd===Nd)if(wf)wf--;else{if(Od.charAt(Ud+1)!==cd)return;gf+=cd,Xd=!0,Ud++;break}Nf+=gf,gf=" ",Ud++}if(Xd){for(Ff=Nf,Fd+=Nf+gf,Ud++;Ud<Uf&&(Gd=Od.charAt(Ud),!!ed(Gd));)Fd+=Gd,Ud++;if(Gd=Od.charAt(Ud),Nf=" ",_f=Fd,Gd===_d){for(Ud++,_f+=_d;Ud<Uf&&(Gd=Od.charAt(Ud),Gd!==Ed);){if(Vd&&Gd===rd)return;Nf+=Gd,Ud++}if(Od.charAt(Ud)!==Ed)return;Fd+=_d+Nf+Ed,Zf=Nf,Ud++}else{for(Gd=null,gf=" ";Ud<Uf&&(Gd=Od.charAt(Ud),!(gf&&(Gd===od||Gd===ld||Vd&&Gd===cd)));){if(ed(Gd)){if(!Qd)break;gf+=Gd}else{if(Gd===cd)wf++;else if(Gd===ud){if(wf===0)break;wf--}Nf+=gf,gf=" ",Gd===Td&&(Nf+=Td,Gd=Od.charAt(++Ud)),Nf+=Gd}Ud++}Fd+=Nf,Zf=Nf,Ud=Fd.length}for(Nf=" ";Ud<Uf&&(Gd=Od.charAt(Ud),!!ed(Gd));)Nf+=Gd,Ud++;if(Gd=Od.charAt(Ud),Fd+=Nf,Nf&&(Gd===od||Gd===ld||Vd&&Gd===cd))if(Ud++,Fd+=Gd,Nf=" ",Qf=Gd===cd?ud:Gd,hf=Fd,Vd){for(;Ud<Uf&&(Gd=Od.charAt(Ud),Gd!==Qf);)Gd===Td&&(Nf+=Td,Gd=Od.charAt(++Ud)),Ud++,Nf+=Gd;if(Gd=Od.charAt(Ud),Gd!==Qf)return;for(Lf=Nf,Fd+=Nf+Gd,Ud++;Ud<Uf&&(Gd=Od.charAt(Ud),!!ed(Gd));)Fd+=Gd,Ud++}else for(gf=" ";Ud<Uf;){if(Gd=Od.charAt(Ud),Gd===Qf)yf&&(Nf+=Qf+gf,gf=" "),yf=!0;else if(!yf)Nf+=Gd;else if(Gd===ud){Fd+=Nf+Qf+gf,Lf=Nf;break}else ed(Gd)?gf+=Gd:(Nf+=Qf+gf+Gd,gf=" ",yf=!1);Ud++}if(Od.charAt(Ud)===ud)return Md?!0:(Fd+=ud,Zf=Pd.decode.raw(Pd.unescape(Zf),kd(_f).test().end,{nonTerminated:!1}),Lf&&(hf=kd(hf).test().end,Lf=Pd.decode.raw(Pd.unescape(Lf),hf)),bf={type:Cf?" image ":" link ",title:Lf||null,url:Zf},Cf?bf.alt=Pd.decode.raw(Pd.unescape(Ff),Kf)||null:(Tf=Pd.enterLink(),bf.children=Pd.tokenizeInline(Ff,Kf),Tf()),kd(Fd)(bf))}}}}),rs$1=C((Ra,qa)=>{var ed=ue$1(),td=dn$2(),rd=Qt$1();qa.exports=Nd,Nd.locator=td;var sd=" link ",od=" image ",ld=" shortcut ",cd=" collapsed ",ud=" full ",_d=" ! ",Ed=" [ ",Ad=" \ \ ",Td=" ] ";function Nd(Rd,Bd,kd){var Od=this,Md=Od.options.commonmark,Pd=Bd.charAt(0),Fd=0,Ud=Bd.length,Gd=" ",Qd=" ",Vd=sd,zd=ld,Xd,df,mf,_f,hf,gf,yf,Cf;if(Pd===_d&&(Vd=od,Qd=Pd,Pd=Bd.charAt(++Fd)),Pd===Ed){for(Fd++,Qd+=Pd,gf=" ",Cf=0;Fd<Ud;){if(Pd=Bd.charAt(Fd),Pd===Ed)yf=!0,Cf++;else if(Pd===Td){if(!Cf)break;Cf--}Pd===Ad&&(gf+=Ad,Pd=Bd.charAt(++Fd)),gf+=Pd,Fd++}if(Gd=gf,Xd=gf,Pd=Bd.charAt(Fd),Pd===Td){if(Fd++,Gd+=Pd,gf=" ",!Md)for(;Fd<Ud&&(Pd=Bd.charAt(Fd),!!ed(Pd));)gf+=Pd,Fd++;if(Pd=Bd.charAt(Fd),Pd===Ed){for(df=" ",gf+=Pd,Fd++;Fd<Ud&&(Pd=Bd.charAt(Fd),!(Pd===Ed||Pd===Td));)Pd===Ad&&(df+=Ad,Pd=Bd.charAt(++Fd)),df+=Pd,Fd++;Pd=Bd.charAt(Fd),Pd===Td?(zd=df?ud:cd,gf+=df+Pd,Fd++):df=" ",Gd+=gf,gf=" "}else{if(!Xd)return;df=Xd}if(!(zd!==ud&&yf))return Gd=Qd+Gd,Vd===sd&&Od.inLink?null:kd?!0:(mf=Rd.now(),mf.column+=Qd.length,mf.offset+=Qd.length,df=zd===ud?df:Xd,_f={type:Vd+" Reference ",identifier:rd(df),label:df,referenceType:zd},Vd===sd?(hf=Od.enterLink(),_f.children=Od.tokenizeInline(Xd,mf),hf()):_f.alt=Od.decode.raw(Od.unescape(Xd),mf)||null,Rd(Gd)(_f))}}}}),ns$1=C((Ra,qa)=>{qa.exports=ed;function ed(td,rd){var sd=td.indexOf(" * * ",rd),od=td.indexOf(" _ _ ",rd);return od===-1?sd:sd===-1||od<sd?od:sd}}),os$1=C((Ra,qa)=>{var ed=Re$4(),td=ue$1(),rd=ns$1();qa.exports=cd,cd.locator=rd;var sd=" \ \ ",od=" * ",ld=" _ ";function cd(ud,_d,Ed){var Ad=this,Td=0,Nd=_d.charAt(Td),Rd,Bd,kd,Od,Md,Pd,Fd;if(!(Nd!==od&&Nd!==ld||_d.charAt(++Td)!==Nd)&&(Bd=Ad.options.pedantic,kd=Nd,Md=kd+kd,Pd=_d.length,Td++,Od=" ",Nd=" ",!(Bd&&td(_d.charAt(Td)))))for(;Td<Pd;){if(Fd=Nd,Nd=_d.charAt(Td),Nd===kd&&_d.charAt(Td+1)===kd&&(!Bd||!td(Fd))&&(Nd=_d.charAt(Td+2),Nd!==kd))return ed(Od)?Ed?!0:(Rd=ud.now(),Rd.column+=2,Rd.offset+=2,ud(Md+Od+Md)({type:" strong " , children : Ad . tokenizeInline ( Od , Rd ) } ) ) : void
` ,rd);sd>rd&&td.charAt(sd-1)===" ";)sd--;return sd}}),Os $ 3=C((Ra,qa)=>{var ed=Ts $ 2();qa.exports=od,od.locator=ed;var td=" ",rd= `
` ,sd=2;function od(ld,cd,ud){for(var _d=cd.length,Ed=-1,Ad="",Td;++Ed<_d;){if(Td=cd.charAt(Ed),Td===rd)return Ed<sd?void 0:ud?!0:(Ad+=Td,ld(Ad)({type:"break"}));if(Td!==td)return;Ad+=Td}}}),Ls $ 3=C((Ra,qa)=>{qa.exports=ed;function ed(td,rd,sd){var od=this,ld,cd,ud,_d,Ed,Ad,Td,Nd,Rd,Bd;if(sd)return!0;for(ld=od.inlineMethods,_d=ld.length,cd=od.inlineTokenizers,ud=-1,Rd=rd.length;++ud<_d;)Nd=ld[ud],!(Nd==="text"||!cd[Nd])&&(Td=cd[Nd].locator,Td||td.file.fail("Missing locator: ` "+Nd+" ` "),Ad=Td.call(od,rd,1),Ad!==-1&&Ad<Rd&&(Rd=Ad));Ed=rd.slice(0,Rd),Bd=td.now(),od.decode(Ed,Bd,kd);function kd(Od,Md,Pd){td(Pd||Od)({type:"text",value:Od})}}}),Us $ 2=C((Ra,qa)=>{var ed=Ie $ 1(),td=ru $ 2(),rd=nu $ 3(),sd=uu $ 3(),od=Ou $ 1(),ld=Iu $ 1();qa.exports=cd;function cd(Ed,Ad){this.file=Ad,this.offset={},this.options=ed(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=rd(Ad).toOffset,this.unescape=sd(this,"escape"),this.decode=od(this)}var ud=cd.prototype;ud.setOptions=Vu $ 2(),ud.parse=aa $ 3(),ud.options=Rt $ 3(),ud.exitStart=td("atStart",!0),ud.enterList=td("inList",!1),ud.enterLink=td("inLink",!1),ud.enterBlock=td("inBlock",!1),ud.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],ud.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],ud.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],ud.blockTokenizers={blankLine:sa $ 1(),indentedCode:pa $ 1(),fencedCode:ma $ 1(),blockquote:ba $ 2(),atxHeading:xa $ 2(),thematicBreak:Ba $ 1(),list:Ua $ 3(),setextHeading:Ga $ 2(),html:Ka $ 1(),definition:io $ 1(),table:oo $ 3(),paragraph:lo $ 2()},ud.inlineTokenizers={escape:Fo $ 1(),autoLink:yo $ 2(),url:Oo $ 1(),email:Mo $ 2(),html:Vo $ 1(),link:Qo $ 1(),reference:rs $ 1(),strong:os $ 1(),emphasis:ms $ 3(),deletion:ys $ 3(),code:Bs $ 2(),break:Os $ 3(),text:Ls $ 3()},ud.blockMethods=_d(ud.blockTokenizers),ud.inlineMethods=_d(ud.inlineTokenizers),ud.tokenizeBlock=ld("block"),ud.tokenizeInline=ld("inline"),ud.tokenizeFactory=ld;function _d(Ed){var Ad=[],Td;for(Td in Ed)Ad.push(Td);return Ad}}),Gs $ 1=C((Ra,qa)=>{var ed=Zi $ 1(),td=Ie $ 1(),rd=Us $ 2();qa.exports=sd,sd.Parser=rd;function sd(od){var ld=this.data("settings"),cd=ed(rd);cd.prototype.options=td(cd.prototype.options,ld,od),this.Parser=cd}}),js $ 2=C((Ra,qa)=>{qa.exports=ed;function ed(td){if(td)throw td}}),yn $ 2=C((Ra,qa)=>{qa.exports=function(ed){return ed!=null&&ed.constructor!=null&&typeof ed.constructor.isBuffer=="function"&&ed.constructor.isBuffer(ed)}}),rc $ 2=C((Ra,qa)=>{var ed=Object.prototype.hasOwnProperty,td=Object.prototype.toString,rd=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,od=function(_d){return typeof Array.isArray=="function"?Array.isArray(_d):td.call(_d)==="[object Array]"},ld=function(_d){if(!_d||td.call(_d)!=="[object Object]")return!1;var Ed=ed.call(_d,"constructor"),Ad=_d.constructor&&_d.constructor.prototype&&ed.call(_d.constructor.prototype,"isPrototypeOf");if(_d.constructor&&!Ed&&!Ad)return!1;var Td;for(Td in _d);return typeof Td>"u"||ed.call(_d,Td)},cd=function(_d,Ed){rd&&Ed.name==="__proto__"?rd(_d,Ed.name,{enumerable:!0,configurable:!0,value:Ed.newValue,writable:!0}):_d[Ed.name]=Ed.newValue},ud=function(_d,Ed){if(Ed==="__proto__")if(ed.call(_d,Ed)){if(sd)return sd(_d,Ed).value}else return;return _d[Ed]};qa.exports=function _d(){var Ed,Ad,Td,Nd,Rd,Bd,kd=arguments[0],Od=1,Md=arguments.length,Pd=!1;for(typeof kd=="boolean"&&(Pd=kd,kd=arguments[1]||{},Od=2),(kd==null||typeof kd!="object"&&typeof kd!="function")&&(kd={});Od<Md;++Od)if(Ed=arguments[Od],Ed!=null)for(Ad in Ed)Td=ud(kd,Ad),Nd=ud(Ed,Ad),kd!==Nd&&(Pd&&Nd&&(ld(Nd)||(Rd=od(Nd)))?(Rd?(Rd=!1,Bd=Td&&od(Td)?Td:[]):Bd=Td&&ld(Td)?Td:{},cd(kd,{name:Ad,newValue:_d(Pd,Bd,Nd)})):typeof Nd<"u"&&cd(kd,{name:Ad,newV
Expected it to be 'string' or 'object' . ` ;if(Y $ 1(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return ` Unexpected doc '${ed}' . ` ;let td=ll $ 2([...wr $ 2].map(rd=> ` '${rd}' ` ));return ` Unexpected doc . type '${Ra.type}' .
Expected it to be $ { td } . ` }var Dt $ 3=class extends Error{constructor(ed){super(fl $ 2(ed));n_(this,"name","InvalidDocError");this.doc=ed}},qe $ 2=Dt $ 3,Nn $ 2={};function Dl $ 2(Ra,qa,ed,td){let rd=[Ra];for(;rd.length>0;){let sd=rd.pop();if(sd===Nn $ 2){ed(rd.pop());continue}ed&&rd.push(sd,Nn $ 2);let od=Y $ 1(sd);if(!od)throw new qe $ 2(sd);if((qa==null?void 0:qa(sd))!==!1)switch(od){case H $ 1:case J $ 1:{let ld=od===H $ 1?sd:sd.parts;for(let cd=ld.length,ud=cd-1;ud>=0;--ud)rd.push(ld[ud]);break}case X $ 2:rd.push(sd.flatContents,sd.breakContents);break;case K $ 2:if(td&&sd.expandedStates)for(let ld=sd.expandedStates.length,cd=ld-1;cd>=0;--cd)rd.push(sd.expandedStates[cd]);else rd.push(sd.contents);break;case re $ 3:case ee $ 1:case se $ 1:case fe $ 2:case ce $ 2:rd.push(sd.contents);break;case $ $ 1:case ge $ 3:case oe $ 2:case le $ 2:case W $ 1:case te $ 2:break;default:throw new qe $ 2(sd)}}}var Rn $ 2=Dl $ 2,Un $ 2=()=>{},kr $ 2=Un $ 2;function Ze $ 2(Ra){return{type:ee $ 1,contents:Ra}}function ve $ 2(Ra,qa){return{type:re $ 3,contents:qa,n:Ra}}function ze $ 2(Ra,qa={}){return kr $ 2(qa.expandedStates),{type:K $ 2,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function _e $ 3(Ra){return ve $ 2({type:"root"},Ra)}function Ee $ 2(Ra){return{type:J $ 1,parts:Ra}}function zn $ 2(Ra,qa="",ed={}){return{type:X $ 2,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}var er $ 1={type:te $ 2},rr $ 1={type:W $ 1,hard:!0},pl $ 2={type:W $ 1,hard:!0,literal:!0},Br $ 3={type:W $ 1},qr $ 2={type:W $ 1,soft:!0},L $ 2=[rr $ 1,er $ 1],tr $ 1=[pl $ 2,er $ 1];function Tr $ 2(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}function dl $ 2(Ra,qa){if(typeof Ra=="string")return qa(Ra);let ed=new Map;return td(Ra);function td(sd){if(ed.has(sd))return ed.get(sd);let od=rd(sd);return ed.set(sd,od),od}function rd(sd){switch(Y $ 1(sd)){case H $ 1:return qa(sd.map(td));case J $ 1:return qa({...sd,parts:sd.parts.map(td)});case X $ 2:return qa({...sd,breakContents:td(sd.breakContents),flatContents:td(sd.flatContents)});case K $ 2:{let{expandedStates:od,contents:ld}=sd;return od?(od=od.map(td),ld=od[0]):ld=td(ld),qa({...sd,contents:ld,expandedStates:od})}case re $ 3:case ee $ 1:case se $ 1:case fe $ 2:case ce $ 2:return qa({...sd,contents:td(sd.contents)});case $ $ 1:case ge $ 3:case oe $ 2:case le $ 2:case W $ 1:case te $ 2:return qa(sd);default:throw new qe $ 2(sd)}}}function Mn $ 2(Ra){if(Ra.length>0){let qa=M $ 2(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Yn $ 3(Ra){let qa=new Set,ed=[];function td(sd){if(sd.type===te $ 2&&Mn $ 2(ed),sd.type===K $ 2){if(ed.push(sd),qa.has(sd))return!1;qa.add(sd)}}function rd(sd){sd.type===K $ 2&&ed.pop().break&&Mn $ 2(ed)}Rn $ 2(Ra,td,rd,!0)}function Ce $ 1(Ra,qa=tr $ 1){return dl $ 2(Ra,ed=>typeof ed=="string"?Tr $ 2(qa,ed.split( `
` )):ed)}function hl $ 2(Ra,qa){let ed=Ra.match(new RegExp( ` ( $ { Be$3 ( qa ) } ) + ` ,"gu"));return ed===null?0:ed.reduce((td,rd)=>Math.max(td,rd.length/qa.length),0)}var _r $ 2=hl $ 2;function ml $ 2(Ra,qa){let ed=Ra.match(new RegExp( ` ( $ { Be$3 ( qa ) } ) + ` ,"gu"));if(ed===null)return 0;let td=new Map,rd=0;for(let sd of ed){let od=sd.length/qa.length;td.set(od,!0),od>rd&&(rd=od)}for(let sd=1;sd<rd;sd++)if(!td.get(sd))return sd;return rd+1}var Gn $ 3=ml $ 2,Sr $ 2="'",Vn $ 2='"';function Fl $ 3(Ra,qa){let ed=qa===!0||qa===Sr $ 2?Sr $ 2:Vn $ 2,td=ed===Sr $ 2?Vn $ 2:Sr $ 2,rd=0,sd=0;for(let od of Ra)od===ed?rd++:od===td&&sd++;return rd>sd?td:ed}var jn $ 3=Fl $ 3,pt $ 2=class extends Error{constructor(ed,td,rd="type"){super( ` Unexpected $ { td } node $ { rd } : $ { JSON . stringify ( ed [ rd ] ) } . ` );n_(this,"name","UnexpectedNodeError");this.node=ed}}, $ n $ 3=pt $ 2,Xn $ 3=Ue $ 3(xr $ 2());function gl $ 2(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var Hn $ 2=gl $ 2,nr $ 1=3;function vl $ 2(Ra){let qa=Ra.slice(0,nr $ 1);if(qa!=="---"&&qa!=="+++")return;let ed=Ra.indexOf( `
` ,nr $ 1);if(ed===-1)return;let td=Ra.slice(nr $ 1,ed).trim(),rd=Ra.indexOf( `
$ { qa } ` ,ed),sd=td;if(sd||(sd=qa==="+++"?"toml":"yaml"),rd===-1&&qa==="---"&&sd==="yaml"&&(rd=Ra.indexOf( `
... ` ,ed)),rd===-1)return;let od=rd+1+nr $ 1,ld=Ra.charAt(od+1);if(!/ \s ?/u.test(ld))return;let cd=Ra.slice(0,od);return{type:"front-matter",language:sd,explicitLanguage:td,value:Ra.slice(ed+1,rd),startDelimiter:qa,endDelimiter:cd.slice(-nr $ 1),raw:cd}}function El $ 3(Ra){let qa=vl $ 2(Ra);if(!qa)return{content:Ra};let{raw:ed}=qa;return{frontMatter:qa,content:N $ 2(!1,ed,/[^ \n ]/gu," ")+Ra.slice(ed.length)}}var ir $ 2=El $ 3,Wn $ 2=["format","prettier"];function dt $ 2(Ra){let qa= ` @ ( $ { Wn$2 . join ( "|" ) } ) ` ,ed=new RegExp([ ` <!-- \ \ s * $ { qa } \ \ s * -- > ` , ` \ \ { \ \ s * \ \ / \ \ * \ \ s * $ { qa } \ \ s * \ \ * \ \ / \ \ s * \ \ } ` , ` <!-- . * \ r ?
2024-08-27 22:31:52 +08:00
[ \ \ s \ \ S ] * ( ^ |
) [ ^ \ \ S
2024-08-30 15:19:18 +08:00
] * $ { qa } [ ^ \ \ S
2024-08-27 22:31:52 +08:00
] * ( $ |
) [ \ \ s \ \ S ] *
2024-09-16 00:03:18 +08:00
. * -- > ` ].join("|"),"mu"),td=Ra.match(ed);return(td==null?void 0:td.index)===0}var Kn $ 2=Ra=>dt $ 2(ir $ 2(Ra).content.trimStart()),Jn $ 3=Ra=>{let qa=ir $ 2(Ra),ed= ` <!-- @ $ { Wn$2 [ 0 ] } -- > ` ;return qa.frontMatter? ` $ { qa . frontMatter . raw }
2024-08-30 15:19:18 +08:00
2024-09-16 00:03:18 +08:00
$ { ed }
2024-08-30 15:19:18 +08:00
2024-09-16 00:03:18 +08:00
$ { qa . content } ` : ` $ { ed }
2024-08-30 15:19:18 +08:00
2024-09-16 00:03:18 +08:00
$ { qa . content } ` },Cl $ 2=new Set(["position","raw"]);function Qn $ 3(Ra,qa,ed){if((Ra.type==="front-matter"||Ra.type==="code"||Ra.type==="yaml"||Ra.type==="import"||Ra.type==="export"||Ra.type==="jsx")&&delete qa.value,Ra.type==="list"&&delete qa.isAligned,(Ra.type==="list"||Ra.type==="listItem")&&delete qa.spread,Ra.type==="text")return null;if(Ra.type==="inlineCode"&&(qa.value=N $ 2(!1,Ra.value, `
` ," ")),Ra.type==="wikiLink"&&(qa.value=N $ 2(!1,Ra.value.trim(),/[ \t \n ]+/gu," ")),(Ra.type==="definition"||Ra.type==="linkReference"||Ra.type==="imageReference")&&(qa.label=(0,Xn $ 3.default)(Ra.label)),(Ra.type==="link"||Ra.type==="image")&&Ra.url&&Ra.url.includes("("))for(let td of"<>")qa.url=N $ 2(!1,Ra.url,td,encodeURIComponent(td));if((Ra.type==="definition"||Ra.type==="link"||Ra.type==="image")&&Ra.title&&(qa.title=N $ 2(!1,Ra.title,/ \\ (?=["')])/gu,"")),(ed==null?void 0:ed.type)==="root"&&ed.children.length>0&&(ed.children[0]===Ra||Hn $ 2(ed.children[0])&&ed.children[1]===Ra)&&Ra.type==="html"&&dt $ 2(Ra.value))return null}Qn $ 3.ignoredProperties=Cl $ 2;var Zn $ 2=Qn $ 3,ei $ 2=/(?:[ \u 02ea- \u 02eb \u 1100- \u 11ff \u 2e80- \u 2e99 \u 2e9b- \u 2ef3 \u 2f00- \u 2fd5 \u 2ff0- \u 303f \u 3041- \u 3096 \u 3099- \u 309f \u 30a1- \u 30fa \u 30fc- \u 30ff \u 3105- \u 312f \u 3131- \u 318e \u 3190- \u 4dbf \u 4e00- \u 9fff \u a700- \u a707 \u a960- \u a97c \u ac00- \u d7a3 \u d7b0- \u d7c6 \u d7cb- \u d7fb \u f900- \u fa6d \u fa70- \u fad9 \u fe10- \u fe1f \u fe30- \u fe6f \u ff00- \u ffef]|[ \u d840- \u d868 \u d86a- \u d86c \u d86f- \u d872 \u d874- \u d879 \u d880- \u d883 \u d885- \u d887][ \u dc00- \u dfff]| \u d81b[ \u dfe3]| \u d82b[ \u dff0- \u dff3 \u dff5- \u dffb \u dffd- \u dffe]| \u d82c[ \u dc00- \u dd22 \u dd32 \u dd50- \u dd52 \u dd55 \u dd64- \u dd67]| \u d83c[ \u de00 \u de50- \u de51]| \u d869[ \u dc00- \u dedf \u df00- \u dfff]| \u d86d[ \u dc00- \u df39 \u df40- \u dfff]| \u d86e[ \u dc00- \u dc1d \u dc20- \u dfff]| \u d873[ \u dc00- \u dea1 \u deb0- \u dfff]| \u d87a[ \u dc00- \u dfe0]| \u d87e[ \u dc00- \u de1d]| \u d884[ \u dc00- \u df4a \u df50- \u dfff]| \u d888[ \u dc00- \u dfaf])(?:[ \u fe00- \u fe0f]| \u db40[ \u dd00- \u ddef])?/u,Se $ 2=new RegExp("(?:[ \\ u0021- \\ u002f \\ u003a- \\ u0040 \\ u005b- \\ u0060 \\ u007b- \\ u007e]| \\ p{General_Category=Connector_Punctuation}| \\ p{General_Category=Dash_Punctuation}| \\ p{General_Category=Close_Punctuation}| \\ p{General_Category=Final_Punctuation}| \\ p{General_Category=Initial_Punctuation}| \\ p{General_Category=Other_Punctuation}| \\ p{General_Category=Open_Punctuation})","u");async function bl $ 2(Ra,qa){if(Ra.language==="yaml"){let ed=Ra.value.trim(),td=ed?await qa(ed,{parser:"yaml"}):"";return _e $ 3([Ra.startDelimiter,Ra.explicitLanguage,L $ 2,td,td?L $ 2:"",Ra.endDelimiter])}}var ri $ 3=bl $ 2,yl $ 2=Ra=>String(Ra).split(/[/ \\ ]/u).pop();function ti $ 3(Ra,qa){if(!qa)return;let ed=yl $ 2(qa).toLowerCase();return Ra.find(({filenames:td})=>td==null?void 0:td.some(rd=>rd.toLowerCase()===ed))??Ra.find(({extensions:td})=>td==null?void 0:td.some(rd=>ed.endsWith(rd)))}function Al $ 3(Ra,qa){if(qa)return Ra.find(({name:ed})=>ed.toLowerCase()===qa)??Ra.find(({aliases:ed})=>ed==null?void 0:ed.includes(qa))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.includes( ` . $ { qa } ` ))}function xl $ 3(Ra,qa){let ed=Ra.plugins.flatMap(rd=>rd.languages??[]),td=Al $ 3(ed,qa.language)??ti $ 3(ed,qa.physicalFile)??ti $ 3(ed,qa.file)??(qa.physicalFile,void 0);return td==null?void 0:td.parsers[0]}var ni $ 3=xl $ 3,wl $ 3=new Proxy(()=>{},{get:()=>wl $ 3});function Oe $ 3(Ra){return Ra.position.start.offset}function Pe $ 3(Ra){return Ra.position.end.offset}var ht $ 2=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Or $ 2=new Set([...ht $ 2,"tableCell","paragraph","heading"]),Le $ 2="non-cjk",De $ 1="cj-letter",be $ 4="k-letter",ur $ 1="cjk-punctuation",kl $ 2=new RegExp(" \\ p{Script_Extensions=Hangul}","u");function Pr $ 2(Ra){let qa=[],ed=Ra.split(/([ \t \n ]+)/u);for(let[rd,sd]of ed.entries()){if(rd%2===1){qa.push({type:"whitespace",value:/ \n /u.test(sd)? `
` :" "});continue}if((rd===0||rd===ed.length-1)&&sd==="")continue;let od=sd.split(new RegExp( ` ( $ { ei$2 . source } ) ` ,"u"));for(let[ld,cd]of od.entries())if(!((ld===0||ld===od.length-1)&&cd==="")){if(ld%2===0){cd!==""&&td({type:"word",value:cd,kind:Le $ 2,hasLeadingPunctuation:Se $ 2.test(cd[0]),hasTrailingPunctuation:Se $ 2.test(M $ 2(!1,cd,-1))});continue}td(Se $ 2.test(cd)?{type:"word",value:cd,kind:ur $ 1,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:cd,kind:kl $ 2.test(cd)?be $ 4:De $ 1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return qa;function td(rd){let sd=M $ 2(!1,qa,-1);(sd==null?void 0:sd.type)==="word"&&!od(Le $ 2,ur $ 1)&&![sd.value,rd.value].some(ld=>/ \u 3000/u.test(ld))&&qa.push({type:"whitespace",value:""}),qa.push(rd);function od(ld,cd){return sd.kind===ld&&rd.kind===cd||sd.kind===cd&&rd.kind===ld}}}function Me $ 4(Ra,qa){let ed=qa.originalText.slice(Ra.position.start.offset,Ra.position.end.offset),{numberText:td,leadingSpaces:rd}=ed.match(/^ \s *(?<numberText> \d +)( \. | \) )(?<leadingSpaces> \s *)/u).groups;return{number:Number(td),leadingSpaces:rd}}function ii $ 3(Ra,qa){return!Ra.ordered||Ra.children.length<2||Me $ 4(Ra.children[1],qa).number!==1?!1:Me $ 4(Ra.children[0],qa).number!==0?!0:Ra.children.length>2&&Me $ 4(Ra.children[2],qa).number===1}function Lr $ 2(Ra,qa){let{value:ed}=Ra;return Ra.position.end.offset===qa.length&&ed.endsWith( `
2024-08-30 15:19:18 +08:00
` )&&qa.endsWith( `
2024-09-16 00:03:18 +08:00
` )?ed.slice(0,-1):ed}function ye $ 2(Ra,qa){return function ed(td,rd,sd){let od={...qa(td,rd,sd)};return od.children&&(od.children=od.children.map((ld,cd)=>ed(ld,cd,[od,...sd]))),od}(Ra,null,[])}function mt $ 2(Ra){if((Ra==null?void 0:Ra.type)!=="link"||Ra.children.length!==1)return!1;let[qa]=Ra.children;return Oe $ 3(Ra)===Oe $ 3(qa)&&Pe $ 3(Ra)===Pe $ 3(qa)}function Bl $ 2(Ra,qa){let{node:ed}=Ra;if(ed.type==="code"&&ed.lang!==null){let td=ni $ 3(qa,{language:ed.lang});if(td)return async rd=>{let sd=qa.__inJsTemplate?"~":" ` ",od=sd.repeat(Math.max(3,_r$2(ed.value,sd)+1)),ld={parser:td};ed.lang===" ts "||ed.lang===" typescript "?ld.filepath=" dummy . ts ":ed.lang===" tsx "&&(ld.filepath=" dummy . tsx ");let cd=await rd(Lr$2(ed,qa.originalText),ld);return _e$3([od,ed.lang,ed.meta?" "+ed.meta:" ",L$2,Ce$1(cd),L$2,od])}}switch(ed.type){case" front - matter ":return td=>ri$3(ed,td);case" import ":case" export ":return td=>td(ed.value,{parser:" babel "});case" jsx ":return td=>td(`<$>${ed.value}</$>`,{parser:" _ _js _expression ",rootMarker:" mdx "})}return null}var ui$2=Bl$2,ar$1=null;function or$1(Ra){if(ar$1!==null&&typeof ar$1.property){let qa=ar$1;return ar$1=or$1.prototype=null,qa}return ar$1=or$1.prototype=Ra??Object.create(null),new or$1}var ql$3=10;for(let Ra=0;Ra<=ql$3;Ra++)or$1();function Ft$3(Ra){return or$1(Ra)}function Tl$3(Ra,qa=" type "){Ft$3(Ra);function ed(td){let rd=td[qa],sd=Ra[rd];if(!Array.isArray(sd))throw Object.assign(new Error(`Missing visitor keys for '${rd}'.`),{node:td});return sd}return ed}var ai$3=Tl$3,_l$2={" front - matter ":[],root:[" children "],paragraph:[" children "],sentence:[" children "],word:[],whitespace:[],emphasis:[" children "],strong:[" children "],delete:[" children "],inlineCode:[],wikiLink:[],link:[" children "],image:[],blockquote:[" children "],heading:[" children "],code:[],html:[],list:[" children "],thematicBreak:[],linkReference:[" children "],imageReference:[],definition:[],footnote:[" children "],footnoteReference:[],footnoteDefinition:[" children "],table:[" children "],tableCell:[" children "],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:[" children "],listItem:[" children "],text:[]},oi$2=_l$2,Sl$3=ai$3(oi$2),si$3=Sl$3;function ci$2(Ra){switch(Ra){case" cr ":return" \ r ";case" crlf " : return ` \r
2024-08-30 15:19:18 +08:00
` ;default:return `
2024-09-16 00:03:18 +08:00
` }}var li $ 3=()=>/[#*0-9] \u FE0F? \u 20E3|[ \x A9 \x AE \u 203C \u 2049 \u 2122 \u 2139 \u 2194- \u 2199 \u 21A9 \u 21AA \u 231A \u 231B \u 2328 \u 23CF \u 23ED- \u 23EF \u 23F1 \u 23F2 \u 23F8- \u 23FA \u 24C2 \u 25AA \u 25AB \u 25B6 \u 25C0 \u 25FB \u 25FC \u 25FE \u 2600- \u 2604 \u 260E \u 2611 \u 2614 \u 2615 \u 2618 \u 2620 \u 2622 \u 2623 \u 2626 \u 262A \u 262E \u 262F \u 2638- \u 263A \u 2640 \u 2642 \u 2648- \u 2653 \u 265F \u 2660 \u 2663 \u 2665 \u 2666 \u 2668 \u 267B \u 267E \u 267F \u 2692 \u 2694- \u 2697 \u 2699 \u 269B \u 269C \u 26A0 \u 26A7 \u 26AA \u 26B0 \u 26B1 \u 26BD \u 26BE \u 26C4 \u 26C8 \u 26CF \u 26D1 \u 26E9 \u 26F0- \u 26F5 \u 26F7 \u 26F8 \u 26FA \u 2702 \u 2708 \u 2709 \u 270F \u 2712 \u 2714 \u 2716 \u 271D \u 2721 \u 2733 \u 2734 \u 2744 \u 2747 \u 2757 \u 2763 \u 27A1 \u 2934 \u 2935 \u 2B05- \u 2B07 \u 2B1B \u 2B1C \u 2B55 \u 3030 \u 303D \u 3297 \u 3299] \u FE0F?|[ \u 261D \u 270C \u 270D](?: \u FE0F| \u D83C[ \u DFFB- \u DFFF])?|[ \u 270A \u 270B](?: \u D83C[ \u DFFB- \u DFFF])?|[ \u 23E9- \u 23EC \u 23F0 \u 23F3 \u 25FD \u 2693 \u 26A1 \u 26AB \u 26C5 \u 26CE \u 26D4 \u 26EA \u 26FD \u 2705 \u 2728 \u 274C \u 274E \u 2753- \u 2755 \u 2795- \u 2797 \u 27B0 \u 27BF \u 2B50]| \u 26D3 \u FE0F?(?: \u 200D \u D83D \u DCA5)?| \u 26F9(?: \u FE0F| \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D[ \u 2640 \u 2642] \u FE0F?)?| \u 2764 \u FE0F?(?: \u 200D(?: \u D83D \u DD25| \u D83E \u DE79))?| \u D83C(?:[ \u DC04 \u DD70 \u DD71 \u DD7E \u DD7F \u DE02 \u DE37 \u DF21 \u DF24- \u DF2C \u DF36 \u DF7D \u DF96 \u DF97 \u DF99- \u DF9B \u DF9E \u DF9F \u DFCD \u DFCE \u DFD4- \u DFDF \u DFF5 \u DFF7] \u FE0F?|[ \u DF85 \u DFC2 \u DFC7](?: \u D83C[ \u DFFB- \u DFFF])?|[ \u DFC4 \u DFCA](?: \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D[ \u 2640 \u 2642] \u FE0F?)?|[ \u DFCB \u DFCC](?: \u FE0F| \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D[ \u 2640 \u 2642] \u FE0F?)?|[ \u DCCF \u DD8E \u DD91- \u DD9A \u DE01 \u DE1A \u DE2F \u DE32- \u DE36 \u DE38- \u DE3A \u DE50 \u DE51 \u DF00- \u DF20 \u DF2D- \u DF35 \u DF37- \u DF43 \u DF45- \u DF4A \u DF4C- \u DF7C \u DF7E- \u DF84 \u DF86- \u DF93 \u DFA0- \u DFC1 \u DFC5 \u DFC6 \u DFC8 \u DFC9 \u DFCF- \u DFD3 \u DFE0- \u DFF0 \u DFF8- \u DFFF]| \u DDE6 \u D83C[ \u DDE8- \u DDEC \u DDEE \u DDF1 \u DDF2 \u DDF4 \u DDF6- \u DDFA \u DDFC \u DDFD \u DDFF]| \u DDE7 \u D83C[ \u DDE6 \u DDE7 \u DDE9- \u DDEF \u DDF1- \u DDF4 \u DDF6- \u DDF9 \u DDFB \u DDFC \u DDFE \u DDFF]| \u DDE8 \u D83C[ \u DDE6 \u DDE8 \u DDE9 \u DDEB- \u DDEE \u DDF0- \u DDF5 \u DDF7 \u DDFA- \u DDFF]| \u DDE9 \u D83C[ \u DDEA \u DDEC \u DDEF \u DDF0 \u DDF2 \u DDF4 \u DDFF]| \u DDEA \u D83C[ \u DDE6 \u DDE8 \u DDEA \u DDEC \u DDED \u DDF7- \u DDFA]| \u DDEB \u D83C[ \u DDEE- \u DDF0 \u DDF2 \u DDF4 \u DDF7]| \u DDEC \u D83C[ \u DDE6 \u DDE7 \u DDE9- \u DDEE \u DDF1- \u DDF3 \u DDF5- \u DDFA \u DDFC \u DDFE]| \u DDED \u D83C[ \u DDF0 \u DDF2 \u DDF3 \u DDF7 \u DDF9 \u DDFA]| \u DDEE \u D83C[ \u DDE8- \u DDEA \u DDF1- \u DDF4 \u DDF6- \u DDF9]| \u DDEF \u D83C[ \u DDEA \u DDF2 \u DDF4 \u DDF5]| \u DDF0 \u D83C[ \u DDEA \u DDEC- \u DDEE \u DDF2 \u DDF3 \u DDF5 \u DDF7 \u DDFC \u DDFE \u DDFF]| \u DDF1 \u D83C[ \u DDE6- \u DDE8 \u DDEE \u DDF0 \u DDF7- \u DDFB \u DDFE]| \u DDF2 \u D83C[ \u DDE6 \u DDE8- \u DDED \u DDF0- \u DDFF]| \u DDF3 \u D83C[ \u DDE6 \u DDE8 \u DDEA- \u DDEC \u DDEE \u DDF1 \u DDF4 \u DDF5 \u DDF7 \u DDFA \u DDFF]| \u DDF4 \u D83C \u DDF2| \u DDF5 \u D83C[ \u DDE6 \u DDEA- \u DDED \u DDF0- \u DDF3 \u DDF7- \u DDF9 \u DDFC \u DDFE]| \u DDF6 \u D83C \u DDE6| \u DDF7 \u D83C[ \u DDEA \u DDF4 \u DDF8 \u DDFA \u DDFC]| \u DDF8 \u D83C[ \u DDE6- \u DDEA \u DDEC- \u DDF4 \u DDF7- \u DDF9 \u DDFB \u DDFD- \u DDFF]| \u DDF9 \u D83C[ \u DDE6 \u DDE8 \u DDE9 \u DDEB- \u DDED \u DDEF- \u DDF4 \u DDF7 \u DDF9 \u DDFB \u DDFC \u DDFF]| \u DDFA \u D83C[ \u DDE6 \u DDEC \u DDF2 \u DDF3 \u DDF8 \u DDFE \u DDFF]| \u DDFB \u D83C[ \u DDE6 \u DDE8 \u DDEA \u DDEC \u DDEE \u DDF3 \u DDFA]| \u DDFC \u D83C[ \u DDEB \u DDF8]| \u DDFD \u D83C \u DDF0| \u DDFE \u D83C[ \u DDEA \u DDF9]| \u DDFF \u D83C[ \u DDE6 \u DDF2 \u DDFC]| \u DF44(?: \u 200D \u D83D \u DFEB)?| \u DF4B(?: \u 200D \u D83D \u DFE9)?| \u DFC3(?: \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D(?:[ \u 2640 \u 2642] \u FE0F?(?: \u 200D \u 27A1 \u FE0F?)?| \u 27A1 \u FE0F?))?| \u DFF3 \u FE0F?(?: \u 200D(?: \u 26A7 \u FE0F?| \u D83C \u DF08))?| \u DFF4(?: \u 200D \u 2620 \u FE0F?| \u DB40 \u DC67 \u DB40 \u DC62 \u DB40(?: \u DC65 \u DB40 \u DC6E \u DB40 \u DC67| \u DC73 \u DB40 \u DC63 \u DB40 \u DC74| \u DC77 \u DB40 \u DC6C \u DB40 \u DC73) \u DB40 \u DC7F)?)| \u D83D(?:[ \u DC3F \u DCFD \u DD49 \u DD4A \u DD6F \u DD70 \u DD73 \u DD76- \u DD79 \u DD87 \u DD8A- \u DD8D \u DDA5 \u DDA8 \u DDB1 \u DDB2 \u DDBC \u DDC2- \u DDC4 \u DDD1- \u DDD3 \u DDDC- \u DDDE \u DDE1 \u DDE3 \u DDE8 \u DDEF \u DDF3 \u DDFA \u DECB \u DECD- \u DECF \u DEE0- \u DEE5 \u DEE9 \u DEF0 \u DEF3] \u FE0F?|[ \u DC42 \u DC43 \u DC46- \u DC50 \u DC66 \u DC67 \u DC6B- \u DC6D \u DC72 \u DC74- \u DC76 \u DC78 \u DC7C \u DC83 \u DC85 \u DC8F \u DC91 \u DCAA \u DD7A \u DD95 \u DD96 \u DE4C \u DE4F \u DEC0 \u DECC](?: \u D83C[ \u DFFB- \u DFFF])?|[ \u DC6E \u DC70 \u DC71 \u DC73 \u DC77 \u DC81 \u DC82 \u DC86 \u DC87 \u DE45- \u DE47 \u DE4B \u DE4D \u DE4E \u DEA3 \u DEB4 \u DEB5](?: \u D83C[ \u
` ?N $ 2(!1,Nd, `
` ,rd):Nd;ld.push(Rd),od.length>0&&(sd+=sr $ 1(Rd));break}case H $ 1:for(let Rd=Nd.length-1;Rd>=0;Rd--)od.push({ind:Ad,mode:Td,doc:Nd[Rd]});break;case ge $ 3:if(_d>=2)throw new Error("There are too many 'cursor' in doc.");ld.push(cr $ 1),_d++;break;case ee $ 1:od.push({ind:Ll $ 3(Ad,qa),mode:Td,doc:Nd.contents});break;case re $ 3:od.push({ind:Il $ 3(Ad,Nd.n,qa),mode:Td,doc:Nd.contents});break;case oe $ 2:sd-=vt $ 2(ld);break;case K $ 2:switch(Td){case ne $ 2:if(!cd){od.push({ind:Ad,mode:Nd.break?G $ 2:ne $ 2,doc:Nd.contents});break}case G $ 2:{cd=!1;let Rd={ind:Ad,mode:ne $ 2,doc:Nd.contents},Bd=td-sd,kd=ud.length>0;if(!Nd.break&&Ir $ 2(Rd,od,Bd,kd,ed))od.push(Rd);else if(Nd.expandedStates){let Od=M $ 2(!1,Nd.expandedStates,-1);if(Nd.break){od.push({ind:Ad,mode:G $ 2,doc:Od});break}else for(let Md=1;Md<Nd.expandedStates.length+1;Md++)if(Md>=Nd.expandedStates.length){od.push({ind:Ad,mode:G $ 2,doc:Od});break}else{let Pd=Nd.expandedStates[Md],Fd={ind:Ad,mode:ne $ 2,doc:Pd};if(Ir $ 2(Fd,od,Bd,kd,ed)){od.push(Fd);break}}}else od.push({ind:Ad,mode:G $ 2,doc:Nd.contents});break}}Nd.id&&(ed[Nd.id]=M $ 2(!1,od,-1).mode);break;case J $ 1:{let Rd=td-sd,{parts:Bd}=Nd;if(Bd.length===0)break;let[kd,Od]=Bd,Md={ind:Ad,mode:ne $ 2,doc:kd},Pd={ind:Ad,mode:G $ 2,doc:kd},Fd=Ir $ 2(Md,[],Rd,ud.length>0,ed,!0);if(Bd.length===1){Fd?od.push(Md):od.push(Pd);break}let Ud={ind:Ad,mode:ne $ 2,doc:Od},Gd={ind:Ad,mode:G $ 2,doc:Od};if(Bd.length===2){Fd?od.push(Ud,Md):od.push(Gd,Pd);break}Bd.splice(0,2);let Qd={ind:Ad,mode:Td,doc:Ee $ 2(Bd)},Vd=Bd[0];Ir $ 2({ind:Ad,mode:ne $ 2,doc:[kd,Od,Vd]},[],Rd,ud.length>0,ed,!0)?od.push(Qd,Ud,Md):Fd?od.push(Qd,Gd,Md):od.push(Qd,Gd,Pd);break}case X $ 2:case se $ 1:{let Rd=Nd.groupId?ed[Nd.groupId]:Td;if(Rd===G $ 2){let Bd=Nd.type===X $ 2?Nd.breakContents:Nd.negate?Nd.contents:Ze $ 2(Nd.contents);Bd&&od.push({ind:Ad,mode:Td,doc:Bd})}if(Rd===ne $ 2){let Bd=Nd.type===X $ 2?Nd.flatContents:Nd.negate?Ze $ 2(Nd.contents):Nd.contents;Bd&&od.push({ind:Ad,mode:Td,doc:Bd})}break}case ce $ 2:ud.push({ind:Ad,mode:Td,doc:Nd.contents});break;case le $ 2:ud.length>0&&od.push({ind:Ad,mode:Td,doc:rr $ 1});break;case W $ 1:switch(Td){case ne $ 2:if(Nd.hard)cd=!0;else{Nd.soft||(ld.push(" "),sd+=1);break}case G $ 2:if(ud.length>0){od.push({ind:Ad,mode:Td,doc:Nd},...ud.reverse()),ud.length=0;break}Nd.literal?Ad.root?(ld.push(rd,Ad.root.value),sd=Ad.root.length):(ld.push(rd),sd=0):(sd-=vt $ 2(ld),ld.push(rd+Ad.value),sd=Ad.length);break}break;case fe $ 2:od.push({ind:Ad,mode:Td,doc:Nd.contents});break;case te $ 2:break;default:throw new qe $ 2(Nd)}od.length===0&&ud.length>0&&(od.push(...ud.reverse()),ud.length=0)}let Ed=ld.indexOf(cr $ 1);if(Ed!==-1){let Ad=ld.indexOf(cr $ 1,Ed+1),Td=ld.slice(0,Ed).join(""),Nd=ld.slice(Ed+1,Ad).join(""),Rd=ld.slice(Ad+1).join("");return{formatted:Td+Nd+Rd,cursorNodeStart:Td.length,cursorNodeText:Nd}}return{formatted:ld.join("")}}function mi $ 1(Ra,qa,ed){let{node:td}=Ra,rd=[],sd=Ra.map(()=>Ra.map(({index:Ed})=>{let Ad=hi $ 2(ed(),qa).formatted,Td=sr $ 1(Ad);return rd[Ed]=Math.max(rd[Ed]??3,Td),{text:Ad,width:Td}},"children"),"children"),od=cd(!1);if(qa.proseWrap!=="never")return[er $ 1,od];let ld=cd(!0);return[er $ 1,ze $ 2(zn $ 2(ld,od))];function cd(Ed){return Tr $ 2(rr $ 1,[_d(sd[0],Ed),ud(Ed),...sd.slice(1).map(Ad=>_d(Ad,Ed))].map(Ad=> ` | $ { Ad . join ( " | " ) } | ` ))}function ud(Ed){return rd.map((Ad,Td)=>{let Nd=td.align[Td],Rd=Nd==="center"||Nd==="left"?":":"-",Bd=Nd==="center"||Nd==="right"?":":"-",kd=Ed?"-":"-".repeat(Ad-2);return ` $ { Rd } $ { kd } $ { Bd } ` })}function _d(Ed,Ad){return Ed.map(({text:Td,width:Nd},Rd)=>{if(Ad)return Td;let Bd=rd[Rd]-Nd,kd=td.align[Rd],Od=0;kd==="right"?Od=Bd:kd==="center"&&(Od=Math.floor(Bd/2));let Md=Bd-Od;return ` $ { " " . repeat ( Od ) } $ { Td } $ { " " . repeat ( Md ) } ` })}}function Fi $ 1(Ra,qa,ed){let td=Ra.map(ed,"children");return Nl $ 3(td)}function Nl $ 3(Ra){let qa=[""];return function ed(td){for(let rd of td){let sd=Y $ 1(rd);if(sd===H $ 1){ed(rd);continue}let od=rd,ld=[];sd===J $ 1&&([od,...ld]=rd.parts),qa.push([qa.pop(),od],...ld)}}(Ra),Ee $ 2(qa)}var Rl $ 3=/^. $ /su;function Ul $ 2(Ra,qa){return Ra=zl $ 3(Ra,qa),Ra=Yl $ 2(Ra),Ra=Vl $ 2(Ra,qa),Ra=jl $ 2(Ra,qa),Ra=Gl $ 3(Ra),Ra}function zl $ 3(Ra,qa){return ye $ 2(Ra,ed=>ed.type!=="text"||e
` )return L $ 2;let rd=qa===" "||qa=== `
` &&Jl $ 3(Ra,td);return Xl $ 3(Ra,qa,ed,td,rd)?rd?Br $ 3:qr $ 2:rd?" ":""}var Ql $ 3=new Set(["listItem","definition"]);function Zl $ 3(Ra,qa,ed){var td,rd;let{node:sd}=Ra;if(af(Ra)){let od=[""],ld=Pr $ 2(qa.originalText.slice(sd.position.start.offset,sd.position.end.offset));for(let cd of ld){if(cd.type==="word"){od.push([od.pop(),cd.value]);continue}let ud=Et $ 3(Ra,cd.value,qa.proseWrap,!0);if(Y $ 1(ud)=== $ $ 1){od.push([od.pop(),ud]);continue}od.push(ud)}return Ee $ 2(od)}switch(sd.type){case"front-matter":return qa.originalText.slice(sd.position.start.offset,sd.position.end.offset);case"root":return sd.children.length===0?"":[tf(Ra,qa,ed),L $ 2];case"paragraph":return Fi $ 1(Ra,qa,ed);case"sentence":return vi $ 2(Ra,ed);case"word":{let od=N $ 2(!1,N $ 2(!1,sd.value,"*",String.raw ` \ * ` ),new RegExp([ ` ( ^ | $ { Se$2 . source } ) ( _ + ) ` , ` ( _ + ) ( $ { Se$2 . source } | $ ) ` ].join("|"),"gu"),(ud,_d,Ed,Ad,Td)=>N $ 2(!1,Ed? ` $ { _d } $ { Ed } ` : ` $ { Ad } $ { Td } ` ,"_",String.raw ` \ _ ` )),ld=(ud,_d,Ed)=>ud.type==="sentence"&&Ed===0,cd=(ud,_d,Ed)=>mt $ 2(ud.children[Ed-1]);return od!==sd.value&&(Ra.match(void 0,ld,cd)||Ra.match(void 0,ld,(ud,_d,Ed)=>ud.type==="emphasis"&&Ed===0,cd))&&(od=od.replace(/^( \\ ?[*_])+/u,ud=>N $ 2(!1,ud," \\ ",""))),od}case"whitespace":{let{next:od}=Ra,ld=od&&/^>|^(?:[*+-]|#{1,6}| \d +[).]) $ /u.test(od.value)?"never":qa.proseWrap;return Et $ 3(Ra,sd.value,ld)}case"emphasis":{let od;if(mt $ 2(sd.children[0]))od=qa.originalText[sd.position.start.offset];else{let{previous:ld,next:cd}=Ra;od=(ld==null?void 0:ld.type)==="sentence"&&((td=M $ 2(!1,ld.children,-1))==null?void 0:td.type)==="word"&&!M $ 2(!1,ld.children,-1).hasTrailingPunctuation||(cd==null?void 0:cd.type)==="sentence"&&((rd=cd.children[0])==null?void 0:rd.type)==="word"&&!cd.children[0].hasLeadingPunctuation||Ra.hasAncestor(ud=>ud.type==="emphasis")?"*":"_"}return[od,V $ 3(Ra,qa,ed),od]}case"strong":return["**",V $ 3(Ra,qa,ed),"**"];case"delete":return["~~",V $ 3(Ra,qa,ed),"~~"];case"inlineCode":{let od=qa.proseWrap==="preserve"?sd.value:N $ 2(!1,sd.value, `
` ," "),ld=Gn $ 3(od," ` "),cd=" ` ".repeat(ld||1),ud=od.startsWith(" ` ")||od.endsWith(" ` ")||/^[ \n ]/u.test(od)&&/[ \n ] $ /u.test(od)&&/[^ \n ]/u.test(od)?" ":"";return[cd,ud,od,ud,cd]}case"wikiLink":{let od="";return qa.proseWrap==="preserve"?od=sd.value:od=N $ 2(!1,sd.value,/[ \t \n ]+/gu," "),["[[",od,"]]"]}case"link":switch(qa.originalText[sd.position.start.offset]){case"<":{let od="mailto:";return["<",sd.url.startsWith(od)&&qa.originalText.slice(sd.position.start.offset+1,sd.position.start.offset+1+od.length)!==od?sd.url.slice(od.length):sd.url,">"]}case"[":return["[",V $ 3(Ra,qa,ed),"](",Ct $ 4(sd.url,")"),Nr $ 2(sd.title,qa),")"];default:return qa.originalText.slice(sd.position.start.offset,sd.position.end.offset)}case"image":return["![",sd.alt||"","](",Ct $ 4(sd.url,")"),Nr $ 2(sd.title,qa),")"];case"blockquote":return["> ",ve $ 2("> ",V $ 3(Ra,qa,ed))];case"heading":return["#".repeat(sd.depth)+" ",V $ 3(Ra,qa,ed)];case"code":{if(sd.isIndented){let cd=" ".repeat(4);return ve $ 2(cd,[cd,Ce $ 1(sd.value,L $ 2)])}let od=qa.__inJsTemplate?"~":" ` ",ld=od.repeat(Math.max(3,_r$2(sd.value,od)+1));return[ld,sd.lang||" ",sd.meta?" "+sd.meta:" ",L$2,Ce$1(Lr$2(sd,qa.originalText),L$2),L$2,ld]}case" html ":{let{parent:od,isLast:ld}=Ra,cd=od.type===" root "&&ld?sd.value.trimEnd():sd.value,ud=/^<!--.*-->$/su.test(cd);return Ce$1(cd,ud?L$2:_e$3(tr$1))}case" list ":{let od=Ai$2(sd,Ra.parent),ld=ii$3(sd,qa);return V$3(Ra,qa,ed,{processor(cd){let ud=Ed(),_d=cd.node;if(_d.children.length===2&&_d.children[1].type===" html "&&_d.children[0].position.start.column!==_d.children[1].position.start.column)return[ud,yi$3(cd,qa,ed,ud)];return[ud,ve$2(" ".repeat(ud.length),yi$3(cd,qa,ed,ud))];function Ed(){let Ad=sd.ordered?(cd.isFirst?sd.start:ld?1:sd.start+cd.index)+(od%2===0?" . ":" ) "):od%2===0?" - ":" * ";return sd.isAligned||sd.hasIndentedCodeblock?ef(Ad,qa):Ad}}})}case" thematicBreak ":{let{ancestors:od}=Ra,ld=od.findIndex(cd=>cd.type===" list ");return ld===-1?" -- - ":Ai$2(od[ld],od[ld+1])%2===0?" * * * ":" -- - "}case" linkReference ":return[" [ ",V$3(Ra,qa,ed)," ] ",sd.referenceType===" full "?bt$3(sd):sd.referenceType===" collapsed "?" [ ] ":" "];case" imageReference ":switch(sd.referenceType){case" full ":return[" ! [ ",sd.alt||" "," ] ",bt$3(sd)];default:return[" ! [ ",sd.alt," ] ",sd.referenceType===" collapsed "?" [ ] ":" "]}case" definition ":{let od=qa.proseWrap===" always "?Br$3:" ";return ze$2([bt$3(sd)," : ",Ze$2([od,Ct$4(sd.url),sd.title===null?" ":[od,Nr$2(sd.title,qa,!1)]])])}case" footnote ":return[" [ ^ ",V$3(Ra,qa,ed)," ] "];case" footnoteReference ":return Bi$2(sd);case" footnoteDefinition ":{let od=sd.children.length===1&&sd.children[0].type===" paragraph "&&(qa.proseWrap===" never "||qa.proseWrap===" preserve "&&sd.children[0].position.start.line===sd.children[0].position.end.line);return[Bi$2(sd)," : ",od?V$3(Ra,qa,ed):ze$2([ve$2(" ".repeat(4),V$3(Ra,qa,ed,{processor:({isFirst:ld})=>ld?ze$2([qr$2,ed()]):ed()}))])]}case" table ":return mi$1(Ra,qa,ed);case" tableCell ":return V$3(Ra,qa,ed);case" break ":return/\s/u.test(qa.originalText[sd.position.start.offset])?[" ",_e$3(tr$1)]:[" \ \ ",L$2];case" liquidNode ":return Ce$1(sd.value,L$2);case" import ":case" export ":case" jsx ":return sd.value;case" esComment ":return[" { /* ",sd.value," */ } "];case" math ":return[" $$ ",L$2,sd.value?[Ce$1(sd.value,L$2),L$2]:" "," $$ "];case" inlineMath ":return qa.originalText.slice(Oe$3(sd),Pe$3(sd));case" tableRow ":case" listItem ":case" text ":default:throw new $n$3(sd," Markdown ")}}function yi$3(Ra,qa,ed,td){let{node:rd}=Ra,sd=rd.checked===null?" ":rd.checked?" [ x ] ":" [ ] ";return[sd,V$3(Ra,qa,ed,{processor({node:od,isFirst:ld}){if(ld&&od.type!==" list ")return ve$2(" ".repeat(sd.length),ed());let cd=" ".repeat(sf(qa.tabWidth-td.length,0,3));return[cd,ve$2(cd,ed())]}})]}function ef(Ra,qa){let ed=td();return Ra+" " . repeat ( ed >= 4 ? 0 : ed ) ; function td ( ) { let rd = Ra . length % qa . tabWidth ; return rd === 0 ? 0 : qa . tabWidth - rd } } function Ai$2 ( Ra , qa ) { return rf ( Ra , qa , ed => ed . ordered === Ra . ordered ) } function rf ( Ra , qa , ed ) { let td = - 1 ; for ( let rd of qa . children ) if ( rd . type === Ra . type && ed ( rd ) ? td ++ : td = - 1 , rd === Ra ) return td } function tf ( Ra , qa , ed ) { let td = [ ] , rd = null , { children : sd } = Ra . node ; for ( let [ od , ld ] of sd . entries ( ) ) switch ( yt$2 (
` )}function uf({node:Ra,previous:qa,parent:ed},td){if(wi $ 2(qa,td))return!0;let rd=qa.type===Ra.type&&Ql $ 3.has(Ra.type),sd=ed.type==="listItem"&&!wi $ 2(ed,td),od=yt $ 2(qa)==="next",ld=Ra.type==="html"&&qa.type==="html"&&qa.position.end.line+1===Ra.position.start.line,cd=Ra.type==="html"&&ed.type==="listItem"&&qa.type==="paragraph"&&qa.position.end.line+1===Ra.position.start.line;return!(rd||sd||od||ld||cd)}function ki $ 2({node:Ra,previous:qa}){let ed=qa.type==="list",td=Ra.type==="code"&&Ra.isIndented;return ed&&td}function af(Ra){let qa=Ra.findAncestor(ed=>ed.type==="linkReference"||ed.type==="imageReference");return qa&&(qa.type!=="linkReference"||qa.referenceType!=="full")}var of=(Ra,qa)=>{for(let ed of qa)Ra=N $ 2(!1,Ra,ed,encodeURIComponent(ed));return Ra};function Ct $ 4(Ra,qa=[]){let ed=[" ",...Array.isArray(qa)?qa:[qa]];return new RegExp(ed.map(td=>Be $ 3(td)).join("|"),"u").test(Ra)? ` < $ { of ( Ra , "<>" ) } > ` :Ra}function Nr $ 2(Ra,qa,ed=!0){if(!Ra)return"";if(ed)return" "+Nr $ 2(Ra,qa,!1);if(Ra=N $ 2(!1,Ra,/ \\ (?=["')])/gu,""),Ra.includes('"')&&Ra.includes("'")&&!Ra.includes(")"))return ` ( $ { Ra } ) ` ;let td=jn $ 3(Ra,qa.singleQuote);return Ra=N $ 2(!1,Ra," \\ "," \\ \\ "),Ra=N $ 2(!1,Ra,td, ` \ \ $ { td } ` ), ` $ { td } $ { Ra } $ { td } ` }function sf(Ra,qa,ed){return Ra<qa?qa:Ra>ed?ed:Ra}function cf(Ra){return Ra.index>0&&yt $ 2(Ra.previous)==="next"}function bt $ 3(Ra){return ` [ $ { ( 0 , qi$1 . default ) ( Ra . label ) } ] ` }function Bi $ 2(Ra){return ` [ ^ $ { Ra . label } ] ` }var lf={preprocess:gi $ 2,print:Zl $ 3,embed:ui $ 2,massageAstNode:Zn $ 2,hasPrettierIgnore:cf,insertPragma:Jn $ 3,getVisitorKeys:si $ 3},Ti $ 2=lf,_i $ 2=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],At $ 4={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ff={proseWrap:At $ 4.proseWrap,singleQuote:At $ 4.singleQuote},Si $ 2=ff,On $ 2={};Ln $ 3(On $ 2,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc $ 2=Ue $ 3(Pi $ 2()),Kc $ 1=Ue $ 3(Wi $ 1()),Jc $ 1=Ue $ 3(Gs $ 1()),Xc $ 1=Ue $ 3(Ic $ 1()),vm=/^import \s /u,Em=/^export \s /u,Nc $ 1=String.raw ` [ a - z ] [ a - z0 - 9 ] * ( \ . [ a - z ] [ a - z0 - 9 ] * ) * | ` ,Rc $ 1=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,Cm=/^ \{ \s * \/ \* (.*) \* \/ \s * \} /u,bm $ 1= `
` ,Uc $ 1=Ra=>vm.test(Ra),Sn $ 2=Ra=>Em.test(Ra),zc $ 1=(Ra,qa)=>{let ed=qa.indexOf(bm $ 1),td=qa.slice(0,ed);if(Sn $ 2(td)||Uc $ 1(td))return Ra(td)({type:Sn $ 2(td)?"export":"import",value:td})},Mc $ 1=(Ra,qa)=>{let ed=Cm.exec(qa);if(ed)return Ra(ed[0])({type:"esComment",value:ed[1].trim()})};zc $ 1.locator=Ra=>Sn $ 2(Ra)||Uc $ 1(Ra)?-1:1;Mc $ 1.locator=(Ra,qa)=>Ra.indexOf("{",qa);var Yc $ 1=function(){let{Parser:Ra}=this,{blockTokenizers:qa,blockMethods:ed,inlineTokenizers:td,inlineMethods:rd}=Ra.prototype;qa.esSyntax=zc $ 1,td.esComment=Mc $ 1,ed.splice(ed.indexOf("paragraph"),0,"esSyntax"),rd.splice(rd.indexOf("text"),0,"esComment")},ym=function(){let Ra=this.Parser.prototype;Ra.blockMethods=["frontMatter",...Ra.blockMethods],Ra.blockTokenizers.frontMatter=qa;function qa(ed,td){let rd=ir $ 2(td);if(rd.frontMatter)return ed(rd.frontMatter.raw)(rd.frontMatter)}qa.onlyAtStart=!0},Gc $ 1=ym;function Am(){return Ra=>ye $ 2(Ra,(qa,ed,[td])=>qa.type!=="html"||Rc $ 1.test(qa.value)||Or $ 2.has(td.type)?qa:{...qa,type:"jsx"})}var Vc $ 1=Am,xm=function(){let Ra=this.Parser.prototype,qa=Ra.inlineMethods;qa.splice(qa.indexOf("text"),0,"liquid"),Ra.inlineTokenizers.liquid=ed;function ed(td,rd){let sd=rd.match(/^( \{ %.*?% \} | \{ \{ .*? \} \} )/su);if(sd)return td(sd[0])({type:"liquidNode",value:sd[0]})}ed.locator=function(td,rd){return td.indexOf("{",rd)}},jc $ 2=xm,wm=function(){let Ra="wikiLink",qa=/^ \[ \[ (?<linkContents>.+?) \] \] /su,ed=this.Parser.prototype,td=ed.inlineMethods;td.splice(td.indexOf("link"),0,Ra),ed.inlineTokenizers.wikiLink=rd;function rd(sd,od){let ld=qa.exec(od);if(ld){let cd=ld.groups.linkContents.trim();return sd(ld[0])({type:Ra,value:cd})}}rd.locator=function(sd,od){return sd.indexOf("[",od)}}, $ c $ 1=wm;function Qc $ 1({isMDX:Ra}){return qa=>{let ed=(0,Xc $ 1.default)().use(Jc $ 1.default,{commonmark:!0,...Ra&&{blocks:[Nc $ 1]}}).use(Wc $ 2.default).use(Gc $ 1).use(Kc $ 1.default).use(Ra?Yc $ 1:Hc $ 2).use(jc $ 2).use(Ra?Vc $ 1:Hc $ 2).use( $ c $ 1);return ed.run(ed.parse(qa))}}function Hc $ 2(){}var Zc $ 1={astFormat:"mdast",hasPragma:Kn $ 2,locStart:Oe $ 3,locEnd:Pe $ 3},km={...Zc $ 1,parse:Qc $ 1({isMDX:!1})},Bm={...Zc $ 1,parse:Qc $ 1({isMDX:!0})},qm={mdast:Ti $ 2},fC=Pn $ 3;const prettierPluginMarkdown=Object.freeze(Object.defineProperty({__proto__:null,default:fC,languages:_i $ 2,options:Si $ 2,parsers:On $ 2,printers:qm},Symbol.toStringTag,{value:"Module"}));var $ s $ 2=Object.create,je $ 3=Object.defineProperty,Vs $ 1=Object.getOwnPropertyDescriptor,qs $ 2=Object.getOwnPropertyNames,zs $ 1=Object.getPrototypeOf,Ks $ 2=Object.prototype.hasOwnProperty,Hs $ 2=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ws $ 1=(Ra,qa)=>{for(var ed in qa)je $ 3(Ra,ed,{get:qa[ed],enumerable:!0})},Js $ 1=(Ra,qa,ed,td)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let rd of qs $ 2(qa))!Ks $ 2.call(Ra,rd)&&rd!==ed&&je $ 3(Ra,rd,{get:()=>qa[rd],enumerable:!(td=Vs $ 1(qa,rd))||td.enumerable});return Ra},vt $ 1=(Ra,qa,ed)=>(ed=Ra!=null? $ s $ 2(zs $ 1(Ra)):{},Js $ 1(je $ 3(ed,"default",{value:Ra,enumerable:!0}),Ra)),At $ 3=Hs $ 2(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(Hd,Ld){if(Hd==null)return{};var Wd={},pf=Object.keys(Hd),If,Jf;for(Jf=0;Jf<pf.length;Jf++)If=pf[Jf],!(Ld.indexOf(If)>=0)&&(Wd[If]=Hd[If]);return Wd}var ed=class{constructor(Hd,Ld,Wd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Hd,this.column=Ld,this.index=Wd}},td=class{constructor(Hd,Ld){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Hd,this.end=Ld}};function rd(Hd,Ld){let{line:Wd,column:pf,index:If}=Hd;return new ed(Wd,pf+Ld,If+Ld)}var sd="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",od={ImportMetaOutsideModule:{message: ` import . meta may appear only with 'sourceType: "module"' ` ,code:sd},ImportOutsideModule:{message: ` 'import' and 'export' may appear only with 'sourceType: "module"' ` ,code:sd}},ld={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-
- Did you mean \ ` export { ' ${ Hd } ' as ' ${ Ld } ' } from 'some-module' \` ? ` , ExportDefaultFromAsIdentifier : "'from' is not allowed as an identifier after 'export default'." , ForInOfLoopInitializer : ( { type : Hd } ) => ` ' ${ Hd === "ForInStatement" ? "for-in" : "for-of" } ' loop variable declaration may not have an initializer. ` , ForInUsing : "For-in loop may not start with 'using' declaration." , ForOfAsync : "The left-hand side of a for-of loop may not be 'async'." , ForOfLet : "The left-hand side of a for-of loop may not start with 'let'." , GeneratorInSingleStatementContext : "Generators can only be declared at the top level or inside a block." , IllegalBreakContinue : ( { type : Hd } ) => ` Unsyntactic ${ Hd === "BreakStatement" ? "break" : "continue" } . ` , IllegalLanguageModeDirective : "Illegal 'use strict' directive in function with non-simple parameter list." , IllegalReturn : "'return' outside of function." , ImportAttributesUseAssert : "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error." , ImportBindingIsString : ( { importName : Hd } ) => ` A string literal cannot be used as an imported binding.
- Did you mean \ ` import { " ${ Hd } " as foo } \` ? ` , ImportCallArgumentTrailingComma : "Trailing comma is disallowed inside import(...) arguments." , ImportCallArity : ( { maxArgumentCount : Hd } ) => ` \` import() \` requires exactly ${ Hd === 1 ? "one argument" : "one or two arguments" } . ` , ImportCallNotNewExpression : "Cannot use new with import(...)." , ImportCallSpreadArgument : "`...` is not allowed in `import()`." , ImportJSONBindingNotDefault : "A JSON module can only be imported with `default`." , ImportReflectionHasAssertion : "`import module x` cannot have assertions." , ImportReflectionNotBinding : 'Only `import module x from "./module"` is valid.' , IncompatibleRegExpUVFlags : "The 'u' and 'v' regular expression flags cannot be enabled at the same time." , InvalidBigIntLiteral : "Invalid BigIntLiteral." , InvalidCodePoint : "Code point out of bounds." , InvalidCoverInitializedName : "Invalid shorthand property initializer." , InvalidDecimal : "Invalid decimal." , InvalidDigit : ( { radix : Hd } ) => ` Expected number in radix ${ Hd } . ` , InvalidEscapeSequence : "Bad character escape sequence." , InvalidEscapeSequenceTemplate : "Invalid escape sequence in template." , InvalidEscapedReservedWord : ( { reservedWord : Hd } ) => ` Escape sequence in keyword ${ Hd } . ` , InvalidIdentifier : ( { identifierName : Hd } ) => ` Invalid identifier ${ Hd } . ` , InvalidLhs : ( { ancestor : Hd } ) => ` Invalid left-hand side in ${ cd ( Hd ) } . ` , InvalidLhsBinding : ( { ancestor : Hd } ) => ` Binding invalid left-hand side in ${ cd ( Hd ) } . ` , InvalidLhsOptionalChaining : ( { ancestor : Hd } ) => ` Invalid optional chaining in the left-hand side of ${ cd ( Hd ) } . ` , InvalidNumber : "Invalid number." , InvalidOrMissingExponent : "Floating-point numbers require a valid exponent after the 'e'." , InvalidOrUnexpectedToken : ( { unexpected : Hd } ) => ` Unexpected character ' ${ Hd } '. ` , InvalidParenthesizedAssignment : "Invalid parenthesized assignment pattern." , InvalidPrivateFieldResolution : ( { identifierName : Hd } ) => ` Private name # ${ Hd } is not defined. ` , InvalidPropertyBindingPattern : "Binding member expression." , InvalidRecordProperty : "Only properties and spread elements are allowed in record definitions." , InvalidRestAssignmentPattern : "Invalid rest operator's argument." , LabelRedeclaration : ( { labelName : Hd } ) => ` Label ' ${ Hd } ' is already declared. ` , LetInLexicalBinding : "'let' is disallowed as a lexically bound name." , LineTerminatorBeforeArrow : "No line break is allowed before '=>'." , MalformedRegExpFlags : "Invalid regular expression flag." , MissingClassName : "A class name is required." , MissingEqInAssignment : "Only '=' operator can be used for specifying default value." , MissingSemicolon : "Missing semicolon." , MissingPlugin : ( { missingPlugin : Hd } ) => ` This experimental syntax requires enabling the parser plugin: ${ Hd . map ( Ld => JSON . stringify ( Ld ) ) . join ( ", " ) } . ` , MissingOneOfPlugins : ( { missingPlugin : Hd } ) => ` This experimental syntax requires enabling one of the following parser plugin(s): ${ Hd . map ( Ld => JSON . stringify ( Ld ) ) . join ( ", " ) } . ` , MissingUnicodeEscape : "Expecting Unicode escape sequence \\uXXXX." , MixingCoalesceWithLogical : "Nullish coalescing operator(??) requires parens when mixing with logical operators." , ModuleAttributeDifferentFromType : "The only accepted module attribute is `type`." , ModuleAttributeInvalidValue : "Only string literals are allowed as module attribute values." , ModuleAttributesWithDuplicateKeys : ( { key : Hd } ) => ` Duplicate key " ${ Hd } " is not allowed in module attributes. ` , ModuleExportNameHasLoneSurrogate : ( { surrogateCharCode : Hd } ) => ` An export name cannot include a lone surrogate, found ' \\ u ${ Hd . toString ( 16 ) } '. ` , ModuleExportUndefined : ( { localName : Hd } ) => ` Export ' ${ Hd } ' is not defined. ` , MultipleDefaultsInSwitch : "Multiple default clauses." , NewlineAfterThrow : "Illegal newline after throw." , NoCatchOrFinally : "Missing catch or finally clause." , NumberIdentifier : "Identifier directly after number." , NumericSeparatorInEscapeSequence : "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences." , ObsoleteAwaitStar : "'await*' has been removed from the async functions proposal. Use Promise.all() instead." , OptionalChainingNoNew : "Constructors in/after an Optional Chain are not allowed." , OptionalChainingNoTemplate : " Tagged Template Literals ar
` ,++Wd,r_===13&&Ld.charCodeAt(Wd)===10&&++Wd,++If,zm=pf=Wd):Jf.unterminated(dh,yh,Mh):++Wd}return{pos:Wd,str:Oh,firstInvalidLoc:Nm,lineStart:pf,curLine:If,containsInvalid:!!Nm}}function g_(Hd,Ld,Wd,pf){return Hd==="template"?Ld===96||Ld===36&&Wd.charCodeAt(pf+1)===123:Ld===(Hd==="double"?34:39)}function m_(Hd,Ld,Wd,pf,If,Jf){let dh=!If;Ld++;let yh=Oh=>({pos:Ld,ch:Oh,lineStart:Wd,curLine:pf}),Mh=Hd.charCodeAt(Ld++);switch(Mh){case 110:return yh( `
` );case 114:return yh(" \r ");case 120:{let Oh;return{code:Oh,pos:Ld}=s_(Hd,Ld,Wd,pf,2,!1,dh,Jf),yh(Oh===null?null:String.fromCharCode(Oh))}case 117:{let Oh;return{code:Oh,pos:Ld}=T_(Hd,Ld,Wd,pf,dh,Jf),yh(Oh===null?null:String.fromCodePoint(Oh))}case 116:return yh(" ");case 98:return yh(" \b ");case 118:return yh(" \v ");case 102:return yh(" \f ");case 13:Hd.charCodeAt(Ld)===10&&++Ld;case 10:Wd=Ld,++pf;case 8232:case 8233:return yh("");case 56:case 57:if(If)return yh(null);Jf.strictNumericEscape(Ld-1,Wd,pf);default:if(Mh>=48&&Mh<=55){let Oh=Ld-1,Nm=/^[0-7]+/.exec(Hd.slice(Oh,Ld+2))[0],zm=parseInt(Nm,8);zm>255&&(Nm=Nm.slice(0,-1),zm=parseInt(Nm,8)),Ld+=Nm.length-1;let Jm=Hd.charCodeAt(Ld);if(Nm!=="0"||Jm===56||Jm===57){if(If)return yh(null);Jf.strictNumericEscape(Oh,Wd,pf)}return yh(String.fromCharCode(zm))}return yh(String.fromCharCode(Mh))}}function s_(Hd,Ld,Wd,pf,If,Jf,dh,yh){let Mh=Ld,Oh;return{n:Oh,pos:Ld}=Rm(Hd,Ld,Wd,pf,16,If,Jf,!1,yh,!dh),Oh===null&&(dh?yh.invalidEscapeSequence(Mh,Wd,pf):Ld=Mh-1),{code:Oh,pos:Ld}}function Rm(Hd,Ld,Wd,pf,If,Jf,dh,yh,Mh,Oh){let Nm=Ld,zm=If===16?_m.hex:_m.decBinOct,Jm=If===16?Gf.hex:If===10?Gf.dec:If===8?Gf.oct:Gf.bin,r_=!1,S_=0;for(let d1=0,M_=Jf??1/0;d1<M_;++d1){let z_=Hd.charCodeAt(Ld),O1;if(z_===95&&yh!=="bail"){let Q0=Hd.charCodeAt(Ld-1),wb=Hd.charCodeAt(Ld+1);if(yh){if(Number.isNaN(wb)||!Jm(wb)||zm.has(Q0)||zm.has(wb)){if(Oh)return{n:null,pos:Ld};Mh.unexpectedNumericSeparator(Ld,Wd,pf)}}else{if(Oh)return{n:null,pos:Ld};Mh.numericSeparatorInEscapeSequence(Ld,Wd,pf)}++Ld;continue}if(z_>=97?O1=z_-97+10:z_>=65?O1=z_-65+10:cm(z_)?O1=z_-48:O1=1/0,O1>=If){if(O1<=9&&Oh)return{n:null,pos:Ld};if(O1<=9&&Mh.invalidDigit(Ld,Wd,pf,If))O1=0;else if(dh)O1=0,r_=!0;else break}++Ld,S_=S_*If+O1}return Ld===Nm||Jf!=null&&Ld-Nm!==Jf||r_?{n:null,pos:Ld}:{n:S_,pos:Ld}}function T_(Hd,Ld,Wd,pf,If,Jf){let dh=Hd.charCodeAt(Ld),yh;if(dh===123){if(++Ld,{code:yh,pos:Ld}=s_(Hd,Ld,Wd,pf,Hd.indexOf("}",Ld)-Ld,!0,If,Jf),++Ld,yh!==null&&yh>1114111)if(If)Jf.invalidCodePoint(Ld,Wd,pf);else return{code:null,pos:Ld}}else({code:yh,pos:Ld}=s_(Hd,Ld,Wd,pf,4,!1,If,Jf));return{code:yh,pos:Ld}}function p_(Hd,Ld,Wd){return new ed(Wd,Hd-Ld,Hd)}var l_=new Set([103,109,115,105,121,117,100,118]),Vm=class{constructor(Hd){this.type=Hd.type,this.value=Hd.value,this.start=Hd.start,this.end=Hd.end,this.loc=new td(Hd.startLoc,Hd.endLoc)}},D_=class extends ph{constructor(Hd,Ld){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Wd,pf,If,Jf)=>this.options.errorRecovery?(this.raise(Od.InvalidDigit,p_(Wd,pf,If),{radix:Jf}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Od.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Od.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Od.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Od.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Wd,pf,If)=>{this.recordStrictModeErrors(Od.StrictNumericEscape,p_(Wd,pf,If))},unterminated:(Wd,pf,If)=>{throw this.raise(Od.UnterminatedString,p_(Wd-1,pf,If))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Od.StrictNumericEscape),unterminated:(Wd,pf,If)=>{throw this.raise(Od.UnterminatedTemplate,p_(Wd,pf,If))}}),this.state=new dm,this.state.init(Hd),this.input=Ld,this.length=Ld.length,this.comments=[],this.isLookahead=!1}pushToken(Hd){this.tokens.length=this.state.tokensLength,this.tokens.push(Hd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Vm(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(Hd){return this.match(Hd)?(this.next(),!0):!1}match(Hd){return this.state.type===Hd}createLookaheadState(Hd){return{pos:Hd.pos,value:null,type:Hd.type,start:Hd.start,end:Hd.end,context:[this.curContext
2024-08-30 15:19:18 +08:00
` : ` \ r
2024-09-16 00:03:18 +08:00
` ):pf=String.fromCharCode(Wd),++this.state.curLine,this.state.lineStart=this.state.pos,pf}jsxReadString(Ld){let Wd="",pf=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Od.UnterminatedString,this.state.startLoc);let If=this.input.charCodeAt(this.state.pos);if(If===Ld)break;If===38?(Wd+=this.input.slice(pf,this.state.pos),Wd+=this.jsxReadEntity(),pf=this.state.pos):Ah(If)?(Wd+=this.input.slice(pf,this.state.pos),Wd+=this.jsxReadNewLine(!1),pf=this.state.pos):++this.state.pos}Wd+=this.input.slice(pf,this.state.pos++),this.finishToken(133,Wd)}jsxReadEntity(){let Ld=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Wd=10;this.codePointAtPos(this.state.pos)===120&&(Wd=16,++this.state.pos);let pf=this.readInt(Wd,void 0,!1,"bail");if(pf!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(pf)}else{let Wd=0,pf=!1;for(;Wd++<10&&this.state.pos<this.length&&!(pf=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(pf){this.input.slice(Ld,this.state.pos);let If;++this.state.pos}}return this.state.pos=Ld,"&"}jsxReadWord(){let Ld,Wd=this.state.pos;do Ld=this.input.charCodeAt(++this.state.pos);while(om(Ld)||Ld===45);this.finishToken(140,this.input.slice(Wd,this.state.pos))}jsxParseIdentifier(){let Ld=this.startNode();return this.match(140)?Ld.name=this.state.value:Rf(this.state.type)?Ld.name=gh(this.state.type):this.unexpected(),this.next(),this.finishNode(Ld,"JSXIdentifier")}jsxParseNamespacedName(){let Ld=this.state.startLoc,Wd=this.jsxParseIdentifier();if(!this.eat(14))return Wd;let pf=this.startNodeAt(Ld);return pf.namespace=Wd,pf.name=this.jsxParseIdentifier(),this.finishNode(pf,"JSXNamespacedName")}jsxParseElementName(){let Ld=this.state.startLoc,Wd=this.jsxParseNamespacedName();if(Wd.type==="JSXNamespacedName")return Wd;for(;this.eat(16);){let pf=this.startNodeAt(Ld);pf.object=Wd,pf.property=this.jsxParseIdentifier(),Wd=this.finishNode(pf,"JSXMemberExpression")}return Wd}jsxParseAttributeValue(){let Ld;switch(this.state.type){case 5:return Ld=this.startNode(),this.setContext(Qd.brace),this.next(),Ld=this.jsxParseExpressionContainer(Ld,Qd.j_oTag),Ld.expression.type==="JSXEmptyExpression"&&this.raise(u1.AttributeIsEmpty,Ld),Ld;case 142:case 133:return this.parseExprAtom();default:throw this.raise(u1.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let Ld=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(Ld,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(Ld){return this.next(),Ld.expression=this.parseExpression(),this.setContext(Qd.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Ld,"JSXSpreadChild")}jsxParseExpressionContainer(Ld,Wd){if(this.match(8))Ld.expression=this.jsxParseEmptyExpression();else{let pf=this.parseExpression();Ld.expression=pf}return this.setContext(Wd),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Ld,"JSXExpressionContainer")}jsxParseAttribute(){let Ld=this.startNode();return this.match(5)?(this.setContext(Qd.brace),this.next(),this.expect(21),Ld.argument=this.parseMaybeAssignAllowIn(),this.setContext(Qd.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Ld,"JSXSpreadAttribute")):(Ld.name=this.jsxParseNamespacedName(),Ld.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(Ld,"JSXAttribute"))}jsxParseOpeningElementAt(Ld){let Wd=this.startNodeAt(Ld);return this.eat(143)?this.finishNode(Wd,"JSXOpeningFragment"):(Wd.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Wd))}jsxParseOpeningElementAfterName(Ld){let Wd=[];for(;!this.match(56)&&!this.match(143);)Wd.push(this.jsxParseAttribute());return Ld.attributes=Wd,Ld.selfClosing=this.eat(56),this.expect(143),this.finishNode(Ld,"JSXOpeningElement")}jsxParseClosingElementAt(Ld){let Wd=this.startNodeAt(Ld);return this.eat(143)?this.finishNode(Wd,"JSXClosingFragment"):(Wd.name=this.jsxParseElementName(),this.expect(143),this.finishNode(Wd,"JSXClosingElement"))}jsxParseElementAt(Ld){let Wd=this.startNodeAt(Ld),pf=[],If
` ),cooked:If===null?null:If.slice(1,Mh)},dh.tail=yh,this.next();let Nm=this.finishNode(dh,"TemplateElement");return this.resetEndLocation(Nm,rd(this.state.lastTokEndLoc,Mh)),Nm}parseTemplate(Hd){let Ld=this.startNode(),Wd=this.parseTemplateElement(Hd),pf=[Wd],If=[];for(;!Wd.tail;)If.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),pf.push(Wd=this.parseTemplateElement(Hd));return Ld.expressions=If,Ld.quasis=pf,this.finishNode(Ld,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(Hd,Ld,Wd,pf){Wd&&this.expectPlugin("recordAndTuple");let If=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Jf=Object.create(null),dh=!0,yh=this.startNode();for(yh.properties=[],this.next();!this.match(Hd);){if(dh)dh=!1;else if(this.expect(12),this.match(Hd)){this.addTrailingCommaExtraToNode(yh);break}let Oh;Ld?Oh=this.parseBindingProperty():(Oh=this.parsePropertyDefinition(pf),this.checkProto(Oh,Wd,Jf,pf)),Wd&&!this.isObjectProperty(Oh)&&Oh.type!=="SpreadElement"&&this.raise(Od.InvalidRecordProperty,Oh),Oh.shorthand&&this.addExtra(Oh,"shorthand",!0),yh.properties.push(Oh)}this.next(),this.state.inFSharpPipelineDirectBody=If;let Mh="ObjectExpression";return Ld?Mh="ObjectPattern":Wd&&(Mh="RecordExpression"),this.finishNode(yh,Mh)}addTrailingCommaExtraToNode(Hd){this.addExtra(Hd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(Hd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(Hd){return!Hd.computed&&Hd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(Hd){let Ld=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Od.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Ld.push(this.parseDecorator());let Wd=this.startNode(),pf=!1,If=!1,Jf;if(this.match(21))return Ld.length&&this.unexpected(),this.parseSpread();Ld.length&&(Wd.decorators=Ld,Ld=[]),Wd.method=!1,Hd&&(Jf=this.state.startLoc);let dh=this.eat(55);this.parsePropertyNamePrefixOperator(Wd);let yh=this.state.containsEsc;if(this.parsePropertyName(Wd,Hd),!dh&&!yh&&this.maybeAsyncOrAccessorProp(Wd)){let{key:Mh}=Wd,Oh=Mh.name;Oh==="async"&&!this.hasPrecedingLineBreak()&&(pf=!0,this.resetPreviousNodeTrailingComments(Mh),dh=this.eat(55),this.parsePropertyName(Wd)),(Oh==="get"||Oh==="set")&&(If=!0,this.resetPreviousNodeTrailingComments(Mh),Wd.kind=Oh,this.match(55)&&(dh=!0,this.raise(Od.AccessorIsGenerator,this.state.curPosition(),{kind:Oh}),this.next()),this.parsePropertyName(Wd))}return this.parseObjPropValue(Wd,Jf,dh,pf,!1,If,Hd)}getGetterSetterExpectedParamCount(Hd){return Hd.kind==="get"?0:1}getObjectOrClassMethodParams(Hd){return Hd.params}checkGetterSetterParams(Hd){var Ld;let Wd=this.getGetterSetterExpectedParamCount(Hd),pf=this.getObjectOrClassMethodParams(Hd);pf.length!==Wd&&this.raise(Hd.kind==="get"?Od.BadGetterArity:Od.BadSetterArity,Hd),Hd.kind==="set"&&((Ld=pf[pf.length-1])==null?void 0:Ld.type)==="RestElement"&&this.raise(Od.BadSetterRestParameter,Hd)}parseObjectMethod(Hd,Ld,Wd,pf,If){if(If){let Jf=this.parseMethod(Hd,Ld,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Jf),Jf}if(Wd||Ld||this.match(10))return pf&&this.unexpected(),Hd.kind="method",Hd.method=!0,this.parseMethod(Hd,Ld,Wd,!1,!1,"ObjectMethod")}parseObjectProperty(Hd,Ld,Wd,pf){if(Hd.shorthand=!1,this.eat(14))return Hd.value=Wd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(pf),this.finishNode(Hd,"ObjectProperty");if(!Hd.computed&&Hd.key.type==="Identifier"){if(this.checkReservedWord(Hd.key.name,Hd.key.loc.start,!0,!1),Wd)Hd.value=this.parseMaybeDefault(Ld,E1(Hd.key));else if(this.match(29)){let If=this.state.startLoc;pf!=null?pf.shorthandAssignLoc===null&&(pf.shorthandAssignLoc=If):this.raise(Od.InvalidCoverInitializedName,If),Hd.value=this.parseMaybeDefault(Ld,E1(Hd.key))}else Hd.value=E1(Hd.key);return Hd.shorthand=!0,this.finishNode(Hd,"ObjectProperty")}}parseObjPropValue(Hd,Ld,Wd,pf,If,Jf,dh){let yh=this.parseObjectMethod(Hd,Wd,pf,If,Jf)||this.parseObjectPr
` )return qa-2;if(rd=== `
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa-1}else{if(rd===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(rd=== `
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa+1}return qa}var us $ 2=mr $ 1;function yr $ 1(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?cs $ 2(Ra,qa):qa}var fs $ 2=yr $ 1;function xr $ 1(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=ls $ 1(Ra,td),td=ps $ 1(Ra,td),td=fs $ 2(Ra,td),td=us $ 2(Ra,td);return td}var ds $ 1=xr $ 1;function Pr $ 1(Ra){let qa=[];for(let ed of Ra)try{return ed()}catch(td){qa.push(td)}throw Object.assign(new Error("All combinations failed"),{errors:qa})}var ms $ 2=Pr $ 1;function gr $ 1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf( `
` );return qa===-1?Ra:Ra.slice(0,qa)}var Oe $ 2=gr $ 1,Tr $ 1=(Ra,qa,ed)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[ed<0?qa.length+ed:ed]:qa.at(ed)},St $ 2=Tr $ 1;function br $ 1(Ra){return Array.isArray(Ra)&&Ra.length>0}var Pe $ 2=br $ 1;function D $ 1(Ra){var qa,ed,td;let rd=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,sd=(td=((ed=Ra.declaration)==null?void 0:ed.decorators)??Ra.decorators)==null?void 0:td[0];return sd?Math.min(D $ 1(sd),rd):rd}function B(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function Ar $ 1(Ra){let qa=new Set(Ra);return ed=>qa.has(ed==null?void 0:ed.type)}var ys $ 2=Ar $ 1,Sr $ 1=ys $ 2(["Block","CommentBlock","MultiLine"]),ge $ 2=Sr $ 1;function wr $ 1(Ra){let qa= ` * $ { Ra . value } * ` .split( `
` );return qa.length>1&&qa.every(ed=>ed.trimStart()[0]==="*")}var wt $ 1=wr $ 1;function Cr(Ra){return ge $ 2(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies) \b /u.test(Ra.value)}var xs $ 1=Cr,Te $ 2=null;function be $ 3(Ra){if(Te $ 2!==null&&typeof Te $ 2.property){let qa=Te $ 2;return Te $ 2=be $ 3.prototype=null,qa}return Te $ 2=be $ 3.prototype=Ra??Object.create(null),new be $ 3}var Er $ 1=10;for(let Ra=0;Ra<=Er $ 1;Ra++)be $ 3();function Ct $ 3(Ra){return be $ 3(Ra)}function Ir $ 1(Ra,qa="type"){Ct $ 3(Ra);function ed(td){let rd=td[qa],sd=Ra[rd];if(!Array.isArray(sd))throw Object.assign(new Error( ` Missing visitor keys for '${rd}' . ` ),{node:td});return sd}return ed}var Ps $ 2=Ir $ 1,gs $ 2={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance
` ;Ra=ie $ 2(!1,Ra.replace(Or $ 1,"").replace(Mr $ 2,""),Ur $ 2," $ 1");let ed="";for(;ed!==Ra;)ed=Ra,Ra=ie $ 2(!1,Ra,Rr $ 1, ` $ { qa } $1 $2$ { qa } ` );Ra=Ra.replace(Ss $ 1,"").trimEnd();let td=Object.create(null),rd=ie $ 2(!1,Ra,ws $ 2,"").replace(Ss $ 1,"").trimEnd(),sd;for(;sd=ws $ 2.exec(Ra);){let od=ie $ 2(!1,sd[2],Br $ 2,"");if(typeof td[sd[1]]=="string"||Array.isArray(td[sd[1]])){let ld=td[sd[1]];td[sd[1]]=[..._r $ 1,...Array.isArray(ld)?ld:[ld],od]}else td[sd[1]]=od}return{comments:rd,pragmas:td}}function jr $ 2(Ra){let qa=Oe $ 2(Ra);qa&&(Ra=Ra.slice(qa.length+1));let ed=Cs $ 1(Ra),{pragmas:td,comments:rd}=Es $ 2(ed);return{shebang:qa,text:Ra,pragmas:td,comments:rd}}function Is $ 2(Ra){let{pragmas:qa}=jr $ 2(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function $ r $ 2(Ra){return Ra=typeof Ra=="function"?{parse:Ra}:Ra,{astFormat:"estree",hasPragma:Is $ 2,locStart:D $ 1,locEnd:B,...Ra}}var G $ 1= $ r $ 2;function Vr $ 2(Ra){let{filepath:qa}=Ra;if(qa){if(qa=qa.toLowerCase(),qa.endsWith(".cjs"))return"script";if(qa.endsWith(".mjs"))return"module"}}var Ns $ 1=Vr $ 2;function qr $ 1(Ra,qa){let{type:ed="JsExpressionRoot",rootMarker:td,text:rd}=qa,{tokens:sd,comments:od}=Ra;return delete Ra.tokens,delete Ra.comments,{tokens:sd,comments:od,type:ed,node:Ra,range:[0,rd.length],rootMarker:td}}var Ue $ 2=qr $ 1,re $ 2=Ra=>G $ 1(Jr $ 2(Ra)),zr $ 2={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ks $ 1="v8intrinsic",vs $ 2=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],V $ 2=(Ra,qa=zr $ 2)=>({...qa,plugins:[...qa.plugins,...Ra]}),Kr $ 2=/@(?:no)?flow \b /u;function Hr $ 2(Ra,qa){var ed;if((ed=qa.filepath)!=null&&ed.endsWith(".js.flow"))return!0;let td=Oe $ 2(Ra);td&&(Ra=Ra.slice(td.length));let rd=ds $ 1(Ra,0);return rd!==!1&&(Ra=Ra.slice(0,rd)),Kr $ 2.test(Ra)}function Wr $ 2(Ra,qa,ed){let td=Ra(qa,ed),rd=td.errors.find(sd=>!Xr $ 2.has(sd.reasonCode));if(rd)throw rd;return td}function Jr $ 2({isExpression:Ra=!1,optionsCombinations:qa}){return(ed,td={})=>{if((td.parser==="babel"||td.parser==="__babel_estree")&&Hr $ 2(ed,td))return td.parser="babel-flow",Bs $ 1.parse(ed,td);let rd=qa;(td.__babelSourceType??Ns $ 1(td))==="script"&&(rd=rd.map(cd=>({...cd,sourceType:"script"})));let sd=/%[A-Z]/u.test(ed);ed.includes("|>")?rd=(sd?[...vs $ 2,ks $ 1]:vs $ 2).flatMap(cd=>rd.map(ud=>V $ 2([cd],ud))):sd&&(rd=rd.map(cd=>V $ 2([ks $ 1],cd)));let od=Ra?_e $ 2.parseExpression:_e $ 2.parse,ld;try{ld=ms $ 2(rd.map(cd=>()=>Wr $ 2(od,ed,cd)))}catch({errors:[cd]}){throw Re $ 3(cd)}return Ra&&(ld=Ue $ 2(ld,{text:ed,rootMarker:td.rootMarker})),As $ 2(ld,{parser:"babel",text:ed})}}var Xr $ 2=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Fs $ 1
` )return qa-2;if(rd=== `
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa-1}else{if(rd===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(rd=== `
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa+1}return qa}var Ue $ 1= $ a $ 2;function Ka(Ra,qa,ed={}){let td=Ge $ 1(Ra,ed.backwards?qa-1:qa,ed),rd=Ue $ 1(Ra,td,ed);return td!==rd}var te $ 1=Ka;function za(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let ed=qa+2;ed<Ra.length;++ed)if(Ra.charAt(ed)==="*"&&Ra.charAt(ed+1)==="/")return ed+2}return qa}var Lt $ 1=za;function Qa(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?zs(Ra,qa):qa}var wt=Qa;function Za $ 1(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=Ks $ 1(Ra,td),td=Lt $ 1(Ra,td),td=Ge $ 1(Ra,td);return td=wt(Ra,td),td=Ue $ 1(Ra,td),td!==!1&&te $ 1(Ra,td)}var Ot $ 2=Za $ 1;function eo(Ra){return Array.isArray(Ra)&&Ra.length>0}var w=eo,dr="'",Qs $ 1='"';function to(Ra,qa){let ed=qa===!0||qa===dr?dr:Qs $ 1,td=ed===dr?Qs $ 1:dr,rd=0,sd=0;for(let od of Ra)od===ed?rd++:od===td&&sd++;return rd>sd?td:ed}var xr=to;function ro(Ra,qa,ed){let td=qa==='"'?"'":'"',rd=N $ 1(!1,Ra,/ \\ (.)|(["'])/gsu,(sd,od,ld)=>od===td?od:ld===qa?" \\ "+ld:ld||(ed&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /u.test(od)?od:" \\ "+od));return qa+rd+qa}var Zs $ 1=ro;function no $ 1(Ra,qa){let ed=Ra.slice(1,-1),td=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":xr(ed,qa.singleQuote);return Zs $ 1(ed,td,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var tt $ 1=no $ 1;function R $ 1(Ra){var qa,ed,td;let rd=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,sd=(td=((ed=Ra.declaration)==null?void 0:ed.decorators)??Ra.decorators)==null?void 0:td[0];return sd?Math.min(R $ 1(sd),rd):rd}function k(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function ht $ 1(Ra,qa){let ed=R $ 1(Ra);return Number.isInteger(ed)&&ed===R $ 1(qa)}function so $ 1(Ra,qa){let ed=k(Ra);return Number.isInteger(ed)&&ed===k(qa)}function eu $ 1(Ra,qa){return ht $ 1(Ra,qa)&&so $ 1(Ra,qa)}var Qt=null;function Zt $ 2(Ra){if(Qt!==null&&typeof Qt.property){let qa=Qt;return Qt=Zt $ 2.prototype=null,qa}return Qt=Zt $ 2.prototype=Ra??Object.create(null),new Zt $ 2}var uo $ 2=10;for(let Ra=0;Ra<=uo $ 2;Ra++)Zt $ 2();function In $ 1(Ra){return Zt $ 2(Ra)}function io(Ra,qa="type"){In $ 1(Ra);function ed(td){let rd=td[qa],sd=Ra[rd];if(!Array.isArray(sd))throw Object.assign(new Error( ` Missing visitor keys for '${rd}' . ` ),{node:td});return sd}return ed}var hr=io,tu $ 2={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["decla
` ):Ra.type==="UnaryExpression"?rr(Ra.argument,{printWidth:ed}):Ra.type==="CallExpression"&&Ra.arguments.length===0&&Ra.callee.type==="Identifier"?Ra.callee.name.length<=td-2:kr(Ra)}function Oe $ 1(Ra,qa){return X $ 1(qa)?Bt $ 2(qa):d(qa,g $ 2.Leading,ed=>te $ 1(Ra,k(ed)))}function nu $ 2(Ra){return Ra.quasis.some(qa=>qa.value.raw.includes( `
` ))}function Lr(Ra,qa){return(Ra.type==="TemplateLiteral"&&nu $ 2(Ra)||Ra.type==="TaggedTemplateExpression"&&nu $ 2(Ra.quasi))&&!te $ 1(qa,R $ 1(Ra),{backwards:!0})}function wr(Ra){if(!d(Ra))return!1;let qa=O $ 1(!1,ct(Ra,g $ 2.Dangling),-1);return qa&&!re $ 1(qa)}function lu $ 1(Ra){if(Ra.length<=1)return!1;let qa=0;for(let ed of Ra)if(_t $ 1(ed)){if(qa+=1,qa>1)return!0}else if(L $ 1(ed)){for(let td of oe $ 1(ed))if(_t $ 1(td))return!0}return!1}function Or(Ra){let{node:qa,parent:ed,key:td}=Ra;return td==="callee"&&L $ 1(qa)&&L $ 1(ed)&&ed.arguments.length>0&&qa.arguments.length>ed.arguments.length}var xo $ 1=new Set(["!","-","+","~"]);function be $ 2(Ra,qa=2){if(qa<=0)return!1;if(Ra.type==="ChainExpression"||Ra.type==="TSNonNullExpression")return be $ 2(Ra.expression,qa);let ed=td=>be $ 2(td,qa-1);if(vn $ 1(Ra))return et $ 2(Ra.pattern??Ra.regex.pattern)<=5;if(kr(Ra)||Do(Ra)||Ra.type==="ArgumentPlaceholder")return!0;if(Ra.type==="TemplateLiteral")return Ra.quasis.every(td=>!td.value.raw.includes( `
` ))&&Ra.expressions.every(ed);if(se(Ra))return Ra.properties.every(td=>!td.computed&&(td.shorthand||td.value&&ed(td.value)));if(U $ 1(Ra))return Ra.elements.every(td=>td===null||ed(td));if(lt $ 1(Ra)){if(Ra.type==="ImportExpression"||be $ 2(Ra.callee,qa)){let td=oe $ 1(Ra);return td.length<=qa&&td.every(ed)}return!1}return q $ 1(Ra)?be $ 2(Ra.object,qa)&&be $ 2(Ra.property,qa):Ra.type==="UnaryExpression"&&xo $ 1.has(Ra.operator)||Ra.type==="UpdateExpression"?be $ 2(Ra.argument,qa):!1}function fe $ 1(Ra){var qa;return((qa=Ra.extra)==null?void 0:qa.raw)??Ra.raw}function mu $ 2(Ra){return Ra}function ae(Ra,qa="es5"){return Ra.trailingComma==="es5"&&qa==="es5"||Ra.trailingComma==="all"&&(qa==="all"||qa==="es5")}function ie $ 1(Ra,qa){switch(Ra.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie $ 1(Ra.left,qa);case"MemberExpression":case"OptionalMemberExpression":return ie $ 1(Ra.object,qa);case"TaggedTemplateExpression":return Ra.tag.type==="FunctionExpression"?!1:ie $ 1(Ra.tag,qa);case"CallExpression":case"OptionalCallExpression":return Ra.callee.type==="FunctionExpression"?!1:ie $ 1(Ra.callee,qa);case"ConditionalExpression":return ie $ 1(Ra.test,qa);case"UpdateExpression":return!Ra.prefix&&ie $ 1(Ra.argument,qa);case"BindExpression":return Ra.object&&ie $ 1(Ra.object,qa);case"SequenceExpression":return ie $ 1(Ra.expressions[0],qa);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie $ 1(Ra.expression,qa);default:return qa(Ra)}}var su $ 2={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},_n $ 2={">>":!0,">>>":!0,"<<":!0};function nr(Ra,qa){return!(er(qa)!==er(Ra)||Ra==="**"||su $ 2[Ra]&&su $ 2[qa]||qa==="%"&&br[Ra]||Ra==="%"&&br[qa]||qa!==Ra&&br[qa]&&br[Ra]||_n $ 2[Ra]&&_n $ 2[qa])}var ho $ 1=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((Ra,qa)=>Ra.map(ed=>[ed,qa])));function er(Ra){return ho $ 1.get(Ra)}function yu $ 1(Ra){return!!_n $ 2[Ra]||Ra==="|"||Ra==="^"||Ra==="&"}function Du $ 1(Ra){var qa;if(Ra.rest)return!0;let ed=K $ 1(Ra);return((qa=O $ 1(!1,ed,-1))==null?void 0:qa.type)==="RestElement"}var wn $ 2=new WeakMap;function K $ 1(Ra){if(wn $ 2.has(Ra))return wn $ 2.get(Ra);let qa=[];return Ra.this&&qa.push(Ra.this),Array.isArray(Ra.parameters)?qa.push(...Ra.parameters):Array.isArray(Ra.params)&&qa.push(...Ra.params),Ra.rest&&qa.push(Ra.rest),wn $ 2.set(Ra,qa),qa}function fu(Ra,qa){let{node:ed}=Ra,td=0,rd=sd=>qa(sd,td++);ed.this&&Ra.call(rd,"this"),Array.isArray(ed.parameters)?Ra.each(rd,"parameters"):Array.isArray(ed.params)&&Ra.each(rd,"params"),ed.rest&&Ra.call(rd,"rest")}var On $ 1=new WeakMap;function oe $ 1(Ra){if(On $ 1.has(Ra))return On $ 1.get(Ra);if(Ra.type==="ChainExpression")return oe $ 1(Ra.expression);let qa=Ra.arguments;return Ra.type==="ImportExpression"&&(qa=[Ra.source],Ra.attributes&&qa.push(Ra.attributes),Ra.options&&qa.push(Ra.options)),On $ 1.set(Ra,qa),qa}function Rt $ 2(Ra,qa){let{node:ed}=Ra;if(ed.type==="ChainExpression")return Ra.call(()=>Rt $ 2(Ra,qa),"expression");ed.type==="ImportExpression"?(Ra.call(td=>qa(td,0),"source"),ed.attributes&&Ra.call(td=>qa(td,1),"attributes"),ed.options&&Ra.call(td=>qa(td,1),"options")):Ra.each(qa,"arguments")}function Rn $ 1(Ra,qa){let ed=[];if(Ra.type==="ChainExpression"&&(Ra=Ra.expression,ed.push("expression")),Ra.type==="ImportExpression"){if(qa===0||qa===(Ra.attributes||Ra.options?-2:-1))return[...ed,"source"];if(Ra.attributes&&(qa===1||qa===-1))return[...ed,"attributes"];if(Ra.options&&(qa===1||qa===-1))return[...ed,"options"];throw new RangeError("Invalid argument index")}if(qa<0&&(qa=Ra.arguments.length+qa),qa<0||qa>=Ra.arguments.length)throw new RangeError("Invalid argument index");return[...ed,"arguments",qa]}function sr(Ra){return Ra.value.trim()==="prettier-ignore"&&!Ra.unignore}function Bt $ 2(Ra){return(Ra==null?void 0:Ra.prettierIgnore)||d(Ra,g $ 2.PrettierIgnore)}var g $ 2={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,
Expected it to be 'string' or 'object' . ` ;if(ut(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return ` Unexpected doc '${ed}' . ` ;let td=Bo([...jr $ 1].map(rd=> ` '${rd}' ` ));return ` Unexpected doc . type '${Ra.type}' .
Expected it to be $ { td } . ` }var Jn $ 2=class extends Error{constructor(ed){super(bo $ 1(ed));n_(this,"name","InvalidDocError");this.doc=ed}},Ct $ 2=Jn $ 2,Au={};function Po(Ra,qa,ed,td){let rd=[Ra];for(;rd.length>0;){let sd=rd.pop();if(sd===Au){ed(rd.pop());continue}ed&&rd.push(sd,Au);let od=ut(sd);if(!od)throw new Ct $ 2(sd);if((qa==null?void 0:qa(sd))!==!1)switch(od){case _e $ 1:case Pe $ 1:{let ld=od===_e $ 1?sd:sd.parts;for(let cd=ld.length,ud=cd-1;ud>=0;--ud)rd.push(ld[ud]);break}case xe $ 2:rd.push(sd.flatContents,sd.breakContents);break;case le $ 1:if(td&&sd.expandedStates)for(let ld=sd.expandedStates.length,cd=ld-1;cd>=0;--cd)rd.push(sd.expandedStates[cd]);else rd.push(sd.contents);break;case Ye $ 1:case Xe $ 1:case He $ 1:case je $ 2:case Ve $ 1:rd.push(sd.contents);break;case rt $ 1:case nt:case st:case $ e $ 2:case me:case ve $ 1:break;default:throw new Ct $ 2(sd)}}}var qn $ 2=Po,Tu $ 1=()=>{},vr=Tu $ 1;function f(Ra){return{type:Xe $ 1,contents:Ra}}function he $ 1(Ra,qa){return{type:Ye $ 1,contents:qa,n:Ra}}function l(Ra,qa={}){return vr(qa.expandedStates),{type:le $ 1,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function du $ 1(Ra){return he $ 1(Number.NEGATIVE_INFINITY,Ra)}function Mr $ 1(Ra){return he $ 1(-1,Ra)}function ze $ 1(Ra,qa){return l(Ra[0],{...qa,expandedStates:Ra})}function qt $ 1(Ra){return{type:Pe $ 1,parts:Ra}}function b(Ra,qa="",ed={}){return{type:xe $ 2,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}function At $ 2(Ra,qa){return{type:He $ 1,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function Wn $ 1(Ra){return{type:Ve $ 1,contents:Ra}}var ke $ 2={type: $ e $ 2},Ee $ 1={type:ve $ 1},Gn $ 2={type:me,hard:!0},ko={type:me,hard:!0,literal:!0},x={type:me},E $ 1={type:me,soft:!0},F=[Gn $ 2,Ee $ 1],Rr=[ko,Ee $ 1],Un $ 1={type:nt};function P $ 1(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}function xu(Ra,qa,ed){let td=Ra;if(qa>0){for(let rd=0;rd<Math.floor(qa/ed);++rd)td=f(td);td=he $ 1(qa%ed,td),td=he $ 1(Number.NEGATIVE_INFINITY,td)}return td}function it $ 1(Ra,qa){return Ra?{type:je $ 2,label:Ra,contents:qa}:qa}function mt $ 1(Ra,qa){if(typeof Ra=="string")return qa(Ra);let ed=new Map;return td(Ra);function td(sd){if(ed.has(sd))return ed.get(sd);let od=rd(sd);return ed.set(sd,od),od}function rd(sd){switch(ut(sd)){case _e $ 1:return qa(sd.map(td));case Pe $ 1:return qa({...sd,parts:sd.parts.map(td)});case xe $ 2:return qa({...sd,breakContents:td(sd.breakContents),flatContents:td(sd.flatContents)});case le $ 1:{let{expandedStates:od,contents:ld}=sd;return od?(od=od.map(td),ld=od[0]):ld=td(ld),qa({...sd,contents:ld,expandedStates:od})}case Ye $ 1:case Xe $ 1:case He $ 1:case je $ 2:case Ve $ 1:return qa({...sd,contents:td(sd.contents)});case rt $ 1:case nt:case st:case $ e $ 2:case me:case ve $ 1:return qa(sd);default:throw new Ct $ 2(sd)}}}function gu $ 1(Ra,qa,ed){let td=ed,rd=!1;function sd(od){if(rd)return!1;let ld=qa(od);ld!==void 0&&(rd=!0,td=ld)}return qn $ 2(Ra,sd),td}function Io(Ra){if(Ra.type===le $ 1&&Ra.break||Ra.type===me&&Ra.hard||Ra.type===ve $ 1)return!0}function ne $ 1(Ra){return gu $ 1(Ra,Io,!1)}function hu $ 2(Ra){if(Ra.length>0){let qa=O $ 1(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Su(Ra){let qa=new Set,ed=[];function td(sd){if(sd.type===ve $ 1&&hu $ 2(ed),sd.type===le $ 1){if(ed.push(sd),qa.has(sd))return!1;qa.add(sd)}}function rd(sd){sd.type===le $ 1&&ed.pop().break&&hu $ 2(ed)}qn $ 2(Ra,td,rd,!0)}function Lo $ 2(Ra){return Ra.type===me&&!Ra.hard?Ra.soft?"":" ":Ra.type===xe $ 2?Ra.flatContents:Ra}function ur(Ra){return mt $ 1(Ra,Lo $ 2)}function wo $ 1(Ra){switch(ut(Ra)){case Pe $ 1:if(Ra.parts.every(qa=>qa===""))return"";break;case le $ 1:if(!Ra.contents&&!Ra.id&&!Ra.break&&!Ra.expandedStates)return"";if(Ra.contents.type===le $ 1&&Ra.contents.id===Ra.id&&Ra.contents.break===Ra.break&&Ra.contents.expandedStates===Ra.expandedStates)return Ra.contents;break;case Ye $ 1:case Xe $ 1:case He $ 1:case Ve $ 1:if(!Ra.contents)return"";break;case xe $ 2:if(!Ra.flatContents&&!Ra.breakContents)return"";break;case _e $ 1:{let qa=[];for(let ed of Ra){if(!ed)continue;let[td,...rd]=Array.isArray(ed)?ed:[ed];typeof td=="string"&&typeof O $ 1(!1,qa,-1)
` )):ed)}function Oo(Ra){if(Ra.type===me)return!0}function Bu(Ra){return gu $ 1(Ra,Oo,!1)}function ir $ 1(Ra,qa){return Ra.type===je $ 2?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}function _o $ 1(Ra){let qa= ` * $ { Ra . value } * ` .split( `
` );return qa.length>1&&qa.every(ed=>ed.trimStart()[0]==="*")}var bu $ 1=_o $ 1;function Pu(Ra,qa){let ed=Ra.node;if(vt(ed))return qa.originalText.slice(R $ 1(ed),k(ed)).trimEnd();if(re $ 1(ed))return bu $ 1(ed)?jo $ 1(ed):["/*",Ie(ed.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(ed))}function jo $ 1(Ra){let qa=Ra.value.split( `
` );return["/*",P $ 1(F,qa.map((ed,td)=>td===0?ed.trimEnd():" "+(td<qa.length-1?ed.trim():ed.trimStart()))),"*/"]}var Kn $ 1={};Ar(Kn $ 1,{endOfLine:()=>Go,ownLine:()=>Wo $ 1,remaining:()=>Uo $ 2});function vo(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",ed=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return ed.length>20&&(ed=ed.slice(0,19)+"…"),qa+(ed?" "+ed:"")}function Nn $ 1(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=vo(Ra)}function ce $ 1(Ra,qa){qa.leading=!0,qa.trailing=!1,Nn $ 1(Ra,qa)}function Le $ 1(Ra,qa,ed){qa.leading=!1,qa.trailing=!1,ed&&(qa.marker=ed),Nn $ 1(Ra,qa)}function z $ 1(Ra,qa){qa.leading=!1,qa.trailing=!0,Nn $ 1(Ra,qa)}function Mo $ 1(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=Ge $ 1(Ra,td),td=Lt $ 1(Ra,td),td=wt(Ra,td),td=Ue $ 1(Ra,td);return td}var yt $ 1=Mo $ 1;function Ro(Ra,qa){let ed=yt $ 1(Ra,qa);return ed===!1?"":Ra.charAt(ed)}var ge $ 1=Ro;function Jo $ 1(Ra,qa,ed){for(let td=qa;td<ed;++td)if(Ra.charAt(td)=== `
` )return!0;return!1}var de $ 1=Jo $ 1;function qo(Ra){return re $ 1(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies) \b /u.test(Ra.value)}var ku=qo;function Wo $ 1(Ra){return[Mu,Lu,_u $ 1,ep,Xo,Yn $ 2,Hn $ 1,Iu,wu $ 1,sp,rp, $ n $ 2,vu $ 2,up,Ou,ju $ 1,Vn $ 1,Yo,yp].some(qa=>qa(Ra))}function Go(Ra){return[No,_u $ 1,Lu,vu $ 2,Yn $ 2,Hn $ 1,Iu,wu $ 1,ju $ 1,tp,np, $ n $ 2,op $ 1,Vn $ 1,lp,mp].some(qa=>qa(Ra))}function Uo $ 2(Ra){return[Mu,Yn $ 2,Hn $ 1,Ho $ 2,Zo $ 1,Ou, $ n $ 2,Qo,zo $ 1,cp,Vn $ 1,pp].some(qa=>qa(Ra))}function bt $ 2(Ra,qa){let ed=(Ra.body||Ra.properties).find(({type:td})=>td!=="EmptyStatement");ed?ce $ 1(ed,qa):Le $ 1(Ra,qa)}function Xn $ 2(Ra,qa){Ra.type==="BlockStatement"?bt $ 2(Ra,qa):ce $ 1(Ra,qa)}function No({comment:Ra,followingNode:qa}){return qa&&ku(Ra)?(ce $ 1(qa,Ra),!0):!1}function Yn $ 2({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td,text:rd}){if((ed==null?void 0:ed.type)!=="IfStatement"||!td)return!1;if(ge $ 1(rd,k(Ra))===")")return z $ 1(qa,Ra),!0;if(qa===ed.consequent&&td===ed.alternate){if(qa.type==="BlockStatement")z $ 1(qa,Ra);else{let sd=vt(Ra)||Ra.loc.start.line===Ra.loc.end.line,od=Ra.loc.start.line===qa.loc.start.line;sd&&od?z $ 1(qa,Ra):Le $ 1(ed,Ra)}return!0}return td.type==="BlockStatement"?(bt $ 2(td,Ra),!0):td.type==="IfStatement"?(Xn $ 2(td.consequent,Ra),!0):ed.consequent===td?(ce $ 1(td,Ra),!0):!1}function Hn $ 1({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td,text:rd}){return(ed==null?void 0:ed.type)!=="WhileStatement"||!td?!1:ge $ 1(rd,k(Ra))===")"?(z $ 1(qa,Ra),!0):td.type==="BlockStatement"?(bt $ 2(td,Ra),!0):ed.body===td?(ce $ 1(td,Ra),!0):!1}function Iu({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td}){return(ed==null?void 0:ed.type)!=="TryStatement"&&(ed==null?void 0:ed.type)!=="CatchClause"||!td?!1:ed.type==="CatchClause"&&qa?(z $ 1(qa,Ra),!0):td.type==="BlockStatement"?(bt $ 2(td,Ra),!0):td.type==="TryStatement"?(Xn $ 2(td.finalizer,Ra),!0):td.type==="CatchClause"?(Xn $ 2(td.body,Ra),!0):!1}function Xo({comment:Ra,enclosingNode:qa,followingNode:ed}){return q $ 1(qa)&&(ed==null?void 0:ed.type)==="Identifier"?(ce $ 1(qa,Ra),!0):!1}function Yo({comment:Ra,enclosingNode:qa,followingNode:ed,options:td}){return!td.experimentalTernaries||!((qa==null?void 0:qa.type)==="ConditionalExpression"||(qa==null?void 0:qa.type)==="ConditionalTypeAnnotation"||(qa==null?void 0:qa.type)==="TSConditionalType")?!1:(ed==null?void 0:ed.type)==="ConditionalExpression"||(ed==null?void 0:ed.type)==="ConditionalTypeAnnotation"||(ed==null?void 0:ed.type)==="TSConditionalType"?(Le $ 1(qa,Ra),!0):!1}function Lu({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td,text:rd,options:sd}){let od=qa&&!de $ 1(rd,k(qa),R $ 1(Ra));return(!qa||!od)&&((ed==null?void 0:ed.type)==="ConditionalExpression"||(ed==null?void 0:ed.type)==="ConditionalTypeAnnotation"||(ed==null?void 0:ed.type)==="TSConditionalType")&&td?sd.experimentalTernaries&&ed.alternate===td&&!(re $ 1(Ra)&&!de $ 1(sd.originalText,R $ 1(Ra),k(Ra)))?(Le $ 1(ed,Ra),!0):(ce $ 1(td,Ra),!0):!1}function Ho $ 2({comment:Ra,precedingNode:qa,enclosingNode:ed}){return Ae $ 1(ed)&&ed.shorthand&&ed.key===qa&&ed.value.type==="AssignmentPattern"?(z $ 1(ed.value.left,Ra),!0):!1}var Vo=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu $ 1({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td}){if(Vo.has(ed==null?void 0:ed.type)){if(w(ed.decorators)&&(td==null?void 0:td.type)!=="Decorator")return z $ 1(O $ 1(!1,ed.decorators,-1),Ra),!0;if(ed.body&&td===ed.body)return bt $ 2(ed.body,Ra),!0;if(td){if(ed.superClass&&td===ed.superClass&&qa&&(qa===ed.id||qa===ed.typeParameters))return z $ 1(qa,Ra),!0;for(let rd of["implements","extends","mixins"])if(ed[rd]&&td===ed[rd][0])return qa&&(qa===ed.id||qa===ed.typeParameters||qa===ed.superClass)?z $ 1(qa,Ra):Le $ 1(ed,Ra,rd),!0}}return!1}var $ o $ 1=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Ou({comment:Ra,precedingNode:qa,enclosingNode:e
2024-08-27 22:31:52 +08:00
` ;default:return `
2024-09-16 00:03:18 +08:00
` }}var Se $ 1=Symbol("MODE_BREAK"),at $ 2=Symbol("MODE_FLAT"),ar=Symbol("cursor");function qu $ 2(){return{value:"",length:0,queue:[]}}function Cp(Ra,qa){return Qn $ 2(Ra,{type:"indent"},qa)}function Ap $ 1(Ra,qa,ed){return qa===Number.NEGATIVE_INFINITY?Ra.root||qu $ 2():qa<0?Qn $ 2(Ra,{type:"dedent"},ed):qa?qa.type==="root"?{...Ra,root:Ra}:Qn $ 2(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},ed):Ra}function Qn $ 2(Ra,qa,ed){let td=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],rd="",sd=0,od=0,ld=0;for(let Nd of td)switch(Nd.type){case"indent":_d(),ed.useTabs?cd(1):ud(ed.tabWidth);break;case"stringAlign":_d(),rd+=Nd.n,sd+=Nd.n.length;break;case"numberAlign":od+=1,ld+=Nd.n;break;default:throw new Error( ` Unexpected type '${Nd.type}' ` )}return Ad(),{...Ra,value:rd,length:sd,queue:td};function cd(Nd){rd+=" ".repeat(Nd),sd+=ed.tabWidth*Nd}function ud(Nd){rd+=" ".repeat(Nd),sd+=Nd}function _d(){ed.useTabs?Ed():Ad()}function Ed(){od>0&&cd(od),Td()}function Ad(){ld>0&&ud(ld),Td()}function Td(){od=0,ld=0}}function Zn $ 1(Ra){let qa=0,ed=0,td=Ra.length;e:for(;td--;){let rd=Ra[td];if(rd===ar){ed++;continue}for(let sd=rd.length-1;sd>=0;sd--){let od=rd[sd];if(od===" "||od===" ")qa++;else{Ra[td]=rd.slice(0,sd+1);break e}}}if(qa>0||ed>0)for(Ra.length=td+1;ed-- >0;)Ra.push(ar);return qa}function Jr $ 1(Ra,qa,ed,td,rd,sd){if(ed===Number.POSITIVE_INFINITY)return!0;let od=qa.length,ld=[Ra],cd=[];for(;ed>=0;){if(ld.length===0){if(od===0)return!0;ld.push(qa[--od]);continue}let{mode:ud,doc:_d}=ld.pop(),Ed=ut(_d);switch(Ed){case rt $ 1:cd.push(_d),ed-=et $ 2(_d);break;case _e $ 1:case Pe $ 1:{let Ad=Ed===_e $ 1?_d:_d.parts;for(let Td=Ad.length-1;Td>=0;Td--)ld.push({mode:ud,doc:Ad[Td]});break}case Xe $ 1:case Ye $ 1:case He $ 1:case je $ 2:ld.push({mode:ud,doc:_d.contents});break;case st:ed+=Zn $ 1(cd);break;case le $ 1:{if(sd&&_d.break)return!1;let Ad=_d.break?Se $ 1:ud,Td=_d.expandedStates&&Ad===Se $ 1?O $ 1(!1,_d.expandedStates,-1):_d.contents;ld.push({mode:Ad,doc:Td});break}case xe $ 2:{let Ad=(_d.groupId?rd[_d.groupId]||at $ 2:ud)===Se $ 1?_d.breakContents:_d.flatContents;Ad&&ld.push({mode:ud,doc:Ad});break}case me:if(ud===Se $ 1||_d.hard)return!0;_d.soft||(cd.push(" "),ed--);break;case Ve $ 1:td=!0;break;case $ e $ 2:if(td)return!1;break}}return!1}function es $ 1(Ra,qa){let ed={},td=qa.printWidth,rd=Ju $ 2(qa.endOfLine),sd=0,od=[{ind:qu $ 2(),mode:Se $ 1,doc:Ra}],ld=[],cd=!1,ud=[],_d=0;for(Su(Ra);od.length>0;){let{ind:Ad,mode:Td,doc:Nd}=od.pop();switch(ut(Nd)){case rt $ 1:{let Rd=rd!== `
` ?N $ 1(!1,Nd, `
` ,rd):Nd;ld.push(Rd),od.length>0&&(sd+=et $ 2(Rd));break}case _e $ 1:for(let Rd=Nd.length-1;Rd>=0;Rd--)od.push({ind:Ad,mode:Td,doc:Nd[Rd]});break;case nt:if(_d>=2)throw new Error("There are too many 'cursor' in doc.");ld.push(ar),_d++;break;case Xe $ 1:od.push({ind:Cp(Ad,qa),mode:Td,doc:Nd.contents});break;case Ye $ 1:od.push({ind:Ap $ 1(Ad,Nd.n,qa),mode:Td,doc:Nd.contents});break;case st:sd-=Zn $ 1(ld);break;case le $ 1:switch(Td){case at $ 2:if(!cd){od.push({ind:Ad,mode:Nd.break?Se $ 1:at $ 2,doc:Nd.contents});break}case Se $ 1:{cd=!1;let Rd={ind:Ad,mode:at $ 2,doc:Nd.contents},Bd=td-sd,kd=ud.length>0;if(!Nd.break&&Jr $ 1(Rd,od,Bd,kd,ed))od.push(Rd);else if(Nd.expandedStates){let Od=O $ 1(!1,Nd.expandedStates,-1);if(Nd.break){od.push({ind:Ad,mode:Se $ 1,doc:Od});break}else for(let Md=1;Md<Nd.expandedStates.length+1;Md++)if(Md>=Nd.expandedStates.length){od.push({ind:Ad,mode:Se $ 1,doc:Od});break}else{let Pd=Nd.expandedStates[Md],Fd={ind:Ad,mode:at $ 2,doc:Pd};if(Jr $ 1(Fd,od,Bd,kd,ed)){od.push(Fd);break}}}else od.push({ind:Ad,mode:Se $ 1,doc:Nd.contents});break}}Nd.id&&(ed[Nd.id]=O $ 1(!1,od,-1).mode);break;case Pe $ 1:{let Rd=td-sd,{parts:Bd}=Nd;if(Bd.length===0)break;let[kd,Od]=Bd,Md={ind:Ad,mode:at $ 2,doc:kd},Pd={ind:Ad,mode:Se $ 1,doc:kd},Fd=Jr $ 1(Md,[],Rd,ud.length>0,ed,!0);if(Bd.length===1){Fd?od.push(Md):od.push(Pd);break}let Ud={ind:Ad,mode:at $ 2,doc:Od},Gd={ind:Ad,mode:Se $ 1,doc:Od};if(Bd.length===2){Fd?od.push(Ud,Md):od.push(Gd,Pd);break}Bd.splice(0,2);let Qd={ind:Ad,mode:Td,doc:qt $ 1(Bd)},Vd=Bd[0];Jr $ 1({ind:Ad,mode:at $ 2,doc:[kd,Od,Vd]},[],Rd,ud.length>0,ed,!0)?od.push(Qd,Ud,Md):Fd?od.push(Qd,Gd,Md):od.push(Qd,Gd,Pd);break}case xe $ 2:case He $ 1:{let Rd=Nd.groupId?ed[Nd.groupId]:Td;if(Rd===Se $ 1){let Bd=Nd.type===xe $ 2?Nd.breakContents:Nd.negate?Nd.contents:f(Nd.contents);Bd&&od.push({ind:Ad,mode:Td,doc:Bd})}if(Rd===at $ 2){let Bd=Nd.type===xe $ 2?Nd.flatContents:Nd.negate?f(Nd.contents):Nd.contents;Bd&&od.push({ind:Ad,mode:Td,doc:Bd})}break}case Ve $ 1:ud.push({ind:Ad,mode:Td,doc:Nd.contents});break;case $ e $ 2:ud.length>0&&od.push({ind:Ad,mode:Td,doc:Gn $ 2});break;case me:switch(Td){case at $ 2:if(Nd.hard)cd=!0;else{Nd.soft||(ld.push(" "),sd+=1);break}case Se $ 1:if(ud.length>0){od.push({ind:Ad,mode:Td,doc:Nd},...ud.reverse()),ud.length=0;break}Nd.literal?Ad.root?(ld.push(rd,Ad.root.value),sd=Ad.root.length):(ld.push(rd),sd=0):(sd-=Zn $ 1(ld),ld.push(rd+Ad.value),sd=Ad.length);break}break;case je $ 2:od.push({ind:Ad,mode:Td,doc:Nd.contents});break;case ve $ 1:break;default:throw new Ct $ 2(Nd)}od.length===0&&ud.length>0&&(od.push(...ud.reverse()),ud.length=0)}let Ed=ld.indexOf(ar);if(Ed!==-1){let Ad=ld.indexOf(ar,Ed+1),Td=ld.slice(0,Ed).join(""),Nd=ld.slice(Ed+1,Ad).join(""),Rd=ld.slice(Ad+1).join("");return{formatted:Td+Nd+Rd,cursorNodeStart:Td.length,cursorNodeText:Nd}}return{formatted:ld.join("")}}function Tp $ 1(Ra,qa,ed=0){let td=0;for(let rd=ed;rd<Ra.length;++rd)Ra[rd]===" "?td=td+qa-td%qa:td++;return td}var Wu=Tp $ 1;function dp(Ra,qa){let ed=Ra.lastIndexOf( `
` );return ed===-1?0:Wu(Ra.slice(ed+1).match(/^[ \t ]*/u)[0],qa)}var Gu $ 1=dp;function qr(Ra,qa,ed){let{node:td}=Ra;if(td.type==="TemplateLiteral"&&gp(Ra)){let cd=xp(Ra,ed,qa);if(cd)return cd}let rd="expressions";td.type==="TSTemplateLiteralType"&&(rd="types");let sd=[],od=Ra.map(qa,rd);sd.push(ke $ 2," ` " ) ; let ld = 0 ; return Ra . each ( ( { index : cd , node : ud } ) => { if ( sd . push ( qa ( ) ) , ud . tail ) return ; let { tabWidth : _d } = ed , Ed = ud . value . raw , Ad = Ed . includes ( `
` )?Gu $ 1(Ed,_d):ld;ld=Ad;let Td=od[cd],Nd=td[rd][cd],Rd=de $ 1(ed.originalText,k(ud),R $ 1(td.quasis[cd+1]));if(!Rd){let kd=es $ 1(Td,{...ed,printWidth:Number.POSITIVE_INFINITY}).formatted;kd.includes( `
` )?Rd=!0:Td=kd}Rd&&(d(Nd)||Nd.type==="Identifier"||q $ 1(Nd)||Nd.type==="ConditionalExpression"||Nd.type==="SequenceExpression"||Te $ 1(Nd)||De(Nd))&&(Td=[f([E $ 1,Td]),E $ 1]);let Bd=Ad===0&&Ed.endsWith( `
` )?he $ 1(Number.NEGATIVE_INFINITY,Td):xu(Td,Ad,_d);sd.push(l([" ${ ",Bd,ke$2," } "]))},"quasis"),sd.push(" ` "),sd}function Uu$1(Ra,qa){let ed=qa(" quasi ");return it$1(ed.label&&{tagged:!0,...ed.label},[qa(" tag "),qa(Ra.node.typeArguments?" typeArguments ":" typeParameters "),ke$2,ed])}function xp(Ra,qa,ed){let{node:td}=Ra,rd=td.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(rd.length>1||rd.some(sd=>sd.length>0)){qa.__inJestEach=!0;let sd=Ra.map(ed," expressions ");qa.__inJestEach=!1;let od=[],ld=sd.map(Ad=>" $ { "+es$1(Ad,{...qa,printWidth:Number.POSITIVE_INFINITY,endOfLine:" lf "}).formatted+" } " ) , cd = [ { hasLineBreak : ! 1 , cells : [ ] } ] ; for ( let Ad = 1 ; Ad < td . quasis . length ; Ad ++ ) { let Td = O$1 ( ! 1 , cd , - 1 ) , Nd = ld [ Ad - 1 ] ; Td . cells . push ( Nd ) , Nd . includes ( `
` )&&(Td.hasLineBreak=!0),td.quasis[Ad].value.raw.includes( `
` )&&cd.push({hasLineBreak:!1,cells:[]})}let ud=Math.max(rd.length,...cd.map(Ad=>Ad.cells.length)),_d=Array.from({length:ud}).fill(0),Ed=[{cells:rd},...cd.filter(Ad=>Ad.cells.length>0)];for(let{cells:Ad}of Ed.filter(Td=>!Td.hasLineBreak))for(let[Td,Nd]of Ad.entries())_d[Td]=Math.max(_d[Td],et $ 2(Nd));return od.push(ke $ 2," ` ",f([F,P$1(F,Ed.map(Ad=>P$1(" | ",Ad.cells.map((Td,Nd)=>Ad.hasLineBreak?Td:Td+" ".repeat(_d[Nd]-et$2(Td))))))]),F," ` "),od}}function hp(Ra,qa){let{node:ed}=Ra,td=qa();return d(ed)&&(td=l([f([E $ 1,td]),E $ 1])),[" ${ ",td,ke$2," } "]}function Gt $ 2(Ra,qa){return Ra.map(ed=>hp(ed,qa),"expressions")}function Wr $ 1(Ra,qa){return mt $ 1(Ra,ed=>typeof ed=="string"?qa?N $ 1(!1,ed,/( \\ *) ` / gu , "$1$1\\`" ) : ts$1 ( ed ) : ed ) } function ts$1 ( Ra ) { return N$1 ( ! 1 , Ra , /([\\`]|\$\{)/gu , String . raw ` \$ 1 ` ) } function gp ( { node : Ra , parent : qa } ) { let ed = /^[fx]?(?:describe|it|test)$/u ; return qa . type === "TaggedTemplateExpression" && qa . quasi === Ra && qa . tag . type === "MemberExpression" && qa . tag . property . type === "Identifier" && qa . tag . property . name === "each" && ( qa . tag . object . type === "Identifier" && ed . test ( qa . tag . object . name ) || qa . tag . object . type === "MemberExpression" && qa . tag . object . property . type === "Identifier" && ( qa . tag . object . property . name === "only" || qa . tag . object . property . name === "skip" ) && qa . tag . object . object . type === "Identifier" && ed . test ( qa . tag . object . object . name ) ) } var ns = [ ( Ra , qa ) => Ra . type === "ObjectExpression" && qa === "properties" , ( Ra , qa ) => Ra . type === "CallExpression" && Ra . callee . type === "Identifier" && Ra . callee . name === "Component" && qa === "arguments" , ( Ra , qa ) => Ra . type === "Decorator" && qa === "expression" ] ; function Nu$1 ( Ra ) { let qa = td => td . type === "TemplateLiteral" , ed = ( td , rd ) => Ae$1 ( td ) && ! td . computed && td . key . type === "Identifier" && td . key . name === "styles" && rd === "value" ; return Ra . match ( qa , ( td , rd ) => U$1 ( td ) && rd === "elements" , ed , ... ns ) || Ra . match ( qa , ed , ... ns ) } function Xu$2 ( Ra ) { return Ra . match ( qa => qa . type === "TemplateLiteral" , ( qa , ed ) => Ae$1 ( qa ) && ! qa . computed && qa . key . type === "Identifier" && qa . key . name === "template" && ed === "value" , ... ns ) } function rs ( Ra , qa ) { return d ( Ra , g$2 . Block | g$2 . Leading , ( { value : ed } ) => ed === ` ${ qa } ` ) } function Gr$1 ( { node : Ra , parent : qa } , ed ) { return rs ( Ra , ed ) || Sp ( qa ) && rs ( qa , ed ) || qa . type === "ExpressionStatement" && rs ( qa , ed ) } function Sp ( Ra ) { return Ra . type === "AsConstExpression" || Ra . type === "TSAsExpression" && Ra . typeAnnotation . type === "TSTypeReference" && Ra . typeAnnotation . typeName . type === "Identifier" && Ra . typeAnnotation . typeName . name === "const" } async function Bp$1 ( Ra , qa , ed ) { let { node : td } = ed , rd = td . quasis . map ( _d => _d . value . raw ) , sd = 0 , od = rd . reduce ( ( _d , Ed , Ad ) => Ad === 0 ? Ed : _d + "@prettier-placeholder-" + sd ++ + "-id" + Ed , "" ) , ld = await Ra ( od , { parser : "scss" } ) , cd = Gt$2 ( ed , qa ) , ud = bp ( ld , cd ) ; if ( ! ud ) throw new Error ( "Couldn't insert all the expressions" ) ; return [ "`" , f ( [ F , ud ] ) , E$1 , "`" ] } function bp ( Ra , qa ) { if ( ! w ( qa ) ) return Ra ; let ed = 0 , td = mt$1 ( Wt ( Ra ) , rd => typeof rd != "string" || ! rd . includes ( "@prettier-placeholder" ) ? rd : rd . split ( /@prettier-placeholder-(\d+)-id/u ) . map ( ( sd , od ) => od % 2 === 0 ? Ie ( sd ) : ( ed ++ , qa [ sd ] ) ) ) ; return qa . length === ed ? td : null } function Pp ( { node : Ra , parent : qa , grandparent : ed } ) { return ed && Ra . quasis && qa . type === "JSXExpressionContainer" && ed . type === "JSXElement" && ed . openingElement . name . name === "style" && ed . openingElement . attributes . some ( td => td . type === "JSXAttribute" && td . name . name === "jsx" ) || ( qa == null ? void 0 : qa . type ) === "TaggedTemplateExpression" && qa . tag . type === "Identifier" && qa . tag . name === "css" || ( qa == null ? void 0 : qa . type ) === "TaggedTemplateExpression" && qa . tag . type === "MemberExpression" && qa . tag . object . name === "css" && ( qa . tag . property . name === "global" || qa . tag . property . name === "resolve" ) } function Ur$1 ( Ra ) { return Ra . type === "Identifier" && Ra . name === "styled" } function Yu$1 ( Ra ) { return /^[A-Z]/u . test ( Ra . object . name ) && Ra . property . name === "extend" } function kp$1 ( { parent : Ra } ) { if ( ! Ra || Ra . type !== "TaggedTemplateExpression" ) return ! 1 ; let qa = Ra . tag . type === "ParenthesizedExpression" ? Ra . tag . expression : Ra . tag ; switch ( qa . type ) { case "MemberExpression" : return Ur$1 ( qa . object ) || Yu$1 ( qa ) ; case "CallExpression" : return Ur$1 ( qa . callee ) || qa . callee . type === "MemberExpression" && ( qa . callee . object . type === "MemberExpression" && ( Ur$1 ( qa . callee . object . object ) || Yu$1 ( qa . callee . object ) ) || qa . callee . object . type === " Cal
` ),Td=Ad.length,Nd=sd[ld],Rd=Td>2&&Ad[0].trim()===""&&Ad[1].trim()==="",Bd=Td>2&&Ad[Td-1].trim()===""&&Ad[Td-2].trim()==="",kd=Ad.every(Md=>/^ \s *(?:#[^ \n \r ]*)? $ /u.test(Md));if(!_d&&/#[^ \n \r ]* $ /u.test(Ad[Td-1]))return null;let Od=null;kd?Od=Op $ 1(Ad):Od=await Ra(Ed,{parser:"graphql"}),Od?(Od=Wr $ 1(Od,!1),!ud&&Rd&&od.push(""),od.push(Od),!_d&&Bd&&od.push("")):!ud&&!_d&&Rd&&od.push(""),Nd&&od.push(Nd)}return[" ` ",f([F,P$1(F,od)]),F," ` "]}function Op $ 1(Ra){let qa=[],ed=!1,td=Ra.map(rd=>rd.trim());for(let[rd,sd]of td.entries())sd!==""&&(td[rd-1]===""&&ed?qa.push([F,sd]):qa.push(sd),ed=!0);return qa.length===0?null:P $ 1(F,qa)}function _p({node:Ra,parent:qa}){return Gr $ 1({node:Ra,parent:qa},"GraphQL")||qa&&(qa.type==="TaggedTemplateExpression"&&(qa.tag.type==="MemberExpression"&&qa.tag.object.name==="graphql"&&qa.tag.property.name==="experimental"||qa.tag.type==="Identifier"&&(qa.tag.name==="gql"||qa.tag.name==="graphql"))||qa.type==="CallExpression"&&qa.callee.type==="Identifier"&&qa.callee.name==="graphql")}function jp(Ra){if(_p(Ra))return wp}var Vu $ 1=jp,ss $ 1=0;async function $ u $ 1(Ra,qa,ed,td,rd){let{node:sd}=td,od=ss $ 1;ss $ 1=ss $ 1+1>>>0;let ld=kd=> ` PRETTIER _HTML _PLACEHOLDER _$ { kd } _$ { od } _IN _JS ` ,cd=sd.quasis.map((kd,Od,Md)=>Od===Md.length-1?kd.value.cooked:kd.value.cooked+ld(Od)).join(""),ud=Gt $ 2(td,ed),_d=new RegExp(ld(String.raw ` ( \ d + ) ` ),"gu"),Ed=0,Ad=await qa(cd,{parser:Ra,__onHtmlRoot(kd){Ed=kd.children.length}}),Td=mt $ 1(Ad,kd=>{if(typeof kd!="string")return kd;let Od=[],Md=kd.split(_d);for(let Pd=0;Pd<Md.length;Pd++){let Fd=Md[Pd];if(Pd%2===0){Fd&&(Fd=ts $ 1(Fd),rd.__embeddedInHtml&&(Fd=N $ 1(!1,Fd,/< \/ (?=script \b )/giu,String.raw ` < \ / ` )),Od.push(Fd));continue}let Ud=Number(Fd);Od.push(ud[Ud])}return Od}),Nd=/^ \s /u.test(cd)?" ":"",Rd=/ \s $ /u.test(cd)?" ":"",Bd=rd.htmlWhitespaceSensitivity==="ignore"?F:Nd&&Rd?x:null;return Bd?l([" ` ",f([Bd,l(Td)]),Bd," ` "]):it $ 1({hug:!1},l([" ` ",Nd,Ed>1?f(l(Td)):l(Td),Rd," ` "]))}function vp(Ra){return Gr $ 1(Ra,"HTML")||Ra.match(qa=>qa.type==="TemplateLiteral",(qa,ed)=>qa.type==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="html"&&ed==="quasi")}var Mp $ 1= $ u $ 1.bind(void 0,"html"),Rp $ 1= $ u $ 1.bind(void 0,"angular");function Jp(Ra){if(vp(Ra))return Mp $ 1;if(Xu $ 2(Ra))return Rp $ 1}var Ku $ 1=Jp;async function qp(Ra,qa,ed){let{node:td}=ed,rd=N $ 1(!1,td.quasis[0].value.raw,/((?: \\ \\ )*) \\ ` / gu , ( cd , ud ) => "\\" . repeat ( ud . length / 2 ) + "`" ) , sd = Wp ( rd ) , od = sd !== "" ; od && ( rd = N$1 ( ! 1 , rd , new RegExp ( ` ^ ${ sd } ` , "gmu" ) , "" ) ) ; let ld = Wr$1 ( await Ra ( rd , { parser : "markdown" , _ _inJsTemplate : ! 0 } ) , ! 0 ) ; return [ "`" , od ? f ( [ E$1 , ld ] ) : [ Rr , du$1 ( ld ) ] , E$1 , "`" ] } function Wp ( Ra ) { let qa = Ra . match ( /^([^\S\n]*)\S/mu ) ; return qa === null ? "" : qa [ 1 ] } function Gp ( Ra ) { if ( Up ( Ra ) ) return qp } function Up ( { node : Ra , parent : qa } ) { return ( qa == null ? void 0 : qa . type ) === "TaggedTemplateExpression" && Ra . quasis . length === 1 && qa . tag . type === "Identifier" && ( qa . tag . name === "md" || qa . tag . name === "markdown" ) } var zu = Gp ; function Np$1 ( Ra ) { let { node : qa } = Ra ; if ( qa . type !== "TemplateLiteral" || Xp ( qa ) ) return ; let ed ; for ( let td of [ Hu$1 , Vu$1 , Ku$1 , zu ] ) if ( ed = td ( Ra ) , ! ! ed ) return qa . quasis . length === 1 && qa . quasis [ 0 ] . value . raw . trim ( ) === "" ? "``" : async ( ... rd ) => { let sd = await ed ( ... rd ) ; return sd && it$1 ( { embed : ! 0 , ... sd . label } , sd ) } } function Xp ( { quasis : Ra } ) { return Ra . some ( ( { value : { cooked : qa } } ) => qa === null ) } var Qu$1 = Np$1 , Yp = /\*\/$/ , Hp = /^\/\*\*?/ , ri$2 = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/ , Vp$1 = /(^|\s+)\/\/([^\n\r]*)/g , Zu$2 = /^(\r?\n)+/ , $p$1 = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g , ei$1 = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g , Kp$1 = /(\r?\n|^) *\* ?/g , ni$2 = [ ] ; function si$2 ( Ra ) { let qa = Ra . match ( ri$2 ) ; return qa ? qa [ 0 ] . trimStart ( ) : "" } function ui$1 ( Ra ) { let qa = Ra . match ( ri$2 ) , ed = qa == null ? void 0 : qa [ 0 ] ; return ed == null ? Ra : Ra . slice ( ed . length ) } function ii$2 ( Ra ) { let qa = `
` ;Ra=N $ 1(!1,Ra.replace(Hp,"").replace(Yp,""),Kp $ 1," $ 1");let ed="";for(;ed!==Ra;)ed=Ra,Ra=N $ 1(!1,Ra, $ p $ 1, ` $ { qa } $1 $2$ { qa } ` );Ra=Ra.replace(Zu $ 2,"").trimEnd();let td=Object.create(null),rd=N $ 1(!1,Ra,ei $ 1,"").replace(Zu $ 2,"").trimEnd(),sd;for(;sd=ei $ 1.exec(Ra);){let od=N $ 1(!1,sd[2],Vp $ 1,"");if(typeof td[sd[1]]=="string"||Array.isArray(td[sd[1]])){let ld=td[sd[1]];td[sd[1]]=[...ni $ 2,...Array.isArray(ld)?ld:[ld],od]}else td[sd[1]]=od}return{comments:rd,pragmas:td}}function ai $ 2({comments:Ra="",pragmas:qa={}}){let ed= `
` ,td="/**",rd=" *",sd=" */",od=Object.keys(qa),ld=od.flatMap(ud=>ti $ 2(ud,qa[ud])).map(ud=> ` $ { rd } $ { ud } $ { ed } ` ).join("");if(!Ra){if(od.length===0)return"";if(od.length===1&&!Array.isArray(qa[od[0]])){let ud=qa[od[0]];return ` $ { td } $ { ti$2 ( od [ 0 ] , ud ) [ 0 ] } $ { sd } ` }}let cd=Ra.split(ed).map(ud=> ` $ { rd } $ { ud } ` ).join(ed)+ed;return td+ed+(Ra?cd:"")+(Ra&&od.length>0?rd+ed:"")+ld+sd}function ti $ 2(Ra,qa){return[...ni $ 2,...Array.isArray(qa)?qa:[qa]].map(ed=> ` @ $ { Ra } $ { ed } ` .trim())}function zp $ 1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf( `
` );return qa===-1?Ra:Ra.slice(0,qa)}var oi $ 1=zp $ 1;function Qp(Ra){let qa=oi $ 1(Ra);qa&&(Ra=Ra.slice(qa.length+1));let ed=si $ 2(Ra),{pragmas:td,comments:rd}=ii $ 2(ed);return{shebang:qa,text:Ra,pragmas:td,comments:rd}}function pi $ 2(Ra){let{shebang:qa,text:ed,pragmas:td,comments:rd}=Qp(Ra),sd=ui $ 1(ed),od=ai $ 2({pragmas:{format:"",...td},comments:rd.trimStart()});return(qa? ` $ { qa }
` :"")+od+(sd.startsWith( `
2024-08-27 22:31:52 +08:00
` )? `
` : `
2024-09-16 00:03:18 +08:00
` )+sd}function Zp(Ra,qa){let{originalText:ed,[Symbol.for("comments")]:td,locStart:rd,locEnd:sd,[Symbol.for("printedComments")]:od}=qa,{node:ld}=Ra,cd=rd(ld),ud=sd(ld);for(let _d of td)rd(_d)>=cd&&sd(_d)<=ud&&od.add(_d);return ed.slice(cd,ud)}var ci $ 1=Zp;function us $ 1(Ra,qa){var ed,td,rd,sd,od,ld,cd,ud,_d;if(Ra.isRoot)return!1;let{node:Ed,key:Ad,parent:Td}=Ra;if(qa.__isInHtmlInterpolation&&!qa.bracketSpacing&&nc $ 2(Ed)&&or(Ra))return!0;if(ec $ 1(Ed))return!1;if(Ed.type==="Identifier"){if((ed=Ed.extra)!=null&&ed.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_ \d +_ \d +_IN_JS $ /u.test(Ed.name)||Ad==="left"&&(Ed.name==="async"&&!Td.await||Ed.name==="let")&&Td.type==="ForOfStatement")return!0;if(Ed.name==="let"){let Nd=(td=Ra.findAncestor(Rd=>Rd.type==="ForOfStatement"))==null?void 0:td.left;if(Nd&&ie $ 1(Nd,Rd=>Rd===Ed))return!0}if(Ad==="object"&&Ed.name==="let"&&Td.type==="MemberExpression"&&Td.computed&&!Td.optional){let Nd=Ra.findAncestor(Bd=>Bd.type==="ExpressionStatement"||Bd.type==="ForStatement"||Bd.type==="ForInStatement"),Rd=Nd?Nd.type==="ExpressionStatement"?Nd.expression:Nd.type==="ForStatement"?Nd.init:Nd.left:void 0;if(Rd&&ie $ 1(Rd,Bd=>Bd===Ed))return!0}if(Ad==="expression")switch(Ed.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let Nd=Ra.findAncestor(Rd=>!Te $ 1(Rd));if(Nd!==Td&&Nd.type==="ExpressionStatement")return!0}}return!1}if(Ed.type==="ObjectExpression"||Ed.type==="FunctionExpression"||Ed.type==="ClassExpression"||Ed.type==="DoExpression"){let Nd=(rd=Ra.findAncestor(Rd=>Rd.type==="ExpressionStatement"))==null?void 0:rd.expression;if(Nd&&ie $ 1(Nd,Rd=>Rd===Ed))return!0}if(Ed.type==="ObjectExpression"){let Nd=(sd=Ra.findAncestor(Rd=>Rd.type==="ArrowFunctionExpression"))==null?void 0:sd.body;if(Nd&&Nd.type!=="SequenceExpression"&&Nd.type!=="AssignmentExpression"&&ie $ 1(Nd,Rd=>Rd===Ed))return!0}switch(Td.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(Ad==="superClass"&&(Ed.type==="ArrowFunctionExpression"||Ed.type==="AssignmentExpression"||Ed.type==="AwaitExpression"||Ed.type==="BinaryExpression"||Ed.type==="ConditionalExpression"||Ed.type==="LogicalExpression"||Ed.type==="NewExpression"||Ed.type==="ObjectExpression"||Ed.type==="SequenceExpression"||Ed.type==="TaggedTemplateExpression"||Ed.type==="UnaryExpression"||Ed.type==="UpdateExpression"||Ed.type==="YieldExpression"||Ed.type==="TSNonNullExpression"||Ed.type==="ClassExpression"&&w(Ed.decorators)))return!0;break;case"ExportDefaultDeclaration":return li $ 2(Ra,qa)||Ed.type==="SequenceExpression";case"Decorator":if(Ad==="expression"&&!uc $ 1(Ed))return!0;break;case"TypeAnnotation":if(Ra.match(void 0,void 0,(Nd,Rd)=>Rd==="returnType"&&Nd.type==="ArrowFunctionExpression")&&rc $ 1(Ed))return!0;break;case"BinaryExpression":if(Ad==="left"&&(Td.operator==="in"||Td.operator==="instanceof")&&Ed.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(Ad==="init"&&Ra.match(void 0,void 0,(Nd,Rd)=>Rd==="declarations"&&Nd.type==="VariableDeclaration",(Nd,Rd)=>Rd==="left"&&Nd.type==="ForInStatement"))return!0;break}switch(Ed.type){case"UpdateExpression":if(Td.type==="UnaryExpression")return Ed.prefix&&(Ed.operator==="++"&&Td.operator==="+"||Ed.operator==="--"&&Td.operator==="-");case"UnaryExpression":switch(Td.type){case"UnaryExpression":return Ed.operator===Td.operator&&(Ed.operator==="+"||Ed.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return Ad==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return Ad==="callee";case"BinaryExpression":return Ad==="left"&&Td.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(Td.type==="UpdateExpression"||Ed.operator==="in"&&tc $ 1(Ra))return!0;if(Ed.operator==="|>"&&(od=Ed.extra)!=null&&od.parenthesized){let Nd=Ra.grandparent;if(Nd.type==="BinaryExpression"&&Nd.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"As
\ r ` ),ms $ 1=Ra=>Ra===""||Ra===x||Ra===F||Ra===E $ 1;function cc(Ra,qa,ed){var td,rd,sd;let{node:od}=Ra;if(od.type==="JSXElement"&&gc(od))return[ed("openingElement"),ed("closingElement")];let ld=od.type==="JSXElement"?ed("openingElement"):ed("openingFragment"),cd=od.type==="JSXElement"?ed("closingElement"):ed("closingFragment");if(od.children.length===1&&od.children[0].type==="JSXExpressionContainer"&&(od.children[0].expression.type==="TemplateLiteral"||od.children[0].expression.type==="TaggedTemplateExpression"))return[ld,...Ra.map(ed,"children"),cd];od.children=od.children.map(Ud=>Sc(Ud)?{type:"JSXText",value:" ",raw:" "}:Ud);let ud=od.children.some(X $ 1),_d=od.children.filter(Ud=>Ud.type==="JSXExpressionContainer").length>1,Ed=od.type==="JSXElement"&&od.openingElement.attributes.length>1,Ad=ne $ 1(ld)||ud||Ed||_d,Td=Ra.parent.rootMarker==="mdx",Nd=qa.singleQuote?"{' '}":'{" "}',Rd=Td?" ":b([Nd,E $ 1]," "),Bd=((rd=(td=od.openingElement)==null?void 0:td.name)==null?void 0:rd.name)==="fbt",kd=lc $ 1(Ra,qa,ed,Rd,Bd),Od=od.children.some(Ud=>pr(Ud));for(let Ud=kd.length-2;Ud>=0;Ud--){let Gd=kd[Ud]===""&&kd[Ud+1]==="",Qd=kd[Ud]===F&&kd[Ud+1]===""&&kd[Ud+2]===F,Vd=(kd[Ud]===E $ 1||kd[Ud]===F)&&kd[Ud+1]===""&&kd[Ud+2]===Rd,zd=kd[Ud]===Rd&&kd[Ud+1]===""&&(kd[Ud+2]===E $ 1||kd[Ud+2]===F),Xd=kd[Ud]===Rd&&kd[Ud+1]===""&&kd[Ud+2]===Rd,df=kd[Ud]===E $ 1&&kd[Ud+1]===""&&kd[Ud+2]===F||kd[Ud]===F&&kd[Ud+1]===""&&kd[Ud+2]===E $ 1;Qd&&Od||Gd||Vd||Xd||df?kd.splice(Ud,2):zd&&kd.splice(Ud+1,2)}for(;kd.length>0&&ms $ 1(O $ 1(!1,kd,-1));)kd.pop();for(;kd.length>1&&ms $ 1(kd[0])&&ms $ 1(kd[1]);)kd.shift(),kd.shift();let Md=[];for(let[Ud,Gd]of kd.entries()){if(Gd===Rd){if(Ud===1&&kd[Ud-1]===""){if(kd.length===2){Md.push(Nd);continue}Md.push([Nd,F]);continue}else if(Ud===kd.length-1){Md.push(Nd);continue}else if(kd[Ud-1]===""&&kd[Ud-2]===F){Md.push(Nd);continue}}Md.push(Gd),ne $ 1(Gd)&&(Ad=!0)}let Pd=Od?qt $ 1(Md):l(Md,{shouldBreak:!0});if(((sd=qa.cursorNode)==null?void 0:sd.type)==="JSXText"&&od.children.includes(qa.cursorNode)&&(Pd=[Un $ 1,Pd,Un $ 1]),Td)return Pd;let Fd=l([ld,f([F,Pd]),F,cd]);return Ad?Fd:ze $ 1([l([ld,...kd,cd]),Fd])}function lc $ 1(Ra,qa,ed,td,rd){let sd=[];return Ra.each(({node:od,next:ld})=>{if(od.type==="JSXText"){let cd=fe $ 1(od);if(pr(od)){let ud=Nr.split(cd,!0);ud[0]===""&&(sd.push(""),ud.shift(),/ \n /u.test(ud[0])?sd.push(fi $ 1(rd,ud[1],od,ld)):sd.push(td),ud.shift());let _d;if(O $ 1(!1,ud,-1)===""&&(ud.pop(),_d=ud.pop()),ud.length===0)return;for(let[Ed,Ad]of ud.entries())Ed%2===1?sd.push(x):sd.push(Ad);_d!==void 0?/ \n /u.test(_d)?sd.push(fi $ 1(rd,O $ 1(!1,sd,-1),od,ld)):sd.push(td):sd.push(Di $ 1(rd,O $ 1(!1,sd,-1),od,ld))}else/ \n /u.test(cd)?cd.match(/ \n /gu).length>1&&sd.push("",F):sd.push("",td)}else{let cd=ed();if(sd.push(cd),ld&&pr(ld)){let ud=Nr.trim(fe $ 1(ld)),[_d]=Nr.split(ud);sd.push(Di $ 1(rd,_d,od,ld))}else sd.push(F)}},"children"),sd}function Di $ 1(Ra,qa,ed,td){return Ra?"":ed.type==="JSXElement"&&!ed.closingElement||(td==null?void 0:td.type)==="JSXElement"&&!td.closingElement?qa.length===1?E $ 1:F:E $ 1}function fi $ 1(Ra,qa,ed,td){return Ra?F:qa.length===1?ed.type==="JSXElement"&&!ed.closingElement||(td==null?void 0:td.type)==="JSXElement"&&!td.closingElement?F:E $ 1:F}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc(Ra,qa,ed){let{parent:td}=Ra;if(mc.has(td.type))return qa;let rd=Ra.match(void 0,od=>od.type==="ArrowFunctionExpression",L $ 1,od=>od.type==="JSXExpressionContainer"),sd=Be $ 1(Ra,ed);return l([sd?"":b("("),f([E $ 1,qa]),E $ 1,sd?"":b(")")],{shouldBreak:rd})}function Dc $ 1(Ra,qa,ed){let{node:td}=Ra,rd=[];if(rd.push(ed("name")),td.value){let sd;if(Q $ 2(td.value)){let od=fe $ 1(td.value),ld=N $ 1(!1,N $ 1(!1,od.slice(1,-1),"'","'"),""",'"'),cd=xr(ld,qa.jsxSingleQuote);ld=cd==='"'?N $ 1(!1,ld,'"',"""):N $ 1(!1,ld,"'","'"),sd=Ra.call(()=>ye $ 1(Ra,Ie(cd+ld+cd),qa),"value")}else sd=ed("value");rd.push("=",sd)}return rd}function fc(Ra,qa,ed){let{node:td}=Ra,rd=(sd,od)=>sd.ty
` )&&!od&&!d(sd.attributes[0]))return l(["<",ed("name"),sd.typeArguments?ed("typeArguments"):ed("typeParameters")," ",...Ra.map(ed,"attributes"),sd.selfClosing?" />":">"]);let ld=(rd=sd.attributes)==null?void 0:rd.some(ud=>Q $ 2(ud.value)&&ud.value.value.includes( `
` )),cd=qa.singleAttributePerLine&&sd.attributes.length>1?F:x;return l(["<",ed("name"),sd.typeArguments?ed("typeArguments"):ed("typeParameters"),f(Ra.map(()=>[cd,ed()],"attributes")),...Fc(sd,qa,od)],{shouldBreak:ld})}function Fc(Ra,qa,ed){return Ra.selfClosing?[x,"/>"]:Cc(Ra,qa,ed)?[">"]:[E $ 1,">"]}function Cc(Ra,qa,ed){let td=Ra.attributes.length>0&&d(O $ 1(!1,Ra.attributes,-1),g $ 2.Trailing);return Ra.attributes.length===0&&!ed||(qa.bracketSameLine||qa.jsxBracketSameLine)&&(!ed||Ra.attributes.length>0)&&!td}function Ac(Ra,qa,ed){let{node:td}=Ra,rd=[];rd.push("</");let sd=ed("name");return d(td.name,g $ 2.Leading|g $ 2.Line)?rd.push(f([F,sd]),F):d(td.name,g $ 2.Leading|g $ 2.Block)?rd.push(" ",sd):rd.push(sd),rd.push(">"),rd}function Tc(Ra,qa){let{node:ed}=Ra,td=d(ed),rd=d(ed,g $ 2.Line),sd=ed.type==="JSXOpeningFragment";return[sd?"<":"</",f([rd?F:td&&!sd?" ":"",M $ 1(Ra,qa)]),rd?F:"",">"]}function dc(Ra,qa,ed){let td=ye $ 1(Ra,cc(Ra,qa,ed),qa);return yc(Ra,td,qa)}function xc(Ra,qa){let{node:ed}=Ra,td=d(ed,g $ 2.Line);return[M $ 1(Ra,qa,{indent:td}),td?F:""]}function hc(Ra,qa,ed){let{node:td}=Ra;return["{",Ra.call(({node:rd})=>{let sd=["...",ed()];return!d(rd)||!zn $ 1(Ra)?sd:[f([E $ 1,ye $ 1(Ra,sd,qa)]),E $ 1]},td.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei $ 1(Ra,qa,ed){let{node:td}=Ra;if(td.type.startsWith("JSX"))switch(td.type){case"JSXAttribute":return Dc $ 1(Ra,qa,ed);case"JSXIdentifier":return td.name;case"JSXNamespacedName":return P $ 1(":",[ed("namespace"),ed("name")]);case"JSXMemberExpression":return P $ 1(".",[ed("object"),ed("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(Ra,qa,ed);case"JSXExpressionContainer":return fc(Ra,qa,ed);case"JSXFragment":case"JSXElement":return dc(Ra,qa,ed);case"JSXOpeningElement":return Ec(Ra,qa,ed);case"JSXClosingElement":return Ac(Ra,qa,ed);case"JSXOpeningFragment":case"JSXClosingFragment":return Tc(Ra,qa);case"JSXEmptyExpression":return xc(Ra,qa);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me $ 2(td,"JSX")}}function gc(Ra){if(Ra.children.length===0)return!0;if(Ra.children.length>1)return!1;let qa=Ra.children[0];return qa.type==="JSXText"&&!pr(qa)}function pr(Ra){return Ra.type==="JSXText"&&(Nr.hasNonWhitespaceCharacter(fe $ 1(Ra))||!/ \n /u.test(fe $ 1(Ra)))}function Sc(Ra){return Ra.type==="JSXExpressionContainer"&&Q $ 2(Ra.expression)&&Ra.expression.value===" "&&!d(Ra.expression)}function Fi(Ra){let{node:qa,parent:ed}=Ra;if(!X $ 1(qa)||!X $ 1(ed))return!1;let{index:td,siblings:rd}=Ra,sd;for(let od=td;od>0;od--){let ld=rd[od-1];if(!(ld.type==="JSXText"&&!pr(ld))){sd=ld;break}}return(sd==null?void 0:sd.type)==="JSXExpressionContainer"&&sd.expression.type==="JSXEmptyExpression"&&Bt $ 2(sd.expression)}function Bc(Ra){return Bt $ 2(Ra.node)||Fi(Ra)}var Xr $ 1=Bc,bc=0;function Yr $ 2(Ra,qa,ed){var td;let{node:rd,parent:sd,grandparent:od,key:ld}=Ra,cd=ld!=="body"&&(sd.type==="IfStatement"||sd.type==="WhileStatement"||sd.type==="SwitchStatement"||sd.type==="DoWhileStatement"),ud=rd.operator==="|>"&&((td=Ra.root.extra)==null?void 0:td.__isUsingHackPipeline),_d=ys $ 1(Ra,ed,qa,!1,cd);if(cd)return _d;if(ud)return l(_d);if(L $ 1(sd)&&sd.callee===rd||sd.type==="UnaryExpression"||q $ 1(sd)&&!sd.computed)return l([f([E $ 1,..._d]),E $ 1]);let Ed=sd.type==="ReturnStatement"||sd.type==="ThrowStatement"||sd.type==="JSXExpressionContainer"&&od.type==="JSXAttribute"||rd.operator!=="|"&&sd.type==="JsExpressionRoot"||rd.type!=="NGPipeExpression"&&(sd.type==="NGRoot"&&qa.parser==="__ng_binding"||sd.type==="NGMicrosyntaxExpression"&&od.type==="NGMicrosyntax"&&od.body.length===1)||rd===sd.body&&sd.type==="ArrowFunctionExpression"||rd!==sd.body&&sd.type==="ForStatement"||sd.type==="ConditionalExpression"&&od.type!=="ReturnStatement"&&od.type!=="ThrowStatement"&&!L $ 1(od)||sd.type==="TemplateLiteral",Ad=sd.type==="AssignmentExpression"||sd.type==="VariableDeclarator"||sd.type==="ClassProperty"||sd.type==="PropertyDefinition"||sd.type==="TSAbstractPropertyDefinition"||sd.type==="ClassPrivateProperty"||Ae $ 1(sd),Td=De(rd.left)&&nr(rd.operator,rd.left.operator);if(Ed||Ut $ 1(rd)&&!Td
` +Od+Ad("^")}return" "+Td(kd)+Nd}).join( `
` )}toString(){let od=this.showSourceCode();return od&&(od= `
2024-08-30 15:19:18 +08:00
2024-09-16 00:03:18 +08:00
` +od+ `
` ),this.name+": "+this.message+od}};qa.exports=rd,rd.default=rd}), $ t $ 1=y((Ra,qa)=>{var ed={after: `
2024-08-30 15:19:18 +08:00
` ,beforeClose: `
2024-08-27 22:31:52 +08:00
` ,beforeComment: `
2024-08-30 15:19:18 +08:00
` ,beforeDecl: `
` ,beforeOpen:" ",beforeRule: `
2024-09-16 00:03:18 +08:00
` ,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function td(sd){return sd[0].toUpperCase()+sd.slice(1)}var rd=class{constructor(sd){this.builder=sd}atrule(sd,od){let ld="@"+sd.name,cd=sd.params?this.rawValue(sd,"params"):"";if(typeof sd.raws.afterName<"u"?ld+=sd.raws.afterName:cd&&(ld+=" "),sd.nodes)this.block(sd,ld+cd);else{let ud=(sd.raws.between||"")+(od?";":"");this.builder(ld+cd+ud,sd)}}beforeAfter(sd,od){let ld;sd.type==="decl"?ld=this.raw(sd,null,"beforeDecl"):sd.type==="comment"?ld=this.raw(sd,null,"beforeComment"):od==="before"?ld=this.raw(sd,null,"beforeRule"):ld=this.raw(sd,null,"beforeClose");let cd=sd.parent,ud=0;for(;cd&&cd.type!=="root";)ud+=1,cd=cd.parent;if(ld.includes( `
` )){let _d=this.raw(sd,null,"indent");if(_d.length)for(let Ed=0;Ed<ud;Ed++)ld+=_d}return ld}block(sd,od){let ld=this.raw(sd,"between","beforeOpen");this.builder(od+ld+"{",sd,"start");let cd;sd.nodes&&sd.nodes.length?(this.body(sd),cd=this.raw(sd,"after")):cd=this.raw(sd,"after","emptyBody"),cd&&this.builder(cd),this.builder("}",sd,"end")}body(sd){let od=sd.nodes.length-1;for(;od>0&&sd.nodes[od].type==="comment";)od-=1;let ld=this.raw(sd,"semicolon");for(let cd=0;cd<sd.nodes.length;cd++){let ud=sd.nodes[cd],_d=this.raw(ud,"before");_d&&this.builder(_d),this.stringify(ud,od!==cd||ld)}}comment(sd){let od=this.raw(sd,"left","commentLeft"),ld=this.raw(sd,"right","commentRight");this.builder("/*"+od+sd.text+ld+"*/",sd)}decl(sd,od){let ld=this.raw(sd,"between","colon"),cd=sd.prop+ld+this.rawValue(sd,"value");sd.important&&(cd+=sd.raws.important||" !important"),od&&(cd+=";"),this.builder(cd,sd)}document(sd){this.body(sd)}raw(sd,od,ld){let cd;if(ld||(ld=od),od&&(cd=sd.raws[od],typeof cd<"u"))return cd;let ud=sd.parent;if(ld==="before"&&(!ud||ud.type==="root"&&ud.first===sd||ud&&ud.type==="document"))return"";if(!ud)return ed[ld];let _d=sd.root();if(_d.rawCache||(_d.rawCache={}),typeof _d.rawCache[ld]<"u")return _d.rawCache[ld];if(ld==="before"||ld==="after")return this.beforeAfter(sd,ld);{let Ed="raw"+td(ld);this[Ed]?cd=this[Ed](_d,sd):_d.walk(Ad=>{if(cd=Ad.raws[od],typeof cd<"u")return!1})}return typeof cd>"u"&&(cd=ed[ld]),_d.rawCache[ld]=cd,cd}rawBeforeClose(sd){let od;return sd.walk(ld=>{if(ld.nodes&&ld.nodes.length>0&&typeof ld.raws.after<"u")return od=ld.raws.after,od.includes( `
` )&&(od=od.replace(/[^ \n ]+ $ /,"")),!1}),od&&(od=od.replace(/ \S /g,"")),od}rawBeforeComment(sd,od){let ld;return sd.walkComments(cd=>{if(typeof cd.raws.before<"u")return ld=cd.raws.before,ld.includes( `
` )&&(ld=ld.replace(/[^ \n ]+ $ /,"")),!1}),typeof ld>"u"?ld=this.raw(od,null,"beforeDecl"):ld&&(ld=ld.replace(/ \S /g,"")),ld}rawBeforeDecl(sd,od){let ld;return sd.walkDecls(cd=>{if(typeof cd.raws.before<"u")return ld=cd.raws.before,ld.includes( `
` )&&(ld=ld.replace(/[^ \n ]+ $ /,"")),!1}),typeof ld>"u"?ld=this.raw(od,null,"beforeRule"):ld&&(ld=ld.replace(/ \S /g,"")),ld}rawBeforeOpen(sd){let od;return sd.walk(ld=>{if(ld.type!=="decl"&&(od=ld.raws.between,typeof od<"u"))return!1}),od}rawBeforeRule(sd){let od;return sd.walk(ld=>{if(ld.nodes&&(ld.parent!==sd||sd.first!==ld)&&typeof ld.raws.before<"u")return od=ld.raws.before,od.includes( `
` )&&(od=od.replace(/[^ \n ]+ $ /,"")),!1}),od&&(od=od.replace(/ \S /g,"")),od}rawColon(sd){let od;return sd.walkDecls(ld=>{if(typeof ld.raws.between<"u")return od=ld.raws.between.replace(/[^ \s :]/g,""),!1}),od}rawEmptyBody(sd){let od;return sd.walk(ld=>{if(ld.nodes&&ld.nodes.length===0&&(od=ld.raws.after,typeof od<"u"))return!1}),od}rawIndent(sd){if(sd.raws.indent)return sd.raws.indent;let od;return sd.walk(ld=>{let cd=ld.parent;if(cd&&cd!==sd&&cd.parent&&cd.parent===sd&&typeof ld.raws.before<"u"){let ud=ld.raws.before.split( `
` );return od=ud[ud.length-1],od=od.replace(/ \S /g,""),!1}}),od}rawSemicolon(sd){let od;return sd.walk(ld=>{if(ld.nodes&&ld.nodes.length&&ld.last.type==="decl"&&(od=ld.raws.semicolon,typeof od<"u"))return!1}),od}rawValue(sd,od){let ld=sd[od],cd=sd.raws[od];return cd&&cd.value===ld?cd.raw:ld}root(sd){this.body(sd),sd.raws.after&&this.builder(sd.raws.after)}rule(sd){this.block(sd,this.rawValue(sd,"selector")),sd.raws.ownSemicolon&&this.builder(sd.raws.ownSemicolon,sd,"end")}stringify(sd,od){if(!this[sd.type])throw new Error("Unknown AST node type "+sd.type+". Maybe you need to change PostCSS stringifier.");this[sd.type](sd,od)}};qa.exports=rd,rd.default=rd}),it=y((Ra,qa)=>{var ed= $ t $ 1();function td(rd,sd){new ed(sd).stringify(rd)}qa.exports=td,td.default=td}),at $ 1=y((Ra,qa)=>{var{isClean:ed,my:td}=Ut(),rd=Ft $ 1(),sd= $ t $ 1(),od=it();function ld(ud,_d){let Ed=new ud.constructor;for(let Ad in ud){if(!Object.prototype.hasOwnProperty.call(ud,Ad)||Ad==="proxyCache")continue;let Td=ud[Ad],Nd=typeof Td;Ad==="parent"&&Nd==="object"?_d&&(Ed[Ad]=_d):Ad==="source"?Ed[Ad]=Td:Array.isArray(Td)?Ed[Ad]=Td.map(Rd=>ld(Rd,Ed)):(Nd==="object"&&Td!==null&&(Td=ld(Td)),Ed[Ad]=Td)}return Ed}var cd=class{constructor(ud={}){this.raws={},this[ed]=!1,this[td]=!0;for(let _d in ud)if(_d==="nodes"){this.nodes=[];for(let Ed of ud[_d])typeof Ed.clone=="function"?this.append(Ed.clone()):this.append(Ed)}else this[_d]=ud[_d]}addToError(ud){if(ud.postcssNode=this,ud.stack&&this.source&&/ \n \s {4}at /.test(ud.stack)){let _d=this.source;ud.stack=ud.stack.replace(/ \n \s {4}at /, ` $ & $ { _d . input . from } : $ { _d . start . line } : $ { _d . start . column } $ & ` )}return ud}after(ud){return this.parent.insertAfter(this,ud),this}assign(ud={}){for(let _d in ud)this[_d]=ud[_d];return this}before(ud){return this.parent.insertBefore(this,ud),this}cleanRaws(ud){delete this.raws.before,delete this.raws.after,ud||delete this.raws.between}clone(ud={}){let _d=ld(this);for(let Ed in ud)_d[Ed]=ud[Ed];return _d}cloneAfter(ud={}){let _d=this.clone(ud);return this.parent.insertAfter(this,_d),_d}cloneBefore(ud={}){let _d=this.clone(ud);return this.parent.insertBefore(this,_d),_d}error(ud,_d={}){if(this.source){let{end:Ed,start:Ad}=this.rangeBy(_d);return this.source.input.error(ud,{column:Ad.column,line:Ad.line},{column:Ed.column,line:Ed.line},_d)}return new rd(ud)}getProxyProcessor(){return{get(ud,_d){return _d==="proxyOf"?ud:_d==="root"?()=>ud.root().toProxy():ud[_d]},set(ud,_d,Ed){return ud[_d]===Ed||(ud[_d]=Ed,(_d==="prop"||_d==="value"||_d==="name"||_d==="params"||_d==="important"||_d==="text")&&ud.markDirty()),!0}}}markDirty(){if(this[ed]){this[ed]=!1;let ud=this;for(;ud=ud.parent;)ud[ed]=!1}}next(){if(!this.parent)return;let ud=this.parent.index(this);return this.parent.nodes[ud+1]}positionBy(ud,_d){let Ed=this.source.start;if(ud.index)Ed=this.positionInside(ud.index,_d);else if(ud.word){_d=this.toString();let Ad=_d.indexOf(ud.word);Ad!==-1&&(Ed=this.positionInside(Ad,_d))}return Ed}positionInside(ud,_d){let Ed=_d||this.toString(),Ad=this.source.start.column,Td=this.source.start.line;for(let Nd=0;Nd<ud;Nd++)Ed[Nd]=== `
` ?(Ad=1,Td+=1):Ad+=1;return{column:Ad,line:Td}}prev(){if(!this.parent)return;let ud=this.parent.index(this);return this.parent.nodes[ud-1]}rangeBy(ud){let _d={column:this.source.start.column,line:this.source.start.line},Ed=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:_d.column+1,line:_d.line};if(ud.word){let Ad=this.toString(),Td=Ad.indexOf(ud.word);Td!==-1&&(_d=this.positionInside(Td,Ad),Ed=this.positionInside(Td+ud.word.length,Ad))}else ud.start?_d={column:ud.start.column,line:ud.start.line}:ud.index&&(_d=this.positionInside(ud.index)),ud.end?Ed={column:ud.end.column,line:ud.end.line}:typeof ud.endIndex=="number"?Ed=this.positionInside(ud.endIndex):ud.index&&(Ed=this.positionInside(ud.index+1));return(Ed.line<_d.line||Ed.line===_d.line&&Ed.column<=_d.column)&&(Ed={column:_d.column+1,line:_d.line}),{end:Ed,start:_d}}raw(ud,_d){return new sd().raw(this,ud,_d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...ud){if(this.parent){let _d=this,Ed=!1;for(let Ad of ud)Ad===this?Ed=!0:Ed?(this.parent.insertAfter(_d,Ad),_d=Ad):this.parent.insertBefore(_d,Ad);Ed||this.remove()}return this}root(){let ud=this;for(;ud.parent&&ud.parent.type!=="document";)ud=ud.parent;return ud}toJSON(ud,_d){let Ed={},Ad=_d==null;_d=_d||new Map;let Td=0;for(let Nd in this){if(!Object.prototype.hasOwnProperty.call(this,Nd)||Nd==="parent"||Nd==="proxyCache")continue;let Rd=this[Nd];if(Array.isArray(Rd))Ed[Nd]=Rd.map(Bd=>typeof Bd=="object"&&Bd.toJSON?Bd.toJSON(null,_d):Bd);else if(typeof Rd=="object"&&Rd.toJSON)Ed[Nd]=Rd.toJSON(null,_d);else if(Nd==="source"){let Bd=_d.get(Rd.input);Bd==null&&(Bd=Td,_d.set(Rd.input,Td),Td++),Ed[Nd]={end:Rd.end,inputId:Bd,start:Rd.start}}else Ed[Nd]=Rd}return Ad&&(Ed.inputs=[..._d.keys()].map(Nd=>Nd.toJSON())),Ed}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(ud=od){ud.stringify&&(ud=ud.stringify);let _d="";return ud(this,Ed=>{_d+=Ed}),_d}warn(ud,_d,Ed){let Ad={node:this};for(let Td in Ed)Ad[Td]=Ed[Td];return ud.warn(_d,Ad)}get proxyOf(){return this}};qa.exports=cd,cd.default=cd}),lt=y((Ra,qa)=>{var ed=at $ 1(),td=class extends ed{constructor(rd){rd&&typeof rd.value<"u"&&typeof rd.value!="string"&&(rd={...rd,value:String(rd.value)}),super(rd),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]===" $ "}};qa.exports=td,td.default=td}),Oe=y((Ra,qa)=>{var ed=at $ 1(),td=class extends ed{constructor(rd){super(rd),this.type="comment"}};qa.exports=td,td.default=td}),re=y((Ra,qa)=>{var{isClean:ed,my:td}=Ut(),rd=lt(),sd=Oe(),od=at $ 1(),ld,cd,ud,_d;function Ed(Nd){return Nd.map(Rd=>(Rd.nodes&&(Rd.nodes=Ed(Rd.nodes)),delete Rd.source,Rd))}function Ad(Nd){if(Nd[ed]=!1,Nd.proxyOf.nodes)for(let Rd of Nd.proxyOf.nodes)Ad(Rd)}var Td=class gS extends od{append(...Rd){for(let Bd of Rd){let kd=this.normalize(Bd,this.last);for(let Od of kd)this.proxyOf.nodes.push(Od)}return this.markDirty(),this}cleanRaws(Rd){if(super.cleanRaws(Rd),this.nodes)for(let Bd of this.nodes)Bd.cleanRaws(Rd)}each(Rd){if(!this.proxyOf.nodes)return;let Bd=this.getIterator(),kd,Od;for(;this.indexes[Bd]<this.proxyOf.nodes.length&&(kd=this.indexes[Bd],Od=Rd(this.proxyOf.nodes[kd],kd),Od!==!1);)this.indexes[Bd]+=1;return delete this.indexes[Bd],Od}every(Rd){return this.nodes.every(Rd)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let Rd=this.lastEach;return this.indexes[Rd]=0,Rd}getProxyProcessor(){return{get(Rd,Bd){return Bd==="proxyOf"?Rd:Rd[Bd]?Bd==="each"||typeof Bd=="string"&&Bd.startsWith("walk")?(...kd)=>Rd[Bd](...kd.map(Od=>typeof Od=="function"?(Md,Pd)=>Od(Md.toProxy(),Pd):Od)):Bd==="every"||Bd==="some"?kd=>Rd[Bd]((Od,...Md)=>kd(Od.toProxy(),...Md)):Bd==="root"?()=>Rd.root().toProxy():Bd==="nodes"?Rd.nodes.map(kd=>kd.toProxy()):Bd==="first"||Bd==="last"?Rd[Bd].toProxy():Rd[Bd]:Rd[Bd]},set(Rd,Bd,kd){return Rd[Bd]===kd||(Rd[Bd]=kd,(Bd==="name"||Bd==="params"||Bd==="selector")&&Rd.markDirty()),!0}}}index(Rd){return typeof Rd=="number"?Rd:
` ," "];return ed.split(td,rd)},split(td,rd,sd){let od=[],ld="",cd=!1,ud=0,_d=!1,Ed="",Ad=!1;for(let Td of td)Ad?Ad=!1:Td===" \\ "?Ad=!0:_d?Td===Ed&&(_d=!1):Td==='"'||Td==="'"?(_d=!0,Ed=Td):Td==="("?ud+=1:Td===")"?ud>0&&(ud-=1):ud===0&&rd.includes(Td)&&(cd=!0),cd?(ld!==""&&od.push(ld.trim()),ld="",cd=!1):ld+=Td;return(sd||ld!=="")&&od.push(ld.trim()),od}};qa.exports=ed,ed.default=ed}),jt=y((Ra,qa)=>{var ed=re(),td=us(),rd=class extends ed{constructor(sd){super(sd),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return td.comma(this.selector)}set selectors(sd){let od=this.selector?this.selector.match(/, \s */):null,ld=od?od[0]:","+this.raw("between","beforeOpen");this.selector=sd.join(ld)}};qa.exports=rd,rd.default=rd,ed.registerRule(rd)}),Ht $ 1=y((Ra,qa)=>{var ed=lt(),td=Vt $ 1(),rd=Oe(),sd=Gt $ 1(),od=Ae(),ld=jt(),cd={empty:!0,space:!0};function ud(Ed){for(let Ad=Ed.length-1;Ad>=0;Ad--){let Td=Ed[Ad],Nd=Td[3]||Td[2];if(Nd)return Nd}}var _d=class{constructor(Ed){this.input=Ed,this.root=new od,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Ed,start:{column:1,line:1,offset:0}}}atrule(Ed){let Ad=new sd;Ad.name=Ed[1].slice(1),Ad.name===""&&this.unnamedAtrule(Ad,Ed),this.init(Ad,Ed[2]);let Td,Nd,Rd,Bd=!1,kd=!1,Od=[],Md=[];for(;!this.tokenizer.endOfFile();){if(Ed=this.tokenizer.nextToken(),Td=Ed[0],Td==="("||Td==="["?Md.push(Td==="("?")":"]"):Td==="{"&&Md.length>0?Md.push("}"):Td===Md[Md.length-1]&&Md.pop(),Md.length===0)if(Td===";"){Ad.source.end=this.getPosition(Ed[2]),Ad.source.end.offset++,this.semicolon=!0;break}else if(Td==="{"){kd=!0;break}else if(Td==="}"){if(Od.length>0){for(Rd=Od.length-1,Nd=Od[Rd];Nd&&Nd[0]==="space";)Nd=Od[--Rd];Nd&&(Ad.source.end=this.getPosition(Nd[3]||Nd[2]),Ad.source.end.offset++)}this.end(Ed);break}else Od.push(Ed);else Od.push(Ed);if(this.tokenizer.endOfFile()){Bd=!0;break}}Ad.raws.between=this.spacesAndCommentsFromEnd(Od),Od.length?(Ad.raws.afterName=this.spacesAndCommentsFromStart(Od),this.raw(Ad,"params",Od),Bd&&(Ed=Od[Od.length-1],Ad.source.end=this.getPosition(Ed[3]||Ed[2]),Ad.source.end.offset++,this.spaces=Ad.raws.between,Ad.raws.between="")):(Ad.raws.afterName="",Ad.params=""),kd&&(Ad.nodes=[],this.current=Ad)}checkMissedSemicolon(Ed){let Ad=this.colon(Ed);if(Ad===!1)return;let Td=0,Nd;for(let Rd=Ad-1;Rd>=0&&(Nd=Ed[Rd],!(Nd[0]!=="space"&&(Td+=1,Td===2)));Rd--);throw this.input.error("Missed semicolon",Nd[0]==="word"?Nd[3]+1:Nd[2])}colon(Ed){let Ad=0,Td,Nd,Rd;for(let[Bd,kd]of Ed.entries()){if(Td=kd,Nd=Td[0],Nd==="("&&(Ad+=1),Nd===")"&&(Ad-=1),Ad===0&&Nd===":")if(!Rd)this.doubleColon(Td);else{if(Rd[0]==="word"&&Rd[1]==="progid")continue;return Bd}Rd=Td}return!1}comment(Ed){let Ad=new rd;this.init(Ad,Ed[2]),Ad.source.end=this.getPosition(Ed[3]||Ed[2]),Ad.source.end.offset++;let Td=Ed[1].slice(2,-2);if(/^ \s * $ /.test(Td))Ad.text="",Ad.raws.left=Td,Ad.raws.right="";else{let Nd=Td.match(/^( \s *)([^]* \S )( \s *) $ /);Ad.text=Nd[2],Ad.raws.left=Nd[1],Ad.raws.right=Nd[3]}}createTokenizer(){this.tokenizer=td(this.input)}decl(Ed,Ad){let Td=new ed;this.init(Td,Ed[0][2]);let Nd=Ed[Ed.length-1];for(Nd[0]===";"&&(this.semicolon=!0,Ed.pop()),Td.source.end=this.getPosition(Nd[3]||Nd[2]||ud(Ed)),Td.source.end.offset++;Ed[0][0]!=="word";)Ed.length===1&&this.unknownWord(Ed),Td.raws.before+=Ed.shift()[1];for(Td.source.start=this.getPosition(Ed[0][2]),Td.prop="";Ed.length;){let Od=Ed[0][0];if(Od===":"||Od==="space"||Od==="comment")break;Td.prop+=Ed.shift()[1]}Td.raws.between="";let Rd;for(;Ed.length;)if(Rd=Ed.shift(),Rd[0]===":"){Td.raws.between+=Rd[1];break}else Rd[0]==="word"&&/ \w /.test(Rd[1])&&this.unknownWord([Rd]),Td.raws.between+=Rd[1];(Td.prop[0]==="_"||Td.prop[0]==="*")&&(Td.raws.before+=Td.prop[0],Td.prop=Td.prop.slice(1));let Bd=[],kd;for(;Ed.length&&(kd=Ed[0][0],!(kd!=="space"&&kd!=="comment"));)Bd.push(Ed.shift());this.precheckMissedSemicolon(Ed);for(let Od=Ed.length-1;Od>=0;Od--){if(Rd=Ed[Od],Rd[1].toLowerCase()==="!important"){Td.important=!0;let Md=this.stringFrom(Ed,Od);Md=this.spacesFromEnd(Ed)+Md,Md!==" !important"&&(Td.raws.important=Md
` );Od=new Array(Pd.length);let Fd=0;for(let Ud=0,Gd=Pd.length;Ud<Gd;Ud++)Od[Ud]=Fd,Fd+=Pd[Ud].length+1;this[Ad]=Od}kd=Od[Od.length-1];let Md=0;if(Bd>=kd)Md=Od.length-1;else{let Pd=Od.length-2,Fd;for(;Md<Pd;)if(Fd=Md+(Pd-Md>>1),Bd<Od[Fd])Pd=Fd-1;else if(Bd>=Od[Fd+1])Md=Fd+1;else{Md=Fd;break}}return{col:Bd-Od[Md]+1,line:Md+1}}mapResolve(Bd){return/^ \w +: \/ \/ /.test(Bd)?Bd:ld(this.map.consumer().sourceRoot||this.map.root||".",Bd)}origin(Bd,kd,Od,Md){if(!this.map)return!1;let Pd=this.map.consumer(),Fd=Pd.originalPositionFor({column:kd,line:Bd});if(!Fd.source)return!1;let Ud;typeof Od=="number"&&(Ud=Pd.originalPositionFor({column:Md,line:Od}));let Gd;od(Fd.source)?Gd=sd(Fd.source):Gd=new URL(Fd.source,this.map.consumer().sourceRoot||sd(this.map.mapFile));let Qd={column:Fd.column,endColumn:Ud&&Ud.column,endLine:Ud&&Ud.line,line:Fd.line,url:Gd.toString()};if(Gd.protocol==="file:")if(rd)Qd.file=rd(Gd);else throw new Error("file: protocol is not available in this PostCSS build");let Vd=Pd.sourceContentFor(Fd.source);return Vd&&(Qd.source=Vd),Qd}toJSON(){let Bd={};for(let kd of["hasBOM","css","file","id"])this[kd]!=null&&(Bd[kd]=this[kd]);return this.map&&(Bd.map={...this.map},Bd.map.consumerCache&&(Bd.map.consumerCache=void 0)),Bd}get from(){return this.file||this.id}};qa.exports=Rd,Rd.default=Rd,ud&&ud.registerInput&&ud.registerInput(Rd)}),pt=y((Ra,qa)=>{var ed=re(),td=Ht $ 1(),rd=Re $ 1();function sd(od,ld){let cd=new rd(od,ld),ud=new td(cd);try{ud.parse()}catch(_d){throw _d}return ud.root}qa.exports=sd,sd.default=sd,ed.registerParse(sd)}),no=y((Ra,qa)=>{var ed=Vt $ 1(),td=Re $ 1();qa.exports={isInlineComment(rd){if(rd[0]==="word"&&rd[1].slice(0,2)==="//"){let sd=rd,od=[],ld,cd;for(;rd;){if(/ \r ? \n /.test(rd[1])){if(/['"].* \r ? \n /.test(rd[1])){od.push(rd[1].substring(0,rd[1].indexOf( `
` ))),cd=rd[1].substring(rd[1].indexOf( `
` ));let _d=this.input.css.valueOf().substring(this.tokenizer.position());cd+=_d,ld=rd[3]+_d.length-cd.length}else this.tokenizer.back(rd);break}od.push(rd[1]),ld=rd[2],rd=this.tokenizer.nextToken({ignoreUnclosed:!0})}let ud=["comment",od.join(""),sd[2],ld];return this.inlineComment(ud),cd&&(this.input=new td(cd),this.tokenizer=ed(this.input)),!0}else if(rd[1]==="/"){let sd=this.tokenizer.nextToken({ignoreUnclosed:!0});if(sd[0]==="comment"&&/^ \/ \* /.test(sd[1]))return sd[0]="word",sd[1]=sd[1].slice(1),rd[1]="//",this.tokenizer.back(sd),qa.exports.isInlineComment.bind(this)(rd)}return!1}}}),oo $ 1=y((Ra,qa)=>{qa.exports={interpolation(ed){let td=[ed,this.tokenizer.nextToken()],rd=["word","}"];if(td[0][1].length>1||td[1][0]!=="{")return this.tokenizer.back(td[1]),!1;for(ed=this.tokenizer.nextToken();ed&&rd.includes(ed[0]);)td.push(ed),ed=this.tokenizer.nextToken();let sd=td.map(ud=>ud[1]),[od]=td,ld=td.pop(),cd=["word",sd.join(""),od[2],ld[2]];return this.tokenizer.back(ed),this.tokenizer.back(cd),!0}}}),uo $ 1=y((Ra,qa)=>{var ed=/^#[0-9a-fA-F]{6} $ |^#[0-9a-fA-F]{3} $ /,td=/ \. [0-9]/,rd=sd=>{let[,od]=sd,[ld]=od;return(ld==="."||ld==="#")&&ed.test(od)===!1&&td.test(od)===!1};qa.exports={isMixinToken:rd}}),co=y((Ra,qa)=>{var ed=Vt $ 1(),td=/^url \( (.+) \) /;qa.exports=rd=>{let{name:sd,params:od=""}=rd;if(sd==="import"&&od.length){rd.import=!0;let ld=ed({css:od});for(rd.filename=od.replace(td," $ 1");!ld.endOfFile();){let[cd,ud]=ld.nextToken();if(cd==="word"&&ud==="url")return;if(cd==="brackets"){rd.options=ud,rd.filename=od.replace(ud,"").trim();break}}}}}),mo $ 1=y((Ra,qa)=>{var ed=/: $ /,td=/^:( \s +)?/;qa.exports=rd=>{let{name:sd,params:od=""}=rd;if(rd.name.slice(-1)===":"){if(ed.test(sd)){let[ld]=sd.match(ed);rd.name=sd.replace(ld,""),rd.raws.afterName=ld+(rd.raws.afterName||""),rd.variable=!0,rd.value=rd.params}if(td.test(od)){let[ld]=od.match(td);rd.value=od.replace(ld,""),rd.raws.afterName=(rd.raws.afterName||"")+ld,rd.variable=!0}}}}),go $ 1=y((Ra,qa)=>{var ed=Oe(),td=Ht $ 1(),{isInlineComment:rd}=no(),{interpolation:sd}=oo $ 1(),{isMixinToken:od}=uo $ 1(),ld=co(),cd=mo $ 1(),ud=/(! \s *important) $ /i;qa.exports=class extends td{constructor(..._d){super(..._d),this.lastNode=null}atrule(_d){sd.bind(this)(_d)||(super.atrule(_d),ld(this.lastNode),cd(this.lastNode))}decl(..._d){super.decl(..._d),/extend \( .+ \) /i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(_d){_d[0][1]= ` $ { _d [ 0 ] [ 1 ] } ` ;let Ed=_d.findIndex(Rd=>Rd[0]==="("),Ad=_d.reverse().find(Rd=>Rd[0]===")"),Td=_d.reverse().indexOf(Ad),Nd=_d.splice(Ed,Td).map(Rd=>Rd[1]).join("");for(let Rd of _d.reverse())this.tokenizer.back(Rd);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=Nd}init(_d,Ed,Ad){super.init(_d,Ed,Ad),this.lastNode=_d}inlineComment(_d){let Ed=new ed,Ad=_d[1].slice(2);if(this.init(Ed,_d[2]),Ed.source.end=this.getPosition(_d[3]||_d[2]),Ed.inline=!0,Ed.raws.begin="//",/^ \s * $ /.test(Ad))Ed.text="",Ed.raws.left=Ad,Ed.raws.right="";else{let Td=Ad.match(/^( \s *)([^]*[^ \s ])( \s *) $ /);[,Ed.raws.left,Ed.text,Ed.raws.right]=Td}}mixin(_d){let[Ed]=_d,Ad=Ed[1].slice(0,1),Td=_d.findIndex(Od=>Od[0]==="brackets"),Nd=_d.findIndex(Od=>Od[0]==="("),Rd="";if((Td<0||Td>3)&&Nd>0){let Od=_d.reduce((Xd,df,mf)=>df[0]===")"?mf:Xd),Md=_d.slice(Nd,Od+Nd).map(Xd=>Xd[1]).join(""),[Pd]=_d.slice(Nd),Fd=[Pd[2],Pd[3]],[Ud]=_d.slice(Od,Od+1),Gd=[Ud[2],Ud[3]],Qd=["brackets",Md].concat(Fd,Gd),Vd=_d.slice(0,Nd),zd=_d.slice(Od+1);_d=Vd,_d.push(Qd),_d=_d.concat(zd)}let Bd=[];for(let Od of _d)if((Od[1]==="!"||Bd.length)&&Bd.push(Od),Od[1]==="important")break;if(Bd.length){let[Od]=Bd,Md=_d.indexOf(Od),Pd=Bd[Bd.length-1],Fd=[Od[2],Od[3]],Ud=[Pd[4],Pd[5]],Gd=["word",Bd.map(Qd=>Qd[1]).join("")].concat(Fd,Ud);_d.splice(Md,Bd.length,Gd)}let kd=_d.findIndex(Od=>ud.test(Od[1]));kd>0&&([,Rd]=_d[kd],_d.splice(kd,1));for(let Od of _d.reverse())this.tokenizer.back(Od);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=Ad,Rd&&(this.lastNode.important=!0,this.lastNode.raws.important=Rd)}other(_d){rd.bind(this)(_d)||super.other(_d)}rule(_d){let Ed=_d[_d.length-1
https : //evilmartians.com/chronicles/postcss-8-plugin-migration`));let Xd=Ud(...zd);return Xd.postcssPlugin=Fd,Xd.postcssVersion=new od().version,Xd}let Vd;return Object.defineProperty(Qd,"postcss",{get(){return Vd||(Vd=Qd()),Vd}}),Qd.process=function(zd,Xd,df){return Pd([Qd(df)]).process(zd,Xd)},Qd},Pd.stringify=ld,Pd.parse=Rd,Pd.fromJSON=cd,Pd.list=Bd,Pd.comment=Fd=>new Ed(Fd),Pd.atRule=Fd=>new Ad(Fd),Pd.decl=Fd=>new td(Fd),Pd.rule=Fd=>new kd(Fd),Pd.root=Fd=>new Od(Fd),Pd.document=Fd=>new ud(Fd),Pd.CssSyntaxError=ed,Pd.Declaration=td,Pd.Container=sd,Pd.Processor=od,Pd.Document=ud,Pd.Comment=Ed,Pd.Warning=_d,Pd.AtRule=Ad,Pd.Result=Td,Pd.Input=Nd,Pd.Rule=kd,Pd.Root=Od,Pd.Node=Md,rd.registerPostcss(Pd),qa.exports=Pd,Pd.default=Pd}),Ho$1=y((Ra,qa)=>{var{Container:ed}=Zt$1(),td=class extends ed{constructor(rd){super(rd),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};qa.exports=td}),Jo=y((Ra,qa)=>{var ed=/[\t\n\f\r "#'()/;[\\\]{}]/g,td=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rd=/.[\r\n"'(/\\]/,sd=/[\da-f]/i,od=/[\n\f\r]/g;qa.exports=function(ld,cd={}){let ud=ld.css.valueOf(),_d=cd.ignoreErrors,Ed,Ad,Td,Nd,Rd,Bd,kd,Od,Md,Pd=ud.length,Fd=0,Ud=[],Gd=[],Qd;function Vd(){return Fd}function zd(hf){throw ld.error("Unclosed "+hf,Fd)}function Xd(){return Gd.length===0&&Fd>=Pd}function df(){let hf=1,gf=!1,yf=!1;for(;hf>0;)Ad+=1,ud.length<=Ad&&zd("interpolation"),Ed=ud.charCodeAt(Ad),Od=ud.charCodeAt(Ad+1),gf?!yf&&Ed===gf?(gf=!1,yf=!1):Ed===92?yf=!yf:yf&&(yf=!1):Ed===39||Ed===34?gf=Ed:Ed===125?hf-=1:Ed===35&&Od===123&&(hf+=1)}function mf(hf){if(Gd.length)return Gd.pop();if(Fd>=Pd)return;let gf=hf?hf.ignoreUnclosed:!1;switch(Ed=ud.charCodeAt(Fd),Ed){case 10:case 32:case 9:case 13:case 12:{Ad=Fd;do Ad+=1,Ed=ud.charCodeAt(Ad);while(Ed===32||Ed===10||Ed===9||Ed===13||Ed===12);Md=["space",ud.slice(Fd,Ad)],Fd=Ad-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let yf=String.fromCharCode(Ed);Md=[yf,yf,Fd];break}case 44:{Md=["word",",",Fd,Fd+1];break}case 40:{if(kd=Ud.length?Ud.pop()[1]:"",Od=ud.charCodeAt(Fd+1),kd==="url"&&Od!==39&&Od!==34){for(Qd=1,Bd=!1,Ad=Fd+1;Ad<=ud.length-1;){if(Od=ud.charCodeAt(Ad),Od===92)Bd=!Bd;else if(Od===40)Qd+=1;else if(Od===41&&(Qd-=1,Qd===0))break;Ad+=1}Nd=ud.slice(Fd,Ad+1),Md=["brackets",Nd,Fd,Ad],Fd=Ad}else Ad=ud.indexOf(")",Fd+1),Nd=ud.slice(Fd,Ad+1),Ad===-1||rd.test(Nd)?Md=["(","(",Fd]:(Md=["brackets",Nd,Fd,Ad],Fd=Ad);break}case 39:case 34:{for(Td=Ed,Ad=Fd,Bd=!1;Ad<Pd&&(Ad++,Ad===Pd&&zd("string"),Ed=ud.charCodeAt(Ad),Od=ud.charCodeAt(Ad+1),!(!Bd&&Ed===Td));)Ed===92?Bd=!Bd:Bd?Bd=!1:Ed===35&&Od===123&&df();Md=["string",ud.slice(Fd,Ad+1),Fd,Ad],Fd=Ad;break}case 64:{ed.lastIndex=Fd+1,ed.test(ud),ed.lastIndex===0?Ad=ud.length-1:Ad=ed.lastIndex-2,Md=["at-word",ud.slice(Fd,Ad+1),Fd,Ad],Fd=Ad;break}case 92:{for(Ad=Fd,Rd=!0;ud.charCodeAt(Ad+1)===92;)Ad+=1,Rd=!Rd;if(Ed=ud.charCodeAt(Ad+1),Rd&&Ed!==47&&Ed!==32&&Ed!==10&&Ed!==9&&Ed!==13&&Ed!==12&&(Ad+=1,sd.test(ud.charAt(Ad)))){for(;sd.test(ud.charAt(Ad+1));)Ad+=1;ud.charCodeAt(Ad+1)===32&&(Ad+=1)}Md=["word",ud.slice(Fd,Ad+1),Fd,Ad],Fd=Ad;break}default:Od=ud.charCodeAt(Fd+1),Ed===35&&Od===123?(Ad=Fd,df(),Nd=ud.slice(Fd,Ad+1),Md=["word",Nd,Fd,Ad],Fd=Ad):Ed===47&&Od===42?(Ad=ud.indexOf("*/",Fd+2)+1,Ad===0&&(_d||gf?Ad=ud.length:zd("comment")),Md=["comment",ud.slice(Fd,Ad+1),Fd,Ad],Fd=Ad):Ed===47&&Od===47?(od.lastIndex=Fd+1,od.test(ud),od.lastIndex===0?Ad=ud.length-1:Ad=od.lastIndex-2,Nd=ud.slice(Fd,Ad+1),Md=["comment",Nd,Fd,Ad,"inline"],Fd=Ad):(td.lastIndex=Fd+1,td.test(ud),td.lastIndex===0?Ad=ud.length-1:Ad=td.lastIndex-2,Md=["word",ud.slice(Fd,Ad+1),Fd,Ad],Ud.push(Md),Fd=Ad);break}return Fd++,Md}function _f(hf){Gd.push(hf)}return{back:_f,endOfFile:Xd,nextToken:mf,position:Vd}}}),Zo=y((Ra,qa)=>{var{Comment:ed}=Zt$1(),td=Ht$1(),rd=Ho$1(),sd=Jo(),od=class extends td{atrule(ld){let cd=ld[1],ud=ld;for(;!this.tokenizer.endOfFile();){let _d=this.tokenizer.nextToken();if(_d[0]==="word"&&_d[2]===ud[3]+1)cd+=_d[1],ud=_d;else{this.tokenizer.back(_d);break}}super.atrule(["at-word",cd,ld[2],ud[3]])}comment(ld){if(ld[4]==="inline"){let cd=new ed;thi
` ))break;Ed[0]==="("?ud+=1:Ed[0]===")"?ud-=1:ud===0&&Ed[0]===":"&&(cd=!0)}if(!cd||_d.trim()===""||/^[#:A-Za-z-]/.test(_d))super.rule(ld);else{ld.pop();let Ed=new rd;this.init(Ed,ld[0][2]);let Ad;for(let Nd=ld.length-1;Nd>=0;Nd--)if(ld[Nd][0]!=="space"){Ad=ld[Nd];break}if(Ad[3]){let Nd=this.input.fromOffset(Ad[3]);Ed.source.end={column:Nd.col,line:Nd.line,offset:Ad[3]+1}}else{let Nd=this.input.fromOffset(Ad[2]);Ed.source.end={column:Nd.col,line:Nd.line,offset:Ad[2]+1}}for(;ld[0][0]!=="word";)Ed.raws.before+=ld.shift()[1];if(ld[0][2]){let Nd=this.input.fromOffset(ld[0][2]);Ed.source.start={column:Nd.col,line:Nd.line,offset:ld[0][2]}}for(Ed.prop="";ld.length;){let Nd=ld[0][0];if(Nd===":"||Nd==="space"||Nd==="comment")break;Ed.prop+=ld.shift()[1]}Ed.raws.between="";let Td;for(;ld.length;)if(Td=ld.shift(),Td[0]===":"){Ed.raws.between+=Td[1];break}else Ed.raws.between+=Td[1];(Ed.prop[0]==="_"||Ed.prop[0]==="*")&&(Ed.raws.before+=Ed.prop[0],Ed.prop=Ed.prop.slice(1)),Ed.raws.between+=this.spacesAndCommentsFromStart(ld),this.precheckMissedSemicolon(ld);for(let Nd=ld.length-1;Nd>0;Nd--){if(Td=ld[Nd],Td[1]==="!important"){Ed.important=!0;let Rd=this.stringFrom(ld,Nd);Rd=this.spacesFromEnd(ld)+Rd,Rd!==" !important"&&(Ed.raws.important=Rd);break}else if(Td[1]==="important"){let Rd=ld.slice(0),Bd="";for(let kd=Nd;kd>0;kd--){let Od=Rd[kd][0];if(Bd.trim().indexOf("!")===0&&Od!=="space")break;Bd=Rd.pop()[1]+Bd}Bd.trim().indexOf("!")===0&&(Ed.important=!0,Ed.raws.important=Bd,ld=Rd)}if(Td[0]!=="space"&&Td[0]!=="comment")break}this.raw(Ed,"value",ld),Ed.value.includes(":")&&this.checkMissedSemicolon(ld),this.current=Ed}}};qa.exports=od}),ta=y((Ra,qa)=>{var{Input:ed}=Zt $ 1(),td=Zo();qa.exports=function(rd,sd){let od=new ed(rd,sd),ld=new td(od);return ld.parse(),ld.root}}),Os=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(ed){this.after=ed.after,this.before=ed.before,this.type=ed.type,this.value=ed.value,this.sourceIndex=ed.sourceIndex}Ra.default=qa}),As=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});var qa=Os(),ed=td(qa);function td(sd){return sd&&sd.__esModule?sd:{default:sd}}function rd(sd){var od=this;this.constructor(sd),this.nodes=sd.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(ld){ld.parent=od})}rd.prototype=Object.create(ed.default.prototype),rd.constructor=ed.default,rd.prototype.walk=function(sd,od){for(var ld=typeof sd=="string"||sd instanceof RegExp,cd=ld?od:sd,ud=typeof sd=="string"?new RegExp(sd):sd,_d=0;_d<this.nodes.length;_d++){var Ed=this.nodes[_d],Ad=ld?ud.test(Ed.type):!0;if(Ad&&cd&&cd(Ed,_d,this.nodes)===!1||Ed.nodes&&Ed.walk(sd,od)===!1)return!1}return!0},rd.prototype.each=function(){for(var sd=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],od=0;od<this.nodes.length;od++){var ld=this.nodes[od];if(sd(ld,od,this.nodes)===!1)return!1}return!0},Ra.default=rd}),aa $ 1=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.parseMediaFeature=od,Ra.parseMediaQuery=ld,Ra.parseMediaList=cd;var qa=Os(),ed=sd(qa),td=As(),rd=sd(td);function sd(ud){return ud&&ud.__esModule?ud:{default:ud}}function od(ud){var _d=arguments.length<=1||arguments[1]===void 0?0:arguments[1],Ed=[{mode:"normal",character:null}],Ad=[],Td=0,Nd="",Rd=null,Bd=null,kd=_d,Od=ud;ud[0]==="("&&ud[ud.length-1]===")"&&(Od=ud.substring(1,ud.length-1),kd++);for(var Md=0;Md<Od.length;Md++){var Pd=Od[Md];if((Pd==="'"||Pd==='"')&&(Ed[Td].isCalculationEnabled===!0?(Ed.push({mode:"string",isCalculationEnabled:!1,character:Pd}),Td++):Ed[Td].mode==="string"&&Ed[Td].character===Pd&&Od[Md-1]!==" \\ "&&(Ed.pop(),Td--)),Pd==="{"?(Ed.push({mode:"interpolation",isCalculationEnabled:!0}),Td++):Pd==="}"&&(Ed.pop(),Td--),Ed[Td].mode==="normal"&&Pd===":"){var Fd=Od.substring(Md+1);Bd={type:"value",before:/^( \s *)/.exec(Fd)[1],after:/( \s *) $ /.exec(Fd)[1],value:Fd.trim()},Bd.sourceIndex=Bd.before.length+Md+1+kd,R
` ),Ff=Cf.length-1,Ff>0?(Lf=bf+Ff,wf=gf-Cf[Ff].length):(Lf=bf,wf=Tf),mf.push(["comment",Qf,bf,Bf-Tf,Lf,gf-wf,Bf]),Tf=wf,bf=Lf,Bf=gf):(zd.lastIndex=Bf+1,zd.test(_f),zd.lastIndex===0?gf=_f.length-1:gf=zd.lastIndex-2,mf.push(["word",_f.slice(Bf,gf+1),bf,Bf-Tf,bf,gf-Tf,Bf]),Bf=gf);break}Bf++}return mf}qa.exports=Ra.default}),tu $ 1=y((Ra,qa)=>{Ra.__esModule=!0;var ed=function(){function Tf(bf,Bf){for(var Wf=0;Wf<Bf.length;Wf++){var lh=Bf[Wf];lh.enumerable=lh.enumerable||!1,lh.configurable=!0,"value"in lh&&(lh.writable=!0),Object.defineProperty(bf,lh.key,lh)}}return function(bf,Bf,Wf){return Bf&&Tf(bf.prototype,Bf),Wf&&Tf(bf,Wf),bf}}(),td=qs(),rd=Nf(td),sd=Ls(),od=Nf(sd),ld=Ds $ 1(),cd=Nf(ld),ud=ga $ 1(),_d=Nf(ud),Ed=xa(),Ad=Nf(Ed),Td=ka(),Nd=Nf(Td),Rd=Sa(),Bd=Nf(Rd),kd=Oa $ 1(),Od=Nf(kd),Md=Aa(),Pd=Nf(Md),Fd=Pa $ 1(),Ud=Nf(Fd),Gd=Ia(),Qd=Nf(Gd),Vd=La(),zd=Nf(Vd),Xd=Ma(),df=Nf(Xd),mf=Ua $ 1(),_f=Nf(mf),hf= $ a $ 1(),gf=Nf(hf),yf=Ya $ 1(),Cf=Nf(yf),Ff=Xa $ 1(),Qf=Nf(Ff),Uf=D(),Lf=wf(Uf);function wf(Tf){if(Tf&&Tf.__esModule)return Tf;var bf={};if(Tf!=null)for(var Bf in Tf)Object.prototype.hasOwnProperty.call(Tf,Bf)&&(bf[Bf]=Tf[Bf]);return bf.default=Tf,bf}function Nf(Tf){return Tf&&Tf.__esModule?Tf:{default:Tf}}function Zf(Tf,bf){if(!(Tf instanceof bf))throw new TypeError("Cannot call a class as a function")}var Kf=function(){function Tf(bf){Zf(this,Tf),this.input=bf,this.lossy=bf.options.lossless===!1,this.position=0,this.root=new _d.default;var Bf=new Ad.default;return this.root.append(Bf),this.current=Bf,this.lossy?this.tokens=(0,Qf.default)({safe:bf.safe,css:bf.css.trim()}):this.tokens=(0,Qf.default)(bf),this.loop()}return Tf.prototype.attribute=function(){var bf="",Bf=void 0,Wf=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)bf+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~bf.indexOf("]")&&this.error("Expected a closing square bracket.");var lh=bf.split(/((?:[*~^ $ |]?=))([^]*)/),Xf=lh[0].split(/( \| )/g), $ f={operator:lh[1],value:lh[2],source:{start:{line:Wf[2],column:Wf[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:Wf[4]};if(Xf.length>1?(Xf[0]===""&&(Xf[0]=!0), $ f.attribute=this.parseValue(Xf[2]), $ f.namespace=this.parseNamespace(Xf[0])): $ f.attribute=this.parseValue(lh[0]),Bf=new zd.default( $ f),lh[2]){var th=lh[2].split(/( \s +i \s *?) $ /),hh=th[0].trim();Bf.value=this.lossy?hh:th[0],th[1]&&(Bf.insensitive=!0,this.lossy||(Bf.raws.insensitive=th[1])),Bf.quoted=hh[0]==="'"||hh[0]==='"',Bf.raws.unquoted=Bf.quoted?hh.slice(1,-1):hh}this.newNode(Bf),this.position++},Tf.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var bf=new _f.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(bf.spaces.before=this.parseSpace(this.currToken[1]),bf.source.start.line=this.nextToken[2],bf.source.start.column=this.nextToken[3],bf.source.end.column=this.nextToken[3],bf.source.end.line=this.nextToken[2],bf.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?bf.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?bf.value=this.currToken[1]:this.currToken[0]==="space"&&(bf.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(bf)},Tf.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var bf=new Ad.default;this.current.parent.append(bf),this.current=bf,this.position++},Tf.prototype.comment=function(){var bf=new Bd.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(bf),this.position++},Tf.prototype.error=function(bf){throw new this.input.error(bf)},Tf.prototype.miss
` ?(sd=1,od+=1):sd+=1;return{line:od,column:sd}}positionBy(td){let rd=this.source.start;if(Object(td).index)rd=this.positionInside(td.index);else if(Object(td).word){let sd=this.toString().indexOf(td.word);sd!==-1&&(rd=this.positionInside(sd))}return rd}}}),U=y((Ra,qa)=>{var ed=z(),td=class extends ed{constructor(rd){super(rd),this.nodes||(this.nodes=[])}push(rd){return rd.parent=this,this.nodes.push(rd),this}each(rd){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let sd=this.lastEach,od,ld;if(this.indexes[sd]=0,!!this.nodes){for(;this.indexes[sd]<this.nodes.length&&(od=this.indexes[sd],ld=rd(this.nodes[od],od),ld!==!1);)this.indexes[sd]+=1;return delete this.indexes[sd],ld}}walk(rd){return this.each((sd,od)=>{let ld=rd(sd,od);return ld!==!1&&sd.walk&&(ld=sd.walk(rd)),ld})}walkType(rd,sd){if(!rd||!sd)throw new Error("Parameters {type} and {callback} are required.");let od=typeof rd=="function";return this.walk((ld,cd)=>{if(od&&ld instanceof rd||!od&&ld.type===rd)return sd.call(this,ld,cd)})}append(rd){return rd.parent=this,this.nodes.push(rd),this}prepend(rd){return rd.parent=this,this.nodes.unshift(rd),this}cleanRaws(rd){if(super.cleanRaws(rd),this.nodes)for(let sd of this.nodes)sd.cleanRaws(rd)}insertAfter(rd,sd){let od=this.index(rd),ld;this.nodes.splice(od+1,0,sd);for(let cd in this.indexes)ld=this.indexes[cd],od<=ld&&(this.indexes[cd]=ld+this.nodes.length);return this}insertBefore(rd,sd){let od=this.index(rd),ld;this.nodes.splice(od,0,sd);for(let cd in this.indexes)ld=this.indexes[cd],od<=ld&&(this.indexes[cd]=ld+this.nodes.length);return this}removeChild(rd){rd=this.index(rd),this.nodes[rd].parent=void 0,this.nodes.splice(rd,1);let sd;for(let od in this.indexes)sd=this.indexes[od],sd>=rd&&(this.indexes[od]=sd-1);return this}removeAll(){for(let rd of this.nodes)rd.parent=void 0;return this.nodes=[],this}every(rd){return this.nodes.every(rd)}some(rd){return this.nodes.some(rd)}index(rd){return typeof rd=="number"?rd:this.nodes.indexOf(rd)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let rd=this.nodes.map(String).join("");return this.value&&(rd=this.value+rd),this.raws.before&&(rd=this.raws.before+rd),this.raws.after&&(rd+=this.raws.after),rd}};td.registerWalker=rd=>{let sd="walk"+rd.name;sd.lastIndexOf("s")!==sd.length-1&&(sd+="s"),!td.prototype[sd]&&(td.prototype[sd]=function(od){return this.walkType(rd,od)})},qa.exports=td}),uu $ 1=y((Ra,qa)=>{var ed=U();qa.exports=class extends ed{constructor(td){super(td),this.type="root"}}}),cu=y((Ra,qa)=>{var ed=U();qa.exports=class extends ed{constructor(td){super(td),this.type="value",this.unbalanced=0}}}),hu $ 1=y((Ra,qa)=>{var ed=U(),td=class extends ed{constructor(rd){super(rd),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};ed.registerWalker(td),qa.exports=td}),mu $ 1=y((Ra,qa)=>{var ed=U(),td=z(),rd=class extends td{constructor(sd){super(sd),this.type="colon"}};ed.registerWalker(rd),qa.exports=rd}),wu=y((Ra,qa)=>{var ed=U(),td=z(),rd=class extends td{constructor(sd){super(sd),this.type="comma"}};ed.registerWalker(rd),qa.exports=rd}),vu $ 1=y((Ra,qa)=>{var ed=U(),td=z(),rd=class extends td{constructor(sd){super(sd),this.type="comment",this.inline=Object(sd).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};ed.registerWalker(rd),qa.exports=rd}),_u=y((Ra,qa)=>{var ed=U(),td=class extends ed{constructor(rd){super(rd),this.type="func",this.unbalanced=-1}};ed.registerWalker(td),qa.exports=td}),Eu=y((Ra,qa)=>{var ed=U(),td=z(),rd=class extends td{constructor(sd){super(sd),this.type="number",this.unit=Object(sd).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ed.registerWalker(rd),qa.exports=rd}),Tu=y((Ra,qa)=>{var ed=U(),td=z(),rd=class extends td{constructor(sd){super(sd),this.type="operator"}};ed.registerWalker(rd),qa.exports=rd}
` ,Rd+2);Md=_f!==-1?_f-1:Ad}Gd=Ed.slice(Rd,Md+1),Fd=Gd.split( `
` ),Ud=Fd.length-1,Ud>0?(Qd=Nd+Ud,Vd=Md-Fd[Ud].length):(Qd=Nd,Vd=Td),_d.push(["comment",Gd,Nd,Rd-Td,Qd,Md-Vd,Rd]),Td=Vd,Nd=Qd,Rd=Md}else if(Od===35&&!sd.test(Ed.slice(Rd+1,Rd+2)))Md=Rd+1,_d.push(["#",Ed.slice(Rd,Md),Nd,Rd-Td,Nd,Md-Td,Rd]),Rd=Md-1;else if((Od===117||Od===85)&&Ed.charCodeAt(Rd+1)===43){Md=Rd+2;do Md+=1,Od=Ed.charCodeAt(Md);while(Md<Ad&&od.test(Ed.slice(Md,Md+1)));_d.push(["unicoderange",Ed.slice(Rd,Md),Nd,Rd-Td,Nd,Md-Td,Rd]),Rd=Md-1}else if(Od===47)Md=Rd+1,_d.push(["operator",Ed.slice(Rd,Md),Nd,Rd-Td,Nd,Md-Td,Rd]),Rd=Md-1;else{let _f=td;if(Od>=48&&Od<=57&&(_f=rd),_f.lastIndex=Rd+1,_f.test(Ed),_f.lastIndex===0?Md=Ed.length-1:Md=_f.lastIndex-2,_f===rd||Od===46){let hf=Ed.charCodeAt(Md),gf=Ed.charCodeAt(Md+1),yf=Ed.charCodeAt(Md+2);(hf===101||hf===69)&&(gf===45||gf===43)&&yf>=48&&yf<=57&&(rd.lastIndex=Md+2,rd.test(Ed),rd.lastIndex===0?Md=Ed.length-1:Md=rd.lastIndex-2)}_d.push(["word",Ed.slice(Rd,Md+1),Nd,Rd-Td,Nd,Md-Td,Rd]),Rd=Md}break}Rd++}return _d}}), $ u=y((Ra,qa)=>{var ed=class extends Error{constructor(td){super(td),this.name=this.constructor.name,this.message=td||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(td).stack}};qa.exports=ed}),Vu=y((Ra,qa)=>{var ed=uu $ 1(),td=cu(),rd=hu $ 1(),sd=mu $ 1(),od=wu(),ld=vu $ 1(),cd=_u(),ud=Eu(),_d=Tu(),Ed=Cu(),Ad=Nu(),Td=Ru(),Nd=qu $ 1(),Rd=Uu(),Bd=qs(),kd=Ls(),Od=Ds $ 1(),Md= $ u();function Pd(Fd){return Fd.sort((Ud,Gd)=>Ud-Gd)}qa.exports=class{constructor(Fd,Ud){let Gd={loose:!1};this.cache=[],this.input=Fd,this.options=Object.assign({},Gd,Ud),this.position=0,this.unbalanced=0,this.root=new ed;let Qd=new td;this.root.append(Qd),this.current=Qd,this.tokens=Rd(Fd,this.options)}parse(){return this.loop()}colon(){let Fd=this.currToken;this.newNode(new sd({value:Fd[1],source:{start:{line:Fd[2],column:Fd[3]},end:{line:Fd[4],column:Fd[5]}},sourceIndex:Fd[6]})),this.position++}comma(){let Fd=this.currToken;this.newNode(new od({value:Fd[1],source:{start:{line:Fd[2],column:Fd[3]},end:{line:Fd[4],column:Fd[5]}},sourceIndex:Fd[6]})),this.position++}comment(){let Fd=!1,Ud=this.currToken[1].replace(/ \/ \* | \* \/ /g,""),Gd;this.options.loose&&Ud.startsWith("//")&&(Ud=Ud.substring(2),Fd=!0),Gd=new ld({value:Ud,inline:Fd,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(Gd),this.position++}error(Fd,Ud){throw new Md(Fd+ ` at line : $ { Ud [ 2 ] } , column $ { Ud [ 3 ] } ` )}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let Fd=this.currToken[1],Ud;if(Fd==="+"||Fd==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return Ud=new _d({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(Ud)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case
Expected it to be 'string' or 'object' . ` ;if(Ve(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return ` Unexpected doc '${ed}' . ` ;let td=ml([...bt $ 1].map(rd=> ` '${rd}' ` ));return ` Unexpected doc . type '${Ra.type}' .
Expected it to be $ { td } . ` }var Fr=class extends Error{constructor(qa){super(yl(qa));n_(this,"name","InvalidDocError");this.doc=qa}}, $ r=Fr,Zs=()=>{},_t=Zs;function q(Ra){return{type:we,contents:Ra}}function en(Ra,qa){return{type:ge,contents:qa,n:Ra}}function L(Ra,qa={}){return _t(qa.expandedStates),{type:ve,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function tn $ 1(Ra){return en({type:"root"},Ra)}function ue(Ra){return en(-1,Ra)}function Ge(Ra){return{type:xe $ 1,parts:Ra}}function kt $ 1(Ra,qa="",ed={}){return{type:oe,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}var je $ 1={type:be $ 1},wl $ 1={type:K,hard:!0},A={type:K},M={type:K,soft:!0},E=[wl $ 1,je $ 1];function V(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}var gl=(Ra,qa,ed)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[ed<0?qa.length+ed:ed]:qa.at(ed)},G=gl;function vl(Ra,qa){if(typeof Ra=="string")return qa(Ra);let ed=new Map;return td(Ra);function td(sd){if(ed.has(sd))return ed.get(sd);let od=rd(sd);return ed.set(sd,od),od}function rd(sd){switch(Ve(sd)){case Be:return qa(sd.map(td));case xe $ 1:return qa({...sd,parts:sd.parts.map(td)});case oe:return qa({...sd,breakContents:td(sd.breakContents),flatContents:td(sd.flatContents)});case ve:{let{expandedStates:od,contents:ld}=sd;return od?(od=od.map(td),ld=od[0]):ld=td(ld),qa({...sd,contents:ld,expandedStates:od})}case ge:case we:case $ e $ 1:case ze:case We:return qa({...sd,contents:td(sd.contents)});case Me $ 1:case Ue:case Fe:case Ye:case K:case be $ 1:return qa(sd);default:throw new $ r(sd)}}}function xl $ 1(Ra){return Ra.type===K&&!Ra.hard?Ra.soft?"":" ":Ra.type===oe?Ra.flatContents:Ra}function rn(Ra){return vl(Ra,xl $ 1)}function bl(Ra){return Array.isArray(Ra)&&Ra.length>0}var ee=bl,Et="'",sn='"';function _l(Ra,qa){let ed=qa===!0||qa===Et?Et:sn,td=ed===Et?sn:Et,rd=0,sd=0;for(let od of Ra)od===ed?rd++:od===td&&sd++;return rd>sd?td:ed}var nn=_l;function kl(Ra,qa,ed){let td=qa==='"'?"'":'"',rd=_ $ 1(!1,Ra,/ \\ (.)|(["'])/gsu,(sd,od,ld)=>od===td?od:ld===qa?" \\ "+ld:ld||(ed&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /u.test(od)?od:" \\ "+od));return qa+rd+qa}var on=kl;function El $ 1(Ra,qa){let ed=Ra.slice(1,-1),td=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":nn(ed,qa.singleQuote);return on(ed,td,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var St=El $ 1,Wr=class extends Error{constructor(qa,ed,td="type"){super( ` Unexpected $ { ed } node $ { td } : $ { JSON . stringify ( qa [ td ] ) } . ` );n_(this,"name","UnexpectedNodeError");this.node=qa}},an=Wr;function Sl $ 1(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var _e=Sl $ 1,Tl $ 1=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un(Ra,qa,ed){if(_e(Ra)&&Ra.language==="yaml"&&delete qa.value,Ra.type==="css-comment"&&ed.type==="css-root"&&ed.nodes.length>0&&((ed.nodes[0]===Ra||_e(ed.nodes[0])&&ed.nodes[1]===Ra)&&(delete qa.text,/^ \* \s *@(?:format|prettier) \s * $ /u.test(Ra.text))||ed.type==="css-root"&&G(!1,ed.nodes,-1)===Ra))return null;if(Ra.type==="value-root"&&delete qa.text,(Ra.type==="media-query"||Ra.type==="media-query-list"||Ra.type==="media-feature-expression")&&delete qa.value,Ra.type==="css-rule"&&delete qa.params,(Ra.type==="media-feature"||Ra.type==="media-keyword"||Ra.type==="media-type"||Ra.type==="media-unknown"||Ra.type==="media-url"||Ra.type==="media-value"||Ra.type==="selector-attribute"||Ra.type==="selector-string"||Ra.type==="selector-class"||Ra.type==="selector-combinator"||Ra.type==="value-string")&&Ra.value&&(qa.value=Ol $ 1(Ra.value)),Ra.type==="selector-combinator"&&(qa.value=_ $ 1(!1,qa.value,/ \s +/gu," ")),Ra.type==="media-feature"&&(qa.value=_ $ 1(!1,qa.value," ","")),(Ra.type==="value-word"&&(Ra.isColor&&Ra.isHex||["initial","inherit","unset","revert"].includes(Ra.value.toLowerCase()))||Ra.type==="media-feature"||Ra.type==="selector-root-invalid"||Ra.type==="selector-pseudo")&&(qa.value=qa.value.toLowerCase()),Ra.type==="css-d
` ,ed)+1;return ed+Ra.column}var zr=Il $ 1;function Tt $ 1(Ra){return(qa,ed,td)=>{let rd=!!(td!=null&&td.backwards);if(ed===!1)return!1;let{length:sd}=qa,od=ed;for(;od>=0&&od<sd;){let ld=qa.charAt(od);if(Ra instanceof RegExp){if(!Ra.test(ld))return od}else if(!Ra.includes(ld))return od;rd?od--:od++}return od===-1||od===sd?od:!1}}var Ot $ 1=Tt $ 1(" "),yn=Tt $ 1(",; "),Ct $ 1=Tt $ 1(/[^ \n \r ]/u);function wn $ 1(Ra,qa){var ed,td,rd;if(typeof((td=(ed=Ra.source)==null?void 0:ed.start)==null?void 0:td.offset)=="number")return Ra.source.start.offset;if(typeof Ra.sourceIndex=="number")return Ra.sourceIndex;if((rd=Ra.source)!=null&&rd.start)return zr(Ra.source.start,qa);throw Object.assign(new Error("Can not locate node."),{node:Ra})}function Vr(Ra,qa){var ed,td;if(Ra.type==="css-comment"&&Ra.inline)return Ct $ 1(qa,Ra.source.startOffset);if(typeof((td=(ed=Ra.source)==null?void 0:ed.end)==null?void 0:td.offset)=="number")return Ra.source.end.offset;if(Ra.source){if(Ra.source.end)return zr(Ra.source.end,qa);if(ee(Ra.nodes))return Vr(G(!1,Ra.nodes,-1),qa)}return null}function Gr(Ra,qa){Ra.source&&(Ra.source.startOffset=wn $ 1(Ra,qa),Ra.source.endOffset=Vr(Ra,qa));for(let ed in Ra){let td=Ra[ed];ed==="source"||!td||typeof td!="object"||(td.type==="value-root"||td.type==="value-unknown"?gn $ 1(td,ql $ 1(Ra),td.text||td.value):Gr(td,qa))}}function gn $ 1(Ra,qa,ed){Ra.source&&(Ra.source.startOffset=wn $ 1(Ra,ed)+qa,Ra.source.endOffset=Vr(Ra,ed)+qa);for(let td in Ra){let rd=Ra[td];td==="source"||!rd||typeof rd!="object"||gn $ 1(rd,qa,ed)}}function ql $ 1(Ra){var qa;let ed=Ra.source.startOffset;return typeof Ra.prop=="string"&&(ed+=Ra.prop.length),Ra.type==="css-atrule"&&typeof Ra.name=="string"&&(ed+=1+Ra.name.length+Ra.raws.afterName.match(/^ \s *:? \s */u)[0].length),Ra.type!=="css-atrule"&&typeof((qa=Ra.raws)==null?void 0:qa.between)=="string"&&(ed+=Ra.raws.between.length),ed}function vn(Ra){let qa="initial",ed="initial",td,rd=!1,sd=[];for(let od=0;od<Ra.length;od++){let ld=Ra[od];switch(qa){case"initial":if(ld==="'"){qa="single-quotes";continue}if(ld==='"'){qa="double-quotes";continue}if((ld==="u"||ld==="U")&&Ra.slice(od,od+4).toLowerCase()==="url("){qa="url",od+=3;continue}if(ld==="*"&&Ra[od-1]==="/"){qa="comment-block";continue}if(ld==="/"&&Ra[od-1]==="/"){qa="comment-inline",td=od-1;continue}continue;case"single-quotes":if(ld==="'"&&Ra[od-1]!==" \\ "&&(qa=ed,ed="initial"),ld=== `
` ||ld===" \r ")return Ra;continue;case"double-quotes":if(ld==='"'&&Ra[od-1]!==" \\ "&&(qa=ed,ed="initial"),ld=== `
` ||ld===" \r ")return Ra;continue;case"url":if(ld===")"&&(qa="initial"),ld=== `
` ||ld===" \r ")return Ra;if(ld==="'"){qa="single-quotes",ed="url";continue}if(ld==='"'){qa="double-quotes",ed="url";continue}continue;case"comment-block":ld==="/"&&Ra[od-1]==="*"&&(qa="initial");continue;case"comment-inline":(ld==='"'||ld==="'"||ld==="*")&&(rd=!0),(ld=== `
` ||ld===" \r ")&&(rd&&sd.push([td,od]),qa="initial",rd=!1);continue}}for(let[od,ld]of sd)Ra=Ra.slice(0,od)+_ $ 1(!1,Ra.slice(od,ld),/["'*]/gu," ")+Ra.slice(ld);return Ra}function N(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.startOffset}function P(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.endOffset}var Ll $ 1=/ \* \/ $ /,Dl=/^ \/ \* \* ?/,kn=/^ \s *( \/ \* \* ?(.| \r ? \n )*? \* \/ )/,Ml=/(^| \s +) \/ \/ ([^ \n \r ]*)/g,xn=/^( \r ? \n )+/,Bl=/(?:^| \r ? \n ) *(@[^ \n \r ]*?) * \r ? \n *(?![^ \n \r @]* \/ \/ [^]*)([^ \s @][^ \n \r @]+?) * \r ? \n /g,bn $ 1=/(?:^| \r ? \n ) *@( \S +) *([^ \n \r ]*)/g,Ul=/( \r ? \n |^) * \* ?/g,En=[];function Sn(Ra){let qa=Ra.match(kn);return qa?qa[0].trimStart():""}function Tn $ 1(Ra){let qa=Ra.match(kn),ed=qa==null?void 0:qa[0];return ed==null?Ra:Ra.slice(ed.length)}function On(Ra){let qa= `
` ;Ra=_ $ 1(!1,Ra.replace(Dl,"").replace(Ll $ 1,""),Ul," $ 1");let ed="";for(;ed!==Ra;)ed=Ra,Ra=_ $ 1(!1,Ra,Bl, ` $ { qa } $1 $2$ { qa } ` );Ra=Ra.replace(xn,"").trimEnd();let td=Object.create(null),rd=_ $ 1(!1,Ra,bn $ 1,"").replace(xn,"").trimEnd(),sd;for(;sd=bn $ 1.exec(Ra);){let od=_ $ 1(!1,sd[2],Ml,"");if(typeof td[sd[1]]=="string"||Array.isArray(td[sd[1]])){let ld=td[sd[1]];td[sd[1]]=[...En,...Array.isArray(ld)?ld:[ld],od]}else td[sd[1]]=od}return{comments:rd,pragmas:td}}function Cn $ 1({comments:Ra="",pragmas:qa={}}){let ed= `
` ,td="/**",rd=" *",sd=" */",od=Object.keys(qa),ld=od.flatMap(ud=>_n $ 1(ud,qa[ud])).map(ud=> ` $ { rd } $ { ud } $ { ed } ` ).join("");if(!Ra){if(od.length===0)return"";if(od.length===1&&!Array.isArray(qa[od[0]])){let ud=qa[od[0]];return ` $ { td } $ { _n$1 ( od [ 0 ] , ud ) [ 0 ] } $ { sd } ` }}let cd=Ra.split(ed).map(ud=> ` $ { rd } $ { ud } ` ).join(ed)+ed;return td+ed+(Ra?cd:"")+(Ra&&od.length>0?rd+ed:"")+ld+sd}function _n $ 1(Ra,qa){return[...En,...Array.isArray(qa)?qa:[qa]].map(ed=> ` @ $ { Ra } $ { ed } ` .trim())}function Fl $ 1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf( `
` );return qa===-1?Ra:Ra.slice(0,qa)}var An=Fl $ 1;function Nn(Ra){let qa=An(Ra);qa&&(Ra=Ra.slice(qa.length+1));let ed=Sn(Ra),{pragmas:td,comments:rd}=On(ed);return{shebang:qa,text:Ra,pragmas:td,comments:rd}}function Pn $ 1(Ra){let{pragmas:qa}=Nn(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function Rn(Ra){let{shebang:qa,text:ed,pragmas:td,comments:rd}=Nn(Ra),sd=Tn $ 1(ed),od=Cn $ 1({pragmas:{format:"",...td},comments:rd.trimStart()});return(qa? ` $ { qa }
` :"")+od+(sd.startsWith( `
2024-08-30 15:19:18 +08:00
` )? `
` : `
2024-08-27 22:31:52 +08:00
2024-09-16 00:03:18 +08:00
` )+sd}var Qe=3;function $ l(Ra){let qa=Ra.slice(0,Qe);if(qa!=="---"&&qa!=="+++")return;let ed=Ra.indexOf( `
` ,Qe);if(ed===-1)return;let td=Ra.slice(Qe,ed).trim(),rd=Ra.indexOf( `
$ { qa } ` ,ed),sd=td;if(sd||(sd=qa==="+++"?"toml":"yaml"),rd===-1&&qa==="---"&&sd==="yaml"&&(rd=Ra.indexOf( `
... ` ,ed)),rd===-1)return;let od=rd+1+Qe,ld=Ra.charAt(od+1);if(!/ \s ?/u.test(ld))return;let cd=Ra.slice(0,od);return{type:"front-matter",language:sd,explicitLanguage:td,value:Ra.slice(ed+1,rd),startDelimiter:qa,endDelimiter:cd.slice(-Qe),raw:cd}}function Wl(Ra){let qa= $ l(Ra);if(!qa)return{content:Ra};let{raw:ed}=qa;return{frontMatter:qa,content:_ $ 1(!1,ed,/[^ \n ]/gu," ")+Ra.slice(ed.length)}}var Je $ 1=Wl;function In(Ra){return Pn $ 1(Je $ 1(Ra).content)}function qn $ 1(Ra){let{frontMatter:qa,content:ed}=Je $ 1(Ra);return(qa?qa.raw+ `
` :"")+Rn(ed)}var Yl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ln(Ra){var qa,ed;return(ed=(qa=Ra.findAncestor(td=>td.type==="css-decl"))==null?void 0:qa.prop)==null?void 0:ed.toLowerCase()}var zl $ 1=new Set(["initial","inherit","unset","revert"]);function Dn $ 1(Ra){return zl $ 1.has(Ra.toLowerCase())}function Mn(Ra,qa){var ed;let td=Ra.findAncestor(rd=>rd.type==="css-atrule");return((ed=td==null?void 0:td.name)==null?void 0:ed.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(qa.toLowerCase())}function te(Ra){return Ra.includes(" $ ")||Ra.includes("@")||Ra.includes("#")||Ra.startsWith("%")||Ra.startsWith("--")||Ra.startsWith(":--")||Ra.includes("(")&&Ra.includes(")")?Ra:Ra.toLowerCase()}function ke $ 1(Ra,qa){var ed;let td=Ra.findAncestor(rd=>rd.type==="value-func");return((ed=td==null?void 0:td.value)==null?void 0:ed.toLowerCase())===qa}function Bn $ 1(Ra){var qa;let ed=Ra.findAncestor(rd=>rd.type==="css-rule"),td=(qa=ed==null?void 0:ed.raws)==null?void 0:qa.selector;return td&&(td.startsWith(":import")||td.startsWith(":export"))}function Ee(Ra,qa){let ed=Array.isArray(qa)?qa:[qa],td=Ra.findAncestor(rd=>rd.type==="css-atrule");return td&&ed.includes(td.name.toLowerCase())}function Un(Ra){var qa;let{node:ed}=Ra;return ed.groups[0].value==="url"&&ed.groups.length===2&&((qa=Ra.findAncestor(td=>td.type==="css-atrule"))==null?void 0:qa.name)==="import"}function Fn(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="url"}function $ n $ 1(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="var"}function Wn(Ra){let{selector:qa}=Ra;return qa?typeof qa=="string"&&/^@.+:.* $ /u.test(qa)||qa.value&&/^@.+:.* $ /u.test(qa.value):!1}function Yn $ 1(Ra){return Ra.type==="value-word"&&["from","through","end"].includes(Ra.value)}function zn(Ra){return Ra.type==="value-word"&&["and","or","not"].includes(Ra.value)}function Vn(Ra){return Ra.type==="value-word"&&Ra.value==="in"}function At $ 1(Ra){return Ra.type==="value-operator"&&Ra.value==="*"}function Xe(Ra){return Ra.type==="value-operator"&&Ra.value==="/"}function Q $ 1(Ra){return Ra.type==="value-operator"&&Ra.value==="+"}function le(Ra){return Ra.type==="value-operator"&&Ra.value==="-"}function Vl(Ra){return Ra.type==="value-operator"&&Ra.value==="%"}function Nt(Ra){return At $ 1(Ra)||Xe(Ra)||Q $ 1(Ra)||le(Ra)||Vl(Ra)}function Gn $ 1(Ra){return Ra.type==="value-word"&&["==","!="].includes(Ra.value)}function jn $ 1(Ra){return Ra.type==="value-word"&&["<",">","<=",">="].includes(Ra.value)}function Ze(Ra,qa){return qa.parser==="scss"&&Ra.type==="css-atrule"&&["if","else","for","each","while"].includes(Ra.name)}function Hr(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.params)&&/^ \( \s * \) $ /u.test(Ra.raws.params)}function Pt(Ra){return Ra.name.startsWith("prettier-placeholder")}function Hn(Ra){return Ra.prop.startsWith("@prettier-placeholder")}function Kn(Ra,qa){return Ra.value===" $ $ "&&Ra.type==="value-func"&&(qa==null?void 0:qa.type)==="value-word"&&!qa.raws.before}function Qn $ 1(Ra){var qa,ed;return((qa=Ra.value)==null?void 0:qa.type)==="value-root"&&((ed=Ra.value.group)==null?void 0:ed.type)==="value-value"&&Ra.prop.toLowerCase()==="composes"}function Jn $ 1(Ra){var qa,ed,td;return((td=(ed=(qa=Ra.value)==null?void 0:qa.group)==null?void 0:ed.group)==null?void 0:td.type)==="value-paren_group"&&Ra.value.group.group.open!==null&&Ra.value.group.group.close!==null}function ce(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.before)===""}function Rt $ 1(Ra){var qa,ed;return Ra.type==="value-comma_group"&&((ed=(qa=Ra.groups)==null?void 0:qa[1])==null?void 0:ed.type)==="value-colon"}function jr(Ra){var qa;return Ra.type==="value-paren_group"&&((qa=Ra.groups)==null?void 0:qa[0])&&Rt $ 1(Ra.groups[0])}function Kr(Ra,qa){var ed;if(qa.parser!=="scss")return!1;let{node:td}=Ra;if(td.groups.length===0)return!1;let rd=Ra.grandparent;if(!jr(td)&&!(rd&&jr(rd)))return!1;let sd=Ra.findAncestor(od=>od.type==="css-decl");return!!((ed=sd==null?void 0:sd.prop)!=n
` )return qa-2;if(rd=== `
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa-1}else{if(rd===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(rd=== `
2024-09-16 17:10:21 +08:00
` ||rd===" \r "||rd===" \u 2028"||rd===" \u 2029")return qa+1}return qa}var Dt $ 1=Xl $ 1;function Zl $ 1(Ra,qa,ed={}){let td=Ot $ 1(Ra,ed.backwards?qa-1:qa,ed),rd=Dt $ 1(Ra,td,ed);return td!==rd}var Mt=Zl $ 1;function ec(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let ed=qa+2;ed<Ra.length;++ed)if(Ra.charAt(ed)==="*"&&Ra.charAt(ed+1)==="/")return ed+2}return qa}var ui=ec;function tc(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?Ct $ 1(Ra,qa):qa}var li $ 1=tc;function rc(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=yn(Ra,td),td=ui(Ra,td),td=Ot $ 1(Ra,td);return td=li $ 1(Ra,td),td=Dt $ 1(Ra,td),td!==!1&&Mt(Ra,td)}var Bt $ 1=rc;function sc({node:Ra,parent:qa},ed){return!!(Ra.source&&ed.originalText.slice(N(Ra),N(qa.close)).trimEnd().endsWith(","))}function nc $ 1(Ra,qa){return $ n $ 1(Ra.grandparent)&&sc(Ra,qa)?",":Ra.node.type!=="value-comment"&&!(Ra.node.type==="value-comma_group"&&Ra.node.groups.every(ed=>ed.type==="value-comment"))&&ai $ 1(qa)&&Ra.callParent(()=>Kr(Ra,qa))?kt $ 1(","):""}function ci(Ra,qa,ed){let{node:td,parent:rd}=Ra,sd=Ra.map(({node:Td})=>typeof Td=="string"?Td:ed(),"groups");if(rd&&Fn(rd)&&(td.groups.length===1||td.groups.length>0&&td.groups[0].type==="value-comma_group"&&td.groups[0].groups.length>0&&td.groups[0].groups[0].type==="value-word"&&td.groups[0].groups[0].value.startsWith("data:")))return[td.open?ed("open"):"",V(",",sd),td.close?ed("close"):""];if(!td.open){let Td=es(Ra),Nd=V([",",Td?E:A],sd);return q(Td?[E,Nd]:L(Ge(Nd)))}let od=Ra.map(({node:Td,isLast:Nd,index:Rd})=>{var Bd;let kd=sd[Rd];if(Rt $ 1(Td)&&Td.type==="value-comma_group"&&Td.groups&&Td.groups[0].type!=="value-paren_group"&&((Bd=Td.groups[2])==null?void 0:Bd.type)==="value-paren_group"){let{parts:Md}=kd.contents.contents;Md[1]=L(Md[1]),kd=L(ue(kd))}let Od=[kd,Nd?nc $ 1(Ra,qa):","];if(!Nd&&Td.type==="value-comma_group"&&ee(Td.groups)){let Md=G(!1,Td.groups,-1);!Md.source&&Md.close&&(Md=Md.close),Md.source&&Bt $ 1(qa.originalText,P(Md))&&Od.push(E)}return Od},"groups"),ld=Xn $ 1(td,rd),cd=ti $ 1(td,rd),ud=Kr(Ra,qa),_d=cd||ud&&!ld,Ed=cd||ld,Ad=L([td.open?ed("open"):"",q([M,V(A,od)]),M,td.close?ed("close"):""],{shouldBreak:_d});return Ed?ue(Ad):Ad}function es(Ra){return Ra.match(qa=>qa.type==="value-paren_group"&&!qa.open&&qa.groups.some(ed=>ed.type==="value-comma_group"),(qa,ed)=>ed==="group"&&qa.type==="value-value",(qa,ed)=>ed==="group"&&qa.type==="value-root",(qa,ed)=>ed==="value"&&(qa.type==="css-decl"&&!qa.prop.startsWith("--")||qa.type==="css-atrule"&&qa.variable))}function ic(Ra,qa,ed){let td=[];return Ra.each(()=>{let{node:rd,previous:sd}=Ra;if((sd==null?void 0:sd.type)==="css-comment"&&sd.text.trim()==="prettier-ignore"?td.push(qa.originalText.slice(N(rd),P(rd))):td.push(ed()),Ra.isLast)return;let{next:od}=Ra;od.type==="css-comment"&&!Mt(qa.originalText,N(od),{backwards:!0})&&!_e(rd)||od.type==="css-atrule"&&od.name==="else"&&rd.type!=="css-comment"?td.push(" "):(td.push(qa.__isHTMLStyleAttribute?A:E),Bt $ 1(qa.originalText,P(rd))&&!_e(rd)&&td.push(E))},"nodes"),td}var Te=ic;function oc $ 1(Ra,qa,ed){var td,rd,sd,od,ld,cd;let{node:ud}=Ra;switch(ud.type){case"front-matter":return[ud.raw,E];case"css-root":{let _d=Te(Ra,qa,ed),Ed=ud.raws.after.trim();return Ed.startsWith(";")&&(Ed=Ed.slice(1).trim()),[ud.frontMatter?[ed("frontMatter"),E]:"",_d,Ed? ` $ { Ed } ` :"",ud.nodes.length>0?E:""]}case"css-comment":{let _d=ud.inline||ud.raws.inline,Ed=qa.originalText.slice(N(ud),P(ud));return _d?Ed.trimEnd():Ed}case"css-rule":return[ed("selector"),ud.important?" !important":"",ud.nodes?[((td=ud.selector)==null?void 0:td.type)==="selector-unknown"&&Se(ud.selector.value)?A:ud.selector?" ":"","{",ud.nodes.length>0?q([E,Te(Ra,qa,ed)]):"",E,"}",Wn(ud)?";":""]:";"];case"css-decl":{let _d=Ra.parent,{between:Ed}=ud.raws,Ad=Ed.trim(),Td=Ad===":",Nd=typeof ud.value=="string"&&/^ * $ /u.test(ud.value),Rd=typeof ud.value=="string"?ud.value:ed("value");return Rd=Qn $ 1(ud)?rn(Rd):Rd,!Td&&Se(Ad)&&!((sd=(rd=ud.value)==null?void 0:rd.group)!=null&&sd.group&&Ra.call(()=>es(Ra),"value","group","group"))&&(Rd=q([E,ue(Rd)])),[_ $ 1(!1,ud.raws.before,/[ \s ;]/gu
2024-09-16 00:03:18 +08:00
` }return td}function toBase64(Ra){return new Promise((qa,ed)=>{const td=new FileReader;td.readAsDataURL(Ra),td.onload=()=>qa(td.result.split(",").pop()),td.onerror=rd=>ed(rd)})}function checkImage(Ra){if(!/ \. (?:gif|jpe?g|png) $ /i.test(Ra.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const ed=10;return Ra.size>ed*1024*1024?{ok:!1,msg: ` 由于公众号限制 , 图片大小不能超过 $ { ed } M ` }:{ok:!0}}function removeLeft(Ra){const qa=Ra.split( `
` ),ed=qa.filter(td=>td.trim()).map(td=>td.match(/(^ \s +)?/)[0].length).sort((td,rd)=>td-rd)[0];return qa.map(td=>td.slice(ed)).join( `
2024-09-16 17:10:21 +08:00
` )}function solveWeChatImage(){const qa=document.getElementById("output").getElementsByTagName("img");for(let ed=0;ed<qa.length;ed++){const td=qa[ed],rd=td.getAttribute("width"),sd=td.getAttribute("height");td.removeAttribute("width"),td.removeAttribute("height"),td.style.width=rd,td.style.height=sd}}function mergeCss(Ra){return juice(Ra,{inlinePseudoElements:!0,preserveImportant:!0})}const useStore=defineStore("store",()=>{const Ra=useDark(),qa=useToggle(Ra),ed=useStorage("isMacCodeBlock",!0),td=useToggle(ed),rd=useStorage("isEditOnLeft",!0),sd=useToggle(rd),od=useStorage("isCiteStatus",!1),ld=useToggle(od),cd=ref $ 1(""),ud=useStorage(addPrefix("theme"),themeOptions[0].value),_d=useStorage("fonts",fontFamilyOptions[0].value),Ed=useStorage("size",fontSizeOptions[2].value),Ad=useStorage("color",colorOptions[0].value),Td=useStorage("codeBlockTheme",codeBlockThemeOptions[23].value),Nd=useStorage("legend",legendOptions[3].value),Rd=computed(()=>Ed.value.replace("px","")),Bd=ref $ 1(null),kd=useStorage("__editor_content",DEFAULT_CONTENT),Od=()=>{formatDoc(Bd.value.getValue()).then(xf=>{kd.value=xf,Bd.value.setValue(xf)})},Md=()=>{const xf=Td.value,Rf=document.querySelector("#hljs");if(Rf)Rf.setAttribute("href",xf);else{const qf=document.createElement("link");qf.setAttribute("type","text/css"),qf.setAttribute("rel","stylesheet"),qf.setAttribute("href",xf),qf.setAttribute("id","hljs"),document.head.appendChild(qf)}},Pd=ref $ 1(null),Fd=xf=>{Pd.value.setValue(xf)},Ud=useStorage("__css_content",DEFAULT_CSS_CONTENT),Gd=useStorage(addPrefix("css_content_config"),{active:"方案1",tabs:[{title:"方案1",name:"方案1",content:Ud.value||DEFAULT_CSS_CONTENT}]});onMounted(()=>{Ud.value=""});const Qd=()=>Gd.value.tabs.find(xf=>xf.name===Gd.value.active),Vd=xf=>{Gd.value.active=xf;const Rf=Gd.value.tabs.find(qf=>qf.name===xf).content;Fd(Rf)},zd=xf=>{const Rf=Qd();Rf.title=xf,Rf.name=xf,Gd.value.active=xf},Xd=xf=>{Gd.value.tabs.push({name:xf,title:xf,content:DEFAULT_CSS_CONTENT}),Gd.value.active=xf,Fd(DEFAULT_CSS_CONTENT)},df=xf=>Gd.value.tabs.every(({name:Rf})=>Rf!==xf),mf=initRenderer({theme:customCssWithTemplate(css2json(Qd().content),Ad.value,customizeTheme(themeMap[ud.value],{fontSize:Rd.value,color:Ad.value})),fonts:_d.value,size:Rd.value}),_f=()=>{Md(),mf.reset({status:od.value,legend:Nd.value});let xf=marked $ 1.parse(Bd.value.getValue());xf=xf.replace(/(style=".*?)"/,' $ 1;margin-top: 0"'),xf+=mf.buildFootnotes(),xf+=mf.buildAddition(),ed.value&&(xf+= `
2024-08-27 22:31:52 +08:00
< style >
2024-09-07 21:44:41 +08:00
. hljs . code _ _pre > . mac - sign {
display : inline - block ;
2024-08-27 22:31:52 +08:00
}
. hljs . code _ _pre {
padding : 0 ! important ;
}
. hljs . code _ _pre code {
display : - webkit - box ;
padding : 0.5 em 1 em 1 em ;
overflow - x : auto ;
text - indent : 0 ;
}
< / s t y l e >
2024-09-16 17:10:21 +08:00
` ),cd.value=xf},hf=()=>{const xf=css2json(Pd.value.getValue()),Rf=customCssWithTemplate(xf,Ad.value,customizeTheme(themeMap[ud.value],{fontSize:Rd.value,color:Ad.value}));mf.setOptions({theme:Rf}),_f()};onMounted(()=>{const xf=document.querySelector("#cssEditor");xf.value=Qd().content;const Rf=Ra.value?"darcula":"xq-light";Pd.value=markRaw(CodeMirror.fromTextArea(xf,{mode:"css",theme:Rf,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function(ch){formatDoc(ch.getValue(),"css").then(_h=>{Qd().content=_h,ch.setValue(_h)})}}})),Pd.value.on("keyup",(qf,ch)=>{(ch.keyCode>=65&&ch.keyCode<=90||ch.keyCode===189)&&qf.showHint(ch)}),Pd.value.on("update",()=>{hf(),Qd().content=Pd.value.getValue()})}),watch(Ra,()=>{var Rf,qf;const xf=Ra.value?"darcula":"xq-light";(qf=(Rf=toRaw(Pd.value))==null?void 0:Rf.setOption)==null||qf.call(Rf,"theme",xf)});const gf=()=>{od.value=!1,ed.value=!0,ud.value=themeOptions[0].value,_d.value=fontFamilyOptions[0].value,_d.value=fontFamilyOptions[0].value,Ed.value=fontSizeOptions[2].value,Ad.value=colorOptions[0].value,Td.value=codeBlockThemeOptions[2].value,Nd.value=legendOptions[3].value,Gd.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Ud.value||DEFAULT_CSS_CONTENT}]},Pd.value.setValue(DEFAULT_CSS_CONTENT),hf(),_f()},yf=xf=>(...Rf)=>{xf(...Rf),_f()},Cf=(xf,Rf)=>{const qf=themeMap[ud.value],ch=xf.replace("px","");return customCssWithTemplate(css2json(Qd().content),Rf,customizeTheme(qf,{fontSize:ch,color:Rf}))},Ff=yf(xf=>{mf.setOptions({theme:customCssWithTemplate(css2json(Qd().content),Ad.value,customizeTheme(themeMap[xf],{fontSize:Rd.value}))}),ud.value=xf}),Qf=yf(xf=>{mf.setOptions({fonts:xf}),_d.value=xf}),Uf=yf(xf=>{const Rf=Cf(xf,Ad.value);mf.setOptions({size:xf,theme:Rf}),Ed.value=xf}),Lf=yf(xf=>{const Rf=Cf(Ed.value,xf);mf.setOptions({theme:Rf}),Ad.value=xf}),wf=yf(xf=>{Td.value=xf}),Nf=yf(xf=>{Nd.value=xf}),Zf=yf(()=>{td()}),Kf=yf(()=>{ld()}),Tf=()=>{exportHTML(),document.querySelector("#output").innerHTML=cd.value},bf=()=>{downloadMD(Bd.value.getValue())},Bf=()=>{const xf=document.body,Rf=document.createElement("input");Rf.type="file",Rf.name="filename",Rf.accept=".md",Rf.onchange=()=>{const qf=Rf.files[0];if(!qf)return;const ch=new FileReader;ch.readAsText(qf),ch.onload=_h=>{Bd.value.setValue(_h.target.result),ElMessage.success("文档导入成功")}},xf.appendChild(Rf),Rf.click(),xf.removeChild(Rf)},Wf=()=>{ElMessageBox.confirm("此操作将丢失本地自定义样式,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{gf(),ElMessage({type:"success",message:"样式重置成功~"})}).catch(()=>{Bd.value.focus()})},lh=ref $ 1(!1),Xf=useToggle(lh), $ f=ref $ 1(!1),th=useToggle( $ f),hh=ref $ 1(!1),Yf=useToggle(hh);return{isShowCssEditor:lh,toggleShowCssEditor:Xf,isShowInsertFormDialog: $ f,toggleShowInsertFormDialog:th,isShowUploadImgDialog:hh,toggleShowUploadImgDialog:Yf,isDark:Ra,toggleDark:qa,isEditOnLeft:rd,toggleEditOnLeft:sd,isMacCodeBlock:ed,isCiteStatus:od,citeStatusChanged:Kf,output:cd,editor:Bd,cssEditor:Pd,theme:ud,fontFamily:_d,fontSize:Ed,primaryColor:Ad,codeBlockTheme:Td,legend:Nd,editorRefresh:_f,themeChanged:Ff,fontChanged:Qf,sizeChanged:Uf,colorChanged:Lf,codeBlockThemeChanged:wf,legendChanged:Nf,macCodeBlockChanged:Zf,formatContent:Od,exportEditorContent2HTML:Tf,exportEditorContent2MD:bf,importMarkdownContent:Bf,resetStyleConfirm:Wf,editorContent:kd,cssContentConfig:Gd,addCssContentTab:Xd,validatorTabName:df,setCssEditorValue:Fd,tabChanged:Vd,renameTab:zd}}),Store=createPinia(),ElementPlus={install(Ra){Ra.config.globalProperties. $ loading=ElLoading.service,Ra.config.globalProperties. $ message=ElMessage;for(const[qa,ed]of Object.entries(ElementPlusIconsVue))Ra.component( ` ElIcon$ { qa } ` ,ed)}};var cryptoJs={exports:{}};function commonjsRequire(Ra){throw new Error('Could not dynamically require "'+Ra+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for th
2024-08-27 22:31:52 +08:00
( c ) 2012 by Cédric Mesnil . All rights reserved .
Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met :
- Redistributions of source code must retain the above copyright notice , this list of conditions and the following disclaimer .
- Redistributions in binary form must reproduce the above copyright notice , this list of conditions and the following disclaimer in the documentation and / or other materials provided with the distribution .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
2024-09-16 00:03:18 +08:00
* / r e t u r n f u n c t i o n ( t d ) { v a r r d = e d , s d = r d . l i b , o d = s d . W o r d A r r a y , l d = s d . H a s h e r , c d = r d . a l g o , u d = o d . c r e a t e ( [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 0 , 1 1 , 1 2 , 1 3 , 1 4 , 1 5 , 7 , 4 , 1 3 , 1 , 1 0 , 6 , 1 5 , 3 , 1 2 , 0 , 9 , 5 , 2 , 1 4 , 1 1 , 8 , 3 , 1 0 , 1 4 , 4 , 9 , 1 5 , 8 , 1 , 2 , 7 , 0 , 6 , 1 3 , 1 1 , 5 , 1 2 , 1 , 9 , 1 1 , 1 0 , 0 , 8 , 1 2 , 4 , 1 3 , 3 , 7 , 1 5 , 1 4 , 5 , 6 , 2 , 4 , 0 , 5 , 9 , 7 , 1 2 , 2 , 1 0 , 1 4 , 1 , 3 , 8 , 1 1 , 6 , 1 5 , 1 3 ] ) , _ d = o d . c r e a t e ( [ 5 , 1 4 , 7 , 0 , 9 , 2 , 1 1 , 4 , 1 3 , 6 , 1 5 , 8 , 1 , 1 0 , 3 , 1 2 , 6 , 1 1 , 3 , 7 , 0 , 1 3 , 5 , 1 0 , 1 4 , 1 5 , 8 , 1 2 , 4 , 9 , 1 , 2 , 1 5 , 5 , 1 , 3 , 7 , 1 4 , 6 , 9 , 1 1 , 8 , 1 2 , 2 , 1 0 , 0 , 4 , 1 3 , 8 , 6 , 4 , 1 , 3 , 1 1 , 1 5 , 0 , 5 , 1 2 , 2 , 1 3 , 9 , 7 , 1 0 , 1 4 , 1 2 , 1 5 , 1 0 , 4 , 1 , 5 , 8 , 7 , 6 , 2 , 1 3 , 1 4 , 0 , 3 , 9 , 1 1 ] ) , E d = o d . c r e a t e ( [ 1 1 , 1 4 , 1 5 , 1 2 , 5 , 8 , 7 , 9 , 1 1 , 1 3 , 1 4 , 1 5 , 6 , 7 , 9 , 8 , 7 , 6 , 8 , 1 3 , 1 1 , 9 , 7 , 1 5 , 7 , 1 2 , 1 5 , 9 , 1 1 , 7 , 1 3 , 1 2 , 1 1 , 1 3 , 6 , 7 , 1 4 , 9 , 1 3 , 1 5 , 1 4 , 8 , 1 3 , 6 , 5 , 1 2 , 7 , 5 , 1 1 , 1 2 , 1 4 , 1 5 , 1 4 , 1 5 , 9 , 8 , 9 , 1 4 , 5 , 6 , 8 , 6 , 5 , 1 2 , 9 , 1 5 , 5 , 1 1 , 6 , 8 , 1 3 , 1 2 , 5 , 1 2 , 1 3 , 1 4 , 1 1 , 8 , 5 , 6 ] ) , A d = o d . c r e a t e ( [ 8 , 9 , 9 , 1 1 , 1 3 , 1 5 , 1 5 , 5 , 7 , 7 , 8 , 1 1 , 1 4 , 1 4 , 1 2 , 6 , 9 , 1 3 , 1 5 , 7 , 1 2 , 8 , 9 , 1 1 , 7 , 7 , 1 2 , 7 , 6 , 1 5 , 1 3 , 1 1 , 9 , 7 , 1 5 , 1 1 , 8 , 6 , 6 , 1 4 , 1 2 , 1 3 , 5 , 1 4 , 1 3 , 1 3 , 7 , 5 , 1 5 , 5 , 8 , 1 1 , 1 4 , 1 4 , 6 , 1 4 , 6 , 9 , 1 2 , 9 , 1 2 , 5 , 1 5 , 8 , 8 , 5 , 1 2 , 9 , 1 2 , 5 , 1 4 , 6 , 8 , 1 3 , 6 , 5 , 1 5 , 1 3 , 1 1 , 1 1 ] ) , T d = o d . c r e a t e ( [ 0 , 1 5 1 8 5 0 0 2 4 9 , 1 8 5 9 7 7 5 3 9 3 , 2 4 0 0 9 5 9 7 0 8 , 2 8 4 0 8 5 3 8 3 8 ] ) , N d = o d . c r e a t e ( [ 1 3 5 2 8 2 9 9 2 6 , 1 5 4 8 6 0 3 6 8 4 , 1 8 3 6 0 7 2 6 9 1 , 2 0 5 3 9 9 4 2 1 7 , 0 ] ) , R d = c d . R I P E M D 1 6 0 = l d . e x t e n d ( { _ d o R e s e t : f u n c t i o n ( ) { t h i s . _ h a s h = o d . c r e a t e ( [ 1 7 3 2 5 8 4 1 9 3 , 4 0 2 3 2 3 3 4 1 7 , 2 5 6 2 3 8 3 1 0 2 , 2 7 1 7 3 3 8 7 8 , 3 2 8 5 3 7 7 5 2 0 ] ) } , _ d o P r o c e s s B l o c k : f u n c t i o n ( U d , G d ) { f o r ( v a r Q d = 0 ; Q d < 1 6 ; Q d + + ) { v a r V d = G d + Q d , z d = U d [ V d ] ; U d [ V d ] = ( z d < < 8 | z d > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( z d < < 2 4 | z d > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } v a r X d = t h i s . _ h a s h . w o r d s , d f = T d . w o r d s , m f = N d . w o r d s , _ f = u d . w o r d s , h f = _ d . w o r d s , g f = E d . w o r d s , y f = A d . w o r d s , C f , F f , Q f , U f , L f , w f , N f , Z f , K f , T f ; w f = C f = X d [ 0 ] , N f = F f = X d [ 1 ] , Z f = Q f = X d [ 2 ] , K f = U f = X d [ 3 ] , T f = L f = X d [ 4 ] ; f o r ( v a r b f , Q d = 0 ; Q d < 8 0 ; Q d + = 1 ) b f = C f + U d [ G d + _ f [ Q d ] ] | 0 , Q d < 1 6 ? b f + = B d ( F f , Q f , U f ) + d f [ 0 ] : Q d < 3 2 ? b f + = k d ( F f , Q f , U f ) + d f [ 1 ] : Q d < 4 8 ? b f + = O d ( F f , Q f , U f ) + d f [ 2 ] : Q d < 6 4 ? b f + = M d ( F f , Q f , U f ) + d f [ 3 ] : b f + = P d ( F f , Q f , U f ) + d f [ 4 ] , b f = b f | 0 , b f = F d ( b f , g f [ Q d ] ) , b f = b f + L f | 0 , C f = L f , L f = U f , U f = F d ( Q f , 1 0 ) , Q f = F f , F f = b f , b f = w f + U d [ G d + h f [ Q d ] ] | 0 , Q d < 1 6 ? b f + = P d ( N f , Z f , K f ) + m f [ 0 ] : Q d < 3 2 ? b f + = M d ( N f , Z f , K f ) + m f [ 1 ] : Q d < 4 8 ? b f + = O d ( N f , Z f , K f ) + m f [ 2 ] : Q d < 6 4 ? b f + = k d ( N f , Z f , K f ) + m f [ 3 ] : b f + = B d ( N f , Z f , K f ) + m f [ 4 ] , b f = b f | 0 , b f = F d ( b f , y f [ Q d ] ) , b f = b f + T f | 0 , w f = T f , T f = K f , K f = F d ( Z f , 1 0 ) , Z f = N f , N f = b f ; b f = X d [ 1 ] + Q f + K f | 0 , X d [ 1 ] = X d [ 2 ] + U f + T f | 0 , X d [ 2 ] = X d [ 3 ] + L f + w f | 0 , X d [ 3 ] = X d [ 4 ] + C f + N f | 0 , X d [ 4 ] = X d [ 0 ] + F f + Z f | 0 , X d [ 0 ] = b f } , _ d o F i n a l i z e : f u n c t i o n ( ) { v a r U d = t h i s . _ d a t a , G d = U d . w o r d s , Q d = t h i s . _ n D a t a B y t e s * 8 , V d = U d . s i g B y t e s * 8 ; G d [ V d > > > 5 ] | = 1 2 8 < < 2 4 - V d % 3 2 , G d [ ( V d + 6 4 > > > 9 < < 4 ) + 1 4 ] = ( Q d < < 8 | Q d > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( Q d < < 2 4 | Q d > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 , U d . s i g B y t e s = ( G d . l e n g t h + 1 ) * 4 , t h i s . _ p r o c e s s ( ) ; f o r ( v a r z d = t h i s . _ h a s h , X d = z d . w o r d s , d f = 0 ; d f < 5 ; d f + + ) { v a r m f = X d [ d f ] ; X d [ d f ] = ( m f < < 8 | m f > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( m f < < 2 4 | m f > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } r e t u r n z d } , c l o n e : f u n c t i o n ( ) { v a r U d = l d . c l o n e . c a l l ( t h i s ) ; r e t u r n U d . _ h a s h = t h i s . _ h a s h . c l o n e ( ) , U d } } ) ; f u n c t i o n B d ( U d , G d , Q d ) { r e t u r n U d ^ G d ^ Q d } f u n c t i o n k d ( U d , G d , Q d ) { r e t u r n U d & G d | ~ U d & Q d } f u n c t i o n O d ( U d , G d , Q d ) { r e t u r n ( U d | ~ G d ) ^ Q d } f u n c t i o n M d ( U d , G d , Q d ) { r e t u r n U d & Q d | G d & ~ Q d } f u n c t i o n P d ( U d , G d , Q d ) { r e t u r n U d ^ ( G d | ~ Q d ) } f u n c t i o n F d ( U d , G d ) { r e t u r n U d < < G d | U d > > > 3 2 - G d } r d . R I P E M D 1 6 0 = l d . _ c r e a t e H e l p e r ( R d ) , r d . H m a c R I P E M D 1 6 0 = l d . _ c r e a t e H m a c H e l p e r ( R d ) } ( ) , e d . R I P E M D 1 6 0 } ) } ( r i p e m d 1 6 0 ) ) , r i p e m d 1 6 0 . e x p o r t s } v a r h m a c = { e x p o r t s : { } } , h a s R e q u i r e d H m a c ; f u n c t i o n r e q u i r e H m a c ( ) { r e t u r n h a s R e q u i r e d H m a c | | ( h a s R e q u i r e d H m a c = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { ( f u n c t i o n ( ) { v a r t d = e d , r d = t d . l i b , s d = r d . B a s e , o d = t d . e n c , l d = o d . U t f 8 , c d = t d . a l g o ; c d . H M A C = s d . e x t e n d ( { i n i t : f u n c t i o n ( u d , _ d ) { u d = t h i s . _ h a s h e r = n e w u d . i n i t , t y p e o f _ d = = " s t r i n g " & & ( _ d = l d . p a r s e ( _ d ) ) ; v a r E d = u d . b l o c k S i z e , A d = E d * 4 ; _ d . s i g B y t e s > A d & & ( _ d = u d . f i n a l i z e ( _ d ) ) , _ d . c l a m p ( ) ; f o r ( v a r T d = t h i s . _ o K e y = _ d . c l o n e ( ) , N d = t h i s . _ i K e y = _ d . c l o n e ( ) , R d = T d . w o r d s , B d = N d . w o r d s , k d = 0 ; k d < E d ; k d + + ) R d [ k d ] ^ = 1 5 4 9 5 5 6 8 2 8 , B d [ k d ] ^ = 9 0 9 5 2 2 4 8 6 ; T d . s i g B y t e s = N d . s i g B y t e s = A d , t h i s . r e s e t ( ) } , r e s e t : f u n c t i o n ( ) { v a r u d = t h i s . _ h a s h e r ; u d . r e s e t ( ) , u d . u p d a t e ( t h i s . _ i K e y ) } , u p d a t e : f u n c t i o n ( u d ) { r e t u r n t h i s . _ h a s h e r . u p d a t e ( u d ) , t h i s } , f i n a l i z e : f u n c t i o n ( u d ) { v a r _ d = t h i s . _ h a s h e r , E d = _ d . f i n a l i z e ( u d ) ; _ d . r e s e t ( ) ; v a r A d = _ d . f i n a l i z e ( t h i s . _ o K e y . c l o n e ( ) . c o n c a t ( E d ) ) ; r e t u r n A d } } ) } ) ( ) } ) } ( h m a c ) ) , h m a c . e x p o r t s } v a r p b k d f 2 = { e x p o r t s : { } } , h a s R e q u i r e d P b k d f 2 ; f u n c t i o n r e q u i r e P b k d f 2 ( ) { r e t u r n h a s R e q u i r e d P b k d f 2 | | ( h a s R e q u i r e d P b k d f 2 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d , r d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) , r e q u i r e S h a 2 5 6 ( ) , r e q u i r e H m a c ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { r e t u
2024-08-27 22:31:52 +08:00
* Counter block mode compatible with Dr Brian Gladman fileenc . c
* derived from CryptoJS . mode . CTR
* Jan Hruby jhruby . web @ gmail . com
2024-09-16 00:03:18 +08:00
* / r e t u r n e d . m o d e . C T R G l a d m a n = f u n c t i o n ( ) { v a r t d = e d . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) ; f u n c t i o n r d ( l d ) { i f ( ( l d > > 2 4 & 2 5 5 ) = = = 2 5 5 ) { v a r c d = l d > > 1 6 & 2 5 5 , u d = l d > > 8 & 2 5 5 , _ d = l d & 2 5 5 ; c d = = = 2 5 5 ? ( c d = 0 , u d = = = 2 5 5 ? ( u d = 0 , _ d = = = 2 5 5 ? _ d = 0 : + + _ d ) : + + u d ) : + + c d , l d = 0 , l d + = c d < < 1 6 , l d + = u d < < 8 , l d + = _ d } e l s e l d + = 1 < < 2 4 ; r e t u r n l d } f u n c t i o n s d ( l d ) { r e t u r n ( l d [ 0 ] = r d ( l d [ 0 ] ) ) = = = 0 & & ( l d [ 1 ] = r d ( l d [ 1 ] ) ) , l d } v a r o d = t d . E n c r y p t o r = t d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( l d , c d ) { v a r u d = t h i s . _ c i p h e r , _ d = u d . b l o c k S i z e , E d = t h i s . _ i v , A d = t h i s . _ c o u n t e r ; E d & & ( A d = t h i s . _ c o u n t e r = E d . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , s d ( A d ) ; v a r T d = A d . s l i c e ( 0 ) ; u d . e n c r y p t B l o c k ( T d , 0 ) ; f o r ( v a r N d = 0 ; N d < _ d ; N d + + ) l d [ c d + N d ] ^ = T d [ N d ] } } ) ; r e t u r n t d . D e c r y p t o r = o d , t d } ( ) , e d . m o d e . C T R G l a d m a n } ) } ( m o d e C t r G l a d m a n ) ) , m o d e C t r G l a d m a n . e x p o r t s } v a r m o d e O f b = { e x p o r t s : { } } , h a s R e q u i r e d M o d e O f b ; f u n c t i o n r e q u i r e M o d e O f b ( ) { r e t u r n h a s R e q u i r e d M o d e O f b | | ( h a s R e q u i r e d M o d e O f b = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d , r d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { r e t u r n e d . m o d e . O F B = f u n c t i o n ( ) { v a r t d = e d . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) , r d = t d . E n c r y p t o r = t d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( s d , o d ) { v a r l d = t h i s . _ c i p h e r , c d = l d . b l o c k S i z e , u d = t h i s . _ i v , _ d = t h i s . _ k e y s t r e a m ; u d & & ( _ d = t h i s . _ k e y s t r e a m = u d . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , l d . e n c r y p t B l o c k ( _ d , 0 ) ; f o r ( v a r E d = 0 ; E d < c d ; E d + + ) s d [ o d + E d ] ^ = _ d [ E d ] } } ) ; r e t u r n t d . D e c r y p t o r = r d , t d } ( ) , e d . m o d e . O F B } ) } ( m o d e O f b ) ) , m o d e O f b . e x p o r t s } v a r m o d e E c b = { e x p o r t s : { } } , h a s R e q u i r e d M o d e E c b ; f u n c t i o n r e q u i r e M o d e E c b ( ) { r e t u r n h a s R e q u i r e d M o d e E c b | | ( h a s R e q u i r e d M o d e E c b = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d , r d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { r e t u r n e d . m o d e . E C B = f u n c t i o n ( ) { v a r t d = e d . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) ; r e t u r n t d . E n c r y p t o r = t d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( r d , s d ) { t h i s . _ c i p h e r . e n c r y p t B l o c k ( r d , s d ) } } ) , t d . D e c r y p t o r = t d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( r d , s d ) { t h i s . _ c i p h e r . d e c r y p t B l o c k ( r d , s d ) } } ) , t d } ( ) , e d . m o d e . E C B } ) } ( m o d e E c b ) ) , m o d e E c b . e x p o r t s } v a r p a d A n s i x 9 2 3 = { e x p o r t s : { } } , h a s R e q u i r e d P a d A n s i x 9 2 3 ; f u n c t i o n r e q u i r e P a d A n s i x 9 2 3 ( ) { r e t u r n h a s R e q u i r e d P a d A n s i x 9 2 3 | | ( h a s R e q u i r e d P a d A n s i x 9 2 3 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d , r d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { r e t u r n e d . p a d . A n s i X 9 2 3 = { p a d : f u n c t i o n ( t d , r d ) { v a r s d = t d . s i g B y t e s , o d = r d * 4 , l d = o d - s d % o d , c d = s d + l d - 1 ; t d . c l a m p ( ) , t d . w o r d s [ c d > > > 2 ] | = l d < < 2 4 - c d % 4 * 8 , t d . s i g B y t e s + = l d } , u n p a d : f u n c t i o n ( t d ) { v a r r d = t d . w o r d s [ t d . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; t d . s i g B y t e s - = r d } } , e d . p a d . A n s i x 9 2 3 } ) } ( p a d A n s i x 9 2 3 ) ) , p a d A n s i x 9 2 3 . e x p o r t s } v a r p a d I s o 1 0 1 2 6 = { e x p o r t s : { } } , h a s R e q u i r e d P a d I s o 1 0 1 2 6 ; f u n c t i o n r e q u i r e P a d I s o 1 0 1 2 6 ( ) { r e t u r n h a s R e q u i r e d P a d I s o 1 0 1 2 6 | | ( h a s R e q u i r e d P a d I s o 1 0 1 2 6 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d , r d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { r e t u r n e d . p a d . I s o 1 0 1 2 6 = { p a d : f u n c t i o n ( t d , r d ) { v a r s d = r d * 4 , o d = s d - t d . s i g B y t e s % s d ; t d . c o n c a t ( e d . l i b . W o r d A r r a y . r a n d o m ( o d - 1 ) ) . c o n c a t ( e d . l i b . W o r d A r r a y . c r e a t e ( [ o d < < 2 4 ] , 1 ) ) } , u n p a d : f u n c t i o n ( t d ) { v a r r d = t d . w o r d s [ t d . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; t d . s i g B y t e s - = r d } } , e d . p a d . I s o 1 0 1 2 6 } ) } ( p a d I s o 1 0 1 2 6 ) ) , p a d I s o 1 0 1 2 6 . e x p o r t s } v a r p a d I s o 9 7 9 7 1 = { e x p o r t s : { } } , h a s R e q u i r e d P a d I s o 9 7 9 7 1 ; f u n c t i o n r e q u i r e P a d I s o 9 7 9 7 1 ( ) { r e t u r n h a s R e q u i r e d P a d I s o 9 7 9 7 1 | | ( h a s R e q u i r e d P a d I s o 9 7 9 7 1 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d , r d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { r e t u r n e d . p a d . I s o 9 7 9 7 1 = { p a d : f u n c t i o n ( t d , r d ) { t d . c o n c a t ( e d . l i b . W o r d A r r a y . c r e a t e ( [ 2 1 4 7 4 8 3 6 4 8 ] , 1 ) ) , e d . p a d . Z e r o P a d d i n g . p a d ( t d , r d ) } , u n p a d : f u n c t i o n ( t d ) { e d . p a d . Z e r o P a d d i n g . u n p a d ( t d ) , t d . s i g B y t e s - - } } , e d . p a d . I s o 9 7 9 7 1 } ) } ( p a d I s o 9 7 9 7 1 ) ) , p a d I s o 9 7 9 7 1 . e x p o r t s } v a r p a d Z e r o p a d d i n g = { e x p o r t s : { } } , h a s R e q u i r e d P a d Z e r o p a d d i n g ; f u n c t i o n r e q u i r e P a d Z e r o p a d d i n g ( ) { r e t u r n h a s R e q u i r e d P a d Z e r o p a d d i n g | | ( h a s R e q u i r e d P a d Z e r o p a d d i n g = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( e d , t d , r d ) { R a . e x p o r t s = t d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( e d ) { r e t u r n e d . p a d . Z e r o P a d d i n g = { p a d : f u n c t i o n ( t d , r d ) { v a r s d = r d * 4 ; t d . c l a m p ( ) , t d . s i g B y t e s + = s d - ( t d . s i g B y t e s % s d | | s d ) } , u n p a d : f u n c t i o n ( t d ) { f o r ( v a r r d = t d . w o r d s , s d = t d . s i g B y t e s - 1 , s d = t d . s i g B y t e s - 1 ; s d > = 0 ; s d - - ) i f ( r d [ s d > > > 2 ] > > > 2 4 - s d % 4 * 8 & 2 5 5 ) { t d . s i g B y t e s = s d + 1 ; b r e a k } } } , e d . p a d . Z e r o P a d d i n g } ) } ( p a d Z e r o p a d d i n g ) ) , p a d Z e r o p a d d i n g . e x p o r t s } v a r p a d N o p a d d i n g = { e x p o r t s : { } } , h a s R e q u i r e d P a d N o p a d d i n g ; f u n c t i o n r e q u i r e P a d N o p a d d i
2024-08-31 11:28:56 +08:00
object - assign
( c ) Sindre Sorhus
@ license MIT
2024-09-16 00:03:18 +08:00
* /var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var Ra=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable;function td(sd){if(sd==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(sd)}function rd(){try{if(!Object.assign)return!1;var sd=new String("abc");if(sd[5]="de",Object.getOwnPropertyNames(sd)[0]==="5")return!1;for(var od={},ld=0;ld<10;ld++)od["_"+String.fromCharCode(ld)]=ld;var cd=Object.getOwnPropertyNames(od).map(function(_d){return od[_d]});if(cd.join("")!=="0123456789")return!1;var ud={};return"abcdefghijklmnopqrst".split("").forEach(function(_d){ud[_d]=_d}),Object.keys(Object.assign({},ud)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=rd()?Object.assign:function(sd,od){for(var ld,cd=td(sd),ud,_d=1;_d<arguments.length;_d++){ld=Object(arguments[_d]);for(var Ed in ld)qa.call(ld,Ed)&&(cd[Ed]=ld[Ed]);if(Ra){ud=Ra(ld);for(var Ad=0;Ad<ud.length;Ad++)ed.call(ld,ud[Ad])&&(cd[ud[Ad]]=ld[ud[Ad]])}}return cd},objectAssign}var ajax={},hasRequiredAjax;function requireAjax(){return hasRequiredAjax||(hasRequiredAjax=1,function(Ra){Ra.__esModule=!0,Ra.default=qa;function qa(ed,td){return td===void 0&&(td={}),new Promise(function(rd,sd){var od=td,ld=od.async,cd=ld===void 0?!0:ld,ud=od.data,_d=ud===void 0?null:ud,Ed=od.headers,Ad=Ed===void 0?{}:Ed,Td=od.method,Nd=Td===void 0?"get":Td,Rd=od.timeout,Bd=Rd===void 0?0:Rd,kd=od.onprogress,Od=new XMLHttpRequest,Md;Bd&&(Md=setTimeout(function(){sd(new Error("the request timeout "+Bd+"ms"))},Bd)),Od.onerror=function(){sd(new Error("unknown error"))},Od.upload&&(Od.upload.onprogress=kd),Od.onreadystatechange=function(){if(Od.readyState===4)if(Bd&&clearTimeout(Md),Od.status>=200&&Od.status<300)rd(Od.response,Od);else{var Pd=new Error("the request is error");sd(Pd)}},Od.open(Nd,ed,cd),Object.keys(Ad).forEach(function(Pd){Od.setRequestHeader(Pd,Ad[Pd])});try{Od.send(_d)}catch(Pd){sd(Pd)}})}}(ajax)),ajax}var utils$2={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ ",qa={rotl:function(ed,td){return ed<<td|ed>>>32-td},rotr:function(ed,td){return ed<<32-td|ed>>>td},endian:function(ed){if(ed.constructor==Number)return qa.rotl(ed,8)&16711935|qa.rotl(ed,24)&4278255360;for(var td=0;td<ed.length;td++)ed[td]=qa.endian(ed[td]);return ed},randomBytes:function(ed){for(var td=[];ed>0;ed--)td.push(Math.floor(Math.random()*256));return td},bytesToWords:function(ed){for(var td=[],rd=0,sd=0;rd<ed.length;rd++,sd+=8)td[sd>>>5]|=ed[rd]<<24-sd%32;return td},wordsToBytes:function(ed){for(var td=[],rd=0;rd<ed.length*32;rd+=8)td.push(ed[rd>>>5]>>>24-rd%32&255);return td},bytesToHex:function(ed){for(var td=[],rd=0;rd<ed.length;rd++)td.push((ed[rd]>>>4).toString(16)),td.push((ed[rd]&15).toString(16));return td.join(" ")},hexToBytes:function(ed){for(var td=[],rd=0;rd<ed.length;rd+=2)td.push(parseInt(ed.substr(rd,2),16));return td},bytesToBase64:function(ed){for(var td=[],rd=0;rd<ed.length;rd+=3)for(var sd=ed[rd]<<16|ed[rd+1]<<8|ed[rd+2],od=0;od<4;od++)rd*8+od*6<=ed.length*8?td.push(Ra.charAt(sd>>>6*(3-od)&63)):td.push(" = ");return td.join(" ")},base64ToBytes:function(ed){ed=ed.replace(/[^A-Z0-9+\/]/ig," " ) ; for ( var td = [ ] , rd = 0 , sd = 0 ; rd < ed . length ; sd = ++ rd % 4 ) sd != 0 && td . push ( ( Ra . indexOf ( ed . charAt ( rd - 1 ) ) & Math . pow ( 2 , - 2 * sd + 8 ) - 1 ) << sd * 2 | Ra . indexOf ( ed . charAt ( rd ) ) >>> 6 - sd * 2 ) ; return td } } ; crypt . exports = qa } ( ) ) , crypt . exports } var charenc _1 , hasRequiredCharenc ; function requireCharenc ( ) { if ( hasRequiredCharenc ) return charenc _1 ; hasRequiredCharenc = 1 ; var Ra = { utf8 : { stringToBytes : function ( qa ) { return Ra . bin . stringToBytes ( unescape ( encodeURIComponent ( qa ) ) ) } , bytesToString : function ( qa ) { return decodeURIComponent ( escape ( Ra . bin . bytesToString ( qa ) ) ) } } , bin : { stringToBytes : function ( qa ) { for ( var ed = [ ] , td = 0 ; td < qa . length ; td ++ ) ed . push ( qa . charCodeAt ( td ) & 255 ) ; return ed } , bytesToString : function ( qa ) {
2024-08-27 22:31:52 +08:00
* Determine if an object is a Buffer
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-09-16 00:03:18 +08:00
* / v a r i s B u f f e r _ 1 , h a s R e q u i r e d I s B u f f e r ; f u n c t i o n r e q u i r e I s B u f f e r ( ) { i f ( h a s R e q u i r e d I s B u f f e r ) r e t u r n i s B u f f e r _ 1 ; h a s R e q u i r e d I s B u f f e r = 1 , i s B u f f e r _ 1 = f u n c t i o n ( e d ) { r e t u r n e d ! = n u l l & & ( R a ( e d ) | | q a ( e d ) | | ! ! e d . _ i s B u f f e r ) } ; f u n c t i o n R a ( e d ) { r e t u r n ! ! e d . c o n s t r u c t o r & & t y p e o f e d . c o n s t r u c t o r . i s B u f f e r = = " f u n c t i o n " & & e d . c o n s t r u c t o r . i s B u f f e r ( e d ) } f u n c t i o n q a ( e d ) { r e t u r n t y p e o f e d . r e a d F l o a t L E = = " f u n c t i o n " & & t y p e o f e d . s l i c e = = " f u n c t i o n " & & R a ( e d . s l i c e ( 0 , 0 ) ) } r e t u r n i s B u f f e r _ 1 } v a r h a s R e q u i r e d M d 5 ; f u n c t i o n r e q u i r e M d 5 ( ) { r e t u r n h a s R e q u i r e d M d 5 | | ( h a s R e q u i r e d M d 5 = 1 , f u n c t i o n ( ) { v a r R a = r e q u i r e C r y p t ( ) , q a = r e q u i r e C h a r e n c ( ) . u t f 8 , e d = r e q u i r e I s B u f f e r ( ) , t d = r e q u i r e C h a r e n c ( ) . b i n , r d = f u n c t i o n ( s d , o d ) { s d . c o n s t r u c t o r = = S t r i n g ? o d & & o d . e n c o d i n g = = = " b i n a r y " ? s d = t d . s t r i n g T o B y t e s ( s d ) : s d = q a . s t r i n g T o B y t e s ( s d ) : e d ( s d ) ? s d = A r r a y . p r o t o t y p e . s l i c e . c a l l ( s d , 0 ) : ! A r r a y . i s A r r a y ( s d ) & & s d . c o n s t r u c t o r ! = = U i n t 8 A r r a y & & ( s d = s d . t o S t r i n g ( ) ) ; f o r ( v a r l d = R a . b y t e s T o W o r d s ( s d ) , c d = s d . l e n g t h * 8 , u d = 1 7 3 2 5 8 4 1 9 3 , _ d = - 2 7 1 7 3 3 8 7 9 , E d = - 1 7 3 2 5 8 4 1 9 4 , A d = 2 7 1 7 3 3 8 7 8 , T d = 0 ; T d < l d . l e n g t h ; T d + + ) l d [ T d ] = ( l d [ T d ] < < 8 | l d [ T d ] > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( l d [ T d ] < < 2 4 | l d [ T d ] > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 ; l d [ c d > > > 5 ] | = 1 2 8 < < c d % 3 2 , l d [ ( c d + 6 4 > > > 9 < < 4 ) + 1 4 ] = c d ; f o r ( v a r N d = r d . _ f f , R d = r d . _ g g , B d = r d . _ h h , k d = r d . _ i i , T d = 0 ; T d < l d . l e n g t h ; T d + = 1 6 ) { v a r O d = u d , M d = _ d , P d = E d , F d = A d ; u d = N d ( u d , _ d , E d , A d , l d [ T d + 0 ] , 7 , - 6 8 0 8 7 6 9 3 6 ) , A d = N d ( A d , u d , _ d , E d , l d [ T d + 1 ] , 1 2 , - 3 8 9 5 6 4 5 8 6 ) , E d = N d ( E d , A d , u d , _ d , l d [ T d + 2 ] , 1 7 , 6 0 6 1 0 5 8 1 9 ) , _ d = N d ( _ d , E d , A d , u d , l d [ T d + 3 ] , 2 2 , - 1 0 4 4 5 2 5 3 3 0 ) , u d = N d ( u d , _ d , E d , A d , l d [ T d + 4 ] , 7 , - 1 7 6 4 1 8 8 9 7 ) , A d = N d ( A d , u d , _ d , E d , l d [ T d + 5 ] , 1 2 , 1 2 0 0 0 8 0 4 2 6 ) , E d = N d ( E d , A d , u d , _ d , l d [ T d + 6 ] , 1 7 , - 1 4 7 3 2 3 1 3 4 1 ) , _ d = N d ( _ d , E d , A d , u d , l d [ T d + 7 ] , 2 2 , - 4 5 7 0 5 9 8 3 ) , u d = N d ( u d , _ d , E d , A d , l d [ T d + 8 ] , 7 , 1 7 7 0 0 3 5 4 1 6 ) , A d = N d ( A d , u d , _ d , E d , l d [ T d + 9 ] , 1 2 , - 1 9 5 8 4 1 4 4 1 7 ) , E d = N d ( E d , A d , u d , _ d , l d [ T d + 1 0 ] , 1 7 , - 4 2 0 6 3 ) , _ d = N d ( _ d , E d , A d , u d , l d [ T d + 1 1 ] , 2 2 , - 1 9 9 0 4 0 4 1 6 2 ) , u d = N d ( u d , _ d , E d , A d , l d [ T d + 1 2 ] , 7 , 1 8 0 4 6 0 3 6 8 2 ) , A d = N d ( A d , u d , _ d , E d , l d [ T d + 1 3 ] , 1 2 , - 4 0 3 4 1 1 0 1 ) , E d = N d ( E d , A d , u d , _ d , l d [ T d + 1 4 ] , 1 7 , - 1 5 0 2 0 0 2 2 9 0 ) , _ d = N d ( _ d , E d , A d , u d , l d [ T d + 1 5 ] , 2 2 , 1 2 3 6 5 3 5 3 2 9 ) , u d = R d ( u d , _ d , E d , A d , l d [ T d + 1 ] , 5 , - 1 6 5 7 9 6 5 1 0 ) , A d = R d ( A d , u d , _ d , E d , l d [ T d + 6 ] , 9 , - 1 0 6 9 5 0 1 6 3 2 ) , E d = R d ( E d , A d , u d , _ d , l d [ T d + 1 1 ] , 1 4 , 6 4 3 7 1 7 7 1 3 ) , _ d = R d ( _ d , E d , A d , u d , l d [ T d + 0 ] , 2 0 , - 3 7 3 8 9 7 3 0 2 ) , u d = R d ( u d , _ d , E d , A d , l d [ T d + 5 ] , 5 , - 7 0 1 5 5 8 6 9 1 ) , A d = R d ( A d , u d , _ d , E d , l d [ T d + 1 0 ] , 9 , 3 8 0 1 6 0 8 3 ) , E d = R d ( E d , A d , u d , _ d , l d [ T d + 1 5 ] , 1 4 , - 6 6 0 4 7 8 3 3 5 ) , _ d = R d ( _ d , E d , A d , u d , l d [ T d + 4 ] , 2 0 , - 4 0 5 5 3 7 8 4 8 ) , u d = R d ( u d , _ d , E d , A d , l d [ T d + 9 ] , 5 , 5 6 8 4 4 6 4 3 8 ) , A d = R d ( A d , u d , _ d , E d , l d [ T d + 1 4 ] , 9 , - 1 0 1 9 8 0 3 6 9 0 ) , E d = R d ( E d , A d , u d , _ d , l d [ T d + 3 ] , 1 4 , - 1 8 7 3 6 3 9 6 1 ) , _ d = R d ( _ d , E d , A d , u d , l d [ T d + 8 ] , 2 0 , 1 1 6 3 5 3 1 5 0 1 ) , u d = R d ( u d , _ d , E d , A d , l d [ T d + 1 3 ] , 5 , - 1 4 4 4 6 8 1 4 6 7 ) , A d = R d ( A d , u d , _ d , E d , l d [ T d + 2 ] , 9 , - 5 1 4 0 3 7 8 4 ) , E d = R d ( E d , A d , u d , _ d , l d [ T d + 7 ] , 1 4 , 1 7 3 5 3 2 8 4 7 3 ) , _ d = R d ( _ d , E d , A d , u d , l d [ T d + 1 2 ] , 2 0 , - 1 9 2 6 6 0 7 7 3 4 ) , u d = B d ( u d , _ d , E d , A d , l d [ T d + 5 ] , 4 , - 3 7 8 5 5 8 ) , A d = B d ( A d , u d , _ d , E d , l d [ T d + 8 ] , 1 1 , - 2 0 2 2 5 7 4 4 6 3 ) , E d = B d ( E d , A d , u d , _ d , l d [ T d + 1 1 ] , 1 6 , 1 8 3 9 0 3 0 5 6 2 ) , _ d = B d ( _ d , E d , A d , u d , l d [ T d + 1 4 ] , 2 3 , - 3 5 3 0 9 5 5 6 ) , u d = B d ( u d , _ d , E d , A d , l d [ T d + 1 ] , 4 , - 1 5 3 0 9 9 2 0 6 0 ) , A d = B d ( A d , u d , _ d , E d , l d [ T d + 4 ] , 1 1 , 1 2 7 2 8 9 3 3 5 3 ) , E d = B d ( E d , A d , u d , _ d , l d [ T d + 7 ] , 1 6 , - 1 5 5 4 9 7 6 3 2 ) , _ d = B d ( _ d , E d , A d , u d , l d [ T d + 1 0 ] , 2 3 , - 1 0 9 4 7 3 0 6 4 0 ) , u d = B d ( u d , _ d , E d , A d , l d [ T d + 1 3 ] , 4 , 6 8 1 2 7 9 1 7 4 ) , A d = B d ( A d , u d , _ d , E d , l d [ T d + 0 ] , 1 1 , - 3 5 8 5 3 7 2 2 2 ) , E d = B d ( E d , A d , u d , _ d , l d [ T d + 3 ] , 1 6 , - 7 2 2 5 2 1 9 7 9 ) , _ d = B d ( _ d , E d , A d , u d , l d [ T d + 6 ] , 2 3 , 7 6 0 2 9 1 8 9 ) , u d = B d ( u d , _ d , E d , A d , l d [ T d + 9 ] , 4 , - 6 4 0 3 6 4 4 8 7 ) , A d = B d ( A d , u d , _ d , E d , l d [ T d + 1 2 ] , 1 1 , - 4 2 1 8 1 5 8 3 5 ) , E d = B d ( E d , A d , u d , _ d , l d [ T d + 1 5 ] , 1 6 , 5 3 0 7 4 2 5 2 0 ) , _ d = B d ( _ d , E d , A d , u d , l d [ T d + 2 ] , 2 3 , - 9 9 5 3 3 8 6 5 1 ) , u d = k d ( u d , _ d , E d , A d , l d [ T d + 0 ] , 6 , - 1 9 8 6 3 0 8 4 4 ) , A d = k d ( A d , u d , _ d , E d , l d [ T d + 7 ] , 1 0 , 1 1 2 6 8 9 1 4 1 5 ) , E d = k d ( E d , A d , u d , _ d , l d [ T d + 1 4 ] , 1 5 , - 1 4 1 6 3 5 4 9 0 5 ) , _ d = k d ( _ d , E d , A d , u d , l d [ T d + 5 ] , 2 1 , - 5 7 4 3 4 0 5 5 ) , u d = k d ( u d , _ d , E d , A d , l d [ T d + 1 2 ] , 6 , 1 7 0 0 4 8 5 5 7 1 ) , A d = k d ( A d , u d , _ d , E d , l d [ T d + 3 ] , 1 0 , - 1 8 9 4 9 8 6 6 0 6 ) , E d = k d ( E d , A d , u d , _ d , l d [ T d + 1 0 ] , 1 5 , - 1 0 5 1 5 2 3 ) , _ d = k d ( _ d , E d , A d , u d , l d [ T d + 1 ] , 2 1 , - 2 0 5 4 9 2 2 7 9 9 ) , u d = k d ( u d , _ d , E d , A d , l d [ T d + 8 ] , 6 , 1 8 7 3 3 1 3 3 5 9 ) , A d = k d ( A d , u d , _ d , E d , l d [ T d + 1 5 ] , 1 0 , - 3 0 6 1 1 7 4 4 ) , E d = k d ( E d , A d , u d , _ d , l d [ T d + 6 ] , 1 5 , - 1 5 6 0 1 9 8 3 8 0 ) , _ d = k d ( _ d , E d , A d , u d , l d [ T d + 1 3 ] , 2 1 , 1 3 0 9 1 5 1 6 4 9 ) , u d = k d ( u d , _ d , E d , A d , l d [ T d + 4 ] , 6 , - 1 4 5 5 2 3 0 7 0 ) , A d = k d ( A d , u d , _ d , E d , l d [ T d + 1 1 ] , 1 0 , - 1 1 2 0 2 1 0 3 7 9 ) , E d = k d ( E d , A d , u d , _ d , l d [ T d + 2 ] , 1 5 , 7 1 8 7 8 7 2 5 9 ) , _ d = k d ( _ d , E d , A d , u d , l d [ T d + 9 ] , 2 1 , - 3 4 3 4 8 5 5 5 1 ) , u d = u d + O d > > > 0 , _ d = _ d + M d > > > 0 , E d = E d + P d > > > 0 , A d = A d + F d > > > 0 } r e t u r n R a . e n d i a n ( [ u d , _ d , E d , A d ] ) } ; r d . _ f f = f u n c t i o n ( s d , o d , l d , c d , u d , _ d , E d ) { v a r A d = s d + ( o d & l d | ~ o d & c d ) + ( u d > > > 0 ) + E d ; r e t u r n ( A d < < _ d | A d > > > 3 2 - _ d ) + o d } , r d . _ g g = f u n c t i o n ( s d , o
2024-08-31 11:28:56 +08:00
* !
* ! Copyright 2011 - 2012 , 2014 Jean - Christophe Sirot < sirot @ chelonix . com >
* !
* ! This file is part of digest . js
* !
* ! digest . js is free software : you can redistribute it and / or modify it under
* ! the terms of the GNU General Public License as published by the Free Software
* ! Foundation , either version 3 of the License , or ( at your option ) any later
* ! version .
* !
* ! digest . js is distributed in the hope that it will be useful , but
* ! WITHOUT ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY
* ! or FITNESS FOR A PARTICULAR PURPOSE . See the GNU General Public License for
* ! more details .
* !
* ! You should have received a copy of the GNU General Public License along with
* ! digest . js . If not , see http : //www.gnu.org/licenses/.
* !
2024-09-16 00:03:18 +08:00
* ! * * * * * END LICENSE BLOCK * * * * * * / v a r h a s R e q u i r e d D i g e s t ; f u n c t i o n r e q u i r e D i g e s t ( ) { r e t u r n h a s R e q u i r e d D i g e s t | | ( h a s R e q u i r e d D i g e s t = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( ) { A r r a y B u f f e r . p r o t o t y p e . s l i c e | | ( A r r a y B u f f e r . p r o t o t y p e . s l i c e = f u n c t i o n ( e d , t d ) { v a r r d , s d = n e w U i n t 8 A r r a y ( t h i s ) ; t d = = = v o i d 0 & & ( t d = s d . l e n g t h ) ; v a r o d = n e w A r r a y B u f f e r ( t d - e d ) , l d = n e w U i n t 8 A r r a y ( o d ) ; f o r ( r d = 0 ; r d < l d . l e n g t h ; r d + + ) l d [ r d ] = s d [ r d + e d ] ; r e t u r n o d } ) } ) ( ) , f u n c t i o n ( e d ) { f u n c t i o n t d ( ) { } t d . p r o t o t y p e . p r o c e s s B l o c k = f u n c t i o n ( _ d ) { v a r E d = t h i s . c u r r e n t [ 0 ] , A d = t h i s . c u r r e n t [ 1 ] , T d = t h i s . c u r r e n t [ 2 ] , N d = t h i s . c u r r e n t [ 3 ] , R d = t h i s . c u r r e n t [ 4 ] , B d = [ _ d [ 0 ] < < 2 4 | _ d [ 1 ] < < 1 6 | _ d [ 2 ] < < 8 | _ d [ 3 ] , _ d [ 4 ] < < 2 4 | _ d [ 5 ] < < 1 6 | _ d [ 6 ] < < 8 | _ d [ 7 ] , _ d [ 8 ] < < 2 4 | _ d [ 9 ] < < 1 6 | _ d [ 1 0 ] < < 8 | _ d [ 1 1 ] , _ d [ 1 2 ] < < 2 4 | _ d [ 1 3 ] < < 1 6 | _ d [ 1 4 ] < < 8 | _ d [ 1 5 ] , _ d [ 1 6 ] < < 2 4 | _ d [ 1 7 ] < < 1 6 | _ d [ 1 8 ] < < 8 | _ d [ 1 9 ] , _ d [ 2 0 ] < < 2 4 | _ d [ 2 1 ] < < 1 6 | _ d [ 2 2 ] < < 8 | _ d [ 2 3 ] , _ d [ 2 4 ] < < 2 4 | _ d [ 2 5 ] < < 1 6 | _ d [ 2 6 ] < < 8 | _ d [ 2 7 ] , _ d [ 2 8 ] < < 2 4 | _ d [ 2 9 ] < < 1 6 | _ d [ 3 0 ] < < 8 | _ d [ 3 1 ] , _ d [ 3 2 ] < < 2 4 | _ d [ 3 3 ] < < 1 6 | _ d [ 3 4 ] < < 8 | _ d [ 3 5 ] , _ d [ 3 6 ] < < 2 4 | _ d [ 3 7 ] < < 1 6 | _ d [ 3 8 ] < < 8 | _ d [ 3 9 ] , _ d [ 4 0 ] < < 2 4 | _ d [ 4 1 ] < < 1 6 | _ d [ 4 2 ] < < 8 | _ d [ 4 3 ] , _ d [ 4 4 ] < < 2 4 | _ d [ 4 5 ] < < 1 6 | _ d [ 4 6 ] < < 8 | _ d [ 4 7 ] , _ d [ 4 8 ] < < 2 4 | _ d [ 4 9 ] < < 1 6 | _ d [ 5 0 ] < < 8 | _ d [ 5 1 ] , _ d [ 5 2 ] < < 2 4 | _ d [ 5 3 ] < < 1 6 | _ d [ 5 4 ] < < 8 | _ d [ 5 5 ] , _ d [ 5 6 ] < < 2 4 | _ d [ 5 7 ] < < 1 6 | _ d [ 5 8 ] < < 8 | _ d [ 5 9 ] , _ d [ 6 0 ] < < 2 4 | _ d [ 6 1 ] < < 1 6 | _ d [ 6 2 ] < < 8 | _ d [ 6 3 ] ] , k d , O d ; f o r ( O d = 1 6 ; O d < 8 0 ; O d + + ) B d . p u s h ( ( B d [ O d - 3 ] ^ B d [ O d - 8 ] ^ B d [ O d - 1 4 ] ^ B d [ O d - 1 6 ] ) < < 1 | ( B d [ O d - 3 ] ^ B d [ O d - 8 ] ^ B d [ O d - 1 4 ] ^ B d [ O d - 1 6 ] ) > > > 3 1 ) ; f o r ( O d = 0 ; O d < 8 0 ; O d + + ) k d = ( E d < < 5 | E d > > > 2 7 ) + R d + B d [ O d ] , O d < 2 0 ? k d + = ( A d & T d | ~ A d & N d ) + 1 5 1 8 5 0 0 2 4 9 | 0 : O d < 4 0 ? k d + = ( A d ^ T d ^ N d ) + 1 8 5 9 7 7 5 3 9 3 | 0 : O d < 6 0 ? k d + = ( A d & T d | A d & N d | T d & N d ) + 2 4 0 0 9 5 9 7 0 8 | 0 : k d + = ( A d ^ T d ^ N d ) + 3 3 9 5 4 6 9 7 8 2 | 0 , R d = N d , N d = T d , T d = A d < < 3 0 | A d > > > 2 , A d = E d , E d = k d ; t h i s . c u r r e n t [ 0 ] + = E d , t h i s . c u r r e n t [ 1 ] + = A d , t h i s . c u r r e n t [ 2 ] + = T d , t h i s . c u r r e n t [ 3 ] + = N d , t h i s . c u r r e n t [ 4 ] + = R d , t h i s . c u r r e n t L e n + = 6 4 } , t d . p r o t o t y p e . d o P a d d i n g = f u n c t i o n ( ) { v a r _ d = ( t h i s . i n L e n + t h i s . c u r r e n t L e n ) * 8 , E d = 0 , A d = _ d & 4 2 9 4 9 6 7 2 9 5 , T d = t h i s . i n L e n < = 5 5 ? 5 5 - t h i s . i n L e n : 1 1 9 - t h i s . i n L e n , N d = n e w U i n t 8 A r r a y ( n e w A r r a y B u f f e r ( T d + 1 + 8 ) ) ; r e t u r n N d [ 0 ] = 1 2 8 , N d [ N d . l e n g t h - 1 ] = A d & 2 5 5 , N d [ N d . l e n g t h - 2 ] = A d > > > 8 & 2 5 5 , N d [ N d . l e n g t h - 3 ] = A d > > > 1 6 & 2 5 5 , N d [ N d . l e n g t h - 4 ] = A d > > > 2 4 & 2 5 5 , N d [ N d . l e n g t h - 5 ] = E d & 2 5 5 , N d [ N d . l e n g t h - 6 ] = E d > > > 8 & 2 5 5 , N d [ N d . l e n g t h - 7 ] = E d > > > 1 6 & 2 5 5 , N d [ N d . l e n g t h - 8 ] = E d > > > 2 4 & 2 5 5 , N d } , t d . p r o t o t y p e . g e t D i g e s t = f u n c t i o n ( ) { v a r _ d = n e w U i n t 8 A r r a y ( n e w A r r a y B u f f e r ( 2 0 ) ) ; r e t u r n _ d [ 3 ] = t h i s . c u r r e n t [ 0 ] & 2 5 5 , _ d [ 2 ] = t h i s . c u r r e n t [ 0 ] > > > 8 & 2 5 5 , _ d [ 1 ] = t h i s . c u r r e n t [ 0 ] > > > 1 6 & 2 5 5 , _ d [ 0 ] = t h i s . c u r r e n t [ 0 ] > > > 2 4 & 2 5 5 , _ d [ 7 ] = t h i s . c u r r e n t [ 1 ] & 2 5 5 , _ d [ 6 ] = t h i s . c u r r e n t [ 1 ] > > > 8 & 2 5 5 , _ d [ 5 ] = t h i s . c u r r e n t [ 1 ] > > > 1 6 & 2 5 5 , _ d [ 4 ] = t h i s . c u r r e n t [ 1 ] > > > 2 4 & 2 5 5 , _ d [ 1 1 ] = t h i s . c u r r e n t [ 2 ] & 2 5 5 , _ d [ 1 0 ] = t h i s . c u r r e n t [ 2 ] > > > 8 & 2 5 5 , _ d [ 9 ] = t h i s . c u r r e n t [ 2 ] > > > 1 6 & 2 5 5 , _ d [ 8 ] = t h i s . c u r r e n t [ 2 ] > > > 2 4 & 2 5 5 , _ d [ 1 5 ] = t h i s . c u r r e n t [ 3 ] & 2 5 5 , _ d [ 1 4 ] = t h i s . c u r r e n t [ 3 ] > > > 8 & 2 5 5 , _ d [ 1 3 ] = t h i s . c u r r e n t [ 3 ] > > > 1 6 & 2 5 5 , _ d [ 1 2 ] = t h i s . c u r r e n t [ 3 ] > > > 2 4 & 2 5 5 , _ d [ 1 9 ] = t h i s . c u r r e n t [ 4 ] & 2 5 5 , _ d [ 1 8 ] = t h i s . c u r r e n t [ 4 ] > > > 8 & 2 5 5 , _ d [ 1 7 ] = t h i s . c u r r e n t [ 4 ] > > > 1 6 & 2 5 5 , _ d [ 1 6 ] = t h i s . c u r r e n t [ 4 ] > > > 2 4 & 2 5 5 , _ d . b u f f e r } , t d . p r o t o t y p e . r e s e t = f u n c t i o n ( ) { t h i s . c u r r e n t L e n = 0 , t h i s . i n L e n = 0 , t h i s . c u r r e n t = n e w U i n t 3 2 A r r a y ( n e w A r r a y B u f f e r ( 2 0 ) ) , t h i s . c u r r e n t [ 0 ] = 1 7 3 2 5 8 4 1 9 3 , t h i s . c u r r e n t [ 1 ] = 4 0 2 3 2 3 3 4 1 7 , t h i s . c u r r e n t [ 2 ] = 2 5 6 2 3 8 3 1 0 2 , t h i s . c u r r e n t [ 3 ] = 2 7 1 7 3 3 8 7 8 , t h i s . c u r r e n t [ 4 ] = 3 2 8 5 3 7 7 5 2 0 } , t d . p r o t o t y p e . b l o c k L e n = 6 4 , t d . p r o t o t y p e . d i g e s t L e n = 2 0 ; v a r r d = f u n c t i o n ( _ d ) { v a r E d = n e w A r r a y B u f f e r ( _ d . l e n g t h ) , A d = n e w U i n t 8 A r r a y ( E d ) , T d ; f o r ( T d = 0 ; T d < _ d . l e n g t h ; T d + + ) A d [ T d ] = _ d . c h a r C o d e A t ( T d ) ; r e t u r n A d } , s d = f u n c t i o n ( _ d ) { v a r E d = n e w A r r a y B u f f e r ( 1 ) , A d = n e w U i n t 8 A r r a y ( E d ) ; r e t u r n A d [ 0 ] = _ d , A d } , o d = f u n c t i o n ( _ d ) { i f ( _ d . c o n s t r u c t o r = = = U i n t 8 A r r a y ) r e t u r n _ d ; i f ( _ d . c o n s t r u c t o r = = = A r r a y B u f f e r ) r e t u r n n e w U i n t 8 A r r a y ( _ d ) ; i f ( _ d . c o n s t r u c t o r = = = S t r i n g ) r e t u r n r d ( _ d ) ; i f ( _ d . c o n s t r u c t o r = = = N u m b e r ) { i f ( _ d > 2 5 5 ) t h r o w " F o r m o r e t h a n o n e b y t e , u s e a n a r r a y b u f f e r " ; i f ( _ d < 0 ) t h r o w " I n p u t v a l u e m u s t b e p o s i t i v e " ; r e t u r n s d ( _ d ) } e l s e t h r o w " U n s u p p o r t e d t y p e " } , l d = f u n c t i o n ( _ d ) { v a r E d = f u n c t i o n ( N d ) { f o r ( v a r R d = N d . l e n g t h , B d = 0 ; R d > 0 ; ) { v a r k d = t h i s . b l o c k L e n - t h i s . i n L e n ; k d > R d & & ( k d = R d ) ; v a r O d = N d . s u b a r r a y ( B d , B d + k d ) ; t h i s . i n b u f . s e t ( O d , t h i s . i n L e n ) , B d + = k d , R d - = k d , t h i s . i n L e n + = k d , t h i s . i n L e n = = = t h i s . b l o c k L e n & & ( t h i s . p r o c e s s B l o c k ( t h i s . i n b u f ) , t h i s . i n L e n = 0 ) } } , A d = f u n c t i o n ( ) { v a r N d = t h i s . d o P a d d i n g ( ) ; t h i s . u p d a t e ( N d ) ; v a r R d = t h i s . g e t D i g e s t ( ) ; r e t u r n t h i s . r e s e t ( ) , R d } , T d = f u n c t i o n ( ) { i f ( ! _ d ) t h r o w " U n s u p p o r t e d a l g o r i t h m : " + _ d . t o S t r i n g ( ) ; _ d . p r o t o t y p e .
` )}),Nd}function Ed(Td,Nd,Rd){Td===void 0&&(Td=""),Nd===void 0&&(Nd="");var Bd="";Td&&(Bd+="/"+Td),Nd&&(Nd.charAt(0)!=="/"&&(Bd+="/"),Bd+=Nd);var kd=""+Bd,Od="?";if(Rd){var Md=function(Ud,Gd){return Ud[0]>Gd[0]?1:Ud[0]<Gd[0]?-1:0},Pd=function(Ud){kd+=Od+Ud,Rd[Ud]&&(kd+="="+Rd[Ud]),Od="&"};Object.keys(Rd).sort(Md).forEach(Pd)}return kd}function Ad(Td){Td===void 0&&(Td={});var Nd=Td,Rd=Nd.type,Bd=Rd===void 0?"header":Rd,kd=Nd.verb,Od=kd===void 0?"":kd,Md=Nd.contentMd5,Pd=Md===void 0?"":Md,Fd=Nd.expires,Ud=Fd===void 0?sd()+3600:Fd,Gd=Nd.bucket,Qd=Nd.objectName,Vd=Nd.accessKeySecret,zd=Nd.headers,Xd=zd===void 0?{}:zd,df=Nd.subResource,mf=Xd["x-oss-date"]||"",_f=Xd["Content-Type"]||"",hf=[Od,Pd,_f];Bd==="header"?hf.push(mf):hf.push(Ud);var gf=_d(Xd),yf=Ed(Gd,Qd,df);hf.push(""+gf+yf);var Cf=hf.join( `
2024-09-16 17:10:21 +08:00
` ),Ff=new td.default.HMAC_SHA1;Ff.setKey(Vd),Ff.update(Cf);var Qf=new Uint8Array(Ff.finalize()),Uf=ed.default.fromByteArray(Qf);return Uf}return utils $ 2}(function(Ra){var qa=interopRequireDefaultExports;Ra.__esModule=!0,Ra.default=void 0;var ed=qa(requireObjectAssign()),td=qa(requireAjax()),rd=requireUtils(),sd=function(){function od(cd){cd===void 0&&(cd={}),(0,rd.assertOptions)(cd),this.opts=(0,ed.default)({region:"oss-cn-hangzhou",internal:!1,cname:!1,secure:!1,timeout:6e4},cd);var ud=this.opts,_d=ud.bucket,Ed=ud.region,Ad=ud.endpoint,Td=ud.internal;if(this.host="",Ad)this.host=Ad;else{var Nd=_d;Td&&(Nd+="-internal"),Nd+="."+Ed+".aliyuncs.com",this.host=Nd}}var ld=od.prototype;return ld.put=function(ud,_d,Ed){var Ad=this;return Ed===void 0&&(Ed={}),new Promise(function(Td,Nd){(0,rd.blobToBuffer)(_d).then(function(Rd){var Bd=Ad.opts,kd=Bd.accessKeyId,Od=Bd.accessKeySecret,Md=Bd.stsToken,Pd=Bd.bucket,Fd="PUT",Ud=(0,rd.getContentMd5)(Rd),Gd=_d.type,Qd={"Content-Md5":Ud,"Content-Type":Gd,"x-oss-date":new Date().toGMTString()};Md&&(Qd["x-oss-security-token"]=Md);var Vd=(0,rd.getSignature)({verb:Fd,contentMd5:Ud,headers:Qd,bucket:Pd,objectName:ud,accessKeyId:kd,accessKeySecret:Od});Qd.Authorization="OSS "+kd+":"+Vd;var zd=Ad.opts.secure?"https":"http",Xd=zd+"://"+Ad.host+"/"+ud;return(0,td.default)(Xd,{method:Fd,headers:Qd,data:_d,timeout:Ad.opts.timeout,onprogress:Ed.onprogress})}).then(Td).catch(Nd)})},ld.putSymlink=function(ud,_d){var Ed=this.opts,Ad=Ed.accessKeyId,Td=Ed.accessKeySecret,Nd=Ed.stsToken,Rd=Ed.bucket,Bd="PUT",kd={"x-oss-date":new Date().toGMTString(),"x-oss-symlink-target":encodeURI(_d)};Nd&&(kd["x-oss-security-token"]=Nd);var Od=(0,rd.getSignature)({verb:Bd,headers:kd,bucket:Rd,objectName:ud,accessKeyId:Ad,accessKeySecret:Td,subResource:{symlink:""}});kd.Authorization="OSS "+Ad+":"+Od;var Md=this.opts.secure?"https":"http",Pd=Md+"://"+this.host+"/"+ud+"?symlink";return(0,td.default)(Pd,{method:Bd,headers:kd,timeout:this.opts.timeout})},ld.signatureUrl=function(ud,_d){_d===void 0&&(_d={});var Ed=_d,Ad=Ed.expires,Td=Ad===void 0?1800:Ad,Nd=Ed.method,Rd=Ed.process,Bd=Ed.response,kd=this.opts,Od=kd.accessKeyId,Md=kd.accessKeySecret,Pd=kd.stsToken,Fd=kd.bucket,Ud={},Gd={};if(Rd){var Qd="x-oss-process";Gd[Qd]=Rd}Bd&&Object.keys(Bd).forEach(function(_f){var hf="response-"+_f.toLowerCase();Gd[hf]=Bd[_f]}),Object.keys(_d).forEach(function(_f){var hf=_f.toLowerCase(),gf=_d[_f];hf.indexOf("x-oss-")===0?Ud[hf]=gf:hf.indexOf("content-md5")===0||hf.indexOf("content-type")===0?Ud[_f]=gf:hf!=="expires"&&hf!=="response"&&hf!=="process"&&hf!=="method"&&(Gd[hf]=gf)});var Vd=_d["security-token"]||Pd;Vd&&(Gd["security-token"]=Vd);var zd=(0,rd.unix)()+Td,Xd=(0,rd.getSignature)({type:"url",verb:Nd||"GET",accessKeyId:Od,accessKeySecret:Md,bucket:Fd,objectName:ud,headers:Ud,subResource:Gd,expires:zd}),df=this.opts.secure?"https":"http",mf=df+"://"+this.host+"/"+ud;return mf+="?OSSAccessKeyId="+Od,mf+="&Expires="+zd,mf+="&Signature="+encodeURIComponent(Xd),Object.keys(Gd).forEach(function(_f){mf+="&"+_f+"="+encodeURIComponent(Gd[_f])}),mf},od}();Ra.default=sd})(TinyOSS);var lib $ 2=TinyOSS.default;const OSS=getDefaultExportFromCjs(lib $ 2);var define_process_default $ 8={version:"v20.17.0",versions:{node:"20.17.0",acorn:"8.11.3",ada:"2.9.0",ares:"1.32.3",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.2.2",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.13+quic",simdutf:"5.3.0",tz:"2024a",undici:"6.19.2",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-209717d"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Intern
2024-08-27 22:31:52 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-09-16 17:10:21 +08:00
* / ( f u n c t i o n ( R a ) { v a r q a = r e q u i r e B a s e 6 4 J s ( ) , e d = i e e e 7 5 4 , t d = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; R a . B u f f e r = l d , R a . S l o w B u f f e r = O d , R a . I N S P E C T _ M A X _ B Y T E S = 5 0 ; v a r r d = 2 1 4 7 4 8 3 6 4 7 ; R a . k M a x L e n g t h = r d , l d . T Y P E D _ A R R A Y _ S U P P O R T = s d ( ) , ! l d . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n s d ( ) { t r y { v a r Y f = n e w U i n t 8 A r r a y ( 1 ) , x f = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( x f , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( Y f , x f ) , Y f . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( l d . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( l d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( l d . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( l d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n o d ( Y f ) { i f ( Y f > r d ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + Y f + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; v a r x f = n e w U i n t 8 A r r a y ( Y f ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( x f , l d . p r o t o t y p e ) , x f } f u n c t i o n l d ( Y f , x f , R f ) { i f ( t y p e o f Y f = = " n u m b e r " ) { i f ( t y p e o f x f = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n E d ( Y f ) } r e t u r n c d ( Y f , x f , R f ) } l d . p o o l S i z e = 8 1 9 2 ; f u n c t i o n c d ( Y f , x f , R f ) { i f ( t y p e o f Y f = = " s t r i n g " ) r e t u r n A d ( Y f , x f ) ; i f ( A r r a y B u f f e r . i s V i e w ( Y f ) ) r e t u r n N d ( Y f ) ; i f ( Y f = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f Y f ) ; i f ( $ f ( Y f , A r r a y B u f f e r ) | | Y f & & $ f ( Y f . b u f f e r , A r r a y B u f f e r ) | | t y p e o f S h a r e d A r r a y B u f f e r < " u " & & ( $ f ( Y f , S h a r e d A r r a y B u f f e r ) | | Y f & & $ f ( Y f . b u f f e r , S h a r e d A r r a y B u f f e r ) ) ) r e t u r n R d ( Y f , x f , R f ) ; i f ( t y p e o f Y f = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; v a r q f = Y f . v a l u e O f & & Y f . v a l u e O f ( ) ; i f ( q f ! = n u l l & & q f ! = = Y f ) r e t u r n l d . f r o m ( q f , x f , R f ) ; v a r c h = B d ( Y f ) ; i f ( c h ) r e t u r n c h ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f Y f [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n l d . f r o m ( Y f [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , x f , R f ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f Y f ) } l d . f r o m = f u n c t i o n ( Y f , x f , R f ) { r e t u r n c d ( Y f , x f , R f ) } , O b j e c t . s e t P r o t o t y p e O f ( l d . p r o t o t y p e , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( l d , U i n t 8 A r r a y ) ; f u n c t i o n u d ( Y f ) { i f ( t y p e o f Y f ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( Y f < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + Y f + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n _ d ( Y f , x f , R f ) { r e t u r n u d ( Y f ) , Y f < = 0 ? o d ( Y f ) : x f ! = = v o i d 0 ? t y p e o f R f = = " s t r i n g " ? o d ( Y f ) . f i l l ( x f , R f ) : o d ( Y f ) . f i l l ( x f ) : o d ( Y f ) } l d . a l l o c = f u n c t i o n ( Y f , x f , R f ) { r e t u r n _ d ( Y f , x f , R f ) } ; f u n c t i o n E d ( Y f ) { r e t u r n u d ( Y f ) , o d ( Y f < 0 ? 0 : k d ( Y f ) | 0 ) } l d . a l l o c U n s a f e = f u n c t i o n ( Y f ) { r e t u r n E d ( Y f ) } , l d . a l l o c U n s a f e S l o w = f u n c t i o n ( Y f ) { r e t u r n E d ( Y f ) } ; f u n c t i o n A d ( Y f , x f ) { i f ( ( t y p e o f x f ! = " s t r i n g " | | x f = = = " " ) & & ( x f = " u t f 8 " ) , ! l d . i s E n c o d i n g ( x f ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + x f ) ; v a r R f = M d ( Y f , x f ) | 0 , q f = o d ( R f ) , c h = q f . w r i t e ( Y f , x f ) ; r e t u r n c h ! = = R f & & ( q f = q f . s l i c e ( 0 , c h ) ) , q f } f u n c t i o n T d ( Y f ) { f o r ( v a r x f = Y f . l e n g t h < 0 ? 0 : k d ( Y f . l e n g t h ) | 0 , R f = o d ( x f ) , q f = 0 ; q f < x f ; q f + = 1 ) R f [ q f ] = Y f [ q f ] & 2 5 5 ; r e t u r n R f } f u n c t i o n N d ( Y f ) { i f ( $ f ( Y f , U i n t 8 A r r a y ) ) { v a r x f = n e w U i n t 8 A r r a y ( Y f ) ; r e t u r n R d ( x f . b u f f e r , x f . b y t e O f f s e t , x f . b y t e L e n g t h ) } r e t u r n T d ( Y f ) } f u n c t i o n R d ( Y f , x f , R f ) { i f ( x f < 0 | | Y f . b y t e L e n g t h < x f ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( Y f . b y t e L e n g t h < x f + ( R f | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; v a r q f ; r e t u r n x f = = = v o i d 0 & & R f = = = v o i d 0 ? q f = n e w U i n t 8 A r r a y ( Y f ) : R f = = = v o i d 0 ? q f = n e w U i n t 8 A r r a y ( Y f , x f ) : q f = n e w U i n t 8 A r r a y ( Y f , x f , R f ) , O b j e c t . s e t P r o t o t y p e O f ( q f , l d . p r o t o t y p e ) , q f } f u n c t i o n B d ( Y f ) { i f ( l d . i s B u f f e r ( Y f ) ) { v a r x f = k d ( Y f . l e n g t h ) | 0 , R f = o d ( x f ) ; r e t u r n R f . l e n g t h = = = 0 | | Y f . c o p y ( R f , 0 , 0 , x f ) , R f } i f ( Y f . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f Y f . l e n g t h ! = " n u m b e r " | | t h ( Y f . l e n g t h ) ? o d ( 0 ) : T d ( Y f ) ; i f ( Y f . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( Y f . d a t a ) ) r e t u r n T d ( Y f . d a t a ) } f u n c t i o n k d ( Y f ) { i f ( Y f > = r d ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + r d . t o S t r i
2024-09-16 00:03:18 +08:00
` )>-1&&(Bf?lh=lh.split( `
` ).map(function( $ f){return" "+ $ f}).join( `
` ).slice(2):lh= `
` +lh.split( `
` ).map(function( $ f){return" "+ $ f}).join( `
` ))):lh=Nf.stylize("[Circular]","special")),Vd(Wf)){if(Bf&&bf.match(/^ \d + $ /))return lh;Wf=JSON.stringify(""+bf),Wf.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Wf=Wf.slice(1,-1),Wf=Nf.stylize(Wf,"name")):(Wf=Wf.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Wf=Nf.stylize(Wf,"string"))}return Wf+": "+lh}function kd(Nf,Zf,Kf){var Tf=Nf.reduce(function(bf,Bf){return Bf.indexOf( `
` )>=0,bf+Bf.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Tf>60?Kf[0]+(Zf===""?"":Zf+ `
` )+" "+Nf.join( ` ,
2024-09-16 17:10:21 +08:00
` )+" "+Kf[1]:Kf[0]+Zf+" "+Nf.join(", ")+" "+Kf[1]}Ra.types=types;function Od(Nf){return Array.isArray(Nf)}Ra.isArray=Od;function Md(Nf){return typeof Nf=="boolean"}Ra.isBoolean=Md;function Pd(Nf){return Nf===null}Ra.isNull=Pd;function Fd(Nf){return Nf==null}Ra.isNullOrUndefined=Fd;function Ud(Nf){return typeof Nf=="number"}Ra.isNumber=Ud;function Gd(Nf){return typeof Nf=="string"}Ra.isString=Gd;function Qd(Nf){return typeof Nf=="symbol"}Ra.isSymbol=Qd;function Vd(Nf){return Nf===void 0}Ra.isUndefined=Vd;function zd(Nf){return Xd(Nf)&&gf(Nf)==="[object RegExp]"}Ra.isRegExp=zd,Ra.types.isRegExp=zd;function Xd(Nf){return typeof Nf=="object"&&Nf!==null}Ra.isObject=Xd;function df(Nf){return Xd(Nf)&&gf(Nf)==="[object Date]"}Ra.isDate=df,Ra.types.isDate=df;function mf(Nf){return Xd(Nf)&&(gf(Nf)==="[object Error]"||Nf instanceof Error)}Ra.isError=mf,Ra.types.isNativeError=mf;function _f(Nf){return typeof Nf=="function"}Ra.isFunction=_f;function hf(Nf){return Nf===null||typeof Nf=="boolean"||typeof Nf=="number"||typeof Nf=="string"||typeof Nf=="symbol"||typeof Nf>"u"}Ra.isPrimitive=hf,Ra.isBuffer=isBufferBrowser;function gf(Nf){return Object.prototype.toString.call(Nf)}function yf(Nf){return Nf<10?"0"+Nf.toString(10):Nf.toString(10)}var Cf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ff(){var Nf=new Date,Zf=[yf(Nf.getHours()),yf(Nf.getMinutes()),yf(Nf.getSeconds())].join(":");return[Nf.getDate(),Cf[Nf.getMonth()],Zf].join(" ")}Ra.log=function(){console.log("%s - %s",Ff(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(Nf,Zf){if(!Zf||!Xd(Zf))return Nf;for(var Kf=Object.keys(Zf),Tf=Kf.length;Tf--;)Nf[Kf[Tf]]=Zf[Kf[Tf]];return Nf};function Qf(Nf,Zf){return Object.prototype.hasOwnProperty.call(Nf,Zf)}var Uf=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(Zf){if(typeof Zf!="function")throw new TypeError('The "original" argument must be of type Function');if(Uf&&Zf[Uf]){var Kf=Zf[Uf];if(typeof Kf!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Kf,Uf,{value:Kf,enumerable:!1,writable:!1,configurable:!0}),Kf}function Kf(){for(var Tf,bf,Bf=new Promise(function(Xf, $ f){Tf=Xf,bf= $ f}),Wf=[],lh=0;lh<arguments.length;lh++)Wf.push(arguments[lh]);Wf.push(function(Xf, $ f){Xf?bf(Xf):Tf( $ f)});try{Zf.apply(this,Wf)}catch(Xf){bf(Xf)}return Bf}return Object.setPrototypeOf(Kf,Object.getPrototypeOf(Zf)),Uf&&Object.defineProperty(Kf,Uf,{value:Kf,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Kf,td(Zf))},Ra.promisify.custom=Uf;function Lf(Nf,Zf){if(!Nf){var Kf=new Error("Promise was rejected with a falsy value");Kf.reason=Nf,Nf=Kf}return Zf(Nf)}function wf(Nf){if(typeof Nf!="function")throw new TypeError('The "original" argument must be of type Function');function Zf(){for(var Kf=[],Tf=0;Tf<arguments.length;Tf++)Kf.push(arguments[Tf]);var bf=Kf.pop();if(typeof bf!="function")throw new TypeError("The last argument must be of type Function");var Bf=this,Wf=function(){return bf.apply(Bf,arguments)};Nf.apply(this,Kf).then(function(lh){qa.nextTick(Wf.bind(null,null,lh))},function(lh){qa.nextTick(Lf.bind(null,lh,Wf))})}return Object.setPrototypeOf(Zf,Object.getPrototypeOf(Nf)),Object.defineProperties(Zf,td(Nf)),Zf}Ra.callbackify=wf})(util $ 5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Ra(Nd,Rd){var Bd=Object.keys(Nd);if(Object.getOwnPropertySymbols){var kd=Object.getOwnPropertySymbols(Nd);Rd&&(kd=kd.filter(function(Od){return Object.getOwnPropertyDescriptor(Nd,Od).enumerable})),Bd.push.apply(Bd,kd)}return Bd}function qa(Nd){for(var Rd=1;Rd<arguments.length;Rd++){var Bd=arguments[Rd]!=null?arguments[Rd]:{};Rd%2?Ra(Object(Bd),!0).forEach(function(kd){ed(Nd,kd,Bd[kd])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Nd,Object.getOwnPropertyDescriptors(Bd)):Ra(Object(Bd)).forEach(function(kd){Object.defineProperty(Nd,kd,Object.getOwnPropertyDescript
2024-09-16 00:03:18 +08:00
` ,ed);ed=rd===-1?Ra.length:rd}else if(td!==-1&&Ra[ed]==="/"&&Ra[ed+1]==="*"){let rd=Ra.indexOf("*/",ed);rd!==-1?(ed=rd+2,td=Ra.indexOf("*/",ed)):(qa+=Ra[ed],ed++)}else qa+=Ra[ed],ed++;return qa}function parseParams(Ra){const qa=stripComments(Ra.toString());let ed=qa.match(FN_ARGS);if(ed||(ed=qa.match(ARROW_FN_ARGS)),!ed)throw new Error( ` could not parse args in autoInject
2024-08-27 22:31:52 +08:00
Source :
2024-09-16 00:03:18 +08:00
` +qa);let[,td]=ed;return td.replace(/ \s /g,"").split(FN_ARG_SPLIT).map(rd=>rd.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var ed={};return Object.keys(Ra).forEach(td=>{var rd=Ra[td],sd,od=isAsync(rd),ld=!od&&rd.length===1||od&&rd.length===0;if(Array.isArray(rd))sd=[...rd],rd=sd.pop(),ed[td]=sd.concat(sd.length>0?cd:rd);else if(ld)ed[td]=rd;else{if(sd=parseParams(rd),rd.length===0&&!od&&sd.length===0)throw new Error("autoInject task functions require explicit parameters.");od||sd.pop(),ed[td]=sd.concat(cd)}function cd(ud,_d){var Ed=sd.map(Ad=>ud[Ad]);Ed.push(_d),wrapAsync(rd)(...Ed)}}),auto(ed,qa)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(qa){return qa.prev?qa.prev.next=qa.next:this.head=qa.next,qa.next?qa.next.prev=qa.prev:this.tail=qa.prev,qa.prev=qa.next=null,this.length-=1,qa}empty(){for(;this.head;)this.shift();return this}insertAfter(qa,ed){ed.prev=qa,ed.next=qa.next,qa.next?qa.next.prev=ed:this.tail=ed,qa.next=ed,this.length+=1}insertBefore(qa,ed){ed.prev=qa.prev,ed.next=qa,qa.prev?qa.prev.next=ed:this.head=ed,qa.prev=ed,this.length+=1}unshift(qa){this.head?this.insertBefore(this.head,qa):setInitial(this,qa)}push(qa){this.tail?this.insertAfter(this.tail,qa):setInitial(this,qa)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var qa=this.head;qa;)yield qa.data,qa=qa.next}remove(qa){for(var ed=this.head;ed;){var{next:td}=ed;qa(ed)&&this.removeLink(ed),ed=td}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue $ 1(Ra,qa,ed){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var td=wrapAsync(Ra),rd=0,sd=[];const od={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function ld(Od,Md){od[Od].push(Md)}function cd(Od,Md){const Pd=(...Fd)=>{ud(Od,Pd),Md(...Fd)};od[Od].push(Pd)}function ud(Od,Md){if(!Od)return Object.keys(od).forEach(Pd=>od[Pd]=[]);if(!Md)return od[Od]=[];od[Od]=od[Od].filter(Pd=>Pd!==Md)}function _d(Od,...Md){od[Od].forEach(Pd=>Pd(...Md))}var Ed=!1;function Ad(Od,Md,Pd,Fd){if(Fd!=null&&typeof Fd!="function")throw new Error("task callback must be a function");kd.started=!0;var Ud,Gd;function Qd(zd,...Xd){if(zd)return Pd?Gd(zd):Ud();if(Xd.length<=1)return Ud(Xd[0]);Ud(Xd)}var Vd=kd._createTaskItem(Od,Pd?Qd:Fd||Qd);if(Md?kd._tasks.unshift(Vd):kd._tasks.push(Vd),Ed||(Ed=!0,setImmediate $ 1 $ 1(()=>{Ed=!1,kd.process()})),Pd||!Fd)return new Promise((zd,Xd)=>{Ud=zd,Gd=Xd})}function Td(Od){return function(Md,...Pd){rd-=1;for(var Fd=0,Ud=Od.length;Fd<Ud;Fd++){var Gd=Od[Fd],Qd=sd.indexOf(Gd);Qd===0?sd.shift():Qd>0&&sd.splice(Qd,1),Gd.callback(Md,...Pd),Md!=null&&_d("error",Md,Gd.data)}rd<=kd.concurrency-kd.buffer&&_d("unsaturated"),kd.idle()&&_d("drain"),kd.process()}}function Nd(Od){return Od.length===0&&kd.idle()?(setImmediate $ 1 $ 1(()=>_d("drain")),!0):!1}const Rd=Od=>Md=>{if(!Md)return new Promise((Pd,Fd)=>{cd(Od,(Ud,Gd)=>{if(Ud)return Fd(Ud);Pd(Gd)})});ud(Od),ld(Od,Md)};var Bd=!1,kd={_tasks:new DLL,_createTaskItem(Od,Md){return{data:Od,callback:Md}},*[Symbol.iterator](){yield*kd._tasks[Symbol.iterator]()},concurrency:qa,payload:ed,buffer:qa/4,started:!1,paused:!1,push(Od,Md){return Array.isArray(Od)?Nd(Od)?void 0:Od.map(Pd=>Ad(Pd,!1,!1,Md)):Ad(Od,!1,!1,Md)},pushAsync(Od,Md){return Array.isArray(Od)?Nd(Od)?void 0:Od.map(Pd=>Ad(Pd,!1,!0,Md)):Ad(Od,!1,!0,Md)},kill(){ud(),kd._tasks.empty()},unshift(Od,Md){return Array.isArray(Od)?Nd(Od)?void 0:Od.map(Pd=>Ad(Pd,!0,!1,Md)):Ad(Od,!0,!1,Md)},unshiftAsync(Od,Md){return Array.isArray(Od)?Nd(Od)?void 0:Od.map(Pd=>Ad(Pd,!0,!0,Md)):Ad(Od,!0,!0,Md)},remove(Od){kd._tasks.remove(Od)},process(){if(!Bd){for(Bd=!0;!kd.paused&&rd<kd.concurrency&&kd._tasks.length;){var Od=[],Md=[],Pd=kd._tasks.length;kd.payload&&(Pd=Math.min(Pd,kd.payload));for(var Fd=0;Fd<Pd;Fd++){var Ud=kd._tasks.shift();Od.push(Ud),sd.push(Ud),Md.push(Ud.data)}rd+=1,kd._tasks.length===0&&_d("empty"),rd===kd.concurrency&&_d("saturated");var Gd=onlyOnce(Td(Od));td(Md,Gd)}Bd=!1}},length(){return kd._tasks.
2024-08-27 22:31:52 +08:00
* @ license
* Lodash < https : //lodash.com/>
* Copyright OpenJS Foundation and other contributors < https : //openjsf.org/>
* Released under MIT license < https : //lodash.com/license>
* Based on Underscore . js 1.8 . 3 < http : //underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas , DocumentCloud and Investigative Reporters & Editors
2024-09-16 00:03:18 +08:00
* /lodash.exports;(function(Ra,qa){(function(){var ed,td="4.17.21",rd=200,sd="Unsupported core-js use. Try https:/ / npms . io / search ? q = ponyfill . ",od=" Expected a function ",ld=" Invalid ` variable ` option passed into ` _.template ` ",cd=" _ _lodash _hash _undefined _ _ ",ud=500,_d=" _ _lodash _placeholder _ _ ",Ed=1,Ad=2,Td=4,Nd=1,Rd=2,Bd=1,kd=2,Od=4,Md=8,Pd=16,Fd=32,Ud=64,Gd=128,Qd=256,Vd=512,zd=30,Xd=" ... ",df=800,mf=16,_f=1,hf=2,gf=3,yf=1/0,Cf=9007199254740991,Ff=17976931348623157e292,Qf=NaN,Uf=4294967295,Lf=Uf-1,wf=Uf>>>1,Nf=[[" ary ",Gd],[" bind ",Bd],[" bindKey ",kd],[" curry ",Md],[" curryRight ",Pd],[" flip ",Vd],[" partial ",Fd],[" partialRight ",Ud],[" rearg ",Qd]],Zf=" [ object Arguments ] ",Kf=" [ object Array ] ",Tf=" [ object AsyncFunction ] ",bf=" [ object Boolean ] ",Bf=" [ object Date ] ",Wf=" [ object DOMException ] ",lh=" [ object Error ] ",Xf=" [ object Function ] ",$f=" [ object GeneratorFunction ] ",th=" [ object Map ] ",hh=" [ object Number ] ",Yf=" [ object Null ] ",xf=" [ object Object ] ",Rf=" [ object Promise ] ",qf=" [ object Proxy ] ",ch=" [ object RegExp ] ",_h=" [ object Set ] ",sh=" [ object String ] ",Ih=" [ object Symbol ] ",gh=" [ object Undefined ] ",Dh=" [ object WeakMap ] ",Xh=" [ object WeakSet ] ",qh=" [ object ArrayBuffer ] ",sm=" [ object DataView ] ",hm=" [ object Float32Array ] ",ih=" [ object Float64Array ] ",kf=" [ object Int8Array ] ",Of=" [ object Int16Array ] ",rh=" [ object Int32Array ] ",uh=" [ object Uint8Array ] ",wh=" [ object Uint8ClampedArray ] ",$h=" [ object Uint16Array ] ",om=" [ object Uint32Array ] ",Tm=/\b__p \+= '';/g,um=/\b(__p \+=) '' \+/g,Wm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fm=/&(?:amp|lt|gt|quot|#39);/g,Lm=/[&<>" ']/g,e_=RegExp(Fm.source),F_=RegExp(Lm.source),R_=/<%-([\s\S]+?)%>/g,w_=/<%([\s\S]+?)%>/g,Qm=/<%=([\s\S]+?)%>/g,P_=/\.|\[(?:[^[\]]*|(["' ] ) ( ? : ( ? ! \ 1 ) [ ^ \ \ ] | \ \ . ) * ? \ 1 ) \ ] / , V _ = /^\w*$/ , Z _ = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , t1 = /[\\^$.*+?()[\]{}|]/g , j _ = RegExp ( t1 . source ) , $ _ = /^\s+/ , Hm = /\s/ , v _ = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , m1 = /\{\n\/\* \[wrapped with (.+)\] \*/ , am = /,? & / , Df = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , ph = /[()=,{}\[\]\/\s]/ , nh = /\\(\\)?/g , fh = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , Ah = /\w*$/ , Ch = /^[-+]0x[0-9a-f]+$/i , Bh = /^0b[01]+$/i , Rh = /^\[object .+?Constructor\]$/ , bh = /^0o[0-7]+$/i , dm = /^(?:0|[1-9]\d*)$/ , cm = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , _m = /($^)/ , Gf = /['\n\r\u2028\u2029\\]/g , Mm = "\\ud800-\\udfff" , g _ = "\\u0300-\\u036f" , m _ = "\\ufe20-\\ufe2f" , s _ = "\\u20d0-\\u20ff" , Rm = g _ + m _ + s _ , T _ = "\\u2700-\\u27bf" , p _ = "a-z\\xdf-\\xf6\\xf8-\\xff" , l _ = "\\xac\\xb1\\xd7\\xf7" , Vm = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , D _ = "\\u2000-\\u206f" , tg = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000" , rg = "A-Z\\xc0-\\xd6\\xd8-\\xde" , Sm = "\\ufe0e\\ufe0f" , f _ = l _ + Vm + D _ + tg , I1 = "['’ ]" , ug = "[" + Mm + "]" , l1 = "[" + f _ + "]" , j1 = "[" + Rm + "]" , _1 = "\\d+" , h _ = "[" + T _ + "]" , U1 = "[" + p _ + "]" , L _ = "[^" + Mm + f _ + _1 + T _ + p _ + rg + "]" , y1 = "\\ud83c[\\udffb-\\udfff]" , c1 = "(?:" + j1 + "|" + y1 + ")" , ng = "[^" + Mm + "]" , Eg = "(?:\\ud83c[\\udde6-\\uddff]){2}" , E1 = "[\\ud800-\\udbff][\\udc00-\\udfff]" , ig = "[" + rg + "]" , d0 = "\\u200d" , Qg = "(?:" + U1 + "|" + L _ + ")" , a _ = "(?:" + ig + "|" + L _ + ")" , Tg = "(?:" + I1 + "(?:d|ll|m|re|s|t|ve))?" , g1 = "(?:" + I1 + "(?:D|LL|M|RE|S|T|VE))?" , p0 = c1 + "?" , x0 = "[" + Sm + "]?" , Sg = "(?:" + d0 + "(?:" + [ ng , Eg , E1 ] . join ( "|" ) + ")" + x0 + p0 + ")*" , kg = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , u1 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , W1 = x0 + p0 + Sg , dg = "(?:" + [ h _ , Eg , E1 ] . join ( "|" ) + ")" + W1 , ag = "(?:" + [ ng + j1 + "?" , j1 , Eg , E1 , ug ] . join ( "|" ) + ")" , Jg = RegExp ( I1 , "g" ) , yb = RegExp ( j1 , "g" ) , V0 = RegExp ( y1 + "(?=" + y1 + ")|" + ag + W1 , "g" ) , Eb = RegExp ( [ ig + "?" + U1 + "+" + Tg + "(?=" + [ l1 , ig , "$" ] . join ( "|" ) + ")" , a _ + "+" + g1 + "(?=" + [ l1 , ig + Qg , "$" ] . join ( "|" ) + ")" , ig + "?" + Qg + "+" + Tg , ig + "+" + g1 , u1 , kg , _1 , dg ] . join ( "|" ) , "g" ) , tv = RegExp ( "[" + d0 + Mm + Rm + Sm + "]" ) , G0 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , z0 = [ "Array" , "Buffer" , "DataView" , "Date" , "Error" , "Float32Array" , "Float64Array" , "Function" , "Int8Array" , "Int16Array" , "Int32Array" , "Map" , "Math" , "Object" , "Promise" , "RegExp" , "Set" , "String" , "Symbol" , "TypeError" , "Uint8Array" , "Uint8ClampedArray" , "Uint16Array" , "Uint32Array" , "WeakMap" , "_" , " clearTim
/* [wrapped with `+Jd+`] */
` )}function jd(qd){return N_(qd)||Dv(qd)||!!(UE&&qd&&qd[UE])}function Kd(qd,Jd){var Ef=typeof qd;return Jd=Jd??Cf,!!Jd&&(Ef=="number"||Ef!="symbol"&&dm.test(qd))&&qd>-1&&qd%1==0&&qd<Jd}function Yd(qd,Jd,Ef){if(!w1(Ef))return!1;var Vf=typeof Jd;return(Vf=="number"?Rg(Ef)&&Kd(Jd,Ef.length):Vf=="string"&&Jd in Ef)?T0(Ef[Jd],qd):!1}function Zd(qd,Jd){if(N_(qd))return!1;var Ef=typeof qd;return Ef=="number"||Ef=="symbol"||Ef=="boolean"||qd==null||Yg(qd)?!0:V_.test(qd)||!P_.test(qd)||Jd!=null&&qd in r1(Jd)}function Sf(qd){var Jd=typeof qd;return Jd=="string"||Jd=="number"||Jd=="symbol"||Jd=="boolean"?qd!=="__proto__":qd===null}function Mf(qd){var Jd=Av(qd),Ef=mh[Jd];if(typeof Ef!="function"||!(Jd in b_.prototype))return!1;if(qd===Ef)return!0;var Vf=Cv(Ef);return!!Vf&&qd===Vf[0]}function zf(qd){return!!Lv&&Lv in qd}var eh=_0?_b:wT;function ah(qd){var Jd=qd&&qd.constructor,Ef=typeof Jd=="function"&&Jd.prototype||Bg;return qd===Ef}function Th(qd){return qd===qd&&!w1(qd)}function kh(qd,Jd){return function(Ef){return Ef==null?!1:Ef[qd]===Jd&&(Jd!==ed||qd in r1(Ef))}}function Yh(qd){var Jd=I2(qd,function(Vf){return Ef.size===ud&&Ef.clear(),Vf}),Ef=Jd.cache;return Jd}function Wh(qd,Jd){var Ef=qd[1],Vf=Jd[1],oh=Ef|Vf,vh=oh<(Bd|kd|Gd),Uh=Vf==Gd&&Ef==Md||Vf==Gd&&Ef==Qd&&qd[7].length<=Jd[8]||Vf==(Gd|Qd)&&Jd[7].length<=Jd[8]&&Ef==Md;if(!(vh||Uh))return qd;Vf&Bd&&(qd[2]=Jd[2],oh|=Ef&Bd?0:Od);var Gh=Jd[3];if(Gh){var im=qd[3];qd[3]=im?ey(im,Gh,Jd[4]):Gh,qd[4]=im?hg(qd[3],_d):Jd[4]}return Gh=Jd[5],Gh&&(im=qd[5],qd[5]=im?CE(im,Gh,Jd[6]):Gh,qd[6]=im?hg(qd[5],_d):Jd[6]),Gh=Jd[7],Gh&&(qd[7]=Gh),Vf&Gd&&(qd[8]=qd[8]==null?Jd[8]:N1(qd[8],Jd[8])),qd[9]==null&&(qd[9]=Jd[9]),qd[0]=Jd[0],qd[1]=oh,qd}function mm(qd){var Jd=[];if(qd!=null)for(var Ef in r1(qd))Jd.push(Ef);return Jd}function Dm(qd){return t0.call(qd)}function Um(qd,Jd,Ef){return Jd=o1(Jd===ed?qd.length-1:Jd,0),function(){for(var Vf=arguments,oh=-1,vh=o1(Vf.length-Jd,0),Uh=fm(vh);++oh<vh;)Uh[oh]=Vf[Jd+oh];oh=-1;for(var Gh=fm(Jd+1);++oh<Jd;)Gh[oh]=Vf[oh];return Gh[Jd]=Ef(Uh),Pm(qd,this,Gh)}}function Km(qd,Jd){return Jd.length<2?qd:M0(qd,M1(Jd,0,-1))}function Xm(qd,Jd){for(var Ef=qd.length,Vf=N1(Jd.length,Ef),oh=cg(qd);Vf--;){var vh=Jd[Vf];qd[Vf]=Kd(vh,Ef)?oh[vh]:ed}return qd}function Ym(qd,Jd){if(!(Jd==="constructor"&&typeof qd[Jd]=="function")&&Jd!="__proto__")return qd[Jd]}var Zm=e1(h2),c_=Fv||function(qd,Jd){return G_.setTimeout(qd,Jd)},o_=e1(tT);function A_(qd,Jd,Ef){var Vf=Jd+"";return o_(qd,Id(Vf,x1(b1(Vf),Ef)))}function e1(qd){var Jd=0,Ef=0;return function(){var Vf=j2(),oh=mf-(Vf-Ef);if(Ef=Vf,oh>0){if(++Jd>=df)return arguments[0]}else Jd=0;return qd.apply(ed,arguments)}}function v1(qd,Jd){var Ef=-1,Vf=qd.length,oh=Vf-1;for(Jd=Jd===ed?Vf:Jd;++Ef<Jd;){var vh=Kv(Ef,oh),Uh=qd[vh];qd[vh]=qd[Ef],qd[Ef]=Uh}return qd.length=Jd,qd}var a1=Yh(function(qd){var Jd=[];return qd.charCodeAt(0)===46&&Jd.push(""),qd.replace(Z_,function(Ef,Vf,oh,vh){Jd.push(oh?vh.replace(nh," $ 1"):Vf||Ef)}),Jd});function f1(qd){if(typeof qd=="string"||Yg(qd))return qd;var Jd=qd+"";return Jd=="0"&&1/qd==-yf?"-0":Jd}function S1(qd){if(qd!=null){try{return Db.call(qd)}catch{}try{return qd+""}catch{}}return""}function x1(qd,Jd){return C_(Nf,function(Ef){var Vf="_."+Ef[0];Jd&Ef[1]&&!X0(qd,Vf)&&qd.push(Vf)}),qd.sort()}function K1(qd){if(qd instanceof b_)return qd.clone();var Jd=new J_(qd.__wrapped__,qd.__chain__);return Jd.__actions__=cg(qd.__actions__),Jd.__index__=qd.__index__,Jd.__values__=qd.__values__,Jd}function V1(qd,Jd,Ef){(Ef?Yd(qd,Jd,Ef):Jd===ed)?Jd=1:Jd=o1(O_(Jd),0);var Vf=qd==null?0:qd.length;if(!Vf||Jd<1)return[];for(var oh=0,vh=0,Uh=fm(av(Vf/Jd));oh<Vf;)Uh[vh++]=M1(qd,oh,oh+=Jd);return Uh}function D1(qd){for(var Jd=-1,Ef=qd==null?0:qd.length,Vf=0,oh=[];++Jd<Ef;){var vh=qd[Jd];vh&&(oh[Vf++]=vh)}return oh}function C1(){var qd=arguments.length;if(!qd)return[];for(var Jd=fm(qd-1),Ef=arguments[0],Vf=qd;Vf--;)Jd[Vf-1]=arguments[Vf];return Mg(N_(Ef)?cg(Ef):[Ef], $ 1(Jd,1))}var h1=I_(function(qd,Jd){return P1(qd)?dv(qd, $ 1(Jd,1,P1,!0)):[]}),Z1=I_(function(qd,Jd){var Ef=c0(Jd);return P1(Ef)&&(Ef=ed),P1(qd)?dv(qd, $ 1(Jd,1,P1,!0
` ;qd.replace(t_,function(E_,B_,H_,Kg,yg,Xg){return H_||(H_=Kg),jm+=qd.slice(Om,Xg).replace(Gf,J0),B_&&(Gh=!0,jm+= ` ' +
_ _e ( ` +B_+ ` ) +
'`),yg&&(im=!0,jm+=`' ;
` +yg+ ` ;
_ _p += '`),H_&&(jm+=`' +
( ( _ _t = ( ` +H_+ ` ) ) == null ? '' : _ _t ) +
'`),Om=Xg+E_.length,E_}),jm+=`' ;
` ;var y_=X_.call(Jd,"variable")&&Jd.variable;if(!y_)jm= ` with ( obj ) {
` +jm+ `
2024-08-27 22:31:52 +08:00
}
2024-09-16 00:03:18 +08:00
` ;else if(ph.test(y_))throw new x_(ld);jm=(im?jm.replace(Tm,""):jm).replace(um," $ 1").replace(Wm," $ 1;"),jm="function("+(y_||"obj")+ ` ) {
` +(y_?"": ` obj || ( obj = { } ) ;
` )+"var __t, __p = ''"+(Gh?", __e = _.escape":"")+(im? ` , _ _j = Array . prototype . join ;
2024-08-27 22:31:52 +08:00
function print ( ) { _ _p += _ _j . call ( arguments , '' ) }
` : ` ;
2024-09-16 00:03:18 +08:00
` )+jm+ ` return _ _p
2024-09-16 17:10:21 +08:00
} ` ;var k_=lS(function(){return U_(vh,d_+"return "+jm).apply(ed,Uh)});if(k_.source=jm,_T(k_))throw k_;return k_}function Aw(qd){return n1(qd).toLowerCase()}function Nw(qd){return n1(qd).toUpperCase()}function Dw(qd,Jd,Ef){if(qd=n1(qd),qd&&(Ef||Jd===ed))return r_(qd);if(!qd||!(Jd=bg(Jd)))return qd;var Vf=Lg(qd),oh=Lg(Jd),vh=z_(Vf,oh),Uh=O1(Vf,oh)+1;return E0(Vf,vh,Uh).join("")}function Rw(qd,Jd,Ef){if(qd=n1(qd),qd&&(Ef||Jd===ed))return qd.slice(0,Yy(qd)+1);if(!qd||!(Jd=bg(Jd)))return qd;var Vf=Lg(qd),oh=O1(Vf,Lg(Jd))+1;return E0(Vf,0,oh).join("")}function Iw(qd,Jd,Ef){if(qd=n1(qd),qd&&(Ef||Jd===ed))return qd.replace( $ _,"");if(!qd||!(Jd=bg(Jd)))return qd;var Vf=Lg(qd),oh=z_(Vf,Lg(Jd));return E0(Vf,oh).join("")}function Ow(qd,Jd){var Ef=zd,Vf=Xd;if(w1(Jd)){var oh="separator"in Jd?Jd.separator:oh;Ef="length"in Jd?O_(Jd.length):Ef,Vf="omission"in Jd?bg(Jd.omission):Vf}qd=n1(qd);var vh=qd.length;if(Ab(qd)){var Uh=Lg(qd);vh=Uh.length}if(Ef>=vh)return qd;var Gh=Ef-Nb(Vf);if(Gh<1)return Vf;var im=Uh?E0(Uh,0,Gh).join(""):qd.slice(0,Gh);if(oh===ed)return im+Vf;if(Uh&&(Gh+=im.length-Gh),gT(oh)){if(qd.slice(Gh).search(oh)){var Om, $ m=im;for(oh.global||(oh=iv(oh.source,n1(Ah.exec(oh))+"g")),oh.lastIndex=0;Om=oh.exec( $ m);)var jm=Om.index;im=im.slice(0,jm===ed?Gh:jm)}}else if(qd.indexOf(bg(oh),Gh)!=Gh){var t_=im.lastIndexOf(oh);t_>-1&&(im=im.slice(0,t_))}return im+Vf}function kw(qd){return qd=n1(qd),qd&&e_.test(qd)?qd.replace(Fm,BE):qd}var $ w=Kb(function(qd,Jd,Ef){return qd+(Ef?" ":"")+Jd.toUpperCase()}),yT=y2("toUpperCase");function sS(qd,Jd,Ef){return qd=n1(qd),Jd=Ef?ed:Jd,Jd===ed? $ E(qd)?FE(qd):Vy(qd):qd.match(Jd)||[]}var lS=I_(function(qd,Jd){try{return Pm(qd,ed,Jd)}catch(Ef){return _T(Ef)?Ef:new x_(Ef)}}),Mw=s0(function(qd,Jd){return C_(Jd,function(Ef){Ef=f1(Ef),v0(qd,Ef,hT(qd[Ef],qd))}),qd});function Lw(qd){var Jd=qd==null?0:qd.length,Ef=__();return qd=Jd?i1(qd,function(Vf){if(typeof Vf[1]!="function")throw new wg(od);return[Ef(Vf[0]),Vf[1]]}):[],I_(function(Vf){for(var oh=-1;++oh<Jd;){var vh=qd[oh];if(Pm(vh[0],this,Vf))return Pm(vh[1],this,Vf)}})}function Bw(qd){return Q2(_g(qd,Ed))}function ET(qd){return function(){return qd}}function Pw(qd,Jd){return qd==null||qd!==qd?Jd:qd}var Fw=E2(),jw=E2(!0);function Og(qd){return qd}function TT(qd){return qb(typeof qd=="function"?qd:_g(qd,Ed))}function Uw(qd){return l2(_g(qd,Ed))}function qw(qd,Jd){return _E(qd,_g(Jd,Ed))}var Hw=I_(function(qd,Jd){return function(Ef){return jb(Ef,qd,Jd)}}),Vw=I_(function(qd,Jd){return function(Ef){return jb(qd,Ef,Jd)}});function ST(qd,Jd,Ef){var Vf=Q1(Jd),oh=Wv(Jd,Vf);Ef==null&&!(w1(Jd)&&(oh.length||!Vf.length))&&(Ef=Jd,Jd=qd,qd=this,oh=Wv(Jd,Q1(Jd)));var vh=!(w1(Ef)&&"chain"in Ef)||!!Ef.chain,Uh=_b(qd);return C_(oh,function(Gh){var im=Jd[Gh];qd[Gh]=im,Uh&&(qd.prototype[Gh]=function(){var Om=this.__chain__;if(vh||Om){var $ m=qd(this.__wrapped__),jm= $ m.__actions__=cg(this.__actions__);return jm.push({func:im,args:arguments,thisArg:qd}), $ m.__chain__=Om, $ m}return im.apply(qd,Mg([this.value()],arguments))})}),qd}function Gw(){return G_._===this&&(G_._=J1),this}function xT(){}function zw(qd){return qd=O_(qd),I_(function(Jd){return Vb(Jd,qd)})}var Ww=ry(i1),Yw=ry(pg),Kw=ry(A0);function cS(qd){return Zd(qd)?dh(f1(qd)):Z2(qd)}function Xw(qd){return function(Jd){return qd==null?ed:M0(qd,Jd)}}var Qw=mb(),Jw=mb(!0);function CT(){return[]}function wT(){return!1}function Zw(){return{}}function eA(){return""}function tA(){return!0}function rA(qd,Jd){if(qd=O_(qd),qd<1||qd>Cf)return[];var Ef=Uf,Vf=N1(qd,Uf);Jd=__(Jd),qd-=Uf;for(var oh=zm(Vf,Jd);++Ef<qd;)Jd(Ef);return oh}function nA(qd){return N_(qd)?i1(qd,f1):Yg(qd)?[qd]:cg(a1(n1(qd)))}function iA(qd){var Jd=++jE;return n1(qd)+Jd}var aA=Xb(function(qd,Jd){return qd+Jd},0),sA=NE("ceil"),oA=Xb(function(qd,Jd){return qd/Jd},1),lA=NE("floor");function cA(qd){return qd&&qd.length?Gv(qd,Og,Yv):ed}function uA(qd,Jd){return qd&&qd.length?Gv(qd,__(Jd,2),Yv):ed}function dA(qd){return Jf(qd,Og)}function pA(qd,Jd){return Jf(qd,__(Jd,2))}function fA(qd){return qd&&qd.length?Gv(qd,Og,pb):ed}function hA(qd,Jd){return qd&&qd.length?Gv(qd,__
2024-09-16 00:03:18 +08:00
` :"")),ed&&ed()}function sd(od){return od.interrupt?(od.interrupt.append=Ra,od.interrupt.end=rd,od.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,qa.indents+(qa.name?"<"+qa.name:"")+(qa.attributes.length?" "+qa.attributes.join(" "):"")+(td?qa.name?">":"":qa.name?"/>":"")+(qa.indent&&td>1? `
` :"")),!td)return Ra(!1,qa.indent? `
` :"");sd(qa)||rd()}function attribute(Ra,qa){return Ra+'="'+escapeForXML(qa)+'"'}xml $ 2.exports=xml $ 1;xml $ 2.exports.element=xml $ 2.exports.Element=element;var xmlExports=xml $ 2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults $ 1={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults $ 1.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:" $ ",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:" $ $ ",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline: `
` },headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults $ 1}var builder={},lib $ 1={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,ed,td,rd,sd,od,ld=[].slice,cd={}.hasOwnProperty;Ra=function(){var ud,_d,Ed,Ad,Td,Nd;if(Nd=arguments[0],Td=2<=arguments.length?ld.call(arguments,1):[],rd(Object.assign))Object.assign.apply(null,arguments);else for(ud=0,Ed=Td.length;ud<Ed;ud++)if(Ad=Td[ud],Ad!=null)for(_d in Ad)cd.call(Ad,_d)&&(Nd[_d]=Ad[_d]);return Nd},rd=function(ud){return!!ud&&Object.prototype.toString.call(ud)==="[object Function]"},sd=function(ud){var _d;return!!ud&&((_d=typeof ud)=="function"||_d==="object")},ed=function(ud){return rd(Array.isArray)?Array.isArray(ud):Object.prototype.toString.call(ud)==="[object Array]"},td=function(ud){var _d;if(ed(ud))return!ud.length;for(_d in ud)if(cd.call(ud,_d))return!1;return!0},od=function(ud){var _d,Ed;return sd(ud)&&(Ed=Object.getPrototypeOf(ud))&&(_d=Ed.constructor)&&typeof _d=="function"&&_d instanceof _d&&Function.prototype.toString.call(_d)===Function.prototype.toString.call(Object)},qa=function(ud){return rd(ud.valueOf)?ud.valueOf():ud},Utility.assign=Ra,Utility.isFunction=rd,Utility.isObject=sd,Utility.isArray=ed,Utility.isEmpty=td,Utility.isPlainObject=od,Utility.getValue=qa}).call(commonjsGlobal)),Utility}var XMLDOMImplementation={exports:{}},hasRequiredXMLDOMImplementation;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,(function(){XMLDOMImplementation.exports=function(){function Ra(){}return Ra.prototype.hasFeature=function(qa,ed){return!0},Ra.prototype.createDocumentType=function(qa,ed,td){throw new Error("This DOM method is not implemented.")},Ra.prototype.createDocument=function(qa,ed,td){throw new Error("This DOM method is not implemented.")},Ra.prototype.createHTMLDocument=function(qa){throw new Error("This DOM method is not implemented.")},Ra.prototype.getFeature=function(qa,ed){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLDOMImplementation.exports}var XMLDocument={exports:{}},XMLDOMConfiguration={exports:{}},XMLDOMErrorHandler={exports:{}},hasRequiredXMLDOMErrorHandler;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,(function(){XMLDOMErrorHandler.exports=function(){function Ra(){}return Ra.prototype.handleError=function(qa){throw new Error(qa)},Ra}()}).call(commonjsGlobal)),XMLDOMErrorHandler.exports}var XMLDOMStringList={exports:{}},hasRequiredXMLDOMStringList;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,(function(){XMLDOMStringList.exports=function(){function Ra(qa){this.arr=qa||[]}return Object.defineProperty(Ra.prototype,"length",{get:function(){return this.arr.length}}),Ra.prototype.item=function(qa){return this.arr[qa]||null},Ra.prototype.contains=function(qa){return this.arr.indexOf(qa)!==-1},Ra}()}).call(commonjsGlobal)),XMLDOMStringList.exports}var hasRequiredXMLDOMConfiguration;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,(function(){var Ra,qa;Ra=requireXMLDOMErrorHandler(),qa=requireXMLDOMStringList(),XMLDOMConfiguration.exports=function(){function ed(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Ra,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(ed.prototype,"parameterNames",{get:function(){return new qa(Object.keys(this.defaultParams))}}),ed.prototype.getParameter=function(td){return this.params.hasOwnProperty(td)?this.params[td]:null},ed.prototype.canSetParameter=function(td,rd){return!0},ed.prototype.setParameter=fu
` ,od.offset=(ud=sd.offset)!=null?ud:0,od.dontPrettyTextNodes=(_d=(Ed=sd.dontPrettyTextNodes)!=null?Ed:sd.dontprettytextnodes)!=null?_d:0,od.spaceBeforeSlash=(Ad=(Td=sd.spaceBeforeSlash)!=null?Td:sd.spacebeforeslash)!=null?Ad:"",od.spaceBeforeSlash===!0&&(od.spaceBeforeSlash=" "),od.suppressPrettyCount=0,od.user={},od.state=qa.None,od},rd.prototype.indent=function(sd,od,ld){var cd;return!od.pretty||od.suppressPrettyCount?"":od.pretty&&(cd=(ld||0)+od.offset+1,cd>0)?new Array(cd).join(od.indent):""},rd.prototype.endline=function(sd,od,ld){return!od.pretty||od.suppressPrettyCount?"":od.newline},rd.prototype.attribute=function(sd,od,ld){var cd;return this.openAttribute(sd,od,ld),cd=" "+sd.name+'="'+sd.value+'"',this.closeAttribute(sd,od,ld),cd},rd.prototype.cdata=function(sd,od,ld){var cd;return this.openNode(sd,od,ld),od.state=qa.OpenTag,cd=this.indent(sd,od,ld)+"<![CDATA[",od.state=qa.InsideTag,cd+=sd.value,od.state=qa.CloseTag,cd+="]]>"+this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),cd},rd.prototype.comment=function(sd,od,ld){var cd;return this.openNode(sd,od,ld),od.state=qa.OpenTag,cd=this.indent(sd,od,ld)+"<!-- ",od.state=qa.InsideTag,cd+=sd.value,od.state=qa.CloseTag,cd+=" -->"+this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),cd},rd.prototype.declaration=function(sd,od,ld){var cd;return this.openNode(sd,od,ld),od.state=qa.OpenTag,cd=this.indent(sd,od,ld)+"<?xml",od.state=qa.InsideTag,cd+=' version="'+sd.version+'"',sd.encoding!=null&&(cd+=' encoding="'+sd.encoding+'"'),sd.standalone!=null&&(cd+=' standalone="'+sd.standalone+'"'),od.state=qa.CloseTag,cd+=od.spaceBeforeSlash+"?>",cd+=this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),cd},rd.prototype.docType=function(sd,od,ld){var cd,ud,_d,Ed,Ad;if(ld||(ld=0),this.openNode(sd,od,ld),od.state=qa.OpenTag,Ed=this.indent(sd,od,ld),Ed+="<!DOCTYPE "+sd.root().name,sd.pubID&&sd.sysID?Ed+=' PUBLIC "'+sd.pubID+'" "'+sd.sysID+'"':sd.sysID&&(Ed+=' SYSTEM "'+sd.sysID+'"'),sd.children.length>0){for(Ed+=" [",Ed+=this.endline(sd,od,ld),od.state=qa.InsideTag,Ad=sd.children,ud=0,_d=Ad.length;ud<_d;ud++)cd=Ad[ud],Ed+=this.writeChildNode(cd,od,ld+1);od.state=qa.CloseTag,Ed+="]"}return od.state=qa.CloseTag,Ed+=od.spaceBeforeSlash+">",Ed+=this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),Ed},rd.prototype.element=function(sd,od,ld){var cd,ud,_d,Ed,Ad,Td,Nd,Rd,Bd,kd,Od,Md,Pd,Fd;ld||(ld=0),kd=!1,Od="",this.openNode(sd,od,ld),od.state=qa.OpenTag,Od+=this.indent(sd,od,ld)+"<"+sd.name,Md=sd.attribs;for(Bd in Md)td.call(Md,Bd)&&(cd=Md[Bd],Od+=this.attribute(cd,od,ld));if(_d=sd.children.length,Ed=_d===0?null:sd.children[0],_d===0||sd.children.every(function(Ud){return(Ud.type===Ra.Text||Ud.type===Ra.Raw)&&Ud.value===""}))od.allowEmpty?(Od+=">",od.state=qa.CloseTag,Od+="</"+sd.name+">"+this.endline(sd,od,ld)):(od.state=qa.CloseTag,Od+=od.spaceBeforeSlash+"/>"+this.endline(sd,od,ld));else if(od.pretty&&_d===1&&(Ed.type===Ra.Text||Ed.type===Ra.Raw)&&Ed.value!=null)Od+=">",od.state=qa.InsideTag,od.suppressPrettyCount++,kd=!0,Od+=this.writeChildNode(Ed,od,ld+1),od.suppressPrettyCount--,kd=!1,od.state=qa.CloseTag,Od+="</"+sd.name+">"+this.endline(sd,od,ld);else{if(od.dontPrettyTextNodes){for(Pd=sd.children,Ad=0,Nd=Pd.length;Ad<Nd;Ad++)if(ud=Pd[Ad],(ud.type===Ra.Text||ud.type===Ra.Raw)&&ud.value!=null){od.suppressPrettyCount++,kd=!0;break}}for(Od+=">"+this.endline(sd,od,ld),od.state=qa.InsideTag,Fd=sd.children,Td=0,Rd=Fd.length;Td<Rd;Td++)ud=Fd[Td],Od+=this.writeChildNode(ud,od,ld+1);od.state=qa.CloseTag,Od+=this.indent(sd,od,ld)+"</"+sd.name+">",kd&&od.suppressPrettyCount--,Od+=this.endline(sd,od,ld),od.state=qa.None}return this.closeNode(sd,od,ld),Od},rd.prototype.writeChildNode=function(sd,od,ld){switch(sd.type){case Ra.CData:return this.cdata(sd,od,ld);case Ra.Comment:return this.comment(sd,od,ld);case Ra.Element:return this.element(sd,od,ld);case Ra.Raw:return this.raw(sd,od,ld);case Ra.Text:return this.text(sd,od,ld);case Ra.ProcessingInstruction:return this.processingInstruction(sd,od,ld);case Ra.Dummy:return"";case Ra.Declaration:return
` ||Tf===" \r "||Tf===" "}function Fd(Tf){return Tf==='"'||Tf==="'"}function Ud(Tf){return Tf===">"||Pd(Tf)}function Gd(Tf,bf){return Tf.test(bf)}function Qd(Tf,bf){return!Gd(Tf,bf)}var Vd=0;qa.STATE={BEGIN:Vd++,BEGIN_WHITESPACE:Vd++,TEXT:Vd++,TEXT_ENTITY:Vd++,OPEN_WAKA:Vd++,SGML_DECL:Vd++,SGML_DECL_QUOTED:Vd++,DOCTYPE:Vd++,DOCTYPE_QUOTED:Vd++,DOCTYPE_DTD:Vd++,DOCTYPE_DTD_QUOTED:Vd++,COMMENT_STARTING:Vd++,COMMENT:Vd++,COMMENT_ENDING:Vd++,COMMENT_ENDED:Vd++,CDATA:Vd++,CDATA_ENDING:Vd++,CDATA_ENDING_2:Vd++,PROC_INST:Vd++,PROC_INST_BODY:Vd++,PROC_INST_ENDING:Vd++,OPEN_TAG:Vd++,OPEN_TAG_SLASH:Vd++,ATTRIB:Vd++,ATTRIB_NAME:Vd++,ATTRIB_NAME_SAW_WHITE:Vd++,ATTRIB_VALUE:Vd++,ATTRIB_VALUE_QUOTED:Vd++,ATTRIB_VALUE_CLOSED:Vd++,ATTRIB_VALUE_UNQUOTED:Vd++,ATTRIB_VALUE_ENTITY_Q:Vd++,ATTRIB_VALUE_ENTITY_U:Vd++,CLOSE_TAG:Vd++,CLOSE_TAG_SAW_WHITE:Vd++,SCRIPT:Vd++,SCRIPT_ENDING:Vd++},qa.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},qa.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(qa.ENTITIES).forEach(function(Tf){var bf=qa.ENTITIES[Tf],Bf=typeof bf=="number"?String.fromCharCode(bf):bf;qa.ENTITIES[Tf]=Bf});for(var zd in qa.STATE)qa.STATE[qa.STATE[zd]]=zd;Vd=qa.STATE;function Xd(Tf,bf,Bf){Tf[bf]&&Tf[bf](Bf)}function df(Tf,bf,Bf){Tf.textNode&&mf(Tf),Xd(Tf,bf,Bf)}function mf(Tf){Tf.textNode=_f(Tf.opt,Tf.textNode),Tf.textNode&&Xd(Tf,"ontext",Tf.textNode),Tf.textNode=""}function _f(Tf,bf){return Tf.trim&&(bf=bf.trim()),Tf.normalize&&(bf=bf.replace(/ \s +/g," ")),bf}function hf(Tf,bf){return mf(Tf),Tf.trackPosition&&(bf+= `
Line : ` +Tf.line+ `
Column : ` +Tf.column+ `
Char : ` +Tf.c),bf=new Error(bf),Tf.error=bf,Xd(Tf,"onerror",bf),Tf}function gf(Tf){return Tf.sawRoot&&!Tf.closedRoot&&yf(Tf,"Unclosed root tag"),Tf.state!==Vd.BEGIN&&Tf.state!==Vd.BEGIN_WHITESPACE&&Tf.state!==Vd.TEXT&&hf(Tf,"Unexpected end"),mf(Tf),Tf.c="",Tf.closed=!0,Xd(Tf,"onend"),td.call(Tf,Tf.strict,Tf.opt),Tf}function yf(Tf,bf){if(typeof Tf!="object"||!(Tf instanceof td))throw new Error("bad call to strictFail");Tf.strict&&hf(Tf,bf)}function Cf(Tf){Tf.strict||(Tf.tagName=Tf.tagName[Tf.looseCase]());var bf=Tf.tags[Tf.tags.length-1]||Tf,Bf=Tf.tag={name:Tf.tagName,attributes:{}};Tf.opt.xmlns&&(Bf.ns=bf.ns),Tf.attribList.length=0,df(Tf,"onopentagstart",Bf)}function Ff(Tf,bf){var Bf=Tf.indexOf(":"),Wf=Bf<0?["",Tf]:Tf.split(":"),lh=Wf[0],Xf=Wf[1];return bf&&Tf==="xmlns"&&(lh="xmlns",Xf=""),{prefix:lh,local:Xf}}function Qf(Tf){if(Tf.strict||(Tf.attribName=Tf.attribName[Tf.looseCase]()),Tf.attribList.indexOf(Tf.attribName)!==-1||Tf.tag.attributes.hasOwnProperty(Tf.attribName)){Tf.attribName=Tf.attribValue="";return}if(Tf.opt.xmlns){var bf=Ff(Tf.attribName,!0),Bf=bf.prefix,Wf=bf.local;if(Bf==="xmlns")if(Wf==="xml"&&Tf.attribValue!==Td)yf(Tf,"xml: prefix must be bound to "+Td+ `
Actual : ` +Tf.attribValue);else if(Wf==="xmlns"&&Tf.attribValue!==Nd)yf(Tf,"xmlns: prefix must be bound to "+Nd+ `
Actual : ` +Tf.attribValue);else{var lh=Tf.tag,Xf=Tf.tags[Tf.tags.length-1]||Tf;lh.ns===Xf.ns&&(lh.ns=Object.create(Xf.ns)),lh.ns[Wf]=Tf.attribValue}Tf.attribList.push([Tf.attribName,Tf.attribValue])}else Tf.tag.attributes[Tf.attribName]=Tf.attribValue,df(Tf,"onattribute",{name:Tf.attribName,value:Tf.attribValue});Tf.attribName=Tf.attribValue=""}function Uf(Tf,bf){if(Tf.opt.xmlns){var Bf=Tf.tag,Wf=Ff(Tf.tagName);Bf.prefix=Wf.prefix,Bf.local=Wf.local,Bf.uri=Bf.ns[Wf.prefix]||"",Bf.prefix&&!Bf.uri&&(yf(Tf,"Unbound namespace prefix: "+JSON.stringify(Tf.tagName)),Bf.uri=Wf.prefix);var lh=Tf.tags[Tf.tags.length-1]||Tf;Bf.ns&&lh.ns!==Bf.ns&&Object.keys(Bf.ns).forEach(function(sh){df(Tf,"onopennamespace",{prefix:sh,uri:Bf.ns[sh]})});for(var Xf=0, $ f=Tf.attribList.length;Xf< $ f;Xf++){var th=Tf.attribList[Xf],hh=th[0],Yf=th[1],xf=Ff(hh,!0),Rf=xf.prefix,qf=xf.local,ch=Rf===""?"":Bf.ns[Rf]||"",_h={name:hh,value:Yf,prefix:Rf,local:qf,uri:ch};Rf&&Rf!=="xmlns"&&!ch&&(yf(Tf,"Unbound namespace prefix: "+JSON.stringify(Rf)),_h.uri=Rf),Tf.tag.attributes[hh]=_h,df(Tf,"onattribute",_h)}Tf.attribList.length=0}Tf.tag.isSelfClosing=!!bf,Tf.sawRoot=!0,Tf.tags.push(Tf.tag),df(Tf,"onopentag",Tf.tag),bf||(!Tf.noscript&&Tf.tagName.toLowerCase()==="script"?Tf.state=Vd.SCRIPT:Tf.state=Vd.TEXT,Tf.tag=null,Tf.tagName=""),Tf.attribName=Tf.attribValue="",Tf.attribList.length=0}function Lf(Tf){if(!Tf.tagName){yf(Tf,"Weird empty close tag."),Tf.textNode+="</>",Tf.state=Vd.TEXT;return}if(Tf.script){if(Tf.tagName!=="script"){Tf.script+="</"+Tf.tagName+">",Tf.tagName="",Tf.state=Vd.SCRIPT;return}df(Tf,"onscript",Tf.script),Tf.script=""}var bf=Tf.tags.length,Bf=Tf.tagName;Tf.strict||(Bf=Bf[Tf.looseCase]());for(var Wf=Bf;bf--;){var lh=Tf.tags[bf];if(lh.name!==Wf)yf(Tf,"Unexpected close tag");else break}if(bf<0){yf(Tf,"Unmatched closing tag: "+Tf.tagName),Tf.textNode+="</"+Tf.tagName+">",Tf.state=Vd.TEXT;return}Tf.tagName=Bf;for(var Xf=Tf.tags.length;Xf-- >bf;){var $ f=Tf.tag=Tf.tags.pop();Tf.tagName=Tf.tag.name,df(Tf,"onclosetag",Tf.tagName);var th={};for(var hh in $ f.ns)th[hh]= $ f.ns[hh];var Yf=Tf.tags[Tf.tags.length-1]||Tf;Tf.opt.xmlns&& $ f.ns!==Yf.ns&&Object.keys( $ f.ns).forEach(function(xf){var Rf= $ f.ns[xf];df(Tf,"onclosenamespace",{prefix:xf,uri:Rf})})}bf===0&&(Tf.closedRoot=!0),Tf.tagName=Tf.attribValue=Tf.attribName="",Tf.attribList.length=0,Tf.state=Vd.TEXT}function wf(Tf){var bf=Tf.entity,Bf=bf.toLowerCase(),Wf,lh="";return Tf.ENTITIES[bf]?Tf.ENTITIES[bf]:Tf.ENTITIES[Bf]?Tf.ENTITIES[Bf]:(bf=Bf,bf.charAt(0)==="#"&&(bf.charAt(1)==="x"?(bf=bf.slice(2),Wf=parseInt(bf,16),lh=Wf.toString(16)):(bf=bf.slice(1),Wf=parseInt(bf,10),lh=Wf.toString(10))),bf=bf.replace(/^0+/,""),isNaN(Wf)||lh.toLowerCase()!==bf?(yf(Tf,"Invalid character entity"),"&"+Tf.entity+";"):String.fromCodePoint(Wf))}function Nf(Tf,bf){bf==="<"?(Tf.state=Vd.OPEN_WAKA,Tf.startTagPosition=Tf.position):Pd(bf)||(yf(Tf,"Non-whitespace before first tag."),Tf.textNode=bf,Tf.state=Vd.TEXT)}function Zf(Tf,bf){var Bf="";return bf<Tf.length&&(Bf=Tf.charAt(bf)),Bf}function Kf(Tf){var bf=this;if(this.error)throw this.error;if(bf.closed)return hf(bf,"Cannot write after close. Assign an onready handler.");if(Tf===null)return gf(bf);typeof Tf=="object"&&(Tf=Tf.toString());for(var Bf=0,Wf="";Wf=Zf(Tf,Bf++),bf.c=Wf,!!Wf;)switch(bf.trackPosition&&(bf.position++,Wf=== `
` ?(bf.line++,bf.column=0):bf.column++),bf.state){case Vd.BEGIN:if(bf.state=Vd.BEGIN_WHITESPACE,Wf===" \u FEFF")continue;Nf(bf,Wf);continue;case Vd.BEGIN_WHITESPACE:Nf(bf,Wf);continue;case Vd.TEXT:if(bf.sawRoot&&!bf.closedRoot){for(var lh=Bf-1;Wf&&Wf!=="<"&&Wf!=="&";)Wf=Zf(Tf,Bf++),Wf&&bf.trackPosition&&(bf.position++,Wf=== `
2024-09-16 17:10:21 +08:00
` ?(bf.line++,bf.column=0):bf.column++);bf.textNode+=Tf.substring(lh,Bf-1)}Wf==="<"&&!(bf.sawRoot&&bf.closedRoot&&!bf.strict)?(bf.state=Vd.OPEN_WAKA,bf.startTagPosition=bf.position):(!Pd(Wf)&&(!bf.sawRoot||bf.closedRoot)&&yf(bf,"Text data outside of root node."),Wf==="&"?bf.state=Vd.TEXT_ENTITY:bf.textNode+=Wf);continue;case Vd.SCRIPT:Wf==="<"?bf.state=Vd.SCRIPT_ENDING:bf.script+=Wf;continue;case Vd.SCRIPT_ENDING:Wf==="/"?bf.state=Vd.CLOSE_TAG:(bf.script+="<"+Wf,bf.state=Vd.SCRIPT);continue;case Vd.OPEN_WAKA:if(Wf==="!")bf.state=Vd.SGML_DECL,bf.sgmlDecl="";else if(!Pd(Wf))if(Gd(Bd,Wf))bf.state=Vd.OPEN_TAG,bf.tagName=Wf;else if(Wf==="/")bf.state=Vd.CLOSE_TAG,bf.tagName="";else if(Wf==="?")bf.state=Vd.PROC_INST,bf.procInstName=bf.procInstBody="";else{if(yf(bf,"Unencoded <"),bf.startTagPosition+1<bf.position){var Xf=bf.position-bf.startTagPosition;Wf=new Array(Xf).join(" ")+Wf}bf.textNode+="<"+Wf,bf.state=Vd.TEXT}continue;case Vd.SGML_DECL:if(bf.sgmlDecl+Wf==="--"){bf.state=Vd.COMMENT,bf.comment="",bf.sgmlDecl="";continue}bf.doctype&&bf.doctype!==!0&&bf.sgmlDecl?(bf.state=Vd.DOCTYPE_DTD,bf.doctype+="<!"+bf.sgmlDecl+Wf,bf.sgmlDecl=""):(bf.sgmlDecl+Wf).toUpperCase()===Ed?(df(bf,"onopencdata"),bf.state=Vd.CDATA,bf.sgmlDecl="",bf.cdata=""):(bf.sgmlDecl+Wf).toUpperCase()===Ad?(bf.state=Vd.DOCTYPE,(bf.doctype||bf.sawRoot)&&yf(bf,"Inappropriately located doctype declaration"),bf.doctype="",bf.sgmlDecl=""):Wf===">"?(df(bf,"onsgmldeclaration",bf.sgmlDecl),bf.sgmlDecl="",bf.state=Vd.TEXT):(Fd(Wf)&&(bf.state=Vd.SGML_DECL_QUOTED),bf.sgmlDecl+=Wf);continue;case Vd.SGML_DECL_QUOTED:Wf===bf.q&&(bf.state=Vd.SGML_DECL,bf.q=""),bf.sgmlDecl+=Wf;continue;case Vd.DOCTYPE:Wf===">"?(bf.state=Vd.TEXT,df(bf,"ondoctype",bf.doctype),bf.doctype=!0):(bf.doctype+=Wf,Wf==="["?bf.state=Vd.DOCTYPE_DTD:Fd(Wf)&&(bf.state=Vd.DOCTYPE_QUOTED,bf.q=Wf));continue;case Vd.DOCTYPE_QUOTED:bf.doctype+=Wf,Wf===bf.q&&(bf.q="",bf.state=Vd.DOCTYPE);continue;case Vd.DOCTYPE_DTD:Wf==="]"?(bf.doctype+=Wf,bf.state=Vd.DOCTYPE):Wf==="<"?(bf.state=Vd.OPEN_WAKA,bf.startTagPosition=bf.position):Fd(Wf)?(bf.doctype+=Wf,bf.state=Vd.DOCTYPE_DTD_QUOTED,bf.q=Wf):bf.doctype+=Wf;continue;case Vd.DOCTYPE_DTD_QUOTED:bf.doctype+=Wf,Wf===bf.q&&(bf.state=Vd.DOCTYPE_DTD,bf.q="");continue;case Vd.COMMENT:Wf==="-"?bf.state=Vd.COMMENT_ENDING:bf.comment+=Wf;continue;case Vd.COMMENT_ENDING:Wf==="-"?(bf.state=Vd.COMMENT_ENDED,bf.comment=_f(bf.opt,bf.comment),bf.comment&&df(bf,"oncomment",bf.comment),bf.comment=""):(bf.comment+="-"+Wf,bf.state=Vd.COMMENT);continue;case Vd.COMMENT_ENDED:Wf!==">"?(yf(bf,"Malformed comment"),bf.comment+="--"+Wf,bf.state=Vd.COMMENT):bf.doctype&&bf.doctype!==!0?bf.state=Vd.DOCTYPE_DTD:bf.state=Vd.TEXT;continue;case Vd.CDATA:Wf==="]"?bf.state=Vd.CDATA_ENDING:bf.cdata+=Wf;continue;case Vd.CDATA_ENDING:Wf==="]"?bf.state=Vd.CDATA_ENDING_2:(bf.cdata+="]"+Wf,bf.state=Vd.CDATA);continue;case Vd.CDATA_ENDING_2:Wf===">"?(bf.cdata&&df(bf,"oncdata",bf.cdata),df(bf,"onclosecdata"),bf.cdata="",bf.state=Vd.TEXT):Wf==="]"?bf.cdata+="]":(bf.cdata+="]]"+Wf,bf.state=Vd.CDATA);continue;case Vd.PROC_INST:Wf==="?"?bf.state=Vd.PROC_INST_ENDING:Pd(Wf)?bf.state=Vd.PROC_INST_BODY:bf.procInstName+=Wf;continue;case Vd.PROC_INST_BODY:if(!bf.procInstBody&&Pd(Wf))continue;Wf==="?"?bf.state=Vd.PROC_INST_ENDING:bf.procInstBody+=Wf;continue;case Vd.PROC_INST_ENDING:Wf===">"?(df(bf,"onprocessinginstruction",{name:bf.procInstName,body:bf.procInstBody}),bf.procInstName=bf.procInstBody="",bf.state=Vd.TEXT):(bf.procInstBody+="?"+Wf,bf.state=Vd.PROC_INST_BODY);continue;case Vd.OPEN_TAG:Gd(kd,Wf)?bf.tagName+=Wf:(Cf(bf),Wf===">"?Uf(bf):Wf==="/"?bf.state=Vd.OPEN_TAG_SLASH:(Pd(Wf)||yf(bf,"Invalid character in tag name"),bf.state=Vd.ATTRIB));continue;case Vd.OPEN_TAG_SLASH:Wf===">"?(Uf(bf,!0),Lf(bf)):(yf(bf,"Forward-slash in opening tag not followed by >"),bf.state=Vd.ATTRIB);continue;case Vd.ATTRIB:if(Pd(Wf))continue;Wf===">"?Uf(bf):Wf==="/"?bf.state=Vd.OPEN_TAG_SLASH:Gd(Bd,Wf)?(bf.attribName=Wf,bf.attribValue="",bf.state=Vd.ATTRIB_NAME):yf(bf,"Invalid attribute name");continue;case Vd.ATTRIB_NAME:Wf==="="?bf.state
2024-09-16 00:03:18 +08:00
` &&Ra[sd]!==" \r ";sd++)cd+=Ra[sd];if(cd=cd.trim(),cd[cd.length-1]==="/"&&(cd=cd.substring(0,cd.length-1),sd--),!validateTagName(cd)){let Ed;return cd.trim().length===0?Ed="Invalid space after '<'.":Ed="Tag '"+cd+"' is an invalid name.",getErrorObject("InvalidTag",Ed,getLineNumberForPosition(Ra,sd))}const ud=readAttributeStr(Ra,sd);if(ud===!1)return getErrorObject("InvalidAttr","Attributes for '"+cd+"' have open quote.",getLineNumberForPosition(Ra,sd));let _d=ud.value;if(sd=ud.index,_d[_d.length-1]==="/"){const Ed=sd-_d.length;_d=_d.substring(0,_d.length-1);const Ad=validateAttributeString(_d,qa);if(Ad===!0)td=!0;else return getErrorObject(Ad.err.code,Ad.err.msg,getLineNumberForPosition(Ra,Ed+Ad.err.line))}else if(ld)if(ud.tagClosed){if(_d.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+cd+"' can't have attributes or invalid starting.",getLineNumberForPosition(Ra,od));if(ed.length===0)return getErrorObject("InvalidTag","Closing tag '"+cd+"' has not been opened.",getLineNumberForPosition(Ra,od));{const Ed=ed.pop();if(cd!==Ed.tagName){let Ad=getLineNumberForPosition(Ra,Ed.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+Ed.tagName+"' (opened in line "+Ad.line+", col "+Ad.col+") instead of closing tag '"+cd+"'.",getLineNumberForPosition(Ra,od))}ed.length==0&&(rd=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+cd+"' doesn't have proper closing.",getLineNumberForPosition(Ra,sd));else{const Ed=validateAttributeString(_d,qa);if(Ed!==!0)return getErrorObject(Ed.err.code,Ed.err.msg,getLineNumberForPosition(Ra,sd-_d.length+Ed.err.line));if(rd===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(Ra,sd));qa.unpairedTags.indexOf(cd)!==-1||ed.push({tagName:cd,tagStartPos:od}),td=!0}for(sd++;sd<Ra.length;sd++)if(Ra[sd]==="<")if(Ra[sd+1]==="!"){sd++,sd=readCommentAndCDATA(Ra,sd);continue}else if(Ra[sd+1]==="?"){if(sd=readPI(Ra,++sd),sd.err)return sd}else break;else if(Ra[sd]==="&"){const Ed=validateAmpersand(Ra,sd);if(Ed==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(Ra,sd));sd=Ed}else if(rd===!0&&!isWhiteSpace(Ra[sd]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(Ra,sd));Ra[sd]==="<"&&sd--}}else{if(isWhiteSpace(Ra[sd]))continue;return getErrorObject("InvalidChar","char '"+Ra[sd]+"' is not expected.",getLineNumberForPosition(Ra,sd))}if(td){if(ed.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+ed[0].tagName+"'.",getLineNumberForPosition(Ra,ed[0].tagStartPos));if(ed.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(ed.map(sd=>sd.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return getErrorObject("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace(Ra){return Ra===" "||Ra===" "||Ra=== `
` ||Ra===" \r "}function readPI(Ra,qa){const ed=qa;for(;qa<Ra.length;qa++)if(Ra[qa]=="?"||Ra[qa]==" "){const td=Ra.substr(ed,qa-ed);if(qa>5&&td==="xml")return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(Ra,qa));if(Ra[qa]=="?"&&Ra[qa+1]==">"){qa++;break}else continue}return qa}function readCommentAndCDATA(Ra,qa){if(Ra.length>qa+5&&Ra[qa+1]==="-"&&Ra[qa+2]==="-"){for(qa+=3;qa<Ra.length;qa++)if(Ra[qa]==="-"&&Ra[qa+1]==="-"&&Ra[qa+2]===">"){qa+=2;break}}else if(Ra.length>qa+8&&Ra[qa+1]==="D"&&Ra[qa+2]==="O"&&Ra[qa+3]==="C"&&Ra[qa+4]==="T"&&Ra[qa+5]==="Y"&&Ra[qa+6]==="P"&&Ra[qa+7]==="E"){let ed=1;for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="<")ed++;else if(Ra[qa]===">"&&(ed--,ed===0))break}else if(Ra.length>qa+9&&Ra[qa+1]==="["&&Ra[qa+2]==="C"&&Ra[qa+3]==="D"&&Ra[qa+4]==="A"&&Ra[qa+5]==="T"&&Ra[qa+6]==="A"&&Ra[qa+7]==="["){for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="]"&&Ra[qa+1]==="]"&&Ra[qa+2]===">"){qa+=2;break}}return qa}const doubleQuote='"',singleQuote="'";function readAttributeStr(Ra,qa){let ed="",td="",rd=!1;for(;qa<Ra.length;qa++){if(Ra[qa]===doubleQuote||Ra[qa]===singleQuote)td===""?td=Ra[qa]:td!==Ra[qa]||(td="");else if(Ra[qa]===">"&&td===""){rd=!0;break}ed+=Ra[qa]}return td!==""?!1:{value:ed,index:qa,tagClosed:rd}}const validAttrStrRegxp=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(Ra,qa){const ed=util$3.getAllMatches(Ra,validAttrStrRegxp),td={};for(let rd=0;rd<ed.length;rd++){if(ed[rd][1].length===0)return getErrorObject("InvalidAttr","Attribute ' "+ed[rd][2]+" ' has no space in starting.",getPositionFromMatch(ed[rd]));if(ed[rd][3]!==void 0&&ed[rd][4]===void 0)return getErrorObject("InvalidAttr","Attribute ' "+ed[rd][2]+" ' is without value.",getPositionFromMatch(ed[rd]));if(ed[rd][3]===void 0&&!qa.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute ' "+ed[rd][2]+" ' is not allowed.",getPositionFromMatch(ed[rd]));const sd=ed[rd][2];if(!validateAttrName(sd))return getErrorObject("InvalidAttr","Attribute ' "+sd+" ' is an invalid name.",getPositionFromMatch(ed[rd]));if(!td.hasOwnProperty(sd))td[sd]=1;else return getErrorObject("InvalidAttr","Attribute ' "+sd+" ' is repeated . ",getPositionFromMatch(ed[rd]))}return!0}function validateNumberAmpersand(Ra,qa){let ed=/\d/;for(Ra[qa]===" x "&&(qa++,ed=/[\da-fA-F]/);qa<Ra.length;qa++){if(Ra[qa]===" ; ")return qa;if(!Ra[qa].match(ed))break}return-1}function validateAmpersand(Ra,qa){if(qa++,Ra[qa]===" ; ")return-1;if(Ra[qa]===" # ")return qa++,validateNumberAmpersand(Ra,qa);let ed=0;for(;qa<Ra.length;qa++,ed++)if(!(Ra[qa].match(/\w/)&&ed<20)){if(Ra[qa]===" ; ")break;return-1}return qa}function getErrorObject(Ra,qa,ed){return{err:{code:Ra,msg:qa,line:ed.line||ed,col:ed.col}}}function validateAttrName(Ra){return util$3.isName(Ra)}function validateTagName(Ra){return util$3.isName(Ra)}function getLineNumberForPosition(Ra,qa){const ed=Ra.substring(0,qa).split(/\r?\n/);return{line:ed.length,col:ed[ed.length-1].length+1}}function getPositionFromMatch(Ra){return Ra.startIndex+Ra[1].length}var OptionsBuilder={};const defaultOptions$1={preserveOrder:!1,attributeNamePrefix:" @ _ ",attributesGroupName:!1,textNodeName:" # text ",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Ra,qa,ed){return Ra}},buildOptions$1=function(Ra){return Object.assign({},defaultOptions$1,Ra)};OptionsBuilder.buildOptions=buildOptions$1;OptionsBuilder.defaultOptions=defaultOptions$1;class XmlNode{constructor(qa){this.tagname=qa,this.child=[],this[" : @ "]={}}add(qa,ed){qa===" _ _proto _ _ "&&(qa=" # _ _proto _ _ " ) , this . child . push ( { [ qa ] : ed } ) } addChild ( qa )
` );const qa=new xmlNode("!xml");let ed=qa,td="",rd="";for(let sd=0;sd<Ra.length;sd++)if(Ra[sd]==="<")if(Ra[sd+1]==="/"){const ld=findClosingIndex(Ra,">",sd,"Closing Tag is not closed.");let cd=Ra.substring(sd+2,ld).trim();if(this.options.removeNSPrefix){const Ed=cd.indexOf(":");Ed!==-1&&(cd=cd.substr(Ed+1))}this.options.transformTagName&&(cd=this.options.transformTagName(cd)),ed&&(td=this.saveTextToParentTag(td,ed,rd));const ud=rd.substring(rd.lastIndexOf(".")+1);if(cd&&this.options.unpairedTags.indexOf(cd)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${cd}>`);let _d=0;ud&&this.options.unpairedTags.indexOf(ud)!==-1?(_d=rd.lastIndexOf(".",rd.lastIndexOf(".")-1),this.tagsNodeStack.pop()):_d=rd.lastIndexOf("."),rd=rd.substring(0,_d),ed=this.tagsNodeStack.pop(),td="",sd=ld}else if(Ra[sd+1]==="?"){let ld=readTagExp(Ra,sd,!1,"?>");if(!ld)throw new Error("Pi Tag is not closed.");if(td=this.saveTextToParentTag(td,ed,rd),!(this.options.ignoreDeclaration&&ld.tagName==="?xml"||this.options.ignorePiTags)){const cd=new xmlNode(ld.tagName);cd.add(this.options.textNodeName,""),ld.tagName!==ld.tagExp&&ld.attrExpPresent&&(cd[":@"]=this.buildAttributesMap(ld.tagExp,rd,ld.tagName)),this.addChild(ed,cd,rd)}sd=ld.closeIndex+1}else if(Ra.substr(sd+1,3)==="!--"){const ld=findClosingIndex(Ra,"-->",sd+4,"Comment is not closed.");if(this.options.commentPropName){const cd=Ra.substring(sd+4,ld-2);td=this.saveTextToParentTag(td,ed,rd),ed.add(this.options.commentPropName,[{[this.options.textNodeName]:cd}])}sd=ld}else if(Ra.substr(sd+1,2)==="!D"){const ld=readDocType(Ra,sd);this.docTypeEntities=ld.entities,sd=ld.i}else if(Ra.substr(sd+1,2)==="!["){const ld=findClosingIndex(Ra,"]]>",sd,"CDATA is not closed.")-2,cd=Ra.substring(sd+9,ld);td=this.saveTextToParentTag(td,ed,rd);let ud=this.parseTextData(cd,ed.tagname,rd,!0,!1,!0,!0);ud==null&&(ud=""),this.options.cdataPropName?ed.add(this.options.cdataPropName,[{[this.options.textNodeName]:cd}]):ed.add(this.options.textNodeName,ud),sd=ld+2}else{let ld=readTagExp(Ra,sd,this.options.removeNSPrefix),cd=ld.tagName;const ud=ld.rawTagName;let _d=ld.tagExp,Ed=ld.attrExpPresent,Ad=ld.closeIndex;this.options.transformTagName&&(cd=this.options.transformTagName(cd)),ed&&td&&ed.tagname!=="!xml"&&(td=this.saveTextToParentTag(td,ed,rd,!1));const Td=ed;if(Td&&this.options.unpairedTags.indexOf(Td.tagname)!==-1&&(ed=this.tagsNodeStack.pop(),rd=rd.substring(0,rd.lastIndexOf("."))),cd!==qa.tagname&&(rd+=rd?"."+cd:cd),this.isItStopNode(this.options.stopNodes,rd,cd)){let Nd="";if(_d.length>0&&_d.lastIndexOf("/ ")===_d.length-1)cd[cd.length-1]===" / "?(cd=cd.substr(0,cd.length-1),rd=rd.substr(0,rd.length-1),_d=cd):_d=_d.substr(0,_d.length-1),sd=ld.closeIndex;else if(this.options.unpairedTags.indexOf(cd)!==-1)sd=ld.closeIndex;else{const Bd=this.readStopNodeData(Ra,ud,Ad+1);if(!Bd)throw new Error(`Unexpected end of ${ud}`);sd=Bd.i,Nd=Bd.tagContent}const Rd=new xmlNode(cd);cd!==_d&&Ed&&(Rd[" : @ "]=this.buildAttributesMap(_d,rd,cd)),Nd&&(Nd=this.parseTextData(Nd,cd,rd,!0,Ed,!0,!0)),rd=rd.substr(0,rd.lastIndexOf(" . ")),Rd.add(this.options.textNodeName,Nd),this.addChild(ed,Rd,rd)}else{if(_d.length>0&&_d.lastIndexOf(" / ")===_d.length-1){cd[cd.length-1]===" / "?(cd=cd.substr(0,cd.length-1),rd=rd.substr(0,rd.length-1),_d=cd):_d=_d.substr(0,_d.length-1),this.options.transformTagName&&(cd=this.options.transformTagName(cd));const Nd=new xmlNode(cd);cd!==_d&&Ed&&(Nd[" : @ "]=this.buildAttributesMap(_d,rd,cd)),this.addChild(ed,Nd,rd),rd=rd.substr(0,rd.lastIndexOf(" . "))}else{const Nd=new xmlNode(cd);this.tagsNodeStack.push(ed),cd!==_d&&Ed&&(Nd[" : @ "]=this.buildAttributesMap(_d,rd,cd)),this.addChild(ed,Nd,rd),ed=Nd}td=" ",sd=Ad}}else td+=Ra[sd];return qa.child};function addChild(Ra,qa,ed){const td=this.options.updateTag(qa.tagname,ed,qa[" : @ "]);td===!1||(typeof td==" string " && ( qa . tagname = td ) , Ra . addChild ( qa ) ) } const replaceEntitiesValue$1 = function ( Ra ) { if ( this . options . processEntities ) { for ( let qa in this . docTypeEntities ) { const ed = this . docTypeEntities [ qa ] ; Ra = Ra . replace ( ed . regx , ed . val ) } for ( let qa in this . lastEntities ) { const ed = this . lastEntit
` ;function toXml(Ra,qa){let ed="";return qa.format&&qa.indentBy.length>0&&(ed=EOL),arrToStr(Ra,qa,"",ed)}function arrToStr(Ra,qa,ed,td){let rd="",sd=!1;for(let od=0;od<Ra.length;od++){const ld=Ra[od],cd=propName(ld);if(cd===void 0)continue;let ud="";if(ed.length===0?ud=cd:ud= ` $ { ed } . $ { cd } ` ,cd===qa.textNodeName){let Nd=ld[cd];isStopNode(ud,qa)||(Nd=qa.tagValueProcessor(cd,Nd),Nd=replaceEntitiesValue(Nd,qa)),sd&&(rd+=td),rd+=Nd,sd=!1;continue}else if(cd===qa.cdataPropName){sd&&(rd+=td),rd+= ` < ! [ CDATA [ $ { ld [ cd ] [ 0 ] [ qa . textNodeName ] } ] ] > ` ,sd=!1;continue}else if(cd===qa.commentPropName){rd+=td+ ` <!-- $ { ld [ cd ] [ 0 ] [ qa . textNodeName ] } -- > ` ,sd=!0;continue}else if(cd[0]==="?"){const Nd=attr_to_str(ld[":@"],qa),Rd=cd==="?xml"?"":td;let Bd=ld[cd][0][qa.textNodeName];Bd=Bd.length!==0?" "+Bd:"",rd+=Rd+ ` < $ { cd } $ { Bd } $ { Nd } ? > ` ,sd=!0;continue}let _d=td;_d!==""&&(_d+=qa.indentBy);const Ed=attr_to_str(ld[":@"],qa),Ad=td+ ` < $ { cd } $ { Ed } ` ,Td=arrToStr(ld[cd],qa,ud,_d);qa.unpairedTags.indexOf(cd)!==-1?qa.suppressUnpairedNode?rd+=Ad+">":rd+=Ad+"/>":(!Td||Td.length===0)&&qa.suppressEmptyNode?rd+=Ad+"/>":Td&&Td.endsWith(">")?rd+=Ad+ ` > $ { Td } $ { td } < /${cd}>`:(rd+=Ad+">",Td&&td!==""&&(Td.includes("/ > ")||Td.includes(" < /"))?rd+=td+qa.indentBy+Td+td:rd+=Td,rd+=`</ $ { cd } > ` ),sd=!0}return rd}function propName(Ra){const qa=Object.keys(Ra);for(let ed=0;ed<qa.length;ed++){const td=qa[ed];if(Ra.hasOwnProperty(td)&&td!==":@")return td}}function attr_to_str(Ra,qa){let ed="";if(Ra&&!qa.ignoreAttributes)for(let td in Ra){if(!Ra.hasOwnProperty(td))continue;let rd=qa.attributeValueProcessor(td,Ra[td]);rd=replaceEntitiesValue(rd,qa),rd===!0&&qa.suppressBooleanAttributes?ed+= ` $ { td . substr ( qa . attributeNamePrefix . length ) } ` :ed+= ` $ { td . substr ( qa . attributeNamePrefix . length ) } = "${rd}" ` }return ed}function isStopNode(Ra,qa){Ra=Ra.substr(0,Ra.length-qa.textNodeName.length-1);let ed=Ra.substr(Ra.lastIndexOf(".")+1);for(let td in qa.stopNodes)if(qa.stopNodes[td]===Ra||qa.stopNodes[td]==="*."+ed)return!0;return!1}function replaceEntitiesValue(Ra,qa){if(Ra&&Ra.length>0&&qa.processEntities)for(let ed=0;ed<qa.entities.length;ed++){const td=qa.entities[ed];Ra=Ra.replace(td.regex,td.val)}return Ra}var orderedJs2Xml=toXml;const buildFromOrderedJs=orderedJs2Xml,getIgnoreAttributesFn=ignoreAttributes,defaultOptions={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(Ra){this.options=Object.assign({},defaultOptions,Ra),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar= ` >
2024-08-27 22:31:52 +08:00
` ,this.newLine= `
2024-09-16 00:03:18 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs(Ra,this.options):(Array.isArray(Ra)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ra={[this.options.arrayNodeName]:Ra}),this.j2x(Ra,0,[]).val)};Builder.prototype.j2x=function(Ra,qa,ed){let td="",rd="";const sd=ed.join(".");for(let od in Ra)if(Object.prototype.hasOwnProperty.call(Ra,od))if(typeof Ra[od]>"u")this.isAttribute(od)&&(rd+="");else if(Ra[od]===null)this.isAttribute(od)?rd+="":od[0]==="?"?rd+=this.indentate(qa)+"<"+od+"?"+this.tagEndChar:rd+=this.indentate(qa)+"<"+od+"/"+this.tagEndChar;else if(Ra[od]instanceof Date)rd+=this.buildTextValNode(Ra[od],od,"",qa);else if(typeof Ra[od]!="object"){const ld=this.isAttribute(od);if(ld&&!this.ignoreAttributesFn(ld,sd))td+=this.buildAttrPairStr(ld,""+Ra[od]);else if(!ld)if(od===this.options.textNodeName){let cd=this.options.tagValueProcessor(od,""+Ra[od]);rd+=this.replaceEntitiesValue(cd)}else rd+=this.buildTextValNode(Ra[od],od,"",qa)}else if(Array.isArray(Ra[od])){const ld=Ra[od].length;let cd="",ud="";for(let _d=0;_d<ld;_d++){const Ed=Ra[od][_d];if(!(typeof Ed>"u"))if(Ed===null)od[0]==="?"?rd+=this.indentate(qa)+"<"+od+"?"+this.tagEndChar:rd+=this.indentate(qa)+"<"+od+"/"+this.tagEndChar;else if(typeof Ed=="object")if(this.options.oneListGroup){const Ad=this.j2x(Ed,qa+1,ed.concat(od));cd+=Ad.val,this.options.attributesGroupName&&Ed.hasOwnProperty(this.options.attributesGroupName)&&(ud+=Ad.attrStr)}else cd+=this.processTextOrObjNode(Ed,od,qa,ed);else if(this.options.oneListGroup){let Ad=this.options.tagValueProcessor(od,Ed);Ad=this.replaceEntitiesValue(Ad),cd+=Ad}else cd+=this.buildTextValNode(Ed,od,"",qa)}this.options.oneListGroup&&(cd=this.buildObjectNode(cd,od,ud,qa)),rd+=cd}else if(this.options.attributesGroupName&&od===this.options.attributesGroupName){const ld=Object.keys(Ra[od]),cd=ld.length;for(let ud=0;ud<cd;ud++)td+=this.buildAttrPairStr(ld[ud],""+Ra[od][ld[ud]])}else rd+=this.processTextOrObjNode(Ra[od],od,qa,ed);return{attrStr:td,val:rd}};Builder.prototype.buildAttrPairStr=function(Ra,qa){return qa=this.options.attributeValueProcessor(Ra,""+qa),qa=this.replaceEntitiesValue(qa),this.options.suppressBooleanAttributes&&qa==="true"?" "+Ra:" "+Ra+'="'+qa+'"'};function processTextOrObjNode(Ra,qa,ed,td){const rd=this.j2x(Ra,ed+1,td.concat(qa));return Ra[this.options.textNodeName]!==void 0&&Object.keys(Ra).length===1?this.buildTextValNode(Ra[this.options.textNodeName],qa,rd.attrStr,ed):this.buildObjectNode(rd.val,qa,rd.attrStr,ed)}Builder.prototype.buildObjectNode=function(Ra,qa,ed,td){if(Ra==="")return qa[0]==="?"?this.indentate(td)+"<"+qa+ed+"?"+this.tagEndChar:this.indentate(td)+"<"+qa+ed+this.closeTag(qa)+this.tagEndChar;{let rd="</"+qa+this.tagEndChar,sd="";return qa[0]==="?"&&(sd="?",rd=""),(ed||ed==="")&&Ra.indexOf("<")===-1?this.indentate(td)+"<"+qa+ed+sd+">"+Ra+rd:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&sd.length===0?this.indentate(td)+ ` <!-- $ { Ra } -- > ` +this.newLine:this.indentate(td)+"<"+qa+ed+sd+this.tagEndChar+Ra+this.indentate(td)+rd}};Builder.prototype.closeTag=function(Ra){let qa="";return this.options.unpairedTags.indexOf(Ra)!==-1?this.options.suppressUnpairedNode||(qa="/"):this.options.suppressEmptyNode?qa="/":qa= ` > < /${Ra}`,qa};Builder.prototype.buildTextValNode=function(Ra,qa,ed,td){if(this.options.cdataPropName!==!1&&qa===this.options.cdataPropName)return this.indentate(td)+`<![CDATA[${Ra}]]>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(td)+`<!--${Ra}-->`+this.newLine;if(qa[0]==="?")return this.indentate(td)+"<"+qa+ed+"?"+this.tagEndChar;{let rd=this.options.tagValueProcessor(qa,Ra);return rd=this.replaceEntitiesValue(rd),rd===""?this.indentate(td)+"<"+qa+ed+this.closeTag(qa)+this.tagEndChar:this.indentate(td)+"<"+qa+ed+">"+rd+"</ " + qa + this . tagEndChar } } ; Builder . prototype . replaceEntitiesValue = function ( Ra ) { if ( Ra && Ra . length > 0 && this . options . processEntities ) for ( let qa = 0 ; qa < this . op
2024-08-27 22:31:52 +08:00
* mime - db
* Copyright ( c ) 2014 Jonathan Ong
* Copyright ( c ) 2015 - 2022 Douglas Christopher Wilson
* MIT Licensed
* /var mimeDb=require$$0;/ * !
* mime - types
* Copyright ( c ) 2014 Jonathan Ong
* Copyright ( c ) 2015 Douglas Christopher Wilson
* MIT Licensed
2024-09-16 17:10:21 +08:00
* /(function(Ra){var qa=mimeDb,ed=pathBrowserify.extname,td=/ ^ \ s * ( [ ^ ; \ s ] * ) ( ? : ; | \ s | $ ) / , rd = /^text\//i ; Ra . charset = sd , Ra . charsets = { lookup : sd } , Ra . contentType = od , Ra . extension = ld , Ra . extensions = Object . create ( null ) , Ra . lookup = cd , Ra . types = Object . create ( null ) , ud ( Ra . extensions , Ra . types ) ; function sd ( _d ) { if ( ! _d || typeof _d != "string" ) return ! 1 ; var Ed = td . exec ( _d ) , Ad = Ed && qa [ Ed [ 1 ] . toLowerCase ( ) ] ; return Ad && Ad . charset ? Ad . charset : Ed && rd . test ( Ed [ 1 ] ) ? "UTF-8" : ! 1 } function od ( _d ) { if ( ! _d || typeof _d != "string" ) return ! 1 ; var Ed = _d . indexOf ( "/" ) === - 1 ? Ra . lookup ( _d ) : _d ; if ( ! Ed ) return ! 1 ; if ( Ed . indexOf ( "charset" ) === - 1 ) { var Ad = Ra . charset ( Ed ) ; Ad && ( Ed += "; charset=" + Ad . toLowerCase ( ) ) } return Ed } function ld ( _d ) { if ( ! _d || typeof _d != "string" ) return ! 1 ; var Ed = td . exec ( _d ) , Ad = Ed && Ra . extensions [ Ed [ 1 ] . toLowerCase ( ) ] ; return ! Ad || ! Ad . length ? ! 1 : Ad [ 0 ] } function cd ( _d ) { if ( ! _d || typeof _d != "string" ) return ! 1 ; var Ed = ed ( "x." + _d ) . toLowerCase ( ) . substr ( 1 ) ; return Ed && Ra . types [ Ed ] || ! 1 } function ud ( _d , Ed ) { var Ad = [ "nginx" , "apache" , void 0 , "iana" ] ; Object . keys ( qa ) . forEach ( function ( Nd ) { var Rd = qa [ Nd ] , Bd = Rd . extensions ; if ( ! ( ! Bd || ! Bd . length ) ) { _d [ Nd ] = Bd ; for ( var kd = 0 ; kd < Bd . length ; kd ++ ) { var Od = Bd [ kd ] ; if ( Ed [ Od ] ) { var Md = Ad . indexOf ( qa [ Ed [ Od ] ] . source ) , Pd = Ad . indexOf ( Rd . source ) ; if ( Ed [ Od ] !== "application/octet-stream" && ( Md > Pd || Md === Pd && Ed [ Od ] . substr ( 0 , 12 ) === "application/" ) ) continue } Ed [ Od ] = Nd } } } ) } } ) ( mimeTypes$1 ) ; let ENCRYPTION _TYPES = function ( Ra ) { return Ra . SSEC = "SSE-C" , Ra . KMS = "KMS" , Ra } ( { } ) , RETENTION _MODES = function ( Ra ) { return Ra . GOVERNANCE = "GOVERNANCE" , Ra . COMPLIANCE = "COMPLIANCE" , Ra } ( { } ) , RETENTION _VALIDITY _UNITS = function ( Ra ) { return Ra . DAYS = "Days" , Ra . YEARS = "Years" , Ra } ( { } ) , LEGAL _HOLD _STATUS = function ( Ra ) { return Ra . ENABLED = "ON" , Ra . DISABLED = "OFF" , Ra } ( { } ) ; const MetaDataHeaderPrefix = "x-amz-meta-" ; function uriEscape ( Ra ) { return Ra . split ( "" ) . reduce ( ( qa , ed ) => { const td = Buffer$2 . from ( ed ) ; if ( td . length === 1 && ( "A" <= ed && ed <= "Z" || "a" <= ed && ed <= "z" || "0" <= ed && ed <= "9" || ed === "_" || ed === "." || ed === "~" || ed === "-" ) ) return qa = qa + ed , qa ; for ( const rd of td ) qa = qa + "%" + rd . toString ( 16 ) . toUpperCase ( ) ; return qa } , "" ) } function uriResourceEscape ( Ra ) { return uriEscape ( Ra ) . replace ( /%2F/g , "/" ) } function getScope ( Ra , qa , ed = "s3" ) { return ` ${ makeDateShort ( qa ) } / ${ Ra } / ${ ed } /aws4_request ` } function isAmazonEndpoint ( Ra ) { return Ra === "s3.amazonaws.com" || Ra === "s3.cn-north-1.amazonaws.com.cn" } function isVirtualHostStyle ( Ra , qa , ed , td ) { return qa === "https:" && ed . includes ( "." ) ? ! 1 : isAmazonEndpoint ( Ra ) || ! td } function isValidIP ( Ra ) { return ipaddr . isValid ( Ra ) } function isValidEndpoint ( Ra ) { return isValidDomain ( Ra ) || isValidIP ( Ra ) } function isValidDomain ( Ra ) { if ( ! isString$1 ( Ra ) || Ra . length === 0 || Ra . length > 255 || Ra [ 0 ] === "-" || Ra . slice ( - 1 ) === "-" || Ra [ 0 ] === "_" || Ra . slice ( - 1 ) === "_" || Ra [ 0 ] === "." ) return ! 1 ; const qa = "`~!@#$%^&*()+={}[]|\\\"';:><?/" ; for ( const ed of qa ) if ( Ra . includes ( ed ) ) return ! 1 ; return ! 0 } function probeContentType ( Ra ) { let qa = mimeTypes$1 . lookup ( Ra ) ; return qa || ( qa = "application/octet-stream" ) , qa } function isValidPort ( Ra ) { return isNumber$2 ( Ra ) ? 0 <= Ra && Ra <= 65535 : ! 1 } function isValidBucketName ( Ra ) { return ! isString$1 ( Ra ) || Ra . length < 3 || Ra . length > 63 || Ra . includes ( ".." ) || /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ . test ( Ra ) ? ! 1 : ! ! /^[a-z0-9][a-z0-9.-]+[a-z0-9]$/ . test ( Ra ) } function isValidObjectName ( Ra ) { return isValidPrefix ( Ra ) ? Ra . length !== 0 : ! 1 } function isValidPrefix ( Ra ) { return ! ( ! isString$1 ( Ra ) || Ra . length > 1024 ) } function isNumber$2 ( Ra ) { return typeof Ra == "number" } function isFunction$1 ( Ra ) { return typeof Ra == "function" } function isString$1 ( Ra ) { return typeof Ra == "string" } function isObject$1 ( Ra ) { return typeof Ra == "object" && Ra !== null } function isReadableStream$1 ( Ra ) { return isObject$1 ( Ra ) && isFunction$1 ( Ra . _read ) } function isBoolean$1 ( Ra ) { return typeof Ra == "boolean" } function isEmpty ( Ra ) { return _ . isEmpty ( Ra ) } function isEmptyObject ( Ra ) { return Object . values ( Ra ) . filter ( qa => qa !== void 0 ) . length !== 0 } function isDefined ( Ra ) { return Ra != null } function isValidDate ( Ra ) { return Ra instanceof Date && ! isNaN ( Ra ) } function makeDateLong ( Ra ) { Ra = Ra || new Date ; const qa = Ra . toISOString ( ) ; return qa . slice ( 0 , 4 ) + qa . slice ( 5 , 7 ) + qa . slice ( 8 , 13 ) + qa . slice ( 14 , 16 ) + qa . slice ( 17 , 19 ) + "Z" } function makeDateShort ( Ra ) { Ra = Ra || new Date ; const qa = Ra . toISOString ( ) ; return qa . slice ( 0 , 4 ) + qa . sl
2024-08-27 22:31:52 +08:00
` )+ `
2024-09-16 00:03:18 +08:00
` ,td.join(";").toLowerCase(),rd].join( `
` )}function getCredential(Ra,qa,ed,td="s3"){if(!isString $ 1(Ra))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(qa))throw new TypeError('region should be of type "string"');if(!isObject $ 1(ed))throw new TypeError('requestDate should be of type "object"');return ` $ { Ra } / $ { getScope ( qa , ed , td ) } ` }function getSignedHeaders(Ra){if(!isObject $ 1(Ra))throw new TypeError('request should be of type "object"');const qa=["authorization","content-length","content-type","user-agent"];return Object.keys(Ra).filter(ed=>!qa.includes(ed)).sort()}function getSigningKey(Ra,qa,ed,td="s3"){if(!isObject $ 1(Ra))throw new TypeError('date should be of type "object"');if(!isString $ 1(qa))throw new TypeError('region should be of type "string"');if(!isString $ 1(ed))throw new TypeError('secretKey should be of type "string"');const rd=makeDateShort(Ra);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+ed).update(rd).digest()).update(qa).digest()).update(td).digest()).update("aws4_request").digest()}function getStringToSign(Ra,qa,ed,td="s3"){if(!isString $ 1(Ra))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject $ 1(qa))throw new TypeError('requestDate should be of type "object"');if(!isString $ 1(ed))throw new TypeError('region should be of type "string"');const rd=(void 0)("sha256").update(Ra).digest("hex"),sd=getScope(ed,qa,td);return[signV4Algorithm,makeDateLong(qa),sd,rd].join( `
2024-09-16 17:10:21 +08:00
` )}function postPresignSignatureV4(Ra,qa,ed,td){if(!isString $ 1(Ra))throw new TypeError('region should be of type "string"');if(!isObject $ 1(qa))throw new TypeError('date should be of type "object"');if(!isString $ 1(ed))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(td))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,ed)).update(td).digest("hex").toLowerCase()}function signV4(Ra,qa,ed,td,rd,sd,od="s3"){if(!isObject $ 1(Ra))throw new TypeError('request should be of type "object"');if(!isString $ 1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(ed))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(td))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!ed)throw new SecretKeyRequiredError("secretKey is required for signing");const ld=getSignedHeaders(Ra.headers),cd=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,ld,sd),ud=od||"s3",_d=getStringToSign(cd,rd,td,ud),Ed=getSigningKey(rd,td,ed,ud),Ad=getCredential(qa,td,rd,ud),Td=(void 0)("sha256",Ed).update(_d).digest("hex").toLowerCase();return ` $ { signV4Algorithm } Credential = $ { Ad } , SignedHeaders = $ { ld . join ( ";" ) . toLowerCase ( ) } , Signature = $ { Td } ` }function presignSignatureV4(Ra,qa,ed,td,rd,sd,od){if(!isObject $ 1(Ra))throw new TypeError('request should be of type "object"');if(!isString $ 1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(ed))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(rd))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!ed)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber $ 2(od))throw new TypeError('expires should be of type "number"');if(od<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(od>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const ld=makeDateLong(sd),cd=getSignedHeaders(Ra.headers),ud=getCredential(qa,rd,sd),_d="UNSIGNED-PAYLOAD",Ed=[];Ed.push( ` X - Amz - Algorithm = $ { signV4Algorithm } ` ),Ed.push( ` X - Amz - Credential = $ { uriEscape ( ud ) } ` ),Ed.push( ` X - Amz - Date = $ { ld } ` ),Ed.push( ` X - Amz - Expires = $ { od } ` ),Ed.push( ` X - Amz - SignedHeaders = $ { uriEscape ( cd . join ( ";" ) . toLowerCase ( ) ) } ` ),td&&Ed.push( ` X - Amz - Security - Token = $ { uriEscape ( td ) } ` );const Ad=Ra.path.split("?")[0];let Td=Ra.path.split("?")[1];Td?Td=Td+"&"+Ed.join("&"):Td=Ed.join("&");const Nd=Ad+"?"+Td,Rd=getCanonicalRequest(Ra.method,Nd,Ra.headers,cd,_d),Bd=getStringToSign(Rd,sd,rd),Od=(void 0)("sha256",getSigningKey(sd,rd,ed)).update(Bd).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+Nd+ ` & X - Amz - Signature = $ { Od } ` }async function readAsBuffer(Ra){return new Promise((qa,ed)=>{const td=[];Ra.on("data",rd=>td.push(rd)).on("error",rd=>ed(rd)).on("end",()=>qa(Buffer $ 2.concat(td)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,ed)=>{Ra.on("data",()=>{}).on("error",td=>ed(td)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp $ 2.XMLParser;function parseError(Ra,qa){let ed={};const td=fxp.parse(Ra);td.Error&&(ed=td.Error);const rd=new S3Error;return Object.entries(ed).forEach(([sd,od])=>{rd[sd.toLowerCase()]=od}),Object.entries(qa).forEach(([sd,od])=>{rd[sd]=od}),rd}async function parseResponseError(Ra){const qa=Ra.statusCode;let ed,td;qa===301?(ed="MovedPermanently",td="Moved Permanently"):qa===307?(ed="TemporaryRedirect",td="Are you using the correct endpoint URL?"):qa===403?(ed="AccessDenied",td="Valid and authorized credentials required"):qa===404?(ed="NotFound",td="Not Found"):qa===405||qa===501?(ed="MethodNotAllowed",td="Method Not Allowed"):(ed="UnknownError",td= ` $ { qa } ` );const rd={};rd.amzRequestid=Ra.headers["x-amz-request-id"],rd.amzId2=Ra.headers["x-amz-id-2"],rd.amzBucketRegion=Ra.headers["x-amz-bucket
2024-09-16 00:03:18 +08:00
` )}),rd.write( `
` )};if(rd.write( ` REQUEST : $ { qa . method } $ { qa . path }
` ),sd(qa.headers),ed&&(this.logStream.write( ` RESPONSE : $ { ed . statusCode }
` ),sd(ed.headers)),td){rd.write( ` ERROR BODY :
` );const od=JSON.stringify(td,null," ");rd.write( ` $ { od }
2024-09-16 17:10:21 +08:00
` )}}traceOn(qa){qa||(qa=define_process_default $ 3.stdout),this.logStream=qa}traceOff(){this.logStream=void 0}async makeRequestAsync(qa,ed="",td=[200],rd=""){if(!isObject $ 1(qa))throw new TypeError('options should be of type "object"');if(!isString $ 1(ed)&&!isObject $ 1(ed))throw new TypeError('payload should be of type "string" or "Buffer"');if(td.forEach(od=>{if(!isNumber $ 2(od))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(rd))throw new TypeError('region should be of type "string"');qa.headers||(qa.headers={}),(qa.method==="POST"||qa.method==="PUT"||qa.method==="DELETE")&&(qa.headers["content-length"]=ed.length.toString());const sd=this.enableSHA256?toSha256(ed):"";return this.makeRequestStreamAsync(qa,ed,sd,td,rd)}async makeRequestAsyncOmit(qa,ed="",td=[200],rd=""){const sd=await this.makeRequestAsync(qa,ed,td,rd);return await drainResponse(sd),sd}async makeRequestStreamAsync(qa,ed,td,rd,sd){if(!isObject $ 1(qa))throw new TypeError('options should be of type "object"');if(!(Buffer $ 2.isBuffer(ed)||typeof ed=="string"||isReadableStream $ 1(ed)))throw new InvalidArgumentError( ` stream should be a Buffer , string or readable Stream , got $ { typeof ed } instead ` );if(!isString $ 1(td))throw new TypeError('sha256sum should be of type "string"');if(rd.forEach(cd=>{if(!isNumber $ 2(cd))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(sd))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&td.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&td.length!==64)throw new InvalidArgumentError( ` Invalid sha256sum : $ { td } ` );await this.checkAndRefreshCreds(),sd=sd||await this.getBucketRegionAsync(qa.bucketName);const od=this.getRequestOptions({...qa,region:sd});if(!this.anonymous){this.enableSHA256||(td="UNSIGNED-PAYLOAD");const cd=new Date;od.headers["x-amz-date"]=makeDateLong(cd),od.headers["x-amz-content-sha256"]=td,this.sessionToken&&(od.headers["x-amz-security-token"]=this.sessionToken),od.headers.authorization=signV4(od,this.accessKey,this.secretKey,sd,cd,td)}const ld=await request $ 1(this.transport,od,ed);if(!ld.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!rd.includes(ld.statusCode)){delete this.regionMap[qa.bucketName];const cd=await parseResponseError(ld);throw this.logHTTP(od,ld,cd),cd}return this.logHTTP(od,ld),ld}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError( ` Invalid bucket name : $ { qa } ` );if(this.region)return this.region;const ed=this.regionMap[qa];if(ed)return ed;const td=async ud=>{const _d=await readAsString(ud),Ed=parseBucketRegion(_d)||DEFAULT_REGION;return this.regionMap[qa]=Ed,Ed},rd="GET",sd="location",od=this.pathStyle&&!isBrowser_1;let ld;try{const ud=await this.makeRequestAsync({method:rd,bucketName:qa,query:sd,pathStyle:od},"",[200],DEFAULT_REGION);return td(ud)}catch(ud){if(ud.name!=="AuthorizationHeaderMalformed"||(ld=ud.Region,!ld))throw ud}const cd=await this.makeRequestAsync({method:rd,bucketName:qa,query:sd,pathStyle:od},"",[200],ld);return await td(cd)}makeRequest(qa,ed="",td=[200],rd="",sd,od){let ld;sd?ld=this.makeRequestAsync(qa,ed,td,rd):ld=this.makeRequestAsyncOmit(qa,ed,td,rd),ld.then(cd=>od(null,cd),cd=>{od(cd)})}makeRequestStream(qa,ed,td,rd,sd,od,ld){(async()=>{const ud=await this.makeRequestStreamAsync(qa,ed,td,rd,sd);return od||await drainResponse(ud),ud})().then(ud=>ld(null,ud),ud=>ld(ud))}getBucketRegion(qa,ed){return this.getBucketRegionAsync(qa).then(td=>ed(null,td),td=>ed(td))}async removeBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa},"",[204]),delete this.regionMap[qa]}async statObject(qa,ed,td={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(ed))throw new InvalidObjectNameError( ` Invalid object name : $ { ed } ` );if(!isObject $ 1(td))throw new InvalidArgumentError('statOpts should be of type "object"');const
2024-09-16 00:03:18 +08:00
` ).forEach(function(kd){if(kd){var Od=kd.indexOf(":"),Md=kd.substr(0,Od).trim().toLowerCase(),Pd=kd.substr(Od+1).trim();Rd[Md]=Pd}}),{error:Ad,statusCode:Td.status,statusMessage:Td.statusText,headers:Rd,body:Nd}},ud=function(Ad,Td){return!Td&&Td==="text"?Ad.responseText:Ad.response},_d=function(Ad,Td){var Nd=(Ad.method||"GET").toUpperCase(),Rd=Ad.url;if(Ad.qs){var Bd=ld(Ad.qs);Bd&&(Rd+=(Rd.indexOf("?")===-1?"?":"&")+Bd)}var kd=new XMLHttpRequest;if(kd.open(Nd,Rd,!0),kd.responseType=Ad.dataType||"text",Ad.xhrFields)for(var Od in Ad.xhrFields)kd[Od]=Ad.xhrFields[Od];var Md=Ad.headers;if(Md)for(var Pd in Md)Md.hasOwnProperty(Pd)&&Pd.toLowerCase()!=="content-length"&&Pd.toLowerCase()!=="user-agent"&&Pd.toLowerCase()!=="origin"&&Pd.toLowerCase()!=="host"&&kd.setRequestHeader(Pd,Md[Pd]);return Ad.onProgress&&kd.upload&&(kd.upload.onprogress=Ad.onProgress),Ad.onDownloadProgress&&(kd.onprogress=Ad.onDownloadProgress),Ad.timeout&&(kd.timeout=Ad.timeout),kd.ontimeout=function(Fd){var Ud=new Error("timeout");Td(cd(Ud,kd))},kd.onload=function(){Td(cd(null,kd,ud(kd,Ad.dataType)))},kd.onerror=function(Fd){var Ud=ud(kd,Ad.dataType);if(Ud)Td(cd(null,kd,Ud));else{var Gd=kd.statusText;!Gd&&kd.status===0&&(Gd=new Error("CORS blocked or network error")),Td(cd(Gd,kd,Ud))}},kd.send(Ad.body||""),kd};ed.exports=_d},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(ed,td){function rd(sd,od){if(!(sd instanceof od))throw new TypeError("Cannot call a class as a function")}ed.exports=rd,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(ed,td,rd){var sd=rd("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function od(cd,ud){for(var _d=0;_d<ud.length;_d++){var Ed=ud[_d];Ed.enumerable=Ed.enumerable||!1,Ed.configurable=!0,"value"in Ed&&(Ed.writable=!0),Object.defineProperty(cd,sd(Ed.key),Ed)}}function ld(cd,ud,_d){return ud&&od(cd.prototype,ud),_d&&od(cd,_d),Object.defineProperty(cd,"prototype",{writable:!1}),cd}ed.exports=ld,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(ed,td,rd){var sd=rd("./node_modules/@babel/runtime/helpers/typeof.js").default;function od(ld,cd){if(sd(ld)!=="object"||ld===null)return ld;var ud=ld[Symbol.toPrimitive];if(ud!==void 0){var _d=ud.call(ld,cd||"default");if(sd(_d)!=="object")return _d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(cd==="string"?String:Number)(ld)}ed.exports=od,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(ed,td,rd){var sd=rd("./node_modules/@babel/runtime/helpers/typeof.js").default,od=rd("./node_modules/@babel/runtime/helpers/toPrimitive.js");function ld(cd){var ud=od(cd,"string");return sd(ud)==="symbol"?ud:String(ud)}ed.exports=ld,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(ed,td){function rd(sd){"@babel/helpers - typeof";return ed.exports=rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(od){return typeof od}:function(od){return od&&typeof Symbol=="function"&&od.constructor===Symbol&&od!==Symbol.prototype?"symbol":typeof od},ed.exports.__esModule=!0,ed.exports.default=ed.exports,rd(sd)}ed.exports=rd,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(ed,td,rd){const sd=rd("./node_modules/fast-xml-parser/src/validator.js"),od=rd("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),ld=rd("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");ed.exports={XMLParser:od,XMLValidator:sd,XMLBuilder:ld}},"./node_modules/fast-xml-parser/src/util.js":function(ed,td,rd){const sd=":A-Za-z_ \\ u00C0- \\ u00D6 \\ u00D8- \\ u00F6 \\ u00F8- \\ u02FF \\ u0370- \\ u037D \\ u037F- \\ u1FFF \\ u200C- \\ u200D \\ u2070- \\ u218F \\ u2C00- \\ u2FEF \\ u3001- \\ uD7FF \\ uF900- \\ uFDCF \\ uFDF0- \\ uFFFD",od=sd+" \\ -. \\ d \\ u00B7 \\ u0300- \\ u036F \\ u203F- \\ u2040",ld="["+sd+"]["+od+"]*",cd=new RegExp("^"+ld+" $ "),ud=function(Ed,Ad){const Td=[];l
` &&Ud[Xd]!==" \r ";Xd++)_f+=Ud[Xd];if(_f=_f.trim(),_f[_f.length-1]==="/"&&(_f=_f.substring(0,_f.length-1),Xd--),!Md(_f)){let yf;return _f.trim().length===0?yf="Invalid space after '<'.":yf="Tag '"+_f+"' is an invalid name.",kd("InvalidTag",yf,Pd(Ud,Xd))}const hf=Ad(Ud,Xd);if(hf===!1)return kd("InvalidAttr","Attributes for '"+_f+"' have open quote.",Pd(Ud,Xd));let gf=hf.value;if(Xd=hf.index,gf[gf.length-1]==="/"){const yf=Xd-gf.length;gf=gf.substring(0,gf.length-1);const Cf=Nd(gf,Gd);if(Cf===!0)Vd=!0;else return kd(Cf.err.code,Cf.err.msg,Pd(Ud,yf+Cf.err.line))}else if(mf)if(hf.tagClosed){if(gf.trim().length>0)return kd("InvalidTag","Closing tag '"+_f+"' can't have attributes or invalid starting.",Pd(Ud,df));if(Qd.length===0)return kd("InvalidTag","Closing tag '"+_f+"' has not been opened.",Pd(Ud,df));{const yf=Qd.pop();if(_f!==yf.tagName){let Cf=Pd(Ud,yf.tagStartPos);return kd("InvalidTag","Expected closing tag '"+yf.tagName+"' (opened in line "+Cf.line+", col "+Cf.col+") instead of closing tag '"+_f+"'.",Pd(Ud,df))}Qd.length==0&&(zd=!0)}}else return kd("InvalidTag","Closing tag '"+_f+"' doesn't have proper closing.",Pd(Ud,Xd));else{const yf=Nd(gf,Gd);if(yf!==!0)return kd(yf.err.code,yf.err.msg,Pd(Ud,Xd-gf.length+yf.err.line));if(zd===!0)return kd("InvalidXml","Multiple possible root nodes found.",Pd(Ud,Xd));Gd.unpairedTags.indexOf(_f)!==-1||Qd.push({tagName:_f,tagStartPos:df}),Vd=!0}for(Xd++;Xd<Ud.length;Xd++)if(Ud[Xd]==="<")if(Ud[Xd+1]==="!"){Xd++,Xd=ud(Ud,Xd);continue}else if(Ud[Xd+1]==="?"){if(Xd=cd(Ud,++Xd),Xd.err)return Xd}else break;else if(Ud[Xd]==="&"){const yf=Bd(Ud,Xd);if(yf==-1)return kd("InvalidChar","char '&' is not expected.",Pd(Ud,Xd));Xd=yf}else if(zd===!0&&!ld(Ud[Xd]))return kd("InvalidXml","Extra text at the end",Pd(Ud,Xd));Ud[Xd]==="<"&&Xd--}}else{if(ld(Ud[Xd]))continue;return kd("InvalidChar","char '"+Ud[Xd]+"' is not expected.",Pd(Ud,Xd))}if(Vd){if(Qd.length==1)return kd("InvalidTag","Unclosed tag '"+Qd[0].tagName+"'.",Pd(Ud,Qd[0].tagStartPos));if(Qd.length>0)return kd("InvalidXml","Invalid '"+JSON.stringify(Qd.map(Xd=>Xd.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return kd("InvalidXml","Start tag expected.",1);return!0};function ld(Ud){return Ud===" "||Ud===" "||Ud=== `
` ||Ud===" \r "}function cd(Ud,Gd){const Qd=Gd;for(;Gd<Ud.length;Gd++)if(Ud[Gd]=="?"||Ud[Gd]==" "){const Vd=Ud.substr(Qd,Gd-Qd);if(Gd>5&&Vd==="xml")return kd("InvalidXml","XML declaration allowed only at the start of the document.",Pd(Ud,Gd));if(Ud[Gd]=="?"&&Ud[Gd+1]==">"){Gd++;break}else continue}return Gd}function ud(Ud,Gd){if(Ud.length>Gd+5&&Ud[Gd+1]==="-"&&Ud[Gd+2]==="-"){for(Gd+=3;Gd<Ud.length;Gd++)if(Ud[Gd]==="-"&&Ud[Gd+1]==="-"&&Ud[Gd+2]===">"){Gd+=2;break}}else if(Ud.length>Gd+8&&Ud[Gd+1]==="D"&&Ud[Gd+2]==="O"&&Ud[Gd+3]==="C"&&Ud[Gd+4]==="T"&&Ud[Gd+5]==="Y"&&Ud[Gd+6]==="P"&&Ud[Gd+7]==="E"){let Qd=1;for(Gd+=8;Gd<Ud.length;Gd++)if(Ud[Gd]==="<")Qd++;else if(Ud[Gd]===">"&&(Qd--,Qd===0))break}else if(Ud.length>Gd+9&&Ud[Gd+1]==="["&&Ud[Gd+2]==="C"&&Ud[Gd+3]==="D"&&Ud[Gd+4]==="A"&&Ud[Gd+5]==="T"&&Ud[Gd+6]==="A"&&Ud[Gd+7]==="["){for(Gd+=8;Gd<Ud.length;Gd++)if(Ud[Gd]==="]"&&Ud[Gd+1]==="]"&&Ud[Gd+2]===">"){Gd+=2;break}}return Gd}const _d='"',Ed="'";function Ad(Ud,Gd){let Qd="",Vd="",zd=!1;for(;Gd<Ud.length;Gd++){if(Ud[Gd]===_d||Ud[Gd]===Ed)Vd===""?Vd=Ud[Gd]:Vd!==Ud[Gd]||(Vd="");else if(Ud[Gd]===">"&&Vd===""){zd=!0;break}Qd+=Ud[Gd]}return Vd!==""?!1:{value:Qd,index:Gd,tagClosed:zd}}const Td=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function Nd(Ud,Gd){const Qd=sd.getAllMatches(Ud,Td),Vd={};for(let zd=0;zd<Qd.length;zd++){if(Qd[zd][1].length===0)return kd("InvalidAttr","Attribute ' "+Qd[zd][2]+" ' has no space in starting.",Fd(Qd[zd]));if(Qd[zd][3]!==void 0&&Qd[zd][4]===void 0)return kd("InvalidAttr","Attribute ' "+Qd[zd][2]+" ' is without value.",Fd(Qd[zd]));if(Qd[zd][3]===void 0&&!Gd.allowBooleanAttributes)return kd("InvalidAttr","boolean attribute ' "+Qd[zd][2]+" ' is not allowed.",Fd(Qd[zd]));const Xd=Qd[zd][2];if(!Od(Xd))return kd("InvalidAttr","Attribute ' "+Xd+" ' is an invalid name.",Fd(Qd[zd]));if(!Vd.hasOwnProperty(Xd))Vd[Xd]=1;else return kd("InvalidAttr","Attribute ' "+Xd+" ' is repeated.",Fd(Qd[zd]))}return!0}function Rd(Ud,Gd){let Qd=/\d/;for(Ud[Gd]==="x"&&(Gd++,Qd=/[\da-fA-F]/);Gd<Ud.length;Gd++){if(Ud[Gd]===";")return Gd;if(!Ud[Gd].match(Qd))break}return-1}function Bd(Ud,Gd){if(Gd++,Ud[Gd]===";")return-1;if(Ud[Gd]==="#")return Gd++,Rd(Ud,Gd);let Qd=0;for(;Gd<Ud.length;Gd++,Qd++)if(!(Ud[Gd].match(/\w/)&&Qd<20)){if(Ud[Gd]===";")break;return-1}return Gd}function kd(Ud,Gd,Qd){return{err:{code:Ud,msg:Gd,line:Qd.line||Qd,col:Qd.col}}}function Od(Ud){return sd.isName(Ud)}function Md(Ud){return sd.isName(Ud)}function Pd(Ud,Gd){const Qd=Ud.substring(0,Gd).split(/\r?\n/);return{line:Qd.length,col:Qd[Qd.length-1].length+1}}function Fd(Ud){return Ud.startIndex+Ud[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(ed,td,rd){const sd=rd("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),od={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Ed,Ad){return Ad},attributeValueProcessor:function(Ed,Ad){return Ad},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("' "," g "),val:" & apos ; "},{regex:new RegExp('" ' , "g" ) , val : """ } ] , processEntities : ! 0 , stopNodes : [ ] , oneListGroup : ! 1 } ; function ld ( Ed ) { this . options = Object . assign ( { } , od , Ed ) , this . options . ignoreAttributes || this . options . attributesGroupName ? this . isAttribute = function ( ) { return ! 1 } : ( this . attrPrefixLen = this . options . attributeNamePrefix . length , this . isAttribute = _d ) , this . processTextOrObjNode = cd , this . options . format ? ( this . indentate = ud , this . tagEndChar = ` >
2024-08-27 22:31:52 +08:00
` ,this.newLine= `
2024-09-16 00:03:18 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ld.prototype.build=function(Ed){return this.options.preserveOrder?sd(Ed,this.options):(Array.isArray(Ed)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ed={[this.options.arrayNodeName]:Ed}),this.j2x(Ed,0).val)},ld.prototype.j2x=function(Ed,Ad){let Td="",Nd="";for(let Rd in Ed)if(Object.prototype.hasOwnProperty.call(Ed,Rd))if(typeof Ed[Rd]>"u")this.isAttribute(Rd)&&(Nd+="");else if(Ed[Rd]===null)this.isAttribute(Rd)?Nd+="":Rd[0]==="?"?Nd+=this.indentate(Ad)+"<"+Rd+"?"+this.tagEndChar:Nd+=this.indentate(Ad)+"<"+Rd+"/"+this.tagEndChar;else if(Ed[Rd]instanceof Date)Nd+=this.buildTextValNode(Ed[Rd],Rd,"",Ad);else if(typeof Ed[Rd]!="object"){const Bd=this.isAttribute(Rd);if(Bd)Td+=this.buildAttrPairStr(Bd,""+Ed[Rd]);else if(Rd===this.options.textNodeName){let kd=this.options.tagValueProcessor(Rd,""+Ed[Rd]);Nd+=this.replaceEntitiesValue(kd)}else Nd+=this.buildTextValNode(Ed[Rd],Rd,"",Ad)}else if(Array.isArray(Ed[Rd])){const Bd=Ed[Rd].length;let kd="";for(let Od=0;Od<Bd;Od++){const Md=Ed[Rd][Od];typeof Md>"u"||(Md===null?Rd[0]==="?"?Nd+=this.indentate(Ad)+"<"+Rd+"?"+this.tagEndChar:Nd+=this.indentate(Ad)+"<"+Rd+"/"+this.tagEndChar:typeof Md=="object"?this.options.oneListGroup?kd+=this.j2x(Md,Ad+1).val:kd+=this.processTextOrObjNode(Md,Rd,Ad):kd+=this.buildTextValNode(Md,Rd,"",Ad))}this.options.oneListGroup&&(kd=this.buildObjectNode(kd,Rd,"",Ad)),Nd+=kd}else if(this.options.attributesGroupName&&Rd===this.options.attributesGroupName){const Bd=Object.keys(Ed[Rd]),kd=Bd.length;for(let Od=0;Od<kd;Od++)Td+=this.buildAttrPairStr(Bd[Od],""+Ed[Rd][Bd[Od]])}else Nd+=this.processTextOrObjNode(Ed[Rd],Rd,Ad);return{attrStr:Td,val:Nd}},ld.prototype.buildAttrPairStr=function(Ed,Ad){return Ad=this.options.attributeValueProcessor(Ed,""+Ad),Ad=this.replaceEntitiesValue(Ad),this.options.suppressBooleanAttributes&&Ad==="true"?" "+Ed:" "+Ed+'="'+Ad+'"'};function cd(Ed,Ad,Td){const Nd=this.j2x(Ed,Td+1);return Ed[this.options.textNodeName]!==void 0&&Object.keys(Ed).length===1?this.buildTextValNode(Ed[this.options.textNodeName],Ad,Nd.attrStr,Td):this.buildObjectNode(Nd.val,Ad,Nd.attrStr,Td)}ld.prototype.buildObjectNode=function(Ed,Ad,Td,Nd){if(Ed==="")return Ad[0]==="?"?this.indentate(Nd)+"<"+Ad+Td+"?"+this.tagEndChar:this.indentate(Nd)+"<"+Ad+Td+this.closeTag(Ad)+this.tagEndChar;{let Rd="</"+Ad+this.tagEndChar,Bd="";return Ad[0]==="?"&&(Bd="?",Rd=""),(Td||Td==="")&&Ed.indexOf("<")===-1?this.indentate(Nd)+"<"+Ad+Td+Bd+">"+Ed+Rd:this.options.commentPropName!==!1&&Ad===this.options.commentPropName&&Bd.length===0?this.indentate(Nd)+ ` <!-- $ { Ed } -- > ` +this.newLine:this.indentate(Nd)+"<"+Ad+Td+Bd+this.tagEndChar+Ed+this.indentate(Nd)+Rd}},ld.prototype.closeTag=function(Ed){let Ad="";return this.options.unpairedTags.indexOf(Ed)!==-1?this.options.suppressUnpairedNode||(Ad="/"):this.options.suppressEmptyNode?Ad="/":Ad= ` > < /${Ed}`,Ad},ld.prototype.buildTextValNode=function(Ed,Ad,Td,Nd){if(this.options.cdataPropName!==!1&&Ad===this.options.cdataPropName)return this.indentate(Nd)+`<![CDATA[${Ed}]]>`+this.newLine;if(this.options.commentPropName!==!1&&Ad===this.options.commentPropName)return this.indentate(Nd)+`<!--${Ed}-->`+this.newLine;if(Ad[0]==="?")return this.indentate(Nd)+"<"+Ad+Td+"?"+this.tagEndChar;{let Rd=this.options.tagValueProcessor(Ad,Ed);return Rd=this.replaceEntitiesValue(Rd),Rd===""?this.indentate(Nd)+"<"+Ad+Td+this.closeTag(Ad)+this.tagEndChar:this.indentate(Nd)+"<"+Ad+Td+">"+Rd+"</ "+Ad+this.tagEndChar}},ld.prototype.replaceEntitiesValue=function(Ed){if(Ed&&Ed.length>0&&this.options.processEntities)for(let Ad=0;Ad<this.options.entities.length;Ad++){const Td=this.options.entities[Ad];Ed=Ed.replace(Td.regex,Td.val)}return Ed};function ud(Ed){return this.options.indentBy.repeat(Ed)}function _d(Ed){return Ed.startsWith(this.options.attributeNamePrefix)&&Ed!==this.options.textNodeName?Ed.substr(this.attrPrefixLen):!1}ed.exports=ld}," . / node _modules / fast - xml - parser / src / xmlbuilder / orderedJs2Xml . js " : function ( ed , td ) { const rd = `
` ;function sd(Ed,Ad){let Td="";return Ad.format&&Ad.indentBy.length>0&&(Td=rd),od(Ed,Ad,"",Td)}function od(Ed,Ad,Td,Nd){let Rd="",Bd=!1;for(let kd=0;kd<Ed.length;kd++){const Od=Ed[kd],Md=ld(Od);if(Md===void 0)continue;let Pd="";if(Td.length===0?Pd=Md:Pd= ` $ { Td } . $ { Md } ` ,Md===Ad.textNodeName){let Vd=Od[Md];ud(Pd,Ad)||(Vd=Ad.tagValueProcessor(Md,Vd),Vd=_d(Vd,Ad)),Bd&&(Rd+=Nd),Rd+=Vd,Bd=!1;continue}else if(Md===Ad.cdataPropName){Bd&&(Rd+=Nd),Rd+= ` < ! [ CDATA [ $ { Od [ Md ] [ 0 ] [ Ad . textNodeName ] } ] ] > ` ,Bd=!1;continue}else if(Md===Ad.commentPropName){Rd+=Nd+ ` <!-- $ { Od [ Md ] [ 0 ] [ Ad . textNodeName ] } -- > ` ,Bd=!0;continue}else if(Md[0]==="?"){const Vd=cd(Od[":@"],Ad),zd=Md==="?xml"?"":Nd;let Xd=Od[Md][0][Ad.textNodeName];Xd=Xd.length!==0?" "+Xd:"",Rd+=zd+ ` < $ { Md } $ { Xd } $ { Vd } ? > ` ,Bd=!0;continue}let Fd=Nd;Fd!==""&&(Fd+=Ad.indentBy);const Ud=cd(Od[":@"],Ad),Gd=Nd+ ` < $ { Md } $ { Ud } ` ,Qd=od(Od[Md],Ad,Pd,Fd);Ad.unpairedTags.indexOf(Md)!==-1?Ad.suppressUnpairedNode?Rd+=Gd+">":Rd+=Gd+"/>":(!Qd||Qd.length===0)&&Ad.suppressEmptyNode?Rd+=Gd+"/>":Qd&&Qd.endsWith(">")?Rd+=Gd+ ` > $ { Qd } $ { Nd } < /${Md}>`:(Rd+=Gd+">",Qd&&Nd!==""&&(Qd.includes("/ > ")||Qd.includes(" < /"))?Rd+=Nd+Ad.indentBy+Qd+Nd:Rd+=Qd,Rd+=`</ $ { Md } > ` ),Bd=!0}return Rd}function ld(Ed){const Ad=Object.keys(Ed);for(let Td=0;Td<Ad.length;Td++){const Nd=Ad[Td];if(Ed.hasOwnProperty(Nd)&&Nd!==":@")return Nd}}function cd(Ed,Ad){let Td="";if(Ed&&!Ad.ignoreAttributes)for(let Nd in Ed){if(!Ed.hasOwnProperty(Nd))continue;let Rd=Ad.attributeValueProcessor(Nd,Ed[Nd]);Rd=_d(Rd,Ad),Rd===!0&&Ad.suppressBooleanAttributes?Td+= ` $ { Nd . substr ( Ad . attributeNamePrefix . length ) } ` :Td+= ` $ { Nd . substr ( Ad . attributeNamePrefix . length ) } = "${Rd}" ` }return Td}function ud(Ed,Ad){Ed=Ed.substr(0,Ed.length-Ad.textNodeName.length-1);let Td=Ed.substr(Ed.lastIndexOf(".")+1);for(let Nd in Ad.stopNodes)if(Ad.stopNodes[Nd]===Ed||Ad.stopNodes[Nd]==="*."+Td)return!0;return!1}function _d(Ed,Ad){if(Ed&&Ed.length>0&&Ad.processEntities)for(let Td=0;Td<Ad.entities.length;Td++){const Nd=Ad.entities[Td];Ed=Ed.replace(Nd.regex,Nd.val)}return Ed}ed.exports=sd},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(ed,td,rd){const sd=rd("./node_modules/fast-xml-parser/src/util.js");function od(Nd,Rd){const Bd={};if(Nd[Rd+3]==="O"&&Nd[Rd+4]==="C"&&Nd[Rd+5]==="T"&&Nd[Rd+6]==="Y"&&Nd[Rd+7]==="P"&&Nd[Rd+8]==="E"){Rd=Rd+9;let kd=1,Od=!1,Md=!1,Pd="";for(;Rd<Nd.length;Rd++)if(Nd[Rd]==="<"&&!Md){if(Od&&ud(Nd,Rd))Rd+=7,[entityName,val,Rd]=ld(Nd,Rd+1),val.indexOf("&")===-1&&(Bd[Td(entityName)]={regx:RegExp( ` & $ { entityName } ; ` ,"g"),val});else if(Od&&_d(Nd,Rd))Rd+=8;else if(Od&&Ed(Nd,Rd))Rd+=8;else if(Od&&Ad(Nd,Rd))Rd+=9;else if(cd)Md=!0;else throw new Error("Invalid DOCTYPE");kd++,Pd=""}else if(Nd[Rd]===">"){if(Md?Nd[Rd-1]==="-"&&Nd[Rd-2]==="-"&&(Md=!1,kd--):kd--,kd===0)break}else Nd[Rd]==="["?Od=!0:Pd+=Nd[Rd];if(kd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Bd,i:Rd}}function ld(Nd,Rd){let Bd="";for(;Rd<Nd.length&&Nd[Rd]!=="'"&&Nd[Rd]!=='"';Rd++)Bd+=Nd[Rd];if(Bd=Bd.trim(),Bd.indexOf(" ")!==-1)throw new Error("External entites are not supported");const kd=Nd[Rd++];let Od="";for(;Rd<Nd.length&&Nd[Rd]!==kd;Rd++)Od+=Nd[Rd];return[Bd,Od,Rd]}function cd(Nd,Rd){return Nd[Rd+1]==="!"&&Nd[Rd+2]==="-"&&Nd[Rd+3]==="-"}function ud(Nd,Rd){return Nd[Rd+1]==="!"&&Nd[Rd+2]==="E"&&Nd[Rd+3]==="N"&&Nd[Rd+4]==="T"&&Nd[Rd+5]==="I"&&Nd[Rd+6]==="T"&&Nd[Rd+7]==="Y"}function _d(Nd,Rd){return Nd[Rd+1]==="!"&&Nd[Rd+2]==="E"&&Nd[Rd+3]==="L"&&Nd[Rd+4]==="E"&&Nd[Rd+5]==="M"&&Nd[Rd+6]==="E"&&Nd[Rd+7]==="N"&&Nd[Rd+8]==="T"}function Ed(Nd,Rd){return Nd[Rd+1]==="!"&&Nd[Rd+2]==="A"&&Nd[Rd+3]==="T"&&Nd[Rd+4]==="T"&&Nd[Rd+5]==="L"&&Nd[Rd+6]==="I"&&Nd[Rd+7]==="S"&&Nd[Rd+8]==="T"}function Ad(Nd,Rd){return Nd[Rd+1]==="!"&&Nd[Rd+2]==="N"&&Nd[Rd+3]==="O"&&Nd[Rd+4]==="T"&&Nd[Rd+5]==="A"&&Nd[Rd+6]==="T"&&Nd[Rd+7]==="I"&&Nd[Rd+8]==="O"&&Nd[Rd+9]==="N"}function Td(Nd){if(sd.isName(Nd))return Nd;throw new Error( ` Invalid entity name $ { Nd } ` )}ed.exports=od},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(ed,td){const rd={preserveOrd
` );const zd=new od("!xml");let Xd=zd,df="",mf="";for(let _f=0;_f<Vd.length;_f++)if(Vd[_f]==="<")if(Vd[_f+1]==="/"){const gf=Fd(Vd,">",_f,"Closing Tag is not closed.");let yf=Vd.substring(_f+2,gf).trim();if(this.options.removeNSPrefix){const Qf=yf.indexOf(":");Qf!==-1&&(yf=yf.substr(Qf+1))}this.options.transformTagName&&(yf=this.options.transformTagName(yf)),Xd&&(df=this.saveTextToParentTag(df,Xd,mf));const Cf=mf.substring(mf.lastIndexOf(".")+1);if(yf&&this.options.unpairedTags.indexOf(yf)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${yf}>`);let Ff=0;Cf&&this.options.unpairedTags.indexOf(Cf)!==-1?(Ff=mf.lastIndexOf(".",mf.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Ff=mf.lastIndexOf("."),mf=mf.substring(0,Ff),Xd=this.tagsNodeStack.pop(),df="",_f=gf}else if(Vd[_f+1]==="?"){let gf=Ud(Vd,_f,!1,"?>");if(!gf)throw new Error("Pi Tag is not closed.");if(df=this.saveTextToParentTag(df,Xd,mf),!(this.options.ignoreDeclaration&&gf.tagName==="?xml"||this.options.ignorePiTags)){const yf=new od(gf.tagName);yf.add(this.options.textNodeName,""),gf.tagName!==gf.tagExp&&gf.attrExpPresent&&(yf[":@"]=this.buildAttributesMap(gf.tagExp,mf,gf.tagName)),this.addChild(Xd,yf,mf)}_f=gf.closeIndex+1}else if(Vd.substr(_f+1,3)==="!--"){const gf=Fd(Vd,"-->",_f+4,"Comment is not closed.");if(this.options.commentPropName){const yf=Vd.substring(_f+4,gf-2);df=this.saveTextToParentTag(df,Xd,mf),Xd.add(this.options.commentPropName,[{[this.options.textNodeName]:yf}])}_f=gf}else if(Vd.substr(_f+1,2)==="!D"){const gf=ld(Vd,_f);this.docTypeEntities=gf.entities,_f=gf.i}else if(Vd.substr(_f+1,2)==="!["){const gf=Fd(Vd,"]]>",_f,"CDATA is not closed.")-2,yf=Vd.substring(_f+9,gf);df=this.saveTextToParentTag(df,Xd,mf);let Cf=this.parseTextData(yf,Xd.tagname,mf,!0,!1,!0,!0);Cf==null&&(Cf=""),this.options.cdataPropName?Xd.add(this.options.cdataPropName,[{[this.options.textNodeName]:yf}]):Xd.add(this.options.textNodeName,Cf),_f=gf+2}else{let gf=Ud(Vd,_f,this.options.removeNSPrefix),yf=gf.tagName;const Cf=gf.rawTagName;let Ff=gf.tagExp,Qf=gf.attrExpPresent,Uf=gf.closeIndex;this.options.transformTagName&&(yf=this.options.transformTagName(yf)),Xd&&df&&Xd.tagname!=="!xml"&&(df=this.saveTextToParentTag(df,Xd,mf,!1));const Lf=Xd;if(Lf&&this.options.unpairedTags.indexOf(Lf.tagname)!==-1&&(Xd=this.tagsNodeStack.pop(),mf=mf.substring(0,mf.lastIndexOf("."))),yf!==zd.tagname&&(mf+=mf?"."+yf:yf),this.isItStopNode(this.options.stopNodes,mf,yf)){let wf="";if(Ff.length>0&&Ff.lastIndexOf("/ ")===Ff.length-1)yf[yf.length-1]===" / "?(yf=yf.substr(0,yf.length-1),mf=mf.substr(0,mf.length-1),Ff=yf):Ff=Ff.substr(0,Ff.length-1),_f=gf.closeIndex;else if(this.options.unpairedTags.indexOf(yf)!==-1)_f=gf.closeIndex;else{const Zf=this.readStopNodeData(Vd,Cf,Uf+1);if(!Zf)throw new Error(`Unexpected end of ${Cf}`);_f=Zf.i,wf=Zf.tagContent}const Nf=new od(yf);yf!==Ff&&Qf&&(Nf[" : @ "]=this.buildAttributesMap(Ff,mf,yf)),wf&&(wf=this.parseTextData(wf,yf,mf,!0,Qf,!0,!0)),mf=mf.substr(0,mf.lastIndexOf(" . ")),Nf.add(this.options.textNodeName,wf),this.addChild(Xd,Nf,mf)}else{if(Ff.length>0&&Ff.lastIndexOf(" / ")===Ff.length-1){yf[yf.length-1]===" / "?(yf=yf.substr(0,yf.length-1),mf=mf.substr(0,mf.length-1),Ff=yf):Ff=Ff.substr(0,Ff.length-1),this.options.transformTagName&&(yf=this.options.transformTagName(yf));const wf=new od(yf);yf!==Ff&&Qf&&(wf[" : @ "]=this.buildAttributesMap(Ff,mf,yf)),this.addChild(Xd,wf,mf),mf=mf.substr(0,mf.lastIndexOf(" . "))}else{const wf=new od(yf);this.tagsNodeStack.push(Xd),yf!==Ff&&Qf&&(wf[" : @ "]=this.buildAttributesMap(Ff,mf,yf)),this.addChild(Xd,wf,mf),Xd=wf}df=" ",_f=Uf}}else df+=Vd[_f];return zd.child};function Bd(Vd,zd,Xd){const df=this.options.updateTag(zd.tagname,Xd,zd[" : @ "]);df===!1||(typeof df==" string " && ( zd . tagname = df ) , Vd . addChild ( zd ) ) } const kd = function ( Vd ) { if ( this . options . processEntities ) { for ( let zd in this . docTypeEntities ) { const Xd = this . docTypeEntities [ zd ] ; Vd = Vd . replace ( Xd . regx , Xd . val ) } for ( let zd in this . lastEntities ) { const Xd = this . lastEntities [ zd ] ; Vd = Vd . replace ( Xd . regex , Xd . val ) } if ( this . options . htmlEntities ) for ( let zd in this . htmlEntities ) { const Xd = this . htm
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var $ h=!0,om=!1,Tm;return{s:function(){rh=rh.call(kf)},n:function(){var Wm=rh.next();return $ h=Wm.done,Wm},e:function(Wm){om=!0,Tm=Wm},f:function(){try{! $ h&&rh.return!=null&&rh.return()}finally{if(om)throw Tm}}}}function cd(kf,Of){if(kf){if(typeof kf=="string")return ud(kf,Of);var rh=Object.prototype.toString.call(kf).slice(8,-1);if(rh==="Object"&&kf.constructor&&(rh=kf.constructor.name),rh==="Map"||rh==="Set")return Array.from(kf);if(rh==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(rh))return ud(kf,Of)}}function ud(kf,Of){(Of==null||Of>kf.length)&&(Of=kf.length);for(var rh=0,uh=new Array(Of);rh<Of;rh++)uh[rh]=kf[rh];return uh}var _d=rd("./lib/md5.js"),Ed=rd("./lib/crypto.js"),Ad=rd("./node_modules/fast-xml-parser/src/fxp.js"),Td=Ad.XMLParser,Nd=Ad.XMLBuilder,Rd=new Td({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Bd=new Nd,kd=rd("./lib/base64.js"),Od=rd("./src/tracker.js"),Md=function(Of){var rh=Rd.parse(Of);return rh},Pd=function(Of){var rh=Bd.build(Of);return rh};function Fd(kf){return encodeURIComponent(kf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/ \( /g,"%28").replace(/ \) /g,"%29").replace(/ \* /g,"%2A")}function Ud(kf,Of){var rh=[];for(var uh in kf)kf.hasOwnProperty(uh)&&rh.push(Of?Fd(uh).toLowerCase():uh);return rh.sort(function(wh, $ h){return wh=wh.toLowerCase(), $ h= $ h.toLowerCase(),wh=== $ h?0:wh> $ h?1:-1})}var Gd=function(Of,rh){var uh,wh, $ h,om=[],Tm=Ud(Of);for(uh=0;uh<Tm.length;uh++)wh=Tm[uh], $ h=Of[wh]===void 0||Of[wh]===null?"":""+Of[wh],wh=rh?Fd(wh).toLowerCase():Fd(wh), $ h=Fd( $ h)||"",om.push(wh+"="+ $ h);return om.join("&")},Qd=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],Vd=function(Of){var rh={};for(var uh in Of){var wh=uh.toLowerCase();(wh.indexOf("x-cos-")>-1||Qd.indexOf(wh)>-1)&&(rh[uh]=Of[uh])}return rh},zd=function(Of){Of=Of||{};var rh=Of.SecretId,uh=Of.SecretKey,wh=Of.KeyTime, $ h=(Of.method||Of.Method||"get").toLowerCase(),om=wf(Of.Query||Of.params||{}),Tm=Vd(wf(Of.Headers||Of.headers||{})),um=Of.Key||"",Wm;Of.UseRawKey?Wm=Of.Pathname||Of.pathname||"/"+um:(Wm=Of.Pathname||Of.pathname||um,Wm.indexOf("/")!==0&&(Wm="/"+Wm));var Fm=Of.ForceSignHost!==!1;if(!Tm.Host&&!Tm.host&&Of.Bucket&&Of.Region&&Fm&&(Tm.Host=Of.Bucket+".cos."+Of.Region+".myqcloud.com"),!rh)throw new Error("missing param SecretId");if(!uh)throw new Error("missing param SecretKey");var Lm=Math.round(qf(Of.SystemClockOffset)/1e3)-1,e_=Lm,F_=Of.Expires||Of.expires;F_===void 0?e_+=900:e_+=F_*1||0;var R_="sha1",w_=rh,Qm=wh||Lm+";"+e_,P_=wh||Lm+";"+e_,V_=Ud(Tm,!0).join(";").toLowerCase(),Z_=Ud(om,!0).join(";").toLowerCase(),t1=Ed.HmacSHA1(P_,uh).toString(),j_=[ $ h,Wm,ih.obj2str(om,!0),ih.obj2str(Tm,!0),""].join( `
` ), $ _=["sha1",Qm,Ed.SHA1(j_).toString(),""].join( `
2024-09-16 17:10:21 +08:00
` ),Hm=Ed.HmacSHA1( $ _,t1).toString(),v_=["q-sign-algorithm="+R_,"q-ak="+w_,"q-sign-time="+Qm,"q-key-time="+P_,"q-header-list="+V_,"q-url-param-list="+Z_,"q-signature="+Hm].join("&");return v_},Xd=function(Of,rh,uh){var wh=rh/8, $ h=Of.slice(uh,uh+wh);return new Uint8Array( $ h).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[rh]( $ h)[0]},df=function(Of,rh,uh,wh){var $ h=Of.slice(rh,uh),om="";return new Uint8Array( $ h).forEach(function(Tm){om+=String.fromCharCode(Tm)}),wh&&(om=decodeURIComponent(escape(om))),om},mf=function(Of){for(var rh={},uh=df(Of),wh={records:[]};Of.byteLength;){var $ h=Xd(Of,32,0),om=Xd(Of,32,4),Tm= $ h-om-16,um=0,Wm;for(Of=Of.slice(12);um<om;){var Fm=Xd(Of,8,um),Lm=df(Of,um+1,um+1+Fm),e_=Xd(Of,16,um+Fm+2),F_=df(Of,um+Fm+4,um+Fm+4+e_);rh[Lm]=F_,um+=Fm+4+e_}if(rh[":event-type"]==="Records")Wm=df(Of,um,um+Tm,!0),wh.records.push(Wm);else if(rh[":event-type"]==="Stats")Wm=df(Of,um,um+Tm,!0),wh.stats=ih.xml2json(Wm).Stats;else if(rh[":event-type"]==="error"){var R_=rh[":error-code"],w_=rh[":error-message"],Qm=new Error(w_);Qm.message=w_,Qm.name=Qm.code=R_,wh.error=Qm}Of=Of.slice(um+Tm+4)}return{payload:wh.records.join(""),body:uh}},_f=function(Of){var rh=this.options.CopySourceParser;if(rh)return rh(Of);var uh=Of.match(/^([^.]+- \d +) \. cos(v6|-cdc|-cdz|-internal)? \. ([^.]+) \. ((myqcloud \. com)|(tencentcos \. cn)) \/ (.+) $ /);return uh?{Bucket:uh[1],Region:uh[3],Key:uh[7]}:null},hf=function(){},gf=function(Of){var rh={};for(var uh in Of)Of.hasOwnProperty(uh)&&Of[uh]!==void 0&&Of[uh]!==null&&(rh[uh]=Of[uh]);return rh},yf=function(Of,rh){var uh,wh=new FileReader;FileReader.prototype.readAsBinaryString?(uh=FileReader.prototype.readAsBinaryString,wh.onload=function(){rh(this.result)}):FileReader.prototype.readAsArrayBuffer?uh=function(om){var Tm="",um=new FileReader;um.onload=function(Wm){for(var Fm=new Uint8Array(um.result),Lm=Fm.byteLength,e_=0;e_<Lm;e_++)Tm+=String.fromCharCode(Fm[e_]);rh(Tm)},um.readAsArrayBuffer(om)}:console.error("FileReader not support readAsBinaryString"),uh.call(wh,Of)},Cf=function(){var kf=function(uh,wh){uh=uh.split("."),wh=wh.split(".");for(var $ h=0; $ h<wh.length; $ h++)if(uh[ $ h]!==wh[ $ h])return parseInt(uh[ $ h])>parseInt(wh[ $ h])?1:-1;return 0},Of=function(uh){if(!uh)return!1;var wh=(uh.match(/Chrome \/ ([. \d ]+)/)||[])[1], $ h=(uh.match(/QBCore \/ ([. \d ]+)/)||[])[1],om=(uh.match(/QQBrowser \/ ([. \d ]+)/)||[])[1],Tm=wh&&kf(wh,"53.0.2785.116")<0&& $ h&&kf( $ h,"3.53.991.400")<0&&om&&kf(om,"9.0.2524.400")<=0||!1;return Tm};return Of(typeof navigator<"u"&&navigator.userAgent)}(),Ff=function(Of,rh,uh,wh, $ h){var om;if(Of.slice?om=Of.slice(rh,uh):Of.mozSlice?om=Of.mozSlice(rh,uh):Of.webkitSlice&&(om=Of.webkitSlice(rh,uh)),wh&&Cf){var Tm=new FileReader;Tm.onload=function(um){om=null, $ h(new Blob([Tm.result]))},Tm.readAsArrayBuffer(om)}else $ h(om)},Qf=function(Of,rh,uh,wh){uh=uh||hf,Of?typeof rh=="string"?uh(ih.md5(rh,!0)):Blob&&rh instanceof Blob?ih.getFileMd5(rh,function( $ h,om){uh(om)},wh):uh():uh()},Uf=1024*1024,Lf=function(Of,rh,uh){var wh=Of.size, $ h=0,om=_d.getCtx(),Tm=function um(Wm){if(Wm>=wh){var Fm=om.digest("hex");rh(null,Fm);return}var Lm=Math.min(wh,Wm+Uf);ih.fileSlice(Of,Wm,Lm,!1,function(e_){yf(e_,function(F_){e_=null,om=om.update(F_,!0), $ h+=F_.length,F_=null,uh&&uh({loaded: $ h,total:wh,percent:Math.round( $ h/wh*1e4)/1e4}),um(Wm+Uf)})})};Tm(0)};function wf(kf){return Wf(kf,function(Of){return od(Of)==="object"&&Of!==null?wf(Of):Of})}function Nf(kf,Of,rh){return kf&&Of in kf?kf[Of]:rh}function Zf(kf,Of){return Bf(Of,function(rh,uh){kf[uh]=Of[uh]}),kf}function Kf(kf){return kf instanceof Array}function Tf(kf,Of){for(var rh=!1,uh=0;uh<kf.length;uh++)if(Of===kf[uh]){rh=!0;break}return rh}function bf(kf){return Kf(kf)?kf:[kf]}function Bf(kf,Of){for(var rh in kf)kf.hasOwnProperty(rh)&&Of(kf[rh],rh)}function Wf(kf,Of){var rh=Kf(kf)?[]:{};for(var uh in kf)kf.hasOwnProperty(uh)&&(rh[uh]=Of(kf[uh],uh));return rh}function lh(kf,Of){var rh=Kf(kf),uh=rh?[]:{};for(var wh in kf)kf.hasOwnProperty(wh)&&Of(kf[wh],wh)&&(rh?uh.push(kf[wh]):uh[wh]=kf[wh]);return uh}var Xf=function(Of){var rh,uh,wh, $ h="";for(rh=0,uh=Of.length/2
2024-09-16 00:03:18 +08:00
` ).forEach(function(od){rd=od.indexOf(":"),ed=od.substring(0,rd).trim().toLowerCase(),td=od.substring(rd+1).trim(),!(!ed||qa[ed]&&ignoreDuplicateOf[ed])&&(ed==="set-cookie"?qa[ed]?qa[ed].push(td):qa[ed]=[td]:qa[ed]=qa[ed]?qa[ed]+", "+td:td)}),qa}, $ internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils $ 1.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const qa=Object.create(null),ed=/([^ \s ,;=]+) \s *(?:= \s *([^,;]+))?/g;let td;for(;td=ed.exec(Ra);)qa[td[1]]=td[2];return qa}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^ ` | ~ , ! # $ % & ' * + . ] + $ / . test ( Ra . trim ( ) ) ; function matchHeaderValue ( Ra , qa , ed , td , rd ) { if ( utils$1 . isFunction ( td ) ) return td . call ( this , qa , ed ) ; if ( rd && ( qa = ed ) , ! ! utils$1 . isString ( qa ) ) { if ( utils$1 . isString ( td ) ) return qa . indexOf ( td ) !== - 1 ; if ( utils$1 . isRegExp ( td ) ) return td . test ( qa ) } } function formatHeader ( Ra ) { return Ra . trim ( ) . toLowerCase ( ) . replace ( /([a-z\d])(\w*)/g , ( qa , ed , td ) => ed . toUpperCase ( ) + td ) } function buildAccessors ( Ra , qa ) { const ed = utils$1 . toCamelCase ( " " + qa ) ; [ "get" , "set" , "has" ] . forEach ( td => { Object . defineProperty ( Ra , td + ed , { value : function ( rd , sd , od ) { return this [ td ] . call ( this , qa , rd , sd , od ) } , configurable : ! 0 } ) } ) } class AxiosHeaders { constructor ( qa ) { qa && this . set ( qa ) } set ( qa , ed , td ) { const rd = this ; function sd ( ld , cd , ud ) { const _d = normalizeHeader ( cd ) ; if ( ! _d ) throw new Error ( "header name must be a non-empty string" ) ; const Ed = utils$1 . findKey ( rd , _d ) ; ( ! Ed || rd [ Ed ] === void 0 || ud === ! 0 || ud === void 0 && rd [ Ed ] !== ! 1 ) && ( rd [ Ed || cd ] = normalizeValue ( ld ) ) } const od = ( ld , cd ) => utils$1 . forEach ( ld , ( ud , _d ) => sd ( ud , _d , cd ) ) ; if ( utils$1 . isPlainObject ( qa ) || qa instanceof this . constructor ) od ( qa , ed ) ; else if ( utils$1 . isString ( qa ) && ( qa = qa . trim ( ) ) && ! isValidHeaderName ( qa ) ) od ( parseHeaders ( qa ) , ed ) ; else if ( utils$1 . isHeaders ( qa ) ) for ( const [ ld , cd ] of qa . entries ( ) ) sd ( cd , ld , td ) ; else qa != null && sd ( ed , qa , td ) ; return this } get ( qa , ed ) { if ( qa = normalizeHeader ( qa ) , qa ) { const td = utils$1 . findKey ( this , qa ) ; if ( td ) { const rd = this [ td ] ; if ( ! ed ) return rd ; if ( ed === ! 0 ) return parseTokens ( rd ) ; if ( utils$1 . isFunction ( ed ) ) return ed . call ( this , rd , td ) ; if ( utils$1 . isRegExp ( ed ) ) return ed . exec ( rd ) ; throw new TypeError ( "parser must be boolean|regexp|function" ) } } } has ( qa , ed ) { if ( qa = normalizeHeader ( qa ) , qa ) { const td = utils$1 . findKey ( this , qa ) ; return ! ! ( td && this [ td ] !== void 0 && ( ! ed || matchHeaderValue ( this , this [ td ] , td , ed ) ) ) } return ! 1 } delete ( qa , ed ) { const td = this ; let rd = ! 1 ; function sd ( od ) { if ( od = normalizeHeader ( od ) , od ) { const ld = utils$1 . findKey ( td , od ) ; ld && ( ! ed || matchHeaderValue ( td , td [ ld ] , ld , ed ) ) && ( delete td [ ld ] , rd = ! 0 ) } } return utils$1 . isArray ( qa ) ? qa . forEach ( sd ) : sd ( qa ) , rd } clear ( qa ) { const ed = Object . keys ( this ) ; let td = ed . length , rd = ! 1 ; for ( ; td -- ; ) { const sd = ed [ td ] ; ( ! qa || matchHeaderValue ( this , this [ sd ] , sd , qa , ! 0 ) ) && ( delete this [ sd ] , rd = ! 0 ) } return rd } normalize ( qa ) { const ed = this , td = { } ; return utils$1 . forEach ( this , ( rd , sd ) => { const od = utils$1 . findKey ( td , sd ) ; if ( od ) { ed [ od ] = normalizeValue ( rd ) , delete ed [ sd ] ; return } const ld = qa ? formatHeader ( sd ) : String ( sd ) . trim ( ) ; ld !== sd && delete ed [ sd ] , ed [ ld ] = normalizeValue ( rd ) , td [ ld ] = ! 0 } ) , this } concat ( ... qa ) { return this . constructor . concat ( this , ... qa ) } toJSON ( qa ) { const ed = Object . create ( null ) ; return utils$1 . forEach ( this , ( td , rd ) => { td != null && td !== ! 1 && ( ed [ rd ] = qa && utils$1 . isArray ( td ) ? td . join ( ", " ) : td ) } ) , ed } [ Symbol . iterator ] ( ) { return Object . entries ( this . toJSON ( ) ) [ Symbol . iterator ] ( ) } toString ( ) { return Object . entries ( this . toJSON ( ) ) . map ( ( [ qa , ed ] ) => qa + ": " + ed ) . join ( `
` )}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...ed){const td=new this(qa);return ed.forEach(rd=>td.set(rd)),td}static accessor(qa){const td=(this[ $ internals]=this[ $ internals]={accessors:{}}).accessors,rd=this.prototype;function sd(od){const ld=normalizeHeader(od);td[ld]||(buildAccessors(rd,od),td[ld]=!0)}return utils $ 1.isArray(qa)?qa.forEach(sd):sd(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils $ 1.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let ed=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(td){this[ed]=td}}});utils $ 1.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const ed=this||defaults,td=qa||ed,rd=AxiosHeaders.from(td.headers);let sd=td.data;return utils $ 1.forEach(Ra,function(ld){sd=ld.call(ed,sd,rd.normalize(),qa?qa.status:void 0)}),rd.normalize(),sd}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,ed){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,ed),this.name="CanceledError"}utils $ 1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,ed){const td=ed.config.validateStatus;!ed.status||!td||td(ed.status)?Ra(ed):qa(new AxiosError("Request failed with status code "+ed.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(ed.status/100)-4],ed.config,ed.request,ed))}function parseProtocol(Ra){const qa=/^([-+ \w ]{1,25})(:? \/ \/ |:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const ed=new Array(Ra),td=new Array(Ra);let rd=0,sd=0,od;return qa=qa!==void 0?qa:1e3,function(cd){const ud=Date.now(),_d=td[sd];od||(od=ud),ed[rd]=cd,td[rd]=ud;let Ed=sd,Ad=0;for(;Ed!==rd;)Ad+=ed[Ed++],Ed=Ed%Ra;if(rd=(rd+1)%Ra,rd===sd&&(sd=(sd+1)%Ra),ud-od<qa)return;const Td=_d&&ud-_d;return Td?Math.round(Ad*1e3/Td):void 0}}function throttle(Ra,qa){let ed=0,td=1e3/qa,rd,sd;const od=(ud,_d=Date.now())=>{ed=_d,rd=null,sd&&(clearTimeout(sd),sd=null),Ra.apply(null,ud)};return[(...ud)=>{const _d=Date.now(),Ed=_d-ed;Ed>=td?od(ud,_d):(rd=ud,sd||(sd=setTimeout(()=>{sd=null,od(rd)},td-Ed)))},()=>rd&&od(rd)]}const progressEventReducer=(Ra,qa,ed=3)=>{let td=0;const rd=speedometer(50,250);return throttle(sd=>{const od=sd.loaded,ld=sd.lengthComputable?sd.total:void 0,cd=od-td,ud=rd(cd),_d=od<=ld;td=od;const Ed={loaded:od,total:ld,progress:ld?od/ld:void 0,bytes:cd,rate:ud||void 0,estimated:ud&&ld&&_d?(ld-od)/ud:void 0,event:sd,lengthComputable:ld!=null,[qa?"download":"upload"]:!0};Ra(Ed)},ed)},progressEventDecorator=(Ra,qa)=>{const ed=Ra!=null;return[td=>qa[0]({lengthComputable:ed,total:Ra,loaded:td}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils $ 1.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const qa=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),ed=document.createElement("a");let td;function rd(sd){let od=sd;return qa&&(ed.setAttribute("href",od),od=ed.href),ed.setAttribute("href",od),{href:ed.href,protocol:ed.protocol?ed.protocol.replace(/: $ /,""):"",host:ed.host,search:ed.search?ed.search.replace(/^ \? /,""):"",hash:ed.hash?ed.hash.replace(/^#/,""):"",hostname:ed.hostname,port:ed.port,pathname:ed.pathname.charAt(0)==="/"?ed.pathname:"/"+ed.pathname}}return td=rd(window.location.href),function(od){const ld=utils $ 1.isString(od)?rd(od):od;return ld.protocol===td.protocol&&ld.host===td.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,ed,td,rd,sd){const od=[Ra+"="+encodeURIComponent(qa)];utils $ 1.isNumber(ed)&&od.push("expires="+new Date(ed).toGMTString()),utils $ 1.isString(td)&&od.push("path="+td),utils $ 1.isString(rd)&&od.push("domain="+rd),sd===!0&&od.push("secure"),document.cookie=od.join("; ")},read(Ra){const qa=document.cookie.match(new RegExp("(^|; \\ s*)("+Ra+")=([^;]*)"));return qa?decodeURIComponent(qa[3]):null},remove(Ra){this.write(Ra,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ra){return/^([a-z][a-z \d + \- .]*
` +sd.map(renderReason).join( `
` ):" "+renderReason(sd[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+od,"ERR_NOT_SUPPORT")}return td},adapters:knownAdapters};function throwIfCancellationRequested(Ra){if(Ra.cancelToken&&Ra.cancelToken.throwIfRequested(),Ra.signal&&Ra.signal.aborted)throw new CanceledError(null,Ra)}function dispatchRequest(Ra){return throwIfCancellationRequested(Ra),Ra.headers=AxiosHeaders.from(Ra.headers),Ra.data=transformData.call(Ra,Ra.transformRequest),["post","put","patch"].indexOf(Ra.method)!==-1&&Ra.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(Ra.adapter||defaults.adapter)(Ra).then(function(td){return throwIfCancellationRequested(Ra),td.data=transformData.call(Ra,Ra.transformResponse,td),td.headers=AxiosHeaders.from(td.headers),td},function(td){return isCancel(td)||(throwIfCancellationRequested(Ra),td&&td.response&&(td.response.data=transformData.call(Ra,Ra.transformResponse,td.response),td.response.headers=AxiosHeaders.from(td.response.headers))),Promise.reject(td)})}const VERSION="1.7.7",validators $ 1={};["object","boolean","number","function","string","symbol"].forEach((Ra,qa)=>{validators $ 1[Ra]=function(td){return typeof td===Ra||"a"+(qa<1?"n ":" ")+Ra}});const deprecatedWarnings={};validators $ 1.transitional=function(qa,ed,td){function rd(sd,od){return"[Axios v"+VERSION+"] Transitional option '"+sd+"'"+od+(td?". "+td:"")}return(sd,od,ld)=>{if(qa===!1)throw new AxiosError(rd(od," has been removed"+(ed?" in "+ed:"")),AxiosError.ERR_DEPRECATED);return ed&&!deprecatedWarnings[od]&&(deprecatedWarnings[od]=!0,console.warn(rd(od," has been deprecated since v"+ed+" and will be removed in the near future"))),qa?qa(sd,od,ld):!0}};function assertOptions(Ra,qa,ed){if(typeof Ra!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const td=Object.keys(Ra);let rd=td.length;for(;rd-- >0;){const sd=td[rd],od=qa[sd];if(od){const ld=Ra[sd],cd=ld===void 0||od(ld,sd,Ra);if(cd!==!0)throw new AxiosError("option "+sd+" must be "+cd,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(ed!==!0)throw new AxiosError("Unknown option "+sd,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators $ 1},validators=validator.validators;class Axios{constructor(qa){this.defaults=qa,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(qa,ed){try{return await this._request(qa,ed)}catch(td){if(td instanceof Error){let rd;Error.captureStackTrace?Error.captureStackTrace(rd={}):rd=new Error;const sd=rd.stack?rd.stack.replace(/^.+ \n /,""):"";try{td.stack?sd&&!String(td.stack).endsWith(sd.replace(/^.+ \n .+ \n /,""))&&(td.stack+= `
2024-09-16 17:10:21 +08:00
` +sd):td.stack=sd}catch{}}throw td}}_request(qa,ed){typeof qa=="string"?(ed=ed||{},ed.url=qa):ed=qa||{},ed=mergeConfig(this.defaults,ed);const{transitional:td,paramsSerializer:rd,headers:sd}=ed;td!==void 0&&validator.assertOptions(td,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),rd!=null&&(utils $ 1.isFunction(rd)?ed.paramsSerializer={serialize:rd}:validator.assertOptions(rd,{encode:validators.function,serialize:validators.function},!0)),ed.method=(ed.method||this.defaults.method||"get").toLowerCase();let od=sd&&utils $ 1.merge(sd.common,sd[ed.method]);sd&&utils $ 1.forEach(["delete","get","head","post","put","patch","common"],Nd=>{delete sd[Nd]}),ed.headers=AxiosHeaders.concat(od,sd);const ld=[];let cd=!0;this.interceptors.request.forEach(function(Rd){typeof Rd.runWhen=="function"&&Rd.runWhen(ed)===!1||(cd=cd&&Rd.synchronous,ld.unshift(Rd.fulfilled,Rd.rejected))});const ud=[];this.interceptors.response.forEach(function(Rd){ud.push(Rd.fulfilled,Rd.rejected)});let _d,Ed=0,Ad;if(!cd){const Nd=[dispatchRequest.bind(this),void 0];for(Nd.unshift.apply(Nd,ld),Nd.push.apply(Nd,ud),Ad=Nd.length,_d=Promise.resolve(ed);Ed<Ad;)_d=_d.then(Nd[Ed++],Nd[Ed++]);return _d}Ad=ld.length;let Td=ed;for(Ed=0;Ed<Ad;){const Nd=ld[Ed++],Rd=ld[Ed++];try{Td=Nd(Td)}catch(Bd){Rd.call(this,Bd);break}}try{_d=dispatchRequest.call(this,Td)}catch(Nd){return Promise.reject(Nd)}for(Ed=0,Ad=ud.length;Ed<Ad;)_d=_d.then(ud[Ed++],ud[Ed++]);return _d}getUri(qa){qa=mergeConfig(this.defaults,qa);const ed=buildFullPath(qa.baseURL,qa.url);return buildURL(ed,qa.params,qa.paramsSerializer)}}utils $ 1.forEach(["delete","get","head","options"],function(qa){Axios.prototype[qa]=function(ed,td){return this.request(mergeConfig(td||{},{method:qa,url:ed,data:(td||{}).data}))}});utils $ 1.forEach(["post","put","patch"],function(qa){function ed(td){return function(sd,od,ld){return this.request(mergeConfig(ld||{},{method:qa,headers:td?{"Content-Type":"multipart/form-data"}:{},url:sd,data:od}))}}Axios.prototype[qa]=ed(),Axios.prototype[qa+"Form"]=ed(!0)});class CancelToken{constructor(qa){if(typeof qa!="function")throw new TypeError("executor must be a function.");let ed;this.promise=new Promise(function(sd){ed=sd});const td=this;this.promise.then(rd=>{if(!td._listeners)return;let sd=td._listeners.length;for(;sd-- >0;)td._listeners[sd](rd);td._listeners=null}),this.promise.then=rd=>{let sd;const od=new Promise(ld=>{td.subscribe(ld),sd=ld}).then(rd);return od.cancel=function(){td.unsubscribe(sd)},od},qa(function(sd,od,ld){td.reason||(td.reason=new CanceledError(sd,od,ld),ed(td.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(qa){if(this.reason){qa(this.reason);return}this._listeners?this._listeners.push(qa):this._listeners=[qa]}unsubscribe(qa){if(!this._listeners)return;const ed=this._listeners.indexOf(qa);ed!==-1&&this._listeners.splice(ed,1)}toAbortSignal(){const qa=new AbortController,ed=td=>{qa.abort(td)};return this.subscribe(ed),qa.signal.unsubscribe=()=>this.unsubscribe(ed),qa.signal}static source(){let qa;return{token:new CancelToken(function(rd){qa=rd}),cancel:qa}}}function spread(Ra){return function(ed){return Ra.apply(null,ed)}}function isAxiosError(Ra){return utils $ 1.isObject(Ra)&&Ra.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,Expect
2024-08-27 22:31:52 +08:00
async ( CUSTOM _ARG ) => {
$ { localStorage . getItem ( "formCustomConfig" ) }
}
2024-09-16 17:10:21 +08:00
` ;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,qa){const ed=localStorage.getItem("imgHost");switch(ed||localStorage.setItem("imgHost","default"),ed){case"aliOSS":return aliOSSFileUpload(qa);case"minio":return minioFileUpload(Ra,qa.name);case"txCOS":return txCOSFileUpload(qa);case"qiniu":return qiniuUpload(qa);case"gitee":return giteeUpload(Ra,qa.name);case"github":return ghFileUpload(Ra,qa.name);case"formCustom":return formCustomUpload(Ra,qa);default:return ghFileUpload(Ra,qa.name)}}const fileApi={fileUpload};/**
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-08-30 15:19:18 +08:00
* /const toKebabCase=Ra=>Ra.replace(/ ( [ a - z0 - 9 ] ) ( [ A - Z ] ) / g , "$1-$2" ) . toLowerCase ( ) ; / * *
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /var defaultAttributes={xmlns:"http:/ / www . w3 . org / 2000 / svg ",width:24,height:24,viewBox:" 0 0 24 24 ",fill:" none ",stroke:" currentColor "," stroke - width ":2," stroke - linecap ":" round "," stroke - linejoin ":" round " } ; / * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-09-16 00:03:18 +08:00
* / c o n s t I c o n = ( { s i z e : R a , s t r o k e W i d t h : q a = 2 , a b s o l u t e S t r o k e W i d t h : e d , c o l o r : t d , i c o n N o d e : r d , n a m e : s d , c l a s s : o d , . . . l d } , { s l o t s : c d } ) = > h $ 1 ( " s v g " , { . . . d e f a u l t A t t r i b u t e s , w i d t h : R a | | d e f a u l t A t t r i b u t e s . w i d t h , h e i g h t : R a | | d e f a u l t A t t r i b u t e s . h e i g h t , s t r o k e : t d | | d e f a u l t A t t r i b u t e s . s t r o k e , " s t r o k e - w i d t h " : e d ? N u m b e r ( q a ) * 2 4 / N u m b e r ( R a ) : q a , c l a s s : [ " l u c i d e " , ` l u c i d e - $ { t o K e b a b C a s e ( s d ? ? " i c o n " ) } ` ] , . . . l d } , [ . . . r d . m a p ( u d = > h $ 1 ( . . . u d ) ) , . . . c d . d e f a u l t ? [ c d . d e f a u l t ( ) ] : [ ] ] ) ; / * *
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-09-16 00:03:18 +08:00
* /const createLucideIcon=(Ra,qa)=>(ed,{slots:td})=>h$1(Icon,{...ed,iconNode:qa,name:Ra},td);/ * *
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-09-08 17:22:36 +08:00
* /const Check=createLucideIcon("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const ChevronDown=createLucideIcon("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const ChevronRight=createLucideIcon("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const ChevronUp=createLucideIcon("ChevronUpIcon",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const Moon=createLucideIcon("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const Paintbrush=createLucideIcon("PaintbrushIcon",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-09-16 00:03:18 +08:00
* /const Sun=createLucideIcon("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* / c o n s t X = c r e a t e L u c i d e I c o n ( " X I c o n " , [ [ " p a t h " , { d : " M 1 8 6 6 1 8 " , k e y : " 1 b l 5 f 8 " } ] , [ " p a t h " , { d : " m 6 6 1 2 1 2 " , k e y : " d 8 b k 6 v " } ] ] ) ; f u n c t i o n i s C o m p o n e n t P u b l i c I n s t a n c e ( R a ) { r e t u r n R a ! = n u l l & & t y p e o f R a = = " o b j e c t " & & " $ e l " i n R a } f u n c t i o n u n w r a p E l e m e n t ( R a ) { i f ( i s C o m p o n e n t P u b l i c I n s t a n c e ( R a ) ) { c o n s t q a = R a . $ e l ; r e t u r n i s N o d e $ 1 ( q a ) & & g e t N o d e N a m e ( q a ) = = = " # c o m m e n t " ? n u l l : q a } r e t u r n R a } f u n c t i o n t o V a l u e $ 1 ( R a ) { r e t u r n t y p e o f R a = = " f u n c t i o n " ? R a ( ) : u n r e f ( R a ) } f u n c t i o n a r r o w ( R a ) { r e t u r n { n a m e : " a r r o w " , o p t i o n s : R a , f n ( q a ) { c o n s t e d = u n w r a p E l e m e n t ( t o V a l u e $ 1 ( R a . e l e m e n t ) ) ; r e t u r n e d = = n u l l ? { } : a r r o w $ 1 ( { e l e m e n t : e d , p a d d i n g : R a . p a d d i n g } ) . f n ( q a ) } } } f u n c t i o n g e t D P R ( R a ) { r e t u r n t y p e o f w i n d o w > " u " ? 1 : ( R a . o w n e r D o c u m e n t . d e f a u l t V i e w | | w i n d o w ) . d e v i c e P i x e l R a t i o | | 1 } f u n c t i o n r o u n d B y D P R ( R a , q a ) { c o n s t e d = g e t D P R ( R a ) ; r e t u r n M a t h . r o u n d ( q a * e d ) / e d } f u n c t i o n u s e F l o a t i n g ( R a , q a , e d ) { e d = = = v o i d 0 & & ( e d = { } ) ; c o n s t t d = e d . w h i l e E l e m e n t s M o u n t e d , r d = c o m p u t e d ( ( ) = > { v a r G d ; r e t u r n ( G d = t o V a l u e $ 1 ( e d . o p e n ) ) ! = n u l l ? G d : ! 0 } ) , s d = c o m p u t e d ( ( ) = > t o V a l u e $ 1 ( e d . m i d d l e w a r e ) ) , o d = c o m p u t e d ( ( ) = > { v a r G d ; r e t u r n ( G d = t o V a l u e $ 1 ( e d . p l a c e m e n t ) ) ! = n u l l ? G d : " b o t t o m " } ) , l d = c o m p u t e d ( ( ) = > { v a r G d ; r e t u r n ( G d = t o V a l u e $ 1 ( e d . s t r a t e g y ) ) ! = n u l l ? G d : " a b s o l u t e " } ) , c d = c o m p u t e d ( ( ) = > { v a r G d ; r e t u r n ( G d = t o V a l u e $ 1 ( e d . t r a n s f o r m ) ) ! = n u l l ? G d : ! 0 } ) , u d = c o m p u t e d ( ( ) = > u n w r a p E l e m e n t ( R a . v a l u e ) ) , _ d = c o m p u t e d ( ( ) = > u n w r a p E l e m e n t ( q a . v a l u e ) ) , E d = r e f $ 1 ( 0 ) , A d = r e f $ 1 ( 0 ) , T d = r e f $ 1 ( l d . v a l u e ) , N d = r e f $ 1 ( o d . v a l u e ) , R d = s h a l l o w R e f ( { } ) , B d = r e f $ 1 ( ! 1 ) , k d = c o m p u t e d ( ( ) = > { c o n s t G d = { p o s i t i o n : T d . v a l u e , l e f t : " 0 " , t o p : " 0 " } ; i f ( ! _ d . v a l u e ) r e t u r n G d ; c o n s t Q d = r o u n d B y D P R ( _ d . v a l u e , E d . v a l u e ) , V d = r o u n d B y D P R ( _ d . v a l u e , A d . v a l u e ) ; r e t u r n c d . v a l u e ? { . . . G d , t r a n s f o r m : " t r a n s l a t e ( " + Q d + " p x , " + V d + " p x ) " , . . . g e t D P R ( _ d . v a l u e ) > = 1 . 5 & & { w i l l C h a n g e : " t r a n s f o r m " } } : { p o s i t i o n : T d . v a l u e , l e f t : Q d + " p x " , t o p : V d + " p x " } } ) ; l e t O d ; f u n c t i o n M d ( ) { u d . v a l u e = = n u l l | | _ d . v a l u e = = n u l l | | c o m p u t e P o s i t i o n ( u d . v a l u e , _ d . v a l u e , { m i d d l e w a r e : s d . v a l u e , p l a c e m e n t : o d . v a l u e , s t r a t e g y : l d . v a l u e } ) . t h e n ( G d = > { E d . v a l u e = G d . x , A d . v a l u e = G d . y , T d . v a l u e = G d . s t r a t e g y , N d . v a l u e = G d . p l a c e m e n t , R d . v a l u e = G d . m i d d l e w a r e D a t a , B d . v a l u e = ! 0 } ) } f u n c t i o n P d ( ) { t y p e o f O d = = " f u n c t i o n " & & ( O d ( ) , O d = v o i d 0 ) } f u n c t i o n F d ( ) { i f ( P d ( ) , t d = = = v o i d 0 ) { M d ( ) ; r e t u r n } i f ( u d . v a l u e ! = n u l l & & _ d . v a l u e ! = n u l l ) { O d = t d ( u d . v a l u e , _ d . v a l u e , M d ) ; r e t u r n } } f u n c t i o n U d ( ) { r d . v a l u e | | ( B d . v a l u e = ! 1 ) } r e t u r n w a t c h ( [ s d , o d , l d ] , M d , { f l u s h : " s y n c " } ) , w a t c h ( [ u d , _ d ] , F d , { f l u s h : " s y n c " } ) , w a t c h ( r d , U d , { f l u s h : " s y n c " } ) , g e t C u r r e n t S c o p e ( ) & & o n S c o p e D i s p o s e ( P d ) , { x : s h a l l o w R e a d o n l y ( E d ) , y : s h a l l o w R e a d o n l y ( A d ) , s t r a t e g y : s h a l l o w R e a d o n l y ( T d ) , p l a c e m e n t : s h a l l o w R e a d o n l y ( N d ) , m i d d l e w a r e D a t a : s h a l l o w R e a d o n l y ( R d ) , i s P o s i t i o n e d : s h a l l o w R e a d o n l y ( B d ) , f l o a t i n g S t y l e s : k d , u p d a t e : M d } } f u n c t i o n Q ( R a , q a ) { c o n s t e d = t y p e o f R a = = " s t r i n g " & & ! q a ? ` $ { R a } C o n t e x t ` : q a , t d = S y m b o l ( e d ) ; r e t u r n [ r d = > { c o n s t s d = i n j e c t ( t d , r d ) ; i f ( s d | | s d = = = n u l l ) r e t u r n s d ; t h r o w n e w E r r o r ( ` I n j e c t i o n \ ` $ { t d . t o S t r i n g ( ) } \ ` n o t f o u n d . C o m p o n e n t m u s t b e u s e d w i t h i n $ { A r r a y . i s A r r a y ( R a ) ? ` o n e o f t h e f o l l o w i n g c o m p o n e n t s : $ { R a . j o i n ( " , " ) } ` : ` \ ` $ { R a } \ ` ` } ` ) } , r d = > ( p r o v i d e ( t d , r d ) , r d ) ] } f u n c t i o n K t ( R a , q a , e d ) { c o n s t t d = e d . o r i g i n a l E v e n t . t a r g e t , r d = n e w C u s t o m E v e n t ( R a , { b u b b l e s : ! 1 , c a n c e l a b l e : ! 0 , d e t a i l : e d } ) ; q a & & t d . a d d E v e n t L i s t e n e r ( R a , q a , { o n c e : ! 0 } ) , t d . d i s p a t c h E v e n t ( r d ) } f u n c t i o n H t ( R a , q a = N u m b e r . N E G A T I V E _ I N F I N I T Y , e d = N u m b e r . P O S I T I V E _ I N F I N I T Y ) { r e t u r n M a t h . m i n ( M a t h . m a x ( R a , q a ) , e d ) } f u n c t i o n z t ( R a ) { r e t u r n R a = = n u l l } f u n c t i o n Y r ( R a , q a ) { v a r e d ; c o n s t t d = s h a l l o w R e f ( ) ; r e t u r n w a t c h E f f e c t ( ( ) = > { t d . v a l u e = R a ( ) } , { . . . q a , f l u s h : ( e d = v o i d 0 ) ! = n u l l ? e d : " s y n c " } ) , r e a d o n l y ( t d ) } f u n c t i o n m t ( R a ) { r e t u r n g e t C u r r e n t S c o p e ( ) ? ( o n S c o p e D i s p o s e ( R a ) , ! 0 ) : ! 1 } f u n c t i o n i a ( ) { c o n s t R a = n e w S e t , q a = e d = > { R a . d e l e t e ( e d ) } ; r e t u r n { o n : e d = > { R a . a d d ( e d ) ; c o n s t t d = ( ) = > q a ( e d ) ; r e t u r n m t ( t d ) , { o f f : t d } } , o f f : q a , t r i g g e r : ( . . . e d ) = > P r o m i s e . a l l ( A r r a y . f r o m ( R a ) . m a p ( t d = > t d ( . . . e d ) ) ) } } f u n c t i o n Z r ( R a ) { l e t q a = ! 1 , e d ; c o n s t t d = e f f e c t S c o p e ( ! 0 ) ; r e t u r n ( . . . r d ) = > ( q a | | ( e d = t d . r u n ( ( ) = > R a ( . . . r d ) ) , q a = ! 0 ) , e d ) } f u n c t i o n w l ( R a ) { l e t q a = 0 , e d , t d ; c o n s t r d = ( ) = > { q a - = 1 , t d & & q a < = 0 & & ( t d . s t o p ( ) , e d = v o i d 0 , t d = v o i d 0 ) } ; r e t u r n ( . . . s d ) = > ( q a + = 1 , e d | | ( t d = e f f e c t S c o p e ( ! 0 ) , e d = t d . r u n ( ( ) = > R a ( . . . s d ) ) ) , m t ( r d ) , e d ) } f u n c t i o n K e ( R a ) { r e t u r n t y p e o f R a = = " f u n c t i o n " ? R a ( ) : u n r e f ( R a ) } c o n s t q e = t y p e o f w i n d o w < " u " & & t y p e o f d o c u m e n t < " u " ; t y p e o f W o r k e r G l o b a l S c o p e < " u " & & g l o b a l T h i s i n s t a n c e o f W o r k e r G l o b a l S c o p e ; c o n s t Q r = R a = > t y p e o f R a < " u " , t i = O b j e c t . p r o
2024-09-08 17:22:36 +08:00
` )].join( `
2024-09-16 00:03:18 +08:00
` ))}return()=>sd.value||rd.value||ld.value?h $ 1(qa.default({present:ld})[0],{ref:_d=>{const Ed= $ e(_d);return typeof(Ed==null?void 0:Ed.hasAttribute)>"u"||(Ed!=null&&Ed.hasAttribute("data-radix-popper-content-wrapper")?od.value=Ed.firstElementChild:od.value=Ed),Ed}}):null}}),[et,Ui]=Q("DialogRoot"),Gi=defineComponent({__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const ed=Ra,td=ne(ed,"open",qa,{defaultValue:ed.defaultOpen,passive:ed.open===void 0}),rd=ref $ 1(),sd=ref $ 1(),{modal:od}=toRefs(ed);return Ui({open:td,modal:od,openModal:()=>{td.value=!0},onOpenChange:ld=>{td.value=ld},onOpenToggle:()=>{td.value=!td.value},contentId:"",titleId:"",descriptionId:"",triggerElement:rd,contentElement:sd}),(ld,cd)=>renderSlot(ld. $ slots,"default",{open:unref(td)})}}),ht=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja();return(ed,td)=>unref(qa)||ed.forceMount?(openBlock(),createBlock(Teleport $ 1,{key:0,to:ed.to,disabled:ed.disabled},[renderSlot(ed. $ slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),wv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(ed,td)=>(openBlock(),createBlock(unref(ht),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(ed. $ slots,"default")]),_:3},16))}}),Yi="dismissableLayer.pointerDownOutside",Xi="dismissableLayer.focusOutside";function Fl(Ra,qa){const ed=qa.closest("[data-dismissable-layer]"),td=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),rd=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(ed&&td===ed||rd.indexOf(td)<rd.indexOf(ed))}function Nl(Ra,qa){var ed;const td=((ed=qa==null?void 0:qa.value)==null?void 0:ed.ownerDocument)??(globalThis==null?void 0:globalThis.document),rd=ref $ 1(!1),sd=ref $ 1(()=>{});return watchEffect(od=>{if(!qe)return;const ld=async ud=>{const _d=ud.target;if(qa!=null&&qa.value){if(Fl(qa.value,_d)){rd.value=!1;return}if(ud.target&&!rd.value){let Ed=function(){Kt(Yi,Ra,Ad)};const Ad={originalEvent:ud};ud.pointerType==="touch"?(td.removeEventListener("click",sd.value),sd.value=Ed,td.addEventListener("click",sd.value,{once:!0})):Ed()}else td.removeEventListener("click",sd.value);rd.value=!1}},cd=window.setTimeout(()=>{td.addEventListener("pointerdown",ld)},0);od(()=>{window.clearTimeout(cd),td.removeEventListener("pointerdown",ld),td.removeEventListener("click",sd.value)})}),{onPointerDownCapture:()=>rd.value=!0}}function Ll(Ra,qa){var ed;const td=((ed=qa==null?void 0:qa.value)==null?void 0:ed.ownerDocument)??(globalThis==null?void 0:globalThis.document),rd=ref $ 1(!1);return watchEffect(sd=>{if(!qe)return;const od=async ld=>{qa!=null&&qa.value&&(await nextTick $ 1(),!(!qa.value||Fl(qa.value,ld.target))&&ld.target&&!rd.value&&Kt(Xi,Ra,{originalEvent:ld}))};td.addEventListener("focusin",od),sd(()=>td.removeEventListener("focusin",od))}),{onFocusCapture:()=>rd.value=!0,onBlurCapture:()=>rd.value=!1}}const je=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yt=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:qa}){const ed=Ra,td=qa,{forwardRef:rd,currentElement:sd}=T(),od=computed(()=>{var Nd;return((Nd=sd.value)==null?void 0:Nd.ownerDocument)??globalThis.document}),ld=computed(()=>je.layersRoot),cd=computed(()=>sd.value?Array.from(ld.value).indexOf(sd.value):-1),ud=computed(()=>je.layersWithOutsidePointerEventsDisabled.size>0),_d=computed(()=>{const Nd=Array.from(ld.value),[Rd]=[...je.layersWithOutsidePointerEventsDisabled].slice(-1),Bd=Nd.indexOf(Rd);return cd.value>=Bd}),Ed=Nl(async Nd=>{const Rd=[...je.branches].some(Bd=>Bd.contains(Nd.target));!_d.value||Rd||(td("poin
$ { ud }
` ,"end"),od(),ed()}function cd(ud){ud||ed(!1)}return(ud,_d)=>{const Ed=ElInputNumber,Ad=ElCol,Td=ElRow,Nd=ElInput,Rd=_sfc_main $ N;return openBlock(),createBlock(unref(_sfc_main $ M),{open:unref(qa).isShowInsertFormDialog,"onUpdate:open":cd},{default:withCtx(()=>[createVNode(unref(_sfc_main $ J),null,{default:withCtx(()=>[createVNode(unref(_sfc_main $ L),null,{default:withCtx(()=>[createVNode(unref(_sfc_main $ K),null,{default:withCtx(()=>_d[3]||(_d[3]=[createTextVNode("插入表格")])),_:1})]),_:1}),createVNode(Td,{class:"tb-options",type:"flex",align:"middle",gutter:10},{default:withCtx(()=>[createVNode(Ad,{span:12},{default:withCtx(()=>[_d[4]||(_d[4]=createTextVNode(" 行数: ")),createVNode(Ed,{modelValue:td.value,"onUpdate:modelValue":_d[0]||(_d[0]=Bd=>td.value=Bd),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1}),createVNode(Ad,{span:12},{default:withCtx(()=>[_d[5]||(_d[5]=createTextVNode(" 列数: ")),createVNode(Ed,{modelValue:rd.value,"onUpdate:modelValue":_d[1]||(_d[1]=Bd=>rd.value=Bd),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),createBaseVNode("table",_hoisted_1 $ 2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.value+1,Bd=>(openBlock(),createElementBlock("tr",{key:Bd,class:normalizeClass({"head-style":Bd===1})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(rd.value,kd=>(openBlock(),createElementBlock("td",{key:kd},[createVNode(Nd,{modelValue:sd.value[ ` k _$ { Bd - 1 } _$ { kd - 1 } ` ],"onUpdate:modelValue":Od=>sd.value[ ` k _$ { Bd - 1 } _$ { kd - 1 } ` ]=Od,align:"center",placeholder:Bd===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]))),128))],2))),128))]),createVNode(unref(_sfc_main $ I),null,{default:withCtx(()=>[createVNode(Rd,{variant:"outline",onClick:_d[2]||(_d[2]=Bd=>unref(ed)(!1))},{default:withCtx(()=>_d[6]||(_d[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(Rd,{onClick:ld},{default:withCtx(()=>_d[7]||(_d[7]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}},InsertFormDialog=_export_sfc(_sfc_main $ b,[["__scopeId","data-v-c5a5fe07"]]),_sfc_main $ a={__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:qa}){const ed=qa,td=useStore(),rd=ref $ 1({repo:"",branch:"",accessToken:""}),sd=ref $ 1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:"",useSSL:!0}),od=ref $ 1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),ld=ref $ 1({accessKey:"",secretKey:"",bucket:"",domain:"",region:""}),cd=ref $ 1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),ud=ref $ 1({code:localStorage.getItem("formCustomConfig")||removeLeft( `
2024-08-27 22:31:52 +08:00
const { file , util , okCb , errCb } = CUSTOM _ARG
const param = new FormData ( )
param . append ( 'file' , file )
util . axios . post ( '${window.location.origin}/upload' , param , {
headers : { 'Content-Type' : 'multipart/form-data' }
} ) . then ( res => {
okCb ( res . url )
} ) . catch ( err => {
errCb ( err )
} )
2024-09-16 00:03:18 +08:00
` ).trim(),editor:void 0}),_d=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],Ed=ref $ 1("default"),Ad=ref $ 1(null),Td=ref $ 1("upload");watch(Td,async Gd=>{Gd==="formCustom"&&nextTick $ 1(()=>{const Qd=Ad.value. $ el.querySelector("textarea");ud.value.editor=ud.value.editor||CodeMirror.fromTextArea(Qd,{mode:"javascript"})})},{immediate:!0}),onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(rd.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(sd.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(od.value=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(ld.value=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(cd.value=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(Ed.value=localStorage.getItem("imgHost"))});function Nd(){localStorage.setItem("imgHost",Ed.value),ElMessage.success("已成功切换图床")}function Rd(){if(!(rd.value.repo&&rd.value.accessToken)){const Gd=rd.value.repo?"token":"GitHub 仓库";ElMessage.error( ` 参数 「 $ { Gd } 」 不能为空 ` );return}localStorage.setItem("githubConfig",JSON.stringify(rd.value)),ElMessage.success("保存成功")}function Bd(){if(!(sd.value.accessKeyId&&sd.value.accessKeySecret&&sd.value.bucket&&sd.value.region)){ElMessage.error("阿里云 OSS 参数配置不全");return}localStorage.setItem("aliOSSConfig",JSON.stringify(sd.value)),ElMessage.success("保存成功")}function kd(){if(!(cd.value.endpoint&&cd.value.bucket&&cd.value.accessKey&&cd.value.secretKey)){ElMessage.error("MinIO 参数配置不全");return}localStorage.setItem("minioConfig",JSON.stringify(cd.value)),ElMessage.success("保存成功")}function Od(){if(!(od.value.secretId&&od.value.secretKey&&od.value.bucket&&od.value.region)){ElMessage.error("腾讯云 COS 参数配置不全");return}localStorage.setItem("txCOSConfig",JSON.stringify(od.value)),ElMessage.success("保存成功")}function Md(){if(!(ld.value.accessKey&&ld.value.secretKey&&ld.value.bucket&&ld.value.domain)){ElMessage.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(ld.value)),ElMessage.success("保存成功")}function Pd(){const Gd=ud.value.editor.getValue();localStorage.setItem("formCustomConfig",Gd),ElMessage.success("保存成功")}function Fd(Gd){const Qd=checkImage(Gd);if(!Qd.ok)return ElMessage.error(Qd.msg),!1;let Vd=localStorage.getItem("imgHost");Vd=Vd||"default",localStorage.setItem("imgHost",Vd);const zd=localStorage.getItem( ` $ { Vd } Config ` );return Vd==="default"||zd?!0:(ElMessage.error( ` 请先配置 $ { Vd } 图床参数 ` ),!1)}function Ud(Gd){ed("uploadImage",Gd.file)}return(Gd,Qd)=>{const Vd=ElOption,zd=ElSelect,Xd=ElIcon,df=ElUpload,mf=ElTabPane,_f=ElInput,hf=ElFormItem,gf=ElLink,yf=ElButton,Cf=ElForm,Ff=ElSwitch,Qf=ElTabs;return openBlock(),createBlock(unref(_sfc_main $ M),{open:unref(td).isShowUploadImgDialog,"onUpdate:open":Qd[31]||(Qd[31]=Uf=>unref(td).isShowUploadImgDialog=Uf)},{default:withCtx(()=>[createVNode(unref(_sfc_main $ J),{class:"max-w-max"},{default:withCtx(()=>[createVNode(unref(_sfc_main $ L),null,{default:withCtx(()=>[createVNode(unref(_sfc_main $ K),null,{default:withCtx(()=>Qd[32]||(Qd[32]=[createTextVNode("本地上传")])),_:1})]),_:1}),createVNode(Qf,{modelValue:Td.value,"onUpdate:modelValue":Qd[30]||(Qd[30]=Uf=>Td.value=Uf)},{default:withCtx(()=>[createVNode(mf,{class:"upload-panel",label:"选择上传",name:"upload"},{default:withCtx(()=>[createVNode(zd,{modelValue:Ed.value,"onUpdate:modelValue":Qd[0]||(Qd[0]=Uf=>Ed.value=Uf),placeholder:"请选择",size:"small",onChange:Nd},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(_d,Uf=>createVNode(Vd,{key:Uf.value,label:Uf.label,value:Uf.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),createVNode
$ { Ff }
` ,Cf),ElMessage.success("图片上传成功")}function zd(yf,Cf){Rd.value=!0,toBase64(yf).then(Ff=>fileApi.fileUpload(Ff,yf)).then(Ff=>{Cf?Cf(Ff):Vd(Ff)}).catch(Ff=>{ElMessage.error(Ff.message)}).finally(()=>{Rd.value=!1})}const Xd=ref $ 1(0);watch(ed,()=>{var Cf,Ff;const yf=ed.value?"darcula":"xq-light";(Ff=(Cf=toRaw(rd.value))==null?void 0:Cf.setOption)==null||Ff.call(Cf,"theme",yf)});function df(){const yf=document.querySelector("#editor");yf.value||(yf.value=sd.value),rd.value=CodeMirror.fromTextArea(yf,{mode:"text/x-markdown",theme:ed.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function(Ff){formatDoc(Ff.getValue(0)).then(Qf=>{Ff.setValue(Qf)})},[ ` $ { ctrlKey } - B ` ]:function(Ff){const Qf=Ff.getSelection();Ff.replaceSelection( ` * * $ { Qf } * * ` )},[ ` $ { ctrlKey } - I ` ]:function(Ff){const Qf=Ff.getSelection();Ff.replaceSelection( ` * $ { Qf } * ` )},[ ` $ { ctrlKey } - D ` ]:function(Ff){const Qf=Ff.getSelection();Ff.replaceSelection( ` ~ ~ $ { Qf } ~ ~ ` )},[ ` $ { ctrlKey } - K ` ]:function(Ff){const Qf=Ff.getSelection();Ff.replaceSelection( ` [ $ { Qf } ] ( ) ` )},[ ` $ { ctrlKey } - E ` ]:function(Ff){const Qf=Ff.getSelection();Ff.replaceSelection( ` \ ` ${ Qf } \` ` ) } , [ ` ${ ctrlKey } -L ` ] : function ( Ff ) { const Qf = Ff . getSelection ( ) ; Ff . replaceSelection ( ` \` ${ Qf } \` ` ) } } } ) , rd . value . on ( "change" , Cf => { clearTimeout ( Xd . value ) , Xd . value = setTimeout ( ( ) => { Md ( ) , sd . value = Cf . getValue ( ) } , 300 ) } ) , rd . value . on ( "paste" , ( Cf , Ff ) => { if ( ! ( ! ( Ff . clipboardData && Ff . clipboardData . items ) || Rd . value ) ) for ( let Qf = 0 , Uf = Ff . clipboardData . items . length ; Qf < Uf ; ++ Qf ) { const Lf = Ff . clipboardData . items [ Qf ] ; if ( Lf . kind === "file" ) { const wf = Lf . getAsFile ( ) ; if ( ! Qd ( wf ) ) continue ; zd ( wf ) } } } ) } const mf = ref$1 ( null ) ; function _f ( yf ) { rd . value . options . extraKeys [ yf ] ( rd . value ) } const hf = ref$1 ( null ) ; function gf ( ) { const yf = hf . value . $el , Cf = async ( { md : Uf , list : Lf } ) => { const wf = [ ... Uf . str . matchAll ( /!\[(.*?)\]\((.*?)\)/g ) || [ ] ] . filter ( Kf => Kf ) , Nf = Uf . path . match ( /.+?\// ) [ 0 ] ; ( await Promise . all ( wf . map ( Kf => new Promise ( Tf => { let [ , , bf ] = Kf ; bf = bf . replace ( /^.\// , "" ) ; const { file : Bf } = Lf . find ( Wf => Wf . path === ` ${ Nf } ${ bf } ` ) || { } ; zd ( Bf , Wf => { Tf ( { matchStr : bf , url : Wf } ) } ) } ) ) ) ) . forEach ( Kf => { Uf . str = Uf . str . replace ( ` ](./ ${ Kf . matchStr } ) ` , ` ]( ${ Kf . url } ) ` ) . replace ( ` ]( ${ Kf . matchStr } ) ` , ` ]( ${ Kf . url } ) ` ) } ) , rd . value . setValue ( Uf . str ) } ; yf . ondragover = Uf => Uf . preventDefault ( ) , yf . ondrop = async Uf => { Uf . preventDefault ( ) ; for ( const Lf of Uf . dataTransfer . items ) Lf . getAsFileSystemHandle ( ) . then ( async wf => { if ( wf . kind === "directory" ) { const Nf = await Qf ( wf ) , Zf = await Ff ( { list : Nf } ) ; Cf ( { md : Zf , list : Nf } ) } else { const Nf = await wf . getFile ( ) ; console . log ( "file" , Nf ) } } ) } ; async function Ff ( { list : Uf } ) { return new Promise ( Lf => { const { path : wf , file : Nf } = Uf . find ( Kf => Kf . path . match ( /\.md$/ ) ) , Zf = new FileReader ; Zf . readAsText ( Nf , "UTF-8" ) , Zf . onload = Kf => { Lf ( { str : Kf . target . result , file : Nf , path : wf } ) } } ) } async function Qf ( Uf ) { const Lf = [ ] ; let wf = "" ; try { const Nf = [ Uf ] ; for ( const Zf of Nf ) { wf += ` ${ Zf . name } / ` ; for await ( const [ , Kf ] of Zf ) Kf . kind === "file" ? Lf . push ( { path : wf + Kf . name , file : await Kf . getFile ( ) } ) : ( Lf . push ( { path : ` ${ wf + Kf . name } / ` } ) , Nf . push ( Kf ) ) } } catch ( Nf ) { console . error ( Nf ) } return Lf } } return onMounted ( ( ) => { df ( ) , Md ( ) , gf ( ) } ) , ( yf , Cf ) => { const Ff = ElCol , Qf = ElRow ; return openBlock ( ) , createElementBlock ( "div" , { ref _key : "container" , ref : mf , class : "container flex flex-col" } , [ createVNode ( EditorHeader , { onAddFormat : _f , onFormatContent : unref ( _d ) , onStartCopy : Ud , onEndCopy : Gd } , null , 8 , [ "onFormatContent" ] ) , createBaseVNode ( "main" , _hoisted _1 , [ createVNode ( Qf , { class : "container-main-section h-full border-1" } , { default : withCtx ( ( ) => [ createVNode ( Ff , { ref _key : "codeMirrorWrapper" , ref : hf , span : unref ( od ) ? 8 : 12 , class : normalizeClass ( [ "codeMirror-wrapper border-r-1" , { "order-1" : ! unref ( qa ) . isEditOnLeft } ] ) } , { default : withCtx ( ( ) => [ createVNode ( unref ( _sfc _main$7 ) , null , { default : withCtx ( ( ) => [ createVNode ( unref ( _sfc _main$6 ) , null , { default : withCtx ( ( ) => Cf [ 7 ] || ( Cf [ 7 ] = [ createBaseVNode ( "textarea" , { id : "editor" , type : "textarea" , placeholder : "Your markdown text here." } , null , - 1 ) ] ) ) , _ : 1 } ) , createVNode ( unref ( _sfc _main$5 ) , { class : "w-64" } , { default : withCtx ( ( ) => [ createVNode ( unref ( _sfc _main$4 ) , { inset : "" , onClick : Cf [ 0 ] || ( Cf [ 0 ] = Uf => unref ( Nd ) ( ) ) } , { default : withCtx ( ( ) => Cf
` ;kd.replaceSelection(Gd+Gd,null),Ad(kd,-1),Pd=kd.listSelections();for(var Qd=0;Qd<Pd.length;Qd++){var Vd=Pd[Qd].head.line;kd.indentLine(Vd,null,!0),kd.indentLine(Vd+1,null,!0)}})}function Ad(kd,Od){for(var Md=[],Pd=kd.listSelections(),Fd=0,Ud=0;Ud<Pd.length;Ud++){var Gd=Pd[Ud];Gd.head==kd.getCursor()&&(Fd=Ud);var Qd=Gd.head.ch||Od>0?{line:Gd.head.line,ch:Gd.head.ch+Od}:{line:Gd.head.line-1};Md.push({anchor:Qd,head:Qd})}kd.setSelections(Md,Fd)}function Td(kd){var Od=ed.cmpPos(kd.anchor,kd.head)>0;return{anchor:new rd(kd.anchor.line,kd.anchor.ch+(Od?-1:1)),head:new rd(kd.head.line,kd.head.ch+(Od?1:-1))}}function Nd(kd,Od){var Md=ud(kd);if(!Md||kd.getOption("disableInput"))return ed.Pass;var Pd=sd(Md,"pairs"),Fd=Pd.indexOf(Od);if(Fd==-1)return ed.Pass;for(var Ud=sd(Md,"closeBefore"),Gd=sd(Md,"triples"),Qd=Pd.charAt(Fd+1)==Od,Vd=kd.listSelections(),zd=Fd%2==0,Xd,df=0;df<Vd.length;df++){var mf=Vd[df],_f=mf.head,hf,gf=kd.getRange(_f,rd(_f.line,_f.ch+1));if(zd&&!mf.empty())hf="surround";else if((Qd||!zd)&&gf==Od)Qd&&Bd(kd,_f)?hf="both":Gd.indexOf(Od)>=0&&kd.getRange(_f,rd(_f.line,_f.ch+3))==Od+Od+Od?hf="skipThree":hf="skip";else if(Qd&&_f.ch>1&&Gd.indexOf(Od)>=0&&kd.getRange(rd(_f.line,_f.ch-2),_f)==Od+Od){if(_f.ch>2&&/ \b string/.test(kd.getTokenTypeAt(rd(_f.line,_f.ch-2))))return ed.Pass;hf="addFour"}else if(Qd){var yf=_f.ch==0?" ":kd.getRange(rd(_f.line,_f.ch-1),_f);if(!ed.isWordChar(gf)&&yf!=Od&&!ed.isWordChar(yf))hf="both";else return ed.Pass}else if(zd&&(gf.length===0||/ \s /.test(gf)||Ud.indexOf(gf)>-1))hf="both";else return ed.Pass;if(!Xd)Xd=hf;else if(Xd!=hf)return ed.Pass}var Cf=Fd%2?Pd.charAt(Fd-1):Od,Ff=Fd%2?Od:Pd.charAt(Fd+1);kd.operation(function(){if(Xd=="skip")Ad(kd,1);else if(Xd=="skipThree")Ad(kd,3);else if(Xd=="surround"){for(var Qf=kd.getSelections(),Uf=0;Uf<Qf.length;Uf++)Qf[Uf]=Cf+Qf[Uf]+Ff;kd.replaceSelections(Qf,"around"),Qf=kd.listSelections().slice();for(var Uf=0;Uf<Qf.length;Uf++)Qf[Uf]=Td(Qf[Uf]);kd.setSelections(Qf)}else Xd=="both"?(kd.replaceSelection(Cf+Ff,null),kd.triggerElectric(Cf+Ff),Ad(kd,-1)):Xd=="addFour"&&(kd.replaceSelection(Cf+Cf+Cf+Cf,"before"),Ad(kd,1))})}function Rd(kd,Od){var Md=kd.getRange(rd(Od.line,Od.ch-1),rd(Od.line,Od.ch+1));return Md.length==2?Md:null}function Bd(kd,Od){var Md=kd.getTokenAt(rd(Od.line,Od.ch+1));return/ \b string/.test(Md.type)&&Md.start==Od.ch&&(Od.ch==0||!/ \b string/.test(kd.getTokenTypeAt(Od)))}})})();(function(Ra,qa){(function(ed){ed(requireCodemirror())})(function(ed){var td=/MSIE \d /.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),rd=ed.Pos,sd={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function od(Ad){return Ad&&Ad.bracketRegex||/[(){}[ \] ]/}function ld(Ad,Td,Nd){var Rd=Ad.getLineHandle(Td.line),Bd=Td.ch-1,kd=Nd&&Nd.afterCursor;kd==null&&(kd=/(^| )cm-fat-cursor( $ | )/.test(Ad.getWrapperElement().className));var Od=od(Nd),Md=!kd&&Bd>=0&&Od.test(Rd.text.charAt(Bd))&&sd[Rd.text.charAt(Bd)]||Od.test(Rd.text.charAt(Bd+1))&&sd[Rd.text.charAt(++Bd)];if(!Md)return null;var Pd=Md.charAt(1)==">"?1:-1;if(Nd&&Nd.strict&&Pd>0!=(Bd==Td.ch))return null;var Fd=Ad.getTokenTypeAt(rd(Td.line,Bd+1)),Ud=cd(Ad,rd(Td.line,Bd+(Pd>0?1:0)),Pd,Fd,Nd);return Ud==null?null:{from:rd(Td.line,Bd),to:Ud&&Ud.pos,match:Ud&&Ud.ch==Md.charAt(0),forward:Pd>0}}function cd(Ad,Td,Nd,Rd,Bd){for(var kd=Bd&&Bd.maxScanLineLength||1e4,Od=Bd&&Bd.maxScanLines||1e3,Md=[],Pd=od(Bd),Fd=Nd>0?Math.min(Td.line+Od,Ad.lastLine()+1):Math.max(Ad.firstLine()-1,Td.line-Od),Ud=Td.line;Ud!=Fd;Ud+=Nd){var Gd=Ad.getLine(Ud);if(Gd){var Qd=Nd>0?0:Gd.length-1,Vd=Nd>0?Gd.length:-1;if(!(Gd.length>kd))for(Ud==Td.line&&(Qd=Td.ch-(Nd<0?1:0));Qd!=Vd;Qd+=Nd){var zd=Gd.charAt(Qd);if(Pd.test(zd)&&(Rd===void 0||(Ad.getTokenTypeAt(rd(Ud,Qd+1))||"")==(Rd||""))){var Xd=sd[zd];if(Xd&&Xd.charAt(1)==">"==Nd>0)Md.push(zd);else if(Md.length)Md.pop();else return{pos:rd(Ud,Qd),ch:zd}}}}}return Ud-Nd==(Nd>0?Ad.lastLine():Ad.firstLine())?!1:null}function ud(Ad,Td,Nd){for(var Rd=Ad.state.matchBrackets.maxHighlightLineLength||1e3,Bd=Nd&&Nd.highlightNonMatching,kd=[],Od=Ad.listSelections(