import{s as pa,n as ra,o as ua}from"../chunks/scheduler.0cf4ef2e.js";import{S as ha,i as fa,e as s,s as n,c as r,h as ma,a as o,d as a,b as i,f as Ct,g as u,j as p,k,l as ca,m as l,n as h,t as f,o as m,p as c}from"../chunks/index.abc433bf.js";import{C as da}from"../chunks/CopyLLMTxtMenu.efc6b005.js";import{C as g}from"../chunks/CodeBlock.00dcd05e.js";import{H as d,E as ga}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.86d448e2.js";function ya(Jt){let y,ke,Te,Me,M,_e,_,He,H,Lt=`The <a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> is the go-to place for sharing machine learning
models, demos, datasets, and metrics. <code>huggingface_hub</code> library helps you interact with
the Hub without leaving your development environment. You can create and manage
repositories easily, download and upload files, and get useful model and dataset
metadata from the Hub.`,je,j,Ce,C,Ut="To get started, install the <code>huggingface_hub</code> library:",Je,J,Le,L,xt='For more details, check out the <a href="installation">installation</a> guide.',Ue,U,xe,x,Gt=`Repositories on the Hub are git version controlled, and users can download a single file
or the whole repository. You can use the <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_download">hf_hub_download()</a> function to download files.
This function will download and cache a file on your local disk. The next time you need
that file, it will load from your cache, so you don’t need to re-download it.`,Ge,G,It=`You will need the repository id and the filename of the file you want to download. For
example, to download the <a href="https://huggingface.co/google/pegasus-xsum" rel="nofollow">Pegasus</a> model
configuration file:`,Ie,I,Ze,Z,Zt=`To download a specific version of the file, use the <code>revision</code> parameter to specify the
branch name, tag, or commit hash. If you choose to use the commit hash, it must be the
full-length hash instead of the shorter 7-character commit hash:`,Ye,Y,Be,B,Yt='For more details and options, see the API reference for <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_download">hf_hub_download()</a>.',Ee,$e,qe,E,Xe,q,Bt=`In a lot of cases, you must be authenticated with a Hugging Face account to interact with
the Hub: download private repos, upload files, create PRs,…
<a href="https://huggingface.co/join" rel="nofollow">Create an account</a> if you don’t already have one, and then sign in
to get your <a href="https://huggingface.co/docs/hub/security-tokens" rel="nofollow">User Access Token</a> from
your <a href="https://huggingface.co/settings/tokens" rel="nofollow">Settings page</a>. The User Access Token is
used to authenticate your identity to the Hub.`,Pe,w,Et="<p>Tokens can have <code>read</code> or <code>write</code> permissions. Make sure to have a <code>write</code> access token if you want to create or edit a repository. Otherwise, it’s best to generate a <code>read</code> token to reduce risk in case your token is inadvertently leaked.</p>",Se,X,Ne,P,qt='The easiest way to authenticate is to save the token on your machine. You can do that from the terminal using the <a href="/docs/huggingface_hub/main/en/package_reference/authentication#huggingface_hub.login">login()</a> command:',Qe,S,We,N,Xt="The command will tell you if you are already logged in and prompt you for your token. The token is then validated and saved in your <code>HF_HOME</code> directory (defaults to <code>~/.cache/huggingface/token</code>). Any script or library interacting with the Hub will use this token when sending requests.",Ae,Q,Pt='Alternatively, you can programmatically log in using <a href="/docs/huggingface_hub/main/en/package_reference/authentication#huggingface_hub.login">login()</a> in a notebook or a script:',Fe,W,Oe,A,St="You can only be logged in to one account at a time. Logging in to a new account will automatically log you out of the previous one. To determine your currently active account, simply run the <code>hf auth whoami</code> command.",Ve,b,Nt='<p>Once logged in, all requests to the Hub - even methods that don’t necessarily require authentication - will use your access token by default. If you want to disable the implicit use of your token, you should set <code>HF_HUB_DISABLE_IMPLICIT_TOKEN=1</code> as an environment variable (see <a href="../package_reference/environment_variables#hfhubdisableimplicittoken">reference</a>).</p>',ze,F,Re,O,Qt='You can save multiple tokens on your machine by simply logging in with the <a href="/docs/huggingface_hub/main/en/package_reference/authentication#huggingface_hub.login">login()</a> command with each token. If you need to switch between these tokens locally, you can use the <code>auth switch</code> command:',Ke,V,De,z,Wt="This command will prompt you to select a token by its name from a list of saved tokens. Once selected, the chosen token becomes the <em>active</em> token, and it will be used for all interactions with the Hub.",et,R,At="You can list all available access tokens on your machine with <code>hf auth list</code>.",tt,K,at,D,Ft='The environment variable <code>HF_TOKEN</code> can also be used to authenticate yourself. This is especially useful in a Space where you can set <code>HF_TOKEN</code> as a <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">Space secret</a>.',lt,$,Ot='<p><strong>NEW:</strong> Google Colaboratory lets you define <a href="https://twitter.com/GoogleColab/status/1719798406195867814" rel="nofollow">private keys</a> for your notebooks. Define a <code>HF_TOKEN</code> secret to be automatically authenticated!</p>',nt,ee,Vt="Authentication via an environment variable or a secret has priority over the token stored on your machine.",it,te,st,ae,zt="Finally, it is also possible to authenticate by passing your token to any method that accepts <code>token</code> as a parameter.",ot,le,pt,ne,Rt="This is usually discouraged except in an environment where you don’t want to store your token permanently or if you need to handle several tokens at once.",rt,T,Kt="<p>Please be careful when passing tokens as a parameter. It is always best practice to load the token from a secure vault instead of hardcoding it in your codebase or notebook. Hardcoded tokens present a major leak risk if you share your code inadvertently.</p>",ut,ie,ht,se,Dt=`Once you’ve registered and logged in, create a repository with the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>
function:`,ft,oe,mt,pe,ea="If you want your repository to be private, then:",ct,re,dt,ue,ta="Private repositories will not be visible to anyone except yourself.",gt,v,aa=`<p>To create a repository or to push content to the Hub, you must provide a User Access
Token that has the <code>write</code> permission. You can choose the permission when creating the
token in your <a href="https://huggingface.co/settings/tokens" rel="nofollow">Settings page</a>.</p>`,yt,he,wt,fe,la=`Use the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a> function to add a file to your newly created repository. You
need to specify:`,bt,me,na="<li>The path of the file to upload.</li> <li>The path of the file in the repository.</li> <li>The repository id of where you want to add the file.</li>",$t,ce,Tt,de,ia=`To upload more than one file at a time, take a look at the <a href="./guides/upload">Upload</a> guide
which will introduce you to several methods for uploading files (with or without git).`,vt,ge,kt,ye,sa=`The <code>huggingface_hub</code> library provides an easy way for users to interact with the Hub
with Python. To learn more about how you can manage your files and repositories on the
Hub, we recommend reading our <a href="./guides/overview">how-to guides</a> to:`,Mt,we,oa='<li><a href="./guides/repository">Manage your repository</a>.</li> <li><a href="./guides/download">Download</a> files from the Hub.</li> <li><a href="./guides/upload">Upload</a> files to the Hub.</li> <li><a href="./guides/search">Search the Hub</a> for your desired model or dataset.</li> <li><a href="./guides/inference">Run Inference</a> across multiple services for models hosted on the Hugging Face Hub.</li>',_t,be,Ht,ve,jt;return M=new da({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),_=new d({props:{title:"Quickstart",local:"quickstart",headingTag:"h1"}}),j=new d({props:{title:"Installation",local:"installation",headingTag:"h2"}}),J=new g({props:{code:"cGlwJTIwaW5zdGFsbCUyMC0tdXBncmFkZSUyMGh1Z2dpbmdmYWNlX2h1Yg==",highlighted:"pip install --upgrade huggingface_hub",wrap:!1}}),U=new d({props:{title:"Download files",local:"download-files",headingTag:"h2"}}),I=new g({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZChyZXBvX2lkJTNEJTIyZ29vZ2xlJTJGcGVnYXN1cy14c3VtJTIyJTJDJTIwZmlsZW5hbWUlM0QlMjJjb25maWcuanNvbiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_download(repo_id=<span class="hljs-string">&quot;google/pegasus-xsum&quot;</span>, filename=<span class="hljs-string">&quot;config.json&quot;</span>)`,wrap:!1}}),Y=new g({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIyZ29vZ2xlJTJGcGVnYXN1cy14c3VtJTIyJTJDJTBBJTIwJTIwJTIwJTIwZmlsZW5hbWUlM0QlMjJjb25maWcuanNvbiUyMiUyQyUwQSUyMCUyMCUyMCUyMHJldmlzaW9uJTNEJTIyNGQzM2IwMWQ3OTY3MmYyN2YwMDFmNmFiYWRlMzNmMjJkOTkzYjE1MSUyMiUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_download(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;google/pegasus-xsum&quot;</span>,
<span class="hljs-meta">... </span>    filename=<span class="hljs-string">&quot;config.json&quot;</span>,
<span class="hljs-meta">... </span>    revision=<span class="hljs-string">&quot;4d33b01d79672f27f001f6abade33f22d993b151&quot;</span>
<span class="hljs-meta">... </span>)`,wrap:!1}}),E=new d({props:{title:"Authentication",local:"authentication",headingTag:"h2"}}),X=new d({props:{title:"Login command",local:"login-command",headingTag:"h3"}}),S=new g({props:{code:"aGYlMjBhdXRoJTIwbG9naW4=",highlighted:"hf auth login",wrap:!1}}),W=new g({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2luJTBBbG9naW4oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> login
<span class="hljs-meta">&gt;&gt;&gt; </span>login()`,wrap:!1}}),F=new d({props:{title:"Manage multiple tokens locally",local:"manage-multiple-tokens-locally",headingTag:"h3"}}),V=new g({props:{code:"aGYlMjBhdXRoJTIwc3dpdGNo",highlighted:"hf auth switch",wrap:!1}}),K=new d({props:{title:"Environment variable",local:"environment-variable",headingTag:"h3"}}),te=new d({props:{title:"Method parameters",local:"method-parameters",headingTag:"h3"}}),le=new g({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHdob2FtaSUwQSUwQXVzZXIlMjAlM0QlMjB3aG9hbWkodG9rZW4lM0QuLi4p",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub import whoami
<span class="hljs-built_in">
user </span>= whoami(<span class="hljs-attribute">token</span>=...)`,wrap:!1}}),ie=new d({props:{title:"Create a repository",local:"create-a-repository",headingTag:"h2"}}),oe=new g({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS5jcmVhdGVfcmVwbyhyZXBvX2lkJTNEJTIyc3VwZXItY29vbC1tb2RlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.create_repo(repo_id=<span class="hljs-string">&quot;super-cool-model&quot;</span>)`,wrap:!1}}),re=new g({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS5jcmVhdGVfcmVwbyhyZXBvX2lkJTNEJTIyc3VwZXItY29vbC1tb2RlbCUyMiUyQyUyMHByaXZhdGUlM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.create_repo(repo_id=<span class="hljs-string">&quot;super-cool-model&quot;</span>, private=<span class="hljs-literal">True</span>)`,wrap:!1}}),he=new d({props:{title:"Upload files",local:"upload-files",headingTag:"h2"}}),ce=new g({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS51cGxvYWRfZmlsZSglMEElMjAlMjAlMjAlMjBwYXRoX29yX2ZpbGVvYmolM0QlMjIlMkZob21lJTJGbHlzYW5kcmUlMkZkdW1teS10ZXN0JTJGUkVBRE1FLm1kJTIyJTJDJTBBJTIwJTIwJTIwJTIwcGF0aF9pbl9yZXBvJTNEJTIyUkVBRE1FLm1kJTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMmx5c2FuZHJlJTJGdGVzdC1tb2RlbCUyMiUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.upload_file(
<span class="hljs-meta">... </span>    path_or_fileobj=<span class="hljs-string">&quot;/home/lysandre/dummy-test/README.md&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;README.md&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;lysandre/test-model&quot;</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),ge=new d({props:{title:"Next steps",local:"next-steps",headingTag:"h2"}}),be=new ga({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/quick-start.md"}}),{c(){y=s("meta"),ke=n(),Te=s("p"),Me=n(),r(M.$$.fragment),_e=n(),r(_.$$.fragment),He=n(),H=s("p"),H.innerHTML=Lt,je=n(),r(j.$$.fragment),Ce=n(),C=s("p"),C.innerHTML=Ut,Je=n(),r(J.$$.fragment),Le=n(),L=s("p"),L.innerHTML=xt,Ue=n(),r(U.$$.fragment),xe=n(),x=s("p"),x.innerHTML=Gt,Ge=n(),G=s("p"),G.innerHTML=It,Ie=n(),r(I.$$.fragment),Ze=n(),Z=s("p"),Z.innerHTML=Zt,Ye=n(),r(Y.$$.fragment),Be=n(),B=s("p"),B.innerHTML=Yt,Ee=n(),$e=s("a"),qe=n(),r(E.$$.fragment),Xe=n(),q=s("p"),q.innerHTML=Bt,Pe=n(),w=s("blockquote"),w.innerHTML=Et,Se=n(),r(X.$$.fragment),Ne=n(),P=s("p"),P.innerHTML=qt,Qe=n(),r(S.$$.fragment),We=n(),N=s("p"),N.innerHTML=Xt,Ae=n(),Q=s("p"),Q.innerHTML=Pt,Fe=n(),r(W.$$.fragment),Oe=n(),A=s("p"),A.innerHTML=St,Ve=n(),b=s("blockquote"),b.innerHTML=Nt,ze=n(),r(F.$$.fragment),Re=n(),O=s("p"),O.innerHTML=Qt,Ke=n(),r(V.$$.fragment),De=n(),z=s("p"),z.innerHTML=Wt,et=n(),R=s("p"),R.innerHTML=At,tt=n(),r(K.$$.fragment),at=n(),D=s("p"),D.innerHTML=Ft,lt=n(),$=s("blockquote"),$.innerHTML=Ot,nt=n(),ee=s("p"),ee.textContent=Vt,it=n(),r(te.$$.fragment),st=n(),ae=s("p"),ae.innerHTML=zt,ot=n(),r(le.$$.fragment),pt=n(),ne=s("p"),ne.textContent=Rt,rt=n(),T=s("blockquote"),T.innerHTML=Kt,ut=n(),r(ie.$$.fragment),ht=n(),se=s("p"),se.innerHTML=Dt,ft=n(),r(oe.$$.fragment),mt=n(),pe=s("p"),pe.textContent=ea,ct=n(),r(re.$$.fragment),dt=n(),ue=s("p"),ue.textContent=ta,gt=n(),v=s("blockquote"),v.innerHTML=aa,yt=n(),r(he.$$.fragment),wt=n(),fe=s("p"),fe.innerHTML=la,bt=n(),me=s("ol"),me.innerHTML=na,$t=n(),r(ce.$$.fragment),Tt=n(),de=s("p"),de.innerHTML=ia,vt=n(),r(ge.$$.fragment),kt=n(),ye=s("p"),ye.innerHTML=sa,Mt=n(),we=s("ul"),we.innerHTML=oa,_t=n(),r(be.$$.fragment),Ht=n(),ve=s("p"),this.h()},l(e){const t=ma("svelte-u9bgzb",document.head);y=o(t,"META",{name:!0,content:!0}),t.forEach(a),ke=i(e),Te=o(e,"P",{}),Ct(Te).forEach(a),Me=i(e),u(M.$$.fragment,e),_e=i(e),u(_.$$.fragment,e),He=i(e),H=o(e,"P",{"data-svelte-h":!0}),p(H)!=="svelte-1o7lz4b"&&(H.innerHTML=Lt),je=i(e),u(j.$$.fragment,e),Ce=i(e),C=o(e,"P",{"data-svelte-h":!0}),p(C)!=="svelte-d3f1yw"&&(C.innerHTML=Ut),Je=i(e),u(J.$$.fragment,e),Le=i(e),L=o(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-ca9fxm"&&(L.innerHTML=xt),Ue=i(e),u(U.$$.fragment,e),xe=i(e),x=o(e,"P",{"data-svelte-h":!0}),p(x)!=="svelte-1xr9moc"&&(x.innerHTML=Gt),Ge=i(e),G=o(e,"P",{"data-svelte-h":!0}),p(G)!=="svelte-1hlz4md"&&(G.innerHTML=It),Ie=i(e),u(I.$$.fragment,e),Ze=i(e),Z=o(e,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-1690qlh"&&(Z.innerHTML=Zt),Ye=i(e),u(Y.$$.fragment,e),Be=i(e),B=o(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-bvgpbq"&&(B.innerHTML=Yt),Ee=i(e),$e=o(e,"A",{id:!0}),Ct($e).forEach(a),qe=i(e),u(E.$$.fragment,e),Xe=i(e),q=o(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-sbxtta"&&(q.innerHTML=Bt),Pe=i(e),w=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(w)!=="svelte-1r5xksk"&&(w.innerHTML=Et),Se=i(e),u(X.$$.fragment,e),Ne=i(e),P=o(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-jhg9d7"&&(P.innerHTML=qt),Qe=i(e),u(S.$$.fragment,e),We=i(e),N=o(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-ckmbtp"&&(N.innerHTML=Xt),Ae=i(e),Q=o(e,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-qlb4mm"&&(Q.innerHTML=Pt),Fe=i(e),u(W.$$.fragment,e),Oe=i(e),A=o(e,"P",{"data-svelte-h":!0}),p(A)!=="svelte-gh6r2v"&&(A.innerHTML=St),Ve=i(e),b=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(b)!=="svelte-140mrj"&&(b.innerHTML=Nt),ze=i(e),u(F.$$.fragment,e),Re=i(e),O=o(e,"P",{"data-svelte-h":!0}),p(O)!=="svelte-1r2ivyp"&&(O.innerHTML=Qt),Ke=i(e),u(V.$$.fragment,e),De=i(e),z=o(e,"P",{"data-svelte-h":!0}),p(z)!=="svelte-1coitj2"&&(z.innerHTML=Wt),et=i(e),R=o(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-qut475"&&(R.innerHTML=At),tt=i(e),u(K.$$.fragment,e),at=i(e),D=o(e,"P",{"data-svelte-h":!0}),p(D)!=="svelte-kj5aun"&&(D.innerHTML=Ft),lt=i(e),$=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p($)!=="svelte-1tkpwkb"&&($.innerHTML=Ot),nt=i(e),ee=o(e,"P",{"data-svelte-h":!0}),p(ee)!=="svelte-1ypx384"&&(ee.textContent=Vt),it=i(e),u(te.$$.fragment,e),st=i(e),ae=o(e,"P",{"data-svelte-h":!0}),p(ae)!=="svelte-1s67ztk"&&(ae.innerHTML=zt),ot=i(e),u(le.$$.fragment,e),pt=i(e),ne=o(e,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-1k7v7lg"&&(ne.textContent=Rt),rt=i(e),T=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(T)!=="svelte-1niqaz6"&&(T.innerHTML=Kt),ut=i(e),u(ie.$$.fragment,e),ht=i(e),se=o(e,"P",{"data-svelte-h":!0}),p(se)!=="svelte-fxl0yb"&&(se.innerHTML=Dt),ft=i(e),u(oe.$$.fragment,e),mt=i(e),pe=o(e,"P",{"data-svelte-h":!0}),p(pe)!=="svelte-1fi8ypz"&&(pe.textContent=ea),ct=i(e),u(re.$$.fragment,e),dt=i(e),ue=o(e,"P",{"data-svelte-h":!0}),p(ue)!=="svelte-1lbz52k"&&(ue.textContent=ta),gt=i(e),v=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(v)!=="svelte-ol6436"&&(v.innerHTML=aa),yt=i(e),u(he.$$.fragment,e),wt=i(e),fe=o(e,"P",{"data-svelte-h":!0}),p(fe)!=="svelte-1xdg7eg"&&(fe.innerHTML=la),bt=i(e),me=o(e,"OL",{"data-svelte-h":!0}),p(me)!=="svelte-1fhvo2z"&&(me.innerHTML=na),$t=i(e),u(ce.$$.fragment,e),Tt=i(e),de=o(e,"P",{"data-svelte-h":!0}),p(de)!=="svelte-13v7wrf"&&(de.innerHTML=ia),vt=i(e),u(ge.$$.fragment,e),kt=i(e),ye=o(e,"P",{"data-svelte-h":!0}),p(ye)!=="svelte-ss1pgv"&&(ye.innerHTML=sa),Mt=i(e),we=o(e,"UL",{"data-svelte-h":!0}),p(we)!=="svelte-oe88nn"&&(we.innerHTML=oa),_t=i(e),u(be.$$.fragment,e),Ht=i(e),ve=o(e,"P",{}),Ct(ve).forEach(a),this.h()},h(){k(y,"name","hf:doc:metadata"),k(y,"content",wa),k($e,"id","login"),k(w,"class","tip"),k(b,"class","warning"),k($,"class","tip"),k(T,"class","warning"),k(v,"class","tip")},m(e,t){ca(document.head,y),l(e,ke,t),l(e,Te,t),l(e,Me,t),h(M,e,t),l(e,_e,t),h(_,e,t),l(e,He,t),l(e,H,t),l(e,je,t),h(j,e,t),l(e,Ce,t),l(e,C,t),l(e,Je,t),h(J,e,t),l(e,Le,t),l(e,L,t),l(e,Ue,t),h(U,e,t),l(e,xe,t),l(e,x,t),l(e,Ge,t),l(e,G,t),l(e,Ie,t),h(I,e,t),l(e,Ze,t),l(e,Z,t),l(e,Ye,t),h(Y,e,t),l(e,Be,t),l(e,B,t),l(e,Ee,t),l(e,$e,t),l(e,qe,t),h(E,e,t),l(e,Xe,t),l(e,q,t),l(e,Pe,t),l(e,w,t),l(e,Se,t),h(X,e,t),l(e,Ne,t),l(e,P,t),l(e,Qe,t),h(S,e,t),l(e,We,t),l(e,N,t),l(e,Ae,t),l(e,Q,t),l(e,Fe,t),h(W,e,t),l(e,Oe,t),l(e,A,t),l(e,Ve,t),l(e,b,t),l(e,ze,t),h(F,e,t),l(e,Re,t),l(e,O,t),l(e,Ke,t),h(V,e,t),l(e,De,t),l(e,z,t),l(e,et,t),l(e,R,t),l(e,tt,t),h(K,e,t),l(e,at,t),l(e,D,t),l(e,lt,t),l(e,$,t),l(e,nt,t),l(e,ee,t),l(e,it,t),h(te,e,t),l(e,st,t),l(e,ae,t),l(e,ot,t),h(le,e,t),l(e,pt,t),l(e,ne,t),l(e,rt,t),l(e,T,t),l(e,ut,t),h(ie,e,t),l(e,ht,t),l(e,se,t),l(e,ft,t),h(oe,e,t),l(e,mt,t),l(e,pe,t),l(e,ct,t),h(re,e,t),l(e,dt,t),l(e,ue,t),l(e,gt,t),l(e,v,t),l(e,yt,t),h(he,e,t),l(e,wt,t),l(e,fe,t),l(e,bt,t),l(e,me,t),l(e,$t,t),h(ce,e,t),l(e,Tt,t),l(e,de,t),l(e,vt,t),h(ge,e,t),l(e,kt,t),l(e,ye,t),l(e,Mt,t),l(e,we,t),l(e,_t,t),h(be,e,t),l(e,Ht,t),l(e,ve,t),jt=!0},p:ra,i(e){jt||(f(M.$$.fragment,e),f(_.$$.fragment,e),f(j.$$.fragment,e),f(J.$$.fragment,e),f(U.$$.fragment,e),f(I.$$.fragment,e),f(Y.$$.fragment,e),f(E.$$.fragment,e),f(X.$$.fragment,e),f(S.$$.fragment,e),f(W.$$.fragment,e),f(F.$$.fragment,e),f(V.$$.fragment,e),f(K.$$.fragment,e),f(te.$$.fragment,e),f(le.$$.fragment,e),f(ie.$$.fragment,e),f(oe.$$.fragment,e),f(re.$$.fragment,e),f(he.$$.fragment,e),f(ce.$$.fragment,e),f(ge.$$.fragment,e),f(be.$$.fragment,e),jt=!0)},o(e){m(M.$$.fragment,e),m(_.$$.fragment,e),m(j.$$.fragment,e),m(J.$$.fragment,e),m(U.$$.fragment,e),m(I.$$.fragment,e),m(Y.$$.fragment,e),m(E.$$.fragment,e),m(X.$$.fragment,e),m(S.$$.fragment,e),m(W.$$.fragment,e),m(F.$$.fragment,e),m(V.$$.fragment,e),m(K.$$.fragment,e),m(te.$$.fragment,e),m(le.$$.fragment,e),m(ie.$$.fragment,e),m(oe.$$.fragment,e),m(re.$$.fragment,e),m(he.$$.fragment,e),m(ce.$$.fragment,e),m(ge.$$.fragment,e),m(be.$$.fragment,e),jt=!1},d(e){e&&(a(ke),a(Te),a(Me),a(_e),a(He),a(H),a(je),a(Ce),a(C),a(Je),a(Le),a(L),a(Ue),a(xe),a(x),a(Ge),a(G),a(Ie),a(Ze),a(Z),a(Ye),a(Be),a(B),a(Ee),a($e),a(qe),a(Xe),a(q),a(Pe),a(w),a(Se),a(Ne),a(P),a(Qe),a(We),a(N),a(Ae),a(Q),a(Fe),a(Oe),a(A),a(Ve),a(b),a(ze),a(Re),a(O),a(Ke),a(De),a(z),a(et),a(R),a(tt),a(at),a(D),a(lt),a($),a(nt),a(ee),a(it),a(st),a(ae),a(ot),a(pt),a(ne),a(rt),a(T),a(ut),a(ht),a(se),a(ft),a(mt),a(pe),a(ct),a(dt),a(ue),a(gt),a(v),a(yt),a(wt),a(fe),a(bt),a(me),a($t),a(Tt),a(de),a(vt),a(kt),a(ye),a(Mt),a(we),a(_t),a(Ht),a(ve)),a(y),c(M,e),c(_,e),c(j,e),c(J,e),c(U,e),c(I,e),c(Y,e),c(E,e),c(X,e),c(S,e),c(W,e),c(F,e),c(V,e),c(K,e),c(te,e),c(le,e),c(ie,e),c(oe,e),c(re,e),c(he,e),c(ce,e),c(ge,e),c(be,e)}}}const wa='{"title":"Quickstart","local":"quickstart","sections":[{"title":"Installation","local":"installation","sections":[],"depth":2},{"title":"Download files","local":"download-files","sections":[],"depth":2},{"title":"Authentication","local":"authentication","sections":[{"title":"Login command","local":"login-command","sections":[],"depth":3},{"title":"Manage multiple tokens locally","local":"manage-multiple-tokens-locally","sections":[],"depth":3},{"title":"Environment variable","local":"environment-variable","sections":[],"depth":3},{"title":"Method parameters","local":"method-parameters","sections":[],"depth":3}],"depth":2},{"title":"Create a repository","local":"create-a-repository","sections":[],"depth":2},{"title":"Upload files","local":"upload-files","sections":[],"depth":2},{"title":"Next steps","local":"next-steps","sections":[],"depth":2}],"depth":1}';function ba(Jt){return ua(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _a extends ha{constructor(y){super(),fa(this,y,ba,ya,pa,{})}}export{_a as component};
