From faac1f2bfed4b73e1b125d003fc3d25e7200b879 Mon Sep 17 00:00:00 2001 From: Yaroslav Tarkan Date: Mon, 25 Nov 2024 19:34:32 +0300 Subject: [PATCH] [DOCS] Selector Tool 2024.5 with npm fix (#27731) ### Details: - *item1* - *...* ### Tickets: - *ticket-id* --- docs/articles_en/get-started/install-openvino.rst | 2 +- .../assets/{selector-Bu10eOtw.js => selector-ww24l5P1.js} | 2 +- .../{selector-451bede.html => selector-2a63478.html} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename docs/sphinx_setup/_static/selector-tool/assets/{selector-Bu10eOtw.js => selector-ww24l5P1.js} (84%) rename docs/sphinx_setup/_static/selector-tool/{selector-451bede.html => selector-2a63478.html} (78%) diff --git a/docs/articles_en/get-started/install-openvino.rst b/docs/articles_en/get-started/install-openvino.rst index be00804faa01d2..48ea0a434c5388 100644 --- a/docs/articles_en/get-started/install-openvino.rst +++ b/docs/articles_en/get-started/install-openvino.rst @@ -21,7 +21,7 @@ Install OpenVINO™ 2024.5 - + OpenVINO 2024.5, described here, is not a Long-Term-Support version! All currently supported versions are: diff --git a/docs/sphinx_setup/_static/selector-tool/assets/selector-Bu10eOtw.js b/docs/sphinx_setup/_static/selector-tool/assets/selector-ww24l5P1.js similarity index 84% rename from docs/sphinx_setup/_static/selector-tool/assets/selector-Bu10eOtw.js rename to docs/sphinx_setup/_static/selector-tool/assets/selector-ww24l5P1.js index 1201e390e5c7c6..24bb42f7f391d6 100644 --- a/docs/sphinx_setup/_static/selector-tool/assets/selector-Bu10eOtw.js +++ b/docs/sphinx_setup/_static/selector-tool/assets/selector-ww24l5P1.js @@ -58,4 +58,4 @@ enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB -EOF`,getMoveRepoFileCommand:e=>`sudo mv /tmp/openvino-${e.metadata.yumYear}.repo ${oc}`,verifyRepoCommand:"yum repolist | grep -i openvino",getInstallCommand:e=>`sudo yum install openvino-${e.metadata.yumVersion}`};class jv extends De{constructor(t){super({level:j.DISTRIBUTION,key:A.ZYPPER,metadata:{title:"ZYPPER",subtitle:Z("distributions.CAPIOnly")}}),this._data=t}get data(){return{...this._data,commands:Iv}}}const Iv={addRepo:"sudo zypper addrepo https://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/science.repo",refresh:"sudo zypper refresh",getInstallCommand:({metadata:e})=>`sudo zypper install openvino-devel-${e.zypperVersion} openvino-sample-${e.zypperVersion}`};class Uf extends Ie{constructor(t,n,r){super({level:j.PACKAGE,key:t,metadata:n,childrenSelector:Ff},r),this._setDefaultPackage()}_setDefaultPackage(){const t=Ne.OPENVINO_BASE;this.key===t&&this.default()}}class Rv extends Uf{constructor(t){super(Ne.OPENVINO_BASE,{title:Z("package.base.title"),subtitle:Z("package.base.subtitle")},t)}}class Tv extends Uf{constructor(t){super(Ne.OPENVINO_GENAI,{title:Z("package.genai.title"),subtitle:Z("package.genai.subtitle")},t)}}class jo extends Ie{constructor(t,n,r){super({level:j.VERSION,key:t,metadata:n},r)}}const Lv={title:Z("versions.titles.nightlyBuild"),pipVersion:"",githubVersion:"master",giteeVersion:"master",genaiGitVersion:"master",systemRequirementsLink:"https://docs.openvino.ai/nightly/about-openvino/release-notes-openvino/system-requirements.html",getStartedLink:"https://docs.openvino.ai/nightly/get-started.html",troubleshootingLink:"https://docs.openvino.ai/nightly/get-started/troubleshooting-install-config.html"};class zf extends jo{constructor(t){super(Ut.NIGHTLY,Lv,t)}}const Av={title:"2024.5",subtitle:Z("versions.titles.recommended"),pipVersion:"2024.5.0",githubVersion:"2024.5.0",giteeVersion:"2024.5.0",genaiGitVersion:"releases/2024/5",aptYear:2024,aptVersion:"2024.5.0",yumYear:2024,yumVersion:"2024.5.0",condaVersion:"2024.5.0",conanVersion:"2024.5.0",npmVersion:"2024.5.0",zypperVersion:"2024.5.0",systemRequirementsLink:"https://docs.openvino.ai/2024/about-openvino/system-requirements.html",getStartedLink:"https://docs.openvino.ai/2024/get-started.html",troubleshootingLink:"https://docs.openvino.ai/2024/get-started/troubleshooting-install-config.html"};class Vf extends jo{constructor(t){super(Ut.v_2024_5_0,Av,t)}}const Fv={title:`2023.3 ${Z("versions.titles.LTS")}`,pipVersion:"2023.3.0",githubVersion:"2023.3.0",giteeVersion:"2023.3.0",aptYear:2023,aptVersion:"2023.3.0",yumYear:2023,yumVersion:"2023.3.0",condaVersion:"2023.3.0",conanVersion:"2023.3.0",systemRequirementsLink:"https://docs.openvino.ai/2023.3/system_requirements.html",getStartedLink:"https://docs.openvino.ai/2023.3/get_started.html",troubleshootingLink:"https://docs.openvino.ai/2023.3/openvino_docs_get_started_guide_troubleshooting.html"};class Dv extends jo{constructor(t){super(Ut.v_2023_3_0,Fv,t)}}const Uv={title:`2022.3.2 ${Z("versions.titles.LTS")}`,subtitle:Z("versions.titles.hddlSupport"),pipVersion:"2022.3.2",githubVersion:"2022.3.2",giteeVersion:"2022.3.2",aptYear:2022,aptVersion:"2022.3.2",yumYear:2022,yumVersion:"2022.3.2",systemRequirementsLink:"https://docs.openvino.ai/systemrequirements",getStartedLink:"https://docs.openvino.ai/2022.3/get_started.html",troubleshootingLink:"https://docs.openvino.ai/2022.3/openvino_docs_get_started_guide_troubleshooting_steps.html"};class bf extends jo{constructor(t){super(Ut.v_2022_3_2,Uv,t)}}class ha extends Ie{constructor(t,n,r){super({level:j.OP_SYSTEM,key:t,metadata:n,childrenSelector:Ff},r),this._setDefaultOS()}_setDefaultOS(){const t=this._detectOS()||Je.WINDOWS;this.key===t&&this.default()}_detectOS(){const{userAgent:t}=navigator,n={windows:/(Windows|Win)/g,macOS:/(Macintosh|Mac)/g,linux:/(Linux|X11)/g};return n.windows.test(t)?Je.WINDOWS:n.macOS.test(t)?Je.MACOS:n.linux.test(t)?Je.LINUX:null}}class On extends ha{constructor(t){super(Je.WINDOWS,tv,t)}}class _n extends ha{constructor(t){super(Je.MACOS,nv,t)}}class Nn extends ha{constructor(t){super(Je.LINUX,rv,t)}}const zv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-archive-linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/latest"}),new ie,new re]),Vv=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-archive-macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/latest"}),new ie,new re]),bv=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-archive-windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/latest"}),new ie,new re]),Mv=new zf([bv,Vv,zv]);class $v extends Ie{constructor(t){super({level:j.ENVIRONMENT,key:ri.RUNTIME,metadata:{title:Z("environment.runtime.title"),subtitle:Z("environment.runtime.subtitle")}},t)}}class Bv extends Ie{constructor(t){super({level:j.ENVIRONMENT,key:ri.DEV_TOOLS,metadata:{title:Z("environment.devTools.title"),subtitle:Z("environment.devTools.subtitle")}},t)}}const Kv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_install_dev_tools.html"},frameworks:[]},{hasFrameworks:!0}).default(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"},downloadLink:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"})]),Hv=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_install_dev_tools.html"},frameworks:[]},{hasFrameworks:!0}).addFootnote(j.OP_SYSTEM).default(),new ie().addFootnote(j.OP_SYSTEM),new re().addFootnote(j.OP_SYSTEM)]),Wv=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_install_dev_tools.html"},frameworks:[]},{hasFrameworks:!0}).default(),new ie,new re]),Gv=new Bv([Wv,Hv,Kv]),Yv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_from_archive_linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3.2/linux"}),new ca({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_apt.html"},os:[te.UBUNTU_18,te.UBUNTU_20]}),new pa({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_yum.html"}}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"},downloadLink:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"})]),Qv=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).addFootnote(j.OP_SYSTEM).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_from_archive_macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3.2/macos"}).addFootnote(j.OP_SYSTEM),new ie().addFootnote(j.OP_SYSTEM),new re().addFootnote(j.OP_SYSTEM)]),Xv=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_from_archive_windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3.2/windows"}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_windows.html"},downloadLink:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_windows.html"})]),Jv=new $v([Xv,Qv,Yv]),Zv=new bf([Gv.default(),Jv]),qv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_from_archive_linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/linux"}).includesNPUPlugin(),new ca({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_apt.html"},os:[te.UBUNTU_18,te.UBUNTU_20,te.UBUNTU_22]}),new pa({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_yum.html"}}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"},downloadLink:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conda.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conan.html"}})]),ey=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_from_archive_macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/macos"}),new ie,new re,new ur({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conda.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conan.html"}})]),ty=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_from_archive_windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/windows"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"},downloadLink:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conda.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conan.html"}})]),ny=new Dv([ty,ey,qv]),ry=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.5/linux"}).includesNPUPlugin(),new ca({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-apt.html"},os:[te.UBUNTU_20,te.UBUNTU_22,te.UBUNTU_24]}),new pa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-yum.html"}}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conda.html"}}),new Af({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-brew.html"}}),new fa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-vcpkg.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conan.html"}}),new da({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-npm.html"}}),new jv({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-zypper.html"}}),new Pv({linksSet:{installation:"https://docs.openvino.ai/2024/openvino-workflow/deployment-locally/integrate-openvino-with-ubuntu-snap.html"},downloadLink:"https://docs.openvino.ai/2024/openvino-workflow/deployment-locally/integrate-openvino-with-ubuntu-snap.html"})]),iy=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.5/macos"}),new ie,new re,new ur({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conda.html"}}),new Af({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-brew.html"}}),new fa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-vcpkg.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conan.html"}}),new da({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-npm.html"}})]),oy=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.5/windows"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conda.html"}}),new fa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-vcpkg.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conan.html"}}),new da({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-npm.html"}})]),sy=new Vf([oy,iy,ry]),ly=new Rv([sy.default(),Mv,ny,Zv]),ay=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#pypi-installation"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#archive-installation"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/nightly/latest"}),new ie,new re]),uy=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#pypi-installation"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#archive-installation"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/nightly/latest"}),new ie,new re]),cy=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#pypi-installation"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#archive-installation"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/nightly/latest"}),new ie,new re]),dy=new zf([cy,uy,ay]),fy=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/2024.5/linux"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"})]),py=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/2024.5/macos"}),new ie,new re]),hy=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/2024.5/windows"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"})]),my=new Vf([hy,py,fy]),gy=new Tv([my.default(),dy]),vy=new Ie({level:j.ROOT,key:Lf.ROOT,metadata:{title:"ROOT"}},[ly.default(),gy]).default();function yy(e,t){var i,o;if(t.key===A.DOCKER||!t.footnoteLevel)return e;const n=(i=e[t.footnoteLevel])==null?void 0:i.selected,r=(o=e[t.footnoteLevel])==null?void 0:o.nodes;return!n||!r||((Array.isArray(n)?[...n,...r]:[n]).forEach(s=>s.hasFootnote=!0),r.forEach(s=>s.checked&&(s.hasFootnote=!0))),e}class wy{constructor(){Ve(this,"_root",vy)}getState(){try{return this._getState()}catch(t){return console.error(t),this._selectDefaults(this._root),this._getState()}}_getState(){const t=this._root.children,n=this._get_selected(t),r=n.children,i=this._get_selected(r),{environments:o,environment:s,systems:l,system:a}=this._processVersion(i),u=a.children,p=this._get_selected(u),d=this._processDistribution(p),h={[j.PACKAGE]:{nodes:t.map(v=>v.toOption()),selected:n.toOption()},[j.VERSION]:{nodes:r.map(v=>v.toOption()),selected:i.toOption()},[j.ENVIRONMENT]:s&&o?{nodes:o.map(v=>v.toOption()),selected:s.toOption()}:null,[j.OP_SYSTEM]:{nodes:l.map(v=>v.toOption()),selected:a.toOption()},[j.DISTRIBUTION]:{nodes:u.map(v=>v.toOption()),selected:p.toOption()},[j.FRAMEWORK]:d!=null&&d.length?{nodes:d.map(v=>v.toOption()),selected:d.filter(({checked:v})=>v).map(v=>v.toOption())}:null};return yy(h,p)}_get_selected(t){t.some(({checked:r})=>r)||this._selectDefaultsForLevel(t[0].level);const n=t.find(({checked:r})=>r);if(!n)throw new Error("Not valid tree");return n}_processVersion(t){if(t instanceof bf){const i=t.children,o=this._get_selected(i),s=o.children,l=this._get_selected(s);return{environments:i,environment:o,systems:s,system:l}}const n=t.children,r=this._get_selected(n);return{environments:null,environment:null,systems:n,system:r}}_processDistribution(t){return t instanceof ee?t.children:null}setState(t){this._setState(t)}_setState(t,n=this._root){if(!n.children.length)return;const r=n.children[0].level,i=ky(t[r]);n.children.forEach(o=>o.checked=i.includes(o.key)),n.children.forEach(o=>this._setState(t,o))}select(t,n){return this._select(t,n),this.getState()}_select(t,n,r=this._root){var i;if(((i=r.children[0])==null?void 0:i.level)!==t){r.children.forEach(o=>this._select(t,n,o));return}if(r.childrenSelector){r.childrenSelector(r.children,n);return}r.children.forEach(o=>o.checked=o.key===n)}_selectDefaultsForLevel(t,n=this._root){if(n.children.length){if(n.children[0].level!==t){n.children.forEach(r=>this._selectDefaultsForLevel(t,r));return}this._selectDefaults(n)}}_selectDefaults(t){t.children.forEach(n=>{n.checked=n.isDefault,this._selectDefaults(n)})}}const Tn=new wy;function ky(e){const t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),t}function Mf(e,{serializeVersion:t}={serializeVersion:!0}){var i,o;const n=[[j.PACKAGE,e.PACKAGE.selected.key],[j.VERSION,t?e.VERSION.selected.key:null],[j.ENVIRONMENT,(i=e.ENVIRONMENT)==null?void 0:i.selected.key],[j.OP_SYSTEM,e.OP_SYSTEM.selected.key],[j.DISTRIBUTION,e.DISTRIBUTION.selected.key],[j.FRAMEWORK,(o=e.FRAMEWORK)==null?void 0:o.selected.map(s=>s.key).join(",")]],r=new URLSearchParams;for(const[s,l]of n)l&&r.set(s,l);return r}function $f(e){function t(r,i){const o=e.get(r);if(!o)throw new Error(`Cannot extract value for: ${r}`);if(!i[o])throw new Error(`Bad node key for: ${r}`);return i[o]}function n(r,i){const o=e.get(r);return o?o.split(",").map(l=>{if(!l||!i[l])throw new Error(`Bad node key for: ${r}`);return i[l]}):null}try{return{[j.PACKAGE]:t(j.PACKAGE,Ne),[j.VERSION]:e.has(j.VERSION)?t(j.VERSION,Ut):null,[j.ENVIRONMENT]:e.has(j.ENVIRONMENT)?t(j.ENVIRONMENT,ri):null,[j.OP_SYSTEM]:t(j.OP_SYSTEM,Je),[j.DISTRIBUTION]:t(j.DISTRIBUTION,A),[j.FRAMEWORK]:n(j.FRAMEWORK,Me)}}catch(r){return console.log(`Cannot restore state from url due to error "${r}"`),null}}function Sy(){const e=window.parent;if(!e.location.search)return null;const t=new URLSearchParams(e.location.search);return $f(t)}function xy(e,t,n,{serializeVersion:r}={serializeVersion:!0}){D.useEffect(()=>{const i=window.parent,o=Mf(t,{serializeVersion:r}).toString(),s=new URL(i.location.toString());if(!s.search){s.search=o,i.history.replaceState(null,"",s);return}s.search.slice(1)!==o&&(s.search=o,i.history.pushState(null,"",s))}),parent.onpopstate=()=>{const i=window.parent,o=new URLSearchParams(i.location.search),s=$f(o);s&&(e.setState(s),n(e.getState()))}}const us=function(e){let t,n=!1;return function(...r){return n||(t=e(r),n=!0),t}};function Oy(e){var t,n;return typeof((n=(t=e.wap_tms)==null?void 0:t.custom)==null?void 0:n.trackComponentClick)!="function"?null:e.wap_tms.custom.trackComponentClick.bind(e.wap_tms.custom)}class _y{constructor(){Ve(this,"_window");Ve(this,"_consoleNotification",{notInitialized:us(()=>console.log("Adobe analytics is not initialized")),notFound:us(()=>console.log("Adobe analytics not found on a page")),devMode:us(()=>console.log("Analytics in dev mode"))});Ve(this,"_send",t=>{if(!this._window){this._consoleNotification.notInitialized();return}const n=Mf(Tn.getState()).toString(),r=Oy(this._window);if(!r){this._consoleNotification.notFound();return}try{r(t,n)}catch(i){console.error(i)}})}initialize(t){this._window=t}install(){this._send("install")}combinationView(){this._send("combination-view")}}const Ge=new _y;function Ny(){const e=Sy();e&&Tn.setState(e);const t=D.createContext((r,i)=>{Tn.select(r,i)});function n(){const[r,i]=D.useState(Tn.getState());return xy(Tn,r,i),[r,(o,s)=>i(Tn.select(o,s))]}return{SelectorContext:t,useSelector:n}}async function Py(e){e&&(navigator.clipboard?await navigator.clipboard.writeText(e):Ey(e))}function Ey(e){const t=Cy(e);document.body.append(t),t.select(),document.execCommand("copy"),t.remove()}function Cy(e){const t=document.createElement("textarea");t.style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style.left="-9999px";const n=window.pageYOffset||document.documentElement.scrollTop;return t.style.top=`${n}px`,t.setAttribute("readonly",""),t.value=e,t}function jy(){return m.jsxs("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 205 205",xmlns:"http://www.w3.org/2000/svg",className:"svg-icon",children:[m.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"10",d:"M 50 145 a 15 15 0 0 1 -15 -15 v -90 a 15 15 0 0 1 15 -15 h 70 a 15 15 0 0 1 15 15 v 5"}),m.jsx("rect",{x:"65",y:"60",width:"100",height:"120",rx:"15",fill:"none",stroke:"currentColor",strokeWidth:"10"})]})}function Iy(){return m.jsx("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",className:"svg-icon",children:m.jsx("path",{strokeLinejoin:"round",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:"15",d:"M 40 100 L 90 150 L 170 40"})})}function Ry(){return m.jsxs("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",className:"svg-icon",children:[m.jsx("circle",{cx:"100",cy:"100",r:"90",fill:"none",strokeWidth:"15",stroke:"currentColor"}),m.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"15",strokeLinecap:"round",d:"M 65 80 A 35 35 0 1 1 100 115"}),m.jsx("circle",{cx:"100",cy:"150",r:"3",fill:"none",stroke:"currentColor",strokeWidth:"15"})]})}const b=({comment:e,command:t,onCopy:n})=>{const[r,i]=D.useState(!1),o=async()=>{r||(await Py(t),i(!0),setTimeout(()=>i(!1),1500),n==null||n())};return m.jsxs("div",{className:"st-code-snippet","data-cy":"instructions-step",children:[e&&m.jsx(Bf,{children:e}),m.jsxs("div",{"data-cy":"command",children:[t&&m.jsx("code",{className:"st-code-snippet-content",children:t}),t&&m.jsx("button",{className:"copy-button",type:"button","aria-label":"Copy","data-cy":"copy",onClick:o,children:r?m.jsx(Iy,{}):m.jsx(jy,{})})]})]})},Bf=({children:e})=>m.jsxs("pre",{className:"st-code-snippet-comment",children:["# ",e]}),Ty=({comment:e,snippets:t})=>m.jsxs("div",{className:"st-code-snippet-multi-line","data-cy":"command",children:[e&&m.jsx(Bf,{children:e}),t.map(n=>m.jsx(b,{...n},n.command))]});function Ly(e){return e.host==="docs.openvino.ai"}const cs="production.docs.en",Kf=(cs==null?void 0:cs.includes("idz"))||!1,ds={link:"spark-hyperlink spark-hyperlink-primary spark-hyperlink-standard spark-focus-visible spark-focus-visible-self spark-focus-visible-snap spark-focus-visible-background",button:"spark-button spark-button-action spark-button-size-m spark-focus-visible spark-focus-visible-self spark-focus-visible-snap",buttonContent:"spark-button-content"},Oe=({href:e,children:t,type:n="link",testId:r="link",onClick:i})=>{const o=!Kf&&Ly(new URL(e))?"_parent":"_blank";return n==="link"?m.jsx("a",{href:e,className:ds.link,target:o,rel:"noreferrer noopener","data-cy":r,onClick:()=>i==null?void 0:i(),children:t}):m.jsx("span",{className:ds.button,children:m.jsx("span",{className:ds.buttonContent,children:m.jsx("a",{href:e,target:o,rel:"noreferrer noopener","data-cy":r,onClick:()=>i==null?void 0:i(),children:t})})})},Ay={heading:"spark-heading spark-font-200"},Ce=({title:e,accent:t=!1,dashed:n=!1,children:r,testId:i})=>m.jsxs("div",{className:`st-section ${t?"st-section-accent":""} ${n?"st-section-dashed":""}`,"data-cy":i,children:[m.jsx("span",{className:`st-section-title ${Ay.heading}`,children:e}),m.jsx("div",{className:"st-section-content",children:D.Children.map(r,o=>m.jsx(Fy,{children:o}))})]}),Fy=({children:e})=>m.jsx("div",{className:"st-section-content-row",children:e}),Dy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.apt.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,o={comment:m.jsxs(z,{ns:"translation",i18nKey:"distributions.apt.steps.addRepository",children:[m.jsx("b",{children:"Step 3:"})," Add the repository via the following command"]}),snippets:i.getAddRepositoryCommands(e,t.data.os).map(({ubuntuVersionNumber:l,command:a})=>({comment:`Ubuntu ${l}`,command:a}))},s={downloadKey:{comment:m.jsxs(z,{t:n,i18nKey:"download",values:{filename:i.keyFilename},children:[m.jsx("b",{children:"Step 1:"})," Download the ",m.jsx(Oe,{href:i.keyHref,children:i.keyFilename}),". You can also use the following command"]}),command:i.downloadKeyCommand},addKey:{comment:m.jsxs(z,{t:n,i18nKey:"addKey",children:[m.jsx("b",{children:"Step 2:"})," Add this key to the system keyring"]}),command:i.addKeyCommand},addRepository:o,updatePackages:{comment:m.jsxs(z,{t:n,i18nKey:"updateList",children:[m.jsx("b",{children:"Step 4:"})," Update the list of packages via the update command"]}),command:i.updatePackagesCommand},verifyAptCache:{comment:m.jsxs(z,{t:n,i18nKey:"verify",children:[m.jsx("b",{children:"Step 5:"})," Verify that the APT repository is properly set up. Run the apt-cache command to see a list of all available OpenVINO packages and components"]}),command:i.verifyAptCacheCommand},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 6:"})," Install OpenVINO Runtime"]}),command:i.getInstallCommand(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...s.downloadKey}),m.jsx(b,{...s.addKey}),m.jsx(Ty,{...s.addRepository}),m.jsx(b,{...s.updatePackages}),m.jsx(b,{...s.verifyAptCache}),m.jsx(b,{...s.install})]})},Uy=({distribution:e})=>{const{t}=$("translation",{keyPrefix:"distributions.brew.steps"}),{t:n}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:r}=e.data,i={install:{comment:m.jsx(z,{t,i18nKey:"install",children:"Download and install the package"}),command:r.install,onCopy:()=>Ge.install()}};return m.jsx(Ce,{title:n("install"),accent:!0,testId:"instructions",children:m.jsx(b,{...i.install})})},zy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.conan.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,{txtFilename:o,cmakeFilename:s}=i,l={createConanFile:{comment:m.jsxs(z,{t:n,i18nKey:"createConanFile",values:{txtFilename:o},children:[m.jsx("b",{children:"Step 1:"})," Create a ",m.jsx("b",{children:o})," file for your OpenVINO project and add “openvino” dependency in there"]}),command:i.conanTXTContent(e)},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",values:{cmakeFilename:s},children:[m.jsx("b",{children:"Step 2:"})," Run the command below to create ",m.jsx("b",{children:s})," file, which will be used to compile your project with OpenVINO"]}),command:i.install,onCopy:()=>Ge.install()},compile:{comment:m.jsxs(z,{t:n,i18nKey:"compile",children:[m.jsx("b",{children:"Step 3:"})," Configure and compile your project with OpenVINO"]}),command:i.compile}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...l.createConanFile}),m.jsx(b,{...l.install}),m.jsx(b,{...l.compile})]})},Vy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.conda.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,o={createEnv:{comment:m.jsxs(z,{t:n,i18nKey:"createEnv",children:[m.jsx("b",{children:"Step 1:"})," Create the Anaconda environment (Python 3.10 used as an example)"]}),command:i.createEnv},activateEnv:{comment:m.jsxs(z,{t:n,i18nKey:"activateEnv",children:[m.jsx("b",{children:"Step 2:"})," Activate the Anaconda environment"]}),command:i.activateEnv},upgradePip:{comment:m.jsxs(z,{t:n,i18nKey:"update",children:[m.jsx("b",{children:"Step 3:"})," Update the Anaconda to latest version"]}),command:i.update},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 4:"})," Download and install the package"]}),command:i.getInstall(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...o.createEnv}),m.jsx(b,{...o.activateEnv}),m.jsx(b,{...o.upgradePip}),m.jsx(b,{...o.install})]})},fs=({ovPackage:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.download"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),i={[A.ARCHIVE]:e.key===Ne.OPENVINO_BASE?n("downloadArchives"):n("downloadArchivesGenAI"),[A.DOCKER]:n("gotoDocker"),[A.SNAP]:n("gotoInstallInstruction")}[t.key],o=m.jsxs(m.Fragment,{children:[n("useFollowingLink"),m.jsx("br",{}),m.jsx("b",{children:m.jsx(Oe,{href:t.data.downloadLink,testId:"download-button",onClick:()=>Ge.install(),children:i})})]});return m.jsx(Ce,{title:r("install"),accent:!0,testId:"instructions",children:m.jsx(b,{comment:o})})},by=({ovPackage:e,version:t,distribution:n})=>{const{t:r}=$("translation",{keyPrefix:"distributions.githubGitee"}),{t:i}=$("translation",{keyPrefix:"selectorForm.titles"}),o={clone:{comment:m.jsxs(z,{t:r,i18nKey:"steps.useGitClone",children:[m.jsx("b",{children:"Step 1:"})," Use Git to clone the OpenVINO toolkit repository"]}),command:n.data.commands.getCloneCommand(e,t),onCopy:()=>Ge.install()},build:{comment:m.jsxs(z,{t:r,i18nKey:"steps.buildInstructions",children:[m.jsx("b",{children:"Step 2:"})," Follow the ",m.jsx(Oe,{href:n.data.links.getBuildInstructionsLink(e,t),testId:"build-instructions-link",children:"instructions to build from source"})]})}};return m.jsxs(Ce,{title:i("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...o.clone}),m.jsx(b,{...o.build})]})},My=({distribution:e,version:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.npm.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=e.data,o={install:{comment:m.jsx(z,{t:n,i18nKey:"install",children:"Download and install the package"}),command:i.getInstall(t),onCopy:()=>Ge.install()}};return m.jsx(Ce,{title:r("install"),accent:!0,testId:"instructions",children:m.jsx(b,{...o.install})})},$y=({ovPackage:e,environment:t,os:n,version:r,distribution:i})=>{const{t:o}=$("translation",{keyPrefix:"distributions.pip.steps"}),{t:s}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:l}=i.data,a=l.getCreateVenvCommand(n,r),u=l.getActivateVenvCommand(n,r),p=l.getInstallCommand({ovPackage:e,environment:t,os:n,version:r,distribution:i}),d={createEnv:{comment:m.jsxs(z,{t:o,i18nKey:"createVenv",children:[m.jsx("b",{children:"Step 1:"})," Create virtual environment"]}),command:a},activateEnv:{comment:m.jsxs(z,{t:o,i18nKey:"activateVenv",children:[m.jsx("b",{children:"Step 2:"})," Activate virtual environment"]}),command:u},upgradePip:{comment:m.jsxs(z,{t:o,i18nKey:"upgradePip",children:[m.jsx("b",{children:"Step 3:"})," Upgrade pip to latest version"]}),command:l.upgradeCommand},install:{comment:m.jsxs(z,{t:o,i18nKey:"install",children:[m.jsx("b",{children:"Step 4:"})," Download and install the package"]}),command:p,onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:s("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...d.createEnv}),m.jsx(b,{...d.activateEnv}),m.jsx(b,{...d.upgradePip}),m.jsx(b,{...d.install})]})},By=({distribution:e})=>{const{t}=$("translation",{keyPrefix:"distributions.vcpkg.steps"}),{t:n}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:r}=e.data,i={install:{comment:m.jsx(z,{t,i18nKey:"install",children:"Download and install the package"}),command:r.install,onCopy:()=>Ge.install()}};return m.jsx(Ce,{title:n("install"),accent:!0,testId:"instructions",children:m.jsx(b,{...i.install})})},Ky=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.yum.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{yumYear:i}=e.metadata,{commands:o}=t.data,s={createRepo:{comment:m.jsxs(z,{t:n,i18nKey:"createRepoFile",children:[m.jsx("b",{children:"Step 1:"})," Create the YUM repo file in the /tmp directory as a normal user"]}),command:o.getCreateRepoCommand(e)},moveRepoFile:{comment:m.jsxs(z,{t:n,i18nKey:"moveFile",values:{year:i,directory:o.directory},children:[m.jsx("b",{children:"Step 2:"})," Move the new openvino-",{year:i},".repo file to the YUM configuration directory ",m.jsx("b",{children:o.directory})]}),command:o.getMoveRepoFileCommand(e)},verifyRepo:{comment:m.jsxs(z,{t:n,i18nKey:"verify",children:[m.jsx("b",{children:"Step 3:"})," Verify that the new repo is properly setup by running the following command"]}),command:o.verifyRepoCommand},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 4:"})," Install OpenVINO Runtime"]}),command:o.getInstallCommand(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...s.createRepo}),m.jsx(b,{...s.moveRepoFile}),m.jsx(b,{...s.verifyRepo}),m.jsx(b,{...s.install})]})},Hy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.zypper.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,o={addRepo:{comment:m.jsxs(z,{t:n,i18nKey:"addRepo",children:[m.jsx("b",{children:"Step 1:"})," Create a ZYPPER repository file with the command below"]}),command:i.addRepo},refresh:{comment:m.jsxs(z,{t:n,i18nKey:"refresh",children:[m.jsx("b",{children:"Step 2:"})," Refresh repositories"]}),command:i.refresh},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 3:"})," Install OpenVINO"]}),command:i.getInstallCommand(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...o.addRepo}),m.jsx(b,{...o.refresh}),m.jsx(b,{...o.install})]})},Wy=({state:e})=>{var r;const t={ovPackage:e.PACKAGE.selected,environment:(r=e.ENVIRONMENT)==null?void 0:r.selected,os:e.OP_SYSTEM.selected,version:e.VERSION.selected,distribution:e.DISTRIBUTION.selected};if(t.distribution.key===A.PIP)return m.jsx($y,{...t,distribution:t.distribution});if(t.distribution.key===A.ARCHIVE)return m.jsx(fs,{...t,distribution:t.distribution});if(t.distribution.key===A.DOCKER)return m.jsx(fs,{...t,distribution:t.distribution});if(t.distribution.key===A.GITHUB||t.distribution.key===A.GITEE)return m.jsx(by,{...t,distribution:t.distribution});if(t.distribution.key===A.APT)return m.jsx(Dy,{...t,distribution:t.distribution});if(t.distribution.key===A.YUM)return m.jsx(Ky,{...t,distribution:t.distribution});if(t.distribution.key===A.CONDA)return m.jsx(Vy,{...t,distribution:t.distribution});if(t.distribution.key===A.BREW)return m.jsx(Uy,{...t,distribution:t.distribution});if(t.distribution.key===A.VCPKG)return m.jsx(By,{...t,distribution:t.distribution});if(t.distribution.key===A.CONAN)return m.jsx(zy,{...t,distribution:t.distribution});if(t.distribution.key===A.NPM)return m.jsx(My,{...t,distribution:t.distribution});if(t.distribution.key===A.ZYPPER)return m.jsx(Hy,{...t,distribution:t.distribution});if(t.distribution.key===A.SNAP)return m.jsx(fs,{...t,distribution:t.distribution});const n=t.distribution;throw new Error(`${n}`)};function Gy(){const{t:e}=$("common",{keyPrefix:"relatedTools"}),{t}=$("translation");return m.jsx(Ce,{title:t("selectorForm.titles.relatedTools"),testId:"relatedTools",accent:!0,dashed:!0,children:m.jsxs("div",{className:"st-related-tools-links",children:[m.jsx(Oe,{href:"https://github.com/openvinotoolkit/openvino_notebooks",testId:"notebooks-link",children:e("OpenVINONotebooks")}),m.jsx(Oe,{href:"https://huggingface.co/docs/optimum/main/intel/openvino/inference",testId:"hf_optimum-link",children:"Hugging Face + Optimum Intel"}),m.jsx("div",{children:m.jsxs(z,{t:e,i18nKey:"tokenizers",children:[m.jsx(Oe,{href:"https://docs.openvino.ai/2024/learn-openvino/llm_inference_guide/ov-tokenizers.html",testId:"openvino_tokenizers-link",children:"OpenVINO Tokenizers"}),"to streamline tokenizer conversion"]})}),m.jsx("div",{children:m.jsxs(z,{t:e,i18nKey:"nncf",children:[m.jsx(Oe,{href:"https://docs.openvino.ai/2024/openvino-workflow/model-optimization-guide/compressing-models-during-training.html",testId:"nncf-link",children:"NNCF"}),"for implementing compression algorithms on models"]})}),m.jsx("div",{children:m.jsxs(z,{t:e,i18nKey:"ovms",children:[m.jsx(Oe,{href:"https://docs.openvino.ai/2024/ovms_what_is_openvino_model_server.html",testId:"ovms-link",children:"OVMS"}),"for serving models optimized for deployment"]})})]})})}function Yy({state:e}){const t=e.PACKAGE.selected,n=e.DISTRIBUTION.selected,r=e.VERSION.selected,{t:i}=$("translation",{keyPrefix:"selectorForm.titles"}),{t:o}=$("common",{keyPrefix:"resources"});let s=m.jsx(m.Fragment,{});if(A.GITHUB===n.key||A.GITEE===n.key){const l=n.key===A.GITHUB?t.key===Ne.OPENVINO_BASE?o("githubRepository"):o("githubGenAIRepository"):t.key===Ne.OPENVINO_BASE?o("giteeRepository"):o("giteeGenAIRepository");s=m.jsxs(m.Fragment,{children:[m.jsx(Oe,{href:n.data.links.getBuildInstructionsLink(t,r),testId:"install-instructions-link",children:o("installationInstructions")}),m.jsx(Oe,{href:n.data.links.getRepositoryLink(t,r),testId:"repository-link",children:l})]})}else s=m.jsx(Oe,{href:n.data.linksSet.installation,testId:"install-instructions-link",children:o("installationInstructions")});return m.jsx(Ce,{title:i("resources"),testId:"resources",accent:!0,children:m.jsxs("div",{className:"st-resources-links",children:[m.jsxs("div",{children:[s,m.jsx(Oe,{href:"https://github.com/openvinotoolkit/openvino/releases",testId:"previous-releases-link",children:o("prevReleases")}),m.jsx(Oe,{href:r.metadata.systemRequirementsLink,testId:"system-requirements-link",children:o("systemRequirements")})]}),m.jsxs("div",{children:[m.jsx(Oe,{href:r.metadata.getStartedLink,testId:"get-started-link",children:o("getStarted")}),m.jsx(Oe,{href:r.metadata.troubleshootingLink,testId:"troubleshooting-link",children:o("troubleshooting")})]})]})})}const Oi={tooltipToggle:"spark-tooltip-toggle",tooltipPopover:"spark-tooltip spark-tooltip-size-m spark-shadow spark-tooltip-bottom",tooltipLabel:"spark-tooltip-label",tooltipArrow:"spark-tooltip-tip"},Qy=({content:e})=>{const[t,n]=D.useState(!1);return m.jsx("div",{className:"help-tooltip",children:m.jsxs("div",{className:Oi.tooltipToggle,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[m.jsx("div",{"aria-hidden":"true",role:"img",className:"help-tooltip-icon",children:m.jsx(Ry,{})}),t&&m.jsxs("div",{className:`help-tooltip-popover ${Oi.tooltipPopover}`,role:"tooltip",children:[m.jsx("span",{className:`help-tooltip-popover-content ${Oi.tooltipLabel}`,children:e}),m.jsx("span",{className:Oi.tooltipArrow})]})]})})},ps={toggleSwitchField:"spark-fieldlabel spark-fieldlabel-size-m spark-toggle-switch spark-toggle-switch-action spark-toggle-switch-size-l",toggleSwitchInput:"spark-focus-visible spark-focus-visible-suppress spark-focus-visible-adjacent",toggleSwitchSelector:"spark-toggle-switch-selector spark-focus-visible spark-focus-visible-snap"},Xy=({label:e,checked:t=!1,onClick:n,testId:r})=>m.jsxs("label",{className:ps.toggleSwitchField,"data-cy":r,children:[m.jsx("input",{type:"checkbox",className:ps.toggleSwitchInput,role:"switch",checked:t,onChange:()=>n==null?void 0:n()}),m.jsx("span",{className:ps.toggleSwitchSelector}),m.jsx("div",{children:e})]}),cn={toggleButton:"spark-button spark-button-size-l spark-focus-visible spark-focus-visible-self spark-focus-visible-snap",toggleButtonGroup:"spark-button-group spark-button-group-orientation-horizontal spark-button-group-align-start spark-button-group-spacing-l",actionButton:"spark-button-action",secondaryButton:"spark-button-secondary",disabledButton:"spark-button-disabled",buttonContent:"spark-button-content",fontXs:"spark-font-25"},Hf=({onClick:e,checked:t=!1,disabled:n=!1,title:r,subtitle:i,value:o})=>m.jsx("button",{className:`${cn.toggleButton} ${t?cn.actionButton:cn.secondaryButton} ${n&&cn.disabledButton}`,type:"button",role:"radio","aria-checked":t,onClick:()=>e==null?void 0:e(),"data-cy":o,"aria-label":r,children:m.jsxs("span",{className:cn.buttonContent,children:[m.jsx("span",{className:"title",children:r}),i&&m.jsx("span",{className:`${cn.fontXs} subtitle`,children:i})]})}),Wf=({children:e,className:t})=>m.jsx("div",{className:`option-button-group ${t||""} ${cn.toggleButtonGroup}`,children:e});function Jy({title:e,options:t,level:n}){const r=D.useContext(ma),i=t.some(({checked:u})=>u),[o,s]=D.useState(i),l=t.map(({level:u,key:p,checked:d,metadata:h})=>m.jsx(Hf,{value:`${u}_${p}`,checked:d,title:h.title,onClick:()=>r(u,p)},p)),{t:a}=$("translation",{keyPrefix:"frameworks"});return m.jsxs(Ce,{title:e,testId:n,children:[m.jsxs(m.Fragment,{children:[m.jsx(Xy,{label:a("install"),checked:o,onClick:()=>s(!o),testId:"frameworks-toggle-switch"}),m.jsx(Qy,{content:a("tooltip")})]}),m.jsx(m.Fragment,{children:o&&m.jsx(Wf,{children:l})})]})}function wr({title:e,options:t,level:n}){const r=D.useContext(ma),i=t.map(({level:o,key:s,checked:l,metadata:a})=>m.jsx(Hf,{value:`${o}_${s}`,checked:l,title:a.title,subtitle:a.subtitle,onClick:()=>r(o,s)},s));return m.jsx(Ce,{title:e,testId:n,children:m.jsx(Wf,{children:i})})}function Zy({state:e}){var a,u;const t=e.PACKAGE.nodes,n=e.VERSION.nodes,r=(a=e.ENVIRONMENT)==null?void 0:a.nodes.map(p=>({...p,metadata:{...p.metadata,subtitle:void 0}})),i=e.OP_SYSTEM.nodes,o=e.DISTRIBUTION.nodes,s=(u=e.FRAMEWORK)==null?void 0:u.nodes;D.useEffect(()=>Ge.combinationView(),[e]);const{t:l}=$("translation",{keyPrefix:"selectorForm.titles"});return m.jsxs(m.Fragment,{children:[m.jsx(wr,{title:l("package"),options:t,level:j.PACKAGE}),m.jsx(wr,{title:l("version"),options:n,level:j.VERSION}),r&&m.jsx(wr,{title:l("envinronment"),options:r,level:j.ENVIRONMENT}),m.jsx(wr,{title:l("os"),options:i,level:j.OP_SYSTEM}),m.jsx(wr,{title:l("distribution"),options:o,level:j.DISTRIBUTION}),s&&m.jsx(Jy,{title:l("frameworks"),options:s,level:j.FRAMEWORK})]})}const{SelectorContext:ma,useSelector:qy}=Ny();Ge.initialize(window.parent);function e0(){const[e,t]=qy();return m.jsx("div",{className:`st-responsive-container ${Kf?"idz-page":""}`,children:m.jsxs(ma.Provider,{value:t,children:[m.jsx(Zy,{state:e}),m.jsx(Wy,{state:e}),m.jsx(Yy,{state:e}),m.jsx(Gy,{})]})})}vs.createRoot(document.getElementById("root")).render(m.jsx(cp.StrictMode,{children:m.jsx(e0,{})})); +EOF`,getMoveRepoFileCommand:e=>`sudo mv /tmp/openvino-${e.metadata.yumYear}.repo ${oc}`,verifyRepoCommand:"yum repolist | grep -i openvino",getInstallCommand:e=>`sudo yum install openvino-${e.metadata.yumVersion}`};class jv extends De{constructor(t){super({level:j.DISTRIBUTION,key:A.ZYPPER,metadata:{title:"ZYPPER",subtitle:Z("distributions.CAPIOnly")}}),this._data=t}get data(){return{...this._data,commands:Iv}}}const Iv={addRepo:"sudo zypper addrepo https://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/science.repo",refresh:"sudo zypper refresh",getInstallCommand:({metadata:e})=>`sudo zypper install openvino-devel-${e.zypperVersion} openvino-sample-${e.zypperVersion}`};class Uf extends Ie{constructor(t,n,r){super({level:j.PACKAGE,key:t,metadata:n,childrenSelector:Ff},r),this._setDefaultPackage()}_setDefaultPackage(){const t=Ne.OPENVINO_BASE;this.key===t&&this.default()}}class Rv extends Uf{constructor(t){super(Ne.OPENVINO_BASE,{title:Z("package.base.title"),subtitle:Z("package.base.subtitle")},t)}}class Tv extends Uf{constructor(t){super(Ne.OPENVINO_GENAI,{title:Z("package.genai.title"),subtitle:Z("package.genai.subtitle")},t)}}class jo extends Ie{constructor(t,n,r){super({level:j.VERSION,key:t,metadata:n},r)}}const Lv={title:Z("versions.titles.nightlyBuild"),pipVersion:"",githubVersion:"master",giteeVersion:"master",genaiGitVersion:"master",systemRequirementsLink:"https://docs.openvino.ai/nightly/about-openvino/release-notes-openvino/system-requirements.html",getStartedLink:"https://docs.openvino.ai/nightly/get-started.html",troubleshootingLink:"https://docs.openvino.ai/nightly/get-started/troubleshooting-install-config.html"};class zf extends jo{constructor(t){super(Ut.NIGHTLY,Lv,t)}}const Av={title:"2024.5",subtitle:Z("versions.titles.recommended"),pipVersion:"2024.5.0",githubVersion:"2024.5.0",giteeVersion:"2024.5.0",genaiGitVersion:"releases/2024/5",aptYear:2024,aptVersion:"2024.5.0",yumYear:2024,yumVersion:"2024.5.0",condaVersion:"2024.5.0",conanVersion:"2024.5.0",npmVersion:"2024.5.0-0",zypperVersion:"2024.5.0",systemRequirementsLink:"https://docs.openvino.ai/2024/about-openvino/system-requirements.html",getStartedLink:"https://docs.openvino.ai/2024/get-started.html",troubleshootingLink:"https://docs.openvino.ai/2024/get-started/troubleshooting-install-config.html"};class Vf extends jo{constructor(t){super(Ut.v_2024_5_0,Av,t)}}const Fv={title:`2023.3 ${Z("versions.titles.LTS")}`,pipVersion:"2023.3.0",githubVersion:"2023.3.0",giteeVersion:"2023.3.0",aptYear:2023,aptVersion:"2023.3.0",yumYear:2023,yumVersion:"2023.3.0",condaVersion:"2023.3.0",conanVersion:"2023.3.0",systemRequirementsLink:"https://docs.openvino.ai/2023.3/system_requirements.html",getStartedLink:"https://docs.openvino.ai/2023.3/get_started.html",troubleshootingLink:"https://docs.openvino.ai/2023.3/openvino_docs_get_started_guide_troubleshooting.html"};class Dv extends jo{constructor(t){super(Ut.v_2023_3_0,Fv,t)}}const Uv={title:`2022.3.2 ${Z("versions.titles.LTS")}`,subtitle:Z("versions.titles.hddlSupport"),pipVersion:"2022.3.2",githubVersion:"2022.3.2",giteeVersion:"2022.3.2",aptYear:2022,aptVersion:"2022.3.2",yumYear:2022,yumVersion:"2022.3.2",systemRequirementsLink:"https://docs.openvino.ai/systemrequirements",getStartedLink:"https://docs.openvino.ai/2022.3/get_started.html",troubleshootingLink:"https://docs.openvino.ai/2022.3/openvino_docs_get_started_guide_troubleshooting_steps.html"};class bf extends jo{constructor(t){super(Ut.v_2022_3_2,Uv,t)}}class ha extends Ie{constructor(t,n,r){super({level:j.OP_SYSTEM,key:t,metadata:n,childrenSelector:Ff},r),this._setDefaultOS()}_setDefaultOS(){const t=this._detectOS()||Je.WINDOWS;this.key===t&&this.default()}_detectOS(){const{userAgent:t}=navigator,n={windows:/(Windows|Win)/g,macOS:/(Macintosh|Mac)/g,linux:/(Linux|X11)/g};return n.windows.test(t)?Je.WINDOWS:n.macOS.test(t)?Je.MACOS:n.linux.test(t)?Je.LINUX:null}}class On extends ha{constructor(t){super(Je.WINDOWS,tv,t)}}class _n extends ha{constructor(t){super(Je.MACOS,nv,t)}}class Nn extends ha{constructor(t){super(Je.LINUX,rv,t)}}const zv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-archive-linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/latest"}),new ie,new re]),Vv=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-archive-macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/latest"}),new ie,new re]),bv=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-archive-windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/latest"}),new ie,new re]),Mv=new zf([bv,Vv,zv]);class $v extends Ie{constructor(t){super({level:j.ENVIRONMENT,key:ri.RUNTIME,metadata:{title:Z("environment.runtime.title"),subtitle:Z("environment.runtime.subtitle")}},t)}}class Bv extends Ie{constructor(t){super({level:j.ENVIRONMENT,key:ri.DEV_TOOLS,metadata:{title:Z("environment.devTools.title"),subtitle:Z("environment.devTools.subtitle")}},t)}}const Kv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_install_dev_tools.html"},frameworks:[]},{hasFrameworks:!0}).default(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"},downloadLink:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"})]),Hv=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_install_dev_tools.html"},frameworks:[]},{hasFrameworks:!0}).addFootnote(j.OP_SYSTEM).default(),new ie().addFootnote(j.OP_SYSTEM),new re().addFootnote(j.OP_SYSTEM)]),Wv=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_install_dev_tools.html"},frameworks:[]},{hasFrameworks:!0}).default(),new ie,new re]),Gv=new Bv([Wv,Hv,Kv]),Yv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_from_archive_linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3.2/linux"}),new ca({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_apt.html"},os:[te.UBUNTU_18,te.UBUNTU_20]}),new pa({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_yum.html"}}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"},downloadLink:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_linux.html"})]),Qv=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).addFootnote(j.OP_SYSTEM).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_from_archive_macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3.2/macos"}).addFootnote(j.OP_SYSTEM),new ie().addFootnote(j.OP_SYSTEM),new re().addFootnote(j.OP_SYSTEM)]),Xv=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_from_archive_windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3.2/windows"}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_windows.html"},downloadLink:"https://docs.openvino.ai/2022.3/openvino_docs_install_guides_installing_openvino_docker_windows.html"})]),Jv=new $v([Xv,Qv,Yv]),Zv=new bf([Gv.default(),Jv]),qv=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_from_archive_linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/linux"}).includesNPUPlugin(),new ca({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_apt.html"},os:[te.UBUNTU_18,te.UBUNTU_20,te.UBUNTU_22]}),new pa({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_yum.html"}}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"},downloadLink:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conda.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conan.html"}})]),ey=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_from_archive_macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/macos"}),new ie,new re,new ur({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conda.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conan.html"}})]),ty=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_from_archive_windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/windows"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"},downloadLink:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_docker.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conda.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_conan.html"}})]),ny=new Dv([ty,ey,qv]),ry=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.5/linux"}).includesNPUPlugin(),new ca({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-apt.html"},os:[te.UBUNTU_20,te.UBUNTU_22,te.UBUNTU_24]}),new pa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-yum.html"}}),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conda.html"}}),new Af({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-brew.html"}}),new fa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-vcpkg.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conan.html"}}),new da({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-npm.html"}}),new jv({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-zypper.html"}}),new Pv({linksSet:{installation:"https://docs.openvino.ai/2024/openvino-workflow/deployment-locally/integrate-openvino-with-ubuntu-snap.html"},downloadLink:"https://docs.openvino.ai/2024/openvino-workflow/deployment-locally/integrate-openvino-with-ubuntu-snap.html"})]),iy=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-macos.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.5/macos"}),new ie,new re,new ur({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conda.html"}}),new Af({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-brew.html"}}),new fa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-vcpkg.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conan.html"}}),new da({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-npm.html"}})]),oy=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-pip.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-windows.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.5/windows"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"}),new ur({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conda.html"}}),new fa({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-vcpkg.html"}}),new ar({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-conan.html"}}),new da({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-npm.html"}})]),sy=new Vf([oy,iy,ry]),ly=new Rv([sy.default(),Mv,ny,Zv]),ay=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#pypi-installation"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#archive-installation"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/nightly/latest"}),new ie,new re]),uy=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#pypi-installation"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#archive-installation"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/nightly/latest"}),new ie,new re]),cy=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#pypi-installation"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/nightly/get-started/install-openvino/install-openvino-genai.html#archive-installation"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/nightly/latest"}),new ie,new re]),dy=new zf([cy,uy,ay]),fy=new Nn([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/2024.5/linux"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"})]),py=new _n([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},frameworks:[]},{pythonAPI:!0}).default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/2024.5/macos"}),new ie,new re]),hy=new On([new ee({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},frameworks:[]},{pythonAPI:!0}).includesNPUPlugin().default(),new fe({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-genai.html"},downloadLink:"https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/2024.5/windows"}).includesNPUPlugin(),new ie,new re,new zt({linksSet:{installation:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"},downloadLink:"https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-docker-linux.html"})]),my=new Vf([hy,py,fy]),gy=new Tv([my.default(),dy]),vy=new Ie({level:j.ROOT,key:Lf.ROOT,metadata:{title:"ROOT"}},[ly.default(),gy]).default();function yy(e,t){var i,o;if(t.key===A.DOCKER||!t.footnoteLevel)return e;const n=(i=e[t.footnoteLevel])==null?void 0:i.selected,r=(o=e[t.footnoteLevel])==null?void 0:o.nodes;return!n||!r||((Array.isArray(n)?[...n,...r]:[n]).forEach(s=>s.hasFootnote=!0),r.forEach(s=>s.checked&&(s.hasFootnote=!0))),e}class wy{constructor(){Ve(this,"_root",vy)}getState(){try{return this._getState()}catch(t){return console.error(t),this._selectDefaults(this._root),this._getState()}}_getState(){const t=this._root.children,n=this._get_selected(t),r=n.children,i=this._get_selected(r),{environments:o,environment:s,systems:l,system:a}=this._processVersion(i),u=a.children,p=this._get_selected(u),d=this._processDistribution(p),h={[j.PACKAGE]:{nodes:t.map(v=>v.toOption()),selected:n.toOption()},[j.VERSION]:{nodes:r.map(v=>v.toOption()),selected:i.toOption()},[j.ENVIRONMENT]:s&&o?{nodes:o.map(v=>v.toOption()),selected:s.toOption()}:null,[j.OP_SYSTEM]:{nodes:l.map(v=>v.toOption()),selected:a.toOption()},[j.DISTRIBUTION]:{nodes:u.map(v=>v.toOption()),selected:p.toOption()},[j.FRAMEWORK]:d!=null&&d.length?{nodes:d.map(v=>v.toOption()),selected:d.filter(({checked:v})=>v).map(v=>v.toOption())}:null};return yy(h,p)}_get_selected(t){t.some(({checked:r})=>r)||this._selectDefaultsForLevel(t[0].level);const n=t.find(({checked:r})=>r);if(!n)throw new Error("Not valid tree");return n}_processVersion(t){if(t instanceof bf){const i=t.children,o=this._get_selected(i),s=o.children,l=this._get_selected(s);return{environments:i,environment:o,systems:s,system:l}}const n=t.children,r=this._get_selected(n);return{environments:null,environment:null,systems:n,system:r}}_processDistribution(t){return t instanceof ee?t.children:null}setState(t){this._setState(t)}_setState(t,n=this._root){if(!n.children.length)return;const r=n.children[0].level,i=ky(t[r]);n.children.forEach(o=>o.checked=i.includes(o.key)),n.children.forEach(o=>this._setState(t,o))}select(t,n){return this._select(t,n),this.getState()}_select(t,n,r=this._root){var i;if(((i=r.children[0])==null?void 0:i.level)!==t){r.children.forEach(o=>this._select(t,n,o));return}if(r.childrenSelector){r.childrenSelector(r.children,n);return}r.children.forEach(o=>o.checked=o.key===n)}_selectDefaultsForLevel(t,n=this._root){if(n.children.length){if(n.children[0].level!==t){n.children.forEach(r=>this._selectDefaultsForLevel(t,r));return}this._selectDefaults(n)}}_selectDefaults(t){t.children.forEach(n=>{n.checked=n.isDefault,this._selectDefaults(n)})}}const Tn=new wy;function ky(e){const t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),t}function Mf(e,{serializeVersion:t}={serializeVersion:!0}){var i,o;const n=[[j.PACKAGE,e.PACKAGE.selected.key],[j.VERSION,t?e.VERSION.selected.key:null],[j.ENVIRONMENT,(i=e.ENVIRONMENT)==null?void 0:i.selected.key],[j.OP_SYSTEM,e.OP_SYSTEM.selected.key],[j.DISTRIBUTION,e.DISTRIBUTION.selected.key],[j.FRAMEWORK,(o=e.FRAMEWORK)==null?void 0:o.selected.map(s=>s.key).join(",")]],r=new URLSearchParams;for(const[s,l]of n)l&&r.set(s,l);return r}function $f(e){function t(r,i){const o=e.get(r);if(!o)throw new Error(`Cannot extract value for: ${r}`);if(!i[o])throw new Error(`Bad node key for: ${r}`);return i[o]}function n(r,i){const o=e.get(r);return o?o.split(",").map(l=>{if(!l||!i[l])throw new Error(`Bad node key for: ${r}`);return i[l]}):null}try{return{[j.PACKAGE]:t(j.PACKAGE,Ne),[j.VERSION]:e.has(j.VERSION)?t(j.VERSION,Ut):null,[j.ENVIRONMENT]:e.has(j.ENVIRONMENT)?t(j.ENVIRONMENT,ri):null,[j.OP_SYSTEM]:t(j.OP_SYSTEM,Je),[j.DISTRIBUTION]:t(j.DISTRIBUTION,A),[j.FRAMEWORK]:n(j.FRAMEWORK,Me)}}catch(r){return console.log(`Cannot restore state from url due to error "${r}"`),null}}function Sy(){const e=window.parent;if(!e.location.search)return null;const t=new URLSearchParams(e.location.search);return $f(t)}function xy(e,t,n,{serializeVersion:r}={serializeVersion:!0}){D.useEffect(()=>{const i=window.parent,o=Mf(t,{serializeVersion:r}).toString(),s=new URL(i.location.toString());if(!s.search){s.search=o,i.history.replaceState(null,"",s);return}s.search.slice(1)!==o&&(s.search=o,i.history.pushState(null,"",s))}),parent.onpopstate=()=>{const i=window.parent,o=new URLSearchParams(i.location.search),s=$f(o);s&&(e.setState(s),n(e.getState()))}}const us=function(e){let t,n=!1;return function(...r){return n||(t=e(r),n=!0),t}};function Oy(e){var t,n;return typeof((n=(t=e.wap_tms)==null?void 0:t.custom)==null?void 0:n.trackComponentClick)!="function"?null:e.wap_tms.custom.trackComponentClick.bind(e.wap_tms.custom)}class _y{constructor(){Ve(this,"_window");Ve(this,"_consoleNotification",{notInitialized:us(()=>console.log("Adobe analytics is not initialized")),notFound:us(()=>console.log("Adobe analytics not found on a page")),devMode:us(()=>console.log("Analytics in dev mode"))});Ve(this,"_send",t=>{if(!this._window){this._consoleNotification.notInitialized();return}const n=Mf(Tn.getState()).toString(),r=Oy(this._window);if(!r){this._consoleNotification.notFound();return}try{r(t,n)}catch(i){console.error(i)}})}initialize(t){this._window=t}install(){this._send("install")}combinationView(){this._send("combination-view")}}const Ge=new _y;function Ny(){const e=Sy();e&&Tn.setState(e);const t=D.createContext((r,i)=>{Tn.select(r,i)});function n(){const[r,i]=D.useState(Tn.getState());return xy(Tn,r,i),[r,(o,s)=>i(Tn.select(o,s))]}return{SelectorContext:t,useSelector:n}}async function Py(e){e&&(navigator.clipboard?await navigator.clipboard.writeText(e):Ey(e))}function Ey(e){const t=Cy(e);document.body.append(t),t.select(),document.execCommand("copy"),t.remove()}function Cy(e){const t=document.createElement("textarea");t.style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style.left="-9999px";const n=window.pageYOffset||document.documentElement.scrollTop;return t.style.top=`${n}px`,t.setAttribute("readonly",""),t.value=e,t}function jy(){return m.jsxs("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 205 205",xmlns:"http://www.w3.org/2000/svg",className:"svg-icon",children:[m.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"10",d:"M 50 145 a 15 15 0 0 1 -15 -15 v -90 a 15 15 0 0 1 15 -15 h 70 a 15 15 0 0 1 15 15 v 5"}),m.jsx("rect",{x:"65",y:"60",width:"100",height:"120",rx:"15",fill:"none",stroke:"currentColor",strokeWidth:"10"})]})}function Iy(){return m.jsx("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",className:"svg-icon",children:m.jsx("path",{strokeLinejoin:"round",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:"15",d:"M 40 100 L 90 150 L 170 40"})})}function Ry(){return m.jsxs("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",className:"svg-icon",children:[m.jsx("circle",{cx:"100",cy:"100",r:"90",fill:"none",strokeWidth:"15",stroke:"currentColor"}),m.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"15",strokeLinecap:"round",d:"M 65 80 A 35 35 0 1 1 100 115"}),m.jsx("circle",{cx:"100",cy:"150",r:"3",fill:"none",stroke:"currentColor",strokeWidth:"15"})]})}const b=({comment:e,command:t,onCopy:n})=>{const[r,i]=D.useState(!1),o=async()=>{r||(await Py(t),i(!0),setTimeout(()=>i(!1),1500),n==null||n())};return m.jsxs("div",{className:"st-code-snippet","data-cy":"instructions-step",children:[e&&m.jsx(Bf,{children:e}),m.jsxs("div",{"data-cy":"command",children:[t&&m.jsx("code",{className:"st-code-snippet-content",children:t}),t&&m.jsx("button",{className:"copy-button",type:"button","aria-label":"Copy","data-cy":"copy",onClick:o,children:r?m.jsx(Iy,{}):m.jsx(jy,{})})]})]})},Bf=({children:e})=>m.jsxs("pre",{className:"st-code-snippet-comment",children:["# ",e]}),Ty=({comment:e,snippets:t})=>m.jsxs("div",{className:"st-code-snippet-multi-line","data-cy":"command",children:[e&&m.jsx(Bf,{children:e}),t.map(n=>m.jsx(b,{...n},n.command))]});function Ly(e){return e.host==="docs.openvino.ai"}const cs="production.docs.en",Kf=(cs==null?void 0:cs.includes("idz"))||!1,ds={link:"spark-hyperlink spark-hyperlink-primary spark-hyperlink-standard spark-focus-visible spark-focus-visible-self spark-focus-visible-snap spark-focus-visible-background",button:"spark-button spark-button-action spark-button-size-m spark-focus-visible spark-focus-visible-self spark-focus-visible-snap",buttonContent:"spark-button-content"},Oe=({href:e,children:t,type:n="link",testId:r="link",onClick:i})=>{const o=!Kf&&Ly(new URL(e))?"_parent":"_blank";return n==="link"?m.jsx("a",{href:e,className:ds.link,target:o,rel:"noreferrer noopener","data-cy":r,onClick:()=>i==null?void 0:i(),children:t}):m.jsx("span",{className:ds.button,children:m.jsx("span",{className:ds.buttonContent,children:m.jsx("a",{href:e,target:o,rel:"noreferrer noopener","data-cy":r,onClick:()=>i==null?void 0:i(),children:t})})})},Ay={heading:"spark-heading spark-font-200"},Ce=({title:e,accent:t=!1,dashed:n=!1,children:r,testId:i})=>m.jsxs("div",{className:`st-section ${t?"st-section-accent":""} ${n?"st-section-dashed":""}`,"data-cy":i,children:[m.jsx("span",{className:`st-section-title ${Ay.heading}`,children:e}),m.jsx("div",{className:"st-section-content",children:D.Children.map(r,o=>m.jsx(Fy,{children:o}))})]}),Fy=({children:e})=>m.jsx("div",{className:"st-section-content-row",children:e}),Dy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.apt.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,o={comment:m.jsxs(z,{ns:"translation",i18nKey:"distributions.apt.steps.addRepository",children:[m.jsx("b",{children:"Step 3:"})," Add the repository via the following command"]}),snippets:i.getAddRepositoryCommands(e,t.data.os).map(({ubuntuVersionNumber:l,command:a})=>({comment:`Ubuntu ${l}`,command:a}))},s={downloadKey:{comment:m.jsxs(z,{t:n,i18nKey:"download",values:{filename:i.keyFilename},children:[m.jsx("b",{children:"Step 1:"})," Download the ",m.jsx(Oe,{href:i.keyHref,children:i.keyFilename}),". You can also use the following command"]}),command:i.downloadKeyCommand},addKey:{comment:m.jsxs(z,{t:n,i18nKey:"addKey",children:[m.jsx("b",{children:"Step 2:"})," Add this key to the system keyring"]}),command:i.addKeyCommand},addRepository:o,updatePackages:{comment:m.jsxs(z,{t:n,i18nKey:"updateList",children:[m.jsx("b",{children:"Step 4:"})," Update the list of packages via the update command"]}),command:i.updatePackagesCommand},verifyAptCache:{comment:m.jsxs(z,{t:n,i18nKey:"verify",children:[m.jsx("b",{children:"Step 5:"})," Verify that the APT repository is properly set up. Run the apt-cache command to see a list of all available OpenVINO packages and components"]}),command:i.verifyAptCacheCommand},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 6:"})," Install OpenVINO Runtime"]}),command:i.getInstallCommand(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...s.downloadKey}),m.jsx(b,{...s.addKey}),m.jsx(Ty,{...s.addRepository}),m.jsx(b,{...s.updatePackages}),m.jsx(b,{...s.verifyAptCache}),m.jsx(b,{...s.install})]})},Uy=({distribution:e})=>{const{t}=$("translation",{keyPrefix:"distributions.brew.steps"}),{t:n}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:r}=e.data,i={install:{comment:m.jsx(z,{t,i18nKey:"install",children:"Download and install the package"}),command:r.install,onCopy:()=>Ge.install()}};return m.jsx(Ce,{title:n("install"),accent:!0,testId:"instructions",children:m.jsx(b,{...i.install})})},zy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.conan.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,{txtFilename:o,cmakeFilename:s}=i,l={createConanFile:{comment:m.jsxs(z,{t:n,i18nKey:"createConanFile",values:{txtFilename:o},children:[m.jsx("b",{children:"Step 1:"})," Create a ",m.jsx("b",{children:o})," file for your OpenVINO project and add “openvino” dependency in there"]}),command:i.conanTXTContent(e)},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",values:{cmakeFilename:s},children:[m.jsx("b",{children:"Step 2:"})," Run the command below to create ",m.jsx("b",{children:s})," file, which will be used to compile your project with OpenVINO"]}),command:i.install,onCopy:()=>Ge.install()},compile:{comment:m.jsxs(z,{t:n,i18nKey:"compile",children:[m.jsx("b",{children:"Step 3:"})," Configure and compile your project with OpenVINO"]}),command:i.compile}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...l.createConanFile}),m.jsx(b,{...l.install}),m.jsx(b,{...l.compile})]})},Vy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.conda.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,o={createEnv:{comment:m.jsxs(z,{t:n,i18nKey:"createEnv",children:[m.jsx("b",{children:"Step 1:"})," Create the Anaconda environment (Python 3.10 used as an example)"]}),command:i.createEnv},activateEnv:{comment:m.jsxs(z,{t:n,i18nKey:"activateEnv",children:[m.jsx("b",{children:"Step 2:"})," Activate the Anaconda environment"]}),command:i.activateEnv},upgradePip:{comment:m.jsxs(z,{t:n,i18nKey:"update",children:[m.jsx("b",{children:"Step 3:"})," Update the Anaconda to latest version"]}),command:i.update},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 4:"})," Download and install the package"]}),command:i.getInstall(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...o.createEnv}),m.jsx(b,{...o.activateEnv}),m.jsx(b,{...o.upgradePip}),m.jsx(b,{...o.install})]})},fs=({ovPackage:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.download"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),i={[A.ARCHIVE]:e.key===Ne.OPENVINO_BASE?n("downloadArchives"):n("downloadArchivesGenAI"),[A.DOCKER]:n("gotoDocker"),[A.SNAP]:n("gotoInstallInstruction")}[t.key],o=m.jsxs(m.Fragment,{children:[n("useFollowingLink"),m.jsx("br",{}),m.jsx("b",{children:m.jsx(Oe,{href:t.data.downloadLink,testId:"download-button",onClick:()=>Ge.install(),children:i})})]});return m.jsx(Ce,{title:r("install"),accent:!0,testId:"instructions",children:m.jsx(b,{comment:o})})},by=({ovPackage:e,version:t,distribution:n})=>{const{t:r}=$("translation",{keyPrefix:"distributions.githubGitee"}),{t:i}=$("translation",{keyPrefix:"selectorForm.titles"}),o={clone:{comment:m.jsxs(z,{t:r,i18nKey:"steps.useGitClone",children:[m.jsx("b",{children:"Step 1:"})," Use Git to clone the OpenVINO toolkit repository"]}),command:n.data.commands.getCloneCommand(e,t),onCopy:()=>Ge.install()},build:{comment:m.jsxs(z,{t:r,i18nKey:"steps.buildInstructions",children:[m.jsx("b",{children:"Step 2:"})," Follow the ",m.jsx(Oe,{href:n.data.links.getBuildInstructionsLink(e,t),testId:"build-instructions-link",children:"instructions to build from source"})]})}};return m.jsxs(Ce,{title:i("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...o.clone}),m.jsx(b,{...o.build})]})},My=({distribution:e,version:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.npm.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=e.data,o={install:{comment:m.jsx(z,{t:n,i18nKey:"install",children:"Download and install the package"}),command:i.getInstall(t),onCopy:()=>Ge.install()}};return m.jsx(Ce,{title:r("install"),accent:!0,testId:"instructions",children:m.jsx(b,{...o.install})})},$y=({ovPackage:e,environment:t,os:n,version:r,distribution:i})=>{const{t:o}=$("translation",{keyPrefix:"distributions.pip.steps"}),{t:s}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:l}=i.data,a=l.getCreateVenvCommand(n,r),u=l.getActivateVenvCommand(n,r),p=l.getInstallCommand({ovPackage:e,environment:t,os:n,version:r,distribution:i}),d={createEnv:{comment:m.jsxs(z,{t:o,i18nKey:"createVenv",children:[m.jsx("b",{children:"Step 1:"})," Create virtual environment"]}),command:a},activateEnv:{comment:m.jsxs(z,{t:o,i18nKey:"activateVenv",children:[m.jsx("b",{children:"Step 2:"})," Activate virtual environment"]}),command:u},upgradePip:{comment:m.jsxs(z,{t:o,i18nKey:"upgradePip",children:[m.jsx("b",{children:"Step 3:"})," Upgrade pip to latest version"]}),command:l.upgradeCommand},install:{comment:m.jsxs(z,{t:o,i18nKey:"install",children:[m.jsx("b",{children:"Step 4:"})," Download and install the package"]}),command:p,onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:s("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...d.createEnv}),m.jsx(b,{...d.activateEnv}),m.jsx(b,{...d.upgradePip}),m.jsx(b,{...d.install})]})},By=({distribution:e})=>{const{t}=$("translation",{keyPrefix:"distributions.vcpkg.steps"}),{t:n}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:r}=e.data,i={install:{comment:m.jsx(z,{t,i18nKey:"install",children:"Download and install the package"}),command:r.install,onCopy:()=>Ge.install()}};return m.jsx(Ce,{title:n("install"),accent:!0,testId:"instructions",children:m.jsx(b,{...i.install})})},Ky=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.yum.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{yumYear:i}=e.metadata,{commands:o}=t.data,s={createRepo:{comment:m.jsxs(z,{t:n,i18nKey:"createRepoFile",children:[m.jsx("b",{children:"Step 1:"})," Create the YUM repo file in the /tmp directory as a normal user"]}),command:o.getCreateRepoCommand(e)},moveRepoFile:{comment:m.jsxs(z,{t:n,i18nKey:"moveFile",values:{year:i,directory:o.directory},children:[m.jsx("b",{children:"Step 2:"})," Move the new openvino-",{year:i},".repo file to the YUM configuration directory ",m.jsx("b",{children:o.directory})]}),command:o.getMoveRepoFileCommand(e)},verifyRepo:{comment:m.jsxs(z,{t:n,i18nKey:"verify",children:[m.jsx("b",{children:"Step 3:"})," Verify that the new repo is properly setup by running the following command"]}),command:o.verifyRepoCommand},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 4:"})," Install OpenVINO Runtime"]}),command:o.getInstallCommand(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...s.createRepo}),m.jsx(b,{...s.moveRepoFile}),m.jsx(b,{...s.verifyRepo}),m.jsx(b,{...s.install})]})},Hy=({version:e,distribution:t})=>{const{t:n}=$("translation",{keyPrefix:"distributions.zypper.steps"}),{t:r}=$("translation",{keyPrefix:"selectorForm.titles"}),{commands:i}=t.data,o={addRepo:{comment:m.jsxs(z,{t:n,i18nKey:"addRepo",children:[m.jsx("b",{children:"Step 1:"})," Create a ZYPPER repository file with the command below"]}),command:i.addRepo},refresh:{comment:m.jsxs(z,{t:n,i18nKey:"refresh",children:[m.jsx("b",{children:"Step 2:"})," Refresh repositories"]}),command:i.refresh},install:{comment:m.jsxs(z,{t:n,i18nKey:"install",children:[m.jsx("b",{children:"Step 3:"})," Install OpenVINO"]}),command:i.getInstallCommand(e),onCopy:()=>Ge.install()}};return m.jsxs(Ce,{title:r("install"),accent:!0,testId:"instructions",children:[m.jsx(b,{...o.addRepo}),m.jsx(b,{...o.refresh}),m.jsx(b,{...o.install})]})},Wy=({state:e})=>{var r;const t={ovPackage:e.PACKAGE.selected,environment:(r=e.ENVIRONMENT)==null?void 0:r.selected,os:e.OP_SYSTEM.selected,version:e.VERSION.selected,distribution:e.DISTRIBUTION.selected};if(t.distribution.key===A.PIP)return m.jsx($y,{...t,distribution:t.distribution});if(t.distribution.key===A.ARCHIVE)return m.jsx(fs,{...t,distribution:t.distribution});if(t.distribution.key===A.DOCKER)return m.jsx(fs,{...t,distribution:t.distribution});if(t.distribution.key===A.GITHUB||t.distribution.key===A.GITEE)return m.jsx(by,{...t,distribution:t.distribution});if(t.distribution.key===A.APT)return m.jsx(Dy,{...t,distribution:t.distribution});if(t.distribution.key===A.YUM)return m.jsx(Ky,{...t,distribution:t.distribution});if(t.distribution.key===A.CONDA)return m.jsx(Vy,{...t,distribution:t.distribution});if(t.distribution.key===A.BREW)return m.jsx(Uy,{...t,distribution:t.distribution});if(t.distribution.key===A.VCPKG)return m.jsx(By,{...t,distribution:t.distribution});if(t.distribution.key===A.CONAN)return m.jsx(zy,{...t,distribution:t.distribution});if(t.distribution.key===A.NPM)return m.jsx(My,{...t,distribution:t.distribution});if(t.distribution.key===A.ZYPPER)return m.jsx(Hy,{...t,distribution:t.distribution});if(t.distribution.key===A.SNAP)return m.jsx(fs,{...t,distribution:t.distribution});const n=t.distribution;throw new Error(`${n}`)};function Gy(){const{t:e}=$("common",{keyPrefix:"relatedTools"}),{t}=$("translation");return m.jsx(Ce,{title:t("selectorForm.titles.relatedTools"),testId:"relatedTools",accent:!0,dashed:!0,children:m.jsxs("div",{className:"st-related-tools-links",children:[m.jsx(Oe,{href:"https://github.com/openvinotoolkit/openvino_notebooks",testId:"notebooks-link",children:e("OpenVINONotebooks")}),m.jsx(Oe,{href:"https://huggingface.co/docs/optimum/main/intel/openvino/inference",testId:"hf_optimum-link",children:"Hugging Face + Optimum Intel"}),m.jsx("div",{children:m.jsxs(z,{t:e,i18nKey:"tokenizers",children:[m.jsx(Oe,{href:"https://docs.openvino.ai/2024/learn-openvino/llm_inference_guide/ov-tokenizers.html",testId:"openvino_tokenizers-link",children:"OpenVINO Tokenizers"}),"to streamline tokenizer conversion"]})}),m.jsx("div",{children:m.jsxs(z,{t:e,i18nKey:"nncf",children:[m.jsx(Oe,{href:"https://docs.openvino.ai/2024/openvino-workflow/model-optimization-guide/compressing-models-during-training.html",testId:"nncf-link",children:"NNCF"}),"for implementing compression algorithms on models"]})}),m.jsx("div",{children:m.jsxs(z,{t:e,i18nKey:"ovms",children:[m.jsx(Oe,{href:"https://docs.openvino.ai/2024/ovms_what_is_openvino_model_server.html",testId:"ovms-link",children:"OVMS"}),"for serving models optimized for deployment"]})})]})})}function Yy({state:e}){const t=e.PACKAGE.selected,n=e.DISTRIBUTION.selected,r=e.VERSION.selected,{t:i}=$("translation",{keyPrefix:"selectorForm.titles"}),{t:o}=$("common",{keyPrefix:"resources"});let s=m.jsx(m.Fragment,{});if(A.GITHUB===n.key||A.GITEE===n.key){const l=n.key===A.GITHUB?t.key===Ne.OPENVINO_BASE?o("githubRepository"):o("githubGenAIRepository"):t.key===Ne.OPENVINO_BASE?o("giteeRepository"):o("giteeGenAIRepository");s=m.jsxs(m.Fragment,{children:[m.jsx(Oe,{href:n.data.links.getBuildInstructionsLink(t,r),testId:"install-instructions-link",children:o("installationInstructions")}),m.jsx(Oe,{href:n.data.links.getRepositoryLink(t,r),testId:"repository-link",children:l})]})}else s=m.jsx(Oe,{href:n.data.linksSet.installation,testId:"install-instructions-link",children:o("installationInstructions")});return m.jsx(Ce,{title:i("resources"),testId:"resources",accent:!0,children:m.jsxs("div",{className:"st-resources-links",children:[m.jsxs("div",{children:[s,m.jsx(Oe,{href:"https://github.com/openvinotoolkit/openvino/releases",testId:"previous-releases-link",children:o("prevReleases")}),m.jsx(Oe,{href:r.metadata.systemRequirementsLink,testId:"system-requirements-link",children:o("systemRequirements")})]}),m.jsxs("div",{children:[m.jsx(Oe,{href:r.metadata.getStartedLink,testId:"get-started-link",children:o("getStarted")}),m.jsx(Oe,{href:r.metadata.troubleshootingLink,testId:"troubleshooting-link",children:o("troubleshooting")})]})]})})}const Oi={tooltipToggle:"spark-tooltip-toggle",tooltipPopover:"spark-tooltip spark-tooltip-size-m spark-shadow spark-tooltip-bottom",tooltipLabel:"spark-tooltip-label",tooltipArrow:"spark-tooltip-tip"},Qy=({content:e})=>{const[t,n]=D.useState(!1);return m.jsx("div",{className:"help-tooltip",children:m.jsxs("div",{className:Oi.tooltipToggle,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[m.jsx("div",{"aria-hidden":"true",role:"img",className:"help-tooltip-icon",children:m.jsx(Ry,{})}),t&&m.jsxs("div",{className:`help-tooltip-popover ${Oi.tooltipPopover}`,role:"tooltip",children:[m.jsx("span",{className:`help-tooltip-popover-content ${Oi.tooltipLabel}`,children:e}),m.jsx("span",{className:Oi.tooltipArrow})]})]})})},ps={toggleSwitchField:"spark-fieldlabel spark-fieldlabel-size-m spark-toggle-switch spark-toggle-switch-action spark-toggle-switch-size-l",toggleSwitchInput:"spark-focus-visible spark-focus-visible-suppress spark-focus-visible-adjacent",toggleSwitchSelector:"spark-toggle-switch-selector spark-focus-visible spark-focus-visible-snap"},Xy=({label:e,checked:t=!1,onClick:n,testId:r})=>m.jsxs("label",{className:ps.toggleSwitchField,"data-cy":r,children:[m.jsx("input",{type:"checkbox",className:ps.toggleSwitchInput,role:"switch",checked:t,onChange:()=>n==null?void 0:n()}),m.jsx("span",{className:ps.toggleSwitchSelector}),m.jsx("div",{children:e})]}),cn={toggleButton:"spark-button spark-button-size-l spark-focus-visible spark-focus-visible-self spark-focus-visible-snap",toggleButtonGroup:"spark-button-group spark-button-group-orientation-horizontal spark-button-group-align-start spark-button-group-spacing-l",actionButton:"spark-button-action",secondaryButton:"spark-button-secondary",disabledButton:"spark-button-disabled",buttonContent:"spark-button-content",fontXs:"spark-font-25"},Hf=({onClick:e,checked:t=!1,disabled:n=!1,title:r,subtitle:i,value:o})=>m.jsx("button",{className:`${cn.toggleButton} ${t?cn.actionButton:cn.secondaryButton} ${n&&cn.disabledButton}`,type:"button",role:"radio","aria-checked":t,onClick:()=>e==null?void 0:e(),"data-cy":o,"aria-label":r,children:m.jsxs("span",{className:cn.buttonContent,children:[m.jsx("span",{className:"title",children:r}),i&&m.jsx("span",{className:`${cn.fontXs} subtitle`,children:i})]})}),Wf=({children:e,className:t})=>m.jsx("div",{className:`option-button-group ${t||""} ${cn.toggleButtonGroup}`,children:e});function Jy({title:e,options:t,level:n}){const r=D.useContext(ma),i=t.some(({checked:u})=>u),[o,s]=D.useState(i),l=t.map(({level:u,key:p,checked:d,metadata:h})=>m.jsx(Hf,{value:`${u}_${p}`,checked:d,title:h.title,onClick:()=>r(u,p)},p)),{t:a}=$("translation",{keyPrefix:"frameworks"});return m.jsxs(Ce,{title:e,testId:n,children:[m.jsxs(m.Fragment,{children:[m.jsx(Xy,{label:a("install"),checked:o,onClick:()=>s(!o),testId:"frameworks-toggle-switch"}),m.jsx(Qy,{content:a("tooltip")})]}),m.jsx(m.Fragment,{children:o&&m.jsx(Wf,{children:l})})]})}function wr({title:e,options:t,level:n}){const r=D.useContext(ma),i=t.map(({level:o,key:s,checked:l,metadata:a})=>m.jsx(Hf,{value:`${o}_${s}`,checked:l,title:a.title,subtitle:a.subtitle,onClick:()=>r(o,s)},s));return m.jsx(Ce,{title:e,testId:n,children:m.jsx(Wf,{children:i})})}function Zy({state:e}){var a,u;const t=e.PACKAGE.nodes,n=e.VERSION.nodes,r=(a=e.ENVIRONMENT)==null?void 0:a.nodes.map(p=>({...p,metadata:{...p.metadata,subtitle:void 0}})),i=e.OP_SYSTEM.nodes,o=e.DISTRIBUTION.nodes,s=(u=e.FRAMEWORK)==null?void 0:u.nodes;D.useEffect(()=>Ge.combinationView(),[e]);const{t:l}=$("translation",{keyPrefix:"selectorForm.titles"});return m.jsxs(m.Fragment,{children:[m.jsx(wr,{title:l("package"),options:t,level:j.PACKAGE}),m.jsx(wr,{title:l("version"),options:n,level:j.VERSION}),r&&m.jsx(wr,{title:l("envinronment"),options:r,level:j.ENVIRONMENT}),m.jsx(wr,{title:l("os"),options:i,level:j.OP_SYSTEM}),m.jsx(wr,{title:l("distribution"),options:o,level:j.DISTRIBUTION}),s&&m.jsx(Jy,{title:l("frameworks"),options:s,level:j.FRAMEWORK})]})}const{SelectorContext:ma,useSelector:qy}=Ny();Ge.initialize(window.parent);function e0(){const[e,t]=qy();return m.jsx("div",{className:`st-responsive-container ${Kf?"idz-page":""}`,children:m.jsxs(ma.Provider,{value:t,children:[m.jsx(Zy,{state:e}),m.jsx(Wy,{state:e}),m.jsx(Yy,{state:e}),m.jsx(Gy,{})]})})}vs.createRoot(document.getElementById("root")).render(m.jsx(cp.StrictMode,{children:m.jsx(e0,{})})); diff --git a/docs/sphinx_setup/_static/selector-tool/selector-451bede.html b/docs/sphinx_setup/_static/selector-tool/selector-2a63478.html similarity index 78% rename from docs/sphinx_setup/_static/selector-tool/selector-451bede.html rename to docs/sphinx_setup/_static/selector-tool/selector-2a63478.html index c64aef27138b60..6bff085dfdb3be 100644 --- a/docs/sphinx_setup/_static/selector-tool/selector-451bede.html +++ b/docs/sphinx_setup/_static/selector-tool/selector-2a63478.html @@ -1,7 +1,7 @@ - + Download Intel® Distribution of OpenVINO™ Toolkit @@ -9,7 +9,7 @@ name="description" content="Download a version of the Intel® Distribution of OpenVINO™ toolkit for Linux, Windows, or macOS." /> - +