From dae606f55f80a3f68da3ffa2b94b0919d0d1ca0e Mon Sep 17 00:00:00 2001 From: humitos Date: Sun, 22 Jun 2025 00:39:55 +0000 Subject: [PATCH] Packages: updated via `ncu -u` --- dist/readthedocs-addons.js | 4 ++-- dist/readthedocs-addons.js.map | 2 +- package-lock.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/readthedocs-addons.js b/dist/readthedocs-addons.js index 60c0f322..f1b3516a 100644 --- a/dist/readthedocs-addons.js +++ b/dist/readthedocs-addons.js @@ -16,7 +16,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ -const C=globalThis,E=C.trustedTypes,L=E?E.createPolicy("lit-html",{createHTML:e=>e}):void 0,j="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,N="?"+x,S=`<${N}>`,k=document,T=()=>k.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,_=Array.isArray,I=e=>_(e)||"function"==typeof e?.[Symbol.iterator],O="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,$=/>/g,P=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,U=/"/g,Y=/^(?:script|style|textarea|title)$/i,Q=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),q=Q(1),F=(Q(2),Q(3),Symbol.for("lit-noChange")),V=Symbol.for("lit-nothing"),W=new WeakMap,G=k.createTreeWalker(k,129);function H(e,t){if(!_(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(t):t}const Z=(e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":3===t?"":"",a=z;for(let t=0;t"===c[0]?(a=o??z,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?P:'"'===c[3]?U:R):a===U||a===R?a=P:a===B||a===$?a=z:(a=P,o=void 0);const d=a===P&&e[t+1].startsWith("/>")?" ":"";i+=a===z?n+S:l>=0?(r.push(s),n.slice(0,l)+j+n.slice(l)+x+d):n+x+(-2===l?t:d)}return[H(e,i+(e[n]||"")+(2===t?"":3===t?"":"")),r]};class K{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[c,l]=Z(e,t);if(this.el=K.createElement(c,n),G.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=G.nextNode())&&s.length0){r.textContent=E?E.emptyScript:"";for(let n=0;n2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=V}_$AI(e,t=this,n,r){const o=this.strings;let i=!1;if(void 0===o)e=X(this,e,t,0),i=!D(e)||e!==this._$AH&&e!==F,i&&(this._$AH=e);else{const r=e;let a,s;for(e=o[0],a=0;a{const r=n?.renderBefore??t;let o=r._$litPart$;if(void 0===o){const e=n?.renderBefore??null;r._$litPart$=o=new ee(t.insertBefore(T(),e),e,void 0,n??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}}ce._$litElement$=!0,ce.finalized=!0,se.litElementHydrateSupport?.({LitElement:ce});const le=se.litElementPolyfillSupport;le?.({LitElement:ce});(se.litElementVersions??=[]).push("4.2.0");var ue=n(3282),de=new(n.n(ue)())({allErrors:!0,schemas:[{$id:"http://v1.schemas.readthedocs.org/addons.analytics.json",type:"object",required:["addons","projects","versions"],properties:{addons:{type:"object",required:["analytics"],properties:{analytics:{type:"object",required:["code","enabled"],properties:{code:{type:["string","null"]},enabled:{type:"boolean"}}}}},projects:{type:"object",required:["current"],properties:{current:{type:"object",required:["slug","language","programming_language"],properties:{slug:{type:"string"},language:{type:"object",required:["code"],properties:{code:{type:"string"}}},programming_language:{type:"object",required:["code"],properties:{code:{type:"string"}}}}}}},versions:{type:"object",required:["current"],properties:{current:{type:"object",required:["slug","type"],properties:{slug:{type:"string"},type:{type:"string"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.docdiff.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["options","doc_diff"],properties:{options:{type:"object",required:["root_selector"],properties:{root_selector:{type:["string","null"]}}},doc_diff:{type:"object",required:["base_url","enabled"],properties:{base_url:{type:"string"},enabled:{type:"boolean"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.ethicalads.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["ethicalads"],properties:{ethicalads:{type:"object",required:["ad_free","campaign_types","enabled","keywords","publisher"],properties:{ad_free:{type:"boolean"},campaign_types:{type:"array"},enabled:{type:"boolean"},keywords:{type:"array"},publisher:{type:"string"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.flyout.json",type:"object",required:["addons","projects","versions","readthedocs"],properties:{addons:{type:"object",required:["flyout"],properties:{flyout:{type:"object",required:["enabled"],properties:{enabled:{type:"boolean"},vcs:{type:"object",properties:{view_url:{type:"string"}}}}}}},projects:{type:"object",required:["current","translations"],properties:{current:{type:"object",required:["slug","urls","versioning_scheme"],properties:{slug:{type:"string"},urls:{type:"object",required:["home","builds"],properties:{home:{type:"string"},builds:{type:"string"}}},versioning_scheme:{enum:["multiple_versions_with_translations","multiple_versions_without_translations","single_version_without_translations"]}}},translations:{type:"array"}}},versions:{type:"object",required:["current","active"],properties:{active:{type:"array"},current:{type:"object",required:["slug","downloads"],properties:{slug:{type:"string"},downloads:{type:"object"}}}}},readthedocs:{type:"object",required:["resolver"],properties:{resolver:{type:"object",required:["filename"],properties:{filename:{type:["string","null"]}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.hotkeys.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["hotkeys"],properties:{hotkeys:{type:"object",required:["enabled","doc_diff","search"],properties:{enabled:{type:"boolean"},doc_diff:{type:"object",required:["enabled","trigger"],properties:{enabled:{type:"boolean"},trigger:{type:"string"}}},search:{type:"object",required:["enabled","trigger"],properties:{enabled:{type:"boolean"},trigger:{type:"string"}}}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.notifications.json",type:"object",required:["addons","readthedocs"],properties:{addons:{type:"object",required:["notifications"],properties:{enabled:{type:"object",properties:{enabled:{type:"boolean"}}}}},builds:{type:"object",required:["current"],properties:{current:{type:"object",required:["urls"],properties:{urls:{type:"object",required:["build"],properties:{build:{type:"string"}}}}}}},projects:{type:"object",properties:{current:{type:"object",properties:{slug:{type:"string"},versioning_scheme:{enum:["multiple_versions_with_translations","multiple_versions_without_translations","single_version_without_translations"]},repository:{type:"object",required:["url"],properties:{url:{type:"string"}}},language:{type:"object",required:["code"],properties:{code:{type:"string"}}}}}}},versions:{type:"object",required:["current","active"],properties:{active:{type:"array"},current:{type:"object",required:["slug","urls","type","aliases"],properties:{aliases:{type:"array"},slug:{type:"string"},type:{enum:["branch","tag","external"]},urls:{type:"object",required:["documentation","vcs"],properties:{documentation:{type:"string"},vcs:{type:"string"}}}}}}},readthedocs:{type:"object",required:["resolver"],properties:{resolver:{type:"object",required:["filename"],properties:{filename:{type:["string","null"]}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.search.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["search"],properties:{search:{type:"object",required:["enabled","default_filter","filters"],properties:{enabled:{type:"boolean"},default_filter:{type:"string"},filters:{type:"array"}}}}},projects:{type:"object",required:["current"],properties:{current:{type:"object",required:["slug"],properties:{slug:{type:"string"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.linkpreviews.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["options","linkpreviews"],properties:{options:{type:"object",required:["root_selector"],properties:{root_selector:{type:["string","null"]}}},linkpreviews:{type:"object",required:["enabled"],properties:{enabled:{type:"boolean"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.filetreediff.json",type:"object",required:["addons","versions"],properties:{addons:{type:"object",required:["filetreediff"],properties:{filetreediff:{type:"object",required:["enabled","diff"],properties:{enabled:{type:"boolean"},diff:{type:"object",properties:{added:{type:"array"},deleted:{type:"array"},modified:{type:"array"}}}}}}},versions:{type:"object",required:["current"],properties:{current:{type:"object",required:["type","slug","urls"],properties:{type:{type:"string"},slug:{type:"string"},urls:{type:"object",required:["vcs"],properties:{vcs:{type:"string"}}}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.customscript.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["customscript"],properties:{customscript:{type:"object",required:["enabled"],properties:{enabled:{type:"boolean"},src:{type:["string","null"]}}}}}}}]}),fe=n(1794),he=n.n(fe),pe="sphinx",me="mkdocs-material",ge="docusaurus",ye="pelican",Ae="asciidoctor",ve="jekyll",be="docsify",we="antora",Me="mdbook",Ce="vitepress",Ee="fallback",Le="/_/api/v3/embed/";function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function xe(e,t){for(var n=0;n' tag in the HTML.");this._initialized=!0}},{key:"data",value:function(e){return this._initialized||e||this.initialize(),this._data}},{key:"httpStatus",value:function(){var e=rt("readthedocs-http-status");return e}}])}();function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n link[href*=docsify]").length}},{key:"isSphinx",value:function(){return this.isSphinxAlabasterLikeTheme()||this.isSphinxReadTheDocsLikeTheme()||this.isSphinxFuroLikeTheme()||this.isSphinxBookThemeLikeTheme()||this.isSphinxImmaterialLikeTheme()}},{key:"isMaterialMkDocs",value:function(){return this.isMaterialMkDocsTheme()}},{key:"isDocusaurus",value:function(){return this.isDocusaurusTheme()}},{key:"isPelican",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content="Pelican"]').length}},{key:"isAsciiDoctor",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="Asciidoctor"]').length}},{key:"isJekyll",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="Jekyll"]').length}},{key:"isMkDocs",value:function(){var e;return!(null===(e=document)||void 0===e||null===(e=e.lastChild)||void 0===e||!e.textContent.includes("MkDocs version :"))}},{key:"isSphinxAlabasterLikeTheme",value:function(){return!!document.querySelectorAll(['link[href*="_static/alabaster.css"]','link[href*="_static/flask.css"]','link[href*="_static/jinja.css"]','link[href*="_static/click.css"]','link[href*="_static/celery.css"]','link[href*="_static/babel.css"]','link[href*="_static/platter.css"]','link[href*="_static/werkzeug.css"]'].join(", ")).length}},{key:"isSphinxReadTheDocsLikeTheme",value:function(){return 1===document.querySelectorAll('script[src*="_static/js/theme.js"]').length}},{key:"isSphinxFuroLikeTheme",value:function(){return 1===document.querySelectorAll('link[href*="_static/styles/furo.css"]').length}},{key:"isSphinxBookThemeLikeTheme",value:function(){return 1===document.querySelectorAll('link[href*="_static/styles/sphinx-book-theme.css"]').length}},{key:"isSphinxImmaterialLikeTheme",value:function(){return!!document.querySelectorAll('link[href*="_static/sphinx_immaterial_theme"]','a[href="https://github.com/jbms/sphinx-immaterial/"][rel="noopener"]').length}},{key:"isMaterialMkDocsTheme",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="mkdocs-material"]').length}},{key:"isDocusaurusTheme",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="Docusaurus"]').length}}])}();Ge(it,"DEFAULT_ROOT_SELECTOR",Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge({},pe,"[role=main]"),me,"main > div > div.md-content"),be,"article#main"),Ae,"div#content"),ye,"article"),ge,"article div.markdown"),we,"article"),ve,"article"),Ee,["article","main","div.body","div.document","body"])),Ge(it,"DEFAULT_LINK_SELECTOR",Ge(Ge({},pe,"a.internal"),Ee,["p a"])),Ge(it,"SINGLE_PAGE_APPLICATIONS",[Ce,Me,ge,be]);var at=new it;function st(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}function ct(e,t){var n=rt("readthedocs-project-slug"),r=rt("readthedocs-version-slug"),o={"client-version":Ke,"api-version":t};e&&(o.url=window.location.href),n&&r&&(o["project-slug"]=n,o["version-slug"]=r);var i="/_/addons/?"+new URLSearchParams(o);return Xe&&(i="/_/readthedocs-addons.json"),i}function lt(e){return new Promise((function(t,n){st(ct(e,Ze),{method:"GET"}).then((function(e){return e.ok?e.json():n("Error hitting addons API endpoint")})).then((function(n){return ut(Be,document,new Pe(n)),function(e){return new Promise((function(t,n){var r=rt("readthedocs-addons-api-version");return t(void 0!==r&&r!==Ze?st(ct(e,r),{method:"GET"}).then((function(e){return e.ok?e.json():n("Error hitting addons API endpoint for user api-version")})):void 0)})).catch((function(e){console.error(e)}))}(e).then((function(e){var t=void 0!==e?e:n;globalThis.ReadTheDocsEventData=new Pe(t),ut(ze,document,new Pe(t))})),t(n)}))})).catch((function(e){console.error(e)}))}function ut(e,t,n){var r=new CustomEvent(e,{detail:n});t.dispatchEvent(r)} +const C=globalThis,E=C.trustedTypes,L=E?E.createPolicy("lit-html",{createHTML:e=>e}):void 0,j="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,N="?"+x,S=`<${N}>`,k=document,T=()=>k.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,_=Array.isArray,I=e=>_(e)||"function"==typeof e?.[Symbol.iterator],O="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,$=/>/g,P=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,U=/"/g,Y=/^(?:script|style|textarea|title)$/i,Q=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),q=Q(1),F=(Q(2),Q(3),Symbol.for("lit-noChange")),V=Symbol.for("lit-nothing"),W=new WeakMap,G=k.createTreeWalker(k,129);function H(e,t){if(!_(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(t):t}const Z=(e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":3===t?"":"",a=z;for(let t=0;t"===c[0]?(a=o??z,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?P:'"'===c[3]?U:R):a===U||a===R?a=P:a===B||a===$?a=z:(a=P,o=void 0);const d=a===P&&e[t+1].startsWith("/>")?" ":"";i+=a===z?n+S:l>=0?(r.push(s),n.slice(0,l)+j+n.slice(l)+x+d):n+x+(-2===l?t:d)}return[H(e,i+(e[n]||"")+(2===t?"":3===t?"":"")),r]};class K{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[c,l]=Z(e,t);if(this.el=K.createElement(c,n),G.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=G.nextNode())&&s.length0){r.textContent=E?E.emptyScript:"";for(let n=0;n2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=V}_$AI(e,t=this,n,r){const o=this.strings;let i=!1;if(void 0===o)e=X(this,e,t,0),i=!D(e)||e!==this._$AH&&e!==F,i&&(this._$AH=e);else{const r=e;let a,s;for(e=o[0],a=0;a{const r=n?.renderBefore??t;let o=r._$litPart$;if(void 0===o){const e=n?.renderBefore??null;r._$litPart$=o=new ee(t.insertBefore(T(),e),e,void 0,n??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}}ce._$litElement$=!0,ce.finalized=!0,se.litElementHydrateSupport?.({LitElement:ce});const le=se.litElementPolyfillSupport;le?.({LitElement:ce});(se.litElementVersions??=[]).push("4.2.0");var ue=n(3282),de=new(n.n(ue)())({allErrors:!0,schemas:[{$id:"http://v1.schemas.readthedocs.org/addons.analytics.json",type:"object",required:["addons","projects","versions"],properties:{addons:{type:"object",required:["analytics"],properties:{analytics:{type:"object",required:["code","enabled"],properties:{code:{type:["string","null"]},enabled:{type:"boolean"}}}}},projects:{type:"object",required:["current"],properties:{current:{type:"object",required:["slug","language","programming_language"],properties:{slug:{type:"string"},language:{type:"object",required:["code"],properties:{code:{type:"string"}}},programming_language:{type:"object",required:["code"],properties:{code:{type:"string"}}}}}}},versions:{type:"object",required:["current"],properties:{current:{type:"object",required:["slug","type"],properties:{slug:{type:"string"},type:{type:"string"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.docdiff.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["options","doc_diff"],properties:{options:{type:"object",required:["root_selector"],properties:{root_selector:{type:["string","null"]}}},doc_diff:{type:"object",required:["base_url","enabled"],properties:{base_url:{type:"string"},enabled:{type:"boolean"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.ethicalads.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["ethicalads"],properties:{ethicalads:{type:"object",required:["ad_free","campaign_types","enabled","keywords","publisher"],properties:{ad_free:{type:"boolean"},campaign_types:{type:"array"},enabled:{type:"boolean"},keywords:{type:"array"},publisher:{type:"string"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.flyout.json",type:"object",required:["addons","projects","versions","readthedocs"],properties:{addons:{type:"object",required:["flyout"],properties:{flyout:{type:"object",required:["enabled"],properties:{enabled:{type:"boolean"},vcs:{type:"object",properties:{view_url:{type:"string"}}}}}}},projects:{type:"object",required:["current","translations"],properties:{current:{type:"object",required:["slug","urls","versioning_scheme"],properties:{slug:{type:"string"},urls:{type:"object",required:["home","builds"],properties:{home:{type:"string"},builds:{type:"string"}}},versioning_scheme:{enum:["multiple_versions_with_translations","multiple_versions_without_translations","single_version_without_translations"]}}},translations:{type:"array"}}},versions:{type:"object",required:["current","active"],properties:{active:{type:"array"},current:{type:"object",required:["slug","downloads"],properties:{slug:{type:"string"},downloads:{type:"object"}}}}},readthedocs:{type:"object",required:["resolver"],properties:{resolver:{type:"object",required:["filename"],properties:{filename:{type:["string","null"]}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.hotkeys.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["hotkeys"],properties:{hotkeys:{type:"object",required:["enabled","doc_diff","search"],properties:{enabled:{type:"boolean"},doc_diff:{type:"object",required:["enabled","trigger"],properties:{enabled:{type:"boolean"},trigger:{type:"string"}}},search:{type:"object",required:["enabled","trigger"],properties:{enabled:{type:"boolean"},trigger:{type:"string"}}}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.notifications.json",type:"object",required:["addons","readthedocs"],properties:{addons:{type:"object",required:["notifications"],properties:{enabled:{type:"object",properties:{enabled:{type:"boolean"}}}}},builds:{type:"object",required:["current"],properties:{current:{type:"object",required:["urls"],properties:{urls:{type:"object",required:["build"],properties:{build:{type:"string"}}}}}}},projects:{type:"object",properties:{current:{type:"object",properties:{slug:{type:"string"},versioning_scheme:{enum:["multiple_versions_with_translations","multiple_versions_without_translations","single_version_without_translations"]},repository:{type:"object",required:["url"],properties:{url:{type:"string"}}},language:{type:"object",required:["code"],properties:{code:{type:"string"}}}}}}},versions:{type:"object",required:["current","active"],properties:{active:{type:"array"},current:{type:"object",required:["slug","urls","type","aliases"],properties:{aliases:{type:"array"},slug:{type:"string"},type:{enum:["branch","tag","external"]},urls:{type:"object",required:["documentation","vcs"],properties:{documentation:{type:"string"},vcs:{type:"string"}}}}}}},readthedocs:{type:"object",required:["resolver"],properties:{resolver:{type:"object",required:["filename"],properties:{filename:{type:["string","null"]}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.search.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["search"],properties:{search:{type:"object",required:["enabled","default_filter","filters"],properties:{enabled:{type:"boolean"},default_filter:{type:"string"},filters:{type:"array"}}}}},projects:{type:"object",required:["current"],properties:{current:{type:"object",required:["slug"],properties:{slug:{type:"string"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.linkpreviews.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["options","linkpreviews"],properties:{options:{type:"object",required:["root_selector"],properties:{root_selector:{type:["string","null"]}}},linkpreviews:{type:"object",required:["enabled"],properties:{enabled:{type:"boolean"}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.filetreediff.json",type:"object",required:["addons","versions"],properties:{addons:{type:"object",required:["filetreediff"],properties:{filetreediff:{type:"object",required:["enabled","diff"],properties:{enabled:{type:"boolean"},diff:{type:"object",properties:{added:{type:"array"},deleted:{type:"array"},modified:{type:"array"}}}}}}},versions:{type:"object",required:["current"],properties:{current:{type:"object",required:["type","slug","urls"],properties:{type:{type:"string"},slug:{type:"string"},urls:{type:"object",required:["vcs"],properties:{vcs:{type:"string"}}}}}}}}},{$id:"http://v1.schemas.readthedocs.org/addons.customscript.json",type:"object",required:["addons"],properties:{addons:{type:"object",required:["customscript"],properties:{customscript:{type:"object",required:["enabled"],properties:{enabled:{type:"boolean"},src:{type:["string","null"]}}}}}}}]}),fe=n(1794),he=n.n(fe),pe="sphinx",me="mkdocs-material",ge="docusaurus",ye="pelican",Ae="asciidoctor",ve="jekyll",be="docsify",we="antora",Me="mdbook",Ce="vitepress",Ee="fallback",Le="/_/api/v3/embed/";function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function xe(e,t){for(var n=0;n' tag in the HTML.");this._initialized=!0}},{key:"data",value:function(e){return this._initialized||e||this.initialize(),this._data}},{key:"httpStatus",value:function(){var e=rt("readthedocs-http-status");return e}}])}();function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n link[href*=docsify]").length}},{key:"isSphinx",value:function(){return this.isSphinxAlabasterLikeTheme()||this.isSphinxReadTheDocsLikeTheme()||this.isSphinxFuroLikeTheme()||this.isSphinxBookThemeLikeTheme()||this.isSphinxImmaterialLikeTheme()}},{key:"isMaterialMkDocs",value:function(){return this.isMaterialMkDocsTheme()}},{key:"isDocusaurus",value:function(){return this.isDocusaurusTheme()}},{key:"isPelican",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content="Pelican"]').length}},{key:"isAsciiDoctor",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="Asciidoctor"]').length}},{key:"isJekyll",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="Jekyll"]').length}},{key:"isMkDocs",value:function(){var e;return!(null===(e=document)||void 0===e||null===(e=e.lastChild)||void 0===e||!e.textContent.includes("MkDocs version :"))}},{key:"isSphinxAlabasterLikeTheme",value:function(){return!!document.querySelectorAll(['link[href*="_static/alabaster.css"]','link[href*="_static/flask.css"]','link[href*="_static/jinja.css"]','link[href*="_static/click.css"]','link[href*="_static/celery.css"]','link[href*="_static/babel.css"]','link[href*="_static/platter.css"]','link[href*="_static/werkzeug.css"]'].join(", ")).length}},{key:"isSphinxReadTheDocsLikeTheme",value:function(){return 1===document.querySelectorAll('script[src*="_static/js/theme.js"]').length}},{key:"isSphinxFuroLikeTheme",value:function(){return 1===document.querySelectorAll('link[href*="_static/styles/furo.css"]').length}},{key:"isSphinxBookThemeLikeTheme",value:function(){return 1===document.querySelectorAll('link[href*="_static/styles/sphinx-book-theme.css"]').length}},{key:"isSphinxImmaterialLikeTheme",value:function(){return!!document.querySelectorAll('link[href*="_static/sphinx_immaterial_theme"]','a[href="https://github.com/jbms/sphinx-immaterial/"][rel="noopener"]').length}},{key:"isMaterialMkDocsTheme",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="mkdocs-material"]').length}},{key:"isDocusaurusTheme",value:function(){return 1===document.querySelectorAll('meta[name="generator"][content*="Docusaurus"]').length}}])}();Ge(it,"DEFAULT_ROOT_SELECTOR",Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge({},pe,"[role=main]"),me,"main > div > div.md-content"),be,"article#main"),Ae,"div#content"),ye,"article"),ge,"article div.markdown"),we,"article"),ve,"article"),Ee,["article","main","div.body","div.document","body"])),Ge(it,"DEFAULT_LINK_SELECTOR",Ge(Ge({},pe,"a.internal"),Ee,["p a"])),Ge(it,"SINGLE_PAGE_APPLICATIONS",[Ce,Me,ge,be]);var at=new it;function st(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}function ct(e,t){var n=rt("readthedocs-project-slug"),r=rt("readthedocs-version-slug"),o={"client-version":Ke,"api-version":t};e&&(o.url=window.location.href),n&&r&&(o["project-slug"]=n,o["version-slug"]=r);var i="/_/addons/?"+new URLSearchParams(o);return Xe&&(i="/_/readthedocs-addons.json"),i}function lt(e){return new Promise((function(t,n){st(ct(e,Ze),{method:"GET"}).then((function(e){return e.ok?e.json():n("Error hitting addons API endpoint")})).then((function(n){return ut(Be,document,new Pe(n)),function(e){return new Promise((function(t,n){var r=rt("readthedocs-addons-api-version");return t(void 0!==r&&r!==Ze?st(ct(e,r),{method:"GET"}).then((function(e){return e.ok?e.json():n("Error hitting addons API endpoint for user api-version")})):void 0)})).catch((function(e){console.error(e)}))}(e).then((function(e){var t=void 0!==e?e:n;globalThis.ReadTheDocsEventData=new Pe(t),ut(ze,document,new Pe(t))})),t(n)}))})).catch((function(e){console.error(e)}))}function ut(e,t,n){var r=new CustomEvent(e,{detail:n});t.dispatchEvent(r)} /*! * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) @@ -35,4 +35,4 @@ const bi=1,wi=2,Mi=e=>(...t)=>({_$litDirective$:e,values:t});class Ci{constructo * SPDX-License-Identifier: BSD-3-Clause */ class Ei extends Ci{constructor(e){if(super(e),this.it=V,e.type!==wi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===V||null==e)return this._t=void 0,this.it=e;if(e===F)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Ei.directiveName="unsafeHTML",Ei.resultType=1;const Li=Mi(Ei),ji=Mi(class extends Ci{constructor(e){if(super(e),e.type!==bi||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const n=e.element.classList;for(const e of this.st)e in t||(n.remove(e),this.st.delete(e));for(const e in t){const r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return F}});var xi,Ni,Si,ki,Ti,Di,_i,Ii,Oi,zi,Bi,$i,Pi;function Ri(e){return Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ri(e)}function Ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||qi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Qi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=qi(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function qi(e,t){if(e){if("string"==typeof e)return Fi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fi(e,t):void 0}}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n\n
\n
\n
\n
\n ','\n
\n ','\n
\n \n
\n \n '])),!this.show,this.triggerCloseModal,ji(this.cssFormFocusClasses),this.inputIcon.node[0],this.queryInput,this.selectResultKeyboard,this.queryInputFocus,this.queryInputFocus,this.renderFilters(),this.results||this.renderRecentSearches(),nt("https://about.readthedocs.com/","search"),"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJzdmciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSI2OTQgMTk3IDIwMDAgNDAwIj4KPGcgaWQ9ImxvZ28iIHRyYW5zZm9ybT0ibWF0cml4KDAuNTU3NTM2NDQsMCwwLDAuNTU3NTM2NDQsNjguMzA4MTM1LDEwNTAuMTI2MikiPgoJPHBhdGggc3R5bGU9ImZpbGw6IzMyMzIyQSIgZD0iTTE0MDguMS0xMTgxLjdjLTcuNSwxLTEyLjcsNy44LTExLjcsMTUuMyAgIGMwLjcsNS40LDQuNiw5LjksOS45LDExLjNjMCwwLDMzLjIsMTEsODkuNywxNS42YzQ1LjQsMy43LDk2LjktMy4yLDk2LjktMy4yYzcuNS0wLjIsM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CwzMC4xLDMuNiw0NC45LDEwLjh2MzIuNGwtMjQuMywxLjkgICB2LTExLjRDMjU5OS4xLDM4MS4yLDI1OTcsMzc4LjEsMjU5Mi45LDM3Ni41Ii8+CjwvZz4KPGRpdiB4bWxucz0iIiBpZD0ic2FrYS1ndWktcm9vdCI+PGRpdj48ZGl2PjxzdHlsZS8+PC9kaXY+PC9kaXY+PC9kaXY+PC9zdmc+")}},{key:"renderNoResultsFound",value:function(){var e=xo(ko,{title:"Not found"}),t=this.getUserQuery();this.results=q(Ni||(Ni=Yi(['\n
\n ','\n

