${t.multipleAlternates?"This document is also available in these non-normative formats:":"This document is also available in this non-normative format:"}
${t.alternatesHTML}
`}
@@ -685,7 +678,7 @@ p:is(.respec-hint,.respec-occurrences){display:block;margin-top:.5em}
`}(e,t):""}
${e.sotdAfterWGinfo?t.additionalContent:""}
${t.additionalSections}
- `;const Gr="w3c/headers";function Vr(e){return new URL(e,"https://www.w3.org/").href}const Yr={LS:"WD",LD:"WD",FPWD:"WD","Member-SUBM":"SUBM"},Kr={DNOTE:"Group Draft Note",NOTE:"Group Note",STMT:"Statement","Member-SUBM":"Member Submission",MO:"Member-Only Document",ED:"Editor's Draft",LS:"Living Standard",LD:"Living Document",FPWD:"First Public Working Draft",WD:"Working Draft",CR:"Candidate Recommendation",CRD:"Candidate Recommendation",PR:"Proposed Recommendation",PER:"Proposed Edited Recommendation",REC:"Recommendation",DISC:"Discontinued Draft",RSCND:"Rescinded Recommendation",DRY:"Draft Registry",CRYD:"Candidate Registry",CRY:"Candidate Registry",RY:"Registry",unofficial:"Unofficial Draft",UD:"Unofficial Draft",base:"",finding:"TAG Finding","draft-finding":"Draft TAG Finding","editor-draft-finding":"Draft TAG Finding","CG-DRAFT":"Draft Community Group Report","CG-FINAL":"Final Community Group Report","BG-DRAFT":"Draft Business Group Report","BG-FINAL":"Final Business Group Report"},Zr={...Kr,CR:"Candidate Recommendation Snapshot",CRD:"Candidate Recommendation Draft",CRY:"Candidate Registry Snapshot",CRYD:"Candidate Registry Draft"},Jr={DNOTE:"Note",NOTE:"Note",STMT:"Note","WG-NOTE":"Note","IG-NOTE":"Note",FPWD:"Recommendation",WD:"Recommendation",CR:"Recommendation",CRD:"Recommendation",PR:"Recommendation",REC:"Recommendation",DISC:"Recommendation",RSCND:"Recommendation",DRY:"Registry",CRYD:"Registry",CRY:"Registry",RY:"Registry"},Xr=["DNOTE","NOTE","STMT"],Qr=["CR","CRD","DISC","FPWD","PER","PR","REC","RSCND","WD"],es=["DRY","CRY","CRYD","RY"],ts=["draft-finding","finding","editor-draft-finding"],ns=["CG-DRAFT","CG-FINAL"],rs=["BG-DRAFT","BG-FINAL"],ss=[...ns,...rs],is=[...Xr,...Qr,...es],os=["base",...ns,...rs,"editor-draft-finding","draft-finding","finding","MO","unofficial"],as=new Map([["cc0",{name:"Creative Commons 0 Public Domain Dedication",short:"CC0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}],["w3c-software",{name:"W3C Software Notice and License",short:"W3C Software",url:"https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231"}],["w3c-software-doc",{name:"W3C Software and Document Notice and License",short:"permissive document license",url:"https://www.w3.org/Consortium/Legal/2023/software-license"}],["cc-by",{name:"Creative Commons Attribution 4.0 International Public License",short:"CC-BY",url:"https://creativecommons.org/licenses/by/4.0/legalcode"}],["document",{name:"W3C Document License",short:"document use",url:"https://www.w3.org/Consortium/Legal/copyright-documents"}],["dual",{name:"W3C Dual License",short:"dual license",url:"https://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html"}],[void 0,{name:"unlicensed",url:null,short:"UNLICENSED"}]]),cs=["PP2017","PP2020"];function ls(e,t,n=new Date){const r=e[t]?new Date(e[t]):new Date(n);if(Number.isFinite(r.valueOf())){const e=Yt.format(r);return new Date(e)}return Tn(On`${t} is not a valid date: "${e[t]}". Expected format 'YYYY-MM-DD'.`,Gr),new Date(Yt.format(new Date))}function us(e,{isTagFinding:t=!1}){const n=e.cloneNode(!0),r=document.createDocumentFragment();for(;n.hasChildNodes()&&(n.nodeType!==Node.ELEMENT_NODE||"section"!==n.firstChild.localName);)r.appendChild(n.firstChild);if(t&&!r.hasChildNodes()){Ln(On`ReSpec does not support automated SotD generation for TAG findings.`,Gr,{hint:"Please add the prerequisite content in the 'sotd' section."})}return{additionalContent:r,additionalSections:n.childNodes}}var ds=Object.freeze({__proto__:null,W3CNotes:Xr,bgStatus:rs,cgStatus:ns,cgbgStatus:ss,licenses:as,name:Gr,noTrackStatus:os,recTrackStatus:Qr,registryTrackStatus:es,run:async function(e){if(e.isBasic="base"===e.specStatus,e.isCGBG=ss.includes(e.specStatus),e.isCGFinal=e.isCGBG&&e.specStatus.endsWith("G-FINAL"),e.isCR="CR"===e.specStatus||"CRD"===e.specStatus,e.isCRDraft="CRD"===e.specStatus,e.isCRY="CRY"===e.specStatus||"CRYD"===e.specStatus,e.isEd="ED"===e.specStatus,e.isMemberSubmission="Member-SUBM"===e.specStatus,e.isMO="MO"===e.specStatus,e.isNote=Xr.includes(e.specStatus),e.isNoTrack=os.includes(e.specStatus),e.isPER="PER"===e.specStatus,e.isPR="PR"===e.specStatus,e.isRecTrack=Qr.includes(e.specStatus),e.isRec=e.isRecTrack&&"REC"===e.specStatus,e.isRegistry=es.includes(e.specStatus),e.isRegular=!e.isCGBG&&!e.isBasic,e.isTagEditorFinding="editor-draft-finding"===e.specStatus,e.isTagFinding=ts.includes(e.specStatus),e.isUnofficial="unofficial"===e.specStatus,e.licenseInfo=function(e){let t;if("string"==typeof e.license){const n=e.license.toLowerCase();if(as.has(n))t=n;else{const t=`The license "\`${e.license}\`" is not supported.`,n=On`Please set
+ `;const Gr="w3c/headers";function Vr(e){return new URL(e,"https://www.w3.org/").href}const Yr={LS:"WD",LD:"WD",FPWD:"WD","Member-SUBM":"SUBM"},Kr={DNOTE:"Group Draft Note",NOTE:"Group Note",STMT:"Statement","Member-SUBM":"Member Submission",MO:"Member-Only Document",ED:"Editor's Draft",LS:"Living Standard",LD:"Living Document",FPWD:"First Public Working Draft",WD:"Working Draft",CR:"Candidate Recommendation",CRD:"Candidate Recommendation",PR:"Proposed Recommendation",PER:"Proposed Edited Recommendation",REC:"Recommendation",DISC:"Discontinued Draft",RSCND:"Rescinded Recommendation",DRY:"Draft Registry",CRYD:"Candidate Registry",CRY:"Candidate Registry",RY:"Registry",unofficial:"Unofficial Draft",UD:"Unofficial Draft",base:"",finding:"TAG Finding","draft-finding":"Draft TAG Finding","editor-draft-finding":"Draft TAG Finding","CG-DRAFT":"Draft Community Group Report","CG-FINAL":"Final Community Group Report","BG-DRAFT":"Draft Business Group Report","BG-FINAL":"Final Business Group Report"},Zr={...Kr,CR:"Candidate Recommendation Snapshot",CRD:"Candidate Recommendation Draft",CRY:"Candidate Registry Snapshot",CRYD:"Candidate Registry Draft"},Jr={DNOTE:"Note",NOTE:"Note",STMT:"Note","WG-NOTE":"Note","IG-NOTE":"Note",FPWD:"Recommendation",WD:"Recommendation",CR:"Recommendation",CRD:"Recommendation",PR:"Recommendation",REC:"Recommendation",DISC:"Recommendation",RSCND:"Recommendation",DRY:"Registry",CRYD:"Registry",CRY:"Registry",RY:"Registry"},Xr=["DNOTE","NOTE","STMT"],Qr=["CR","CRD","DISC","FPWD","PER","PR","REC","RSCND","WD"],es=["DRY","CRY","CRYD","RY"],ts=["draft-finding","finding","editor-draft-finding"],ns=["CG-DRAFT","CG-FINAL"],rs=["BG-DRAFT","BG-FINAL"],ss=[...ns,...rs],is=[...Xr,...Qr,...es],os=["base",...ns,...rs,"editor-draft-finding","draft-finding","finding","MO","unofficial"],as=new Map([["cc0",{name:"Creative Commons 0 Public Domain Dedication",short:"CC0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}],["w3c-software",{name:"W3C Software Notice and License",short:"W3C Software",url:"https://www.w3.org/copyright/software-license-2002/"}],["w3c-software-doc",{name:"W3C Software and Document Notice and License",short:"permissive document license",url:"https://www.w3.org/copyright/software-license-2023/"}],["cc-by",{name:"Creative Commons Attribution 4.0 International Public License",short:"CC-BY",url:"https://creativecommons.org/licenses/by/4.0/legalcode"}],["document",{name:"W3C Document License",short:"document use",url:"https://www.w3.org/copyright/document-license/"}],["dual",{name:"W3C Dual License",short:"dual license",url:"https://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html"}],[void 0,{name:"unlicensed",url:null,short:"UNLICENSED"}]]),cs=["PP2017","PP2020"];function ls(e,t,n=new Date){const r=e[t]?new Date(e[t]):new Date(n);if(Number.isFinite(r.valueOf())){const e=Yt.format(r);return new Date(e)}return Tn(On`${t} is not a valid date: "${e[t]}". Expected format 'YYYY-MM-DD'.`,Gr),new Date(Yt.format(new Date))}function us(e,{isTagFinding:t=!1}){const n=e.cloneNode(!0),r=document.createDocumentFragment();for(;n.hasChildNodes()&&(n.nodeType!==Node.ELEMENT_NODE||"section"!==n.firstChild.localName);)r.appendChild(n.firstChild);if(t&&!r.hasChildNodes()){Ln(On`ReSpec does not support automated SotD generation for TAG findings.`,Gr,{hint:"Please add the prerequisite content in the 'sotd' section."})}return{additionalContent:r,additionalSections:n.childNodes}}var ds=Object.freeze({__proto__:null,W3CNotes:Xr,bgStatus:rs,cgStatus:ns,cgbgStatus:ss,licenses:as,name:Gr,noTrackStatus:os,recTrackStatus:Qr,registryTrackStatus:es,run:async function(e){if(e.isBasic="base"===e.specStatus,e.isCGBG=ss.includes(e.specStatus),e.isCGFinal=e.isCGBG&&e.specStatus.endsWith("G-FINAL"),e.isCR="CR"===e.specStatus||"CRD"===e.specStatus,e.isCRDraft="CRD"===e.specStatus,e.isCRY="CRY"===e.specStatus||"CRYD"===e.specStatus,e.isEd="ED"===e.specStatus,e.isMemberSubmission="Member-SUBM"===e.specStatus,e.isMO="MO"===e.specStatus,e.isNote=Xr.includes(e.specStatus),e.isNoTrack=os.includes(e.specStatus),e.isPER="PER"===e.specStatus,e.isPR="PR"===e.specStatus,e.isRecTrack=Qr.includes(e.specStatus),e.isRec=e.isRecTrack&&"REC"===e.specStatus,e.isRegistry=es.includes(e.specStatus),e.isRegular=!e.isCGBG&&!e.isBasic,e.isTagEditorFinding="editor-draft-finding"===e.specStatus,e.isTagFinding=ts.includes(e.specStatus),e.isUnofficial="unofficial"===e.specStatus,e.licenseInfo=function(e){let t;if("string"==typeof e.license){const n=e.license.toLowerCase();if(as.has(n))t=n;else{const t=`The license "\`${e.license}\`" is not supported.`,n=On`Please set
${"[license]"} to one of: ${In([...as.keys()].filter((e=>e)),{quotes:!0})}. If in doubt, remove \`license\` and let ReSpec pick one for you.`;Tn(t,Gr,{hint:n})}}if(e.isUnofficial&&!t&&(t="cc-by"),!e.isUnofficial&&["cc-by","cc0"].includes(t)){const t=On`Please set ${"[license]"} to \`"w3c-software-doc"\` instead.`;Tn(On`License "\`${e.license}\`" is not allowed for W3C Specifications.`,Gr,{hint:t})}return as.get(t)}(e),e.prependW3C=!e.isBasic&&!e.isUnofficial,e.longStatus=Zr[e.specStatus],e.textStatus=Kr[e.specStatus],e.showPreviousVersion=!1,e.isRegular&&!e.shortName){const e=On`Please set ${"[shortName]"} to a short name for the specification.`;Tn(On`The ${"[shortName]"} configuration option is required for this kind of document.`,Gr,{hint:e})}if(e.publishDate=ls(e,"publishDate",document.lastModified),e.publishYear=e.publishDate.getUTCFullYear(),e.modificationDate&&(e.modificationDate=ls(e,"modificationDate",document.lastModified)),e.isRecTrack&&!e.github&&!e.wgPublicList){const e=On`Use the ${"[github]"} configuration option to add a link to a repository. Alternatively use ${"[wgPublicList]"} to link to a mailing list.`;Tn("W3C Process requires a either a link to a public repository or mailing list.",Gr,{hint:e})}if(e.isEd&&!e.edDraftURI){const e=On`Please set ${"[edDraftURI]"} to the URL of the Editor's Draft. Alternatively, use the set ${"[github]"} option, which automatically sets it for you.`;Ln(On`Editor's Drafts should set ${"[edDraftURI]"} configuration option.`,Gr,{hint:e})}const t=function(e){const{specStatus:t,group:n}=e;if(is.includes(t)||"wg"===e.groupType)return"/TR";switch(t){case"CG-FINAL":case"BG-FINAL":return`/community/reports/${n}`;case"finding":case"draft-finding":return"/2001/tag/doc";case"Member-SUBM":return"/Submission"}return""}(e);if(t&&!e.thisVersion){const n=Yr[e.specStatus]||e.specStatus,{shortName:r,publishDate:s}=e,i=`${n}-${r}-${un(s)}`,o=[...is,"Member-SUBM"].includes(e.specStatus)?`${s.getUTCFullYear()}/`:"";e.thisVersion=Vr(`${t}/${o}${i}/`)}e.isEd&&(e.thisVersion=e.edDraftURI),e.isCGBG&&function(e){const t=Kr[e.specStatus],n=e.latestVersion?new URL(Vr(e.latestVersion)):null;if(!e.wg){return void Tn(On`The ${"[group]"} configuration option is required for this kind of document (${t}).`,Gr)}if(e.isCGFinal){if(!1===("https://www.w3.org"===n?.origin||"https://w3.org/"===n?.origin)){Tn(On`For ${t}, the ${"[latestVersion]"} URL must point to somewhere at https://www.w3.org/.`,Gr,{hint:"Ask a W3C Team Member for a W3C URL where the report can be published."})}}}(e),null!==e.latestVersion&&(e.latestVersion=e.latestVersion?Vr(e.latestVersion):Vr(`${t}/${e.shortName}/`)),e.latestVersion&&function(e){const t=new URL(e.latestVersion);if(("https://www.w3.org"===t.origin||"https://w3.org/"===t.origin)&&t.pathname.startsWith("/TR/")&&!1===["ED",...is].includes(e.specStatus)){const t=On`Ask a W3C Team Member for a W3C URL where the report can be published and change ${"[latestVersion]"} to something else.`;Tn(On`Documents with a status of \`"${e.specStatus}"\` can't be published on the W3C's /TR/ (Technical Report) space.`,Gr,{hint:t})}}(e);const n=`${t}/${e.shortName}`;if(e.previousPublishDate){if(!e.previousMaturity&&!e.isTagFinding){Tn(On`${"[`previousPublishDate`]"} is set, but missing ${"[`previousMaturity`]"}.`,Gr)}e.previousPublishDate=ls(e,"previousPublishDate");const r=Yr[e.previousMaturity]??e.previousMaturity;if(e.isTagFinding&&e.latestVersion){const t=Yt.format(e.publishDate);e.thisVersion=Vr(`${n}-${t}`);const r=Yt.format(e.previousPublishDate);e.prevVersion=Vr(`${n}-${r}}`)}else if(e.isCGBG||e.isBasic)e.prevVersion=e.prevVersion||"";else{const n=e.previousPublishDate.getUTCFullYear(),{shortName:s}=e,i=un(e.previousPublishDate);e.prevVersion=Vr(`${t}/${n}/${r}-${s}-${i}/`)}}e.prevRecShortname&&!e.prevRecURI&&(e.prevRecURI=Vr(`${t}/${e.prevRecShortname}`));for(let t=0;t{if(e.w3cid)return;const n=On`See ${"[w3cid]"} for instructions for how to retrieve it and add it.`;Tn(On`Editor ${e.name?`"${e.name}"`:`number ${t+1}`} is missing their ${"[w3cid]"}.`,Gr,{hint:n})}));if(e.alternateFormats?.some((({uri:e,label:t})=>!e||!t))){Tn(On`Every ${"[`alternateFormats`]"} entry must have a \`uri\` and a \`label\`.`,Gr)}if(e.copyrightStart==e.publishYear&&(e.copyrightStart=""),e.isRec&&!e.errata&&!e.revisionTypes?.length){const e=On`Add an ${"[errata]"} URL to your ${"[respecConfig]"}.`;Tn("Recommendations must have an errata link.",Gr,{hint:e})}e.dashDate=Yt.format(e.publishDate),e.publishISODate=e.publishDate.toISOString(),e.shortISODate=Yt.format(e.publishDate),function(e){if(!e.wgPatentPolicy)return;const t=new Set([].concat(e.wgPatentPolicy));if(t.size&&![...t].every((e=>cs.includes(e)))){const e=On`Invalid ${"[wgPatentPolicy]"} value(s): ${Dn([...t].filter((e=>!cs.includes(e))))}.`,n=`Please use one of: ${In(cs)}.`;Tn(e,Gr,{hint:n})}if(1!==t.size){const e="When collaborating across multiple groups, they must use the same patent policy.",n=On`For ${"[wgPatentPolicy]"}, please check the patent policies of each group. The patent policies were: ${[...t].join(", ")}.`;Tn(e,Gr,{hint:n})}e.wgPatentPolicy=[...t][0]}(e),await async function(e){if(!e.shortName||null===e.historyURI||!e.latestVersion)return;const t=e.isEd||is.includes(e.specStatus);if(e.historyURI&&!t){const t=On`Please remove ${"[historyURI]"}.`;return Tn(On`The ${"[historyURI]"} can't be used with non /TR/ documents.`,Gr,{hint:t}),void(e.historyURI=null)}const n=new URL(e.historyURI??`${e.shortName}/`,"https://www.w3.org/standards/history/");if(e.historyURI&&t||["FPWD","DNOTE","NOTE","DRY"].includes(e.specStatus))return void(e.historyURI=n.href);try{const t=await fetch(n,{method:"HEAD"});t.ok&&(e.historyURI=t.url)}catch{}}(e),e.isTagEditorFinding&&(delete e.thisVersion,delete e.latestVersion),e.isTagFinding&&(e.showPreviousVersion=!!e.previousPublishDate);const r={get multipleAlternates(){return e.alternateFormats&&e.alternateFormats.length>1},get alternatesHTML(){return e.alternateFormats&&hn(e.alternateFormats.map((({label:e})=>e)),((t,n)=>{const r=e.alternateFormats[n];return zt``),document.head.querySelector("meta[name=viewport]")||ks.prepend(zt``),document.head.prepend(ks);var xs=Object.freeze({__proto__:null,name:"w3c/style",run:function(e){const t=e.specStatus?.toUpperCase()??"";let n="";const r=[...Qr,...es,...Xr,"ED","MEMBER-SUBM"].includes(t)&&e.wgId;switch(t){case"WD":case"FPWD":n=r?"W3C-WD":"base.css";break;case"CG-DRAFT":case"CG-FINAL":case"BG-DRAFT":case"BG-FINAL":n=t.toLowerCase();break;case"UD":case"UNOFFICIAL":n="W3C-UD";break;case"FINDING":case"DRAFT-FINDING":case"EDITOR-DRAFT-FINDING":case"BASE":n="base.css";break;case"MEMBER-SUBM":n="W3C-Member-SUBM";break;default:n=r?`W3C-${e.specStatus}`:"base.css"}e.noToc||i("end-all",$s,{once:!0});const s=new URL(`/StyleSheets/TR/2021/${n}`,"https://www.w3.org/");var o;!function(e,t){const n=[].concat(t).map((t=>{const n=e.createElement("link");return n.rel="stylesheet",n.href=t,n})).reduce(((e,t)=>(e.appendChild(t),e)),e.createDocumentFragment());e.head.appendChild(n)}(document,s.href),i("beforesave",(o=s,e=>{const t=e.querySelector(`head link[href="${o}"]`);e.querySelector("head").append(t)}))}});const _s="core/github";let Cs,Ss;const Rs=new Promise(((e,t)=>{Cs=e,Ss=e=>{Tn(e,_s),t(new Error(e))}})),Es=cn({en:{file_a_bug:"File an issue",participate:"Participate:",commit_history:"Commit history"},ko:{participate:"참여"},zh:{file_a_bug:"反馈错误",participate:"参与:"},ja:{commit_history:"変更履歴",file_a_bug:"問題報告",participate:"参加方法:"},nl:{commit_history:"Revisiehistorie",file_a_bug:"Dien een melding in",participate:"Doe mee:"},es:{commit_history:"Historia de cambios",file_a_bug:"Nota un bug",participate:"Participe:"},de:{commit_history:"Revisionen",file_a_bug:"Fehler melden",participate:"Mitmachen:"}});var As=Object.freeze({__proto__:null,github:Rs,name:_s,run:async function(e){if(!e.hasOwnProperty("github")||!e.github)return void Cs(null);if("object"==typeof e.github&&!e.github.hasOwnProperty("repoURL")){const e=On`Config option ${"[github]"} is missing property \`repoURL\`.`;return void Ss(e)}let t,n=e.github.repoURL||e.github;n.endsWith("/")||(n+="/");try{t=new URL(n,"https://github.com")}catch{const e=On`${"[github]"} configuration option is not a valid URL? (${n}).`;return void Ss(e)}if("https://github.com"!==t.origin){const e=On`${"[github]"} configuration option must be HTTPS and pointing to GitHub. (${t.href}).`;return void Ss(e)}const[r,s]=t.pathname.split("/").filter((e=>e));if(!r||!s){const e=On`${"[github]"} URL needs a path. For example, "w3c/my-spec".`;return void Ss(e)}const i=e.github.branch||"gh-pages",o=new URL("./issues/",t).href,a=new URL(`./commits/${e.github.branch??""}`,t.href),c={edDraftURI:`https://${r.toLowerCase()}.github.io/${s}/`,githubToken:void 0,githubUser:void 0,issueBase:o,atRiskBase:o,otherLinks:[],pullBase:new URL("./pulls/",t).href,shortName:s};let l="https://respec.org/github";if(e.githubAPI)if(new URL(e.githubAPI).hostname===window.parent.location.hostname)l=e.githubAPI;else{Ln("The `githubAPI` configuration option is private and should not be added manually.",_s)}if(!e.excludeGithubLinks){const n={key:Es.participate,data:[{value:`GitHub ${r}/${s}`,href:t},{value:Es.file_a_bug,href:c.issueBase},{value:Es.commit_history,href:a.href},{value:"Pull requests",href:c.pullBase}]};e.otherLinks||(e.otherLinks=[]),e.otherLinks.unshift(n)}const u={branch:i,repoURL:t.href,apiBase:l,fullName:`${r}/${s}`,issuesURL:o,pullsURL:c.pullBase,newIssuesURL:new URL("./new/choose",o).href,commitHistoryURL:a.href};Cs(u);const d={...c,...e,github:u,githubAPI:l};Object.assign(e,d)}});class Ts{constructor(e){this.doc=e,this.root=e.createDocumentFragment(),this.stack=[this.root],this.current=this.root}findPosition(e){return parseInt(e.tagName.charAt(1),10)}findParent(e){let t;for(;e>0;)if(e--,t=this.stack[e],t)return t}findHeader({firstChild:e}){for(;e;){if(/H[1-6]/.test(e.tagName))return e;e=e.nextSibling}return null}addHeader(e){const t=this.doc.createElement("section"),n=this.findPosition(e);t.appendChild(e),this.findParent(n).appendChild(t),this.stack[n]=t,this.stack.length=n+1,this.current=t}addSection(e){const t=this.findHeader(e),n=t?this.findPosition(t):1,r=this.findParent(n);t&&e.removeChild(t),e.appendChild(Ls(e)),t&&e.prepend(t),r.appendChild(e),this.current=r}addElement(e){this.current.appendChild(e)}}function Ls(e){const t=new Ts(e.ownerDocument);for(;e.firstChild;){const n=e.firstChild;switch(n.localName){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":t.addHeader(n);break;case"section":t.addSection(n);break;default:t.addElement(n)}}return t.root}function Ps(e){const t=Ls(e);if("section"===t.firstElementChild.localName&&"section"===e.localName){const n=t.firstElementChild;n.remove(),e.append(...n.childNodes)}else e.textContent="";e.appendChild(t)}var Is=Object.freeze({__proto__:null,name:"core/sections",restructure:Ps,run:function(){Ps(document.body)}});const Ds="core/data-include";function Ns(e,t,n){const r=document.querySelector(`[data-include-id=${t}]`),s=dn(e,r.dataset.oninclude,n),i="string"==typeof r.dataset.includeReplace;!function(e,t,{replace:n}){const{includeFormat:r}=e.dataset;let s=t;"markdown"===r&&(s=Zn(s)),"text"===r?e.textContent=s:e.innerHTML=s,"markdown"===r&&Ps(e),n&&e.replaceWith(...e.childNodes)}(r,s,{replace:i}),i||function(e){["data-include","data-include-format","data-include-replace","data-include-id","oninclude"].forEach((t=>e.removeAttribute(t)))}(r)}async function Os(e,t){const n=e.querySelectorAll("[data-include]"),r=Array.from(n).map((async e=>{const n=e.dataset.include;if(!n)return;const r=`include-${String(Math.random()).slice(2)}`;e.dataset.includeId=r;try{const s=await fetch(n);Ns(await s.text(),r,n),t<3&&await Os(e,t+1)}catch(t){const r=`\`data-include\` failed: \`${n}\` (${t.message}).`;console.error(r,e,t),Tn(r,Ds,{elements:[e]})}}));await Promise.all(r)}var js=Object.freeze({__proto__:null,name:Ds,run:async function(){await Os(document,1)}});const Ms="core/title",zs=cn({en:{default_title:"No Title"},de:{default_title:"Kein Titel"},zh:{default_title:"无标题"}});var Us=Object.freeze({__proto__:null,name:Ms,run:function(e){const t=document.querySelector("h1#title")||zt``;if(t.isConnected&&""===t.textContent.trim()){Tn('The document is missing a title, so using a default title. To fix this, please give your document a ``. If you need special markup in the document\'s title, please use a `
`.',Ms,{title:"Document is missing a title",elements:[t]})}t.id||(t.id="title"),t.classList.add("title"),function(e,t){t.isConnected||(t.textContent=document.title||`${zs.default_title}`);const n=document.createElement("h1");n.innerHTML=t.innerHTML.replace(/: /g,": ").replace(/ /g," - ");let r=an(n.textContent);if(e.isPreview&&e.prNumber){const n=e.prUrl||`${e.github.repoURL}pull/${e.prNumber}`,{childNodes:s}=zt`
+ />`),document.head.prepend(ks);var xs=Object.freeze({__proto__:null,name:"w3c/style",run:function(e){const t=e.specStatus?.toUpperCase()??"";let n="";const r=[...Qr,...es,...Xr,"ED","MEMBER-SUBM"].includes(t)&&e.wgId;switch(t){case"WD":case"FPWD":n=r?"W3C-WD":"base.css";break;case"CG-DRAFT":case"CG-FINAL":case"BG-DRAFT":case"BG-FINAL":n=t.toLowerCase();break;case"UD":case"UNOFFICIAL":n="W3C-UD";break;case"FINDING":case"DRAFT-FINDING":case"EDITOR-DRAFT-FINDING":case"BASE":n="base.css";break;case"MEMBER-SUBM":n="W3C-Member-SUBM";break;default:n=r?`W3C-${e.specStatus}`:"base.css"}e.noToc||i("end-all",$s,{once:!0});const s=new URL(`/StyleSheets/TR/2021/${n}`,"https://www.w3.org/");var o;!function(e,t){const n=[].concat(t).map((t=>{const n=e.createElement("link");return n.rel="stylesheet",n.href=t,n})).reduce(((e,t)=>(e.appendChild(t),e)),e.createDocumentFragment());e.head.appendChild(n)}(document,s.href),i("beforesave",(o=s,e=>{const t=e.querySelector(`head link[href="${o}"]`);e.querySelector("head").append(t)}))}});const _s="core/github";let Ss,Cs;const Rs=new Promise(((e,t)=>{Ss=e,Cs=e=>{Tn(e,_s),t(new Error(e))}})),Es=cn({en:{file_a_bug:"File an issue",participate:"Participate:",commit_history:"Commit history"},ko:{participate:"참여"},zh:{file_a_bug:"反馈错误",participate:"参与:"},ja:{commit_history:"変更履歴",file_a_bug:"問題報告",participate:"参加方法:"},nl:{commit_history:"Revisiehistorie",file_a_bug:"Dien een melding in",participate:"Doe mee:"},es:{commit_history:"Historia de cambios",file_a_bug:"Nota un bug",participate:"Participe:"},de:{commit_history:"Revisionen",file_a_bug:"Fehler melden",participate:"Mitmachen:"}});var As=Object.freeze({__proto__:null,github:Rs,name:_s,run:async function(e){if(!e.hasOwnProperty("github")||!e.github)return void Ss(null);if("object"==typeof e.github&&!e.github.hasOwnProperty("repoURL")){const e=On`Config option ${"[github]"} is missing property \`repoURL\`.`;return void Cs(e)}let t,n=e.github.repoURL||e.github;n.endsWith("/")||(n+="/");try{t=new URL(n,"https://github.com")}catch{const e=On`${"[github]"} configuration option is not a valid URL? (${n}).`;return void Cs(e)}if("https://github.com"!==t.origin){const e=On`${"[github]"} configuration option must be HTTPS and pointing to GitHub. (${t.href}).`;return void Cs(e)}const[r,s]=t.pathname.split("/").filter((e=>e));if(!r||!s){const e=On`${"[github]"} URL needs a path. For example, "w3c/my-spec".`;return void Cs(e)}const i=e.github.branch||"gh-pages",o=new URL("./issues/",t).href,a=new URL(`./commits/${e.github.branch??""}`,t.href),c={edDraftURI:`https://${r.toLowerCase()}.github.io/${s}/`,githubToken:void 0,githubUser:void 0,issueBase:o,atRiskBase:o,otherLinks:[],pullBase:new URL("./pulls/",t).href,shortName:s};let l="https://respec.org/github";if(e.githubAPI)if(new URL(e.githubAPI).hostname===window.parent.location.hostname)l=e.githubAPI;else{Ln("The `githubAPI` configuration option is private and should not be added manually.",_s)}if(!e.excludeGithubLinks){const n={key:Es.participate,data:[{value:`GitHub ${r}/${s}`,href:t},{value:Es.file_a_bug,href:c.issueBase},{value:Es.commit_history,href:a.href},{value:"Pull requests",href:c.pullBase}]};e.otherLinks||(e.otherLinks=[]),e.otherLinks.unshift(n)}const u={branch:i,repoURL:t.href,apiBase:l,fullName:`${r}/${s}`,issuesURL:o,pullsURL:c.pullBase,newIssuesURL:new URL("./new/choose",o).href,commitHistoryURL:a.href};Ss(u);const d={...c,...e,github:u,githubAPI:l};Object.assign(e,d)}});class Ts{constructor(e){this.doc=e,this.root=e.createDocumentFragment(),this.stack=[this.root],this.current=this.root}findPosition(e){return parseInt(e.tagName.charAt(1),10)}findParent(e){let t;for(;e>0;)if(e--,t=this.stack[e],t)return t}findHeader({firstChild:e}){for(;e;){if(/H[1-6]/.test(e.tagName))return e;e=e.nextSibling}return null}addHeader(e){const t=this.doc.createElement("section"),n=this.findPosition(e);t.appendChild(e),this.findParent(n).appendChild(t),this.stack[n]=t,this.stack.length=n+1,this.current=t}addSection(e){const t=this.findHeader(e),n=t?this.findPosition(t):1,r=this.findParent(n);t&&e.removeChild(t),e.appendChild(Ls(e)),t&&e.prepend(t),r.appendChild(e),this.current=r}addElement(e){this.current.appendChild(e)}}function Ls(e){const t=new Ts(e.ownerDocument);for(;e.firstChild;){const n=e.firstChild;switch(n.localName){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":t.addHeader(n);break;case"section":t.addSection(n);break;default:t.addElement(n)}}return t.root}function Ps(e){const t=Ls(e);if("section"===t.firstElementChild.localName&&"section"===e.localName){const n=t.firstElementChild;n.remove(),e.append(...n.childNodes)}else e.textContent="";e.appendChild(t)}var Is=Object.freeze({__proto__:null,name:"core/sections",restructure:Ps,run:function(){Ps(document.body)}});const Ds="core/data-include";function Ns(e,t,n){const r=document.querySelector(`[data-include-id=${t}]`),s=dn(e,r.dataset.oninclude,n),i="string"==typeof r.dataset.includeReplace;!function(e,t,{replace:n}){const{includeFormat:r}=e.dataset;let s=t;"markdown"===r&&(s=Zn(s)),"text"===r?e.textContent=s:e.innerHTML=s,"markdown"===r&&Ps(e),n&&e.replaceWith(...e.childNodes)}(r,s,{replace:i}),i||function(e){["data-include","data-include-format","data-include-replace","data-include-id","oninclude"].forEach((t=>e.removeAttribute(t)))}(r)}async function Os(e,t){const n=e.querySelectorAll("[data-include]"),r=Array.from(n).map((async e=>{const n=e.dataset.include;if(!n)return;const r=`include-${String(Math.random()).slice(2)}`;e.dataset.includeId=r;try{const s=await fetch(n);Ns(await s.text(),r,n),t<3&&await Os(e,t+1)}catch(t){const r=`\`data-include\` failed: \`${n}\` (${t.message}).`;console.error(r,e,t),Tn(r,Ds,{elements:[e]})}}));await Promise.all(r)}var js=Object.freeze({__proto__:null,name:Ds,run:async function(){await Os(document,1)}});const Ms="core/title",zs=cn({en:{default_title:"No Title"},de:{default_title:"Kein Titel"},zh:{default_title:"无标题"}});var Us=Object.freeze({__proto__:null,name:Ms,run:function(e){const t=document.querySelector("h1#title")||zt``;if(t.isConnected&&""===t.textContent.trim()){Tn('The document is missing a title, so using a default title. To fix this, please give your document a ``. If you need special markup in the document\'s title, please use a `
`.',Ms,{title:"Document is missing a title",elements:[t]})}t.id||(t.id="title"),t.classList.add("title"),function(e,t){t.isConnected||(t.textContent=document.title||`${zs.default_title}`);const n=document.createElement("h1");n.innerHTML=t.innerHTML.replace(/: /g,": ").replace(/ /g," - ");let r=an(n.textContent);if(e.isPreview&&e.prNumber){const n=e.prUrl||`${e.github.repoURL}pull/${e.prNumber}`,{childNodes:s}=zt`
Preview of PR #${e.prNumber}:
`;t.prepend(...s),r=`Preview of PR #${e.prNumber}: ${r}`}document.title=r,e.title=r}(e,t),document.body.prepend(t)}});const qs="w3c/level",Ws=cn({en:{level:"Level"}});var Fs=Object.freeze({__proto__:null,name:qs,run:function(e){if(!e.hasOwnProperty("level"))return;const t=document.querySelector("h1#title"),n=parseInt(e.level);if(!Number.isInteger(n)||n<0){Tn(`The \`level\` configuration option must be a number greater or equal to 0. It is currently set to \`${n}\``,qs,{title:"Invalid level config.",elements:[t]})}else t.append(` ${Ws.level} ${n}`),document.title=`${document.title} ${Ws.level} ${n}`,e.shortName=`${e.shortName}-${n}`,e.level=n}});const Bs="w3c/abstract",Hs=cn({en:{abstract:"Abstract"},ko:{abstract:"요약"},zh:{abstract:"摘要"},ja:{abstract:"要約"},nl:{abstract:"Samenvatting"},es:{abstract:"Resumen"},de:{abstract:"Zusammenfassung"}});var Gs=Object.freeze({__proto__:null,name:Bs,run:async function(){const e=function(){const e=document.querySelector("#abstract");if(e)switch(e.localName){case"section":return e;case"div":return yn(e,"section");default:return Tn("The abstract should be a `` element.",Bs,{elements:[e]}),e}const t=Hs.abstract.toLowerCase();for(const e of document.querySelectorAll("h2, h3, h4, h5, h6")){if(an(e.textContent).toLowerCase()===t)return e.closest("section")}return null}();if(e)e.classList.add("introductory"),e.id="abstract",e.querySelector("h2")||e.prepend(zt`
${Hs.abstract}
`);else{Tn('Document must have one ``.',Bs)}}});var Vs=Object.freeze({__proto__:null,name:"core/data-transform",run:function(){document.querySelectorAll("[data-transform]").forEach((e=>{e.innerHTML=dn(e.innerHTML,e.dataset.transform),e.removeAttribute("data-transform")}))}});const Ys="core/dfn-abbr";function Ks(e){const t=(n=e).dataset.abbr?n.dataset.abbr:n.textContent.match(/\b([a-z])/gi).join("").toUpperCase();var n;const r=e.textContent.replace(/\s\s+/g," ").trim();e.insertAdjacentHTML("afterend",` (${t})`);const s=e.dataset.lt||"";e.dataset.lt=s.split("|").filter((e=>e.trim())).concat(t).join("|")}var Zs=Object.freeze({__proto__:null,name:Ys,run:function(){const e=document.querySelectorAll("[data-abbr]");for(const t of e){const{localName:e}=t;if("dfn"===e)Ks(t);else{Tn(`\`data-abbr\` attribute not supported on \`${e}\` elements.`,Ys,{elements:[t],title:"Error: unsupported."})}}}});const Js=/^[a-z]+(\s+[a-z]+)+\??$/,Xs=/\B"([^"]*)"\B/,Qs=/^(\w+)\(([^\\)]*)\)(?:\|(\w+)(?:\((?:([^\\)]*))\))?)?$/,ei=/\[\[(\w+(?: +\w+)*)\]\](\([^)]*\))?$/,ti=/^((?:\[\[)?(?:\w+(?: +\w+)*)(?:\]\])?)$/,ni=/^(?:\w+)\??$/,ri=/^(\w+)\["([\w- ]*)"\]$/,si=/\.?(\w+\(.*\)$)/,ii=/\/(.+)/,oi=/\[\[.+\]\]/;function ai(e){const{identifier:t,renderParent:n,nullable:r}=e;if(n)return zt`${t+(n?"?":"")}`}function mi(e){let t;try{t=function(e){const t=oi.test(e),n=t?ii:si,[r,s]=e.split(n);if(t&&r&&!s)throw new SyntaxError(`Internal slot missing "for" part. Expected \`{{ InterfaceName/${r}}}\` }.`);const i=r.split(/[./]/).concat(s).filter((e=>e&&e.trim())).map((e=>e.trim())),o=!e.includes("/"),a=[];for(;i.length;){const t=i.pop();if(Qs.test(t)){const[,e,n,r,s]=t.match(Qs),i=n.split(/,\s*/).filter((e=>e)),c=r?.trim(),l=s?.split(/,\s*/).filter((e=>e));a.push({type:"method",identifier:e,args:i,renderParent:o,renderText:c,renderArgs:l})}else if(ri.test(t)){const[,e,n]=t.match(ri);a.push({type:"enum",identifier:e,enumValue:n,renderParent:o})}else if(Xs.test(t)){const[,e]=t.match(Xs);o?a.push({type:"exception",identifier:e}):a.push({type:"enum",enumValue:e,renderParent:o})}else if(ei.test(t)){const[,e,n]=t.match(ei),r=n?"method":"attribute",s=n?.slice(1,-1).split(/,\s*/).filter((e=>e));a.push({type:"internal-slot",slotType:r,identifier:e,args:s,renderParent:o})}else if(ti.test(t)&&i.length){const[,e]=t.match(ti);a.push({type:"attribute",identifier:e,renderParent:o})}else if(Js.test(t)){const e=t.endsWith("?"),n=e?t.slice(0,-1):t;a.push({type:"idl-primitive",identifier:n,renderParent:o,nullable:e})}else{if(!ni.test(t)||0!==i.length)throw new SyntaxError(`IDL micro-syntax parsing error in \`{{ ${e} }}\``);{const e=t.endsWith("?"),n=e?t.slice(0,-1):t;a.push({type:"base",identifier:n,renderParent:o,nullable:e})}}}return a.forEach(((e,t,n)=>{e.parent=n[t+1]||null})),a.reverse()}(e)}catch(t){const n=zt`{{ ${e} }}`,r="Error: Invalid inline IDL string.";return Tn(t.message,"core/inlines",{title:r,elements:[n]}),n}const n=zt(document.createDocumentFragment()),r=[];for(const e of t)switch(e.type){case"base":{const t=ai(e);t&&r.push(t);break}case"attribute":r.push(ui(e));break;case"internal-slot":r.push(ci(e));break;case"method":r.push(di(e));break;case"enum":r.push(pi(e));break;case"exception":r.push(fi(e));break;case"idl-primitive":r.push(hi(e));break;default:throw new Error("Unknown type.")}return n`${r}`}const gi=new Set(["alias","reference"]),bi=async function(){const e=await Ut.openDB("respec-biblio2",12,{upgrade(e){Array.from(e.objectStoreNames).map((t=>e.deleteObjectStore(t)));e.createObjectStore("alias",{keyPath:"id"}).createIndex("aliasOf","aliasOf",{unique:!1}),e.createObjectStore("reference",{keyPath:"id"})}}),t=Date.now();for(const n of[...gi]){const r=e.transaction(n,"readwrite").store,s=IDBKeyRange.lowerBound(t);let i=await r.openCursor(s);for(;i?.value;){const e=i.value;(void 0===e.expires||e.expiresn[e].map((t=>this.add(e,t)))));await Promise.all(r)},async add(e,t){if(!gi.has(e))throw new TypeError(`Invalid type: ${e}`);if("object"!=typeof t)throw new TypeError("details should be an object");if("alias"===e&&!t.hasOwnProperty("aliasOf"))throw new TypeError("Invalid alias object.");const n=await this.ready;let r=await this.has(e,t.id);if(r){const s=await this.get(e,t.id);if(s?.expiresn.objectStore(e).clear()));await Promise.all(r)}},wi={},vi=new URL("https://api.specref.org/bibrefs?refs="),$i=Xt({hint:"dns-prefetch",href:vi.origin});let ki;document.head.appendChild($i);const xi=new Promise((e=>{ki=e}));async function _i(e,t={forceUpdate:!1}){const n=[...new Set(e)].filter((e=>e.trim()));if(!n.length||!1===navigator.onLine)return null;let r;try{r=await fetch(vi.href+n.join(","))}catch(e){return console.error(e),null}if(!t.forceUpdate&&!r.ok||200!==r.status)return null;const s=await r.json(),i=Date.now()+36e5;try{const e=r.headers.has("Expires")?Math.min(Date.parse(r.headers.get("Expires")),i):i;await yi.addAll(s,e)}catch(e){console.error(e)}return s}async function Ci(e){const t=await xi;if(!t.hasOwnProperty(e))return null;const n=t[e];return n.aliasOf?await Ci(n.aliasOf):n}var Si=Object.freeze({__proto__:null,Plugin:class{constructor(e){this.conf=e}normalizeReferences(){const e=new Set([...this.conf.normativeReferences].map((e=>e.toLowerCase())));Array.from(this.conf.informativeReferences).filter((t=>e.has(t.toLowerCase()))).forEach((e=>this.conf.informativeReferences.delete(e)))}getRefKeys(){return{informativeReferences:Array.from(this.conf.informativeReferences),normativeReferences:Array.from(this.conf.normativeReferences)}}async run(){this.conf.localBiblio||(this.conf.localBiblio={}),this.conf.biblio=wi;const e=Object.keys(this.conf.localBiblio).filter((e=>this.conf.localBiblio[e].hasOwnProperty("aliasOf"))).map((e=>this.conf.localBiblio[e].aliasOf)).filter((e=>!this.conf.localBiblio.hasOwnProperty(e)));this.normalizeReferences();const t=this.getRefKeys(),n=Array.from(new Set(t.normativeReferences.concat(t.informativeReferences).filter((e=>!this.conf.localBiblio.hasOwnProperty(e))).concat(e).sort())),r=n.length?await async function(e){const t=[];try{await yi.ready;const n=e.map((async e=>({id:e,data:await yi.find(e)})));t.push(...await Promise.all(n))}catch(n){t.push(...e.map((e=>({id:e,data:null})))),console.warn(n)}return t}(n):[],s={hasData:[],noData:[]};r.forEach((e=>{(e.data?s.hasData:s.noData).push(e)})),s.hasData.forEach((e=>{wi[e.id]=e.data}));const i=s.noData.map((e=>e.id));if(i.length){const e=await _i(i,{forceUpdate:!0});Object.assign(wi,e)}Object.assign(wi,this.conf.localBiblio),(()=>{ki(this.conf.biblio)})()}},biblio:wi,name:"core/biblio",resolveRef:Ci,updateFromNetwork:_i});const Ri="core/render-biblio",Ei=cn({en:{info_references:"Informative references",norm_references:"Normative references",references:"References",reference_not_found:"Reference not found."},ko:{references:"참조"},nl:{info_references:"Informatieve referenties",norm_references:"Normatieve referenties",references:"Referenties"},es:{info_references:"Referencias informativas",norm_references:"Referencias normativas",references:"Referencias",reference_not_found:"Referencia no encontrada."},ja:{info_references:"参照用参考文献",norm_references:"規範的参考文献",references:"参考文献"},de:{info_references:"Weiterführende Informationen",norm_references:"Normen und Spezifikationen",references:"Referenzen"},zh:{info_references:"非规范性引用",norm_references:"规范性引用",references:"参考文献"}}),Ai=new Map([["CR","W3C Candidate Recommendation"],["ED","W3C Editor's Draft"],["LCWD","W3C Last Call Working Draft"],["NOTE","W3C Working Group Note"],["PER","W3C Proposed Edited Recommendation"],["PR","W3C Proposed Recommendation"],["REC","W3C Recommendation"],["WD","W3C Working Draft"]]),Ti=(Li=".",e=>{const t=e.trim();return!t||t.endsWith(Li)?t:t+Li});var Li;function Pi(e,t){const{goodRefs:n,badRefs:r}=function(e){const t=[],n=[];for(const r of e)r.refcontent?t.push(r):n.push(r);return{goodRefs:t,badRefs:n}}(e.map(Ii)),s=function(e){const t=new Map;for(const n of e)t.has(n.refcontent.id)||t.set(n.refcontent.id,n);return[...t.values()]}(n),i=s.concat(r).sort(((e,t)=>e.ref.toLocaleLowerCase().localeCompare(t.ref.toLocaleLowerCase()))),o=zt`
+ >`}function mi(e){let t;try{t=function(e){const t=oi.test(e),n=t?ii:si,[r,s]=e.split(n);if(t&&r&&!s)throw new SyntaxError(`Internal slot missing "for" part. Expected \`{{ InterfaceName/${r}}}\` }.`);const i=r.split(/[./]/).concat(s).filter((e=>e&&e.trim())).map((e=>e.trim())),o=!e.includes("/"),a=[];for(;i.length;){const t=i.pop();if(Qs.test(t)){const[,e,n,r,s]=t.match(Qs),i=n.split(/,\s*/).filter((e=>e)),c=r?.trim(),l=s?.split(/,\s*/).filter((e=>e));a.push({type:"method",identifier:e,args:i,renderParent:o,renderText:c,renderArgs:l})}else if(ri.test(t)){const[,e,n]=t.match(ri);a.push({type:"enum",identifier:e,enumValue:n,renderParent:o})}else if(Xs.test(t)){const[,e]=t.match(Xs);o?a.push({type:"exception",identifier:e}):a.push({type:"enum",enumValue:e,renderParent:o})}else if(ei.test(t)){const[,e,n]=t.match(ei),r=n?"method":"attribute",s=n?.slice(1,-1).split(/,\s*/).filter((e=>e));a.push({type:"internal-slot",slotType:r,identifier:e,args:s,renderParent:o})}else if(ti.test(t)&&i.length){const[,e]=t.match(ti);a.push({type:"attribute",identifier:e,renderParent:o})}else if(Js.test(t)){const e=t.endsWith("?"),n=e?t.slice(0,-1):t;a.push({type:"idl-primitive",identifier:n,renderParent:o,nullable:e})}else{if(!ni.test(t)||0!==i.length)throw new SyntaxError(`IDL micro-syntax parsing error in \`{{ ${e} }}\``);{const e=t.endsWith("?"),n=e?t.slice(0,-1):t;a.push({type:"base",identifier:n,renderParent:o,nullable:e})}}}return a.forEach(((e,t,n)=>{e.parent=n[t+1]||null})),a.reverse()}(e)}catch(t){const n=zt`{{ ${e} }}`,r="Error: Invalid inline IDL string.";return Tn(t.message,"core/inlines",{title:r,elements:[n]}),n}const n=zt(document.createDocumentFragment()),r=[];for(const e of t)switch(e.type){case"base":{const t=ai(e);t&&r.push(t);break}case"attribute":r.push(ui(e));break;case"internal-slot":r.push(ci(e));break;case"method":r.push(di(e));break;case"enum":r.push(pi(e));break;case"exception":r.push(fi(e));break;case"idl-primitive":r.push(hi(e));break;default:throw new Error("Unknown type.")}return n`${r}`}const gi=new Set(["alias","reference"]),bi=async function(){const e=await Ut.openDB("respec-biblio2",12,{upgrade(e){Array.from(e.objectStoreNames).map((t=>e.deleteObjectStore(t)));e.createObjectStore("alias",{keyPath:"id"}).createIndex("aliasOf","aliasOf",{unique:!1}),e.createObjectStore("reference",{keyPath:"id"})}}),t=Date.now();for(const n of[...gi]){const r=e.transaction(n,"readwrite").store,s=IDBKeyRange.lowerBound(t);let i=await r.openCursor(s);for(;i?.value;){const e=i.value;(void 0===e.expires||e.expiresn[e].map((t=>this.add(e,t)))));await Promise.all(r)},async add(e,t){if(!gi.has(e))throw new TypeError(`Invalid type: ${e}`);if("object"!=typeof t)throw new TypeError("details should be an object");if("alias"===e&&!t.hasOwnProperty("aliasOf"))throw new TypeError("Invalid alias object.");const n=await this.ready;let r=await this.has(e,t.id);if(r){const s=await this.get(e,t.id);if(s?.expiresn.objectStore(e).clear()));await Promise.all(r)}},wi={},vi=new URL("https://api.specref.org/bibrefs?refs="),$i=Xt({hint:"dns-prefetch",href:vi.origin});let ki;document.head.appendChild($i);const xi=new Promise((e=>{ki=e}));async function _i(e,t={forceUpdate:!1}){const n=[...new Set(e)].filter((e=>e.trim()));if(!n.length||!1===navigator.onLine)return null;let r;try{r=await fetch(vi.href+n.join(","))}catch(e){return console.error(e),null}if(!t.forceUpdate&&!r.ok||200!==r.status)return null;const s=await r.json(),i=Date.now()+36e5;try{const e=r.headers.has("Expires")?Math.min(Date.parse(r.headers.get("Expires")),i):i;await yi.addAll(s,e)}catch(e){console.error(e)}return s}async function Si(e){const t=await xi;if(!t.hasOwnProperty(e))return null;const n=t[e];return n.aliasOf?await Si(n.aliasOf):n}var Ci=Object.freeze({__proto__:null,Plugin:class{constructor(e){this.conf=e}normalizeReferences(){const e=new Set([...this.conf.normativeReferences].map((e=>e.toLowerCase())));Array.from(this.conf.informativeReferences).filter((t=>e.has(t.toLowerCase()))).forEach((e=>this.conf.informativeReferences.delete(e)))}getRefKeys(){return{informativeReferences:Array.from(this.conf.informativeReferences),normativeReferences:Array.from(this.conf.normativeReferences)}}async run(){this.conf.localBiblio||(this.conf.localBiblio={}),this.conf.biblio=wi;const e=Object.keys(this.conf.localBiblio).filter((e=>this.conf.localBiblio[e].hasOwnProperty("aliasOf"))).map((e=>this.conf.localBiblio[e].aliasOf)).filter((e=>!this.conf.localBiblio.hasOwnProperty(e)));this.normalizeReferences();const t=this.getRefKeys(),n=Array.from(new Set(t.normativeReferences.concat(t.informativeReferences).filter((e=>!this.conf.localBiblio.hasOwnProperty(e))).concat(e).sort())),r=n.length?await async function(e){const t=[];try{await yi.ready;const n=e.map((async e=>({id:e,data:await yi.find(e)})));t.push(...await Promise.all(n))}catch(n){t.push(...e.map((e=>({id:e,data:null})))),console.warn(n)}return t}(n):[],s={hasData:[],noData:[]};r.forEach((e=>{(e.data?s.hasData:s.noData).push(e)})),s.hasData.forEach((e=>{wi[e.id]=e.data}));const i=s.noData.map((e=>e.id));if(i.length){const e=await _i(i,{forceUpdate:!0});Object.assign(wi,e)}Object.assign(wi,this.conf.localBiblio),(()=>{ki(this.conf.biblio)})()}},biblio:wi,name:"core/biblio",resolveRef:Si,updateFromNetwork:_i});const Ri="core/render-biblio",Ei=cn({en:{info_references:"Informative references",norm_references:"Normative references",references:"References",reference_not_found:"Reference not found."},ko:{references:"참조"},nl:{info_references:"Informatieve referenties",norm_references:"Normatieve referenties",references:"Referenties"},es:{info_references:"Referencias informativas",norm_references:"Referencias normativas",references:"Referencias",reference_not_found:"Referencia no encontrada."},ja:{info_references:"参照用参考文献",norm_references:"規範的参考文献",references:"参考文献"},de:{info_references:"Weiterführende Informationen",norm_references:"Normen und Spezifikationen",references:"Referenzen"},zh:{info_references:"非规范性引用",norm_references:"规范性引用",references:"参考文献"}}),Ai=new Map([["CR","W3C Candidate Recommendation"],["ED","W3C Editor's Draft"],["LCWD","W3C Last Call Working Draft"],["NOTE","W3C Working Group Note"],["PER","W3C Proposed Edited Recommendation"],["PR","W3C Proposed Recommendation"],["REC","W3C Recommendation"],["WD","W3C Working Draft"]]),Ti=(Li=".",e=>{const t=e.trim();return!t||t.endsWith(Li)?t:t+Li});var Li;function Pi(e,t){const{goodRefs:n,badRefs:r}=function(e){const t=[],n=[];for(const r of e)r.refcontent?t.push(r):n.push(r);return{goodRefs:t,badRefs:n}}(e.map(Ii)),s=function(e){const t=new Map;for(const n of e)t.has(n.refcontent.id)||t.set(n.refcontent.id,n);return[...t.values()]}(n),i=s.concat(r).sort(((e,t)=>e.ref.toLocaleLowerCase().localeCompare(t.ref.toLocaleLowerCase()))),o=zt`
${t}
${i.map(Ni)}
`;gn(o,"",t);const a=function(e){return e.reduce(((e,t)=>{const n=t.refcontent.id;return(e.has(n)?e.get(n):e.set(n,[]).get(n)).push(t.ref),e}),new Map)}(n);return function(e,t){e.map((({ref:e,refcontent:n})=>{const r=`#bib-${e.toLowerCase()}`,s=t.get(n.id).map((e=>`a.bibref[href="#bib-${e.toLowerCase()}"]`)).join(",");return{refUrl:r,elems:document.querySelectorAll(s),refcontent:n}})).forEach((({refUrl:e,elems:t,refcontent:n})=>{t.forEach((t=>{t.setAttribute("href",e),t.setAttribute("title",n.title),t.dataset.linkType="biblio"}))}))}(s,a),function(e){for(const{ref:t}of e){const e=[...document.querySelectorAll(`a.bibref[href="#bib-${t.toLowerCase()}"]`)].filter((({textContent:e})=>e.toLowerCase()===t.toLowerCase()));Tn(`Reference "[${t}]" not found.`,Ri,{hint:`Search for ["${t}"](https://www.specref.org?q=${t}) on Specref to see if it exists or if it's misspelled.`,elements:e})}}(r),o}function Ii(e){let t=wi[e],n=e;const r=new Set([n]);for(;t&&t.aliasOf;)if(r.has(t.aliasOf)){t=null;Tn(`Circular reference in biblio DB between [\`${e}\`] and [\`${n}\`].`,Ri)}else n=t.aliasOf,t=wi[n],r.add(n);return t&&!t.id&&(t.id=e.toLowerCase()),{ref:e,refcontent:t}}function Di(e,t){const n=e.replace(/^(!|\?)/,""),r=`#bib-${n.toLowerCase()}`,s=zt`0?` ${t}`:"",s=n.title?zt`: ${n.title}`:"";return zt`
`),t.appendChild(n));else if(t){Ln("Using best practices summary (#bp-summary) but no best practices found.",Lo),t.remove()}}});const Oo="core/figures",jo=cn({en:{list_of_figures:"List of Figures",fig:"Figure "},ja:{fig:"図 ",list_of_figures:"図のリスト"},ko:{fig:"그림 ",list_of_figures:"그림 목록"},nl:{fig:"Figuur ",list_of_figures:"Lijst met figuren"},es:{fig:"Figura ",list_of_figures:"Lista de Figuras"},zh:{fig:"图 ",list_of_figures:"规范中包含的图"},de:{fig:"Abbildung",list_of_figures:"Abbildungsverzeichnis"}});var Mo=Object.freeze({__proto__:null,name:Oo,run:function(){const e=function(){const e=[];return document.querySelectorAll("figure").forEach(((t,n)=>{const r=t.querySelector("figcaption");if(r)!function(e,t,n){const r=t.textContent;gn(e,"fig",r),vn(t,zt``),t.prepend(zt``;if(n){const t=zt`
`}
- `}var Ic=Object.freeze({__proto__:null,name:Sc,run:async function(e){const t=function(e){const{shortName:t,mdn:n}=e;if(!n)return;return"string"==typeof n?n:n.key||t}(e);if(!t)return;const n=await async function(e,t){const{baseJsonPath:n=Rc,maxAge:r=864e5}=t,s=new URL(`${e}.json`,n).href,i=await pn(s,r);if(404===i.status){return void Tn(`Could not find MDN data associated with key "${e}".`,Sc,{hint:"Please add a valid key to `respecConfig.mdn`"})}return await i.json()}(t,e.mdn);if(!n)return;const r=document.createElement("style");r.textContent=Cc,document.head.append(r);for(const e of function(e){return[...document.body.querySelectorAll("[id]:not(script)")].filter((({id:t})=>Array.isArray(e[t])))}(n)){const t=n[e.id],r=Lc(e);if(r)for(const e of t)r.append(Pc(e))}}});const Dc="ui/save-html",Nc=cn({en:{save_snapshot:"Export"},nl:{save_snapshot:"Bewaar Snapshot"},ja:{save_snapshot:"保存する"},de:{save_snapshot:"Exportieren"},zh:{save_snapshot:"导出"}}),Oc=[{id:"respec-save-as-html",ext:"html",title:"HTML",type:"text/html",get href(){return Mn(this.type)}},{id:"respec-save-as-xml",ext:"xhtml",title:"XML",type:"application/xml",get href(){return Mn(this.type)}},{id:"respec-save-as-epub",ext:"epub",title:"EPUB 3",type:"application/epub+zip",get href(){const e=new URL("https://labs.w3.org/r2epub/");return e.searchParams.append("respec","true"),e.searchParams.append("url",document.location.href),e.href}}];var jc=Object.freeze({__proto__:null,exportDocument:function(e,t){return Ln("Exporting via ui/save-html module's `exportDocument()` is deprecated and will be removed.",Dc,{hint:"Use core/exporter `rsDocToDataURL()` instead."}),Mn(t)},name:Dc,run:function(e){const t={async show(t){await document.respec.ready;const n=zt`
+ `}var Ic=Object.freeze({__proto__:null,name:Cc,run:async function(e){const t=function(e){const{shortName:t,mdn:n}=e;if(!n)return;return"string"==typeof n?n:n.key||t}(e);if(!t)return;const n=await async function(e,t){const{baseJsonPath:n=Rc,maxAge:r=864e5}=t,s=new URL(`${e}.json`,n).href,i=await pn(s,r);if(404===i.status){return void Tn(`Could not find MDN data associated with key "${e}".`,Cc,{hint:"Please add a valid key to `respecConfig.mdn`"})}return await i.json()}(t,e.mdn);if(!n)return;const r=document.createElement("style");r.textContent=Sc,document.head.append(r);for(const e of function(e){return[...document.body.querySelectorAll("[id]:not(script)")].filter((({id:t})=>Array.isArray(e[t])))}(n)){const t=n[e.id],r=Lc(e);if(r)for(const e of t)r.append(Pc(e))}}});const Dc="ui/save-html",Nc=cn({en:{save_snapshot:"Export"},nl:{save_snapshot:"Bewaar Snapshot"},ja:{save_snapshot:"保存する"},de:{save_snapshot:"Exportieren"},zh:{save_snapshot:"导出"}}),Oc=[{id:"respec-save-as-html",ext:"html",title:"HTML",type:"text/html",get href(){return Mn(this.type)}},{id:"respec-save-as-xml",ext:"xhtml",title:"XML",type:"application/xml",get href(){return Mn(this.type)}},{id:"respec-save-as-epub",ext:"epub",title:"EPUB 3",type:"application/epub+zip",get href(){const e=new URL("https://labs.w3.org/r2epub/");return e.searchParams.append("respec","true"),e.searchParams.append("url",document.location.href),e.href}}];var jc=Object.freeze({__proto__:null,exportDocument:function(e,t){return Ln("Exporting via ui/save-html module's `exportDocument()` is deprecated and will be removed.",Dc,{hint:"Use core/exporter `rsDocToDataURL()` instead."}),Mn(t)},name:Dc,run:function(e){const t={async show(t){await document.respec.ready;const n=zt`
${Oc.map((t=>function(e,t){const{id:n,href:r,ext:s,title:i,type:o}=e,a=un(t.publishDate||new Date),c=[t.specStatus,t.shortName||"spec",a].join("-");return zt``;document.head.appendChild(t)}const t=document.querySelector("#abstract p:first-of-type");if(!t)return;const n=t.textContent.replace(/\s+/," ").trim(),r=document.createElement("meta");r.name="description",r.content=n,document.head.appendChild(r)}});const Qc="w3c/seo",el={NOTE:"w3p:NOTE",WD:"w3p:WD",LC:"w3p:LastCall",CR:"w3p:CR",CRD:"w3p:CRD",PR:"w3p:PR",REC:"w3p:REC",PER:"w3p:PER",RSCND:"w3p:RSCND"},tl=new Set([...Xr,...Qr,...es,"BG-FINAL","CG-FINAL","CRY","DRY","draft-finding","finding"]);function nl({name:e,url:t,mailto:n,company:r,companyURL:s}){const i={type:"Person",name:e,url:t,"foaf:mbox":n};return(r||s)&&(i.worksFor={name:r,url:s}),i}function rl(e){const{href:t,title:n,href:r}=e,s={id:t,type:"TechArticle",name:n,url:r};return e.authors&&(s.creator=e.authors.map((e=>({name:e})))),e.rawDate&&(s.publishedDate=e.rawDate),e.isbn&&(s.identifier=e.isbn),e.publisher&&(s.publisher={name:e.publisher}),s}var sl=Object.freeze({__proto__:null,name:Qc,requiresCanonicalLink:tl,run:async function(e){if((e.canonicalURI||tl.has(e.specStatus))&&e.shortName){switch(e.canonicalURI){case"edDraft":if(e.edDraftURI)e.canonicalURI=new URL(e.edDraftURI,document.location.href).href;else{Ln("Canonical URI set to edDraft, but no edDraftURI is set in configuration",Qc),e.canonicalURI=null}break;case"TR":if(e.latestVersion)e.canonicalURI=e.latestVersion;else{Ln("Canonical URI set to TR, but no shortName is set in configuration",Qc),e.canonicalURI=null}break;default:e.latestVersion&&!e.canonicalURI&&(e.canonicalURI=e.latestVersion)}if(e.canonicalURI){const t=zt``;document.head.appendChild(t)}e.doJsonLd&&await async function(e,t){const n=el[e.specStatus],r=["TechArticle"];n&&r.push(n);const s={"@context":["http://schema.org",{"@vocab":"http://schema.org/","@language":t.documentElement.lang||"en",w3p:"http://www.w3.org/2001/02pd/rec54#",foaf:"http://xmlns.com/foaf/0.1/",datePublished:{"@type":"http://www.w3.org/2001/XMLSchema#date"},inLanguage:{"@language":null},isBasedOn:{"@type":"@id"},license:{"@type":"@id"}}],id:e.canonicalURI||e.thisVersion,type:r,name:document.title,inLanguage:t.documentElement.lang||"en",license:e.licenseInfo?.url,datePublished:e.dashDate,copyrightHolder:{name:"World Wide Web Consortium",url:"https://www.w3.org/"},discussionUrl:e.issueBase,alternativeHeadline:e.subtitle,isBasedOn:e.prevVersion};if(e.additionalCopyrightHolders){const t=Array.isArray(e.additionalCopyrightHolders)?e.additionalCopyrightHolders:[e.additionalCopyrightHolders];s.copyrightHolder=[s.copyrightHolder,...t.map((e=>({name:e})))]}const i=t.head.querySelector("meta[name=description]");i&&(s.description=i.content);e.editors&&(s.editor=e.editors.map(nl));e.authors&&(s.contributor=e.authors.map(nl));const o=[...e.normativeReferences,...e.informativeReferences],a=await Promise.all(o.map((e=>Ci(e))));s.citation=a.filter((e=>"object"==typeof e)).map(rl);const c=t.createElement("script");c.type="application/ld+json",c.textContent=JSON.stringify(s,null,2),t.head.appendChild(c)}(e,document)}}});var il=String.raw`.hljs{display:block;overflow-x:auto;padding:.5em;color:#383a42;background:#fafafa}
+ />`;document.head.appendChild(t)}const t=document.querySelector("#abstract p:first-of-type");if(!t)return;const n=t.textContent.replace(/\s+/," ").trim(),r=document.createElement("meta");r.name="description",r.content=n,document.head.appendChild(r)}});const Qc="w3c/seo",el={NOTE:"w3p:NOTE",WD:"w3p:WD",LC:"w3p:LastCall",CR:"w3p:CR",CRD:"w3p:CRD",PR:"w3p:PR",REC:"w3p:REC",PER:"w3p:PER",RSCND:"w3p:RSCND"},tl=new Set([...Xr,...Qr,...es,"BG-FINAL","CG-FINAL","CRY","DRY","draft-finding","finding"]);function nl({name:e,url:t,mailto:n,company:r,companyURL:s}){const i={type:"Person",name:e,url:t,"foaf:mbox":n};return(r||s)&&(i.worksFor={name:r,url:s}),i}function rl(e){const{href:t,title:n,href:r}=e,s={id:t,type:"TechArticle",name:n,url:r};return e.authors&&(s.creator=e.authors.map((e=>({name:e})))),e.rawDate&&(s.publishedDate=e.rawDate),e.isbn&&(s.identifier=e.isbn),e.publisher&&(s.publisher={name:e.publisher}),s}var sl=Object.freeze({__proto__:null,name:Qc,requiresCanonicalLink:tl,run:async function(e){if((e.canonicalURI||tl.has(e.specStatus))&&e.shortName){switch(e.canonicalURI){case"edDraft":if(e.edDraftURI)e.canonicalURI=new URL(e.edDraftURI,document.location.href).href;else{Ln("Canonical URI set to edDraft, but no edDraftURI is set in configuration",Qc),e.canonicalURI=null}break;case"TR":if(e.latestVersion)e.canonicalURI=e.latestVersion;else{Ln("Canonical URI set to TR, but no shortName is set in configuration",Qc),e.canonicalURI=null}break;default:e.latestVersion&&!e.canonicalURI&&(e.canonicalURI=e.latestVersion)}if(e.canonicalURI){const t=zt``;document.head.appendChild(t)}e.doJsonLd&&await async function(e,t){const n=el[e.specStatus],r=["TechArticle"];n&&r.push(n);const s={"@context":["http://schema.org",{"@vocab":"http://schema.org/","@language":t.documentElement.lang||"en",w3p:"http://www.w3.org/2001/02pd/rec54#",foaf:"http://xmlns.com/foaf/0.1/",datePublished:{"@type":"http://www.w3.org/2001/XMLSchema#date"},inLanguage:{"@language":null},isBasedOn:{"@type":"@id"},license:{"@type":"@id"}}],id:e.canonicalURI||e.thisVersion,type:r,name:document.title,inLanguage:t.documentElement.lang||"en",license:e.licenseInfo?.url,datePublished:e.dashDate,copyrightHolder:{name:"World Wide Web Consortium",url:"https://www.w3.org/"},discussionUrl:e.issueBase,alternativeHeadline:e.subtitle,isBasedOn:e.prevVersion};if(e.additionalCopyrightHolders){const t=Array.isArray(e.additionalCopyrightHolders)?e.additionalCopyrightHolders:[e.additionalCopyrightHolders];s.copyrightHolder=[s.copyrightHolder,...t.map((e=>({name:e})))]}const i=t.head.querySelector("meta[name=description]");i&&(s.description=i.content);e.editors&&(s.editor=e.editors.map(nl));e.authors&&(s.contributor=e.authors.map(nl));const o=[...e.normativeReferences,...e.informativeReferences],a=await Promise.all(o.map((e=>Si(e))));s.citation=a.filter((e=>"object"==typeof e)).map(rl);const c=t.createElement("script");c.type="application/ld+json",c.textContent=JSON.stringify(s,null,2),t.head.appendChild(c)}(e,document)}}});var il=String.raw`.hljs{display:block;overflow-x:auto;padding:.5em;color:#383a42;background:#fafafa}
.hljs-comment,.hljs-quote{color:#717277;font-style:italic}
.hljs-doctag,.hljs-formula,.hljs-keyword{color:#a626a4}
.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#ca4706;font-weight:700}
@@ -1148,11 +1141,11 @@ var.respec-hl-c6{--bg-color:#82ddff}
var.respec-hl-c7{--bg-color:#ffbcf2}
@media print{
var.respec-hl{background:0 0;color:#000;box-shadow:unset}
-}`;function Cl(e){e.stopPropagation();const{target:t}=e,n=function(e){const t=an(e.textContent),n=e.closest("section"),r=Rl(e),s=[...n.querySelectorAll("var")].filter((e=>an(e.textContent)===t&&e.closest("section")===n)),i=s[0].classList.contains("respec-hl");if(Sl.set(r,i),i)return s.forEach((e=>El(e,r))),[];s.forEach((e=>function(e,t){e.classList.add("respec-hl",t)}(e,r)));return s}(t),r=()=>{const e=Rl(t);n.forEach((t=>El(t,e))),[...Sl.keys()].forEach((e=>Sl.set(e,!0)))};n.length&&document.body.addEventListener("click",r,{once:!0})}const Sl=new Map([["respec-hl-c1",!0],["respec-hl-c2",!0],["respec-hl-c3",!0],["respec-hl-c4",!0],["respec-hl-c5",!0],["respec-hl-c6",!0],["respec-hl-c7",!0]]);function Rl(e){const{value:t}=e.classList,n=/respec-hl-\w+/,r=n.test(t)&&t.match(n);return r?r[0]:!0===Sl.get("respec-hl-c1")?"respec-hl-c1":[...Sl.keys()].find((e=>Sl.get(e)))||"respec-hl-c1"}function El(e,t){e.classList.remove("respec-hl",t),e.classList.length||e.removeAttribute("class")}var Al=Object.freeze({__proto__:null,name:"core/highlight-vars",run:function(e){if(!e.highlightVars)return;const t=document.createElement("style");t.textContent=_l,t.classList.add("removeOnSave"),document.head.appendChild(t),document.querySelectorAll("var").forEach((e=>e.addEventListener("click",Cl))),i("beforesave",(e=>{e.querySelectorAll("var.respec-hl").forEach(El)}))}});var Tl=String.raw`var{position:relative;cursor:pointer}
+}`;function Sl(e){e.stopPropagation();const{target:t}=e,n=function(e){const t=an(e.textContent),n=e.closest("section"),r=Rl(e),s=[...n.querySelectorAll("var")].filter((e=>an(e.textContent)===t&&e.closest("section")===n)),i=s[0].classList.contains("respec-hl");if(Cl.set(r,i),i)return s.forEach((e=>El(e,r))),[];s.forEach((e=>function(e,t){e.classList.add("respec-hl",t)}(e,r)));return s}(t),r=()=>{const e=Rl(t);n.forEach((t=>El(t,e))),[...Cl.keys()].forEach((e=>Cl.set(e,!0)))};n.length&&document.body.addEventListener("click",r,{once:!0})}const Cl=new Map([["respec-hl-c1",!0],["respec-hl-c2",!0],["respec-hl-c3",!0],["respec-hl-c4",!0],["respec-hl-c5",!0],["respec-hl-c6",!0],["respec-hl-c7",!0]]);function Rl(e){const{value:t}=e.classList,n=/respec-hl-\w+/,r=n.test(t)&&t.match(n);return r?r[0]:!0===Cl.get("respec-hl-c1")?"respec-hl-c1":[...Cl.keys()].find((e=>Cl.get(e)))||"respec-hl-c1"}function El(e,t){e.classList.remove("respec-hl",t),e.classList.length||e.removeAttribute("class")}var Al=Object.freeze({__proto__:null,name:"core/highlight-vars",run:function(e){if(!e.highlightVars)return;const t=document.createElement("style");t.textContent=_l,t.classList.add("removeOnSave"),document.head.appendChild(t),document.querySelectorAll("var").forEach((e=>e.addEventListener("click",Sl))),i("beforesave",(e=>{e.querySelectorAll("var.respec-hl").forEach(El)}))}});var Tl=String.raw`var{position:relative;cursor:pointer}
var[data-type]::after,var[data-type]::before{position:absolute;left:50%;top:-6px;opacity:0;transition:opacity .4s;pointer-events:none}
var[data-type]::before{content:"";transform:translateX(-50%);border-width:4px 6px 0 6px;border-style:solid;border-color:transparent;border-top-color:#000}
var[data-type]::after{content:attr(data-type);transform:translateX(-50%) translateY(-100%);background:#000;text-align:center;font-family:"Dank Mono","Fira Code",monospace;font-style:normal;padding:6px;border-radius:3px;color:#daca88;text-indent:0;font-weight:400}
-var[data-type]:hover::after,var[data-type]:hover::before{opacity:1}`;var Ll=Object.freeze({__proto__:null,name:"core/data-type",run:function(e){if(!e.highlightVars)return;const t=document.createElement("style");t.textContent=Tl,document.head.appendChild(t);let n=null;const r=new Map,s=document.querySelectorAll("section var");for(const e of s){const t=e.closest("section");if(n!==t&&(n=t,r.clear()),e.dataset.type){r.set(e.textContent.trim(),e.dataset.type);continue}const s=r.get(e.textContent.trim());s&&(e.dataset.type=s)}}});var Pl=String.raw`.assert{background:#eee;border-left:.5em solid #aaa;padding:.3em}`;var Il=Object.freeze({__proto__:null,name:"core/algorithms",run:function(){const e=Array.from(document.querySelectorAll("ol.algorithm li")).filter((e=>e.textContent.trim().startsWith("Assert: ")));if(!e.length)return;for(const t of e){t.classList.add("assert");const e=t.firstChild;e instanceof Text&&e.textContent.startsWith("Assert: ")&&(e.textContent=e.textContent.replace("Assert: ",""),t.prepend(zt`Assert`,": "))}const t=document.createElement("style");t.textContent=Pl,document.head.appendChild(t)}});const Dl="core/anchor-expander";function Nl(e,t,n){const r=e.querySelector(".marker .self-link");if(!r){n.textContent=n.getAttribute("href");return void Tn(`Found matching element "${t}", but it has no title or marker.`,Dl,{title:"Missing title.",elements:[n]})}const s=Cn(r);n.append(...s.childNodes),n.classList.add("box-ref")}function Ol(e,t,n){const r=e.querySelector("figcaption");if(!r){n.textContent=n.getAttribute("href");return void Tn(`Found matching figure "${t}", but figure is lacking a \`\`.`,Dl,{title:"Missing figcaption in referenced figure.",elements:[n]})}const s=[...Cn(r.querySelector(".self-link")).childNodes].map((e=>(e.classList?.remove("figno"),e)));n.append(...s),n.classList.add("fig-ref");const i=r.querySelector(".fig-title");!n.hasAttribute("title")&&i&&(n.title=an(i.textContent))}function jl(e,t,n){if(!e.classList.contains("numbered"))return;const r=e.querySelector("caption");if(!r){n.textContent=n.getAttribute("href");return void Tn(`Found matching table "${t}", but table is lacking a \`
\`.`,Dl,{title:"Missing caption in referenced table.",elements:[n]})}const s=[...Cn(r.querySelector(".self-link")).childNodes].map((e=>(e.classList?.remove("tableno"),e)));n.append(...s),n.classList.add("table-ref");const i=r.querySelector(".table-title");!n.hasAttribute("title")&&i&&(n.title=an(i.textContent))}function Ml(e,t,n){const r=e.querySelector("h6, h5, h4, h3, h2");if(r)zl(r,n),Ul(r,n);else{n.textContent=n.getAttribute("href");Tn("Found matching section, but the section was lacking a heading element.",Dl,{title:`No matching id in document: "${t}".`,elements:[n]})}}function zl(e,t){const n=e.querySelector(".self-link"),r=[...Cn(e).childNodes].filter((e=>!e.classList||!e.classList.contains("self-link")));t.append(...r),n&&t.prepend("§ "),t.classList.add("sec-ref"),t.lastChild.nodeType===Node.TEXT_NODE&&(t.lastChild.textContent=t.lastChild.textContent.trimEnd()),t.querySelectorAll("a").forEach((e=>{const t=yn(e,"span");for(const e of[...t.attributes])t.removeAttributeNode(e)}))}function Ul(e,t){for(const n of["dir","lang"]){if(t.hasAttribute(n))continue;const r=e.closest(`[${n}]`);if(!r)continue;const s=t.closest(`[${n}]`);s&&s.getAttribute(n)===r.getAttribute(n)||t.setAttribute(n,r.getAttribute(n))}}var ql=Object.freeze({__proto__:null,name:Dl,run:function(){const e=[...document.querySelectorAll("a[href^='#']:not(.self-link):not([href$='the-empty-string'])")].filter((e=>""===e.textContent.trim()));for(const t of e){const e=t.getAttribute("href").slice(1),n=document.getElementById(e);if(n){switch(n.localName){case"h6":case"h5":case"h4":case"h3":case"h2":zl(n,t);break;case"section":Ml(n,e,t);break;case"figure":Ol(n,e,t);break;case"table":jl(n,e,t);break;case"aside":case"div":Nl(n,e,t);break;default:t.textContent=t.getAttribute("href");Tn("ReSpec doesn't support expanding this kind of reference.",Dl,{title:`Can't expand "#${e}".`,elements:[t]})}Ul(n,t),t.normalize()}else{t.textContent=t.getAttribute("href");Tn(`Couldn't expand inline reference. The id "${e}" is not in the document.`,Dl,{title:`No matching id in document: ${e}.`,elements:[t]})}}}});var Wl=String.raw`dfn{cursor:pointer}
+var[data-type]:hover::after,var[data-type]:hover::before{opacity:1}`;var Ll=Object.freeze({__proto__:null,name:"core/data-type",run:function(e){if(!e.highlightVars)return;const t=document.createElement("style");t.textContent=Tl,document.head.appendChild(t);let n=null;const r=new Map,s=document.querySelectorAll("section var");for(const e of s){const t=e.closest("section");if(n!==t&&(n=t,r.clear()),e.dataset.type){r.set(e.textContent.trim(),e.dataset.type);continue}const s=r.get(e.textContent.trim());s&&(e.dataset.type=s)}}});var Pl=String.raw`.assert{background:#eee;border-left:.5em solid #aaa;padding:.3em}`;var Il=Object.freeze({__proto__:null,name:"core/algorithms",run:function(){const e=Array.from(document.querySelectorAll("ol.algorithm li")).filter((e=>e.textContent.trim().startsWith("Assert: ")));if(!e.length)return;for(const t of e){t.classList.add("assert");const e=t.firstChild;e instanceof Text&&e.textContent.startsWith("Assert: ")&&(e.textContent=e.textContent.replace("Assert: ",""),t.prepend(zt`Assert`,": "))}const t=document.createElement("style");t.textContent=Pl,document.head.appendChild(t)}});const Dl="core/anchor-expander";function Nl(e,t,n){const r=e.querySelector(".marker .self-link");if(!r){n.textContent=n.getAttribute("href");return void Tn(`Found matching element "${t}", but it has no title or marker.`,Dl,{title:"Missing title.",elements:[n]})}const s=Sn(r);n.append(...s.childNodes),n.classList.add("box-ref")}function Ol(e,t,n){const r=e.querySelector("figcaption");if(!r){n.textContent=n.getAttribute("href");return void Tn(`Found matching figure "${t}", but figure is lacking a \`\`.`,Dl,{title:"Missing figcaption in referenced figure.",elements:[n]})}const s=[...Sn(r.querySelector(".self-link")).childNodes].map((e=>(e.classList?.remove("figno"),e)));n.append(...s),n.classList.add("fig-ref");const i=r.querySelector(".fig-title");!n.hasAttribute("title")&&i&&(n.title=an(i.textContent))}function jl(e,t,n){if(!e.classList.contains("numbered"))return;const r=e.querySelector("caption");if(!r){n.textContent=n.getAttribute("href");return void Tn(`Found matching table "${t}", but table is lacking a \`
\`.`,Dl,{title:"Missing caption in referenced table.",elements:[n]})}const s=[...Sn(r.querySelector(".self-link")).childNodes].map((e=>(e.classList?.remove("tableno"),e)));n.append(...s),n.classList.add("table-ref");const i=r.querySelector(".table-title");!n.hasAttribute("title")&&i&&(n.title=an(i.textContent))}function Ml(e,t,n){const r=e.querySelector("h6, h5, h4, h3, h2");if(r)zl(r,n),Ul(r,n);else{n.textContent=n.getAttribute("href");Tn("Found matching section, but the section was lacking a heading element.",Dl,{title:`No matching id in document: "${t}".`,elements:[n]})}}function zl(e,t){const n=e.querySelector(".self-link"),r=[...Sn(e).childNodes].filter((e=>!e.classList||!e.classList.contains("self-link")));t.append(...r),n&&t.prepend("§ "),t.classList.add("sec-ref"),t.lastChild.nodeType===Node.TEXT_NODE&&(t.lastChild.textContent=t.lastChild.textContent.trimEnd()),t.querySelectorAll("a").forEach((e=>{const t=yn(e,"span");for(const e of[...t.attributes])t.removeAttributeNode(e)}))}function Ul(e,t){for(const n of["dir","lang"]){if(t.hasAttribute(n))continue;const r=e.closest(`[${n}]`);if(!r)continue;const s=t.closest(`[${n}]`);s&&s.getAttribute(n)===r.getAttribute(n)||t.setAttribute(n,r.getAttribute(n))}}var ql=Object.freeze({__proto__:null,name:Dl,run:function(){const e=[...document.querySelectorAll("a[href^='#']:not(.self-link):not([href$='the-empty-string'])")].filter((e=>""===e.textContent.trim()));for(const t of e){const e=t.getAttribute("href").slice(1),n=document.getElementById(e);if(n){switch(n.localName){case"h6":case"h5":case"h4":case"h3":case"h2":zl(n,t);break;case"section":Ml(n,e,t);break;case"figure":Ol(n,e,t);break;case"table":jl(n,e,t);break;case"aside":case"div":Nl(n,e,t);break;default:t.textContent=t.getAttribute("href");Tn("ReSpec doesn't support expanding this kind of reference.",Dl,{title:`Can't expand "#${e}".`,elements:[t]})}Ul(n,t),t.normalize()}else{t.textContent=t.getAttribute("href");Tn(`Couldn't expand inline reference. The id "${e}" is not in the document.`,Dl,{title:`No matching id in document: ${e}.`,elements:[t]})}}}});var Wl=String.raw`dfn{cursor:pointer}
.dfn-panel{position:absolute;z-index:35;min-width:300px;max-width:500px;padding:.5em .75em;margin-top:.6em;font-family:"Helvetica Neue",sans-serif;font-size:small;background:#fff;color:#000;box-shadow:0 1em 3em -.4em rgba(0,0,0,.3),0 0 1px 1px rgba(0,0,0,.05);border-radius:2px}
.dfn-panel:not(.docked)>.caret{position:absolute;top:-9px}
.dfn-panel:not(.docked)>.caret::after,.dfn-panel:not(.docked)>.caret::before{content:"";position:absolute;border:10px solid transparent;border-top:0;border-bottom:10px solid #fff;top:0}
@@ -1224,7 +1217,7 @@ var[data-type]:hover::after,var[data-type]:hover::before{opacity:1}`;var Ll=Obje
* Either remove the definition or change \`\` to another type of HTML element.
* If you meant to ${"[export|#data-export]"} the definition, add \`class="export"\` to the definition.
- To silence this warning entirely, set \`lint: { "no-unused-dfns": false }\` in your \`respecConfig\`.`}}});function wu(e){return!document.querySelector(`a[href="#${e.id}"]:not(.index-term, .self-link)`)}var vu=Object.freeze({__proto__:null,name:bu,run:function(e){if(!e.lint?.[gu])return;const t="error"===e.lint[gu]?Tn:Ln;[...document.querySelectorAll("dfn:not(.lint-ignore, [data-export], [data-cite])")].filter(wu).forEach((e=>{const n=[e],r=an(e.textContent);t(yu.msg(r),bu,{elements:n,hint:yu.hint})}))}});const $u="core/linter-rules/no-headingless-sections",ku=cn({en:{msg:"All sections must start with a `h2-6` element.",hint:"Add a `h2-6` to the offending section or use a `
`."},nl:{msg:"Alle secties moeten beginnen met een `h2-6` element.",hint:"Voeg een `h2-6` toe aan de conflicterende sectie of gebruik een `
`。"}});var xu=Object.freeze({__proto__:null,name:$u,run:function(e){if(!e.lint?.["no-headingless-sections"])return;const t=[...document.querySelectorAll("section:not(.head,#abstract,#sotd)")].filter((({firstElementChild:e})=>!e||!(e.matches(".header-wrapper")||e instanceof HTMLHeadingElement)));t.length&&Ln(ku.msg,$u,{hint:ku.hint,elements:t})}});const _u="core/linter-rules/no-unused-vars",Cu=cn({en:{msg:"Variable was defined, but never used.",hint:"Add a `data-ignore-unused` attribute to the ``."}});var Su=Object.freeze({__proto__:null,name:_u,run:function(e){if(!e.lint?.["no-unused-vars"])return;const t=[],n=e=>!!e.querySelector(":scope > :not(section) ~ .algorithm, :scope > :not(section) .algorithm");for(const e of document.querySelectorAll("section")){if(!n(e))continue;const r=e.querySelectorAll(":scope > :not(section) var");if(!r.length)continue;const s=new Map;for(const e of r){const t=an(e.textContent);(s.get(t)||s.set(t,[]).get(t)).push(e)}for(const e of s.values())1!==e.length||e[0].hasAttribute("data-ignore-unused")||t.push(e[0])}t.length&&Ln(Cu.msg,_u,{hint:Cu.hint,elements:t})}});const Ru="required-sections",Eu="w3c/linter-rules/required-sections",Au={en:{msg:e=>`W3C Recommendation track documents require a separate "${e}" section.`,hint:e=>On`Add a \`\` with a "${e}" header. See the [Horizontal review guidelines](https://www.w3.org/Guide/documentreview/#how_to_get_horizontal_review).
+ To silence this warning entirely, set \`lint: { "no-unused-dfns": false }\` in your \`respecConfig\`.`}}});function wu(e){return!document.querySelector(`a[href="#${e.id}"]:not(.index-term, .self-link)`)}var vu=Object.freeze({__proto__:null,name:bu,run:function(e){if(!e.lint?.[gu])return;const t="error"===e.lint[gu]?Tn:Ln;[...document.querySelectorAll("dfn:not(.lint-ignore, [data-export], [data-cite])")].filter(wu).forEach((e=>{const n=[e],r=an(e.textContent);t(yu.msg(r),bu,{elements:n,hint:yu.hint})}))}});const $u="core/linter-rules/no-headingless-sections",ku=cn({en:{msg:"All sections must start with a `h2-6` element.",hint:"Add a `h2-6` to the offending section or use a `
`."},nl:{msg:"Alle secties moeten beginnen met een `h2-6` element.",hint:"Voeg een `h2-6` toe aan de conflicterende sectie of gebruik een `
`。"}});var xu=Object.freeze({__proto__:null,name:$u,run:function(e){if(!e.lint?.["no-headingless-sections"])return;const t=[...document.querySelectorAll("section:not(.head,#abstract,#sotd)")].filter((({firstElementChild:e})=>!e||!(e.matches(".header-wrapper")||e instanceof HTMLHeadingElement)));t.length&&Ln(ku.msg,$u,{hint:ku.hint,elements:t})}});const _u="core/linter-rules/no-unused-vars",Su=cn({en:{msg:"Variable was defined, but never used.",hint:"Add a `data-ignore-unused` attribute to the ``."}});var Cu=Object.freeze({__proto__:null,name:_u,run:function(e){if(!e.lint?.["no-unused-vars"])return;const t=[],n=e=>!!e.querySelector(":scope > :not(section) ~ .algorithm, :scope > :not(section) .algorithm");for(const e of document.querySelectorAll("section")){if(!n(e))continue;const r=e.querySelectorAll(":scope > :not(section) var");if(!r.length)continue;const s=new Map;for(const e of r){const t=an(e.textContent);(s.get(t)||s.set(t,[]).get(t)).push(e)}for(const e of s.values())1!==e.length||e[0].hasAttribute("data-ignore-unused")||t.push(e[0])}t.length&&Ln(Su.msg,_u,{hint:Su.hint,elements:t})}});const Ru="required-sections",Eu="w3c/linter-rules/required-sections",Au={en:{msg:e=>`W3C Recommendation track documents require a separate "${e}" section.`,hint:e=>On`Add a \`\` with a "${e}" header. See the [Horizontal review guidelines](https://www.w3.org/Guide/documentreview/#how_to_get_horizontal_review).
If the document is not intended for the W3C Recommendation track, set ${"[noRecTrack]"} to \`true\`
or turn off the ${`[${Ru}]`} linter rule.`,privacy_considerations:"Privacy Considerations",security_considerations:"Security Considerations"},es:{msg:e=>`Documentos que van a ser "W3C Recommendation" requieren una sección "${e}" separada.`,hint:e=>On`Agrega una \`\` con título "${e}". Ver los [Horizontal review guidelines](https://www.w3.org/Guide/documentreview/#how_to_get_horizontal_review).
Si el documento no está destinado a ser un W3C Recommendation, puedes poner ${"[noRecTrack]"} a \`true\`