import{s as st,n as it,o as ot}from"../chunks/scheduler.0cf4ef2e.js";import{S as at,i as ct,e as a,s,c as p,h as rt,a as c,d as t,b as i,f as $,g as _,j as u,k as C,l as o,m as r,n as b,t as v,o as D,p as q}from"../chunks/index.abc433bf.js";import{C as ut}from"../chunks/CopyLLMTxtMenu.efc6b005.js";import{D as N}from"../chunks/Docstring.e4170f41.js";import{H as nt,E as gt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.86d448e2.js";function ht(je){let x,re,ae,ue,P,ge,w,he,R,Ne=`Check the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> documentation page for the reference of methods enabling
interaction with Pull Requests and Discussions on the Hub.`,de,H,Ue='<li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_repo_discussions">get_repo_discussions()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">get_discussion_details()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">create_discussion()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_pull_request">create_pull_request()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.rename_discussion">rename_discussion()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.comment_discussion">comment_discussion()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.edit_discussion_comment">edit_discussion_comment()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.change_discussion_status">change_discussion_status()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.merge_pull_request">merge_pull_request()</a></li>',le,E,me,h,L,Ce,U,Ve="A Discussion or Pull Request on the Hub.",Te,V,Oe="This dataclass is not intended to be instantiated directly.",fe,y,A,Pe,O,ze='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.Discussion">Discussion</a>.',pe,g,k,we,z,Ge="An event in a Discussion or Pull Request.",Re,G,Fe="Use concrete classes:",He,F,Be='<li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionComment">DiscussionComment</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionStatusChange">DiscussionStatusChange</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionCommit">DiscussionCommit</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionTitleChange">DiscussionTitleChange</a></li>',_e,d,W,Ee,B,Je="A comment in a Discussion / Pull Request.",Le,J,Ke='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',be,l,M,Ae,K,Qe="A change of status in a Discussion / Pull Request.",ke,Q,Xe='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',ve,m,I,We,X,Ye="A commit in a Pull Request.",Me,Y,Ze='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',De,f,S,Ie,Z,et="A rename event in a Discussion / Pull Request.",Se,ee,tt='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',qe,j,xe,ce,ye;return P=new ut({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),w=new nt({props:{title:"Interacting with Discussions and Pull Requests",local:"interacting-with-discussions-and-pull-requests",headingTag:"h1"}}),E=new nt({props:{title:"Data structures",local:"huggingface_hub.Discussion",headingTag:"h2"}}),L=new N({props:{name:"class huggingface_hub.Discussion",anchor:"huggingface_hub.Discussion",parameters:[{name:"title",val:": str"},{name:"status",val:": typing.Literal['open', 'closed', 'merged', 'draft']"},{name:"num",val:": int"},{name:"repo_id",val:": str"},{name:"repo_type",val:": str"},{name:"author",val:": str"},{name:"is_pull_request",val:": bool"},{name:"created_at",val:": datetime"},{name:"endpoint",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.Discussion.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the Discussion / Pull Request`,name:"title"},{anchor:"huggingface_hub.Discussion.status",description:`<strong>status</strong> (<code>str</code>) &#x2014;
The status of the Discussion / Pull Request.
It must be one of:
<ul>
<li><code>&quot;open&quot;</code></li>
<li><code>&quot;closed&quot;</code></li>
<li><code>&quot;merged&quot;</code> (only for Pull Requests )</li>
<li><code>&quot;draft&quot;</code> (only for Pull Requests )</li>
</ul>`,name:"status"},{anchor:"huggingface_hub.Discussion.num",description:`<strong>num</strong> (<code>int</code>) &#x2014;
The number of the Discussion / Pull Request.`,name:"num"},{anchor:"huggingface_hub.Discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id (<code>&quot;{namespace}/{repo_name}&quot;</code>) of the repo on which
the Discussion / Pull Request was open.`,name:"repo_id"},{anchor:"huggingface_hub.Discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>) &#x2014;
The type of the repo on which the Discussion / Pull Request was open.
Possible values are: <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code>.`,name:"repo_type"},{anchor:"huggingface_hub.Discussion.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.Discussion.is_pull_request",description:`<strong>is_pull_request</strong> (<code>bool</code>) &#x2014;
Whether or not this is a Pull Request.`,name:"is_pull_request"},{anchor:"huggingface_hub.Discussion.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
The <code>datetime</code> of creation of the Discussion / Pull Request.`,name:"created_at"},{anchor:"huggingface_hub.Discussion.endpoint",description:`<strong>endpoint</strong> (<code>str</code>) &#x2014;
Endpoint of the Hub. Default is <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"},{anchor:"huggingface_hub.Discussion.git_reference",description:`<strong>git_reference</strong> (<code>str</code>, <em>optional</em>) &#x2014;
(property) Git reference to which changes can be pushed if this is a Pull Request, <code>None</code> otherwise.`,name:"git_reference"},{anchor:"huggingface_hub.Discussion.url",description:`<strong>url</strong> (<code>str</code>) &#x2014;
(property) URL of the discussion on the Hub.`,name:"url"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L20"}}),A=new N({props:{name:"class huggingface_hub.DiscussionWithDetails",anchor:"huggingface_hub.DiscussionWithDetails",parameters:[{name:"title",val:": str"},{name:"status",val:": typing.Literal['open', 'closed', 'merged', 'draft']"},{name:"num",val:": int"},{name:"repo_id",val:": str"},{name:"repo_type",val:": str"},{name:"author",val:": str"},{name:"is_pull_request",val:": bool"},{name:"created_at",val:": datetime"},{name:"endpoint",val:": str"},{name:"events",val:": list"},{name:"conflicting_files",val:": typing.Union[list[str], bool, NoneType]"},{name:"target_branch",val:": typing.Optional[str]"},{name:"merge_commit_oid",val:": typing.Optional[str]"},{name:"diff",val:": typing.Optional[str]"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionWithDetails.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the Discussion / Pull Request`,name:"title"},{anchor:"huggingface_hub.DiscussionWithDetails.status",description:`<strong>status</strong> (<code>str</code>) &#x2014;
The status of the Discussion / Pull Request.
It can be one of:
<ul>
<li><code>&quot;open&quot;</code></li>
<li><code>&quot;closed&quot;</code></li>
<li><code>&quot;merged&quot;</code> (only for Pull Requests )</li>
<li><code>&quot;draft&quot;</code> (only for Pull Requests )</li>
</ul>`,name:"status"},{anchor:"huggingface_hub.DiscussionWithDetails.num",description:`<strong>num</strong> (<code>int</code>) &#x2014;
The number of the Discussion / Pull Request.`,name:"num"},{anchor:"huggingface_hub.DiscussionWithDetails.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id (<code>&quot;{namespace}/{repo_name}&quot;</code>) of the repo on which
the Discussion / Pull Request was open.`,name:"repo_id"},{anchor:"huggingface_hub.DiscussionWithDetails.repo_type",description:`<strong>repo_type</strong> (<code>str</code>) &#x2014;
The type of the repo on which the Discussion / Pull Request was open.
Possible values are: <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code>.`,name:"repo_type"},{anchor:"huggingface_hub.DiscussionWithDetails.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionWithDetails.is_pull_request",description:`<strong>is_pull_request</strong> (<code>bool</code>) &#x2014;
Whether or not this is a Pull Request.`,name:"is_pull_request"},{anchor:"huggingface_hub.DiscussionWithDetails.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
The <code>datetime</code> of creation of the Discussion / Pull Request.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionWithDetails.events",description:`<strong>events</strong> (<code>list</code> of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>) &#x2014;
The list of <code>DiscussionEvents</code> in this Discussion or Pull Request.`,name:"events"},{anchor:"huggingface_hub.DiscussionWithDetails.conflicting_files",description:`<strong>conflicting_files</strong> (<code>Union[list[str], bool, None]</code>, <em>optional</em>) &#x2014;
A list of conflicting files if this is a Pull Request.
<code>None</code> if <code>self.is_pull_request</code> is <code>False</code>.
<code>True</code> if there are conflicting files but the list can&#x2019;t be retrieved.`,name:"conflicting_files"},{anchor:"huggingface_hub.DiscussionWithDetails.target_branch",description:`<strong>target_branch</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The branch into which changes are to be merged if this is a
Pull Request . <code>None</code>  if <code>self.is_pull_request</code> is <code>False</code>.`,name:"target_branch"},{anchor:"huggingface_hub.DiscussionWithDetails.merge_commit_oid",description:`<strong>merge_commit_oid</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If this is a merged Pull Request , this is set to the OID / SHA of
the merge commit, <code>None</code> otherwise.`,name:"merge_commit_oid"},{anchor:"huggingface_hub.DiscussionWithDetails.diff",description:`<strong>diff</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git diff if this is a Pull Request , <code>None</code> otherwise.`,name:"diff"},{anchor:"huggingface_hub.DiscussionWithDetails.endpoint",description:`<strong>endpoint</strong> (<code>str</code>) &#x2014;
Endpoint of the Hub. Default is <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"},{anchor:"huggingface_hub.DiscussionWithDetails.git_reference",description:`<strong>git_reference</strong> (<code>str</code>, <em>optional</em>) &#x2014;
(property) Git reference to which changes can be pushed if this is a Pull Request, <code>None</code> otherwise.`,name:"git_reference"},{anchor:"huggingface_hub.DiscussionWithDetails.url",description:`<strong>url</strong> (<code>str</code>) &#x2014;
(property) URL of the discussion on the Hub.`,name:"url"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L88"}}),k=new N({props:{name:"class huggingface_hub.DiscussionEvent",anchor:"huggingface_hub.DiscussionEvent",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionEvent.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionEvent.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionEvent.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionEvent.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L155"}}),W=new N({props:{name:"class huggingface_hub.DiscussionComment",anchor:"huggingface_hub.DiscussionComment",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"content",val:": str"},{name:"edited",val:": bool"},{name:"hidden",val:": bool"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionComment.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionComment.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionComment.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionComment.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionComment.content",description:`<strong>content</strong> (<code>str</code>) &#x2014;
The raw markdown content of the comment. Mentions, links and images are not rendered.`,name:"content"},{anchor:"huggingface_hub.DiscussionComment.edited",description:`<strong>edited</strong> (<code>bool</code>) &#x2014;
Whether or not this comment has been edited.`,name:"edited"},{anchor:"huggingface_hub.DiscussionComment.hidden",description:`<strong>hidden</strong> (<code>bool</code>) &#x2014;
Whether or not this comment has been hidden.`,name:"hidden"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L188"}}),M=new N({props:{name:"class huggingface_hub.DiscussionStatusChange",anchor:"huggingface_hub.DiscussionStatusChange",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"new_status",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionStatusChange.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionStatusChange.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionStatusChange.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionStatusChange.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionStatusChange.new_status",description:`<strong>new_status</strong> (<code>str</code>) &#x2014;
The status of the Discussion / Pull Request after the change.
It can be one of:
<ul>
<li><code>&quot;open&quot;</code></li>
<li><code>&quot;closed&quot;</code></li>
<li><code>&quot;merged&quot;</code> (only for Pull Requests )</li>
</ul>`,name:"new_status"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L243"}}),I=new N({props:{name:"class huggingface_hub.DiscussionCommit",anchor:"huggingface_hub.DiscussionCommit",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"summary",val:": str"},{name:"oid",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionCommit.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionCommit.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionCommit.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionCommit.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionCommit.summary",description:`<strong>summary</strong> (<code>str</code>) &#x2014;
The summary of the commit.`,name:"summary"},{anchor:"huggingface_hub.DiscussionCommit.oid",description:`<strong>oid</strong> (<code>str</code>) &#x2014;
The OID / SHA of the commit, as a hexadecimal string.`,name:"oid"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L271"}}),S=new N({props:{name:"class huggingface_hub.DiscussionTitleChange",anchor:"huggingface_hub.DiscussionTitleChange",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"old_title",val:": str"},{name:"new_title",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionTitleChange.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionTitleChange.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionTitleChange.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionTitleChange.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionTitleChange.old_title",description:`<strong>old_title</strong> (<code>str</code>) &#x2014;
The previous title for the Discussion / Pull Request.`,name:"old_title"},{anchor:"huggingface_hub.DiscussionTitleChange.new_title",description:`<strong>new_title</strong> (<code>str</code>) &#x2014;
The new title.`,name:"new_title"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L298"}}),j=new gt({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/community.md"}}),{c(){x=a("meta"),re=s(),ae=a("p"),ue=s(),p(P.$$.fragment),ge=s(),p(w.$$.fragment),he=s(),R=a("p"),R.innerHTML=Ne,de=s(),H=a("ul"),H.innerHTML=Ue,le=s(),p(E.$$.fragment),me=s(),h=a("div"),p(L.$$.fragment),Ce=s(),U=a("p"),U.textContent=Ve,Te=s(),V=a("p"),V.textContent=Oe,fe=s(),y=a("div"),p(A.$$.fragment),Pe=s(),O=a("p"),O.innerHTML=ze,pe=s(),g=a("div"),p(k.$$.fragment),we=s(),z=a("p"),z.textContent=Ge,Re=s(),G=a("p"),G.textContent=Fe,He=s(),F=a("ul"),F.innerHTML=Be,_e=s(),d=a("div"),p(W.$$.fragment),Ee=s(),B=a("p"),B.textContent=Je,Le=s(),J=a("p"),J.innerHTML=Ke,be=s(),l=a("div"),p(M.$$.fragment),Ae=s(),K=a("p"),K.textContent=Qe,ke=s(),Q=a("p"),Q.innerHTML=Xe,ve=s(),m=a("div"),p(I.$$.fragment),We=s(),X=a("p"),X.textContent=Ye,Me=s(),Y=a("p"),Y.innerHTML=Ze,De=s(),f=a("div"),p(S.$$.fragment),Ie=s(),Z=a("p"),Z.textContent=et,Se=s(),ee=a("p"),ee.innerHTML=tt,qe=s(),p(j.$$.fragment),xe=s(),ce=a("p"),this.h()},l(e){const n=rt("svelte-u9bgzb",document.head);x=c(n,"META",{name:!0,content:!0}),n.forEach(t),re=i(e),ae=c(e,"P",{}),$(ae).forEach(t),ue=i(e),_(P.$$.fragment,e),ge=i(e),_(w.$$.fragment,e),he=i(e),R=c(e,"P",{"data-svelte-h":!0}),u(R)!=="svelte-kgcmry"&&(R.innerHTML=Ne),de=i(e),H=c(e,"UL",{"data-svelte-h":!0}),u(H)!=="svelte-4sddhe"&&(H.innerHTML=Ue),le=i(e),_(E.$$.fragment,e),me=i(e),h=c(e,"DIV",{class:!0});var te=$(h);_(L.$$.fragment,te),Ce=i(te),U=c(te,"P",{"data-svelte-h":!0}),u(U)!=="svelte-hsew6z"&&(U.textContent=Ve),Te=i(te),V=c(te,"P",{"data-svelte-h":!0}),u(V)!=="svelte-cin3fe"&&(V.textContent=Oe),te.forEach(t),fe=i(e),y=c(e,"DIV",{class:!0});var $e=$(y);_(A.$$.fragment,$e),Pe=i($e),O=c($e,"P",{"data-svelte-h":!0}),u(O)!=="svelte-124n2rz"&&(O.innerHTML=ze),$e.forEach(t),pe=i(e),g=c(e,"DIV",{class:!0});var T=$(g);_(k.$$.fragment,T),we=i(T),z=c(T,"P",{"data-svelte-h":!0}),u(z)!=="svelte-1mr0otk"&&(z.textContent=Ge),Re=i(T),G=c(T,"P",{"data-svelte-h":!0}),u(G)!=="svelte-ieg5lw"&&(G.textContent=Fe),He=i(T),F=c(T,"UL",{"data-svelte-h":!0}),u(F)!=="svelte-1t0dmpy"&&(F.innerHTML=Be),T.forEach(t),_e=i(e),d=c(e,"DIV",{class:!0});var ne=$(d);_(W.$$.fragment,ne),Ee=i(ne),B=c(ne,"P",{"data-svelte-h":!0}),u(B)!=="svelte-3bqgej"&&(B.textContent=Je),Le=i(ne),J=c(ne,"P",{"data-svelte-h":!0}),u(J)!=="svelte-1mgaj8j"&&(J.innerHTML=Ke),ne.forEach(t),be=i(e),l=c(e,"DIV",{class:!0});var se=$(l);_(M.$$.fragment,se),Ae=i(se),K=c(se,"P",{"data-svelte-h":!0}),u(K)!=="svelte-9d6753"&&(K.textContent=Qe),ke=i(se),Q=c(se,"P",{"data-svelte-h":!0}),u(Q)!=="svelte-1mgaj8j"&&(Q.innerHTML=Xe),se.forEach(t),ve=i(e),m=c(e,"DIV",{class:!0});var ie=$(m);_(I.$$.fragment,ie),We=i(ie),X=c(ie,"P",{"data-svelte-h":!0}),u(X)!=="svelte-1jct6gw"&&(X.textContent=Ye),Me=i(ie),Y=c(ie,"P",{"data-svelte-h":!0}),u(Y)!=="svelte-1mgaj8j"&&(Y.innerHTML=Ze),ie.forEach(t),De=i(e),f=c(e,"DIV",{class:!0});var oe=$(f);_(S.$$.fragment,oe),Ie=i(oe),Z=c(oe,"P",{"data-svelte-h":!0}),u(Z)!=="svelte-1x0b7r2"&&(Z.textContent=et),Se=i(oe),ee=c(oe,"P",{"data-svelte-h":!0}),u(ee)!=="svelte-1mgaj8j"&&(ee.innerHTML=tt),oe.forEach(t),qe=i(e),_(j.$$.fragment,e),xe=i(e),ce=c(e,"P",{}),$(ce).forEach(t),this.h()},h(){C(x,"name","hf:doc:metadata"),C(x,"content",dt),C(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(g,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(l,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(m,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,n){o(document.head,x),r(e,re,n),r(e,ae,n),r(e,ue,n),b(P,e,n),r(e,ge,n),b(w,e,n),r(e,he,n),r(e,R,n),r(e,de,n),r(e,H,n),r(e,le,n),b(E,e,n),r(e,me,n),r(e,h,n),b(L,h,null),o(h,Ce),o(h,U),o(h,Te),o(h,V),r(e,fe,n),r(e,y,n),b(A,y,null),o(y,Pe),o(y,O),r(e,pe,n),r(e,g,n),b(k,g,null),o(g,we),o(g,z),o(g,Re),o(g,G),o(g,He),o(g,F),r(e,_e,n),r(e,d,n),b(W,d,null),o(d,Ee),o(d,B),o(d,Le),o(d,J),r(e,be,n),r(e,l,n),b(M,l,null),o(l,Ae),o(l,K),o(l,ke),o(l,Q),r(e,ve,n),r(e,m,n),b(I,m,null),o(m,We),o(m,X),o(m,Me),o(m,Y),r(e,De,n),r(e,f,n),b(S,f,null),o(f,Ie),o(f,Z),o(f,Se),o(f,ee),r(e,qe,n),b(j,e,n),r(e,xe,n),r(e,ce,n),ye=!0},p:it,i(e){ye||(v(P.$$.fragment,e),v(w.$$.fragment,e),v(E.$$.fragment,e),v(L.$$.fragment,e),v(A.$$.fragment,e),v(k.$$.fragment,e),v(W.$$.fragment,e),v(M.$$.fragment,e),v(I.$$.fragment,e),v(S.$$.fragment,e),v(j.$$.fragment,e),ye=!0)},o(e){D(P.$$.fragment,e),D(w.$$.fragment,e),D(E.$$.fragment,e),D(L.$$.fragment,e),D(A.$$.fragment,e),D(k.$$.fragment,e),D(W.$$.fragment,e),D(M.$$.fragment,e),D(I.$$.fragment,e),D(S.$$.fragment,e),D(j.$$.fragment,e),ye=!1},d(e){e&&(t(re),t(ae),t(ue),t(ge),t(he),t(R),t(de),t(H),t(le),t(me),t(h),t(fe),t(y),t(pe),t(g),t(_e),t(d),t(be),t(l),t(ve),t(m),t(De),t(f),t(qe),t(xe),t(ce)),t(x),q(P,e),q(w,e),q(E,e),q(L),q(A),q(k),q(W),q(M),q(I),q(S),q(j,e)}}}const dt='{"title":"Interacting with Discussions and Pull Requests","local":"interacting-with-discussions-and-pull-requests","sections":[{"title":"Data structures","local":"huggingface_hub.Discussion","sections":[],"depth":2}],"depth":1}';function lt(je){return ot(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class vt extends at{constructor(x){super(),ct(this,x,lt,ht,st,{})}}export{vt as component};
