2025-10-10 17:31:06 +00:00
var $d = Object . defineProperty ; var Fd = ( t , e , r ) => e in t ? $d ( t , e , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : r } ) : t [ e ] = r ; var We = ( t , e , r ) => ( Fd ( t , typeof e != "symbol" ? e + "" : e , r ) , r ) ; ( function ( ) { const e = document . createElement ( "link" ) . relList ; if ( e && e . supports && e . supports ( "modulepreload" ) ) return ; for ( const i of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) n ( i ) ; new MutationObserver ( i => { for ( const s of i ) if ( s . type === "childList" ) for ( const a of s . addedNodes ) a . tagName === "LINK" && a . rel === "modulepreload" && n ( a ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function r ( i ) { const s = { } ; return i . integrity && ( s . integrity = i . integrity ) , i . referrerPolicy && ( s . referrerPolicy = i . referrerPolicy ) , i . crossOrigin === "use-credentials" ? s . credentials = "include" : i . crossOrigin === "anonymous" ? s . credentials = "omit" : s . credentials = "same-origin" , s } function n ( i ) { if ( i . ep ) return ; i . ep = ! 0 ; const s = r ( i ) ; fetch ( i . href , s ) } } ) ( ) ; / * *
2025-10-10 05:04:03 +00:00
* @ vue / shared v3 . 5.20
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2025-10-10 17:47:27 +00:00
* * //*! #__NO_SIDE_EFFECTS__ */function ka(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const Ke={},Nn=[],rr=()=>{},_c=()=>!1,Oi=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ta=t=>t.startsWith("onUpdate:"),xt=Object.assign,Ea=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Bd=Object.prototype.hasOwnProperty,Be=(t,e)=>Bd.call(t,e),Ce=Array.isArray,Dn=t=>_i(t)==="[object Map]",Lc=t=>_i(t)==="[object Set]",Ne=t=>typeof t=="function",dt=t=>typeof t=="string",en=t=>typeof t=="symbol",st=t=>t!==null&&typeof t=="object",zc=t=>(st(t)||Ne(t))&&Ne(t.then)&&Ne(t.catch),$c=Object.prototype.toString,_i=t=>$c.call(t),Pd=t=>_i(t).slice(8,-1),Fc=t=>_i(t)==="[object Object]",Aa=t=>dt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,t0=ka(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Li=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Hd=/-(\w)/g,Kr=Li(t=>t.replace(Hd,(e,r)=>r?r.toUpperCase():"")),qd=/\B([A-Z])/g,tn=Li(t=>t.replace(qd,"-$1").toLowerCase()),Bc=Li(t=>t.charAt(0).toUpperCase()+t.slice(1)),ls=Li(t=>t?`on${Bc(t)}`:""),Gr=(t,e)=>!Object.is(t,e),J0=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},Pc=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},qs=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Fo;const zi=()=>Fo||(Fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zn(t){if(Ce(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],i=dt(n)?Wd(n):zn(n);if(i)for(const s in i)e[s]=i[s]}return e}else if(dt(t)||st(t))return t}const jd=/;(?![^(]*\))/g,Ud=/:([^]+)/,Vd=/\/\*[^]*?\*\//g;function Wd(t){const e={};return t.replace(Vd,"").split(jd).forEach(r=>{if(r){const n=r.split(Ud);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function $n(t){let e="";if(dt(t))e=t;else if(Ce(t))for(let r=0;r<t.length;r++){const n=$n(t[r]);n&&(e+=n+" ")}else if(st(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}const Gd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Kd=ka(Gd);function Hc(t){return!!t||t===""}const qc=t=>!!(t&&t.__v_isRef===!0),dr=t=>dt(t)?t:t==null?"":Ce(t)||st(t)&&(t.toString===$c||!Ne(t.toString))?qc(t)?dr(t.value):JSON.stringify(t,jc,2):String(t),jc=(t,e)=>qc(e)?jc(t,e.value):Dn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],s)=>(r[cs(n,s)+" =>"]=i,r),{})}:Lc(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>cs(r))}:en(e)?cs(e):st(e)&&!Ce(e)&&!Fc(e)?String(e):e,cs=(t,e="")=>{var r;return en(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/**
2025-10-10 05:04:03 +00:00
* @ vue / reactivity v3 . 5.20
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2025-10-10 17:47:27 +00:00
* * / l e t _ t ; c l a s s Y d { c o n s t r u c t o r ( e = ! 1 ) { t h i s . d e t a c h e d = e , t h i s . _ a c t i v e = ! 0 , t h i s . _ o n = 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 = _ t , ! e & & _ t & & ( t h i s . i n d e x = ( _ t . s c o p e s | | ( _ t . 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 e , r ; i f ( t h i s . s c o p e s ) f o r ( e = 0 , r = t h i s . s c o p e s . l e n g t h ; e < r ; e + + ) t h i s . s c o p e s [ e ] . p a u s e ( ) ; f o r ( e = 0 , r = t h i s . e f f e c t s . l e n g t h ; e < r ; e + + ) t h i s . e f f e c t s [ e ] . 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 e , r ; i f ( t h i s . s c o p e s ) f o r ( e = 0 , r = t h i s . s c o p e s . l e n g t h ; e < r ; e + + ) t h i s . s c o p e s [ e ] . r e s u m e ( ) ; f o r ( e = 0 , r = t h i s . e f f e c t s . l e n g t h ; e < r ; e + + ) t h i s . e f f e c t s [ e ] . r e s u m e ( ) } } r u n ( e ) { i f ( t h i s . _ a c t i v e ) { c o n s t r = _ t ; t r y { r e t u r n _ t = t h i s , e ( ) } f i n a l l y { _ t = r } } } o n ( ) { + + t h i s . _ o n = = = 1 & & ( t h i s . p r e v S c o p e = _ t , _ t = t h i s ) } o f f ( ) { t h i s . _ o n > 0 & & - - t h i s . _ o n = = = 0 & & ( _ t = t h i s . p r e v S c o p e , t h i s . p r e v S c o p e = v o i d 0 ) } s t o p ( e ) { i f ( t h i s . _ a c t i v e ) { t h i s . _ a c t i v e = ! 1 ; l e t r , n ; f o r ( r = 0 , n = t h i s . e f f e c t s . l e n g t h ; r < n ; r + + ) t h i s . e f f e c t s [ r ] . s t o p ( ) ; f o r ( t h i s . e f f e c t s . l e n g t h = 0 , r = 0 , n = t h i s . c l e a n u p s . l e n g t h ; r < n ; r + + ) t h i s . c l e a n u p s [ r ] ( ) ; i f ( t h i s . c l e a n u p s . l e n g t h = 0 , t h i s . s c o p e s ) { f o r ( r = 0 , n = t h i s . s c o p e s . l e n g t h ; r < n ; r + + ) t h i s . s c o p e s [ r ] . s t o p ( ! 0 ) ; t h i s . s c o p e s . l e n g t h = 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 & & ! e ) { c o n s t i = t h i s . p a r e n t . s c o p e s . p o p ( ) ; i & & i ! = = 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 ] = i , i . 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 } } } f u n c t i o n X d ( ) { r e t u r n _ t } l e t Z e ; c o n s t u s = n e w W e a k S e t ; c l a s s U c { c o n s t r u c t o r ( e ) { t h i s . f n = e , 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 = 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 , _ t & & _ t . a c t i v e & & _ t . 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 , u s . h a s ( t h i s ) & & ( u 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 | | W c ( 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 , B o ( t h i s ) , G c ( t h i s ) ; c o n s t e = Z e , r = n r ; Z e = t h i s , n r = ! 0 ; t r y { r e t u r n t h i s . f n ( ) } f i n a l l y { K c ( t h i s ) , Z e = e , n r = r , 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 e = t h i s . d e p s ; e ; e = e . n e x t D e p ) N a ( e ) ; 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 , B o ( 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 ? u 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 ( ) { j s ( 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 j s ( t h i s ) } } l e t V c = 0 , r 0 , n 0 ; f u n c t i o n W c ( t , e = ! 1 ) { i f ( t . f l a g s | = 8 , e ) { t . n e x t = n 0 , n 0 = t ; r e t u r n } t . n e x t = r 0 , r 0 = t } f u n c t i o n C a ( ) { V c + + } f u n c t i o n M a ( ) { i f ( - - V c > 0 ) r e t u r n ; i f ( n 0 ) { l e t e = n 0 ; f o r ( n 0 = v o i d 0 ; e ; ) { c o n s t r = e . n e x t ; e . n e x t = v o i d 0 , e . f l a g s & = - 9 , e = r } } l e t t ; f o r ( ; r 0 ; ) { l e t e = r 0 ; f o r ( r 0 = v o i d 0 ; e ; ) { c o n s t r = e . n e x t ; i f ( e . n e x t = v o i d 0 , e . f l a g s & = - 9 , e . f l a g s & 1 ) t r y { e . t r i g g e r ( ) } c a t c h ( n ) { t | | ( t = n ) } e = r } } i f ( t ) t h r o w t } f u n c t i o n G c ( t ) { f o r ( l e t e = t . d e p s ; e ; e = e . n e x t D e p ) e . v e r s i o n = - 1 , e . p r e v A c t i v e L i n k = e . d e p . a c t i v e L i n k , e . d e p . a c t i v e L i n k = e } f u n c t i o n K c ( t ) { l e t e , r = t . d e p s T a i l , n = r ; f o r ( ; n ; ) { c o n s t i = n . p r e v D e p ; n . v e r s i o n = = = - 1 ? ( n = = = r & & ( r = i ) , N a ( n ) , J d ( n ) ) : e = n , n . d e p . a c t i v e L i n k = n . p r e v A c t i v e L i n k , n . p r e v A c t i v e L i n k = v o i d 0 , n = i } t . d e p s = e , t . d e p s T a i l = r } f u n c t i o n j s ( t ) { f o r ( l e t e = t . d e p s ; e ; e = e . n e x t D e p ) i f ( e . d e p . v e r s i o n ! = = e . v e r s i o n | | e . d e p . c o m p u t e d & & ( Y c ( e . d e p . c o m p u t e d ) | | e . d e p . v e r s i o n ! = = e . v e r s i o n ) ) r e t u r n ! 0 ; r e t u r n ! ! t . _ d i r t y } f u n c t i o n Y c ( t ) { i f ( t . f l a g s & 4 & & ! ( t . f l a g s & 1 6 ) | | ( t . f l a g s & = - 1 7 , t . g l o b a l V e r s i o n = = = d 0 ) | | ( t . g l o b a l V e r s i o n = d 0 , ! t . i s S S R & & t . f l a g s & 1 2 8 & & ( ! t . d e p s & & ! t . _ d i r t y | | ! j s ( t ) ) ) ) r e t u r n ; t . f l a g s | = 2 ; c o n s t e = t . d e p , r = Z e , n = n r ; Z e = t , n r = ! 0 ; t r y { G c ( t ) ; c o n s t i = t . f n ( t . _ v a l u e ) ; ( e . v e r s i o n = = = 0 | | G r ( i , t . _ v a l u e ) ) & & ( t . f l a g s | = 1 2 8 , t . _ v a l u e = i , e . v e r s i o n + + ) } c a t c h ( i ) { t h r o w e . v e r s i o n + + , i } f i n a l l y { Z e = r , n r = n , K c ( t ) , t . f l a g s & = - 3 } } f u n c t i o n N a ( t , e = ! 1 ) { c o n s t { d e p : r , p r e v S u b : n , n e x t S u b : i } = t ; i f ( n & & ( n . n e x t S u b = i , t . p r e v S u b = v o i d 0 ) , i & & ( i . p r e v S u b = n , t . n e x t S u b = v o i d 0 ) , r . s u b s = = = t & & ( r . s u b s = n , ! n & & r . c o m p u t e d ) ) { r . c o m p u t e d . f l a g s & = - 5 ; f o r ( l e t s = r . c o m p u t e d . d e p s ; s ; s = s . n e x t D e p ) N a ( s , ! 0 ) } ! e & & ! - - r . s c & & r . m a p & & r . m a p . d e l e t e ( r . k e y ) } f u n c t i o n J d ( t ) { c o n s t { p r e v D e p : e , n e x t D e p : r } = t ; e & & ( e . n e x t D e p = r , t . p r e v D e p = v o i d 0 ) , r & & ( r . p r e v D e p = e , t . n e x t D e p = v o i d 0 ) } l e t n r = ! 0 ; c o n s t X c = [ ] ; f u n c t i o n R r ( ) { X c . p u s h ( n r ) , n r = ! 1 } f u n c t i o n O r ( ) { c o n s t t = X c . p o p ( ) ; n r = t = = = v o i d 0 ? ! 0 : t } f u n c t i o n B o ( t ) { c o n s t { c l e a n u p : e } = t ; i f ( t . c l e a n u p = v o i d 0 , e ) { c o n s t r = Z e ; Z e = v o i d 0 ; t r y { e ( ) } f i n a l l y { Z e = r } } } l e t d 0 = 0 ; c l a s s Z d { c o n s t r u c t o r ( e , r ) { t h i s . s u b = e , t h i s . d e p = r , t h i s . v e r s i o n = r . v e r s i o n , t h i s . n e x t D e p = t h i s . p r e v D e p = t
2025-10-10 05:04:03 +00:00
* @ vue / runtime - core v3 . 5.20
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2025-10-10 17:47:27 +00:00
* * /function w0(t,e,r,n){try{return n?t(...n):t()}catch(i){Fi(i,e,r)}}function gr(t,e,r,n){if(Ne(t)){const i=w0(t,e,r,n);return i&&zc(i)&&i.catch(s=>{Fi(s,e,r)}),i}if(Ce(t)){const i=[];for(let s=0;s<t.length;s++)i.push(gr(t[s],e,r,n));return i}}function Fi(t,e,r,n=!0){const i=e?e.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=e&&e.appContext.config||Ke;if(e){let o=e.parent;const l=e.proxy,c=`https:/ / vuejs . org / error - reference / # runtime - $ { r } ` ;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,l,c)===!1)return}o=o.parent}if(s){Rr(),w0(s,null,10,[t,l,c]),Or();return}}Eh(t,r,i,n,a)}function Eh(t,e,r,n=!0,i=!1){if(i)throw t;console.error(t)}const Mt=[];let ur=-1;const Rn=[];let jr=null,En=0;const au=Promise.resolve();let di=null;function An(t){const e=di||au;return t?e.then(this?t.bind(this):t):e}function Ah(t){let e=ur+1,r=Mt.length;for(;e<r;){const n=e+r>>>1,i=Mt[n],s=f0(i);s<t||s===t&&i.flags&2?e=n+1:r=n}return e}function La(t){if(!(t.flags&1)){const e=f0(t),r=Mt[Mt.length-1];!r||!(t.flags&2)&&e>=f0(r)?Mt.push(t):Mt.splice(Ah(e),0,t),t.flags|=1,ou()}}function ou(){di||(di=au.then(cu))}function Ch(t){Ce(t)?Rn.push(...t):jr&&t.id===-1?jr.splice(En+1,0,t):t.flags&1||(Rn.push(t),t.flags|=1),ou()}function Ho(t,e,r=ur+1){for(;r<Mt.length;r++){const n=Mt[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Mt.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function lu(t){if(Rn.length){const e=[...new Set(Rn)].sort((r,n)=>f0(r)-f0(n));if(Rn.length=0,jr){jr.push(...e);return}for(jr=e,En=0;En<jr.length;En++){const r=jr[En];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}jr=null,En=0}}const f0=t=>t.id==null?t.flags&2?-1:1/0:t.id;function cu(t){const e=rr;try{for(ur=0;ur<Mt.length;ur++){const r=Mt[ur];r&&!(r.flags&8)&&(r.flags&4&&(r.flags&=-2),w0(r,r.i,r.i?15:14),r.flags&4||(r.flags&=-2))}}finally{for(;ur<Mt.length;ur++){const r=Mt[ur];r&&(r.flags&=-2)}ur=-1,Mt.length=0,lu(),di=null,(Mt.length||Rn.length)&&cu()}}let Vt=null,uu=null;function hi(t){const e=Vt;return Vt=t,uu=t&&t.type.__scopeId||null,e}function Mh(t,e=Vt,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Yo(-1);const s=hi(e);let a;try{a=t(...i)}finally{hi(s),n._d&&Yo(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function fi(t,e){if(Vt===null)return t;const r=qi(Vt),n=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[s,a,o,l=Ke]=e[i];s&&(Ne(s)&&(s={mounted:s,updated:s}),s.deep&&Cr(a),n.push({dir:s,instance:r,value:a,oldValue:void 0,arg:o,modifiers:l}))}return t}function an(t,e,r,n){const i=t.dirs,s=e&&e.dirs;for(let a=0;a<i.length;a++){const o=i[a];s&&(o.oldValue=s[a].value);let l=o.dir[n];l&&(Rr(),gr(l,r,8,[t.el,o,t,e]),Or())}}const Nh=Symbol("_vte"),Dh=t=>t.__isTeleport,Ih=Symbol("_leaveCb");function za(t,e){t.shapeFlag&6&&t.component?(t.transition=e,za(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function du(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function i0(t,e,r,n,i=!1){if(Ce(t)){t.forEach((v,w)=>i0(v,e&&(Ce(e)?e[w]:e),r,n,i));return}if(s0(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&i0(t,e,r,n.component.subTree);return}const s=n.shapeFlag&4?qi(n.component):n.el,a=i?null:s,{i:o,r:l}=t,c=e&&e.r,u=o.refs===Ke?o.refs={}:o.refs,f=o.setupState,p=Fe(f),g=f===Ke?_c:v=>Be(p,v);if(c!=null&&c!==l){if(dt(c))u[c]=null,g(c)&&(f[c]=null);else if(Tt(c)){c.value=null;const v=e;v.k&&(u[v.k]=null)}}if(Ne(l))w0(l,o,12,[a,u]);else{const v=dt(l),w=Tt(l);if(v||w){const y=()=>{if(t.f){const C=v?g(l)?f[l]:u[l]:l.value;if(i)Ce(C)&&Ea(C,s);else if(Ce(C))C.includes(s)||C.push(s);else if(v)u[l]=[s],g(l)&&(f[l]=u[l]);else{const S=[s];l.value=S,t.k&&(u[t.k]=S)}}else v?(u[l]=a,g(l)&&(f[l]=a)):w&&(l.value=a,t.k&&(u[t.k]=a))};a?(y.id=-1,Ft(y,r)):y()}}}zi().requestIdleCallback;zi().cancelIdleCallback;const s0=t=>!!t.type.__asyncLoader,hu=t=>t.type.__isKeepAlive;function Rh(t,e){fu(t,"a",e)}function Oh(t,e){fu(t,"da",e)}function fu(t,e,r=Nt){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.p
2025-10-10 05:04:03 +00:00
* @ vue / runtime - dom v3 . 5.20
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2025-10-10 17:47:27 +00:00
* * /let Zs;const el=typeof window<"u"&&window.trustedTypes;if(el)try{Zs=el.createPolicy("vue",{createHTML:t=>t})}catch{}const Fu=Zs?t=>Zs.createHTML(t):t=>t,Lf="http:/ / www . w3 . org / 2000 / svg ",zf=" http : //www.w3.org/1998/Math/MathML",kr=typeof document<"u"?document:null,tl=kr&&kr.createElement("template"),$f={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e==="svg"?kr.createElementNS(Lf,t):e==="mathml"?kr.createElementNS(zf,t):r?kr.createElement(t,{is:r}):kr.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>kr.createTextNode(t),createComment:t=>kr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>kr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,s){const a=r?r.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===s||!(i=i.nextSibling)););else{tl.innerHTML=Fu(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const o=tl.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},Ff=Symbol("_vtc");function Bf(t,e,r){const n=t[Ff];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const gi=Symbol("_vod"),Bu=Symbol("_vsh"),Pf={name:"show",beforeMount(t,{value:e},{transition:r}){t[gi]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Gn(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Gn(t,!0),n.enter(t)):n.leave(t,()=>{Gn(t,!1)}):Gn(t,e))},beforeUnmount(t,{value:e}){Gn(t,e)}};function Gn(t,e){t.style.display=e?t[gi]:"none",t[Bu]=!e}const Hf=Symbol(""),qf=/(^|;)\s*display\s*:/;function jf(t,e,r){const n=t.style,i=dt(r);let s=!1;if(r&&!i){if(e)if(dt(e))for(const a of e.split(";")){const o=a.slice(0,a.indexOf(":")).trim();r[o]==null&&ti(n,o,"")}else for(const a in e)r[a]==null&&ti(n,a,"");for(const a in r)a==="display"&&(s=!0),ti(n,a,r[a])}else if(i){if(e!==r){const a=n[Hf];a&&(r+=";"+a),n.cssText=r,s=qf.test(r)}}else e&&t.removeAttribute("style");gi in t&&(t[gi]=s?n.display:"",t[Bu]&&(n.display="none"))}const rl=/\s*!important$/;function ti(t,e,r){if(Ce(r))r.forEach(n=>ti(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=Uf(t,e);rl.test(r)?t.setProperty(tn(n),r.replace(rl,""),"important"):t[n]=r}}const nl=["Webkit","Moz","ms"],gs={};function Uf(t,e){const r=gs[e];if(r)return r;let n=Kr(e);if(n!=="filter"&&n in t)return gs[e]=n;n=Bc(n);for(let i=0;i<nl.length;i++){const s=nl[i]+n;if(s in t)return gs[e]=s}return e}const il="http://www.w3.org/1999/xlink";function sl(t,e,r,n,i,s=Kd(e)){n&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(il,e.slice(6,e.length)):t.setAttributeNS(il,e,r):r==null||s&&!Hc(r)?t.removeAttribute(e):t.setAttribute(e,s?"":en(r)?String(r):r)}function al(t,e,r,n,i){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?Fu(r):r);return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?t.getAttribute("value")||"":t.value,l=r==null?t.type==="checkbox"?"on":"":String(r);(o!==l||!("_value"in t))&&(t.value=l),r==null&&t.removeAttribute(e),t._value=r;return}let a=!1;if(r===""||r==null){const o=typeof t[e];o==="boolean"?r=Hc(r):r==null&&o==="string"?(r="",a=!0):o==="number"&&(r=0,a=!0)}try{t[e]=r}catch{}a&&t.removeAttribute(i||e)}function Cn(t,e,r,n){t.addEventListener(e,r,n)}function Vf(t,e,r,n){t.removeEventListener(e,r,n)}const ol=Symbol("_vei");function Wf(t,e,r,n,i=null){const s=t[ol]||(t[ol]={}),a=s[e];if(n&&a)a.value=n;else{const[o,l]=Gf(e);if(n){const c=s[e]=Xf(n,i);Cn(t,o,c,l)}else a&&(Vf(t,o,a,l),s[e]=void 0)}}const ll=/(?:Once|Passive|Capture)$/;function Gf(t
2025-10-10 08:29:32 +00:00
color : $ { i . color } ;
padding : $ { i . padding } ;
margin : $ { i . margin } ;
font : $ { i . font } ;
background - color : $ { i . backgroundColor !== "rgba(0, 0, 0, 0)" && i . backgroundColor } ;
2025-10-10 17:47:27 +00:00
border - radius : $ { i . borderRadius } ; ` ,this.direction===0&&(e.style.right="0"),qu(e),this.bus.fire("operation",{name:"beginEdit",obj:t.nodeObj}),e.addEventListener("keydown",s=>{s.stopPropagation();const a=s.key;if(a==="Enter"||a==="Tab"){if(s.shiftKey)return;s.preventDefault(),e.blur(),this.container.focus()}}),e.addEventListener("blur",()=>{var s;if(!e)return;const a=((s=e.textContent)==null?void 0:s.trim())||"";a===""?r.topic=n:(r.topic=a,this.markdown?t.text.innerHTML=this.markdown(r.topic,r):t.text.textContent=a),e.remove(),Ui.call(this,t,r),a!==n&&(this.linkDiv(),this.bus.fire("operation",{name:"finishEdit",obj:r,origin:n}))})},Ya=function(t){const e=Pt.createElement("me-epd");return e.expanded=t!==!1,e.className=t!==!1?"minus":"",e},pn=document,Kt="http://www.w3.org/2000/svg",ta=function(t,e,r,n={}){const{anchor:i="middle",color:s,dataType:a}=n,o=document.createElementNS(Kt,"text");return et(o,{"text-anchor":i,x:e+"",y:r+"",fill:s||(i==="middle"?"rgb(235, 95, 82)":"#666")}),a&&(o.dataset.type=a),o.innerHTML=t,o},ju=function(t,e,r){const n=pn.createElementNS(Kt,"path");return et(n,{d:t,stroke:e||"#666",fill:"none","stroke-width":r}),n},Qn=function(t){const e=pn.createElementNS(Kt,"svg");return e.setAttribute("class",t),e.setAttribute("overflow","visible"),e},ml=function(){const t=pn.createElementNS(Kt,"line");return t.setAttribute("stroke","#4dc4ff"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","2"),t.setAttribute("opacity","0.45"),t},Mp=function(t,e,r,n){const i=pn.createElementNS(Kt,"g");return[{name:"line",d:t},{name:"arrow1",d:e},{name:"arrow2",d:r}].forEach((s,a)=>{const o=s.d,l=pn.createElementNS(Kt,"path"),c={d:o,stroke:(n==null?void 0:n.stroke)||"rgb(235, 95, 82)",fill:"none","stroke-linecap":(n==null?void 0:n.strokeLinecap)||"cap","stroke-width":String((n==null?void 0:n.strokeWidth)||"2")};(n==null?void 0:n.opacity)!==void 0&&(c.opacity=String(n.opacity)),et(l,c),a===0&&l.setAttribute("stroke-dasharray",(n==null?void 0:n.strokeDasharray)||"8,2");const u=pn.createElementNS(Kt,"path");et(u,{d:o,stroke:"transparent",fill:"none","stroke-width":"15"}),i.appendChild(u),i.appendChild(l),i[s.name]=l}),i},Uu=function(t,e,r){if(!e)return;const n=pn.createElement("div");t.nodes.appendChild(n);const i=e.innerHTML;n.id="input-box",n.textContent=i,n.contentEditable="plaintext-only",n.spellcheck=!1;const s=e.getBBox();n.style.cssText= `
2025-10-10 08:29:32 +00:00
min - width : $ { Math . max ( 88 , s . width ) } px ;
2025-10-10 05:04:03 +00:00
position : absolute ;
2025-10-10 08:29:32 +00:00
left : $ { s . x } px ;
top : $ { s . y } px ;
2025-10-10 05:04:03 +00:00
padding : 2 px 4 px ;
margin : - 2 px - 4 px ;
2025-10-10 17:47:27 +00:00
` ,qu(n),t.scrollIntoView(n),n.addEventListener("keydown",a=>{a.stopPropagation();const o=a.key;if(o==="Enter"||o==="Tab"){if(a.shiftKey)return;a.preventDefault(),n.blur(),t.container.focus()}}),n.addEventListener("blur",()=>{var a;if(!n)return;const o=((a=n.textContent)==null?void 0:a.trim())||"";o===""?r.label=i:r.label=o,n.remove(),o!==i&&(e.innerHTML=r.label,"parent"in r?t.bus.fire("operation",{name:"finishEditSummary",obj:r}):t.bus.fire("operation",{name:"finishEditArrowLabel",obj:r}))})},Np=function(t){const e=this.map.querySelector("me-root"),r=e.offsetTop,n=e.offsetLeft,i=e.offsetWidth,s=e.offsetHeight,a=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="";for(let o=0;o<a.length;o++){const l=a[o],c=l.querySelector("me-tpc"),{offsetLeft:u,offsetTop:f}=nn(this.nodes,c),p=c.offsetWidth,g=c.offsetHeight,v=l.parentNode.className,w=this.generateMainBranch({pT:r,pL:n,pW:i,pH:s,cT:f,cL:u,cW:p,cH:g,direction:v,containerHeight:this.nodes.offsetHeight}),y=this.theme.palette,C=c.nodeObj.branchColor||y[o%y.length];if(c.style.borderColor=C,this.lines.appendChild(ju(w,C,"3")),t&&t!==l)continue;const S=Qn("subLines"),T=l.lastChild;T.tagName==="svg"&&T.remove(),l.appendChild(S),Vu(this,S,C,l,v,!0)}this.renderArrow(),this.renderSummary(),this.bus.fire("linkDiv")},Vu=function(t,e,r,n,i,s){const a=n.firstChild,o=n.children[1].children;if(o.length===0)return;const l=a.offsetTop,c=a.offsetLeft,u=a.offsetWidth,f=a.offsetHeight;for(let p=0;p<o.length;p++){const g=o[p],v=g.firstChild,w=v.offsetTop,y=v.offsetLeft,C=v.offsetWidth,S=v.offsetHeight,T=v.firstChild.nodeObj.branchColor||r,D=t.generateSubBranch({pT:l,pL:c,pW:u,pH:f,cT:w,cL:y,cW:C,cH:S,direction:i,isFirst:s});e.appendChild(ju(D,T,"2"));const I=v.children[1];if(I){if(!I.expanded)continue}else continue;Vu(t,e,T,g,i)}},gl={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",linkBidirectional:"双向连接",clickTips:"请点击目标节点",summary:"摘要"},vl={cn:gl,zh_CN:gl,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",linkBidirectional:"雙向連接",clickTips:"請點擊目標節點",summary:"摘要"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",linkBidirectional:"Bidirectional Link",clickTips:"Please click the target node",summary:"Summary"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",linkBidirectional:"Двунаправленная ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",summary:"Описание"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",linkBidirectional:"双方向リンク",clickTips:"ターゲットノードをクリックしてください",summary:"概要"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",linkBidirectional:"Link bidirecional",clickTips:"Favor clicar no item alvo",summary:"Resumo"},it:{addChild:"Aggiungi figlio",addParent:"Aggiungi ge
2025-10-10 05:04:03 +00:00
. topic { font - family : Arial , sans - serif ; font - size : 14 px ; color : # 333 ; }
. markdown - content { font - size : 12 px ; line - height : 1.3 ; }
/* 表格样式 */
. markdown - table {
border - collapse : collapse ;
width : 100 % ;
margin : 4 px 0 ;
font - size : 11 px ;
border : 1 px solid # e0e0e0 ;
border - radius : 6 px ;
box - shadow : 0 2 px 8 px rgba ( 0 , 0 , 0 , 0.08 ) ;
background - color : # fafafa ;
overflow : hidden ;
white - space : normal ;
}
. markdown - table th ,
. markdown - table td {
border : 1 px solid # e0e0e0 ;
padding : 8 px 12 px ;
text - align : left ;
vertical - align : top ;
position : relative ;
white - space : normal ;
}
. markdown - table th {
background - color : # f5f5f5 ;
font - weight : 600 ;
color : # 333 ;
text - align : center ;
border - bottom : 1 px solid # d0d0d0 ;
}
. markdown - table td {
background - color : # fff ;
}
. markdown - table tr : nth - child ( even ) td {
background - color : # f8f8f8 ;
}
. markdown - table tr : hover td {
background - color : # f0f8ff ;
}
/* 移除多余的边框,保持简洁 */
. markdown - table th : not ( : last - child ) ,
. markdown - table td : not ( : last - child ) {
border - right : 1 px solid # e0e0e0 ;
}
. markdown - table tr : not ( : last - child ) td {
border - bottom : 1 px solid # e0e0e0 ;
}
2025-10-10 17:47:27 +00:00
` ,s=await e.exportSvg(!0,i);if(!s)return;const a=URL.createObjectURL(s),o=document.createElement("a");o.href=a,o.download= ` $ { n } . $ { t } ` ,o.click(),URL.revokeObjectURL(a)}catch{alert( ` 导出$ { t . toUpperCase ( ) } 失败 , 请重试 ` )}},Wp={side: $ p,left:Fp,right:Bp,full:Pp,living:Hp,zoomin:qp,zoomout:jp,exportSvg:Up},Vr=(t,e)=>{const r=document.createElement("span");return r.id=t,r.innerHTML=Wp[e],r};function Gp(t){try{const e=document.createElement("div"),r=Vr("fullscreen","full"),n=Vr("toCenter","living"),i=Vr("zoomout","zoomout"),s=Vr("zoomin","zoomin"),a=Vr("exportSvg","exportSvg");a.title="导出SVG矢量图";const o=document.createElement("span");return o.innerText="100%",e.appendChild(r),e.appendChild(n),e.appendChild(i),e.appendChild(s),e.appendChild(a),e.className="mind-elixir-toolbar rb",r.onclick=()=>{document.fullscreenElement===t.el?(document.exitFullscreen(),setTimeout(()=>{t.el.focus()},100)):(t.el.requestFullscreen(),setTimeout(()=>{},100))},n.onclick=()=>{t.toCenter()},i.onclick=()=>{t.scale(t.scaleVal-t.scaleSensitivity)},s.onclick=()=>{t.scale(t.scaleVal+t.scaleSensitivity)},a.onclick=()=>{Vp("svg")(t)},setTimeout(()=>{const l=document.getElementById("exportSvg")},1e3),e}catch{const e=document.createElement("div");return e.className="mind-elixir-toolbar rb",e}}function Kp(t){const e=document.createElement("div"),r=Vr("tbltl","left"),n=Vr("tbltr","right"),i=Vr("tblts","side");return e.appendChild(r),e.appendChild(n),e.appendChild(i),e.className="mind-elixir-toolbar lt",r.onclick=()=>{t.initLeft()},n.onclick=()=>{t.initRight()},i.onclick=()=>{t.initSide()},e}function Yp(t){try{if(!t.container)return;const e=Gp(t),r=Kp(t);t.container.append(e),t.container.append(r)}catch{}}/*! @viselect/vanilla v3.9.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */class Xp{constructor(){this._listeners=new Map,this.on=this.addEventListener,this.off=this.removeEventListener,this.emit=this.dispatchEvent}addEventListener(e,r){const n=this._listeners.get(e)??new Set;return this._listeners.set(e,n),n.add(r),this}removeEventListener(e,r){var n;return(n=this._listeners.get(e))==null||n.delete(r),this}dispatchEvent(e,...r){let n=!0;for(const i of this._listeners.get(e)??[])n=i(...r)!==!1&&n;return n}unbindAllListeners(){this._listeners.clear()}}const yl=(t,e="px")=>typeof t=="number"?t+e:t,Br=({style:t},e,r)=>{if(typeof e=="object")for(const[n,i]of Object.entries(e))i!==void 0&&(t[n]=yl(i));else r!==void 0&&(t[e]=yl(r))},wl=(t=0,e=0,r=0,n=0)=>{const i={x:t,y:e,width:r,height:n,top:e,left:t,right:t+r,bottom:e+n};return{...i,toJSON:()=>JSON.stringify(i)}},Jp=t=>{let e,r=-1,n=!1;return{next:(...i)=>{e=i,n||(n=!0,r=requestAnimationFrame(()=>{t(...e),n=!1}))},cancel:()=>{cancelAnimationFrame(r),n=!1}}},xl=(t,e,r="touch")=>{switch(r){case"center":{const n=e.left+e.width/2,i=e.top+e.height/2;return n>=t.left&&n<=t.right&&i>=t.top&&i<=t.bottom}case"cover":return e.left>=t.left&&e.top>=t.top&&e.right<=t.right&&e.bottom<=t.bottom;case"touch":return t.right>=e.left&&t.left<=e.right&&t.bottom>=e.top&&t.top<=e.bottom}},Zp=()=>matchMedia("(hover: none), (pointer: coarse)").matches,Qp=()=>"safari"in window,ia=t=>Array.isArray(t)?t:[t],Wu=t=>(e,r,n,i={})=>{(e instanceof HTMLCollection||e instanceof NodeList)&&(e=Array.from(e)),r=ia(r),e=ia(e);for(const s of e)if(s)for(const a of r)s[t](a,n,{capture:!1,...i})},Pr=Wu("addEventListener"),Qt=Wu("removeEventListener"),z0=t=>{var e;const{clientX:r,clientY:n,target:i}=((e=t.touches)==null?void 0:e[0])??t;return{x:r,y:n,target:i}},Sn=(t,e=document)=>ia(t).map(r=>typeof r=="string"?Array.from(e.querySelectorAll(r)):r instanceof Element?r:null).flat().filter(Boolean),e4=(t,e)=>e.some(r=>typeof r=="number"?t.button===r:typeof r=="object"?r.button!==t.button?!1:r.modifiers.every(n=>{switch(n){case"alt":return t.altKey;case"ctrl":return t.ctrlKey||t.metaKey;case"shift":return t.shiftKey}}):!1),{abs:ln,max:Sl,min:kl,ceil:Tl}=Math,El=(t=[])=>({stored:t,selected:[],touched:[],changed:{added:[],removed:[]}}),Gu=class extends Xp{constructor(t){var e,r,n,i,s;super(),this._selection=El(),th
2025-10-10 17:31:06 +00:00
` ),o=parseFloat(e.lineHeight)||parseFloat(e.fontSize)*1.2,l=parseFloat(e.fontSize),c=parseInt(e.paddingTop)||8,u=parseInt(e.paddingLeft)||8,f=t.offsetWidth||200,p=r+u,g=(a.length-1)*o+l+c+(parseInt(e.paddingBottom)||8),v=t.offsetHeight||100,w=Math.min(g,v),y=document.createElementNS(pt,"rect");return et(y,{x:r+"",y:n+"",rx:e.borderRadius||"8",ry:e.borderRadius||"8",width:f+"px",height:w+"px",fill:e.backgroundColor||"white",stroke:e.borderColor||"#ccc","stroke-width":e.borderWidth||"1"}),i.appendChild(y),a.forEach((C,S)=>{const T=document.createElementNS(pt,"text");et(T,{x:p+"",y:n+c+l+o*S+"","text-anchor":"start","font-family":e.fontFamily,"font-size": ` $ { e . fontSize } ` ,"font-weight": ` $ { e . fontWeight } ` ,fill: ` $ { e . color } ` }),T.innerHTML=C,i.appendChild(T)}),i}function Nl(t){if(!t)return t;let e=t.replace(/<td[^>]*>([^<]*)<br \s * \/ ?>([^<]*)< \/ td>/gi,(r,n,i)=> ` < td > $ { n } $ { i } < /td>`);return e=e.replace(/ < th [ ^ > ] * > ( [ ^ < ] * ) < br \ s * \ / ? > ( [ ^ < ] * ) < \ / th > / g i , ( r , n , i ) = > ` < t h > $ { n } $ { i } < / t h > ` ) , e = e . r e p l a c e ( / < b r \ s * \ / ? > / g i , " " ) , e = e . r e p l a c e ( / • \ s * 【 / g , " 【 " ) , e = e . r e p l a c e ( / • \ s * \ [ / g , " [ " ) , e = e . r e p l a c e ( / • \ s * ( / g , " ( " ) , e = e . r e p l a c e ( / • \ s * \ ( / g , " ( " ) , e = e . r e p l a c e ( / < ( [ ^ > ] + ) > / g , ( r , n ) = > { c o n s t i = [ " b r " , " h r " , " i m g " , " i n p u t " , " m e t a " , " l i n k " ] , s = n . s p l i t ( " " ) [ 0 ] . t o L o w e r C a s e ( ) ; r e t u r n i . i n c l u d e s ( s ) ? ` < $ { n } / > ` : r } ) , e } f u n c t i o n S s ( t , e , r , n ) { c o n s t i = d o c u m e n t . c r e a t e E l e m e n t N S ( p t , " g " ) , s = t ; l e t a = " " ; s . n o d e O b j & & s . n o d e O b j . d a n g e r o u s l y S e t I n n e r H T M L ? a = s . n o d e O b j . d a n g e r o u s l y S e t I n n e r H T M L : s . t e x t & & s . t e x t . i n n e r H T M L & & ( a = s . t e x t . i n n e r H T M L ) ; c o n s t o = a & & a ! = = t . t e x t C o n t e n t , l = a & & a . i n c l u d e s ( " < t a b l e " ) ; i f ( l ) { c o n s t c = t . o f f s e t W i d t h | | 4 0 0 , u = t . o f f s e t H e i g h t | | 2 0 0 , f = d o c u m e n t . c r e a t e E l e m e n t N S ( p t , " r e c t " ) ; e t ( f , { x : r + " " , y : n + " " , w i d t h : c + " " , h e i g h t : u + " " , f i l l : " w h i t e " , s t r o k e : " # c c c " , " s t r o k e - w i d t h " : " 1 " } ) , i . a p p e n d C h i l d ( f ) ; c o n s t p = d o c u m e n t . c r e a t e E l e m e n t N S ( p t , " f o r e i g n O b j e c t " ) ; e t ( p , { x : r + " " , y : n + " " , w i d t h : c + " " , h e i g h t : u + " " } ) ; c o n s t g = `
< div xmlns = "http://www.w3.org/1999/xhtml" style = "
width : 100 % ;
height : 100 % ;
padding : 8 px ;
box - sizing : border - box ;
overflow : hidden ;
font - family : '${(e.fontFamily||"Arial, sans-serif").replace(/"/g,""")}' ;
font - size : $ { e . fontSize || "14px" } ;
line - height : 1.4 ;
" >
$ { Nl ( a ) }
< / d i v >
` ;return p.innerHTML=g,i.appendChild(p),i}if(o&&!l){const c=Nl(a),u=t.getBoundingClientRect(),f=u.width,p=u.height;c.includes("<img"),s.nodeObj&&s.nodeObj.image;try{const I=document.createElement("div");I.innerHTML=c,I.style.cssText= `
2025-10-10 09:41:41 +00:00
position : absolute ;
top : - 9999 px ;
left : - 9999 px ;
width : $ { f } px ;
2025-10-10 17:31:06 +00:00
font - family : '${(e.fontFamily||"Arial").replace(/"/g,""")}' ;
2025-10-10 09:41:41 +00:00
font - size : $ { e . fontSize } ;
color : $ { e . color } ;
2025-10-10 17:47:27 +00:00
` ,document.body.appendChild(I);const _=(I.textContent||I.innerText||"").split( `
` ).filter(F=>F.trim());if(_.length>0){const F=parseFloat(e.fontSize)||14,G=F*1.4,W=parseInt(e.paddingTop)||8,fe=parseInt(e.paddingBottom)||8,ve=parseInt(e.paddingLeft)||8,Te=(_.length-1)*G+F+W+fe,Xe=Math.min(Te,p),ze=c.includes("<img"),rt=ze?r+f/2:r+ve,_e=n+F+W;_.forEach((pe,He)=>{const qe=document.createElementNS(pt,"text");et(qe,{x:rt+"",y:_e+G*He+"","text-anchor":ze?"middle":"start","font-family":e.fontFamily,"font-size":e.fontSize,"font-weight":e.fontWeight,fill:e.color}),qe.innerHTML=pe.trim(),i.appendChild(qe)});const Ae=document.createElementNS(pt,"rect");return et(Ae,{x:r+"",y:n+"",rx:e.borderRadius||"8",ry:e.borderRadius||"8",width:f+"px",height:Xe+"px",fill:e.backgroundColor||"white",stroke:e.borderColor||"#ccc","stroke-width":e.borderWidth||"1"}),i.insertBefore(Ae,i.firstChild),document.body.removeChild(I),i}document.body.removeChild(I)}catch{}const g=document.createElementNS(pt,"foreignObject");et(g,{x:r+"",y:n+"",width:f+"px",height:p+"px"});const v=document.createElement("div");v.innerHTML=c;const w=15,y=15,C=parseInt(e.paddingLeft)||8,S=parseInt(e.paddingRight)||8;v.style.cssText= `
2025-10-10 05:36:34 +00:00
width : 100 % ;
2025-10-10 09:41:41 +00:00
height : 100 % ;
2025-10-10 17:31:06 +00:00
font - family : '${(e.fontFamily||"Arial").replace(/"/g,""")}' ;
2025-10-10 05:36:34 +00:00
font - size : $ { e . fontSize } ;
color : $ { e . color } ;
2025-10-10 05:53:42 +00:00
background : transparent ;
2025-10-10 17:31:06 +00:00
padding : $ { w } px $ { S } px $ { y } px $ { C } px ;
2025-10-10 05:36:34 +00:00
box - sizing : border - box ;
overflow : visible ;
2025-10-10 09:41:41 +00:00
text - align : center ! important ;
2025-10-10 08:29:32 +00:00
display : flex ;
flex - direction : column ;
2025-10-10 10:16:25 +00:00
justify - content : center ;
2025-10-10 08:29:32 +00:00
align - items : center ;
position : relative ;
2025-10-10 17:47:27 +00:00
` ,v.querySelectorAll("table").forEach(I=>{const _=I;_.style.cssText= `
2025-10-10 05:36:34 +00:00
width : 100 % ;
border - collapse : collapse ;
font - size : $ { e . fontSize } ;
2025-10-10 17:31:06 +00:00
font - family : '${(e.fontFamily||"Arial").replace(/"/g,""")}' ;
2025-10-10 09:41:41 +00:00
margin : 0 auto 0 px auto ;
2025-10-10 05:53:42 +00:00
border : 1 px solid # ccc ;
2025-10-10 17:47:27 +00:00
` ,I.querySelectorAll("td, th").forEach(F=>{const G=F;G.style.cssText= `
2025-10-10 05:36:34 +00:00
border : 1 px solid # ccc ;
padding : 4 px 8 px ;
text - align : center ;
vertical - align : top ;
font - size : $ { parseFloat ( e . fontSize ) * . 9 } px ;
2025-10-10 05:53:42 +00:00
background : white ;
2025-10-10 17:47:27 +00:00
` })}),v.querySelectorAll("ul, ol").forEach(I=>{const _=I;_.style.cssText= `
2025-10-10 09:41:41 +00:00
margin : 2 px 0 4 px 0 ! important ;
padding - left : 0 ! important ;
text - align : center ! important ;
list - style - position : inside ! important ;
2025-10-10 17:47:27 +00:00
` }),v.querySelectorAll("li").forEach(I=>{const _=I;_.style.cssText= `
2025-10-10 09:41:41 +00:00
margin : 1 px 0 ! important ;
line - height : 1.2 ! important ;
padding : 0 ! important ;
text - align : center ! important ;
list - style - position : inside ! important ;
2025-10-10 17:47:27 +00:00
` }),v.querySelectorAll("p").forEach(I=>{const _=I;_.style.cssText= `
2025-10-10 09:41:41 +00:00
margin : 2 px 0 ! important ;
line - height : 1.4 ! important ;
padding : 0 ! important ;
text - align : center ! important ;
2025-10-10 17:47:27 +00:00
` }),v.querySelectorAll("span, div, strong, em").forEach(I=>{const _=I;_.style.cssText= `
2025-10-10 09:41:41 +00:00
text - align : center ! important ;
display : block ! important ;
margin - left : auto ! important ;
margin - right : auto ! important ;
` });const T=document.createElement("style");T.textContent= `
* {
text - align : center ! important ;
margin - left : auto ! important ;
margin - right : auto ! important ;
}
2025-10-10 17:47:27 +00:00
` ,v.appendChild(T),v.querySelectorAll("img").forEach((I,_)=>{const F=I,G=f-C-S-5,W=Math.floor(p*.7);F.style.cssText= `
2025-10-10 10:16:25 +00:00
max - width : $ { G } px ! important ;
max - height : $ { W } px ! important ;
2025-10-10 08:29:32 +00:00
width : auto ! important ;
height : auto ! important ;
display : block ! important ;
2025-10-10 09:41:41 +00:00
margin : 8 px auto 0 px auto ! important ;
2025-10-10 08:29:32 +00:00
border - radius : 4 px ;
object - fit : contain ! important ;
flex - shrink : 0 ! important ;
box - sizing : border - box ! important ;
position : relative ! important ;
top : 0 ! important ;
left : 0 ! important ;
right : 0 ! important ;
bottom : 0 ! important ;
2025-10-10 17:47:27 +00:00
` }),g.appendChild(v);const D=document.createElementNS(pt,"rect");et(D,{x:r+"",y:n+"",rx:e.borderRadius||"8",ry:e.borderRadius||"8",width:f+"px",height:p+"px",fill:e.backgroundColor||"white",stroke:e.borderColor||"#ccc","stroke-width":e.borderWidth||"1"}),i.insertBefore(D,i.firstChild),i.appendChild(g)}else return n1(t,e,r,n);return i}function F0(t,e,r=!1){var n;const i=getComputedStyle(e),{offsetLeft:s,offsetTop:a}=nn(t.nodes,e),o=e;o.nodeObj&&o.nodeObj.dangerouslySetInnerHTML&&((n=o.nodeObj.dangerouslySetInnerHTML)==null||n.includes("<img")),o.nodeObj&&o.nodeObj.image;const l=document.createElementNS(pt,"g");let c=null;const u=e,f=u.nodeObj&&u.nodeObj.dangerouslySetInnerHTML&&u.nodeObj.dangerouslySetInnerHTML.includes("<table");if(u.nodeObj&&u.nodeObj.dangerouslySetInnerHTML){if(f)return Ss(e,i,s,a);c=Ss(e,i,s,a)}else r?c=Ss(e,i,s,a):c=n1(e,i,s,a);return c&&l.appendChild(c),l}function km(t,e){const r=getComputedStyle(e),{offsetLeft:n,offsetTop:i}=nn(t.nodes,e),s=document.createElementNS(pt,"a"),a=document.createElementNS(pt,"text");return et(a,{x:n+"",y:i+parseInt(r.fontSize)+"","text-anchor":"start","font-family":r.fontFamily,"font-size": ` $ { r . fontSize } ` ,"font-weight": ` $ { r . fontWeight } ` ,fill: ` $ { r . color } ` }),a.innerHTML=e.textContent,s.appendChild(a),s.setAttribute("href",e.href),s}async function Tm(t,e){const r=getComputedStyle(e),{offsetLeft:n,offsetTop:i}=nn(t.nodes,e);if(!e.nodeObj.image)return null;const s=e.nodeObj.image,a=document.createElementNS(pt,"image"),o=parseInt(r.width),l=parseInt(r.height),c=Math.min(o-10,300),u=Math.min(l*.6,150),f=Math.min(s.width||200,c),p=Math.min(s.height||150,u);let g=0;if(e.text&&e.text.textContent){const y=e.text.textContent.trim();if(y){const C=y.split( `
` ).length,S=parseFloat(r.lineHeight)||parseFloat(r.fontSize)*1.2;parseFloat(r.fontSize);const T=parseInt(r.paddingTop)||8,D=parseInt(r.paddingBottom)||8;g=C*S+T+D}}const v=n+(o-f)/2,w=i+g+0;try{const y=await i1(s.url);et(a,{x:v+"",y:w+"",width:f+"",height:p+"",href:y})}catch{et(a,{x:v+"",y:w+"",width:f+"",height:p+"",href:s.url})}return a}async function Em(t,e){const r=getComputedStyle(e),{offsetLeft:n,offsetTop:i}=nn(t.nodes,e),s=document.createElementNS(pt,"image"),a=t.imageProxy?t.imageProxy(e.src):e.src,o=Math.min(parseInt(r.width)||300,300),l=Math.min(parseInt(r.height)||200,200);try{const c=await i1(a);et(s,{x:n+"",y:i+"",width:o+"",height:l+"",href:c})}catch{et(s,{x:n+"",y:i+"",width:o+"",height:l+"",href:a})}return s}function i1(t){return new Promise((e,r)=>{const n=new Image;n.crossOrigin="anonymous",n.onload=()=>{try{const i=document.createElement("canvas");i.width=n.width,i.height=n.height;const s=i.getContext("2d");if(!s){r(new Error("Failed to get canvas context"));return}s.drawImage(n,0,0);const a=i.toDataURL("image/png");e(a)}catch(i){r(i)}},n.onerror=()=>{r(new Error("Failed to load image"))},n.src=t})}const B0=100,Am='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',Cm=async(t,e=!1)=>{var r,n,i;const s=t.nodes,a=s.offsetHeight+B0*2,o=s.offsetWidth+B0*2,l=Sm(a+"px",o+"px"),c=document.createElementNS(pt,"svg"),u=document.createElementNS(pt,"rect");et(u,{x:"0",y:"0",width: ` $ { o } ` ,height: ` $ { a } ` ,fill:t.theme.cssVar["--bgcolor"]}),l.appendChild(u),s.querySelectorAll(".subLines").forEach(y=>{const C=y.cloneNode(!0),{offsetLeft:S,offsetTop:T}=nn(s,y.parentElement);C.setAttribute("x", ` $ { S } ` ),C.setAttribute("y", ` $ { T } ` ),c.appendChild(C)});const f=(r=s.querySelector(".lines"))==null?void 0:r.cloneNode(!0);f&&c.appendChild(f);const p=(n=s.querySelector(".topiclinks"))==null?void 0:n.cloneNode(!0);p&&c.appendChild(p);const g=(i=s.querySelector(".summary"))==null?void 0:i.cloneNode(!0);g&&c.appendChild(g);const v=Array.from(s.querySelectorAll("me-tpc")).map(async y=>{const C=y.nodeObj.dangerouslySetInnerHTML,S=!!(y.text&&y.text.innerHTML&&y.text.innerHTML!==y.text.textContent),T=y.nodeObj.image;if(C||S?c.appendChild(F0(t,y,!e)):c.appendChild(F0(t,y,!1)),T)try{const D=await Tm(t,y);D&&c.appendChild(D)}catch{}});await Promise.all(v),s.querySelectorAll(".tags > span").forEach(y=>{c.appendChild(F0(t,y))}),s.querySelectorAll(".icons > span").forEach(y=>{c.appendChild(F0(t,y))}),s.querySelectorAll(".hyper-link").forEach(y=>{c.appendChild(km(t,y))});const w=Array.from(s.querySelectorAll("img")).map(async(y,C)=>{const S=y.closest("me-tpc"),T=y.closest("foreignObject");return S||T?null:await Em(t,y)});return(await Promise.all(w)).filter(y=>y!==null).forEach(y=>{y&&c.appendChild(y)}),et(c,{x:B0+"",y:B0+"",overflow:"visible"}),l.appendChild(c),l},Mm=(t,e)=>(e&&t.insertAdjacentHTML("afterbegin","<style>"+e+"</style>"),Am+t.outerHTML);function Nm(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=i=>{e(i.target.result)},n.onerror=i=>{r(i)},n.readAsDataURL(t)})}const Dm=async function(t=!1,e){const r=await Cm(this,t),n=Mm(r,e);return new Blob([n],{type:"image/svg+xml"})},Im=async function(t=!1,e){const r=await this.exportSvg(t,e),n=await Nm(r);return new Promise((i,s)=>{const a=new Image;a.setAttribute("crossOrigin","anonymous");const o=setTimeout(()=>{s(new Error("Image loading timeout"))},1e4);a.onload=()=>{clearTimeout(o);try{const l=document.createElement("canvas");l.width=a.width,l.height=a.height;const c=l.getContext("2d");c.fillStyle="#ffffff",c.fillRect(0,0,l.width,l.height),c.drawImage(a,0,0),l.toBlob(i,"image/png",1)}catch(l){s(l)}},a.onerror=l=>{clearTimeout(o),s(l)},a.src=n})},Rm=Object.freeze(Object.defineProperty({__proto__:null,exportPng:Im,exportSvg:Dm},Symbol.toStringTag,{value:"Module"}));function Om(t,e){return async function(...r){const n=this.before[e];n&&!await n.apply(this,r)||t.apply(this,r)}}const Dl=Object.keys(Qu),s1={};for(let t=0;t<Dl.length;t++){const e=Dl[t];s1[e]=Om(Qu[e],e)}const _m={getObjById:vi,gener
` ).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||e[r]&&H2[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Ll=Symbol("internals");function Yn(t){return t&&String(t).trim().toLowerCase()}function ni(t){return t===!1||t==null?t:P.isArray(t)?t.map(ni):String(t)}function j2(t){const e=Object.create(null),r=/([^ \s ,;=]+) \s *(?:= \s *([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const U2=t=>/^[-_a-zA-Z0-9^ ` | ~ , ! # $ % & ' * + . ] + $ / . test ( t . trim ( ) ) ; function ks ( t , e , r , n , i ) { if ( P . isFunction ( n ) ) return n . call ( this , e , r ) ; if ( i && ( e = r ) , ! ! P . isString ( e ) ) { if ( P . isString ( n ) ) return e . indexOf ( n ) !== - 1 ; if ( P . isRegExp ( n ) ) return n . test ( e ) } } function V2 ( t ) { return t . trim ( ) . toLowerCase ( ) . replace ( /([a-z\d])(\w*)/g , ( e , r , n ) => r . toUpperCase ( ) + n ) } function W2 ( t , e ) { const r = P . toCamelCase ( " " + e ) ; [ "get" , "set" , "has" ] . forEach ( n => { Object . defineProperty ( t , n + r , { value : function ( i , s , a ) { return this [ n ] . call ( this , e , i , s , a ) } , configurable : ! 0 } ) } ) } class Xi { constructor ( e ) { e && this . set ( e ) } set ( e , r , n ) { const i = this ; function s ( o , l , c ) { const u = Yn ( l ) ; if ( ! u ) throw new Error ( "header name must be a non-empty string" ) ; const f = P . findKey ( i , u ) ; ( ! f || i [ f ] === void 0 || c === ! 0 || c === void 0 && i [ f ] !== ! 1 ) && ( i [ f || l ] = ni ( o ) ) } const a = ( o , l ) => P . forEach ( o , ( c , u ) => s ( c , u , l ) ) ; if ( P . isPlainObject ( e ) || e instanceof this . constructor ) a ( e , r ) ; else if ( P . isString ( e ) && ( e = e . trim ( ) ) && ! U2 ( e ) ) a ( q2 ( e ) , r ) ; else if ( P . isObject ( e ) && P . isIterable ( e ) ) { let o = { } , l , c ; for ( const u of e ) { if ( ! P . isArray ( u ) ) throw TypeError ( "Object iterator must return a key-value pair" ) ; o [ c = u [ 0 ] ] = ( l = o [ c ] ) ? P . isArray ( l ) ? [ ... l , u [ 1 ] ] : [ l , u [ 1 ] ] : u [ 1 ] } a ( o , r ) } else e != null && s ( r , e , n ) ; return this } get ( e , r ) { if ( e = Yn ( e ) , e ) { const n = P . findKey ( this , e ) ; if ( n ) { const i = this [ n ] ; if ( ! r ) return i ; if ( r === ! 0 ) return j2 ( i ) ; if ( P . isFunction ( r ) ) return r . call ( this , i , n ) ; if ( P . isRegExp ( r ) ) return r . exec ( i ) ; throw new TypeError ( "parser must be boolean|regexp|function" ) } } } has ( e , r ) { if ( e = Yn ( e ) , e ) { const n = P . findKey ( this , e ) ; return ! ! ( n && this [ n ] !== void 0 && ( ! r || ks ( this , this [ n ] , n , r ) ) ) } return ! 1 } delete ( e , r ) { const n = this ; let i = ! 1 ; function s ( a ) { if ( a = Yn ( a ) , a ) { const o = P . findKey ( n , a ) ; o && ( ! r || ks ( n , n [ o ] , o , r ) ) && ( delete n [ o ] , i = ! 0 ) } } return P . isArray ( e ) ? e . forEach ( s ) : s ( e ) , i } clear ( e ) { const r = Object . keys ( this ) ; let n = r . length , i = ! 1 ; for ( ; n -- ; ) { const s = r [ n ] ; ( ! e || ks ( this , this [ s ] , s , e , ! 0 ) ) && ( delete this [ s ] , i = ! 0 ) } return i } normalize ( e ) { const r = this , n = { } ; return P . forEach ( this , ( i , s ) => { const a = P . findKey ( n , s ) ; if ( a ) { r [ a ] = ni ( i ) , delete r [ s ] ; return } const o = e ? V2 ( s ) : String ( s ) . trim ( ) ; o !== s && delete r [ s ] , r [ o ] = ni ( i ) , n [ o ] = ! 0 } ) , this } concat ( ... e ) { return this . constructor . concat ( this , ... e ) } toJSON ( e ) { const r = Object . create ( null ) ; return P . forEach ( this , ( n , i ) => { n != null && n !== ! 1 && ( r [ i ] = e && P . isArray ( n ) ? n . join ( ", " ) : n ) } ) , r } [ Symbol . iterator ] ( ) { return Object . entries ( this . toJSON ( ) ) [ Symbol . iterator ] ( ) } toString ( ) { return Object . entries ( this . toJSON ( ) ) . map ( ( [ e , r ] ) => e + ": " + r ) . join ( `
` )}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Ll]=this[Ll]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=Yn(a);n[o]||(W2(i,a),n[o]=!0)}return P.isArray(e)?e.forEach(s):s(e),this}}Xi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(Xi.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});P.freezeMethods(Xi);const ir=Xi;function Ts(t,e){const r=this||no,n=e||r,i=ir.from(n.headers);let s=n.data;return P.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function x1(t){return!!(t&&t.__CANCEL__)}function qn(t,e,r){Me.call(this,t??"canceled",Me.ERR_CANCELED,e,r),this.name="CanceledError"}P.inherits(qn,Me,{__CANCEL__:!0});function S1(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new Me("Request failed with status code "+r.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function G2(t){const e=/^([-+ \w ]{1,25})(:? \/ \/ |:)/.exec(t);return e&&e[1]||""}function K2(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=n[s];a||(a=c),r[i]=l,n[i]=c;let f=s,p=0;for(;f!==i;)p+=r[f++],f=f%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-a<e)return;const g=u&&c-u;return g?Math.round(p*1e3/g):void 0}}function Y2(t,e){let r=0,n=1e3/e,i,s;const a=(c,u=Date.now())=>{r=u,i=null,s&&(clearTimeout(s),s=null),t(...c)};return[(...c)=>{const u=Date.now(),f=u-r;f>=n?a(c,u):(i=c,s||(s=setTimeout(()=>{s=null,a(i)},n-f)))},()=>i&&a(i)]}const Si=(t,e,r=3)=>{let n=0;const i=K2(50,250);return Y2(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-n,c=i(l),u=a<=o;n=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&u?(o-a)/c:void 0,event:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(f)},r)},zl=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]}, $ l=t=>(...e)=>P.asap(()=>t(...e)),X2=kt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,kt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(kt.origin),kt.navigator&&/(msie|trident)/i.test(kt.navigator.userAgent)):()=>!0,J2=kt.hasStandardBrowserEnv?{write(t,e,r,n,i,s){const a=[t+"="+encodeURIComponent(e)];P.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),P.isString(n)&&a.push("path="+n),P.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|; \\ s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Z2(t){return/^([a-z][a-z \d + \- .]*:)? \/ \/ /i.test(t)}function Q2(t,e){return e?t.replace(/ \/ ? \/ $ /,"")+"/"+e.replace(/^ \/ +/,""):t}function k1(t,e,r){let n=!Z2(e);return t&&(n||r==!1)?Q2(t,e):e}const Fl=t=>t instanceof ir?{...t}:t;function mn(t,e){e=e||{};const r={};function n(c,u,f,p){return P.isPlainObject(c)&&P.isPlainObject(u)?P.merge.call({caseless:p},c,u):P.isPlainObject(u)?P.merge({},u):P.isArray(u)?u.slice():u}function i(c,u,f,p){if(P.isUndefined(u)){if(!P.isUndefined(c))return n(void 0,c,f,p)}else return n(c,u,f,p)}function s(c,u){if(!P.isUndefined(u))return n(void 0,u)}function a(c,u){if(P.isUndefined(u)){if(!P.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function o(c,u,f){if(f in e)return n(c,u);if(f in t)return n(void 0,c)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cance
2025-10-10 10:16:25 +00:00
` +s.map(Hl).join( `
2025-10-10 17:47:27 +00:00
` ):" "+Hl(s[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:ca};function Es(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new qn(null,t)}function ql(t){return Es(t),t.headers=ir.from(t.headers),t.data=Ts.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),C1.getAdapter(t.adapter||no.adapter)(t).then(function(n){return Es(t),n.data=Ts.call(t,t.transformResponse,n),n.headers=ir.from(n.headers),n},function(n){return x1(n)||(Es(t),n&&n.response&&(n.response.data=Ts.call(t,t.transformResponse,n.response),n.response.headers=ir.from(n.response.headers))),Promise.reject(n)})}const M1="1.11.0",Zi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const jl={};Zi.transitional=function(e,r,n){function i(s,a){return"[Axios v"+M1+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return(s,a,o)=>{if(e===!1)throw new Me(i(a," has been removed"+(r?" in "+r:"")),Me.ERR_DEPRECATED);return r&&!jl[a]&&(jl[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,a,o):!0}};Zi.spelling=function(e){return(r,n)=>(console.warn( ` $ { n } is likely a misspelling of $ { e } ` ),!0)};function f3(t,e,r){if(typeof t!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const s=n[i],a=e[s];if(a){const o=t[s],l=o===void 0||a(o,s,t);if(l!==!0)throw new Me("option "+s+" must be "+l,Me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Me("Unknown option "+s,Me.ERR_BAD_OPTION)}}const ii={assertOptions:f3,validators:Zi},lr=ii.validators;class Ti{constructor(e){this.defaults=e||{},this.interceptors={request:new _l,response:new _l}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+ \n /,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+ \n .+ \n /,""))&&(n.stack+= `
` +s):n.stack=s}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=mn(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&ii.assertOptions(n,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},!1),i!=null&&(P.isFunction(i)?r.paramsSerializer={serialize:i}:ii.assertOptions(i,{encode:lr.function,serialize:lr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ii.assertOptions(r,{baseUrl:lr.spelling("baseURL"),withXsrfToken:lr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&P.merge(s.common,s[r.method]);s&&P.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),r.headers=ir.concat(a,s);const o=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(l=l&&w.synchronous,o.unshift(w.fulfilled,w.rejected))});const c=[];this.interceptors.response.forEach(function(w){c.push(w.fulfilled,w.rejected)});let u,f=0,p;if(!l){const v=[ql.bind(this),void 0];for(v.unshift(...o),v.push(...c),p=v.length,u=Promise.resolve(r);f<p;)u=u.then(v[f++],v[f++]);return u}p=o.length;let g=r;for(f=0;f<p;){const v=o[f++],w=o[f++];try{g=v(g)}catch(y){w.call(this,y);break}}try{u=ql.call(this,g)}catch(v){return Promise.reject(v)}for(f=0,p=c.length;f<p;)u=u.then(c[f++],c[f++]);return u}getUri(e){e=mn(this.defaults,e);const r=k1(e.baseURL,e.url,e.allowAbsoluteUrls);return b1(r,e.params,e.paramsSerializer)}}P.forEach(["delete","get","head","options"],function(e){Ti.prototype[e]=function(r,n){return this.request(mn(n||{},{method:e,url:r,data:(n||{}).data}))}});P.forEach(["post","put","patch"],function(e){function r(n){return function(s,a,o){return this.request(mn(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Ti.prototype[e]=r(),Ti.prototype[e+"Form"]=r(!0)});const si=Ti;class io{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{n.subscribe(o),s=o}).then(i);return a.cancel=function(){n.unsubscribe(s)},a},e(function(s,a,o){n.reason||(n.reason=new qn(s,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new io(function(i){e=i}),cancel:e}}}const p3=io;function m3(t){return function(r){return t.apply(null,r)}}function g3(t){return P.isObject(t)&&t.isAxiosError===!0}const ua={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,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFiel
] ` ).replace("lheading",R1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},R3=/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , O3 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , _1 = /^( {2,}|\\)\n(?!\s*$)/ , _3 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , es = /[\p{P}\p{S}]/u , ho = /[\s\p{P}\p{S}]/u , L1 = /[^\s\p{P}\p{S}]/u , L3 = Pe ( /^((?![*_])punctSpace)/ , "u" ) . replace ( /punctSpace/g , ho ) . getRegex ( ) , z1 = /(?!~)[\p{P}\p{S}]/u , z3 = /(?!~)[\s\p{P}\p{S}]/u , $3 = /(?:[^\s\p{P}\p{S}]|~)/u , F3 = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g , $1 = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/ , B3 = Pe ( $1 , "u" ) . replace ( /punct/g , es ) . getRegex ( ) , P3 = Pe ( $1 , "u" ) . replace ( /punct/g , z1 ) . getRegex ( ) , F1 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)" , H3 = Pe ( F1 , "gu" ) . replace ( /notPunctSpace/g , L1 ) . replace ( /punctSpace/g , ho ) . replace ( /punct/g , es ) . getRegex ( ) , q3 = Pe ( F1 , "gu" ) . replace ( /notPunctSpace/g , $3 ) . replace ( /punctSpace/g , z3 ) . replace ( /punct/g , z1 ) . getRegex ( ) , j3 = Pe ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)" , "gu" ) . replace ( /notPunctSpace/g , L1 ) . replace ( /punctSpace/g , ho ) . replace ( /punct/g , es ) . getRegex ( ) , U3 = Pe ( /\\(punct)/ , "gu" ) . replace ( /punct/g , es ) . getRegex ( ) , V3 = Pe ( /^<(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 ( ) , W3 = Pe ( co ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) , G3 = Pe ( "^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" , W3 ) . replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ) . getRegex ( ) , Ei = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/ , K3 = Pe ( /^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/ ) . replace ( "label" , Ei ) . replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/ ) . replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ) . getRegex ( ) , B1 = Pe ( /^!?\[(label)\]\[(ref)\]/ ) . replace ( "label" , Ei ) . replace ( "ref" , lo ) . getRegex ( ) , P1 = Pe ( /^!?\[(ref)\](?:\[\])?/ ) . replace ( "ref" , lo ) . getRegex ( ) , Y3 = Pe ( "reflink|nolink(?!\\()" , "g" ) . replace ( "reflink" , B1 ) . replace ( "nolink" , P1 ) . getRegex ( ) , fo = { _backpedal : c0 , anyPunctuation : U3 , autolink : V3 , blockSkip : F3 , br : _1 , code : O3 , del : c0 , emStrongLDelim : B3 , emStrongRDelimAst : H3 , emStrongRDelimUnd : j3 , escape : R3 , link : K3 , nolink : P1 , punctuation : L3 , reflink : B1 , reflinkSearch : Y3 , tag : G3 , text : _3 , url : c0 } , X3 = { ... fo , link : Pe ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , Ei ) . getRegex ( ) , reflink : Pe ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , Ei ) . getRegex ( ) } , da = { ... fo , emStrongRDelimAst : q3 , emStrongLDelim : P3 , url : Pe ( /^((?: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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/ } , J3 = { ... da , br : Pe ( _1 ) . replace ( "{2,}" , "*" ) . getRegex ( ) , text : Pe ( da . text ) . replace ( "\\b_" , "\\b_| {2,}\\n" ) . replace ( /\{2,\}/g , "*" ) . getRegex ( ) } , P0 = { normal : uo , gfm : D3 , pedantic : I3 } , Xn = { normal : fo , gfm : da , breaks : J3 , pedantic : X3 } , Z3 = { "&" : "&" , "<" : "<" , ">" : ">" , '"' : "
2025-10-10 08:29:32 +00:00
` ).map(s=>{let a=s.match(r.other.beginningSpace);if(a===null)return s;let[o]=a;return o.length>=i.length?s.slice(i.length):s}).join( `
2025-10-10 17:47:27 +00:00
` )}var Ai=class{constructor(t){We(this,"options");We(this,"rules");We(this,"lexer");this.options=t||bn}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Jn(r, `
` )}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],n=e6(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation," $ 1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let n=Jn(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Jn(e[0], `
` )}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let r=Jn(e[0], `
2025-10-10 05:04:03 +00:00
` ).split( `
2025-10-10 08:29:32 +00:00
` ),n="",i="",s=[];for(;r.length>0;){let a=!1,o=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))o.push(r[l]),a=!0;else if(!a)o.push(r[l]);else break;r=r.slice(l);let c=o.join( `
2025-10-10 05:53:42 +00:00
` ),u=c.replace(this.rules.other.blockquoteSetextReplace, `
2025-10-10 05:04:03 +00:00
$1 ` ).replace(this.rules.other.blockquoteSetextReplace2,"");n=n? ` $ { n }
2025-10-10 08:29:32 +00:00
$ { c } ` :c,i=i? ` $ { i }
2025-10-10 10:16:25 +00:00
$ { u } ` :u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=f,r.length===0)break;let p=s.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let g=p,v=g.raw+ `
2025-10-10 05:04:03 +00:00
` +r.join( `
2025-10-10 10:16:25 +00:00
` ),w=this.blockquote(v);s[s.length-1]=w,n=n.substring(0,n.length-g.raw.length)+w.raw,i=i.substring(0,i.length-g.text.length)+w.text;break}else if((p==null?void 0:p.type)==="list"){let g=p,v=g.raw+ `
2025-10-10 05:04:03 +00:00
` +r.join( `
2025-10-10 10:16:25 +00:00
` ),w=this.list(v);s[s.length-1]=w,n=n.substring(0,n.length-p.raw.length)+w.raw,i=i.substring(0,i.length-g.raw.length)+w.raw,r=v.substring(s.at(-1).raw.length).split( `
2025-10-10 08:29:32 +00:00
` );continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n? ` \ \ d { 1 , 9 } \ \ $ { r . slice ( - 1 ) } ` : ` \ \ $ { r } ` ,this.options.pedantic&&(r=n?r:"[*+-]");let s=this.rules.other.listItemRegex(r),a=!1;for(;t;){let l=!1,c="",u="";if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;c=e[0],t=t.substring(c.length);let f=e[2].split( `
2025-10-10 17:31:06 +00:00
` ,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),p=t.split( `
2025-10-10 10:16:25 +00:00
` ,1)[0],g=!f.trim(),v=0;if(this.options.pedantic?(v=2,u=f.trimStart()):g?v=e[1].length+1:(v=e[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,u=f.slice(v),v+=e[1].length),g&&this.rules.other.blankLine.test(p)&&(c+=p+ `
2025-10-10 17:47:27 +00:00
` ,t=t.substring(p.length+1),l=!0),!l){let C=this.rules.other.nextBulletRegex(v),S=this.rules.other.hrRegex(v),T=this.rules.other.fencesBeginRegex(v),D=this.rules.other.headingBeginRegex(v),I=this.rules.other.htmlBeginRegex(v);for(;t;){let _=t.split( `
` ,1)[0],F;if(p=_,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),F=p):F=p.replace(this.rules.other.tabCharGlobal," "),T.test(p)||D.test(p)||I.test(p)||C.test(p)||S.test(p))break;if(F.search(this.rules.other.nonSpaceChar)>=v||!p.trim())u+= `
` +F.slice(v);else{if(g||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(f)||D.test(f)||S.test(f))break;u+= `
` +p}!g&&!p.trim()&&(g=!0),c+=_+ `
` ,t=t.substring(_.length+1),f=F.slice(v)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0));let w=null,y;this.options.gfm&&(w=this.rules.other.listIsTask.exec(u),w&&(y=w[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!w,checked:y,loose:!1,text:u,tokens:[]}),i.raw+=c}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let l=0;l<i.items.length;l++)if(this.lexer.state.top=!1,i.items[l].tokens=this.lexer.blockTokens(i.items[l].text,[]),!i.loose){let c=i.items[l].tokens.filter(f=>f.type==="space"),u=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=u}if(i.loose)for(let l=0;l<i.items.length;l++)i.items[l].loose=!0;return i}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets," $ 1").replace(this.rules.inline.anyPunctuation," $ 1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation," $ 1"):e[3];return{type:"def",tag:r,raw:e[0],href:n,title:i}}}table(t){var a;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=Gl(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(a=e[3])!=null&&a.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split( `
2025-10-10 10:16:25 +00:00
` ):[],s={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<r.length;o++)s.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:s.align[o]});for(let o of i)s.rows.push(Gl(o,s.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)=== `
2025-10-10 17:47:27 +00:00
` ?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Jn(r.slice(0,-1)," \\ ");if((r.length-s.length)%2===0)return}else{let s=Q3(e[2],"()");if(s===-2)return;if(s>-1){let a=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),Kl(e,{href:n&&n.replace(this.rules.inline.anyPunctuation," $ 1"),title:i&&i.replace(this.rules.inline.anyPunctuation," $ 1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[n.toLowerCase()];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Kl(r,i,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,a,o=i,l=0,c=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+i);(n=c.exec(e))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(a=[...s].length,n[3]||n[4]){o+=a;continue}else if((n[5]||n[6])&&i%3&&!((i+a)%3)){l+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+l);let u=[...n[0]][0].length,f=t.slice(0,i+n.index+u+a);if(Math.min(i,a)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,n;return e[2]==="@"?(r=e[1],n="mailto:"+r):(r=e[1],n=r),{type:"link",raw:e[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let e;if(e=this.rules.inline.url.exec(t)){let n,i;if(e[2]==="@")n=e[0],i="mailto:"+n;else{let s;do s=e[0],e[0]=((r=this.rules.inline._backpedal.exec(e[0]))==null?void 0:r[0])??"";while(s!==e[0]);n=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},Mr=class ha{constructor(e){We(this,"tokens");We(this,"
2025-10-10 17:31:06 +00:00
` ),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){var i,s,a;for(this.options.pedantic&&(e=e.replace(Dt.tabCharGlobal," ").replace(Dt.spaceLine,""));e;){let o;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(o=c.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let c=r.at(-1);o.raw.length===1&&c!==void 0?c.raw+= `
2025-10-10 05:04:03 +00:00
` :r.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith( `
` )?"": `
` )+o.raw,c.text+= `
` +o.text,this.inlineQueue.at(-1).src=c.text):r.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith( `
` )?"": `
` )+o.raw,c.text+= `
2025-10-10 05:53:42 +00:00
` +o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),r.push(o);continue}let l=e;if((a=this.options.extensions)!=null&&a.startBlock){let c=1/0,u=e.slice(1),f;this.options.extensions.startBlock.forEach(p=>{f=p.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(l=e.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let c=r.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith( `
2025-10-10 05:04:03 +00:00
` )?"": `
` )+o.raw,c.text+= `
` +o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(o),n=l.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith( `
` )?"": `
` )+o.raw,c.text+= `
2025-10-10 17:31:06 +00:00
` +o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(o);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){var o,l,c;let n=e,i=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,a="";for(;e;){s||(a=""),s=!1;let u;if((l=(o=this.options.extensions)==null?void 0:o.inline)!=null&&l.some(p=>(u=p.call({lexer:this},e,r))?(e=e.substring(u.raw.length),r.push(u),!0):!1))continue;if(u=this.tokenizer.escape(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.tag(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.link(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);let p=r.at(-1);u.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.text+=u.text):r.push(u);continue}if(u=this.tokenizer.emStrong(e,n,a)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.codespan(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.br(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.del(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.autolink(e)){e=e.substring(u.raw.length),r.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(e))){e=e.substring(u.raw.length),r.push(u);continue}let f=e;if((c=this.options.extensions)!=null&&c.startInline){let p=1/0,g=e.slice(1),v;this.options.extensions.startInline.forEach(w=>{v=w.call({lexer:this},g),typeof v=="number"&&v>=0&&(p=Math.min(p,v))}),p<1/0&&p>=0&&(f=e.substring(0,p+1))}if(u=this.tokenizer.inlineText(f)){e=e.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(a=u.raw.slice(-1)),s=!0;let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.text+=u.text):r.push(u);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},Ci=class{constructor(t){We(this,"options");We(this,"parser");this.options=t||bn}space(t){return""}code({text:t,lang:e,escaped:r}){var s;let n=(s=(e||"").match(Dt.notSpaceStart))==null?void 0:s[0],i=t.replace(Dt.endingNewline,"")+ `
2025-10-10 10:16:25 +00:00
` ;return n?'<pre><code class="language-'+cr(n)+'">'+(r?i:cr(i,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(r?i:cr(i,!0))+ ` < / c o d e > < / p r e >
2025-10-10 05:04:03 +00:00
` }blockquote({tokens:t}){return ` < blockquote >
$ { this . parser . parse ( t ) } < / b l o c k q u o t e >
` }html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return ` < h$ { e } > $ { this . parser . parseInline ( t ) } < / h $ { e } >
` }hr(t){return ` < hr >
2025-10-10 08:29:32 +00:00
` }list(t){let e=t.ordered,r=t.start,n="";for(let a=0;a<t.items.length;a++){let o=t.items[a];n+=this.listitem(o)}let i=e?"ol":"ul",s=e&&r!==1?' start="'+r+'"':"";return"<"+i+s+ ` >
` +n+"</"+i+ ` >
2025-10-10 10:16:25 +00:00
` }listitem(t){var r;let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+cr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose), ` < li > $ { e } < / l i >
2025-10-10 05:04:03 +00:00
` }checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return ` < p > $ { this . parser . parseInline ( t ) } < / p >
2025-10-10 08:29:32 +00:00
` }table(t){let e="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);e+=this.tablerow({text:r});let n="";for(let i=0;i<t.rows.length;i++){let s=t.rows[i];r="";for(let a=0;a<s.length;a++)r+=this.tablecell(s[a]);n+=this.tablerow({text:r})}return n&&(n= ` < tbody > $ { n } < / t b o d y > ` ) , ` < t a b l e >
2025-10-10 05:04:03 +00:00
< thead >
` +e+ ` < / t h e a d >
` +n+ ` < / t a b l e >
` }tablerow({text:t}){return ` < tr >
$ { t } < / t r >
` }tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align? ` < $ { r } align = "${t.align}" > ` : ` < $ { r } > ` )+e+ ` < / $ { r } >
2025-10-10 17:31:06 +00:00
` }strong({tokens:t}){return ` < strong > $ { this . parser . parseInline ( t ) } < / s t r o n g > ` } e m ( { t o k e n s : t } ) { 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 ( t ) } < / e m > ` } c o d e s p a n ( { t e x t : t } ) { r e t u r n ` < c o d e > $ { c r ( t , ! 0 ) } < / c o d e > ` } b r ( t ) { r e t u r n " < b r > " } d e l ( { t o k e n s : t } ) { 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 ( t ) } < / d e l > ` } l i n k ( { h r e f : t , t i t l e : e , t o k e n s : r } ) { l e t n = t h i s . p a r s e r . p a r s e I n l i n e ( r ) , i = W l ( t ) ; i f ( i = = = n u l l ) r e t u r n n ; t = i ; l e t s = ' < a h r e f = " ' + t + ' " ' ; r e t u r n e & & ( s + = ' t i t l e = " ' + c r ( e ) + ' " ' ) , s + = " > " + n + " < / a > " , s } i m a g e ( { h r e f : t , t i t l e : e , t e x t : r , t o k e n s : n } ) { n & & ( r = t h i s . p a r s e r . p a r s e I n l i n e ( n , t h i s . p a r s e r . t e x t R e n d e r e r ) ) ; l e t i = W l ( t ) ; i f ( i = = = n u l l ) r e t u r n c r ( r ) ; t = i ; l e t s = ` < i m g s r c = " $ { t } " a l t = " $ { r } " ` ; r e t u r n e & & ( s + = ` t i t l e = " $ { c r ( e ) } " ` ) , s + = " > " , s } t e x t ( t ) { r e t u r n " t o k e n s " i n t & & t . 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 ( t . t o k e n s ) : " e s c a p e d " i n t & & t . e s c a p e d ? t . t e x t : c r ( t . t e x t ) } } , p o = c l a s s { s t r o n g ( { t e x t : e } ) { r e t u r n e } e m ( { t e x t : e } ) { r e t u r n e } c o d e s p a n ( { t e x t : e } ) { r e t u r n e } d e l ( { t e x t : e } ) { r e t u r n e } h t m l ( { t e x t : e } ) { r e t u r n e } t e x t ( { t e x t : e } ) { r e t u r n e } l i n k ( { t e x t : e } ) { r e t u r n " " + e } i m a g e ( { t e x t : e } ) { r e t u r n " " + e } b r ( ) { r e t u r n " " } } , N r = c l a s s f a { c o n s t r u c t o r ( e ) { W e ( t h i s , " o p t i o n s " ) ; W e ( t h i s , " r e n d e r e r " ) ; W e ( 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 = e | | b n , 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 C i , 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 p o } s t a t i c p a r s e ( e , r ) { r e t u r n n e w f a ( r ) . p a r s e ( e ) } s t a t i c p a r s e I n l i n e ( e , r ) { r e t u r n n e w f a ( r ) . p a r s e I n l i n e ( e ) } p a r s e ( e , r = ! 0 ) { v a r i , s ; l e t n = " " ; f o r ( l e t a = 0 ; a < e . l e n g t h ; a + + ) { l e t o = e [ a ] ; i f ( ( s = ( i = t h i s . o p t i o n s . e x t e n s i o n s ) = = n u l l ? v o i d 0 : i . r e n d e r e r s ) ! = n u l l & & s [ o . t y p e ] ) { l e t c = o , u = 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 [ c . t y p e ] . c a l l ( { p a r s e r : t h i s } , c ) ; i f ( u ! = = ! 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 " , " d e f " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( c . t y p e ) ) { n + = u | | " " ; c o n t i n u e } } l e t l = o ; s w i t c h ( l . t y p e ) { c a s e " s p a c e " : { n + = t h i s . r e n d e r e r . s p a c e ( l ) ; c o n t i n u e } c a s e " h r " : { n + = t h i s . r e n d e r e r . h r ( l ) ; c o n t i n u e } c a s e " h e a d i n g " : { n + = t h i s . r e n d e r e r . h e a d i n g ( l ) ; c o n t i n u e } c a s e " c o d e " : { n + = t h i s . r e n d e r e r . c o d e ( l ) ; c o n t i n u e } c a s e " t a b l e " : { n + = t h i s . r e n d e r e r . t a b l e ( l ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { n + = t h i s . r e n d e r e r . b l o c k q u o t e ( l ) ; c o n t i n u e } c a s e " l i s t " : { n + = t h i s . r e n d e r e r . l i s t ( l ) ; c o n t i n u e } c a s e " h t m l " : { n + = t h i s . r e n d e r e r . h t m l ( l ) ; c o n t i n u e } c a s e " d e f " : { n + = t h i s . r e n d e r e r . d e f ( l ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { n + = t h i s . r e n d e r e r . p a r a g r a p h ( l ) ; c o n t i n u e } c a s e " t e x t " : { l e t c = l , u = t h i s . r e n d e r e r . t e x t ( c ) ; f o r ( ; a + 1 < e . l e n g t h & & e [ a + 1 ] . t y p e = = = " t e x t " ; ) c = e [ + + a ] , u + = `
` +this.renderer.text(c);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}parseInline(e,r=this.renderer){var i,s;let n="";for(let a=0;a<e.length;a++){let o=e[a];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){let c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=c||"";continue}}let l=o;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},Hs,ai=(Hs=class{constructor(t){We(this,"options");We(this,"block");this.options=t||bn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Mr.lex:Mr.lexInline}provideParser(){return this.block?Nr.parse:Nr.parseInline}},We(Hs,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Hs),t6=class{constructor(...t){We(this,"defaults",so());We(this,"options",this.setOptions);We(this,"parse",this.parseMarkdown(!0));We(this,"parseInline",this.parseMarkdown(!1));We(this,"Parser",Nr);We(this,"Renderer",Ci);We(this,"TextRenderer",po);We(this,"Lexer",Mr);We(this,"Tokenizer",Ai);We(this,"Hooks",ai);this.use(...t)}walkTokens(t,e){var n,i;let r=[];for(let s of t)switch(r=r.concat(e.call(this,s)),s.type){case"table":{let a=s;for(let o of a.header)r=r.concat(this.walkTokens(o.tokens,e));for(let o of a.rows)for(let l of o)r=r.concat(this.walkTokens(l.tokens,e));break}case"list":{let a=s;r=r.concat(this.walkTokens(a.items,e));break}default:{let a=s;(i=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&i[a.type]?this.defaults.extensions.childTokens[a.type].forEach(o=>{let l=a[o].flat(1/0);r=r.concat(this.walkTokens(l,e))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=e.renderers[i.name];s?e.renderers[i.name]=function(...a){let o=i.renderer.apply(this,a);return o===!1&&(o=s.apply(this,a)),o}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[i.level];s?s.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),n.extensions=e),r.renderer){let i=this.defaults.renderer||new Ci(this.defaults);for(let s in r.renderer){if(!(s in i))throw new Error( ` renderer '${s}' does not exist ` );if(["options","parser"].includes(s))continue;let a=s,o=r.renderer[a],l=i[a];i[a]=(...c)=>{let u=o.apply(i,c);return u===!1&&(u=l.apply(i,c)),u||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Ai(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error( ` tokenizer '${s}' does not exist ` );if(["options","rules","lexer"].includes(s))continue;let a=s,o=r.tokenizer[a],l=i[a];i[a]=(...c)=>{let u=o.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new ai;for(let s in r.hooks){if(!(s in i))throw new Error( ` hook '${s}' does not exist ` );if(["options","block"].include
Please report this to https : //github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+cr(r.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(r);throw r}}},gn=new t6;function $e(t,e){return gn.parse(t,e)}$e.options=$e.setOptions=function(t){return gn.setOptions(t),$e.defaults=gn.defaults,D1($e.defaults),$e};$e.getDefaults=so;$e.defaults=bn;$e.use=function(...t){return gn.use(...t),$e.defaults=gn.defaults,D1($e.defaults),$e};$e.walkTokens=function(t,e){return gn.walkTokens(t,e)};$e.parseInline=gn.parseInline;$e.Parser=Nr;$e.parser=Nr.parse;$e.Renderer=Ci;$e.TextRenderer=po;$e.Lexer=Mr;$e.lexer=Mr.lex;$e.Tokenizer=Ai;$e.Hooks=ai;$e.parse=$e;$e.options;$e.setOptions;$e.use;$e.walkTokens;$e.parseInline;Nr.parse;Mr.lex;var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r6(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function xg(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var H1={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
2025-10-10 05:04:03 +00:00
* Prism : Lightweight , robust , elegant syntax highlighting
*
* @ license MIT < https : //opensource.org/licenses/MIT>
* @ author Lea Verou < https : //lea.verou.me>
* @ namespace
* @ public
2025-10-10 17:47:27 +00:00
* /var r=function(n){var i=/ ( ? : ^ | \ s ) lang ( ? : uage ) ? - ( [ \ w - ] + ) ( ? = \ s | $ ) / i , s = 0 , a = { } , o = { manual : n . Prism && n . Prism . manual , disableWorkerMessageHandler : n . Prism && n . Prism . disableWorkerMessageHandler , util : { encode : function S ( T ) { return T instanceof l ? new l ( T . type , S ( T . content ) , T . alias ) : Array . isArray ( T ) ? T . map ( S ) : T . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( /\u00a0/g , " " ) } , type : function ( S ) { return Object . prototype . toString . call ( S ) . slice ( 8 , - 1 ) } , objId : function ( S ) { return S . _ _id || Object . defineProperty ( S , "__id" , { value : ++ s } ) , S . _ _id } , clone : function S ( T , D ) { D = D || { } ; var I , _ ; switch ( o . util . type ( T ) ) { case "Object" : if ( _ = o . util . objId ( T ) , D [ _ ] ) return D [ _ ] ; I = { } , D [ _ ] = I ; for ( var F in T ) T . hasOwnProperty ( F ) && ( I [ F ] = S ( T [ F ] , D ) ) ; return I ; case "Array" : return _ = o . util . objId ( T ) , D [ _ ] ? D [ _ ] : ( I = [ ] , D [ _ ] = I , T . forEach ( function ( G , W ) { I [ W ] = S ( G , D ) } ) , I ) ; default : return T } } , getLanguage : function ( S ) { for ( ; S ; ) { var T = i . exec ( S . className ) ; if ( T ) return T [ 1 ] . toLowerCase ( ) ; S = S . parentElement } return "none" } , setLanguage : function ( S , T ) { S . className = S . className . replace ( RegExp ( i , "gi" ) , "" ) , S . classList . add ( "language-" + T ) } , currentScript : function ( ) { if ( typeof document > "u" ) return null ; if ( document . currentScript && document . currentScript . tagName === "SCRIPT" && 1 < 2 ) return document . currentScript ; try { throw new Error } catch ( I ) { var S = ( /at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i . exec ( I . stack ) || [ ] ) [ 1 ] ; if ( S ) { var T = document . getElementsByTagName ( "script" ) ; for ( var D in T ) if ( T [ D ] . src == S ) return T [ D ] } return null } } , isActive : function ( S , T , D ) { for ( var I = "no-" + T ; S ; ) { var _ = S . classList ; if ( _ . contains ( T ) ) return ! 0 ; if ( _ . contains ( I ) ) return ! 1 ; S = S . parentElement } return ! ! D } } , languages : { plain : a , plaintext : a , text : a , txt : a , extend : function ( S , T ) { var D = o . util . clone ( o . languages [ S ] ) ; for ( var I in T ) D [ I ] = T [ I ] ; return D } , insertBefore : function ( S , T , D , I ) { I = I || o . languages ; var _ = I [ S ] , F = { } ; for ( var G in _ ) if ( _ . hasOwnProperty ( G ) ) { if ( G == T ) for ( var W in D ) D . hasOwnProperty ( W ) && ( F [ W ] = D [ W ] ) ; D . hasOwnProperty ( G ) || ( F [ G ] = _ [ G ] ) } var fe = I [ S ] ; return I [ S ] = F , o . languages . DFS ( o . languages , function ( ve , Te ) { Te === fe && ve != S && ( this [ ve ] = F ) } ) , F } , DFS : function S ( T , D , I , _ ) { _ = _ || { } ; var F = o . util . objId ; for ( var G in T ) if ( T . hasOwnProperty ( G ) ) { D . call ( T , G , T [ G ] , I || G ) ; var W = T [ G ] , fe = o . util . type ( W ) ; fe === "Object" && ! _ [ F ( W ) ] ? ( _ [ F ( W ) ] = ! 0 , S ( W , D , null , _ ) ) : fe === "Array" && ! _ [ F ( W ) ] && ( _ [ F ( W ) ] = ! 0 , S ( W , D , G , _ ) ) } } } , plugins : { } , highlightAll : function ( S , T ) { o . highlightAllUnder ( document , S , T ) } , highlightAllUnder : function ( S , T , D ) { var I = { callback : D , container : S , selector : 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' } ; o . hooks . run ( "before-highlightall" , I ) , I . elements = Array . prototype . slice . apply ( I . container . querySelectorAll ( I . selector ) ) , o . hooks . run ( "before-all-elements-highlight" , I ) ; for ( var _ = 0 , F ; F = I . elements [ _ ++ ] ; ) o . highlightElement ( F , T === ! 0 , I . callback ) } , highlightElement : function ( S , T , D ) { var I = o . util . getLanguage ( S ) , _ = o . languages [ I ] ; o . util . setLanguage ( S , I ) ; var F = S . parentElement ; F && F . nodeName . toLowerCase ( ) === "pre" && o . util . setLanguage ( F , I ) ; var G = S . textContent , W = { element : S , language : I , grammar : _ , code : G } ; function fe ( Te ) { W . highlightedCode = Te , o . hooks . run ( "before-insert" , W ) , W . element . innerHTML = W . highlightedCode , o . hooks . run ( "after-highlight" , W ) , o . hooks . run ( "complete" , W ) , D && D . call ( W . element ) } if ( o . hooks . run ( "before-sanity-check" , W ) , F = W . element . parentElement , F && F . nodeName . toLowerCase ( ) === "pre" && ! F . hasAttribute ( "tabindex" ) && F . setAttribute ( "tabindex" , "0" ) , ! W . code ) { o . hooks . run ( "complete" , W ) , D && D . call ( W . element ) ; return } if ( o . hooks . run ( "before-highlight" , W ) , ! W . grammar ) { fe ( o . util . encode ( W . code ) ) ; return } if ( T && n . Worker ) { var ve = new Worker ( o . filename ) ; ve . onmessage = function ( Te ) { fe ( Te . data ) } , ve . postMessage ( JSON . stringify ( { language : W . language , code : W . code , immediateClose : ! 0 } ) ) } else fe ( o . highlight ( W . code , W . grammar , W . language ) ) } , highlight : function ( S , T , D ) { var I = { code : S , grammar : T , language : D } ; if ( o . hooks . run ( "before-tokenize" , I ) , ! I . grammar ) throw new Error ( 'The language "' + I . language + '" has no grammar.' ) ; return I . tokens = o . tokenize ( I . code , I . grammar ) , o . hooks . run ( "after-tokenize" , I ) , l . stringify ( o . util . encode ( I . tokens ) , I . language ) } , tokenize : function ( S , T ) { var D = T . rest ; if ( D ) { for ( var I in D ) T [ I ] = D [ I ] ; delete T . rest } var _ = new f ; return p ( _ ,
` ),y.hasAttribute("data-start")||y.setAttribute("data-start",String(W+1))}C.textContent=_,r.highlightElement(C)},function(_){y.setAttribute(o,u),C.textContent=_})}}),r.plugins.fileHighlight={highlight:function(y){for(var C=(y||document).querySelectorAll(f),S=0,T;T=C[S++];)r.highlightElement(T)}};var v=!1;r.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use ` Prism . plugins . fileHighlight . highlight ` instead."),v=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(H1);var n6=H1.exports;const Xl=r6(n6);class Bt{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new Bt(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Yt{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Yt(r,Bt.range(this,e))}}class re{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,s,a=r&&r.loc;if(a&&a.start<=a.end){var o=a.lexer.input;i=a.start,s=a.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,s).replace(/[^]/g," $ &̲"),c;i>15?c="…"+o.slice(i-15,i):c=o.slice(0,i);var u;s+15<o.length?u=o.slice(s,s+15)+"…":u=o.slice(s),n+=c+l+u}var f=new Error(n);return f.name="ParseError",f.__proto__=re.prototype,f.position=i,i!=null&&s!=null&&(f.length=s-i),f.rawMessage=e,f}}re.prototype.__proto__=Error.prototype;var i6=function(e,r){return e.indexOf(r)!==-1},s6=function(e,r){return e===void 0?r:e},a6=/([A-Z])/g,o6=function(e){return e.replace(a6,"- $ 1").toLowerCase()},l6={"&":"&",">":">","<":"<",'"':""","'":"'"},c6=/[&><"']/g;function u6(t){return String(t).replace(c6,e=>l6[e])}var q1=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},d6=function(e){var r=q1(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},h6=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},f6=function(e){var r=/^[ \x 00- \x 20]*([^ \\ /#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+ \- .]* $ /.test(r[1])?null:r[1].toLowerCase():"_relative"},be={contains:i6,deflt:s6,escape:u6,hyphenate:o6,getBaseElem:q1,isCharacterBox:d6,protocolFromUrl:f6},oi={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\ int and \\ sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form ' \\ foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, ` \ \ sqrt ` top lines, ` { array } ` vertical lines, ` \ \ hline ` , ` \ \ hdashline ` , ` \ \ underline ` , ` \ \ overline ` , and the borders of ` \ \ fbox ` , ` \ \ boxed ` , and ` \ \ fcolorbox ` .",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\ color behave like LaTeX's 2-a
2025-10-10 05:04:03 +00:00
c - 2.7 , 0 , - 7.17 , - 2.7 , - 13.5 , - 8 c - 5.8 , - 5.3 , - 9.5 , - 10 , - 9.5 , - 14
c0 , - 2 , 0.3 , - 3.3 , 1 , - 4 c1 . 3 , - 2.7 , 23.83 , - 20.7 , 67.5 , - 54
c44 . 2 , - 33.3 , 65.8 , - 50.3 , 66.5 , - 51 c1 . 3 , - 1.3 , 3 , - 2 , 5 , - 2 c4 . 7 , 0 , 8.7 , 3.3 , 12 , 10
s173 , 378 , 173 , 378 c0 . 7 , 0 , 35.3 , - 71 , 104 , - 213 c68 . 7 , - 142 , 137.5 , - 285 , 206.5 , - 429
c69 , - 144 , 104.5 , - 217.7 , 106.5 , - 221
l ` +e/2.075+" -"+e+ `
c5 . 3 , - 9.3 , 12 , - 14 , 20 , - 14
H400000v ` +(40+e)+ ` H845 . 2724
s - 225.272 , 467 , - 225.272 , 467 s - 235 , 486 , - 235 , 486 c - 2.7 , 4.7 , - 9 , 7 , - 19 , 7
c - 6 , 0 , - 10 , - 1 , - 12 , - 3 s - 194 , - 422 , - 194 , - 422 s - 65 , 47 , - 65 , 47 z
2025-10-10 17:31:06 +00:00
M ` +(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},k6=function(e,r){return"M263,"+(601+e+r)+ ` c0 . 7 , 0 , 18 , 39.7 , 52 , 119
2025-10-10 05:04:03 +00:00
c34 , 79.3 , 68.167 , 158.7 , 102.5 , 238 c34 . 3 , 79.3 , 51.8 , 119.3 , 52.5 , 120
c340 , - 704.7 , 510.7 , - 1060.3 , 512 , - 1067
l ` +e/2.084+" -"+e+ `
c4 . 7 , - 7.3 , 11 , - 11 , 19 , - 11
H40000v ` +(40+e)+ ` H1012 . 3
s - 271.3 , 567 , - 271.3 , 567 c - 38.7 , 80.7 , - 84 , 175 , - 136 , 283 c - 52 , 108 , - 89.167 , 185.3 , - 111.5 , 232
c - 22.3 , 46.7 , - 33.8 , 70.3 , - 34.5 , 71 c - 4.7 , 4.7 , - 12.3 , 7 , - 23 , 7 s - 12 , - 1 , - 12 , - 1
s - 109 , - 253 , - 109 , - 253 c - 72.7 , - 168 , - 109.3 , - 252 , - 110 , - 252 c - 10.7 , 8 , - 22 , 16.7 , - 34 , 26
c - 22 , 17.3 , - 33.3 , 26 , - 34 , 26 s - 26 , - 26 , - 26 , - 26 s76 , - 59 , 76 , - 59 s76 , - 60 , 76 , - 60 z
2025-10-10 17:31:06 +00:00
M ` +(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},T6=function(e,r){return"M983 "+(10+e+r)+ `
2025-10-10 05:04:03 +00:00
l ` +e/3.13+" -"+e+ `
c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000v ` +(40+e)+ `
H1013 . 1 s - 83.4 , 268 , - 264.1 , 840 c - 180.7 , 572 , - 277 , 876.3 , - 289 , 913 c - 4.7 , 4.7 , - 12.7 , 7 , - 24 , 7
s - 12 , 0 , - 12 , 0 c - 1.3 , - 3.3 , - 3.7 , - 11.7 , - 7 , - 25 c - 35.3 , - 125.3 , - 106.7 , - 373.3 , - 214 , - 744
c - 10 , 12 , - 21 , 25 , - 33 , 39 s - 32 , 39 , - 32 , 39 c - 6 , - 5.3 , - 15 , - 14 , - 27 , - 26 s25 , - 30 , 25 , - 30
c26 . 7 , - 32.7 , 52 , - 63 , 76 , - 91 s52 , - 60 , 52 , - 60 s208 , 722 , 208 , 722
c56 , - 175.3 , 126.3 , - 397.3 , 211 , - 666 c84 . 7 , - 268.7 , 153.8 , - 488.2 , 207.5 , - 658.5
c53 . 7 , - 170.3 , 84.5 , - 266.8 , 92.5 , - 289.5 z
2025-10-10 17:31:06 +00:00
M ` +(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},E6=function(e,r){return"M424,"+(2398+e+r)+ `
2025-10-10 05:04:03 +00:00
c - 1.3 , - 0.7 , - 38.5 , - 172 , - 111.5 , - 514 c - 73 , - 342 , - 109.8 , - 513.3 , - 110.5 , - 514
c0 , - 2 , - 10.7 , 14.3 , - 32 , 49 c - 4.7 , 7.3 , - 9.8 , 15.7 , - 15.5 , 25 c - 5.7 , 9.3 , - 9.8 , 16 , - 12.5 , 20
s - 5 , 7 , - 5 , 7 c - 4 , - 3.3 , - 8.3 , - 7.7 , - 13 , - 13 s - 13 , - 13 , - 13 , - 13 s76 , - 122 , 76 , - 122 s77 , - 121 , 77 , - 121
s209 , 968 , 209 , 968 c0 , - 2 , 84.7 , - 361.7 , 254 , - 1079 c169 . 3 , - 717.3 , 254.7 , - 1077.7 , 256 , - 1081
l ` +e/4.223+" -"+e+ ` c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000
v ` +(40+e)+ ` H1014 . 6
s - 87.3 , 378.7 , - 272.6 , 1166 c - 185.3 , 787.3 , - 279.3 , 1182.3 , - 282 , 1185
c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 z M ` +(1001+e)+" "+r+ `
2025-10-10 17:31:06 +00:00
h400000v ` +(40+e)+"h-400000z"},A6=function(e,r){return"M473,"+(2713+e+r)+ `
2025-10-10 05:04:03 +00:00
c339 . 3 , - 1799.3 , 509.3 , - 2700 , 510 , - 2702 l ` +e/5.298+" -"+e+ `
c3 . 3 , - 7.3 , 9.3 , - 11 , 18 , - 11 H400000v ` +(40+e)+ ` H1017 . 7
s - 90.5 , 478 , - 276.2 , 1466 c - 185.7 , 988 , - 279.5 , 1483 , - 281.5 , 1485 c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 c0 , - 1.3 , - 5.3 , - 32 , - 16 , - 92 c - 50.7 , - 293.3 , - 119.7 , - 693.3 , - 207 , - 1200
c0 , - 1.3 , - 5.3 , 8.7 , - 16 , 30 c - 10.7 , 21.3 , - 21.3 , 42.7 , - 32 , 64 s - 16 , 33 , - 16 , 33 s - 26 , - 26 , - 26 , - 26
s76 , - 153 , 76 , - 153 s77 , - 151 , 77 , - 151 c0 . 7 , 0.7 , 35.7 , 202 , 105 , 604 c67 . 3 , 400.7 , 102 , 602.7 , 104 ,
2025-10-10 17:31:06 +00:00
606 zM ` +(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},C6=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},M6=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+ `
2025-10-10 08:29:32 +00:00
H742v ` +i+ ` l - 4 4 - 4 4 c - . 667.7 - 2 1.5 - 4 2.5 s - 4.167 1.833 - 6.5 2.5 - 5.5 1 - 9.5 1
2025-10-10 05:04:03 +00:00
h - 12 l - 28 - 84 c - 16.667 - 52 - 96.667 - 294.333 - 240 - 727 l - 212 - 643 - 85 170
c - 4 - 3.333 - 8.333 - 7.667 - 13 - 13 l - 13 - 13 l77 - 155 77 - 156 c66 199.333 139 419.667
2025-10-10 17:31:06 +00:00
219 661 l218 661 zM702 ` +r+"H400000v"+(40+e)+"H742z"},N6=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=S6(r,Tn);break;case"sqrtSize1":i=k6(r,Tn);break;case"sqrtSize2":i=T6(r,Tn);break;case"sqrtSize3":i=E6(r,Tn);break;case"sqrtSize4":i=A6(r,Tn);break;case"sqrtTall":i=M6(r,Tn,n)}return i},D6=function(e,r){switch(e){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣ ":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Jl={doubleleftarrow: ` M262 157
2025-10-10 05:04:03 +00:00
l10 - 10 c34 - 36 62.7 - 77 86 - 123 3.3 - 8 5 - 13.3 5 - 16 0 - 5.3 - 6.7 - 8 - 20 - 8 - 7.3
0 - 12.2 . 5 - 14.5 1.5 - 2.3 1 - 4.8 4.5 - 7.5 10.5 - 49.3 97.3 - 121.7 169.3 - 217 216 - 28
14 - 57.3 25 - 88 33 - 6.7 2 - 11 3.8 - 13 5.5 - 2 1.7 - 3 4.2 - 3 7.5 s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13 h6c12 - . 7 18 - 4 18 - 10 0 - 2 - 1.7 - 7 - 5 - 15 - 23.3 - 46 - 52 - 87
- 86 - 123 l - 10 - 10 h399738v - 40 H218c328 0 0 0 0 0 l - 10 - 8 c - 26.7 - 20 - 65.7 - 43 - 117 - 69 2.7
- 2 6 - 3.7 10 - 5 36.7 - 16 72.3 - 37.3 107 - 64 l10 - 8 h399782v - 40 z
m8 0 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,doublerightarrow: ` M399738 392 l
- 10 10 c - 34 36 - 62.7 77 - 86 123 - 3.3 8 - 5 13.3 - 5 16 0 5.3 6.7 8 20 8 7.3 0 12.2 - . 5
14.5 - 1.5 2.3 - 1 4.8 - 4.5 7.5 - 10.5 49.3 - 97.3 121.7 - 169.3 217 - 216 28 - 14 57.3 - 25 88
- 33 6.7 - 2 11 - 3.8 13 - 5.5 2 - 1.7 3 - 4.2 3 - 7.5 s - 1 - 5.8 - 3 - 7.5 c - 2 - 1.7 - 6.3 - 3.5 - 13 - 5.5 - 68
- 17.3 - 128.2 - 47.8 - 180.5 - 91.5 - 52.3 - 43.7 - 93.8 - 96.2 - 124.5 - 157.5 - 9.3 - 8 - 15.3 - 12.3 - 18
- 13 h - 6 c - 12 . 7 - 18 4 - 18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123 l10 10 H0v40h399782
c - 328 0 0 0 0 0 l10 8 c26 . 7 20 65.7 43 117 69 - 2.7 2 - 6 3.7 - 10 5 - 36.7 16 - 72.3 37.3
- 107 64 l - 10 8 H0v40zM0 157 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,leftarrow: ` M400000 241 H110l3 - 3 c68 . 7 - 52.7 113.7 - 120
135 - 202 4 - 14.7 6 - 23 6 - 25 0 - 7.3 - 7 - 11 - 21 - 11 - 8 0 - 13.2 . 8 - 15.5 2.5 - 2.3 1.7 - 4.2 5.8
- 5.5 12.5 - 1.3 4.7 - 2.7 10.3 - 4 17 - 12 48.7 - 34.8 92 - 68.5 130 S65 . 3 228.3 18 247
c - 10 4 - 16 7.7 - 18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85 S196 441.3 208
490 c . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c . 3 1.3 1 3.3 2 6 s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3
1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11 0 - 2 - 2 - 10.3 - 6 - 25 - 20 - 79.3 - 65 - 146.7 - 135 - 202
l - 3 - 3 h399890zM100 241 v40h399900v - 40 z ` ,leftbrace: ` M6 548 l - 6 - 6 v - 35 l6 - 11 c56 - 104 135.3 - 181.3 238 - 232 57.3 - 28.7 117
- 45 179 - 50 h399577v120H403c - 43.3 7 - 81 15 - 113 26 - 100.7 33 - 179.7 91 - 237 174 - 2.7
5 - 6 9 - 10 13 - . 7 1 - 7.3 1 - 20 1 H6z ` ,leftbraceunder: ` M0 6 l6 - 6 h17c12 . 688 0 19.313 . 3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5 . 688
0 2 . 3 4 1 18.688 2.7 76 4.3 172 5 h399450v120H429l - 6 - 1 c - 124.688 - 8 - 235 - 61.7
- 331 - 161 C60 . 687 138.7 32.312 99.3 7 54 L0 41 V6z ` ,leftgroup: ` M400000 80
H435C64 80 168.3 229.4 21 260 c - 5.9 1.2 - 18 0 - 18 0 - 2 0 - 3 - 1 - 3 - 3 v - 38 C76 61 257 0
435 0 h399565z ` ,leftgroupunder: ` M400000 262
H435C64 262 168.3 112.6 21 82 c - 5.9 - 1.2 - 18 0 - 18 0 - 2 0 - 3 1 - 3 3 v38c76 158 257 219
435 219 h399565z ` ,leftharpoon: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3
- 3.3 10.2 - 9.5 20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5
- 18.3 3 - 21 - 1.3 - 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7
- 196 228 - 6.7 4.7 - 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 z ` ,leftharpoonplus: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3 - 3.3 10.2 - 9.5
20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5 - 18.3 3 - 21 - 1.3
- 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7 - 196 228 - 6.7 4.7
- 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 zM0 435 v40h400000v - 40 z
m0 0 v40h400000v - 40 z ` ,leftharpoondown: ` M7 241 c - 4 4 - 6.333 8.667 - 7 14 0 5.333 . 667 9 2 11 s5 . 333
5.333 12 10 c90 . 667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 . 667 5
1 9 1 h5c10 . 667 0 16.667 - 2 18 - 6 2 - 2.667 1 - 9.667 - 3 - 21 - 32 - 87.333 - 82.667 - 157.667
- 152 - 211 l - 3 - 3 h399907v - 40 zM93 281 H400000 v - 40 L7 241 z ` ,leftharpoondownplus: ` M7 435 c - 4 4 - 6.3 8.7 - 7 14 0 5.3 . 7 9 2 11 s5 . 3 5.3 12
10 c90 . 7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 . 7 5 1 9 1 h5c10 . 7 0 16.7
- 2 18 - 6 2 - 2.7 1 - 9.7 - 3 - 21 - 32 - 87.3 - 82.7 - 157.7 - 152 - 211 l - 3 - 3 h399907v - 40 H7zm93 0
v40h399900v - 40 zM0 241 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,lefthook: ` M400000 281 H103s - 33 - 11.2 - 61 - 33.5 S0 197.3 0 164 s14 . 2 - 61.2 42.5
- 83.5 C70 . 8 58.2 104 47 142 47 c16 . 7 0 25 6.7 25 20 0 12 - 8.7 18.7 - 26 20 - 40 3.3
- 68.7 15.7 - 86 37 - 10 12 - 15 25.3 - 15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23 h399859zM103 281 v - 40 h399897v40z ` ,leftlinesegment: ` M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z ` ,leftmapsto: ` M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z ` ,leftToFrom: ` M0 147 h400000v40H0zm0 214 c68 40 115.7 95.7 143 167 h22c15 . 3 0 23
- . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69 - 70 - 101 l - 7 - 8 h399905v - 40 H95l7 - 8
c28 . 7 - 32 52 - 65.7 70 - 101 10.7 - 23.3 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 265.3
68 321 0 361 zm0 - 174 v - 40 h399900v40zm100 154 v40h399900v - 40 z ` ,longequal: ` M0 50 h400000 v40H0z m0 194 h40000v40H0z
M0 50 h400000 v40H0z m0 194 h40000v40H0z ` ,midbrace: ` M200428 334
c - 100.7 - 8.3 - 195.3 - 44 - 280 - 108 - 55.3 - 42 - 101.7 - 93 - 139 - 153 l - 9 - 14 c - 2.7 4 - 5.7 8.7 - 9 14
- 53.3 86.7 - 123.7 153 - 211 199 - 66.7 36 - 137.3 56.3 - 212 62 H0V214h199568c178 . 3 - 11.7
311.7 - 78.3 403 - 201 6 - 8 9.7 - 12 11 - 12 . 7 - . 7 6.7 - 1 18 - 1 s17 . 3.3 18 1 c1 . 3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141 s145 . 3 54.3 229 60 h199572v120z ` ,midbraceunder: ` M199572 214
c100 . 7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153 l9 14 c2 . 7 - 4 5.7 - 8.7 9 - 14
53.3 - 86.7 123.7 - 153 211 - 199 66.7 - 36 137.3 - 56.3 212 - 62 h199568v120H200432c - 178.3
11.7 - 311.7 78.3 - 403 201 - 6 8 - 9.7 12 - 11 12 - . 7.7 - 6.7 1 - 18 1 s - 17.3 - . 3 - 18 - 1 c - 1.3 0
- 5 - 4 - 11 - 12 - 44.7 - 59.3 - 101.3 - 106.3 - 170 - 141 s - 145.3 - 54.3 - 229 - 60 H0V214z ` ,oiintSize1: ` M512 . 6 71.6 c272 . 6 0 320.3 106.8 320.3 178.2 0 70.8 - 47.7 177.6
- 320.3 177.6 S193 . 1 320.6 193.1 249.8 c0 - 71.4 46.9 - 178.2 319.5 - 178.2 z
m368 . 1 178.2 c0 - 86.4 - 60.9 - 215.4 - 368.1 - 215.4 - 306.4 0 - 367.3 129 - 367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1 - 129 368.1 - 214.8 z ` ,oiintSize2: ` M757 . 8 100.1 c384 . 7 0 451.1 137.6 451.1 230 0 91.3 - 66.4 228.8
- 451.1 228.8 - 386.3 0 - 452.7 - 137.5 - 452.7 - 228.8 0 - 92.4 66.4 - 230 452.7 - 230 z
m502 . 4 230 c0 - 111.2 - 82.4 - 277.2 - 502.4 - 277.2 s - 504 166 - 504 277.2
c0 110 84 276 504 276 s502 . 4 - 166 502.4 - 276 z ` ,oiiintSize1: ` M681 . 4 71.6 c408 . 9 0 480.5 106.8 480.5 178.2 0 70.8 - 71.6 177.6
- 480.5 177.6 S202 . 1 320.6 202.1 249.8 c0 - 71.4 70.5 - 178.2 479.3 - 178.2 z
m525 . 8 178.2 c0 - 86.4 - 86.8 - 215.4 - 525.7 - 215.4 - 437.9 0 - 524.7 129 - 524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7 - 129 525.7 - 214.8 z ` ,oiiintSize2: ` M1021 . 2 53 c603 . 6 0 707.8 165.8 707.8 277.2 0 110 - 104.2 275.8
- 707.8 275.8 - 606 0 - 710.2 - 165.8 - 710.2 - 275.8 C311 218.8 415.2 53 1021.2 53 z
m770 . 4 277.1 c0 - 131.2 - 126.4 - 327.6 - 770.5 - 327.6 S248 . 4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4 s770 . 5 - 196.4 770.5 - 326.4 z ` ,rightarrow: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128
- 16.7 32 - 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20
11 8 0 13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7
39 - 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85
- 40.5 - 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm0 0 v40h399900v - 40 z ` ,rightbrace: ` M400000 542 l
- 6 6 h - 17 c - 12.7 0 - 19.3 - . 3 - 20 - 1 - 4 - 4 - 7.3 - 8.3 - 10 - 13 - 35.3 - 51.3 - 80.8 - 93.8 - 136.5 - 127.5
s - 117.2 - 55.8 - 184.5 - 66.5 c - . 7 0 - 2 - . 3 - 4 - 1 - 18.7 - 2.7 - 76 - 4.3 - 172 - 5 H0V214h399571l6 1
c124 . 7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118 l7 13 v35z ` ,rightbraceunder: ` M399994 0 l6 6 v35l - 6 11 c - 56 104 - 135.3 181.3 - 238 232 - 57.3
28.7 - 117 45 - 179 50 H - 300 V214h399897c43 . 3 - 7 81 - 15 113 - 26 100.7 - 33 179.7 - 91 237
- 174 2.7 - 5 6 - 9 10 - 13 . 7 - 1 7.3 - 1 20 - 1 h17z ` ,rightgroup: ` M0 80 h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3 - 1 3 - 3 v - 38 c - 76 - 158 - 257 - 219 - 435 - 219 H0z ` ,rightgroupunder: ` M0 262 h399565c371 0 266.7 - 149.4 414 - 180 5.9 - 1.2 18 0 18
0 2 0 3 1 3 3 v38c - 76 158 - 257 219 - 435 219 H0z ` ,rightharpoon: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3
- 3.7 - 15.3 - 11 - 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2
- 10.7 0 - 16.7 2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5 zm0 0 v40h399900v - 40 z ` ,rightharpoonplus: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3 - 3.7 - 15.3 - 11
- 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2 - 10.7 0 - 16.7
2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5 z
m0 0 v40h399900v - 40 z m100 194 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,rightharpoondown: ` M399747 511 c0 7.3 6.7 11 20 11 8 0 13 - . 8 15 - 2.5 s4 . 7 - 6.8
8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3 8.5 - 5.8 9.5
- 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3 - 64.7 57 - 92 95
- 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 241 v40h399900v - 40 z ` ,rightharpoondownplus: ` M399747 705 c0 7.3 6.7 11 20 11 8 0 13 - . 8
15 - 2.5 s4 . 7 - 6.8 8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3
8.5 - 5.8 9.5 - 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3
- 64.7 57 - 92 95 - 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 435 v40h399900v - 40 z
m0 - 194 v40h400000v - 40 zm0 0 v40h400000v - 40 z ` ,righthook: ` M399859 241 c - 764 0 0 0 0 0 40 - 3.3 68.7 - 15.7 86 - 37 10 - 12 15 - 25.3
15 - 40 0 - 22.7 - 9.8 - 40.7 - 29.5 - 54 - 19.7 - 13.3 - 43.5 - 21 - 71.5 - 23 - 17.3 - 1.3 - 26 - 8 - 26 - 20 0
- 13.3 8.7 - 20 26 - 20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8 s - 14 61.2 - 42 83.5 c - 28 22.3 - 61 33.5 - 99 33.5 L0 241 z M0 281 v - 40 h399859v40z ` ,rightlinesegment: ` M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z
M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z ` ,rightToFrom: ` M400000 167 c - 70.7 - 42 - 118 - 97.7 - 142 - 167 h - 23 c - 15.3 0 - 23 . 3 - 23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101 l7 8 H0v40h399905l - 7 8 c - 28.7 32
- 52 65.7 - 70 101 - 10.7 23.3 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h23c24 - 69.3 71.3 - 125 142
- 167 z M100 147 v40h399900v - 40 zM0 341 v40h399900v - 40 z ` ,twoheadleftarrow: ` M0 167 c68 40
115.7 95.7 143 167 h22c15 . 3 0 23 - . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69
- 70 - 101 l - 7 - 8 h125l9 7 c50 . 7 39.3 85 86 103 140 h46c0 - 4.7 - 6.3 - 18.7 - 19 - 42 - 18 - 35.3
- 40 - 67.3 - 66 - 96 l - 9 - 9 h399716v - 40 H284l9 - 9 c26 - 28.7 48 - 60.7 66 - 96 12.7 - 23.333 19
- 37.333 19 - 42 h - 46 c - 18 54 - 52.3 100.7 - 103 140 l - 9 7 H95l7 - 8 c28 . 7 - 32 52 - 65.7 70 - 101
10.7 - 23.333 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 71.3 68 127 0 167 z ` ,twoheadrightarrow: ` M400000 167
c - 68 - 40 - 115.7 - 95.7 - 143 - 167 h - 22 c - 15.3 0 - 23 . 3 - 23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101 l7 8 h - 125 l - 9 - 7 c - 50.7 - 39.3 - 85 - 86 - 103 - 140 h - 46 c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96 l9 9 H0v40h399716l - 9 9 c - 26 28.7 - 48 60.7 - 66 96 - 12.7 23.333
- 19 37.333 - 19 42 h46c18 - 54 52.3 - 100.7 103 - 140 l9 - 7 h125l - 7 8 c - 28.7 32 - 52 65.7 - 70
101 - 10.7 23.333 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h22c27 . 3 - 71.3 75 - 127 143 - 167 z ` ,tilde1: ` M200 55.538 c - 77 0 - 168 73.953 - 177 73.953 - 3 0 - 7
- 2.175 - 9 - 5.437 L2 97 c - 1 - 2 - 2 - 4 - 2 - 6 0 - 4 2 - 7 5 - 9 l20 - 12 C116 12 171 0 207 0 c86 0
114 68 191 68 78 0 168 - 68 177 - 68 4 0 7 2 9 5 l12 19 c1 2.175 2 4.35 2 6.525 0
4.35 - 2 7.613 - 5 9.788 l - 19 13.05 c - 92 63.077 - 116.937 75.308 - 183 76.128
- 68.267 . 847 - 113 - 73.952 - 191 - 73.952 z ` ,tilde2: ` M344 55.266 c - 142 0 - 300.638 81.316 - 311.5 86.418
- 8.01 3.762 - 22.5 10.91 - 23.5 5.562 L1 120 c - 1 - 2 - 1 - 3 - 1 - 4 0 - 5 3 - 9 8 - 10 l18 . 4 - 9 C160 . 9
31.9 283 0 358 0 c148 0 188 122 331 122 s314 - 97 326 - 97 c4 0 8 2 10 7 l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347 - 3 9.626 - 7 10.696 l - 22.3 12.622 C852 . 6 158.372 751
181.476 676 181.476 c - 149 0 - 189 - 126.21 - 332 - 126.21 z ` ,tilde3: ` M786 59 C457 59 32 175.242 13 175.242 c - 6 0 - 10 - 3.457
- 11 - 10.37 L . 15 138 c - 1 - 7 3 - 12 10 - 13 l19 . 2 - 6.4 C378 . 4 40.7 634.3 0 804.3 0 c337 0
411.8 157 746.8 157 328 0 754 - 112 773 - 112 5 0 10 3 11 9 l1 14.075 c1 8.066 - . 697
16.595 - 6.697 17.492 l - 21.052 7.31 c - 367.9 98.146 - 609.15 122.696 - 778.15 122.696
- 338 0 - 409 - 156.573 - 744 - 156.573 z ` ,tilde4: ` M786 58 C457 58 32 177.487 13 177.487 c - 6 0 - 10 - 3.345
- 11 - 10.035 L . 15 143 c - 1 - 7 3 - 12 10 - 13 l22 - 6.7 C381 . 2 35 637.15 0 807.15 0 c337 0 409
177 744 177 328 0 754 - 127 773 - 127 5 0 10 3 11 9 l1 14.794 c1 7.805 - 3 13.38 - 9
14.495 l - 20.7 5.574 c - 366.85 99.79 - 607.3 139.372 - 776.3 139.372 - 338 0 - 409
- 175.236 - 744 - 175.236 z ` ,vec: ` M377 20 c0 - 5.333 1.833 - 10 5.5 - 14 S391 0 397 0 c4 . 667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6 - 1 10 - 3 12 s - 6.667 5 - 14 9 c - 28.667 14.667 - 53.667 35.667 - 75 63
- 1.333 1.333 - 3.167 3.5 - 5.5 6.5 s - 4 4.833 - 5 5.5 c - 1 . 667 - 2.5 1.333 - 4.5 2 s - 4.333 1
- 7 1 c - 4.667 0 - 9.167 - 1.833 - 13.5 - 5.5 S337 184 337 178 c0 - 12.667 15.667 - 32.333 47 - 59
H213l - 171 - 1 c - 8.667 - 6 - 13 - 12.333 - 13 - 19 0 - 4.667 4.333 - 11.333 13 - 20 h359
c - 16 - 25.333 - 24 - 45 - 24 - 59 z ` ,widehat1: ` M529 0 h5l519 115 c5 1 9 5 9 10 0 1 - 1 2 - 1 3 l - 4 22
c - 1 5 - 5 9 - 11 9 h - 2 L532 67 19 159 h - 2 c - 5 0 - 9 - 4 - 11 - 9 l - 5 - 22 c - 1 - 6 2 - 12 8 - 13 z ` ,widehat2: ` M1181 0 h2l1171 176 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 220 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat3: ` M1181 0 h2l1171 236 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 280 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat4: ` M1181 0 h2l1171 296 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 340 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widecheck1: ` M529 , 159 h5l519 , - 115 c5 , - 1 , 9 , - 5 , 9 , - 10 c0 , - 1 , - 1 , - 2 , - 1 , - 3 l - 4 , - 22 c - 1 ,
- 5 , - 5 , - 9 , - 11 , - 9 h - 2 l - 512 , 92 l - 513 , - 92 h - 2 c - 5 , 0 , - 9 , 4 , - 11 , 9 l - 5 , 22 c - 1 , 6 , 2 , 12 , 8 , 13 z ` ,widecheck2: ` M1181 , 220 h2l1171 , - 176 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 153 l - 1167 , - 153 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck3: ` M1181 , 280 h2l1171 , - 236 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 213 l - 1167 , - 213 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck4: ` M1181 , 340 h2l1171 , - 296 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 273 l - 1167 , - 273 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,baraboveleftarrow: ` M400000 620 h - 399890 l3 - 3 c68 . 7 - 52.7 113.7 - 120 135 - 202
c4 - 14.7 6 - 23 6 - 25 c0 - 7.3 - 7 - 11 - 21 - 11 c - 8 0 - 13.2 0.8 - 15.5 2.5
c - 2.3 1.7 - 4.2 5.8 - 5.5 12.5 c - 1.3 4.7 - 2.7 10.3 - 4 17 c - 12 48.7 - 34.8 92 - 68.5 130
s - 74.2 66.3 - 121.5 85 c - 10 4 - 16 7.7 - 18 11 c0 8.7 6 14.3 18 17 c47 . 3 18.7 87.8 47
121.5 85 s56 . 5 81.3 68.5 130 c0 . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c0 . 3 1.3 1 3.3 2 6
s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3 1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11
c0 - 2 - 2 - 10.3 - 6 - 25 c - 20 - 79.3 - 65 - 146.7 - 135 - 202 l - 3 - 3 h399890z
M100 620 v40h399900v - 40 z M0 241 v40h399900v - 40 zM0 241 v40h399900v - 40 z ` ,rightarrowabovebar: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128 - 16.7 32
- 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20 11 8 0
13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7 39
- 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85 - 40.5
- 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm96 379 h399894v40H0zm0 0 h399904v40H0z ` ,baraboveshortleftharpoon: ` M507 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17
c2 , 0.7 , 5 , 1 , 9 , 1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21
c - 32 , - 87.3 , - 82.7 , - 157.7 , - 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399351 , 0 l0 , - 40
c - 398570 , 0 , - 399437 , 0 , - 399437 , 0 z M593 435 v40 H399500 v - 40 z
M0 281 v - 40 H399908 v40z M0 281 v - 40 H399908 v40z ` ,rightharpoonaboveshortbar: ` M0 , 241 l0 , 40 c399126 , 0 , 399993 , 0 , 399993 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
M0 241 v40 H399908 v - 40 z M0 475 v - 40 H399500 v40z M0 475 v - 40 H399500 v40z ` ,shortbaraboveleftharpoon: ` M7 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17 c2 , 0.7 , 5 , 1 , 9 ,
1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21 c - 32 , - 87.3 , - 82.7 , - 157.7 ,
- 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399907 , 0 l0 , - 40 c - 399126 , 0 , - 399993 , 0 , - 399993 , 0 z
M93 435 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z ` ,shortrightharpoonabovebar: ` M53 , 241 l0 , 40 c398570 , 0 , 399437 , 0 , 399437 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
2025-10-10 17:31:06 +00:00
M500 241 v40 H399408 v - 40 z M500 435 v40 H400000 v - 40 z ` },I6=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+ ` v1759 h347 v - 84
2025-10-10 05:04:03 +00:00
H403z M403 1759 V0 H319 V1759 v ` +r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+ ` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v ` +r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +r+ ` v585 h43z
M367 15 v585 v ` +r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M410 15 H367 v585 v ` +r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+ ` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v ` +r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+ ` v1799 H0 v - 84 H319z
MM319 602 V0 H403 V602 v ` +r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+ ` v602 h84z
M403 1759 V0 H319 V1759 v ` +r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+ ` v602 h84z
M347 1759 V0 h - 84 V1759 v ` +r+" v602 h84z";case"lparen":return ` M863 , 9 c0 , - 2 , - 2 , - 5 , - 6 , - 9 c0 , 0 , - 17 , 0 , - 17 , 0 c - 12.7 , 0 , - 19.3 , 0.3 , - 20 , 1
c - 5.3 , 5.3 , - 10.3 , 11 , - 15 , 17 c - 242.7 , 294.7 , - 395.3 , 682 , - 458 , 1162 c - 21.3 , 163.3 , - 33.3 , 349 ,
- 36 , 557 l0 , ` +(r+84)+ ` c0 . 2 , 6 , 0 , 26 , 0 , 60 c2 , 159.3 , 10 , 310.7 , 24 , 454 c53 . 3 , 528 , 210 ,
949.7 , 470 , 1265 c4 . 7 , 6 , 9.7 , 11.7 , 15 , 17 c0 . 7 , 0.7 , 7 , 1 , 19 , 1 c0 , 0 , 18 , 0 , 18 , 0 c4 , - 4 , 6 , - 7 , 6 , - 9
c0 , - 2.7 , - 3.3 , - 8.7 , - 10 , - 18 c - 135.3 , - 192.7 , - 235.5 , - 414.3 , - 300.5 , - 665 c - 65 , - 250.7 , - 102.5 ,
- 544.7 , - 112.5 , - 882 c - 2 , - 104 , - 3 , - 167 , - 3 , - 189
l0 , - ` +(r+92)+ ` c0 , - 162.7 , 5.7 , - 314 , 17 , - 454 c20 . 7 , - 272 , 63.7 , - 513 , 129 , - 723 c65 . 3 ,
- 210 , 155.3 , - 396.3 , 270 , - 559 c6 . 7 , - 9.3 , 10 , - 15.3 , 10 , - 18 z ` ;case"rparen":return ` M76 , 0 c - 16.7 , 0 , - 25 , 3 , - 25 , 9 c0 , 2 , 2 , 6.3 , 6 , 13 c21 . 3 , 28.7 , 42.3 , 60.3 ,
63 , 95 c96 . 7 , 156.7 , 172.8 , 332.5 , 228.5 , 527.5 c55 . 7 , 195 , 92.8 , 416.5 , 111.5 , 664.5
c11 . 3 , 139.3 , 17 , 290.7 , 17 , 454 c0 , 28 , 1.7 , 43 , 3.3 , 45 l0 , ` +(r+9)+ `
c - 3 , 4 , - 3.3 , 16.7 , - 3.3 , 38 c0 , 162 , - 5.7 , 313.7 , - 17 , 455 c - 18.7 , 248 , - 55.8 , 469.3 , - 111.5 , 664
c - 55.7 , 194.7 , - 131.8 , 370.3 , - 228.5 , 527 c - 20.7 , 34.7 , - 41.7 , 66.3 , - 63 , 95 c - 2 , 3.3 , - 4 , 7 , - 6 , 11
c0 , 7.3 , 5.7 , 11 , 17 , 11 c0 , 0 , 11 , 0 , 11 , 0 c9 . 3 , 0 , 14.3 , - 0.3 , 15 , - 1 c5 . 3 , - 5.3 , 10.3 , - 11 , 15 , - 17
c242 . 7 , - 294.7 , 395.3 , - 681.7 , 458 , - 1161 c21 . 3 , - 164.7 , 33.3 , - 350.7 , 36 , - 558
l0 , - ` +(r+144)+ ` c - 2 , - 159.3 , - 10 , - 310.7 , - 24 , - 454 c - 53.3 , - 528 , - 210 , - 949.7 ,
2025-10-10 17:47:27 +00:00
- 470 , - 1265 c - 4.7 , - 6 , - 9.7 , - 11.7 , - 15 , - 17 c - 0.7 , - 0.7 , - 6.7 , - 1 , - 18 , - 1 z ` ;default:throw new Error("Unknown stretchy delimiter.")}};class C0{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return be.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){var e=r=>r.toText();return this.children.map(e).join("")}}var pr={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.755
` +F+" children.");for(var ve=0;ve<F;ve++){var Te=new Zr(T[ve]),Xe=new _r([Te],{width:"400em",height:se(_),viewBox:"0 0 "+o+" "+I,preserveAspectRatio:W[ve]+" slice"}),ze= $ .makeSvgSpan([G[ve]],[Xe],r);if(F===1)return{span:ze,minWidth:D,height:_};ze.style.height=se(_),C.push(ze)}return{span: $ .makeSpan(["stretchy"],C,r),minWidth:D,height:_}}}var{span:i,minWidth:s,height:a}=n();return i.height=a,i.style.height=se(a),s>0&&(i.style.minWidth=se(s)),i},g5=function(e,r,n,i,s){var a,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(a= $ .makeSpan(["stretchy",r],[],s),r==="fbox"){var l=s.color&&s.getColor();l&&(a.style.borderColor=l)}}else{var c=[];/^[bx]cancel $ /.test(r)&&c.push(new ga({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel $ /.test(r)&&c.push(new ga({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new _r(c,{width:"100%",height:se(o)});a= $ .makeSvgSpan([],[u],s)}return a.height=o,a.style.height=se(o),a},zr={encloseSpan:g5,mathMLnode:h5,svgSpan:m5};function De(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function So(t){var e=ns(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function ns(t){return t&&(t.type==="atom"||H6.hasOwnProperty(t.type))?t:null}var ko=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=De(t.base,"accent"),r=n.base,t.base=r,i=B6(Le(t,e)),t.base=n):(n=De(t,"accent"),r=n.base);var s=Le(r,e.havingCrampedStyle()),a=n.isShifty&&be.isCharacterBox(r),o=0;if(a){var l=be.getBaseElem(r),c=Le(l,e.havingCrampedStyle());o=tc(c).skew}var u=n.label===" \\ c",f=u?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),p;if(n.isStretchy)p=zr.svgSpan(n,e),p= $ .makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+se(2*o)+")",marginLeft:se(2*o)}:void 0}]},e);else{var g,v;n.label===" \\ vec"?(g= $ .staticSvg("vec",e),v= $ .svgData.vec[1]):(g= $ .makeOrd({mode:n.mode,text:n.label},e,"textord"),g=tc(g),g.italic=0,v=g.width,u&&(f+=g.depth)),p= $ .makeSpan(["accent-body"],[g]);var w=n.label===" \\ textcircled";w&&(p.classes.push("accent-full"),f=s.height);var y=o;w||(y-=v/2),p.style.left=se(y),n.label===" \\ textcircled"&&(p.style.top=".2em"),p= $ .makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-f},{type:"elem",elem:p}]},e)}var C= $ .makeSpan(["mord","accent"],[p],e);return i?(i.children[0]=C,i.height=Math.max(C.height,i.height),i.classes[0]="mord",i):C},id=(t,e)=>{var r=t.isStretchy?zr.mathMLnode(t.label):new te.MathNode("mo",[Jt(t.label,t.mode)]),n=new te.MathNode("mover",[Ye(t.base,e),r]);return n.setAttribute("accent","true"),n},v5=new RegExp([" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"].map(t=>" \\ "+t).join("|"));ue({type:"accent",names:[" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"," \\ widecheck"," \\ widehat"," \\ widetilde"," \\ overrightarrow"," \\ overleftarrow"," \\ Overrightarrow"," \\ overleftrightarrow"," \\ overgroup"," \\ overlinesegment"," \\ overleftharpoon"," \\ overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var r=Ri(e[0]),n=!v5.test(t.funcName),i=!n||t.funcName===" \\ widehat"||t.funcName===" \\ widetilde"||t.funcName===" \\ widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:ko,mathmlBuilder:id});ue({type:"accent",names:[" \\ '"," \\ ` "," \ \ ^ "," \ \ ~ "," \ \ = "," \ \ u "," \ \ . ",'\\" ',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX' s accent "+t.funcName+" works only in text mode "),n=" text "),{type:" accent ",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:ko,mathmlBuilder:id});ue({type:" accentUnder ",names:[" \ \ underleftarrow "," \
2025-10-10 17:31:06 +00:00
] ` ,U5=" \\ \\ [a-zA-Z@]+",V5=" \\ \\ [^ \u D800- \u DFFF]",W5="("+U5+")"+Id+"*",G5= ` \ \ \ \ (
2025-10-10 05:04:03 +00:00
| [ \ r ] +
2025-10-10 17:47:27 +00:00
? ) [ \ r ] * ` ,Sa="[̀-ͯ]",K5=new RegExp(Sa+"+ $ "),Y5="("+Id+"+)|"+(G5+"|")+"([!- \\ [ \\ ]-‧-豈-]"+(Sa+"*")+"|[ \u D800- \u DBFF][ \u DC00- \u DFFF]"+(Sa+"*")+"| \\ \\ verb \\ *([^]).*? \\ 4| \\ \\ verb([^*a-zA-Z]).*? \\ 5"+("|"+W5)+("|"+V5+")");class Ac{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(Y5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Yt("EOF",new Bt(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new re("Unexpected character: '"+e[r]+"'",new Yt(e[r],new Bt(this,r,r+1)));var i=n[6]||n[3]||(n[2]?" \\ ":" ");if(this.catcodes[i]===14){var s=e.indexOf( `
` ,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $ )")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Yt(i,new Bt(this,r,this.tokenRegex.lastIndex))}}class X5{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new re("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var J5=wd;b(" \\ noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});b(" \\ expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});b(" \\ @firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});b(" \\ @secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});b(" \\ @ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});b(" \\ @ifstar"," \\ @ifnextchar *{ \\ @firstoftwo{#1}}");b(" \\ TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Cc={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};b(" \\ char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text===" ` ")if(e=t.popToken(),e.text[0]===" \ \ ")n=e.text.charCodeAt(1);else{if(e.text===" EOF ")throw new re(" \ \ char ` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=Cc[e.text],n==null||n>=r)throw new re("Invalid base-"+r+" digit "+e.text);for(var i;(i=Cc[t.future().text])!=null&&i<r;)n*=r,n+=i,t.popToken()}return" \\ @char{"+n+"}"});var Io=(t,e,r,n)=>{var i=t.consumeArg().tokens;if(i.length!==1)throw new re(" \\ newcommand's first argument must be a macro name");var s=i[0].text,a=t.isDefined(s);if(a&&!e)throw new re(" \\ newcommand{"+s+"} attempting to redefine "+(s+"; use \\ renewcommand"));if(!a&&!r)throw new re(" \\ renewcommand{"+s+"} when command "+s+" does not yet exist; use \\ newcommand");var o=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",c=t.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=t.expandNextToken();if(!l.match(/^ \s *[0-9]+ \s * $ /))throw new re("Invalid number of arguments: "+l);o=parseInt(l),i=t.consumeArg().tokens}return a&&n||t.macros.set(s,{tokens:i,numArgs:o}),""};b(" \\ newcommand",t=>Io(t,!1,!0,!1));b(" \\ renewcommand",t=>Io(t,!0,!1,!1));b(" \\ providecommand",t=>Io(t,!0,!0,!0));b(" \\ message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});b(" \\ errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});b(" \\ show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Wr[r],Qe.math[r],Qe.text[r]),""});b(" \\ bgroup","{");b(" \\ egroup","}");b("~"," \\ nobreakspace");b(" \\ lq"," ` ");b(" \ \ rq "," ' ");b(" \ \ aa "," \ \ r a ");b(" \ \ AA "," \ \ r A ");b(" \ \ textcopyright "," \ \ html @ mathml { \ \ textcircled { c } } { \ \ char ` ©}");b(" \\ copyright"," \\ TextOrMath{
please report what input caused this bug ` );return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Dc.hasOwnProperty(r[0])&&!Qe[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=Dc[r[0]]+r.slice(1));var s=K5.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı ":r==="j"&&(r="ȷ"));var a;if(Qe[this.mode][r]){this.settings.strict&&this.mode==="math"&&va.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=Qe[this.mode][r].group,l=Bt.range(e),c;if(P6.hasOwnProperty(o)){var u=o;c={type:"atom",mode:this.mode,family:u,loc:l,text:r}}else c={type:o,mode:this.mode,loc:l,text:r};a=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(j1(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),a={type:"textord",mode:"text",loc:Bt.range(e),text:r};else return null;if(this.consume(),s)for(var f=0;f<s[0].length;f++){var p=s[0][f];if(!Ps[p])throw new re("Unknown accent ' "+p+"'",e);var g=Ps[p][this.mode]||Ps[p].text;if(!g)throw new re("Accent "+p+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:Bt.range(e),label:g,isStretchy:!1,isShifty:!0,base:a}}return a}}os.endOfExpression=["}"," \\ endgroup"," \\ end"," \\ right","&"];var Oo=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new os(e,r);delete n.gullet.macros.current[" \\ df@tag"];var i=n.parse();if(delete n.gullet.macros.current[" \\ current@color"],delete n.gullet.macros.current[" \\ color"],n.gullet.macros.get(" \\ df@tag")){if(!r.displayMode)throw new re(" \\ tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Yt(" \\ df@tag")])}]}return i},Ld=function(e,r,n){r.textContent="";var i=_o(e,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Ld=function(){throw new re("KaTeX doesn't work in quirks mode.")});var Q5=function(e,r){var n=_o(e,r).toMarkup();return n},e7=function(e,r){var n=new mo(r);return Oo(e,n)},zd=function(e,r,n){if(n.throwOnError||!(e instanceof re))throw e;var i= $ .makeSpan(["katex-error"],[new Xt(r)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},_o=function(e,r){var n=new mo(r);try{var i=Oo(e,n);return c5(i,e,n)}catch(s){return zd(s,e,n)}},t7=function(e,r){var n=new mo(r);try{var i=Oo(e,n);return u5(i,e,n)}catch(s){return zd(s,e,n)}},r7="0.16.22",n7={Span:M0,Anchor:bo,SymbolNode:Xt,SvgNode:_r,PathNode:Zr,LineNode:ga},Ic={version:r7,render:Ld,renderToString:Q5,ParseError:re,SETTINGS_SCHEMA:oi,__parse:e7,__renderToDomTree:_o,__renderToHTMLTree:t7,__setFontMetrics:R6,__defineSymbol:d,__defineFunction:ue,__defineMacro:b,__domTree:n7};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^ $ \w \x A0- \u FFFF])(?! \s )[_ $ A-Z \x A0- \u FFFF](?:(?! \s )[ $ \w \x A0- \u FFFF])*(?= \. (?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^| \} ) \s *)catch \b /,lookbehind:!0},{pattern:/(^|[^.]| \. \. \. \s *) \b (?:as|assert(?= \s * \{ )|async(?= \s *(?:function \b | \( |[ $ \w \x A0- \u FFFF]| $ ))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?= \s *(?: \{ | $ ))|for|from(?= \s *(?:['"]| $ ))|function|(?:get|set)(?= \s *(?:[# \[ $ \w \x A0- \u FFFF]| $ ))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield) \b /,lookbehind:!0}],function:/#?(?! \s )[_ $ a-zA-Z \x A0- \u FFFF](?:(?! \s )[ $ \w \x A0- \u FFFF])*(?= \s *(?: \. \
` );let r=!1,n=!1;for(const a of e){const o=a.trim();o.includes("|")&&o.split("|").length>=3&&(r=!0),o.includes("|")&&o.includes("-")&&/^[ \s \| \- \: ]+ $ /.test(o)&&(n=!0)}const i=(t.match(/ \| /g)||[]).length,s=i>=6;return r&&n||r&&s||r&&i>=4},l7=t=>!t||typeof t!="string"?!1:o7(t)?!0:[/#{1,6} \s +/,/ \* \* .*? \* \* /,/ \* .*? \* /,/ ` . * ? ` /,/ ` ` ` [ \ s \ S ] * ? ` ` ` /,/^ \s *[-*+] \s +/m,/^ \s * \d + \. \s +/m,/ \[ .*? \] \( .*? \) /,/! \[ .*? \] \( .*? \) /,/ \$ \$ .*? \$ \$ /,/ \$ .*? \$ /].some(r=>r.test(t)),X0=t=>!t||typeof t!="string"?t||"":l7(t)||t.includes("|")?y0(t):t;const Lo=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},c7={class:"mindmap-container"},u7={key:0,class:"welcome-page"},d7={class:"ai-input-content"},h7=["disabled","onKeydown"],f7={class:"ai-input-actions"},p7=["disabled"],m7=["disabled"],g7={key:0},v7={key:1},b7={key:3,class:"save-controls"},y7={__name:"MindMap",setup(t,{expose:e}){const r={name:"Light Purple",type:"light",palette:["#660874","#660874","#660874","#660874","#660874","#660874","#660874","#660874","#660874","#660874"],cssVar:{"--node-gap-x":"30px","--node-gap-y":"10px","--main-gap-x":"65px","--main-gap-y":"45px","--root-radius":"30px","--main-radius":"20px","--root-color":"#ffffff","--root-bgcolor":"#660874","--root-border-color":"rgba(0, 0, 0, 0)","--main-color":"#444446","--main-bgcolor":"#ffffff","--topic-padding":"3px","--color":"#777777","--bgcolor":"#f6f6f6","--selected":"#660874","--accent-color":"#660874","--panel-color":"#444446","--panel-bgcolor":"#ffffff","--panel-border-color":"#eaeaea","--map-padding":"50px"}},n=Oe(null),i=Oe(null),s=Oe(null),a=Oe({}),o=Oe({}),l=Oe(null),c=Oe(1),u=Oe(!0),f=Oe(!1),p=Oe(!1),g=Oe(null),v=Oe(""),w=Oe(!1);Oe(new Map),Oe(!1),Oe({x:0,y:0}),Oe(null);const y=()=>{u.value=!0,n.value&&(n.value.innerHTML=""),i.value&&(i.value=null)},C=()=>{u.value=!1},S=()=>{u.value=!1},T=()=>{if(!i.value||!n.value)return null;try{const x=n.value.querySelector(".map-canvas");if(x){const M=x.style.transform,O=i.value.scaleVal||1;return console.log("📍 保存位置:",{transform:M,scaleVal:O}),{transform:M,scaleVal:O}}}catch(x){console.warn("保存位置失败:",x)}return null},D=x=>{if(!(!x||!n.value||!i.value))try{const M=n.value.querySelector(".map-canvas");M&&x.transform&&(M.style.setProperty("transform",x.transform,"important"),x.scaleVal&&i.value.scaleVal!==x.scaleVal&&(i.value.scaleVal=x.scaleVal),M.style.setProperty("transform-origin","center center","important"),console.log("📍 恢复位置:",{transform:x.transform,scaleVal:x.scaleVal}))}catch(M){console.warn("恢复位置失败:",M)}},I=async(x,M=!1,O=!0)=>{try{const q=M?T():null;q?console.log("📍 保存当前位置用于保持原位:",q):!M&&!O&&console.log("📍 添加节点模式:不保存位置,等待居中到新节点"),console.log("🔍 loadMindmapData 被调用,数据:",x),console.log("🔍 数据字段:",Object.keys(x||{})),x&&x.id?(l.value=x.id,console.log("🔍 设置当前思维导图ID (data.id):",x.id)):x&&x.mindmapId?(l.value=x.mindmapId,console.log("🔍 设置当前思维导图ID (data.mindmapId):",x.mindmapId)):x&&x.nodeData&&x.nodeData.mindmapId?(l.value=x.nodeData.mindmapId,console.log("🔍 设置当前思维导图ID (data.nodeData.mindmapId):",x.nodeData.mindmapId)):x&&x.nodeData&&x.nodeData.mindmap_id?(l.value=x.nodeData.mindmap_id,console.log("🔍 设置当前思维导图ID (data.nodeData.mindmap_id):",x.nodeData.mindmap_id)):(console.warn("⚠️ 数据中没有找到 id 或 mindmapId 字段"),console.log("🔍 可用的字段:",Object.keys(x||{})),x&&x.nodeData&&console.log("🔍 nodeData字段:",Object.keys(x.nodeData||{}))),console.log("🔍 设置后的 currentMindmapId.value:",l.value),C(),await An(),n.value||(console.warn("⚠️ 思维导图容器未准备好, 等待DOM更新..."),await new Promise(Z=>setTimeout(Z,100)),n.value||console.warn("⚠️ 思维导图容器仍未准备好,尝试继续执行..."));try{if(n.value){console.log("🔍 创建Mind Elixir实例, 设置markdown函数"),i.value=new bt({el:n.value,direction:bt.RIGHT,draggable:!0,contextMenu:!1,toolBar:!0,nodeMenu:!1,keypress:!1,autoCenter:!1
2025-10-10 05:04:03 +00:00
font - size : 11 px ;
color : # 666 ;
margin - top : 6 px ;
padding : 6 px 8 px ;
background : rgba ( 0 , 0 , 0 , 0.03 ) ;
border - radius : 4 px ;
max - width : 250 px ;
word - wrap : break - word ;
line - height : 1.3 ;
border - left : 3 px solid # e0e0e0 ;
display : block ;
2025-10-10 17:47:27 +00:00
` ,M.appendChild(oe));const ge=le.data.des;ge.length>150?(oe.textContent=ge.substring(0,150)+"...",oe.title=ge):oe.textContent=ge}})},1e3)},F=()=>{try{if(i.value&&i.value.toCenter){i.value.toCenter(),console.log("✅ 使用 MindElixir toCenter 方法实现根节点居中");return}const x=n.value;if(!x)return;const M=x.querySelector(".map-canvas");if(!M)return;const O=M.querySelectorAll("me-tpc");if(O.length===0)return;let q=1/0,Z=-1/0,le=1/0,L=-1/0;O.forEach(D0=>{const wn=D0.getBoundingClientRect(),I0=x.getBoundingClientRect(),zo=wn.left-I0.left, $ o=wn.top-I0.top;q=Math.min(q,zo),Z=Math.max(Z,zo+wn.width),le=Math.min(le, $ o),L=Math.max(L, $ o+wn.height)});const oe=(q+Z)/2,ge=(le+L)/2,Se=x.clientWidth/2,Re=x.clientHeight/2,Ve=Se-oe,vt=Re-ge;M.style.transform= ` translate ( $ { Ve } px , $ { vt } px ) ` ,M.style.opacity="1",M.style.transition="opacity 0.3s ease";const Ot=100,Zt=Math.max(Ve,Ot),wr=Math.max(vt,Ot);M.style.transform= ` translate ( $ { Zt } px , $ { wr } px ) ` ,M.style.opacity="1",M.style.visibility="visible"}catch{}},G=async x=>{if(!(!i.value||!x))try{console.log("🎯 开始处理新节点:",x);let M=null,O=0;const q=5;for(;!M&&O<q;)M=i.value.findEle(x),M||(O++,await new Promise(Z=>setTimeout(Z,50)));M?(console.log("✅ 找到节点元素:",M),i.value.scrollIntoView&&(i.value.scrollIntoView(M),console.log("✅ 节点已平滑居中显示")),setTimeout(()=>{i.value.beginEdit&&(i.value.beginEdit(M),console.log("✅ 节点已进入编辑状态"))},350)):console.error("❌ 多次尝试后仍未找到节点元素:",x)}catch(M){console.error("❌ 居中显示节点失败:",M)}},W=()=>{if(!s.value)return;if(i.value&&i.value.getNodeById)try{const M=i.value.getNodeById(s.value.id);if(M){const O=M.getBoundingClientRect(),q=n.value.getBoundingClientRect(),Z=O.left-q.left+O.width/2,le=O.bottom-q.top+10;a.value={left: ` $ { Z } px ` ,top: ` $ { le } px ` };return}}catch{}let x=document.querySelector( ` [ data - id = "${s.value.id}" ] ` );if(x||(x=document.querySelector( ` . topic [ data - id = "${s.value.id}" ] ` )),x||(x=document.querySelector( ` [ data - node - id = "${s.value.id}" ] ` )),x||(x=document.querySelector( ` [ data - nodeid = "me${s.value.id}" ] ` )),!x){const M=document.querySelectorAll("me-tpc");for(const O of M)if(O.getAttribute("data-nodeid")=== ` me$ { s . value . id } ` ){x=O;break}}if(!x){const M=document.querySelectorAll(".topic");for(const O of M)if(O.textContent.trim()===s.value.topic){x=O;break}}if(x){const M=x.getBoundingClientRect(),O=n.value.getBoundingClientRect(),q=M.left-O.left+M.width/2,Z=M.bottom-O.top+10;a.value={left: ` $ { q } px ` ,top: ` $ { Z } px ` }}else a.value={left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},fe=async()=>{s.value&&(await ie(s.value),s.value=null)},ve=async()=>{s.value&&(await ye(s.value),s.value=null)},Te=async()=>{s.value&&(await k(s.value),s.value=null)},Xe=async()=>{if(!s.value)return;console.log("Ask AI for node:",s.value);const x=parseFloat(a.value.left)||0,M=parseFloat(a.value.top)||0;o.value={left: ` $ { x } px ` ,top: ` $ { M + 60 } px ` ,transform:"translateX(-50%)"},p.value=!0,g.value=s.value},ze=()=>{p.value=!1,g.value=null,v.value="",w.value=!1,s.value=null},rt=x=>{if(!x)return"";const M=[];return x.parent&&x.parent.topic&&M.push( ` 父节点 : $ { x . parent . topic } ` ),x.parent&&x.parent.parent&&x.parent.parent.topic&&M.push( ` 祖父节点 : $ { x . parent . parent . topic } ` ),M.join(" | ")},_e=x=>{x.ctrlKey||x.metaKey||(x.preventDefault(),Ae())},Ae=async()=>{if(!(!v.value.trim()||!g.value||w.value)){w.value=!0;try{const x="你是一个专业的思维导图分析助手。请根据用户的问题和提供的节点信息,给出专业、有用的回答。",M= ` 节点信息 :
2025-10-10 10:16:25 +00:00
当前节点 : $ { g . value . topic }
2025-10-10 17:31:06 +00:00
上下文 : $ { rt ( g . value ) }
2025-10-10 05:04:03 +00:00
2025-10-10 09:41:41 +00:00
用户问题 : $ { v . value }
2025-10-10 05:04:03 +00:00
请给出详细的回答 , 回答应该 :
1. 直接回答用户的问题
2. 提供具体的建议或改进方案
3. 保持专业和有用的语调
2025-10-10 17:47:27 +00:00
4. 回答长度适中 , 便于在思维导图中展示 ` ;console.log("发送AI请求:",{systemPrompt:x,userPrompt:M});const O=await fetch("http://127.0.0.1:8000/api/ai/generate-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({system_prompt:x,user_prompt:M,model:"glm-4.5",base_url:"https://open.bigmodel.cn/api/paas/v4/",api_key:"ce39bdd4fcf34ec0aec75072bc9ff988.hAp7HZTVUwy7vImn"})});if(!O.ok)throw new Error( ` HTTP error ! status : $ { O . status } ` );let q="";const Z=O.body.getReader(),le=new TextDecoder;let L="";for(;;){const{done:oe,value:ge}=await Z.read();if(oe)break;L+=le.decode(ge,{stream:!0});const Se=L.split( `
` );L=Se.pop()||"";for(const Re of Se)if(Re.startsWith("data: "))try{const Ve=JSON.parse(Re.slice(6));if(Ve.type==="chunk")q+=Ve.content;else if(Ve.type==="error")throw new Error(Ve.content)}catch(Ve){console.warn("解析流式数据失败:",Ve)}}await Je(g.value,v.value,q),ze()}catch(x){console.error("AI请求失败:",x),alert("AI请求失败, 请稍后重试")}finally{w.value=!1}}},pe=x=>x.replace(/^### (.* $ )/gim,"📋 $ 1").replace(/^## (.* $ )/gim,"📌 $ 1").replace(/^# (.* $ )/gim,"🎯 $ 1").replace(/ \* \* (.*?) \* \* /g,(M,O)=>{if(O.includes(":")){const q=O.split(":");if(q.length>1)return ` 【 $ { q [ 0 ] } 】 : $ { q . slice ( 1 ) . join ( ":" ) } ` }return ` 【 $ { O } 】 ` }).replace(/ \* (.*?) \* /g,"《 $ 1》").replace(/^- (.* $ )/gim," • $ 1").replace(/^ \d + \. (.* $ )/gim," $ &").replace(/ ` ` ` ( . * ? ) ` ` ` /gims,"💻 $ 1").replace(/ ` ( . * ? ) ` /g,"「 $ 1」").replace(/ \[ ([^ \] ]+) \] \( [^)]+ \) /g,"🔗 $ 1").replace(/ \n \n /g, `
2025-10-10 05:04:03 +00:00
` ).replace(/ \n /g, `
2025-10-10 17:47:27 +00:00
` ),He=(x,M,O)=>{const q=x.split( `
` );let Z=O,le=[];for(let L=0;L<q.length;L++){const ge=q[L].trim(),Se=ge.match(/^[-*+] \s *【(.+)】/);if(Se){const Re=Se[1].trim(),Ve={id: ` node _$ { Z ++ } ` ,topic:Re,children:[],level:(M.level||0)+1,data:{}};let vt=[],Ot=L+1;for(;Ot<q.length;){const Zt=q[Ot].trim();if(Zt.match(/^[-*+] \s *【(.+)】/))break;const D0=Zt.match(/^[-*+] \s +(.+) $ /);if(D0){const wn=D0[1].trim(),I0=pe(wn);vt.push("• "+I0)}Ot++}if(vt.length>0){const Zt=pe(vt.join( `
2025-10-10 17:31:06 +00:00
` ));Ve.topic=Ve.topic+ `
2025-10-10 05:04:03 +00:00
2025-10-10 17:47:27 +00:00
` +Zt}M.children.push(Ve),L=Ot-1}else ge&&le.push(ge)}if(le.length>0){const L=le.join( `
` ).trim();L&&L.split( `
2025-10-10 05:04:03 +00:00
2025-10-10 17:47:27 +00:00
` ).filter(ge=>ge.trim()).forEach(ge=>{const Se=pe(ge.trim());if(Se){const Re={id: ` node _$ { Z ++ } ` ,topic:Se,children:[],level:(M.level||0)+1,data:{}};M.children.push(Re)}})}return{nodeCounter:Z}},qe=x=>{const M=x.split( `
` );let O=null;const q=[];let Z=0,le=[];if(M.forEach((L,oe)=>{const ge=L.trim(),Se=ge.match(/^(#{1,6}) \s +(.+) $ /);if(Se){if(le.length>0&&q.length>0){const Zt=le.join( `
` ).trim();Zt&&(Z=He(Zt,q[q.length-1],Z).nodeCounter),le=[]}const Re=Se[1].length,Ve=Se[2].trim(),vt=pe(Ve),Ot={id: ` node _$ { Z ++ } ` ,topic:vt,children:[],level:Re,data:{}};if(Re===1&&!O)O=Ot,q.length=0,q.push(O);else{for(;q.length>1&&q[q.length-1].level>=Re;)q.pop();q.length>0&&q[q.length-1].children.push(Ot),q.push(Ot)}}else ge&&le.push(ge)}),le.length>0&&q.length>0){const L=le.join( `
` ).trim();L&&(Z=He(L,q[q.length-1],Z).nodeCounter)}return O||(O={id:"root",topic:"根节点",children:[],data:{}}),O},Je=async(x,M,O)=>{var q,Z,le;try{const oe=(wr=>wr.replace(/^#+ \s */gm,"").replace(/ \* \* (.*?) \* \* /g," $ 1").replace(/ \* (.*?) \* /g," $ 1").replace(/^ \s *[-*+] \s *(?![|])/gm,"• ").replace(/ \n {3,}/g, `
2025-10-10 05:04:03 +00:00
2025-10-10 17:47:27 +00:00
` ).trim())(O),ge= ` # $ { M }
2025-10-10 05:04:03 +00:00
2025-10-10 17:47:27 +00:00
$ { oe } ` ,Se=qe(ge),Re={title:M,des: ` AI追问产生的节点 - $ { new Date ( ) . toLocaleString ( ) } ` ,parentId:x.id,isRoot:!1},Ve=[];if(Se.children&&Se.children.length>0&&Se.children.forEach(wr=>{Ve.push({title:wr.topic,des:"",parentId:null,isRoot:!1})}),console.log("当前思维导图ID:",l.value),!l.value)throw new Error("没有找到当前思维导图ID, 无法创建节点");const vt=await ct.addNodes(l.value,[Re]);if(!vt.data||!vt.data.success)throw new Error("AI父节点创建失败");const Ot=(le=(Z=(q=vt.data.data)==null?void 0:q.nodes)==null?void 0:Z[0])==null?void 0:le.id;if(!Ot)throw new Error("无法获取创建的父节点ID");Ve.forEach(wr=>{wr.parentId=Ot});let Zt=null;if(Ve.length>0&&(Zt=await ct.addNodes(l.value,Ve)),vt.data&&vt.data.success)await ae();else throw new Error("AI父节点创建失败")}catch(L){console.error("创建AI节点失败:",L),alert("创建AI回答节点失败: "+L.message)}},me=async()=>{if(s.value){try{const x=s.value.topic||s.value.title||"无标题";if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(x),Et();else{const M=document.createElement("textarea");M.value=x,M.style.position="fixed",M.style.left="-999999px",M.style.top="-999999px",document.body.appendChild(M),M.focus(),M.select();const O=document.execCommand("copy");document.body.removeChild(M),O?Et():ot()}}catch{ot()}s.value=null}},Et=()=>{const x=document.createElement("div");x.textContent="文本已复制到剪贴板",x.style.cssText= `
2025-10-10 05:04:03 +00:00
position : fixed ;
top : 20 px ;
right : 20 px ;
background : # 4 CAF50 ;
color : white ;
padding : 12 px 20 px ;
border - radius : 6 px ;
font - size : 14 px ;
z - index : 10000 ;
box - shadow : 0 4 px 12 px rgba ( 0 , 0 , 0 , 0.15 ) ;
animation : slideIn 0.3 s ease ;
2025-10-10 10:16:25 +00:00
` ;const M=document.createElement("style");M.textContent= `
2025-10-10 05:04:03 +00:00
@ keyframes slideIn {
from { transform : translateX ( 100 % ) ; opacity : 0 ; }
to { transform : translateX ( 0 ) ; opacity : 1 ; }
}
2025-10-10 17:31:06 +00:00
` ,document.head.appendChild(M),document.body.appendChild(x),setTimeout(()=>{x.parentNode&&x.parentNode.removeChild(x),M.parentNode&&M.parentNode.removeChild(M)},3e3)},ot=()=>{const x=document.createElement("div");x.textContent="复制失败,请手动复制",x.style.cssText= `
2025-10-10 05:04:03 +00:00
position : fixed ;
top : 20 px ;
right : 20 px ;
background : # f44336 ;
color : white ;
padding : 12 px 20 px ;
border - radius : 6 px ;
font - size : 14 px ;
z - index : 10000 ;
box - shadow : 0 4 px 12 px rgba ( 0 , 0 , 0 , 0.15 ) ;
animation : slideIn 0.3 s ease ;
2025-10-10 17:47:27 +00:00
` ,document.body.appendChild(x),setTimeout(()=>{x.parentNode&&x.parentNode.removeChild(x)},3e3)},gt=(x,M="success")=>{const O=document.createElement("div");O.textContent=x;const q=M==="success"?"#4CAF50":M==="error"?"#f44336":"#ff9800";O.style.cssText= `
2025-10-10 05:04:03 +00:00
position : fixed ;
top : 20 px ;
right : 20 px ;
2025-10-10 17:47:27 +00:00
background : $ { q } ;
2025-10-10 05:04:03 +00:00
color : white ;
padding : 12 px 20 px ;
border - radius : 6 px ;
font - size : 14 px ;
z - index : 10000 ;
box - shadow : 0 4 px 12 px rgba ( 0 , 0 , 0 , 0.15 ) ;
animation : slideIn 0.3 s ease ;
2025-10-10 17:47:27 +00:00
` ,document.body.appendChild(O),setTimeout(()=>{O.parentNode&&O.parentNode.removeChild(O)},2e3)},yt=()=>{const x=document.createElement("div");x.textContent="✅ 节点编辑已保存",x.style.cssText= `
2025-10-10 05:04:03 +00:00
position : fixed ;
top : 20 px ;
right : 20 px ;
background : # 4 CAF50 ;
color : white ;
padding : 12 px 20 px ;
border - radius : 6 px ;
font - size : 14 px ;
z - index : 10000 ;
box - shadow : 0 4 px 12 px rgba ( 0 , 0 , 0 , 0.15 ) ;
animation : slideIn 0.3 s ease ;
2025-10-10 17:31:06 +00:00
` ,document.body.appendChild(x),setTimeout(()=>{x.parentNode&&x.parentNode.removeChild(x)},2e3)},lt=()=>{const x=document.createElement("div");x.textContent="❌ 节点编辑保存失败",x.style.cssText= `
2025-10-10 05:04:03 +00:00
position : fixed ;
top : 20 px ;
right : 20 px ;
background : # f44336 ;
color : white ;
padding : 12 px 20 px ;
border - radius : 6 px ;
font - size : 14 px ;
z - index : 10000 ;
box - shadow : 0 4 px 12 px rgba ( 0 , 0 , 0 , 0.15 ) ;
animation : slideIn 0.3 s ease ;
2025-10-10 17:47:27 +00:00
` ,document.body.appendChild(x),setTimeout(()=>{x.parentNode&&x.parentNode.removeChild(x)},3e3)},U=async x=>{try{console.log("🎯 处理节点拖拽操作:",x.name),console.log("📦 操作详情:",{name:x.name,objs:x.objs,toObj:x.toObj}),setTimeout(async()=>{var M;try{const O=x.objs||[],q=x.toObj;if(!O.length||!q){console.warn("⚠️ 拖拽操作缺少必要信息");return}console.log( ` 📦 准备保存 $ { O . length } 个节点的父子关系 ` );let Z=null;x.name==="moveNodeIn"?(Z=q.id,console.log( ` 📌 拖入操作 : 新父节点为 $ { Z } ` )):(x.name==="moveNodeBefore"||x.name==="moveNodeAfter")&&(Z=((M=q.parent)==null?void 0:M.id)||null,console.log( ` 📌 拖到兄弟位置 : 新父节点为 $ { Z || "根节点" } ` ));const le=O.map(async Se=>{try{console.log( ` 🔄 更新节点 $ { Se . id } 的父节点为 $ { Z || "根节点" } ` );const Re=await ct.updateNode(Se.id,{newParentId:Z});return Re.data&&Re.data.success?(console.log( ` ✅ 节点 $ { Se . id } 父子关系更新成功 ` ),{success:!0,nodeId:Se.id}):(console.warn( ` ⚠ ️ 节点 $ { Se . id } 父子关系更新失败 : ` ,Re),{success:!1,nodeId:Se.id})}catch(Re){return console.error( ` ❌ 节点 $ { Se . id } 父子关系更新失败 : ` ,Re),{success:!1,nodeId:Se.id,error:Re}}}),L=await Promise.all(le),oe=L.filter(Se=>Se.success).length,ge=L.filter(Se=>!Se.success).length;console.log( ` 📊 拖拽保存结果 : $ { oe } 成功 , $ { ge } 失败 ` )}catch(O){console.error("❌ 保存拖拽后的结构失败:",O),gt("❌ 节点拖拽保存失败","error")}},500)}catch(M){console.error("❌ 处理节点拖拽操作失败:",M)}},V=async x=>{try{const M=x.obj;M?await Q(M):console.error("无法解析编辑操作:",x)}catch(M){console.error("处理编辑完成失败:",M)}},Q=async x=>{var M,O;try{if(!l.value){console.error("无法获取思维导图ID");return}const q=await ct.updateNode(x.id,{newTitle:x.topic,newDes:((M=x.data)==null?void 0:M.des)||"",newParentId:x.parentId||((O=x.parent)==null?void 0:O.id)});q.data&&q.data.success?yt():(console.error("更新节点编辑失败:",q.data),lt())}catch(q){console.error("更新节点编辑失败:",q),lt()}},ie=async x=>{var M;try{await N();const O=l.value||x.mindmap_id||x.mindmapId;if(!O){console.error("无法获取思维导图ID");return}const q=await ct.addNodes(O,[{title:"新子节点",des:"子节点描述",parentId:x.id}]);if(q.data&&q.data.success){const Z=((M=q.data.data)==null?void 0:M.nodes)||[];if(Z.length>0){const le=Z[0];try{await new Promise(oe=>setTimeout(oe,800));const L=await ct.getMindmap(O);if(L.data&&L.data.nodeData){await I(L.data,!1,!1);try{console.log("🎯 开始居中显示新子节点:",le.id),await G(le.id)}catch(oe){console.error("居中显示新节点失败:",oe)}}else throw new Error("无法获取思维导图数据")}catch(L){console.error("刷新思维导图失败:",L)}}}}catch(O){console.error("添加子节点失败:",O)}},ye=async x=>{var M;try{await N(),console.log("添加兄弟节点到API:",x.id),console.log("节点信息:",{id:x.id,parentId:x.parentId,parent:x.parent,mindmap_id:x.mindmap_id,mindmapId:x.mindmapId});const O=l.value||x.mindmap_id||x.mindmapId;if(!O){console.error("无法获取思维导图ID");return}let q=x.parentId;!q&&x.parent&&(q=x.parent.id);const Z=await ct.addNodes(O,[{title:"新兄弟节点",des:"兄弟节点描述",parentId:q}]);if(console.log("添加兄弟节点响应:",Z),Z.data&&Z.data.success){const le=((M=Z.data.data)==null?void 0:M.nodes)||[];if(le.length>0){const L=le[0];console.log("新创建的兄弟节点:",L),console.log("🎯 使用MindElixir init方法重新初始化数据...");try{const oe=await ct.getMindmap(O);if(oe.data&&oe.data.nodeData){await I(oe.data,!1,!1),console.log("✅ 思维导图刷新成功");try{console.log("🎯 开始居中显示新兄弟节点:",L.id),await G(L.id)}catch(ge){console.error("居中显示新节点失败:",ge)}}else throw new Error("无法获取思维导图数据")}catch(oe){console.error("重新初始化失败,使用完整重新加载:",oe);const ge=await ct.getMindmap(O);ge.data&&ge.data.nodeData&&await I(ge.data,!0,!1)}}}}catch(O){console.error("添加兄弟节点失<E782B9> <E5A4B1>
2025-10-10 05:04:03 +00:00
1. 提取主要主题和关键概念
2. 组织成层次分明的结构
3. 使用清晰的标题和子标题
4. 保持内容的逻辑性和完整性
5. 对于长文档 , 请确保完整处理所有内容 , 不要截断
6. * * 重要 : 如果原文档中包含图片 , 请按以下方式处理 :
- 识别图片在文档中的位置和上下文
- 根据图片内容生成准确的描述文字
- 在相应位置插入图片占位符 : ! [ 图片描述 ] ( 图片路径 )
- 图片描述要准确反映图片内容 , 图片路径可以是相对路径或占位符
- 确保图片占位符放在逻辑上合适的位置 * *
7. * * 重要 : 如果原文档中包含表格 , 请完整保留表格结构 :
- 保持表格的Markdown格式
- 确保所有表格行都被包含
2025-10-10 05:53:42 +00:00
- 不要省略任何表格内容
- 对于合并单元格的表格 , 请使用HTML格式并正确使用rowspan和colspan属性
- 如果表格结构复杂 , 优先使用HTML table标签而不是Markdown表格语法 * *
2025-10-10 05:04:03 +00:00
8. * * 重要 : 确保内容完整性 :
- 不要截断任何内容
- 保持原文的完整性
- 所有重要信息都要包含在思维导图中 * *
2025-10-10 17:47:27 +00:00
9. 输出格式 : 直接输出Markdown内容 , 不要添加任何说明文字或代码块标记 ` ,Q= ` 请分析以下文档内容并生成结构化Markdown :
2025-10-10 05:04:03 +00:00
2025-10-10 17:47:27 +00:00
$ { U } ` ;await ve(V,Q),await Xe(),ot(v.value.name,s.value),setTimeout(async()=>{try{await Je()}catch(ie){console.error("自动保存失败:",ie)}},1500)}catch(U){console.error("从文件生成Markdown失败:",U),me("生成失败: "+U.message,"error")}finally{o.value=!1}},F=U=>new Promise(async(V,Q)=>{try{const ie=U.type.includes("text")||U.name.endsWith(".txt")||U.name.endsWith(".md"),ye=U.type==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||U.type==="application/msword"||U.name.endsWith(".docx")||U.name.endsWith(".doc"),k=U.type==="application/pdf"||U.name.endsWith(".pdf");if(ie){const N=new FileReader;N.onload=z=>V(z.target.result),N.onerror=()=>Q(new Error("文本文件读取失败")),N.readAsText(U)}else if(ye){const N=await G(U);V(N)}else if(k){const N=await W(U);V(N)}else{const N=new FileReader;N.onload=z=>V(z.target.result),N.onerror=()=>Q(new Error("文件读取失败")),N.readAsText(U)}}catch(ie){Q(ie)}}),G=async U=>{try{if(U.name.endsWith(".docx")){const V=await Oc(()=>import("./index-bdeaceb2.js").then(ye=>ye.i),[]),Q=await U.arrayBuffer();return(await V.extractRawText({arrayBuffer:Q})).value}else if(U.name.endsWith(".doc"))throw new Error("请将.doc文件转换为.docx格式, 或安装相应的解析库")}catch(V){throw new Error( ` Office文档解析失败 : $ { V . message } ` )}},W=async U=>{try{const V=await Oc(()=>import("./pdf-1a0ba5fc.js"),[]);V.GlobalWorkerOptions.workerSrc="/pdf.worker.min.mjs";const Q=await U.arrayBuffer(),ie=await V.getDocument({data:Q}).promise;let ye="";for(let k=1;k<=ie.numPages;k++){const j=(await(await ie.getPage(k)).getTextContent()).items.map(B=>B.str).join(" ");ye+=j+ `
2025-10-10 10:16:25 +00:00
` }return ye}catch(V){throw new Error( ` PDF文件解析失败 : $ { V . message } ` )}},fe=U=>U&&U.replace(/^好的[, ,]?作为.*?专家[, ,]?我已.*?分析.*?内容.*?生成了以下.*?思维导图[: :] \s */i,"").replace(/^好的[, ,]?作为.*?专业的.*?专家[, ,]?我已.*?分析.*?内容.*?生成了以下.*?思维导图[: :] \s */i,"").replace(/^以下是.*?结构化的.*?思维导图[: :] \s */i,"").replace(/^以下是.*?Markdown.*?思维导图[: :] \s */i,"").replace(/^以下是.*?Markdown.*?格式.*?思维导图[: :] \s */i,"").replace(/^ ` ` ` ( ? : markdown ) ? \ s * /gm,"").replace(/ ` ` ` \s * $ /gm,"").replace(/^「」 ` markdown \ s * /gm,"").replace(/ ^ 「 」 ` \s */gm,"").replace(/^ \s *「」 ` markdown \ s * /gm,"").replace(/ ^ \ s * 「 」 ` \s */gm,"").replace(/^作为.*?专家[, ,]?我已.*?分析.*?内容.*?生成了以下.*?思维导图[: :] \s */i,"").replace(/^我已.*?分析.*?内容.*?生成了以下.*?思维导图[: :] \s */i,"").replace(/^根据.*?文档内容.*?生成了以下.*?思维导图[: :] \s */i,"").replace(/^基于.*?文档.*?生成了以下.*?思维导图[: :] \s */i,"").replace(/^以下是.*?分析.*?结果[: :] \s */i,"").replace(/^以下是.*?整理.*?结果[: :] \s */i,"").replace(/^以下是.*?结构化.*?内容[: :] \s */i,"").replace(/ \n {3,}/g, `
2025-10-10 05:04:03 +00:00
2025-10-10 17:47:27 +00:00
` ).trim(),ve=async(U,V)=>{const ie=U|| ` 你是一位Markdown格式转换专家 。 你的任务是将用户提供的文章内容精确转换为结构化的Markdown格式 。 请遵循以下步骤 :
2025-10-10 05:04:03 +00:00
提取主标题 : 识别文章最顶层的主标题 ( 通常为文章题目或书名 ) , 并使用Markdown的 # 级别表示 。
识别层级标题 : 从文章内容中提取所有层级的内容标题 ( 从主标题后的第一个标题开始 , Level 1 至 Level 4 ) 。 判断层级依据 :
视觉与结构特征 : 如独立成行 / 段 、 位置 ( 行首 ) 、 格式 ( 加粗 、 编号如 1. , 1.1 , ( 1 ) , - 等 ) 。
语义逻辑 : 标题之间的包含和并列关系 。
在Markdown中 , 使用相应标题级别 :
Level 1 标题用 # #
Level 2 标题用 # # #
Level 3 标题用 # # # #
Level 4 标题用 # # # # #
精确保留原文标题文字 , 不得修改 、 概括或润色 。
处理正文内容 : 对于每个标题下的正文内容区块 ( 从该标题后开始 , 直到下一个同级或更高级别标题前 ) :
直接保留原文文本 , 但根据内容结构适当格式化为Markdown 。
如果内容是列表 ( 如项目符号或编号列表 ) , 使用Markdown列表语法 ( 例如 - 用于无序列表 , 1. 用于有序列表 ) 。
保持段落和换行不变 。
* * 重要 : 如果原文档中包含图片 , 请按以下方式处理 :
1. 识别图片在文档中的位置和上下文
2. 根据图片内容生成准确的描述文字
3. 在相应位置插入图片占位符 : ! [ 图片描述 ] ( 图片路径 )
4. 图片描述要准确反映图片内容 , 图片路径可以是相对路径或占位符
5. 确保图片占位符放在逻辑上合适的位置 * *
2025-10-10 17:47:27 +00:00
输出格式 : 输出必须是纯Markdown格式的文本 , 不得包含任何额外说明 、 JSON或非Markdown元素 。 确保输出与示例风格一致 。 直接输出Markdown内容 , 不要添加任何说明文字 。 ` ,ye=V||"请将以下内容转换为结构化的Markdown格式: ";try{const k=await fetch("http://127.0.0.1:8000/api/ai/generate-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({system_prompt:ie,user_prompt:ye,model:"glm-4.5",base_url:"https://open.bigmodel.cn/api/paas/v4/",api_key:"ce39bdd4fcf34ec0aec75072bc9ff988.hAp7HZTVUwy7vImn"})});if(!k.ok)throw new Error( ` HTTP error ! status : $ { k . status } ` );const N=k.body.getReader(),z=new TextDecoder;let j="",B=0;for(;;){const{done:H,value:X}=await N.read();if(H)break;j+=z.decode(X,{stream:!0});const ee=j.split( `
` );j=ee.pop()||"";for(const ne of ee)if(ne.startsWith("data: "))try{const K=JSON.parse(ne.slice(6));if(K.type==="start")me("AI开始生成内容...","info");else if(K.type==="chunk"){if(B++,s.value+=K.content,B%5===0)try{const ce=fe(s.value),ae=_e(ce);a.value=JSON.stringify(ae,null,2),window.dispatchEvent(new CustomEvent("realtime-mindmap-update",{detail:{data:ae,title:ae.topic||"AI生成中...",source:"ai-streaming",chunkCount:B}}))}catch(ce){console.warn("⚠️ 实时转换JSON失败:",ce)}}else if(K.type==="end"){me("AI内容生成完成! ","success");try{const ce=fe(s.value);console.log("🎯 最终内容长度:",ce.length),console.log("🎯 最终内容预览:",ce.substring(0,500)+"...");const ae=ze(ce);console.log( ` 🖼 ️ 最终统计 : 共发现 $ { ae . length } 张图片 ` );const he=_e(ce);a.value=JSON.stringify(he,null,2),window.dispatchEvent(new CustomEvent("realtime-mindmap-update",{detail:{data:he,title:he.topic||"AI生成完成",source:"ai-final",chunkCount:B}}))}catch(ce){console.error("⚠️ 最终处理失败:",ce)}}else if(K.type==="error")throw new Error(K.content)}catch(K){console.warn("解析流式数据失败:",K)}}}catch(k){throw console.error("流式AI API调用失败:",k),k}},Te=U=>{if(U.includes("|")&&U.includes("-")){const V=U.split( `
` );let Q=!1,ie=!1;for(const ye of V){const k=ye.trim();k.includes("|")&&k.split("|").length>=3&&(Q=!0),k.includes("|")&&k.includes("-")&&/^[ \s \| \- \: ]+ $ /.test(k)&&(ie=!0)}if(Q&&ie)return console.log("🚫 formatMarkdownToText: 检测到表格内容,跳过转换"),U}return U.replace(/^### (.* $ )/gim,"📋 $ 1").replace(/^## (.* $ )/gim,"📌 $ 1").replace(/^# (.* $ )/gim,"🎯 $ 1").replace(/ \* \* (.*?) \* \* /g,(V,Q)=>{if(Q.includes(":")){const ie=Q.split(":");if(ie.length>1)return ` 【 $ { ie [ 0 ] } 】 : $ { ie . slice ( 1 ) . join ( ":" ) } ` }return ` 【 $ { Q } 】 ` }).replace(/ \* (.*?) \* /g,"《 $ 1》").replace(/^- (.* $ )/gim," • $ 1").replace(/^ \d + \. (.* $ )/gim," $ &").replace(/ ` ` ` ( . * ? ) ` ` ` /gims,"💻 $ 1").replace(/ ` ( . * ? ) ` /g,"「 $ 1」").replace(/ \[ ([^ \] ]+) \] \( [^)]+ \) /g,"🔗 $ 1").replace(/! \[ ([^ \] ]*) \] \( ([^)]+) \) /g,"[图片: $ 1]").replace(/ \n \n /g, `
2025-10-10 05:04:03 +00:00
` ).replace(/ \n /g, `
` ).split( `
` ).map(V=>V.length>80?V.substring(0,77)+"...":V).join( `
2025-10-10 17:47:27 +00:00
` ).trim()},Xe=async()=>{if(!s.value.trim()){me("请输入Markdown内容","error");return}l.value=!0;try{const U=fe(s.value),V=_e(U);a.value=JSON.stringify(V,null,2)}catch(U){console.error("转换失败:",U),me("转换失败, 请检查Markdown格式","error")}finally{l.value=!1}},ze=U=>{const V=/! \[ ([^ \] ]*) \] \( ([^)]+) \) /g,Q=[];let ie;for(;(ie=V.exec(U))!==null;){const ye=ie[2],k=ie[1]||"";ye&&ye.trim()&&(ye.startsWith("http")||ye.startsWith("data:")||ye.startsWith("/"))?(Q.push({alt:k,url:ye.trim(),fullMatch:ie[0]}),console.log( ` ✅ 有效图片URL : $ { ye } ` )):console.warn( ` ⚠ ️ 跳过无效的图片URL : $ { ye } ` )}return console.log( ` 🔍 从内容中提取到 $ { Q . length } 张图片 : ` ,Q),Q},rt=U=>U.replace(/! \[ ([^ \] ]*) \] \( ([^)]+) \) /g,"").trim(),_e=U=>{const V=U.split( `
` );let Q=null;const ie=[];let ye=0,k=[];if(V.forEach((N,z)=>{const j=N.trim(),B=j.match(/^(#{1,6}) \s +(.+) $ /);if(B){if(k.length>0&&ie.length>0){const ce=k.join( `
` ).trim();ce&&(ye=Ae(ce,ie[ie.length-1],ye).nodeCounter),k=[]}const H=B[1].length,X=B[2].trim(),ee=ze(X),ne=rt(Te(X));ee.length>0&&console.log( ` 🖼 ️ 在标题中发现 $ { ee . length } 张图片 : $ { X } ` );const K={id: ` node _$ { ye ++ } ` ,topic:ne,children:[],level:H,data:{}};if(ee.length>0){const ce=ee[0];ce.url&&ce.url.trim()!==""?(K.image={url:ce.url,width:200,height:150,fit:"contain"},console.log( ` ✅ 成功为标题节点设置图片 : $ { ce . url } ` )):console.error("❌ 标题图片URL无效:",ce)}if(H===1&&!Q)Q=K,ie.length=0,ie.push(Q);else{for(;ie.length>1&&ie[ie.length-1].level>=H;)ie.pop();ie.length>0&&ie[ie.length-1].children.push(K),ie.push(K)}}else j&&k.push(j)}),k.length>0&&ie.length>0){const N=k.join( `
` ).trim();N&&(N.includes("|")&&console.log("🔍 处理最后的内容(包含表格):",N.substring(0,200)+"..."),ye=Ae(N,ie[ie.length-1],ye).nodeCounter)}return Q||(Q={id:"root",topic:"根节点",children:[],data:{}}),Q},Ae=(U,V,Q)=>{const ie=ze(U);if(ie.length>0){console.log( ` 🖼 ️ 在内容中发现 $ { ie . length } 张图片 ` ),ie.forEach((j,B)=>{console.log( ` 🖼 ️ 处理图片 $ { B + 1 } : ` ,{alt:j.alt,url:j.url,urlLength:j.url.length});let H=j.url;H.includes("cdn-mineru.openxlab.org.cn")&&(H= ` / proxy - image$ { H . replace ( "https://cdn-mineru.openxlab.org.cn" , "" ) } ` ,console.log( ` 🔄 转换图片URL : $ { j . url } - > $ { H } ` ));const X={id: ` node _$ { Q ++ } ` ,topic:j.alt|| ` 图片 $ { B + 1 } ` ,children:[],level:(V.level||0)+1,image:{url:H,width:200,height:150,fit:"contain"},data:{}};if(!X.image.url||X.image.url.trim()===""){console.error( ` ❌ 图片节点 $ { B + 1 } URL为空 : ` ,X);return}V.children.push(X),console.log( ` ✅ 成功创建图片节点 : $ { X . topic } - $ { H } ` )});const z=rt(U);return z.trim()&&(Q=Ae(z,V,Q).nodeCounter),{nodeCounter:Q}}if(pe(U)){console.log("🎯 检测到表格内容,创建表格节点");const z=y0(U);console.log("🎯 表格HTML内容:",z);const j={id: ` node _$ { Q ++ } ` ,topic:"",dangerouslySetInnerHTML:z,children:[],level:(V.level||0)+1,data:{}};return V.children.push(j),{nodeCounter:Q}}const ye=U.split( `
` );let k=Q,N=[];for(let z=0;z<ye.length;z++){const B=ye[z].trim(),H=B.match(/^[-*+] \s *【(.+)】/);if(H){const X=H[1].trim(),ee={id: ` node _$ { k ++ } ` ,topic:X,children:[],level:(V.level||0)+1,data:{}};let ne=[],K=z+1;for(;K<ye.length;){const ce=ye[K].trim();if(ce.match(/^[-*+] \s *【(.+)】/))break;const he=ce.match(/^[-*+] \s +(.+) $ /);if(he){const ke=he[1].trim(),Ie=Te(ke);ne.push("• "+Ie)}K++}if(ne.length>0){const ce=Te(ne.join( `
` ));ee.topic=ee.topic+ `
` +ce}V.children.push(ee),z=K-1}else B&&N.push(B)}if(N.length>0){const z=N.join( `
` ).trim();if(z)if(pe(z)){console.log("🎯 检测到表格内容,创建表格节点");const j=y0(z);console.log("🎯 表格HTML内容:",j);const B={id: ` node _$ { k ++ } ` ,topic:"",dangerouslySetInnerHTML:j,children:[],level:(V.level||0)+1,data:{}};V.children.push(B)}else z.split( `
` ).filter(B=>B.trim()).forEach(B=>{const H=Te(B.trim());if(H){const X={id: ` node _$ { k ++ } ` ,topic:H,children:[],level:(V.level||0)+1,data:{}};V.children.push(X)}})}return{nodeCounter:k}},pe=U=>{if(!U||typeof U!="string")return!1;if(U.includes("<table")||U.includes("<tr")||U.includes("<td"))return console.log("🔍 检测到HTML表格内容"),!0;U.includes("|")&&console.log("🔍 检查Markdown表格内容:",U.substring(0,200)+"...");const Q=U.split( `
` );let ie=!1,ye=!1;for(const j of Q){const B=j.trim();B.includes("|")&&B.split("|").length>=3&&(ie=!0,console.log("✅ 找到表格行:",B)),B.includes("|")&&B.includes("-")&&/^[ \s \| \- \: ]+ $ /.test(B)&&(ye=!0,console.log("✅ 找到分隔符行:",B))}const k=(U.match(/ \| /g)||[]).length,N=k>=4,z=ie&&ye||ie&&N;return console.log("🔍 表格检测结果:",{hasTableRow:ie,hasSeparator:ye,pipeCount:k,hasMultiplePipes:N,result:z}),z},He=async()=>{if(!s.value){me("没有Markdown内容可复制","error");return}try{await navigator.clipboard.writeText(s.value),me("Markdown已复制到剪贴板","success")}catch{const V=document.createElement("textarea");V.value=s.value,document.body.appendChild(V),V.select(),document.execCommand("copy"),V.remove(),me("Markdown已复制到剪贴板","success")}},qe=async()=>{try{await navigator.clipboard.writeText(a.value),me("JSON已复制到剪贴板","success")}catch(U){console.error("复制失败:",U),me("复制失败","error")}},Je=async()=>{if(!a.value){me("请先生成或转换JSON数据","error");return}try{const U=JSON.parse(a.value),V=U.topic||U.title|| ` AI生成的思维导图 _$ { new Date ( ) . toLocaleString ( ) } ` ,Q=new CustomEvent("save-preview-to-database",{detail:{data:U,title:V,source:"ai-generated",timestamp:Date.now()}});window.dispatchEvent(Q),setTimeout(()=>{me("思维导图已保存成功!","success"),v.value=null,g.value&&(g.value.value="")},2e3)}catch(U){console.error("JSON解析失败:",U),me("JSON格式错误, 请检查数据","error")}},me=(U,V="info")=>{const Q=document.createElement("div");switch(Q.className= ` notification notification - $ { V } ` ,Q.textContent=U,Q.style.cssText= `
2025-10-10 05:04:03 +00:00
position : fixed ;
top : 20 px ;
right : 20 px ;
padding : 12 px 20 px ;
border - radius : 8 px ;
font - size : 14 px ;
font - weight : 500 ;
z - index : 10000 ;
box - shadow : 0 4 px 12 px rgba ( 0 , 0 , 0 , 0.15 ) ;
animation : slideIn 0.3 s ease ;
max - width : 300 px ;
word - wrap : break - word ;
2025-10-10 17:47:27 +00:00
` ,V){case"success":Q.style.background="#4CAF50",Q.style.color="white";break;case"error":Q.style.background="#f44336",Q.style.color="white";break;case"info":default:Q.style.background="#2196F3",Q.style.color="white";break}if(!document.querySelector("#notification-styles")){const ie=document.createElement("style");ie.id="notification-styles",ie.textContent= `
2025-10-10 05:04:03 +00:00
@ keyframes slideIn {
from { transform : translateX ( 100 % ) ; opacity : 0 ; }
to { transform : translateX ( 0 ) ; opacity : 1 ; }
}
@ keyframes slideOut {
from { transform : translateX ( 0 ) ; opacity : 1 ; }
to { transform : translateX ( 100 % ) ; opacity : 0 ; }
}
2025-10-10 17:47:27 +00:00
` ,document.head.appendChild(ie)}document.body.appendChild(Q),setTimeout(()=>{Q.style.animation="slideOut 0.3s ease",setTimeout(()=>{Q.parentNode&&Q.parentNode.removeChild(Q)},300)},3e3)},Et=()=>{s.value="",a.value="",me("内容已清空","info")},ot=(U,V,Q=null)=>{const ie={title:U,content:V,mindmapId:Q,timestamp:new Date};c.value.unshift(ie),c.value.length>10&&(c.value=c.value.slice(0,10)),localStorage.setItem("ai-sidebar-history",JSON.stringify(c.value))},gt=async U=>{U.mindmapId?window.dispatchEvent(new CustomEvent("loadMindmapFromHistory",{detail:{mindmapId:U.mindmapId,title:U.title}})):(s.value=U.content,await Xe(),window.dispatchEvent(new CustomEvent("loadMindmapFromHistory",{detail:{markdown:U.content,json:a.value,title:U.title}})))},yt=U=>new Date(U).toLocaleString("zh-CN"); $ a(()=>{const U=localStorage.getItem("ai-sidebar-history");if(U)try{c.value=JSON.parse(U)}catch(V){console.error("加载历史记录失败:",V)}window.addEventListener("add-to-history",V=>{const{title:Q,content:ie,timestamp:ye}=V.detail;ot(Q,ie,null)}),window.addEventListener("mindmap-saved",V=>{const{mindmapId:Q,title:ie,timestamp:ye}=V.detail,k=c.value.find(N=>N.title===ie||N.timestamp&&Math.abs(N.timestamp-ye)<5e3);k?(k.mindmapId=Q,localStorage.setItem("ai-sidebar-history",JSON.stringify(c.value))):ot(ie,"",Q)}),o0(i,(V,Q)=>{}),o0(s,(V,Q)=>{})});const lt=async()=>{try{const U=await fetch("http://127.0.0.1:8000/api/ai/test-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({test:"data"})});if(!U.ok)throw new Error( ` HTTP error ! status : $ { U . status } ` );const V=U.body.getReader(),Q=new TextDecoder;let ie="";for(;;){const{done:ye,value:k}=await V.read();if(ye)break;ie+=Q.decode(k,{stream:!0});const N=ie.split( `
` );ie=N.pop()||"";for(const z of N)if(z.startsWith("data: "))try{const j=JSON.parse(z.slice(6))}catch(j){console.warn("解析测试数据失败:",j)}}}catch(U){console.error("❌ 测试流式API失败:",U)}};return window.testStreamAPI=lt,(U,V)=>(Ue(),Ge("div",k7,[J("div",{class:"sidebar-toggle",onClick:w,title:n.value?"展开AI助手":"折叠AI助手",style:zn({left:n.value?"10px":"420px"})},[n.value?(Ue(),Ge("svg",E7,[...V[1]||(V[1]=[J("path",{d:"M9 18l6-6-6-6"},null,-1)])])):(Ue(),Ge("svg",A7,[...V[2]||(V[2]=[J("path",{d:"M15 18l-6-6 6-6"},null,-1)])]))],12,T7),J("div",{class: $ n(["ai-sidebar",{"sidebar-collapsed":n.value}])},[fi(J("div",C7,[V[12]||(V[12]=J("div",{class:"sidebar-header"},[J("h3",null,"🤖 AI 助手"),J("p",null,"文档转思维导图工具"),J("div",{class:"collapse-hint"},[J("small",null,"💡 点击右侧按钮可折叠侧边栏")])],-1)),J("div",M7,[V[6]||(V[6]=J("h4",null,"📁 生成思维导图",-1)),J("div",N7,[V[4]||(V[4]=J("label",null,"上传文件:",-1)),J("div",{class:"file-upload-area",onDrop:C,onDragover:S,onDragleave:T},[J("input",{type:"file",ref_key:"fileInput",ref:g,onChange:y,accept:".txt,.md,.doc,.docx,.pdf",class:"file-input"},null,544),J("div",{class: $ n(["file-upload-placeholder",{"drag-over":u.value}])},[...V[3]||(V[3]=[J("span",{class:"upload-icon"},"📎",-1),J("span",{class:"upload-text"},"点击选择文件或拖拽文件到此处",-1),J("span",{class:"upload-hint"},"支持 .txt, .md, .doc, .docx, .pdf 格式",-1)])],2)],32)]),v.value?(Ue(),Ge("div",D7,[J("div",I7,[J("div",R7,[J("span",O7,"📄 "+dr(v.value.name),1),J("span",_7,"("+dr(I(v.value.size))+")",1)]),J("button",{onClick:D,class:"btn-remove",title:"删除文件"},[...V[5]||(V[5]=[J("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[J("path",{d:"M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M10 11v6M14 11v6"})],-1)])])])])):Tr("",!0),J("div",L7,[J("button",{onClick:_,disabled:!v.value||o.value,class:"btn-primary"},[o.value?(Ue(),Ge("span", $ 7,"AI生成中...")):(Ue(),Ge("span",F7,"AI生成思维导图"))],8,z7)])]),c.value.length>0?(Ue(),Ge("div",B7,[V[7]||(V[7]=J("h4",null,"📚 历史记录",-1)),J("div",P7,[(Ue(!0),Ge(tr,null,pu(c.value,(Q,ie)=>(Ue(),Ge("div",{key:ie,class:"history-item",onClick:ye=>gt(Q)},[J("div",q7,dr(Q.title),1),J("div",j7,dr(yt(Q.timestamp)),1)],8,H7))),128))])])):Tr("",!0),J("div",U7,[V[9]||(V[9]=J("h4",null,"📝 AI生成的Markdown结果",-1)),J("div",V7,[V[8]||(V[8]=J("label",null,"Markdown内容: ",-1)),fi(J("textarea",{"onUpdate:modelValue":V[0]||(V[0]=Q=>s.value=Q),placeholder:"AI生成的Markdown内容将显示在这里",rows:"6",readonly:"",class:"markdown-result"},null,512),[[ja,s.value]])]),J("div",W7,[J("button",{onClick:Xe,disabled:l.value,class:"btn-secondary"},[l.value?(Ue(),Ge("span",K7,"转换中...")):(Ue(),Ge("span",Y7,"🔄 转换为JSON"))],8,G7),J("button",{onClick:Et,class:"btn-clear"},"清空"),J("button",{onClick:He,class:"btn-copy"},"📋 复制Markdown")])]),J("div",X7,[V[11]||(V[11]=J("h4",null,"📊 Markdown转JSON结果",-1)),f.value?(Ue(),Ge("div",J7,[V[10]||(V[10]=J("div",{class:"spinner"},null,-1)),J("span",null,dr(p.value),1)])):Tr("",!0),J("div",Z7,[J("pre",Q7,dr(a.value||"JSON转换结果将显示在这里"),1),J("div",eg,[J("button",{onClick:qe,class:"btn-copy"},"📋 复制JSON"),J("button",{onClick:Je,disabled:f.value,class:"btn-copy"},dr(f.value?"处理中...":"👁️ 预览"),9,tg)])])])],512),[[Pf,!n.value]])],2)]))}},ng=Lo(rg,[["__scopeId","data-v-28c77d5e"]]);const ig={class:"markdown-test"},sg={class:"test-section"},ag={class:"test-section"},og=["innerHTML"],lg={class:"test-section"},cg={class:"test-cases"},ug=["onClick"],dg={__name:"MarkdownTest",setup(t){const e=Oe( ` # 测试标题
2025-10-10 05:04:03 +00:00
这是一个 * * 粗体 * * 和 * 斜体 * 的测试 。
# # 表格测试
| 产品 | 价格 | 库存 |
| -- -- -- | -- -- -- | -- -- -- |
| 苹果 | 4 元 | 100 个 |
| 香蕉 | 2 元 | 50 个 |
# # 代码测试
\ ` \` \` javascript
function hello ( ) {
console . log ( 'Hello World!' ) ;
}
\ ` \` \`
行内代码 : \ ` const name = 'test' \`
# # 列表测试
- 项目1
- 项目2
- 子项目2 . 1
- 子项目2 . 2
- 项目3
# # 链接测试
- [ GitHub ] ( https : //github.com)
2025-10-10 10:16:25 +00:00
- [ Vue . js ] ( https : //vuejs.org)`),r=Oe([{name:"基础表格",content:`# 产品价格表
2025-10-10 05:04:03 +00:00
| 产品 | 价格 |
| -- -- -- | -- -- -- |
| 苹果 | 4 元 |
| 香蕉 | 2 元 | ` },{name:"复杂表格",content: ` # 技术栈对比
| 技术 | 前端 | 后端 | 数据库 |
| -- -- -- | -- -- -- | -- -- -- | -- -- -- -- |
| Vue . js | ✅ | ❌ | ❌ |
| Django | ❌ | ✅ | ❌ |
| PostgreSQL | ❌ | ❌ | ✅ | ` },{name:"代码块",content: ` # 代码示例
\ ` \` \` javascript
function markdownToJSON ( markdown ) {
const lines = markdown . split ( '\\n' ) ;
// 处理逻辑...
return result ;
}
\ ` \` \` ` } , { name : "混合内容" , content : ` # 混合内容测试
这是一个包含 * * 粗体 * * 、 * 斜体 * 和 \ ` 行内代码 \` 的段落。
# # 表格
| 功能 | 状态 | 说明 |
| -- -- -- | -- -- -- | -- -- -- |
| 表格渲染 | ✅ | 支持markdown表格 |
| 代码高亮 | ✅ | 支持代码块 |
# # 代码
\ ` \` \` python
def hello _world ( ) :
print ( "Hello, World!" )
2025-10-10 17:47:27 +00:00
\ ` \` \` ` } ] ) , n = $u ( ( ) => { if ( ! e . value ) return "" ; try { return y0 ( e . value ) } catch ( a ) { return ` <div class="error">渲染失败: ${ a . message } </div> ` } } ) , i = ( ) => { } , s = a => { e . value = a . content } ; return ( a , o ) => ( Ue ( ) , Ge ( "div" , ig , [ o [ 4 ] || ( o [ 4 ] = J ( "h2" , null , "Markdown渲染测试" , - 1 ) ) , J ( "div" , sg , [ o [ 1 ] || ( o [ 1 ] = J ( "h3" , null , "输入Markdown内容" , - 1 ) ) , fi ( J ( "textarea" , { "onUpdate:modelValue" : o [ 0 ] || ( o [ 0 ] = l => e . value = l ) , placeholder : "输入markdown内容..." , rows : "10" , class : "markdown-input" } , null , 512 ) , [ [ ja , e . value ] ] ) ] ) , J ( "div" , ag , [ o [ 2 ] || ( o [ 2 ] = J ( "h3" , null , "渲染结果" , - 1 ) ) , J ( "div" , { class : "rendered-content" , innerHTML : n . value } , null , 8 , og ) ] ) , J ( "div" , lg , [ o [ 3 ] || ( o [ 3 ] = J ( "h3" , null , "测试用例" , - 1 ) ) , J ( "button" , { onClick : i , class : "test-btn" } , "加载测试用例" ) , J ( "div" , cg , [ ( Ue ( ! 0 ) , Ge ( tr , null , pu ( r . value , ( l , c ) => ( Ue ( ) , Ge ( "button" , { key : c , onClick : u => s ( l ) , class : "test-case-btn" } , dr ( l . name ) , 9 , ug ) ) ) , 128 ) ) ] ) ] ) ] ) ) } } , hg = Lo ( dg , [ [ "__scopeId" , "data-v-68a00828" ] ] ) ; const fg = { id : "app" } , pg = { class : "test-mode-toggle" , style : { display : "none" } } , mg = { key : 0 , class : "test-mode" } , gg = { key : 1 } , vg = { class : "main-content" } , bg = { _ _name : "App" , setup ( t ) { const e = Oe ( null ) , r = Oe ( ! 1 ) , n = ( ) => { r . value = ! r . value } , i = ( ) => { e . value && e . value . showMindMapPage ( ) } ; return ( s , a ) => ( Ue ( ) , Ge ( "div" , fg , [ a [ 0 ] || ( a [ 0 ] = _u ( "« " , - 1 ) ) , J ( "div" , pg , [ J ( "button" , { onClick : n , class : "test-btn" } , dr ( r . value ? "切换到思维导图" : "测试Markdown渲染" ) , 1 ) ] ) , r . value ? ( Ue ( ) , Ge ( "div" , mg , [ jt ( hg ) ] ) ) : ( Ue ( ) , Ge ( "div" , gg , [ jt ( ng , { onStartRealtimeGeneration : i } ) , J ( "div" , vg , [ jt ( w7 , { ref _key : "mindMapRef" , ref : e } , null , 512 ) ] ) ] ) ) ] ) ) } } ; ap ( bg ) . mount ( "#app" ) ; export { Oc as _ , Yl as c , xg as g } ;