!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a099a4-b909-77d1-81a2-c61a1bb20090")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,360951,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});e.s(["ArrowTopRightOnSquareIcon",0,r],360951)},193181,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))});e.s(["StarIcon",0,r],193181)},368884,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"}))});e.s(["StarIcon",0,r],368884)},112272,e=>{"use strict";let t=/([\p{Ll}\d])(\p{Lu})/gu,r=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,a=/(\d)\p{Ll}|(\p{L})\d/u,n=/[^\p{L}\d]+/giu,i="$1\0$2";function l(e){let a=e.trim();a=(a=a.replace(t,i).replace(r,i)).replace(n,"\0");let l=0,o=a.length;for(;"\0"===a.charAt(l);)l++;if(l===o)return[];for(;"\0"===a.charAt(o-1);)o--;return a.slice(l,o).split(/\0/g)}function o(e){let t=l(e);for(let e=0;ee.toLowerCase():t=>t.toLocaleLowerCase(e)}function u(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function d(e,t){return r=>`${t(r[0])}${e(r.slice(1))}`}function p(e,t={}){let r=t.split??(t.separateNumbers?o:l),a=t.prefixCharacters??"",n=t.suffixCharacters??"",i=0,s=e.length;for(;ii;){let t=s-1,r=e.charAt(t);if(!n.includes(r))break;s=t}return[e.slice(0,i),r(e.slice(i,s)),e.slice(s)]}e.s(["capitalCase",0,function(e,t){let[r,a,n]=p(e,t),i=c(t?.locale),l=u(t?.locale);return r+a.map(d(i,l)).join(t?.delimiter??" ")+n},"kebabCase",0,function(e,t){return s(e,{delimiter:"-",...t})},"sentenceCase",0,function(e,t){let[r,a,n]=p(e,t),i=c(t?.locale),l=d(i,u(t?.locale));return r+a.map((e,t)=>0===t?l(e):i(e)).join(t?.delimiter??" ")+n},"snakeCase",0,function(e,t){return s(e,{delimiter:"_",...t})}])},777096,e=>{"use strict";var t=e.i(222666),r=e.i(505962),a=e.i(360951),n=e.i(452473);e.s(["ExternalLinkIconForMarkdown",0,e=>{let i,l,o=(0,r.c)(4),{className:s}=e;return o[0]!==s?(i=(0,n.cn)("ml-1 inline-block w-4",s),o[0]=s,o[1]=i):i=o[1],o[2]!==i?(l=(0,t.jsx)(a.ArrowTopRightOnSquareIcon,{className:i}),o[2]=i,o[3]=l):l=o[3],l},"MarkdownLink",0,e=>{let a,i,l,o,s,c,u,d,p,m=(0,r.c)(19);m[0]!==e?({className:i,href:l,children:a,target:c,rel:s,...o}=e,m[0]=e,m[1]=a,m[2]=i,m[3]=l,m[4]=o,m[5]=s,m[6]=c):(a=m[1],i=m[2],l=m[3],o=m[4],s=m[5],c=m[6]);let f=l?.startsWith("http"),h=c??(f?"_blank":void 0);m[7]!==i?(u=(0,n.cn)(i,"underline underline-offset-2 decoration-current/40 hover:text-accent-foreground hover:decoration-current transition-colors"),m[7]=i,m[8]=u):u=m[8];let _=s??("_blank"===h?"noopener noreferrer":void 0);return m[9]!==h?(d="_blank"===h&&(0,t.jsx)("span",{className:"sr-only",children:"(opens in new tab)"}),m[9]=h,m[10]=d):d=m[10],m[11]!==a||m[12]!==l||m[13]!==o||m[14]!==h||m[15]!==u||m[16]!==_||m[17]!==d?(p=(0,t.jsxs)("a",{...o,href:l,className:u,target:h,rel:_,children:[a,d]}),m[11]=a,m[12]=l,m[13]=o,m[14]=h,m[15]=u,m[16]=_,m[17]=d,m[18]=p):p=m[18],p}],777096)},897964,e=>{"use strict";let t=[e.i(603084).default];e.s(["BASE_REMARK_PLUGINS",0,t])},517567,e=>{"use strict";var t=e.i(667929);let r=/^[ \t>]*(?:(?:[-*+]|\d{1,9}[.)])[ \t]+[ \t>]*)*(?:`{3,}|~{3,})[ \t]*math\b/m,a=/&(?:dollar|#0*36|#[xX]0*24);/g;e.s(["hasMathSyntax",0,e=>{let n=e.replace(a,()=>"$");return n.includes("$$")||(0,t.hasSingleDollarMath)(n)||r.test(e)}])},763392,e=>{"use strict";var t=e.i(222666),r=e.i(505962),a=e.i(452473),n=e.i(821369),i=e.i(270401),l=e.i(972117),o=e.i(897964),s=e.i(517567),c=e.i(883992),u=e.i(859672),d=e.i(832195),p=e.i(350782);let m="image/svg+xml",f=e=>{let a,n,i=(0,r.c)(8);i[0]!==e.className?(a=/language-(\w+)/.exec(e.className||"")?.[1],i[0]=e.className,i[1]=a):a=i[1];let l=a;if(!e.children)return e.rawString??null;if("svg"===l){let r;return i[2]!==l||i[3]!==e.children?(r=(0,t.jsx)(_,{language:l,children:e.children}),i[2]=l,i[3]=e.children,i[4]=r):r=i[4],r}return i[5]!==l||i[6]!==e.children?(n=(0,t.jsx)(h,{language:l,children:e.children}),i[5]=l,i[6]=e.children,i[7]=n):n=i[7],n},h=e=>{let a,n=(0,r.c)(5),{language:i,children:l}=e,o=String(l);if(!i&&!o.includes("\n")){let e;return n[0]!==o?(e=(0,t.jsx)("code",{className:"rounded-md bg-card-hover px-1.5 text-foreground",children:o}),n[0]=o,n[1]=e):e=n[1],e}return n[2]!==i||n[3]!==o?(a=(0,t.jsx)(u.CodeBlock,{rawLanguage:i,value:o,dedent:!1}),n[2]=i,n[3]=o,n[4]=a):a=n[4],a},_=e=>{let a,n,i=(0,r.c)(7),{language:l,children:o}=e;i[0]!==o?(a=function(e){let t=String(e),r=new DOMParser;try{if(r.parseFromString(t,m).querySelector("parsererror"))return null}catch{return null}return(0,p.encodeBase64DataURL)({mimeType:m,base64:(0,d.encodeUnicodeToBase64)(t)})}(o),i[0]=o,i[1]=a):a=i[1];let s=a;if(!s){let e;return i[2]!==o||i[3]!==l?(e=(0,t.jsx)(h,{language:l,children:o}),i[2]=o,i[3]=l,i[4]=e):e=i[4],e}return i[5]!==s?(n=(0,t.jsx)("div",{className:"flex-row justify-items-center w-full my-6",children:(0,t.jsx)("img",{className:"max-w-lg rounded-lg border border-current",alt:"AI Generated SVG",src:s})}),i[5]=s,i[6]=n):n=i[6],n};var g=e.i(777096);let k={},b=(0,n.default)(()=>e.A(96662),{loadableGenerated:{modules:[349615]}}),x=/\bicon\b/i,y=[];function w(e){let{node:r,...n}=e;return(0,t.jsx)("pre",{...n,className:(0,a.cn)("not-prose my-4",n.className)})}function C(e){let{node:r,...a}=e;return(0,t.jsx)("span",{className:a.className,children:a.children})}function A(e){let{node:r,...a}=e;return(0,t.jsx)("div",{className:"overflow-auto rounded-lg border border-current mb-6 mt-4",children:(0,t.jsx)(c.MarkdownTable,{...a})})}function v(e){let{node:r,...a}=e;return(0,t.jsx)("h2",{className:"mt-6 mb-2",...a,children:a.children})}function N(e){let{node:r,...n}=e;return(0,t.jsx)(c.MarkdownH3,{...n,className:(0,a.cn)("mt-4 mb-2",n.className)})}function M(e){let{node:r,...a}=e;return(0,t.jsx)("h4",{className:"mt-3 mb-1",...a,children:a.children})}function T(e){let{node:r,...n}=e,i=x.test(n.alt??"");return(0,t.jsx)("img",{...n,alt:n.alt||"",className:(0,a.cn)(i?"!inline-block !h-[1.2em] !w-auto !align-text-bottom !my-0 !mx-0 !rounded-none !shadow-none":(0,a.cn)("max-w-full h-auto rounded-lg shadow-sm","my-4 mx-auto block"),n.className),loading:"lazy"})}e.s(["MarkdownContainer",0,e=>{let a,n,u,d,p,m,h=(0,r.c)(23),{children:_,className:x,linkClassName:R,disableLink:L,openLinksInNewTab:S,disallowedElements:U,components:P}=e,j=void 0===_?"":_,D=void 0===x?"":x,E=void 0===R?"":R,I=void 0!==L&&L,B=void 0!==S&&S,O=void 0===U?y:U,F=void 0===P?k:P;h[0]!==j?(a=e=>{if(!e.node?.position)return null;let r=j.slice(e.node.position.start.offset,e.node.position.end.offset);return(0,t.jsx)(f,{className:e.className,rawString:r,children:e.children})},h[0]=j,h[1]=a):a=h[1],h[2]!==I||h[3]!==E||h[4]!==B?(n=I?C:e=>{let r,{node:a,...n}=e,i=n.href?(r=n.href.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\s]+)/),r?.[1]??null):null,[l]=a?.children??[],o=a?.children?.length===1&&l?.type==="element"&&"tagName"in l&&"img"===l.tagName;return i&&o?(0,t.jsx)("span",{className:"relative block w-full aspect-video my-4",children:(0,t.jsx)("iframe",{src:`https://www.youtube.com/embed/${i}`,title:"YouTube video",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups allow-popups-to-escape-sandbox",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 w-full h-full rounded-lg"})}):(0,t.jsx)(g.MarkdownLink,{className:E,...n,...B&&{target:"_blank"},children:n.children})},h[2]=I,h[3]=E,h[4]=B,h[5]=n):n=h[5],h[6]!==F||h[7]!==a||h[8]!==n?(u={...c.DEFAULT_MARKDOWN_COMPONENTS,code:a,pre:w,a:n,table:A,h2:v,h3:N,h4:M,img:T,...F},h[6]=F,h[7]=a,h[8]=n,h[9]=u):u=h[9];let $=u,Z=j.length<=5e4&&(0,s.hasMathSyntax)(j);if(j.length>5e4)return j;h[10]!==j||h[11]!==D||h[12]!==$||h[13]!==O?(d=(0,t.jsx)(l.default,{remarkPlugins:o.BASE_REMARK_PLUGINS,disallowedElements:O,components:$,className:D,children:j}),h[10]=j,h[11]=D,h[12]=$,h[13]=O,h[14]=d):d=h[14];let W=d;return Z?(h[15]!==j||h[16]!==D||h[17]!==$||h[18]!==O?(p=(0,t.jsx)(b,{disallowedElements:O,components:$,className:D,children:j}),h[15]=j,h[16]=D,h[17]=$,h[18]=O,h[19]=p):p=h[19],h[20]!==W||h[21]!==p?(m=(0,t.jsx)(i.Suspense,{fallback:W,children:p}),h[20]=W,h[21]=p,h[22]=m):m=h[22],m):W}],763392)},883992,e=>{"use strict";var t=e.i(222666),r=e.i(505962),a=e.i(452473);let n=e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("mb-3 whitespace-pre-wrap break-words leading-6 last:mb-0",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("p",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},i=e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("whitespace-normal",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("li",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},l=e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("border border-current px-4 py-2",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("th",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},o=e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("border border-current px-4 py-2",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("td",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},s=e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("min-w-full overflow-hidden rounded-lg border border-current",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("table",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},c=e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("font-medium text-current",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("h3",{...n,className:i,children:n.children}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l};e.s(["DEFAULT_MARKDOWN_COMPONENTS",0,{p:n,ol:e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("list-decimal pb-4 pl-8",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("ol",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},ul:e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("list-disc pb-4 pl-8",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("ul",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},li:i,th:l,td:o,blockquote:e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("border-l-2 border-slate-10 pl-4 italic text-slate-11",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("blockquote",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},hr:e=>{let n,i,l,o=(0,r.c)(7);if(o[0]!==e){let{node:t,...r}=e;n=r,o[0]=e,o[1]=n}else n=o[1];return o[2]!==n.className?(i=(0,a.cn)("border-current",n.className),o[2]=n.className,o[3]=i):i=o[3],o[4]!==n||o[5]!==i?(l=(0,t.jsx)("hr",{...n,className:i}),o[4]=n,o[5]=i,o[6]=l):l=o[6],l},table:s,h3:c},"MarkdownH3",0,c,"MarkdownLi",0,i,"MarkdownP",0,n,"MarkdownTable",0,s,"MarkdownTd",0,o,"MarkdownTh",0,l])},350782,e=>{"use strict";var t=e.i(719929),r=e.i(462904),a=e.i(693697);let n=/^[A-Za-z0-9+/\-_=\s]*$/,i=/^$/,l="data:",o=";base64,";function s(e){let t=n.test(e);return i.test(""),t}e.s(["decodeBase64DataURL",0,function(e){let n=e.indexOf(";");if(e.startsWith(l)&&n>l.length&&e.startsWith(o,n)){let t=e.slice(l.length,n),r=e.slice(n+o.length);if(t&&r&&!t.includes(":")&&s(r))return(0,a.ok)({mimeType:t,base64:r})}return function(e){let[n,i]=e.split(";");if(!n||!i)return(0,r.errT)({location:"decodeBase64DataURL",status:t.HTTPStatus.S400_Bad_Request,rawError:"Invalid base64 data URL: missing data prefix or base64 payload"});let l=n.split(":")[1],o=i.split(",")[1];return l&&o?s(o)?(0,a.ok)({mimeType:l,base64:o}):(0,r.errT)({location:"decodeBase64DataURL",status:t.HTTPStatus.S400_Bad_Request,rawError:"Invalid base64 data URL: payload is not base64-encoded data"}):(0,r.errT)({location:"decodeBase64DataURL",status:t.HTTPStatus.S400_Bad_Request,rawError:"Invalid base64 data URL: missing mime type or base64 content"})}(e)},"encodeBase64DataURL",0,function({mimeType:e,base64:t}){return`data:${e};base64,${t}`},"isBase64DataURLString",0,function(e){return e.startsWith("data:")&&e.includes(";base64,",5)&&!e.includes("\n")&&!e.includes("\r")&&!e.includes("\u2028")&&!e.includes("\u2029")}])},832195,e=>{"use strict";let t;var r=e.i(693697),a=e.i(51053);let n="function"==typeof a.Buffer,i="function"==typeof TextDecoder?new TextDecoder:void 0,l="function"==typeof TextEncoder?new TextEncoder:void 0,o=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),s=(t={},o.forEach((e,r)=>t[e]=r),t),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),p=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),m="function"==typeof btoa?e=>btoa(e):n?e=>a.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,a,n,i="",l=e.length%3;for(let l=0;l255||(a=e.charCodeAt(l++))>255||(n=e.charCodeAt(l++))>255)throw TypeError("invalid character found");i+=o[(t=r<<16|a<<8|n)>>18&63]+o[t>>12&63]+o[t>>6&63]+o[63&t]}return l?i.slice(0,l-3)+"===".substring(l):i},f=n?e=>a.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,a=e.length;rt?p(f(e)):f(e),_=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,k=n?e=>a.Buffer.from(e,"utf8").toString("base64"):l?e=>f(l.encode(e)):e=>m(e.replace(g,_)),b=(e,t=!1)=>t?p(k(e)):k(e),x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,y=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u((1023&t)+56320);case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):n?e=>a.Buffer.from(e,"base64").toString("binary"):e=>{let t,r,a;if(e=e.replace(/\s+/g,""),!c.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let n=[];for(let i=0;i>16&255)):64===a?n.push(u(t>>16&255,t>>8&255)):n.push(u(t>>16&255,t>>8&255,255&t));return n.join("")},C=n?e=>d(a.Buffer.from(e,"base64")):e=>d(w(e).split("").map(e=>e.charCodeAt(0))),A=e=>C(N(e)),v=n?e=>a.Buffer.from(e,"base64").toString("utf8"):i?e=>i.decode(C(e)):e=>w(e).replace(x,y),N=e=>e.replace(/[-_]/g,e=>"-"==e?"+":"/").replace(/[^A-Za-z0-9\+\/]/g,"");e.s(["decodeBase64ToBytes",0,function(e){try{if(!function(e){let t=0,r=0,a=!1,n=!1;for(let i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){if(r>0)return!1;t+=1}else if(43===l||47===l){if(r>0)return!1;a=!0,t+=1}else if(45===l||95===l){if(r>0)return!1;n=!0,t+=1}else if(61===l){if((r+=1)>2)return!1}else if(!(32===l||l>=9&&l<=13||160===l||5760===l||l>=8192&&l<=8202||8232===l||8233===l||8239===l||8287===l||12288===l||65279===l))return!1}return t>0&&!(a&&n)&&t%4!=1}(e))return;let t=e.replaceAll(/\s/g,""),a=(0,r.wrap)(()=>new Uint8Array(A(t)));return(0,r.isOk)(a)?a.data:void 0}finally{/(?:)/.test("")}},"encodeUint8ArrayToBase64",0,function(e){return h(e)},"encodeUnicodeToBase64",0,function(e){return b(e)}],832195)},12266,e=>{"use strict";var t=e.i(288027);let r={Token:"token",Unit:"unit",Schedule:"schedule"},a={prompt:{kind:r.Token,sku_label:"Input Price",displayMultiplier:1e6,unitLabel:"/M tokens"},completion:{kind:r.Token,sku_label:"Output Price",displayMultiplier:1e6,unitLabel:"/M tokens"},request:{kind:r.Unit,sku_label:"Request",displayMultiplier:1,unitLabel:"/request"},image:{kind:r.Token,sku_label:"Image Input",displayMultiplier:1e3,unitLabel:"/K tokens"},image_token:{kind:r.Token,sku_label:"Image Tokens",displayMultiplier:1e6,unitLabel:"/M tokens"},image_output:{kind:r.Token,sku_label:"Image Output",displayMultiplier:1e6,unitLabel:"/M tokens"},audio:{kind:r.Token,sku_label:"Input Audio",displayMultiplier:1e6,unitLabel:"/M tokens"},audio_output:{kind:r.Token,sku_label:"Output Audio",displayMultiplier:1e6,unitLabel:"/M tokens"},input_audio_cache:{kind:r.Token,sku_label:"Input Audio Cache",displayMultiplier:1e6,unitLabel:"/M tokens"},input_cache_read:{kind:r.Token,sku_label:"Cache Read",displayMultiplier:1e6,unitLabel:"/M tokens"},input_cache_write:{kind:r.Token,sku_label:"Cache Write",displayMultiplier:1e6,unitLabel:"/M tokens"},input_cache_write_1h:{kind:r.Token,sku_label:"Cache Write (1h)",displayMultiplier:1e6,unitLabel:"/M tokens"},web_search:{kind:r.Unit,sku_label:"Web Search",displayMultiplier:1e3,unitLabel:"/1K calls",onlyWhenPositive:!0,isServerTool:!0}};e.s(["DisplayPricingKind",0,r,"PUBLIC_PRICING_DISPLAY_METADATA",0,a,"getPrimaryUnitPrice",0,function(e){let a=e.filter(e=>e.kind===r.Unit&&!0!==e.isServerTool),n=a[0];if(!n)return;let i=void 0!==n.tiers&&n.tiers.length>1,l=i||a.length>1;if(i){let e=(0,t.bn)(1/0),r=n.price;for(let a of n.tiers){let n=(0,t.bn)(a.price);n.gt(0)&&n.lt(e)&&(e=n,r=a.price)}return{price:r,displayMultiplier:n.displayMultiplier,unitLabel:n.unitLabel,hasDetails:l}}return{price:n.price,displayMultiplier:n.displayMultiplier,unitLabel:n.unitLabel,hasDetails:l}}])},690387,e=>{"use strict";var t=e.i(288027),r=e.i(12266),a=e.i(190557);let n="/M tokens",i=["prompt","completion","request","image","image_token","image_output","audio","audio_output","input_audio_cache","input_cache_read","input_cache_write","input_cache_write_1h","web_search","internal_reasoning"],l=["Image Input","Input Image"],o=["Image Output","Output Image"];function s(e){return e.length>0&&!e.some(e=>!(0,t.bn)(e.price).isZero()||e.tiers?.some(e=>!(0,t.bn)(e.price).isZero())===!0)}function c(e,n,i){let s,c,p,m,f;if(0===n.length)return;let h=i?.keepTrailingZeroes?"model-price-fixed":"model-price",_=n.filter(e=>"token"===e.kind),g=(c=(s=n.filter(e=>"token"===e.kind)).find(e=>"Input Price"===e.sku_label),p=s.find(e=>"Output Price"===e.sku_label),m=s.find(e=>{var t;return t=e.sku_label,o.includes(t)}),(f=s.find(e=>{var t;return t=e.sku_label,l.includes(t)})??c)&&m?{media:"image",inputItem:f,outputItem:m}:c&&p?{media:"text",inputItem:c,outputItem:p}:void 0);if(g)return function({locale:e,preset:r},{media:n,inputItem:i,outputItem:l}){return{kind:"standard-tokens",media:n,inputPrice:(0,a.formatUsd)((0,t.bn)(i.price).times(i.displayMultiplier),{locale:e,preset:r})??"—",inputUnit:d(i),outputPrice:(0,a.formatUsd)((0,t.bn)(l.price).times(l.displayMultiplier),{locale:e,preset:r})??"—",outputUnit:d(l)}}({locale:e,preset:h},g);let k=(0,r.getPrimaryUnitPrice)(n);if(!k){if(_[0]){let r=_[0],l=`${(0,a.formatUsd)((0,t.bn)(r.price).times(r.displayMultiplier),{locale:e,preset:i?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,o=d(r);return{kind:"custom",label:u(l,o),priceOnly:l,unit:o,hasDetails:n.length>1}}return}let b=`${(0,a.formatUsd)((0,t.bn)(k.price).times(k.displayMultiplier),{locale:e,preset:i?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,x=k.unitLabel;return{kind:"custom",label:k.hasDetails?`from ${u(b,x)}`:u(b,x),priceOnly:k.hasDetails?`from ${b}`:b,unit:x,hasDetails:k.hasDetails}}function u(e,t){var r;return`${e}${(r=t)?r.startsWith("/")?r:` ${r}`:""}`}function d(e){if("token"===e.kind){if(1e6===e.displayMultiplier)return n;if(1e3===e.displayMultiplier)return"/K tokens"}return e.unitLabel}e.s(["STANDARD_TOKEN_MULTIPLIER",0,1e6,"deriveEndpointInlinePricing",0,function(e,r,i){return c(e,i)??function(e,r){if(r&&(0,t.bn)(r.prompt).isFinite()&&(0,t.bn)(r.completion).isFinite()&&!((0,t.bn)(r.prompt).isZero()&&(0,t.bn)(r.completion).isZero()))return{kind:"standard-tokens",media:"text",inputPrice:(0,a.formatUsd)((0,t.bn)(r.prompt).times(1e6),{locale:e,preset:"model-price"})??"—",inputUnit:n,outputPrice:(0,a.formatUsd)((0,t.bn)(r.completion).times(1e6),{locale:e,preset:"model-price"})??"—",outputUnit:n}}(e,r?.pricing)},"deriveInlinePricing",0,c,"getDisplayPricingUnit",0,d,"isDisplayPricingFree",0,s,"isModelFree",0,function(e,r){var a;return e?.is_free===!0||(r.length>0?s(r):!!(a=e?.pricing)&&i.every(e=>{let r=a[e];return void 0===r||(0,t.bn)(r).isZero()}))},"joinPriceAndUnit",0,u])},700050,464314,e=>{"use strict";var t,r=e.i(252358),a=e.i(112272);function n(e,t){let n=`playground_v3:${e}`,i=Object.fromEntries(Object.entries(t||{}).map(([e,t])=>[(0,a.snakeCase)(e),t]));r.posthogClient.capture(n,i)}e.s(["PLAYGROUND_ANALYTICS_NAMESPACE_VERSION",0,"v3","trackFetchResponses",0,function(e){let t=Object.fromEntries(Object.entries(e).map(([e,t])=>[(0,a.snakeCase)(e),t]));r.posthogClient.capture("playground_v3:fetch_responses",t)}],464314);var i=((t=i||{}).RoomLoadTriggered="room_load_triggered",t.RoomLoadFailed="room_load_failed",t.RoomLoadComplete="room_load_complete",t.RoomCreate="room_create",t.RoomDelete="room_delete",t.RoomDeleteAll="room_delete_all",t.RoomDuplicate="room_duplicate",t.RoomUpdateTitle="room_update_title",t.RoomImport="room_import",t.RoomClearHistory="room_clear_history",t.RoomExportChat="room_export_chat",t.RoomExportMarkdown="room_export_markdown",t.RoomClearCharacters="room_clear_characters",t.RoomShareModels="room_share_models",t.MessageSendInit="message_send_init",t.MessageGenerate="message_generate",t.MessageUpdate="message_update",t.MessageDelete="message_delete",t.CharacterAdd="character_add",t.CharacterRemove="character_remove",t.CharacterDuplicate="character_duplicate",t.CharacterRestore="character_restore",t.CharacterUpdateModel="character_update_model",t.CharacterApplySettingsToAll="character_apply_settings_to_all",t.PresetApply="preset_apply",t.ToolToggle="tool_toggle",t.ReasoningModeToggle="reasoning_mode_toggle",t.AspectRatioSelect="aspect_ratio_select",t.FetchChatCompletion="fetch_chat_completion",t.FetchResponses="fetch_responses",t.ArtifactCreate="artifact_create",t.ArtifactDelete="artifact_delete",t.ArtifactUpdate="artifact_update",t.ArtifactViewOpen="artifact_view_open",t.ArtifactViewClose="artifact_view_close",t.ArtifactVersionCreate="artifact_version_create",t.ArtifactVersionSelect="artifact_version_select",t.ArtifactFileCreate="artifact_file_create",t.ArtifactFileDelete="artifact_file_delete",t.ModelPresetClick="model_preset_click",t.PromptPresetClick="prompt_preset_click",t.ModelPin="model_pin",t.ModelUnpin="model_unpin",t.PinnedModelSelect="pinned_model_select",t.ToolDocsClick="tool_docs_click",t.ToolChipExpand="tool_chip_expand",t.CitationIconsExpand="citation_icons_expand",t.RoomSummaryTitleGenerated="room_summary_title_generated",t.ConversationSearchOpen="conversation_search_open",t.InternTurn="intern_turn",t);e.s(["ModelPinOrigin",0,{ModelPage:"model_page",ModelsListing:"models_listing",SelectorRow:"selector_row",SelectorPinnedPanel:"selector_pinned_panel"},"trackArtifactCreate",0,function(e){n("artifact_create",e)},"trackArtifactDelete",0,function(e){n("artifact_delete",e)},"trackArtifactVersionCreate",0,function(e){n("artifact_version_create",e)},"trackAspectRatioSelect",0,function(e){n("aspect_ratio_select",e)},"trackCharacterDuplicate",0,function(e){n("character_duplicate",e)},"trackCharacterRemove",0,function(e){n("character_remove",e)},"trackCharacterRestore",0,function(e){n("character_restore",e)},"trackCharactersAdd",0,function(e){for(let t of e.modelSlugs)n("character_add",{model:t,source:e.source})},"trackCitationIconsExpand",0,function(e){n("citation_icons_expand",e)},"trackConversationSearchOpen",0,function(e){n("conversation_search_open",e)},"trackInternTurn",0,function(e){n("intern_turn",e)},"trackMessageDelete",0,function(e){n("message_delete",e)},"trackMessageSendInit",0,function(e){n("message_send_init",e)},"trackModelPin",0,function(e){n("model_pin",e)},"trackModelPresetClick",0,function(e){n("model_preset_click",e)},"trackModelUnpin",0,function(e){n("model_unpin",e)},"trackPinnedModelSelect",0,function(e){n("pinned_model_select",e)},"trackPresetApply",0,function(e){n("preset_apply",e)},"trackPromptPresetClick",0,function(e){n("prompt_preset_click",e)},"trackRoomClearCharacters",0,function(){n("room_clear_characters")},"trackRoomClearHistory",0,function(){n("room_clear_history")},"trackRoomCreate",0,function(e){n("room_create",e)},"trackRoomDelete",0,function(e){n("room_delete",e)},"trackRoomDeleteAll",0,function(e){n("room_delete_all",e)},"trackRoomDuplicate",0,function(e){n("room_duplicate",e)},"trackRoomExportChat",0,function(){n("room_export_chat")},"trackRoomExportMarkdown",0,function(){n("room_export_markdown")},"trackRoomImport",0,function(){n("room_import")},"trackRoomLoadComplete",0,function(e){n("room_load_complete",e)},"trackRoomLoadFailed",0,function(e){n("room_load_failed",e)},"trackRoomLoadTriggered",0,function(e){n("room_load_triggered",e)},"trackRoomShareModels",0,function(){n("room_share_models")},"trackRoomSummaryTitleGenerated",0,function(e){n("room_summary_title_generated",e)},"trackRoomUpdateTitle",0,function(e){n("room_update_title",e)},"trackToolChipExpand",0,function(e){n("tool_chip_expand",e)},"trackToolDocsClick",0,function(){n("tool_docs_click")},"trackToolToggle",0,function(e){n("tool_toggle",e)}],700050)}]); //# sourceMappingURL=25ko-mapia_hp.js.map //# chunkId=01a099a4-b909-77d1-81a2-c61a1bb20090