1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8726,37027,39273,89163],{37027:function(e,t,r){r.r(t);var a=r(85893),n=r(67294),l=r(93096),o=r.n(l),i=r(89163),s=r(39273),c=r(39323);let d=e=>{let{toc:t}=e,{locale:r}=(0,c.O)();(0,n.useEffect)(()=>(window.addEventListener("scroll",u),u(),()=>{window.removeEventListener("scroll",u)}),[]);let l=(0,n.useRef)(null),d=[],[h,m]=(0,n.useState)(null),u=(0,n.useCallback)(o()(()=>{var e;let t=document.getElementsByClassName("notion-h"),r=null,a=h;for(let e=0;e<t.length;++e){let n=t[e];if(!n||!(n instanceof Element))continue;a||(a=n.getAttribute("data-id"));let l=n.getBoundingClientRect(),o=r?l.top-r.bottom:0,i=Math.max(150,o/4);if(l.top-i<0){a=n.getAttribute("data-id"),r=l;continue}break}m(a);let n=d.indexOf(a)||0;null==l||null===(e=l.current)||void 0===e||e.scrollTo({top:28*n,behavior:"smooth"})},200));return!t||t.length<1?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{className:"px-3 py-1",children:[(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("i",{className:"mr-1 fas fa-stream"}),r.COMMON.TABLE_OF_CONTENTS]}),(0,a.jsx)("div",{className:"w-full py-3",children:(0,a.jsx)(s.default,{})}),(0,a.jsx)("div",{className:"overflow-y-auto max-h-36 lg:max-h-96 overscroll-none scroll-hidden",ref:l,children:(0,a.jsx)("nav",{className:"h-full text-black",children:t.map(e=>{let t=(0,i.Gw)(e.id);return d.push(t),(0,a.jsx)("a",{href:"#".concat(t),className:"notion-table-of-contents-item duration-300 transform font-light dark:text-gray-200\n notion-table-of-contents-item-indent-level-".concat(e.indentLevel," "),children:(0,a.jsx)("span",{style:{display:"inline-block",marginLeft:16*e.indentLevel},className:"".concat(h===t&&" font-bold text-indigo-600"),children:e.text})},t)})})})]})};t.default=d},39273:function(e,t,r){r.r(t);var a=r(85893),n=r(67294),l=r(85298);let o=e=>
1{let{targetRef:t,showPercent:r=!0}=e,o=(null==t?void 0:t.current)||t,[i,s]=(0,n.useState)(0),c=()=>{let e=o||l.isBrowser&&document.getElementById("article-wrapper");if(e){let t=e.clientHeight,r=window.pageYOffset,a=t-window.outerHeight,n=parseFloat((r/a*100).toFixed(0));n>100&&(n=100),n<0&&(n=0),s(n)}};return(0,n.useEffect)(()=>(document.addEventListener("scroll",c),()=>document.removeEventListener("scroll",c)),[]),(0,a.jsx)("div",{className:"h-4 w-full shadow-2xl bg-gray-700 rounded-sm",children:(0,a.jsx)("div",{className:"h-4 bg-indigo-600 duration-200 rounded-sm",style:{width:"".concat(i,"%")},children:r&&(0,a.jsxs)("div",{className:"text-right text-white text-xs",children:[i,"%"]})})})};t.default=o},8726:function(e,t,r){r.r(t);var a=r(85893),n=r(37027),l=r(67294);let o=e=>{let{post:t,cRef:r}=e;(0,l.useImperativeHandle)(r,()=>({handleSwitchVisible:()=>s()}));let[o,i]=(0,l.useState)(!1),s=()=>{i(!o)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed top-0 right-0 z-40 ",children:(0,a.jsx)("div",{className:(o?"animate__slideInRight ":" -mr-72 animate__slideOutRight")+" shadow-card animate__animated animate__faster w-60 duration-200 fixed right-12 bottom-12 rounded py-2 bg-white dark:bg-gray-900",children:t&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"dark:text-gray-400 text-gray-600",children:(0,a.jsx)(n.default,{toc:t.toc})})})})}),(0,a.jsx)("div",{id:"right-drawer-background",className:(o?"block":"hidden")+" fixed top-0 left-0 z-30 w-full h-full",onClick:s})]})};t.default=o},89163:function(e,t,r){r.d(t,{Ho:function(){return i},FB:function(){return o},Gw:function(){return c}}),r(13900);var a=r(55055);let n=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),l=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw Error(`Invalid URL: ${e}`);let{type:a,data:n,hash:l}=r.groups,o=a.split(";");l=t?"":l;let i=!1;"base64"===o[o.length-1]&&(o.pop(),i=!0);let s=(o.shift()||"").toLowerCase(),c=o.map(e=>{let[t,r=""]=e.split("=").map(e=>e.trim());return"charset"===t&&"us-ascii"===(r=r.toLowerCase())?"":`${t}${r?`=${r}`:""}`}).filter(Boolean),d=[...c];return i&&d.push("base64"),(d.length>0||s&&"text/plain"!==s)&&d.unshift(s),`data:${d.join(";")},${i?n.trim():n}${l?`#${l}`:""}`};Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var o=e=>{var t;return e?Array.isArray(e)?null!=(t=null==e?void 0:e.reduce((e,t)=>e+("â"!==t[0]&&"â£"!==t[0]?t[0]:""),""))?t:"":e:""};function i(e,t){var r,a;if(null!=(r=e.properties)&&r.title)return o(e.properties.title);if("collection_view_page"===e.type||"collection_view"===e.type){let r=function(e,t){var r,a,n,l,o,i,s;let c=e.collection_id||(null==(a=null==(r=e.format)?void 0:r.collection_pointer)?void 0:a.id);if(c)return c;let d=null==(n=null==e?void 0:e.view_ids)?void 0:n[0];if(d){let e=null==(o=null==(l=t.collection_view)?void 0:l[d])?void 0:o.value;if(e)return null==(s=null==(i=e.format)?void 0:i.collection_pointer)?void 0:s.id}return null}(e,t);if(r){let e=null==(a=t.collection[r])?void 0:a.value;if(e)return o(e.name)}}return""}var s=e=>{if(e&&Array.isArray(e)){if("d"===e[0])return e[1];for(let t of e){let e=s(t);if(e)return e}}return null},c=e=>e.replace(/-/g,""),d=(0,a.ZP)(e=>{if(!e)return"";try{if(e.startsWith("https://www.notion.so/image/")){let t=new URL(e),r=decodeURIComponent(t.pathname.substr(7)),a=d(r);t.pathname=`/image/${encodeURIComponent(a)}`,e=t.toString()}return function(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return l(e,t);if(/^view-source:/i.test(e))throw Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//"),a=!r&&/^\.*\//.test(e);a||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let o=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===o.protocol&&(o.protocol="http:"),t.forceHttps&&"http:"===o.protocol&&(o.protocol="https:"),t.stripAuthentication&&(o.username="",o.password=""),t.stripHash?o.hash="":t.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,"")),o.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,r="";for(;;){let a=e.exec(o.pathname);if(!a)break;let n=a[0],l=a.index,i=o.pathname.slice(t,l);r+=i.replace(/\/{2,}/g,"/")+n,t=l+n.length}let a=o.pathname.slice(t,o.pathname.length);r+=a.replace(/\/{2,}/g,"/"),o.pathname=r}
1if(o.pathname)try{o.pathname=decodeURI(o.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split("/"),r=e[e.length-1];n(r,t.removeDirectoryIndex)&&(e=e.slice(0,-1),o.pathname=e.slice(1).join("/")+"/")}if(o.hostname&&(o.hostname=o.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let e of[...o.searchParams.keys()])n(e,t.removeQueryParameters)&&o.searchParams.delete(e);if(Array.isArray(t.keepQueryParameters)||!0!==t.removeQueryParameters||(o.search=""),Array.isArray(t.keepQueryParameters)&&t.keepQueryParameters.length>0)for(let e of[...o.searchParams.keys()])n(e,t.keepQueryParameters)||o.searchParams.delete(e);if(t.sortQueryParameters){o.searchParams.sort();try{o.search=decodeURIComponent(o.search)}catch{}}t.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,"")),t.removeExplicitPort&&o.port&&(o.port="");let i=e;return e=o.toString(),t.removeSingleSlash||"/"!==o.pathname||i.endsWith("/")||""!==o.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===o.pathname)&&""===o.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}(e,{stripProtocol:!0,stripWWW:!0,stripHash:!0,stripTextFragment:!0,removeQueryParameters:!0})}catch(e){return""}})}}]);
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.