mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
1008 KiB
JavaScript
2 lines
1008 KiB
JavaScript
|
/*! For license information please see main.5b020cec.js.LICENSE.txt */
|
||
|
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[40179],{20830:(e,t,p)=>{"use strict";p.d(t,{W:()=>n});var a=p(67294);function n(){return a.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},a.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}},86010:(e,t,p)=>{"use strict";function a(e){var t,p,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(p=a(e[t]))&&(n&&(n+=" "),n+=p);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}p.d(t,{Z:()=>n});const n=function(){for(var e,t,p=0,n="";p<arguments.length;)(e=arguments[p++])&&(t=a(e))&&(n&&(n+=" "),n+=t);return n}},99318:(e,t,p)=>{"use strict";p.d(t,{lX:()=>_,q_:()=>S,ob:()=>m,PP:()=>q,Ep:()=>l});var a=p(87462);function n(e){return"/"===e.charAt(0)}function r(e,t){for(var p=t,a=p+1,n=e.length;a<n;p+=1,a+=1)e[p]=e[a];e.pop()}const i=function(e,t){void 0===t&&(t="");var p,a=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&n(e),s=t&&n(t),c=o||s;if(e&&n(e)?i=a:a.length&&(i.pop(),i=i.concat(a)),!i.length)return"/";if(i.length){var d=i[i.length-1];p="."===d||".."===d||""===d}else p=!1;for(var u=0,l=i.length;l>=0;l--){var m=i[l];"."===m?r(i,l):".."===m?(r(i,l),u++):u&&(r(i,l),u--)}if(!c)for(;u--;u)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var h=i.join("/");return p&&"/"!==h.substr(-1)&&(h+="/"),h};var o=p(2177);function s(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function u(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function l(e){var t=e.pathname,p=e.search,a=e.hash,n=t||"/";return p&&"?"!==p&&(n+="?"===p.charAt(0)?p:"?"+p),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function m(e,t,p,n){var r;"string"==typeof e?(r=function(e){var t=e||"/",p="",a="",n=t.indexOf("#");-1!==n&&(a=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");return-1!==r&&(p=t.substr(r),t=t.substr(0,r)),{pathname:t,search:"?"===p?"":p,hash:"#"===a?"":a}}(e),r.state=t):(void 0===(r=(0,a.Z)({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return p&&(r.key=p),n?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=i(r.pathname,n.pathname)):r.pathname=n.pathname:r.pathname||(r.pathname="/"),r}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,p,a,n){if(null!=e){var r="function"==typeof e?e(t,p):e;"string"==typeof r?"function"==typeof a?a(r,n):n(!0):n(!1!==r)}else n(!0)},appendListener:function(e){var p=!0;function a(){p&&e.apply(void 0,arguments)}return t.push(a),function(){p=!1,t=t.filter((function(e){return e!==a}))}},notifyListeners:function(){for(var e=arguments.length,p=new Array(e),a=0;a<e;a++)p[a]=arguments[a];t.forEach((function(e){return e.apply(void 0,p)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function f(e,t){t(window.confirm(e))}var g="popstate",x="hashchange";function v(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),b||(0,o.Z)(!1);var t,p=window.history,n=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in
|