const c=t=>t!=null&&!t.match(/^[a-z]+:\/\//)&&!t.startsWith("//")&&!t.startsWith("mailto:"),a=t=>t!=null&&(t.startsWith("/assets/")||!!t.match(/\.\w{3,4}($|\?)/g));function d(t){const e=r(t);return u(e==="."?"":e)}function u(t){return t.startsWith("/")?t:`/${t}`}function p(t){return t.endsWith("/")?t:`${t}/`}function r(t){return t.endsWith("/")&&t!=="/"?t.substring(0,t.length-1):t}function o(t){return t.startsWith("/")?t.substring(1):t}function x(t){return t?.$$mdtype==="Function"}function f(t){return t?.$$mdtype==="Tag"}function n(t){return t?.$$mdtype==="Node"}function g(t){return n(t)&&t.tag==="if"}function l(t){return n(t)&&t.type==="text"}function h(t){return n(t)&&t.type==="list"}function m(t){return n(t)&&["list","text","code","blockquote","paragraph","table","fence"].includes(t.type)}function $(t){return n(t)&&t.type==="code"}function y(t){return t?.$$mdtype==="Variable"}const W=t=>getComputedStyle(document.documentElement).getPropertyValue(t);function P(t){return t=t.split("?")[0].split("#")[0],t.endsWith("/")&&(t=r(t)),t.startsWith("/")||(t="/"+t),decodeURI(t)}function b(t){return t.replace(/\0/g,"")}function L(t){return["string","boolean","number"].includes(typeof t)}function N(t,e,i){return t===1?e:i}function S(t,e){return e=r(o(s(e))),t=r(o(s(t))),t===e||t.startsWith(e+"/")}function s(t){return/^\\\\\?\\/.test(t)?t:t.replace(/\\/g,"/")}const T=(t,e,i)=>t&&e?`${t} ${e.charAt(0)}`:i;export{u as addLeadingSlash,p as addTrailingSlash,T as generateName,W as getCssPropertyValue,a as isAssetsLink,$ as isCodeNode,g as isConditionalNode,m as isContentNode,x as isFunction,h as isListNode,c as isLocalLink,n as isNode,S as isPathInFolder,L as isPrimitive,f as isTag,l as isTextNode,y as isVariable,d as normalizePathPrefix,P as normalizeRouteSlug,N as pluralize,o as removeLeadingSlash,r as removeTrailingSlash,b as sanitizePath,s as slash};
