diff --git a/demos/assets/index-ac13974b.js b/demos/assets/index-d9868488.js similarity index 99% rename from demos/assets/index-ac13974b.js rename to demos/assets/index-d9868488.js index 205cc5e..58f2347 100644 --- a/demos/assets/index-ac13974b.js +++ b/demos/assets/index-d9868488.js @@ -1228,4 +1228,4 @@ ${M.join(` data-dom-id="fileInput" class="hidden fileInput" /> -`;let r;function a(){if(!r){const E=document.createElement("template");E.innerHTML=m,r=E.content}return document.importNode(r,!0)}var T=a;_.default=T}],n={};function f(k){var _=n[k];if(_!==void 0)return _.exports;var m=n[k]={exports:{}};return l[k](m,m.exports,f),m.exports}var I={};return(()=>{var m;var k=I;Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(k,"createViewerApp",{enumerable:!0,get:function(){return _.createViewerApp}}),Object.defineProperty(k,"getViewerConfiguration",{enumerable:!0,get:function(){return _.getViewerConfiguration}});var _=f(1);(m=document.blockUnblockOnload)==null||m.call(document,!0)})(),I})())})(app$1);var appExports=app$1.exports;const viewer="";let src$1="./document-viewer/web/compressed.tracemonkey-pldi-09.pdf";const appOptions$1={src:src$1,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApp(e){return console.log("injectApp",e),appExports.createViewerApp({parent:e,...appOptions$1})}const CustomToolbar_vue_vue_type_style_index_0_scoped_e7dda392_lang="",_withScopeId=e=>(pushScopeId("data-v-e7dda392"),e=e(),popScopeId(),e),_hoisted_1$1={class:"pdf-viewer"},_hoisted_2$1={class:"viewer-header"},_hoisted_3$1=_withScopeId(()=>createBaseVNode("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M4 6H20V8H4V6ZM4 11H20V13H4V11ZM4 16H20V18H4V16Z",fill:"black"})],-1)),_hoisted_4$1=[_hoisted_3$1],_hoisted_5={class:"header-item"},_hoisted_6=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M7.5,2l-4,4,4,4,1-1-3-3,3-3Z"})],-1)),_hoisted_7=[_hoisted_6],_hoisted_8=["value"],_hoisted_9=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M4.5,10l4-4-4-4-1,1,3,3-3,3Z"})],-1)),_hoisted_10=[_hoisted_9],_sfc_main$1={__name:"CustomToolbar",setup(e){const t=ref(null),l=shallowRef(null),n=ref(1);onMounted(function(){l.value=injectApp(t.value),l.value.initializedPromise.then(function(){l.value.eventBus.on("pagechanging",function(m){n.value=m.pageNumber})})});function f(){l.value.pdfSidebar.toggle()}function I(){l.value.eventBus.dispatch("previouspage")}function k(){l.value.eventBus.dispatch("nextpage")}function _(m){const r=parseInt(m.target.value,10);l.value.pdfViewer.currentPageNumber=r}return(m,r)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",{class:"header-item"},[createBaseVNode("button",{onClick:f,class:"menu-outline header-icon"},_hoisted_4$1)]),createBaseVNode("div",_hoisted_5,[createBaseVNode("button",{onClick:I,class:"prev-page header-icon"},_hoisted_7),createBaseVNode("input",{class:"page-input",type:"text",value:n.value,onChange:_},null,40,_hoisted_8),createBaseVNode("button",{onClick:k,class:"next-page header-icon"},_hoisted_10)])]),createBaseVNode("div",{ref_key:"el$",ref:t,class:"viewer-content"},null,512)]))}},CustomToolbar=_export_sfc(_sfc_main$1,[["__scopeId","data-v-e7dda392"]]);let src="./document-viewer/web/compressed.tracemonkey-pldi-09.pdf";const appOptions={src,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApps(){appExports.createViewerApp({parent:document.getElementById("app1"),...appOptions}),appExports.createViewerApp({parent:document.getElementById("app2"),...appOptions})}const MultipleFiles_vue_vue_type_style_index_0_lang="",_hoisted_1={class:"main"},_hoisted_2=createBaseVNode("div",{id:"app1"},null,-1),_hoisted_3=createBaseVNode("div",{id:"app2"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3],_sfc_main={__name:"MultipleFiles",setup(e){return onMounted(function(){injectApps()}),(t,l)=>(openBlock(),createElementBlock("div",_hoisted_1,_hoisted_4))}},router=createRouter({history:createWebHashHistory("/document-viewer/demos/"),routes:[{path:"/",name:"home",redirect:"/custom-toolbar"},{path:"/custom-toolbar",name:"customToolbar",component:CustomToolbar},{path:"/multiple-pdf-files",name:"multiplePDFFiles",component:_sfc_main}]}),app=createApp(App);app.use(router);app.mount("#app"); +`;let r;function a(){if(!r){const E=document.createElement("template");E.innerHTML=m,r=E.content}return document.importNode(r,!0)}var T=a;_.default=T}],n={};function f(k){var _=n[k];if(_!==void 0)return _.exports;var m=n[k]={exports:{}};return l[k](m,m.exports,f),m.exports}var I={};return(()=>{var m;var k=I;Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(k,"createViewerApp",{enumerable:!0,get:function(){return _.createViewerApp}}),Object.defineProperty(k,"getViewerConfiguration",{enumerable:!0,get:function(){return _.getViewerConfiguration}});var _=f(1);(m=document.blockUnblockOnload)==null||m.call(document,!0)})(),I})())})(app$1);var appExports=app$1.exports;const viewer="";let src="./document-viewer/web/compressed.tracemonkey-pldi-09.pdf";const appOptions={src,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApp(e){return console.log("injectApp",e),appExports.createViewerApp({parent:e,...appOptions})}const CustomToolbar_vue_vue_type_style_index_0_scoped_e7dda392_lang="",_withScopeId=e=>(pushScopeId("data-v-e7dda392"),e=e(),popScopeId(),e),_hoisted_1$1={class:"pdf-viewer"},_hoisted_2$1={class:"viewer-header"},_hoisted_3$1=_withScopeId(()=>createBaseVNode("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M4 6H20V8H4V6ZM4 11H20V13H4V11ZM4 16H20V18H4V16Z",fill:"black"})],-1)),_hoisted_4$1=[_hoisted_3$1],_hoisted_5={class:"header-item"},_hoisted_6=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M7.5,2l-4,4,4,4,1-1-3-3,3-3Z"})],-1)),_hoisted_7=[_hoisted_6],_hoisted_8=["value"],_hoisted_9=_withScopeId(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"22",height:"22"},[createBaseVNode("path",{d:"M4.5,10l4-4-4-4-1,1,3,3-3,3Z"})],-1)),_hoisted_10=[_hoisted_9],_sfc_main$1={__name:"CustomToolbar",setup(e){const t=ref(null),l=shallowRef(null),n=ref(1);onMounted(function(){l.value=injectApp(t.value),l.value.initializedPromise.then(function(){l.value.eventBus.on("pagechanging",function(m){n.value=m.pageNumber})})});function f(){l.value.pdfSidebar.toggle()}function I(){l.value.eventBus.dispatch("previouspage")}function k(){l.value.eventBus.dispatch("nextpage")}function _(m){const r=parseInt(m.target.value,10);l.value.pdfViewer.currentPageNumber=r}return(m,r)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",{class:"header-item"},[createBaseVNode("button",{onClick:f,class:"menu-outline header-icon"},_hoisted_4$1)]),createBaseVNode("div",_hoisted_5,[createBaseVNode("button",{onClick:I,class:"prev-page header-icon"},_hoisted_7),createBaseVNode("input",{class:"page-input",type:"text",value:n.value,onChange:_},null,40,_hoisted_8),createBaseVNode("button",{onClick:k,class:"next-page header-icon"},_hoisted_10)])]),createBaseVNode("div",{ref_key:"el$",ref:t,class:"viewer-content"},null,512)]))}},CustomToolbar=_export_sfc(_sfc_main$1,[["__scopeId","data-v-e7dda392"]]);let src1="./lc_pdf_overview_format.pdf",src2="./recognizing_malformed_pdf_f.pdf";const options1={src:src1,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0},options2={src:src2,resourcePath:"document-viewer",disableCORSCheck:!0,disableAutoSetTitle:!0};function injectApps(){appExports.createViewerApp({parent:document.getElementById("app1"),...options1}),appExports.createViewerApp({parent:document.getElementById("app2"),...options2})}const MultipleFiles_vue_vue_type_style_index_0_lang="",_hoisted_1={class:"main"},_hoisted_2=createBaseVNode("div",{id:"app1"},null,-1),_hoisted_3=createBaseVNode("div",{id:"app2"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3],_sfc_main={__name:"MultipleFiles",setup(e){return onMounted(function(){injectApps()}),(t,l)=>(openBlock(),createElementBlock("div",_hoisted_1,_hoisted_4))}},router=createRouter({history:createWebHashHistory("/document-viewer/demos/"),routes:[{path:"/",name:"home",redirect:"/custom-toolbar"},{path:"/custom-toolbar",name:"customToolbar",component:CustomToolbar},{path:"/multiple-pdf-files",name:"multiplePDFFiles",component:_sfc_main}]}),app=createApp(App);app.use(router);app.mount("#app"); diff --git a/demos/index.html b/demos/index.html index d44b22e..e8753f2 100644 --- a/demos/index.html +++ b/demos/index.html @@ -5,7 +5,7 @@ Vite App - + diff --git a/demos/lc_pdf_overview_format.pdf b/demos/lc_pdf_overview_format.pdf new file mode 100644 index 0000000..f184db6 Binary files /dev/null and b/demos/lc_pdf_overview_format.pdf differ diff --git a/demos/recognizing_malformed_pdf_f.pdf b/demos/recognizing_malformed_pdf_f.pdf new file mode 100644 index 0000000..6301fef Binary files /dev/null and b/demos/recognizing_malformed_pdf_f.pdf differ diff --git a/docs/404.html b/docs/404.html index 5b70271..f1ccac7 100644 --- a/docs/404.html +++ b/docs/404.html @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.
- + \ No newline at end of file diff --git a/docs/api.html b/docs/api.html index 361508e..4bc0c7f 100644 --- a/docs/api.html +++ b/docs/api.html @@ -8,11 +8,11 @@ - + - - + + @@ -21,8 +21,8 @@
Skip to content

API

createViewerApp

typescript
function createViewerApp(options: Options): PDFViewerApplication {
   // ...
-}

Create a viewer app.

Options

properties

nametypedescriptiondefaultValue
parentHTMLElementElement the PDF viewer will be render to.-
srcstring,TypedArray,ArrayBufferThe source of the PDF document.-
resourcePathstringThe resource path of pdf.js.-
disableCORSCheck optionalbooleanDisable CORS check of pdf.js.false
disableAutoSetTitle optionalbooleanDisable auto-set title of document caused by pdf.js.false
appOptions optionalAppOptionsDefault app options of pdf.js.{}

Last updated:

- +}

Create a viewer app.

Options

properties

nametypedescriptiondefaultValue
parentHTMLElementElement the PDF viewer will be render to.-
srcstring,TypedArray,ArrayBufferThe source of the PDF document.-
resourcePathstringThe resource path of pdf.js.-
disableCORSCheck optionalbooleanDisable CORS check of pdf.js.false
disableAutoSetTitle optionalbooleanDisable auto-set title of document caused by pdf.js.false
appOptions optionalAppOptionsDefault app options of pdf.js.{}
+ \ No newline at end of file diff --git a/docs/architecture.html b/docs/architecture.html index d5b7ebc..aa975ea 100644 --- a/docs/architecture.html +++ b/docs/architecture.html @@ -8,19 +8,19 @@ - + - - + + -
Skip to content

PDF.js Architecture

Overview of the PDF.js Architecture

Read more

Last updated:

- +
Skip to content

PDF.js Architecture

Overview of the PDF.js Architecture

Read more

Last updated:

+ \ No newline at end of file diff --git a/docs/assets/api.md.Biwly_MI.js b/docs/assets/api.md.BaksInAf.js similarity index 98% rename from docs/assets/api.md.Biwly_MI.js rename to docs/assets/api.md.BaksInAf.js index 96e5838..a7b1b6b 100644 --- a/docs/assets/api.md.Biwly_MI.js +++ b/docs/assets/api.md.BaksInAf.js @@ -1,3 +1,3 @@ -import{_ as t,c as e,o as a,a4 as i}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"PDF Viewer API","description":"","frontmatter":{"title":"PDF Viewer API","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/api.html"}]]},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":1711289222000}'),s={name:"api.md"},d=i(`

API

createViewerApp

typescript
function createViewerApp(options: Options): PDFViewerApplication {
+import{_ as t,c as e,o as a,a4 as i}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"PDF Viewer API","description":"","frontmatter":{"title":"PDF Viewer API","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/api.html"}]]},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":1711325901000}'),s={name:"api.md"},d=i(`

API

createViewerApp

typescript
function createViewerApp(options: Options): PDFViewerApplication {
   // ...
 }

Create a viewer app.

Options

properties

