PageSourceSearch

https://streamlit.io/_next/static/chunks/18957.bee60c188716793c.js

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

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18957],{20640:function(e,t,l){"use strict";var n=l(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var l,s,a,c,r,i,d,x,p=!1;t||(t={}),a=t.debug||!1;try{if(r=n(),i=document.createRange(),d=document.getSelection(),(x=document.createElement("span")).textContent=e,x.ariaHidden="true",x.style.all="unset",x.style.position="fixed",x.style.top=0,x.style.clip="rect(0, 0, 0, 0)",x.style.whiteSpace="pre",x.style.webkitUserSelect="text",x.style.MozUserSelect="text",x.style.msUserSelect="text",x.style.userSelect="text",x.addEventListener("copy",function(l){if(l.stopPropagation(),t.format){if(l.preventDefault(),void 0===l.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e)}t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(x),i.selectNodeContents(x),d.addRange(i),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(n){a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),l="message"in t?t.message:"Copy to clipboard: #{key}, Enter",s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",c=l.replace(/#{\s*key\s*}/g,s),window.prompt(c,e)}}finally{d&&("function"==typeof d.removeRange?d.removeRange(i):d.removeAllRanges()),x&&document.body.removeChild(x),r()}return p}},60246:function(e,t,l){"use strict";var n=l(85893),o=l(57851),s=l(68824);t.Z=e=>{let{outerDivClasses:t,innerDivClasses:l,name:a,children:c,fullWidth:r,topPadding:i="none",bottomPadding:d="none"}=e,x=(0,s.n)(i),p=(0,s.u)(d);return r?(0,n.jsx)("section",{className:(0,o.m)(t,"block-".concat(a)),children:(0,n.jsx)("div",{className:(0,o.m)("container mx-auto py-14 sm:py-28 px-6 sm:px-8",x,p,l),children:c})}):(0,n.jsx)("section",{className:(0,o.m)("container mx-auto py-14 sm:py-28 px-6 sm:px-8",t,x,p,"block-".concat(a)),children:c})}},8786:function(e,t,l){"use strict";var n=l(85893),o=l(67294),s=l(10291),a=l(3469),c=l(57851);t.Z=e=>{let t,l,{content:r,classes:i,color:d,largeTextTypography:x=!1,children:p}=e,{text:m,link:u}=(0,o.useContext)(s.V),g=!0===x?a.NY:"";if(d){let e=(0,s.D)(d);t=e.link.childLink,l=e.text.body}else t=u.childLink,l=m.body;let f=(0,c.m)("text-xl sm:text-2xl mb-8 lg:mb-12",l,t,g,i);if(r)return(0,n.jsx)("div",{className:f,dangerouslySetInnerHTML:{__html:r},children:p})}},25762:function(e,t,l){"use strict";var n=l(85893),o=l(10291),s=l(67294),a=l(57851);t.Z=e=>{let{classes:t,title:l,hierarchy:c=2}=e,{text:r}=(0,s.useContext)(o.V),i=(0,a.m)("text-4xl sm:text-7xl whitespace-pre-line font-bold mt-0 mb-6",r.headline,t);if(l){let e="h".concat(c);return(0,n.jsx)(e,{className:i,dangerouslySetInnerHTML:{__html:l}})}}},18957:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return GetStarted}});var n=l(85893),o=l(67294),s=l(94184),a=l.n(s),c=l(20640),r=l.n(c),i=l(60246),d=l(25762),x=l(8786),p=l(56426);l.p;var m=l(18069),u=l.n(m);let g=["child-link:font-semibold child-link:text-green-50 child-link-hover:text-green-30","child-link-focus-visible:ring-green-50 child-link-focus-visible:ring-opacity-50"];function GetStarted(e){let{block:t}=e,{title:l,introText:s,localInstall:c,installDoneText:r,secondaryOptionsExplainer:p,footerText:m,secondaryOptions:f,optionLabel:y}=t;return(0,n.jsxs)("div",{className:a()(u().rootEl,"bg-gray-100"),children:[(0,n.jsx)("a",{name:"install",id:"install",style:{height:0,display:"block"}}),(0,n.jsxs)(i.Z,{outerDivClasses:a()("flex flex-col sm:grid sm:grid-cols-12 gap-x-8","px-6 sm:px-8 pt-24 sm:pt-48 lg:pt-64","pb-24 sm:pb-48 lg:pb-64 container","mx-auto gap-8 lg:gap-12"),children:[l?(0,n.jsx)(d.Z,{classes:a()("sm:col-start-1 sm:col-end-13 lg:col-start-2 lg:col-end-8","xl:col-end-7 text-white mb-0"),title:l}):null,s?(0,n.jsx)(x.Z,{classes:a()("sm:col-start-1 sm:col-end-13 lg:col-start-2","lg:col-end-12 xl:col-end-9 text-gray-30 !mb-0",g),largeTextTypography:!0,content:s}):null,(0,n.jsx)("div",{className:a()("text-xl sm:text-2xl","flex flex-col items-start gap-6","bg-gray-90 rounded-2xl","p-4","sm:px-8 sm:py-12","sm:col-start-1 sm:col-end-13","lg:col-start-2 lg:col-end-12","xl:col-end-10"),children:(0,n.jsx)(CodeBlock,{codeStr:c})}),r?(0,n.jsx)(x.Z,{classes:a()("sm:col-start-1 sm:col-end-13 lg:col-start-2","lg:col-end-12 xl:col-end-9 text-gray-30 !mb-0",g),largeTextTypography:!0,content:r}):null,(0,n.jsxs)("div",{className:a()("sm:col-start-1 sm:col-end-13","lg:col-start-2 lg:col-end-12","xl:col-end-10","flex flex-col gap-6"),children:[p?(0,n.jsx)(x.Z,{classes:a()("text-gray-30","!mb-0",g),largeTextTypography:!0,content:p}):null,(0,n.jsx)("ul",{className:a()("flex flex-col","gap-6"),children:f.map((e,t)=>(0,o.createElement)(InstallOption,{...e,label:y,index:t,totalCount:f.length,key:t}))})]}),(0,n.jsx)(x.Z,{classes:a()("sm:col-start-1 sm:col-end-13 lg:col-start-2","lg:col-end-12 xl:col-end-9 text-gray-30","!mb-0",g),largeTextTypography:!0,content:m})]})]})}function InstallOption(e){let{title:t,bodyText:l,href:o}=e;return(0,n.jsx)("li",{children:(0,n.jsxs)(p.Z,{href:o,className:a()("text-xl sm:text-2xl","flex flex-row items-start","flex-1","text-green-50","gap-4 lg:gap-6","group"),children:["→",(0,n.jsxs)("div",{className:a()("flex flex-col items-start","group-hover:translate-x-1 transition-transform"),children:[(0,n.jsx)(x.Z,{classes:a()("group-hover:text-green-40","text-gray-30 !mb-0"),content:t,largeTextTypography:!0}),(0,n.jsx)(x.Z,{classes:a()("text-gray-70 !mb-0"),content:l,largeTextTypography:!0})]})]})})}
1function CodeBlock(e){let{codeStr:t}=e,l=(0,o.useCallback)(e=>{let t=e.currentTarget,l=e.currentTarget.lastElementChild;r()(t.innerText.split("←")[0]),l.children[0].style.display="none",l.children[1].style.display="block",setTimeout(()=>{l.children[0].style.display="",l.children[1].style.display="none"},800)},[]);return(0,n.jsx)("div",{className:a()("sm:col-start-1 sm:col-end-13","lg:col-start-2 xl:col-end-6","flex flex-col items-start"),children:null==t?void 0:t.split("\n").map((e,t)=>(0,n.jsx)("code",{children:(0,n.jsxs)("button",{onClick:e=>l(e),className:a()(u().codeButton,"relative","focus:outline-none focus:ring-0","font-mono text-white"),children:[(0,n.jsx)("div",{className:a()(u().codeLine,"px-3 -ml-3","rounded-md","hover:bg-gray-90"),children:e}),(0,n.jsxs)("div",{className:a()(u().tooltip,"text-sm text-left","pl-1 md:pl-5","absolute left-full top-0","h-full w-auto md:w-full","flex items-center"),children:[(0,n.jsx)("span",{children:"← Copy to clipboard"}),(0,n.jsx)("span",{children:"Copied!"})]})]},t)},t))})}},18069:function(e){e.exports={rootEl:"InstallCTA_rootEl__37GU2",codeLine:"InstallCTA_codeLine__HY7bo",tooltip:"InstallCTA_tooltip__9kRlz",codeButton:"InstallCTA_codeButton__i44PT"}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,l=[],n=0;n<e.rangeCount;n++)l.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||l.forEach(function(t){e.addRange(t)}
1),t&&t.focus()}}}}]);

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.