PageSourceSearch

https://streamlit.io/_next/static/chunks/35701-3047cff9b52a9f43.js

js streamlit.io collected 2026-09-24 07:54:44 UTC 27,475 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35701],{3416:function(e,t,l){let n=l(67294);e.exports={attributes:{enabled:!0},react:function(e){Object.keys(e).forEach(function(t){this[t]=e[t]});let t=n.createElement("div",{className:"frontmatter-markdown"},n.createElement("p",null,n.createElement("a",{href:"https://docs.streamlit.io/develop/quick-reference/release-notes"},"\uD83C\uDF88 New in 1.64: st.echarts_chart for Apache ECharts, async/await support, live updates for st.text_input, and more!")));return t}}},71361:function(e,t,l){let n=l(67294);e.exports={attributes:{columns:[{title:"Site",columnLinks:[{label:"Home",link:"/"},{label:"Playground",link:"/playground"},{label:"App gallery",link:"/gallery"},{label:"Component gallery",link:"/components"},{label:"Community",link:"/community"},{label:"Community Cloud",link:"/cloud"}]},{title:"Documentation",columnLinks:[{label:"Get started",link:"https://docs.streamlit.io/library/get-started"},{label:"Tutorials",link:"https://docs.streamlit.io/knowledge-base/tutorials"},{label:"API reference",link:"https://docs.streamlit.io/library/api-reference"},{label:"Cheat sheet",link:"https://docs.streamlit.io/library/cheatsheet"},{label:"Changelog",link:"https://docs.streamlit.io/library/changelog"}]},{title:"Resources",columnLinks:[{label:"Forum",link:"https://discuss.streamlit.io/"},{label:"Blog",link:"https://blog.streamlit.io/"},{label:"Brand",link:"/brand"}]},{title:"Social",columnLinks:[{label:"GitHub",link:"https://github.com/streamlit/streamlit"},{label:"YouTube",link:"https://www.youtube.com/channel/UC3LD42rjj-Owtxsa6PwGU5Q"},{label:"LinkedIn",link:"https://www.linkedin.com/company/streamlit"},{label:"Twitter/X",link:"https://twitter.com/streamlit"}]}],bottomRow:{copyright:"Snowflake Inc.",links:[{text:"Security advisories",link:"/advisories",type:"link"},{text:"Cookie settings",type:"cookie settings"},{text:"Privacy notice",link:"/privacy-policy",type:"link"},{text:"Terms of use",link:"/terms-of-use",type:"link"},{text:"Community guidelines",link:"/community-guidelines",type:"link"},{text:"Contact",link:"mailto:[email protected]?subject=Contact%20from%20website%20",type:"link"}]}},react:function(e){Object.keys(e).forEach(function(t){this[t]=e[t]});let t=n.createElement("div",{className:"frontmatter-markdown"});return t}}},52287:function(e,t,l){let n=l(67294);e.exports={attributes:{leftHeaderItems:[{title:"Playground",link:"/playground"},{title:"Gallery",link:"/gallery"},{title:"Components",link:"/components"},{title:"Cloud",link:"/cloud"},{title:"Community",link:"/community",dropdown:[{columnTitle:"Community Programs",columnItems:[{label:"Streamlit Creators",link:"/creators"},{label:"Become a Streamlit Creator",link:"/become-a-creator"},{label:"Become a Streamlit Advocate",link:"/community/advocates"},{link:"https://discuss.streamlit.io/t/seeking-new-additions-to-our-community-moderators-program/47458",label:"Become a Streamlit Moderator"}],link:"/community"},{columnTitle:"Participate",columnItems:[{label:"Forum",link:"https://discuss.streamlit.io/",bold:!0},{label:"Community Cloud",link:"/cloud"},{label:"GitHub",link:"https://github.com/streamlit/streamlit"},{label:"Blog",link:"https://blog.streamlit.io/"}]},{columnTitle:"Connect with us",columnItems:[{label:"YouTube",link:"https://www.youtube.com/channel/UC3LD42rjj-Owtxsa6PwGU5Q"},{label:"X/Twitter",link:"https://x.com/streamlit"},{label:"LinkedIn",link:"https://www.linkedin.com/company/streamlit"},{label:"Newsletter",link:"https://info.snowflake.com/streamlit-newsletter-sign-up.html"}]}]},{title:"Docs",link:"https://docs.streamlit.io/"}],rightHeaderItems:[{title:"Deploying? Try:",cards:[{label:"Free",title:"Deploy with Streamlit Community Cloud",subtitle:"For community apps",content:"Share your apps with the whole world\nPublic apps only\nTotally free\n",actionText:"Log in with GitHub",link:"https://share.streamlit.io?utm_source=streamlit&utm_medium=referral&utm_campaign=main&utm_content=-ss-streamlit-io-topright"},{label:"Pro",title:"Deploy with Snowflake",subtitle:"For professionals",content:"Code in your browser or favorite editor\nWork with Git and CI
1/CD\nEnterprise-grade security\n",actionText:"Start the trial now!",link:"https://signup.snowflake.com/?utm_source=streamlit&utm_medium=referral&utm_campaign=main&utm_content=-ss-streamlit-io-topright"}]}]},react:function(e){Object.keys(e).forEach(function(t){this[t]=e[t]});let t=n.createElement("div",{className:"frontmatter-markdown"});return t}}},55789:function(e,t,l){let n=l(67294);e.exports={attributes:{defaultPageTitle:"Streamlit • A faster way to build and share data apps",defaultPageDescription:"Streamlit is an open-source Python framework for data scientists and AI/ML engineers to deliver interactive data apps – in only a few lines of code."},react:function(e){Object.keys(e).forEach(function(t){this[t]=e[t]});let t=n.createElement("div",{className:"frontmatter-markdown"});return t}}},40473:function(e,t,l){"use strict";l.d(t,{Z:function(){return AnnouncementBanner}});var n=l(85893),r=l(94184),a=l.n(r),i=l(97617),s=l.n(i),o=l(3469);function AnnouncementBanner(e){let{enabled:t,children:l}=e;return(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsx)("div",{className:a()(s().Container,"text-center","section","py-3","text-gray-80","bg-gray-30","bg-gradient-to-r from-gray-20 to-gray-30",o.Gz),children:l})})}},35701:function(e,t,l){"use strict";l.d(t,{Z:function(){return BasePage}});var n,r,a,i,s,o,c,d=l(85893),u=l(94184),m=l.n(u),g=l(9008),p=l.n(g),h=l(55789);function MainHead(){let{defaultPageDescription:e,defaultPageTitle:t}=h.attributes;return(0,d.jsxs)(p(),{children:[(0,d.jsx)("title",{children:t}),(0,d.jsx)("link",{rel:"icon",href:"/favicon.svg"}),(0,d.jsx)("link",{rel:"alternate icon",href:"/favicon32.ico"}),(0,d.jsx)("meta",{name:"msapplication-TileColor",content:"#262730"}),(0,d.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,d.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,d.jsx)("script",{src:"https://identity.netlify.com/v1/netlify-identity-widget.js"}),(0,d.jsx)("script",{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",type:"text/javascript",charset:"UTF-8","data-domain-script":"0fd0c538-dc31-450a-8493-0dd92bb8f0d7"}),(0,d.jsx)("script",{src:"/scripts/onetrustsetup.js",children:" "}),(0,d.jsx)("script",{src:"https://cdn.jsdelivr.net/npm/@segment/analytics-consent-wrapper-onetrust@latest/dist/umd/analytics-onetrust.umd.js"}),(0,d.jsx)("script",{src:"/scripts/segment.js"}),(0,d.jsx)("meta",{name:"google-site-verification",content:"zyVv-hITboynWJ93wjvSWGTamWRuzaZ92h_UBHjF004"})]})}var x=l(40473),f=l(67294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}var SvgLogo=function(e){return f.createElement("svg",_extends({width:301,height:165,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=f.createElement("path",{d:"m150.731 101.547-52.592-27.8-91.292-48.25c-.084-.083-.25-.083-.334-.083-3.333-1.584-6.75 1.75-5.5 5.083L47.53 149.139l.008.025c.05.117.092.233.142.35 1.909 4.425 6.075 7.158 10.609 8.233.383.084.657.159 1.117.251.459.102 1.1.241 1.65.283.09.008.174.008.266.016h.067c.066.009.133.009.2.017h.091c.059.008.125.008.184.008h.108c.067.009.133.009.2.009a817.728 817.728 0 0 0 177.259 0c.708 0 1.4-.034 2.066-.1l.634-.075c.025-.009.058-.009.083-.017.142-.017.283-.042.425-.067.208-.025.417-.066.625-.108.417-.092.606-.158 1.172-.353.565-.194 1.504-.534 2.091-.817.588-.283.995-.555 1.487-.863a26.566 26.566 0 0 0 1.774-1.216c.253-.194.426-.318.609-.493l-.1-.058-99.566-52.617Z",fill:"#FF4B4B"})),r||(r=f.createElement("path",{d:"M294.766 25.498h-.083l-91.326 48.25 50.767 75.609 46.4-118.859v-.167c1.167-3.5-2.416-6.666-5.758-4.833",fill:"#7D353B"})),a||(a=f.createElement("path",{d:"M155.598 2.556c-2.334-3.409-7.417-3.409-9.667 0L98.139 73.748l52.592 27.8 99.667 52.674c.626-.613 1.128-1.21 1.658-1.841a20.98 20.98 0 0 0 2.067-3.025l-50.767-75.608-47.758-71.192Z",fill:"#BD4043"})))};l.p;var b=l(3469),w=l(56426),v=l(41664),y=l.n(v),j=l(94777),k=l(57851);function Button(e){let{link:t,title:l,className:n,onClick:r}=e,a=(0,k.m)("py-1 px-4","text-gray-90 text-center","block rounded","border-gray-80 border","lg:hover:bg-gray-90 lg:hover:text-white lg:hover:border-gray-90","lg:group-hover:bg-gray-90 lg:group-hover:text-white lg:group-hover:border-gray-90","active:bg-gray-90 active:text-white","track--primary-header-cta","cursor-pointer",n);return r?(0,d.jsx)("div",{className:a,onClick:r,children:l}):!0===(0,j.fI)(t)?(0,d.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:a,children:l}):(0,d.jsx)(y(),{href:t,className:a,children:l})}var header_Shim=e=>{let{className:t,opened:l,headerItem:n,children:r}=e;return(0,d.jsxs)(HeaderItem,{className:m()(l?"shim-opened":"","group has-dropdown relative lg:static",t),children:[n,(0,d.jsx)("div",{className:m()("dropdown","hidden group-[.shim-opened]:block","lg:block lg:invisible lg:group-[.shim-opened]:visible lg:group-hover:visible","mt-6 lg:mt-0","-mx-6 lg:mx-0","p-6 lg:p-0","bg-gray-20 lg:bg-white","relative lg:z-10","lg:drop-shadow-md","lg:absolute lg:top-full lg:left-0 lg:right-0","lg:-translate-y-4 lg:group-hover:translate-y-0","lg:opacity-0 lg:group-hover:opacity-100","transition-all duration-300","before:lg:absolute before:lg:-top-6 before:lg:left-0 before:lg:right-0 before:lg:bg-transparent before:lg:h-6","lg:pointer-events-none lg:group-hover:pointer-events-auto"),children:(0,d.jsx)("div",{className:"lg:px-8 mx-auto container",children:r})})]})};function dropdown_menu_icon_extends(){return(dropdown_menu_icon_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}var SvgDropdownMenuIcon=function(e){return f.createElement("svg",dropdown_menu_icon_extends({xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"#5f6368"},e),i||(i=f.createElement("path",{d:"M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"})))};l.p;var header_DropdownSubheader=e=>{let{item:t,className:l}=e,[n,r]=(0,f.useState)(!1),a=(0,f.useCallback)(()=>{r(e=>!e)},[]),i=(0,d.jsxs)("div",{className:"relative z-20 flex flex-row gap-1 items-center justify-between",children:[(0,d.jsx)(HeaderLink,{href:t.link,children:t.title}),(0,d.jsx)("button",{onClick:a,className:m()("flex items-center justify-center","dropdown-opener","absolute top-4 right-0","lg:relative lg:top-auto lg:right-auto","w-8 h-8","lg:w-4 lg:h-4 lg:-mr-2","-translate-y-1/2 lg:translate-y-0","lg:group-hover:rotate-180 transition-transform",n?"group-hover:rotate-180":"","cursor-pointer"),children:(0,d.jsx)(SvgDropdownMenuIcon,{className:"lg:fill-gray-60 lg:group-hover:fill-gray-70"})})]});return(0,d.jsx)(header_Shim,{headerItem:i,className:l,opened:n,children:(0,d.jsx)("div",{className:"relative grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 items-start gap-4 lg:pt-8 lg:pb-12",children:t.dropdown.map(e=>{let t=e.columnItems.length<5?"text-md flex flex-col gap-2":"flex flex-col flex-wrap gap-2 max-h-40 text-base lg:text-md leading-6";return(0,d.jsxs)("div",{className:e.columnItems.length<5?"grid gap-3":"lg:col-span-2",children:[e.link?(0,d.jsx)(w.Z,{href:null==e?void 0:e.link,className:"text-gray-70 hover:text-gray-60 uppercase text-sm self-start",children:null==e?void 0:e.columnTitle}):(0,d.jsx)("span",{className:"text-gray-70 uppercase text-sm",children:null==e?void 0:e.columnTitle}),(0,d.jsx)("ul",{className:t,children:null==e?void 0:e.columnItems.map((e,t)=>{let l=(null==e?void 0:e.bold)?"font-bold":"";return(0,d.jsx)("li",{children:(0,d.jsx)(w.Z,{href:e.link,showExternalArrow:!0,className:m()(l,"text-base lg:text-md text-gray-90 hover:text-gray-70"),children:e.label})},t)})})]},JSON.stringify(null==e?void 0:e.columnTitle))})})})},header_Cards=e=>{let{item:t,className:l}=e,[n,r]=(0,f.useState)(null),a=(0,f.useCallback)(e=>{r(e.currentTarget.dataset.label)},[]),i=(0,f.useCallback)(()=>{r(null)},[]),s=(0,d.jsxs)("div",{className:"relative z-20 flex gap-3 items-center lg:border-t-0 border-t border-gray-30 pt-8 lg:pt-0",children:[(0,d.jsx)("span",{className:"text-gray-90 cursor-default flex-1 lg:flex-0 flex flex-row items-center",children:t.title}),(0,d.jsx)("ul",{className:"flex flex-row items-center justify-center",children:t.cards.map(e=>{let t=n==e.label;return(0,d.jsx)("li",{className:m()(["first:rounded-l last:rounded-r","border border-r-0 last:border-r",t?"bg-gray-90 border-gray-90 text-gray-10":"border-gray-40","flex flex-row items-center justify-center","cursor-pointer"]),children:(0,d.jsx)(w.Z,{className:"flex flex-1 items-center justify-center px-4 py-2","data-label":e.label,onMouseOver:a,onMouseOut:i,href:e.link,children:e.label})},e.label)})})]});return(0,d.jsx)(header_Shim,{headerItem:s,className:l,children:(0,d.jsx)("div",{className:m()("flex","flex-col gap-12","lg:flex-row lg:gap-0 lg:justify-center","py-2","lg:pt-6 lg:pb-12"),onMouseOut:i,children:(0,d.jsx)("div",{className:m()("flex","flex-col gap-12","lg:flex-row lg:gap-0 lg:justify-center","lg:w-full"),children:t.cards.map(e=>{let t=n==e.label;return(0,d.jsxs)(w.Z,{href:e.link,"data-label":e.label,onMouseOver:a,onMouseOut:i,className:m()(t?"label-hovered":"","flex flex-col items-start lg:gap-2","first:rounded-l-md last:rounded-r-md","lg:border lg:border-r-0 lg:last:border-r",t?"bg-gray-90 border-gray-90":"border-gray-40","text-gray-80","lg:p-6","text-base lg:text-lg","lg:w-120"),children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h4",{className:m()("font-bold",t?"text-gray-10":"text-gray-90"),children:e.title}),(0,d.jsx)("p",{className:m()(t?"text-gray-10":"text-gray-90"),children:e.subt
1itle})]}),(0,d.jsx)("ul",{className:m()("list-disc list-inside",t?"text-gray-60":"text-gray-70"),children:e.content.trim().split("\n").map((e,t)=>(0,d.jsx)("li",{children:e},t))}),(0,d.jsxs)("p",{className:m()(t?"text-gray-10":"text-gray-90"),children:[(0,d.jsx)("span",{className:m()(t?"opacity-100":"opacity-0",t?"ml-0":"-ml-6","transition-[margin,_opacity]"),children:"-> "}),(0,d.jsx)("span",{className:m()("underline underline-offset-4",t?"decoration-gray-80":"decoration-gray-30"),children:e.actionText})]})]})})})})})},N=l(52287);function Header(e){let{headerClasses:t}=e,{leftHeaderItems:l,rightHeaderItems:n}=N.attributes,[r,a]=(0,f.useState)(!1),[i,s]=(0,f.useState)(!1),o=(0,f.useRef)(0),c=(0,f.useRef)(null),handleScroll=()=>{let e=window.scrollY;e>o.current?s(!0):s(!1)};(0,f.useEffect)(()=>(window.addEventListener("scroll",handleScroll),o.current=c.current.offsetTop,()=>window.removeEventListener("scroll",handleScroll)),[]);let u=l.concat(n.map(e=>({...e,onlyShowOnMobile:!0})));return(0,d.jsx)("div",{ref:c,className:m()(t,"border-b",i?"border-gray-30/80":"border-gray-30/0","w-full","lg:my-4","py-6 lg:py-2","sticky top-0 z-20","transition-colors","bg-white"),children:(0,d.jsxs)("header",{className:m()(b.Gz,b.uQ,"flex items-center"),children:[(0,d.jsx)("div",{className:"flex flex-row flex-1 lg:flex-none hover:opacity-90 mr-4",children:(0,d.jsx)(w.Z,{href:"/",children:(0,d.jsx)(SvgLogo,{alt:"Streamlit Logo. Click to go back to the home page.",viewBox:"0 0 301 165",className:"max-h-5 w-auto relative",style:{top:"-1px"}})})}),(0,d.jsxs)("nav",{className:m()("fixed","inset-0","lg:static","flex-1","z-10 lg:z-0",!1===r?"hidden":"block","lg:block","overflow-y-auto"),children:[(0,d.jsx)("div",{className:"absolute right-6 top-6 lg:hidden flex justify-end",children:(0,d.jsx)(CloseMenuButton,{setIsExpanded:a})}),(0,d.jsx)("ul",{className:m()("flex lg:items-center flex-col lg:flex-row gap-6 lg:gap-8","bg-white lg:bg-transparent","px-6 lg:px-4 pt-24 pb-8 lg:py-0","shadow-lg lg:shadow-none","text-xl lg:text-base"),children:(0,d.jsx)(HeaderItems,{items:u})})]}),(0,d.jsx)("nav",{className:"justify-end",children:(0,d.jsx)("ul",{className:"hidden lg:flex lg:items-center",children:(0,d.jsx)(HeaderItems,{items:n})})}),(0,d.jsx)("div",{className:"lg:hidden flex justify-end",children:(0,d.jsx)(OpenMenuButton,{setIsExpanded:a})})]})})}function OpenMenuButton(e){let{setIsExpanded:t}=e;return(0,d.jsx)("button",{onClick:()=>t(!0),className:"w-6 h-6","aria-label":"Open menu",children:(0,d.jsxs)("svg",{className:"w-full",viewBox:"0 0 37 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M34.7456 17.7988H1.79882C0.804734 17.7988 0 16.9941 0 16C0 15.0059 0.804734 14.2012 1.79882 14.2012H34.7929C35.787 14.2012 36.5917 15.0059 36.5917 16C36.5917 16.9941 35.787 17.7988 34.7456 17.7988Z",fill:"#262730"}),(0,d.jsx)("path",{d:"M34.7456 3.59763H1.79882C0.804734 3.59763 0 2.7929 0 1.79882C0 0.804733 0.804734 0 1.79882 0H34.7929C35.787 0 36.5917 0.804733 36.5917 1.79882C36.5917 2.7929 35.787 3.59763 34.7456 3.59763Z",fill:"#262730"}),(0,d.jsx)("path",{d:"M34.7456 32H1.79882C0.804734 32 0 31.1952 0 30.2012C0 29.2071 0.804734 28.4023 1.79882 28.4023H34.7929C35.787 28.4023 36.5917 29.2071 36.5917 30.2012C36.5917 31.1952 35.787 32 34.7456 32Z",fill:"#262730"})]})})}function CloseMenuButton(e){let{setIsExpanded:t}=e;return(0,d.jsx)("button",{onClick:()=>t(!1),className:"w-6 h-6",children:(0,d.jsx)("svg",{width:"24",height:"21",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M18.9071 15.9993L31.3993 3.50844C32.2021 2.70564 32.2021 1.40491 31.3993 0.602104C30.5965 -0.200701 29.2958 -0.200701 28.493 0.602104L16.0007 13.0929L3.50844 0.602104C2.70564 -0.200701 1.40491 -0.200701 0.602104 0.602104C-0.200701 1.40491 -0.200701 2.70564 0.602104 3.50844L13.0944 15.9993L0.602104 28.4916C-0.200701 29.2944 -0.200701 30.5951 0.602104 31.3979C1.40491 32.2007 2.70564 32.2007 3.50844 31.3979L16.0007 18.9056L28.493 31.3979C28.8947 31.7997 29.4205 31.9998 29.9462 31.9998C30.4719 31.9998 30.9976 31.7989 31.3993 31.3979C32.2021 30.5951 32.2021 29.2944 31.3993 28.4916L18.9071 15.9993Z",fill:"#262730"})})})}function HeaderItem(e){let{children:t,className:l,onClick:n}=e;return(0,d.jsx)("li",{className:(0,k.m)(["pb-6 lg:pt-0 lg:pb-0",l]),onClick:n,children:t})}function HeaderLink(e){let{href:t,children:l,classes:n}=e;return(0,d.jsx)(w.Z,{href:t,showExternalArrow:!0,className:m()("text-gray-90 whitespace-pre","hover:text-gray-70","lg:group-hover:text-gray-70","whitespace-pre",n),children:l})}function HeaderItems(e){let{items:t}=e;return t.map((e,t)=>{let l=e.onlyShowOnMobile?"lg:hidden":"";return(null==e?void 0:e.dropdown)?(0,d.jsx)(header_DropdownSubheader,{className:l,item:e},t):(null==e?void 0:e.cards)?(0,d.jsx)(header_Cards,{className:l,item:e},t):(null==e?void 0:e.button)?(0,d.jsx)("li",{className:l,children:(0,d.jsx)(Button,{title:e.title,link:e.link})},t):(0,d.jsx)(HeaderItem,{className:l,children:(0,d.jsx)(HeaderLink,{href:null==e?void 0:e.link,children:null==e?void 0:e.title})},t)})}var C=l(5152),S=l.n(C);function logo_bw_extends(){return(logo_bw_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}var SvgLogoBw=function(e){return f.createElement("svg",logo_bw_extends({width:301,height:165,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=f.createElement("path",{d:"m150.971 101.551-52.592-27.8L7.087 25.5c-.083-.084-.25-.084-.333-.084-3.333-1.583-6.75 1.75-5.5 5.083L47.77 149.142l.008.025c.05.117.092.234.142.35 1.908 4.425 6.075 7.159 10.608 8.234.383.083.658.159 1.118.251.458.101 1.099.24 1.649.282.091.008.175.008.266.017h.067c.067.008.133.008.2.016h.092c.058.009.125.009.183.009h.108c.067.008.134.008.2.008a817.725 817.725 0 0 0 177.259 0c.708 0 1.4-.033 2.067-.1l.633-.075c.025-.008.058-.008.083-.017.142-.016.284-.041.425-.066.209-.025.417-.067.625-.109.417-.091.607-.158 1.172-.352.565-.194 1.504-.534 2.092-.818.587-.283.995-.555 1.486-.863a26.294 26.294 0 0 0 1.774-1.215c.253-.194.426-.318.61-.493l-.1-.059-99.567-52.616Z",fill:"#808495"})),o||(o=f.createElement("path",{d:"M295.007 25.502h-.084l-91.325 48.25 50.767 75.609 46.4-118.859v-.167c1.167-3.5-2.417-6.666-5.758-4.833",fill:"#262730"})),c||(c=f.createElement("path",{d:"M155.838 2.56c-2.333-3.409-7.417-3.409-9.667 0L98.379 73.752l52.592 27.8 99.667 52.674c.626-.613 1.128-1.21 1.659-1.841.75-.925 1.45-1.916 2.066-3.025l-50.766-75.608L155.838 2.56Z",fill:"#555867"})))};l.p;var _=l(71361);let L=S()(()=>
1l.e(19941).then(l.bind(l,19941)),{loadableGenerated:{webpack:()=>[19941]},ssr:!1});function Footer(){return(0,d.jsx)("footer",{className:"py-6 md:py-12 xl:py-16 mt-8",children:(0,d.jsxs)("div",{className:m()(b.uQ,b.Gz),children:[(0,d.jsx)(Nav,{..._.attributes}),(0,d.jsx)(BottomRow,{..._.attributes})]})})}function BottomRow(e){let{bottomRow:t}=e,{copyright:l,links:n}=t,r=new Date().getFullYear();return(0,d.jsxs)("div",{className:"flex flex-col-reverse lg:flex-row gap-8 items-baseline mt-4",children:[(0,d.jsxs)("p",{className:"flex-1 text-gray-70 whitespace-nowrap",children:["\xa9 ",r," ",l]}),(0,d.jsx)("ul",{className:"mt-4 sm:mt-0 flex flex-row flex-wrap gap-x-4 md:gap-x-8 gap-y-2",children:n.map((e,t)=>(null==e?void 0:e.type)=="cookie settings"?(0,d.jsx)("li",{children:(0,d.jsx)(L,{className:"text-gray-70 hover:text-gray-60 whitespace-nowrap",children:null==e?void 0:e.text})},t):(0,d.jsx)("li",{children:(0,d.jsx)(w.Z,{href:null==e?void 0:e.link,showExternalArrow:!0,className:"text-gray-70 hover:text-gray-60 whitespace-nowrap",children:null==e?void 0:e.text})},t))})]})}function Nav(e){let{columns:t}=e;return(0,d.jsxs)("nav",{className:"relative grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4",children:[(0,d.jsx)(w.Z,{href:"/",className:"absolute right-0",children:(0,d.jsx)(SvgLogoBw,{alt:"Streamlit Logo. Click to go back to the home page.",viewBox:"0 0 301 165",className:"max-h-5 w-auto opacity-80"})}),t.map((e,t)=>(0,d.jsx)(Column,{columnTitle:null==e?void 0:e.title,columnItems:null==e?void 0:e.columnLinks},t))]})}function Column(e){let{columnTitle:t,columnItems:l}=e;return(0,d.jsxs)("ul",{className:"flex flex-col mb-2",children:[(0,d.jsx)("li",{children:(0,d.jsx)("h6",{className:"text-gray-70 uppercase text-sm mb-4",children:t})}),l.map((e,t)=>(0,d.jsx)("li",{className:"mb-4 sm:mr-4 text-left",children:(0,d.jsx)(w.Z,{href:null==e?void 0:e.link,showExternalArrow:!0,className:"text-gray-90 hover:text-gray-70",children:null==e?void 0:e.label},t)},t))]})}var E=l(3416);function BasePage(e){let{headerClasses:t,className:l,children:n}=e,{enabled:r}=E.attributes;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(MainHead,{}),(0,d.jsx)(x.Z,{enabled:r,children:(0,d.jsx)(E.react,{})}),(0,d.jsx)(Header,{headerClasses:t}),(0,d.jsx)("main",{className:m()(l,"overflow-hidden"),children:n}),(0,d.jsx)(Footer,{})]})}},3469:function(e,t,l){"use strict";l.d(t,{$0:function(){return Section},Gz:function(){return u},JQ:function(){return OverscrollSectionContainer},LR:function(){return HeroTitle},NY:function(){return c},NZ:function(){return SectionTitle},Ng:function(){return g},Wr:function(){return LargeText},uQ:function(){return m}});var n=l(85893),r=l(94184),a=l.n(r),i=l(68824),s=l(81023),o=l.n(s);let c="text-xl sm:text-2xl",d=a()(c,"text-gray-70"),u="px-6 sm:px-8",m="container mx-auto",g="sm:grid sm:grid-cols-12 gap-x-8",p="text-gray-90",h=a()("text-4xl sm:text-7xl","whitespace-pre-line");function Section(e){let{layout:t,centered:l,width:r,topPadding:s,bottomPadding:o,className:c,children:d}=e;l=null==l||l,t=null!=t?t:"column";let p={full:-1,wide:0,medium:2,narrow:3}[r],h={grid:g,column:"grid grid-cols-1 gap-8 sm:gap-12",none:null}[t],x=c;if(p>0){let e={grid:"grid grid-cols-1 sm:grid-cols-12 lg:grid-cols-8 gap-x-8",column:"grid grid-cols-1 gap-8 sm:gap-12",none:null}[t];d=(0,n.jsx)("div",{className:a()("col-start-1 col-end-13","lg:col-start-".concat(p," lg:col-end-").concat(13-p+1),e,c),children:d}),h=g,x=null}let f=(0,i.n)(s),b=(0,i.u)(o);return(0,n.jsx)("section",{className:a()(h,"full"==r?null:u,f,b,l?m:null,x),children:d})}function HeroTitle(e){let{className:t,dangerouslySetInnerHTML:l,children:r}=e;return(0,n.jsx)("h1",{className:a()("sm:col-start-1 sm:col-end-13","xl:col-start-3 xl:col-end-11","text-5xl sm:text-7xl md:text-8xl md:leading-none","font-bold",p,t),dangerouslySetInnerHTML:l,children:r})}function SectionTitle(e){let{className:t,children:l,weight:r,dangerouslySetInnerHTML:i}=e;return r="font-"+(null!=r?r:"bold"),(0,n.jsx)("h2",{className:a()(h,p,r,t),dangerouslySetInnerHTML:i,children:l})}function LargeText(e){let{className:t,dangerouslySetInnerHTML:l,children:r}=e;return(0,n.jsx)("div",{className:a()(d,t),dangerouslySetInnerHTML:l,children:r})}function OverscrollSectionContainer(e){let{children:t,classes:l}=e;return(0,n.jsx)("div",{className:o().OverscrollSectionContainer,children:(0,n.jsx)("div",{className:"overflow-x-auto overflow-x-overlay 
1scrollbar-hidden",children:(0,n.jsx)("div",{className:a()(m,u,l),children:t})})})}},56426:function(e,t,l){"use strict";l.d(t,{Z:function(){return Link}});var n,r=l(85893),a=l(41664),i=l.n(a),s=l(94777),o=l(57851),c=l(67294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}var SvgExternalLink=function(e){return c.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",height:20,viewBox:"0 -960 960 960",width:20,fill:"#5f6368"},e),n||(n=c.createElement("path",{d:"m243-192-51-51 429-429H384v-72h360v360h-72v-237L243-192Z"})))};l.p;var Link=e=>{let{children:t,href:l,className:n,showExternalArrow:a,...c}=e;if(!t)return null;let d=(0,o.m)("cursor-pointer",n),u="/playground"==l;if((0,s.fI)(l)||u){let e=-1==l.indexOf(".streamlit.io")&&-1==l.indexOf(".snowflake.com");return(0,r.jsxs)("a",{href:l,target:u?void 0:"_blank",rel:e?"noopener noreferrer":null,className:(0,o.m)("inline-flex flex-row gap-1 items-center",d),...c,children:[t,a&&!u?(0,r.jsx)(SvgExternalLink,{className:"w-4 h-4 fill-gray-60",alt:"External site"}):null]})}return(0,r.jsx)(i(),{href:l,className:d,...c,children:t})}},94777:function(e,t,l){"use strict";l.d(t,{f0:function(){return checkSEO},fI:function(){return isExternalURL},x_:function(){return cleanSrc}});let checkSEO=e=>null!=e&&!!e.pageTitle||null!=e&&!!e.pageDescription||null!=e&&!!e.sharingImage,cleanSrc=e=>"/".concat(e).replaceAll("//","/"),isExternalURL=e=>e.startsWith("http")||e.startsWith("www")},68824:function(e,t,l){"use strict";function getTopPadding(e){return"none"===e?"":"tiny"===e?"pt-2 sm:pt-8 lg:pt-9":"small"===e?"pt-4 sm:pt-12 lg:pt-16":"smallMedium"===e?"pt-4 sm:pt-12 lg:pt-24":"medium"==e?"pt-8 sm:pt-16 lg:pt-32":"huge"==e?"pt-24 sm:pt-48 lg:pt-64":"pt-16 sm:pt-32 lg:pt-48"}function getBottomPadding(e){return"none"===e?"":"tiny"===e?"pb-2 sm:pb-8 lg:pb-9":"small"===e?"pb-4 sm:pb-12 lg:pb-16":"smallMedium"===e?"pb-4 sm:pb-12 lg:pb-24":"medium"==e?"pb-8 sm:pb-16 lg:pb-32":"huge"==e?"pb-24 sm:pb-48 lg:pb-64":"pb-16 sm:pb-32 lg:pb-48"}l.d(t,{n:function(){return getTopPadding},u:function(){return getBottomPadding}})},97617:function(e){e.exports={Container:"AnnouncementBanner_Container__g_wC6"}},81023:function(e){e.exports={OverscrollSectionContainer:"Section_OverscrollSectionContainer__mEzf8",pulsate:"Section_pulsate__OFtcH"}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.