forked from bombastictranz/builder.io
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[22],{"/9aa":function(t,e,n){var r=n("NykK"),o=n("ExA7");t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},AP2z:function(t,e,n){var r=n("nmnc"),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(a){}var o=c.call(t);return r&&(e?t[u]=n:delete t[u]),o}},DzJC:function(t,e,n){var r=n("sEfC"),o=n("GoyQ");t.exports=function(t,e,n){var i=!0,c=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,c="trailing"in n?!!n.trailing:c),r(t,e,{leading:i,maxWait:e,trailing:c})}},ExA7:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},GoyQ:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},KfNM:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},Kz5y:function(t,e,n){var r=n("WFqU"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},NykK:function(t,e,n){var r=n("nmnc"),o=n("AP2z"),i=n("KfNM"),c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},QIyF:function(t,e,n){var r=n("Kz5y");t.exports=function(){return r.Date.now()}},TO8r:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},WFqU:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("ntbh"))},jXQH:function(t,e,n){var r=n("TO8r"),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},nmnc:function(t,e,n){var r=n("Kz5y").Symbol;t.exports=r},sEfC:function(t,e,n){var r=n("GoyQ"),o=n("QIyF"),i=n("tLB3"),c=Math.max,u=Math.min;t.exports=function(t,e,n){var a,f,l,s,p,v,d=0,b=!1,g=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=a,r=f;return a=f=void 0,d=e,s=t.apply(r,n)}function O(t){return d=t,p=setTimeout(h,e),b?m(t):s}function j(t){var n=t-v;return void 0===v||n>=e||n<0||g&&t-d>=l}function h(){var t=o();if(j(t))return x(t);p=setTimeout(h,function(t){var n=e-(t-v);return g?u(n,l-(t-d)):n}(t))}function x(t){return p=void 0,y&&a?m(t):(a=f=void 0,s)}function w(){var t=o(),n=j(t);if(a=arguments,f=this,v=t,n){if(void 0===p)return O(v);if(g)return clearTimeout(p),p=setTimeout(h,e),m(v)}return void 0===p&&(p=setTimeout(h,e)),s}return e=i(e)||0,r(n)&&(b=!!n.leading,l=(g="maxWait"in n)?c(i(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,a=v=f=p=void 0},w.flush=function(){return void 0===p?s:x(o())},w}},soLX:function(t,e,n){"use strict";n.r(e);var r=n("rePB"),o=n("AeFk"),i=n("FdF9"),c=n("20a2"),u=n("DzJC"),a=n.n(u);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t){var e=Object(i.useState)(null),n=e[0],r=e[1];var o=function(){var e=function(){var e=t.map((function(t){var e=document.getElementById(t.slug),n=null===e||void 0===e?void 0:e.getBoundingClientRect();return{el:e,rect:n,heading:t}})).filter((function(t){var e=t.rect;return e&&e.top<250})).reduce((function(t,e){return t?e.rect.top>t.rect.top?e:t:e}),null);return null===e||void 0===e?void 0:e.heading.slug}()||null;r(e)};return Object(i.useEffect)((function(){o();var t=a()(o,100);return window.addEventListener("scroll",t,{passive:!0}),function(){return window.removeEventListener("scroll",t)}}),t.map((function(t){return t.slug}))),n}var p={name:"10osaqv",styles:"font-weight:bold;padding-bottom:5px"},v={name:"ffhm6p",styles:"list-style-type:none"};e.default=function(t){Object(c.useRouter)();var e=function(t,e){var n=Object(c.useRouter)().asPath,r=Object(i.useState)([]),o=r[0],u=r[1];return Object(i.useEffect)((function(){var n=".".concat(t," h2");e&&(n+=", h3");var r=Array.from(document.querySelectorAll(n)).filter((function(t){var e=".toc-ignore";return!t.matches(e)&&!t.closest(e)})).map((function(t){var e=t.id?t:t.closest("[id]:not([id=__next]")||t,n=t.textContent||"",r=(null===e||void 0===e?void 0:e.id)||n.toString().toLowerCase().replace(/'/g,"").replace(/\W+/g,"-").replace(/^-+/,"").replace(/-+$/,"");return e&&!e.id&&e.setAttribute("id",r),{title:n,slug:r,tag:t.tagName.toLowerCase()}}));u(r)}),[n]),o}(t.containerName,!t.onlyH2),n=s(e),u={color:"#7F7F7F",padding:"0.45em 0",lineHeight:"1.2em"};return Object(o.c)("div",{css:Object(o.b)(Object(r.a)({marginTop:"2em",marginBottom:"2em",textAlign:"left",fontSize:15},t.verticalBreakpoint,{display:"none"}),"","")},e.length>0&&Object(o.c)("h4",{css:p},"ON THIS PAGE"),Object(o.c)("ul",{css:v},e.map((function(t,e){return Object(o.c)("li",{key:e,className:"toc-link",css:Object(o.b)(l({},u),"","")},Object(o.c)("a",{onClick:function(e){location.hash=t.slug},css:Object(o.b)(l({paddingLeft:"h3"===t.tag?"1em":"0",display:"block",lineHeight:"1.4em",cursor:"pointer","&:hover":{fontWeight:"bold",color:"#3D3D3D"}},n===t.slug&&{fontWeight:"bold",color:"#3D3D3D"}),"","")},t.title))}))))}},tLB3:function(t,e,n){var r=n("jXQH"),o=n("GoyQ"),i=n("/9aa"),c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||a.test(t)?f(t.slice(2),n?2:8):c.test(t)?NaN:+t}}}]); |