import{s as Ft,o as Vt,n as we}from"../chunks/scheduler.6062bdaf.js";import{S as zt,i as Rt,g as r,s as l,r as u,A as Dt,h as p,f as a,c as s,j as dt,u as h,x as f,k as $t,y as Ot,a as n,v as m,d as c,t as g,w as d}from"../chunks/index.4bca734e.js";import{T as ye}from"../chunks/Tip.b9ac1f03.js";import{C as v}from"../chunks/CodeBlock.fa01571c.js";import{H as b}from"../chunks/Heading.723dceba.js";function Kt(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=r("p"),i.innerHTML=$},l(o){i=p(o,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1kew6rf"&&(i.innerHTML=$)},m(o,y){n(o,i,y)},p:we,d(o){o&&a(i)}}}function ea(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=r("p"),i.innerHTML=$},l(o){i=p(o,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1a9vyz9"&&(i.innerHTML=$)},m(o,y){n(o,i,y)},p:we,d(o){o&&a(i)}}}function ta(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=r("p"),i.innerHTML=$},l(o){i=p(o,"P",{"data-svelte-h":!0}),f(i)!=="svelte-w1ks3y"&&(i.innerHTML=$)},m(o,y){n(o,i,y)},p:we,d(o){o&&a(i)}}}function aa(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=r("p"),i.textContent=$},l(o){i=p(o,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1r3zcky"&&(i.textContent=$)},m(o,y){n(o,i,y)},p:we,d(o){o&&a(i)}}}function na(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=r("p"),i.innerHTML=$},l(o){i=p(o,"P",{"data-svelte-h":!0}),f(i)!=="svelte-e1q7ml"&&(i.innerHTML=$)},m(o,y){n(o,i,y)},p:we,d(o){o&&a(i)}}}function la(w){let i,$,o,y,J,be,j,yt=`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.`,ve,C,Te,U,wt="To get started, install the <code>huggingface_hub</code> library:",_e,x,Me,L,bt='For more details, check out the <a href="installation">installation</a> guide.',ke,G,He,Z,vt=`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/v0.20.3/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.`,Je,I,Tt=`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:`,je,Y,Ce,P,_t=`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:`,Ue,B,xe,X,Mt='For more details and options, see the API reference for <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/file_download#huggingface_hub.hf_hub_download">hf_hub_download()</a>.',Le,de,Ge,E,Ze,S,kt=`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.`,Ie,T,Ye,A,Pe,N,Ht='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/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a> command:',Be,W,Xe,q,Jt="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.",Ee,Q,jt='Alternatively, you can programmatically login using <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a> in a notebook or a script:',Se,F,Ae,V,Ct="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.",Ne,_,We,z,qe,R,Ut='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>.',Qe,M,Fe,D,xt="Authentication via an environment variable or a secret has priority over the token stored on your machine.",Ve,O,ze,K,Lt="Finally, it is also possible to authenticate by passing your token to any method that accepts <code>token</code> as a parameter.",Re,ee,De,te,Gt="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.",Oe,k,Ke,ae,et,ne,Zt=`Once you’ve registered and logged in, create a repository with the <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>
function:`,tt,le,at,se,It="If you want your repository to be private, then:",nt,ie,lt,oe,Yt="Private repositories will not be visible to anyone except yourself.",st,H,it,re,ot,pe,Pt=`Use the <a href="/docs/huggingface_hub/v0.20.3/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:`,rt,fe,Bt="<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>",pt,ue,ft,he,Xt=`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).`,ut,me,ht,ce,Et=`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,ge,St='<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>',ct,$e,gt;return J=new b({props:{title:"Quickstart",local:"quickstart",headingTag:"h1"}}),C=new b({props:{title:"Installation",local:"installation",headingTag:"h2"}}),x=new v({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 v({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}}),B=new v({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIyZ29vZ2xlJTJGcGVnYXN1cy14c3VtJTIyJTJDJTIwJTBBJTIwJTIwJTIwJTIwZmlsZW5hbWUlM0QlMjJjb25maWcuanNvbiUyMiUyQyUyMCUwQSUyMCUyMCUyMCUyMHJldmlzaW9uJTNEJTIyNGQzM2IwMWQ3OTY3MmYyN2YwMDFmNmFiYWRlMzNmMjJkOTkzYjE1MSUyMiUwQSk=",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 b({props:{title:"Authentication",local:"authentication",headingTag:"h2"}}),T=new ye({props:{$$slots:{default:[Kt]},$$scope:{ctx:w}}}),A=new b({props:{title:"Login command",local:"login-command",headingTag:"h3"}}),W=new v({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login",wrap:!1}}),F=new v({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 ye({props:{warning:!0,$$slots:{default:[ea]},$$scope:{ctx:w}}}),z=new b({props:{title:"Environment variable",local:"environment-variable",headingTag:"h3"}}),M=new ye({props:{$$slots:{default:[ta]},$$scope:{ctx:w}}}),O=new b({props:{title:"Method parameters",local:"method-parameters",headingTag:"h3"}}),ee=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHdob2FtaSUwQSUwQXVzZXIlMjAlM0QlMjB3aG9hbWkodG9rZW4lM0QuLi4p",highlighted:`<span class="hljs-keyword">from</span> transformers import whoami
<span class="hljs-built_in">
user </span>= whoami(<span class="hljs-attribute">token</span>=...)`,wrap:!1}}),k=new ye({props:{warning:!0,$$slots:{default:[aa]},$$scope:{ctx:w}}}),ae=new b({props:{title:"Create a repository",local:"create-a-repository",headingTag:"h2"}}),le=new v({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}}),ie=new v({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 ye({props:{$$slots:{default:[na]},$$scope:{ctx:w}}}),re=new b({props:{title:"Upload files",local:"upload-files",headingTag:"h2"}}),ue=new v({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}}),me=new b({props:{title:"Next steps",local:"next-steps",headingTag:"h2"}}),{c(){i=r("meta"),$=l(),o=r("p"),y=l(),u(J.$$.fragment),be=l(),j=r("p"),j.innerHTML=yt,ve=l(),u(C.$$.fragment),Te=l(),U=r("p"),U.innerHTML=wt,_e=l(),u(x.$$.fragment),Me=l(),L=r("p"),L.innerHTML=bt,ke=l(),u(G.$$.fragment),He=l(),Z=r("p"),Z.innerHTML=vt,Je=l(),I=r("p"),I.innerHTML=Tt,je=l(),u(Y.$$.fragment),Ce=l(),P=r("p"),P.innerHTML=_t,Ue=l(),u(B.$$.fragment),xe=l(),X=r("p"),X.innerHTML=Mt,Le=l(),de=r("a"),Ge=l(),u(E.$$.fragment),Ze=l(),S=r("p"),S.innerHTML=kt,Ie=l(),u(T.$$.fragment),Ye=l(),u(A.$$.fragment),Pe=l(),N=r("p"),N.innerHTML=Ht,Be=l(),u(W.$$.fragment),Xe=l(),q=r("p"),q.innerHTML=Jt,Ee=l(),Q=r("p"),Q.innerHTML=jt,Se=l(),u(F.$$.fragment),Ae=l(),V=r("p"),V.innerHTML=Ct,Ne=l(),u(_.$$.fragment),We=l(),u(z.$$.fragment),qe=l(),R=r("p"),R.innerHTML=Ut,Qe=l(),u(M.$$.fragment),Fe=l(),D=r("p"),D.textContent=xt,Ve=l(),u(O.$$.fragment),ze=l(),K=r("p"),K.innerHTML=Lt,Re=l(),u(ee.$$.fragment),De=l(),te=r("p"),te.textContent=Gt,Oe=l(),u(k.$$.fragment),Ke=l(),u(ae.$$.fragment),et=l(),ne=r("p"),ne.innerHTML=Zt,tt=l(),u(le.$$.fragment),at=l(),se=r("p"),se.textContent=It,nt=l(),u(ie.$$.fragment),lt=l(),oe=r("p"),oe.textContent=Yt,st=l(),u(H.$$.fragment),it=l(),u(re.$$.fragment),ot=l(),pe=r("p"),pe.innerHTML=Pt,rt=l(),fe=r("ol"),fe.innerHTML=Bt,pt=l(),u(ue.$$.fragment),ft=l(),he=r("p"),he.innerHTML=Xt,ut=l(),u(me.$$.fragment),ht=l(),ce=r("p"),ce.innerHTML=Et,mt=l(),ge=r("ul"),ge.innerHTML=St,ct=l(),$e=r("p"),this.h()},l(e){const t=Dt("svelte-u9bgzb",document.head);i=p(t,"META",{name:!0,content:!0}),t.forEach(a),$=s(e),o=p(e,"P",{}),dt(o).forEach(a),y=s(e),h(J.$$.fragment,e),be=s(e),j=p(e,"P",{"data-svelte-h":!0}),f(j)!=="svelte-1o7lz4b"&&(j.innerHTML=yt),ve=s(e),h(C.$$.fragment,e),Te=s(e),U=p(e,"P",{"data-svelte-h":!0}),f(U)!=="svelte-d3f1yw"&&(U.innerHTML=wt),_e=s(e),h(x.$$.fragment,e),Me=s(e),L=p(e,"P",{"data-svelte-h":!0}),f(L)!=="svelte-ca9fxm"&&(L.innerHTML=bt),ke=s(e),h(G.$$.fragment,e),He=s(e),Z=p(e,"P",{"data-svelte-h":!0}),f(Z)!=="svelte-1ixltgo"&&(Z.innerHTML=vt),Je=s(e),I=p(e,"P",{"data-svelte-h":!0}),f(I)!=="svelte-1c0ditt"&&(I.innerHTML=Tt),je=s(e),h(Y.$$.fragment,e),Ce=s(e),P=p(e,"P",{"data-svelte-h":!0}),f(P)!=="svelte-m3gxk1"&&(P.innerHTML=_t),Ue=s(e),h(B.$$.fragment,e),xe=s(e),X=p(e,"P",{"data-svelte-h":!0}),f(X)!=="svelte-1mkzsmm"&&(X.innerHTML=Mt),Le=s(e),de=p(e,"A",{id:!0}),dt(de).forEach(a),Ge=s(e),h(E.$$.fragment,e),Ze=s(e),S=p(e,"P",{"data-svelte-h":!0}),f(S)!=="svelte-sbxtta"&&(S.innerHTML=kt),Ie=s(e),h(T.$$.fragment,e),Ye=s(e),h(A.$$.fragment,e),Pe=s(e),N=p(e,"P",{"data-svelte-h":!0}),f(N)!=="svelte-1v45nb0"&&(N.innerHTML=Ht),Be=s(e),h(W.$$.fragment,e),Xe=s(e),q=p(e,"P",{"data-svelte-h":!0}),f(q)!=="svelte-ckmbtp"&&(q.innerHTML=Jt),Ee=s(e),Q=p(e,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-r4xglv"&&(Q.innerHTML=jt),Se=s(e),h(F.$$.fragment,e),Ae=s(e),V=p(e,"P",{"data-svelte-h":!0}),f(V)!=="svelte-zi80xc"&&(V.innerHTML=Ct),Ne=s(e),h(_.$$.fragment,e),We=s(e),h(z.$$.fragment,e),qe=s(e),R=p(e,"P",{"data-svelte-h":!0}),f(R)!=="svelte-kj5aun"&&(R.innerHTML=Ut),Qe=s(e),h(M.$$.fragment,e),Fe=s(e),D=p(e,"P",{"data-svelte-h":!0}),f(D)!=="svelte-1ypx384"&&(D.textContent=xt),Ve=s(e),h(O.$$.fragment,e),ze=s(e),K=p(e,"P",{"data-svelte-h":!0}),f(K)!=="svelte-1s67ztk"&&(K.innerHTML=Lt),Re=s(e),h(ee.$$.fragment,e),De=s(e),te=p(e,"P",{"data-svelte-h":!0}),f(te)!=="svelte-1k7v7lg"&&(te.textContent=Gt),Oe=s(e),h(k.$$.fragment,e),Ke=s(e),h(ae.$$.fragment,e),et=s(e),ne=p(e,"P",{"data-svelte-h":!0}),f(ne)!=="svelte-1fan0vr"&&(ne.innerHTML=Zt),tt=s(e),h(le.$$.fragment,e),at=s(e),se=p(e,"P",{"data-svelte-h":!0}),f(se)!=="svelte-1fi8ypz"&&(se.textContent=It),nt=s(e),h(ie.$$.fragment,e),lt=s(e),oe=p(e,"P",{"data-svelte-h":!0}),f(oe)!=="svelte-1lbz52k"&&(oe.textContent=Yt),st=s(e),h(H.$$.fragment,e),it=s(e),h(re.$$.fragment,e),ot=s(e),pe=p(e,"P",{"data-svelte-h":!0}),f(pe)!=="svelte-1w0xm9e"&&(pe.innerHTML=Pt),rt=s(e),fe=p(e,"OL",{"data-svelte-h":!0}),f(fe)!=="svelte-1fhvo2z"&&(fe.innerHTML=Bt),pt=s(e),h(ue.$$.fragment,e),ft=s(e),he=p(e,"P",{"data-svelte-h":!0}),f(he)!=="svelte-13v7wrf"&&(he.innerHTML=Xt),ut=s(e),h(me.$$.fragment,e),ht=s(e),ce=p(e,"P",{"data-svelte-h":!0}),f(ce)!=="svelte-ss1pgv"&&(ce.innerHTML=Et),mt=s(e),ge=p(e,"UL",{"data-svelte-h":!0}),f(ge)!=="svelte-rgjmbj"&&(ge.innerHTML=St),ct=s(e),$e=p(e,"P",{}),dt($e).forEach(a),this.h()},h(){$t(i,"name","hf:doc:metadata"),$t(i,"content",sa),$t(de,"id","login")},m(e,t){Ot(document.head,i),n(e,$,t),n(e,o,t),n(e,y,t),m(J,e,t),n(e,be,t),n(e,j,t),n(e,ve,t),m(C,e,t),n(e,Te,t),n(e,U,t),n(e,_e,t),m(x,e,t),n(e,Me,t),n(e,L,t),n(e,ke,t),m(G,e,t),n(e,He,t),n(e,Z,t),n(e,Je,t),n(e,I,t),n(e,je,t),m(Y,e,t),n(e,Ce,t),n(e,P,t),n(e,Ue,t),m(B,e,t),n(e,xe,t),n(e,X,t),n(e,Le,t),n(e,de,t),n(e,Ge,t),m(E,e,t),n(e,Ze,t),n(e,S,t),n(e,Ie,t),m(T,e,t),n(e,Ye,t),m(A,e,t),n(e,Pe,t),n(e,N,t),n(e,Be,t),m(W,e,t),n(e,Xe,t),n(e,q,t),n(e,Ee,t),n(e,Q,t),n(e,Se,t),m(F,e,t),n(e,Ae,t),n(e,V,t),n(e,Ne,t),m(_,e,t),n(e,We,t),m(z,e,t),n(e,qe,t),n(e,R,t),n(e,Qe,t),m(M,e,t),n(e,Fe,t),n(e,D,t),n(e,Ve,t),m(O,e,t),n(e,ze,t),n(e,K,t),n(e,Re,t),m(ee,e,t),n(e,De,t),n(e,te,t),n(e,Oe,t),m(k,e,t),n(e,Ke,t),m(ae,e,t),n(e,et,t),n(e,ne,t),n(e,tt,t),m(le,e,t),n(e,at,t),n(e,se,t),n(e,nt,t),m(ie,e,t),n(e,lt,t),n(e,oe,t),n(e,st,t),m(H,e,t),n(e,it,t),m(re,e,t),n(e,ot,t),n(e,pe,t),n(e,rt,t),n(e,fe,t),n(e,pt,t),m(ue,e,t),n(e,ft,t),n(e,he,t),n(e,ut,t),m(me,e,t),n(e,ht,t),n(e,ce,t),n(e,mt,t),n(e,ge,t),n(e,ct,t),n(e,$e,t),gt=!0},p(e,[t]){const At={};t&2&&(At.$$scope={dirty:t,ctx:e}),T.$set(At);const Nt={};t&2&&(Nt.$$scope={dirty:t,ctx:e}),_.$set(Nt);const Wt={};t&2&&(Wt.$$scope={dirty:t,ctx:e}),M.$set(Wt);const qt={};t&2&&(qt.$$scope={dirty:t,ctx:e}),k.$set(qt);const Qt={};t&2&&(Qt.$$scope={dirty:t,ctx:e}),H.$set(Qt)},i(e){gt||(c(J.$$.fragment,e),c(C.$$.fragment,e),c(x.$$.fragment,e),c(G.$$.fragment,e),c(Y.$$.fragment,e),c(B.$$.fragment,e),c(E.$$.fragment,e),c(T.$$.fragment,e),c(A.$$.fragment,e),c(W.$$.fragment,e),c(F.$$.fragment,e),c(_.$$.fragment,e),c(z.$$.fragment,e),c(M.$$.fragment,e),c(O.$$.fragment,e),c(ee.$$.fragment,e),c(k.$$.fragment,e),c(ae.$$.fragment,e),c(le.$$.fragment,e),c(ie.$$.fragment,e),c(H.$$.fragment,e),c(re.$$.fragment,e),c(ue.$$.fragment,e),c(me.$$.fragment,e),gt=!0)},o(e){g(J.$$.fragment,e),g(C.$$.fragment,e),g(x.$$.fragment,e),g(G.$$.fragment,e),g(Y.$$.fragment,e),g(B.$$.fragment,e),g(E.$$.fragment,e),g(T.$$.fragment,e),g(A.$$.fragment,e),g(W.$$.fragment,e),g(F.$$.fragment,e),g(_.$$.fragment,e),g(z.$$.fragment,e),g(M.$$.fragment,e),g(O.$$.fragment,e),g(ee.$$.fragment,e),g(k.$$.fragment,e),g(ae.$$.fragment,e),g(le.$$.fragment,e),g(ie.$$.fragment,e),g(H.$$.fragment,e),g(re.$$.fragment,e),g(ue.$$.fragment,e),g(me.$$.fragment,e),gt=!1},d(e){e&&(a($),a(o),a(y),a(be),a(j),a(ve),a(Te),a(U),a(_e),a(Me),a(L),a(ke),a(He),a(Z),a(Je),a(I),a(je),a(Ce),a(P),a(Ue),a(xe),a(X),a(Le),a(de),a(Ge),a(Ze),a(S),a(Ie),a(Ye),a(Pe),a(N),a(Be),a(Xe),a(q),a(Ee),a(Q),a(Se),a(Ae),a(V),a(Ne),a(We),a(qe),a(R),a(Qe),a(Fe),a(D),a(Ve),a(ze),a(K),a(Re),a(De),a(te),a(Oe),a(Ke),a(et),a(ne),a(tt),a(at),a(se),a(nt),a(lt),a(oe),a(st),a(it),a(ot),a(pe),a(rt),a(fe),a(pt),a(ft),a(he),a(ut),a(ht),a(ce),a(mt),a(ge),a(ct),a($e)),a(i),d(J,e),d(C,e),d(x,e),d(G,e),d(Y,e),d(B,e),d(E,e),d(T,e),d(A,e),d(W,e),d(F,e),d(_,e),d(z,e),d(M,e),d(O,e),d(ee,e),d(k,e),d(ae,e),d(le,e),d(ie,e),d(H,e),d(re,e),d(ue,e),d(me,e)}}}const sa='{"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":"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 ia(w){return Vt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ha extends zt{constructor(i){super(),Rt(this,i,ia,la,Ft,{})}}export{ha as component};
