awesome-interview/assets/js/bfa6c7fa.10680ff6.js

1 line
16 KiB
JavaScript

"use strict";(self.webpackChunkjjbook=self.webpackChunkjjbook||[]).push([[7198],{6159:function(e,t,n){n.d(t,{N:function(){return m},Z:function(){return p}});var a=n(3366),r=n(7462),i=n(7294),l=n(6010),o=n(4973),s=n(1773),c="anchorWithStickyNavbar_31ik",u="anchorWithHideOnScrollNavbar_3R7-",d=["id"],m=function(e){var t=Object.assign({},e);return i.createElement("header",null,i.createElement("h1",(0,r.Z)({},t,{id:void 0}),t.children))},p=function(e){return"h1"===e?m:(t=e,function(e){var n,r=e.id,m=(0,a.Z)(e,d),p=(0,s.LU)().navbar.hideOnScroll;return r?i.createElement(t,m,i.createElement("a",{"aria-hidden":"true",tabIndex:-1,className:(0,l.Z)("anchor","anchor__"+t,(n={},n[u]=p,n[c]=!p,n)),id:r}),m.children,i.createElement("a",{className:"hash-link",href:"#"+r,title:(0,o.I)({id:"theme.common.headingLinkTitle",message:"Direct link to heading",description:"Title for link to heading"})},"#")):i.createElement(t,m)});var t}},571:function(e,t,n){n.d(t,{r:function(){return p},Z:function(){return f}});var a=n(7294),r=n(6010),i=n(1773);function l(e){var t=e.getBoundingClientRect();return t.top===t.bottom?l(e.parentNode):t}function o(e){var t,n=e.anchorTopOffset,a=Array.from(document.querySelectorAll(".anchor.anchor__h2, .anchor.anchor__h3")),r=a.find((function(e){return l(e).top>=n}));return r?function(e){return e.top>0&&e.bottom<window.innerHeight/2}(l(r))?r:null!=(t=a[a.indexOf(r)-1])?t:null:a[a.length-1]}function s(){var e=(0,a.useRef)(0),t=(0,i.LU)().navbar.hideOnScroll;return(0,a.useEffect)((function(){e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}var c=function(e){var t=(0,a.useRef)(void 0),n=s();(0,a.useEffect)((function(){var a=e.linkClassName,r=e.linkActiveClassName;function i(){var e=function(e){return Array.from(document.getElementsByClassName(e))}(a),i=o({anchorTopOffset:n.current}),l=e.find((function(e){return i&&i.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)}));e.forEach((function(e){!function(e,n){if(n){var a;t.current&&t.current!==e&&(null==(a=t.current)||a.classList.remove(r)),e.classList.add(r),t.current=e}else e.classList.remove(r)}(e,e===l)}))}return document.addEventListener("scroll",i),document.addEventListener("resize",i),i(),function(){document.removeEventListener("scroll",i),document.removeEventListener("resize",i)}}),[e,n])},u="tableOfContents_35-E",d="table-of-contents__link",m={linkClassName:d,linkActiveClassName:"table-of-contents__link--active"};function p(e){var t=e.toc,n=e.isChild;return t.length?a.createElement("ul",{className:n?"":"table-of-contents table-of-contents__left-border"},t.map((function(e){return a.createElement("li",{key:e.id},a.createElement("a",{href:"#"+e.id,className:d,dangerouslySetInnerHTML:{__html:e.value}}),a.createElement(p,{isChild:!0,toc:e.children}))}))):null}var f=function(e){var t=e.toc;return c(m),a.createElement("div",{className:(0,r.Z)(u,"thin-scrollbar")},a.createElement(p,{toc:t}))}},7211:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(7294),r=n(6010),i=n(6742),l="tag_1Okp",o="tagRegular_3MiF",s="tagWithCount_1HU1";var c=function(e){var t,n=e.permalink,c=e.name,u=e.count;return a.createElement(i.Z,{href:n,className:(0,r.Z)(l,(t={},t[o]=!u,t[s]=u,t))},c,u&&a.createElement("span",null,u))}},8499:function(e,t,n){n.r(t),n.d(t,{default:function(){return Y}});var a=n(7294),r=n(6010),i=n(907),l=n(3783),o=n(6742),s=n(4973);var c=function(e){var t=e.metadata;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},a.createElement("div",{className:"pagination-nav__item"},t.previous&&a.createElement(o.Z,{className:"pagination-nav__link",to:t.previous.permalink},a.createElement("div",{className:"pagination-nav__sublabel"},a.createElement(s.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")),a.createElement("div",{className:"pagination-nav__label"},"\xab ",t.previous.title))),a.createElement("div",{className:"pagination-nav__item pagination-nav__item--next"},t.next&&a.createElement(o.Z,{className:"pagination-nav__link",to:t.next.permalink},a.createElement("div",{className:"pagination-nav__sublabel"},a.createElement(s.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next")),a.createElement("div",{className:"pagination-nav__label"},t.next.title," \xbb"))))},u=n(2263),d=n(1773);var m={unreleased:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(s.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(s.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function p(e){var t=m[e.versionMetadata.banner];return a.createElement(t,e)}function f(e){var t=e.versionLabel,n=e.to,r=e.onClick;return a.createElement(s.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:a.createElement("b",null,a.createElement(o.Z,{to:n,onClick:r},a.createElement(s.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 v(e){var t,n=e.versionMetadata,r=(0,u.Z)().siteConfig.title,l=(0,i.gA)({failfast:!0}).pluginId,o=(0,d.J)(l).savePreferredVersionName,s=(0,i.Jo)(l),c=s.latestDocSuggestion,m=s.latestVersionSuggestion,v=null!=c?c:(t=m).docs.find((function(e){return e.id===t.mainDocId}));return a.createElement("div",{className:"alert alert--warning margin-bottom--md",role:"alert"},a.createElement("div",null,a.createElement(p,{siteTitle:r,versionMetadata:n})),a.createElement("div",{className:"margin-top--md"},a.createElement(f,{versionLabel:m.label,to:v.path,onClick:function(){return o(m.name)}})))}var h=function(e){var t=e.versionMetadata;return"none"===t.banner?a.createElement(a.Fragment,null):a.createElement(v,{versionMetadata:t})},b=n(1217);function g(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt;return a.createElement(s.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:a.createElement("b",null,a.createElement("time",{dateTime:new Date(1e3*t).toISOString()},n))}}," on {date}")}function E(e){var t=e.lastUpdatedBy;return a.createElement(s.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:a.createElement("b",null,t)}}," by {user}")}function y(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt,r=e.lastUpdatedBy;return a.createElement(a.Fragment,null,a.createElement(s.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?a.createElement(g,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:r?a.createElement(E,{lastUpdatedBy:r}):""}},"Last updated{atDate}{byUser}"),!1)}var _=n(7462),N=n(3366),w="iconEdit_2_ui",k=["className"],O=function(e){var t=e.className,n=(0,N.Z)(e,k);return a.createElement("svg",(0,_.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,r.Z)(w,t),"aria-hidden":"true"},n),a.createElement("g",null,a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))};function T(e){var t=e.editUrl;return a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener"},a.createElement(O,null),a.createElement(s.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}var L=n(7211),Z="tags_2ga9",U="tag_11ep";function C(e){var t=e.tags;return a.createElement(a.Fragment,null,a.createElement("b",null,a.createElement(s.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),a.createElement("ul",{className:(0,r.Z)(Z,"padding--none","margin-left--sm")},t.map((function(e){var t=e.label,n=e.permalink;return a.createElement("li",{key:n,className:U},a.createElement(L.Z,{name:t,permalink:n}))}))))}var A="lastUpdated_13-_";function j(e){return a.createElement("div",{className:"row margin-bottom--sm"},a.createElement("div",{className:"col"},a.createElement(C,e)))}function P(e){var t=e.editUrl,n=e.lastUpdatedAt,i=e.lastUpdatedBy,l=e.formattedLastUpdatedAt;return a.createElement("div",{className:"row"},a.createElement("div",{className:"col"},t&&a.createElement(T,{editUrl:t})),a.createElement("div",{className:(0,r.Z)("col",A)},(n||i)&&a.createElement(y,{lastUpdatedAt:n,formattedLastUpdatedAt:l,lastUpdatedBy:i})))}function S(e){var t=e.content.metadata,n=t.editUrl,r=t.lastUpdatedAt,i=t.formattedLastUpdatedAt,l=t.lastUpdatedBy,o=t.tags,s=o.length>0,c=!!(n||r||l);return s||c?a.createElement("footer",{className:"docusaurus-mt-lg"},s&&a.createElement(j,{tags:o}),c&&a.createElement(P,{editUrl:n,lastUpdatedAt:r,lastUpdatedBy:l,formattedLastUpdatedAt:i})):a.createElement(a.Fragment,null)}var I=n(571),M="tocCollapsible_1PrD",R="tocCollapsibleButton_2O1e",x="tocCollapsibleContent_2Ydz",V="tocCollapsibleExpanded_3GYr";function B(e){var t,n=e.toc,i=e.className,l=(0,d.uR)({initialState:!0}),o=l.collapsed,c=l.toggleCollapsed;return a.createElement("div",{className:(0,r.Z)(M,(t={},t[V]=!o,t),i)},a.createElement("button",{type:"button",className:(0,r.Z)("clean-btn",R),onClick:c},a.createElement(s.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component"},"On this page")),a.createElement(d.zF,{lazy:!0,className:x,collapsed:o},a.createElement(I.r,{toc:n})))}var D=n(6159),F="docItemContainer_33ec",z="docItemCol_3FnS",W="tocMobile_3Hoh";function q(e){var t,n=e.content,o=e.versionMetadata,s=n.metadata,u=n.frontMatter,d=u.image,m=u.keywords,p=u.hide_title,f=u.hide_table_of_contents,v=s.description,g=s.title,E=(0,i.gA)({failfast:!0}).pluginId,y=(0,i.gB)(E).length>1,_=!p&&void 0===n.contentTitle,N=(0,l.Z)(),w=!f&&n.toc&&n.toc.length>0,k=w&&("desktop"===N||"ssr"===N);return a.createElement(a.Fragment,null,a.createElement(b.Z,{title:g,description:v,keywords:m,image:d}),a.createElement("div",{className:"row"},a.createElement("div",{className:(0,r.Z)("col",(t={},t[z]=!f,t))},a.createElement(h,{versionMetadata:o}),a.createElement("div",{className:F},a.createElement("article",null,y&&a.createElement("span",{className:"badge badge--secondary"},"Version: ",o.label),w&&a.createElement(B,{toc:n.toc,className:W}),a.createElement("div",{className:"markdown"},_&&a.createElement(D.N,null,g),a.createElement(n,null)),a.createElement(S,e)),a.createElement(c,{metadata:s}))),k&&a.createElement("div",{className:"col col--3"},a.createElement(I.Z,{toc:n.toc}))))}var H=n(9850),J=n(9782);function Y(e){var t,n=null!=(t=J.Z.themeConfig.utterances)?t:{},r=n.repo,i=n["issue-term"];return a.createElement(a.Fragment,null,a.createElement(q,e),a.createElement("div",{className:"row"},a.createElement("div",{className:"col"},a.createElement(H.ZP,{repo:r,type:i})),a.createElement("div",{className:"col col--3"})))}},5826:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.identifierTypes=void 0;var a,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(7294)),i=(a=n(5697))&&a.__esModule?a:{default:a};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=["pathname","url","title","og:title","issue-number","issue-term"],m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,c(t).call(this,e))).myRef=r.default.createRef(),n.state={pending:!0},n}var n,a,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),n=t,(a=[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.repo,a=t.type,r=t.specificTerm,i=t.issueNumber,l=function(e){if(!(d.indexOf(e)<0))return"issue-number"===e?"issue-number":"issue-term";console.warn("Wrong type: "+e)}(a),o=function(e,t,n){if(!(d.indexOf(e)<0))return"pathname"===e?"pathname":"url"===e?"url":"title"===e?"title":"og:title"===e?"og:title":"issue-term"===e?t:"issue-number"===e?n:void 0;console.warn("Wrong type: "+e)}(a,r,i);if("issue-term"!==a||o)if("issue-number"===a&&(isNaN(o)||o<1))console.warn("When type is '".concat(a,"', valid 'issueNumber' prop must be provided"));else{var s=document.createElement("script");s.src="https://utteranc.es/client.js",s.async=!0,s.setAttribute("repo",n),s.setAttribute("crossorigin","anonymous"),s.setAttribute(l,o),s.onload=function(){return e.setState({pending:!1})},this.myRef.current.appendChild(s)}else console.warn("When type is '".concat(a,"', 'specificTerm' prop must be provided"))}},{key:"render",value:function(){return r.default.createElement("div",{className:"react-utterences",ref:this.myRef},this.props.debug&&r.default.createElement("pre",{style:{background:"#cccccc",padding:10}},"\nthis.props: ".concat(JSON.stringify(this.props,null,2),'\nlocation.pathname: "').concat(window.location.pathname,'"\nlocation.href: "').concat(window.location.href,'"\n ').trim()),this.props.debug&&r.default.createElement("div",null,"\ud83d\udc47\ud83d\udc47If the settings are valid, the comment widget appear below\ud83d\udc47\ud83d\udc47"),this.state.pending&&r.default.createElement("div",null,"Loading script..."))}}])&&o(n.prototype,a),i&&o(n,i),t}(r.Component);t.identifierTypes={pathname:{attrValue:"",summary:"Issue title contains page pathname"},url:{attrValue:"url",summary:"Issue title contains page URL"},title:{attrValue:"title",summary:"Issue title contains page title"},"og:title":{attrValue:"og:title",summary:"Issue title contains page og:title"},"issue-number":{attrValue:-1,summary:"Specific issue number"},"issue-term":{attrValue:"",summary:"Issue title contains specific term"}},m.propTypes={type:i.default.string.isRequired,repo:i.default.string.isRequired,specificTerm:i.default.string,issueNumber:i.default.number,hashKey:i.default.string,debug:i.default.bool};var p=m;t.default=p},9850:function(e,t,n){Object.defineProperty(t,"ZP",{enumerable:!0,get:function(){return a.default}});var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(5826))}}]);