nametypedescriptiondefaultValue
parentHTMLElementElement the PDF viewer will be render to.-
srcstring,TypedArray,ArrayBufferThe source of the PDF document.-
resourcePathstringThe resource path of pdf.js.-
disableCORSCheck optionalbooleanDisable CORS check of pdf.js.false
disableAutoSetTitle optionalbooleanDisable auto-set title of document caused by pdf.js.false
appOptions optionalAppOptionsDefault app options of pdf.js.{}
`,8),r=[d];function p(o,n,l,h,c,k){return a(),e("div",null,r)}const b=t(s,[["render",p]]);export{f as __pageData,b as default}; diff --git a/docs/assets/api.md.Biwly_MI.lean.js b/docs/assets/api.md.BaksInAf.lean.js similarity index 87% rename from docs/assets/api.md.Biwly_MI.lean.js rename to docs/assets/api.md.BaksInAf.lean.js index 39661d2..fe29097 100644 --- a/docs/assets/api.md.Biwly_MI.lean.js +++ b/docs/assets/api.md.BaksInAf.lean.js @@ -1 +1 @@ -import{_ as t,c as e,o as a,a4 as i}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"PDF Viewer API","description":"","frontmatter":{"title":"PDF Viewer API","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/api.html"}]]},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":1711289222000}'),s={name:"api.md"},d=i("",8),r=[d];function p(o,n,l,h,c,k){return a(),e("div",null,r)}const b=t(s,[["render",p]]);export{f as __pageData,b as default}; +import{_ as t,c as e,o as a,a4 as i}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"PDF Viewer API","description":"","frontmatter":{"title":"PDF Viewer API","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/api.html"}]]},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":1711325901000}'),s={name:"api.md"},d=i("",8),r=[d];function p(o,n,l,h,c,k){return a(),e("div",null,r)}const b=t(s,[["render",p]]);export{f as __pageData,b as default}; diff --git a/docs/assets/app.DKNBFj6_.js b/docs/assets/app.CfVHZnRW.js similarity index 95% rename from docs/assets/app.DKNBFj6_.js rename to docs/assets/app.CfVHZnRW.js index 2ce0901..1ea27fa 100644 --- a/docs/assets/app.DKNBFj6_.js +++ b/docs/assets/app.CfVHZnRW.js @@ -4,4 +4,4 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{d as p,j as o,a5 as u,u as l,l as c,z as f,a6 as d,a7 as m,a8 as h,a9 as g,aa as A,ab as P,ac as _,ad as v,ae as y,af as C,ag as E,ah as b,ai as w,Y as R}from"./chunks/framework.hrgFA2vO.js";import{t as S}from"./chunks/theme.BI8tTASj.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),T=p({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=l();return c(()=>{f(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&d(),m(),h(),s.setup&&s.setup(),()=>g(s.Layout)}});async function D(){globalThis.__VITEPRESS__=!0;const e=L(),a=j();a.provide(A,e);const t=P(e.route);return a.provide(_,t),a.component("Content",v),a.component("ClientOnly",y),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:C}),{app:a,router:e,data:t}}function j(){return E(T)}function L(){let e=o,a;return b(t=>{let n=w(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=R(()=>import(n),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&D().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{D as createApp}; +import{d as p,j as o,a5 as u,u as l,l as c,z as f,a6 as d,a7 as m,a8 as h,a9 as g,aa as A,ab as P,ac as _,ad as v,ae as y,af as C,ag as E,ah as b,ai as w,Y as R}from"./chunks/framework.hrgFA2vO.js";import{t as S}from"./chunks/theme.Bek6KSJm.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),T=p({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=l();return c(()=>{f(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&d(),m(),h(),s.setup&&s.setup(),()=>g(s.Layout)}});async function D(){globalThis.__VITEPRESS__=!0;const e=L(),a=j();a.provide(A,e);const t=P(e.route);return a.provide(_,t),a.component("Content",v),a.component("ClientOnly",y),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:C}),{app:a,router:e,data:t}}function j(){return E(T)}function L(){let e=o,a;return b(t=>{let n=w(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=R(()=>import(n),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&D().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{D as createApp}; diff --git a/docs/assets/architecture.md.DyrvLC8x.js b/docs/assets/architecture.md.Pya0N7Di.js similarity index 94% rename from docs/assets/architecture.md.DyrvLC8x.js rename to docs/assets/architecture.md.Pya0N7Di.js index dc34d78..ab2369f 100644 --- a/docs/assets/architecture.md.DyrvLC8x.js +++ b/docs/assets/architecture.md.Pya0N7Di.js @@ -1 +1 @@ -import{_ as t,c as r,o as c,m as e,a}from"./chunks/framework.hrgFA2vO.js";const P=JSON.parse('{"title":"The Architecture of PDF.js Project","description":"","frontmatter":{"title":"The Architecture of PDF.js Project","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/architecture.html"}]]},"headers":[],"relativePath":"architecture.md","filePath":"architecture.md","lastUpdated":1711289222000}'),i={name:"architecture.md"},s=e("h1",{id:"pdf-js-architecture",tabindex:"-1"},[a("PDF.js Architecture "),e("a",{class:"header-anchor",href:"#pdf-js-architecture","aria-label":'Permalink to "PDF.js Architecture"'},"​")],-1),o=e("p",null,[e("img",{src:"https://hacks.mozilla.org/files/2021/09/pdfjs_architecture.png",alt:"Overview of the PDF.js Architecture"})],-1),h=e("p",null,[e("a",{href:"https://hacks.mozilla.org/2021/10/implementing-form-filling-and-accessibility-in-the-firefox-pdf-viewer/",target:"_blank",rel:"noreferrer"},"Read more")],-1),n=[s,o,h];function l(d,f,p,u,_,m){return c(),r("div",null,n)}const g=t(i,[["render",l]]);export{P as __pageData,g as default}; +import{_ as t,c as r,o as c,m as e,a}from"./chunks/framework.hrgFA2vO.js";const P=JSON.parse('{"title":"The Architecture of PDF.js Project","description":"","frontmatter":{"title":"The Architecture of PDF.js Project","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/architecture.html"}]]},"headers":[],"relativePath":"architecture.md","filePath":"architecture.md","lastUpdated":1711325901000}'),i={name:"architecture.md"},s=e("h1",{id:"pdf-js-architecture",tabindex:"-1"},[a("PDF.js Architecture "),e("a",{class:"header-anchor",href:"#pdf-js-architecture","aria-label":'Permalink to "PDF.js Architecture"'},"​")],-1),o=e("p",null,[e("img",{src:"https://hacks.mozilla.org/files/2021/09/pdfjs_architecture.png",alt:"Overview of the PDF.js Architecture"})],-1),h=e("p",null,[e("a",{href:"https://hacks.mozilla.org/2021/10/implementing-form-filling-and-accessibility-in-the-firefox-pdf-viewer/",target:"_blank",rel:"noreferrer"},"Read more")],-1),n=[s,o,h];function l(d,f,p,u,_,m){return c(),r("div",null,n)}const g=t(i,[["render",l]]);export{P as __pageData,g as default}; diff --git a/docs/assets/architecture.md.DyrvLC8x.lean.js b/docs/assets/architecture.md.Pya0N7Di.lean.js similarity index 94% rename from docs/assets/architecture.md.DyrvLC8x.lean.js rename to docs/assets/architecture.md.Pya0N7Di.lean.js index dc34d78..ab2369f 100644 --- a/docs/assets/architecture.md.DyrvLC8x.lean.js +++ b/docs/assets/architecture.md.Pya0N7Di.lean.js @@ -1 +1 @@ -import{_ as t,c as r,o as c,m as e,a}from"./chunks/framework.hrgFA2vO.js";const P=JSON.parse('{"title":"The Architecture of PDF.js Project","description":"","frontmatter":{"title":"The Architecture of PDF.js Project","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/architecture.html"}]]},"headers":[],"relativePath":"architecture.md","filePath":"architecture.md","lastUpdated":1711289222000}'),i={name:"architecture.md"},s=e("h1",{id:"pdf-js-architecture",tabindex:"-1"},[a("PDF.js Architecture "),e("a",{class:"header-anchor",href:"#pdf-js-architecture","aria-label":'Permalink to "PDF.js Architecture"'},"​")],-1),o=e("p",null,[e("img",{src:"https://hacks.mozilla.org/files/2021/09/pdfjs_architecture.png",alt:"Overview of the PDF.js Architecture"})],-1),h=e("p",null,[e("a",{href:"https://hacks.mozilla.org/2021/10/implementing-form-filling-and-accessibility-in-the-firefox-pdf-viewer/",target:"_blank",rel:"noreferrer"},"Read more")],-1),n=[s,o,h];function l(d,f,p,u,_,m){return c(),r("div",null,n)}const g=t(i,[["render",l]]);export{P as __pageData,g as default}; +import{_ as t,c as r,o as c,m as e,a}from"./chunks/framework.hrgFA2vO.js";const P=JSON.parse('{"title":"The Architecture of PDF.js Project","description":"","frontmatter":{"title":"The Architecture of PDF.js Project","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/architecture.html"}]]},"headers":[],"relativePath":"architecture.md","filePath":"architecture.md","lastUpdated":1711325901000}'),i={name:"architecture.md"},s=e("h1",{id:"pdf-js-architecture",tabindex:"-1"},[a("PDF.js Architecture "),e("a",{class:"header-anchor",href:"#pdf-js-architecture","aria-label":'Permalink to "PDF.js Architecture"'},"​")],-1),o=e("p",null,[e("img",{src:"https://hacks.mozilla.org/files/2021/09/pdfjs_architecture.png",alt:"Overview of the PDF.js Architecture"})],-1),h=e("p",null,[e("a",{href:"https://hacks.mozilla.org/2021/10/implementing-form-filling-and-accessibility-in-the-firefox-pdf-viewer/",target:"_blank",rel:"noreferrer"},"Read more")],-1),n=[s,o,h];function l(d,f,p,u,_,m){return c(),r("div",null,n)}const g=t(i,[["render",l]]);export{P as __pageData,g as default}; diff --git a/docs/assets/chunks/@localSearchIndexroot.CYK20DMC.js b/docs/assets/chunks/@localSearchIndexroot.CYK20DMC.js new file mode 100644 index 0000000..6fb2910 --- /dev/null +++ b/docs/assets/chunks/@localSearchIndexroot.CYK20DMC.js @@ -0,0 +1 @@ +const e=`{"documentCount":37,"nextId":37,"documentIds":{"0":"/document-viewer/docs/api.html#api","1":"/document-viewer/docs/api.html#createviewerapp","2":"/document-viewer/docs/api.html#options","3":"/document-viewer/docs/api.html#properties","4":"/document-viewer/docs/architecture.html#pdf-js-architecture","5":"/document-viewer/docs/communication.html#main-and-worker-thread-communication","6":"/document-viewer/docs/get-started.html#pdf-viewer","7":"/document-viewer/docs/get-started.html#quick-start","8":"/document-viewer/docs/get-started.html#prepare-resources","9":"/document-viewer/docs/get-started.html#resource-list","10":"/document-viewer/docs/learned-knowledge/#acknowledge","11":"/document-viewer/docs/learned-knowledge/#table-of-contents","12":"/document-viewer/docs/learned-knowledge/#background","13":"/document-viewer/docs/learned-knowledge/#issues-talked-about-why-it-s-not-easy-to-integrate","14":"/document-viewer/docs/learned-knowledge/#introduction","15":"/document-viewer/docs/learned-knowledge/#pdfviewerapplication","16":"/document-viewer/docs/learned-knowledge/#appoptions","17":"/document-viewer/docs/learned-knowledge/#important-options","18":"/document-viewer/docs/learned-knowledge/#defaulturl","19":"/document-viewer/docs/learned-knowledge/#locale","20":"/document-viewer/docs/learned-knowledge/#important-events","21":"/document-viewer/docs/learned-knowledge/#documentinit","22":"/document-viewer/docs/learned-knowledge/#documenterror","23":"/document-viewer/docs/learned-knowledge/#pagerendered","24":"/document-viewer/docs/learned-knowledge/#gulp-tasks","25":"/document-viewer/docs/learned-knowledge/parts/app-options.html#important-options","26":"/document-viewer/docs/learned-knowledge/parts/app-options.html#defaulturl","27":"/document-viewer/docs/learned-knowledge/parts/app-options.html#locale","28":"/document-viewer/docs/learned-knowledge/parts/events.html#documentinit","29":"/document-viewer/docs/learned-knowledge/parts/events.html#documenterror","30":"/document-viewer/docs/learned-knowledge/parts/events.html#pagerendered","31":"/document-viewer/docs/resources.html#pdf-specifications","32":"/document-viewer/docs/resources.html#blogs","33":"/document-viewer/docs/pitfalls.html#common-pitfalls-when-integrate-pdf-js","34":"/document-viewer/docs/pitfalls.html#api-version-mismatch-the-worker-version","35":"/document-viewer/docs/pitfalls.html#origin-not-match","36":"/document-viewer/docs/pitfalls.html#top-level-await-is-not-available-in-the-configured-target-environment"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,1],"1":[1,1,10],"2":[1,1,1],"3":[1,3,46],"4":[3,1,3],"5":[5,1,1],"6":[2,1,11],"7":[2,2,57],"8":[2,2,32],"9":[2,5,16],"10":[1,1,59],"11":[3,1,6],"12":[1,3,73],"13":[10,5,5],"14":[1,3,153],"15":[1,3,22],"16":[1,3,44],"17":[2,4,5],"18":[1,6,33],"19":[1,6,28],"20":[2,3,1],"21":[1,6,21],"22":[1,6,8],"23":[1,6,8],"24":[2,3,1],"25":[2,1,5],"26":[1,3,33],"27":[1,3,28],"28":[1,1,21],"29":[1,1,8],"30":[1,1,8],"31":[2,1,4],"32":[1,1,4],"33":[6,1,1],"34":[5,7,72],"35":[3,7,50],"36":[11,7,54]},"averageFieldLength":[2.27027027027027,3,25.216216216216218],"storedFields":{"0":{"title":"API","titles":[]},"1":{"title":"createViewerApp","titles":["API"]},"2":{"title":"Options","titles":["API"]},"3":{"title":"properties","titles":["API","Options",null]},"4":{"title":"PDF.js Architecture","titles":[]},"5":{"title":"Main and worker thread communication","titles":[]},"6":{"title":"PDF Viewer","titles":[]},"7":{"title":"Quick Start","titles":["PDF Viewer"]},"8":{"title":"Prepare Resources","titles":["PDF Viewer"]},"9":{"title":"Resource List","titles":["PDF Viewer","Prepare Resources",null,null,null]},"10":{"title":"Acknowledge","titles":[]},"11":{"title":"Table of Contents","titles":[]},"12":{"title":"Background","titles":["Table of Contents"]},"13":{"title":"Issues talked about why it's not easy to integrate","titles":["Table of Contents","Background",null]},"14":{"title":"Introduction","titles":["Table of Contents"]},"15":{"title":"PDFViewerApplication","titles":["Table of Contents"]},"16":{"title":"AppOptions","titles":["Table of Contents"]},"17":{"title":"Important options","titles":["Table of Contents","AppOptions"]},"18":{"title":"defaultUrl","titles":["Table of Contents","AppOptions","Important options"]},"19":{"title":"locale","titles":["Table of Contents","AppOptions","Important options"]},"20":{"title":"Important Events","titles":["Table of Contents"]},"21":{"title":"documentinit","titles":["Table of Contents","Important Events","Important options"]},"22":{"title":"documenterror","titles":["Table of Contents","Important Events","Important options"]},"23":{"title":"pagerendered","titles":["Table of Contents","Important Events","Important options"]},"24":{"title":"Gulp Tasks","titles":["Table of Contents"]},"25":{"title":"Important options","titles":[null,null]},"26":{"title":"defaultUrl","titles":[null,null,"Important options"]},"27":{"title":"locale","titles":[null,null,"Important options"]},"28":{"title":"documentinit","titles":[null,null,null]},"29":{"title":"documenterror","titles":[null,null,null]},"30":{"title":"pagerendered","titles":[null,null,null]},"31":{"title":"PDF Specifications","titles":[]},"32":{"title":"Blogs","titles":[]},"33":{"title":"Common Pitfalls When Integrate PDF.js","titles":[]},"34":{"title":"API version mismatch the Worker version","titles":["Common Pitfalls When Integrate PDF.js",null]},"35":{"title":"Origin not match","titles":["Common Pitfalls When Integrate PDF.js",null]},"36":{"title":"Top-level await is not available in the configured target environment","titles":["Common Pitfalls When Integrate PDF.js",null]}},"dirtCount":0,"index":[["1918453195",{"2":{"36":1}}],["17245",{"2":{"36":1}}],["z",{"2":{"34":1}}],["y",{"2":{"34":1}}],["your",{"2":{"7":1,"34":1}}],["you",{"2":{"7":3,"10":1,"12":1,"14":2,"16":2,"18":1,"26":1,"35":4}}],["x",{"2":{"34":1}}],["x26",{"2":{"14":2}}],["quot",{"2":{"34":4}}],["quickly",{"2":{"10":1}}],["quick",{"0":{"7":1},"2":{"7":2,"35":1}}],["0",{"2":{"31":1}}],["2",{"2":{"31":1}}],["|",{"2":{"18":2,"26":2}}],["||",{"2":{"14":1}}],["=",{"2":{"14":1}}],["===",{"2":{"14":1}}],["+",{"2":{"14":4}}],["javascript",{"2":{"14":3}}],["js",{"0":{"4":1,"33":1},"1":{"34":1,"35":1,"36":1},"2":{"3":4,"6":1,"7":2,"8":1,"9":2,"10":3,"12":1,"14":12,"15":1,"16":1,"34":2,"36":2}}],["4",{"2":{"14":1}}],["7203",{"2":{"13":1}}],["9210",{"2":{"13":1}}],["5609",{"2":{"13":1}}],["good",{"2":{"36":1}}],["got",{"2":{"18":1,"26":1}}],["goal",{"2":{"10":1,"12":3}}],["glues",{"2":{"15":1}}],["global",{"2":{"15":1}}],["globalthis",{"2":{"14":4}}],["gulp",{"0":{"24":1},"2":{"14":4,"36":1}}],["gulpfile",{"2":{"14":1}}],["github",{"2":{"14":3,"36":1}}],["general",{"2":{"12":1}}],["generic",{"2":{"8":1,"14":3}}],["know",{"2":{"35":1}}],["knowing",{"2":{"10":1}}],["keep",{"2":{"14":1}}],["kinds",{"2":{"16":1}}],["kindsimportant",{"2":{"11":1}}],["kits",{"2":{"7":2,"8":1,"35":1}}],["uint8array",{"2":{"18":1,"26":1}}],["url",{"2":{"18":2,"26":2}}],["undefined",{"2":{"14":1}}],["understand",{"2":{"10":3,"12":1,"16":1}}],["us",{"2":{"10":1,"19":1,"27":1}}],["using",{"2":{"8":1,"12":1,"14":3}}],["uses",{"2":{"14":1}}],["used",{"2":{"12":1,"36":1}}],["use",{"2":{"7":2,"14":1,"21":1,"28":1,"34":1,"35":1}}],["if",{"2":{"14":1,"18":1,"26":1,"34":1,"35":1}}],["important",{"0":{"17":1,"20":1,"25":1},"1":{"18":1,"19":1,"21":2,"22":2,"23":2,"26":1,"27":1}}],["import",{"2":{"14":3}}],["issuecomment",{"2":{"36":1}}],["issue",{"2":{"13":3,"18":1,"26":1,"35":1,"36":1}}],["issues",{"0":{"13":1},"2":{"34":2,"36":1}}],["is",{"0":{"36":1},"2":{"12":3,"14":4,"15":1,"21":1,"23":1,"28":1,"30":1,"36":2}}],["i",{"2":{"10":3,"34":1,"36":1}}],["it",{"0":{"13":1},"2":{"10":3,"12":8,"14":5,"15":1,"19":1,"27":1,"34":4,"35":2,"36":2}}],["i18n",{"2":{"9":1}}],["initial",{"2":{"21":1,"28":1}}],["initialize",{"2":{"7":3}}],["introduction",{"0":{"14":1}}],["intentionally",{"2":{"12":1}}],["integrate",{"0":{"13":1,"33":1},"1":{"34":1,"35":1,"36":1},"2":{"10":1,"12":2}}],["into",{"2":{"12":1}}],["install",{"2":{"7":4}}],["in",{"0":{"36":1},"2":{"7":1,"8":1,"12":2,"14":2,"16":1,"18":1,"19":1,"26":1,"27":1,"35":2,"36":2}}],["faq",{"2":{"35":1}}],["false",{"2":{"3":2}}],["function",{"2":{"14":1}}],["figure",{"2":{"34":1}}],["file",{"2":{"18":2,"26":2,"35":1}}],["first",{"2":{"14":1,"16":1,"34":1}}],["firefox",{"2":{"12":2}}],["find",{"2":{"12":1}}],["from",{"2":{"10":1,"14":8,"18":1,"26":1,"34":1}}],["folder",{"2":{"19":1,"27":1}}],["four",{"2":{"16":1}}],["fonts",{"2":{"9":1}}],["for",{"2":{"9":2,"12":1,"14":1,"15":1,"16":1,"34":4,"35":2,"36":1}}],["rimraf",{"2":{"14":1}}],["run",{"2":{"7":4}}],["related",{"2":{"36":1}}],["reason",{"2":{"34":1,"35":1,"36":1}}],["ready",{"2":{"21":1,"28":1}}],["read",{"2":{"4":1}}],["return",{"2":{"14":1}}],["resolve",{"2":{"14":1,"35":1}}],["resolved",{"2":{"14":2,"36":1}}],["resources",{"0":{"8":1},"1":{"9":1},"2":{"8":3}}],["resource",{"0":{"9":1},"2":{"3":1}}],["resourcepath",{"2":{"3":1}}],["result",{"2":{"14":2,"34":1}}],["rendered",{"2":{"23":1,"30":1}}],["rendering",{"2":{"12":1,"14":1,"22":1,"29":1,"34":1}}],["render",{"2":{"3":1,"14":1}}],["versions",{"2":{"34":2}}],["version",{"0":{"34":2},"2":{"34":2}}],["view",{"2":{"7":2,"21":1,"28":1}}],["viewer",{"0":{"6":1},"1":{"7":1,"8":1,"9":1},"2":{"1":1,"3":1,"6":1,"7":2,"8":1,"9":3,"10":1,"14":3,"15":2,"19":1,"21":1,"27":1,"28":1,"34":1,"35":2}}],["vue3",{"2":{"7":2}}],["l10n",{"2":{"19":1,"27":1}}],["l1001",{"2":{"14":1}}],["loading",{"2":{"18":1,"26":1}}],["load",{"2":{"14":2}}],["locales",{"2":{"19":1,"27":1}}],["locale",{"0":{"19":1,"27":1},"2":{"9":1,"17":1,"19":2,"25":1,"27":2}}],["located",{"2":{"8":1}}],["level",{"0":{"36":1},"2":{"36":2}}],["legacy",{"2":{"14":1}}],["learning",{"2":{"32":1}}],["learned",{"2":{"10":1}}],["least",{"2":{"14":1}}],["let",{"2":{"7":2,"16":1}}],["lib",{"2":{"14":2}}],["library",{"2":{"12":1}}],["like",{"2":{"12":1}}],["list",{"0":{"9":1}}],["lit",{"2":{"7":2}}],["latest",{"2":{"7":2}}],["new",{"2":{"14":1}}],["necessary",{"2":{"8":1}}],["now",{"2":{"16":1}}],["not",{"0":{"13":1,"35":1,"36":1},"2":{"10":1,"12":1,"34":2,"35":2}}],["node",{"2":{"8":1}}],["npm",{"2":{"7":3,"12":1}}],["npmpnpm",{"2":{"7":1}}],["name",{"2":{"3":1}}],["here",{"2":{"36":1}}],["help",{"2":{"10":2,"16":1}}],["https",{"2":{"14":3,"36":1}}],["html5",{"2":{"12":1}}],["htmlelement",{"2":{"3":1}}],["have",{"2":{"14":1}}],["has",{"2":{"14":2,"34":2,"35":1}}],["hard",{"2":{"12":1,"34":1}}],["hope",{"2":{"10":1}}],["how",{"2":{"7":1}}],["event",{"2":{"21":1,"28":1}}],["events",{"0":{"20":1},"1":{"21":1,"22":1,"23":1}}],["eventsgulp",{"2":{"11":1}}],["emitted",{"2":{"21":2,"22":1,"23":1,"28":2,"29":1,"30":1}}],["environment",{"0":{"36":1}}],["enable",{"2":{"35":1}}],["en",{"2":{"19":1,"27":1}}],["entry",{"2":{"14":2,"15":1}}],["error",{"2":{"18":1,"22":1,"26":1,"29":1,"34":3,"35":1,"36":2}}],["example",{"2":{"14":1}}],["explicit",{"2":{"34":1}}],["explore",{"2":{"7":1}}],["export",{"2":{"14":1}}],["expectations",{"2":{"12":1}}],["each",{"2":{"14":1,"23":1,"30":1}}],["easy",{"0":{"13":1},"2":{"19":1,"27":1}}],["easily",{"2":{"12":2}}],["easier",{"2":{"10":1}}],["element",{"2":{"3":1}}],["wonder",{"2":{"16":1}}],["work",{"2":{"8":1,"34":2}}],["workersrc",{"2":{"17":1,"25":1}}],["worker",{"0":{"5":1,"34":1},"2":{"9":1,"14":7,"34":3}}],["we",{"2":{"12":1,"14":1}}],["webpack",{"2":{"14":1}}],["web",{"2":{"9":3,"12":1,"14":12,"34":2}}],["want",{"2":{"10":1}}],["why",{"0":{"13":1},"2":{"16":1,"34":1}}],["what",{"2":{"10":1,"16":1,"35":1}}],["who",{"2":{"10":1}}],["when",{"0":{"33":1},"1":{"34":1,"35":1,"36":1},"2":{"8":1,"14":2,"18":1,"22":1,"26":1,"29":1,"34":1,"36":1}}],["with",{"2":{"7":2}}],["will",{"2":{"3":1,"7":2,"14":2,"16":1,"21":1,"28":1}}],["mismatch",{"0":{"34":1},"2":{"34":1}}],["mind",{"2":{"14":1}}],["mentioned",{"2":{"35":1}}],["means",{"2":{"35":1}}],["mean",{"2":{"16":1}}],["methods",{"2":{"35":1}}],["method",{"2":{"14":1,"21":1,"28":1}}],["merge",{"2":{"14":1}}],["must",{"2":{"14":2,"34":1}}],["mjs",{"2":{"14":1}}],["manager",{"2":{"14":2}}],["many",{"2":{"12":1,"16":1}}],["master",{"2":{"14":3}}],["match",{"0":{"35":1},"2":{"12":1,"18":1,"26":1,"34":2,"35":1}}],["may",{"2":{"10":1,"16":1,"34":2,"36":1}}],["made",{"2":{"10":1,"12":1}}],["make",{"2":{"8":1}}],["maintainers",{"2":{"10":1,"12":1}}],["main",{"0":{"5":1},"2":{"14":9}}],["modify",{"2":{"36":1}}],["module",{"2":{"14":1}}],["modules",{"2":{"8":1,"14":1,"15":1}}],["most",{"2":{"12":2}}],["mozilla",{"2":{"12":1,"14":3,"36":1}}],["more",{"2":{"4":1}}],["my",{"2":{"7":4}}],["c",{"2":{"34":1}}],["class",{"2":{"14":1}}],["crack",{"2":{"16":1}}],["critical",{"2":{"10":1}}],["createwebbundle",{"2":{"14":1}}],["createworkerbundle",{"2":{"14":1}}],["createsandboxbundle",{"2":{"14":1}}],["createmainbundle",{"2":{"14":1}}],["create",{"2":{"1":1,"7":2,"12":1,"14":1}}],["createviewerapp",{"0":{"1":1},"2":{"1":1}}],["css",{"2":{"9":1}}],["cd",{"2":{"7":2}}],["currently",{"2":{"7":2}}],["choose",{"2":{"7":2}}],["check",{"2":{"3":1,"35":1}}],["cause",{"2":{"36":1}}],["caused",{"2":{"3":1}}],["careful",{"2":{"35":1}}],["called",{"2":{"21":1,"28":1}}],["can",{"2":{"7":1,"10":2,"12":1,"14":2,"35":2,"36":1}}],["configured",{"0":{"36":1}}],["const",{"2":{"14":1}}],["contains",{"2":{"14":1,"36":1}}],["contents",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1}}],["code",{"2":{"14":2,"36":1}}],["com",{"2":{"14":3,"36":1}}],["component",{"2":{"12":1}}],["commented",{"2":{"36":1}}],["comments",{"2":{"10":1}}],["common",{"0":{"33":1},"1":{"34":1,"35":1,"36":1},"2":{"18":1,"26":1}}],["communication",{"0":{"5":1}}],["copy",{"2":{"8":1}}],["cors",{"2":{"3":1,"18":1,"26":1,"35":1}}],["b",{"2":{"34":1}}],["blogs",{"0":{"32":1}}],["blob",{"2":{"14":3}}],["babel",{"2":{"14":1}}],["based",{"2":{"12":1}}],["bash",{"2":{"7":2}}],["background",{"0":{"12":1},"1":{"13":1}}],["backgroundintroductionpdfviewerapplicationappoptionsoption",{"2":{"11":1}}],["built",{"2":{"14":2}}],["buildgeneric",{"2":{"14":1}}],["build",{"2":{"9":2,"14":3}}],["building",{"2":{"8":1,"14":1}}],["builds",{"2":{"6":1}}],["bundled",{"2":{"36":1}}],["bundles",{"2":{"14":3,"34":2}}],["bundle",{"2":{"14":12,"34":1}}],["bundler",{"2":{"8":1}}],["but",{"2":{"10":2,"14":1,"34":2}}],["browser",{"2":{"7":2,"12":2}}],["box",{"2":{"6":1}}],["boolean",{"2":{"3":2}}],["by",{"2":{"3":1,"10":1,"12":2,"16":1,"19":1,"27":1}}],["belong",{"2":{"16":1}}],["before",{"2":{"14":1}}],["because",{"2":{"12":1}}],["better",{"2":{"10":1,"14":1,"34":1}}],["be",{"2":{"3":1,"7":2,"10":2,"12":1,"14":1,"21":1,"28":1,"35":1,"36":1}}],["different",{"2":{"18":1,"19":1,"26":1,"27":1}}],["directory",{"2":{"14":1}}],["directly",{"2":{"14":1}}],["dir",{"2":{"14":6}}],["dist",{"2":{"8":1}}],["disableautosettitle",{"2":{"3":1}}],["disable",{"2":{"3":2,"35":1}}],["disablecorscheck",{"2":{"3":1,"35":1}}],["don",{"2":{"35":1}}],["does",{"2":{"34":2,"35":1}}],["doesn",{"2":{"12":1}}],["dozens",{"2":{"16":1}}],["domsvgfactory",{"2":{"14":1}}],["documenterror",{"0":{"22":1,"29":1}}],["documentinit",{"0":{"21":1,"28":1}}],["document",{"2":{"3":2,"7":2,"8":1,"14":2,"16":1,"22":1,"29":1,"35":1}}],["debugging",{"2":{"34":1}}],["details",{"2":{"18":1,"26":1}}],["dest",{"2":{"14":4}}],["description",{"2":{"3":1}}],["defines",{"2":{"14":6}}],["defaulturl",{"0":{"18":1,"26":1},"2":{"17":1,"25":1}}],["defaultpreferencesdir",{"2":{"14":1}}],["default",{"2":{"3":1,"7":2,"10":1,"14":3,"15":2,"19":1,"27":1}}],["defaultvalue",{"2":{"3":1}}],["decision",{"2":{"12":1}}],["decisions",{"2":{"10":1}}],["depend",{"2":{"14":1}}],["depends",{"2":{"8":1,"14":2}}],["dependencies",{"2":{"7":2}}],["developed",{"2":{"12":2}}],["developers",{"2":{"12":1}}],["developer",{"2":{"10":1,"34":1}}],["dev",{"2":{"7":4}}],["demo",{"2":{"7":5}}],["occurred",{"2":{"22":1,"29":1}}],["object",{"2":{"15":1}}],["origin",{"0":{"35":1},"2":{"18":2,"26":2,"35":1}}],["or",{"2":{"12":1,"35":1}}],["oss",{"2":{"10":1,"12":1}}],["opened",{"2":{"14":1}}],["open",{"2":{"7":4,"14":1}}],["option",{"2":{"14":1,"19":1,"27":1,"35":2}}],["optional",{"2":{"3":3}}],["optionsimportant",{"2":{"11":1}}],["options",{"0":{"2":1,"17":1,"25":1},"1":{"3":1,"18":1,"19":1,"21":1,"22":1,"23":1,"26":1,"27":1},"2":{"1":3,"3":1,"16":2}}],["own",{"2":{"7":1}}],["one",{"2":{"14":1,"16":2,"34":3}}],["only",{"2":{"14":2,"34":1}}],["on",{"2":{"6":1,"8":1,"14":2,"16":1}}],["out",{"2":{"6":1,"12":1}}],["official",{"2":{"35":1}}],["off",{"2":{"10":1,"12":1}}],["of",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"2":{"3":5,"6":1,"10":1,"14":5,"15":2,"16":1,"18":1,"19":1,"26":1,"27":1,"34":1,"36":1}}],["specifications",{"0":{"31":1}}],["switch",{"2":{"19":1,"27":1}}],["shadow",{"2":{"14":1}}],["show",{"2":{"10":1,"21":1,"28":1}}],["should",{"2":{"10":1,"12":1,"35":1}}],["skip",{"2":{"14":1}}],["sync",{"2":{"14":1}}],["s",{"0":{"13":1},"2":{"12":6,"14":2,"16":1,"34":1,"35":1}}],["save",{"2":{"34":1}}],["say",{"2":{"10":1}}],["sandboxbundlesrc",{"2":{"17":1,"25":1}}],["sandbox",{"2":{"9":1,"14":1}}],["such",{"2":{"34":3}}],["successfully",{"2":{"21":1,"23":1,"28":1,"30":1}}],["sure",{"2":{"8":1}}],["supported",{"2":{"12":1,"19":1,"27":1}}],["support",{"2":{"7":2}}],["section",{"2":{"18":1,"26":1}}],["see",{"2":{"14":1,"18":1,"19":1,"26":1,"27":1}}],["server",{"2":{"7":2}}],["setinitialview",{"2":{"21":1,"28":1}}],["setting",{"2":{"19":1,"27":1}}],["set",{"2":{"3":1}}],["so",{"2":{"16":1}}],["sometimes",{"2":{"34":1}}],["somehow",{"2":{"10":1,"12":1}}],["some",{"2":{"8":1}}],["solid",{"2":{"7":2}}],["source",{"2":{"3":1,"14":1,"36":1}}],["statement",{"2":{"36":1}}],["standards",{"2":{"12":1}}],["standard",{"2":{"9":1}}],["starter",{"2":{"7":3}}],["start",{"0":{"7":1},"2":{"7":2,"35":1}}],["style",{"2":{"9":1}}],["string",{"2":{"3":2,"18":1,"19":1,"26":1,"27":1}}],["src",{"2":{"3":1,"14":3}}],["try",{"2":{"35":2}}],["trade",{"2":{"10":1,"12":1}}],["two",{"2":{"34":2}}],["text",{"2":{"14":2}}],["test",{"2":{"14":1}}],["template",{"2":{"7":2}}],["time",{"2":{"14":1,"16":1,"34":1}}],["title",{"2":{"3":1}}],["typical",{"2":{"14":1,"34":1}}],["typeof",{"2":{"14":1}}],["typedarray",{"2":{"3":1}}],["type",{"2":{"3":1,"18":1,"19":1,"26":1,"27":1}}],["typescriptfunction",{"2":{"1":1}}],["t",{"2":{"12":1,"35":1}}],["task",{"2":{"36":1}}],["tasks",{"0":{"24":1},"2":{"11":1}}],["target",{"0":{"36":1}}],["talked",{"0":{"13":1}}],["table",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1}}],["think",{"2":{"34":1}}],["this",{"2":{"7":1,"16":1,"19":1,"27":1,"35":1,"36":1}}],["that",{"2":{"12":1,"36":1}}],["thread",{"0":{"5":1}}],["them",{"2":{"10":1,"16":2}}],["they",{"2":{"10":1,"14":1,"16":2}}],["these",{"2":{"8":1,"10":1}}],["there",{"2":{"7":2,"10":1,"16":2}}],["the",{"0":{"34":1,"36":1},"2":{"3":4,"6":1,"7":7,"8":2,"10":7,"12":4,"14":24,"15":6,"16":1,"18":2,"19":2,"21":4,"26":2,"27":2,"28":4,"34":9,"35":6,"36":4}}],["top",{"0":{"36":1},"2":{"36":2}}],["together",{"2":{"15":1}}],["to",{"0":{"13":1},"2":{"3":1,"7":9,"8":2,"10":4,"12":3,"14":3,"16":2,"19":1,"21":2,"27":1,"28":2,"34":2,"35":3}}],["pitfalls",{"0":{"33":1},"1":{"34":1,"35":1,"36":1},"2":{"18":1,"26":1}}],["pipe",{"2":{"14":4}}],["performance",{"2":{"14":1,"34":1}}],["people",{"2":{"12":1}}],["platform",{"2":{"12":1}}],["purpose",{"2":{"12":1}}],["primary",{"2":{"10":1,"12":1}}],["prepare",{"0":{"8":1},"1":{"9":1}}],["production",{"2":{"35":1}}],["properly",{"2":{"34":1}}],["properties",{"0":{"3":1},"2":{"9":1}}],["provides",{"2":{"15":1}}],["promise",{"2":{"14":1}}],["prompt",{"2":{"7":2}}],["project",{"2":{"7":3,"10":3,"12":2,"36":1}}],["pnpm",{"2":{"7":3}}],["pagerendered",{"0":{"23":1,"30":1}}],["page",{"2":{"18":1,"23":1,"26":1,"30":1}}],["packages",{"2":{"12":1}}],["package",{"2":{"7":1,"14":1}}],["path",{"2":{"3":1}}],["parent",{"2":{"3":1}}],["pdfjslibpromise",{"2":{"14":2}}],["pdfjslib",{"2":{"14":2}}],["pdfjsdev",{"2":{"14":2}}],["pdfjs",{"2":{"14":5}}],["pdfs",{"2":{"12":1}}],["pdf",{"0":{"4":1,"6":1,"31":1,"33":1},"1":{"7":1,"8":1,"9":1,"34":1,"35":1,"36":1},"2":{"3":6,"6":2,"8":1,"9":2,"10":4,"12":1,"14":9,"15":1,"16":1,"18":2,"26":2,"31":1,"32":1,"34":2,"36":2}}],["pdfviewerapplication",{"0":{"15":1},"2":{"1":1,"15":1}}],["add",{"2":{"36":1}}],["available",{"0":{"36":1}}],["after",{"2":{"21":2,"22":1,"23":1,"28":2,"29":1,"30":1}}],["above",{"2":{"14":1}}],["abortexception",{"2":{"14":2}}],["about",{"0":{"13":1},"2":{"10":1,"36":1}}],["await",{"0":{"36":1},"2":{"14":1,"36":2}}],["although",{"2":{"34":1}}],["alttextmanager",{"2":{"14":1}}],["alt",{"2":{"14":2}}],["alias",{"2":{"14":1}}],["all",{"2":{"8":1,"10":1,"14":1,"15":1,"16":1,"19":1,"27":1}}],["at",{"2":{"14":1,"16":1,"18":1,"26":1,"34":1}}],["accurate",{"2":{"10":1}}],["acknowledge",{"0":{"10":1}}],["as",{"2":{"10":1,"12":1,"14":1,"36":1}}],["annoy",{"2":{"34":1}}],["an",{"2":{"6":1,"10":1,"12":1,"14":1}}],["and",{"0":{"5":1},"2":{"7":4,"12":1,"14":2,"15":1,"16":2,"36":1}}],["article",{"2":{"36":1}}],["are",{"2":{"8":1,"10":2,"14":1,"16":2}}],["architecture",{"0":{"4":1},"2":{"34":1}}],["arraybuffer",{"2":{"3":1}}],["auto",{"2":{"3":1}}],["appligent",{"2":{"32":1}}],["application",{"2":{"14":1,"34":1}}],["appoptions",{"0":{"16":1},"1":{"17":1,"18":1,"19":1},"2":{"3":2}}],["app",{"2":{"1":1,"3":1,"7":5,"8":1}}],["api",{"0":{"0":1,"34":1},"1":{"1":1,"2":1,"3":1},"2":{"15":1,"34":1}}],["a",{"2":{"1":1,"7":7,"8":1,"10":2,"12":2,"14":3,"18":2,"19":1,"26":2,"27":1,"34":3,"35":1,"36":2}}]],"serializationVersion":2}`;export{e as default}; diff --git a/docs/assets/chunks/@localSearchIndexroot.D9VpIupY.js b/docs/assets/chunks/@localSearchIndexroot.D9VpIupY.js deleted file mode 100644 index 0f84ff3..0000000 --- a/docs/assets/chunks/@localSearchIndexroot.D9VpIupY.js +++ /dev/null @@ -1 +0,0 @@ -const e=`{"documentCount":37,"nextId":37,"documentIds":{"0":"/document-viewer/docs/api.html#api","1":"/document-viewer/docs/api.html#createviewerapp","2":"/document-viewer/docs/api.html#options","3":"/document-viewer/docs/api.html#properties","4":"/document-viewer/docs/communication.html#main-and-worker-thread-communication","5":"/document-viewer/docs/architecture.html#pdf-js-architecture","6":"/document-viewer/docs/get-started.html#pdf-viewer","7":"/document-viewer/docs/get-started.html#quick-start","8":"/document-viewer/docs/get-started.html#prepare-resources","9":"/document-viewer/docs/get-started.html#resource-list","10":"/document-viewer/docs/learned-knowledge/#acknowledge","11":"/document-viewer/docs/learned-knowledge/#table-of-contents","12":"/document-viewer/docs/learned-knowledge/#background","13":"/document-viewer/docs/learned-knowledge/#issues-talked-about-why-it-s-not-easy-to-integrate","14":"/document-viewer/docs/learned-knowledge/#introduction","15":"/document-viewer/docs/learned-knowledge/#pdfviewerapplication","16":"/document-viewer/docs/learned-knowledge/#appoptions","17":"/document-viewer/docs/learned-knowledge/#important-options","18":"/document-viewer/docs/learned-knowledge/#defaulturl","19":"/document-viewer/docs/learned-knowledge/#locale","20":"/document-viewer/docs/learned-knowledge/#important-events","21":"/document-viewer/docs/learned-knowledge/#documentinit","22":"/document-viewer/docs/learned-knowledge/#documenterror","23":"/document-viewer/docs/learned-knowledge/#pagerendered","24":"/document-viewer/docs/learned-knowledge/#gulp-tasks","25":"/document-viewer/docs/learned-knowledge/parts/app-options.html#important-options","26":"/document-viewer/docs/learned-knowledge/parts/app-options.html#defaulturl","27":"/document-viewer/docs/learned-knowledge/parts/app-options.html#locale","28":"/document-viewer/docs/pitfalls.html#common-pitfalls-when-integrate-pdf-js","29":"/document-viewer/docs/pitfalls.html#api-version-mismatch-the-worker-version","30":"/document-viewer/docs/pitfalls.html#origin-not-match","31":"/document-viewer/docs/pitfalls.html#top-level-await-is-not-available-in-the-configured-target-environment","32":"/document-viewer/docs/learned-knowledge/parts/events.html#documentinit","33":"/document-viewer/docs/learned-knowledge/parts/events.html#documenterror","34":"/document-viewer/docs/learned-knowledge/parts/events.html#pagerendered","35":"/document-viewer/docs/resources.html#pdf-specifications","36":"/document-viewer/docs/resources.html#blogs"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,1],"1":[1,1,10],"2":[1,1,1],"3":[1,3,46],"4":[5,1,1],"5":[3,1,3],"6":[2,1,11],"7":[2,2,57],"8":[2,2,32],"9":[2,5,16],"10":[1,1,59],"11":[3,1,6],"12":[1,3,73],"13":[10,5,5],"14":[1,3,153],"15":[1,3,22],"16":[1,3,44],"17":[2,4,5],"18":[1,6,33],"19":[1,6,28],"20":[2,3,1],"21":[1,6,21],"22":[1,6,8],"23":[1,6,8],"24":[2,3,1],"25":[2,1,5],"26":[1,3,33],"27":[1,3,28],"28":[6,1,1],"29":[5,7,72],"30":[3,7,50],"31":[11,7,54],"32":[1,1,21],"33":[1,1,8],"34":[1,1,8],"35":[2,1,4],"36":[1,1,4]},"averageFieldLength":[2.2702702702702706,3,25.216216216216218],"storedFields":{"0":{"title":"API","titles":[]},"1":{"title":"createViewerApp","titles":["API"]},"2":{"title":"Options","titles":["API"]},"3":{"title":"properties","titles":["API","Options",null]},"4":{"title":"Main and worker thread communication","titles":[]},"5":{"title":"PDF.js Architecture","titles":[]},"6":{"title":"PDF Viewer","titles":[]},"7":{"title":"Quick Start","titles":["PDF Viewer"]},"8":{"title":"Prepare Resources","titles":["PDF Viewer"]},"9":{"title":"Resource List","titles":["PDF Viewer","Prepare Resources",null,null,null]},"10":{"title":"Acknowledge","titles":[]},"11":{"title":"Table of Contents","titles":[]},"12":{"title":"Background","titles":["Table of Contents"]},"13":{"title":"Issues talked about why it's not easy to integrate","titles":["Table of Contents","Background",null]},"14":{"title":"Introduction","titles":["Table of Contents"]},"15":{"title":"PDFViewerApplication","titles":["Table of Contents"]},"16":{"title":"AppOptions","titles":["Table of Contents"]},"17":{"title":"Important options","titles":["Table of Contents","AppOptions"]},"18":{"title":"defaultUrl","titles":["Table of Contents","AppOptions","Important options"]},"19":{"title":"locale","titles":["Table of Contents","AppOptions","Important options"]},"20":{"title":"Important Events","titles":["Table of Contents"]},"21":{"title":"documentinit","titles":["Table of Contents","Important Events","Important options"]},"22":{"title":"documenterror","titles":["Table of Contents","Important Events","Important options"]},"23":{"title":"pagerendered","titles":["Table of Contents","Important Events","Important options"]},"24":{"title":"Gulp Tasks","titles":["Table of Contents"]},"25":{"title":"Important options","titles":[null,null]},"26":{"title":"defaultUrl","titles":[null,null,"Important options"]},"27":{"title":"locale","titles":[null,null,"Important options"]},"28":{"title":"Common Pitfalls When Integrate PDF.js","titles":[]},"29":{"title":"API version mismatch the Worker version","titles":["Common Pitfalls When Integrate PDF.js",null]},"30":{"title":"Origin not match","titles":["Common Pitfalls When Integrate PDF.js",null]},"31":{"title":"Top-level await is not available in the configured target environment","titles":["Common Pitfalls When Integrate PDF.js",null]},"32":{"title":"documentinit","titles":[null,null,null]},"33":{"title":"documenterror","titles":[null,null,null]},"34":{"title":"pagerendered","titles":[null,null,null]},"35":{"title":"PDF Specifications","titles":[]},"36":{"title":"Blogs","titles":[]}},"dirtCount":0,"index":[["0",{"2":{"35":1}}],["2",{"2":{"35":1}}],["1918453195",{"2":{"31":1}}],["17245",{"2":{"31":1}}],["z",{"2":{"29":1}}],["y",{"2":{"29":1}}],["your",{"2":{"7":1,"29":1}}],["you",{"2":{"7":3,"10":1,"12":1,"14":2,"16":2,"18":1,"26":1,"30":4}}],["x",{"2":{"29":1}}],["x26",{"2":{"14":2}}],["quot",{"2":{"29":4}}],["quickly",{"2":{"10":1}}],["quick",{"0":{"7":1},"2":{"7":2,"30":1}}],["|",{"2":{"18":2,"26":2}}],["||",{"2":{"14":1}}],["=",{"2":{"14":1}}],["===",{"2":{"14":1}}],["+",{"2":{"14":4}}],["javascript",{"2":{"14":3}}],["js",{"0":{"5":1,"28":1},"1":{"29":1,"30":1,"31":1},"2":{"3":4,"6":1,"7":2,"8":1,"9":2,"10":3,"12":1,"14":12,"15":1,"16":1,"29":2,"31":2}}],["4",{"2":{"14":1}}],["7203",{"2":{"13":1}}],["9210",{"2":{"13":1}}],["5609",{"2":{"13":1}}],["good",{"2":{"31":1}}],["got",{"2":{"18":1,"26":1}}],["goal",{"2":{"10":1,"12":3}}],["glues",{"2":{"15":1}}],["global",{"2":{"15":1}}],["globalthis",{"2":{"14":4}}],["gulp",{"0":{"24":1},"2":{"14":4,"31":1}}],["gulpfile",{"2":{"14":1}}],["github",{"2":{"14":3,"31":1}}],["general",{"2":{"12":1}}],["generic",{"2":{"8":1,"14":3}}],["know",{"2":{"30":1}}],["knowing",{"2":{"10":1}}],["keep",{"2":{"14":1}}],["kinds",{"2":{"16":1}}],["kindsimportant",{"2":{"11":1}}],["kits",{"2":{"7":2,"8":1,"30":1}}],["uint8array",{"2":{"18":1,"26":1}}],["url",{"2":{"18":2,"26":2}}],["undefined",{"2":{"14":1}}],["understand",{"2":{"10":3,"12":1,"16":1}}],["us",{"2":{"10":1,"19":1,"27":1}}],["using",{"2":{"8":1,"12":1,"14":3}}],["uses",{"2":{"14":1}}],["used",{"2":{"12":1,"31":1}}],["use",{"2":{"7":2,"14":1,"21":1,"29":1,"30":1,"32":1}}],["if",{"2":{"14":1,"18":1,"26":1,"29":1,"30":1}}],["important",{"0":{"17":1,"20":1,"25":1},"1":{"18":1,"19":1,"21":2,"22":2,"23":2,"26":1,"27":1}}],["import",{"2":{"14":3}}],["issuecomment",{"2":{"31":1}}],["issue",{"2":{"13":3,"18":1,"26":1,"30":1,"31":1}}],["issues",{"0":{"13":1},"2":{"29":2,"31":1}}],["is",{"0":{"31":1},"2":{"12":3,"14":4,"15":1,"21":1,"23":1,"31":2,"32":1,"34":1}}],["i",{"2":{"10":3,"29":1,"31":1}}],["it",{"0":{"13":1},"2":{"10":3,"12":8,"14":5,"15":1,"19":1,"27":1,"29":4,"30":2,"31":2}}],["i18n",{"2":{"9":1}}],["initial",{"2":{"21":1,"32":1}}],["initialize",{"2":{"7":3}}],["introduction",{"0":{"14":1}}],["intentionally",{"2":{"12":1}}],["integrate",{"0":{"13":1,"28":1},"1":{"29":1,"30":1,"31":1},"2":{"10":1,"12":2}}],["into",{"2":{"12":1}}],["install",{"2":{"7":4}}],["in",{"0":{"31":1},"2":{"7":1,"8":1,"12":2,"14":2,"16":1,"18":1,"19":1,"26":1,"27":1,"30":2,"31":2}}],["faq",{"2":{"30":1}}],["false",{"2":{"3":2}}],["function",{"2":{"14":1}}],["figure",{"2":{"29":1}}],["file",{"2":{"18":2,"26":2,"30":1}}],["first",{"2":{"14":1,"16":1,"29":1}}],["firefox",{"2":{"12":2}}],["find",{"2":{"12":1}}],["from",{"2":{"10":1,"14":8,"18":1,"26":1,"29":1}}],["folder",{"2":{"19":1,"27":1}}],["four",{"2":{"16":1}}],["fonts",{"2":{"9":1}}],["for",{"2":{"9":2,"12":1,"14":1,"15":1,"16":1,"29":4,"30":2,"31":1}}],["rimraf",{"2":{"14":1}}],["run",{"2":{"7":4}}],["related",{"2":{"31":1}}],["reason",{"2":{"29":1,"30":1,"31":1}}],["ready",{"2":{"21":1,"32":1}}],["read",{"2":{"5":1}}],["return",{"2":{"14":1}}],["resolve",{"2":{"14":1,"30":1}}],["resolved",{"2":{"14":2,"31":1}}],["resources",{"0":{"8":1},"1":{"9":1},"2":{"8":3}}],["resource",{"0":{"9":1},"2":{"3":1}}],["resourcepath",{"2":{"3":1}}],["result",{"2":{"14":2,"29":1}}],["rendered",{"2":{"23":1,"34":1}}],["rendering",{"2":{"12":1,"14":1,"22":1,"29":1,"33":1}}],["render",{"2":{"3":1,"14":1}}],["versions",{"2":{"29":2}}],["version",{"0":{"29":2},"2":{"29":2}}],["view",{"2":{"7":2,"21":1,"32":1}}],["viewer",{"0":{"6":1},"1":{"7":1,"8":1,"9":1},"2":{"1":1,"3":1,"6":1,"7":2,"8":1,"9":3,"10":1,"14":3,"15":2,"19":1,"21":1,"27":1,"29":1,"30":2,"32":1}}],["vue3",{"2":{"7":2}}],["l10n",{"2":{"19":1,"27":1}}],["l1001",{"2":{"14":1}}],["loading",{"2":{"18":1,"26":1}}],["load",{"2":{"14":2}}],["locales",{"2":{"19":1,"27":1}}],["locale",{"0":{"19":1,"27":1},"2":{"9":1,"17":1,"19":2,"25":1,"27":2}}],["located",{"2":{"8":1}}],["level",{"0":{"31":1},"2":{"31":2}}],["legacy",{"2":{"14":1}}],["learning",{"2":{"36":1}}],["learned",{"2":{"10":1}}],["least",{"2":{"14":1}}],["let",{"2":{"7":2,"16":1}}],["lib",{"2":{"14":2}}],["library",{"2":{"12":1}}],["like",{"2":{"12":1}}],["list",{"0":{"9":1}}],["lit",{"2":{"7":2}}],["latest",{"2":{"7":2}}],["new",{"2":{"14":1}}],["necessary",{"2":{"8":1}}],["now",{"2":{"16":1}}],["not",{"0":{"13":1,"30":1,"31":1},"2":{"10":1,"12":1,"29":2,"30":2}}],["node",{"2":{"8":1}}],["npm",{"2":{"7":3,"12":1}}],["npmpnpm",{"2":{"7":1}}],["name",{"2":{"3":1}}],["here",{"2":{"31":1}}],["help",{"2":{"10":2,"16":1}}],["https",{"2":{"14":3,"31":1}}],["html5",{"2":{"12":1}}],["htmlelement",{"2":{"3":1}}],["have",{"2":{"14":1}}],["has",{"2":{"14":2,"29":2,"30":1}}],["hard",{"2":{"12":1,"29":1}}],["hope",{"2":{"10":1}}],["how",{"2":{"7":1}}],["event",{"2":{"21":1,"32":1}}],["events",{"0":{"20":1},"1":{"21":1,"22":1,"23":1}}],["eventsgulp",{"2":{"11":1}}],["emitted",{"2":{"21":2,"22":1,"23":1,"32":2,"33":1,"34":1}}],["environment",{"0":{"31":1}}],["enable",{"2":{"30":1}}],["en",{"2":{"19":1,"27":1}}],["entry",{"2":{"14":2,"15":1}}],["error",{"2":{"18":1,"22":1,"26":1,"29":3,"30":1,"31":2,"33":1}}],["example",{"2":{"14":1}}],["explicit",{"2":{"29":1}}],["explore",{"2":{"7":1}}],["export",{"2":{"14":1}}],["expectations",{"2":{"12":1}}],["each",{"2":{"14":1,"23":1,"34":1}}],["easy",{"0":{"13":1},"2":{"19":1,"27":1}}],["easily",{"2":{"12":2}}],["easier",{"2":{"10":1}}],["element",{"2":{"3":1}}],["mismatch",{"0":{"29":1},"2":{"29":1}}],["mind",{"2":{"14":1}}],["mentioned",{"2":{"30":1}}],["means",{"2":{"30":1}}],["mean",{"2":{"16":1}}],["methods",{"2":{"30":1}}],["method",{"2":{"14":1,"21":1,"32":1}}],["merge",{"2":{"14":1}}],["must",{"2":{"14":2,"29":1}}],["mjs",{"2":{"14":1}}],["manager",{"2":{"14":2}}],["many",{"2":{"12":1,"16":1}}],["master",{"2":{"14":3}}],["match",{"0":{"30":1},"2":{"12":1,"18":1,"26":1,"29":2,"30":1}}],["may",{"2":{"10":1,"16":1,"29":2,"31":1}}],["made",{"2":{"10":1,"12":1}}],["make",{"2":{"8":1}}],["maintainers",{"2":{"10":1,"12":1}}],["main",{"0":{"4":1},"2":{"14":9}}],["modify",{"2":{"31":1}}],["module",{"2":{"14":1}}],["modules",{"2":{"8":1,"14":1,"15":1}}],["most",{"2":{"12":2}}],["mozilla",{"2":{"12":1,"14":3,"31":1}}],["more",{"2":{"5":1}}],["my",{"2":{"7":4}}],["wonder",{"2":{"16":1}}],["work",{"2":{"8":1,"29":2}}],["workersrc",{"2":{"17":1,"25":1}}],["worker",{"0":{"4":1,"29":1},"2":{"9":1,"14":7,"29":3}}],["we",{"2":{"12":1,"14":1}}],["webpack",{"2":{"14":1}}],["web",{"2":{"9":3,"12":1,"14":12,"29":2}}],["want",{"2":{"10":1}}],["why",{"0":{"13":1},"2":{"16":1,"29":1}}],["what",{"2":{"10":1,"16":1,"30":1}}],["who",{"2":{"10":1}}],["when",{"0":{"28":1},"1":{"29":1,"30":1,"31":1},"2":{"8":1,"14":2,"18":1,"22":1,"26":1,"29":1,"31":1,"33":1}}],["with",{"2":{"7":2}}],["will",{"2":{"3":1,"7":2,"14":2,"16":1,"21":1,"32":1}}],["c",{"2":{"29":1}}],["class",{"2":{"14":1}}],["crack",{"2":{"16":1}}],["critical",{"2":{"10":1}}],["createwebbundle",{"2":{"14":1}}],["createworkerbundle",{"2":{"14":1}}],["createsandboxbundle",{"2":{"14":1}}],["createmainbundle",{"2":{"14":1}}],["create",{"2":{"1":1,"7":2,"12":1,"14":1}}],["createviewerapp",{"0":{"1":1},"2":{"1":1}}],["css",{"2":{"9":1}}],["cd",{"2":{"7":2}}],["currently",{"2":{"7":2}}],["choose",{"2":{"7":2}}],["check",{"2":{"3":1,"30":1}}],["cause",{"2":{"31":1}}],["caused",{"2":{"3":1}}],["careful",{"2":{"30":1}}],["called",{"2":{"21":1,"32":1}}],["can",{"2":{"7":1,"10":2,"12":1,"14":2,"30":2,"31":1}}],["configured",{"0":{"31":1}}],["const",{"2":{"14":1}}],["contains",{"2":{"14":1,"31":1}}],["contents",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1}}],["code",{"2":{"14":2,"31":1}}],["com",{"2":{"14":3,"31":1}}],["component",{"2":{"12":1}}],["commented",{"2":{"31":1}}],["comments",{"2":{"10":1}}],["common",{"0":{"28":1},"1":{"29":1,"30":1,"31":1},"2":{"18":1,"26":1}}],["communication",{"0":{"4":1}}],["copy",{"2":{"8":1}}],["cors",{"2":{"3":1,"18":1,"26":1,"30":1}}],["blogs",{"0":{"36":1}}],["blob",{"2":{"14":3}}],["b",{"2":{"29":1}}],["babel",{"2":{"14":1}}],["based",{"2":{"12":1}}],["bash",{"2":{"7":2}}],["background",{"0":{"12":1},"1":{"13":1}}],["backgroundintroductionpdfviewerapplicationappoptionsoption",{"2":{"11":1}}],["built",{"2":{"14":2}}],["buildgeneric",{"2":{"14":1}}],["build",{"2":{"9":2,"14":3}}],["building",{"2":{"8":1,"14":1}}],["builds",{"2":{"6":1}}],["bundled",{"2":{"31":1}}],["bundles",{"2":{"14":3,"29":2}}],["bundle",{"2":{"14":12,"29":1}}],["bundler",{"2":{"8":1}}],["but",{"2":{"10":2,"14":1,"29":2}}],["browser",{"2":{"7":2,"12":2}}],["box",{"2":{"6":1}}],["boolean",{"2":{"3":2}}],["by",{"2":{"3":1,"10":1,"12":2,"16":1,"19":1,"27":1}}],["belong",{"2":{"16":1}}],["before",{"2":{"14":1}}],["because",{"2":{"12":1}}],["better",{"2":{"10":1,"14":1,"29":1}}],["be",{"2":{"3":1,"7":2,"10":2,"12":1,"14":1,"21":1,"30":1,"31":1,"32":1}}],["different",{"2":{"18":1,"19":1,"26":1,"27":1}}],["directory",{"2":{"14":1}}],["directly",{"2":{"14":1}}],["dir",{"2":{"14":6}}],["dist",{"2":{"8":1}}],["disableautosettitle",{"2":{"3":1}}],["disable",{"2":{"3":2,"30":1}}],["disablecorscheck",{"2":{"3":1,"30":1}}],["don",{"2":{"30":1}}],["does",{"2":{"29":2,"30":1}}],["doesn",{"2":{"12":1}}],["dozens",{"2":{"16":1}}],["domsvgfactory",{"2":{"14":1}}],["documenterror",{"0":{"22":1,"33":1}}],["documentinit",{"0":{"21":1,"32":1}}],["document",{"2":{"3":2,"7":2,"8":1,"14":2,"16":1,"22":1,"30":1,"33":1}}],["debugging",{"2":{"29":1}}],["details",{"2":{"18":1,"26":1}}],["dest",{"2":{"14":4}}],["description",{"2":{"3":1}}],["defines",{"2":{"14":6}}],["defaulturl",{"0":{"18":1,"26":1},"2":{"17":1,"25":1}}],["defaultpreferencesdir",{"2":{"14":1}}],["default",{"2":{"3":1,"7":2,"10":1,"14":3,"15":2,"19":1,"27":1}}],["defaultvalue",{"2":{"3":1}}],["decision",{"2":{"12":1}}],["decisions",{"2":{"10":1}}],["depend",{"2":{"14":1}}],["depends",{"2":{"8":1,"14":2}}],["dependencies",{"2":{"7":2}}],["developed",{"2":{"12":2}}],["developers",{"2":{"12":1}}],["developer",{"2":{"10":1,"29":1}}],["dev",{"2":{"7":4}}],["demo",{"2":{"7":5}}],["occurred",{"2":{"22":1,"33":1}}],["object",{"2":{"15":1}}],["origin",{"0":{"30":1},"2":{"18":2,"26":2,"30":1}}],["or",{"2":{"12":1,"30":1}}],["oss",{"2":{"10":1,"12":1}}],["opened",{"2":{"14":1}}],["open",{"2":{"7":4,"14":1}}],["option",{"2":{"14":1,"19":1,"27":1,"30":2}}],["optional",{"2":{"3":3}}],["optionsimportant",{"2":{"11":1}}],["options",{"0":{"2":1,"17":1,"25":1},"1":{"3":1,"18":1,"19":1,"21":1,"22":1,"23":1,"26":1,"27":1},"2":{"1":3,"3":1,"16":2}}],["own",{"2":{"7":1}}],["one",{"2":{"14":1,"16":2,"29":3}}],["only",{"2":{"14":2,"29":1}}],["on",{"2":{"6":1,"8":1,"14":2,"16":1}}],["out",{"2":{"6":1,"12":1}}],["official",{"2":{"30":1}}],["off",{"2":{"10":1,"12":1}}],["of",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"2":{"3":5,"6":1,"10":1,"14":5,"15":2,"16":1,"18":1,"19":1,"26":1,"27":1,"29":1,"31":1}}],["specifications",{"0":{"35":1}}],["switch",{"2":{"19":1,"27":1}}],["shadow",{"2":{"14":1}}],["show",{"2":{"10":1,"21":1,"32":1}}],["should",{"2":{"10":1,"12":1,"30":1}}],["skip",{"2":{"14":1}}],["sync",{"2":{"14":1}}],["s",{"0":{"13":1},"2":{"12":6,"14":2,"16":1,"29":1,"30":1}}],["save",{"2":{"29":1}}],["say",{"2":{"10":1}}],["sandboxbundlesrc",{"2":{"17":1,"25":1}}],["sandbox",{"2":{"9":1,"14":1}}],["such",{"2":{"29":3}}],["successfully",{"2":{"21":1,"23":1,"32":1,"34":1}}],["sure",{"2":{"8":1}}],["supported",{"2":{"12":1,"19":1,"27":1}}],["support",{"2":{"7":2}}],["section",{"2":{"18":1,"26":1}}],["see",{"2":{"14":1,"18":1,"19":1,"26":1,"27":1}}],["server",{"2":{"7":2}}],["setinitialview",{"2":{"21":1,"32":1}}],["setting",{"2":{"19":1,"27":1}}],["set",{"2":{"3":1}}],["so",{"2":{"16":1}}],["sometimes",{"2":{"29":1}}],["somehow",{"2":{"10":1,"12":1}}],["some",{"2":{"8":1}}],["solid",{"2":{"7":2}}],["source",{"2":{"3":1,"14":1,"31":1}}],["statement",{"2":{"31":1}}],["standards",{"2":{"12":1}}],["standard",{"2":{"9":1}}],["starter",{"2":{"7":3}}],["start",{"0":{"7":1},"2":{"7":2,"30":1}}],["style",{"2":{"9":1}}],["string",{"2":{"3":2,"18":1,"19":1,"26":1,"27":1}}],["src",{"2":{"3":1,"14":3}}],["try",{"2":{"30":2}}],["trade",{"2":{"10":1,"12":1}}],["two",{"2":{"29":2}}],["text",{"2":{"14":2}}],["test",{"2":{"14":1}}],["template",{"2":{"7":2}}],["time",{"2":{"14":1,"16":1,"29":1}}],["title",{"2":{"3":1}}],["typical",{"2":{"14":1,"29":1}}],["typeof",{"2":{"14":1}}],["typedarray",{"2":{"3":1}}],["type",{"2":{"3":1,"18":1,"19":1,"26":1,"27":1}}],["typescriptfunction",{"2":{"1":1}}],["t",{"2":{"12":1,"30":1}}],["task",{"2":{"31":1}}],["tasks",{"0":{"24":1},"2":{"11":1}}],["target",{"0":{"31":1}}],["talked",{"0":{"13":1}}],["table",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1}}],["think",{"2":{"29":1}}],["this",{"2":{"7":1,"16":1,"19":1,"27":1,"30":1,"31":1}}],["that",{"2":{"12":1,"31":1}}],["thread",{"0":{"4":1}}],["them",{"2":{"10":1,"16":2}}],["they",{"2":{"10":1,"14":1,"16":2}}],["these",{"2":{"8":1,"10":1}}],["there",{"2":{"7":2,"10":1,"16":2}}],["the",{"0":{"29":1,"31":1},"2":{"3":4,"6":1,"7":7,"8":2,"10":7,"12":4,"14":24,"15":6,"16":1,"18":2,"19":2,"21":4,"26":2,"27":2,"29":9,"30":6,"31":4,"32":4}}],["top",{"0":{"31":1},"2":{"31":2}}],["together",{"2":{"15":1}}],["to",{"0":{"13":1},"2":{"3":1,"7":9,"8":2,"10":4,"12":3,"14":3,"16":2,"19":1,"21":2,"27":1,"29":2,"30":3,"32":2}}],["pitfalls",{"0":{"28":1},"1":{"29":1,"30":1,"31":1},"2":{"18":1,"26":1}}],["pipe",{"2":{"14":4}}],["performance",{"2":{"14":1,"29":1}}],["people",{"2":{"12":1}}],["platform",{"2":{"12":1}}],["purpose",{"2":{"12":1}}],["primary",{"2":{"10":1,"12":1}}],["prepare",{"0":{"8":1},"1":{"9":1}}],["production",{"2":{"30":1}}],["properly",{"2":{"29":1}}],["properties",{"0":{"3":1},"2":{"9":1}}],["provides",{"2":{"15":1}}],["promise",{"2":{"14":1}}],["prompt",{"2":{"7":2}}],["project",{"2":{"7":3,"10":3,"12":2,"31":1}}],["pnpm",{"2":{"7":3}}],["pagerendered",{"0":{"23":1,"34":1}}],["page",{"2":{"18":1,"23":1,"26":1,"34":1}}],["packages",{"2":{"12":1}}],["package",{"2":{"7":1,"14":1}}],["path",{"2":{"3":1}}],["parent",{"2":{"3":1}}],["pdfjslibpromise",{"2":{"14":2}}],["pdfjslib",{"2":{"14":2}}],["pdfjsdev",{"2":{"14":2}}],["pdfjs",{"2":{"14":5}}],["pdfs",{"2":{"12":1}}],["pdf",{"0":{"5":1,"6":1,"28":1,"35":1},"1":{"7":1,"8":1,"9":1,"29":1,"30":1,"31":1},"2":{"3":6,"6":2,"8":1,"9":2,"10":4,"12":1,"14":9,"15":1,"16":1,"18":2,"26":2,"29":2,"31":2,"35":1,"36":1}}],["pdfviewerapplication",{"0":{"15":1},"2":{"1":1,"15":1}}],["add",{"2":{"31":1}}],["available",{"0":{"31":1}}],["after",{"2":{"21":2,"22":1,"23":1,"32":2,"33":1,"34":1}}],["above",{"2":{"14":1}}],["abortexception",{"2":{"14":2}}],["about",{"0":{"13":1},"2":{"10":1,"31":1}}],["await",{"0":{"31":1},"2":{"14":1,"31":2}}],["although",{"2":{"29":1}}],["alttextmanager",{"2":{"14":1}}],["alt",{"2":{"14":2}}],["alias",{"2":{"14":1}}],["all",{"2":{"8":1,"10":1,"14":1,"15":1,"16":1,"19":1,"27":1}}],["at",{"2":{"14":1,"16":1,"18":1,"26":1,"29":1}}],["accurate",{"2":{"10":1}}],["acknowledge",{"0":{"10":1}}],["as",{"2":{"10":1,"12":1,"14":1,"31":1}}],["annoy",{"2":{"29":1}}],["an",{"2":{"6":1,"10":1,"12":1,"14":1}}],["and",{"0":{"4":1},"2":{"7":4,"12":1,"14":2,"15":1,"16":2,"31":1}}],["article",{"2":{"31":1}}],["are",{"2":{"8":1,"10":2,"14":1,"16":2}}],["architecture",{"0":{"5":1},"2":{"29":1}}],["arraybuffer",{"2":{"3":1}}],["auto",{"2":{"3":1}}],["appligent",{"2":{"36":1}}],["application",{"2":{"14":1,"29":1}}],["appoptions",{"0":{"16":1},"1":{"17":1,"18":1,"19":1},"2":{"3":2}}],["app",{"2":{"1":1,"3":1,"7":5,"8":1}}],["api",{"0":{"0":1,"29":1},"1":{"1":1,"2":1,"3":1},"2":{"15":1,"29":1}}],["a",{"2":{"1":1,"7":7,"8":1,"10":2,"12":2,"14":3,"18":2,"19":1,"26":2,"27":1,"29":3,"30":1,"31":2}}]],"serializationVersion":2}`;export{e as default}; diff --git a/docs/assets/chunks/VPLocalSearchBox.ck5mhc2G.js b/docs/assets/chunks/VPLocalSearchBox.D7w4D537.js similarity index 99% rename from docs/assets/chunks/VPLocalSearchBox.ck5mhc2G.js rename to docs/assets/chunks/VPLocalSearchBox.D7w4D537.js index af3a2b3..281a79a 100644 --- a/docs/assets/chunks/VPLocalSearchBox.ck5mhc2G.js +++ b/docs/assets/chunks/VPLocalSearchBox.D7w4D537.js @@ -4,7 +4,7 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -var Ct=Object.defineProperty;var It=(o,e,t)=>e in o?Ct(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var ke=(o,e,t)=>(It(o,typeof e!="symbol"?e+"":e,t),t);import{Y as pt,h as ie,y as Be,aj as Dt,ak as kt,d as Ot,H as we,al as et,k as xe,am as _t,an as Rt,z as Mt,ao as Lt,l as Oe,U as he,S as Fe,ap as Pt,aq as zt,Z as Vt,j as Bt,ar as $t,o as X,b as Wt,m as k,a2 as Kt,p as $,as as Jt,at as Ut,au as jt,c as te,n as tt,e as Ee,E as rt,F as at,a as de,t as ve,av as Gt,q as qt,s as Ht,aw as nt,ax as Qt,ac as Yt,ai as Zt,ay as Xt,_ as er}from"./framework.hrgFA2vO.js";import{u as tr,c as rr}from"./theme.BI8tTASj.js";const ar={root:()=>pt(()=>import("./@localSearchIndexroot.D9VpIupY.js"),__vite__mapDeps([]))};/*! +var Ct=Object.defineProperty;var It=(o,e,t)=>e in o?Ct(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var ke=(o,e,t)=>(It(o,typeof e!="symbol"?e+"":e,t),t);import{Y as pt,h as ie,y as Be,aj as Dt,ak as kt,d as Ot,H as we,al as et,k as xe,am as _t,an as Rt,z as Mt,ao as Lt,l as Oe,U as he,S as Fe,ap as Pt,aq as zt,Z as Vt,j as Bt,ar as $t,o as X,b as Wt,m as k,a2 as Kt,p as $,as as Jt,at as Ut,au as jt,c as te,n as tt,e as Ee,E as rt,F as at,a as de,t as ve,av as Gt,q as qt,s as Ht,aw as nt,ax as Qt,ac as Yt,ai as Zt,ay as Xt,_ as er}from"./framework.hrgFA2vO.js";import{u as tr,c as rr}from"./theme.Bek6KSJm.js";const ar={root:()=>pt(()=>import("./@localSearchIndexroot.CYK20DMC.js"),__vite__mapDeps([]))};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var yt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Te=yt.join(","),mt=typeof Element>"u",se=mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!mt&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Ce=function o(e,t){var r;t===void 0&&(t=!0);var n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=n===""||n==="true",i=a||t&&e&&o(e.parentNode);return i},nr=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},gt=function(e,t,r){if(Ce(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Te));return t&&se.call(e,Te)&&n.unshift(e),n=n.filter(r),n},bt=function o(e,t,r){for(var n=[],a=Array.from(e);a.length;){var i=a.shift();if(!Ce(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,l=o(u,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var d=se.call(i,Te);d&&r.filter(i)&&(t||!e.includes(i))&&n.push(i);var h=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),v=!Ce(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(h&&v){var m=o(h===!0?i.children:h.children,!0,r);r.flatten?n.push.apply(n,m):n.push({scopeParent:i,candidates:m})}else a.unshift.apply(a,i.children)}}return n},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},oe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||nr(e))&&!wt(e)?0:e.tabIndex},ir=function(e,t){var r=oe(e);return r<0&&t&&!wt(e)?0:r},or=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){return e.tagName==="INPUT"},sr=function(e){return xt(e)&&e.type==="hidden"},ur=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},lr=function(e,t){for(var r=0;rsummary:first-of-type"),i=a?e.parentElement:e;if(se.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var u=e.parentElement,l=Ne(e);if(u&&!u.shadowRoot&&n(u)===!0)return it(e);e.assignedSlot?e=e.assignedSlot:!u&&l!==e.ownerDocument?e=l.host:e=u}e=s}if(dr(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return it(e);return!1},pr=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r=0)},mr=function o(e){var t=[],r=[];return e.forEach(function(n,a){var i=!!n.scopeParent,s=i?n.scopeParent:n,u=ir(s,i),l=i?o(n.candidates):s;u===0?i?t.push.apply(t,l):t.push(s):r.push({documentOrder:a,tabIndex:u,item:n,isScope:i,content:l})}),r.sort(or).reduce(function(n,a){return a.isScope?n.push.apply(n,a.content):n.push(a.content),n},[]).concat(t)},gr=function(e,t){t=t||{};var r;return t.getShadowRoot?r=bt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:yr}):r=gt(e,t.includeContainer,$e.bind(null,t)),mr(r)},br=function(e,t){t=t||{};var r;return t.getShadowRoot?r=bt([e],t.includeContainer,{filter:Ie.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=gt(e,t.includeContainer,Ie.bind(null,t)),r},ue=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return se.call(e,Te)===!1?!1:$e(t,e)},wr=yt.concat("iframe").join(","),_e=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return se.call(e,wr)===!1?!1:Ie(t,e)};/*! diff --git a/docs/assets/chunks/theme.BI8tTASj.js b/docs/assets/chunks/theme.Bek6KSJm.js similarity index 99% rename from docs/assets/chunks/theme.BI8tTASj.js rename to docs/assets/chunks/theme.Bek6KSJm.js index f1882db..1a54371 100644 --- a/docs/assets/chunks/theme.BI8tTASj.js +++ b/docs/assets/chunks/theme.Bek6KSJm.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/chunks/VPLocalSearchBox.ck5mhc2G.js","assets/chunks/framework.hrgFA2vO.js"] + __vite__mapDeps.viteFileDeps = ["assets/chunks/VPLocalSearchBox.D7w4D537.js","assets/chunks/framework.hrgFA2vO.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{d as p,o as l,c,r,n as I,a as E,t as S,b as $,w as d,T as ve,e as m,_ as k,u as Ue,i as Ge,f as je,g as he,h as T,j as W,k as g,l as G,m as v,p as s,q as A,s as C,v as U,x as ie,y as j,z as Z,A as fe,B as Pe,C as ze,D as Ke,F as N,E as B,G as z,H as Ve,I as ee,J as _,K as q,L as Le,M as te,N as Y,O as ne,P as qe,Q as Se,R as We,S as re,U as Re,V as we,W as Je,X as Ye,Y as Qe,Z as Te,$ as Ie,a0 as Xe,a1 as Ze,a2 as et,a3 as tt}from"./framework.hrgFA2vO.js";const nt=p({__name:"VPBadge",props:{text:null,type:{default:"tip"}},setup(e){return(n,t)=>(l(),c("span",{class:I(["VPBadge",e.type])},[r(n.$slots,"default",{},()=>[E(S(e.text),1)])],2))}}),at={key:0,class:"VPBackdrop"},ot=p({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(n,t)=>(l(),$(ve,{name:"fade"},{default:d(()=>[e.show?(l(),c("div",at)):m("",!0)]),_:1}))}}),st=k(ot,[["__scopeId","data-v-fb9c3dee"]]),P=Ue;function lt(e,n){let t,a=!1;return()=>{t&&clearTimeout(t),a?t=setTimeout(e,n):(e(),(a=!0)&&setTimeout(()=>a=!1,n))}}function ce(e){return/^\//.test(e)?e:`/${e}`}function me(e){const{pathname:n,search:t,hash:a,protocol:o}=new URL(e,"http://a.com");if(Ge(e)||e.startsWith("#")||!o.startsWith("http")||!je(n))return e;const{site:i}=P(),u=n.endsWith("/")||n.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${n.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${a}`);return he(u)}const pe=T(W?location.hash:"");W&&window.addEventListener("hashchange",()=>{pe.value=location.hash});function R({removeCurrent:e=!0,correspondingLink:n=!1}={}){const{site:t,localeIndex:a,page:o,theme:i}=P(),u=g(()=>{var h,b;return{label:(h=t.value.locales[a.value])==null?void 0:h.label,link:((b=t.value.locales[a.value])==null?void 0:b.link)||(a.value==="root"?"/":`/${a.value}/`)}});return{localeLinks:g(()=>Object.entries(t.value.locales).flatMap(([h,b])=>e&&u.value.label===b.label?[]:{text:b.label,link:it(b.link||(h==="root"?"/":`/${h}/`),i.value.i18nRouting!==!1&&n,o.value.relativePath.slice(u.value.link.length-1),!t.value.cleanUrls)+pe.value})),currentLang:u}}function it(e,n,t,a){return n?e.replace(/\/$/,"")+ce(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,a?".html":"")):e}const rt=e=>(A("data-v-5b47a475"),e=e(),C(),e),ct={class:"NotFound"},ut={class:"code"},dt={class:"title"},vt=rt(()=>v("div",{class:"divider"},null,-1)),ht={class:"quote"},ft={class:"action"},mt=["href","aria-label"],pt=p({__name:"NotFound",setup(e){const{site:n,theme:t}=P(),{localeLinks:a}=R({removeCurrent:!1}),o=T("/");return G(()=>{var u;const i=window.location.pathname.replace(n.value.base,"").replace(/(^.*?\/).*$/,"/$1");a.value.length&&(o.value=((u=a.value.find(({link:f})=>f.startsWith(i)))==null?void 0:u.link)||a.value[0].link)}),(i,u)=>{var f,h,b,V,y;return l(),c("div",ct,[v("p",ut,S(((f=s(t).notFound)==null?void 0:f.code)??"404"),1),v("h1",dt,S(((h=s(t).notFound)==null?void 0:h.title)??"PAGE NOT FOUND"),1),vt,v("blockquote",ht,S(((b=s(t).notFound)==null?void 0:b.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),v("div",ft,[v("a",{class:"link",href:s(he)(o.value),"aria-label":((V=s(t).notFound)==null?void 0:V.linkLabel)??"go to home"},S(((y=s(t).notFound)==null?void 0:y.linkText)??"Take me home"),9,mt)])])}}}),_t=k(pt,[["__scopeId","data-v-5b47a475"]]);function Ne(e,n){if(Array.isArray(e))return Q(e);if(e==null)return[];n=ce(n);const t=Object.keys(e).sort((o,i)=>i.split("/").length-o.split("/").length).find(o=>n.startsWith(ce(o))),a=t?e[t]:[];return Array.isArray(a)?Q(a):Q(a.items,a.base)}function kt(e){const n=[];let t=0;for(const a in e){const o=e[a];if(o.items){t=n.push(o);continue}n[t]||n.push({items:[]}),n[t].items.push(o)}return n}function bt(e){const n=[];function t(a){for(const o of a)o.text&&o.link&&n.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(e),n}function ue(e,n){return Array.isArray(n)?n.some(t=>ue(e,t)):U(e,n.link)?!0:n.items?ue(e,n.items):!1}function Q(e,n){return[...e].map(t=>{const a={...t},o=a.base||n;return o&&a.link&&(a.link=o+a.link),a.items&&(a.items=Q(a.items,o)),a})}function D(){const{frontmatter:e,page:n,theme:t}=P(),a=ie("(min-width: 960px)"),o=T(!1),i=g(()=>{const M=t.value.sidebar,H=n.value.relativePath;return M?Ne(M,H):[]}),u=T(i.value);j(i,(M,H)=>{JSON.stringify(M)!==JSON.stringify(H)&&(u.value=i.value)});const f=g(()=>e.value.sidebar!==!1&&u.value.length>0&&e.value.layout!=="home"),h=g(()=>b?e.value.aside==null?t.value.aside==="left":e.value.aside==="left":!1),b=g(()=>e.value.layout==="home"?!1:e.value.aside!=null?!!e.value.aside:t.value.aside!==!1),V=g(()=>f.value&&a.value),y=g(()=>f.value?kt(u.value):[]);function L(){o.value=!0}function w(){o.value=!1}function x(){o.value?w():L()}return{isOpen:o,sidebar:u,sidebarGroups:y,hasSidebar:f,hasAside:b,leftAside:h,isSidebarEnabled:V,open:L,close:w,toggle:x}}function $t(e,n){let t;Z(()=>{t=e.value?document.activeElement:void 0}),G(()=>{window.addEventListener("keyup",a)}),fe(()=>{window.removeEventListener("keyup",a)});function a(o){o.key==="Escape"&&e.value&&(n(),t==null||t.focus())}}function gt(e){const{page:n}=P(),t=T(!1),a=g(()=>e.value.collapsed!=null),o=g(()=>!!e.value.link),i=T(!1),u=()=>{i.value=U(n.value.relativePath,e.value.link)};j([n,e,pe],u),G(u);const f=g(()=>i.value?!0:e.value.items?ue(n.value.relativePath,e.value.items):!1),h=g(()=>!!(e.value.items&&e.value.items.length));Z(()=>{t.value=!!(a.value&&e.value.collapsed)}),Pe(()=>{(i.value||f.value)&&(t.value=!1)});function b(){a.value&&(t.value=!t.value)}return{collapsed:t,collapsible:a,isLink:o,isActiveLink:i,hasActiveLink:f,hasChildren:h,toggle:b}}function yt(){const{hasSidebar:e}=D(),n=ie("(min-width: 960px)"),t=ie("(min-width: 1280px)");return{isAsideEnabled:g(()=>!t.value&&!n.value?!1:e.value?t.value:n.value)}}const de=[];function xe(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function _e(e){const n=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const a=Number(t.tagName[1]);return{element:t,title:Pt(t),link:"#"+t.id,level:a}});return Vt(n,e)}function Pt(e){let n="";for(const t of e.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;n+=t.textContent}else t.nodeType===3&&(n+=t.textContent);return n.trim()}function Vt(e,n){if(n===!1)return[];const t=(typeof n=="object"&&!Array.isArray(n)?n.level:n)||2,[a,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;e=e.filter(u=>u.level>=a&&u.level<=o),de.length=0;for(const{element:u,link:f}of e)de.push({element:u,link:f});const i=[];e:for(let u=0;u=0;h--){const b=e[h];if(b.level{requestAnimationFrame(i),window.addEventListener("scroll",a)}),ze(()=>{u(location.hash)}),fe(()=>{window.removeEventListener("scroll",a)});function i(){if(!t.value)return;const f=window.scrollY,h=window.innerHeight,b=document.body.offsetHeight,V=Math.abs(f+h-b)<1,y=de.map(({element:w,link:x})=>({link:x,top:St(w)})).filter(({top:w})=>!Number.isNaN(w)).sort((w,x)=>w.top-x.top);if(!y.length){u(null);return}if(f<1){u(null);return}if(V){u(y[y.length-1].link);return}let L=null;for(const{link:w,top:x}of y){if(x>f+Ke()+4)break;L=w}u(L)}function u(f){o&&o.classList.remove("active"),f==null?o=null:o=e.value.querySelector(`a[href="${decodeURIComponent(f)}"]`);const h=o;h?(h.classList.add("active"),n.value.style.top=h.offsetTop+39+"px",n.value.style.opacity="1"):(n.value.style.top="33px",n.value.style.opacity="0")}}function St(e){let n=0;for(;e!==document.body;){if(e===null)return NaN;n+=e.offsetTop,e=e.offsetParent}return n}const wt=["href","title"],Tt=p({__name:"VPDocOutlineItem",props:{headers:null,root:{type:Boolean}},setup(e){function n({target:t}){const a=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(a));o==null||o.focus({preventScroll:!0})}return(t,a)=>{const o=z("VPDocOutlineItem",!0);return l(),c("ul",{class:I(["VPDocOutlineItem",e.root?"root":"nested"])},[(l(!0),c(N,null,B(e.headers,({children:i,link:u,title:f})=>(l(),c("li",null,[v("a",{class:"outline-link",href:u,onClick:n,title:f},S(f),9,wt),i!=null&&i.length?(l(),$(o,{key:0,headers:i},null,8,["headers"])):m("",!0)]))),256))],2)}}}),Me=k(Tt,[["__scopeId","data-v-2da98c74"]]),It=e=>(A("data-v-f0a3c685"),e=e(),C(),e),Nt={class:"content"},xt={class:"outline-title",role:"heading","aria-level":"2"},Mt={"aria-labelledby":"doc-outline-aria-label"},At=It(()=>v("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Ct=p({__name:"VPDocAsideOutline",setup(e){const{frontmatter:n,theme:t}=P(),a=Ve([]);ee(()=>{a.value=_e(n.value.outline??t.value.outline)});const o=T(),i=T();return Lt(o,i),(u,f)=>(l(),c("div",{class:I(["VPDocAsideOutline",{"has-outline":s(a).length>0}]),ref_key:"container",ref:o,role:"navigation"},[v("div",Nt,[v("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),v("div",xt,S(s(xe)(s(t))),1),v("nav",Mt,[At,_(Me,{headers:s(a),root:!0},null,8,["headers"])])])],2))}}),Bt=k(Ct,[["__scopeId","data-v-f0a3c685"]]),Ht={class:"VPDocAsideCarbonAds"},Et=p({__name:"VPDocAsideCarbonAds",props:{carbonAds:null},setup(e){const n=()=>null;return(t,a)=>(l(),c("div",Ht,[_(s(n),{"carbon-ads":e.carbonAds},null,8,["carbon-ads"])]))}}),Ft=e=>(A("data-v-760fd414"),e=e(),C(),e),Dt={class:"VPDocAside"},Ot=Ft(()=>v("div",{class:"spacer"},null,-1)),Ut=p({__name:"VPDocAside",setup(e){const{theme:n}=P();return(t,a)=>(l(),c("div",Dt,[r(t.$slots,"aside-top",{},void 0,!0),r(t.$slots,"aside-outline-before",{},void 0,!0),_(Bt),r(t.$slots,"aside-outline-after",{},void 0,!0),Ot,r(t.$slots,"aside-ads-before",{},void 0,!0),s(n).carbonAds?(l(),$(Et,{key:0,"carbon-ads":s(n).carbonAds},null,8,["carbon-ads"])):m("",!0),r(t.$slots,"aside-ads-after",{},void 0,!0),r(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Gt=k(Ut,[["__scopeId","data-v-760fd414"]]);function jt(){const{theme:e,page:n}=P();return g(()=>{const{text:t="Edit this page",pattern:a=""}=e.value.editLink||{};let o;return typeof a=="function"?o=a(n.value):o=a.replace(/:path/g,n.value.filePath),{url:o,text:t}})}function zt(){const{page:e,theme:n,frontmatter:t}=P();return g(()=>{var h,b,V,y,L,w,x,M;const a=Ne(n.value.sidebar,e.value.relativePath),o=bt(a),i=o.findIndex(H=>U(e.value.relativePath,H.link)),u=((h=n.value.docFooter)==null?void 0:h.prev)===!1&&!t.value.prev||t.value.prev===!1,f=((b=n.value.docFooter)==null?void 0:b.next)===!1&&!t.value.next||t.value.next===!1;return{prev:u?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((V=o[i-1])==null?void 0:V.docFooterText)??((y=o[i-1])==null?void 0:y.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((L=o[i-1])==null?void 0:L.link)},next:f?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((w=o[i+1])==null?void 0:w.docFooterText)??((x=o[i+1])==null?void 0:x.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((M=o[i+1])==null?void 0:M.link)}}})}const F=p({__name:"VPLink",props:{tag:null,href:null,noIcon:{type:Boolean},target:null,rel:null},setup(e){const n=e,t=g(()=>n.tag??(n.href?"a":"span")),a=g(()=>n.href&&Le.test(n.href));return(o,i)=>(l(),$(q(s(t)),{class:I(["VPLink",{link:e.href,"vp-external-link-icon":s(a),"no-icon":e.noIcon}]),href:e.href?s(me)(e.href):void 0,target:e.target??(s(a)?"_blank":void 0),rel:e.rel??(s(a)?"noreferrer":void 0)},{default:d(()=>[r(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Kt={class:"VPLastUpdated"},qt=["datetime"],Wt=p({__name:"VPDocFooterLastUpdated",setup(e){const{theme:n,page:t,frontmatter:a,lang:o}=P(),i=g(()=>new Date(a.value.lastUpdated??t.value.lastUpdated)),u=g(()=>i.value.toISOString()),f=T("");return G(()=>{Z(()=>{var h,b,V;f.value=new Intl.DateTimeFormat((b=(h=n.value.lastUpdated)==null?void 0:h.formatOptions)!=null&&b.forceLocale?o.value:void 0,((V=n.value.lastUpdated)==null?void 0:V.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(i.value)})}),(h,b)=>{var V;return l(),c("p",Kt,[E(S(((V=s(n).lastUpdated)==null?void 0:V.text)||s(n).lastUpdatedText||"Last updated")+": ",1),v("time",{datetime:s(u)},S(f.value),9,qt)])}}}),Rt=k(Wt,[["__scopeId","data-v-7e190c8c"]]),Jt=e=>(A("data-v-6501975d"),e=e(),C(),e),Yt={key:0,class:"VPDocFooter"},Qt={key:0,class:"edit-info"},Xt={key:0,class:"edit-link"},Zt=Jt(()=>v("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),en={key:1,class:"last-updated"},tn={key:1,class:"prev-next"},nn={class:"pager"},an=["innerHTML"],on=["innerHTML"],sn={class:"pager"},ln=["innerHTML"],rn=["innerHTML"],cn=p({__name:"VPDocFooter",setup(e){const{theme:n,page:t,frontmatter:a}=P(),o=jt(),i=zt(),u=g(()=>n.value.editLink&&a.value.editLink!==!1),f=g(()=>t.value.lastUpdated&&a.value.lastUpdated!==!1),h=g(()=>u.value||f.value||i.value.prev||i.value.next);return(b,V)=>{var y,L,w,x;return s(h)?(l(),c("footer",Yt,[r(b.$slots,"doc-footer-before",{},void 0,!0),s(u)||s(f)?(l(),c("div",Qt,[s(u)?(l(),c("div",Xt,[_(F,{class:"edit-link-button",href:s(o).url,"no-icon":!0},{default:d(()=>[Zt,E(" "+S(s(o).text),1)]),_:1},8,["href"])])):m("",!0),s(f)?(l(),c("div",en,[_(Rt)])):m("",!0)])):m("",!0),(y=s(i).prev)!=null&&y.link||(L=s(i).next)!=null&&L.link?(l(),c("nav",tn,[v("div",nn,[(w=s(i).prev)!=null&&w.link?(l(),$(F,{key:0,class:"pager-link prev",href:s(i).prev.link},{default:d(()=>{var M;return[v("span",{class:"desc",innerHTML:((M=s(n).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,an),v("span",{class:"title",innerHTML:s(i).prev.text},null,8,on)]}),_:1},8,["href"])):m("",!0)]),v("div",sn,[(x=s(i).next)!=null&&x.link?(l(),$(F,{key:0,class:"pager-link next",href:s(i).next.link},{default:d(()=>{var M;return[v("span",{class:"desc",innerHTML:((M=s(n).docFooter)==null?void 0:M.next)||"Next page"},null,8,ln),v("span",{class:"title",innerHTML:s(i).next.text},null,8,rn)]}),_:1},8,["href"])):m("",!0)])])):m("",!0)])):m("",!0)}}}),un=k(cn,[["__scopeId","data-v-6501975d"]]),dn=e=>(A("data-v-73a3cf53"),e=e(),C(),e),vn={class:"container"},hn=dn(()=>v("div",{class:"aside-curtain"},null,-1)),fn={class:"aside-container"},mn={class:"aside-content"},pn={class:"content"},_n={class:"content-container"},kn={class:"main"},bn=p({__name:"VPDoc",setup(e){const{theme:n}=P(),t=te(),{hasSidebar:a,hasAside:o,leftAside:i}=D(),u=g(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(f,h)=>{const b=z("Content");return l(),c("div",{class:I(["VPDoc",{"has-sidebar":s(a),"has-aside":s(o)}])},[r(f.$slots,"doc-top",{},void 0,!0),v("div",vn,[s(o)?(l(),c("div",{key:0,class:I(["aside",{"left-aside":s(i)}])},[hn,v("div",fn,[v("div",mn,[_(Gt,null,{"aside-top":d(()=>[r(f.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":d(()=>[r(f.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":d(()=>[r(f.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[r(f.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[r(f.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[r(f.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):m("",!0),v("div",pn,[v("div",_n,[r(f.$slots,"doc-before",{},void 0,!0),v("main",kn,[_(b,{class:I(["vp-doc",[s(u),s(n).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),_(un,null,{"doc-footer-before":d(()=>[r(f.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),r(f.$slots,"doc-after",{},void 0,!0)])])]),r(f.$slots,"doc-bottom",{},void 0,!0)],2)}}}),$n=k(bn,[["__scopeId","data-v-73a3cf53"]]),gn=p({__name:"VPButton",props:{tag:null,size:{default:"medium"},theme:{default:"brand"},text:null,href:null,target:null,rel:null},setup(e){const n=e,t=g(()=>n.href&&Le.test(n.href)),a=g(()=>n.tag||n.href?"a":"button");return(o,i)=>(l(),$(q(s(a)),{class:I(["VPButton",[e.size,e.theme]]),href:e.href?s(me)(e.href):void 0,target:n.target??(s(t)?"_blank":void 0),rel:n.rel??(s(t)?"noreferrer":void 0)},{default:d(()=>[E(S(e.text),1)]),_:1},8,["class","href","target","rel"]))}}),yn=k(gn,[["__scopeId","data-v-148563f9"]]),Pn=["src","alt"],Vn=p({__name:"VPImage",props:{image:null,alt:null},setup(e){return defineOptions({inheritAttrs:!1}),(n,t)=>{const a=z("VPImage",!0);return e.image?(l(),c(N,{key:0},[typeof e.image=="string"||"src"in e.image?(l(),c("img",Y({key:0,class:"VPImage"},typeof e.image=="string"?n.$attrs:{...e.image,...n.$attrs},{src:s(he)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Pn)):(l(),c(N,{key:1},[_(a,Y({class:"dark",image:e.image.dark,alt:e.image.alt},n.$attrs),null,16,["image","alt"]),_(a,Y({class:"light",image:e.image.light,alt:e.image.alt},n.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}}),X=k(Vn,[["__scopeId","data-v-645fe56b"]]),Ln=e=>(A("data-v-3fef0c37"),e=e(),C(),e),Sn={class:"container"},wn={class:"main"},Tn={key:0,class:"name"},In=["innerHTML"],Nn=["innerHTML"],xn=["innerHTML"],Mn={key:0,class:"actions"},An={key:0,class:"image"},Cn={class:"image-container"},Bn=Ln(()=>v("div",{class:"image-bg"},null,-1)),Hn=p({__name:"VPHero",props:{name:null,text:null,tagline:null,image:null,actions:null},setup(e){const n=ne("hero-image-slot-exists");return(t,a)=>(l(),c("div",{class:I(["VPHero",{"has-image":e.image||s(n)}])},[v("div",Sn,[v("div",wn,[r(t.$slots,"home-hero-info-before",{},void 0,!0),r(t.$slots,"home-hero-info",{},()=>[e.name?(l(),c("h1",Tn,[v("span",{innerHTML:e.name,class:"clip"},null,8,In)])):m("",!0),e.text?(l(),c("p",{key:1,innerHTML:e.text,class:"text"},null,8,Nn)):m("",!0),e.tagline?(l(),c("p",{key:2,innerHTML:e.tagline,class:"tagline"},null,8,xn)):m("",!0)],!0),r(t.$slots,"home-hero-info-after",{},void 0,!0),e.actions?(l(),c("div",Mn,[(l(!0),c(N,null,B(e.actions,o=>(l(),c("div",{key:o.link,class:"action"},[_(yn,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):m("",!0),r(t.$slots,"home-hero-actions-after",{},void 0,!0)]),e.image||s(n)?(l(),c("div",An,[v("div",Cn,[Bn,r(t.$slots,"home-hero-image",{},()=>[e.image?(l(),$(X,{key:0,class:"image-src",image:e.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}}),En=k(Hn,[["__scopeId","data-v-3fef0c37"]]),Fn=p({__name:"VPHomeHero",setup(e){const{frontmatter:n}=P();return(t,a)=>s(n).hero?(l(),$(En,{key:0,class:"VPHomeHero",name:s(n).hero.name,text:s(n).hero.text,tagline:s(n).hero.tagline,image:s(n).hero.image,actions:s(n).hero.actions},{"home-hero-info-before":d(()=>[r(t.$slots,"home-hero-info-before")]),"home-hero-info":d(()=>[r(t.$slots,"home-hero-info")]),"home-hero-info-after":d(()=>[r(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":d(()=>[r(t.$slots,"home-hero-actions-after")]),"home-hero-image":d(()=>[r(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):m("",!0)}}),Dn=e=>(A("data-v-c7a1090f"),e=e(),C(),e),On={class:"box"},Un={key:0,class:"icon"},Gn=["innerHTML"],jn=["innerHTML"],zn=["innerHTML"],Kn={key:4,class:"link-text"},qn={class:"link-text-value"},Wn=Dn(()=>v("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Rn=p({__name:"VPFeature",props:{icon:null,title:null,details:null,link:null,linkText:null,rel:null,target:null},setup(e){return(n,t)=>(l(),$(F,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:d(()=>[v("article",On,[typeof e.icon=="object"&&e.icon.wrap?(l(),c("div",Un,[_(X,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(l(),$(X,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(l(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Gn)):m("",!0),v("h2",{class:"title",innerHTML:e.title},null,8,jn),e.details?(l(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,zn)):m("",!0),e.linkText?(l(),c("div",Kn,[v("p",qn,[E(S(e.linkText)+" ",1),Wn])])):m("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Jn=k(Rn,[["__scopeId","data-v-c7a1090f"]]),Yn={key:0,class:"VPFeatures"},Qn={class:"container"},Xn={class:"items"},Zn=p({__name:"VPFeatures",props:{features:null},setup(e){const n=e,t=g(()=>{const a=n.features.length;if(a){if(a===2)return"grid-2";if(a===3)return"grid-3";if(a%3===0)return"grid-6";if(a>3)return"grid-4"}else return});return(a,o)=>e.features?(l(),c("div",Yn,[v("div",Qn,[v("div",Xn,[(l(!0),c(N,null,B(e.features,i=>(l(),c("div",{key:i.title,class:I(["item",[s(t)]])},[_(Jn,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):m("",!0)}}),ea=k(Zn,[["__scopeId","data-v-02aac438"]]),ta=p({__name:"VPHomeFeatures",setup(e){const{frontmatter:n}=P();return(t,a)=>s(n).features?(l(),$(ea,{key:0,class:"VPHomeFeatures",features:s(n).features},null,8,["features"])):m("",!0)}}),na=p({__name:"VPHomeContent",setup(e){const{width:n}=qe({includeScrollbar:!1});return(t,a)=>(l(),c("div",{class:"vp-doc container",style:Se(s(n)?{"--vp-offset":`calc(50% - ${s(n)/2}px)`}:{})},[r(t.$slots,"default",{},void 0,!0)],4))}}),aa=k(na,[["__scopeId","data-v-ff1e6a87"]]),oa={class:"VPHome"},sa=p({__name:"VPHome",setup(e){const{frontmatter:n}=P();return(t,a)=>{const o=z("Content");return l(),c("div",oa,[r(t.$slots,"home-hero-before",{},void 0,!0),_(Fn,null,{"home-hero-info-before":d(()=>[r(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[r(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[r(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[r(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[r(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),r(t.$slots,"home-hero-after",{},void 0,!0),r(t.$slots,"home-features-before",{},void 0,!0),_(ta),r(t.$slots,"home-features-after",{},void 0,!0),s(n).markdownStyles!==!1?(l(),$(aa,{key:0},{default:d(()=>[_(o)]),_:1})):(l(),$(o,{key:1}))])}}}),la=k(sa,[["__scopeId","data-v-780c0a6a"]]),ia={},ra={class:"VPPage"};function ca(e,n){const t=z("Content");return l(),c("div",ra,[r(e.$slots,"page-top"),_(t),r(e.$slots,"page-bottom")])}const ua=k(ia,[["render",ca]]),da=p({__name:"VPContent",setup(e){const{page:n,frontmatter:t}=P(),{hasSidebar:a}=D();return(o,i)=>(l(),c("div",{class:I(["VPContent",{"has-sidebar":s(a),"is-home":s(t).layout==="home"}]),id:"VPContent"},[s(n).isNotFound?r(o.$slots,"not-found",{key:0},()=>[_(_t)],!0):s(t).layout==="page"?(l(),$(ua,{key:1},{"page-top":d(()=>[r(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":d(()=>[r(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):s(t).layout==="home"?(l(),$(la,{key:2},{"home-hero-before":d(()=>[r(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":d(()=>[r(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[r(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[r(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[r(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[r(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":d(()=>[r(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":d(()=>[r(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":d(()=>[r(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):s(t).layout&&s(t).layout!=="doc"?(l(),$(q(s(t).layout),{key:3})):(l(),$($n,{key:4},{"doc-top":d(()=>[r(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":d(()=>[r(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":d(()=>[r(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":d(()=>[r(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":d(()=>[r(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":d(()=>[r(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":d(()=>[r(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[r(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[r(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[r(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":d(()=>[r(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),va=k(da,[["__scopeId","data-v-38bad42c"]]),ha={class:"container"},fa=["innerHTML"],ma=["innerHTML"],pa=p({__name:"VPFooter",setup(e){const{theme:n,frontmatter:t}=P(),{hasSidebar:a}=D();return(o,i)=>s(n).footer&&s(t).footer!==!1?(l(),c("footer",{key:0,class:I(["VPFooter",{"has-sidebar":s(a)}])},[v("div",ha,[s(n).footer.message?(l(),c("p",{key:0,class:"message",innerHTML:s(n).footer.message},null,8,fa)):m("",!0),s(n).footer.copyright?(l(),c("p",{key:1,class:"copyright",innerHTML:s(n).footer.copyright},null,8,ma)):m("",!0)])],2)):m("",!0)}}),_a=k(pa,[["__scopeId","data-v-7bfb25f4"]]);function Ae(){const{theme:e,frontmatter:n}=P(),t=Ve([]),a=g(()=>t.value.length>0);return ee(()=>{t.value=_e(n.value.outline??e.value.outline)}),{headers:t,hasLocalNav:a}}const ka=e=>(A("data-v-dfe3d432"),e=e(),C(),e),ba=ka(()=>v("span",{class:"vpi-chevron-right icon"},null,-1)),$a={class:"header"},ga={class:"outline"},ya=p({__name:"VPLocalNavOutlineDropdown",props:{headers:null,navHeight:null},setup(e){const n=e,{theme:t}=P(),a=T(!1),o=T(0),i=T(),u=T();We(i,()=>{a.value=!1}),re("Escape",()=>{a.value=!1}),ee(()=>{a.value=!1});function f(){a.value=!a.value,o.value=window.innerHeight+Math.min(window.scrollY-n.navHeight,0)}function h(V){V.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),Re(()=>{a.value=!1}))}function b(){a.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(V,y)=>(l(),c("div",{class:"VPLocalNavOutlineDropdown",style:Se({"--vp-vh":o.value+"px"}),ref_key:"main",ref:i},[e.headers.length>0?(l(),c("button",{key:0,onClick:f,class:I({open:a.value})},[E(S(s(xe)(s(t)))+" ",1),ba],2)):(l(),c("button",{key:1,onClick:b},S(s(t).returnToTopLabel||"Return to top"),1)),_(ve,{name:"flyout"},{default:d(()=>[a.value?(l(),c("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:h},[v("div",$a,[v("a",{class:"top-link",href:"#",onClick:b},S(s(t).returnToTopLabel||"Return to top"),1)]),v("div",ga,[_(Me,{headers:e.headers},null,8,["headers"])])],512)):m("",!0)]),_:1})],4))}}),Pa=k(ya,[["__scopeId","data-v-dfe3d432"]]),Va=e=>(A("data-v-5798fa78"),e=e(),C(),e),La={class:"container"},Sa=["aria-expanded"],wa=Va(()=>v("span",{class:"vpi-align-left menu-icon"},null,-1)),Ta={class:"menu-text"},Ia=p({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:n,frontmatter:t}=P(),{hasSidebar:a}=D(),{headers:o}=Ae(),{y:i}=we(),u=T(0);G(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),ee(()=>{o.value=_e(t.value.outline??n.value.outline)});const f=g(()=>o.value.length===0),h=g(()=>f.value&&!a.value),b=g(()=>({VPLocalNav:!0,"has-sidebar":a.value,empty:f.value,fixed:h.value}));return(V,y)=>s(t).layout!=="home"&&(!s(h)||s(i)>=u.value)?(l(),c("div",{key:0,class:I(s(b))},[v("div",La,[s(a)?(l(),c("button",{key:0,class:"menu","aria-expanded":e.open,"aria-controls":"VPSidebarNav",onClick:y[0]||(y[0]=L=>V.$emit("open-menu"))},[wa,v("span",Ta,S(s(n).sidebarMenuLabel||"Menu"),1)],8,Sa)):m("",!0),_(Pa,{headers:s(o),navHeight:u.value},null,8,["headers","navHeight"])])],2)):m("",!0)}}),Na=k(Ia,[["__scopeId","data-v-5798fa78"]]);function xa(){const e=T(!1);function n(){e.value=!0,window.addEventListener("resize",o)}function t(){e.value=!1,window.removeEventListener("resize",o)}function a(){e.value?t():n()}function o(){window.outerWidth>=768&&t()}const i=te();return j(()=>i.path,t),{isScreenOpen:e,openScreen:n,closeScreen:t,toggleScreen:a}}const Ma={},Aa={class:"VPSwitch",type:"button",role:"switch"},Ca={class:"check"},Ba={key:0,class:"icon"};function Ha(e,n){return l(),c("button",Aa,[v("span",Ca,[e.$slots.default?(l(),c("span",Ba,[r(e.$slots,"default",{},void 0,!0)])):m("",!0)])])}const Ea=k(Ma,[["render",Ha],["__scopeId","data-v-9abc5eae"]]),Ce=e=>(A("data-v-bba37ed4"),e=e(),C(),e),Fa=Ce(()=>v("span",{class:"vpi-sun sun"},null,-1)),Da=Ce(()=>v("span",{class:"vpi-moon moon"},null,-1)),Oa=p({__name:"VPSwitchAppearance",setup(e){const{isDark:n,theme:t}=P(),a=ne("toggle-appearance",()=>{n.value=!n.value}),o=g(()=>n.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(i,u)=>(l(),$(Ea,{title:s(o),class:"VPSwitchAppearance","aria-checked":s(n),onClick:s(a)},{default:d(()=>[Fa,Da]),_:1},8,["title","aria-checked","onClick"]))}}),ke=k(Oa,[["__scopeId","data-v-bba37ed4"]]),Ua={key:0,class:"VPNavBarAppearance"},Ga=p({__name:"VPNavBarAppearance",setup(e){const{site:n}=P();return(t,a)=>s(n).appearance&&s(n).appearance!=="force-dark"?(l(),c("div",Ua,[_(ke)])):m("",!0)}}),ja=k(Ga,[["__scopeId","data-v-4f07862e"]]),be=T();let Be=!1,le=0;function za(e){const n=T(!1);if(W){!Be&&Ka(),le++;const t=j(be,a=>{var o,i,u;a===e.el.value||(o=e.el.value)!=null&&o.contains(a)?(n.value=!0,(i=e.onFocus)==null||i.call(e)):(n.value=!1,(u=e.onBlur)==null||u.call(e))});fe(()=>{t(),le--,le||qa()})}return Je(n)}function Ka(){document.addEventListener("focusin",He),Be=!0,be.value=document.activeElement}function qa(){document.removeEventListener("focusin",He)}function He(){be.value=document.activeElement}const Wa={class:"VPMenuLink"},Ra=p({__name:"VPMenuLink",props:{item:null},setup(e){const{page:n}=P();return(t,a)=>(l(),c("div",Wa,[_(F,{class:I({active:s(U)(s(n).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel},{default:d(()=>[E(S(e.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ae=k(Ra,[["__scopeId","data-v-11b17785"]]),Ja={class:"VPMenuGroup"},Ya={key:0,class:"title"},Qa=p({__name:"VPMenuGroup",props:{text:null,items:null},setup(e){return(n,t)=>(l(),c("div",Ja,[e.text?(l(),c("p",Ya,S(e.text),1)):m("",!0),(l(!0),c(N,null,B(e.items,a=>(l(),c(N,null,["link"in a?(l(),$(ae,{key:0,item:a},null,8,["item"])):m("",!0)],64))),256))]))}}),Xa=k(Qa,[["__scopeId","data-v-5a77f418"]]),Za={class:"VPMenu"},eo={key:0,class:"items"},to=p({__name:"VPMenu",props:{items:null},setup(e){return(n,t)=>(l(),c("div",Za,[e.items?(l(),c("div",eo,[(l(!0),c(N,null,B(e.items,a=>(l(),c(N,{key:a.text},["link"in a?(l(),$(ae,{key:0,item:a},null,8,["item"])):(l(),$(Xa,{key:1,text:a.text,items:a.items},null,8,["text","items"]))],64))),128))])):m("",!0),r(n.$slots,"default",{},void 0,!0)]))}}),no=k(to,[["__scopeId","data-v-8a0a63a0"]]),ao=e=>(A("data-v-979da8bb"),e=e(),C(),e),oo=["aria-expanded","aria-label"],so={key:0,class:"text"},lo=["innerHTML"],io=ao(()=>v("span",{class:"vpi-chevron-down text-icon"},null,-1)),ro={key:1,class:"vpi-more-horizontal icon"},co={class:"menu"},uo=p({__name:"VPFlyout",props:{icon:null,button:null,label:null,items:null},setup(e){const n=T(!1),t=T();za({el:t,onBlur:a});function a(){n.value=!1}return(o,i)=>(l(),c("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:i[1]||(i[1]=u=>n.value=!0),onMouseleave:i[2]||(i[2]=u=>n.value=!1)},[v("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":n.value,"aria-label":e.label,onClick:i[0]||(i[0]=u=>n.value=!n.value)},[e.button||e.icon?(l(),c("span",so,[e.icon?(l(),c("span",{key:0,class:I([e.icon,"option-icon"])},null,2)):m("",!0),e.button?(l(),c("span",{key:1,innerHTML:e.button},null,8,lo)):m("",!0),io])):(l(),c("span",ro))],8,oo),v("div",co,[_(no,{items:e.items},{default:d(()=>[r(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),$e=k(uo,[["__scopeId","data-v-979da8bb"]]),vo=["href","aria-label","innerHTML"],ho=p({__name:"VPSocialLink",props:{icon:null,link:null,ariaLabel:null},setup(e){const n=e,t=g(()=>typeof n.icon=="object"?n.icon.svg:``);return(a,o)=>(l(),c("a",{class:"VPSocialLink no-icon",href:e.link,"aria-label":e.ariaLabel??(typeof e.icon=="string"?e.icon:""),target:"_blank",rel:"noopener",innerHTML:s(t)},null,8,vo))}}),fo=k(ho,[["__scopeId","data-v-f37c6c33"]]),mo={class:"VPSocialLinks"},po=p({__name:"VPSocialLinks",props:{links:null},setup(e){return(n,t)=>(l(),c("div",mo,[(l(!0),c(N,null,B(e.links,({link:a,icon:o,ariaLabel:i})=>(l(),$(fo,{key:a,icon:o,link:a,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),ge=k(po,[["__scopeId","data-v-73c816d8"]]),_o={key:0,class:"group translations"},ko={class:"trans-title"},bo={key:1,class:"group"},$o={class:"item appearance"},go={class:"label"},yo={class:"appearance-action"},Po={key:2,class:"group"},Vo={class:"item social-links"},Lo=p({__name:"VPNavBarExtra",setup(e){const{site:n,theme:t}=P(),{localeLinks:a,currentLang:o}=R({correspondingLink:!0}),i=g(()=>a.value.length&&o.value.label||n.value.appearance||t.value.socialLinks);return(u,f)=>s(i)?(l(),$($e,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:d(()=>[s(a).length&&s(o).label?(l(),c("div",_o,[v("p",ko,S(s(o).label),1),(l(!0),c(N,null,B(s(a),h=>(l(),$(ae,{key:h.link,item:h},null,8,["item"]))),128))])):m("",!0),s(n).appearance&&s(n).appearance!=="force-dark"?(l(),c("div",bo,[v("div",$o,[v("p",go,S(s(t).darkModeSwitchLabel||"Appearance"),1),v("div",yo,[_(ke)])])])):m("",!0),s(t).socialLinks?(l(),c("div",Po,[v("div",Vo,[_(ge,{class:"social-links-list",links:s(t).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}}),So=k(Lo,[["__scopeId","data-v-4ee9c6b6"]]),wo=e=>(A("data-v-ef709a30"),e=e(),C(),e),To=["aria-expanded"],Io=wo(()=>v("span",{class:"container"},[v("span",{class:"top"}),v("span",{class:"middle"}),v("span",{class:"bottom"})],-1)),No=[Io],xo=p({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(n,t)=>(l(),c("button",{type:"button",class:I(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=a=>n.$emit("click"))},No,10,To))}}),Mo=k(xo,[["__scopeId","data-v-ef709a30"]]),Ao=["innerHTML"],Co=p({__name:"VPNavBarMenuLink",props:{item:null},setup(e){const{page:n}=P();return(t,a)=>(l(),$(F,{class:I({VPNavBarMenuLink:!0,active:s(U)(s(n).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel,tabindex:"0"},{default:d(()=>[v("span",{innerHTML:e.item.text},null,8,Ao)]),_:1},8,["class","href","target","rel"]))}}),Bo=k(Co,[["__scopeId","data-v-dc915170"]]),Ho=p({__name:"VPNavBarMenuGroup",props:{item:null},setup(e){const n=e,{page:t}=P(),a=i=>"link"in i?U(t.value.relativePath,i.link,!!n.item.activeMatch):i.items.some(a),o=g(()=>a(n.item));return(i,u)=>(l(),$($e,{class:I({VPNavBarMenuGroup:!0,active:s(U)(s(t).relativePath,e.item.activeMatch,!!e.item.activeMatch)||s(o)}),button:e.item.text,items:e.item.items},null,8,["class","button","items"]))}}),Eo=e=>(A("data-v-1b5abf06"),e=e(),C(),e),Fo={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Do=Eo(()=>v("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Oo=p({__name:"VPNavBarMenu",setup(e){const{theme:n}=P();return(t,a)=>s(n).nav?(l(),c("nav",Fo,[Do,(l(!0),c(N,null,B(s(n).nav,o=>(l(),c(N,{key:o.text},["link"in o?(l(),$(Bo,{key:0,item:o},null,8,["item"])):(l(),$(Ho,{key:1,item:o},null,8,["item"]))],64))),128))])):m("",!0)}}),Uo=k(Oo,[["__scopeId","data-v-1b5abf06"]]);function Go(e){const{localeIndex:n,theme:t}=P();function a(o){var x,M,H;const i=o.split("."),u=(x=t.value.search)==null?void 0:x.options,f=u&&typeof u=="object",h=f&&((H=(M=u.locales)==null?void 0:M[n.value])==null?void 0:H.translations)||null,b=f&&u.translations||null;let V=h,y=b,L=e;const w=i.pop();for(const J of i){let O=null;const K=L==null?void 0:L[J];K&&(O=L=K);const oe=y==null?void 0:y[J];oe&&(O=y=oe);const se=V==null?void 0:V[J];se&&(O=V=se),K||(L=O),oe||(y=O),se||(V=O)}return(V==null?void 0:V[w])??(y==null?void 0:y[w])??(L==null?void 0:L[w])??""}return a}const jo=["aria-label"],zo={class:"DocSearch-Button-Container"},Ko=v("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),qo={class:"DocSearch-Button-Placeholder"},Wo=v("span",{class:"DocSearch-Button-Keys"},[v("kbd",{class:"DocSearch-Button-Key"}),v("kbd",{class:"DocSearch-Button-Key"},"K")],-1),ye=p({__name:"VPNavBarSearchButton",setup(e){const t=Go({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(a,o)=>(l(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":s(t)("button.buttonAriaLabel")},[v("span",zo,[Ko,v("span",qo,S(s(t)("button.buttonText")),1)]),Wo],8,jo))}}),Ro={class:"VPNavBarSearch"},Jo={id:"local-search"},Yo={key:1,id:"docsearch"},Qo=p({__name:"VPNavBarSearch",setup(e){const n=Ye(()=>Qe(()=>import("./VPLocalSearchBox.ck5mhc2G.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:a}=P(),o=T(!1),i=T(!1);G(()=>{});function u(){o.value||(o.value=!0,setTimeout(f,16))}function f(){const y=new Event("keydown");y.key="k",y.metaKey=!0,window.dispatchEvent(y),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||f()},16)}function h(y){const L=y.target,w=L.tagName;return L.isContentEditable||w==="INPUT"||w==="SELECT"||w==="TEXTAREA"}const b=T(!1);re("k",y=>{(y.ctrlKey||y.metaKey)&&(y.preventDefault(),b.value=!0)}),re("/",y=>{h(y)||(y.preventDefault(),b.value=!0)});const V="local";return(y,L)=>{var w;return l(),c("div",Ro,[s(V)==="local"?(l(),c(N,{key:0},[b.value?(l(),$(s(n),{key:0,onClose:L[0]||(L[0]=x=>b.value=!1)})):m("",!0),v("div",Jo,[_(ye,{onClick:L[1]||(L[1]=x=>b.value=!0)})])],64)):s(V)==="algolia"?(l(),c(N,{key:1},[o.value?(l(),$(s(t),{key:0,algolia:((w=s(a).search)==null?void 0:w.options)??s(a).algolia,onVnodeBeforeMount:L[2]||(L[2]=x=>i.value=!0)},null,8,["algolia"])):m("",!0),i.value?m("",!0):(l(),c("div",Yo,[_(ye,{onClick:u})]))],64)):m("",!0)])}}}),Xo=p({__name:"VPNavBarSocialLinks",setup(e){const{theme:n}=P();return(t,a)=>s(n).socialLinks?(l(),$(ge,{key:0,class:"VPNavBarSocialLinks",links:s(n).socialLinks},null,8,["links"])):m("",!0)}}),Zo=k(Xo,[["__scopeId","data-v-8c82b47d"]]),es=["href","rel","target"],ts={key:1},ns={key:2},as=p({__name:"VPNavBarTitle",setup(e){const{site:n,theme:t}=P(),{hasSidebar:a}=D(),{currentLang:o}=R(),i=g(()=>{var h;return typeof t.value.logoLink=="string"?t.value.logoLink:(h=t.value.logoLink)==null?void 0:h.link}),u=g(()=>{var h;return typeof t.value.logoLink=="string"||(h=t.value.logoLink)==null?void 0:h.rel}),f=g(()=>{var h;return typeof t.value.logoLink=="string"||(h=t.value.logoLink)==null?void 0:h.target});return(h,b)=>(l(),c("div",{class:I(["VPNavBarTitle",{"has-sidebar":s(a)}])},[v("a",{class:"title",href:s(i)??s(me)(s(o).link),rel:s(u),target:s(f)},[r(h.$slots,"nav-bar-title-before",{},void 0,!0),s(t).logo?(l(),$(X,{key:0,class:"logo",image:s(t).logo},null,8,["image"])):m("",!0),s(t).siteTitle?(l(),c("span",ts,S(s(t).siteTitle),1)):s(t).siteTitle===void 0?(l(),c("span",ns,S(s(n).title),1)):m("",!0),r(h.$slots,"nav-bar-title-after",{},void 0,!0)],8,es)],2))}}),os=k(as,[["__scopeId","data-v-897170ea"]]),ss={class:"items"},ls={class:"title"},is=p({__name:"VPNavBarTranslations",setup(e){const{theme:n}=P(),{localeLinks:t,currentLang:a}=R({correspondingLink:!0});return(o,i)=>s(t).length&&s(a).label?(l(),$($e,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:s(n).langMenuLabel||"Change language"},{default:d(()=>[v("div",ss,[v("p",ls,S(s(a).label),1),(l(!0),c(N,null,B(s(t),u=>(l(),$(ae,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}}),rs=k(is,[["__scopeId","data-v-fab0f4eb"]]),cs=e=>(A("data-v-8d2f8b24"),e=e(),C(),e),us={class:"wrapper"},ds={class:"container"},vs={class:"title"},hs={class:"content"},fs={class:"content-body"},ms=cs(()=>v("div",{class:"divider"},[v("div",{class:"divider-line"})],-1)),ps=p({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:n}=we(),{hasSidebar:t}=D(),{hasLocalNav:a}=Ae(),{frontmatter:o}=P(),i=T({});return Pe(()=>{i.value={"has-sidebar":t.value,"has-local-nav":a.value,top:o.value.layout==="home"&&n.value===0}}),(u,f)=>(l(),c("div",{class:I(["VPNavBar",i.value])},[v("div",us,[v("div",ds,[v("div",vs,[_(os,null,{"nav-bar-title-before":d(()=>[r(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[r(u.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),v("div",hs,[v("div",fs,[r(u.$slots,"nav-bar-content-before",{},void 0,!0),_(Qo,{class:"search"}),_(Uo,{class:"menu"}),_(rs,{class:"translations"}),_(ja,{class:"appearance"}),_(Zo,{class:"social-links"}),_(So,{class:"extra"}),r(u.$slots,"nav-bar-content-after",{},void 0,!0),_(Mo,{class:"hamburger",active:e.isScreenOpen,onClick:f[0]||(f[0]=h=>u.$emit("toggle-screen"))},null,8,["active"])])])])]),ms],2))}}),_s=k(ps,[["__scopeId","data-v-8d2f8b24"]]),ks={key:0,class:"VPNavScreenAppearance"},bs={class:"text"},$s=p({__name:"VPNavScreenAppearance",setup(e){const{site:n,theme:t}=P();return(a,o)=>s(n).appearance&&s(n).appearance!=="force-dark"?(l(),c("div",ks,[v("p",bs,S(s(t).darkModeSwitchLabel||"Appearance"),1),_(ke)])):m("",!0)}}),gs=k($s,[["__scopeId","data-v-d28a88c0"]]),ys=p({__name:"VPNavScreenMenuLink",props:{item:null},setup(e){const n=ne("close-screen");return(t,a)=>(l(),$(F,{class:"VPNavScreenMenuLink",href:e.item.link,target:e.item.target,rel:e.item.rel,onClick:s(n)},{default:d(()=>[E(S(e.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Ps=k(ys,[["__scopeId","data-v-ea0379bf"]]),Vs=p({__name:"VPNavScreenMenuGroupLink",props:{item:null},setup(e){const n=ne("close-screen");return(t,a)=>(l(),$(F,{class:"VPNavScreenMenuGroupLink",href:e.item.link,target:e.item.target,rel:e.item.rel,onClick:s(n)},{default:d(()=>[E(S(e.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Ee=k(Vs,[["__scopeId","data-v-08058757"]]),Ls={class:"VPNavScreenMenuGroupSection"},Ss={key:0,class:"title"},ws=p({__name:"VPNavScreenMenuGroupSection",props:{text:null,items:null},setup(e){return(n,t)=>(l(),c("div",Ls,[e.text?(l(),c("p",Ss,S(e.text),1)):m("",!0),(l(!0),c(N,null,B(e.items,a=>(l(),$(Ee,{key:a.text,item:a},null,8,["item"]))),128))]))}}),Ts=k(ws,[["__scopeId","data-v-25c57f38"]]),Is=e=>(A("data-v-82829ae4"),e=e(),C(),e),Ns=["aria-controls","aria-expanded"],xs=["innerHTML"],Ms=Is(()=>v("span",{class:"vpi-plus button-icon"},null,-1)),As=["id"],Cs={key:1,class:"group"},Bs=p({__name:"VPNavScreenMenuGroup",props:{text:null,items:null},setup(e){const n=e,t=T(!1),a=g(()=>`NavScreenGroup-${n.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(i,u)=>(l(),c("div",{class:I(["VPNavScreenMenuGroup",{open:t.value}])},[v("button",{class:"button","aria-controls":s(a),"aria-expanded":t.value,onClick:o},[v("span",{class:"button-text",innerHTML:e.text},null,8,xs),Ms],8,Ns),v("div",{id:s(a),class:"items"},[(l(!0),c(N,null,B(e.items,f=>(l(),c(N,{key:f.text},["link"in f?(l(),c("div",{key:f.text,class:"item"},[_(Ee,{item:f},null,8,["item"])])):(l(),c("div",Cs,[_(Ts,{text:f.text,items:f.items},null,8,["text","items"])]))],64))),128))],8,As)],2))}}),Hs=k(Bs,[["__scopeId","data-v-82829ae4"]]),Es={key:0,class:"VPNavScreenMenu"},Fs=p({__name:"VPNavScreenMenu",setup(e){const{theme:n}=P();return(t,a)=>s(n).nav?(l(),c("nav",Es,[(l(!0),c(N,null,B(s(n).nav,o=>(l(),c(N,{key:o.text},["link"in o?(l(),$(Ps,{key:0,item:o},null,8,["item"])):(l(),$(Hs,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Ds=p({__name:"VPNavScreenSocialLinks",setup(e){const{theme:n}=P();return(t,a)=>s(n).socialLinks?(l(),$(ge,{key:0,class:"VPNavScreenSocialLinks",links:s(n).socialLinks},null,8,["links"])):m("",!0)}}),Fe=e=>(A("data-v-fd6e32d3"),e=e(),C(),e),Os=Fe(()=>v("span",{class:"vpi-languages icon lang"},null,-1)),Us=Fe(()=>v("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Gs={class:"list"},js=p({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:n,currentLang:t}=R({correspondingLink:!0}),a=T(!1);function o(){a.value=!a.value}return(i,u)=>s(n).length&&s(t).label?(l(),c("div",{key:0,class:I(["VPNavScreenTranslations",{open:a.value}])},[v("button",{class:"title",onClick:o},[Os,E(" "+S(s(t).label)+" ",1),Us]),v("ul",Gs,[(l(!0),c(N,null,B(s(n),f=>(l(),c("li",{key:f.link,class:"item"},[_(F,{class:"link",href:f.link},{default:d(()=>[E(S(f.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}}),zs=k(js,[["__scopeId","data-v-fd6e32d3"]]),Ks={class:"container"},qs=p({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const n=T(null),t=Te(W?document.body:null);return(a,o)=>(l(),$(ve,{name:"fade",onEnter:o[0]||(o[0]=i=>t.value=!0),onAfterLeave:o[1]||(o[1]=i=>t.value=!1)},{default:d(()=>[e.open?(l(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:n,id:"VPNavScreen"},[v("div",Ks,[r(a.$slots,"nav-screen-content-before",{},void 0,!0),_(Fs,{class:"menu"}),_(zs,{class:"translations"}),_(gs,{class:"appearance"}),_(Ds,{class:"social-links"}),r(a.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}}),Ws=k(qs,[["__scopeId","data-v-d3636b75"]]),Rs={key:0,class:"VPNav"},Js=p({__name:"VPNav",setup(e){const{isScreenOpen:n,closeScreen:t,toggleScreen:a}=xa(),{frontmatter:o}=P(),i=g(()=>o.value.navbar!==!1);return Ie("close-screen",t),Z(()=>{W&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,f)=>s(i)?(l(),c("header",Rs,[_(_s,{"is-screen-open":s(n),onToggleScreen:s(a)},{"nav-bar-title-before":d(()=>[r(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[r(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":d(()=>[r(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":d(()=>[r(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),_(Ws,{open:s(n)},{"nav-screen-content-before":d(()=>[r(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":d(()=>[r(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):m("",!0)}}),Ys=k(Js,[["__scopeId","data-v-9e555376"]]),De=e=>(A("data-v-7ba24eb3"),e=e(),C(),e),Qs=["role","tabindex"],Xs=De(()=>v("div",{class:"indicator"},null,-1)),Zs=["onKeydown"],el=De(()=>v("span",{class:"vpi-chevron-right caret-icon"},null,-1)),tl=[el],nl={key:1,class:"items"},al=p({__name:"VPSidebarItem",props:{item:null,depth:null},setup(e){const n=e,{collapsed:t,collapsible:a,isLink:o,isActiveLink:i,hasActiveLink:u,hasChildren:f,toggle:h}=gt(g(()=>n.item)),b=g(()=>f.value?"section":"div"),V=g(()=>o.value?"a":"div"),y=g(()=>f.value?n.depth+2===7?"p":`h${n.depth+2}`:"p"),L=g(()=>o.value?void 0:"button"),w=g(()=>[[`level-${n.depth}`],{collapsible:a.value},{collapsed:t.value},{"is-link":o.value},{"is-active":i.value},{"has-active":u.value}]);function x(H){"key"in H&&H.key!=="Enter"||!n.item.link&&h()}function M(){n.item.link&&h()}return(H,J)=>{const O=z("VPSidebarItem",!0);return l(),$(q(s(b)),{class:I(["VPSidebarItem",s(w)])},{default:d(()=>[e.item.text?(l(),c("div",Y({key:0,class:"item",role:s(L)},Ze(e.item.items?{click:x,keydown:x}:{},!0),{tabindex:e.item.items&&0}),[Xs,e.item.link?(l(),$(F,{key:0,tag:s(V),class:"link",href:e.item.link,rel:e.item.rel,target:e.item.target},{default:d(()=>[(l(),$(q(s(y)),{class:"text",innerHTML:e.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(l(),$(q(s(y)),{key:1,class:"text",innerHTML:e.item.text},null,8,["innerHTML"])),e.item.collapsed!=null?(l(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Xe(M,["enter"]),tabindex:"0"},tl,40,Zs)):m("",!0)],16,Qs)):m("",!0),e.item.items&&e.item.items.length?(l(),c("div",nl,[e.depth<5?(l(!0),c(N,{key:0},B(e.item.items,K=>(l(),$(O,{key:K.text,item:K,depth:e.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}}),ol=k(al,[["__scopeId","data-v-7ba24eb3"]]),Oe=e=>(A("data-v-89a34fdf"),e=e(),C(),e),sl=Oe(()=>v("div",{class:"curtain"},null,-1)),ll={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},il=Oe(()=>v("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),rl=p({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const n=e,{sidebarGroups:t,hasSidebar:a}=D(),o=T(null),i=Te(W?document.body:null);return j([n,o],()=>{var u;n.open?(i.value=!0,(u=o.value)==null||u.focus()):i.value=!1},{immediate:!0,flush:"post"}),(u,f)=>s(a)?(l(),c("aside",{key:0,class:I(["VPSidebar",{open:e.open}]),ref_key:"navEl",ref:o,onClick:f[0]||(f[0]=et(()=>{},["stop"]))},[sl,v("nav",ll,[il,r(u.$slots,"sidebar-nav-before",{},void 0,!0),(l(!0),c(N,null,B(s(t),h=>(l(),c("div",{key:h.text,class:"group"},[_(ol,{item:h,depth:0},null,8,["item"])]))),128)),r(u.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}}),cl=k(rl,[["__scopeId","data-v-89a34fdf"]]),ul=p({__name:"VPSkipLink",setup(e){const n=te(),t=T();j(()=>n.path,()=>t.value.focus());function a({target:o}){const i=document.getElementById(decodeURIComponent(o.hash).slice(1));if(i){const u=()=>{i.removeAttribute("tabindex"),i.removeEventListener("blur",u)};i.setAttribute("tabindex","-1"),i.addEventListener("blur",u),i.focus(),window.scrollTo(0,0)}}return(o,i)=>(l(),c(N,null,[v("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),v("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:a}," Skip to content ")],64))}}),dl=k(ul,[["__scopeId","data-v-3d05ce97"]]),vl=p({__name:"Layout",setup(e){const{isOpen:n,open:t,close:a}=D(),o=te();j(()=>o.path,a),$t(n,a);const{frontmatter:i}=P(),u=tt(),f=g(()=>!!u["home-hero-image"]);return Ie("hero-image-slot-exists",f),(h,b)=>{const V=z("Content");return s(i).layout!==!1?(l(),c("div",{key:0,class:I(["Layout",s(i).pageClass])},[r(h.$slots,"layout-top",{},void 0,!0),_(dl),_(st,{class:"backdrop",show:s(n),onClick:s(a)},null,8,["show","onClick"]),_(Ys,null,{"nav-bar-title-before":d(()=>[r(h.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[r(h.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":d(()=>[r(h.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":d(()=>[r(h.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":d(()=>[r(h.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":d(()=>[r(h.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),_(Na,{open:s(n),onOpenMenu:s(t)},null,8,["open","onOpenMenu"]),_(cl,{open:s(n)},{"sidebar-nav-before":d(()=>[r(h.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":d(()=>[r(h.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),_(va,null,{"page-top":d(()=>[r(h.$slots,"page-top",{},void 0,!0)]),"page-bottom":d(()=>[r(h.$slots,"page-bottom",{},void 0,!0)]),"not-found":d(()=>[r(h.$slots,"not-found",{},void 0,!0)]),"home-hero-before":d(()=>[r(h.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":d(()=>[r(h.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[r(h.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[r(h.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[r(h.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[r(h.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":d(()=>[r(h.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":d(()=>[r(h.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":d(()=>[r(h.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":d(()=>[r(h.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":d(()=>[r(h.$slots,"doc-before",{},void 0,!0)]),"doc-after":d(()=>[r(h.$slots,"doc-after",{},void 0,!0)]),"doc-top":d(()=>[r(h.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":d(()=>[r(h.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":d(()=>[r(h.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":d(()=>[r(h.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":d(()=>[r(h.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[r(h.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[r(h.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[r(h.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),_(_a),r(h.$slots,"layout-bottom",{},void 0,!0)],2)):(l(),$(V,{key:1}))}}}),hl=k(vl,[["__scopeId","data-v-f8c4997a"]]),ml={Layout:hl,enhanceApp:({app:e})=>{e.component("Badge",nt)}};export{Go as c,ml as t,P as u}; +import{d as p,o as l,c,r,n as I,a as E,t as S,b as $,w as d,T as ve,e as m,_ as k,u as Ue,i as Ge,f as je,g as he,h as T,j as W,k as g,l as G,m as v,p as s,q as A,s as C,v as U,x as ie,y as j,z as Z,A as fe,B as Pe,C as ze,D as Ke,F as N,E as B,G as z,H as Ve,I as ee,J as _,K as q,L as Le,M as te,N as Y,O as ne,P as qe,Q as Se,R as We,S as re,U as Re,V as we,W as Je,X as Ye,Y as Qe,Z as Te,$ as Ie,a0 as Xe,a1 as Ze,a2 as et,a3 as tt}from"./framework.hrgFA2vO.js";const nt=p({__name:"VPBadge",props:{text:null,type:{default:"tip"}},setup(e){return(n,t)=>(l(),c("span",{class:I(["VPBadge",e.type])},[r(n.$slots,"default",{},()=>[E(S(e.text),1)])],2))}}),at={key:0,class:"VPBackdrop"},ot=p({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(n,t)=>(l(),$(ve,{name:"fade"},{default:d(()=>[e.show?(l(),c("div",at)):m("",!0)]),_:1}))}}),st=k(ot,[["__scopeId","data-v-fb9c3dee"]]),P=Ue;function lt(e,n){let t,a=!1;return()=>{t&&clearTimeout(t),a?t=setTimeout(e,n):(e(),(a=!0)&&setTimeout(()=>a=!1,n))}}function ce(e){return/^\//.test(e)?e:`/${e}`}function me(e){const{pathname:n,search:t,hash:a,protocol:o}=new URL(e,"http://a.com");if(Ge(e)||e.startsWith("#")||!o.startsWith("http")||!je(n))return e;const{site:i}=P(),u=n.endsWith("/")||n.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${n.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${a}`);return he(u)}const pe=T(W?location.hash:"");W&&window.addEventListener("hashchange",()=>{pe.value=location.hash});function R({removeCurrent:e=!0,correspondingLink:n=!1}={}){const{site:t,localeIndex:a,page:o,theme:i}=P(),u=g(()=>{var h,b;return{label:(h=t.value.locales[a.value])==null?void 0:h.label,link:((b=t.value.locales[a.value])==null?void 0:b.link)||(a.value==="root"?"/":`/${a.value}/`)}});return{localeLinks:g(()=>Object.entries(t.value.locales).flatMap(([h,b])=>e&&u.value.label===b.label?[]:{text:b.label,link:it(b.link||(h==="root"?"/":`/${h}/`),i.value.i18nRouting!==!1&&n,o.value.relativePath.slice(u.value.link.length-1),!t.value.cleanUrls)+pe.value})),currentLang:u}}function it(e,n,t,a){return n?e.replace(/\/$/,"")+ce(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,a?".html":"")):e}const rt=e=>(A("data-v-5b47a475"),e=e(),C(),e),ct={class:"NotFound"},ut={class:"code"},dt={class:"title"},vt=rt(()=>v("div",{class:"divider"},null,-1)),ht={class:"quote"},ft={class:"action"},mt=["href","aria-label"],pt=p({__name:"NotFound",setup(e){const{site:n,theme:t}=P(),{localeLinks:a}=R({removeCurrent:!1}),o=T("/");return G(()=>{var u;const i=window.location.pathname.replace(n.value.base,"").replace(/(^.*?\/).*$/,"/$1");a.value.length&&(o.value=((u=a.value.find(({link:f})=>f.startsWith(i)))==null?void 0:u.link)||a.value[0].link)}),(i,u)=>{var f,h,b,V,y;return l(),c("div",ct,[v("p",ut,S(((f=s(t).notFound)==null?void 0:f.code)??"404"),1),v("h1",dt,S(((h=s(t).notFound)==null?void 0:h.title)??"PAGE NOT FOUND"),1),vt,v("blockquote",ht,S(((b=s(t).notFound)==null?void 0:b.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),v("div",ft,[v("a",{class:"link",href:s(he)(o.value),"aria-label":((V=s(t).notFound)==null?void 0:V.linkLabel)??"go to home"},S(((y=s(t).notFound)==null?void 0:y.linkText)??"Take me home"),9,mt)])])}}}),_t=k(pt,[["__scopeId","data-v-5b47a475"]]);function Ne(e,n){if(Array.isArray(e))return Q(e);if(e==null)return[];n=ce(n);const t=Object.keys(e).sort((o,i)=>i.split("/").length-o.split("/").length).find(o=>n.startsWith(ce(o))),a=t?e[t]:[];return Array.isArray(a)?Q(a):Q(a.items,a.base)}function kt(e){const n=[];let t=0;for(const a in e){const o=e[a];if(o.items){t=n.push(o);continue}n[t]||n.push({items:[]}),n[t].items.push(o)}return n}function bt(e){const n=[];function t(a){for(const o of a)o.text&&o.link&&n.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(e),n}function ue(e,n){return Array.isArray(n)?n.some(t=>ue(e,t)):U(e,n.link)?!0:n.items?ue(e,n.items):!1}function Q(e,n){return[...e].map(t=>{const a={...t},o=a.base||n;return o&&a.link&&(a.link=o+a.link),a.items&&(a.items=Q(a.items,o)),a})}function D(){const{frontmatter:e,page:n,theme:t}=P(),a=ie("(min-width: 960px)"),o=T(!1),i=g(()=>{const M=t.value.sidebar,H=n.value.relativePath;return M?Ne(M,H):[]}),u=T(i.value);j(i,(M,H)=>{JSON.stringify(M)!==JSON.stringify(H)&&(u.value=i.value)});const f=g(()=>e.value.sidebar!==!1&&u.value.length>0&&e.value.layout!=="home"),h=g(()=>b?e.value.aside==null?t.value.aside==="left":e.value.aside==="left":!1),b=g(()=>e.value.layout==="home"?!1:e.value.aside!=null?!!e.value.aside:t.value.aside!==!1),V=g(()=>f.value&&a.value),y=g(()=>f.value?kt(u.value):[]);function L(){o.value=!0}function w(){o.value=!1}function x(){o.value?w():L()}return{isOpen:o,sidebar:u,sidebarGroups:y,hasSidebar:f,hasAside:b,leftAside:h,isSidebarEnabled:V,open:L,close:w,toggle:x}}function $t(e,n){let t;Z(()=>{t=e.value?document.activeElement:void 0}),G(()=>{window.addEventListener("keyup",a)}),fe(()=>{window.removeEventListener("keyup",a)});function a(o){o.key==="Escape"&&e.value&&(n(),t==null||t.focus())}}function gt(e){const{page:n}=P(),t=T(!1),a=g(()=>e.value.collapsed!=null),o=g(()=>!!e.value.link),i=T(!1),u=()=>{i.value=U(n.value.relativePath,e.value.link)};j([n,e,pe],u),G(u);const f=g(()=>i.value?!0:e.value.items?ue(n.value.relativePath,e.value.items):!1),h=g(()=>!!(e.value.items&&e.value.items.length));Z(()=>{t.value=!!(a.value&&e.value.collapsed)}),Pe(()=>{(i.value||f.value)&&(t.value=!1)});function b(){a.value&&(t.value=!t.value)}return{collapsed:t,collapsible:a,isLink:o,isActiveLink:i,hasActiveLink:f,hasChildren:h,toggle:b}}function yt(){const{hasSidebar:e}=D(),n=ie("(min-width: 960px)"),t=ie("(min-width: 1280px)");return{isAsideEnabled:g(()=>!t.value&&!n.value?!1:e.value?t.value:n.value)}}const de=[];function xe(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function _e(e){const n=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const a=Number(t.tagName[1]);return{element:t,title:Pt(t),link:"#"+t.id,level:a}});return Vt(n,e)}function Pt(e){let n="";for(const t of e.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;n+=t.textContent}else t.nodeType===3&&(n+=t.textContent);return n.trim()}function Vt(e,n){if(n===!1)return[];const t=(typeof n=="object"&&!Array.isArray(n)?n.level:n)||2,[a,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;e=e.filter(u=>u.level>=a&&u.level<=o),de.length=0;for(const{element:u,link:f}of e)de.push({element:u,link:f});const i=[];e:for(let u=0;u=0;h--){const b=e[h];if(b.level{requestAnimationFrame(i),window.addEventListener("scroll",a)}),ze(()=>{u(location.hash)}),fe(()=>{window.removeEventListener("scroll",a)});function i(){if(!t.value)return;const f=window.scrollY,h=window.innerHeight,b=document.body.offsetHeight,V=Math.abs(f+h-b)<1,y=de.map(({element:w,link:x})=>({link:x,top:St(w)})).filter(({top:w})=>!Number.isNaN(w)).sort((w,x)=>w.top-x.top);if(!y.length){u(null);return}if(f<1){u(null);return}if(V){u(y[y.length-1].link);return}let L=null;for(const{link:w,top:x}of y){if(x>f+Ke()+4)break;L=w}u(L)}function u(f){o&&o.classList.remove("active"),f==null?o=null:o=e.value.querySelector(`a[href="${decodeURIComponent(f)}"]`);const h=o;h?(h.classList.add("active"),n.value.style.top=h.offsetTop+39+"px",n.value.style.opacity="1"):(n.value.style.top="33px",n.value.style.opacity="0")}}function St(e){let n=0;for(;e!==document.body;){if(e===null)return NaN;n+=e.offsetTop,e=e.offsetParent}return n}const wt=["href","title"],Tt=p({__name:"VPDocOutlineItem",props:{headers:null,root:{type:Boolean}},setup(e){function n({target:t}){const a=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(a));o==null||o.focus({preventScroll:!0})}return(t,a)=>{const o=z("VPDocOutlineItem",!0);return l(),c("ul",{class:I(["VPDocOutlineItem",e.root?"root":"nested"])},[(l(!0),c(N,null,B(e.headers,({children:i,link:u,title:f})=>(l(),c("li",null,[v("a",{class:"outline-link",href:u,onClick:n,title:f},S(f),9,wt),i!=null&&i.length?(l(),$(o,{key:0,headers:i},null,8,["headers"])):m("",!0)]))),256))],2)}}}),Me=k(Tt,[["__scopeId","data-v-2da98c74"]]),It=e=>(A("data-v-f0a3c685"),e=e(),C(),e),Nt={class:"content"},xt={class:"outline-title",role:"heading","aria-level":"2"},Mt={"aria-labelledby":"doc-outline-aria-label"},At=It(()=>v("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Ct=p({__name:"VPDocAsideOutline",setup(e){const{frontmatter:n,theme:t}=P(),a=Ve([]);ee(()=>{a.value=_e(n.value.outline??t.value.outline)});const o=T(),i=T();return Lt(o,i),(u,f)=>(l(),c("div",{class:I(["VPDocAsideOutline",{"has-outline":s(a).length>0}]),ref_key:"container",ref:o,role:"navigation"},[v("div",Nt,[v("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),v("div",xt,S(s(xe)(s(t))),1),v("nav",Mt,[At,_(Me,{headers:s(a),root:!0},null,8,["headers"])])])],2))}}),Bt=k(Ct,[["__scopeId","data-v-f0a3c685"]]),Ht={class:"VPDocAsideCarbonAds"},Et=p({__name:"VPDocAsideCarbonAds",props:{carbonAds:null},setup(e){const n=()=>null;return(t,a)=>(l(),c("div",Ht,[_(s(n),{"carbon-ads":e.carbonAds},null,8,["carbon-ads"])]))}}),Ft=e=>(A("data-v-760fd414"),e=e(),C(),e),Dt={class:"VPDocAside"},Ot=Ft(()=>v("div",{class:"spacer"},null,-1)),Ut=p({__name:"VPDocAside",setup(e){const{theme:n}=P();return(t,a)=>(l(),c("div",Dt,[r(t.$slots,"aside-top",{},void 0,!0),r(t.$slots,"aside-outline-before",{},void 0,!0),_(Bt),r(t.$slots,"aside-outline-after",{},void 0,!0),Ot,r(t.$slots,"aside-ads-before",{},void 0,!0),s(n).carbonAds?(l(),$(Et,{key:0,"carbon-ads":s(n).carbonAds},null,8,["carbon-ads"])):m("",!0),r(t.$slots,"aside-ads-after",{},void 0,!0),r(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Gt=k(Ut,[["__scopeId","data-v-760fd414"]]);function jt(){const{theme:e,page:n}=P();return g(()=>{const{text:t="Edit this page",pattern:a=""}=e.value.editLink||{};let o;return typeof a=="function"?o=a(n.value):o=a.replace(/:path/g,n.value.filePath),{url:o,text:t}})}function zt(){const{page:e,theme:n,frontmatter:t}=P();return g(()=>{var h,b,V,y,L,w,x,M;const a=Ne(n.value.sidebar,e.value.relativePath),o=bt(a),i=o.findIndex(H=>U(e.value.relativePath,H.link)),u=((h=n.value.docFooter)==null?void 0:h.prev)===!1&&!t.value.prev||t.value.prev===!1,f=((b=n.value.docFooter)==null?void 0:b.next)===!1&&!t.value.next||t.value.next===!1;return{prev:u?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((V=o[i-1])==null?void 0:V.docFooterText)??((y=o[i-1])==null?void 0:y.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((L=o[i-1])==null?void 0:L.link)},next:f?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((w=o[i+1])==null?void 0:w.docFooterText)??((x=o[i+1])==null?void 0:x.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((M=o[i+1])==null?void 0:M.link)}}})}const F=p({__name:"VPLink",props:{tag:null,href:null,noIcon:{type:Boolean},target:null,rel:null},setup(e){const n=e,t=g(()=>n.tag??(n.href?"a":"span")),a=g(()=>n.href&&Le.test(n.href));return(o,i)=>(l(),$(q(s(t)),{class:I(["VPLink",{link:e.href,"vp-external-link-icon":s(a),"no-icon":e.noIcon}]),href:e.href?s(me)(e.href):void 0,target:e.target??(s(a)?"_blank":void 0),rel:e.rel??(s(a)?"noreferrer":void 0)},{default:d(()=>[r(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Kt={class:"VPLastUpdated"},qt=["datetime"],Wt=p({__name:"VPDocFooterLastUpdated",setup(e){const{theme:n,page:t,frontmatter:a,lang:o}=P(),i=g(()=>new Date(a.value.lastUpdated??t.value.lastUpdated)),u=g(()=>i.value.toISOString()),f=T("");return G(()=>{Z(()=>{var h,b,V;f.value=new Intl.DateTimeFormat((b=(h=n.value.lastUpdated)==null?void 0:h.formatOptions)!=null&&b.forceLocale?o.value:void 0,((V=n.value.lastUpdated)==null?void 0:V.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(i.value)})}),(h,b)=>{var V;return l(),c("p",Kt,[E(S(((V=s(n).lastUpdated)==null?void 0:V.text)||s(n).lastUpdatedText||"Last updated")+": ",1),v("time",{datetime:s(u)},S(f.value),9,qt)])}}}),Rt=k(Wt,[["__scopeId","data-v-7e190c8c"]]),Jt=e=>(A("data-v-6501975d"),e=e(),C(),e),Yt={key:0,class:"VPDocFooter"},Qt={key:0,class:"edit-info"},Xt={key:0,class:"edit-link"},Zt=Jt(()=>v("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),en={key:1,class:"last-updated"},tn={key:1,class:"prev-next"},nn={class:"pager"},an=["innerHTML"],on=["innerHTML"],sn={class:"pager"},ln=["innerHTML"],rn=["innerHTML"],cn=p({__name:"VPDocFooter",setup(e){const{theme:n,page:t,frontmatter:a}=P(),o=jt(),i=zt(),u=g(()=>n.value.editLink&&a.value.editLink!==!1),f=g(()=>t.value.lastUpdated&&a.value.lastUpdated!==!1),h=g(()=>u.value||f.value||i.value.prev||i.value.next);return(b,V)=>{var y,L,w,x;return s(h)?(l(),c("footer",Yt,[r(b.$slots,"doc-footer-before",{},void 0,!0),s(u)||s(f)?(l(),c("div",Qt,[s(u)?(l(),c("div",Xt,[_(F,{class:"edit-link-button",href:s(o).url,"no-icon":!0},{default:d(()=>[Zt,E(" "+S(s(o).text),1)]),_:1},8,["href"])])):m("",!0),s(f)?(l(),c("div",en,[_(Rt)])):m("",!0)])):m("",!0),(y=s(i).prev)!=null&&y.link||(L=s(i).next)!=null&&L.link?(l(),c("nav",tn,[v("div",nn,[(w=s(i).prev)!=null&&w.link?(l(),$(F,{key:0,class:"pager-link prev",href:s(i).prev.link},{default:d(()=>{var M;return[v("span",{class:"desc",innerHTML:((M=s(n).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,an),v("span",{class:"title",innerHTML:s(i).prev.text},null,8,on)]}),_:1},8,["href"])):m("",!0)]),v("div",sn,[(x=s(i).next)!=null&&x.link?(l(),$(F,{key:0,class:"pager-link next",href:s(i).next.link},{default:d(()=>{var M;return[v("span",{class:"desc",innerHTML:((M=s(n).docFooter)==null?void 0:M.next)||"Next page"},null,8,ln),v("span",{class:"title",innerHTML:s(i).next.text},null,8,rn)]}),_:1},8,["href"])):m("",!0)])])):m("",!0)])):m("",!0)}}}),un=k(cn,[["__scopeId","data-v-6501975d"]]),dn=e=>(A("data-v-73a3cf53"),e=e(),C(),e),vn={class:"container"},hn=dn(()=>v("div",{class:"aside-curtain"},null,-1)),fn={class:"aside-container"},mn={class:"aside-content"},pn={class:"content"},_n={class:"content-container"},kn={class:"main"},bn=p({__name:"VPDoc",setup(e){const{theme:n}=P(),t=te(),{hasSidebar:a,hasAside:o,leftAside:i}=D(),u=g(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(f,h)=>{const b=z("Content");return l(),c("div",{class:I(["VPDoc",{"has-sidebar":s(a),"has-aside":s(o)}])},[r(f.$slots,"doc-top",{},void 0,!0),v("div",vn,[s(o)?(l(),c("div",{key:0,class:I(["aside",{"left-aside":s(i)}])},[hn,v("div",fn,[v("div",mn,[_(Gt,null,{"aside-top":d(()=>[r(f.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":d(()=>[r(f.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":d(()=>[r(f.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[r(f.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[r(f.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[r(f.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):m("",!0),v("div",pn,[v("div",_n,[r(f.$slots,"doc-before",{},void 0,!0),v("main",kn,[_(b,{class:I(["vp-doc",[s(u),s(n).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),_(un,null,{"doc-footer-before":d(()=>[r(f.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),r(f.$slots,"doc-after",{},void 0,!0)])])]),r(f.$slots,"doc-bottom",{},void 0,!0)],2)}}}),$n=k(bn,[["__scopeId","data-v-73a3cf53"]]),gn=p({__name:"VPButton",props:{tag:null,size:{default:"medium"},theme:{default:"brand"},text:null,href:null,target:null,rel:null},setup(e){const n=e,t=g(()=>n.href&&Le.test(n.href)),a=g(()=>n.tag||n.href?"a":"button");return(o,i)=>(l(),$(q(s(a)),{class:I(["VPButton",[e.size,e.theme]]),href:e.href?s(me)(e.href):void 0,target:n.target??(s(t)?"_blank":void 0),rel:n.rel??(s(t)?"noreferrer":void 0)},{default:d(()=>[E(S(e.text),1)]),_:1},8,["class","href","target","rel"]))}}),yn=k(gn,[["__scopeId","data-v-148563f9"]]),Pn=["src","alt"],Vn=p({__name:"VPImage",props:{image:null,alt:null},setup(e){return defineOptions({inheritAttrs:!1}),(n,t)=>{const a=z("VPImage",!0);return e.image?(l(),c(N,{key:0},[typeof e.image=="string"||"src"in e.image?(l(),c("img",Y({key:0,class:"VPImage"},typeof e.image=="string"?n.$attrs:{...e.image,...n.$attrs},{src:s(he)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Pn)):(l(),c(N,{key:1},[_(a,Y({class:"dark",image:e.image.dark,alt:e.image.alt},n.$attrs),null,16,["image","alt"]),_(a,Y({class:"light",image:e.image.light,alt:e.image.alt},n.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}}),X=k(Vn,[["__scopeId","data-v-645fe56b"]]),Ln=e=>(A("data-v-3fef0c37"),e=e(),C(),e),Sn={class:"container"},wn={class:"main"},Tn={key:0,class:"name"},In=["innerHTML"],Nn=["innerHTML"],xn=["innerHTML"],Mn={key:0,class:"actions"},An={key:0,class:"image"},Cn={class:"image-container"},Bn=Ln(()=>v("div",{class:"image-bg"},null,-1)),Hn=p({__name:"VPHero",props:{name:null,text:null,tagline:null,image:null,actions:null},setup(e){const n=ne("hero-image-slot-exists");return(t,a)=>(l(),c("div",{class:I(["VPHero",{"has-image":e.image||s(n)}])},[v("div",Sn,[v("div",wn,[r(t.$slots,"home-hero-info-before",{},void 0,!0),r(t.$slots,"home-hero-info",{},()=>[e.name?(l(),c("h1",Tn,[v("span",{innerHTML:e.name,class:"clip"},null,8,In)])):m("",!0),e.text?(l(),c("p",{key:1,innerHTML:e.text,class:"text"},null,8,Nn)):m("",!0),e.tagline?(l(),c("p",{key:2,innerHTML:e.tagline,class:"tagline"},null,8,xn)):m("",!0)],!0),r(t.$slots,"home-hero-info-after",{},void 0,!0),e.actions?(l(),c("div",Mn,[(l(!0),c(N,null,B(e.actions,o=>(l(),c("div",{key:o.link,class:"action"},[_(yn,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):m("",!0),r(t.$slots,"home-hero-actions-after",{},void 0,!0)]),e.image||s(n)?(l(),c("div",An,[v("div",Cn,[Bn,r(t.$slots,"home-hero-image",{},()=>[e.image?(l(),$(X,{key:0,class:"image-src",image:e.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}}),En=k(Hn,[["__scopeId","data-v-3fef0c37"]]),Fn=p({__name:"VPHomeHero",setup(e){const{frontmatter:n}=P();return(t,a)=>s(n).hero?(l(),$(En,{key:0,class:"VPHomeHero",name:s(n).hero.name,text:s(n).hero.text,tagline:s(n).hero.tagline,image:s(n).hero.image,actions:s(n).hero.actions},{"home-hero-info-before":d(()=>[r(t.$slots,"home-hero-info-before")]),"home-hero-info":d(()=>[r(t.$slots,"home-hero-info")]),"home-hero-info-after":d(()=>[r(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":d(()=>[r(t.$slots,"home-hero-actions-after")]),"home-hero-image":d(()=>[r(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):m("",!0)}}),Dn=e=>(A("data-v-c7a1090f"),e=e(),C(),e),On={class:"box"},Un={key:0,class:"icon"},Gn=["innerHTML"],jn=["innerHTML"],zn=["innerHTML"],Kn={key:4,class:"link-text"},qn={class:"link-text-value"},Wn=Dn(()=>v("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Rn=p({__name:"VPFeature",props:{icon:null,title:null,details:null,link:null,linkText:null,rel:null,target:null},setup(e){return(n,t)=>(l(),$(F,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:d(()=>[v("article",On,[typeof e.icon=="object"&&e.icon.wrap?(l(),c("div",Un,[_(X,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(l(),$(X,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(l(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Gn)):m("",!0),v("h2",{class:"title",innerHTML:e.title},null,8,jn),e.details?(l(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,zn)):m("",!0),e.linkText?(l(),c("div",Kn,[v("p",qn,[E(S(e.linkText)+" ",1),Wn])])):m("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Jn=k(Rn,[["__scopeId","data-v-c7a1090f"]]),Yn={key:0,class:"VPFeatures"},Qn={class:"container"},Xn={class:"items"},Zn=p({__name:"VPFeatures",props:{features:null},setup(e){const n=e,t=g(()=>{const a=n.features.length;if(a){if(a===2)return"grid-2";if(a===3)return"grid-3";if(a%3===0)return"grid-6";if(a>3)return"grid-4"}else return});return(a,o)=>e.features?(l(),c("div",Yn,[v("div",Qn,[v("div",Xn,[(l(!0),c(N,null,B(e.features,i=>(l(),c("div",{key:i.title,class:I(["item",[s(t)]])},[_(Jn,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):m("",!0)}}),ea=k(Zn,[["__scopeId","data-v-02aac438"]]),ta=p({__name:"VPHomeFeatures",setup(e){const{frontmatter:n}=P();return(t,a)=>s(n).features?(l(),$(ea,{key:0,class:"VPHomeFeatures",features:s(n).features},null,8,["features"])):m("",!0)}}),na=p({__name:"VPHomeContent",setup(e){const{width:n}=qe({includeScrollbar:!1});return(t,a)=>(l(),c("div",{class:"vp-doc container",style:Se(s(n)?{"--vp-offset":`calc(50% - ${s(n)/2}px)`}:{})},[r(t.$slots,"default",{},void 0,!0)],4))}}),aa=k(na,[["__scopeId","data-v-ff1e6a87"]]),oa={class:"VPHome"},sa=p({__name:"VPHome",setup(e){const{frontmatter:n}=P();return(t,a)=>{const o=z("Content");return l(),c("div",oa,[r(t.$slots,"home-hero-before",{},void 0,!0),_(Fn,null,{"home-hero-info-before":d(()=>[r(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[r(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[r(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[r(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[r(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),r(t.$slots,"home-hero-after",{},void 0,!0),r(t.$slots,"home-features-before",{},void 0,!0),_(ta),r(t.$slots,"home-features-after",{},void 0,!0),s(n).markdownStyles!==!1?(l(),$(aa,{key:0},{default:d(()=>[_(o)]),_:1})):(l(),$(o,{key:1}))])}}}),la=k(sa,[["__scopeId","data-v-780c0a6a"]]),ia={},ra={class:"VPPage"};function ca(e,n){const t=z("Content");return l(),c("div",ra,[r(e.$slots,"page-top"),_(t),r(e.$slots,"page-bottom")])}const ua=k(ia,[["render",ca]]),da=p({__name:"VPContent",setup(e){const{page:n,frontmatter:t}=P(),{hasSidebar:a}=D();return(o,i)=>(l(),c("div",{class:I(["VPContent",{"has-sidebar":s(a),"is-home":s(t).layout==="home"}]),id:"VPContent"},[s(n).isNotFound?r(o.$slots,"not-found",{key:0},()=>[_(_t)],!0):s(t).layout==="page"?(l(),$(ua,{key:1},{"page-top":d(()=>[r(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":d(()=>[r(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):s(t).layout==="home"?(l(),$(la,{key:2},{"home-hero-before":d(()=>[r(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":d(()=>[r(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[r(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[r(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[r(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[r(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":d(()=>[r(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":d(()=>[r(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":d(()=>[r(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):s(t).layout&&s(t).layout!=="doc"?(l(),$(q(s(t).layout),{key:3})):(l(),$($n,{key:4},{"doc-top":d(()=>[r(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":d(()=>[r(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":d(()=>[r(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":d(()=>[r(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":d(()=>[r(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":d(()=>[r(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":d(()=>[r(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[r(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[r(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[r(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":d(()=>[r(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),va=k(da,[["__scopeId","data-v-38bad42c"]]),ha={class:"container"},fa=["innerHTML"],ma=["innerHTML"],pa=p({__name:"VPFooter",setup(e){const{theme:n,frontmatter:t}=P(),{hasSidebar:a}=D();return(o,i)=>s(n).footer&&s(t).footer!==!1?(l(),c("footer",{key:0,class:I(["VPFooter",{"has-sidebar":s(a)}])},[v("div",ha,[s(n).footer.message?(l(),c("p",{key:0,class:"message",innerHTML:s(n).footer.message},null,8,fa)):m("",!0),s(n).footer.copyright?(l(),c("p",{key:1,class:"copyright",innerHTML:s(n).footer.copyright},null,8,ma)):m("",!0)])],2)):m("",!0)}}),_a=k(pa,[["__scopeId","data-v-7bfb25f4"]]);function Ae(){const{theme:e,frontmatter:n}=P(),t=Ve([]),a=g(()=>t.value.length>0);return ee(()=>{t.value=_e(n.value.outline??e.value.outline)}),{headers:t,hasLocalNav:a}}const ka=e=>(A("data-v-dfe3d432"),e=e(),C(),e),ba=ka(()=>v("span",{class:"vpi-chevron-right icon"},null,-1)),$a={class:"header"},ga={class:"outline"},ya=p({__name:"VPLocalNavOutlineDropdown",props:{headers:null,navHeight:null},setup(e){const n=e,{theme:t}=P(),a=T(!1),o=T(0),i=T(),u=T();We(i,()=>{a.value=!1}),re("Escape",()=>{a.value=!1}),ee(()=>{a.value=!1});function f(){a.value=!a.value,o.value=window.innerHeight+Math.min(window.scrollY-n.navHeight,0)}function h(V){V.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),Re(()=>{a.value=!1}))}function b(){a.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(V,y)=>(l(),c("div",{class:"VPLocalNavOutlineDropdown",style:Se({"--vp-vh":o.value+"px"}),ref_key:"main",ref:i},[e.headers.length>0?(l(),c("button",{key:0,onClick:f,class:I({open:a.value})},[E(S(s(xe)(s(t)))+" ",1),ba],2)):(l(),c("button",{key:1,onClick:b},S(s(t).returnToTopLabel||"Return to top"),1)),_(ve,{name:"flyout"},{default:d(()=>[a.value?(l(),c("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:h},[v("div",$a,[v("a",{class:"top-link",href:"#",onClick:b},S(s(t).returnToTopLabel||"Return to top"),1)]),v("div",ga,[_(Me,{headers:e.headers},null,8,["headers"])])],512)):m("",!0)]),_:1})],4))}}),Pa=k(ya,[["__scopeId","data-v-dfe3d432"]]),Va=e=>(A("data-v-5798fa78"),e=e(),C(),e),La={class:"container"},Sa=["aria-expanded"],wa=Va(()=>v("span",{class:"vpi-align-left menu-icon"},null,-1)),Ta={class:"menu-text"},Ia=p({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:n,frontmatter:t}=P(),{hasSidebar:a}=D(),{headers:o}=Ae(),{y:i}=we(),u=T(0);G(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),ee(()=>{o.value=_e(t.value.outline??n.value.outline)});const f=g(()=>o.value.length===0),h=g(()=>f.value&&!a.value),b=g(()=>({VPLocalNav:!0,"has-sidebar":a.value,empty:f.value,fixed:h.value}));return(V,y)=>s(t).layout!=="home"&&(!s(h)||s(i)>=u.value)?(l(),c("div",{key:0,class:I(s(b))},[v("div",La,[s(a)?(l(),c("button",{key:0,class:"menu","aria-expanded":e.open,"aria-controls":"VPSidebarNav",onClick:y[0]||(y[0]=L=>V.$emit("open-menu"))},[wa,v("span",Ta,S(s(n).sidebarMenuLabel||"Menu"),1)],8,Sa)):m("",!0),_(Pa,{headers:s(o),navHeight:u.value},null,8,["headers","navHeight"])])],2)):m("",!0)}}),Na=k(Ia,[["__scopeId","data-v-5798fa78"]]);function xa(){const e=T(!1);function n(){e.value=!0,window.addEventListener("resize",o)}function t(){e.value=!1,window.removeEventListener("resize",o)}function a(){e.value?t():n()}function o(){window.outerWidth>=768&&t()}const i=te();return j(()=>i.path,t),{isScreenOpen:e,openScreen:n,closeScreen:t,toggleScreen:a}}const Ma={},Aa={class:"VPSwitch",type:"button",role:"switch"},Ca={class:"check"},Ba={key:0,class:"icon"};function Ha(e,n){return l(),c("button",Aa,[v("span",Ca,[e.$slots.default?(l(),c("span",Ba,[r(e.$slots,"default",{},void 0,!0)])):m("",!0)])])}const Ea=k(Ma,[["render",Ha],["__scopeId","data-v-9abc5eae"]]),Ce=e=>(A("data-v-bba37ed4"),e=e(),C(),e),Fa=Ce(()=>v("span",{class:"vpi-sun sun"},null,-1)),Da=Ce(()=>v("span",{class:"vpi-moon moon"},null,-1)),Oa=p({__name:"VPSwitchAppearance",setup(e){const{isDark:n,theme:t}=P(),a=ne("toggle-appearance",()=>{n.value=!n.value}),o=g(()=>n.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(i,u)=>(l(),$(Ea,{title:s(o),class:"VPSwitchAppearance","aria-checked":s(n),onClick:s(a)},{default:d(()=>[Fa,Da]),_:1},8,["title","aria-checked","onClick"]))}}),ke=k(Oa,[["__scopeId","data-v-bba37ed4"]]),Ua={key:0,class:"VPNavBarAppearance"},Ga=p({__name:"VPNavBarAppearance",setup(e){const{site:n}=P();return(t,a)=>s(n).appearance&&s(n).appearance!=="force-dark"?(l(),c("div",Ua,[_(ke)])):m("",!0)}}),ja=k(Ga,[["__scopeId","data-v-4f07862e"]]),be=T();let Be=!1,le=0;function za(e){const n=T(!1);if(W){!Be&&Ka(),le++;const t=j(be,a=>{var o,i,u;a===e.el.value||(o=e.el.value)!=null&&o.contains(a)?(n.value=!0,(i=e.onFocus)==null||i.call(e)):(n.value=!1,(u=e.onBlur)==null||u.call(e))});fe(()=>{t(),le--,le||qa()})}return Je(n)}function Ka(){document.addEventListener("focusin",He),Be=!0,be.value=document.activeElement}function qa(){document.removeEventListener("focusin",He)}function He(){be.value=document.activeElement}const Wa={class:"VPMenuLink"},Ra=p({__name:"VPMenuLink",props:{item:null},setup(e){const{page:n}=P();return(t,a)=>(l(),c("div",Wa,[_(F,{class:I({active:s(U)(s(n).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel},{default:d(()=>[E(S(e.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ae=k(Ra,[["__scopeId","data-v-11b17785"]]),Ja={class:"VPMenuGroup"},Ya={key:0,class:"title"},Qa=p({__name:"VPMenuGroup",props:{text:null,items:null},setup(e){return(n,t)=>(l(),c("div",Ja,[e.text?(l(),c("p",Ya,S(e.text),1)):m("",!0),(l(!0),c(N,null,B(e.items,a=>(l(),c(N,null,["link"in a?(l(),$(ae,{key:0,item:a},null,8,["item"])):m("",!0)],64))),256))]))}}),Xa=k(Qa,[["__scopeId","data-v-5a77f418"]]),Za={class:"VPMenu"},eo={key:0,class:"items"},to=p({__name:"VPMenu",props:{items:null},setup(e){return(n,t)=>(l(),c("div",Za,[e.items?(l(),c("div",eo,[(l(!0),c(N,null,B(e.items,a=>(l(),c(N,{key:a.text},["link"in a?(l(),$(ae,{key:0,item:a},null,8,["item"])):(l(),$(Xa,{key:1,text:a.text,items:a.items},null,8,["text","items"]))],64))),128))])):m("",!0),r(n.$slots,"default",{},void 0,!0)]))}}),no=k(to,[["__scopeId","data-v-8a0a63a0"]]),ao=e=>(A("data-v-979da8bb"),e=e(),C(),e),oo=["aria-expanded","aria-label"],so={key:0,class:"text"},lo=["innerHTML"],io=ao(()=>v("span",{class:"vpi-chevron-down text-icon"},null,-1)),ro={key:1,class:"vpi-more-horizontal icon"},co={class:"menu"},uo=p({__name:"VPFlyout",props:{icon:null,button:null,label:null,items:null},setup(e){const n=T(!1),t=T();za({el:t,onBlur:a});function a(){n.value=!1}return(o,i)=>(l(),c("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:i[1]||(i[1]=u=>n.value=!0),onMouseleave:i[2]||(i[2]=u=>n.value=!1)},[v("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":n.value,"aria-label":e.label,onClick:i[0]||(i[0]=u=>n.value=!n.value)},[e.button||e.icon?(l(),c("span",so,[e.icon?(l(),c("span",{key:0,class:I([e.icon,"option-icon"])},null,2)):m("",!0),e.button?(l(),c("span",{key:1,innerHTML:e.button},null,8,lo)):m("",!0),io])):(l(),c("span",ro))],8,oo),v("div",co,[_(no,{items:e.items},{default:d(()=>[r(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),$e=k(uo,[["__scopeId","data-v-979da8bb"]]),vo=["href","aria-label","innerHTML"],ho=p({__name:"VPSocialLink",props:{icon:null,link:null,ariaLabel:null},setup(e){const n=e,t=g(()=>typeof n.icon=="object"?n.icon.svg:``);return(a,o)=>(l(),c("a",{class:"VPSocialLink no-icon",href:e.link,"aria-label":e.ariaLabel??(typeof e.icon=="string"?e.icon:""),target:"_blank",rel:"noopener",innerHTML:s(t)},null,8,vo))}}),fo=k(ho,[["__scopeId","data-v-f37c6c33"]]),mo={class:"VPSocialLinks"},po=p({__name:"VPSocialLinks",props:{links:null},setup(e){return(n,t)=>(l(),c("div",mo,[(l(!0),c(N,null,B(e.links,({link:a,icon:o,ariaLabel:i})=>(l(),$(fo,{key:a,icon:o,link:a,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),ge=k(po,[["__scopeId","data-v-73c816d8"]]),_o={key:0,class:"group translations"},ko={class:"trans-title"},bo={key:1,class:"group"},$o={class:"item appearance"},go={class:"label"},yo={class:"appearance-action"},Po={key:2,class:"group"},Vo={class:"item social-links"},Lo=p({__name:"VPNavBarExtra",setup(e){const{site:n,theme:t}=P(),{localeLinks:a,currentLang:o}=R({correspondingLink:!0}),i=g(()=>a.value.length&&o.value.label||n.value.appearance||t.value.socialLinks);return(u,f)=>s(i)?(l(),$($e,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:d(()=>[s(a).length&&s(o).label?(l(),c("div",_o,[v("p",ko,S(s(o).label),1),(l(!0),c(N,null,B(s(a),h=>(l(),$(ae,{key:h.link,item:h},null,8,["item"]))),128))])):m("",!0),s(n).appearance&&s(n).appearance!=="force-dark"?(l(),c("div",bo,[v("div",$o,[v("p",go,S(s(t).darkModeSwitchLabel||"Appearance"),1),v("div",yo,[_(ke)])])])):m("",!0),s(t).socialLinks?(l(),c("div",Po,[v("div",Vo,[_(ge,{class:"social-links-list",links:s(t).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}}),So=k(Lo,[["__scopeId","data-v-4ee9c6b6"]]),wo=e=>(A("data-v-ef709a30"),e=e(),C(),e),To=["aria-expanded"],Io=wo(()=>v("span",{class:"container"},[v("span",{class:"top"}),v("span",{class:"middle"}),v("span",{class:"bottom"})],-1)),No=[Io],xo=p({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(n,t)=>(l(),c("button",{type:"button",class:I(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=a=>n.$emit("click"))},No,10,To))}}),Mo=k(xo,[["__scopeId","data-v-ef709a30"]]),Ao=["innerHTML"],Co=p({__name:"VPNavBarMenuLink",props:{item:null},setup(e){const{page:n}=P();return(t,a)=>(l(),$(F,{class:I({VPNavBarMenuLink:!0,active:s(U)(s(n).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel,tabindex:"0"},{default:d(()=>[v("span",{innerHTML:e.item.text},null,8,Ao)]),_:1},8,["class","href","target","rel"]))}}),Bo=k(Co,[["__scopeId","data-v-dc915170"]]),Ho=p({__name:"VPNavBarMenuGroup",props:{item:null},setup(e){const n=e,{page:t}=P(),a=i=>"link"in i?U(t.value.relativePath,i.link,!!n.item.activeMatch):i.items.some(a),o=g(()=>a(n.item));return(i,u)=>(l(),$($e,{class:I({VPNavBarMenuGroup:!0,active:s(U)(s(t).relativePath,e.item.activeMatch,!!e.item.activeMatch)||s(o)}),button:e.item.text,items:e.item.items},null,8,["class","button","items"]))}}),Eo=e=>(A("data-v-1b5abf06"),e=e(),C(),e),Fo={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Do=Eo(()=>v("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Oo=p({__name:"VPNavBarMenu",setup(e){const{theme:n}=P();return(t,a)=>s(n).nav?(l(),c("nav",Fo,[Do,(l(!0),c(N,null,B(s(n).nav,o=>(l(),c(N,{key:o.text},["link"in o?(l(),$(Bo,{key:0,item:o},null,8,["item"])):(l(),$(Ho,{key:1,item:o},null,8,["item"]))],64))),128))])):m("",!0)}}),Uo=k(Oo,[["__scopeId","data-v-1b5abf06"]]);function Go(e){const{localeIndex:n,theme:t}=P();function a(o){var x,M,H;const i=o.split("."),u=(x=t.value.search)==null?void 0:x.options,f=u&&typeof u=="object",h=f&&((H=(M=u.locales)==null?void 0:M[n.value])==null?void 0:H.translations)||null,b=f&&u.translations||null;let V=h,y=b,L=e;const w=i.pop();for(const J of i){let O=null;const K=L==null?void 0:L[J];K&&(O=L=K);const oe=y==null?void 0:y[J];oe&&(O=y=oe);const se=V==null?void 0:V[J];se&&(O=V=se),K||(L=O),oe||(y=O),se||(V=O)}return(V==null?void 0:V[w])??(y==null?void 0:y[w])??(L==null?void 0:L[w])??""}return a}const jo=["aria-label"],zo={class:"DocSearch-Button-Container"},Ko=v("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),qo={class:"DocSearch-Button-Placeholder"},Wo=v("span",{class:"DocSearch-Button-Keys"},[v("kbd",{class:"DocSearch-Button-Key"}),v("kbd",{class:"DocSearch-Button-Key"},"K")],-1),ye=p({__name:"VPNavBarSearchButton",setup(e){const t=Go({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(a,o)=>(l(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":s(t)("button.buttonAriaLabel")},[v("span",zo,[Ko,v("span",qo,S(s(t)("button.buttonText")),1)]),Wo],8,jo))}}),Ro={class:"VPNavBarSearch"},Jo={id:"local-search"},Yo={key:1,id:"docsearch"},Qo=p({__name:"VPNavBarSearch",setup(e){const n=Ye(()=>Qe(()=>import("./VPLocalSearchBox.D7w4D537.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:a}=P(),o=T(!1),i=T(!1);G(()=>{});function u(){o.value||(o.value=!0,setTimeout(f,16))}function f(){const y=new Event("keydown");y.key="k",y.metaKey=!0,window.dispatchEvent(y),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||f()},16)}function h(y){const L=y.target,w=L.tagName;return L.isContentEditable||w==="INPUT"||w==="SELECT"||w==="TEXTAREA"}const b=T(!1);re("k",y=>{(y.ctrlKey||y.metaKey)&&(y.preventDefault(),b.value=!0)}),re("/",y=>{h(y)||(y.preventDefault(),b.value=!0)});const V="local";return(y,L)=>{var w;return l(),c("div",Ro,[s(V)==="local"?(l(),c(N,{key:0},[b.value?(l(),$(s(n),{key:0,onClose:L[0]||(L[0]=x=>b.value=!1)})):m("",!0),v("div",Jo,[_(ye,{onClick:L[1]||(L[1]=x=>b.value=!0)})])],64)):s(V)==="algolia"?(l(),c(N,{key:1},[o.value?(l(),$(s(t),{key:0,algolia:((w=s(a).search)==null?void 0:w.options)??s(a).algolia,onVnodeBeforeMount:L[2]||(L[2]=x=>i.value=!0)},null,8,["algolia"])):m("",!0),i.value?m("",!0):(l(),c("div",Yo,[_(ye,{onClick:u})]))],64)):m("",!0)])}}}),Xo=p({__name:"VPNavBarSocialLinks",setup(e){const{theme:n}=P();return(t,a)=>s(n).socialLinks?(l(),$(ge,{key:0,class:"VPNavBarSocialLinks",links:s(n).socialLinks},null,8,["links"])):m("",!0)}}),Zo=k(Xo,[["__scopeId","data-v-8c82b47d"]]),es=["href","rel","target"],ts={key:1},ns={key:2},as=p({__name:"VPNavBarTitle",setup(e){const{site:n,theme:t}=P(),{hasSidebar:a}=D(),{currentLang:o}=R(),i=g(()=>{var h;return typeof t.value.logoLink=="string"?t.value.logoLink:(h=t.value.logoLink)==null?void 0:h.link}),u=g(()=>{var h;return typeof t.value.logoLink=="string"||(h=t.value.logoLink)==null?void 0:h.rel}),f=g(()=>{var h;return typeof t.value.logoLink=="string"||(h=t.value.logoLink)==null?void 0:h.target});return(h,b)=>(l(),c("div",{class:I(["VPNavBarTitle",{"has-sidebar":s(a)}])},[v("a",{class:"title",href:s(i)??s(me)(s(o).link),rel:s(u),target:s(f)},[r(h.$slots,"nav-bar-title-before",{},void 0,!0),s(t).logo?(l(),$(X,{key:0,class:"logo",image:s(t).logo},null,8,["image"])):m("",!0),s(t).siteTitle?(l(),c("span",ts,S(s(t).siteTitle),1)):s(t).siteTitle===void 0?(l(),c("span",ns,S(s(n).title),1)):m("",!0),r(h.$slots,"nav-bar-title-after",{},void 0,!0)],8,es)],2))}}),os=k(as,[["__scopeId","data-v-897170ea"]]),ss={class:"items"},ls={class:"title"},is=p({__name:"VPNavBarTranslations",setup(e){const{theme:n}=P(),{localeLinks:t,currentLang:a}=R({correspondingLink:!0});return(o,i)=>s(t).length&&s(a).label?(l(),$($e,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:s(n).langMenuLabel||"Change language"},{default:d(()=>[v("div",ss,[v("p",ls,S(s(a).label),1),(l(!0),c(N,null,B(s(t),u=>(l(),$(ae,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}}),rs=k(is,[["__scopeId","data-v-fab0f4eb"]]),cs=e=>(A("data-v-8d2f8b24"),e=e(),C(),e),us={class:"wrapper"},ds={class:"container"},vs={class:"title"},hs={class:"content"},fs={class:"content-body"},ms=cs(()=>v("div",{class:"divider"},[v("div",{class:"divider-line"})],-1)),ps=p({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:n}=we(),{hasSidebar:t}=D(),{hasLocalNav:a}=Ae(),{frontmatter:o}=P(),i=T({});return Pe(()=>{i.value={"has-sidebar":t.value,"has-local-nav":a.value,top:o.value.layout==="home"&&n.value===0}}),(u,f)=>(l(),c("div",{class:I(["VPNavBar",i.value])},[v("div",us,[v("div",ds,[v("div",vs,[_(os,null,{"nav-bar-title-before":d(()=>[r(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[r(u.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),v("div",hs,[v("div",fs,[r(u.$slots,"nav-bar-content-before",{},void 0,!0),_(Qo,{class:"search"}),_(Uo,{class:"menu"}),_(rs,{class:"translations"}),_(ja,{class:"appearance"}),_(Zo,{class:"social-links"}),_(So,{class:"extra"}),r(u.$slots,"nav-bar-content-after",{},void 0,!0),_(Mo,{class:"hamburger",active:e.isScreenOpen,onClick:f[0]||(f[0]=h=>u.$emit("toggle-screen"))},null,8,["active"])])])])]),ms],2))}}),_s=k(ps,[["__scopeId","data-v-8d2f8b24"]]),ks={key:0,class:"VPNavScreenAppearance"},bs={class:"text"},$s=p({__name:"VPNavScreenAppearance",setup(e){const{site:n,theme:t}=P();return(a,o)=>s(n).appearance&&s(n).appearance!=="force-dark"?(l(),c("div",ks,[v("p",bs,S(s(t).darkModeSwitchLabel||"Appearance"),1),_(ke)])):m("",!0)}}),gs=k($s,[["__scopeId","data-v-d28a88c0"]]),ys=p({__name:"VPNavScreenMenuLink",props:{item:null},setup(e){const n=ne("close-screen");return(t,a)=>(l(),$(F,{class:"VPNavScreenMenuLink",href:e.item.link,target:e.item.target,rel:e.item.rel,onClick:s(n)},{default:d(()=>[E(S(e.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Ps=k(ys,[["__scopeId","data-v-ea0379bf"]]),Vs=p({__name:"VPNavScreenMenuGroupLink",props:{item:null},setup(e){const n=ne("close-screen");return(t,a)=>(l(),$(F,{class:"VPNavScreenMenuGroupLink",href:e.item.link,target:e.item.target,rel:e.item.rel,onClick:s(n)},{default:d(()=>[E(S(e.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Ee=k(Vs,[["__scopeId","data-v-08058757"]]),Ls={class:"VPNavScreenMenuGroupSection"},Ss={key:0,class:"title"},ws=p({__name:"VPNavScreenMenuGroupSection",props:{text:null,items:null},setup(e){return(n,t)=>(l(),c("div",Ls,[e.text?(l(),c("p",Ss,S(e.text),1)):m("",!0),(l(!0),c(N,null,B(e.items,a=>(l(),$(Ee,{key:a.text,item:a},null,8,["item"]))),128))]))}}),Ts=k(ws,[["__scopeId","data-v-25c57f38"]]),Is=e=>(A("data-v-82829ae4"),e=e(),C(),e),Ns=["aria-controls","aria-expanded"],xs=["innerHTML"],Ms=Is(()=>v("span",{class:"vpi-plus button-icon"},null,-1)),As=["id"],Cs={key:1,class:"group"},Bs=p({__name:"VPNavScreenMenuGroup",props:{text:null,items:null},setup(e){const n=e,t=T(!1),a=g(()=>`NavScreenGroup-${n.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(i,u)=>(l(),c("div",{class:I(["VPNavScreenMenuGroup",{open:t.value}])},[v("button",{class:"button","aria-controls":s(a),"aria-expanded":t.value,onClick:o},[v("span",{class:"button-text",innerHTML:e.text},null,8,xs),Ms],8,Ns),v("div",{id:s(a),class:"items"},[(l(!0),c(N,null,B(e.items,f=>(l(),c(N,{key:f.text},["link"in f?(l(),c("div",{key:f.text,class:"item"},[_(Ee,{item:f},null,8,["item"])])):(l(),c("div",Cs,[_(Ts,{text:f.text,items:f.items},null,8,["text","items"])]))],64))),128))],8,As)],2))}}),Hs=k(Bs,[["__scopeId","data-v-82829ae4"]]),Es={key:0,class:"VPNavScreenMenu"},Fs=p({__name:"VPNavScreenMenu",setup(e){const{theme:n}=P();return(t,a)=>s(n).nav?(l(),c("nav",Es,[(l(!0),c(N,null,B(s(n).nav,o=>(l(),c(N,{key:o.text},["link"in o?(l(),$(Ps,{key:0,item:o},null,8,["item"])):(l(),$(Hs,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Ds=p({__name:"VPNavScreenSocialLinks",setup(e){const{theme:n}=P();return(t,a)=>s(n).socialLinks?(l(),$(ge,{key:0,class:"VPNavScreenSocialLinks",links:s(n).socialLinks},null,8,["links"])):m("",!0)}}),Fe=e=>(A("data-v-fd6e32d3"),e=e(),C(),e),Os=Fe(()=>v("span",{class:"vpi-languages icon lang"},null,-1)),Us=Fe(()=>v("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Gs={class:"list"},js=p({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:n,currentLang:t}=R({correspondingLink:!0}),a=T(!1);function o(){a.value=!a.value}return(i,u)=>s(n).length&&s(t).label?(l(),c("div",{key:0,class:I(["VPNavScreenTranslations",{open:a.value}])},[v("button",{class:"title",onClick:o},[Os,E(" "+S(s(t).label)+" ",1),Us]),v("ul",Gs,[(l(!0),c(N,null,B(s(n),f=>(l(),c("li",{key:f.link,class:"item"},[_(F,{class:"link",href:f.link},{default:d(()=>[E(S(f.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}}),zs=k(js,[["__scopeId","data-v-fd6e32d3"]]),Ks={class:"container"},qs=p({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const n=T(null),t=Te(W?document.body:null);return(a,o)=>(l(),$(ve,{name:"fade",onEnter:o[0]||(o[0]=i=>t.value=!0),onAfterLeave:o[1]||(o[1]=i=>t.value=!1)},{default:d(()=>[e.open?(l(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:n,id:"VPNavScreen"},[v("div",Ks,[r(a.$slots,"nav-screen-content-before",{},void 0,!0),_(Fs,{class:"menu"}),_(zs,{class:"translations"}),_(gs,{class:"appearance"}),_(Ds,{class:"social-links"}),r(a.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}}),Ws=k(qs,[["__scopeId","data-v-d3636b75"]]),Rs={key:0,class:"VPNav"},Js=p({__name:"VPNav",setup(e){const{isScreenOpen:n,closeScreen:t,toggleScreen:a}=xa(),{frontmatter:o}=P(),i=g(()=>o.value.navbar!==!1);return Ie("close-screen",t),Z(()=>{W&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,f)=>s(i)?(l(),c("header",Rs,[_(_s,{"is-screen-open":s(n),onToggleScreen:s(a)},{"nav-bar-title-before":d(()=>[r(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[r(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":d(()=>[r(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":d(()=>[r(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),_(Ws,{open:s(n)},{"nav-screen-content-before":d(()=>[r(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":d(()=>[r(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):m("",!0)}}),Ys=k(Js,[["__scopeId","data-v-9e555376"]]),De=e=>(A("data-v-7ba24eb3"),e=e(),C(),e),Qs=["role","tabindex"],Xs=De(()=>v("div",{class:"indicator"},null,-1)),Zs=["onKeydown"],el=De(()=>v("span",{class:"vpi-chevron-right caret-icon"},null,-1)),tl=[el],nl={key:1,class:"items"},al=p({__name:"VPSidebarItem",props:{item:null,depth:null},setup(e){const n=e,{collapsed:t,collapsible:a,isLink:o,isActiveLink:i,hasActiveLink:u,hasChildren:f,toggle:h}=gt(g(()=>n.item)),b=g(()=>f.value?"section":"div"),V=g(()=>o.value?"a":"div"),y=g(()=>f.value?n.depth+2===7?"p":`h${n.depth+2}`:"p"),L=g(()=>o.value?void 0:"button"),w=g(()=>[[`level-${n.depth}`],{collapsible:a.value},{collapsed:t.value},{"is-link":o.value},{"is-active":i.value},{"has-active":u.value}]);function x(H){"key"in H&&H.key!=="Enter"||!n.item.link&&h()}function M(){n.item.link&&h()}return(H,J)=>{const O=z("VPSidebarItem",!0);return l(),$(q(s(b)),{class:I(["VPSidebarItem",s(w)])},{default:d(()=>[e.item.text?(l(),c("div",Y({key:0,class:"item",role:s(L)},Ze(e.item.items?{click:x,keydown:x}:{},!0),{tabindex:e.item.items&&0}),[Xs,e.item.link?(l(),$(F,{key:0,tag:s(V),class:"link",href:e.item.link,rel:e.item.rel,target:e.item.target},{default:d(()=>[(l(),$(q(s(y)),{class:"text",innerHTML:e.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(l(),$(q(s(y)),{key:1,class:"text",innerHTML:e.item.text},null,8,["innerHTML"])),e.item.collapsed!=null?(l(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Xe(M,["enter"]),tabindex:"0"},tl,40,Zs)):m("",!0)],16,Qs)):m("",!0),e.item.items&&e.item.items.length?(l(),c("div",nl,[e.depth<5?(l(!0),c(N,{key:0},B(e.item.items,K=>(l(),$(O,{key:K.text,item:K,depth:e.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}}),ol=k(al,[["__scopeId","data-v-7ba24eb3"]]),Oe=e=>(A("data-v-89a34fdf"),e=e(),C(),e),sl=Oe(()=>v("div",{class:"curtain"},null,-1)),ll={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},il=Oe(()=>v("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),rl=p({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const n=e,{sidebarGroups:t,hasSidebar:a}=D(),o=T(null),i=Te(W?document.body:null);return j([n,o],()=>{var u;n.open?(i.value=!0,(u=o.value)==null||u.focus()):i.value=!1},{immediate:!0,flush:"post"}),(u,f)=>s(a)?(l(),c("aside",{key:0,class:I(["VPSidebar",{open:e.open}]),ref_key:"navEl",ref:o,onClick:f[0]||(f[0]=et(()=>{},["stop"]))},[sl,v("nav",ll,[il,r(u.$slots,"sidebar-nav-before",{},void 0,!0),(l(!0),c(N,null,B(s(t),h=>(l(),c("div",{key:h.text,class:"group"},[_(ol,{item:h,depth:0},null,8,["item"])]))),128)),r(u.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}}),cl=k(rl,[["__scopeId","data-v-89a34fdf"]]),ul=p({__name:"VPSkipLink",setup(e){const n=te(),t=T();j(()=>n.path,()=>t.value.focus());function a({target:o}){const i=document.getElementById(decodeURIComponent(o.hash).slice(1));if(i){const u=()=>{i.removeAttribute("tabindex"),i.removeEventListener("blur",u)};i.setAttribute("tabindex","-1"),i.addEventListener("blur",u),i.focus(),window.scrollTo(0,0)}}return(o,i)=>(l(),c(N,null,[v("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),v("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:a}," Skip to content ")],64))}}),dl=k(ul,[["__scopeId","data-v-3d05ce97"]]),vl=p({__name:"Layout",setup(e){const{isOpen:n,open:t,close:a}=D(),o=te();j(()=>o.path,a),$t(n,a);const{frontmatter:i}=P(),u=tt(),f=g(()=>!!u["home-hero-image"]);return Ie("hero-image-slot-exists",f),(h,b)=>{const V=z("Content");return s(i).layout!==!1?(l(),c("div",{key:0,class:I(["Layout",s(i).pageClass])},[r(h.$slots,"layout-top",{},void 0,!0),_(dl),_(st,{class:"backdrop",show:s(n),onClick:s(a)},null,8,["show","onClick"]),_(Ys,null,{"nav-bar-title-before":d(()=>[r(h.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":d(()=>[r(h.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":d(()=>[r(h.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":d(()=>[r(h.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":d(()=>[r(h.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":d(()=>[r(h.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),_(Na,{open:s(n),onOpenMenu:s(t)},null,8,["open","onOpenMenu"]),_(cl,{open:s(n)},{"sidebar-nav-before":d(()=>[r(h.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":d(()=>[r(h.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),_(va,null,{"page-top":d(()=>[r(h.$slots,"page-top",{},void 0,!0)]),"page-bottom":d(()=>[r(h.$slots,"page-bottom",{},void 0,!0)]),"not-found":d(()=>[r(h.$slots,"not-found",{},void 0,!0)]),"home-hero-before":d(()=>[r(h.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":d(()=>[r(h.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":d(()=>[r(h.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":d(()=>[r(h.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":d(()=>[r(h.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":d(()=>[r(h.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":d(()=>[r(h.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":d(()=>[r(h.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":d(()=>[r(h.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":d(()=>[r(h.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":d(()=>[r(h.$slots,"doc-before",{},void 0,!0)]),"doc-after":d(()=>[r(h.$slots,"doc-after",{},void 0,!0)]),"doc-top":d(()=>[r(h.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":d(()=>[r(h.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":d(()=>[r(h.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":d(()=>[r(h.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":d(()=>[r(h.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":d(()=>[r(h.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":d(()=>[r(h.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":d(()=>[r(h.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),_(_a),r(h.$slots,"layout-bottom",{},void 0,!0)],2)):(l(),$(V,{key:1}))}}}),hl=k(vl,[["__scopeId","data-v-f8c4997a"]]),ml={Layout:hl,enhanceApp:({app:e})=>{e.component("Badge",nt)}};export{Go as c,ml as t,P as u}; diff --git a/docs/assets/communication.md.C5vYiFWT.js b/docs/assets/communication.md.BhVaLTVb.js similarity index 93% rename from docs/assets/communication.md.C5vYiFWT.js rename to docs/assets/communication.md.BhVaLTVb.js index 6a0a168..6b39021 100644 --- a/docs/assets/communication.md.C5vYiFWT.js +++ b/docs/assets/communication.md.BhVaLTVb.js @@ -1 +1 @@ -import{_ as a,c as t,o as n,m as e,a as o}from"./chunks/framework.hrgFA2vO.js";const i="/document-viewer/docs/assets/communication.CKo4de0g.svg",w=JSON.parse('{"title":"The Communication between Main and Worker Threads","description":"","frontmatter":{"title":"The Communication between Main and Worker Threads","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/communication.html"}]]},"headers":[],"relativePath":"communication.md","filePath":"communication.md","lastUpdated":1711289222000}'),c={name:"communication.md"},r=e("h1",{id:"main-and-worker-thread-communication",tabindex:"-1"},[o("Main and worker thread communication "),e("a",{class:"header-anchor",href:"#main-and-worker-thread-communication","aria-label":'Permalink to "Main and worker thread communication"'},"​")],-1),m=e("p",null,[e("img",{src:i,alt:"between main and worker thread"})],-1),s=[r,m];function d(h,l,u,_,p,k){return n(),t("div",null,s)}const b=a(c,[["render",d]]);export{w as __pageData,b as default}; +import{_ as a,c as t,o as n,m as e,a as o}from"./chunks/framework.hrgFA2vO.js";const i="/document-viewer/docs/assets/communication.CKo4de0g.svg",w=JSON.parse('{"title":"The Communication between Main and Worker Threads","description":"","frontmatter":{"title":"The Communication between Main and Worker Threads","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/communication.html"}]]},"headers":[],"relativePath":"communication.md","filePath":"communication.md","lastUpdated":1711325901000}'),c={name:"communication.md"},r=e("h1",{id:"main-and-worker-thread-communication",tabindex:"-1"},[o("Main and worker thread communication "),e("a",{class:"header-anchor",href:"#main-and-worker-thread-communication","aria-label":'Permalink to "Main and worker thread communication"'},"​")],-1),m=e("p",null,[e("img",{src:i,alt:"between main and worker thread"})],-1),s=[r,m];function d(h,l,u,_,p,k){return n(),t("div",null,s)}const b=a(c,[["render",d]]);export{w as __pageData,b as default}; diff --git a/docs/assets/communication.md.C5vYiFWT.lean.js b/docs/assets/communication.md.BhVaLTVb.lean.js similarity index 93% rename from docs/assets/communication.md.C5vYiFWT.lean.js rename to docs/assets/communication.md.BhVaLTVb.lean.js index 6a0a168..6b39021 100644 --- a/docs/assets/communication.md.C5vYiFWT.lean.js +++ b/docs/assets/communication.md.BhVaLTVb.lean.js @@ -1 +1 @@ -import{_ as a,c as t,o as n,m as e,a as o}from"./chunks/framework.hrgFA2vO.js";const i="/document-viewer/docs/assets/communication.CKo4de0g.svg",w=JSON.parse('{"title":"The Communication between Main and Worker Threads","description":"","frontmatter":{"title":"The Communication between Main and Worker Threads","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/communication.html"}]]},"headers":[],"relativePath":"communication.md","filePath":"communication.md","lastUpdated":1711289222000}'),c={name:"communication.md"},r=e("h1",{id:"main-and-worker-thread-communication",tabindex:"-1"},[o("Main and worker thread communication "),e("a",{class:"header-anchor",href:"#main-and-worker-thread-communication","aria-label":'Permalink to "Main and worker thread communication"'},"​")],-1),m=e("p",null,[e("img",{src:i,alt:"between main and worker thread"})],-1),s=[r,m];function d(h,l,u,_,p,k){return n(),t("div",null,s)}const b=a(c,[["render",d]]);export{w as __pageData,b as default}; +import{_ as a,c as t,o as n,m as e,a as o}from"./chunks/framework.hrgFA2vO.js";const i="/document-viewer/docs/assets/communication.CKo4de0g.svg",w=JSON.parse('{"title":"The Communication between Main and Worker Threads","description":"","frontmatter":{"title":"The Communication between Main and Worker Threads","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/communication.html"}]]},"headers":[],"relativePath":"communication.md","filePath":"communication.md","lastUpdated":1711325901000}'),c={name:"communication.md"},r=e("h1",{id:"main-and-worker-thread-communication",tabindex:"-1"},[o("Main and worker thread communication "),e("a",{class:"header-anchor",href:"#main-and-worker-thread-communication","aria-label":'Permalink to "Main and worker thread communication"'},"​")],-1),m=e("p",null,[e("img",{src:i,alt:"between main and worker thread"})],-1),s=[r,m];function d(h,l,u,_,p,k){return n(),t("div",null,s)}const b=a(c,[["render",d]]);export{w as __pageData,b as default}; diff --git a/docs/assets/get-started.md.BeX7tryw.js b/docs/assets/get-started.md.B6dfxjrd.js similarity index 92% rename from docs/assets/get-started.md.BeX7tryw.js rename to docs/assets/get-started.md.B6dfxjrd.js index d31ed90..0d03e11 100644 --- a/docs/assets/get-started.md.BeX7tryw.js +++ b/docs/assets/get-started.md.B6dfxjrd.js @@ -1,4 +1,4 @@ -import{_ as s,c as a,o as e,a4 as i}from"./chunks/framework.hrgFA2vO.js";const F=JSON.parse('{"title":"Get Started with @document-kits/viewer","description":"","frontmatter":{"title":"Get Started with @document-kits/viewer","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/get-started.html"}]]},"headers":[],"relativePath":"get-started.md","filePath":"get-started.md","lastUpdated":1711289222000}'),t={name:"get-started.md"},n=i(`

PDF Viewer

An out-of-the-box PDF viewer builds on PDF.js.

Quick Start

You can use the starter to initialize a demo app to explore how to use this package in your own project.

bash
# initialize a demo project with a quick starter
+import{_ as s,c as a,o as e,a4 as i}from"./chunks/framework.hrgFA2vO.js";const F=JSON.parse('{"title":"Get Started with @document-kits/viewer","description":"","frontmatter":{"title":"Get Started with @document-kits/viewer","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/get-started.html"}]]},"headers":[],"relativePath":"get-started.md","filePath":"get-started.md","lastUpdated":1711325901000}'),n={name:"get-started.md"},t=i(`

PDF Viewer

An out-of-the-box PDF viewer builds on PDF.js.

Quick Start

You can use the starter to initialize a demo app to explore how to use this package in your own project.

bash
# initialize a demo project with a quick starter
 npm create @document-kits/viewer@latest my-app
 
 # There will be prompt to let you choose a template to start,
@@ -22,4 +22,4 @@ import{_ as s,c as a,o as e,a4 as i}from"./chunks/framework.hrgFA2vO.js";const F
 pnpm install
 
 # run the dev server and open the default browser to view the demo
-pnpm run dev --open

Prepare Resources

PDF.js depends on some resources to work.

All the necessary resources are located in node_modules/@document-kits/viewer/dist/generic/. When building the app using a bundler, make sure to copy these resources.

Resource List
  • web/locale/viewer.properties for i18n
  • web/viewer.css for viewer style
  • build/pdf.worker.js
  • build/pdf.sandbox.js
  • web/standard_fonts/*
`,5),l=[n];function p(r,h,d,o,c,k){return e(),a("div",null,l)}const g=s(t,[["render",p]]);export{F as __pageData,g as default}; +pnpm run dev --open

Prepare Resources

PDF.js depends on some resources to work.

All the necessary resources are located in node_modules/@document-kits/viewer/dist/generic/. When building the app using a bundler, make sure to copy these resources.

Resource List
  • web/locale/viewer.properties for i18n
  • web/viewer.css for viewer style
  • build/pdf.worker.js
  • build/pdf.sandbox.js
  • web/standard_fonts/*
`,5),l=[t];function p(r,h,d,o,c,k){return e(),a("div",null,l)}const g=s(n,[["render",p]]);export{F as __pageData,g as default}; diff --git a/docs/assets/get-started.md.BeX7tryw.lean.js b/docs/assets/get-started.md.B6dfxjrd.lean.js similarity index 68% rename from docs/assets/get-started.md.BeX7tryw.lean.js rename to docs/assets/get-started.md.B6dfxjrd.lean.js index 763136d..af4e236 100644 --- a/docs/assets/get-started.md.BeX7tryw.lean.js +++ b/docs/assets/get-started.md.B6dfxjrd.lean.js @@ -1 +1 @@ -import{_ as s,c as a,o as e,a4 as i}from"./chunks/framework.hrgFA2vO.js";const F=JSON.parse('{"title":"Get Started with @document-kits/viewer","description":"","frontmatter":{"title":"Get Started with @document-kits/viewer","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/get-started.html"}]]},"headers":[],"relativePath":"get-started.md","filePath":"get-started.md","lastUpdated":1711289222000}'),t={name:"get-started.md"},n=i("",5),l=[n];function p(r,h,d,o,c,k){return e(),a("div",null,l)}const g=s(t,[["render",p]]);export{F as __pageData,g as default}; +import{_ as s,c as a,o as e,a4 as i}from"./chunks/framework.hrgFA2vO.js";const F=JSON.parse('{"title":"Get Started with @document-kits/viewer","description":"","frontmatter":{"title":"Get Started with @document-kits/viewer","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/get-started.html"}]]},"headers":[],"relativePath":"get-started.md","filePath":"get-started.md","lastUpdated":1711325901000}'),n={name:"get-started.md"},t=i("",5),l=[t];function p(r,h,d,o,c,k){return e(),a("div",null,l)}const g=s(n,[["render",p]]);export{F as __pageData,g as default}; diff --git a/docs/assets/index.md.BiV3AFx4.js b/docs/assets/index.md.CfOhYm9s.js similarity index 95% rename from docs/assets/index.md.BiV3AFx4.js rename to docs/assets/index.md.CfOhYm9s.js index 3fd93b9..ad2ad99 100644 --- a/docs/assets/index.md.BiV3AFx4.js +++ b/docs/assets/index.md.CfOhYm9s.js @@ -1 +1 @@ -import{_ as e,c as t,o}from"./chunks/framework.hrgFA2vO.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/"}]],"hero":{"name":"Document Viewer","text":"An out-of-the-box Open Source PDF Viewer.","tagline":"Easy, performant and framework-agnostic way to embed a PDF in any website.","actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Priestch/document-viewer"}]},"features":[{"title":"Framework Agnostic","details":"Developed using vanilla JavaScript, it can seamlessly be integrated into any project regardless of what the frontend framework employed."},{"title":"Multiple Document Support","details":"Supports displaying multiple PDF documents simultaneously and is compatible with all PDF.js supported shortcut keys.","link":"https://priestch.github.io/document-viewer/demos/#/multiple-pdf-files"},{"title":"Custom Toolbar","details":"Custom the toolbar of PDF viewer can be easy.","link":"https://priestch.github.io/document-viewer/demos/#/custom-toolbar"},{"title":"Easy to Sync With Upstream","details":"The majority of the task of synchronizing upstream code will be done automatically."}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1711289222000}'),a={name:"index.md"};function i(s,n,r,l,c,d){return o(),t("div")}const u=e(a,[["render",i]]);export{p as __pageData,u as default}; +import{_ as e,c as t,o}from"./chunks/framework.hrgFA2vO.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/"}]],"hero":{"name":"Document Viewer","text":"An out-of-the-box Open Source PDF Viewer.","tagline":"Easy, performant and framework-agnostic way to embed a PDF in any website.","actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Priestch/document-viewer"}]},"features":[{"title":"Framework Agnostic","details":"Developed using vanilla JavaScript, it can seamlessly be integrated into any project regardless of what the frontend framework employed."},{"title":"Multiple Document Support","details":"Supports displaying multiple PDF documents simultaneously and is compatible with all PDF.js supported shortcut keys.","link":"https://priestch.github.io/document-viewer/demos/#/multiple-pdf-files"},{"title":"Custom Toolbar","details":"Custom the toolbar of PDF viewer can be easy.","link":"https://priestch.github.io/document-viewer/demos/#/custom-toolbar"},{"title":"Easy to Sync With Upstream","details":"The majority of the task of synchronizing upstream code will be done automatically."}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1711325901000}'),a={name:"index.md"};function i(s,n,r,l,c,d){return o(),t("div")}const u=e(a,[["render",i]]);export{p as __pageData,u as default}; diff --git a/docs/assets/index.md.BiV3AFx4.lean.js b/docs/assets/index.md.CfOhYm9s.lean.js similarity index 95% rename from docs/assets/index.md.BiV3AFx4.lean.js rename to docs/assets/index.md.CfOhYm9s.lean.js index 3fd93b9..ad2ad99 100644 --- a/docs/assets/index.md.BiV3AFx4.lean.js +++ b/docs/assets/index.md.CfOhYm9s.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o}from"./chunks/framework.hrgFA2vO.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/"}]],"hero":{"name":"Document Viewer","text":"An out-of-the-box Open Source PDF Viewer.","tagline":"Easy, performant and framework-agnostic way to embed a PDF in any website.","actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Priestch/document-viewer"}]},"features":[{"title":"Framework Agnostic","details":"Developed using vanilla JavaScript, it can seamlessly be integrated into any project regardless of what the frontend framework employed."},{"title":"Multiple Document Support","details":"Supports displaying multiple PDF documents simultaneously and is compatible with all PDF.js supported shortcut keys.","link":"https://priestch.github.io/document-viewer/demos/#/multiple-pdf-files"},{"title":"Custom Toolbar","details":"Custom the toolbar of PDF viewer can be easy.","link":"https://priestch.github.io/document-viewer/demos/#/custom-toolbar"},{"title":"Easy to Sync With Upstream","details":"The majority of the task of synchronizing upstream code will be done automatically."}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1711289222000}'),a={name:"index.md"};function i(s,n,r,l,c,d){return o(),t("div")}const u=e(a,[["render",i]]);export{p as __pageData,u as default}; +import{_ as e,c as t,o}from"./chunks/framework.hrgFA2vO.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/"}]],"hero":{"name":"Document Viewer","text":"An out-of-the-box Open Source PDF Viewer.","tagline":"Easy, performant and framework-agnostic way to embed a PDF in any website.","actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Priestch/document-viewer"}]},"features":[{"title":"Framework Agnostic","details":"Developed using vanilla JavaScript, it can seamlessly be integrated into any project regardless of what the frontend framework employed."},{"title":"Multiple Document Support","details":"Supports displaying multiple PDF documents simultaneously and is compatible with all PDF.js supported shortcut keys.","link":"https://priestch.github.io/document-viewer/demos/#/multiple-pdf-files"},{"title":"Custom Toolbar","details":"Custom the toolbar of PDF viewer can be easy.","link":"https://priestch.github.io/document-viewer/demos/#/custom-toolbar"},{"title":"Easy to Sync With Upstream","details":"The majority of the task of synchronizing upstream code will be done automatically."}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1711325901000}'),a={name:"index.md"};function i(s,n,r,l,c,d){return o(),t("div")}const u=e(a,[["render",i]]);export{p as __pageData,u as default}; diff --git a/docs/assets/learned-knowledge_index.md.BRjElw_K.js b/docs/assets/learned-knowledge_index.md.DEfqu7iG.js similarity index 99% rename from docs/assets/learned-knowledge_index.md.BRjElw_K.js rename to docs/assets/learned-knowledge_index.md.DEfqu7iG.js index 182bbd6..c1f2833 100644 --- a/docs/assets/learned-knowledge_index.md.BRjElw_K.js +++ b/docs/assets/learned-knowledge_index.md.DEfqu7iG.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as e,a4 as a}from"./chunks/framework.hrgFA2vO.js";const g=JSON.parse('{"title":"The Knowledge I Learned from PDF.js","description":"","frontmatter":{"title":"The Knowledge I Learned from PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/learned-knowledge/"}]]},"headers":[],"relativePath":"learned-knowledge/index.md","filePath":"learned-knowledge/index.md","lastUpdated":1711289222000}'),t={name:"learned-knowledge/index.md"},n=a(`

Acknowledge

There are critical comments about the PDF.js project, they say it should be easier to integrate the default viewer. I understand them somehow as a developer who want to show a PDF quickly, but knowing the primary goal of an OSS project can help us to understand the trade-off decisions made by the maintainers.

All these are what I learned from the PDF.js project. It may not be accurate, but I hope it can help you to understand the PDF.js better.

Table of Contents

Background

PDF.js is an OSS project supported by Mozilla and developed using HTML5, It's goal is to create a general-purpose, web standards-based platform for rendering PDFs in the Firefox browser. Many people find out that it's hard to integrate it into project, it's somehow intentionally.

It's not developed as a component or library you can easily integrate like most npm packages, because it's primary goal is to be used easily in Firefox browser, the goal doesn't match most developers expectations. It's the trade-off decision made by the maintainers, we should understand it.

Issues talked about why it's not easy to integrate

Introduction

PDF.js use web worker for better rendering performance.

A typical web application only has one bundle result, but PDF.js has at least 4 bundles, they are main, worker, sandbox and web bundles.

javascript
// From https://github.com/mozilla/pdf.js/blob/master/gulpfile.mjs#L1001
+import{_ as s,c as i,o as e,a4 as a}from"./chunks/framework.hrgFA2vO.js";const g=JSON.parse('{"title":"The Knowledge I Learned from PDF.js","description":"","frontmatter":{"title":"The Knowledge I Learned from PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/learned-knowledge/"}]]},"headers":[],"relativePath":"learned-knowledge/index.md","filePath":"learned-knowledge/index.md","lastUpdated":1711325901000}'),t={name:"learned-knowledge/index.md"},n=a(`

Acknowledge

There are critical comments about the PDF.js project, they say it should be easier to integrate the default viewer. I understand them somehow as a developer who want to show a PDF quickly, but knowing the primary goal of an OSS project can help us to understand the trade-off decisions made by the maintainers.

All these are what I learned from the PDF.js project. It may not be accurate, but I hope it can help you to understand the PDF.js better.

Table of Contents

Background

PDF.js is an OSS project supported by Mozilla and developed using HTML5, It's goal is to create a general-purpose, web standards-based platform for rendering PDFs in the Firefox browser. Many people find out that it's hard to integrate it into project, it's somehow intentionally.

It's not developed as a component or library you can easily integrate like most npm packages, because it's primary goal is to be used easily in Firefox browser, the goal doesn't match most developers expectations. It's the trade-off decision made by the maintainers, we should understand it.

Issues talked about why it's not easy to integrate

Introduction

PDF.js use web worker for better rendering performance.

A typical web application only has one bundle result, but PDF.js has at least 4 bundles, they are main, worker, sandbox and web bundles.

javascript
// From https://github.com/mozilla/pdf.js/blob/master/gulpfile.mjs#L1001
 function buildGeneric(defines, dir) {
   rimraf.sync(dir);
 
diff --git a/docs/assets/learned-knowledge_index.md.BRjElw_K.lean.js b/docs/assets/learned-knowledge_index.md.DEfqu7iG.lean.js
similarity index 89%
rename from docs/assets/learned-knowledge_index.md.BRjElw_K.lean.js
rename to docs/assets/learned-knowledge_index.md.DEfqu7iG.lean.js
index c723300..ee3b7bb 100644
--- a/docs/assets/learned-knowledge_index.md.BRjElw_K.lean.js
+++ b/docs/assets/learned-knowledge_index.md.DEfqu7iG.lean.js
@@ -1 +1 @@
-import{_ as s,c as i,o as e,a4 as a}from"./chunks/framework.hrgFA2vO.js";const g=JSON.parse('{"title":"The Knowledge I Learned from PDF.js","description":"","frontmatter":{"title":"The Knowledge I Learned from PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/learned-knowledge/"}]]},"headers":[],"relativePath":"learned-knowledge/index.md","filePath":"learned-knowledge/index.md","lastUpdated":1711289222000}'),t={name:"learned-knowledge/index.md"},n=a("",42),l=[n];function r(h,p,o,d,k,c){return e(),i("div",null,l)}const E=s(t,[["render",r]]);export{g as __pageData,E as default};
+import{_ as s,c as i,o as e,a4 as a}from"./chunks/framework.hrgFA2vO.js";const g=JSON.parse('{"title":"The Knowledge I Learned from PDF.js","description":"","frontmatter":{"title":"The Knowledge I Learned from PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/learned-knowledge/"}]]},"headers":[],"relativePath":"learned-knowledge/index.md","filePath":"learned-knowledge/index.md","lastUpdated":1711325901000}'),t={name:"learned-knowledge/index.md"},n=a("",42),l=[n];function r(h,p,o,d,k,c){return e(),i("div",null,l)}const E=s(t,[["render",r]]);export{g as __pageData,E as default};
diff --git a/docs/assets/learned-knowledge_parts_app-options.md.DdCAEcX6.js b/docs/assets/learned-knowledge_parts_app-options.md.ChyGLFxM.js
similarity index 97%
rename from docs/assets/learned-knowledge_parts_app-options.md.DdCAEcX6.js
rename to docs/assets/learned-knowledge_parts_app-options.md.ChyGLFxM.js
index fdeff51..0a7d5bf 100644
--- a/docs/assets/learned-knowledge_parts_app-options.md.DdCAEcX6.js
+++ b/docs/assets/learned-knowledge_parts_app-options.md.ChyGLFxM.js
@@ -1 +1 @@
-import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.hrgFA2vO.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/app-options.md","filePath":"learned-knowledge/parts/app-options.md","lastUpdated":1711289222000}'),l={name:"learned-knowledge/parts/app-options.md"},i=t('

There are dozens of options in PDF.js, and they all belong to four kinds for now. You may wonder why there are so many options, and what they mean at the first time. This document will help you to understand them.

Let's crack on them one by one!

Option Kinds

  • VIEWER
  • API
  • WORKER
  • PREFERENCE

Important options

  • defaultUrl
  • locale
  • workerSrc
  • sandboxBundleSrc

defaultUrl

  • Type URL | string | Uint8Array

The url of the PDF file. If you got CORS issue when loading a PDF file from a different origin, see details at origin match error section in common pitfalls page .

locale

  • Type string
  • Default en-US

The locale of the viewer, it easy to switch a different locale by setting this option. See all supported locales in folder l10n.

',12),r=[i];function n(s,d,p,c,h,f){return a(),o("div",null,r)}const b=e(l,[["render",n]]);export{m as __pageData,b as default}; +import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.hrgFA2vO.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/app-options.md","filePath":"learned-knowledge/parts/app-options.md","lastUpdated":1711325901000}'),l={name:"learned-knowledge/parts/app-options.md"},i=t('

There are dozens of options in PDF.js, and they all belong to four kinds for now. You may wonder why there are so many options, and what they mean at the first time. This document will help you to understand them.

Let's crack on them one by one!

Option Kinds

  • VIEWER
  • API
  • WORKER
  • PREFERENCE

Important options

  • defaultUrl
  • locale
  • workerSrc
  • sandboxBundleSrc

defaultUrl

  • Type URL | string | Uint8Array

The url of the PDF file. If you got CORS issue when loading a PDF file from a different origin, see details at origin match error section in common pitfalls page .

locale

  • Type string
  • Default en-US

The locale of the viewer, it easy to switch a different locale by setting this option. See all supported locales in folder l10n.

',12),r=[i];function n(s,d,p,c,h,f){return a(),o("div",null,r)}const b=e(l,[["render",n]]);export{m as __pageData,b as default}; diff --git a/docs/assets/learned-knowledge_parts_app-options.md.DdCAEcX6.lean.js b/docs/assets/learned-knowledge_parts_app-options.md.ChyGLFxM.lean.js similarity index 86% rename from docs/assets/learned-knowledge_parts_app-options.md.DdCAEcX6.lean.js rename to docs/assets/learned-knowledge_parts_app-options.md.ChyGLFxM.lean.js index 6df028a..43aae53 100644 --- a/docs/assets/learned-knowledge_parts_app-options.md.DdCAEcX6.lean.js +++ b/docs/assets/learned-knowledge_parts_app-options.md.ChyGLFxM.lean.js @@ -1 +1 @@ -import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.hrgFA2vO.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/app-options.md","filePath":"learned-knowledge/parts/app-options.md","lastUpdated":1711289222000}'),l={name:"learned-knowledge/parts/app-options.md"},i=t("",12),r=[i];function n(s,d,p,c,h,f){return a(),o("div",null,r)}const b=e(l,[["render",n]]);export{m as __pageData,b as default}; +import{_ as e,c as o,o as a,a4 as t}from"./chunks/framework.hrgFA2vO.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/app-options.md","filePath":"learned-knowledge/parts/app-options.md","lastUpdated":1711325901000}'),l={name:"learned-knowledge/parts/app-options.md"},i=t("",12),r=[i];function n(s,d,p,c,h,f){return a(),o("div",null,r)}const b=e(l,[["render",n]]);export{m as __pageData,b as default}; diff --git a/docs/assets/learned-knowledge_parts_application.md.D5oWUo8I.js b/docs/assets/learned-knowledge_parts_application.md.Bjd80Nuw.js similarity index 92% rename from docs/assets/learned-knowledge_parts_application.md.D5oWUo8I.js rename to docs/assets/learned-knowledge_parts_application.md.Bjd80Nuw.js index dc49cc6..36314a4 100644 --- a/docs/assets/learned-knowledge_parts_application.md.D5oWUo8I.js +++ b/docs/assets/learned-knowledge_parts_application.md.Bjd80Nuw.js @@ -1 +1 @@ -import{_ as a,c as o,o as r,m as e,a as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/application.md","filePath":"learned-knowledge/parts/application.md","lastUpdated":1711289222000}'),l={name:"learned-knowledge/parts/application.md"},n=e("p",null,[t("The global "),e("a",{href:"https://github.com/mozilla/pdf.js/blob/a6e0b0292e8d8952576f55073ba3b8df69a2932a/web/app.js#L91",target:"_blank",rel:"noreferrer"},[e("code",null,"PDFViewerApplication")]),t(" object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.")],-1),s=[n];function d(p,i,c,f,h,_){return r(),o("div",null,s)}const b=a(l,[["render",d]]);export{u as __pageData,b as default}; +import{_ as a,c as o,o as r,m as e,a as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/application.md","filePath":"learned-knowledge/parts/application.md","lastUpdated":1711325901000}'),l={name:"learned-knowledge/parts/application.md"},n=e("p",null,[t("The global "),e("a",{href:"https://github.com/mozilla/pdf.js/blob/a6e0b0292e8d8952576f55073ba3b8df69a2932a/web/app.js#L91",target:"_blank",rel:"noreferrer"},[e("code",null,"PDFViewerApplication")]),t(" object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.")],-1),s=[n];function d(p,i,c,f,h,_){return r(),o("div",null,s)}const b=a(l,[["render",d]]);export{u as __pageData,b as default}; diff --git a/docs/assets/learned-knowledge_parts_application.md.D5oWUo8I.lean.js b/docs/assets/learned-knowledge_parts_application.md.Bjd80Nuw.lean.js similarity index 92% rename from docs/assets/learned-knowledge_parts_application.md.D5oWUo8I.lean.js rename to docs/assets/learned-knowledge_parts_application.md.Bjd80Nuw.lean.js index dc49cc6..36314a4 100644 --- a/docs/assets/learned-knowledge_parts_application.md.D5oWUo8I.lean.js +++ b/docs/assets/learned-knowledge_parts_application.md.Bjd80Nuw.lean.js @@ -1 +1 @@ -import{_ as a,c as o,o as r,m as e,a as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/application.md","filePath":"learned-knowledge/parts/application.md","lastUpdated":1711289222000}'),l={name:"learned-knowledge/parts/application.md"},n=e("p",null,[t("The global "),e("a",{href:"https://github.com/mozilla/pdf.js/blob/a6e0b0292e8d8952576f55073ba3b8df69a2932a/web/app.js#L91",target:"_blank",rel:"noreferrer"},[e("code",null,"PDFViewerApplication")]),t(" object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.")],-1),s=[n];function d(p,i,c,f,h,_){return r(),o("div",null,s)}const b=a(l,[["render",d]]);export{u as __pageData,b as default}; +import{_ as a,c as o,o as r,m as e,a as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/application.md","filePath":"learned-knowledge/parts/application.md","lastUpdated":1711325901000}'),l={name:"learned-knowledge/parts/application.md"},n=e("p",null,[t("The global "),e("a",{href:"https://github.com/mozilla/pdf.js/blob/a6e0b0292e8d8952576f55073ba3b8df69a2932a/web/app.js#L91",target:"_blank",rel:"noreferrer"},[e("code",null,"PDFViewerApplication")]),t(" object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.")],-1),s=[n];function d(p,i,c,f,h,_){return r(),o("div",null,s)}const b=a(l,[["render",d]]);export{u as __pageData,b as default}; diff --git a/docs/assets/learned-knowledge_parts_events.md.DF-ot8tV.js b/docs/assets/learned-knowledge_parts_events.md.DGNXAA25.js similarity index 94% rename from docs/assets/learned-knowledge_parts_events.md.DF-ot8tV.js rename to docs/assets/learned-knowledge_parts_events.md.DGNXAA25.js index 64ab99f..96c632a 100644 --- a/docs/assets/learned-knowledge_parts_events.md.DF-ot8tV.js +++ b/docs/assets/learned-knowledge_parts_events.md.DGNXAA25.js @@ -1 +1 @@ -import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/events.md","filePath":"learned-knowledge/parts/events.md","lastUpdated":1711289222000}'),d={name:"learned-knowledge/parts/events.md"},o=r('

documentinit

Emitted after called the setInitialView method to show the initial view successfully. After the event is emitted, the viewer will be ready to use.

documenterror

Emitted after error occurred when rendering document.

pagerendered

Emitted after each page is rendered successfully.

',6),n=[o];function c(i,s,l,h,_,m){return a(),t("div",null,n)}const f=e(d,[["render",c]]);export{u as __pageData,f as default}; +import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/events.md","filePath":"learned-knowledge/parts/events.md","lastUpdated":1711325901000}'),d={name:"learned-knowledge/parts/events.md"},o=r('

documentinit

Emitted after called the setInitialView method to show the initial view successfully. After the event is emitted, the viewer will be ready to use.

documenterror

Emitted after error occurred when rendering document.

pagerendered

Emitted after each page is rendered successfully.

',6),n=[o];function c(i,s,l,h,_,m){return a(),t("div",null,n)}const f=e(d,[["render",c]]);export{u as __pageData,f as default}; diff --git a/docs/assets/learned-knowledge_parts_events.md.DF-ot8tV.lean.js b/docs/assets/learned-knowledge_parts_events.md.DGNXAA25.lean.js similarity index 86% rename from docs/assets/learned-knowledge_parts_events.md.DF-ot8tV.lean.js rename to docs/assets/learned-knowledge_parts_events.md.DGNXAA25.lean.js index bfc55a5..8135f5b 100644 --- a/docs/assets/learned-knowledge_parts_events.md.DF-ot8tV.lean.js +++ b/docs/assets/learned-knowledge_parts_events.md.DGNXAA25.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/events.md","filePath":"learned-knowledge/parts/events.md","lastUpdated":1711289222000}'),d={name:"learned-knowledge/parts/events.md"},o=r("",6),n=[o];function c(i,s,l,h,_,m){return a(),t("div",null,n)}const f=e(d,[["render",c]]);export{u as __pageData,f as default}; +import{_ as e,c as t,o as a,a4 as r}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"learned-knowledge/parts/events.md","filePath":"learned-knowledge/parts/events.md","lastUpdated":1711325901000}'),d={name:"learned-knowledge/parts/events.md"},o=r("",6),n=[o];function c(i,s,l,h,_,m){return a(),t("div",null,n)}const f=e(d,[["render",c]]);export{u as __pageData,f as default}; diff --git a/docs/assets/pitfalls.md.DybEbcLt.js b/docs/assets/pitfalls.md.RvCxd5bQ.js similarity index 98% rename from docs/assets/pitfalls.md.DybEbcLt.js rename to docs/assets/pitfalls.md.RvCxd5bQ.js index 8618836..8032dd3 100644 --- a/docs/assets/pitfalls.md.DybEbcLt.js +++ b/docs/assets/pitfalls.md.RvCxd5bQ.js @@ -1 +1 @@ -import{_ as e,c as t,o,a4 as r}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"Common Pitfalls of PDF.js","description":"","frontmatter":{"title":"Common Pitfalls of PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/pitfalls.html"}]]},"headers":[],"relativePath":"pitfalls.md","filePath":"pitfalls.md","lastUpdated":1711289222000}'),a={name:"pitfalls.md"},i=r('

Common Pitfalls When Integrate PDF.js

API version mismatch the Worker version

The API version "a.b.c" does not match the Worker version "x.y.z"

Reason for the Error

Why such error?
PDF.js use a web worker architecture for better rendering performance.

A typical web application has only one bundle result, but PDF.js has two bundles, one for the viewer, one for the worker.

The versions of the two bundles must match to work properly. If the versions mismatch, it may work sometimes, but when it not, I think it's hard to figure such issues.

Although the explicit error may annoy developer at first, it does save your time from debugging such issues.

Origin not match

file origin does not match viewer's

Reason for the Error

You can try to use the methods mentioned in the official FAQ to resolve the issue, or you can try the @document-kits/viewer, it has a disableCORSCheck option to disable the CORS check for quick start. Be careful, you should not enable this option in production if you don't know what it means.

Top-level await is not available in the configured target environment

The reason for this error is that the source code of pdf.js contains top-level await statement, when used and bundled in a project, it may cause the error. As I commented in the issue https://github.com/mozilla/pdf.js/issues/17245#issuecomment-1918453195, it can be resolved add/modify related gulp task.

A good article about top-level await is here.

',12),s=[i];function n(l,h,c,d,m,u){return o(),t("div",null,s)}const b=e(a,[["render",n]]);export{f as __pageData,b as default}; +import{_ as e,c as t,o,a4 as r}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"Common Pitfalls of PDF.js","description":"","frontmatter":{"title":"Common Pitfalls of PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/pitfalls.html"}]]},"headers":[],"relativePath":"pitfalls.md","filePath":"pitfalls.md","lastUpdated":1711325901000}'),a={name:"pitfalls.md"},i=r('

Common Pitfalls When Integrate PDF.js

API version mismatch the Worker version

The API version "a.b.c" does not match the Worker version "x.y.z"

Reason for the Error

Why such error?
PDF.js use a web worker architecture for better rendering performance.

A typical web application has only one bundle result, but PDF.js has two bundles, one for the viewer, one for the worker.

The versions of the two bundles must match to work properly. If the versions mismatch, it may work sometimes, but when it not, I think it's hard to figure such issues.

Although the explicit error may annoy developer at first, it does save your time from debugging such issues.

Origin not match

file origin does not match viewer's

Reason for the Error

You can try to use the methods mentioned in the official FAQ to resolve the issue, or you can try the @document-kits/viewer, it has a disableCORSCheck option to disable the CORS check for quick start. Be careful, you should not enable this option in production if you don't know what it means.

Top-level await is not available in the configured target environment

The reason for this error is that the source code of pdf.js contains top-level await statement, when used and bundled in a project, it may cause the error. As I commented in the issue https://github.com/mozilla/pdf.js/issues/17245#issuecomment-1918453195, it can be resolved add/modify related gulp task.

A good article about top-level await is here.

',12),s=[i];function n(l,h,c,d,m,u){return o(),t("div",null,s)}const b=e(a,[["render",n]]);export{f as __pageData,b as default}; diff --git a/docs/assets/pitfalls.md.DybEbcLt.lean.js b/docs/assets/pitfalls.md.RvCxd5bQ.lean.js similarity index 88% rename from docs/assets/pitfalls.md.DybEbcLt.lean.js rename to docs/assets/pitfalls.md.RvCxd5bQ.lean.js index 75a39ec..83fec24 100644 --- a/docs/assets/pitfalls.md.DybEbcLt.lean.js +++ b/docs/assets/pitfalls.md.RvCxd5bQ.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o,a4 as r}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"Common Pitfalls of PDF.js","description":"","frontmatter":{"title":"Common Pitfalls of PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/pitfalls.html"}]]},"headers":[],"relativePath":"pitfalls.md","filePath":"pitfalls.md","lastUpdated":1711289222000}'),a={name:"pitfalls.md"},i=r("",12),s=[i];function n(l,h,c,d,m,u){return o(),t("div",null,s)}const b=e(a,[["render",n]]);export{f as __pageData,b as default}; +import{_ as e,c as t,o,a4 as r}from"./chunks/framework.hrgFA2vO.js";const f=JSON.parse('{"title":"Common Pitfalls of PDF.js","description":"","frontmatter":{"title":"Common Pitfalls of PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/pitfalls.html"}]]},"headers":[],"relativePath":"pitfalls.md","filePath":"pitfalls.md","lastUpdated":1711325901000}'),a={name:"pitfalls.md"},i=r("",12),s=[i];function n(l,h,c,d,m,u){return o(),t("div",null,s)}const b=e(a,[["render",n]]);export{f as __pageData,b as default}; diff --git a/docs/assets/resources.md.DZsPCwo8.js b/docs/assets/resources.md.CKpd7gGv.js similarity index 94% rename from docs/assets/resources.md.DZsPCwo8.js rename to docs/assets/resources.md.CKpd7gGv.js index 5255e6b..a3bd6e3 100644 --- a/docs/assets/resources.md.DZsPCwo8.js +++ b/docs/assets/resources.md.CKpd7gGv.js @@ -1 +1 @@ -import{_ as e,c as a,o as r,a4 as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"Useful Learning Resources of PDF and PDF.js","description":"","frontmatter":{"title":"Useful Learning Resources of PDF and PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/resources.html"}]]},"headers":[],"relativePath":"resources.md","filePath":"resources.md","lastUpdated":1711289222000}'),s={name:"resources.md"},o=t('

PDF Specifications

Blogs

',4),i=[o];function n(l,c,d,p,_,f){return r(),a("div",null,i)}const g=e(s,[["render",n]]);export{u as __pageData,g as default}; +import{_ as e,c as a,o as r,a4 as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"Useful Learning Resources of PDF and PDF.js","description":"","frontmatter":{"title":"Useful Learning Resources of PDF and PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/resources.html"}]]},"headers":[],"relativePath":"resources.md","filePath":"resources.md","lastUpdated":1711325901000}'),s={name:"resources.md"},o=t('

PDF Specifications

Blogs

',4),i=[o];function n(l,c,d,p,_,f){return r(),a("div",null,i)}const g=e(s,[["render",n]]);export{u as __pageData,g as default}; diff --git a/docs/assets/resources.md.DZsPCwo8.lean.js b/docs/assets/resources.md.CKpd7gGv.lean.js similarity index 89% rename from docs/assets/resources.md.DZsPCwo8.lean.js rename to docs/assets/resources.md.CKpd7gGv.lean.js index 8c48bdc..2e018d7 100644 --- a/docs/assets/resources.md.DZsPCwo8.lean.js +++ b/docs/assets/resources.md.CKpd7gGv.lean.js @@ -1 +1 @@ -import{_ as e,c as a,o as r,a4 as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"Useful Learning Resources of PDF and PDF.js","description":"","frontmatter":{"title":"Useful Learning Resources of PDF and PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/resources.html"}]]},"headers":[],"relativePath":"resources.md","filePath":"resources.md","lastUpdated":1711289222000}'),s={name:"resources.md"},o=t("",4),i=[o];function n(l,c,d,p,_,f){return r(),a("div",null,i)}const g=e(s,[["render",n]]);export{u as __pageData,g as default}; +import{_ as e,c as a,o as r,a4 as t}from"./chunks/framework.hrgFA2vO.js";const u=JSON.parse('{"title":"Useful Learning Resources of PDF and PDF.js","description":"","frontmatter":{"title":"Useful Learning Resources of PDF and PDF.js","head":[["link",{"rel":"canonical","href":"https://priestch.github.io/document-viewer/docs/resources.html"}]]},"headers":[],"relativePath":"resources.md","filePath":"resources.md","lastUpdated":1711325901000}'),s={name:"resources.md"},o=t("",4),i=[o];function n(l,c,d,p,_,f){return r(),a("div",null,i)}const g=e(s,[["render",n]]);export{u as __pageData,g as default}; diff --git a/docs/communication.html b/docs/communication.html index a2a958f..f420cb5 100644 --- a/docs/communication.html +++ b/docs/communication.html @@ -8,19 +8,19 @@ - + - - + + -
Skip to content

Main and worker thread communication

between main and worker thread

Last updated:

- +
Skip to content

Main and worker thread communication

between main and worker thread

Last updated:

+ \ No newline at end of file diff --git a/docs/get-started.html b/docs/get-started.html index bda7c13..2d5e629 100644 --- a/docs/get-started.html +++ b/docs/get-started.html @@ -8,18 +8,18 @@ - + - - + + -
Skip to content

PDF Viewer

An out-of-the-box PDF viewer builds on PDF.js.

Quick Start

You can use the starter to initialize a demo app to explore how to use this package in your own project.

bash
# initialize a demo project with a quick starter
+    
Skip to content

PDF Viewer

An out-of-the-box PDF viewer builds on PDF.js.

Quick Start

You can use the starter to initialize a demo app to explore how to use this package in your own project.

bash
# initialize a demo project with a quick starter
 npm create @document-kits/viewer@latest my-app
 
 # There will be prompt to let you choose a template to start,
@@ -43,8 +43,8 @@
 pnpm install
 
 # run the dev server and open the default browser to view the demo
-pnpm run dev --open

Prepare Resources

PDF.js depends on some resources to work.

All the necessary resources are located in node_modules/@document-kits/viewer/dist/generic/. When building the app using a bundler, make sure to copy these resources.

Resource List
  • web/locale/viewer.properties for i18n
  • web/viewer.css for viewer style
  • build/pdf.worker.js
  • build/pdf.sandbox.js
  • web/standard_fonts/*

Last updated:

- +pnpm run dev --open

Prepare Resources

PDF.js depends on some resources to work.

All the necessary resources are located in node_modules/@document-kits/viewer/dist/generic/. When building the app using a bundler, make sure to copy these resources.

Resource List
  • web/locale/viewer.properties for i18n
  • web/viewer.css for viewer style
  • build/pdf.worker.js
  • build/pdf.sandbox.js
  • web/standard_fonts/*

Last updated:

+ \ No newline at end of file diff --git a/docs/hashmap.json b/docs/hashmap.json index 42d69d3..d977848 100644 --- a/docs/hashmap.json +++ b/docs/hashmap.json @@ -1 +1 @@ -{"resources.md":"DZsPCwo8","pitfalls.md":"DybEbcLt","learned-knowledge_parts_events.md":"DF-ot8tV","learned-knowledge_parts_app-options.md":"DdCAEcX6","index.md":"BiV3AFx4","learned-knowledge_index.md":"BRjElw_K","architecture.md":"DyrvLC8x","get-started.md":"BeX7tryw","api.md":"Biwly_MI","communication.md":"C5vYiFWT","learned-knowledge_parts_application.md":"D5oWUo8I"} +{"learned-knowledge_parts_events.md":"DGNXAA25","learned-knowledge_parts_application.md":"Bjd80Nuw","architecture.md":"Pya0N7Di","pitfalls.md":"RvCxd5bQ","communication.md":"BhVaLTVb","api.md":"BaksInAf","get-started.md":"B6dfxjrd","resources.md":"CKpd7gGv","index.md":"CfOhYm9s","learned-knowledge_parts_app-options.md":"ChyGLFxM","learned-knowledge_index.md":"DEfqu7iG"} diff --git a/docs/index.html b/docs/index.html index 163689a..70072fc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,11 +8,11 @@ - + - - + + @@ -20,7 +20,7 @@
Skip to content

Document Viewer

An out-of-the-box Open Source PDF Viewer.

Easy, performant and framework-agnostic way to embed a PDF in any website.

- + \ No newline at end of file diff --git a/docs/learned-knowledge/index.html b/docs/learned-knowledge/index.html index 873fce7..8c7848f 100644 --- a/docs/learned-knowledge/index.html +++ b/docs/learned-knowledge/index.html @@ -8,11 +8,11 @@ - + - - + + @@ -55,8 +55,8 @@ class AltTextManager { // ... -}

PDFViewerApplication

The global PDFViewerApplication object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.

AppOptions

There are dozens of options in PDF.js, and they all belong to four kinds for now. You may wonder why there are so many options, and what they mean at the first time. This document will help you to understand them.

Let's crack on them one by one!

Option Kinds

  • VIEWER
  • API
  • WORKER
  • PREFERENCE

Important options

  • defaultUrl
  • locale
  • workerSrc
  • sandboxBundleSrc

defaultUrl

  • Type URL | string | Uint8Array

The url of the PDF file. If you got CORS issue when loading a PDF file from a different origin, see details at origin match error section in common pitfalls page .

locale

  • Type string
  • Default en-US

The locale of the viewer, it easy to switch a different locale by setting this option. See all supported locales in folder l10n.

Important Events

documentinit

Emitted after called the setInitialView method to show the initial view successfully. After the event is emitted, the viewer will be ready to use.

documenterror

Emitted after error occurred when rendering document.

pagerendered

Emitted after each page is rendered successfully.

Gulp Tasks

- +}

PDFViewerApplication

The global PDFViewerApplication object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.

AppOptions

There are dozens of options in PDF.js, and they all belong to four kinds for now. You may wonder why there are so many options, and what they mean at the first time. This document will help you to understand them.

Let's crack on them one by one!

Option Kinds

Important options

defaultUrl

The url of the PDF file. If you got CORS issue when loading a PDF file from a different origin, see details at origin match error section in common pitfalls page .

locale

The locale of the viewer, it easy to switch a different locale by setting this option. See all supported locales in folder l10n.

Important Events

documentinit

Emitted after called the setInitialView method to show the initial view successfully. After the event is emitted, the viewer will be ready to use.

documenterror

Emitted after error occurred when rendering document.

pagerendered

Emitted after each page is rendered successfully.

Gulp Tasks

+ \ No newline at end of file diff --git a/docs/learned-knowledge/parts/app-options.html b/docs/learned-knowledge/parts/app-options.html index 1f516d8..1522692 100644 --- a/docs/learned-knowledge/parts/app-options.html +++ b/docs/learned-knowledge/parts/app-options.html @@ -8,18 +8,18 @@ - + - - + + -
Skip to content

There are dozens of options in PDF.js, and they all belong to four kinds for now. You may wonder why there are so many options, and what they mean at the first time. This document will help you to understand them.

Let's crack on them one by one!

Option Kinds

  • VIEWER
  • API
  • WORKER
  • PREFERENCE

Important options

  • defaultUrl
  • locale
  • workerSrc
  • sandboxBundleSrc

defaultUrl

  • Type URL | string | Uint8Array

The url of the PDF file. If you got CORS issue when loading a PDF file from a different origin, see details at origin match error section in common pitfalls page .

locale

  • Type string
  • Default en-US

The locale of the viewer, it easy to switch a different locale by setting this option. See all supported locales in folder l10n.

Last updated:

- +
Skip to content

There are dozens of options in PDF.js, and they all belong to four kinds for now. You may wonder why there are so many options, and what they mean at the first time. This document will help you to understand them.

Let's crack on them one by one!

Option Kinds

  • VIEWER
  • API
  • WORKER
  • PREFERENCE

Important options

  • defaultUrl
  • locale
  • workerSrc
  • sandboxBundleSrc

defaultUrl

  • Type URL | string | Uint8Array

The url of the PDF file. If you got CORS issue when loading a PDF file from a different origin, see details at origin match error section in common pitfalls page .

locale

  • Type string
  • Default en-US

The locale of the viewer, it easy to switch a different locale by setting this option. See all supported locales in folder l10n.

Last updated:

+ \ No newline at end of file diff --git a/docs/learned-knowledge/parts/application.html b/docs/learned-knowledge/parts/application.html index 7f0977b..e9c88c4 100644 --- a/docs/learned-knowledge/parts/application.html +++ b/docs/learned-knowledge/parts/application.html @@ -8,18 +8,18 @@ - + - - + + -
Skip to content

The global PDFViewerApplication object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.

Last updated:

- +
Skip to content

The global PDFViewerApplication object is the entry of the default viewer of PDF.js, it glues all the modules together, and provides the API for the default viewer.

Last updated:

+ \ No newline at end of file diff --git a/docs/learned-knowledge/parts/events.html b/docs/learned-knowledge/parts/events.html index f6077cf..495f429 100644 --- a/docs/learned-knowledge/parts/events.html +++ b/docs/learned-knowledge/parts/events.html @@ -8,18 +8,18 @@ - + - - + + -
Skip to content

documentinit

Emitted after called the setInitialView method to show the initial view successfully. After the event is emitted, the viewer will be ready to use.

documenterror

Emitted after error occurred when rendering document.

pagerendered

Emitted after each page is rendered successfully.

Last updated:

- +
Skip to content

documentinit

Emitted after called the setInitialView method to show the initial view successfully. After the event is emitted, the viewer will be ready to use.

documenterror

Emitted after error occurred when rendering document.

pagerendered

Emitted after each page is rendered successfully.

Last updated:

+ \ No newline at end of file diff --git a/docs/pitfalls.html b/docs/pitfalls.html index aa94b4e..92e51c2 100644 --- a/docs/pitfalls.html +++ b/docs/pitfalls.html @@ -8,19 +8,19 @@ - + - - + + -
Skip to content

Common Pitfalls When Integrate PDF.js

API version mismatch the Worker version

The API version "a.b.c" does not match the Worker version "x.y.z"

Reason for the Error

Why such error?
PDF.js use a web worker architecture for better rendering performance.

A typical web application has only one bundle result, but PDF.js has two bundles, one for the viewer, one for the worker.

The versions of the two bundles must match to work properly. If the versions mismatch, it may work sometimes, but when it not, I think it's hard to figure such issues.

Although the explicit error may annoy developer at first, it does save your time from debugging such issues.

Origin not match

file origin does not match viewer's

Reason for the Error

You can try to use the methods mentioned in the official FAQ to resolve the issue, or you can try the @document-kits/viewer, it has a disableCORSCheck option to disable the CORS check for quick start. Be careful, you should not enable this option in production if you don't know what it means.

Top-level await is not available in the configured target environment

The reason for this error is that the source code of pdf.js contains top-level await statement, when used and bundled in a project, it may cause the error. As I commented in the issue https://github.com/mozilla/pdf.js/issues/17245#issuecomment-1918453195, it can be resolved add/modify related gulp task.

A good article about top-level await is here.

Last updated:

- +
Skip to content

Common Pitfalls When Integrate PDF.js

API version mismatch the Worker version

The API version "a.b.c" does not match the Worker version "x.y.z"

Reason for the Error

Why such error?
PDF.js use a web worker architecture for better rendering performance.

A typical web application has only one bundle result, but PDF.js has two bundles, one for the viewer, one for the worker.

The versions of the two bundles must match to work properly. If the versions mismatch, it may work sometimes, but when it not, I think it's hard to figure such issues.

Although the explicit error may annoy developer at first, it does save your time from debugging such issues.

Origin not match

file origin does not match viewer's

Reason for the Error

You can try to use the methods mentioned in the official FAQ to resolve the issue, or you can try the @document-kits/viewer, it has a disableCORSCheck option to disable the CORS check for quick start. Be careful, you should not enable this option in production if you don't know what it means.

Top-level await is not available in the configured target environment

The reason for this error is that the source code of pdf.js contains top-level await statement, when used and bundled in a project, it may cause the error. As I commented in the issue https://github.com/mozilla/pdf.js/issues/17245#issuecomment-1918453195, it can be resolved add/modify related gulp task.

A good article about top-level await is here.

Last updated:

+ \ No newline at end of file diff --git a/docs/resources.html b/docs/resources.html index 855ef61..e642bc0 100644 --- a/docs/resources.html +++ b/docs/resources.html @@ -8,19 +8,19 @@ - + - - + + -
Skip to content

PDF Specifications

Blogs

Last updated:

- +
Skip to content

PDF Specifications

Blogs

Last updated:

+ \ No newline at end of file diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 2aebc17..2415aac 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -1 +1 @@ -https://priestch.github.io/document-viewer/docs/api.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/architecture.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/communication.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/get-started.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/parts/app-options.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/parts/application.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/parts/events.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/pitfalls.html2024-03-24T14:07:02.000Zhttps://priestch.github.io/document-viewer/docs/resources.html2024-03-24T14:07:02.000Z \ No newline at end of file +https://priestch.github.io/document-viewer/docs/api.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/architecture.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/communication.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/get-started.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/parts/app-options.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/parts/application.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/learned-knowledge/parts/events.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/pitfalls.html2024-03-25T00:18:21.000Zhttps://priestch.github.io/document-viewer/docs/resources.html2024-03-25T00:18:21.000Z \ No newline at end of file