No results for "','"

\n
\n

Try using the following special queries:

\n
    \n
  • \n Exact phrase: use double quotes to match a whole\n phrase: "adding a subproject".\n
  • \n
  • \n Prefix: use an asterisk at the end of any term to\n prefix a result: environ*.\n
  • \n
  • \n Fuzziness: add a tilde and a number to indicate\n the fuzziness of the word: getter~2.\n
  • \n
\n
\n\n \n
\n '])),e.node[0],t)}},{key:"renderFilters",value:function(){var e=this;return this.config.addons.search.filters.length?q(Si||(Si=Yi(['\n
\n Filters\n
    \n ',"\n
\n
\n "])),this.filters.map((function(t,n){return q(ki||(ki=Yi(["\n
  • \n \n \n
  • \n "])),e.filterClicked,n,t.value,n,t.name)}))):V}},{key:"renderResults",value:function(e){var t=this,n=xo($o,{title:"Result",classes:["header","icon"]});this.results=q(Ti||(Ti=Yi(['\n
    \n ',"\n
    \n "])),e.results.map((function(e,r){return q(Di||(Di=Yi(['
    \n \n ',"\n

    "," ","

    \n \n\n ","\n
    "])),t.followResultLink,e.path,n.node[0],e.title,t.renderExternalProject(e),e.blocks.map((function(n,o){return q(_i||(_i=Yi(["",""])),t.renderBlockResult(n,"".concat(n.id,"-").concat(r,"-").concat(o),e))})))})))}},{key:"followResultLink",value:function(e){var t=new CustomEvent(ke);document.dispatchEvent(t)}},{key:"renderBlockResult",value:function(e,t,n){var r=this,o=e.title;e.highlights.title.length&&(o=Li(e.highlights.title[0]));var i=e.content.substring(0,80)+" ...";return e.highlights.content.length&&(i=i.length>80?Li("... "+e.highlights.content[0].substring(0,80)+" ..."):Li(e.highlights.content[0])),q(Ii||(Ii=Yi(["\n \n
    \n

    ','

    \n

    ',"

    \n
    \n \n "])),this.mouseenterResultHit,(function(){return r.storeRecentSearch(e,n)}),n.path,e.id,t,o,i)}},{key:"renderRecentSearches",value:function(){var e=this,t=this.getRecentSearches();if(!t||!t.length)return q(Oi||(Oi=Yi(["

    No recent searches

    "])));if(this.hideRecentSearches)return V;t.reverse();var n=xo(Uo,{title:"Result",classes:["header","icon"]}),r=xo(Yo,{title:"Clear recent search",classes:["header","icon"]});return q(zi||(zi=Yi(['\n
    \n

    Recent:

    \n ',"\n
    \n "])),t.map((function(t){var o=t.block,i=t.result;return q(Bi||(Bi=Yi(['
    \n
    \n \n ',"\n

    "," ",'

    \n
    \n (from project ',") \n "])),e.project.slug):V}},{key:"closeModal",value:function(e){this.show=!1,document.activeElement.blur()}},{key:"showModal",value:function(e){this.show=!0}},{key:"updated",value:function(e){var t=this.shadowRoot.querySelector("input[type=search]");null!=t&&t.focus()}},{key:"queryInputFocus",value:function(e){"focusin"===e.type?this.cssFormFocusClasses={focus:!0}:"focusout"===e.type&&(this.cssFormFocusClasses={focus:!1})}},{key:"selectNextResult",value:function(e){var t,n,r=this.renderRoot.querySelectorAll("a.hit"),o=Qi(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Ui(n.value,2),a=i[0],s=i[1];if(s.classList.contains("active")){t=a;break}}}catch(e){o.e(e)}finally{o.f()}var c=r.length>0?r.length-1:0,l=0;void 0!==t&&(l=e?t+1:t-1),l>c?l=0:l<0&&(l=c);var u,d=Qi(this.renderRoot.querySelectorAll("a.hit.active"));try{for(d.s();!(u=d.n()).done;){u.value.classList.remove("active")}}catch(e){d.e(e)}finally{d.f()}var f=r[l];f.classList.add("active"),f.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}},{key:"selectResultKeyboard",value:function(e){if("ArrowDown"===e.key&&(e.preventDefault(),this.selectNextResult(!0)),"ArrowUp"===e.key&&(e.preventDefault(),this.selectNextResult(!1)),"Enter"===e.key){e.preventDefault();var t=this.renderRoot.querySelector("a.hit.active");null!==t&&t.click()}"Escape"===e.key&&(e.preventDefault(),this.triggerCloseModal())}},{key:"getUserQuery",value:function(){return this.renderRoot.querySelector("input[type=search]").value}},{key:"showSpinIcon",value:function(){"circle-notch"!==this.inputIcon.iconName&&(this.inputIcon=xo(So,{title:"Spinner",classes:["spinner","fa-spin"]}))}},{key:"showMagnifierIcon",value:function(){this.inputIcon=xo(Po,{title:"Search"})}},{key:"removeAllResults",value:function(){this.results=null}},{key:"fetchResults",value:function(e){var t=this;this.removeAllResults(),this.showSpinIcon();return et((function(){t.hideRecentSearches=!0;var n="/_/api/v3/search/?"+new URLSearchParams({q:e}).toString();window.location.href.startsWith("http://localhost")&&(n="/_/readthedocs-search.json"),st(n,{method:"GET",headers:{"X-RTD-Hosting-Integrations-Version":Ke}}).then((function(e){if(!e.ok)throw new Error;return e.json()})).then((function(e){e.results.length>0?t.renderResults(e):t.renderNoResultsFound(),t.showMagnifierIcon()})).catch((function(e){console.error(e),t.removeAllResults()}))}),250)}},{key:"getCurrentFilter",value:function(){var e,t=[],n=Qi(this.renderRoot.querySelectorAll(".filters input[type=checkbox]:checked"));try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.value)}}catch(e){n.e(e)}finally{n.f()}return t.join(" ")||this.defaultFilter.value}},{key:"queryInput",value:function(e){var t=this,n=this.getUserQuery();if(n.length>=3){null!==this.currentQueryRequest&&this.currentQueryRequest.cancel(),n=this.getCurrentFilter()+" "+n,this.currentQueryRequest=this.fetchResults(n),this.currentQueryRequest()}else{this.hideRecentSearches=!1,et((function(){t.removeAllResults()}),300)()}}},{key:"filterClicked",value:function(e){this.queryInput()}},{key:"mouseenterResultHit",value:function(e){var t,n=Qi(this.renderRoot.querySelectorAll("a.hit.active"));try{for(n.s();!(t=n.n()).done;){t.value.classList.remove("active")}}catch(e){n.e(e)}finally{n.f()}}},{key:"triggerCloseModal",value:function(){var e=new CustomEvent(ke);document.dispatchEvent(e)}},{key:"connectedCallback",value:function(){Ki(t,"connectedCallback",this,3)([]),document.addEventListener(Se,this._handleShowModal),document.addEventListener(ke,this._handleCloseModal)}},{key:"disconnectedCallback",value:function(){document.removeEventListener(Se,this._handleShowModal),document.removeEventListener(ke,this._handleCloseModal),Ki(t,"disconnectedCallback",this,3)([])}}])}(ce);na(oa,"elementName","readthedocs-search"),na(oa,"properties",{config:{state:!0},filters:{state:!0},show:{state:!0},inputIcon:{state:!0},results:{state:!0},hideRecentSearches:{state:!0},cssFormFocusClasses:{state:!0},triggerKeycode:{type:Number,attribute:"trigger-keycode"},triggerSelector:{type:String,attribute:"trigger-selector"},triggerEvent:{type:String,attribute:"trigger-event"}}),na(oa,"styles",vi.A);var ia=function(e){function t(){return Vi(this,t),Hi(this,t,arguments)}return ea(t,e),Gi(t)}(Je);na(ia,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.search.json"),na(ia,"addonEnabledPath","addons.search.enabled"),na(ia,"addonName","Search"),na(ia,"enabledOnHttpStatus",[200,404]),na(ia,"elementClass",oa),customElements.define(oa.elementName,oa);var aa=n(2374),sa=n(3329),ca=n(8968);function la(e){return la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},la(e)}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function da(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n\n '," ","\n "])),e.node[0],this.config.versions.current.slug));var r=xo(Oo,{classes:["icon"]}),o=V;return this.config.projects.translations.length>0&&(o=q(Sa||(Sa=Za(['\n ',"\n "," "])),t.node[0],this.config.projects.current.language.code)),q(ka||(ka=Za(['\n
    \n \n '," ",'\n ',"\n
    \n "])),this._toggleOpen,this.readthedocsLogo,o,n,r.node[0])}},{key:"renderFooter",value:function(){return q(Ta||(Ta=Za(['\n \n \n Addons documentation\n \n Hosted by\n Read the Docs\n \n '])),nt("https://docs.readthedocs.io/page/addons.html","flyout"),nt("https://about.readthedocs.com/","flyout"))}},{key:"showSearch",value:function(){var e=new CustomEvent(Ie);document.dispatchEvent(e);var t=new CustomEvent(Se);document.dispatchEvent(t)}},{key:"renderSearch",value:function(){return he().get(this.config,"addons.search.enabled",!1)?q(Da||(Da=Za(['\n
    \n
    Search
    \n
    \n
    \n \n \n
    \n
    \n '])),this.showSearch):V}},{key:"renderVCS",value:function(){if(!this.config.addons.flyout.vcs||!this.config.addons.flyout.vcs.view_url)return V;var e=this.config.addons.flyout.vcs;return q(_a||(_a=Za(["\n
    \n
    On ",'
    \n
    \n View\n
    \n
    \n '])),e.name,e.view_url)}},{key:"renderReadTheDocs",value:function(){return q(Ia||(Ia=Za(['\n
    \n
    On Read the Docs
    \n
    \n Project Home\n
    \n
    \n Builds\n
    \n
    \n '])),nt(this.config.projects.current.urls.home.replace("readthedocs.org","app.readthedocs.org").replace("readthedocs.com","app.readthedocs.com").replace("app.app.","app."),"flyout"),nt(this.config.projects.current.urls.builds.replace("readthedocs.org","app.readthedocs.org").replace("readthedocs.com","app.readthedocs.com").replace("app.app.","app."),"flyout"))}},{key:"renderDownloads",value:function(){if(!Object.keys(this.config.versions.current.downloads).length)return V;var e={pdf:"PDF",epub:"EPUB",htmlzip:"HTML"};return q(Oa||(Oa=Za(['\n
    \n
    Downloads
    \n ',"\n
    \n "])),Object.entries(this.config.versions.current.downloads).map((function(t){var n=Ga(t,2),r=n[0],o=n[1];return q(za||(za=Za(['
    \n ',"\n
    "])),o,e[r])})))}},{key:"renderVersions",value:function(){var e=this;if(!this.config.versions.active.length||"single_version_without_translations"===this.config.projects.current.versioning_scheme)return V;return q(Pa||(Pa=Za(['\n
    \n
    Versions
    \n ',"\n
    \n "])),this.config.versions.active.map((function(t){return q(Ra||(Ra=Za(["
    ","
    "])),function(t){var n=ot(t.urls.documentation,e.config.readthedocs.resolver.filename),r=q(Ba||(Ba=Za(['',""])),n,t.slug);return e.config.versions.current.slug==t.slug?q($a||($a=Za(["",""])),r):r}(t))})))}},{key:"renderLanguages",value:function(){var e=this;if(!this.config.projects.translations.length)return V;var t=this.config.projects.translations.concat(this.config.projects.current);return t=t.sort((function(e,t){return e.language.code.localeCompare(t.language.code)})),q(Qa||(Qa=Za(['\n
    \n
    Languages
    \n ',"\n
    \n "])),t.map((function(t){return q(qa||(qa=Za(["
    ","
    "])),function(t){var n=ot(t.urls.documentation,e.config.readthedocs.resolver.filename),r=q(Ua||(Ua=Za(['',""])),n,t.language.code);return e.config.projects.current.slug===t.slug?q(Ya||(Ya=Za(["",""])),r):r}(t))})))}},{key:"updateCSSClasses",value:function(){this.classes={floating:this.floating,container:!0},this.classes[this.position]=!0}},{key:"render",value:function(){return null===this.config?V:(this.updateCSSClasses(),q(Fa||(Fa=Za(["\n
    \n ","\n
    \n "," ","\n "," ","\n "," ","\n
    \n ","\n
    \n
    \n "])),ji(this.classes),this.renderHeader(),ji({closed:!this.opened}),this.renderLanguages(),this.renderVersions(),this.renderDownloads(),this.renderReadTheDocs(),this.renderVCS(),this.renderSearch(),this.renderFooter()))}},{key:"connectedCallback",value:function(){ns(t,"connectedCallback",this,3)([]),document.addEventListener(_e,this._showFlyout),document.addEventListener(Ie,this._hideFlyout),window.addEventListener("click",this._onOutsideClick)}},{key:"disconnectedCallback",value:function(){document.removeEventListener(_e,this.showFlyout),document.removeEventListener(Ie,this.hideFlyout),window.removeEventListener("click",this._onOutsideClick),ns(t,"disconnectedCallback",this,3)([])}}])}(ce);ss(ls,"elementName","readthedocs-flyout"),ss(ls,"properties",{config:{state:!0},opened:{type:Boolean},floating:{type:Boolean},position:{type:String}}),ss(ls,"styles",Va.A);var us=function(e){function t(){return Ka(this,t),es(this,t,arguments)}return is(t,e),Ja(t,null,[{key:"requiresUrlParam",value:function(){return at.isSinglePageApplication()}}])}(Je);ss(us,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.flyout.json"),ss(us,"addonEnabledPath","addons.flyout.enabled"),ss(us,"addonName","Flyout"),ss(us,"elementClass",ls),customElements.define(ls.elementName,ls);var ds=n(4333);function fs(e){return fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(e)}function hs(e,t){for(var n=0;n div.wy-side-scroll",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.setAttribute("data-ea-type","readthedocs-sidebar"),e.classList.add("ethical-rtd"),e.classList.add("ethical-dark-theme"),a=!0)):at.isSphinxFuroLikeTheme()?(o=".sidebar-tree",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("id","furo-sidebar-ad-placement"),a=!0)):at.isSphinxBookThemeLikeTheme()?(o=".sidebar-primary-items__start.sidebar-primary__section",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),a=!0)):at.isSphinxAlabasterLikeTheme()?(o="div.sphinxsidebar > div.sphinxsidebarwrapper",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),a=!0)):at.isMaterialMkDocsTheme()?(o=".md-sidebar--primary:not([hidden]) > .md-sidebar__scrollwrap, .md-sidebar--post > .md-sidebar__scrollwrap",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),a=!0)):at.isDocusaurusTheme()?(o=".menu.thin-scrollbar.menu_SIkG",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.classList.add("ethical-docusaurus"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),a=!0)):at.isDocsify()?(o="main > aside > div.sidebar-nav",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.classList.add("ethical-docsify"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),a=!0)):at.isAntora()?(o="aside nav.nav-menu",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),a=!0)):at.isMdBook()?(o="nav#sidebar mdbook-sidebar-scrollbox",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),a=!0)):at.isVitePress()&&(o="aside",i=document.querySelector(o),this.elementAboveTheFold(i)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),a=!0)),o&&a){var s=document.querySelector(o);s&&s.append(e)}else{e.setAttribute("data-ea-type","text");var c=at.getDocumentationTool(),l=c?"-".concat(c):"";e.setAttribute("id","readthedocs-ea-text-footer".concat(l));var u=at.getRootSelector(),d=document.querySelector(u);d?d.append(e):console.debug("Could not find root element to append ad")}}var f=this.config.addons.ethicalads,h=he().get(f,"keywords",[]),p=he().get(f,"campaign_types",[]);return null!==e&&(e.setAttribute("data-ea-manual","true"),e.setAttribute("data-ea-publisher",f.publisher),h.length&&e.setAttribute("data-ea-keywords",h.join("|")),p.length&&e.setAttribute("data-ea-campaign-types",p.join("|"))),e}},{key:"elementAboveTheFold",value:function(e){if(!e)return!1;var t=document.createElement("div");e.append(t);var n=t.offsetTop;return t.remove(),!(!n||n-window.scrollY+300>window.innerHeight)}},{key:"addEaPlacementToElement",value:function(e){he().get(this.config,"addons.flyout.enabled",!1)&&e.setAttribute("data-ea-placement-bottom","90px")}},{key:"loadEthicalAdLibrary",value:function(){var e,t=document.createElement("script");t.setAttribute("id",Ms),t.setAttribute("type","text/javascript"),t.setAttribute("async",!0),e="docs.readthedocs.io"===window.location.hostname||window.location.hostname.endsWith(".devthedocs.org")?"https://media.ethicalads.io/media/client/beta/ethicalads.min.js":"https://media.ethicalads.io/media/client/ethicalads.min.js",t.setAttribute("src",e),document.head.appendChild(t),document.getElementById(Ms).addEventListener("load",(function(){"undefined"!=typeof ethicalads&ðicalads.load()}))}},{key:"addWidthListener",value:function(){var e=document.querySelector("#readthedocs-ea");e&&"stickybox"===e.dataset.eaStyle&&window.addEventListener("resize",(function(){window.innerWidth<=1300?e.style.display="none":e.style.display=""}))}},{key:"injectEthicalAds",value:function(){this.createAdPlacement(),this.addWidthListener(),this.loadEthicalAdLibrary()}}],[{key:"isEnabled",value:function(e,n){return!1===he().get(e,"addons.ethicalads.ad_free",!1)&&function(e,t,n,r){var o=gs(ys(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"isEnabled",this,2)([e,n])}}])}(Je);vs(Cs,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.ethicalads.json"),vs(Cs,"addonEnabledPath","addons.ethicalads.enabled"),vs(Cs,"addonName","EthicalAds");const Es={alt:"Alt",cmd:"Cmd",ctrl:"Ctrl",shift:"Shift",joinWith:" + ",hideKey:"never"};let Ls=Es;function js(e){return{character:-1!==[16,17,18,91,93,224].indexOf(e.keyCode)?null:e.code.replace({alphanumeric:/^Key([A-Z01-9])$/,alpha:/^Key([A-Z])$/,always:/^Key(.*)$/,never:/^(.*)$/}[Ls.hideKey],"$1"),modifiers:{cmd:e.metaKey,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey}}}const xs=e=>function(e){const t=js(e),n=Object.entries(t.modifiers).reduce(((e,[t,n])=>(n&&e.push(Ls[t]),e)),[]);return t.character&&n.push(t.character),n}(e).join(Ls.joinWith);function Ns(e){return Ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(e)}function Ss(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ks(e,t){for(var n=0;ne.concat(t,t+"-"+qs[0],t+"-"+qs[1])),[]),Vs=Math.min,Ws=Math.max,Gs=Math.round,Hs=(Math.floor,e=>({x:e,y:e})),Zs={left:"right",right:"left",bottom:"top",top:"bottom"},Ks={start:"end",end:"start"};function Xs(e,t,n){return Ws(e,Vs(t,n))}function Js(e,t){return"function"==typeof e?e(t):e}function ec(e){return e.split("-")[0]}function tc(e){return e.split("-")[1]}function nc(e){return"x"===e?"y":"x"}function rc(e){return"y"===e?"height":"width"}function oc(e){return["top","bottom"].includes(ec(e))?"y":"x"}function ic(e){return nc(oc(e))}function ac(e){return e.replace(/start|end/g,(e=>Ks[e]))}function sc(e){return e.replace(/left|right|bottom|top/g,(e=>Zs[e]))}function cc(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function lc(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function uc(e,t,n){let{reference:r,floating:o}=e;const i=oc(t),a=ic(t),s=rc(a),c=ec(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(tc(t)){case"start":h[a]-=f*(n&&l?-1:1);break;case"end":h[a]+=f*(n&&l?-1:1)}return h}async function dc(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Js(t,e),p=cc(h),m=s[f?"floating"===d?"reference":"floating":d],g=lc(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(A))&&await(null==i.getScale?void 0:i.getScale(A))||{x:1,y:1},b=lc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:A,strategy:c}):y);return{top:(g.top-b.top+p.top)/v.y,bottom:(b.bottom-g.bottom+p.bottom)/v.y,left:(g.left-b.left+p.left)/v.x,right:(b.right-g.right+p.right)/v.x}}function fc(){return"undefined"!=typeof window}function hc(e){return gc(e)?(e.nodeName||"").toLowerCase():"#document"}function pc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mc(e){var t;return null==(t=(gc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function gc(e){return!!fc()&&(e instanceof Node||e instanceof pc(e).Node)}function yc(e){return!!fc()&&(e instanceof Element||e instanceof pc(e).Element)}function Ac(e){return!!fc()&&(e instanceof HTMLElement||e instanceof pc(e).HTMLElement)}function vc(e){return!(!fc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof pc(e).ShadowRoot)}function bc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=jc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wc(e){return["table","td","th"].includes(hc(e))}function Mc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Cc(e){const t=Ec(),n=yc(e)?jc(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Ec(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lc(e){return["html","body","#document"].includes(hc(e))}function jc(e){return pc(e).getComputedStyle(e)}function xc(e){return yc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nc(e){if("html"===hc(e))return e;const t=e.assignedSlot||e.parentNode||vc(e)&&e.host||mc(e);return vc(t)?t.host:t}function Sc(e){const t=Nc(e);return Lc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ac(t)&&bc(t)?t:Sc(t)}function kc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Sc(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=pc(o);if(i){const e=Tc(a);return t.concat(a,a.visualViewport||[],bc(o)?o:[],e&&n?kc(e):[])}return t.concat(o,kc(o,[],n))}function Tc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dc(e){const t=jc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ac(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Gs(n)!==i||Gs(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function _c(e){return yc(e)?e:e.contextElement}function Ic(e){const t=_c(e);if(!Ac(t))return Hs(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dc(t);let a=(i?Gs(n.width):n.width)/r,s=(i?Gs(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Oc=Hs(0);function zc(e){const t=pc(e);return Ec()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Oc}function Bc(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=_c(e);let a=Hs(1);t&&(r?yc(r)&&(a=Ic(r)):a=Ic(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==pc(e))&&t}(i,n,r)?zc(i):Hs(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=pc(i),t=r&&yc(r)?pc(r):r;let n=e,o=Tc(n);for(;o&&r&&t!==n;){const e=Ic(o),t=o.getBoundingClientRect(),r=jc(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=pc(o),o=Tc(n)}}return lc({width:u,height:d,x:c,y:l})}function $c(e,t){const n=xc(e).scrollLeft;return t?t.left+n:Bc(mc(e)).left+n}function Pc(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:$c(e,r)),y:r.top+t.scrollTop}}function Rc(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=pc(e),r=mc(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Ec();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=mc(e),n=xc(e),r=e.ownerDocument.body,o=Ws(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ws(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+$c(e);const s=-n.scrollTop;return"rtl"===jc(r).direction&&(a+=Ws(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(mc(e));else if(yc(t))r=function(e,t){const n=Bc(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ac(e)?Ic(e):Hs(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=zc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return lc(r)}function Uc(e,t){const n=Nc(e);return!(n===t||!yc(n)||Lc(n))&&("fixed"===jc(n).position||Uc(n,t))}function Yc(e,t,n){const r=Ac(t),o=mc(t),i="fixed"===n,a=Bc(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Hs(0);function l(){c.x=$c(o)}if(r||!r&&!i)if(("body"!==hc(t)||bc(o))&&(s=xc(t)),r){const e=Bc(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?Hs(0):Pc(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function Qc(e){return"static"===jc(e).position}function qc(e,t){if(!Ac(e)||"fixed"===jc(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mc(e)===n&&(n=n.ownerDocument.body),n}function Fc(e,t){const n=pc(e);if(Mc(e))return n;if(!Ac(e)){let t=Nc(e);for(;t&&!Lc(t);){if(yc(t)&&!Qc(t))return t;t=Nc(t)}return n}let r=qc(e,t);for(;r&&wc(r)&&Qc(r);)r=qc(r,t);return r&&Lc(r)&&Qc(r)&&!Cc(r)?n:r||function(e){let t=Nc(e);for(;Ac(t)&&!Lc(t);){if(Cc(t))return t;if(Mc(t))return null;t=Nc(t)}return null}(e)||n}const Vc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=mc(r),s=!!t&&Mc(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Hs(1);const u=Hs(0),d=Ac(r);if((d||!d&&!i)&&(("body"!==hc(r)||bc(a))&&(c=xc(r)),Ac(r))){const e=Bc(r);l=Ic(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?Hs(0):Pc(a,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:mc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Mc(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=kc(e,[],!1).filter((e=>yc(e)&&"body"!==hc(e))),o=null;const i="fixed"===jc(e).position;let a=i?Nc(e):e;for(;yc(a)&&!Lc(a);){const t=jc(a),n=Cc(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||bc(a)&&!n&&Uc(e,a))?r=r.filter((e=>e!==a)):o=t,a=Nc(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Rc(t,n,o);return e.top=Ws(r.top,e.top),e.right=Vs(r.right,e.right),e.bottom=Vs(r.bottom,e.bottom),e.left=Ws(r.left,e.left),e}),Rc(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Fc,getElementRects:async function(e){const t=this.getOffsetParent||Fc,n=this.getDimensions,r=await n(e.floating);return{reference:Yc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Dc(e);return{width:t,height:n}},getScale:Ic,isElement:yc,isRTL:function(e){return"rtl"===jc(e).direction}};const Wc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=ec(n),s=tc(n),c="y"===oc(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=Js(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Gc=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:a,placement:s,platform:c,elements:l}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:f=Fs,autoAlignment:h=!0,...p}=Js(e,t),m=void 0!==d||f===Fs?function(e,t,n){return(e?[...n.filter((t=>tc(t)===e)),...n.filter((t=>tc(t)!==e))]:n.filter((e=>ec(e)===e))).filter((n=>!e||tc(n)===e||!!t&&ac(n)!==n))}(d||null,h,f):f,g=await dc(t,p),y=(null==(n=a.autoPlacement)?void 0:n.index)||0,A=m[y];if(null==A)return{};const v=function(e,t,n){void 0===n&&(n=!1);const r=tc(e),o=ic(e),i=rc(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=sc(a)),[a,sc(a)]}(A,i,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==A)return{reset:{placement:m[0]}};const b=[g[ec(A)],g[v[0]],g[v[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:A,overflows:b}],M=m[y+1];if(M)return{data:{index:y+1,overflows:w},reset:{placement:M}};const C=w.map((e=>{const t=tc(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),E=C.filter((e=>e[2].slice(0,tc(e[0])?2:3).every((e=>e<=0)))),L=(null==(o=E[0])?void 0:o[0])||C[0][0];return L!==s?{data:{index:y+1,overflows:w},reset:{placement:L}}:{}}}},Hc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Js(e,t),l={x:n,y:r},u=await dc(t,c),d=oc(ec(o)),f=nc(d);let h=l[f],p=l[d];if(i){const e="y"===f?"bottom":"right";h=Xs(h+u["y"===f?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";p=Xs(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},Zc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Js(e,t)||{};if(null==l)return{};const d=cc(u),f={x:n,y:r},h=ic(o),p=rc(h),m=await a.getDimensions(l),g="y"===h,y=g?"top":"left",A=g?"bottom":"right",v=g?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[h]-f[h]-i.floating[p],w=f[h]-i.reference[h],M=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let C=M?M[v]:0;C&&await(null==a.isElement?void 0:a.isElement(M))||(C=s.floating[v]||i.floating[p]);const E=b/2-w/2,L=C/2-m[p]/2-1,j=Vs(d[y],L),x=Vs(d[A],L),N=j,S=C-m[p]-x,k=C/2-m[p]/2+E,T=Xs(N,k,S),D=!c.arrow&&null!=tc(o)&&k!==T&&i.reference[p]/2-(k{const r=new Map,o={platform:Vc,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=uc(l,r,c),f=r,h={},p=0;for(let n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n
    '),t.insertAdjacentHTML("afterbegin",'
    Loading...
    '),t.setAttribute(hl,i.href),t.classList.add("tooltip"),document.body.insertAdjacentElement("beforeend",t),t.addEventListener("mouseenter",c),t.addEventListener("mouseleave",u),o=t,t}}var gl=function(e){function t(){var e;return tl(this,t),dl(e=ol(this,t),"_handleRootDOMChanged",(function(t){e.config&&e.setupTooltips()})),document.adoptedStyleSheets.push(Qs.A),e.config=null,e}return ll(t,e),rl(t,[{key:"setupTooltips",value:function(){var e=at.getDocumentationTool(),t=this.config.addons.options.root_selector||at.getRootSelector(),n=at.getLinkSelector();console.debug("".concat(yl.addonName,": Using '").concat(n,"' as CSS selector."));var r,o=Jc(document.querySelectorAll(n));try{for(o.s();!(r=o.n()).done;){var i=r.value;try{var a=new URL(i.href),s=a.hostname,c=window.location.pathname.replace("/index.html","")==a.pathname.replace("/index.html","");s!==window.location.hostname||c||(i.classList.add("link-preview"),ml(i,e,null,t))}catch(e){console.debug("Skipping link preview on element due to invalid URL: ".concat(i))}}}catch(e){o.e(e)}finally{o.f()}}},{key:"render",value:function(){return V}},{key:"loadConfig",value:function(e){yl.isEnabled(e)&&(this.config=e,this.setupTooltips())}},{key:"connectedCallback",value:function(){al(t,"connectedCallback",this,3)([]),document.addEventListener($e,this._handleRootDOMChanged)}},{key:"disconnectedCallback",value:function(){document.removeEventListener($e,this._handleRootDOMChanged),al(t,"disconnectedCallback",this,3)([])}}])}(ce);dl(gl,"elementName","readthedocs-linkpreviews"),dl(gl,"properties",{config:{state:!0}});var yl=function(e){function t(){return tl(this,t),ol(this,t,arguments)}return ll(t,e),rl(t)}(Je);dl(yl,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.linkpreviews.json"),dl(yl,"addonEnabledPath","addons.linkpreviews.enabled"),dl(yl,"addonName","LinkPreviews"),dl(yl,"elementClass",gl),customElements.define(gl.elementName,gl);var Al,vl,bl,wl,Ml,Cl=n(9358);function El(e){return El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},El(e)}function Ll(e){return function(e){if(Array.isArray(e))return Nl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=xl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function xl(e,t){if(e){if("string"==typeof e)return Nl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nl(e,t):void 0}}function Nl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n'," of\n ","\n "," \n "," \n "])),this.chunks.length?this.chunkIndex:0,this.chunks.length||0,this.previousChunk,this.iconArrowUp.node[0],this.nextChunk,this.iconArrowDown.node[0]):V}},{key:"renderDocDiff",value:function(){return he().get(this.config,"addons.doc_diff.enabled",!1)?q(vl||(vl=Sl(['\n