MCPcopy Create free account
hub / github.com/devflowinc/trieve / parse

Function parse

frontends/dashboard/public/mintlify.js:280–285  ·  view source on GitHub ↗
(k,g,U)

Source from the content-addressed store, hash-verified

278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const kk=zd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ad=I.createContext({isWidgetOpen:!1,setIsWidgetOpen:c=>{},query:"",queryCount:0,setQueryCount:c=>{}});Ad.displayName="WidgetContext";function zS(c){var p,m,S="";if(typeof c=="string"||typeof c=="number")S+=c;else if(typeof c=="object")if(Array.isArray(c)){var x=c.length;for(p=0;p<x;p++)c[p]&&(m=zS(c[p]))&&(S&&(S+=" "),S+=m)}else for(m in c)c[m]&&(S&&(S+=" "),S+=m);return S}function _k(){for(var c,p,m=0,S="",x=arguments.length;m<x;m++)(c=arguments[m])&&(p=zS(c))&&(S&&(S+=" "),S+=p);return S}function ga(...c){return _k(c)}const Dk=()=>le.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",children:[le.jsx("mask",{id:"a",fill:"#fff",children:le.jsx("path",{d:"M5 1.5h2a4 4 0 1 1 0 8v1.75c-2.5-1-6-2.5-6-5.75a4 4 0 0 1 4-4Zm1 7h1a3 3 0 0 0 0-6H5a3 3 0 0 0-3 3c0 1.805 1.231 2.983 4 4.24V8.5Z"})}),le.jsx("path",{fill:"currentColor",d:"M7 9.5V8H5.5v1.5H7Zm0 1.75-.557 1.393 2.057.822V11.25H7ZM6 8.5V7H4.5v1.5H6Zm0 1.24-.62 1.366 2.12.962V9.74H6ZM5 3h2V0H5v3Zm2 0a2.5 2.5 0 0 1 2.5 2.5h3A5.5 5.5 0 0 0 7 0v3Zm2.5 2.5A2.5 2.5 0 0 1 7 8v3a5.5 5.5 0 0 0 5.5-5.5h-3Zm-4 4v1.75h3V9.5h-3Zm2.057.357c-1.266-.506-2.582-1.065-3.584-1.83C3.003 7.286 2.5 6.492 2.5 5.5h-3c0 2.257 1.246 3.838 2.652 4.911 1.373 1.047 3.057 1.738 4.29 2.232l1.115-2.786ZM2.5 5.5A2.5 2.5 0 0 1 5 3V0A5.5 5.5 0 0 0-.5 5.5h3ZM6 10h1V7H6v3Zm1 0a4.5 4.5 0 0 0 4.5-4.5h-3A1.5 1.5 0 0 1 7 7v3Zm4.5-4.5A4.5 4.5 0 0 0 7 1v3a1.5 1.5 0 0 1 1.5 1.5h3ZM7 1H5v3h2V1ZM5 1A4.5 4.5 0 0 0 .5 5.5h3A1.5 1.5 0 0 1 5 4V1ZM.5 5.5c0 1.308.47 2.423 1.383 3.367.852.883 2.06 1.586 3.497 2.239l1.24-2.732c-1.332-.605-2.124-1.12-2.58-1.59-.395-.41-.54-.787-.54-1.284h-3Zm7 4.24V8.5h-3v1.24h3Z",mask:"url(#a)"})]}),Ok=()=>le.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",children:[le.jsx("g",{clipPath:"url(#a)",children:le.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.5.604-.66 1.237-1.236.659 1.237.66.66 1.236.659-1.237 1.236-.659-1.236-.66L8.5.605ZM2.667 4.667.167 6l2.5 1.333L4 9.833l1.334-2.5L7.834 6l-2.5-1.333L4 2.167l-1.333 2.5ZM4 5.354l-.224.421L3.354 6l.422.225.224.42.225-.42L4.646 6l-.421-.225L4 5.355ZM6.604 9l1.563.833L9 11.396l.834-1.563L11.396 9l-1.562-.833L9 6.604l-.833 1.563L6.604 9Z",clipRule:"evenodd"})}),le.jsx("defs",{children:le.jsx("clipPath",{id:"a",children:le.jsx("path",{fill:"currentColor",d:"M0 0h12v12H0z"})})})]}),Lk=()=>le.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsx("path",{d:"M4.21551 5.83755C4.22668 4.31388 4.83093 2.85449 5.90011 1.76888H5.89813L1.77035 5.89665H1.77232C1.75695 5.90877 1.74246 5.92191 1.72897 5.93607C0.725098 6.93862 0.116462 8.26962 0.0147611 9.68473C-0.086939 11.0998 0.325119 12.5042 1.17531 13.64L5.34447 9.47081L5.38784 9.42942C4.61078 8.39462 4.19852 7.13151 4.21551 5.83755Z",fill:"#0C8C5E"}),le.jsx("path",{d:"M14.2385 10.1092C13.4484 10.8834 12.4568 11.4201 11.3764 11.6581C10.2962 11.896 9.17076 11.8256 8.12855 11.4549C7.57287 11.2577 7.05062 10.9766 6.57988 10.6215L6.53655 10.6648L2.36739 14.832C3.50366 15.6801 4.9072 16.0909 6.32143 15.9892C7.73566 15.8875 9.06601 15.2802 10.0693 14.2784L10.1107 14.237L14.2385 10.1092Z",fill:"#0C8C5E"}),le.jsx("path",{d:"M16.0079 5.89697V0.272191C16.0079 0.121781 15.886 -0.000149635 15.7356 -0.000149635H10.1108C9.33627 -0.000925805 8.56926 0.151326 7.85378 0.447864C7.13831 0.744402 6.48847 1.17938 5.94158 1.72781L5.90022 1.76919C5.17937 2.50098 4.66366 3.40945 4.40476 4.40349C4.87343 4.28213 5.35506 4.21796 5.83915 4.21237C7.13314 4.19712 8.39591 4.60996 9.43101 5.38667C10.3613 6.08043 11.0654 7.03406 11.4545 8.12737C11.8511 9.24482 11.9032 10.4556 11.6043 11.603C12.5985 11.3445 13.507 10.8287 14.2385 10.1075L14.2799 10.0681C14.8286 9.521 15.2637 8.87086 15.5602 8.15501C15.8568 7.4392 16.0089 6.67181 16.0079 5.89697Z",fill:"#18E299"})]}),Mk=()=>le.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsx("path",{d:"M4.21463 5.83623C4.22582 4.31302 4.82989 2.85407 5.89874 1.76878H5.89677L1.77022 5.89532H1.77219C1.75683 5.90741 1.74235 5.92058 1.72886 5.93472C0.72529 6.93698 0.116838 8.26754 0.0151684 9.68223C-0.0865009 11.0969 0.325433 12.5008 1.17537 13.6363L5.34328 9.46838L5.38661 9.42701C4.60979 8.39253 4.19766 7.1298 4.21463 5.83623V5.83623Z",fill:"currentColor"}),le.jsx("path",{d:"M14.2346 10.1066C13.4448 10.8806 12.4534 11.4171 11.3734 11.655C10.2935 11.8929 9.1684 11.8225 8.1265 11.4519C7.57099 11.2547 7.04889 10.9737 6.57831 10.6187L6.53497 10.6621L2.36707 14.828C3.50299 15.6758 4.90613 16.0864 6.31992 15.9848C7.7337 15.8832 9.06368 15.2761 10.0667 14.2745L10.108 14.2331L14.2346 10.1066Z",fill:"currentColor"}),le.jsx("path",{d:"M16.0033 5.89534V0.206825C16.0033 0.0926004 15.9107 2.94995e-06 15.7965 2.94995e-06H10.108C9.33374 -0.00077274 8.56696 0.151435 7.8517 0.447882C7.13644 0.74433 6.4868 1.17917 5.94009 1.72744L5.89873 1.7688C5.17811 2.50037 4.66253 3.40857 4.40372 4.4023C4.87224 4.28098 5.35372 4.21682 5.83767 4.21124C7.13128 4.19602 8.39366 4.60873 9.42845 5.38519C10.3585 6.07874 11.0623 7.03209 11.4513 8.12505C11.8478 9.24217 11.9 10.4525 11.601 11.5996C12.5949 11.3412 13.5033 10.8256 14.2345 10.1046L14.2759 10.0652C14.8244 9.51828 15.2594 8.86832 15.5558 8.1527C15.8523 7.43709 16.0044 6.66993 16.0033 5.89534Z",fill:"currentColor"})]}),Ud={Ready:()=>le.jsxs("svg",{width:"20",height:"20",className:"mintlify-text-primary dark:mintlify-text-primary-light",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsx("path",{opacity:"0.7",d:"M11.5 2.5L12.1422 1.21554C12.2896 0.920722 12.7104 0.920722 12.8578 1.21554L13.5 2.5L14.7845 3.14223C15.0793 3.28964 15.0793 3.71036 14.7845 3.85777L13.5 4.5L12.8578 5.78446C12.7104 6.07928 12.2896 6.07928 12.1422 5.78446L11.5 4.5L10.2155 3.85777C9.92072 3.71036 9.92072 3.28964 10.2155 3.14223L11.5 2.5Z",fill:"currentColor"}),le.jsx("path",{opacity:"0.7",d:"M12.5 12.5L13.1286 10.9285C13.2627 10.5932 13.7373 10.5932 13.8714 10.9285L14.5 12.5L16.0715 13.1286C16.4068 13.2627 16.4068 13.7373 16.0715 13.8714L14.5 14.5L13.8714 16.0715C13.7373 16.4068 13.2627 16.4068 13.1286 16.0715L12.5 14.5L10.9285 13.8714C10.5932 13.7373 10.5932 13.2627 10.9285 13.1286L12.5 12.5Z",fill:"currentColor"}),le.jsx("path",{d:"M4 7L5.59751 3.80498C5.76334 3.47331 6.23666 3.47331 6.40249 3.80498L8 7L11.195 8.59751C11.5267 8.76334 11.5267 9.23666 11.195 9.40249L8 11L6.40249 14.195C6.23666 14.5267 5.76334 14.5267 5.59751 14.195L4 11L0.804984 9.40249C0.473313 9.23666 0.473312 8.76334 0.804984 8.59751L4 7Z",fill:"currentColor"})]}),Generating:()=>le.jsxs("div",{className:"mintlify-relative",children:[le.jsxs("svg",{className:"mintlify-size-5 mintlify-text-primary dark:mintlify-text-primary-light mintlify-animate-spin mintlify-fill-primary dark:mintlify-fill-primary-light",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[le.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",className:"mintlify-opacity-25",fill:"currentColor"}),le.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),le.jsx("svg",{className:"mintlify-absolute mintlify-top-1/2 mintlify--translate-y-1/2 mintlify-left-1/2 mintlify--translate-x-1/2 mintlify-text-primary dark:mintlify-text-primary-light",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M3.5 3.5L4.63234 0.857869C4.77087 0.534626 5.22913 0.534626 5.36766 0.857869L6.5 3.5L9.14213 4.63234C9.46537 4.77087 9.46537 5.22913 9.14213 5.36766L6.5 6.5L5.36766 9.14213C5.22913 9.46537 4.77087 9.46537 4.63234 9.14213L3.5 6.5L0.857869 5.36766C0.534626 5.22913 0.534626 4.77087 0.857869 4.63234L3.5 3.5Z",fill:"currentColor"})})]}),Generated:()=>le.jsx("svg",{width:"20",height:"20",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17ZM13.0805 6.97495C13.3428 6.65437 13.2955 6.18185 12.9749 5.91955C12.6543 5.65726 12.1818 5.70451 11.9195 6.02509L7.94432 10.8837L6.03033 8.96969C5.73744 8.6768 5.26256 8.6768 4.96967 8.96969C4.67678 9.26259 4.67678 9.73746 4.96967 10.0304L7.46967 12.5304C7.6195 12.6802 7.82573 12.7596 8.03736 12.7491C8.24899 12.7385 8.44629 12.639 8.58047 12.475L13.0805 6.97495Z",fill:"currentColor"})}),Error:()=>le.jsx("svg",{width:"20",height:"20",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17ZM9 4.75C9.41421 4.75 9.75 5.08579 9.75 5.5V9C9.75 9.41421 9.41421 9.75 9 9.75C8.58579 9.75 8.25 9.41421 8.25 9V5.5C8.25 5.08579 8.58579 4.75 9 4.75ZM10 11.5C10 12.0523 9.55229 12.5 9 12.5C8.44771 12.5 8 12.0523 8 11.5C8 10.9477 8.44771 10.5 9 10.5C9.55229 10.5 10 10.9477 10 11.5Z",fill:"currentColor"})}),Retryable:()=>le.jsx("svg",{width:"20",height:"20",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75681 3.09907L1.17651 13.0196C0.426579 14.3528 1.39001 16.0001 2.91966 16.0001H14.0803C15.6099 16.0001 16.5733 14.3528 15.8234 13.0196L10.2431 3.09907C9.47851 1.73976 7.52142 1.73976 6.75681 3.09907ZM8.49996 5.75013C8.91418 5.75013 9.24996 6.08592 9.24996 6.50013V10.0001C9.24996 10.4143 8.91418 10.7501 8.49996 10.7501C8.08575 10.7501 7.74996 10.4143 7.74996 10.0001V6.50013C7.74996 6.08592 8.08575 5.75013 8.49996 5.75013ZM9.49996 12.5001C9.49996 13.0524 9.05225 13.5001 8.49996 13.5001C7.94768 13.5001 7.49996 13.0524 7.49996 12.5001C7.49996 11.9478 7.94768 11.5001 8.49996 11.5001C9.05225 11.5001 9.49996 11.9478 9.49996 12.5001Z",fill:"currentColor"})}),Retry:()=>le.jsx(Ck,{size:12,absoluteStrokeWidth:!0,strokeWidth:1.5})},Nk=()=>le.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:le.jsx("path",{d:"M2.25 9.7499H6.75V8.2499H2.25V1.38416C2.25 1.17705 2.41789 1.00916 2.625 1.00916C2.68819 1.00916 2.75035 1.02512 2.80572 1.05557L16.6525 8.67132C16.834 8.77115 16.9003 8.99915 16.8005 9.18065C16.7662 9.24297 16.7149 9.29427 16.6525 9.32855L2.80572 16.9443C2.62425 17.0441 2.39623 16.9779 2.29642 16.7964C2.26597 16.741 2.25 16.6789 2.25 16.6157V9.7499Z",fill:"currentColor"})}),AS=({buttonIcon:c,iconOnly:p,label:m})=>{const{isWidgetOpen:S,setIsWidgetOpen:x}=I.useContext(Ad),N=()=>{if(S)return le.jsx(kk,{size:12});switch(c){case"chat":return le.jsx(Dk,{});case"sparkles":return le.jsx(Ok,{});case"mintlify":return le.jsxs(le.Fragment,{children:[le.jsx("div",{className:"group-hover:mintlify-hidden",children:le.jsx(Lk,{})}),le.jsx("div",{className:"mintlify-hidden group-hover:mintlify-block",children:le.jsx(Mk,{})})]})}};return le.jsxs("button",{className:ga("mintlify-group mintlify-outline-none mintlify-fixed mintlify-z-[999] mintlify-bottom-4 mintlify-right-4 mintlify-flex mintlify-items-center mintlify-px-3 mintlify-py-2.5 mintlify-rounded-full mintlify-font-medium mintlify-text-sm","mintlify-bg-white mintlify-text-gray-950 hover:mintlify-bg-primary hover:mintlify-text-white mintlify-shadow-button","mintlify-border mintlify-border-gray-200 dark:mintlify-bg-gray-950 dark:mintlify-text-white dark:hover:mintlify-text-gray-950 dark:hover:mintlify-bg-primary-light dark:mintlify-border-gray-800",c==="mintlify"&&"mintlify-gap-1",p&&"mintlify-py-3"),onClick:()=>x(!S),children:[le.jsx(N,{}),!p&&le.jsx("p",{className:"mintlify-px-1",children:S?"Close":m??"Get help"})]})},zk=({label:c})=>{const{isWidgetOpen:p,setIsWidgetOpen:m}=I.useContext(Ad);return le.jsxs("button",{className:ga("mintlify-relative mintlify-w-full mintlify-h-9 mintlify-flex mintlify-items-center mintlify-text-sm mintlify-leading-6 mintlify-rounded-lg mintlify-py-1.5 mintlify-pl-2 mintlify-pr-3 mintlify-shadow-sm mintlify-text-gray-400 dark:mintlify-text-white/50 mintlify-bg-white dark:mintlify-bg-gray-950 mintlify-outline-none","mintlify-border mintlify-border-gray-200"),onClick:()=>m(!p),children:[le.jsx(xk,{size:16,className:"mintlify-ml-1 mintlify-mr-3 mintlify-flex-none mintlify-text-gray-700 hover:mintlify-text-gray-800 dark:mintlify-text-gray-300 hover:dark:mintlify-text-gray-200"}),c??"Ask anything..."]})};for(var _r=[],cg=0;cg<256;++cg)_r.push((cg+256).toString(16).slice(1));function Ak(c,p=0){return(_r[c[p+0]]+_r[c[p+1]]+_r[c[p+2]]+_r[c[p+3]]+"-"+_r[c[p+4]]+_r[c[p+5]]+"-"+_r[c[p+6]]+_r[c[p+7]]+"-"+_r[c[p+8]]+_r[c[p+9]]+"-"+_r[c[p+10]]+_r[c[p+11]]+_r[c[p+12]]+_r[c[p+13]]+_r[c[p+14]]+_r[c[p+15]]).toLowerCase()}var qv,Uk=new Uint8Array(16);function jk(){if(!qv&&(qv=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qv(Uk)}var Fk=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const US={randomUUID:Fk};function fg(c,p,m){if(US.randomUUID&&!p&&!c)return US.randomUUID();c=c||{};var S=c.random||(c.rng||jk)();return S[6]=S[6]&15|64,S[8]=S[8]&63|128,Ak(S)}function jS(c){return c.startsWith("/")?c:`/${c}`}const FS="https://api-dsc.mintlify.com/v1",Hk=async(c,p)=>{if(!c)return;const m=await fetch(`${p??FS}/chat/topic`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${c}`}});if(!m.ok)return;const S=await m.json();if(S&&typeof S=="object"&&"topicId"in S&&typeof S.topicId=="string")return S.topicId},$k=async({topicId:c,userQuery:p,setResponse:m,setBaseUrl:S,apiKey:x,url:N})=>{if(!x)return;const k=await fetch(`${N??FS}/chat/message`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`},body:JSON.stringify({message:p,topicId:c})});if(!k.ok||!k.body)throw Error(k.statusText);const g=k.body.getReader();for(;;){const{done:U,value:H}=await g.read();if(U){m(ae=>ae+new TextDecoder().decode(H)),S(k.headers.get("X-Mintlify-Base-Url")??"");return}const B=new TextDecoder().decode(H);m(ae=>ae+B)}},Pk=c=>{if(!("metadata"in c&&c.metadata&&"title"in c.metadata&&"link"in c&&typeof c.link=="string"))return"";const p=c.metadata.title,m=jS(c.link);if(p&&typeof p=="string"){const S=p.toLowerCase().replaceAll(" ","-").replaceAll(/[^a-zA-Z0-9-_#]/g,"");return`${m}#${S}`}return m};function Vk(c){try{const p=JSON.parse(c??"[]");return[...new Map(p.map((S,x)=>{const N=S.metadata.title??"",k={citationNumber:x,title:S.metadata.title??"",url:Pk(S)};return[N,k]})).values()]}catch{return[]}}const HS=Rt.forwardRef(({className:c,query:p,isGenerating:m,isGeneratingError:S,isGeneratingErrorRetryable:x,onGeneratingErrorRetry:N,...k},g)=>le.jsxs("div",{ref:g,className:ga("mintlify-break-all mintlify-flex mintlify-gap-2 mintlify-px-4 mintlify-py-1 mintlify-items-center mintlify-font-medium mintlify-justify-between",S?x?"mintlify-text-orange-600 dark:mintlify-text-orange-400":"mintlify-text-red-600 dark:mintlify-text-red-400":"mintlify-text-primary dark:mintlify-text-primary-light",c),...k,children:[le.jsxs("div",{className:"mintlify-flex mintlify-items-center mintlify-gap-2",style:{wordBreak:"break-word"},children:[le.jsx("div",{className:"mintlify-size-5",children:S?x?le.jsx(Ud.Retryable,{}):le.jsx(Ud.Error,{}):m?le.jsx(Ud.Generating,{}):le.jsx(Ud.Generated,{})}),p]}),S&&x&&le.jsxs("button",{className:"group mintlify-text-gray-500 dark:mintlify-text-gray-500 hover:mintlify-text-gray-700 dark:hover:mintlify-text-gray-300 mintlify-text-sm mintlify-cursor-pointer mintlify-flex mintlify-items-center mintlify-gap-0.5",onClick:N,children:[le.jsx(Ud.Retry,{}),le.jsx("p",{className:"mintlify-px-1",children:"Retry"})]})]}));HS.displayName="ChatItemMessage";function ms(){return ms=Object.assign?Object.assign.bind():function(c){for(var p=1;p<arguments.length;p++){var m=arguments[p];for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(c[S]=m[S])}return c},ms.apply(this,arguments)}const Bk=["children","options"];var $S,PS;(function(c){c.blockQuote="0",c.breakLine="1",c.breakThematic="2",c.codeBlock="3",c.codeFenced="4",c.codeInline="5",c.footnote="6",c.footnoteReference="7",c.gfmTask="8",c.heading="9",c.headingSetext="10",c.htmlBlock="11",c.htmlComment="12",c.htmlSelfClosing="13",c.image="14",c.link="15",c.linkAngleBraceStyleDetector="16",c.linkBareUrlDetector="17",c.linkMailtoDetector="18",c.newlineCoalescer="19",c.orderedList="20",c.paragraph="21",c.ref="22",c.refImage="23",c.refLink="24",c.table="25",c.tableSeparator="26",c.text="27",c.textBolded="28",c.textEmphasized="29",c.textEscaped="30",c.textMarked="31",c.textStrikethroughed="32",c.unorderedList="33"})($S||($S={})),function(c){c[c.MAX=0]="MAX",c[c.HIGH=1]="HIGH",c[c.MED=2]="MED",c[c.LOW=3]="LOW",c[c.MIN=4]="MIN"}(PS||(PS={}));const VS=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((c,p)=>(c[p.toLowerCase()]=p,c),{for:"htmlFor"}),BS={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Ik=["style","script"],Yk=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Wk=/mailto:/i,Qk=/\n{2,}$/,IS=/^(\s*>[\s\S]*?)(?=\n{2,})/,Gk=/^ *> ?/gm,qk=/^ {2,}\n/,Xk=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,YS=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,WS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Zk=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Kk=/^(?:\n *)*\n/,Jk=/\r\n?/g,e5=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,t5=/^\[\^([^\]]+)]/,n5=/\f/g,r5=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,i5=/^\s*?\[(x|\s)\]/,QS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,GS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,qS=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,dg=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,a5=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,XS=/^<!--[\s\S]*?(?:-->)/,l5=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,pg=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,o5=/^\{.*\}$/,u5=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,s5=/^<([^ >]+@[^ >]+)>/,c5=/^<([^ >]+:\/[^ >]+)>/,f5=/-([a-z])?/gi,ZS=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,d5=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,p5=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,v5=/^\[([^\]]*)\] ?\[([^\]]*)\]/,m5=/(\[|\])/g,h5=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,y5=/\t/g,g5=/(^ *\||\| *$)/g,w5=/^ *:-+: *$/,S5=/^ *:-+ *$/,b5=/^ *-+: *$/,Xv="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",E5=new RegExp(`^([*_])\\1${Xv}\\1\\1(?!\\1)`),C5=new RegExp(`^([*_])${Xv}\\1(?!\\1|\\w)`),x5=new RegExp(`^==${Xv}==`),T5=new RegExp(`^~~${Xv}~~`),R5=/^\\([^0-9A-Za-z\s])/,k5=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,_5=/^\n+/,D5=/^([ \t]*)/,O5=/\\([^\\])/g,KS=/ *\n+$/,L5=/(?:^|\n)( *)$/,vg="(?:\\d+\\.)",mg="(?:[*+-])";function JS(c){return"( *)("+(c===1?vg:mg)+") +"}const eb=JS(1),tb=JS(2);function nb(c){return new RegExp("^"+(c===1?eb:tb))}const M5=nb(1),N5=nb(2);function rb(c){return new RegExp("^"+(c===1?eb:tb)+"[^\\n]*(?:\\n(?!\\1"+(c===1?vg:mg)+" )[^\\n]*)*(\\n|$)","gm")}const ib=rb(1),ab=rb(2);function lb(c){const p=c===1?vg:mg;return new RegExp("^( *)("+p+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+p+" (?!"+p+" ))\\n*|\\s*\\n*$)")}const ob=lb(1),ub=lb(2);function sb(c,p){const m=p===1,S=m?ob:ub,x=m?ib:ab,N=m?M5:N5;return{match(k,g,U){const H=L5.exec(U);return H&&(g.list||!g.inline&&!g.simple)?S.exec(k=H[1]+k):null},order:1,parse(k,g,U){const H=m?+k[2]:void 0,B=k[0].replace(Qk,`
281`).match(x);let ae=!1;return{items:B.map(function(ee,T){const z=N.exec(ee)[0].length,_=new RegExp("^ {1,"+z+"}","gm"),Z=ee.replace(_,"").replace(N,""),me=T===B.length-1,he=Z.indexOf(`
282
283`)!==-1||me&&ae;ae=he;const de=U.inline,ce=U.list;let ze;U.list=!0,he?(U.inline=!1,ze=Z.replace(KS,`
284
285`)):(U.inline=!0,ze=Z.replace(KS,""));const ve=g(ze,U);return U.inline=de,U.list=ce,ve}),ordered:m,start:H}},render:(k,g,U)=>c(k.ordered?"ol":"ul",{key:U.key,start:k.type==="20"?k.start:void 0},k.items.map(function(H,B){return c("li",{key:B},g(H,U))}))}}const z5=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),A5=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,cb=[IS,YS,WS,QS,qS,GS,XS,ZS,ib,ob,ab,ub],U5=[...cb,/^[^\n]+(?: \n|\n{2,})/,dg,pg];function j5(c){return c.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function F5(c){return b5.test(c)?"right":w5.test(c)?"center":S5.test(c)?"left":null}function fb(c,p,m,S){const x=m.inTable;m.inTable=!0;let N=c.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((g,U)=>(U.trim()==="|"?g.push(S?{type:"26"}:{type:"27",text:U}):U!==""&&g.push.apply(g,p(U,m)),g),[]);m.inTable=x;let k=[[]];return N.forEach(function(g,U){g.type==="26"?U!==0&&U!==N.length-1&&k.push([]):(g.type!=="27"||N[U+1]!=null&&N[U+1].type!=="26"||(g.text=g.text.trimEnd()),k[k.length-1].push(g))}),k}function H5(c,p,m){m.inline=!0;const S=c[2]?c[2].replace(g5,"").split("|").map(F5):[],x=c[3]?function(k,g,U){return k.trim().split(`
286`).map(function(H){return fb(H,g,U,!0)})}(c[3],p,m):[],N=fb(c[1],p,m,!!x.length);return m.inline=!1,x.length?{align:S,cells:x,header:N,type:"25"}:{children:N,type:"21"}}function db(c,p){return c.align[p]==null?{}:{textAlign:c.align[p]}}function ru(c){return function(p,m){return m.inline?c.exec(p):null}}function iu(c){return function(p,m){return m.inline||m.simple?c.exec(p):null}}function uo(c){return function(p,m){return m.inline||m.simple?null:c.exec(p)}}function jd(c){return function(p){return c.exec(p)}}function $5(c,p,m){if(p.inline||p.simple||m&&!m.endsWith(`
287`))return null;let S="";c.split(`
288`).every(N=>!cb.some(k=>k.test(N))&&(S+=N+`

Callers 6

mainFunction · 0.85
get_tagsFunction · 0.85
extract_all_headingsFunction · 0.85
extract_text_from_htmlFunction · 0.85
__deserialize_dateMethod · 0.85

Calls 6

gFunction · 0.85
NFunction · 0.85
deFunction · 0.85
testMethod · 0.80
trimMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected