import{s as pa,o as ra,n as ke}from"../chunks/scheduler.6062bdaf.js";import{S as fa,i as ua,g as o,s as l,r as u,A as ha,h as p,f as a,c as s,j as Jt,u as h,x as f,k as Ct,y as ma,a as n,v as m,d as c,t as g,w as d}from"../chunks/index.4bca734e.js";import{T as Me}from"../chunks/Tip.b9ac1f03.js";import{C as T}from"../chunks/CodeBlock.cbbddafc.js";import{H as b,E as ca}from"../chunks/index.60dd99e8.js";function ga(w){let i,$="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.";return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1kew6rf"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function da(w){let i,$='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>).';return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1a9vyz9"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function $a(w){let i,$='<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!';return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-w1ks3y"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function ya(w){let i,$="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.";return{c(){i=o("p"),i.textContent=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1r3zcky"&&(i.textContent=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function wa(w){let i,$=`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>.`;return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-e1q7ml"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function ba(w){let i,$,r,y,j,He,J,Ut=`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,C,Je,U,xt="To get started, install the <code>huggingface_hub</code> library:",Ce,x,Ue,L,Lt='For more details, check out the <a href="installation">installation</a> guide.',xe,G,Le,Z,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,I,Zt=`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:`,Ze,Y,Ie,P,It=`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,X,Pe,E,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>.',Xe,ve,Ee,B,Be,N,Pt=`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.`,Ne,v,Se,S,Ae,A,Xt='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,q,We,W,Et="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.",Qe,Q,Bt='Alternatively, you can programmatically login using <a href="/docs/huggingface_hub/main/en/package_reference/authentication#huggingface_hub.login">login()</a> in a notebook or a script:',Fe,F,Ve,V,Nt="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>huggingface-cli whoami</code> command.",ze,_,Re,z,Oe,R,St='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:',De,O,Ke,D,At="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,K,qt="You can list all available access tokens on your machine with <code>huggingface-cli auth list</code>.",tt,ee,at,te,Wt='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>.',nt,M,lt,ae,Qt="Authentication via an environment variable or a secret has priority over the token stored on your machine.",st,ne,it,le,Ft="Finally, it is also possible to authenticate by passing your token to any method that accepts <code>token</code> as a parameter.",ot,se,pt,ie,Vt="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,k,ft,oe,ut,pe,zt=`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:`,ht,re,mt,fe,Rt="If you want your repository to be private, then:",ct,ue,gt,he,Ot="Private repositories will not be visible to anyone except yourself.",dt,H,$t,me,yt,ce,Dt=`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:`,wt,ge,Kt="<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>",bt,de,Tt,$e,ea=`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,ye,_t,we,ta=`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,be,aa='<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">Access the Inference API</a> for fast inference.</li>',kt,Te,Ht,_e,jt;return j=new b({props:{title:"Quickstart",local:"quickstart",headingTag:"h1"}}),C=new b({props:{title:"Installation",local:"installation",headingTag:"h2"}}),x=new T({props:{code:"cGlwJTIwaW5zdGFsbCUyMC0tdXBncmFkZSUyMGh1Z2dpbmdmYWNlX2h1Yg==",highlighted:"pip install --upgrade huggingface_hub",wrap:!1}}),G=new b({props:{title:"Download files",local:"download-files",headingTag:"h2"}}),Y=new T({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}}),X=new T({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}}),B=new b({props:{title:"Authentication",local:"authentication",headingTag:"h2"}}),v=new Me({props:{$$slots:{default:[ga]},$$scope:{ctx:w}}}),S=new b({props:{title:"Login command",local:"login-command",headingTag:"h3"}}),q=new T({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login",wrap:!1}}),F=new T({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}}),_=new Me({props:{warning:!0,$$slots:{default:[da]},$$scope:{ctx:w}}}),z=new b({props:{title:"Manage multiple tokens locally",local:"manage-multiple-tokens-locally",headingTag:"h3"}}),O=new T({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwYXV0aCUyMHN3aXRjaA==",highlighted:"huggingface-cli auth switch",wrap:!1}}),ee=new b({props:{title:"Environment variable",local:"environment-variable",headingTag:"h3"}}),M=new Me({props:{$$slots:{default:[$a]},$$scope:{ctx:w}}}),ne=new b({props:{title:"Method parameters",local:"method-parameters",headingTag:"h3"}}),se=new T({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}}),k=new Me({props:{warning:!0,$$slots:{default:[ya]},$$scope:{ctx:w}}}),oe=new b({props:{title:"Create a repository",local:"create-a-repository",headingTag:"h2"}}),re=new T({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}}),ue=new T({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}}),H=new Me({props:{$$slots:{default:[wa]},$$scope:{ctx:w}}}),me=new b({props:{title:"Upload files",local:"upload-files",headingTag:"h2"}}),de=new T({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}}),ye=new b({props:{title:"Next steps",local:"next-steps",headingTag:"h2"}}),Te=new ca({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/quick-start.md"}}),{c(){i=o("meta"),$=l(),r=o("p"),y=l(),u(j.$$.fragment),He=l(),J=o("p"),J.innerHTML=Ut,je=l(),u(C.$$.fragment),Je=l(),U=o("p"),U.innerHTML=xt,Ce=l(),u(x.$$.fragment),Ue=l(),L=o("p"),L.innerHTML=Lt,xe=l(),u(G.$$.fragment),Le=l(),Z=o("p"),Z.innerHTML=Gt,Ge=l(),I=o("p"),I.innerHTML=Zt,Ze=l(),u(Y.$$.fragment),Ie=l(),P=o("p"),P.innerHTML=It,Ye=l(),u(X.$$.fragment),Pe=l(),E=o("p"),E.innerHTML=Yt,Xe=l(),ve=o("a"),Ee=l(),u(B.$$.fragment),Be=l(),N=o("p"),N.innerHTML=Pt,Ne=l(),u(v.$$.fragment),Se=l(),u(S.$$.fragment),Ae=l(),A=o("p"),A.innerHTML=Xt,qe=l(),u(q.$$.fragment),We=l(),W=o("p"),W.innerHTML=Et,Qe=l(),Q=o("p"),Q.innerHTML=Bt,Fe=l(),u(F.$$.fragment),Ve=l(),V=o("p"),V.innerHTML=Nt,ze=l(),u(_.$$.fragment),Re=l(),u(z.$$.fragment),Oe=l(),R=o("p"),R.innerHTML=St,De=l(),u(O.$$.fragment),Ke=l(),D=o("p"),D.innerHTML=At,et=l(),K=o("p"),K.innerHTML=qt,tt=l(),u(ee.$$.fragment),at=l(),te=o("p"),te.innerHTML=Wt,nt=l(),u(M.$$.fragment),lt=l(),ae=o("p"),ae.textContent=Qt,st=l(),u(ne.$$.fragment),it=l(),le=o("p"),le.innerHTML=Ft,ot=l(),u(se.$$.fragment),pt=l(),ie=o("p"),ie.textContent=Vt,rt=l(),u(k.$$.fragment),ft=l(),u(oe.$$.fragment),ut=l(),pe=o("p"),pe.innerHTML=zt,ht=l(),u(re.$$.fragment),mt=l(),fe=o("p"),fe.textContent=Rt,ct=l(),u(ue.$$.fragment),gt=l(),he=o("p"),he.textContent=Ot,dt=l(),u(H.$$.fragment),$t=l(),u(me.$$.fragment),yt=l(),ce=o("p"),ce.innerHTML=Dt,wt=l(),ge=o("ol"),ge.innerHTML=Kt,bt=l(),u(de.$$.fragment),Tt=l(),$e=o("p"),$e.innerHTML=ea,vt=l(),u(ye.$$.fragment),_t=l(),we=o("p"),we.innerHTML=ta,Mt=l(),be=o("ul"),be.innerHTML=aa,kt=l(),u(Te.$$.fragment),Ht=l(),_e=o("p"),this.h()},l(e){const t=ha("svelte-u9bgzb",document.head);i=p(t,"META",{name:!0,content:!0}),t.forEach(a),$=s(e),r=p(e,"P",{}),Jt(r).forEach(a),y=s(e),h(j.$$.fragment,e),He=s(e),J=p(e,"P",{"data-svelte-h":!0}),f(J)!=="svelte-1o7lz4b"&&(J.innerHTML=Ut),je=s(e),h(C.$$.fragment,e),Je=s(e),U=p(e,"P",{"data-svelte-h":!0}),f(U)!=="svelte-d3f1yw"&&(U.innerHTML=xt),Ce=s(e),h(x.$$.fragment,e),Ue=s(e),L=p(e,"P",{"data-svelte-h":!0}),f(L)!=="svelte-ca9fxm"&&(L.innerHTML=Lt),xe=s(e),h(G.$$.fragment,e),Le=s(e),Z=p(e,"P",{"data-svelte-h":!0}),f(Z)!=="svelte-1xr9moc"&&(Z.innerHTML=Gt),Ge=s(e),I=p(e,"P",{"data-svelte-h":!0}),f(I)!=="svelte-1hlz4md"&&(I.innerHTML=Zt),Ze=s(e),h(Y.$$.fragment,e),Ie=s(e),P=p(e,"P",{"data-svelte-h":!0}),f(P)!=="svelte-1690qlh"&&(P.innerHTML=It),Ye=s(e),h(X.$$.fragment,e),Pe=s(e),E=p(e,"P",{"data-svelte-h":!0}),f(E)!=="svelte-bvgpbq"&&(E.innerHTML=Yt),Xe=s(e),ve=p(e,"A",{id:!0}),Jt(ve).forEach(a),Ee=s(e),h(B.$$.fragment,e),Be=s(e),N=p(e,"P",{"data-svelte-h":!0}),f(N)!=="svelte-sbxtta"&&(N.innerHTML=Pt),Ne=s(e),h(v.$$.fragment,e),Se=s(e),h(S.$$.fragment,e),Ae=s(e),A=p(e,"P",{"data-svelte-h":!0}),f(A)!=="svelte-jhg9d7"&&(A.innerHTML=Xt),qe=s(e),h(q.$$.fragment,e),We=s(e),W=p(e,"P",{"data-svelte-h":!0}),f(W)!=="svelte-ckmbtp"&&(W.innerHTML=Et),Qe=s(e),Q=p(e,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-q1k2t0"&&(Q.innerHTML=Bt),Fe=s(e),h(F.$$.fragment,e),Ve=s(e),V=p(e,"P",{"data-svelte-h":!0}),f(V)!=="svelte-zi80xc"&&(V.innerHTML=Nt),ze=s(e),h(_.$$.fragment,e),Re=s(e),h(z.$$.fragment,e),Oe=s(e),R=p(e,"P",{"data-svelte-h":!0}),f(R)!=="svelte-1r2ivyp"&&(R.innerHTML=St),De=s(e),h(O.$$.fragment,e),Ke=s(e),D=p(e,"P",{"data-svelte-h":!0}),f(D)!=="svelte-1coitj2"&&(D.innerHTML=At),et=s(e),K=p(e,"P",{"data-svelte-h":!0}),f(K)!=="svelte-14v6bw6"&&(K.innerHTML=qt),tt=s(e),h(ee.$$.fragment,e),at=s(e),te=p(e,"P",{"data-svelte-h":!0}),f(te)!=="svelte-kj5aun"&&(te.innerHTML=Wt),nt=s(e),h(M.$$.fragment,e),lt=s(e),ae=p(e,"P",{"data-svelte-h":!0}),f(ae)!=="svelte-1ypx384"&&(ae.textContent=Qt),st=s(e),h(ne.$$.fragment,e),it=s(e),le=p(e,"P",{"data-svelte-h":!0}),f(le)!=="svelte-1s67ztk"&&(le.innerHTML=Ft),ot=s(e),h(se.$$.fragment,e),pt=s(e),ie=p(e,"P",{"data-svelte-h":!0}),f(ie)!=="svelte-1k7v7lg"&&(ie.textContent=Vt),rt=s(e),h(k.$$.fragment,e),ft=s(e),h(oe.$$.fragment,e),ut=s(e),pe=p(e,"P",{"data-svelte-h":!0}),f(pe)!=="svelte-fxl0yb"&&(pe.innerHTML=zt),ht=s(e),h(re.$$.fragment,e),mt=s(e),fe=p(e,"P",{"data-svelte-h":!0}),f(fe)!=="svelte-1fi8ypz"&&(fe.textContent=Rt),ct=s(e),h(ue.$$.fragment,e),gt=s(e),he=p(e,"P",{"data-svelte-h":!0}),f(he)!=="svelte-1lbz52k"&&(he.textContent=Ot),dt=s(e),h(H.$$.fragment,e),$t=s(e),h(me.$$.fragment,e),yt=s(e),ce=p(e,"P",{"data-svelte-h":!0}),f(ce)!=="svelte-1xdg7eg"&&(ce.innerHTML=Dt),wt=s(e),ge=p(e,"OL",{"data-svelte-h":!0}),f(ge)!=="svelte-1fhvo2z"&&(ge.innerHTML=Kt),bt=s(e),h(de.$$.fragment,e),Tt=s(e),$e=p(e,"P",{"data-svelte-h":!0}),f($e)!=="svelte-13v7wrf"&&($e.innerHTML=ea),vt=s(e),h(ye.$$.fragment,e),_t=s(e),we=p(e,"P",{"data-svelte-h":!0}),f(we)!=="svelte-ss1pgv"&&(we.innerHTML=ta),Mt=s(e),be=p(e,"UL",{"data-svelte-h":!0}),f(be)!=="svelte-rgjmbj"&&(be.innerHTML=aa),kt=s(e),h(Te.$$.fragment,e),Ht=s(e),_e=p(e,"P",{}),Jt(_e).forEach(a),this.h()},h(){Ct(i,"name","hf:doc:metadata"),Ct(i,"content",Ta),Ct(ve,"id","login")},m(e,t){ma(document.head,i),n(e,$,t),n(e,r,t),n(e,y,t),m(j,e,t),n(e,He,t),n(e,J,t),n(e,je,t),m(C,e,t),n(e,Je,t),n(e,U,t),n(e,Ce,t),m(x,e,t),n(e,Ue,t),n(e,L,t),n(e,xe,t),m(G,e,t),n(e,Le,t),n(e,Z,t),n(e,Ge,t),n(e,I,t),n(e,Ze,t),m(Y,e,t),n(e,Ie,t),n(e,P,t),n(e,Ye,t),m(X,e,t),n(e,Pe,t),n(e,E,t),n(e,Xe,t),n(e,ve,t),n(e,Ee,t),m(B,e,t),n(e,Be,t),n(e,N,t),n(e,Ne,t),m(v,e,t),n(e,Se,t),m(S,e,t),n(e,Ae,t),n(e,A,t),n(e,qe,t),m(q,e,t),n(e,We,t),n(e,W,t),n(e,Qe,t),n(e,Q,t),n(e,Fe,t),m(F,e,t),n(e,Ve,t),n(e,V,t),n(e,ze,t),m(_,e,t),n(e,Re,t),m(z,e,t),n(e,Oe,t),n(e,R,t),n(e,De,t),m(O,e,t),n(e,Ke,t),n(e,D,t),n(e,et,t),n(e,K,t),n(e,tt,t),m(ee,e,t),n(e,at,t),n(e,te,t),n(e,nt,t),m(M,e,t),n(e,lt,t),n(e,ae,t),n(e,st,t),m(ne,e,t),n(e,it,t),n(e,le,t),n(e,ot,t),m(se,e,t),n(e,pt,t),n(e,ie,t),n(e,rt,t),m(k,e,t),n(e,ft,t),m(oe,e,t),n(e,ut,t),n(e,pe,t),n(e,ht,t),m(re,e,t),n(e,mt,t),n(e,fe,t),n(e,ct,t),m(ue,e,t),n(e,gt,t),n(e,he,t),n(e,dt,t),m(H,e,t),n(e,$t,t),m(me,e,t),n(e,yt,t),n(e,ce,t),n(e,wt,t),n(e,ge,t),n(e,bt,t),m(de,e,t),n(e,Tt,t),n(e,$e,t),n(e,vt,t),m(ye,e,t),n(e,_t,t),n(e,we,t),n(e,Mt,t),n(e,be,t),n(e,kt,t),m(Te,e,t),n(e,Ht,t),n(e,_e,t),jt=!0},p(e,[t]){const na={};t&2&&(na.$$scope={dirty:t,ctx:e}),v.$set(na);const la={};t&2&&(la.$$scope={dirty:t,ctx:e}),_.$set(la);const sa={};t&2&&(sa.$$scope={dirty:t,ctx:e}),M.$set(sa);const ia={};t&2&&(ia.$$scope={dirty:t,ctx:e}),k.$set(ia);const oa={};t&2&&(oa.$$scope={dirty:t,ctx:e}),H.$set(oa)},i(e){jt||(c(j.$$.fragment,e),c(C.$$.fragment,e),c(x.$$.fragment,e),c(G.$$.fragment,e),c(Y.$$.fragment,e),c(X.$$.fragment,e),c(B.$$.fragment,e),c(v.$$.fragment,e),c(S.$$.fragment,e),c(q.$$.fragment,e),c(F.$$.fragment,e),c(_.$$.fragment,e),c(z.$$.fragment,e),c(O.$$.fragment,e),c(ee.$$.fragment,e),c(M.$$.fragment,e),c(ne.$$.fragment,e),c(se.$$.fragment,e),c(k.$$.fragment,e),c(oe.$$.fragment,e),c(re.$$.fragment,e),c(ue.$$.fragment,e),c(H.$$.fragment,e),c(me.$$.fragment,e),c(de.$$.fragment,e),c(ye.$$.fragment,e),c(Te.$$.fragment,e),jt=!0)},o(e){g(j.$$.fragment,e),g(C.$$.fragment,e),g(x.$$.fragment,e),g(G.$$.fragment,e),g(Y.$$.fragment,e),g(X.$$.fragment,e),g(B.$$.fragment,e),g(v.$$.fragment,e),g(S.$$.fragment,e),g(q.$$.fragment,e),g(F.$$.fragment,e),g(_.$$.fragment,e),g(z.$$.fragment,e),g(O.$$.fragment,e),g(ee.$$.fragment,e),g(M.$$.fragment,e),g(ne.$$.fragment,e),g(se.$$.fragment,e),g(k.$$.fragment,e),g(oe.$$.fragment,e),g(re.$$.fragment,e),g(ue.$$.fragment,e),g(H.$$.fragment,e),g(me.$$.fragment,e),g(de.$$.fragment,e),g(ye.$$.fragment,e),g(Te.$$.fragment,e),jt=!1},d(e){e&&(a($),a(r),a(y),a(He),a(J),a(je),a(Je),a(U),a(Ce),a(Ue),a(L),a(xe),a(Le),a(Z),a(Ge),a(I),a(Ze),a(Ie),a(P),a(Ye),a(Pe),a(E),a(Xe),a(ve),a(Ee),a(Be),a(N),a(Ne),a(Se),a(Ae),a(A),a(qe),a(We),a(W),a(Qe),a(Q),a(Fe),a(Ve),a(V),a(ze),a(Re),a(Oe),a(R),a(De),a(Ke),a(D),a(et),a(K),a(tt),a(at),a(te),a(nt),a(lt),a(ae),a(st),a(it),a(le),a(ot),a(pt),a(ie),a(rt),a(ft),a(ut),a(pe),a(ht),a(mt),a(fe),a(ct),a(gt),a(he),a(dt),a($t),a(yt),a(ce),a(wt),a(ge),a(bt),a(Tt),a($e),a(vt),a(_t),a(we),a(Mt),a(be),a(kt),a(Ht),a(_e)),a(i),d(j,e),d(C,e),d(x,e),d(G,e),d(Y,e),d(X,e),d(B,e),d(v,e),d(S,e),d(q,e),d(F,e),d(_,e),d(z,e),d(O,e),d(ee,e),d(M,e),d(ne,e),d(se,e),d(k,e),d(oe,e),d(re,e),d(ue,e),d(H,e),d(me,e),d(de,e),d(ye,e),d(Te,e)}}}const Ta='{"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 va(w){return ra(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ja extends fa{constructor(i){super(),ua(this,i,va,ba,pa,{})}}export{Ja as component};
