PageSourceSearch

https://evgo2017.com/assets/js/1f391b9e.9f4946e9.js

js evgo2017.com collected 2026-09-29 08:19:24 UTC 7,472 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkblog=self.webpackChunkblog||[]).push([[6061],{95536:(e,n,o)=>{o.d(n,{A:()=>E});var t=o(35045),c=o(35225),s=o(25974),a=o(53100),l=o(56837),r=o(5181),i=o(58101);const d={codeBlockContainer:"codeBlockContainer_APcc"};var u=o(25105),m=["as"];function p(e){var n=e.as,o=(0,t.A)(e,m),c=(0,a.A)(),i=(0,r.M$)(c);return(0,u.jsx)(n,Object.assign({},o,{style:i,className:(0,s.cn)(o.className,d.codeBlockContainer,l.G.common.codeBlock)}))}const g={codeBlockContent:"codeBlockContent_m3Ux",codeBlockTitle:"codeBlockTitle_P25_",codeBlock:"codeBlock_qGQc",codeBlockStandalone:"codeBlockStandalone_zC50",codeBlockLines:"codeBlockLines_p187",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_OFgW",buttonGroup:"buttonGroup_6DOT"};function h(e){var n=e.children,o=e.className;return(0,u.jsx)(p,{as:"pre",tabIndex:0,className:(0,s.cn)(g.codeBlockStandalone,"thin-scrollbar",o),children:(0,u.jsx)("code",{className:g.codeBlockLines,children:n})})}var b=o(48939),f=o(10596),x=o(49062),k=o(77533),N=o(2105),B=o(85222),j=o(57202),v=o(48915);const C={copyButtonCopied:"copyButtonCopied__QnY",copyButtonIcons:"copyButtonIcons_FhaS",copyButtonIcon:"copyButtonIcon_phi_",copyButtonSuccessIcon:"copyButtonSuccessIcon_FfTR"};function _(e){var n=e.code,o=e.className,t=(0,i.useState)(!1),c=t[0],a=t[1],l=(0,i.useRef)(void 0),r=(0,i.useCallback)((function(){(0,v.A)(n),a(!0),l.current=window.setTimeout((function(){a(!1)}),1e3)}),[n]);return(0,i.useEffect)((function(){return function(){return window.clearTimeout(l.current)}}),[]),(0,u.jsx)("button",{type:"button","aria-label":c?(0,N.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,N.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,N.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.cn)("clean-btn",o,C.copyButton,c&&C.copyButtonCopied),onClick:r,children:(0,u.jsxs)("span",{className:C.copyButtonIcons,"aria-hidden":"true",children:[(0,u.jsx)(B.A,{className:C.copyButtonIcon}),(0,u.jsx)(j.A,{className:C.copyButtonSuccessIcon})]})})}const y={codeLine:"codeLine_iPqp",codeLineNumber:"codeLineNumber_F4P7",codeLineContent:"codeLineContent_pOih"};function L(e){var n,o=e.line,t=e.classNames,c=e.showLineNumbers,a=e.getLineProps,l=e.getTokenProps;1===o.length&&"\n"===(null==(n=o[0])?void 0:n.content)&&(o[0].content="");var r=a({line:o,className:(0,s.cn)(t,c&&y.codeLine)}),i=o.map((function(e,n){return(0,u.jsx)("span",Object.assign({},l({token:e,key:n})),n)}));return(0,u.jsxs)("span",Object.assign({},r,{children:[c?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{className:y.codeLineNumber}),(0,u.jsx)("span",{className:y.codeLineContent,children:i})]}):i,(0,u.jsx)("br",{})]}))}var w=o(89475);const A={wordWrapButtonIcon:"wordWrapButtonIcon_iowe",wordWrapButtonEnabled:"wordWrapButtonEnabled_gY8A"};function P(e){var n=e.className,o=e.onClick,t=e.isEnabled,c=(0,N.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,u.jsx)("button",{type:"button",onClick:o,className:(0,s.cn)("clean-btn",n,t&&A.wordWrapButtonEnabled),"aria-label":c,title:c,children:(0,u.jsx)(w.A,{className:A.wordWrapButtonIcon,"aria-hidden":"true"})})}var T=o(72355);function I(e){var n,o=e.children,t=e.className,c=void 0===t?"":t,l=e.metastring,i=e.title,d=e.showLineNumbers,m=e.language,h=(0,f.p)().prism,N=h.defaultLanguage,B=h.magicComments,j=function(e){return null==e?void 0:e.toLowerCase()}(null!=(n=null!=m?m:(0,r.Op)(c))?n:N),v=(0,a.A)(),C=(0,x.f)(),y=(0,r.wt)(l)||i,w=function(e){var n,o,t=(0,b.A)(/icon=(["'])(.*?)\1/,{quote:1,icon:2}),c=null!=(n=null==e||null==(o=e.match(t))||null==(o=o.groups)?void 0:o.icon)?n:"";return c?(0,u.jsx)(k.In,{icon:c,width:"16"}):null}(l),A=(0,r.Li)(o,{metastring:l,language:j,magicComments:B}),I=A.lineClassNames,W=A.code,E=null!=d?d:(0,r._u)(l);return(0,u.jsxs)(p,{as:"div",className:(0,s.cn)(c,j&&!c.includes("language-"+j)&&"language-"+j),children:[y&&(0,u.jsxs)("div",{className:g.codeBlockTitle,children:[w,y,(0,u.jsx)("span",{style:{flex:1,textAlign:"right"},children:j})]}),(0,u.jsxs)("div",{className:g.codeBlockContent,children:[(0,u.jsx)(T.f4,{theme:v,code:W,language:null!=j?j:"text",children:function(e){var n=e.className,o=e.style,t=e.tokens,c=e.getLineProps,a=e.getTokenProps;return(0,u.jsx)("pre",{ref:C.codeBlockRef,className:(0,s.cn)(n,g.codeBlock,"thin-scrollbar"),style:o,children:(0,u.jsx)("code",{className:(0,s.cn)(g.codeBlockLines,E&&g.codeBlockLinesWithNumbering),children:t.map((function(e,n){return(0,u.jsx)(L,{line:e,getLineProps:c,getTokenProps:a,classNames:I[n],showLineNumbers:E},n)}))})})}}),(0,u.jsxs)("div",{className:g.buttonGroup,children:[(C.isEnabled||C.isCodeScrollable)&&(0,u.jsx)(P,{className:g.codeButton,onClick:function(){return C.toggle()},isEnabled:C.isEnabled}),(0,u.jsx)(_,{className:g.codeButton,code:W})]})]})]})}var W=["children"];function E(e){var n=e.children,o=(0,t.A)(e,W),s=(0,c.A)(),a=function(e){return i.Children.toArray(e).some((function(e){return(0,i.isValidElement)(e)}))?e:Array.isArray(e)?e.join(""):e}(n),l="string"==typeof a?I:h;return(0,u.jsx)(l,Object.assign({},o,{children:a}),String(s))}},61972:(e,n,o)=>{o.r(n),o.d(n,{default:()=>u});var t=o(12298),c=o(56837),s=o(25974),a=o(10716),l=o(31905),r=o(4962);const i={mdxPageWrapper:"mdxPageWrapper_yV3F"};var d=o(25105);function u(e){var n=e.content,o=n.metadata,u=o.title,m=o.description,p=o.frontMatter,g=p.wrapperClassName,h=p.hide_table_of_contents;return(0,d.jsxs)(t.e3,{className:(0,s.cn)(null!=g?g:c.G.wrapper.mdxPages,c.G.page.mdxPage),children:[(0,d.jsx)(t.be,{title:u,description:m}),(0,d.jsx)(a.A,{children:(0,d.jsx)("main",{className:"container--fluid margin-vert--lg container",children:(0,d.jsxs)("div",{className:(0,s.cn)("row",i.mdxPageWrapper),children:[(0,d.jsx)("div",{className:(0,s.cn)("col prose dark:prose-invert","col--8"),children:(0,d.jsx)(l.A,{children:(0,d.jsx)(n,{})})}),!h&&n.toc&&(0,d.jsx)("div",{className:"col col--2",children:(0,d.jsx)(r.A,{toc:n.toc,minHeadingLevel:p.toc_min_heading_level,maxHeadingLevel:p.toc_max_heading_level})})]})})})]})}},4962:(e,n,o)=>{o.d(n,{A:()=>b});var t=o(35045),c=o(42020),s=o(1424),a=o(58101),l=function(){var e=(0,a.useState)(0),n=e[0],o=e[1],t=(0,a.useRef)(null),l=(0,c.L)({container:t}).scrollYProgress;return(0,a.useLayoutEffect)((function(){t.current=document.getElementById("__blog-post-container")}),[]),(0,s.L)(l,"change",(function(e){o(e)})),{readPercent:(0,a.useMemo)((function(){return Math.round(100*n)}),[n])}},r=o(25974),i=o(66755),d=o(9664);const u={tableOfContents:"tableOfContents_jeP5",docItemContainer:"docItemContainer_hgFs",hr:"hr_UhE0",percent:"percent_H6RK"};var m=o(25105),p=["className"],g="table-of-contents__link toc-highlight",h="table-of-contents__link--active";function b(e){var n=e.className,o=(0,t.A)(e,p),c=l().readPercent;return(0,m.jsxs)(d.P.div,{className:(0,r.cn)(u.tableOfContents,"thin-scrollbar",n),initial:{opacity:1e-4,x:100}
1,animate:{opacity:1,x:0},transition:{type:"spring",stiffness:400,damping:20,duration:3},children:[(0,m.jsx)(i.A,Object.assign({},o,{className:"table-of-contents pl-0",linkClassName:g,linkActiveClassName:h})),(0,m.jsx)("hr",{className:u.hr}),(0,m.jsxs)("span",{className:u.percent,children:[c+"%"," "]})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.