mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9817],{52013:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(67294),a=n(86010),i=n(65319),c=n(53605),o=n(87275),l=n(31984),s=n(92210),m=n(70676);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u(e,t,n[t])}))}return e}({viewBox:"0 0 24 24"},e),r.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const b={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function p(){const e=(0,m.Z)("/");return r.createElement("li",{className:"breadcrumbs__item"},r.createElement(l.Z,{"aria-label":(0,s.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e},r.createElement(d,{className:b.breadcrumbHomeIcon})))}const f={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function h({children:e,href:t,isLast:n}){const a="breadcrumbs__link";return n?r.createElement("span",{className:a,itemProp:"name"},e):t?r.createElement(l.Z,{className:a,href:t,itemProp:"item"},r.createElement("span",{itemProp:"name"},e)):r.createElement("span",{className:a},e)}function E({children:e,active:t,index:n,addMicrodata:i}){return r.createElement("li",v(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}({},i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"}),{className:(0,a.Z)("breadcrumbs__item",{"breadcrumbs__item--active":t})}),e,r.createElement("meta",{itemProp:"position",content:String(n+1)}))}function y(){const e=(0,c.s1)(),t=(0,o.Ns)();return e?r.createElement("nav",{className:(0,a.Z)(i.k.docs.docBreadcrumbs,f.breadcrumbsContainer),"aria-label":(0,s.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},r.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&r.createElement(p,null),e.map(((t,n)=>{const a=n===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return r.createElement(E,{key:n,active:a,index:n,addMicrodata:!!i},r.createElement(h,{href:i,isLast:a},t.label))})))):null}},59485:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var r=n(67294),a=n(89712),i=n(53605),c=n(70676),o=n(86010),l=n(31984),s=n(47785),m=n(92210),u=n(24999);const d={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};function b({href:e,children:t}){return r.createElement(l.Z,{href:e,className:(0,o.Z)("card padding--lg",d.cardContainer)},t)}function p({href:e,icon:t,title:n,description:a}){return r.createElement(b,{href:e},r.createElement(u.Z,{as:"h2",className:(0,o.Z)("text--truncate",d.cardTitle),title:n},t," ",n),a&&r.createElement("p",{className:(0,o.Z)("text--truncate",d.cardDescription),title:a},a))}function f({item:e}){const t=(0,i.LM)(e);return t?r.createElement(p,{href:t,icon:"\ud83d\uddc3\ufe0f",title:e.label,description:null!==(n=e.description)&&void 0!==n?n:(0,m.I)({message:"{count} items",id:"theme.docs.DocCard.categoryDescription",description:"The default description for a category card in the generated index about how many items this category includes"},{count:e.items.length})}):null;var n}function g({item:e}){const t=(0,s.Z)(e.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17";var n;const a=(0,i.xz)(null!==(n=e.docId)&&void 0!==n?n:void 0);var c;return r.createElement(p,{href:e.href,icon:t,title:e.label,description:null!==(c=e.description)&&void 0!==c?c:null==a?void 0:a.description})}function v({item:e}){switch(e.type){case"link":return r.createElement(g,{item:e});case"category":return r.createElement(f,{item:e});default:throw new Error(`unknown item type ${JSON.stringify(e)}`)}}function h({className:e}){const t=(0,i.jA)();return r.createElement(E,{items:t.items,className:e})}function E(e){const{items:t,className:n}=e;if(!t)return r.createElement(h,e);const a=(0,i.MN)(t);return r.createElement("section",{className:(0,o.Z)("row",n)},a.map(((e,t)=>r.createElement("article",{key:t,className:"col col--6 margin-bottom--lg"},r.createElement(v,{item:e})))))}var y=n(2716),O=n(2085),N=n(22378),w=n(52013);const P={generatedIndexPage:"generatedIndexPage_vN6x",list:"list_eTzJ",title:"title_kItE"};function j({categoryGeneratedIndex:e}){return r.createElement(a.d,{title:e.title,description:e.description,keywords:e.keywords,image:(0,c.Z)(e.image)})}function Z({categoryGeneratedIndex:e}){const t=(0,i.jA)();return r.createElement("div",{className:P.generatedIndexPage},r.createElement(O.Z,null),r.createElement(w.Z,null),r.createElement(N.Z,null),r.createElement("header",null,r.createElement(u.Z,{as:"h1",className:P.title},e.title),e.description&&r.createElement("p",null,e.description)),r.createElement("article",{className:"margin-top--lg"},r.createElement(E,{items:t.items,className:P.list})),r.createElement("footer",{className:"margin-top--lg"},r.createElement(y.Z,{previous:e.navigation.previous,next:e.navigation.next})))}function k(e){return r.createElement(r.Fragment,null,r.createElement(j,e),r.createElement(Z,e))}},2716:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(67294),a=n(92210),i=n(86010),c=n(31984);function o(e){const{permalink:t,title:n,subLabel:a,isNext:o}=e;return r.createElement(c.Z,{className:(0,i.Z)("pagination-nav__link",o?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},a&&r.createElement("div",{className:"pagination-nav__sublabel"},a),r.createElement("div",{className:"pagination-nav__label"},n))}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function m(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function u(e){const{previous:t,next:n}=e;return r.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,a.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"})},t&&r.createElement(o,m(s({},t),{subLabel:r.createElement(a.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&r.createElement(o,m(s({},n),{subLabel:r.createElement(a.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}},22378:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(67294),a=n(86010),i=n(92210),c=n(65319),o=n(27391);function l({className:e}){const t=(0,o.E)();return t.badge?r.createElement("span",{className:(0,a.Z)(e,c.k.docs.docVersionBadge,"badge badge--secondary")},r.createElement(i.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:t.label}},"Version: {versionLabel}")):null}},2085:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(67294),a=n(86010),i=n(8241),c=n(31984),o=n(92210),l=n(55995),s=n(65319),m=n(39085),u=n(27391);const d={unreleased:function({siteTitle:e,versionMetadata:t}){return r.createElement(o.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:e,versionLabel:r.createElement("b",null,t.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function({siteTitle:e,versionMetadata:t}){return r.createElement(o.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:e,versionLabel:r.createElement("b",null,t.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function b(e){const t=d[e.versionMetadata.banner];return r.createElement(t,e)}function p({versionLabel:e,to:t,onClick:n}){return r.createElement(o.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:e,latestVersionLink:r.createElement("b",null,r.createElement(c.Z,{to:t,onClick:n},r.createElement(o.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function f({className:e,versionMetadata:t}){const{siteConfig:{title:n}}=(0,i.Z)(),{pluginId:c}=(0,l.gA)({failfast:!0}),{savePreferredVersionName:o}=(0,m.J)(c),{latestDocSuggestion:u,latestVersionSuggestion:d}=(0,l.Jo)(c),f=null!=u?u:(g=d).docs.find((e=>e.id===g.mainDocId));var g;return r.createElement("div",{className:(0,a.Z)(e,s.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},r.createElement("div",null,r.createElement(b,{siteTitle:n,versionMetadata:t})),r.createElement("div",{className:"margin-top--md"},r.createElement(p,{versionLabel:d.label,to:f.path,onClick:()=>o(d.name)})))}function g({className:e}){const t=(0,u.E)();return t.banner?r.createElement(f,{className:e,versionMetadata:t}):null}}}]); |