@@ -1,18 +1,18 @@
const _ _vite _ _mapDeps = ( i , m = _ _vite _ _mapDeps , d = ( m . f || ( m . f = [ "assets/index3.js" , "assets/common-types.js" , "assets/index2.js" ] ) ) ) => i . map ( i => d [ i ] ) ;
function LL ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { const a = t [ n ] ; if ( typeof a != "string" && ! Array . isArray ( a ) ) { for ( const o in a ) if ( o !== "default" && ! ( o in e ) ) { const s = Object . getOwnPropertyDescriptor ( a , o ) ; s && Object . defineProperty ( e , o , s . get ? s : { enumerable : ! 0 , get : ( ) => a [ o ] } ) } } } return Object . freeze ( Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) ) } ( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const o of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) a ( o ) ; new MutationObserver ( o => { for ( const s of o ) if ( s . type === "childList" ) for ( const u of s . addedNodes ) u . tagName === "LINK" && u . rel === "modulepreload" && a ( u ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( o ) { const s = { } ; return o . integrity && ( s . integrity = o . integrity ) , o . referrerPolicy && ( s . referrerPolicy = o . referrerPolicy ) , o . crossOrigin === "use-credentials" ? s . credentials = "include" : o . crossOrigin === "anonymous" ? s . credentials = "omit" : s . credentials = "same-origin" , s } function a ( o ) { if ( o . ep ) return ; o . ep = ! 0 ; const s = n ( o ) ; fetch ( o . href , s ) } } ) ( ) ; function wc ( e ) { return e && e . _ _esModule && Object . prototype . hasOwnProperty . call ( e , "default" ) ? e . default : e } var Mf = { exports : { } } , ys = { } ; var AA ; function ML ( ) { if ( AA ) return ys ; AA = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.fragment" ) ; function n ( a , o , s ) { var u = null ; if ( s !== void 0 && ( u = "" + s ) , o . key !== void 0 && ( u = "" + o . key ) , "key" in o ) { s = { } ; for ( var c in o ) c !== "key" && ( s [ c ] = o [ c ] ) } else s = o ; return o = s . ref , { $$typeof : e , type : a , key : u , ref : o !== void 0 ? o : null , props : s } } return ys . Fragment = t , ys . jsx = n , ys . jsxs = n , ys } var kA ; function jL ( ) { return kA || ( kA = 1 , Mf . exports = ML ( ) ) , Mf . exports } var p = jL ( ) , jf = { exports : { } } , Ce = { } ; var _A ; function UL ( ) { if ( _A ) return Ce ; _A = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.portal" ) , n = Symbol . for ( "react.fragment" ) , a = Symbol . for ( "react.strict_mode" ) , o = Symbol . for ( "react.profiler" ) , s = Symbol . for ( "react.consumer" ) , u = Symbol . for ( "react.context" ) , c = Symbol . for ( "react.forward_ref" ) , f = Symbol . for ( "react.suspense" ) , g = Symbol . for ( "react.memo" ) , h = Symbol . for ( "react.lazy" ) , m = Symbol . for ( "react.activity" ) , S = Symbol . iterator ; function v ( j ) { return j === null || typeof j != "object" ? null : ( j = S && j [ S ] || j [ "@@iterator" ] , typeof j == "function" ? j : null ) } var x = { isMounted : function ( ) { return ! 1 } , enqueueForceUpdate : function ( ) { } , enqueueReplaceState : function ( ) { } , enqueueSetState : function ( ) { } } , w = Object . assign , k = { } ; function A ( j , M , I ) { this . props = j , this . context = M , this . refs = k , this . updater = I || x } A . prototype . isReactComponent = { } , A . prototype . setState = function ( j , M ) { if ( typeof j != "object" && typeof j != "function" && j != null ) throw Error ( "takes an object of state variables to update or a function which returns an object of state variables." ) ; this . updater . enqueueSetState ( this , j , M , "setState" ) } , A . prototype . forceUpdate = function ( j ) { this . updater . enqueueForceUpdate ( this , j , "forceUpdate" ) } ; function _ ( ) { } _ . prototype = A . prototype ; function N ( j , M , I ) { this . props = j , this . context = M , this . refs = k , this . updater = I || x } var L = N . prototype = new _ ; L . constructor = N , w ( L , A . prototype ) , L . isPureReactComponent = ! 0 ; var U = Array . isArray ; function D ( ) { } var B = { H : null , A : null , T : null , S : null } , $ = Object . prototype . hasOwnProperty ; function K ( j , M , I ) { var oe = I . ref ; return { $$typeof : e , type : j , key : M , ref : oe !== void 0 ? oe : null , props : I } } function F ( j , M ) { return K ( j . type , M , j . props ) } function W ( j ) { return typeof j == "object" && j !== null && j . $$typeof === e } function q ( j ) { var M = { "=" : "=0" , ":" : "=2" } ; return "$" + j . replace ( /[=:]/g , function ( I ) { return M [ I ] } ) } var re = /\/+/g ; function ae ( j , M ) { return typeof j == "object" && j !== null && j . key != null ? q ( "" + j . key ) : M . toString ( 36 ) } function J ( j ) { switch ( j . status ) { case "fulfilled" : return j . value ; case "rejected" : throw j . reason ; default : switch ( typeof j . status == "string" ? j . then ( D , D ) : ( j . status = "pending" , j . then ( function ( M ) { j . status === "pending" && ( j . status = "fulfilled" , j . value = M ) } , function ( M ) { j . status === "pending" && ( j . status = "rejected" , j . reason = M ) } ) ) , j . status ) { case "fulfilled" : return j . value ; case "rejected" : throw j . reason } } throw j } function P ( j , M , I , oe , te ) { var ie = typeof j ; ( ie === "undefined" || ie === "boolean" ) && ( j = null ) ; var se = ! 1 ; if ( j === null ) se = ! 0 ; else switch ( ie ) { case "bigint" : case "string" : case "number" : se = ! 0 ; break ; case "object" : switch ( j . $$typeof ) { case e : case t : se = ! 0 ; break ; case h : return se = j . _init , P ( se ( j . _payload ) , M , I , oe , te ) } } if ( se ) return te = te ( j ) , se = oe === "" ? "." + ae ( j , 0 ) : oe , U ( te ) ? ( I = "" , se != null && ( I = se . replace ( re , "$&/" ) + "/" ) , P ( te , M , I , "" , function ( Te ) { return Te } ) ) : te != null && ( W ( te ) && ( te = F ( te , I + ( te . key == null || j && j . key === te . key ? "" : ( "" + te . key ) . replace ( re , "$&/" ) + "/" ) + se ) ) , M . push ( te ) ) , 1 ; se = 0 ; var he = oe === "" ? "." : oe + ":" ; if ( U ( j ) ) for ( var pe = 0 ; pe < j . length ; pe ++ ) oe = j [ pe ] , ie = he + ae ( oe , pe ) , se += P ( oe , M , I , ie , te ) ; else if ( pe = v ( j ) , typeof pe == "function" ) for ( j = pe . call ( j ) , pe = 0 ; ! ( oe = j . next ( ) ) . done ; ) oe = oe . value , ie = he + ae ( oe , pe ++ ) , se += P ( oe , M , I , ie , te ) ; else if ( ie === "object" ) { if ( typeof j . then == "function" ) return P ( J ( j ) , M , I , oe , te ) ; throw M = String ( j ) , Error ( "Objects are not valid as a React child (found: " + ( M === "[object Object]" ? "object with keys {" + Object . keys ( j ) . join ( ", " ) + "}" : M ) + " ) . If you meant to render a collection of children , use an Line truncated
function jL ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { const a = t [ n ] ; if ( typeof a != "string" && ! Array . isArray ( a ) ) { for ( const o in a ) if ( o !== "default" && ! ( o in e ) ) { const s = Object . getOwnPropertyDescriptor ( a , o ) ; s && Object . defineProperty ( e , o , s . get ? s : { enumerable : ! 0 , get : ( ) => a [ o ] } ) } } } return Object . freeze ( Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) ) } ( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const o of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) a ( o ) ; new MutationObserver ( o => { for ( const s of o ) if ( s . type === "childList" ) for ( const u of s . addedNodes ) u . tagName === "LINK" && u . rel === "modulepreload" && a ( u ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( o ) { const s = { } ; return o . integrity && ( s . integrity = o . integrity ) , o . referrerPolicy && ( s . referrerPolicy = o . referrerPolicy ) , o . crossOrigin === "use-credentials" ? s . credentials = "include" : o . crossOrigin === "anonymous" ? s . credentials = "omit" : s . credentials = "same-origin" , s } function a ( o ) { if ( o . ep ) return ; o . ep = ! 0 ; const s = n ( o ) ; fetch ( o . href , s ) } } ) ( ) ; function wc ( e ) { return e && e . _ _esModule && Object . prototype . hasOwnProperty . call ( e , "default" ) ? e . default : e } var jf = { exports : { } } , bs = { } ; var AA ; function UL ( ) { if ( AA ) return bs ; AA = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.fragment" ) ; function n ( a , o , s ) { var u = null ; if ( s !== void 0 && ( u = "" + s ) , o . key !== void 0 && ( u = "" + o . key ) , "key" in o ) { s = { } ; for ( var c in o ) c !== "key" && ( s [ c ] = o [ c ] ) } else s = o ; return o = s . ref , { $$typeof : e , type : a , key : u , ref : o !== void 0 ? o : null , props : s } } return bs . Fragment = t , bs . jsx = n , bs . jsxs = n , bs } var kA ; function FL ( ) { return kA || ( kA = 1 , jf . exports = UL ( ) ) , jf . exports } var p = FL ( ) , Uf = { exports : { } } , Re = { } ; var _A ; function BL ( ) { if ( _A ) return Re ; _A = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.portal" ) , n = Symbol . for ( "react.fragment" ) , a = Symbol . for ( "react.strict_mode" ) , o = Symbol . for ( "react.profiler" ) , s = Symbol . for ( "react.consumer" ) , u = Symbol . for ( "react.context" ) , c = Symbol . for ( "react.forward_ref" ) , f = Symbol . for ( "react.suspense" ) , g = Symbol . for ( "react.memo" ) , h = Symbol . for ( "react.lazy" ) , m = Symbol . for ( "react.activity" ) , S = Symbol . iterator ; function v ( M ) { return M === null || typeof M != "object" ? null : ( M = S && M [ S ] || M [ "@@iterator" ] , typeof M == "function" ? M : null ) } var x = { isMounted : function ( ) { return ! 1 } , enqueueForceUpdate : function ( ) { } , enqueueReplaceState : function ( ) { } , enqueueSetState : function ( ) { } } , w = Object . assign , k = { } ; function A ( M , j , C ) { this . props = M , this . context = j , this . refs = k , this . updater = C || x } A . prototype . isReactComponent = { } , A . prototype . setState = function ( M , j ) { if ( typeof M != "object" && typeof M != "function" && M != null ) throw Error ( "takes an object of state variables to update or a function which returns an object of state variables." ) ; this . updater . enqueueSetState ( this , M , j , "setState" ) } , A . prototype . forceUpdate = function ( M ) { this . updater . enqueueForceUpdate ( this , M , "forceUpdate" ) } ; function _ ( ) { } _ . prototype = A . prototype ; function N ( M , j , C ) { this . props = M , this . context = j , this . refs = k , this . updater = C || x } var L = N . prototype = new _ ; L . constructor = N , w ( L , A . prototype ) , L . isPureReactComponent = ! 0 ; var U = Array . isArray ; function D ( ) { } var P = { H : null , A : null , T : null , S : null } , $ = Object . prototype . hasOwnProperty ; function Y ( M , j , C ) { var J = C . ref ; return { $$typeof : e , type : M , key : j , ref : J !== void 0 ? J : null , props : C } } function B ( M , j ) { return Y ( M . type , j , M . props ) } function V ( M ) { return typeof M == "object" && M !== null && M . $$typeof === e } function X ( M ) { var j = { "=" : "=0" , ":" : "=2" } ; return "$" + M . replace ( /[=:]/g , function ( C ) { return j [ C ] } ) } var ne = /\/+/g ; function ie ( M , j ) { return typeof M == "object" && M !== null && M . key != null ? X ( "" + M . key ) : j . toString ( 36 ) } function ee ( M ) { switch ( M . status ) { case "fulfilled" : return M . value ; case "rejected" : throw M . reason ; default : switch ( typeof M . status == "string" ? M . then ( D , D ) : ( M . status = "pending" , M . then ( function ( j ) { M . status === "pending" && ( M . status = "fulfilled" , M . value = j ) } , function ( j ) { M . status === "pending" && ( M . status = "rejected" , M . reason = j ) } ) ) , M . status ) { case "fulfilled" : return M . value ; case "rejected" : throw M . reason } } throw M } function F ( M , j , C , J , Q ) { var re = typeof M ; ( re === "undefined" || re === "boolean" ) && ( M = null ) ; var oe = ! 1 ; if ( M === null ) oe = ! 0 ; else switch ( re ) { case "bigint" : case "string" : case "number" : oe = ! 0 ; break ; case "object" : switch ( M . $$typeof ) { case e : case t : oe = ! 0 ; break ; case h : return oe = M . _init , F ( oe ( M . _payload ) , j , C , J , Q ) } } if ( oe ) return Q = Q ( M ) , oe = J === "" ? "." + ie ( M , 0 ) : J , U ( Q ) ? ( C = "" , oe != null && ( C = oe . replace ( ne , "$&/" ) + "/" ) , F ( Q , j , C , "" , function ( ve ) { return ve } ) ) : Q != null && ( V ( Q ) && ( Q = B ( Q , C + ( Q . key == null || M && M . key === Q . key ? "" : ( "" + Q . key ) . replace ( ne , "$&/" ) + "/" ) + oe ) ) , j . push ( Q ) ) , 1 ; oe = 0 ; var he = J === "" ? "." : J + ":" ; if ( U ( M ) ) for ( var pe = 0 ; pe < M . length ; pe ++ ) J = M [ pe ] , re = he + ie ( J , pe ) , oe += F ( J , j , C , re , Q ) ; else if ( pe = v ( M ) , typeof pe == "function" ) for ( M = pe . call ( M ) , pe = 0 ; ! ( J = M . next ( ) ) . done ; ) J = J . value , re = he + ie ( J , pe ++ ) , oe += F ( J , j , C , re , Q ) ; else if ( re === "object" ) { if ( typeof M . then == "function" ) return F ( ee ( M ) , j , C , J , Q ) ; throw j = String ( M ) , Error ( "Objects are not valid as a React child (found: " + ( j === "[object Object]" ? "object with keys {" + Object . keys ( M ) . join ( ", " ) + "}" : j ) + "). If you meant to render a collection of children, use an array instead." ) } return oe } funct Line truncated
at ` )?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return `
` +L e+r+at }var Xn =!1;function Zn (r,i){if(!r||Xn )return"";Xn =!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(n e){var Q=n e}Reflect.construct(r,[],de)}else{try{de.call()}catch(n e){Q=n e}r.call(de.prototype)}}else{try{throw Error()}catch(n e){Q=n e}(de=r())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(n e){if(n e&&Q &&typeof n e.stack=="string")return[n e.stack,Q .stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),T=y[0],R=y[1];if(T&&R){var z=T.split( `
` ),Z =R.split( `
` );for(b=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;b<Z .length&&!Z [b].includes("DetermineComponentFrameRoot");)b++;if(d===z.length||b===Z .length)for(d=z.length-1,b=Z .length-1;1<=d&&0<=b&&z[d]!==Z [b];)b--;for(;1<=d&&0<=b;d--,b--)if(z[d]!==Z [b]){if(d!==1||b!==1)do if(d--,b--,0>b||z[d]!==Z [b]){var le= `
` +z[d].replace(" at new "," at ");return r.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",r.displayName)),le}while(1<=d&&0<=b);break}}}finally{Xn =!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?ut (l):""}function Lr (r,i){switch(r.tag){case 26:case 27:case 5:return ut (r.type);case 16:return ut ("Lazy");case 13:return r.child!==i&&i!==null?ut ("Suspense Fallback"):ut ("Suspense");case 19:return ut ("SuspenseList");case 0:case 15:return Zn (r.type,!1);case 11:return Zn (r.type.render,!1);case 1:return Zn (r.type,!0);case 31:return ut ("Activity");default:return""}}function ml(r){try{var i="",l=null;do i+=Lr (r,l),l=r,r=r.return;while(r);return i}catch(d){return `
` +j e+r+qe }var Ie =!1;function kt (r,i){if(!r||Ie )return"";Ie =!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(a e){var Z=a e}Reflect.construct(r,[],de)}else{try{de.call()}catch(a e){Z=a e}r.call(de.prototype)}}else{try{throw Error()}catch(a e){Z=a e}(de=r())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(a e){if(a e&&Z &&typeof a e.stack=="string")return[a e.stack,Z .stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),T=y[0],R=y[1];if(T&&R){var z=T.split( `
` ),K =R.split( `
` );for(b=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;b<K .length&&!K [b].includes("DetermineComponentFrameRoot");)b++;if(d===z.length||b===K .length)for(d=z.length-1,b=K .length-1;1<=d&&0<=b&&z[d]!==K [b];)b--;for(;1<=d&&0<=b;d--,b--)if(z[d]!==K [b]){if(d!==1||b!==1)do if(d--,b--,0>b||z[d]!==K [b]){var le= `
` +z[d].replace(" at new "," at ");return r.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",r.displayName)),le}while(1<=d&&0<=b);break}}}finally{Ie =!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Qe (l):""}function cn (r,i){switch(r.tag){case 26:case 27:case 5:return Qe (r.type);case 16:return Qe ("Lazy");case 13:return r.child!==i&&i!==null?Qe ("Suspense Fallback"):Qe ("Suspense");case 19:return Qe ("SuspenseList");case 0:case 15:return kt (r.type,!1);case 11:return kt (r.type.render,!1);case 1:return kt (r.type,!0);case 31:return Qe ("Activity");default:return""}}function ml(r){try{var i="",l=null;do i+=cn (r,l),l=r,r=r.return;while(r);return i}catch(d){return `
Error generating stack : ` +d.message+ `
` +d.stack}}var ai=Object.prototype.hasOwnProperty,ii=e.unstable_scheduleCallback,ko=e.unstable_cancelCallback,vd=e.unstable_shouldYield,Ed=e.unstable_requestPaint, $ t=e.unstable_now,Sd=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,je=e.unstable_LowPriority,We=e.unstable_IdlePriority,ln=e.log,cr=e.unstable_setDisableYieldValue,Gt=null,xt=null;function Xt(r){if(typeof ln=="function"&&cr(r),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Gt,r)}catch{}}var tt=Math.clz32?Math.clz32:E1,Mr=Math.log,jn=Math.LN2;function E1(r){return r>>>=0,r===0?32:31-(Mr(r)/jn|0)|0}var hl=256,bl=262144,yl=4194304;function Ta(r){var i=r&42;if(i!==0)return i;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vl(r,i,l){var d=r.pendingLanes;if(d===0)return 0;var b=0,y=r.suspendedLanes,T=r.pingedLanes;r=r.warmLanes;var R=d&134217727;return R!==0?(d=R&~y,d!==0?b=Ta(d):(T&=R,T!==0?b=Ta(T):l||(l=R&~r,l!==0&&(b=Ta(l))))):(R=d&~y,R!==0?b=Ta(R):T!==0?b=Ta(T):l||(l=d&~r,l!==0&&(b=Ta(l)))),b===0?0:i!==0&&i!==b&&(i&y)===0&&(y=b&-b,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:b}function _o(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function S1(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function RS(){var r=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),r}function xd(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function No(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function x1(r,i,l,d,b,y){var T=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var R=r.entanglements,z=r.expirationTimes,Z=r.hiddenUpdates;for(l=T&~l;0<l;){var le=31-tt(l),de=1<<le;R[le]=0,z[le]=-1;var Q=Z[le];if(Q!==null)for(Z[le]=null,le=0;le<Q.length;le++){var ne=Q[le];ne!==null&&(ne.lane&=-536870913)}l&=~de}d!==0&&CS(r,d,0),y!==0&&b===0&&r.tag!==0&&(r.suspendedLanes|=y&~(T&~i))}function CS(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var d=31-tt(i);r.entangledLanes|=i,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function IS(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var d=31-tt(l),b=1<<d;b&i|r[d]&i&&(r[d]|=i),l&=~b}}function OS(r,i){var l=i&-i;return l=(l&42)!==0?1:wd(l),(l&(r.suspendedLanes|i))!==0?0:l}function wd(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Td(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function DS(){var r=G.p;return r!==0?r:(r=window.event,r===void 0?32:yA(r.type))}function LS(r,i){var l=G.p;try{return G.p=r,i()}finally{G.p=l}}var jr=Math.random().toString(36).slice(2),Ct="__reactFiber $ "+jr,Zt="__reactProps $ "+jr,oi="__reactContainer $ "+jr,Ad="__reactEvents $ "+jr,w1="__reactListeners $ "+jr,T1="__reactHandles $ "+jr,MS="__reactResources $ "+jr,Ro="__reactMarker $ "+jr;function kd(r){delete r[Ct],delete r[Zt],delete r[Ad],delete r[w1],delete r[T1]}function si(r){var i=r[Ct];if(i)return i;for(var l=r.parentNode;l;){if(i=l[oi]||l[Ct]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=nA(r);r!==null;){if(l=r[Ct])return l;r=nA(r)}return i}r=l,l=r.parentNode}return null}function li(r){if(r=r[Ct]||r[oi]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Co(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function ui(r){var i=r[MS];return i||(i=r[MS]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function At(r){r[Ro]=!0}var jS=new Set,US={};function Aa(r,i){ci(r,i),ci(r+"Capture",i)}function ci(r,i){for(US[r]=i,r=0;r<i.length;r++)jS.add(i[r])}var A1=RegExp("^[:A-Z_a-z \\ u00C0- \\ u00D6 \\ u00D8- \\ u00F6 \\ u00F8- \\ u02FF \\ u0370- \\ u037D \\ u037F- \\ u1FFF \\ u200C- \\ u20
Line truncated
` ).replace(nL,"")}function qT(r,i){return i=VT(i),VT(r)===i}function Je(r,i,l,d,b,y){switch(l){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||pi(r,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&pi(r,""+d);break;case"className":Sl(r,"class",d);break;case"tabIndex":Sl(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(r,l,d);break;case"style":qS(r,d,y);break;case"data":if(i!=="object"){Sl(r,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||l!=="href")){r.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you \\ 're trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(l==="formAction"?(i!=="input"&&Je(r,i,"name",b.name,b,null),Je(r,i,"formEncType",b.formEncType,b,null),Je(r,i,"formMethod",b.formMethod,b,null),Je(r,i,"formTarget",b.formTarget,b,null)):(Je(r,i,"encType",b.encType,b,null),Je(r,i,"method",b.method,b,null),Je(r,i,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=pr);break;case"onScroll":d!=null&&Fe("scroll",r);break;case"onScrollEnd":d!=null&&Fe("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}l=wl(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""+d):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":d===!0?r.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,d):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case"popover":Fe("beforetoggle",r),Fe("toggle",r),El(r,"popover",d);break;case"xlinkActuate":dr(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":dr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":dr(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":dr(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":dr(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":dr(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":dr(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":dr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":dr(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":El(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=C1.get(l)||l,El(r,l,d))}}function bf(r,i,l,d,b,y){switch(l){case"style":qS(r,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"children":typeof d=="string"?pi(r,d):(typeof d=="number"||typeof d=="bigint")&&pi(r,""+d);break;case"onScroll":d!=null&&Fe("scroll",r);break;case"onScrollEnd":d!=null&&Fe("scrollend",r);break;case"onClick":d!=null&&(r.onclick=pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
. ` .concat(z U, ` {
` +d.stack}}var ai=Object.prototype.hasOwnProperty,ii=e.unstable_scheduleCallback,Ao=e.unstable_cancelCallback,Ed=e.unstable_shouldYield,Sd=e.unstable_requestPaint,Ht=e.unstable_now,xd=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,Ne=e.unstable_NormalPriority,Ue=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,dn=e.log,dr=e.unstable_setDisableYieldValue,Vt=null,wt=null;function Qt(r){if(typeof dn=="function"&&dr(r),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Vt,r)}catch{}}var at=Math.clz32?Math.clz32:x1,Mr=Math.log,Bn=Math.LN2;function x1(r){return r>>>=0,r===0?32:31-(Mr(r)/Bn|0)|0}var hl=256,bl=262144,yl=4194304;function Ta(r){var i=r&42;if(i!==0)return i;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vl(r,i,l){var d=r.pendingLanes;if(d===0)return 0;var b=0,y=r.suspendedLanes,T=r.pingedLanes;r=r.warmLanes;var R=d&134217727;return R!==0?(d=R&~y,d!==0?b=Ta(d):(T&=R,T!==0?b=Ta(T):l||(l=R&~r,l!==0&&(b=Ta(l))))):(R=d&~y,R!==0?b=Ta(R):T!==0?b=Ta(T):l||(l=d&~r,l!==0&&(b=Ta(l)))),b===0?0:i!==0&&i!==b&&(i&y)===0&&(y=b&-b,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:b}function ko(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function w1(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function CS(){var r=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),r}function wd(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function _o(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function T1(r,i,l,d,b,y){var T=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var R=r.entanglements,z=r.expirationTimes,K=r.hiddenUpdates;for(l=T&~l;0<l;){var le=31-at(l),de=1<<le;R[le]=0,z[le]=-1;var Z=K[le];if(Z!==null)for(K[le]=null,le=0;le<Z.length;le++){var ae=Z[le];ae!==null&&(ae.lane&=-536870913)}l&=~de}d!==0&&RS(r,d,0),y!==0&&b===0&&r.tag!==0&&(r.suspendedLanes|=y&~(T&~i))}function RS(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var d=31-at(i);r.entangledLanes|=i,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function IS(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var d=31-at(l),b=1<<d;b&i|r[d]&i&&(r[d]|=i),l&=~b}}function OS(r,i){var l=i&-i;return l=(l&42)!==0?1:Td(l),(l&(r.suspendedLanes|i))!==0?0:l}function Td(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Ad(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function DS(){var r=q.p;return r!==0?r:(r=window.event,r===void 0?32:yA(r.type))}function LS(r,i){var l=q.p;try{return q.p=r,i()}finally{q.p=l}}var jr=Math.random().toString(36).slice(2),Ot="__reactFiber $ "+jr,Jt="__reactProps $ "+jr,oi="__reactContainer $ "+jr,kd="__reactEvents $ "+jr,A1="__reactListeners $ "+jr,k1="__reactHandles $ "+jr,MS="__reactResources $ "+jr,No="__reactMarker $ "+jr;function _d(r){delete r[Ot],delete r[Jt],delete r[kd],delete r[A1],delete r[k1]}function si(r){var i=r[Ot];if(i)return i;for(var l=r.parentNode;l;){if(i=l[oi]||l[Ot]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=nA(r);r!==null;){if(l=r[Ot])return l;r=nA(r)}return i}r=l,l=r.parentNode}return null}function li(r){if(r=r[Ot]||r[oi]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Co(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function ui(r){var i=r[MS];return i||(i=r[MS]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function _t(r){r[No]=!0}var jS=new Set,US={};function Aa(r,i){ci(r,i),ci(r+"Capture",i)}function ci(r,i){for(US[r]=i,r=0;r<i.length;r++)jS.add(i[r])}var _1=RegExp("^[:A-Z_a-z \\ u00C0- \\ u00D6 \\ u00D8- \\ u00F6 \\ u00F8- \\ u02FF \\ u0370- \\ u037D \\ u037F- \\ u1FFF \\ u200C- \\ u20
Line truncated
` ).replace(aL,"")}function qT(r,i){return i=VT(i),VT(r)===i}function nt(r,i,l,d,b,y){switch(l){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||pi(r,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&pi(r,""+d);break;case"className":Sl(r,"class",d);break;case"tabIndex":Sl(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(r,l,d);break;case"style":qS(r,d,y);break;case"data":if(i!=="object"){Sl(r,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||l!=="href")){r.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you \\ 're trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(l==="formAction"?(i!=="input"&&nt(r,i,"name",b.name,b,null),nt(r,i,"formEncType",b.formEncType,b,null),nt(r,i,"formMethod",b.formMethod,b,null),nt(r,i,"formTarget",b.formTarget,b,null)):(nt(r,i,"encType",b.encType,b,null),nt(r,i,"method",b.method,b,null),nt(r,i,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=fr);break;case"onScroll":d!=null&&Be("scroll",r);break;case"onScrollEnd":d!=null&&Be("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}l=wl(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""+d):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":d===!0?r.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,d):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case"popover":Be("beforetoggle",r),Be("toggle",r),El(r,"popover",d);break;case"xlinkActuate":pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":pr(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":pr(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":pr(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":pr(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":El(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=O1.get(l)||l,El(r,l,d))}}function yf(r,i,l,d,b,y){switch(l){case"style":qS(r,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"children":typeof d=="string"?pi(r,d):(typeof d=="number"||typeof d=="bigint")&&pi(r,""+d);break;case"onScroll":d!=null&&Be("scroll",r);break;case"onScrollEnd":d!=null&&Be("scrollend",r);break;case"onClick":d!=null&&(r.onclick=fr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
. ` .concat(H U, ` {
overflow : hidden ` ).concat(a, ` ;
padding - right : ` ).concat(c,"px ").concat(a, ` ;
}
body [ ` ).concat(n o, ` ] {
body [ ` ).concat(t o, ` ] {
overflow : hidden ` ).concat(a, ` ;
overscroll - behavior : contain ;
` ).concat([t&&"position: relative ".concat(a,";"),n==="margin"&& `
@@ -41,70 +41,70 @@ Error generating stack: `+d.message+`
margin - right : 0 ` ).concat(a, ` ;
}
body [ ` ).concat(n o, ` ] {
` ).concat( $ U,": ").concat(c, ` px ;
body [ ` ).concat(t o, ` ] {
` ).concat(V U,": ").concat(c, ` px ;
}
` )},fk=function(){var e=parseInt(document.body.getAttribute(n o)||"0",10);return isFinite(e)?e:0},s F=function(){E.useEffect(function(){return document.body.setAttribute(n o,(fk()+1).toString()),function(){var e=fk()-1;e<=0?document.body.removeAttribute(n o):document.body.setAttribute(n o,e.toString())}},[])},l F=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;s F();var s=E.useMemo(function(){return a F(o)},[o]);return E.createElement(i F,{styles:o F(s,!t,o,n?"":"!important")})},O g=!1;if(typeof window<"u")try{var Fu=Object.defineProperty({},"passive",{get:function(){return O g=!0,!0}});window.addEventListener("test",Fu,Fu),window.removeEventListener("test",Fu,Fu)}catch{O g=!1}var Vi=O g?{passive:!1}:!1,u F=function(e){return e.tagName==="TEXTAREA"},JN =function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!u F(e)&&n[t]==="visible")},c F=function(e){return JN (e,"overflowY")},d F=function(e){return JN (e,"overflowX")},gk=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=eR (e,a);if(o){var s=tR (e,a),u=s[1],c=s[2];if(u>c)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},p F=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},f F=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},eR =function(e,t){return e==="v"?c F(t):d F(t)},tR =function(e,t){return e==="v"?p F(t):f F(t)},g F=function(e,t){return e==="h"&&t==="rtl"?-1:1},m F=function(e,t,n,a,o){var s=g F(e,window.getComputedStyle(t).direction),u=s*a,c=n.target,f=t.contains(c),g=!1,h=u>0,m=0,S=0;do{if(!c)break;var v=tR (e,c),x=v[0],w=v[1],k=v[2],A=w-k-s*x;(x||A)&&eR (e,c)&&(m+=A,S+=x);var _=c.parentNode;c=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(S)<1)&&(g=!0),g},Bu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mk=function(e){return[e.deltaX,e.deltaY]},hk=function(e){return e&&"current"in e?e.current:e},h F=function(e,t){return e[0]===t[0]&&e[1]===t[1]},b F=function(e){return `
` )},fk=function(){var e=parseInt(document.body.getAttribute(t o)||"0",10);return isFinite(e)?e:0},c F=function(){E.useEffect(function(){return document.body.setAttribute(t o,(fk()+1).toString()),function(){var e=fk()-1;e<=0?document.body.removeAttribute(t o):document.body.setAttribute(t o,e.toString())}},[])},d F=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;c F();var s=E.useMemo(function(){return s F(o)},[o]);return E.createElement(l F,{styles:u F(s,!t,o,n?"":"!important")})},D g=!1;if(typeof window<"u")try{var Fu=Object.defineProperty({},"passive",{get:function(){return D g=!0,!0}});window.addEventListener("test",Fu,Fu),window.removeEventListener("test",Fu,Fu)}catch{D g=!1}var Vi=D g?{passive:!1}:!1,p F=function(e){return e.tagName==="TEXTAREA"},eC =function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!p F(e)&&n[t]==="visible")},f F=function(e){return eC (e,"overflowY")},g F=function(e){return eC (e,"overflowX")},gk=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=tC (e,a);if(o){var s=nC (e,a),u=s[1],c=s[2];if(u>c)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},m F=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},h F=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},tC =function(e,t){return e==="v"?f F(t):g F(t)},nC =function(e,t){return e==="v"?m F(t):h F(t)},b F=function(e,t){return e==="h"&&t==="rtl"?-1:1},y F=function(e,t,n,a,o){var s=b F(e,window.getComputedStyle(t).direction),u=s*a,c=n.target,f=t.contains(c),g=!1,h=u>0,m=0,S=0;do{if(!c)break;var v=nC (e,c),x=v[0],w=v[1],k=v[2],A=w-k-s*x;(x||A)&&tC (e,c)&&(m+=A,S+=x);var _=c.parentNode;c=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(S)<1)&&(g=!0),g},Bu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mk=function(e){return[e.deltaX,e.deltaY]},hk=function(e){return e&&"current"in e?e.current:e},v F=function(e,t){return e[0]===t[0]&&e[1]===t[1]},E F=function(e){return `
. block - interactivity - ` .concat(e, ` { pointer - events : none ; }
. allow - interactivity - ` ).concat(e, ` { pointer - events : all ; }
` )},yF=0,qi=[];function vF(e){var t=E.useRef([]),n=E.useRef([0,0]),a=E.useRef(),o=E.useState(yF++)[0],s=E.useState(QN)[0],u=E.useRef(e);E.useEffect(function(){u.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=PU([e.lockRef.current],(e.shards||[]).map(hk),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var A=Bu(w),_=n.current,N="deltaX"in w?w.deltaX:_[0]-A[0],L="deltaY"in w?w.deltaY:_[1]-A[1],U,D=w.target,B=Math.abs(N)>Math.abs(L)?"h":"v";if("touches"in w&&B==="h"&&D.type==="range")return!1;var $ =window.getSelection(),K= $ && $ .anchorNode,F=K?K===D||K.contains(D):!1;if(F)return!1;var W=gk(B,D);if(!W)return!0;if(W?U=B:(U=B==="v"?"h":"v",W=gk(B,D)),!W)return!1;if(!a.current&&"changedTouches"in w&&(N||L)&&(a.current=U),!U)return!0;var q=a.current||U;return mF(q,k,w,q==="h"?N:L)},[]),f=E.useCallback(function(w){var k=w;if(!(!qi.length||qi[qi.length-1]!==s)){var A="deltaY"in k?mk(k):Bu(k),_=t.current.filter(function(U){return U.name===k.type&&(U.target===k.target||k.target===U.shadowParent)&&hF(U.delta,A)})[0];if(_&&_.should){k.cancelable&&k.preventDefault();return}if(!_){var N=(u.current.shards||[]).map(hk).filter(Boolean).filter(function(U){return U.contains(k.target)}),L=N.length>0?c(k,N[0]):!u.current.noIsolation;L&&k.cancelable&&k.preventDefault()}}},[]),g=E.useCallback(function(w,k,A,_){var N={name:w,delta:k,target:A,should:_,shadowParent:EF(A)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(L){return L!==N})},1)},[]),h=E.useCallback(function(w){n.current=Bu(w),a.current=void 0},[]),m=E.useCallback(function(w){g(w.type,mk(w),w.target,c(w,e.lockRef.current))},[]),S=E.useCallback(function(w){g(w.type,Bu(w),w.target,c(w,e.lockRef.current))},[]);E.useEffect(function(){return qi.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:S}),document.addEventListener("wheel",f,Vi),document.addEventListener("touchmove",f,Vi),document.addEventListener("touchstart",h,Vi),function(){qi=qi.filter(function(w){return w!==s}),document.removeEventListener("wheel",f,Vi),document.removeEventListener("touchmove",f,Vi),document.removeEventListener("touchstart",h,Vi)}},[]);var v=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(s,{styles:bF(o)}):null,v?E.createElement(lF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function EF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SF=KU(ZN,vF);var Js=E.forwardRef(function(e,t){return E.createElement(Mc,rr({},e,{ref:t,sideCar:SF}))});Js.classNames=Mc.classNames;var Dg=["Enter"," "],xF=["ArrowDown","PageUp","Home"],nR=["ArrowUp","PageDown","End"],wF=[...xF,...nR],TF={ltr:[...Dg,"ArrowRight"],rtl:[...Dg,"ArrowLeft"]},AF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},el="Menu",[js,kF,_F]=Ys(el),[ei,rR]=Rt(el,[_F,va,go]),jc=va(),aR=go(),[NF,ti]=ei(el),[RF,tl]=ei(el),iR=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:s,modal:u=!0}=e,c=jc(t),[f,g]=E.useState(null),h=E.useRef(!1),m=Nt(s),S=ya(o);return E.useEffect(()=>{const v=()=>{h.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>h.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),p.jsx(Ic,{...c,children:p.jsx(NF,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:g,children:p.jsx(RF,{scope:t,onClose:E.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:h,dir:S,modal:u,children:a})})})};iR.displayName=el;var CF="MenuAnchor",_m=E.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,o=jc(n);return p.jsx(Zs,{...o,...a,ref:t})});_m.displayName=CF;var Nm="MenuPortal",[IF,oR]=ei(Nm,{forceMount:void 0}),sR=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:o}=e,s=ti(Nm,t);return p.jsx(IF,{scope:t,forceMount:n,children:p.jsx(St,{present:n||s.open,children:p.jsx(fo,{asChild:!0,container:o,children:a})})})};sR.displayName=Nm;var Ln="MenuContent",[OF,Rm]=ei(Ln),lR=E.forwardRef((e,t)=>{const n=oR(Ln,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=ti(Ln,e.__scopeMenu),u=tl(Ln,e.__scopeMenu);return p.jsx(js.Provider,{scope:e.__scopeMenu,children:p.jsx(St,{present:a||s.open,children:p.jsx(js.Slot,{scope:e.__scopeMenu,children:u.modal?p.jsx(DF,{...o,ref:t}):p.jsx(LF,{...o,ref:t})})})})}),DF=E.forwardRef((e,t)=>{const n=ti(Ln,e.__scopeMenu),a=E.useRef(n
Line truncated
` )},SF=0,qi=[];function xF(e){var t=E.useRef([]),n=E.useRef([0,0]),a=E.useRef(),o=E.useState(SF++)[0],s=E.useState(JN)[0],u=E.useRef(e);E.useEffect(function(){u.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=GU([e.lockRef.current],(e.shards||[]).map(hk),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var A=Bu(w),_=n.current,N="deltaX"in w?w.deltaX:_[0]-A[0],L="deltaY"in w?w.deltaY:_[1]-A[1],U,D=w.target,P=Math.abs(N)>Math.abs(L)?"h":"v";if("touches"in w&&P==="h"&&D.type==="range")return!1;var $ =window.getSelection(),Y= $ && $ .anchorNode,B=Y?Y===D||Y.contains(D):!1;if(B)return!1;var V=gk(P,D);if(!V)return!0;if(V?U=P:(U=P==="v"?"h":"v",V=gk(P,D)),!V)return!1;if(!a.current&&"changedTouches"in w&&(N||L)&&(a.current=U),!U)return!0;var X=a.current||U;return yF(X,k,w,X==="h"?N:L)},[]),f=E.useCallback(function(w){var k=w;if(!(!qi.length||qi[qi.length-1]!==s)){var A="deltaY"in k?mk(k):Bu(k),_=t.current.filter(function(U){return U.name===k.type&&(U.target===k.target||k.target===U.shadowParent)&&vF(U.delta,A)})[0];if(_&&_.should){k.cancelable&&k.preventDefault();return}if(!_){var N=(u.current.shards||[]).map(hk).filter(Boolean).filter(function(U){return U.contains(k.target)}),L=N.length>0?c(k,N[0]):!u.current.noIsolation;L&&k.cancelable&&k.preventDefault()}}},[]),g=E.useCallback(function(w,k,A,_){var N={name:w,delta:k,target:A,should:_,shadowParent:wF(A)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(L){return L!==N})},1)},[]),h=E.useCallback(function(w){n.current=Bu(w),a.current=void 0},[]),m=E.useCallback(function(w){g(w.type,mk(w),w.target,c(w,e.lockRef.current))},[]),S=E.useCallback(function(w){g(w.type,Bu(w),w.target,c(w,e.lockRef.current))},[]);E.useEffect(function(){return qi.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:S}),document.addEventListener("wheel",f,Vi),document.addEventListener("touchmove",f,Vi),document.addEventListener("touchstart",h,Vi),function(){qi=qi.filter(function(w){return w!==s}),document.removeEventListener("wheel",f,Vi),document.removeEventListener("touchmove",f,Vi),document.removeEventListener("touchstart",h,Vi)}},[]);var v=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(s,{styles:EF(o)}):null,v?E.createElement(dF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TF=QU(QN,xF);var Js=E.forwardRef(function(e,t){return E.createElement(jc,ar({},e,{ref:t,sideCar:TF}))});Js.classNames=jc.classNames;var Lg=["Enter"," "],AF=["ArrowDown","PageUp","Home"],rC=["ArrowUp","PageDown","End"],kF=[...AF,...rC],_F={ltr:[...Lg,"ArrowRight"],rtl:[...Lg,"ArrowLeft"]},NF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},el="Menu",[js,CF,RF]=Ys(el),[ei,aC]=It(el,[RF,va,fo]),Uc=va(),iC=fo(),[IF,ti]=ei(el),[OF,tl]=ei(el),oC=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:s,modal:u=!0}=e,c=Uc(t),[f,g]=E.useState(null),h=E.useRef(!1),m=Rt(s),S=ya(o);return E.useEffect(()=>{const v=()=>{h.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>h.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),p.jsx(Oc,{...c,children:p.jsx(IF,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:g,children:p.jsx(OF,{scope:t,onClose:E.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:h,dir:S,modal:u,children:a})})})};oC.displayName=el;var DF="MenuAnchor",_m=E.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,o=Uc(n);return p.jsx(Zs,{...o,...a,ref:t})});_m.displayName=DF;var Nm="MenuPortal",[LF,sC]=ei(Nm,{forceMount:void 0}),lC=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:o}=e,s=ti(Nm,t);return p.jsx(LF,{scope:t,forceMount:n,children:p.jsx(xt,{present:n||s.open,children:p.jsx(po,{asChild:!0,container:o,children:a})})})};lC.displayName=Nm;var Un="MenuContent",[MF,Cm]=ei(Un),uC=E.forwardRef((e,t)=>{const n=sC(Un,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=ti(Un,e.__scopeMenu),u=tl(Un,e.__scopeMenu);return p.jsx(js.Provider,{scope:e.__scopeMenu,children:p.jsx(xt,{present:a||s.open,children:p.jsx(js.Slot,{scope:e.__scopeMenu,children:u.modal?p.jsx(jF,{...o,ref:t}):p.jsx(UF,{...o,ref:t})})})})}),jF=E.forwardRef((e,t)=>{const n=ti(Un,e.__scopeMenu),a=E.useRef(n
Line truncated
If you want to hide the \ ` ${ t . titleName } \` , you can wrap it with our VisuallyHidden component.
For more information , see https : //radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},AP="DialogDescriptionWarning",kP=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uC(AP).contentName}}.`;return E.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Pm=KR,_P=ZR,zm=JR,$m=eC,Gm=tC,cC=rC,NP=iC,dC=sC;function RP({...e}){return p.jsx(Pm,{"data-slot":"sheet",...e})}function CP({...e}){return p.jsx(zm,{"data-slot":"sheet-portal",...e})}function IP({className:e,...t}){return p.jsx($m,{"data-slot":"sheet-overlay",className:be("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function OP({className:e,children:t,side:n="right",showCloseButton:a=!0,...o}){return p.jsxs(CP,{children:[p.jsx(IP,{}),p.jsxs(Gm,{"data-slot":"sheet-content",className:be("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[t,a&&p.jsxs(dC,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[p.jsx(Q_,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function DP({className:e,...t}){return p.jsx("div",{"data-slot":"sheet-header",className:be("flex flex-col gap-1.5 p-4",e),...t})}function LP({className:e,...t}){return p.jsx(cC,{"data-slot":"sheet-title",className:be("text-foreground font-semibold",e),...t})}function on(e){return(e||"/").replace(/\/+$/,"")||"/"}function MP(e){if(!e||e.startsWith("#"))return e;try{const t=new URL(e,window.location.origin);return t.origin!==window.location.origin?e:on(t.pathname)+t.search+t.hash}catch{return e}}function jP(e){if(!e||e.startsWith("#"))return!1;if(e.startsWith("/docs"))return!0;try{const t=new URL(e,window.location.origin);return t.origin===window.location.origin&&t.pathname.startsWith("/docs")}catch{return!1}}function UP(e){const t=on(e);return t==="/"?"/docs/index.md":`${t}.md`}function pC({nav:e,activeItem:t,onItemClick:n}){const a=(o,s=0)=>{const u=(o.path||o.title)===t;if(o.children&&o.children.length>0)return p.jsxs("div",{children:[p.jsx("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs font-semibold text-muted-foreground/70 uppercase tracking-widest mt-4 first:mt-0",children:o.title}),p.jsx("div",{className:"space-y-0.5",children:o.children.map(g=>a(g,s+1))})]},o.title+(o.path||""));const f=on(o.path||"/");return p.jsx("a",{href:f,"data-nav-path":o.path||"",onClick:g=>{g.preventDefault(),n(o)},className:`block w-full text-left px-3 py-1.5 text-sm rounded-md transition-all duration-150 ${u?"bg-primary/10 text-primary font-medium border-l-2 border-primary":"text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,style:{paddingLeft:`${12+s*12}px`},children:o.title},o.title+(o.path||""))};return p.jsx("nav",{className:"space-y-0.5",children:e.items?.map(o=>a(o))})}function Pu({nav:e,activeItem:t,onItemClick:n}){return p.jsx("aside",{className:"w-64 min-w-[16rem] border-r border-border/50 hidden md:block",children:p.jsxs(qR,{className:"h-[calc(100vh-4rem)] py-4 px-2",children:[p.jsx(pC,{nav:e,activeItem:t,onItemClick:n}),p.jsx(Ji,{className:"my-4"})]})})}function FP({open:e,onOpenChange:t,nav:n,activeItem:a,onItemClick:o,title:s="Navigation"}){return p.jsx(RP,{open:e,onOpenChange:t,children:p.jsxs(OP,{side:"left",className:"w-72 p-0",children:[p.jsx(DP,{className:"border-b px-4 py-3",children:p.jsx(LP,{children:s})}),p.jsx(qR,{className:"h-[calc(100vh-4rem)] px-2 py-4",children:p.jsx(pC,{nav:n,activeItem:a,onItemClick:u=>{o(u),t(!1)}})})]})})}function Ek(e){const t=[],n=String(e||"");let a=n.indexOf(","),o=0,s=!1;for(;!s;){a===-1&&(a=n.length,s=!0);const u=n.slice(o,a).trim();(u||!s)&&t.push(u),o=a+1,a=n.indexOf(",",o)}return t}function BP(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const PP=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{I
Line truncated
` ,g="/",h="*",m="",S="comment",v="declaration";function x(k,A){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];A=A||{};var _=1,N=1;function L(ae){var J=ae.match(t);J&&(_+=J.length);var P=ae.lastIndexOf(f);N=~P?ae.length-P:N+ae.length}function U(){var ae={line:_,column:N};return function(J){return J.position=new D(ae),K(),J}}function D(ae){this.start=ae,this.end={line:_,column:N},this.source=A.source}D.prototype.content=k;function B(ae){var J=new Error(A.source+":"+_+":"+N+": "+ae);if(J.reason=ae,J.filename=A.source,J.line=_,J.column=N,J.source=k,!A.silent)throw J}function $ (ae){var J=ae.exec(k);if(J){var P=J[0];return L(P),k=k.slice(P.length),J}}function K(){ $ (n)}function F(ae){var J;for(ae=ae||[];J=W();)J!==!1&&ae.push(J);return ae}function W(){var ae=U();if(!(g!=k.charAt(0)||h!=k.charAt(1))){for(var J=2;m!=k.charAt(J)&&(h!=k.charAt(J)||g!=k.charAt(J+1));)++J;if(J+=2,m===k.charAt(J-1))return B("End of comment missing");var P=k.slice(2,J-2);return N+=2,L(P),k=k.slice(J),N+=2,ae({type:S,comment:P})}}function q(){var ae=U(),J= $ (a);if(J){if(W(),! $ (o))return B("property missing ':'");var P= $ (s),G=ae({type:v,property:w(J[0].replace(e,m)),value:P?w(P[0].replace(e,m)):m});return $ (u),G}}function re(){var ae=[];F(ae);for(var J;J=q();)J!==!1&&(ae.push(J),F(ae));return ae}return K(),re()}function w(k){return k?k.replace(c,m):m}return tg=x,tg}var _k;function tz(){if(_k)return Yi;_k=1;var e=Yi&&Yi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=n;const t=e(ez());function n(a,o){let s=null;if(!a||typeof a!="string")return s;const u=(0,t.default)(a),c=typeof o=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:g,value:h}=f;c?o(g,h,f):h&&(s=s||{},s[g]=h)}),s}return Yi}var Ss={},Nk;function nz(){if(Nk)return Ss;Nk=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+ $ /,t=/-([a-z])/g,n=/^[^-]+ $ /,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(g){return!g||n.test(g)||e.test(g)},u=function(g,h){return h.toUpperCase()},c=function(g,h){return"".concat(h,"-")},f=function(g,h){return h===void 0&&(h={}),s(g)?g:(g=g.toLowerCase(),h.reactCompat?g=g.replace(o,c):g=g.replace(a,c),g.replace(t,u))};return Ss.camelCase=f,Ss}var xs,Rk;function rz(){if(Rk)return xs;Rk=1;var e=xs&&xs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(tz()),n=nz();function a(o,s){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(c,f){c&&f&&(u[(0,n.camelCase)(c,s)]=f)}),u}return a.default=a,xs=a,xs}var az=rz();const iz=wc(az),xC=wC("end"),Vm=wC("start");function wC(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function oz(e){const t=Vm(e),n=xC(e);if(t&&n)return{start:t,end:n}}function Cs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ck(e.position):"start"in e||"end"in e?Ck(e):"line"in e||"column"in e?jg(e):""}function jg(e){return Ik(e&&e.line)+":"+Ik(e&&e.column)}function Ck(e){return jg(e&&e.start)+"-"+jg(e&&e.end)}function Ik(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let o="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?o=t:!s.cause&&t&&(u=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof a=="string"){const f=a.indexOf(":");f===-1?s.ruleId=a:(s.source=a.slice(0,f),s.ruleId=a.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){const f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=Cs(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const qm={}.hasOwnProperty,sz=new Map,lz=/[A-Z]/g,uz=new Set(["table","tbody","thead","tfoot","tr"]),cz=new Set(["td","th"]),TC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dz(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected ` Fragment ` in options");const n=t.filePath||void 0;let a;i
Line truncated
For more information , see https : //radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},xP="DialogDescriptionWarning",wP=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uR(xP).contentName}}.`;return E.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Pm=KC,TP=ZC,zm=JC,$m=eR,Gm=tR,cR=rR,AP=iR,dR=sR;function kP({...e}){return p.jsx(Pm,{"data-slot":"sheet",...e})}function _P({...e}){return p.jsx(zm,{"data-slot":"sheet-portal",...e})}function NP({className:e,...t}){return p.jsx($m,{"data-slot":"sheet-overlay",className:be("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function CP({className:e,children:t,side:n="right",showCloseButton:a=!0,...o}){return p.jsxs(_P,{children:[p.jsx(NP,{}),p.jsxs(Gm,{"data-slot":"sheet-content",className:be("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[t,a&&p.jsxs(dR,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[p.jsx(J_,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function RP({className:e,...t}){return p.jsx("div",{"data-slot":"sheet-header",className:be("flex flex-col gap-1.5 p-4",e),...t})}function IP({className:e,...t}){return p.jsx(cR,{"data-slot":"sheet-title",className:be("text-foreground font-semibold",e),...t})}function ln(e){return(e||"/").replace(/\/+$/,"")||"/"}function OP(e){if(!e||e.startsWith("#"))return e;try{const t=new URL(e,window.location.origin);return t.origin!==window.location.origin?e:ln(t.pathname)+t.search+t.hash}catch{return e}}function DP(e){if(!e||e.startsWith("#"))return!1;if(e.startsWith("/docs"))return!0;try{const t=new URL(e,window.location.origin);return t.origin===window.location.origin&&t.pathname.startsWith("/docs")}catch{return!1}}function LP(e){const t=ln(e);return t==="/"?"/docs/index.md":`${t}.md`}function pR({nav:e,activeItem:t,onItemClick:n}){const a=(o,s=0)=>{const u=(o.path||o.title)===t;if(o.children&&o.children.length>0)return p.jsxs("div",{className:"mb-4",children:[p.jsx("div",{className:"flex items-center gap-1 px-3 py-1.5 text-[11px] font-semibold text-muted-foreground/80 uppercase tracking-wider",children:o.title}),p.jsx("div",{className:"space-y-0.5 mt-1",children:o.children.map(g=>a(g,s+1))})]},o.title+(o.path||""));const f=ln(o.path||"/");return p.jsxs("a",{href:f,"data-nav-path":o.path||"",onClick:g=>{g.preventDefault(),n(o)},className:`group flex items-center gap-1.5 w-full text-left px-3 py-1.5 text-[13px] rounded-md transition-colors ${u?"text-primary font-medium bg-primary/10":"text-muted-foreground hover:text-foreground hover:bg-muted/40"}`,style:{paddingLeft:`${12+s*10}px`},children:[s>0&&p.jsx(kc,{className:`h-3 w-3 shrink-0 opacity-0 group-hover:opacity-40 ${u?"opacity-60 text-primary":""}`}),p.jsx("span",{className:"truncate",children:o.title})]},o.title+(o.path||""))};return p.jsx("nav",{className:"space-y-0.5 pb-6",children:e.items?.map(o=>a(o))})}function Pu({nav:e,activeItem:t,onItemClick:n}){return p.jsx("aside",{className:"docs-sidebar w-[17rem] min-w-[17rem] shrink-0 hidden md:block border-r border-border/40",children:p.jsx(YC,{className:"h-[calc(100vh-3.5rem)] sticky top-14",children:p.jsx("div",{className:"py-5 px-2",children:p.jsx(pR,{nav:e,activeItem:t,onItemClick:n})})})})}function MP({open:e,onOpenChange:t,nav:n,activeItem:a,onItemClick:o,title:s="Navigation"}){return p.jsx(kP,{open:e,onOpenChange:t,children:p.jsxs(CP,{side:"left",className:"w-72 p-0",children:[p.jsx(RP,{className:"border-b px-4 py-3",children:p.jsx(IP,{children:s})}),p.jsx(YC,{className:"h-[calc(100vh-4rem)] px-2 py-4",children:p.jsx(pR,{nav:n,activeItem:a,onItemClick:u=>{o(u),t(!1)}})})]})})}function vk(e){const t=[],n=String(e||"");let a=n.indexOf(","),o=0,s=!1;for(;!s;){a===-1&&(a=n.length,s=!0);const u=n.slice(o,a).trim();(u||!s)&&t.pus
Line truncated
` ,g="/",h="*",m="",S="comment",v="declaration";function x(k,A){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];A=A||{};var _=1,N=1;function L(ie){var ee=ie.match(t);ee&&(_+=ee.length);var F=ie.lastIndexOf(f);N=~F?ie.length-F:N+ie.length}function U(){var ie={line:_,column:N};return function(ee){return ee.position=new D(ie),Y(),ee}}function D(ie){this.start=ie,this.end={line:_,column:N},this.source=A.source}D.prototype.content=k;function P(ie){var ee=new Error(A.source+":"+_+":"+N+": "+ie);if(ee.reason=ie,ee.filename=A.source,ee.line=_,ee.column=N,ee.source=k,!A.silent)throw ee}function $ (ie){var ee=ie.exec(k);if(ee){var F=ee[0];return L(F),k=k.slice(F.length),ee}}function Y(){ $ (n)}function B(ie){var ee;for(ie=ie||[];ee=V();)ee!==!1&&ie.push(ee);return ie}function V(){var ie=U();if(!(g!=k.charAt(0)||h!=k.charAt(1))){for(var ee=2;m!=k.charAt(ee)&&(h!=k.charAt(ee)||g!=k.charAt(ee+1));)++ee;if(ee+=2,m===k.charAt(ee-1))return P("End of comment missing");var F=k.slice(2,ee-2);return N+=2,L(F),k=k.slice(ee),N+=2,ie({type:S,comment:F})}}function X(){var ie=U(),ee= $ (a);if(ee){if(V(),! $ (o))return P("property missing ':'");var F= $ (s),q=ie({type:v,property:w(ee[0].replace(e,m)),value:F?w(F[0].replace(e,m)):m});return $ (u),q}}function ne(){var ie=[];B(ie);for(var ee;ee=X();)ee!==!1&&(ie.push(ee),B(ie));return ie}return Y(),ne()}function w(k){return k?k.replace(c,m):m}return ng=x,ng}var kk;function QP(){if(kk)return Yi;kk=1;var e=Yi&&Yi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=n;const t=e(ZP());function n(a,o){let s=null;if(!a||typeof a!="string")return s;const u=(0,t.default)(a),c=typeof o=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:g,value:h}=f;c?o(g,h,f):h&&(s=s||{},s[g]=h)}),s}return Yi}var Es={},_k;function JP(){if(_k)return Es;_k=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+ $ /,t=/-([a-z])/g,n=/^[^-]+ $ /,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(g){return!g||n.test(g)||e.test(g)},u=function(g,h){return h.toUpperCase()},c=function(g,h){return"".concat(h,"-")},f=function(g,h){return h===void 0&&(h={}),s(g)?g:(g=g.toLowerCase(),h.reactCompat?g=g.replace(o,c):g=g.replace(a,c),g.replace(t,u))};return Es.camelCase=f,Es}var Ss,Nk;function ez(){if(Nk)return Ss;Nk=1;var e=Ss&&Ss.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(QP()),n=JP();function a(o,s){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(c,f){c&&f&&(u[(0,n.camelCase)(c,s)]=f)}),u}return a.default=a,Ss=a,Ss}var tz=ez();const nz=wc(tz),xR=wR("end"),Vm=wR("start");function wR(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function rz(e){const t=Vm(e),n=xR(e);if(t&&n)return{start:t,end:n}}function Rs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ck(e.position):"start"in e||"end"in e?Ck(e):"line"in e||"column"in e?Ug(e):""}function Ug(e){return Rk(e&&e.line)+":"+Rk(e&&e.column)}function Ck(e){return Ug(e&&e.start)+"-"+Ug(e&&e.end)}function Rk(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let o="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?o=t:!s.cause&&t&&(u=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof a=="string"){const f=a.indexOf(":");f===-1?s.ruleId=a:(s.source=a.slice(0,f),s.ruleId=a.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){const f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=Rs(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const qm={}.hasOwnProperty,az=new Map,iz=/[A-Z]/g,oz=new Set(["table","tbody","thead","tfoot","tr"]),sz=new Set(["td","th"]),TR="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lz(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected ` Fragment ` in options
Line truncated
` ;break}case-3:{u= ` \ r
` ;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,a.push(u)}return a.join("")}function v3(e){const a={constructs:RC([m3,...(e||{}).extensions||[]]),content:o(Lz),defined:[],document:o(jz),flow:o(e3),lazy:{},string:o(r3),text:o(a3)};return a;function o(s){return u;function u(c){return h3(a,s,c)}}}function E3(e){for(;!LC(e););return e}const zk=/[ \0 \t \n \r ]/g;function S3(){let e=1,t="",n=!0,a;return o;function o(s,u,c){const f=[];let g,h,m,S,v;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(zk.lastIndex=m,g=zk.exec(s),S=g&&g.index!==void 0?g.index:s.length,v=s.charCodeAt(S),!g){t=s.slice(m);break}if(v===10&&m===S&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),m<S&&(f.push(s.slice(m,S)),e+=S-m),v){case 0:{f.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,f.push(-2);e++<h;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:a=!0,e=1}m=S+1}return c&&(a&&f.push(-5),t&&f.push(t),f.push(null)),f}}const x3=/ \\ ([!-/:-@[- ` { - ~ ] ) | & ( # ( ? : \ d { 1 , 7 } | x [ \ da - f ] { 1 , 6 } ) | [ \ da - z ] { 1 , 31 } ) ; / g i ; f u n c t i o n w 3 ( e ) { r e t u r n e . r e p l a c e ( x 3 , T 3 ) } f u n c t i o n T 3 ( e , t , n ) { i f ( t ) r e t u r n t ; i f ( n . c h a r C o d e A t ( 0 ) = = = 3 5 ) { c o n s t o = n . c h a r C o d e A t ( 1 ) , s = o = = = 1 2 0 | | o = = = 8 8 ; r e t u r n C C ( n . s l i c e ( s ? 2 : 1 ) , s ? 1 6 : 1 0 ) } r e t u r n z s ( n ) | | e } c o n s t P C = { } . h a s O w n P r o p e r t y ; f u n c t i o n A 3 ( e , t , n ) { r e t u r n t & & t y p e o f t = = " o b j e c t " & & ( n = t , t = v o i d 0 ) , k 3 ( n ) ( E 3 ( v 3 ( n ) . d o c u m e n t ( ) . w r i t e ( S 3 ( ) ( e , t , ! 0 ) ) ) ) } f u n c t i o n k 3 ( e ) { c o n s t t = { t r a n s f o r m s : [ ] , c a n C o n t a i n E o l s : [ " e m p h a s i s " , " f r a g m e n t " , " h e a d i n g " , " p a r a g r a p h " , " s t r o n g " ] , e n t e r : { a u t o l i n k : s ( a i ) , a u t o l i n k P r o t o c o l : K , a u t o l i n k E m a i l : K , a t x H e a d i n g : s ( X n ) , b l o c k Q u o t e : s ( T e ) , c h a r a c t e r E s c a p e : K , c h a r a c t e r R e f e r e n c e : K , c o d e F e n c e d : s ( y e ) , c o d e F e n c e d F e n c e I n f o : u , c o d e F e n c e d F e n c e M e t a : u , c o d e I n d e n t e d : s ( y e , u ) , c o d e T e x t : s ( L e , u ) , c o d e T e x t D a t a : K , d a t a : K , c o d e F l o w V a l u e : K , d e f i n i t i o n : s ( a t ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : u , d e f i n i t i o n L a b e l S t r i n g : u , d e f i n i t i o n T i t l e S t r i n g : u , e m p h a s i s : s ( u t ) , h a r d B r e a k E s c a p e : s ( Z n ) , h a r d B r e a k T r a i l i n g : s ( Z n ) , h t m l F l o w : s ( L r , u ) , h t m l F l o w D a t a : K , h t m l T e x t : s ( L r , u ) , h t m l T e x t D a t a : K , i m a g e : s ( m l ) , l a b e l : u , l i n k : s ( a i ) , l i s t I t e m : s ( k o ) , l i s t I t e m V a l u e : S , l i s t O r d e r e d : s ( i i , m ) , l i s t U n o r d e r e d : s ( i i ) , p a r a g r a p h : s ( v d ) , r e f e r e n c e : I , r e f e r e n c e S t r i n g : u , r e s o u r c e D e s t i n a t i o n S t r i n g : u , r e s o u r c e T i t l e S t r i n g : u , s e t e x t H e a d i n g : s ( X n ) , s t r o n g : s ( E d ) , t h e m a t i c B r e a k : s ( S d ) } , e x i t : { a t x H e a d i n g : f ( ) , a t x H e a d i n g S e q u e n c e : U , a u t o l i n k : f ( ) , a u t o l i n k E m a i l : p e , a u t o l i n k P r o t o c o l : h e , b l o c k Q u o t e : f ( ) , c h a r a c t e r E s c a p e V a l u e : F , c h a r a c t e r R e f e r e n c e M a r k e r H e x a d e c i m a l : t e , c h a r a c t e r R e f e r e n c e M a r k e r N u m e r i c : t e , c h a r a c t e r R e f e r e n c e V a l u e : i e , c h a r a c t e r R e f e r e n c e : s e , c o d e F e n c e d : f ( k ) , c o d e F e n c e d F e n c e : w , c o d e F e n c e d F e n c e I n f o : v , c o d e F e n c e d F e n c e M e t a : x , c o d e F l o w V a l u e : F , c o d e I n d e n t e d : f ( A ) , c o d e T e x t : f ( J ) , c o d e T e x t D a t a : F , d a t a : F , d e f i n i t i o n : f ( ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : L , d e f i n i t i o n L a b e l S t r i n g : _ , d e f i n i t i o n T i t l e S t r i n g : N , e m p h a s i s : f ( ) , h a r d B r e a k E s c a p e : f ( q ) , h a r d B r e a k T r a i l i n g : f ( q ) , h t m l F l o w : f ( r e ) , h t m l F l o w D a t a : F , h t m l T e x t : f ( a e ) , h t m l T e x t D a t a : F , i m a g e : f ( G ) , l a b e l : e e , l a b e l T e x t : Y , l i n e E n d i n g : W , l i n k : f ( P ) , l i s t I t e m : f ( ) , l i s t O r d e r e d : f ( ) , l i s t U n o r d e r e d : f ( ) , p a r a g r a p h : f ( ) , r e f e r e n c e S t r i n g : o e , r e s o u r c e D e s t i n a t i o n S t r i n g : C , r e s o u r c e T i t l e S t r i n g : j , r e s o u r c e : M , s e t e x t H e a d i n g : f ( $ ) , s e t e x t H e a d i n g L i n e S e q u e n c e : B , s e t e x t H e a d i n g T e x t : D , s t r o n g : f ( ) , t h e m a t i c B r e a k : f ( ) } } ; z C ( t , ( e | | { } ) . m d a s t E x t e n s i o n s | | [ ] ) ; c o n s t n = { } ; r e t u r n a ; f u n c t i o n a ( u e ) { l e t m e = { t y p e : " r o o t " , c h i l d r e n : [ ] } ; c o n s t R e = { s t a c k : [ m e ] , t o k e n S t a c k : [ ] , c o n f i g : t , e n t e r : c , e x i t : g , b u f f e r : u , r e s u m e : h , d a t a : n } , j e = [ ] ; l e t W e = - 1 ; f o r ( ; + + W e < u e . l e n g t h ; ) i f ( u e [ W e ] [ 1 ] . t y p e = = = " l i s t O r d e r e d " | | u e [ W e ] [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " ) i f ( u e [ W e ] [ 0 ] = = = " e n t e r " ) j e . p u s h ( W e ) ; e l s e { c o n s t l n = j e . p o p ( ) ; W e = o ( u e , l n , W e ) } f o r ( W e = - 1 ; + + W e < u e . l e n g t h ; ) { c o n s t l n = t [ u e [ W e ] [ 0 ] ] ; P C . c a l l ( l n , u e [ W e ] [ 1 ] . t y p e ) & & l n [ u e [ W e ] [ 1 ] . t y p e ] . c a l l ( O b j e c t . a s s i g n ( { s l i c e S e r i a l i z e : u e [ W e ] [ 2 ] . s l i c e S e r i a l i z e } , R e ) , u e [ W e ] [ 1 ] ) } i f ( R e . t o k e n S t a c k . l e n g t h > 0 ) { c o n s t l n = R e . t o k e n S t a c k [ R e . t o k e n S t a c k . l e n g t h - 1 ] ; ( l n [ 1 ] | | $ k ) . c a l l ( R e , v o i d 0 , l n [ 0 ] ) } f o r ( m e . p o s i t i o n = { s t a r t : l a ( u e . l e n g t h > 0 ? u e [ 0 ] [ 1 ] . s t a r t : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) , e n d : l a ( u e . l e n g t h > 0 ? u e [ u e . l e n g t h - 2 ] [ 1 ] . e n d : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) } , W e = - 1 ; + + W e < t . t r a n s f o r m s . l e n g t h ; ) m e = t . t r a n s f o r m s [ W e ] ( m e ) | | m e ; r e t u r n m e } f u n c t i o n o ( u e , m e , R e ) { l e t j e = m e - 1 , W e = - 1 , l n = ! 1 , c r , G t , x t , X t ; f o r ( ; + + j e < = R e ; ) { c o n s t t t = u e [ j e ] ; s w i t c h ( t t [ 1 ] . t y p e ) { c a s e " l i s t U n o r d e r e d " : c a s e " l i s t O r d e r e d " : c a s e " b l o c k Q u o t e " : { t t [ 0 ] = = = " e n t e r " ? W e + + : W e - - , X t = v o i d 0 ; b r e a k } c a s e " l i n e E n d i n g B l a n k " : { t t [ 0 ] = = = " e n t e r " & & ( c r & & ! X t & & ! W e & & ! x t & & ( x t = j e ) , X t = v o i d 0 ) ; b r e a k } c a s e " l i n e P r e f i x " : c a s e " l i s t I t e m V a l u e " : c a s e " l i s t I t e m M a r k e r " : c a s e " l i s t I t e m P r e f i x " : c a s e " l i s t I t e m P r e f i x W h i t e s p a c e " : b r e a k ; d e f a u l t : X t = v o i d 0 } i f ( ! W e & & t t [ 0 ] = = = " e n t e r " & & t t [ 1 ] . t y p e = = = " l i s t I t e m P r e f i x " | | W e = = = - 1 & & t t [ 0 ] = = = " e x i t " & & ( t t [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " | | t t [ 1 ] . t y p e = = = " l i s t O r d e r e d " ) ) { i f ( c r ) { l e t M r = j e ; f o r ( G t = v o i d 0 ; M r - - ; ) { c o n s t j n = u e [ M r ] ; i f ( j n [ 1 ] . t y p e = = = " l i n e E n d i n g " | | j n [ 1 ] . t y p e = = = " l i n e E n d i n g B l a n k " ) { i f ( j n [ 0 ] = = = " e x i t " ) c o n t i n u e ; G t & & ( u e [ G t ] [ 1 ] . t y p e = " l i n e E n d i n g B l a n k " , l n = ! 0 ) , j n [ 1 ] . t y p e = " l i n e E n d i n g " , G t = M r } e l s e i f ( ! ( j n [ 1 ] . t y p e = = = " l i n e P r e f i x " | | j n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x " | | j n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x W h i t e s p Line truncated
` }]}function I 3(e,t){const n=t.value?t.value+ `
` :"",a={},o=t.lang?t.lang.split(/ \s +/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function O 3(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D 3(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function L 3(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=h o(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let u,c=e.footnoteCounts.get(a);c===void 0?(c=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=s+1,c+=1,e.footnoteCounts.set(a,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const g={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,g),e.applyData(t,g)}function M 3(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function j 3(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function $ C (e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=a:o.push({type:"text",value:a}),o}function U 3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $ C (e,t);const o={src:h o(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function F 3(e,t){const n={src:h o(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function B 3(e,t){const n={type:"text",value:t.value.replace(/\r ? \n | \r /g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function P 3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $ C (e,t);const o={href:h o(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function z 3(e,t){const n={href:h o(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function $ 3(e,t,n){const a=e.all(t),o=n?G 3(n):GC (t),s={},u=[];if(typeof t.checked=="boolean"){const h=a[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<a.length;){const h=a[c];(o||c!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value: `
` ;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,a.push(u)}return a.join("")}function h3(e){const a={constructs:CR([p3,...(e||{}).extensions||[]]),content:o(Iz),defined:[],document:o(Dz),flow:o(Z $ ),lazy:{},string:o(e3),text:o(t3)};return a;function o(s){return u;function u(c){return f3(a,s,c)}}}function b3(e){for(;!LR(e););return e}const Pk=/[ \0 \t \n \r ]/g;function y3(){let e=1,t="",n=!0,a;return o;function o(s,u,c){const f=[];let g,h,m,S,v;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(Pk.lastIndex=m,g=Pk.exec(s),S=g&&g.index!==void 0?g.index:s.length,v=s.charCodeAt(S),!g){t=s.slice(m);break}if(v===10&&m===S&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),m<S&&(f.push(s.slice(m,S)),e+=S-m),v){case 0:{f.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,f.push(-2);e++<h;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:a=!0,e=1}m=S+1}return c&&(a&&f.push(-5),t&&f.push(t),f.push(null)),f}}const v3=/ \\ ([!-/:-@[- ` { - ~ ] ) | & ( # ( ? : \ d { 1 , 7 } | x [ \ da - f ] { 1 , 6 } ) | [ \ da - z ] { 1 , 31 } ) ; / g i ; f u n c t i o n E 3 ( e ) { r e t u r n e . r e p l a c e ( v 3 , S 3 ) } f u n c t i o n S 3 ( e , t , n ) { i f ( t ) r e t u r n t ; i f ( n . c h a r C o d e A t ( 0 ) = = = 3 5 ) { c o n s t o = n . c h a r C o d e A t ( 1 ) , s = o = = = 1 2 0 | | o = = = 8 8 ; r e t u r n R R ( n . s l i c e ( s ? 2 : 1 ) , s ? 1 6 : 1 0 ) } r e t u r n z s ( n ) | | e } c o n s t P R = { } . h a s O w n P r o p e r t y ; f u n c t i o n x 3 ( e , t , n ) { r e t u r n t & & t y p e o f t = = " o b j e c t " & & ( n = t , t = v o i d 0 ) , w 3 ( n ) ( b 3 ( h 3 ( n ) . d o c u m e n t ( ) . w r i t e ( y 3 ( ) ( e , t , ! 0 ) ) ) ) } f u n c t i o n w 3 ( e ) { c o n s t t = { t r a n s f o r m s : [ ] , c a n C o n t a i n E o l s : [ " e m p h a s i s " , " f r a g m e n t " , " h e a d i n g " , " p a r a g r a p h " , " s t r o n g " ] , e n t e r : { a u t o l i n k : s ( a i ) , a u t o l i n k P r o t o c o l : Y , a u t o l i n k E m a i l : Y , a t x H e a d i n g : s ( I e ) , b l o c k Q u o t e : s ( v e ) , c h a r a c t e r E s c a p e : Y , c h a r a c t e r R e f e r e n c e : Y , c o d e F e n c e d : s ( C e ) , c o d e F e n c e d F e n c e I n f o : u , c o d e F e n c e d F e n c e M e t a : u , c o d e I n d e n t e d : s ( C e , u ) , c o d e T e x t : s ( j e , u ) , c o d e T e x t D a t a : Y , d a t a : Y , c o d e F l o w V a l u e : Y , d e f i n i t i o n : s ( q e ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : u , d e f i n i t i o n L a b e l S t r i n g : u , d e f i n i t i o n T i t l e S t r i n g : u , e m p h a s i s : s ( Q e ) , h a r d B r e a k E s c a p e : s ( k t ) , h a r d B r e a k T r a i l i n g : s ( k t ) , h t m l F l o w : s ( c n , u ) , h t m l F l o w D a t a : Y , h t m l T e x t : s ( c n , u ) , h t m l T e x t D a t a : Y , i m a g e : s ( m l ) , l a b e l : u , l i n k : s ( a i ) , l i s t I t e m : s ( A o ) , l i s t I t e m V a l u e : S , l i s t O r d e r e d : s ( i i , m ) , l i s t U n o r d e r e d : s ( i i ) , p a r a g r a p h : s ( E d ) , r e f e r e n c e : C , r e f e r e n c e S t r i n g : u , r e s o u r c e D e s t i n a t i o n S t r i n g : u , r e s o u r c e T i t l e S t r i n g : u , s e t e x t H e a d i n g : s ( I e ) , s t r o n g : s ( S d ) , t h e m a t i c B r e a k : s ( x d ) } , e x i t : { a t x H e a d i n g : f ( ) , a t x H e a d i n g S e q u e n c e : U , a u t o l i n k : f ( ) , a u t o l i n k E m a i l : p e , a u t o l i n k P r o t o c o l : h e , b l o c k Q u o t e : f ( ) , c h a r a c t e r E s c a p e V a l u e : B , c h a r a c t e r R e f e r e n c e M a r k e r H e x a d e c i m a l : Q , c h a r a c t e r R e f e r e n c e M a r k e r N u m e r i c : Q , c h a r a c t e r R e f e r e n c e V a l u e : r e , c h a r a c t e r R e f e r e n c e : o e , c o d e F e n c e d : f ( k ) , c o d e F e n c e d F e n c e : w , c o d e F e n c e d F e n c e I n f o : v , c o d e F e n c e d F e n c e M e t a : x , c o d e F l o w V a l u e : B , c o d e I n d e n t e d : f ( A ) , c o d e T e x t : f ( e e ) , c o d e T e x t D a t a : B , d a t a : B , d e f i n i t i o n : f ( ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : L , d e f i n i t i o n L a b e l S t r i n g : _ , d e f i n i t i o n T i t l e S t r i n g : N , e m p h a s i s : f ( ) , h a r d B r e a k E s c a p e : f ( X ) , h a r d B r e a k T r a i l i n g : f ( X ) , h t m l F l o w : f ( n e ) , h t m l F l o w D a t a : B , h t m l T e x t : f ( i e ) , h t m l T e x t D a t a : B , i m a g e : f ( q ) , l a b e l : s e , l a b e l T e x t : t e , l i n e E n d i n g : V , l i n k : f ( F ) , l i s t I t e m : f ( ) , l i s t O r d e r e d : f ( ) , l i s t U n o r d e r e d : f ( ) , p a r a g r a p h : f ( ) , r e f e r e n c e S t r i n g : J , r e s o u r c e D e s t i n a t i o n S t r i n g : I , r e s o u r c e T i t l e S t r i n g : M , r e s o u r c e : j , s e t e x t H e a d i n g : f ( $ ) , s e t e x t H e a d i n g L i n e S e q u e n c e : P , s e t e x t H e a d i n g T e x t : D , s t r o n g : f ( ) , t h e m a t i c B r e a k : f ( ) } } ; z R ( t , ( e | | { } ) . m d a s t E x t e n s i o n s | | [ ] ) ; c o n s t n = { } ; r e t u r n a ; f u n c t i o n a ( u e ) { l e t m e = { t y p e : " r o o t " , c h i l d r e n : [ ] } ; c o n s t N e = { s t a c k : [ m e ] , t o k e n S t a c k : [ ] , c o n f i g : t , e n t e r : c , e x i t : g , b u f f e r : u , r e s u m e : h , d a t a : n } , U e = [ ] ; l e t X e = - 1 ; f o r ( ; + + X e < u e . l e n g t h ; ) i f ( u e [ X e ] [ 1 ] . t y p e = = = " l i s t O r d e r e d " | | u e [ X e ] [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " ) i f ( u e [ X e ] [ 0 ] = = = " e n t e r " ) U e . p u s h ( X e ) ; e l s e { c o n s t d n = U e . p o p ( ) ; X e = o ( u e , d n , X e ) } f o r ( X e = - 1 ; + + X e < u e . l e n g t h ; ) { c o n s t d n = t [ u e [ X e ] [ 0 ] ] ; P R . c a l l ( d n , u e [ X e ] [ 1 ] . t y p e ) & & d n [ u e [ X e ] [ 1 ] . t y p e ] . c a l l ( O b j e c t . a s s i g n ( { s l i c e S e r i a l i z e : u e [ X e ] [ 2 ] . s l i c e S e r i a l i z e } , N e ) , u e [ X e ] [ 1 ] ) } i f ( N e . t o k e n S t a c k . l e n g t h > 0 ) { c o n s t d n = N e . t o k e n S t a c k [ N e . t o k e n S t a c k . l e n g t h - 1 ] ; ( d n [ 1 ] | | z k ) . c a l l ( N e , v o i d 0 , d n [ 0 ] ) } f o r ( m e . p o s i t i o n = { s t a r t : l a ( u e . l e n g t h > 0 ? u e [ 0 ] [ 1 ] . s t a r t : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) , e n d : l a ( u e . l e n g t h > 0 ? u e [ u e . l e n g t h - 2 ] [ 1 ] . e n d : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) } , X e = - 1 ; + + X e < t . t r a n s f o r m s . l e n g t h ; ) m e = t . t r a n s f o r m s [ X e ] ( m e ) | | m e ; r e t u r n m e } f u n c t i o n o ( u e , m e , N e ) { l e t U e = m e - 1 , X e = - 1 , d n = ! 1 , d r , V t , w t , Q t ; f o r ( ; + + U e < = N e ; ) { c o n s t a t = u e [ U e ] ; s w i t c h ( a t [ 1 ] . t y p e ) { c a s e " l i s t U n o r d e r e d " : c a s e " l i s t O r d e r e d " : c a s e " b l o c k Q u o t e " : { a t [ 0 ] = = = " e n t e r " ? X e + + : X e - - , Q t = v o i d 0 ; b r e a k } c a s e " l i n e E n d i n g B l a n k " : { a t [ 0 ] = = = " e n t e r " & & ( d r & & ! Q t & & ! X e & & ! w t & & ( w t = U e ) , Q t = v o i d 0 ) ; b r e a k } c a s e " l i n e P r e f i x " : c a s e " l i s t I t e m V a l u e " : c a s e " l i s t I t e m M a r k e r " : c a s e " l i s t I t e m P r e f i x " : c a s e " l i s t I t e m P r e f i x W h i t e s p a c e " : b r e a k ; d e f a u l t : Q t = v o i d 0 } i f ( ! X e & & a t [ 0 ] = = = " e n t e r " & & a t [ 1 ] . t y p e = = = " l i s t I t e m P r e f i x " | | X e = = = - 1 & & a t [ 0 ] = = = " e x i t " & & ( a t [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " | | a t [ 1 ] . t y p e = = = " l i s t O r d e r e d " ) ) { i f ( d r ) { l e t M r = U e ; f o r ( V t = v o i d 0 ; M r - - ; ) { c o n s t B n = u e [ M r ] ; i f ( B n [ 1 ] . t y p e = = = " l i n e E n d i n g " | | B n [ 1 ] . t y p e = = = " l i n e E n d i n g B l a n k " ) { i f ( B n [ 0 ] = = = " e x i t " ) c o n t i n u e ; V t & & ( u e [ V t ] [ 1 ] . t y p e = " l i n e E n d i n g B l a n k " , d n = ! 0 ) , B n [ 1 ] . t y p e = " l i n e E n d i n g " , V t = M r } e l s e i f ( ! ( B n [ 1 ] . t y p e = = = " l i n e P r e f i x " | | B n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x " | | B n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x W h i t e s p a Line truncated
` }]}function N 3(e,t){const n=t.value?t.value+ `
` :"",a={},o=t.lang?t.lang.split(/ \s +/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function C 3(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function R 3(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function I 3(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=m o(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let u,c=e.footnoteCounts.get(a);c===void 0?(c=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=s+1,c+=1,e.footnoteCounts.set(a,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const g={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,g),e.applyData(t,g)}function O 3(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D 3(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function $ R (e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=a:o.push({type:"text",value:a}),o}function L 3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $ R (e,t);const o={src:m o(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function M 3(e,t){const n={src:m o(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function j 3(e,t){const n={type:"text",value:t.value.replace(/\r ? \n | \r /g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function U 3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $ R (e,t);const o={href:m o(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function F 3(e,t){const n={href:m o(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function B 3(e,t,n){const a=e.all(t),o=n?P 3(n):GR (t),s={},u=[];if(typeof t.checked=="boolean"){const h=a[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<a.length;){const h=a[c];(o||c!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
` }),h.type==="element"&&h.tagName==="p"&&!o?u.push(...h.children):u.push(h)}const f=a[a.length-1];f&&(o||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value: `
` });const g={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,g),e.applyData(t,g)}function G3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=GC(n[a])}return t}function GC(e){const t=e.spread;return t??e.children.length>1}function H3(e,t){const n={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<a.length;){const u=a[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function V3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function q3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Y3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function W3(e,t){const n=e.all(t),a=n.shift(),o=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),o.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Vm(t.children[1]),f=xC(t.children[t.children.length-1]);c&&f&&(u.position={start:c,end:f}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function K3(e,t,n){const a=n?n.children:void 0,s=(a?a.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let f=-1;const g=[];for(;++f<c;){const m=t.children[f],S={},v=u?u[f]:void 0;v&&(S.align=v);let x={type:"element",tagName:s,properties:S,children:[]};m&&(x.children=e.all(m),e.patch(m,x),x=e.applyData(m,x)),g.push(x)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(t,h),e.applyData(t,h)}function X3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Gk=9,Hk=32;function Z3(e){const t=String(e),n=/ \r ? \n | \r /g;let a=n.exec(t),o=0;const s=[];for(;a;)s.push(Vk(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=n.exec(t);return s.push(Vk(t.slice(o),o>0,!1)),s.join("")}function Vk(e,t,n){let a=0,o=e.length;if(t){let s=e.codePointAt(a);for(;s===Gk||s===Hk;)a++,s=e.codePointAt(a)}if(n){let s=e.codePointAt(o-1);for(;s===Gk||s===Hk;)o--,s=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function Q3(e,t){const n={type:"text",value:Z3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function J3(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const e4={blockquote:R3,break:C3,code:I3,delete:O3,emphasis:D3,footnoteReference:L3,heading:M3,html:j3,imageReference:U3,image:F3,inlineCode:B3,linkReference:P3,link:z3,listItem: $ 3,list:H3,paragraph:V3,root:q3,strong:Y3,table:W3,tableCell:X3,tableRow:K3,text:Q3,thematicBreak:J3,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}const HC=-1,Vc=0,Os=1,hc=2,Zm=3,Qm=4,Jm=5,eh=6,VC=7,qC=8,qk=typeof self=="object"?self:globalThis,t4=(e,t)=>{const n=(o,s)=>(e.set(s,o),o),a=o=>{if(e.has(o))return e.get(o);const[s,u]=t[o];switch(s){case Vc:case HC:return n(u,o);case Os:{const c=n([],o);for(const f of u)c.push(a(f));return c}case hc:{const c=n({},o);for(const[f,g]of u)c[a(f)]=a(g);return c}case Zm:return n(new Date(u),o);case Qm:{const{source:c,flags:f}=u;return n(new RegExp(c,f),o)}case Jm:{const c=n(new Map,o);for(const[f,g]of u)c.set(a(f),a(g));return c}case eh:{const c=n(new Set,o);for(const f of u)c.add(a(f));return c}case VC:{const{name:c,message:f}=u;return n(new qk[c](f),o)}case qC:return n(BigInt(u),o);case"BigInt":return n(Object(BigInt(u)),o);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new qk[s](u),o)};return a},Yk=e=>t4(new Map,e)(0),Wi="",{toString:n4}={},{keys:r4}=Object,Ts=e=>{const t=typeof e;if(t!=="object"||!e)return[Vc,t];const n=n4.call(e).slice(8,-1);switch(n){case"Array":return[Os,Wi];case"Object":return[hc,Wi];case"Date":return[Zm,Wi];case"RegExp":return[Qm,Wi];case"Map":return[Jm,Wi];case"Set":return[eh,Wi];case"DataView":return[Os,n]}return n.includes("Array")?[Os,n]:n.includes("Error")?[VC,n]:[hc,n]}, $ u=([e,t])=>e===Vc&&(t==="function"||t==="symbol"),a4=(e,t,n,a)=>{const o=(u,c)=>{const f=a.push(u)-1;return n.set(c,f),f},s=u=>{if(n.has(u))return n.get(u);let[c,f]=Ts(u);switch(c){case Vc:{let h=u;switch(f){case"bigint":c=qC,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);h=null;break;case"undefined":return o([HC],u)}return o([c,h],u)}case Os:{if(f){let S=u;return f==="DataView"?S=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(S=new Uint8Array(
Line truncated
` });const g={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,g),e.applyData(t,g)}function P3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=GR(n[a])}return t}function GR(e){const t=e.spread;return t??e.children.length>1}function z3(e,t){const n={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<a.length;){const u=a[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function $ 3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function G3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function H3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function V3(e,t){const n=e.all(t),a=n.shift(),o=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),o.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Vm(t.children[1]),f=xR(t.children[t.children.length-1]);c&&f&&(u.position={start:c,end:f}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function q3(e,t,n){const a=n?n.children:void 0,s=(a?a.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let f=-1;const g=[];for(;++f<c;){const m=t.children[f],S={},v=u?u[f]:void 0;v&&(S.align=v);let x={type:"element",tagName:s,properties:S,children:[]};m&&(x.children=e.all(m),e.patch(m,x),x=e.applyData(m,x)),g.push(x)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(t,h),e.applyData(t,h)}function Y3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const $ k=9,Gk=32;function W3(e){const t=String(e),n=/ \r ? \n | \r /g;let a=n.exec(t),o=0;const s=[];for(;a;)s.push(Hk(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=n.exec(t);return s.push(Hk(t.slice(o),o>0,!1)),s.join("")}function Hk(e,t,n){let a=0,o=e.length;if(t){let s=e.codePointAt(a);for(;s=== $ k||s===Gk;)a++,s=e.codePointAt(a)}if(n){let s=e.codePointAt(o-1);for(;s=== $ k||s===Gk;)o--,s=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function K3(e,t){const n={type:"text",value:W3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function X3(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Z3={blockquote:k3,break:_3,code:N3,delete:C3,emphasis:R3,footnoteReference:I3,heading:O3,html:D3,imageReference:L3,image:M3,inlineCode:j3,linkReference:U3,link:F3,listItem:B3,list:z3,paragraph: $ 3,root:G3,strong:H3,table:V3,tableCell:Y3,tableRow:q3,text:K3,thematicBreak:X3,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}const HR=-1,qc=0,Os=1,hc=2,Zm=3,Qm=4,Jm=5,eh=6,VR=7,qR=8,Vk=typeof self=="object"?self:globalThis,Q3=(e,t)=>{const n=(o,s)=>(e.set(s,o),o),a=o=>{if(e.has(o))return e.get(o);const[s,u]=t[o];switch(s){case qc:case HR:return n(u,o);case Os:{const c=n([],o);for(const f of u)c.push(a(f));return c}case hc:{const c=n({},o);for(const[f,g]of u)c[a(f)]=a(g);return c}case Zm:return n(new Date(u),o);case Qm:{const{source:c,flags:f}=u;return n(new RegExp(c,f),o)}case Jm:{const c=n(new Map,o);for(const[f,g]of u)c.set(a(f),a(g));return c}case eh:{const c=n(new Set,o);for(const f of u)c.add(a(f));return c}case VR:{const{name:c,message:f}=u;return n(new Vk[c](f),o)}case qR:return n(BigInt(u),o);case"BigInt":return n(Object(BigInt(u)),o);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new Vk[s](u),o)};return a},qk=e=>Q3(new Map,e)(0),Wi="",{toString:J3}={},{keys:e4}=Object,ws=e=>{const t=typeof e;if(t!=="object"||!e)return[qc,t];const n=J3.call(e).slice(8,-1);switch(n){case"Array":return[Os,Wi];case"Object":return[hc,Wi];case"Date":return[Zm,Wi];case"RegExp":return[Qm,Wi];case"Map":return[Jm,Wi];case"Set":return[eh,Wi];case"DataView":return[Os,n]}return n.includes("Array")?[Os,n]:n.includes("Error")?[VR,n]:[hc,n]}, $ u=([e,t])=>e===qc&&(t==="function"||t==="symbol"),t4=(e,t,n,a)=>{const o=(u,c)=>{const f=a.push(u)-1;return n.set(c,f),f},s=u=>{if(n.has(u))return n.get(u);let[c,f]=ws(u);switch(c){case qc:{let h=u;switch(f){case"bigint":c=qR,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);h=null;break;case"undefined":return o([HR],u)}return o([c,h],u)}case Os:{if(f){let S=u;return f==="DataView"?S=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(S=new Uint8Array(
Line truncated
` },{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value: `
` }]}}const q c=(function(e){if(e==null)return d 4;if(typeof e=="function")return Y c(e);if(typeof e=="object")return Array.isArray(e)?l 4(e):u 4(e);if(typeof e=="string")return c 4(e);throw new Error("Expected function, string, or object as test")});function l 4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=q c(e[n]);return Y c(a);function a(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function u 4(e){const t=e;return Y c(n);function n(a){const o=a;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function c 4(e){return Y c(t);function t(n){return n&&n.type===e}}function Y c(e){return t;function t(n,a,o){return!!(p 4(n)&&e.call(this,n,typeof a=="number"?a:void 0,o||void 0))}}function d 4(){return!0}function p 4(e){return e!==null&&typeof e=="object"&&"type"in e}const YC =[],f 4=!0,B g=!1,g 4="skip";function WC (e,t,n,a){let o;typeof t=="function"&&typeof n!="function"?(a=n,n=t):o=t;const s=q c(o),u=a?-1:1;c(e,void 0,[])();function c(f,g,h){const m=f&&typeof f=="object"?f:{};if(typeof m.type=="string"){const v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=YC ,x,w,k;if((!t||s(f,g,h[h.length-1]||void 0))&&(v=m 4(n(f,h)),v[0]===B g))return v;if("children"in f&&f.children){const A=f;if(A.children&&v[0]!==g 4)for(w=(a?A.children.length:-1)+u,k=h.concat(A);w>-1&&w<A.children.length;){const _=A.children[w];if(x=c(_,w,k)(),x[0]===B g)return x;w=typeof x[1]=="number"?x[1]:w+u}}return v}}}function m 4(e){return Array.isArray(e)?e:typeof e=="number"?[f 4,e]:e==null?YC :[e]}function th(e,t,n,a){let o,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,o=n):(s=t,u=n,o=a),WC (e,s,c,o);function c(f,g){const h=g[g.length-1],m=h?h.children.indexOf(f):void 0;return u(f,m,h)}}const P g={}.hasOwnProperty,h 4={};function b 4(e,t){const n=t||h 4,a=new Map,o=new Map,s=new Map,u={...e4 ,...n.handlers},c={all:g,applyData:v 4,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:f,options:n,patch:y 4,wrap:S 4};return th(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const m=h.type==="definition"?a:o,S=String(h.identifier).toUpperCase();m.has(S)||m.set(S,h)}}),c;function f(h,m){const S=h.type,v=c.handlers[S];if(P g.call(c.handlers,S)&&v)return v(c,h,m);if(c.options.passThrough&&c.options.passThrough.includes(S)){if("children"in h){const{children:w,...k}=h,A=bc(k);return A.children=c.all(h),A}return bc(h)}return(c.options.unknownHandler||E 4)(c,h,m)}function g(h){const m=[];if("children"in h){const S=h.children;let v=-1;for(;++v<S.length;){const x=c.one(S[v],h);if(x){if(v&&S[v-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=K k(x.value)),!Array.isArray(x)&&x.type==="element")){const w=x.children[0];w&&w.type==="text"&&(w.value=K k(w.value))}Array.isArray(x)?m.push(...x):m.push(x)}}}return m}}function y 4(e,t){e.position&&(t.position=o z(e))}function v 4(e,t){let n=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const u="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,bc(s)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function E 4(e,t){const n=t.data||{},a="value"in t&&!(P g.call(n,"hProperties")||P g.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function S 4(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value: `
` }]}}const Y c=(function(e){if(e==null)return l 4;if(typeof e=="function")return W c(e);if(typeof e=="object")return Array.isArray(e)?i 4(e):o 4(e);if(typeof e=="string")return s 4(e);throw new Error("Expected function, string, or object as test")});function i 4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Y c(e[n]);return W c(a);function a(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function o 4(e){const t=e;return W c(n);function n(a){const o=a;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function s 4(e){return W c(t);function t(n){return n&&n.type===e}}function W c(e){return t;function t(n,a,o){return!!(u 4(n)&&e.call(this,n,typeof a=="number"?a:void 0,o||void 0))}}function l 4(){return!0}function u 4(e){return e!==null&&typeof e=="object"&&"type"in e}const YR =[],c 4=!0,P g=!1,d 4="skip";function WR (e,t,n,a){let o;typeof t=="function"&&typeof n!="function"?(a=n,n=t):o=t;const s=Y c(o),u=a?-1:1;c(e,void 0,[])();function c(f,g,h){const m=f&&typeof f=="object"?f:{};if(typeof m.type=="string"){const v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=YR ,x,w,k;if((!t||s(f,g,h[h.length-1]||void 0))&&(v=p 4(n(f,h)),v[0]===P g))return v;if("children"in f&&f.children){const A=f;if(A.children&&v[0]!==d 4)for(w=(a?A.children.length:-1)+u,k=h.concat(A);w>-1&&w<A.children.length;){const _=A.children[w];if(x=c(_,w,k)(),x[0]===P g)return x;w=typeof x[1]=="number"?x[1]:w+u}}return v}}}function p 4(e){return Array.isArray(e)?e:typeof e=="number"?[c 4,e]:e==null?YR :[e]}function th(e,t,n,a){let o,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,o=n):(s=t,u=n,o=a),WR (e,s,c,o);function c(f,g){const h=g[g.length-1],m=h?h.children.indexOf(f):void 0;return u(f,m,h)}}const z g={}.hasOwnProperty,f 4={};function g 4(e,t){const n=t||f 4,a=new Map,o=new Map,s=new Map,u={...Z3 ,...n.handlers},c={all:g,applyData:h 4,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:f,options:n,patch:m 4,wrap:y 4};return th(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const m=h.type==="definition"?a:o,S=String(h.identifier).toUpperCase();m.has(S)||m.set(S,h)}}),c;function f(h,m){const S=h.type,v=c.handlers[S];if(z g.call(c.handlers,S)&&v)return v(c,h,m);if(c.options.passThrough&&c.options.passThrough.includes(S)){if("children"in h){const{children:w,...k}=h,A=bc(k);return A.children=c.all(h),A}return bc(h)}return(c.options.unknownHandler||b 4)(c,h,m)}function g(h){const m=[];if("children"in h){const S=h.children;let v=-1;for(;++v<S.length;){const x=c.one(S[v],h);if(x){if(v&&S[v-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=W k(x.value)),!Array.isArray(x)&&x.type==="element")){const w=x.children[0];w&&w.type==="text"&&(w.value=W k(w.value))}Array.isArray(x)?m.push(...x):m.push(x)}}}return m}}function m 4(e,t){e.position&&(t.position=r z(e))}function h 4(e,t){let n=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const u="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,bc(s)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function b 4(e,t){const n=t.data||{},a="value"in t&&!(z g.call(n,"hProperties")||z g.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function y 4(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value: `
` });++a<e.length;)a&&n.push({type:"text",value: `
` }),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value: `
` }),n}function K k(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function X k(e,t){const n=b 4(e,t),a=n.one(e,void 0),o=s 4(n),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value: `
` },o),s}function x4(e,t){return e&&"run"in e?async function(n,a){const o=Xk(n,{file:a,...t});await e.run(o,a)}:function(n,a){return Xk(n,{file:a,...e||t})}}function Zk(e){if(e)throw e}var ig,Qk;function w4(){if(Qk)return ig;Qk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(g){return typeof Array.isArray=="function"?Array.isArray(g):t.call(g)==="[object Array]"},s=function(g){if(!g||t.call(g)!=="[object Object]")return!1;var h=e.call(g,"constructor"),m=g.constructor&&g.constructor.prototype&&e.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!h&&!m)return!1;var S;for(S in g);return typeof S>"u"||e.call(g,S)},u=function(g,h){n&&h.name==="__proto__"?n(g,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):g[h.name]=h.newValue},c=function(g,h){if(h==="__proto__")if(e.call(g,h)){if(a)return a(g,h).value}else return;return g[h]};return ig=function f(){var g,h,m,S,v,x,w=arguments[0],k=1,A=arguments.length,_=!1;for(typeof w=="boolean"&&(_=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(g=arguments[k],g!=null)for(h in g)m=c(w,h),S=c(g,h),w!==S&&(_&&S&&(s(S)||(v=o(S)))?(v?(v=!1,x=m&&o(m)?m:[]):x=m&&s(m)?m:{},u(w,{name:h,newValue:f(_,x,S)})):typeof S<"u"&&u(w,{name:h,newValue:S}));return w},ig}var T4=w4();const og=wc(T4);function zg(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function A4(){const e=[],t={run:n,use:a};return t;function n(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...o);function c(f,...g){const h=e[++s];let m=-1;if(f){u(f);return}for(;++m<o.length;)(g[m]===null||g[m]===void 0)&&(g[m]=o[m]);o=g,h?k4(h,c)(...g):u(null,...g)}}function a(o){if(typeof o!="function")throw new TypeError("Expected ` middelware ` to be a function, not "+o);return e.push(o),t}}function k4(e,t){let n;return a;function a(...u){const c=e.length>u.length;let f;c&&u.push(o);try{f=e.apply(this,u)}catch(g){const h=g;if(c&&n)throw h;return o(h)}c||(f&&f.then&&typeof f.then=="function"?f.then(s,o):f instanceof Error?o(f):s(f))}function o(u,...c){n||(n=!0,t(u,...c))}function s(u){o(null,u)}}const nr={basename:_4,dirname:N4,extname:R4,join:C4,sep:"/"};function _4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');al(e);let n=0,a=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let u=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else u<0&&(s=!0,u=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(a=o):(c=-1,a=u));return n===a?a=u:a<0&&(a=e.length),e.slice(n,a)}function N4(e){if(al(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function R4(e){al(e);let t=e.length,n=-1,a=0,o=-1,s=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){a=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||n<0||s===0||s===1&&o===n-1&&o===a+1?"":e.slice(o,n)}function C4(...e){let t=-1,n;for(;++t<e.length;)al(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":I4(n)}function I4(e){al(e);const t=e.codePointAt(0)===47;let n=O4(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function O4(e,t){let n="",a=0,o=-1,s=0,u=-1,c,f;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",a=0):(n=n.slice(0,f),a=n.length-1-n.lastIndexOf("/")),o=u,s=0;continue}}else if(n.length>0){n="",a=0,o=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),a=u-o-1;o=u,s=0}else c===46&&s>-1?s++:s=-1}return n}function al(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const D4={cwd:L4};function L4(){return"/"}function $ g(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function M4(e){if(typeof e=="string")e=new URL(e);else if(! $ g(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received ` ' + e + "`" ) ; throw t . code = "ERR_INVALID_ARG_TYPE" , t } if ( e . protocol !== "file:" ) { const t = new TypeError ( "The URL must be of scheme file" ) ; throw t . code = "ERR_INVALID_URL_SCHEME" , t } return j4 ( e ) } function j4 ( e ) { if ( e . hostname !== "" ) { cons Line truncated
` :" ")+s.indentLines(s.containerFlow(a,c.current()),t?JC:A G))),g(),f}}function A G(e,t,n){return t===0?e:JC (e,t,n)}function JC (e,t,n){return(n?"":" ")+e}const k G=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];e0.peek=I G;function _ G(){return{canContainEols:["delete"],enter:{strikethrough:R G},exit:{strikethrough:C G}}}function N G(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:k G}],handlers:{delete:e0}}}function R G(e){this.enter({type:"delete",children:[]},e)}function C G(e){this.exit(e)}function e0(e,t,n,a){const o=n.createTracker(a),s=n.enter("strikethrough");let u=o.move("~~");return u+=n.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),s(),u}function I G(){return"~"}function O G(e){return e.length}function D G(e,t){const n=t||{},a=(n.align||[]).concat(),o=n.stringLength||O G,s=[],u=[],c=[],f=[];let g=0,h=-1;for(;++h<e.length;){const w=[],k=[];let A=-1;for(e[h].length>g&&(g=e[h].length);++A<e[h].length;){const _=L G(e[h][A]);if(n.alignDelimiters!==!1){const N=o(_);k[A]=N,(f[A]===void 0||N>f[A])&&(f[A]=N)}w.push(_)}u[h]=w,c[h]=k}let m=-1;if(typeof a=="object"&&"length"in a)for(;++m<g;)s[m]=i _(a[m]);else{const w=i _(a);for(;++m<g;)s[m]=w}m=-1;const S=[],v=[];for(;++m<g;){const w=s[m];let k="",A="";w===99?(k=":",A=":"):w===108?k=":":w===114&&(A=":");let _=n.alignDelimiters===!1?1:Math.max(1,f[m]-k.length-A.length);const N=k+"-".repeat(_)+A;n.alignDelimiters!==!1&&(_=k.length+_+A.length,_>f[m]&&(f[m]=_),v[m]=_),S[m]=N}u.splice(1,0,S),c.splice(1,0,v),h=-1;const x=[];for(;++h<u.length;){const w=u[h],k=c[h];m=-1;const A=[];for(;++m<g;){const _=w[m]||"";let N="",L="";if(n.alignDelimiters!==!1){const U=f[m]-(k[m]||0),D=s[m];D===114?N=" ".repeat(U):D===99?U%2?(N=" ".repeat(U/2+.5),L=" ".repeat(U/2-.5)):(N=" ".repeat(U/2),L=N):L=" ".repeat(U)}n.delimiterStart!==!1&&!m&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||m)&&A.push(" "),n.alignDelimiters!==!1&&A.push(N),A.push(_),n.alignDelimiters!==!1&&A.push(L),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||m!==g-1)&&A.push("|")}x.push(n.delimiterEnd===!1?A.join("").replace(/ + $ /,""):A.join(""))}return x.join( `
` )}function L G(e){return e==null?"":String(e)}function i _(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function M G(e,t,n,a){const o=n.enter("blockquote"),s=n.createTracker(a);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),j G);return o(),u}function j G(e,t,n){return">"+(n?"":" ")+e}function U G(e,t){return o _(e,t.inConstruct,!0)&&!o _(e,t.notInConstruct,!1)}function o _(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function s _(e,t,n,a){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character=== `
` &&U G(n.stack,n.unsafe[o]))return/[ \t ]/.test(a.before)?"":" ";return ` \ \
` }function F G(e,t){const n=String(e);let a=n.indexOf(t),o=a,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>u&&(u=s):s=1,o=a+t.length,a=n.indexOf(t,o);return u}function B G(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r \n ]/.test(e.value)&&!/^[ \t ]*(?:[ \r \n ]| $ )|(?:^|[ \r \n ])[ \t ]* $ /.test(e.value))}function P G(e){const t=e.options.fence||" ` ";if(t!==" ` "&&t!=="~")throw new Error("Cannot serialize code with ` "+t+" ` for ` options . fence ` , expected ` ` ` ` ` or ` ~ ` ");return t}function z G(e,t,n,a){const o=P G(n),s=e.value||" ",u=o===" ` "?"GraveAccent":"Tilde";if(B G(e,n)){const m=n.enter("codeIndented"),S=n.indentLines(s, $ G);return m(),S}const c=n.createTracker(a),f=o.repeat(Math.max(F G(s,o)+1,3)),g=n.enter("codeFenced");let h=c.move(f);if(e.lang){const m=n.enter( ` codeFencedLang$ { u } ` );h+=c.move(n.safe(e.lang,{before:h,after:" ",encode:[" ` "],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${u}`);h+=c.move(" " ) , h += c . move ( n . safe ( e . meta , { before : h , after : `
` }),n}function W k(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function K k(e,t){const n=g 4(e,t),a=n.one(e,void 0),o=a 4(n),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value: `
` },o),s}function v4(e,t){return e&&"run"in e?async function(n,a){const o=Kk(n,{file:a,...t});await e.run(o,a)}:function(n,a){return Kk(n,{file:a,...e||t})}}function Xk(e){if(e)throw e}var og,Zk;function E4(){if(Zk)return og;Zk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(g){return typeof Array.isArray=="function"?Array.isArray(g):t.call(g)==="[object Array]"},s=function(g){if(!g||t.call(g)!=="[object Object]")return!1;var h=e.call(g,"constructor"),m=g.constructor&&g.constructor.prototype&&e.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!h&&!m)return!1;var S;for(S in g);return typeof S>"u"||e.call(g,S)},u=function(g,h){n&&h.name==="__proto__"?n(g,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):g[h.name]=h.newValue},c=function(g,h){if(h==="__proto__")if(e.call(g,h)){if(a)return a(g,h).value}else return;return g[h]};return og=function f(){var g,h,m,S,v,x,w=arguments[0],k=1,A=arguments.length,_=!1;for(typeof w=="boolean"&&(_=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(g=arguments[k],g!=null)for(h in g)m=c(w,h),S=c(g,h),w!==S&&(_&&S&&(s(S)||(v=o(S)))?(v?(v=!1,x=m&&o(m)?m:[]):x=m&&s(m)?m:{},u(w,{name:h,newValue:f(_,x,S)})):typeof S<"u"&&u(w,{name:h,newValue:S}));return w},og}var S4=E4();const sg=wc(S4);function $ g(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function x4(){const e=[],t={run:n,use:a};return t;function n(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...o);function c(f,...g){const h=e[++s];let m=-1;if(f){u(f);return}for(;++m<o.length;)(g[m]===null||g[m]===void 0)&&(g[m]=o[m]);o=g,h?w4(h,c)(...g):u(null,...g)}}function a(o){if(typeof o!="function")throw new TypeError("Expected ` middelware ` to be a function, not "+o);return e.push(o),t}}function w4(e,t){let n;return a;function a(...u){const c=e.length>u.length;let f;c&&u.push(o);try{f=e.apply(this,u)}catch(g){const h=g;if(c&&n)throw h;return o(h)}c||(f&&f.then&&typeof f.then=="function"?f.then(s,o):f instanceof Error?o(f):s(f))}function o(u,...c){n||(n=!0,t(u,...c))}function s(u){o(null,u)}}const rr={basename:T4,dirname:A4,extname:k4,join:_4,sep:"/"};function T4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');al(e);let n=0,a=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let u=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else u<0&&(s=!0,u=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(a=o):(c=-1,a=u));return n===a?a=u:a<0&&(a=e.length),e.slice(n,a)}function A4(e){if(al(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function k4(e){al(e);let t=e.length,n=-1,a=0,o=-1,s=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){a=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||n<0||s===0||s===1&&o===n-1&&o===a+1?"":e.slice(o,n)}function _4(...e){let t=-1,n;for(;++t<e.length;)al(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":N4(n)}function N4(e){al(e);const t=e.codePointAt(0)===47;let n=C4(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function C4(e,t){let n="",a=0,o=-1,s=0,u=-1,c,f;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",a=0):(n=n.slice(0,f),a=n.length-1-n.lastIndexOf("/")),o=u,s=0;continue}}else if(n.length>0){n="",a=0,o=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),a=u-o-1;o=u,s=0}else c===46&&s>-1?s++:s=-1}return n}function al(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const R4={cwd:I4};function I4(){return"/"}function Gg(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function O4(e){if(typeof e=="string")e=new URL(e);else if(!Gg(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received ` ' + e + "`" ) ; throw t . code = "ERR_INVALID_ARG_TYPE" , t } if ( e . protocol !== "file:" ) { const t = new TypeError ( "The URL must be of scheme file" ) ; throw t . code = "ERR_INVALID_URL_SCHEME" , t } return D4 ( e ) } function D4 ( e ) { if ( e . hostname !== "" ) { cons Line truncated
` :" ")+s.indentLines(s.containerFlow(a,c.current()),t?JR:x G))),g(),f}}function x G(e,t,n){return t===0?e:JR (e,t,n)}function JR (e,t,n){return(n?"":" ")+e}const w G=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];e0.peek=N G;function T G(){return{canContainEols:["delete"],enter:{strikethrough:k G},exit:{strikethrough:_ G}}}function A G(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:w G}],handlers:{delete:e0}}}function k G(e){this.enter({type:"delete",children:[]},e)}function _ G(e){this.exit(e)}function e0(e,t,n,a){const o=n.createTracker(a),s=n.enter("strikethrough");let u=o.move("~~");return u+=n.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),s(),u}function N G(){return"~"}function C G(e){return e.length}function R G(e,t){const n=t||{},a=(n.align||[]).concat(),o=n.stringLength||C G,s=[],u=[],c=[],f=[];let g=0,h=-1;for(;++h<e.length;){const w=[],k=[];let A=-1;for(e[h].length>g&&(g=e[h].length);++A<e[h].length;){const _=I G(e[h][A]);if(n.alignDelimiters!==!1){const N=o(_);k[A]=N,(f[A]===void 0||N>f[A])&&(f[A]=N)}w.push(_)}u[h]=w,c[h]=k}let m=-1;if(typeof a=="object"&&"length"in a)for(;++m<g;)s[m]=a _(a[m]);else{const w=a _(a);for(;++m<g;)s[m]=w}m=-1;const S=[],v=[];for(;++m<g;){const w=s[m];let k="",A="";w===99?(k=":",A=":"):w===108?k=":":w===114&&(A=":");let _=n.alignDelimiters===!1?1:Math.max(1,f[m]-k.length-A.length);const N=k+"-".repeat(_)+A;n.alignDelimiters!==!1&&(_=k.length+_+A.length,_>f[m]&&(f[m]=_),v[m]=_),S[m]=N}u.splice(1,0,S),c.splice(1,0,v),h=-1;const x=[];for(;++h<u.length;){const w=u[h],k=c[h];m=-1;const A=[];for(;++m<g;){const _=w[m]||"";let N="",L="";if(n.alignDelimiters!==!1){const U=f[m]-(k[m]||0),D=s[m];D===114?N=" ".repeat(U):D===99?U%2?(N=" ".repeat(U/2+.5),L=" ".repeat(U/2-.5)):(N=" ".repeat(U/2),L=N):L=" ".repeat(U)}n.delimiterStart!==!1&&!m&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||m)&&A.push(" "),n.alignDelimiters!==!1&&A.push(N),A.push(_),n.alignDelimiters!==!1&&A.push(L),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||m!==g-1)&&A.push("|")}x.push(n.delimiterEnd===!1?A.join("").replace(/ + $ /,""):A.join(""))}return x.join( `
` )}function I G(e){return e==null?"":String(e)}function a _(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function O G(e,t,n,a){const o=n.enter("blockquote"),s=n.createTracker(a);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),D G);return o(),u}function D G(e,t,n){return">"+(n?"":" ")+e}function L G(e,t){return i _(e,t.inConstruct,!0)&&!i _(e,t.notInConstruct,!1)}function i _(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function o _(e,t,n,a){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character=== `
` &&L G(n.stack,n.unsafe[o]))return/[ \t ]/.test(a.before)?"":" ";return ` \ \
` }function M G(e,t){const n=String(e);let a=n.indexOf(t),o=a,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>u&&(u=s):s=1,o=a+t.length,a=n.indexOf(t,o);return u}function j G(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r \n ]/.test(e.value)&&!/^[ \t ]*(?:[ \r \n ]| $ )|(?:^|[ \r \n ])[ \t ]* $ /.test(e.value))}function U G(e){const t=e.options.fence||" ` ";if(t!==" ` "&&t!=="~")throw new Error("Cannot serialize code with ` "+t+" ` for ` options . fence ` , expected ` ` ` ` ` or ` ~ ` ");return t}function F G(e,t,n,a){const o=U G(n),s=e.value||" ",u=o===" ` "?"GraveAccent":"Tilde";if(j G(e,n)){const m=n.enter("codeIndented"),S=n.indentLines(s,B G);return m(),S}const c=n.createTracker(a),f=o.repeat(Math.max(M G(s,o)+1,3)),g=n.enter("codeFenced");let h=c.move(f);if(e.lang){const m=n.enter( ` codeFencedLang$ { u } ` );h+=c.move(n.safe(e.lang,{before:h,after:" ",encode:[" ` "],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${u}`);h+=c.move(" " ) , h += c . move ( n . safe ( e . meta , { before : h , after : `
` ,encode:[" ` " ] , ... c . current ( ) } ) ) , m ( ) } return h += c . move ( `
` ),s&&(h+=c.move(s+ `
` )),h+=c.move(f),g(),h}function $ G(e,t,n){return(n?"":" ")+e}function rh(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with ` "+t+" ` for ` options . quote ` , expected ` \ "`, or `'`" ) ; return t } function GG ( e , t , n , a ) { const o = rh ( n ) , s = o === '"' ? "Quote" : "Apostrophe" , u = n . enter ( "definition" ) ; let c = n . enter ( "label" ) ; const f = n . createTracker ( a ) ; let g = f . move ( "[" ) ; return g += f . move ( n . safe ( n . associationId ( e ) , { before : g , after : "]" , ... f . current ( ) } ) ) , g += f . move ( "]: " ) , c ( ) , ! e . url || /[\0- \u007F]/ . test ( e . url ) ? ( c = n . enter ( "destinationLiteral" ) , g += f . move ( "<" ) , g += f . move ( n . safe ( e . url , { before : g , after : ">" , ... f . current ( ) } ) ) , g += f . move ( ">" ) ) : ( c = n . enter ( "destinationRaw" ) , g += f . move ( n . safe ( e . url , { before : g , after : e . title ? " " : `
` ,...f.current()}))),c(),e.title&&(c=n.enter( ` title$ { s } ` ),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),u(),g}function H G(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with ` "+t+" ` for ` options . emphasis ` , expected ` * ` , or ` _ ` ");return t}function $ s(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yc(e,t,n){const a=o o(e),o=o o(t);return a===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}t0.peek=V G;function t0(e,t,n,a){const o=H G(n),s=n.enter("emphasis"),u=n.createTracker(a),c=u.move(o);let f=u.move(n.containerPhrasing(e,{after:o,before:c,...u.current()}));const g=f.charCodeAt(0),h=yc(a.before.charCodeAt(a.before.length-1),g,o);h.inside&&(f= $ s(g)+f.slice(1));const m=f.charCodeAt(f.length-1),S=yc(a.after.charCodeAt(0),m,o);S.inside&&(f=f.slice(0,-1)+ $ s(m));const v=u.move(o);return s(),n.attentionEncodeSurroundingInfo={after:S.outside,before:h.outside},c+f+v}function V G(e,t,n){return n.options.emphasis||"*"}function q G(e,t){let n=!1;return th(e,function(a){if("value"in a&&/ \r ? \n | \r /.test(a.value)||a.type==="break")return n=!0,B g}),!!((!e.depth||e.depth<3)&&Km(e)&&(t.options.setext||n))}function Y G(e,t,n,a){const o=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(a);if(q G(e,n)){const h=n.enter("headingSetext"),m=n.enter("phrasing"),S=n.containerPhrasing(e,{...s.current(),before: `
` )),h+=c.move(f),g(),h}function B G(e,t,n){return(n?"":" ")+e}function rh(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with ` "+t+" ` for ` options . quote ` , expected ` \ "`, or `'`" ) ; return t } function PG ( e , t , n , a ) { const o = rh ( n ) , s = o === '"' ? "Quote" : "Apostrophe" , u = n . enter ( "definition" ) ; let c = n . enter ( "label" ) ; const f = n . createTracker ( a ) ; let g = f . move ( "[" ) ; return g += f . move ( n . safe ( n . associationId ( e ) , { before : g , after : "]" , ... f . current ( ) } ) ) , g += f . move ( "]: " ) , c ( ) , ! e . url || /[\0- \u007F]/ . test ( e . url ) ? ( c = n . enter ( "destinationLiteral" ) , g += f . move ( "<" ) , g += f . move ( n . safe ( e . url , { before : g , after : ">" , ... f . current ( ) } ) ) , g += f . move ( ">" ) ) : ( c = n . enter ( "destinationRaw" ) , g += f . move ( n . safe ( e . url , { before : g , after : e . title ? " " : `
` ,...f.current()}))),c(),e.title&&(c=n.enter( ` title$ { s } ` ),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),u(),g}function z G(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with ` "+t+" ` for ` options . emphasis ` , expected ` * ` , or ` _ ` ");return t}function $ s(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yc(e,t,n){const a=i o(e),o=i o(t);return a===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}t0.peek= $ G;function t0(e,t,n,a){const o=z G(n),s=n.enter("emphasis"),u=n.createTracker(a),c=u.move(o);let f=u.move(n.containerPhrasing(e,{after:o,before:c,...u.current()}));const g=f.charCodeAt(0),h=yc(a.before.charCodeAt(a.before.length-1),g,o);h.inside&&(f= $ s(g)+f.slice(1));const m=f.charCodeAt(f.length-1),S=yc(a.after.charCodeAt(0),m,o);S.inside&&(f=f.slice(0,-1)+ $ s(m));const v=u.move(o);return s(),n.attentionEncodeSurroundingInfo={after:S.outside,before:h.outside},c+f+v}function $ G(e,t,n){return n.options.emphasis||"*"}function G G(e,t){let n=!1;return th(e,function(a){if("value"in a&&/ \r ? \n | \r /.test(a.value)||a.type==="break")return n=!0,P g}),!!((!e.depth||e.depth<3)&&Km(e)&&(t.options.setext||n))}function H G(e,t,n,a){const o=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(a);if(G G(e,n)){const h=n.enter("headingSetext"),m=n.enter("phrasing"),S=n.containerPhrasing(e,{...s.current(),before: `
` ,after: `
` });return m(),h(),S+ `
` +(o===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf(" \r "),S.lastIndexOf( `
` ))+1))}const u="#".repeat(o),c=n.enter("headingAtx"),f=n.enter("phrasing");s.move(u+" ");let g=n.containerPhrasing(e,{before:"# ",after: `
` ,...s.current()});return/^[ \t ]/.test(g)&&(g= $ s(g.charCodeAt(0))+g.slice(1)),g=g?u+" "+g:u,n.options.closeAtx&&(g+=" "+u),f(),c(),g}n0.peek=WG;function n0(e){return e.value||""}function WG(){return"<"}r0.peek=KG;function r0(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const f=n.createTracker(a);let g=f.move("![");return g+=f.move(n.safe(e.alt,{before:g,after:"]",...f.current()})),g+=f.move("]("),c(),!e.url&&e.title||/[ \0 - \u 007F]/.test(e.url)?(c=n.enter("destinationLiteral"),g+=f.move("<"),g+=f.move(n.safe(e.url,{before:g,after:">",...f.current()})),g+=f.move(">")):(c=n.enter("destinationRaw"),g+=f.move(n.safe(e.url,{before:g,after:e.title?" ":")",...f.current()}))),c(),e.title&&(c=n.enter( ` title$ { s } ` ),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),g+=f.move(")"),u(),g}function KG(){return"!"}a0.peek=XG;function a0(e,t,n,a){const o=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(a);let f=c.move("![");const g=n.safe(e.alt,{before:f,after:"]",...c.current()});f+=c.move(g+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=h,s(),o==="full"||!g||g!==m?f+=c.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function XG(){return"!"}i0.peek=ZG;function i0(e,t,n){let a=e.value||"",o=" ` ",s=-1;for(;new RegExp(" ( ^ | [ ^ ` ])"+o+"([^ ` ] | $ ) ").test(a);)o+=" ` ";for(/[^ \r \n ]/.test(a)&&(/^[ \r \n ]/.test(a)&&/[ \r \n ] $ /.test(a)||/^ ` | ` $ /.test(a))&&(a=" "+a+" ");++s<n.unsafe.length;){const u=n.unsafe[s],c=n.compilePattern(u);let f;if(u.atBreak)for(;f=c.exec(a);){let g=f.index;a.charCodeAt(g)===10&&a.charCodeAt(g-1)===13&&g--,a=a.slice(0,g)+" "+a.slice(f.index+1)}}return o+a+o}function ZG(){return" ` "}function o0(e,t){const n=Km(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===" text "&&(n===e.url||" mailto : "+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}s0.peek=QG;function s0(e,t,n,a){const o=rh(n),s=o==='" ' ? "Quote" : "Apostrophe" , u = n . createTracker ( a ) ; let c , f ; if ( o0 ( e , n ) ) { const h = n . stack ; n . stack = [ ] , c = n . enter ( "autolink" ) ; let m = u . move ( "<" ) ; return m += u . move ( n . containerPhrasing ( e , { before : m , after : ">" , ... u . current ( ) } ) ) , m += u . move ( ">" ) , c ( ) , n . stack = h , m } c = n . enter ( "link" ) , f = n . enter ( "label" ) ; let g = u . move ( "[" ) ; return g += u . move ( n . containerPhrasing ( e , { before : g , after : "](" , ... u . current ( ) } ) ) , g += u . move ( "](" ) , f ( ) , ! e . url && e . title || /[\0- \u007F]/ . test ( e . url ) ? ( f = n . enter ( "destinationLiteral" ) , g += u . move ( "<" ) , g += u . move ( n . safe ( e . url , { before : g , after : ">" , ... u . current ( ) } ) ) , g += u . move ( ">" ) ) : ( f = n . enter ( "destinationRaw" ) , g += u . move ( n . safe ( e . url , { before : g , after : e . title ? " " : ")" , ... u . current ( ) } ) ) ) , f ( ) , e . title && ( f = n . enter ( ` title ${ s } ` ) , g += u . move ( " " + o ) , g += u . move ( n . safe ( e . title , { before : g , after : o , ... u . current ( ) } ) ) , g += u . move ( o ) , f ( ) ) , g += u . move ( ")" ) , c ( ) , g } function QG ( e , t , n ) { return o0 ( e , n ) ? "<" : "[" } l0 . peek = JG ; function l0 ( e , t , n , a ) { const o = e . referenceType , s = n . enter ( "linkReference" ) ; let u = n . enter ( "label" ) ; const c = n . createTracker ( a ) ; let f = c . move ( "[" ) ; const g = n . containerPhrasing ( e , { before : f , after : "]" , ... c . current ( ) } ) ; f += c . move ( g + "][" ) , u ( ) ; const h = n . stack ; n . stack = [ ] , u = n . enter ( "reference" ) ; const m = n . safe ( n . associationId ( e ) , { before : f , after : "]" , ... c . current ( ) } ) ; return u ( ) , n . stack = h , s ( ) , o === "full" || ! g || g !== m ? f += c . move ( m + "]" ) : o === "shortcut" ? f = f . slice ( 0 , - 1 ) : f += c . move ( "]" ) , f } function JG ( ) { return "[" } function ah ( e ) { const t = e . options . bullet || "*" ; if ( t !== "*" && t !== "+" && t !== "-" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`" ) ; return t } function eH ( e ) { const t = ah ( e ) , n = e . options . bulletOther ; if ( ! n ) return t === "*" ? "-" : "*" ; if ( n !== "*" && n !== "+" && n !== "-" ) throw new Error ( "Cannot serialize items with `" + n + "` for `options.bulletOther`, expected `*`, `+`, or `-`" ) ; if ( n === t ) throw new Error ( "Expected `bullet` (`" + t + "`) and `bulletOther` (`" + n + "`) to be different" ) ; return n } function tH ( e ) { const t = e . options . bulletOrdered || "." ; if ( t !== "." && t !== ")" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`" ) ; return t } function u0 ( e ) { const t = e . options . rule || "*" ; if ( t !== "*" && t !== "-" && t !== "_" ) throw new Error ( "Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`" ) ; return t } function nH ( e , t , n , a ) { const o = n . enter ( "list" ) , s = n . bulletCurrent ; let u = e . ordered ? tH ( n ) : ah ( n ) ; const c = e . ordered ? u === "." ? ")" : "." : eH ( n ) ; let f = t && n . bulletLastUsed ? u === n . bulletLastUsed : ! 1 ; if ( ! e . ordered ) { const h = e . children ? e . children [ 0 ] : void 0 ; if ( ( u === "*" || u === "-" ) && h && ( ! h . children || ! h . children [ 0 ] ) && n . stack [ n . stack . length - 1 ] === "list" && n . stack [ n . stack . length - 2 ] === "listItem" && n . stack [ n . stack . length - 3 ] === "list" && n . stack [ n . stack . length - 4 ] === "listItem" && n . indexStack [ n . indexStack . length - 1 ] === 0 && n . indexStack [ n . indexStack . length - 2 ] === 0 && n . indexStack [ n . indexStack . length - 3 ] === 0 && ( f = ! 0 ) , u0 ( n ) === u && h ) { let m = - 1 ; for ( ; ++ m < e . chil Line truncated
` ,...s.current()});return/^[ \t ]/.test(g)&&(g= $ s(g.charCodeAt(0))+g.slice(1)),g=g?u+" "+g:u,n.options.closeAtx&&(g+=" "+u),f(),c(),g}n0.peek=VG;function n0(e){return e.value||""}function VG(){return"<"}r0.peek=qG;function r0(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const f=n.createTracker(a);let g=f.move("![");return g+=f.move(n.safe(e.alt,{before:g,after:"]",...f.current()})),g+=f.move("]("),c(),!e.url&&e.title||/[ \0 - \u 007F]/.test(e.url)?(c=n.enter("destinationLiteral"),g+=f.move("<"),g+=f.move(n.safe(e.url,{before:g,after:">",...f.current()})),g+=f.move(">")):(c=n.enter("destinationRaw"),g+=f.move(n.safe(e.url,{before:g,after:e.title?" ":")",...f.current()}))),c(),e.title&&(c=n.enter( ` title$ { s } ` ),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),g+=f.move(")"),u(),g}function qG(){return"!"}a0.peek=YG;function a0(e,t,n,a){const o=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(a);let f=c.move("![");const g=n.safe(e.alt,{before:f,after:"]",...c.current()});f+=c.move(g+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=h,s(),o==="full"||!g||g!==m?f+=c.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function YG(){return"!"}i0.peek=WG;function i0(e,t,n){let a=e.value||"",o=" ` ",s=-1;for(;new RegExp(" ( ^ | [ ^ ` ])"+o+"([^ ` ] | $ ) ").test(a);)o+=" ` ";for(/[^ \r \n ]/.test(a)&&(/^[ \r \n ]/.test(a)&&/[ \r \n ] $ /.test(a)||/^ ` | ` $ /.test(a))&&(a=" "+a+" ");++s<n.unsafe.length;){const u=n.unsafe[s],c=n.compilePattern(u);let f;if(u.atBreak)for(;f=c.exec(a);){let g=f.index;a.charCodeAt(g)===10&&a.charCodeAt(g-1)===13&&g--,a=a.slice(0,g)+" "+a.slice(f.index+1)}}return o+a+o}function WG(){return" ` "}function o0(e,t){const n=Km(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===" text "&&(n===e.url||" mailto : "+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}s0.peek=KG;function s0(e,t,n,a){const o=rh(n),s=o==='" ' ? "Quote" : "Apostrophe" , u = n . createTracker ( a ) ; let c , f ; if ( o0 ( e , n ) ) { const h = n . stack ; n . stack = [ ] , c = n . enter ( "autolink" ) ; let m = u . move ( "<" ) ; return m += u . move ( n . containerPhrasing ( e , { before : m , after : ">" , ... u . current ( ) } ) ) , m += u . move ( ">" ) , c ( ) , n . stack = h , m } c = n . enter ( "link" ) , f = n . enter ( "label" ) ; let g = u . move ( "[" ) ; return g += u . move ( n . containerPhrasing ( e , { before : g , after : "](" , ... u . current ( ) } ) ) , g += u . move ( "](" ) , f ( ) , ! e . url && e . title || /[\0- \u007F]/ . test ( e . url ) ? ( f = n . enter ( "destinationLiteral" ) , g += u . move ( "<" ) , g += u . move ( n . safe ( e . url , { before : g , after : ">" , ... u . current ( ) } ) ) , g += u . move ( ">" ) ) : ( f = n . enter ( "destinationRaw" ) , g += u . move ( n . safe ( e . url , { before : g , after : e . title ? " " : ")" , ... u . current ( ) } ) ) ) , f ( ) , e . title && ( f = n . enter ( ` title ${ s } ` ) , g += u . move ( " " + o ) , g += u . move ( n . safe ( e . title , { before : g , after : o , ... u . current ( ) } ) ) , g += u . move ( o ) , f ( ) ) , g += u . move ( ")" ) , c ( ) , g } function KG ( e , t , n ) { return o0 ( e , n ) ? "<" : "[" } l0 . peek = XG ; function l0 ( e , t , n , a ) { const o = e . referenceType , s = n . enter ( "linkReference" ) ; let u = n . enter ( "label" ) ; const c = n . createTracker ( a ) ; let f = c . move ( "[" ) ; const g = n . containerPhrasing ( e , { before : f , after : "]" , ... c . current ( ) } ) ; f += c . move ( g + "][" ) , u ( ) ; const h = n . stack ; n . stack = [ ] , u = n . enter ( "reference" ) ; const m = n . safe ( n . associationId ( e ) , { before : f , after : "]" , ... c . current ( ) } ) ; return u ( ) , n . stack = h , s ( ) , o === "full" || ! g || g !== m ? f += c . move ( m + "]" ) : o === "shortcut" ? f = f . slice ( 0 , - 1 ) : f += c . move ( "]" ) , f } function XG ( ) { return "[" } function ah ( e ) { const t = e . options . bullet || "*" ; if ( t !== "*" && t !== "+" && t !== "-" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`" ) ; return t } function ZG ( e ) { const t = ah ( e ) , n = e . options . bulletOther ; if ( ! n ) return t === "*" ? "-" : "*" ; if ( n !== "*" && n !== "+" && n !== "-" ) throw new Error ( "Cannot serialize items with `" + n + "` for `options.bulletOther`, expected `*`, `+`, or `-`" ) ; if ( n === t ) throw new Error ( "Expected `bullet` (`" + t + "`) and `bulletOther` (`" + n + "`) to be different" ) ; return n } function QG ( e ) { const t = e . options . bulletOrdered || "." ; if ( t !== "." && t !== ")" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`" ) ; return t } function u0 ( e ) { const t = e . options . rule || "*" ; if ( t !== "*" && t !== "-" && t !== "_" ) throw new Error ( "Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`" ) ; return t } function JG ( e , t , n , a ) { const o = n . enter ( "list" ) , s = n . bulletCurrent ; let u = e . ordered ? QG ( n ) : ah ( n ) ; const c = e . ordered ? u === "." ? ")" : "." : ZG ( n ) ; let f = t && n . bulletLastUsed ? u === n . bulletLastUsed : ! 1 ; if ( ! e . ordered ) { const h = e . children ? e . children [ 0 ] : void 0 ; if ( ( u === "*" || u === "-" ) && h && ( ! h . children || ! h . children [ 0 ] ) && n . stack [ n . stack . length - 1 ] === "list" && n . stack [ n . stack . length - 2 ] === "listItem" && n . stack [ n . stack . length - 3 ] === "list" && n . stack [ n . stack . length - 4 ] === "listItem" && n . indexStack [ n . indexStack . length - 1 ] === 0 && n . indexStack [ n . indexStack . length - 2 ] === 0 && n . indexStack [ n . indexStack . length - 3 ] === 0 && ( f = ! 0 ) , u0 ( n ) === u && h ) { let m = - 1 ; for ( ; ++ m < e . chil Line truncated
` ,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:u,tableCell:f,tableRow:c}};function u(v,x,w,k){return g(h(v,w,k),v.align)}function c(v,x,w,k){const A=m(v,w,k),_=g([A]);return _.slice(0,_.indexOf( `
` ))}function f(v,x,w,k){const A=w.enter("tableCell"),_=w.enter("phrasing"),N=w.containerPhrasing(v,{...k,before:s,after:s});return _(),A(),N}function g(v,x){return DG(v,{align:x,alignDelimiters:a,padding:n,stringLength:o})}function h(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("table");for(;++A<k.length;)_[A]=m(k[A],x,w);return N(),_}function m(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("tableRow");for(;++A<k.length;)_[A]=f(k[A],v,x,w);return N(),_}function S(v,x,w){let k=d0.inlineCode(v,x,w);return w.stack.includes("tableCell")&&(k=k.replace(/ \| /g," \\ $ &")),k}}function EH(){return{exit:{taskListCheckValueChecked:u_,taskListCheckValueUnchecked:u_,paragraph:xH}}}function SH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wH}}}function u_(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function xH(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const o=t.children;let s=-1,u;for(;++s<o.length;){const c=o[s];if(c.type==="paragraph"){u=c;break}}u===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function wH(e,t,n,a){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(a);s&&c.move(u);let f=d0.listItem(e,t,n,{...a,...c.current()});return s&&(f=f.replace(/^(?:[*+-]| \d + \. )([ \r \n ]| {1,3})/,g)),f;function g(h){return h+u}}function TH(){return[nG(),wG(),_G(),fH(),EH()]}function AH(e){return{extensions:[rG(),TG(e),NG(),vH(e),SH()]}}const kH={tokenize:OH,partial:!0},p0={tokenize:DH,partial:!0},f0={tokenize:LH,partial:!0},g0={tokenize:MH,partial:!0},_H={tokenize:jH,partial:!0},m0={name:"wwwAutolink",tokenize:CH,previous:b0},h0={name:"protocolAutolink",tokenize:IH,previous:y0},Dr={name:"emailAutolink",tokenize:RH,previous:v0},lr={};function NH(){return{text:lr}}let Ha=48;for(;Ha<123;)lr[Ha]=Dr,Ha++,Ha===58?Ha=65:Ha===91&&(Ha=97);lr[43]=Dr;lr[45]=Dr;lr[46]=Dr;lr[95]=Dr;lr[72]=[Dr,h0];lr[104]=[Dr,h0];lr[87]=[Dr,m0];lr[119]=[Dr,m0];function RH(e,t,n){const a=this;let o,s;return u;function u(m){return!Gg(m)||!v0.call(a,a.previous)||ih(a.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Gg(m)?(e.consume(m),c):m===64?(e.consume(m),f):n(m)}function f(m){return m===46?e.check(_H,h,g)(m):m===45||m===95||Ut(m)?(s=!0,e.consume(m),f):h(m)}function g(m){return e.consume(m),o=!0,f}function h(m){return s&&o&&qt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function CH(e,t,n){const a=this;return o;function o(u){return u!==87&&u!==119||!b0.call(a,a.previous)||ih(a.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(kH,e.attempt(p0,e.attempt(f0,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function IH(e,t,n){const a=this;let o="",s=!1;return u;function u(m){return(m===72||m===104)&&y0.call(a,a.previous)&&!ih(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(qt(m)&&o.length<5)return o+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const S=o.toLowerCase();if(S==="http"||S==="https")return e.consume(m),f}return n(m)}function f(m){return m===47?(e.consume(m),s?g:(s=!0,f)):n(m)}function g(m){return m===null||mc(m)||rt(m)||Ka(m)||Gc(m)?n(m):e.attempt(p0,e.attempt(f0,h),n)(m)}function h(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function OH(e,t,n){let a=0;return o;function o(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),o):u===46&&a===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function DH(e,t,n){let a,o,s;return u;function u(g){return g===46||g===95?e.check(g0,f,c)(g):g===null||rt(g)||Ka(g)||g!==45&&Gc(g)?f(g):(s=!0,e.consume(g),u)}function c(g){return g===95?a=!0:(o=a,a=void 0),e.consume(g),u}function f(g){return o||a||!s?n(g):t(g)}}function LH(e,t){let n=0,a=0;return o;function o(u){return u===40?(n++,e.consume(u),o):u===41&&a<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(g0,t,s)(u):u===null||rt(u)||Ka(u)?t(u):(e.consume(u),o)}function s(u){return u===41&&a++,e.consume(u),o}}function MH(e,t,n){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),s):c===93?(e.consume(c),o):c===60||c===null||rt(c)||Ka(c)?t(c):n(c)}function o(c){return c===null||c===40||c===91||rt(c)||Ka(c)?t(c):a(c)}function s(c){return qt(c)?u(c):n(c)}function u(c){re
Line truncated
` ),n=[];let a=0;for(;a<t.length;){const o=t[a].match(/^=== \s +"([^"]+)" \s * $ /);if(!o){n.push(t[a]),a++;continue}const s=o[1];for(a++;a<t.length&&t[a].trim()==="";)a++;const u=[];for(;a<t.length&&!(/^=== \s +"[^"]+" \s * $ /.test(t[a])||t[a].trim()===""&&a+1<t.length&&/^=== \s +"[^"]+" \s * $ /.test(t[a+1]));){if(t[a].startsWith(" ")||t[a].trimStart().startsWith(" ` ` ` ")){u.push(t[a].replace(/^ /," ")),a++;continue}if(u.length>0&&t[a].trim()===" "){u.push(" "),a++;continue}break}n.push(`### ${u 5}${s}`),n.push(" "),n.push(...u),n.push(" " ) } return n . join ( `
` )}function f5(e){let t=d5(e);return t=c5(t),t=p5(t),t}const g5="modulepreload",m5=function(e){return"/"+e},d_={},Hg=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let f=function(g){return Promise.all(g.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");o=f(n.map(g=>{if(g=m5(g),g in d_)return;d_[g]=!0;const h=g.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector( ` link [ href = "${g}" ] $ { m } ` ))return;const S=document.createElement("link");if(S.rel=h?"stylesheet":g5,h||(S.as="script"),S.crossOrigin="",S.href=g,c&&S.setAttribute("nonce",c),document.head.appendChild(S),h)return new Promise((v,x)=>{S.addEventListener("load",v),S.addEventListener("error",()=>x(new Error( ` Unable to preload CSS for $ { g } ` )))})}))}function s(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return o.then(u=>{for(const c of u||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},h5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#14b8a6",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#818cf8",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#fb7185",tertiaryTextColor:"#ffffff",textColor:"#f1f5f9",labelTextColor:"#f1f5f9",lineColor:"#94a3b8",arrowheadColor:"#cbd5e1",nodeBorder:"#14b8a6",clusterBkg:"rgba(13, 148, 136, 0.08)",clusterBorder:"rgba(20, 184, 166, 0.4)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(15, 23, 42, 0.85)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#14b8a6",actorTextColor:"#ffffff",actorLineColor:"#64748b",signalColor:"#cbd5e1",signalTextColor:"#f1f5f9",activationBorderColor:"#14b8a6",activationBkgColor:"rgba(13, 148, 136, 0.2)",sequenceNumberColor:"#ffffff",noteBkgColor:"rgba(99, 102, 241, 0.2)",noteBorderColor:"#818cf8",noteTextColor:"#f1f5f9",titleColor:"#f8fafc",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}},b5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#0f766e",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#4f46e5",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#be123c",tertiaryTextColor:"#ffffff",textColor:"#1e293b",labelTextColor:"#334155",lineColor:"#94a3b8",arrowheadColor:"#64748b",nodeBorder:"#0f766e",clusterBkg:"rgba(13, 148, 136, 0.06)",clusterBorder:"rgba(15, 118, 110, 0.3)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(255, 255, 255, 0.9)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#0f766e",actorTextColor:"#ffffff",actorLineColor:"#cbd5e1",signalColor:"#64748b",signalTextColor:"#1e293b",noteBkgColor:"rgba(99, 102, 241, 0.1)",noteBorderColor:"#6366f1",noteTextColor:"#1e293b",titleColor:"#0f172a",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}};function y5(){return document.documentElement.classList.contains("dark")}function v5(e){return{startOnLoad:!1,securityLevel:"strict",...e?h5:b5,flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,wrap:!0},er:{useMaxWidth:!0},gantt:{useMaxWidth:!0}}}function E5(e,t){const n=Math.max(Math.floor(t),320);return e.replace(/<svg([^>]*)>/,(a,o)=> ` < svg$ { o . replace ( /\swidth="[^"]*"/g , "" ) . replace ( /\sheight="[^"]*"/g , "" ) . replace ( /\sstyle="[^"]*"/g , "" ) } width = "${n}" style = "width:100%;max-width:100%;height:auto;display:block;" > ` )}let p_=0;function S5(e){return p_+=1, ` mermaid - $ { e . replace ( /:/g , "" ) } - $ { p _ } ` }function bg({chart:e}){const t=E.useId(),n=E.useRef(null),a=E.useRef(null),o=E.useRef(void 0),[s,u]=E.useState("loading"),[c,f]=E.useState(""),[g,h]=E.useState("");return E.useEffect(()=>{const m=n.current;if(!m)return;let S=!1;const v=async()=>{u("loading"),f(""),h("");const k=(await Hg(async()=>{const{default:L}=await import("./mermaid.core.js").then(U=>U.cb);return{default:L}},[])).default;k.initialize(v5(y5()));const A=getComputedStyle(m),_=parseFloat(A.paddingLeft)+parseFloat(A.paddingRight),N=m.clientWidth-_;try{const{svg:L,bindFunctions:U}=await k.render(S5(t),e);if(S)return;o.current=U,h(E5(L,N)),u("ready")}catch(L){if(S)return;u("error"),f(L instanceof Error?L.message:"Failed to render diagram")}};v();const x=new ResizeObserver(()=>{v()});x.observe(m);const w=new MutationObserver(()=>{v()});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>{S=!0,x.disconnect(),w.disconnect()}},[e,t]),E.useEffect(()=>{s!=="ready"||!a.current||o.current?.(a.current)},[s,g]),s==="error"?p.jsx("pre",{className:"mermaid-diagram mermaid-error text-destructive text-sm my-4 p-4 rounded-lg border border-destructive/30 bg-destructive/5 overflow-x-auto",children:c}):p.jsxs("div",{ref:n,className: ` mermai Line truncated
` )===-1?p.jsx("code",{className:"bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm font-mono",children:x}):p.jsx("code",{className: ` block font - mono text - foreground $ { v ? ? "" } ` ,children:x}),pre:({children:v})=>{if(E.isValidElement(v)&&v.type===b g)return v;const x=m(v);return x?p.jsx(b g,{chart:x}):p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto my-4 font-mono whitespace-pre",children:v})},table:({children:v})=>p.jsx("div",{className:"overflow-auto my-4",children:p.jsx("table",{className:"w-full border-collapse text-sm",children:v})}),thead:({children:v})=>p.jsx("thead",{className:"bg-muted/50",children:v}),tr:({children:v})=>p.jsx("tr",{className:"border-b",children:v}),th:({children:v})=>p.jsx("th",{className:"px-4 py-2 text-left font-medium",children:v}),td:({children:v})=>p.jsx("td",{className:"px-4 py-2 text-foreground",children:v}),hr:()=>p.jsx("hr",{className:"my-6 border-border"}),strong:({children:v})=>p.jsx("strong",{className:"font-semibold text-foreground",children:v}),em:({children:v})=>p.jsx("em",{children:v})};return n?p.jsxs ("main",{id:"main-content",className:"flex-1 min-w-0 w-full p -8",children:[p.jsx(j 5,{selectedItem:n}),u&&!o&&p.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}),o?p.jsx("article",{ref:f,className: ` prose prose - neutral dark : prose - invert max - w - none prose - pre : bg - muted prose - pre : text - foreground prose - code : text - foreground$ { u ? " opacity-60" : "" } ` ,children:p.jsx(XC ,{remarkPlugins:[E0],components:S,children:o})},a):u?null:p.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:p.jsxs("p",{className:"text-muted-foreground",children:["Content for ",p.jsx("strong",{className:"text-primary",children:n.title})," would be displayed here."]})})]}):p.jsxs ("main",{className:"flex-1 p-8 max-w-3xl ",children:[p.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:e.site?.title||"Documentation"}),p.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:e.site?.description||"Welcome to the documentation."}),p.jsx(Ji ,{className:"my-8"}),p.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),p.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:p.jsx("strong",{children:"Current theme from YAML:"})}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-3 rounded-lg text-sm overflow-auto",children: ` site :
` ))}function f(v,x,w,k){const A=w.enter("tableCell"),_=w.enter("phrasing"),N=w.containerPhrasing(v,{...k,before:s,after:s});return _(),A(),N}function g(v,x){return RG(v,{align:x,alignDelimiters:a,padding:n,stringLength:o})}function h(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("table");for(;++A<k.length;)_[A]=m(k[A],x,w);return N(),_}function m(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("tableRow");for(;++A<k.length;)_[A]=f(k[A],v,x,w);return N(),_}function S(v,x,w){let k=d0.inlineCode(v,x,w);return w.stack.includes("tableCell")&&(k=k.replace(/ \| /g," \\ $ &")),k}}function bH(){return{exit:{taskListCheckValueChecked:l_,taskListCheckValueUnchecked:l_,paragraph:vH}}}function yH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EH}}}function l_(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function vH(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const o=t.children;let s=-1,u;for(;++s<o.length;){const c=o[s];if(c.type==="paragraph"){u=c;break}}u===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function EH(e,t,n,a){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(a);s&&c.move(u);let f=d0.listItem(e,t,n,{...a,...c.current()});return s&&(f=f.replace(/^(?:[*+-]| \d + \. )([ \r \n ]| {1,3})/,g)),f;function g(h){return h+u}}function SH(){return[J4(),EG(),TG(),cH(),bH()]}function xH(e){return{extensions:[eG(),SG(e),AG(),hH(e),yH()]}}const wH={tokenize:CH,partial:!0},p0={tokenize:RH,partial:!0},f0={tokenize:IH,partial:!0},g0={tokenize:OH,partial:!0},TH={tokenize:DH,partial:!0},m0={name:"wwwAutolink",tokenize:_H,previous:b0},h0={name:"protocolAutolink",tokenize:NH,previous:y0},Lr={name:"emailAutolink",tokenize:kH,previous:v0},ur={};function AH(){return{text:ur}}let Ha=48;for(;Ha<123;)ur[Ha]=Lr,Ha++,Ha===58?Ha=65:Ha===91&&(Ha=97);ur[43]=Lr;ur[45]=Lr;ur[46]=Lr;ur[95]=Lr;ur[72]=[Lr,h0];ur[104]=[Lr,h0];ur[87]=[Lr,m0];ur[119]=[Lr,m0];function kH(e,t,n){const a=this;let o,s;return u;function u(m){return!Hg(m)||!v0.call(a,a.previous)||ih(a.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Hg(m)?(e.consume(m),c):m===64?(e.consume(m),f):n(m)}function f(m){return m===46?e.check(TH,h,g)(m):m===45||m===95||Pt(m)?(s=!0,e.consume(m),f):h(m)}function g(m){return e.consume(m),o=!0,f}function h(m){return s&&o&&Wt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function _H(e,t,n){const a=this;return o;function o(u){return u!==87&&u!==119||!b0.call(a,a.previous)||ih(a.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wH,e.attempt(p0,e.attempt(f0,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function NH(e,t,n){const a=this;let o="",s=!1;return u;function u(m){return(m===72||m===104)&&y0.call(a,a.previous)&&!ih(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(Wt(m)&&o.length<5)return o+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const S=o.toLowerCase();if(S==="http"||S==="https")return e.consume(m),f}return n(m)}function f(m){return m===47?(e.consume(m),s?g:(s=!0,f)):n(m)}function g(m){return m===null||mc(m)||ot(m)||Ka(m)||Hc(m)?n(m):e.attempt(p0,e.attempt(f0,h),n)(m)}function h(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function CH(e,t,n){let a=0;return o;function o(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),o):u===46&&a===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function RH(e,t,n){let a,o,s;return u;function u(g){return g===46||g===95?e.check(g0,f,c)(g):g===null||ot(g)||Ka(g)||g!==45&&Hc(g)?f(g):(s=!0,e.consume(g),u)}function c(g){return g===95?a=!0:(o=a,a=void 0),e.consume(g),u}function f(g){return o||a||!s?n(g):t(g)}}function IH(e,t){let n=0,a=0;return o;function o(u){return u===40?(n++,e.consume(u),o):u===41&&a<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(g0,t,s)(u):u===null||ot(u)||Ka(u)?t(u):(e.consume(u),o)}function s(u){return u===41&&a++,e.consume(u),o}}function OH(e,t,n){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),s):c===93?(e.consume(c),o):c===60||c===null||ot(c)||Ka(c)?t(c):n(c)}function o(c){return c===null||c===40||c===91||ot(c)||Ka(c)?t(c):a(c)}function s(c){return Wt(c)?u(c):n(c)}function u(c){re
Line truncated
` ),n=[];let a=0;for(;a<t.length;){const o=t[a].match(/^=== \s +"([^"]+)" \s * $ /);if(!o){n.push(t[a]),a++;continue}const s=o[1];for(a++;a<t.length&&t[a].trim()==="";)a++;const u=[];for(;a<t.length&&!(/^=== \s +"[^"]+" \s * $ /.test(t[a])||t[a].trim()===""&&a+1<t.length&&/^=== \s +"[^"]+" \s * $ /.test(t[a+1]));){if(t[a].startsWith(" ")||t[a].trimStart().startsWith(" ` ` ` ")){u.push(t[a].replace(/^ /," ")),a++;continue}if(u.length>0&&t[a].trim()===" "){u.push(" "),a++;continue}break}n.push(`### ${p 5}${s}`),n.push(" "),n.push(...u),n.push(" " ) } return n . join ( `
` )}function h5(e){let t=g5(e);return t=f5(t),t=m5(t),t}const b5="modulepreload",y5=function(e){return"/"+e},d_={},Vg=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let f=function(g){return Promise.all(g.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");o=f(n.map(g=>{if(g=y5(g),g in d_)return;d_[g]=!0;const h=g.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector( ` link [ href = "${g}" ] $ { m } ` ))return;const S=document.createElement("link");if(S.rel=h?"stylesheet":b5,h||(S.as="script"),S.crossOrigin="",S.href=g,c&&S.setAttribute("nonce",c),document.head.appendChild(S),h)return new Promise((v,x)=>{S.addEventListener("load",v),S.addEventListener("error",()=>x(new Error( ` Unable to preload CSS for $ { g } ` )))})}))}function s(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return o.then(u=>{for(const c of u||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},v5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#14b8a6",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#818cf8",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#fb7185",tertiaryTextColor:"#ffffff",textColor:"#f1f5f9",labelTextColor:"#f1f5f9",lineColor:"#94a3b8",arrowheadColor:"#cbd5e1",nodeBorder:"#14b8a6",clusterBkg:"rgba(13, 148, 136, 0.08)",clusterBorder:"rgba(20, 184, 166, 0.4)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(15, 23, 42, 0.85)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#14b8a6",actorTextColor:"#ffffff",actorLineColor:"#64748b",signalColor:"#cbd5e1",signalTextColor:"#f1f5f9",activationBorderColor:"#14b8a6",activationBkgColor:"rgba(13, 148, 136, 0.2)",sequenceNumberColor:"#ffffff",noteBkgColor:"rgba(99, 102, 241, 0.2)",noteBorderColor:"#818cf8",noteTextColor:"#f1f5f9",titleColor:"#f8fafc",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}},E5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#0f766e",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#4f46e5",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#be123c",tertiaryTextColor:"#ffffff",textColor:"#1e293b",labelTextColor:"#334155",lineColor:"#94a3b8",arrowheadColor:"#64748b",nodeBorder:"#0f766e",clusterBkg:"rgba(13, 148, 136, 0.06)",clusterBorder:"rgba(15, 118, 110, 0.3)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(255, 255, 255, 0.9)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#0f766e",actorTextColor:"#ffffff",actorLineColor:"#cbd5e1",signalColor:"#64748b",signalTextColor:"#1e293b",noteBkgColor:"rgba(99, 102, 241, 0.1)",noteBorderColor:"#6366f1",noteTextColor:"#1e293b",titleColor:"#0f172a",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}};function S5(){return document.documentElement.classList.contains("dark")}function x5(e){return{startOnLoad:!1,securityLevel:"strict",...e?v5:E5,flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,wrap:!0},er:{useMaxWidth:!0},gantt:{useMaxWidth:!0}}}function w5(e,t){const n=Math.max(Math.floor(t),320);return e.replace(/<svg([^>]*)>/,(a,o)=> ` < svg$ { o . replace ( /\swidth="[^"]*"/g , "" ) . replace ( /\sheight="[^"]*"/g , "" ) . replace ( /\sstyle="[^"]*"/g , "" ) } width = "${n}" style = "width:100%;max-width:100%;height:auto;display:block;" > ` )}let p_=0;function T5(e){return p_+=1, ` mermaid - $ { e . replace ( /:/g , "" ) } - $ { p _ } ` }function yg({chart:e}){const t=E.useId(),n=E.useRef(null),a=E.useRef(null),o=E.useRef(void 0),[s,u]=E.useState("loading"),[c,f]=E.useState(""),[g,h]=E.useState("");return E.useEffect(()=>{const m=n.current;if(!m)return;let S=!1;const v=async()=>{u("loading"),f(""),h("");const k=(await Vg(async()=>{const{default:L}=await import("./mermaid.core.js").then(U=>U.cb);return{default:L}},[])).default;k.initialize(x5(S5()));const A=getComputedStyle(m),_=parseFloat(A.paddingLeft)+parseFloat(A.paddingRight),N=m.clientWidth-_;try{const{svg:L,bindFunctions:U}=await k.render(T5(t),e);if(S)return;o.current=U,h(w5(L,N)),u("ready")}catch(L){if(S)return;u("error"),f(L instanceof Error?L.message:"Failed to render diagram")}};v();const x=new ResizeObserver(()=>{v()});x.observe(m);const w=new MutationObserver(()=>{v()});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>{S=!0,x.disconnect(),w.disconnect()}},[e,t]),E.useEffect(()=>{s!=="ready"||!a.current||o.current?.(a.current)},[s,g]),s==="error"?p.jsx("pre",{className:"mermaid-diagram mermaid-error text-destructive text-sm my-4 p-4 rounded-lg border border-destructive/30 bg-destructive/5 overflow-x-auto",children:c}):p.jsxs("div",{ref:n,className: ` mermai Line truncated
` )===-1?p.jsx("code",{className:"bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm font-mono",children:x}):p.jsx("code",{className: ` block font - mono text - foreground $ { v ? ? "" } ` ,children:x}),pre:({children:v})=>{if(E.isValidElement(v)&&v.type===y g)return v;const x=m(v);return x?p.jsx(y g,{chart:x}):p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto my-4 font-mono whitespace-pre",children:v})},table:({children:v})=>p.jsx("div",{className:"overflow-auto my-4",children:p.jsx("table",{className:"w-full border-collapse text-sm",children:v})}),thead:({children:v})=>p.jsx("thead",{className:"bg-muted/50",children:v}),tr:({children:v})=>p.jsx("tr",{className:"border-b",children:v}),th:({children:v})=>p.jsx("th",{className:"px-4 py-2 text-left font-medium",children:v}),td:({children:v})=>p.jsx("td",{className:"px-4 py-2 text-foreground",children:v}),hr:()=>p.jsx("hr",{className:"my-6 border-border"}),strong:({children:v})=>p.jsx("strong",{className:"font-semibold text-foreground",children:v}),em:({children:v})=>p.jsx("em",{children:v})};return n?p.jsx("main",{id:"main-content",className:"docs-main flex-1 min-w-0",children:p.jsxs("div",{className:"docs-main-inner mx-auto w-full max-w-[720px] px-6 py-8 lg:px -8",children:[p.jsx(B 5,{selectedItem:n}),u&&!o&&p.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}),o?p.jsx("article",{ref:f,className: ` prose prose - neutral dark : prose - invert max - w - none prose - pre : bg - muted prose - pre : text - foreground prose - code : text - foreground$ { u ? " opacity-60" : "" } ` ,children:p.jsx(XR ,{remarkPlugins:[E0],components:S,children:o})},a):u?null:p.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:p.jsxs("p",{className:"text-muted-foreground",children:["Content for ",p.jsx("strong",{className:"text-primary",children:n.title})," would be displayed here."]})})]})}) :p.jsx("main",{id:"main-content",className:"docs-main flex-1 min-w-0",children:p.jsxs("div",{className:"docs-main-inner mx-auto w-full max-w-[720px] px-6 py-8 lg:px-8 ",children:[p.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:e.site?.title||"Documentation"}),p.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:e.site?.description||"Welcome to the documentation."}),p.jsx(Ns ,{className:"my-8"}),p.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),p.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:p.jsx("strong",{children:"Current theme from YAML:"})}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-3 rounded-lg text-sm overflow-auto",children: ` site :
theme :
preset : "${g?.preset||" zinc "}"
radius : "${g?.radius||" md "}"
darkMode : $ { g ? . darkMode !== ! 1 } ` })]}),p.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),p.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(Y L).map(v=>p.jsx("span",{className: ` px - 3 py - 1 rounded - full text - sm $ { v === ( g ? . preset || "zinc" ) ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground" } ` ,children:v},v))}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),p.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("span",{className:"font-medium text-primary",children:t.routes?.length||0})," routes configured."]}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(t.routes?.slice(0,3),null,2)})]})}function Vu({config:e,templateKey:t="docs"}){const n=e.templates?.[t]?.slots?.footer,a=n?.ref,s=(a?e.components?.[a]:e.components?.footer)?.props||n?.props;return p.jsx("footer",{className:"border-t border-border/50 py-8 px-6 bg-muted/20",children:p.jsxs("div",{className:"max-w-screen-2xl mx-auto flex flex-col sm:flex-row justify-between items-center gap-4 text-sm text-muted-foreground",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-5 h-5 rounded bg-gradient-to-br from-primary/60 to-primary flex items-center justify-center",children:p.jsx("span",{className:"text-primary-foreground text-[8px] font-bold",children:"AI"})}),p.jsx("span",{children:s?.text|| ` © $ { new Date ( ) . getFullYear ( ) } PraisonAIUI ` })]}),p.jsx("nav",{className:"flex items-center gap-6",children:s?.links?.map(u=>p.jsx("a",{href:u.href,className:"hover:text-foreground transition-colors",children:u.label},u.href))})]})})}const U 5=()=>({taskLists:[],collapsed:!1}), $ n=new Map,V g=100,F 5=1440*60*1e3;function B 5(){const e=Date.now(),t=Array.from( $ n.entries());for(const[n,a]of t)e-a.lastAccessed>F 5&& $ n.delete(n);if( $ n.size>V g){const n=Array.from( $ n.entries()).sort(([,o],[,s])=>o.lastAccessed-s.lastAccessed),a= $ n.size-V g;for(let o=0;o<a;o++) $ n.delete(n[o][0])}}function q g(e){if(! $ n.has(e)) $ n.size>=V g&&B5(), $ n.set(e,{state:U 5(),listeners:new Set,lastAccessed:Date.now()});else{const t= $ n.get(e);t.lastAccessed=Date.now()}return $ n.get(e)}function sh(e,t){const n=q g(e),a=t(n.state);n.state=a,n.listeners.forEach(o=>o())}function P 5(e,t){sh(e,n=>{const a=n.taskLists.filter(s=>s.id!==t.task_list_id),o={id:t.task_list_id,name:t.name,tasks:t.tasks,stats:w 0(t.tasks),sequence:t.sequence,created_at:t.timestamp,updated_at:t.timestamp};return{...n,taskLists:[...a,o],collapsed:n.taskLists.length===0?t.tasks.length<=1:n.collapsed}})}function z 5(e,t){sh(e,n=>{const a=n.taskLists.map(o=>o.id===t.task_list_id?{...o,tasks:t.tasks,stats:w 0(t.tasks),sequence:t.sequence,updated_at:t.timestamp}:o);return{...n,taskLists:a}})}function w 0(e){return e.reduce((t,n)=>(t.total+=1,t[n.status.toLowerCase()]+=1,t),{total:0,ready:0,running:0,done:0,failed:0})}function $ 5(e,t){sh(e,n=>({...n,collapsed:t}))}function G 5(e){const[,t]=E.useState({});return E.useEffect(()=>{const n=q g(e),a=()=>t({});return n.listeners.add(a),()=>{n.listeners.delete(a)}},[e]),q g(e).state}function H 5(e,t){return t.type==="task_list.init"?(P 5(e,t),!0):t.type==="task_list.update"?(z 5(e,t),!0):!1}const T 0=()=>({isStreaming:!1,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),qa=new Map;function W c(e){return qa.has(e)||qa.set(e,{state:T 0(),listeners:new Set,abortController:null,toolCallMap:new Map}),qa.get(e)}function qu(e){return e?W c(e).state:T 0()}function V 5(e,t){const n=W c(e);return n.listeners.add(t),()=>n.listeners.delete(t)}function C n(e,t){const n=W c(e);n.state={...n.state,...t},n.listeners.forEach(a=>a())}async function q 5(e){const t=qa.get(e);if(t){t.abortController?.abort(),t.abortController=null,C n(e,{isStreaming:!1});try{await fetch("/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e})})}catch{}}}function Y 5(e,t,n,a){const o=W c(e);if(o.state.isStreaming)return;C n(e,{isStreaming:!0,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),o.toolCallMap=new Map;const s=new AbortController;o.abortController=s,W 5(e,t,n,s,a)}async function W 5(e,t,n,a,o){try{const s=await fetch("/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,session_id:e,agent:n}),signal:a.signal});if(!s.ok)throw new Error( ` HTTP $ { s . status } ` );const u=s.body?.getReader();if(!u)throw new Error("No response body");const c=new TextDecoder;let f="";for(;;){const{done:g,value:h}=await u.read();if(g)break;f+=c.decode(h,{stream:!0});const m=f.split( `
` );f=m.pop()||"";for(const S of m)if(S.startsWith("data: "))try{const v=JSON.parse(S.slice(6));K 5(e,v,o)}catch{}}}catch(s){if(s.name!=="AbortError"){const u=qa.get(e);u&&C n(e,{thinkingSteps:[...u.state.thinkingSteps, ` Error : $ { s . message } ` ]})}}finally{const s=qa.get(e);s&&(s.abortController=null),C n(e,{isStreaming:!1}),o?.onEnd?.()}}function K 5(e,t,n){const a=qa.get(e);if(!a)return;const o=a.toolCallMap;switch(t.type){case"session":t.session_id&&typeof t.session_id=="string"&&n?.onSessionId?.(t.session_id);break;case"token":case"run_content":case"team_run_content":{const u=t.token??t.content??"";u&&C n(e,{currentResponse:a.state.currentResponse+u});break}case"message":case"run_completed":case"team_run_completed":{const u=t.content;u&&C n(e,{currentResponse:u});break}case"thinking":case"reasoning_step":case"team_reasoning_step":{const u=t.step;u&&C n(e,{thinkingSteps:[...a.state.thinkingSteps,u]});break}case"reasoning_started":case"team_reasoning_started":C n(e,{thinkingSteps:[...a.state.thinkingSteps,"Starting reasoning..."]});break;case"tool_call":case"tool_call_started":case"team_tool_call_started":{const u={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"running",tool_call_id:t.tool_call_id,args:t.args};u.tool_call_id&&o.set(u.tool_call_id,u);const c=g_(a.state.toolCalls,u);C n(e,{toolCalls:c});break}case"tool_call_completed":case"team_tool_call_completed":{const u=t.extra_data,c=t.a2ui??u?.a2ui,f=t.elements??u?.elements,g={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"done",tool_call_id:t.tool_call_id,args:t.args,formatted_result:t.formatted_result,result:t.result,surface_id:t.surface_id??u?.surface_id,a2ui:c?.length?{messages:c,surface_id:t.surface_id??u?.surface_id}:void 0,elements:f};g.tool_call_id&&o.set(g.tool_call_id,g);const h=g_(a.state.toolCalls,g),m=f?.length?[...a.state.pendingElements,...f]:a.state.pendingElements;C n(e,{toolCalls:h,pendingElements:m});break}case"message_element":{const u=t.extra_data,c=t.element??u?.element;c&&C n(e,{pendingElements:[...a.state.pendingElements,c]});break}case"error":case"run_error":case"team_run_error":{const u=t.error;u&&C n(e,{thinkingSteps:[...a.state.thinkingSteps, ` Error : $ { u } ` ]});break}case"approval_required":case"approval_pending":case"run_paused":{const u=t.extra_data;if(u?.type==="approval_required"){const c=u;window.dispatchEvent(new CustomEvent("aiui:approval-required",{detail:c}))}break}case"end":case"done":case"run_cancelled":case"team_run_cancelled":break;default:H 5(e,t);break}}function g_(e,t){if(t.tool_call_id){const n=e.findIndex(a=>a.tool_call_id===t.tool_call_id);if(n>=0){const a=[...e];return a[n]={...a[n],...t},a}}return[...e,t]}function A 0(e={}){const{externalSessionId:t}=e,[n,a]=E.useState(()=>qu(t));E.useEffect(()=>{if(!t){a(qu(null));return}return a(qu(t)),V 5(t,()=>{a(qu(t))})},[t]);const o=E.useCallback((u,c)=>{const f=t?? ` new - $ { Date . now ( ) } ` ;Y 5(f,u,c,{onSessionId:g=>{e.onSessionId?.(g)},onEnd:e.onEnd})},[t,e.onSessionId,e.onEnd]),s=E.useCallback(()=>{t&&q 5(t)},[t]);return{isStreaming:n.isStreaming,currentResponse:n.currentResponse,toolCalls:n.toolCalls,thinkingSteps:n.thinkingSteps,pendingElements:n.pendingElements,sendMessage:o,cancel:s}}function X 5(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function Z5 (e,t){if(e==null)return{};var n,a,o=X 5(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Y g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Q5 (e){if(Array.isArray(e))return Y g(e)}function J5 (e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e 6(e,t){if(e){if(typeof e=="string")return Y g(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(n)?Y g(e,t):void 0}}function t 6(){throw new TypeError( ` Invalid attempt to spread non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function Wg(e){return Q5(e)||J5(e)||e6(e)||t6()}function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function n6(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(Gs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r6(e){var t=n6(e,"string");return Gs(t)=="symbol"?t:t+""}function k0(e,t,n){return(t=r6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Kg.apply(null,arguments)}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(a){k0(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function a6(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[
Line truncated
` ))})}function f 6(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,o=a===void 0?{float:"left",paddingRight:"10px"}:a,s=e.numberStyle,u=s===void 0?{}:s,c=e.startingLineNumber;return K e.createElement("code",{style:Object.assign({},n,o)},p 6({lines:t.replace(/ \n $ /,"").split( `
` ),style:u,startingLineNumber:c}))}function g 6(e){return"".concat(e.toString().length,".25em")}function N 0(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function R0(e,t,n){var a={display:"inline-block",minWidth:g 6(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,s=pa(pa({},a),o);return s}function tc(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,o=e.largestLineNumber,s=e.showInlineLineNumbers,u=e.lineProps,c=u===void 0?{}:u,f=e.className,g=f===void 0?[]:f,h=e.showLineNumbers,m=e.wrapLongLines,S=e.wrapLines,v=S===void 0?!1:S,x=v?pa({},typeof c=="function"?c(n):c):{};if(x.className=x.className?[].concat(W g(x.className.trim().split(/ \s +/)),W g(g)):g,n&&s){var w=R0(a,n,o);t.unshift(N 0(n,w))}return m&h&&(x.style=pa({display:"flex"},x.style)),{type:"element",tagName:"span",properties:x,children:t}}function C 0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a<e.length;a++){var o=e[a];if(o.type==="text")n.push(tc({children:[o],className:W g(new Set(t))}));else if(o.children){var s,u=t.concat(((s=o.properties)===null||s===void 0?void 0:s.className)||[]);C 0(o.children,u).forEach(function(c){return n.push(c)})}}return n}function m 6(e,t,n,a,o,s,u,c,f){var g,h=C 0(e.value),m=[],S=-1,v=0;function x(U,D){var B =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return tc({children:U,lineNumber:D,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:o,lineProps:n,className:B ,showLineNumbers:a,wrapLongLines:f,wrapLines:t})}function w(U,D){if(a&&D&&o){var B =R0(c,D,u);U.unshift(N 0(D,B ))}return U}function k(U,D){var B =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||B .length>0?x(U,D,B ):w(U,D)}for(var A=function(){var D=h[v],B =D.children[0].value, $ =d 6(B );if( $ ){var K=B .split( `
` );K .forEach(function(F,W ){var q =a&&m.length+s,r e={type:"text",value:"".concat(F , `
` )};if(W===0){var ae=h.slice(S+1,v).concat(tc({children:[re],className:D.properties.className})),J=k(ae,q);m.push(J)}else if(W===K.length-1){var P=h[v+1]&&h[v+1].children&&h[v+1].children[0],G={type:"text",value:"".concat(F)};if(P){var Y=tc({children:[G],className:D.properties.className});h.splice(v+1,0,Y)}else{var ee=[G],C=k(ee,q,D.properties.className);m.push(C)}}else{var j=[re],M=k(j,q,D.properties.className);m.push(M)}}),S=v}v++};v<h.length;)A();if(S!==h.length-1){var _=h.slice(S+1,h.length);if(_&&_.length){var N=a&&m.length+s,L=k(_,N);m.push(L)}}return t?m:(g=[]).concat.apply(g,m)}function h6(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map(function(o,s){return _0({node:o,stylesheet:n,useInlineStyles:a,key:"code-segment-".concat(s)})})}function I0(e){return e&&typeof e.highlightAuto<"u"}function b6(e){var t=e.astGenerator,n=e.language,a=e.code,o=e.defaultCodeValue;if(I0(t)){var s=l6(t,n);return n==="text"?{value:o,language:"text"}:s?t.highlight(n,a):t.highlightAuto(a)}try{return n&&n!=="text"?{value:t.highlight(a,n)}:{value:o}}catch{return{value:o}}}function y6(e,t){return function(a){var o,s,u=a.language,c=a.children,f=a.style,g=f===void 0?t:f,h=a.customStyle,m=h===void 0?{}:h,S=a.codeTagProps,v=S===void 0?{className:u?"language-".concat(u):void 0,style:pa(pa({},g['code[class*="language-"]']),g['code[class*="language-'.concat(u,'"]')])}:S,x=a.useInlineStyles,w=x===void 0?!0:x,k=a.showLineNumbers,A=k===void 0?!1:k,_=a.showInlineLineNumbers,N=_===void 0?!0:_,L=a.startingLineNumber,U=L===void 0?1:L,D=a.lineNumberContainerStyle,B=a.lineNumberStyle, $ =B===void 0?{}:B,K=a.wrapLines,F=a.wrapLongLines,W=F===void 0?!1:F,q=a.lineProps,re=q===void 0?{}:q,ae=a.renderer,J=a.PreTag,P=J===void 0?"pre":J,G=a.CodeTag,Y=G===void 0?"code":G,ee=a.code,C=ee===void 0?(Array.isArray(c)?c[0]:c)||"":ee,j=a.astGenerator,M=Z5(a,u6);j=j||e;var I=A?Ke.createElement(f6,{containerStyle:D,codeStyle:v.style||{},numberStyle: $ ,startingLineNumber:U,codeString:C}):null,oe=g.hljs||g['pre[class*="language-"]']||{backgroundColor:"#fff"},te=I0(j)?"hljs":"prismjs",ie=w?Object.assign({},M,{style:Object.assign({},oe,m)}):Object.assign({},M,{className:M.className?"".concat(te," ").concat(M.className):te,style:Object.assign({},m)});if(W?v.style=pa({whiteSpace:"pre-wrap"},v.style):v.style=pa({whiteSpace:"pre"},v.style),!j)return Ke.createElement(P,ie,I,Ke.createElement(Y,v,C));(K===void 0&&ae||W)&&(K=!0),ae=ae||h6;var se=[{type:"text",value:C}],he=b6({astGenerator:j,language:u,code:C,defaultCodeValue:se});he.language===null&&(he.value=se);var pe=(o=(s=C.match(/ \n /g))===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0,Te=U+pe,ye=m6(he,K,re,A,N,U,Te, $ ,W);return Ke.createElement(P,ie,Ke.createElement(Y,v,!N&&I,ae({rows:ye,stylesheet:g,useInlineStyles:w})))}}const v6=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","so
Line truncated
darkMode : $ { g ? . darkMode !== ! 1 } ` })]}),p.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),p.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(K L).map(v=>p.jsx("span",{className: ` px - 3 py - 1 rounded - full text - sm $ { v === ( g ? . preset || "zinc" ) ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground" } ` ,children:v},v))}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),p.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("span",{className:"font-medium text-primary",children:t.routes?.length||0})," routes configured."]}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(t.routes?.slice(0,3),null,2)})]})})} function Vu({config:e,templateKey:t="docs"}){const n=e.templates?.[t]?.slots?.footer,a=n?.ref,s=(a?e.components?.[a]:e.components?.footer)?.props||n?.props;return p.jsx("footer",{className:"border-t border-border/50 py-8 px-6 bg-muted/20",children:p.jsxs("div",{className:"max-w-screen-2xl mx-auto flex flex-col sm:flex-row justify-between items-center gap-4 text-sm text-muted-foreground",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-5 h-5 rounded bg-gradient-to-br from-primary/60 to-primary flex items-center justify-center",children:p.jsx("span",{className:"text-primary-foreground text-[8px] font-bold",children:"AI"})}),p.jsx("span",{children:s?.text|| ` © $ { new Date ( ) . getFullYear ( ) } PraisonAIUI ` })]}),p.jsx("nav",{className:"flex items-center gap-6",children:s?.links?.map(u=>p.jsx("a",{href:u.href,className:"hover:text-foreground transition-colors",children:u.label},u.href))})]})})}const P 5=()=>({taskLists:[],collapsed:!1}),V n=new Map,q g=100,z 5=1440*60*1e3;function $ 5(){const e=Date.now(),t=Array.from(V n.entries());for(const[n,a]of t)e-a.lastAccessed>z 5&&V n.delete(n);if(V n.size>q g){const n=Array.from(V n.entries()).sort(([,o],[,s])=>o.lastAccessed-s.lastAccessed),a=V n.size-q g;for(let o=0;o<a;o++)V n.delete(n[o][0])}}function Y g(e){if(!V n.has(e))V n.size>=q g&& $ 5(),V n.set(e,{state:P 5(),listeners:new Set,lastAccessed:Date.now()});else{const t=V n.get(e);t.lastAccessed=Date.now()}return V n.get(e)}function sh(e,t){const n=Y g(e),a=t(n.state);n.state=a,n.listeners.forEach(o=>o())}function G 5(e,t){sh(e,n=>{const a=n.taskLists.filter(s=>s.id!==t.task_list_id),o={id:t.task_list_id,name:t.name,tasks:t.tasks,stats:T 0(t.tasks),sequence:t.sequence,created_at:t.timestamp,updated_at:t.timestamp};return{...n,taskLists:[...a,o],collapsed:n.taskLists.length===0?t.tasks.length<=1:n.collapsed}})}function H 5(e,t){sh(e,n=>{const a=n.taskLists.map(o=>o.id===t.task_list_id?{...o,tasks:t.tasks,stats:T 0(t.tasks),sequence:t.sequence,updated_at:t.timestamp}:o);return{...n,taskLists:a}})}function T 0(e){return e.reduce((t,n)=>(t.total+=1,t[n.status.toLowerCase()]+=1,t),{total:0,ready:0,running:0,done:0,failed:0})}function V 5(e,t){sh(e,n=>({...n,collapsed:t}))}function q 5(e){const[,t]=E.useState({});return E.useEffect(()=>{const n=Y g(e),a=()=>t({});return n.listeners.add(a),()=>{n.listeners.delete(a)}},[e]),Y g(e).state}function Y 5(e,t){return t.type==="task_list.init"?(G 5(e,t),!0):t.type==="task_list.update"?(H 5(e,t),!0):!1}const A 0=()=>({isStreaming:!1,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),qa=new Map;function K c(e){return qa.has(e)||qa.set(e,{state:A 0(),listeners:new Set,abortController:null,toolCallMap:new Map}),qa.get(e)}function qu(e){return e?K c(e).state:A 0()}function W 5(e,t){const n=K c(e);return n.listeners.add(t),()=>n.listeners.delete(t)}function D n(e,t){const n=K c(e);n.state={...n.state,...t},n.listeners.forEach(a=>a())}async function K 5(e){const t=qa.get(e);if(t){t.abortController?.abort(),t.abortController=null,D n(e,{isStreaming:!1});try{await fetch("/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e})})}catch{}}}function X 5(e,t,n,a){const o=K c(e);if(o.state.isStreaming)return;D n(e,{isStreaming:!0,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),o.toolCallMap=new Map;const s=new AbortController;o.abortController=s,Z 5(e,t,n,s,a)}async function Z 5(e,t,n,a,o){try{const s=await fetch("/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,session_id:e,agent:n}),signal:a.signal});if(!s.ok)throw new Error(` HTTP $ { s . status } ` );const u=s.body?.getReader();if(!u)throw new Error("No response body");const c=new TextDecoder;let f="";for(;;){const{done:g,value:h}=await u.read();if(g)break;f+=c.decode(h,{stream:!0});const m=f.split( `
` );f=m.pop()||"";for(const S of m)if(S.startsWith("data: "))try{const v=JSON.parse(S.slice(6));Q 5(e,v,o)}catch{}}}catch(s){if(s.name!=="AbortError"){const u=qa.get(e);u&&D n(e,{thinkingSteps:[...u.state.thinkingSteps, ` Error : $ { s . message } ` ]})}}finally{const s=qa.get(e);s&&(s.abortController=null),D n(e,{isStreaming:!1}),o?.onEnd?.()}}function Q 5(e,t,n){const a=qa.get(e);if(!a)return;const o=a.toolCallMap;switch(t.type){case"session":t.session_id&&typeof t.session_id=="string"&&n?.onSessionId?.(t.session_id);break;case"token":case"run_content":case"team_run_content":{const u=t.token??t.content??"";u&&D n(e,{currentResponse:a.state.currentResponse+u});break}case"message":case"run_completed":case"team_run_completed":{const u=t.content;u&&D n(e,{currentResponse:u});break}case"thinking":case"reasoning_step":case"team_reasoning_step":{const u=t.step;u&&D n(e,{thinkingSteps:[...a.state.thinkingSteps,u]});break}case"reasoning_started":case"team_reasoning_started":D n(e,{thinkingSteps:[...a.state.thinkingSteps,"Starting reasoning..."]});break;case"tool_call":case"tool_call_started":case"team_tool_call_started":{const u={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"running",tool_call_id:t.tool_call_id,args:t.args};u.tool_call_id&&o.set(u.tool_call_id,u);const c=g_(a.state.toolCalls,u);D n(e,{toolCalls:c});break}case"tool_call_completed":case"team_tool_call_completed":{const u=t.extra_data,c=t.a2ui??u?.a2ui,f=t.elements??u?.elements,g={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"done",tool_call_id:t.tool_call_id,args:t.args,formatted_result:t.formatted_result,result:t.result,surface_id:t.surface_id??u?.surface_id,a2ui:c?.length?{messages:c,surface_id:t.surface_id??u?.surface_id}:void 0,elements:f};g.tool_call_id&&o.set(g.tool_call_id,g);const h=g_(a.state.toolCalls,g),m=f?.length?[...a.state.pendingElements,...f]:a.state.pendingElements;D n(e,{toolCalls:h,pendingElements:m});break}case"message_element":{const u=t.extra_data,c=t.element??u?.element;c&&D n(e,{pendingElements:[...a.state.pendingElements,c]});break}case"error":case"run_error":case"team_run_error":{const u=t.error;u&&D n(e,{thinkingSteps:[...a.state.thinkingSteps, ` Error : $ { u } ` ]});break}case"approval_required":case"approval_pending":case"run_paused":{const u=t.extra_data;if(u?.type==="approval_required"){const c=u;window.dispatchEvent(new CustomEvent("aiui:approval-required",{detail:c}))}break}case"end":case"done":case"run_cancelled":case"team_run_cancelled":break;default:Y 5(e,t);break}}function g_(e,t){if(t.tool_call_id){const n=e.findIndex(a=>a.tool_call_id===t.tool_call_id);if(n>=0){const a=[...e];return a[n]={...a[n],...t},a}}return[...e,t]}function k 0(e={}){const{externalSessionId:t}=e,[n,a]=E.useState(()=>qu(t));E.useEffect(()=>{if(!t){a(qu(null));return}return a(qu(t)),W 5(t,()=>{a(qu(t))})},[t]);const o=E.useCallback((u,c)=>{const f=t?? ` new - $ { Date . now ( ) } ` ;X 5(f,u,c,{onSessionId:g=>{e.onSessionId?.(g)},onEnd:e.onEnd})},[t,e.onSessionId,e.onEnd]),s=E.useCallback(()=>{t&&K 5(t)},[t]);return{isStreaming:n.isStreaming,currentResponse:n.currentResponse,toolCalls:n.toolCalls,thinkingSteps:n.thinkingSteps,pendingElements:n.pendingElements,sendMessage:o,cancel:s}}function J 5(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function e6 (e,t){if(e==null)return{};var n,a,o=J 5(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function W g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function t6 (e){if(Array.isArray(e))return W g(e)}function n6 (e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r 6(e,t){if(e){if(typeof e=="string")return W g(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(n)?W g(e,t):void 0}}function a 6(){throw new TypeError( ` Invalid attempt to spread non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function Kg(e){return t6(e)||n6(e)||r6(e)||a6()}function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function i6(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(Gs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o6(e){var t=i6(e,"string");return Gs(t)=="symbol"?t:t+""}function _0(e,t,n){return(t=o6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xg(){return Xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xg.apply(null,arguments)}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(a){_0(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function s6(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[
Line truncated
` ))})}function h 6(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,o=a===void 0?{float:"left",paddingRight:"10px"}:a,s=e.numberStyle,u=s===void 0?{}:s,c=e.startingLineNumber;return Z e.createElement("code",{style:Object.assign({},n,o)},m 6({lines:t.replace(/ \n $ /,"").split( `
` ),style:u,startingLineNumber:c}))}function b 6(e){return"".concat(e.toString().length,".25em")}function C 0(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function R0(e,t,n){var a={display:"inline-block",minWidth:b 6(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,s=pa(pa({},a),o);return s}function tc(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,o=e.largestLineNumber,s=e.showInlineLineNumbers,u=e.lineProps,c=u===void 0?{}:u,f=e.className,g=f===void 0?[]:f,h=e.showLineNumbers,m=e.wrapLongLines,S=e.wrapLines,v=S===void 0?!1:S,x=v?pa({},typeof c=="function"?c(n):c):{};if(x.className=x.className?[].concat(K g(x.className.trim().split(/ \s +/)),K g(g)):g,n&&s){var w=R0(a,n,o);t.unshift(C 0(n,w))}return m&h&&(x.style=pa({display:"flex"},x.style)),{type:"element",tagName:"span",properties:x,children:t}}function I 0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a<e.length;a++){var o=e[a];if(o.type==="text")n.push(tc({children:[o],className:K g(new Set(t))}));else if(o.children){var s,u=t.concat(((s=o.properties)===null||s===void 0?void 0:s.className)||[]);I 0(o.children,u).forEach(function(c){return n.push(c)})}}return n}function y 6(e,t,n,a,o,s,u,c,f){var g,h=I 0(e.value),m=[],S=-1,v=0;function x(U,D){var P =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return tc({children:U,lineNumber:D,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:o,lineProps:n,className:P ,showLineNumbers:a,wrapLongLines:f,wrapLines:t})}function w(U,D){if(a&&D&&o){var P =R0(c,D,u);U.unshift(C 0(D,P ))}return U}function k(U,D){var P =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||P .length>0?x(U,D,P ):w(U,D)}for(var A=function(){var D=h[v],P =D.children[0].value, $ =g 6(P );if( $ ){var Y=P .split( `
` );Y .forEach(function(B,V ){var X =a&&m.length+s,n e={type:"text",value:"".concat(B , `
` )};if(V===0){var ie=h.slice(S+1,v).concat(tc({children:[ne],className:D.properties.className})),ee=k(ie,X);m.push(ee)}else if(V===Y.length-1){var F=h[v+1]&&h[v+1].children&&h[v+1].children[0],q={type:"text",value:"".concat(B)};if(F){var te=tc({children:[q],className:D.properties.className});h.splice(v+1,0,te)}else{var se=[q],I=k(se,X,D.properties.className);m.push(I)}}else{var M=[ne],j=k(M,X,D.properties.className);m.push(j)}}),S=v}v++};v<h.length;)A();if(S!==h.length-1){var _=h.slice(S+1,h.length);if(_&&_.length){var N=a&&m.length+s,L=k(_,N);m.push(L)}}return t?m:(g=[]).concat.apply(g,m)}function v6(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map(function(o,s){return N0({node:o,stylesheet:n,useInlineStyles:a,key:"code-segment-".concat(s)})})}function O0(e){return e&&typeof e.highlightAuto<"u"}function E6(e){var t=e.astGenerator,n=e.language,a=e.code,o=e.defaultCodeValue;if(O0(t)){var s=d6(t,n);return n==="text"?{value:o,language:"text"}:s?t.highlight(n,a):t.highlightAuto(a)}try{return n&&n!=="text"?{value:t.highlight(a,n)}:{value:o}}catch{return{value:o}}}function S6(e,t){return function(a){var o,s,u=a.language,c=a.children,f=a.style,g=f===void 0?t:f,h=a.customStyle,m=h===void 0?{}:h,S=a.codeTagProps,v=S===void 0?{className:u?"language-".concat(u):void 0,style:pa(pa({},g['code[class*="language-"]']),g['code[class*="language-'.concat(u,'"]')])}:S,x=a.useInlineStyles,w=x===void 0?!0:x,k=a.showLineNumbers,A=k===void 0?!1:k,_=a.showInlineLineNumbers,N=_===void 0?!0:_,L=a.startingLineNumber,U=L===void 0?1:L,D=a.lineNumberContainerStyle,P=a.lineNumberStyle, $ =P===void 0?{}:P,Y=a.wrapLines,B=a.wrapLongLines,V=B===void 0?!1:B,X=a.lineProps,ne=X===void 0?{}:X,ie=a.renderer,ee=a.PreTag,F=ee===void 0?"pre":ee,q=a.CodeTag,te=q===void 0?"code":q,se=a.code,I=se===void 0?(Array.isArray(c)?c[0]:c)||"":se,M=a.astGenerator,j=e6(a,p6);M=M||e;var C=A?Ze.createElement(h6,{containerStyle:D,codeStyle:v.style||{},numberStyle: $ ,startingLineNumber:U,codeString:I}):null,J=g.hljs||g['pre[class*="language-"]']||{backgroundColor:"#fff"},Q=O0(M)?"hljs":"prismjs",re=w?Object.assign({},j,{style:Object.assign({},J,m)}):Object.assign({},j,{className:j.className?"".concat(Q," ").concat(j.className):Q,style:Object.assign({},m)});if(V?v.style=pa({whiteSpace:"pre-wrap"},v.style):v.style=pa({whiteSpace:"pre"},v.style),!M)return Ze.createElement(F,re,C,Ze.createElement(te,v,I));(Y===void 0&&ie||V)&&(Y=!0),ie=ie||v6;var oe=[{type:"text",value:I}],he=E6({astGenerator:M,language:u,code:I,defaultCodeValue:oe});he.language===null&&(he.value=oe);var pe=(o=(s=I.match(/ \n /g))===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0,ve=U+pe,Ce=y6(he,Y,ne,A,N,U,ve, $ ,V);return Ze.createElement(F,re,Ze.createElement(te,v,!N&&C,ie({rows:Ce,stylesheet:g,useInlineStyles:w})))}}const x6=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml
Line truncated
? |
| ( ? ! [ \ \ s \ \ S ] ) ) ) + ` ,"m"),alias:s,inside:{line:{pattern:/(.)(?=[ \s \S ]).*(?: \r \n ?| \n )?/,lookbehind:!0},prefix:{pattern:/[ \s \S ]/,alias:/ \w +/.exec(a)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}zt.displayName="markup-templating";zt.aliases=[];function zt(e){e.register(Mt),(function(t){function n(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,s,u){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(s,function(f){if(typeof u=="function"&&!u(f))return f;for(var g=c.length,h;a.code.indexOf(h=n(o,g))!==-1;)++g;return c[g]=f,h}),a.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=t.languages[o];var s=0,u=Object.keys(a.tokenStack);function c(f){for(var g=0;g<f.length&&!(s>=u.length);g++){var h=f[g];if(typeof h=="string"||h.content&&typeof h.content=="string"){var m=u[s],S=a.tokenStack[m],v=typeof h=="string"?h:h.content,x=n(o,m),w=v.indexOf(x);if(w>-1){++s;var k=v.substring(0,w),A=new t.Token(o,t.tokenize(S,a.grammar),"language-"+o,S),_=v.substring(w+x.length),N=[];k&&N.push.apply(N,c([k])),N.push(A),_&&N.push.apply(N,c([_])),typeof h=="string"?f.splice.apply(f,[g,1].concat(N)):h.content=N}}else h.content&&c(h.content)}return f}c(a.tokens)}}})})(e)}bb.displayName="django";bb.aliases=["jinja2"];function bb(e){e.register(zt),(function(t){t.languages.django={comment:/^ \{ #[ \s \S ]*?# \} $ /,tag:{pattern:/(^ \{ %[+-]? \s *) \w +/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^ \{ [{%][+-]?|[+-]?[}%] \} $ /,alias:"punctuation"},string:{pattern:/("|')(?: \\ .|(?! \1 )[^ \\ \r \n ])* \1 /,greedy:!0},filter:{pattern:/( \| ) \w +/,lookbehind:!0,alias:"function"},test:{pattern:/( \b is \s +(?:not \s +)?)(?!not \b ) \w +/,lookbehind:!0,alias:"function"},function:/ \b [a-z_] \w +(?= \s * \( )/i,keyword:/ \b (?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without) \b /,operator:/[-+%=]=?|!=| \* \* ?=?| \/ \/ ?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/ \b \d +(?: \. \d +)? \b /,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/ \b \w + \b /,punctuation:/[{}[ \] (),.:;]/};var n=/ \{ \{ [ \s \S ]*? \} \} | \{ %[ \s \S ]*?% \} | \{ #[ \s \S ]*?# \} /g,a=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})})(e)}yb.displayName="dns-zone-file";yb.aliases=["dns-zone"];function yb(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?: \\ .|[^" \\ \r \n ])*"/,greedy:!0},variable:[{pattern:/(^ \$ ORIGIN[ \t ]+) \S +/m,lookbehind:!0},{pattern:/(^| \s )@(?= \s | $ )/,lookbehind:!0}],keyword:/^ \$ (?:INCLUDE|ORIGIN|TTL)(?= \s | $ )/m,class:{pattern:/(^| \s )(?:CH|CS|HS|IN)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^| \s )(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}vb.displayName="docker";vb.aliases=["dockerfile"];function vb(e){(function(t){var n=/ \\ [ \r \n ](?: \s | \\ [ \r \n ]|#.*(?!.))*(?![ \s #]| \\ [ \r \n ])/.source,a=/(?:[ \t ]+(?![ \t ])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),o=/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"|'(?:[^' \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*'/.source,s=/--[ \w -]+=(?:<STR>|(?!["'])(?:[^ \s \\ ]| \\ .)+)/.source.replace(/<STR>/g,function(){return o}),u={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t ]*)#.*/m,lookbehind:!0,greedy:!0};function f(g,h){return g=g.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(g,h)}t.languages.docker={instruction:{pattern:/(^[ \t ]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?= \s )(?: \\ .|[^ \r \n \\ ])*(?: \\ $ (?: \s |#.* $ )*(?![ \s #])(?: \\ .|[^ \r \n \\ ])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:f(/(^(?:ONBUILD<SP>)? \w +<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^| \s )--[ \w -]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^ \s \\ ]| \\ .)+/,lookbehind:!0}],operator:/ \\ $ /m,punctuation:/=/}},keyword:[{pattern:f(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE) \b /.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t \\ ]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^ONBUILD<SP>) \w +/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^ \w +/,greedy:!0}],comment:c,string:u,variable:/ \$ (?: \w +| \{ [^{}"' \\ ]* \} )/,oper
Line truncated
] ) ) ( ? : ` +(/[^ \s \\ ]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/ \\ [ \r \n ]+(?:[#;].*[ \r \n ]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^| \s )/.source+a),lookbehind:!0,greedy:!0},punctuation:/ \\ $ /m,boolean:{pattern:/^(?:false|no|off|on|true|yes) $ /,greedy:!0}}},punctuation:/=/}})(e)}cl.displayName="t4-templating";cl.aliases=[];function cl(e){(function(t){function n(o,s,u){return{pattern:RegExp("<#"+o+"[ \\ s \\ S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#> $ "),alias:"important"},content:{pattern:/[ \s \S ]+/,inside:s,alias:u}}}}function a(o){var s=t.languages[o],u="language-"+o;return{block:{pattern:/<#[ \s \S ]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?: \\ [ \s \S ]|(?! \1 )[^ \\ ])* \1 |[^ \s '">=]+)/,inside:{punctuation:/^=|^["']|["'] $ /}},keyword:/ \b \w +(?= \s )/,"attr-name":/ \b \w +/}),expression:n("=",s,u),"class-feature":n(" \\ +",s,u),standard:n("",s,u)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}OE.displayName="t4-cs";OE.aliases=["t4"];function OE(e){e.register(yo),e.register(cl),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}rd.displayName="vbnet";rd.aliases=[];function rd(e){e.register(Zc),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM \b ).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^ \\ :])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?: \b (?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)| \B (?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?: \$ | \b )/i,punctuation:/[,;:(){}]/})}DE.displayName="t4-vb";DE.aliases=[];function DE(e){e.register(cl),e.register(rd),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}LE.displayName="tap";LE.aliases=[];function LE(e){e.register(Xc),e.languages.tap={fail:/not ok[^#{ \n \r ]*/,pass:/ok[^#{ \n \r ]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d +/i,plan:/ \b \d + \. \. \d +(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t ]*)---[ \s \S ]*?[ \r \n ][ \t ]* \. \. \. $ /m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}ME.displayName="tcl";ME.aliases=[];function ME(e){e.languages.tcl={comment:{pattern:/(^|[^ \\ ])#.*/,lookbehind:!0},string:{pattern:/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"/,greedy:!0},variable:[{pattern:/( \$ )(?:::)?(?:[a-zA-Z0-9]+::)* \w +/,lookbehind:!0},{pattern:/( \$ ) \{ [^}]+ \} /,lookbehind:!0},{pattern:/(^[ \t ]*set[ \t ]+)(?:::)?(?:[a-zA-Z0-9]+::)* \w +/m,lookbehind:!0}],function:{pattern:/(^[ \t ]*proc[ \t ]+) \S +/m,lookbehind:!0},builtin:[{pattern:/(^[ \t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while) \b /m,lookbehind:!0},/ \b (?:else|elseif) \b /],scope:{pattern:/(^[ \t ]*)(?:global|upvar|variable) \b /m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[ \t ]*| \[ )(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait
Line truncated
| ( ? ! [ \ \ s \ \ S ] ) ) ) + ` ,"m"),alias:s,inside:{line:{pattern:/(.)(?=[ \s \S ]).*(?: \r \n ?| \n )?/,lookbehind:!0},prefix:{pattern:/[ \s \S ]/,alias:/ \w +/.exec(a)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}Gt.displayName="markup-templating";Gt.aliases=[];function Gt(e){e.register(Ft),(function(t){function n(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,s,u){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(s,function(f){if(typeof u=="function"&&!u(f))return f;for(var g=c.length,h;a.code.indexOf(h=n(o,g))!==-1;)++g;return c[g]=f,h}),a.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=t.languages[o];var s=0,u=Object.keys(a.tokenStack);function c(f){for(var g=0;g<f.length&&!(s>=u.length);g++){var h=f[g];if(typeof h=="string"||h.content&&typeof h.content=="string"){var m=u[s],S=a.tokenStack[m],v=typeof h=="string"?h:h.content,x=n(o,m),w=v.indexOf(x);if(w>-1){++s;var k=v.substring(0,w),A=new t.Token(o,t.tokenize(S,a.grammar),"language-"+o,S),_=v.substring(w+x.length),N=[];k&&N.push.apply(N,c([k])),N.push(A),_&&N.push.apply(N,c([_])),typeof h=="string"?f.splice.apply(f,[g,1].concat(N)):h.content=N}}else h.content&&c(h.content)}return f}c(a.tokens)}}})})(e)}bb.displayName="django";bb.aliases=["jinja2"];function bb(e){e.register(Gt),(function(t){t.languages.django={comment:/^ \{ #[ \s \S ]*?# \} $ /,tag:{pattern:/(^ \{ %[+-]? \s *) \w +/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^ \{ [{%][+-]?|[+-]?[}%] \} $ /,alias:"punctuation"},string:{pattern:/("|')(?: \\ .|(?! \1 )[^ \\ \r \n ])* \1 /,greedy:!0},filter:{pattern:/( \| ) \w +/,lookbehind:!0,alias:"function"},test:{pattern:/( \b is \s +(?:not \s +)?)(?!not \b ) \w +/,lookbehind:!0,alias:"function"},function:/ \b [a-z_] \w +(?= \s * \( )/i,keyword:/ \b (?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without) \b /,operator:/[-+%=]=?|!=| \* \* ?=?| \/ \/ ?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/ \b \d +(?: \. \d +)? \b /,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/ \b \w + \b /,punctuation:/[{}[ \] (),.:;]/};var n=/ \{ \{ [ \s \S ]*? \} \} | \{ %[ \s \S ]*?% \} | \{ #[ \s \S ]*?# \} /g,a=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})})(e)}yb.displayName="dns-zone-file";yb.aliases=["dns-zone"];function yb(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?: \\ .|[^" \\ \r \n ])*"/,greedy:!0},variable:[{pattern:/(^ \$ ORIGIN[ \t ]+) \S +/m,lookbehind:!0},{pattern:/(^| \s )@(?= \s | $ )/,lookbehind:!0}],keyword:/^ \$ (?:INCLUDE|ORIGIN|TTL)(?= \s | $ )/m,class:{pattern:/(^| \s )(?:CH|CS|HS|IN)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^| \s )(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}vb.displayName="docker";vb.aliases=["dockerfile"];function vb(e){(function(t){var n=/ \\ [ \r \n ](?: \s | \\ [ \r \n ]|#.*(?!.))*(?![ \s #]| \\ [ \r \n ])/.source,a=/(?:[ \t ]+(?![ \t ])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),o=/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"|'(?:[^' \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*'/.source,s=/--[ \w -]+=(?:<STR>|(?!["'])(?:[^ \s \\ ]| \\ .)+)/.source.replace(/<STR>/g,function(){return o}),u={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t ]*)#.*/m,lookbehind:!0,greedy:!0};function f(g,h){return g=g.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(g,h)}t.languages.docker={instruction:{pattern:/(^[ \t ]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?= \s )(?: \\ .|[^ \r \n \\ ])*(?: \\ $ (?: \s |#.* $ )*(?![ \s #])(?: \\ .|[^ \r \n \\ ])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:f(/(^(?:ONBUILD<SP>)? \w +<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^| \s )--[ \w -]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^ \s \\ ]| \\ .)+/,lookbehind:!0}],operator:/ \\ $ /m,punctuation:/=/}},keyword:[{pattern:f(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE) \b /.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t \\ ]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^ONBUILD<SP>) \w +/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^ \w +/,greedy:!0}],comment:c,string:u,variable:/ \$ (?: \w +| \{ [^{}"' \\ ]* \} )/,oper
Line truncated
] ) ) ( ? : ` +(/[^ \s \\ ]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/ \\ [ \r \n ]+(?:[#;].*[ \r \n ]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^| \s )/.source+a),lookbehind:!0,greedy:!0},punctuation:/ \\ $ /m,boolean:{pattern:/^(?:false|no|off|on|true|yes) $ /,greedy:!0}}},punctuation:/=/}})(e)}cl.displayName="t4-templating";cl.aliases=[];function cl(e){(function(t){function n(o,s,u){return{pattern:RegExp("<#"+o+"[ \\ s \\ S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#> $ "),alias:"important"},content:{pattern:/[ \s \S ]+/,inside:s,alias:u}}}}function a(o){var s=t.languages[o],u="language-"+o;return{block:{pattern:/<#[ \s \S ]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?: \\ [ \s \S ]|(?! \1 )[^ \\ ])* \1 |[^ \s '">=]+)/,inside:{punctuation:/^=|^["']|["'] $ /}},keyword:/ \b \w +(?= \s )/,"attr-name":/ \b \w +/}),expression:n("=",s,u),"class-feature":n(" \\ +",s,u),standard:n("",s,u)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}OE.displayName="t4-cs";OE.aliases=["t4"];function OE(e){e.register(bo),e.register(cl),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}ad.displayName="vbnet";ad.aliases=[];function ad(e){e.register(Qc),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM \b ).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^ \\ :])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?: \b (?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)| \B (?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?: \$ | \b )/i,punctuation:/[,;:(){}]/})}DE.displayName="t4-vb";DE.aliases=[];function DE(e){e.register(cl),e.register(ad),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}LE.displayName="tap";LE.aliases=[];function LE(e){e.register(Zc),e.languages.tap={fail:/not ok[^#{ \n \r ]*/,pass:/ok[^#{ \n \r ]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d +/i,plan:/ \b \d + \. \. \d +(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t ]*)---[ \s \S ]*?[ \r \n ][ \t ]* \. \. \. $ /m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}ME.displayName="tcl";ME.aliases=[];function ME(e){e.languages.tcl={comment:{pattern:/(^|[^ \\ ])#.*/,lookbehind:!0},string:{pattern:/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"/,greedy:!0},variable:[{pattern:/( \$ )(?:::)?(?:[a-zA-Z0-9]+::)* \w +/,lookbehind:!0},{pattern:/( \$ ) \{ [^}]+ \} /,lookbehind:!0},{pattern:/(^[ \t ]*set[ \t ]+)(?:::)?(?:[a-zA-Z0-9]+::)* \w +/m,lookbehind:!0}],function:{pattern:/(^[ \t ]*proc[ \t ]+) \S +/m,lookbehind:!0},builtin:[{pattern:/(^[ \t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while) \b /m,lookbehind:!0},/ \b (?:else|elseif) \b /],scope:{pattern:/(^[ \t ]*)(?:global|upvar|variable) \b /m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[ \t ]*| \[ )(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait
Line truncated
- a positive number
- less than the value passed to \ ` max \` (or ${ yS } if no \` max \` prop is set)
- \ ` null \` or \` undefined \` if the progress is indeterminate.
Defaulting to \ ` null \` . ` } var nq = yI , rq = EI ; function aq ( { className : e , value : t , ... n } ) { return p . jsx ( nq , { "data-slot" : "progress" , className : be ( "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full" , e ) , ... n , children : p . jsx ( rq , { "data-slot" : "progress-indicator" , className : "bg-primary h-full w-full flex-1 transition-all" , style : { transform : ` translateX(- ${ 100 - ( t || 0 ) } %) ` } } ) } ) } function dl ( e ) { const t = E . useRef ( { value : e , previous : e } ) ; return E . useMemo ( ( ) => ( t . current . value !== e && ( t . current . previous = t . current . value , t . current . value = e ) , t . current . previous ) , [ e ] ) } var ld = "Switch" , [ iq ] = Rt ( ld ) , [ oq , sq ] = iq ( ld ) , xI = E . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : n , name : a , checked : o , defaultChecked : s , required : u , disabled : c , value : f = "on" , onCheckedChange : g , form : h , ... m } = e , [ S , v ] = E . useState ( null ) , x = _e ( t , N => v ( N ) ) , w = E . useRef ( ! 1 ) , k = S ? h || ! ! S . closest ( "form" ) : ! 0 , [ A , _ ] = Wt ( { prop : o , defaultProp : s ? ? ! 1 , onChange : g , caller : ld } ) ; return p . jsxs ( oq , { scope : n , checked : A , disabled : c , children : [ p . jsx ( ve . button , { type : "button" , role : "switch" , "aria-checked" : A , "aria-required" : u , "data-state" : kI ( A ) , "data-disabled" : c ? "" : void 0 , disabled : c , value : f , ... m , ref : x , onClick : ge ( e . onClick , N => { _ ( L => ! L ) , k && ( w . current = N . isPropagationStopped ( ) , w . current || N . stopPropagation ( ) ) } ) } ) , k && p . jsx ( AI , { control : S , bubbles : ! w . current , name : a , value : f , checked : A , required : u , disabled : c , form : h , style : { transform : "translateX(-100%)" } } ) ] } ) } ) ; xI . displayName = ld ; var wI = "SwitchThumb" , TI = E . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : n , ... a } = e , o = sq ( wI , n ) ; return p . jsx ( ve . span , { "data-state" : kI ( o . checked ) , "data-disabled" : o . disabled ? "" : void 0 , ... a , ref : t } ) } ) ; TI . displayName = wI ; var lq = "SwitchBubbleInput" , AI = E . forwardRef ( ( { _ _scopeSwitch : e , control : t , checked : n , bubbles : a = ! 0 , ... o } , s ) => { const u = E . useRef ( null ) , c = _e ( u , s ) , f = dl ( n ) , g = Xs ( t ) ; return E . useEffect ( ( ) => { const h = u . current ; if ( ! h ) return ; const m = window . HTMLInputElement . prototype , v = Object . getOwnPropertyDescriptor ( m , "checked" ) . set ; if ( f !== n && v ) { const x = new Event ( "click" , { bubbles : a } ) ; v . call ( h , n ) , h . dispatchEvent ( x ) } } , [ f , n , a ] ) , p . jsx ( "input" , { type : "checkbox" , "aria-hidden" : ! 0 , defaultChecked : n , ... o , tabIndex : - 1 , ref : c , style : { ... o . style , ... g , position : "absolute" , pointerEvents : "none" , opacity : 0 , margin : 0 } } ) } ) ; AI . displayName = lq ; function kI ( e ) { return e ? "checked" : "unchecked" } var uq = xI , cq = TI ; function dq ( { className : e , size : t = "default" , ... n } ) { return p . jsx ( uq , { "data-slot" : "switch" , "data-size" : t , className : be ( "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6" , e ) , ... n , children : p . jsx ( cq , { "data-slot" : "switch-thumb" , className : be ( "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0" ) } ) } ) } var ud = "Checkbox" , [ pq ] = Rt ( ud ) , [ fq , vS ] = pq ( ud ) ; function gq ( e ) { const { _ _scopeCheckbox : t , checked : n , children : a , defaultChecked : o , disabled : s , form : u , name : c , onCheckedChange : f , required : g , value : h = "on" , internal _do _not _use _render : m } = e , [ S , v ] = Wt ( { prop : n , defaultProp : o ? ? ! 1 , onChange : f , caller : ud } ) , [ x , w ] = E . useState ( null ) , [ k , A ] = E . useState ( null ) , _ = E . useRef ( ! 1 ) , N = x ? ! ! u || ! ! x . closest ( "form" ) : ! 0 , L = { checked : S , disabled : s , setChecked : v , control : x , setControl : w , name : c , form : u , value : h , hasConsumerStoppedPropagationRef : _ , required : g , defaultChecked : fa ( o ) ? ! 1 : o , isFormControl : N , bubbleInput : k , setBubbleInput : A } ; return p . jsx ( fq , { scope : t , ... L , children : mq ( m ) ? m ( L ) : a } ) } var _I = "CheckboxTrigger" , NI = E . forwardRef ( ( { _ _scopeCheckbox : e , onKeyDown : t , onClick : n , ... a } , o ) => { const { control : s , value : u , disabled : c , checked : f , required : g , setControl : h , setChecked : m , hasConsumerStoppedPropagationRef : S , isFormControl : v , bubbleInput : x } = vS ( _I , e ) , w = _e ( o , h ) , k = E . useRef ( f ) ; return E . useEffect ( ( ) => { const A = s ? . form ; if ( A ) { const _ = ( ) => m ( k . current ) ; return A . addEventListener ( "reset" , _ ) , ( ) => A . removeEventListener ( "reset" , _ ) } } , [ s , m ] ) , p . jsx ( ve . button , { type : "button" , role : "checkbox" , "aria-checked" : fa ( f ) ? "mixed" : f , "aria-required" : g , "data-state" : LI ( f ) , "data-disabled" : c ? "" : void 0 , disabled : c , value : u , ... a , ref : w , onKeyDown : ge ( t , A => { A . key === "Enter" && A . preventDefault ( ) } ) , onClick : ge ( n , A => { m ( _ => fa ( _ ) ? ! 0 : ! _ ) , x && v && ( S . current = A . isPropagationStopped ( ) , S . current || A . stopPropagation ( ) ) } ) } ) } ) ; NI . displayName = _I ; var RI = E . forwardRef ( ( e , t ) => { const { _ _scopeCheckbox : n , name : a , checked : o , defaultChecked : s , required : u , disabled : c , value : f , onCheckedChange : g , form : h , ... m } = e ; return p . jsx ( gq , { _ _scopeCheckbox : n , checked : o , defaultChecked : s , disabled : c , required : u , onCheckedChange : g , name : a , form : h , value : f , internal _do _not _use _render : ( { isFormControl : S } ) => p . jsxs ( p . Fragment , { children : [ p . jsx ( NI , { ... m , ref : t , _ _scopeChec Line truncated
Defaulting to \ ` null \` . ` } var iq = vI , oq = SI ; function sq ( { className : e , value : t , ... n } ) { return p . jsx ( iq , { "data-slot" : "progress" , className : be ( "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full" , e ) , ... n , children : p . jsx ( oq , { "data-slot" : "progress-indicator" , className : "bg-primary h-full w-full flex-1 transition-all" , style : { transform : ` translateX(- ${ 100 - ( t || 0 ) } %) ` } } ) } ) } function dl ( e ) { const t = E . useRef ( { value : e , previous : e } ) ; return E . useMemo ( ( ) => ( t . current . value !== e && ( t . current . previous = t . current . value , t . current . value = e ) , t . current . previous ) , [ e ] ) } var ud = "Switch" , [ lq ] = It ( ud ) , [ uq , cq ] = lq ( ud ) , wI = E . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : n , name : a , checked : o , defaultChecked : s , required : u , disabled : c , value : f = "on" , onCheckedChange : g , form : h , ... m } = e , [ S , v ] = E . useState ( null ) , x = ke ( t , N => v ( N ) ) , w = E . useRef ( ! 1 ) , k = S ? h || ! ! S . closest ( "form" ) : ! 0 , [ A , _ ] = Xt ( { prop : o , defaultProp : s ? ? ! 1 , onChange : g , caller : ud } ) ; return p . jsxs ( uq , { scope : n , checked : A , disabled : c , children : [ p . jsx ( ye . button , { type : "button" , role : "switch" , "aria-checked" : A , "aria-required" : u , "data-state" : _I ( A ) , "data-disabled" : c ? "" : void 0 , disabled : c , value : f , ... m , ref : x , onClick : ge ( e . onClick , N => { _ ( L => ! L ) , k && ( w . current = N . isPropagationStopped ( ) , w . current || N . stopPropagation ( ) ) } ) } ) , k && p . jsx ( kI , { control : S , bubbles : ! w . current , name : a , value : f , checked : A , required : u , disabled : c , form : h , style : { transform : "translateX(-100%)" } } ) ] } ) } ) ; wI . displayName = ud ; var TI = "SwitchThumb" , AI = E . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : n , ... a } = e , o = cq ( TI , n ) ; return p . jsx ( ye . span , { "data-state" : _I ( o . checked ) , "data-disabled" : o . disabled ? "" : void 0 , ... a , ref : t } ) } ) ; AI . displayName = TI ; var dq = "SwitchBubbleInput" , kI = E . forwardRef ( ( { _ _scopeSwitch : e , control : t , checked : n , bubbles : a = ! 0 , ... o } , s ) => { const u = E . useRef ( null ) , c = ke ( u , s ) , f = dl ( n ) , g = Xs ( t ) ; return E . useEffect ( ( ) => { const h = u . current ; if ( ! h ) return ; const m = window . HTMLInputElement . prototype , v = Object . getOwnPropertyDescriptor ( m , "checked" ) . set ; if ( f !== n && v ) { const x = new Event ( "click" , { bubbles : a } ) ; v . call ( h , n ) , h . dispatchEvent ( x ) } } , [ f , n , a ] ) , p . jsx ( "input" , { type : "checkbox" , "aria-hidden" : ! 0 , defaultChecked : n , ... o , tabIndex : - 1 , ref : c , style : { ... o . style , ... g , position : "absolute" , pointerEvents : "none" , opacity : 0 , margin : 0 } } ) } ) ; kI . displayName = dq ; function _I ( e ) { return e ? "checked" : "unchecked" } var pq = wI , fq = AI ; function gq ( { className : e , size : t = "default" , ... n } ) { return p . jsx ( pq , { "data-slot" : "switch" , "data-size" : t , className : be ( "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6" , e ) , ... n , children : p . jsx ( fq , { "data-slot" : "switch-thumb" , className : be ( "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0" ) } ) } ) } var cd = "Checkbox" , [ mq ] = It ( cd ) , [ hq , vS ] = mq ( cd ) ; function bq ( e ) { const { _ _scopeCheckbox : t , checked : n , children : a , defaultChecked : o , disabled : s , form : u , name : c , onCheckedChange : f , required : g , value : h = "on" , internal _do _not _use _render : m } = e , [ S , v ] = Xt ( { prop : n , defaultProp : o ? ? ! 1 , onChange : f , caller : cd } ) , [ x , w ] = E . useState ( null ) , [ k , A ] = E . useState ( null ) , _ = E . useRef ( ! 1 ) , N = x ? ! ! u || ! ! x . closest ( "form" ) : ! 0 , L = { checked : S , disabled : s , setChecked : v , control : x , setControl : w , name : c , form : u , value : h , hasConsumerStoppedPropagationRef : _ , required : g , defaultChecked : fa ( o ) ? ! 1 : o , isFormControl : N , bubbleInput : k , setBubbleInput : A } ; return p . jsx ( hq , { scope : t , ... L , children : yq ( m ) ? m ( L ) : a } ) } var NI = "CheckboxTrigger" , CI = E . forwardRef ( ( { _ _scopeCheckbox : e , onKeyDown : t , onClick : n , ... a } , o ) => { const { control : s , value : u , disabled : c , checked : f , required : g , setControl : h , setChecked : m , hasConsumerStoppedPropagationRef : S , isFormControl : v , bubbleInput : x } = vS ( NI , e ) , w = ke ( o , h ) , k = E . useRef ( f ) ; return E . useEffect ( ( ) => { const A = s ? . form ; if ( A ) { const _ = ( ) => m ( k . current ) ; return A . addEventListener ( "reset" , _ ) , ( ) => A . removeEventListener ( "reset" , _ ) } } , [ s , m ] ) , p . jsx ( ye . button , { type : "button" , role : "checkbox" , "aria-checked" : fa ( f ) ? "mixed" : f , "aria-required" : g , "data-state" : MI ( f ) , "data-disabled" : c ? "" : void 0 , disabled : c , value : u , ... a , ref : w , onKeyDown : ge ( t , A => { A . key === "Enter" && A . preventDefault ( ) } ) , onClick : ge ( n , A => { m ( _ => fa ( _ ) ? ! 0 : ! _ ) , x && v && ( S . current = A . isPropagationStopped ( ) , S . current || A . stopPropagation ( ) ) } ) } ) } ) ; CI . displayName = NI ; var RI = E . forwardRef ( ( e , t ) => { const { _ _scopeCheckbox : n , name : a , checked : o , defaultChecked : s , required : u , disabled : c , value : f , onCheckedChange : g , form : h , ... m } = e ; return p . jsx ( bq , { _ _scopeCheckbox : n , checked : o , defaultChecked : s , disabled : c , required : u , onCheckedChange : g , name : a , form : h , value : f , internal _do _not _use _render : ( { isFormControl : S } ) => p . jsxs ( p . Fragment , { children : [ p . jsx ( CI , { ... m , ref : t , _ _scopeChec Line truncated
` );for(;t.length&&!t[0].trim();)t.shift();for(;t.length&&!t[t.length-1].trim();)t.pop();if(!t.length)return"";const n=Math.min(...t.filter(a=>a.trim().length>0).map(a=>a.match(/^ */)?.[0].length??0));return n===0?t.join( `
` ):t.map(a=>a.slice(n)).join( `
` )}function S Y({language:e,children:t}){const[n,a]=E.useState(!1),o=E.useCallback(async()=>{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),2e3)},[t]);return p.jsxs("div",{className:"relative group/code my-3 rounded-lg overflow-hidden",children:[p.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 bg-[#1e1e2e] text-xs text-gray-400",children:[p.jsx("span",{children:e||"code"}),p.jsx("button",{onClick:o,className:"flex items-center gap-1 hover:text-white transition-colors",children:n?"✓ Copied":"Copy"})]}),p.jsx(U 0,{style:q 6,language:e||"text",PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"13px"},children:t})]})}function x Y(e){const t=e.split( `
` )}function T Y({language:e,children:t}){const[n,a]=E.useState(!1),o=E.useCallback(async()=>{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),2e3)},[t]);return p.jsxs("div",{className:"relative group/code my-3 rounded-lg overflow-hidden",children:[p.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 bg-[#1e1e2e] text-xs text-gray-400",children:[p.jsx("span",{children:e||"code"}),p.jsx("button",{onClick:o,className:"flex items-center gap-1 hover:text-white transition-colors",children:n?"✓ Copied":"Copy"})]}),p.jsx(F 0,{style:K 6,language:e||"text",PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"13px"},children:t})]})}function A Y(e){const t=e.split( `
` );let n=!1,a=!1,o="",s=0;for(let u=0;u<t.length;u++){const c=t[u];if(/^[ \t ]* ` ` ` / . test ( c ) ) { n = ! n ; continue } if ( n ) continue ; const f = c . match ( /^([ \t]*)(\d+)\.[ \t]/ ) ; if ( f ) { const g = f [ 1 ] ; ! a || g !== o ? ( a = ! 0 , o = g , s = 1 ) : s ++ , t [ u ] = c . replace ( /^([ \t]*)\d+\./ , ` ${ g } ${ s } . ` ) } else c . trim ( ) === "" && a || a && /^[ \t]+\S/ . test ( c ) || a && ( a = ! 1 , s = 0 ) } return t . join ( `
` )}function l 1({content:e}){const t=x Y(e);return p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none prose-p:leading-relaxed prose-pre:p-0 prose-pre:bg-transparent",children:p.jsx(XC ,{remarkPlugins:[E0],components:{ul({children:n,ordered:a,start:o}){if(a){const s=o!=null?Number(o):1;return p.jsx("ol",{start:s,style:{listStyleType:"decimal",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})}return p.jsx("ul",{style:{listStyleType:"disc",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})},li({children:n}){return p.jsx("li",{style:{display:"list-item",marginBottom:"0.25rem"},children:n})},code({className:n,children:a,...o}){const s=/language-( \w +)/.exec(n||""),u=E Y(String(a));return!s&&!u.includes( `
` )?p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted text-sm font-mono",...o,children:a}):p.jsx(SY,{language:s?.[1],children:u})},a({href:n,children:a}){return p.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:a})},table({children:n}){return p.jsx("div",{className:"overflow-x-auto my-3",children:p.jsx("table",{className:"min-w-full text-sm",children:n})})}},children:t})})}function wY({message:e,sessionId:t}){return e.role==="user"?p.jsx("div",{className:"flex justify-end",children:p.jsxs("div",{className:"flex gap-3 max-w-[80%]",children:[p.jsx("div",{className:"rounded-2xl px-4 py-2.5 bg-primary text-primary-foreground",children:p.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.content})}),p.jsx(xc,{role:"user"})]})}):p.jsxs("div",{className:"flex gap-3 group",children:[p.jsx(xc,{role:"assistant"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[e.toolCalls&&e.toolCalls.length>0&&p.jsx("div",{className:"mb-2 space-y-1",children:e.toolCalls.map((a,o)=>p.jsx(s1,{toolCall:a},o))}),p.jsx(l1,{content:e.content}),e.elements&&e.elements.length>0&&p.jsx("div",{className:"mt-3 space-y-3",children:e.elements.map((a,o)=>p.jsx(_S,{element:a,className:"w-full"},o))}),e.images&&e.images.length>0&&p.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.images.map((a,o)=>p.jsx("img",{src:a,alt:"",className:"max-w-full rounded-md max-h-64 object-contain"},o))}),e.actions&&e.actions.length>0&&p.jsx(fY,{actions:e.actions,messageId:e.id,sessionId:t}),p.jsxs("div",{className:"mt-1 flex items-center gap-1 relative",children:[p.jsx(yY,{text:e.content}),p.jsx(vY,{messageId:e.id})]})]})]})}function TY({onSend:e,onCancel:t,isStreaming:n=!1,placeholder:a="Type a message...",enableFileUpload:o=!1}){const[s,u]=E.useState(""),[c,f]=E.useState([]),g=E.useRef(null),h=E.useRef(null),m=E.useCallback(()=>{const A=s.trim();(A||c.length>0)&&!n&&(e(A,c.length>0?c:void 0),u(""),f([]),g.current&&(g.current.style.height="auto"))},[s,c,n,e]),S=E.useCallback(A=>{const _=Array.from(A.target.files||[]);f(N=>[...N,..._]),h.current&&(h.current.value="")},[]),v=E.useCallback(()=>{h.current?.click()},[]),x=E.useCallback(A=>{f(_=>_.filter((N,L)=>L!==A))},[]),w=E.useCallback(A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),m())},[m]),k=E.useCallback(()=>{const A=g.current;A&&(A.style.height="auto",A.style.height= ` $ { Math . min ( A . scrollHeight , 200 ) } px ` )},[]);return p.jsx("div",{className:"p-4 pb-6",children:p.jsxs("div",{className:"max-w-3xl mx-auto",children:[p.jsxs("div",{className:"rounded-2xl border bg-background/80 backdrop-blur-sm shadow-lg",children:[c.length>0&&p.jsx("div",{className:"flex flex-wrap gap-1 px-4 pt-3",children:c.map((A,_)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded-lg text-xs",children:[p.jsx("span",{className:"truncate max-w-[100px]",children:A.name}),p.jsx("button",{type:"button",onClick:()=>x(_),className:"hover:text-destructive",children:"× "})]}, ` $ { A . name } - $ { _ } ` ))}),p.jsxs("div",{className:"flex items-end gap-2 p-2",children:[o&&p.jsxs(p.Fragment,{children:[p.jsx("input",{ref:h,type:"file",multiple:!0,onChange:S,className:"hidden",accept:"image/*,audio/*,video/*,.pdf,.doc,.docx,.txt,.csv,.json"}),p.jsx("button",{type:"button",onClick:v,className:"p-2 rounded-xl hover:bg-accent text-muted-foreground transition-colors",title:"Attach file",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"})})})]}),p.jsx("textarea",{ref:g,value:s,onChange:A=>u(A.target.value),onKeyDown:w,onInput:k,placeholder:a,disabled:n,rows:1,className:"flex-1 resize-none bg-transparent px-3 py-2.5 text-sm focus:outline-none disabled:opacity-50 placeholder:text-muted-foreground/60",style:{maxHeight:"200px"}}),n?p.jsx("button",{type:"button",onClick:t,className:"p-2 rounded-xl bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",title:"Stop",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}):p.jsx("button",{type:"button",onClick:m,disabled:!s.trim(),className:"p-2 rounded-xl bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",title:"Send",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M5 12h14M12 5l7 7-7 7"})})})]})]}),p.jsx("p",{className:"text-[10px] text-center text-muted-foreground/50 mt-2",children:"Press Enter to send, Shift+Enter for new line"
Line truncated
` ),m=E.useCallback(async()=>{!n.trim()||s||f(n)},[n,s,f]),S=E.useCallback(()=>{a("")},[]);return p.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[p.jsxs("header",{className:"border-b px-6 py-4 flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-semibold",children:t||"Playground"}),p.jsx("div",{className:"flex items-center gap-2",children:p.jsx("button",{onClick:S,className:"px-3 py-1.5 text-sm rounded-md border hover:bg-accent",children:"Clear"})})]}),p.jsxs("div",{className:"flex-1 flex",children:[p.jsxs("div",{className:"flex-1 flex flex-col border-r",children:[p.jsx("div",{className:"px-4 py-2 border-b bg-muted/30",children:p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Input"})}),p.jsx("div",{className:"flex-1 p-4",children:p.jsx("textarea",{value:n,onChange:v=>a(v.target.value),placeholder:"Enter your prompt here...",className:"w-full h-full resize-none bg-transparent border rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-primary"})}),p.jsx("div",{className:"px-4 py-3 border-t flex justify-end gap-2",children:s?p.jsx("button",{onClick:g,className:"px-4 py-2 bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90",children:"Stop"}):p.jsx("button",{onClick:m,disabled:!n.trim(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed",children:"Submit"})})]}),p.jsxs("div",{className:"flex-1 flex flex-col",children:[p.jsxs("div",{className:"px-4 py-2 border-b bg-muted/30 flex items-center justify-between",children:[p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),s&&p.jsx("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Processing..."})]}),p.jsx("div",{className:"flex-1 p-4 overflow-auto",children:h?p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none whitespace-pre-wrap",children:h}):p.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:"Output will appear here"})})]})]}),e?.features&&p.jsxs("div",{className:"border-t px-6 py-3 bg-muted/20 flex items-center gap-4 text-sm text-muted-foreground",children:[e.features.streaming&&p.jsx("span",{children:"✓ Streaming"}),e.features.reasoning&&p.jsx("span",{children:"✓ Reasoning"}),e.features.tools&&p.jsx("span",{children:"✓ Tools"})]})]})}function cW(e,t){const n=e.replace(/^ \/ +| \/ + $ /g,""),o=t.replace(/^ \/ +| \/ + $ /g,"").replace(/ \* \* /g,"{{GLOB}}").replace(/ \* /g,"[^/]+").replace(/ \{ \{ GLOB \} \} /g,".*");return new RegExp( ` ^ $ { o } $ ` ).test(n)}function dW(e,t,n){const o=[...t.routes??[]].sort((s,u)=>(u.priority??0)-(s.priority??0));for(const s of o){if(!cW(e,s.pattern))continue;const u=n[s.template];return u?{template:s.template,layout:u.layout??"ThreeColumnLayout",slots:u.slots??{},slotOverrides:s.slotOverrides}:(console.warn( ` Template "${s.template}" not found ` ),null)}return null}function pW(e,t){if(t)return t.slotOverrides&&e in t.slotOverrides?t.slotOverrides[e]:t.slots[e]}function fW(e){return pW("right",e)!==null}function Xu({enabled:e}){return e?p.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 z-50 bg-primary text-primary-foreground px-4 py-2 rounded-md text-sm font-medium",children:"Skip to main content"}):null}function gW(){const[e,t]=E.useState({}),[n,a]=E.useState({}),[o,s]=E.useState({}),[u,c]=E.useState(!0),[f,g]=E.useState(null),[h,m]=E.useState(null),[S,v]=E.useState(""),[x,w]=E.useState(()=>on(window.location.pathname)),[k,A]=E.useState(!1),_=(G,Y)=>{const ee=on(Y),C=j=>{for(const M of j){if(on(M.path??"")===ee)return M;if(M.children){const oe=C(M.children);if(oe)return oe}}return null};return G.items?C(G.items):null},N=G=>(G.seo?.siteUrl||window.location.origin).replace(/ \/ + $ /,""),L=(G,Y)=>{const ee=Y.seo?.titleTemplate||"%s | %s",C=Y.site?.title||"Documentation";if(ee.includes("%s")){let j=ee.replace("%s",G);return j.includes("%s")&&(j=j.replace("%s",C)),j}return ` $ { G } | $ { C } ` },U=(G,Y,ee,C,j)=>{const M=C??e,I=on(Y),oe=L(G,M),te=ee|| ` $ { G } - $ { M . site ? . description || "" } ` ,ie= ` $ { N ( M ) } $ { I } ` ;document.title=oe;let se=document.querySelector('link[rel="canonical"]');se||(se=document.createElement("link"),se.rel="canonical",document.head.appendChild(se)),se.href=ie;let he=document.querySelector('meta[name="description"]');he||(he=document.createElement("meta"),he.name="description",document.head.appendChild(he)),he.content=te;const pe=(ye,Le)=>{let at=document.querySelector(ye);return at||(at=Le(),document.head.appendChild(at)),at};if(pe('meta[name="robots"]',()=>{const ye=document.createElement("meta");return ye.name="robots",ye}).content=j?"noindex, nofollow":"index, follow",pe('meta[property="og:title"]',()=>{const ye=document.createElement("meta");return ye.setAttribute("property","og:title"),ye}).content=oe,pe('meta[property="og:description"]',()=>{const ye=docu
Line truncated
` )}function u 1({content:e}){const t=A Y(e);return p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none prose-p:leading-relaxed prose-pre:p-0 prose-pre:bg-transparent",children:p.jsx(XR ,{remarkPlugins:[E0],components:{ul({children:n,ordered:a,start:o}){if(a){const s=o!=null?Number(o):1;return p.jsx("ol",{start:s,style:{listStyleType:"decimal",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})}return p.jsx("ul",{style:{listStyleType:"disc",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})},li({children:n}){return p.jsx("li",{style:{display:"list-item",marginBottom:"0.25rem"},children:n})},code({className:n,children:a,...o}){const s=/language-( \w +)/.exec(n||""),u=w Y(String(a));return!s&&!u.includes( `
` )?p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted text-sm font-mono",...o,children:a}):p.jsx(TY,{language:s?.[1],children:u})},a({href:n,children:a}){return p.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:a})},table({children:n}){return p.jsx("div",{className:"overflow-x-auto my-3",children:p.jsx("table",{className:"min-w-full text-sm",children:n})})}},children:t})})}function kY({message:e,sessionId:t}){return e.role==="user"?p.jsx("div",{className:"flex justify-end",children:p.jsxs("div",{className:"flex gap-3 max-w-[80%]",children:[p.jsx("div",{className:"rounded-2xl px-4 py-2.5 bg-primary text-primary-foreground",children:p.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.content})}),p.jsx(xc,{role:"user"})]})}):p.jsxs("div",{className:"flex gap-3 group",children:[p.jsx(xc,{role:"assistant"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[e.toolCalls&&e.toolCalls.length>0&&p.jsx("div",{className:"mb-2 space-y-1",children:e.toolCalls.map((a,o)=>p.jsx(l1,{toolCall:a},o))}),p.jsx(u1,{content:e.content}),e.elements&&e.elements.length>0&&p.jsx("div",{className:"mt-3 space-y-3",children:e.elements.map((a,o)=>p.jsx(_S,{element:a,className:"w-full"},o))}),e.images&&e.images.length>0&&p.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.images.map((a,o)=>p.jsx("img",{src:a,alt:"",className:"max-w-full rounded-md max-h-64 object-contain"},o))}),e.actions&&e.actions.length>0&&p.jsx(hY,{actions:e.actions,messageId:e.id,sessionId:t}),p.jsxs("div",{className:"mt-1 flex items-center gap-1 relative",children:[p.jsx(SY,{text:e.content}),p.jsx(xY,{messageId:e.id})]})]})]})}function _Y({onSend:e,onCancel:t,isStreaming:n=!1,placeholder:a="Type a message...",enableFileUpload:o=!1}){const[s,u]=E.useState(""),[c,f]=E.useState([]),g=E.useRef(null),h=E.useRef(null),m=E.useCallback(()=>{const A=s.trim();(A||c.length>0)&&!n&&(e(A,c.length>0?c:void 0),u(""),f([]),g.current&&(g.current.style.height="auto"))},[s,c,n,e]),S=E.useCallback(A=>{const _=Array.from(A.target.files||[]);f(N=>[...N,..._]),h.current&&(h.current.value="")},[]),v=E.useCallback(()=>{h.current?.click()},[]),x=E.useCallback(A=>{f(_=>_.filter((N,L)=>L!==A))},[]),w=E.useCallback(A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),m())},[m]),k=E.useCallback(()=>{const A=g.current;A&&(A.style.height="auto",A.style.height= ` $ { Math . min ( A . scrollHeight , 200 ) } px ` )},[]);return p.jsx("div",{className:"p-4 pb-6",children:p.jsxs("div",{className:"max-w-3xl mx-auto",children:[p.jsxs("div",{className:"rounded-2xl border bg-background/80 backdrop-blur-sm shadow-lg",children:[c.length>0&&p.jsx("div",{className:"flex flex-wrap gap-1 px-4 pt-3",children:c.map((A,_)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded-lg text-xs",children:[p.jsx("span",{className:"truncate max-w-[100px]",children:A.name}),p.jsx("button",{type:"button",onClick:()=>x(_),className:"hover:text-destructive",children:"× "})]}, ` $ { A . name } - $ { _ } ` ))}),p.jsxs("div",{className:"flex items-end gap-2 p-2",children:[o&&p.jsxs(p.Fragment,{children:[p.jsx("input",{ref:h,type:"file",multiple:!0,onChange:S,className:"hidden",accept:"image/*,audio/*,video/*,.pdf,.doc,.docx,.txt,.csv,.json"}),p.jsx("button",{type:"button",onClick:v,className:"p-2 rounded-xl hover:bg-accent text-muted-foreground transition-colors",title:"Attach file",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"})})})]}),p.jsx("textarea",{ref:g,value:s,onChange:A=>u(A.target.value),onKeyDown:w,onInput:k,placeholder:a,disabled:n,rows:1,className:"flex-1 resize-none bg-transparent px-3 py-2.5 text-sm focus:outline-none disabled:opacity-50 placeholder:text-muted-foreground/60",style:{maxHeight:"200px"}}),n?p.jsx("button",{type:"button",onClick:t,className:"p-2 rounded-xl bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",title:"Stop",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}):p.jsx("button",{type:"button",onClick:m,disabled:!s.trim(),className:"p-2 rounded-xl bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",title:"Send",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M5 12h14M12 5l7 7-7 7"})})})]})]}),p.jsx("p",{className:"text-[10px] text-center text-muted-foreground/50 mt-2",children:"Press Enter to send, Shift+Enter for new line"
Line truncated
` ),m=E.useCallback(async()=>{!n.trim()||s||f(n)},[n,s,f]),S=E.useCallback(()=>{a("")},[]);return p.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[p.jsxs("header",{className:"border-b px-6 py-4 flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-semibold",children:t||"Playground"}),p.jsx("div",{className:"flex items-center gap-2",children:p.jsx("button",{onClick:S,className:"px-3 py-1.5 text-sm rounded-md border hover:bg-accent",children:"Clear"})})]}),p.jsxs("div",{className:"flex-1 flex",children:[p.jsxs("div",{className:"flex-1 flex flex-col border-r",children:[p.jsx("div",{className:"px-4 py-2 border-b bg-muted/30",children:p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Input"})}),p.jsx("div",{className:"flex-1 p-4",children:p.jsx("textarea",{value:n,onChange:v=>a(v.target.value),placeholder:"Enter your prompt here...",className:"w-full h-full resize-none bg-transparent border rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-primary"})}),p.jsx("div",{className:"px-4 py-3 border-t flex justify-end gap-2",children:s?p.jsx("button",{onClick:g,className:"px-4 py-2 bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90",children:"Stop"}):p.jsx("button",{onClick:m,disabled:!n.trim(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed",children:"Submit"})})]}),p.jsxs("div",{className:"flex-1 flex flex-col",children:[p.jsxs("div",{className:"px-4 py-2 border-b bg-muted/30 flex items-center justify-between",children:[p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),s&&p.jsx("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Processing..."})]}),p.jsx("div",{className:"flex-1 p-4 overflow-auto",children:h?p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none whitespace-pre-wrap",children:h}):p.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:"Output will appear here"})})]})]}),e?.features&&p.jsxs("div",{className:"border-t px-6 py-3 bg-muted/20 flex items-center gap-4 text-sm text-muted-foreground",children:[e.features.streaming&&p.jsx("span",{children:"✓ Streaming"}),e.features.reasoning&&p.jsx("span",{children:"✓ Reasoning"}),e.features.tools&&p.jsx("span",{children:"✓ Tools"})]})]})}function fW(e,t){const n=e.replace(/^ \/ +| \/ + $ /g,""),o=t.replace(/^ \/ +| \/ + $ /g,"").replace(/ \* \* /g,"{{GLOB}}").replace(/ \* /g,"[^/]+").replace(/ \{ \{ GLOB \} \} /g,".*");return new RegExp( ` ^ $ { o } $ ` ).test(n)}function gW(e,t,n){const o=[...t.routes??[]].sort((s,u)=>(u.priority??0)-(s.priority??0));for(const s of o){if(!fW(e,s.pattern))continue;const u=n[s.template];return u?{template:s.template,layout:u.layout??"ThreeColumnLayout",slots:u.slots??{},slotOverrides:s.slotOverrides}:(console.warn( ` Template "${s.template}" not found ` ),null)}return null}function mW(e,t){if(t)return t.slotOverrides&&e in t.slotOverrides?t.slotOverrides[e]:t.slots[e]}function hW(e){return mW("right",e)!==null}function bW(e){return e.title.trim().toLowerCase()}function S1(e){const t=[];e.path&&t.push(e.path.toLowerCase());for(const n of e.children??[])t.push(...S1(n));return t}function yW(e,t){const n=t.replace(/^ \/ +/,"").toLowerCase(),a=e.replace(/ \/ + $ /,"").toLowerCase();if(n==="index")return a.endsWith("/index")||a==="/docs";const o= ` / $ { n } ` ;return a.endsWith(o)||a.endsWith( ` $ { o } / index ` )}function vW(e,t){if(!t.groups?.length)return!1;const n=bW(e),a=S1(e);for(const o of t.groups){const s=o.group.toLowerCase();if(n===s)return!0;if(o.prefix){const u=o.prefix.toLowerCase();if(n===u||n===u.replace(/-/g," "))return!0;const c= ` / docs / $ { u } ` ;if(a.some(f=>f===c||f.startsWith( ` $ { c } / ` )))return!0}if(o.pages?.some(u=>a.some(c=>yW(c,u)))||!e.children?.length&&o.pages?.some(u=>{const c=u.split("/").pop()?.replace(/-/g," ")??"";return n===c||n===u.toLowerCase()}))return!0}return!1}function EW(e,t){const n=t.toLowerCase();let a=-1,o=0;for(let s=0;s<e.length;s++){const u=e[s];for(const c of u.groups??[]){if(!c.prefix)continue;const f= ` / $ { c . prefix . toLowerCase ( ) } / ` ;n.includes(f)&&f.length>o&&(a=s,o=f.length)}}return a>=0?a:0}function SW(e,t){return t?e.filter(n=>vW(n,t)):e}function Xu({enabled:e}){return e?p.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 z-50 bg-primary text-primary-foreground px-4 py-2 rounded-md text-sm font-medium",children:"Skip to main content"}):null}function xW(){const[e,t]=E.useState({}),[n,a]=E.useState({}),[o,s]=E.useState({}),[u,c]=E.useState(!0),[f,g]=E.useState(null),[h,m]=E.useState(null),[S,v]=E.useState(""),[x,w]=E.useState(()=>ln(window.location.pathname)),[k,A]=E.useState(!1),[_,N]=E.useState(0),L=e.navigation?.tabs??[],U=E.useMemo(()=>L.length?{items:SW(n.items??[],L[_])}:n,[n,L,_]);E.useEffect(()=>{L.length&&N(EW(L,x))},[x,L]);const D=(M,j)=>{con
Line truncated