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