Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/404.html b/404.html index 21266c555..2ae04f5cc 100644 --- a/404.html +++ b/404.html @@ -2,12 +2,12 @@
- -We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
{imageStatus}
\n{imageStatus}
\n["'])(?.*?)\1/,ve=/\{(? [\d,-]+)\}/,Ne={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},Ce={...Ne,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},ke=Object.keys(Ne);function ye(e,t){const n=e.map((e=>{const{start:n,end:s}=Ce[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function Le(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:a,metastring:o}=t;if(o&&ve.test(o)){const e=o.match(ve).groups.range;if(0===a.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=a[0].className,s=ge()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return ye(["js","jsBlock"],t);case"jsx":case"tsx":return ye(["js","jsBlock","jsx"],t);case"html":return ye(["js","jsBlock","html"],t);case"python":case"py":case"bash":return ye(["bash"],t);case"markdown":case"md":return ye(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return ye(["tex"],t);case"lua":case"haskell":case"sql":return ye(["lua"],t);case"wasm":return ye(["wasm"],t);case"vb":case"vba":case"visual-basic":return ye(["vb","rem"],t);case"vbnet":return ye(["vbnet","rem"],t);case"batch":return ye(["rem"],t);case"basic":return ye(["rem","f90"],t);case"fsharp":return ye(["js","ml"],t);case"ocaml":case"sml":return ye(["ml"],t);case"fortran":return ye(["f90"],t);case"cobol":return ye(["cobol"],t);default:return ye(ke,t)}}(s,a),l=n.split("\n"),c=Object.fromEntries(a.map((e=>[e.className,{start:0,range:""}]))),r=Object.fromEntries(a.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),d=Object.fromEntries(a.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),u=Object.fromEntries(a.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let h=0;h void 0!==e));r[t]?c[r[t]].range+=`${h},`:d[t]?c[d[t]].start=h:u[t]&&(c[u[t]].range+=`${c[u[t]].start}-${h-1},`),l.splice(h,1)}n=l.join("\n");const m={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;ge()(n).forEach((e=>{m[e]??=[],m[e].push(t)}))})),{lineClassNames:m,code:n}}const _e={codeBlockContainer:"codeBlockContainer_MXaV"};function Be(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,a]=e;const o=t[s];o&&"string"==typeof a&&(n[o]=a)})),n}(xe());return(0,i.jsx)(t,{...n,style:s,className:(0,u.Z)(n.className,_e.codeBlockContainer,v.k.common.codeBlock)})}const we={codeBlockContent:"codeBlockContent_JQoS",codeBlockTitle:"codeBlockTitle_MFyW",codeBlock:"codeBlock_Zd27",codeBlockStandalone:"codeBlockStandalone_bsKm",codeBlockLines:"codeBlockLines_uWfT",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_x3fY",buttonGroup:"buttonGroup_n_O3"};function Ze(e){let{children:t,className:n}=e;return(0,i.jsx)(Be,{as:"pre",tabIndex:0,className:(0,u.Z)(we.codeBlockStandalone,"thin-scrollbar",n),children:(0,i.jsx)("code",{className:we.codeBlockLines,children:t})})}const Te={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Ee(e,t){const[n,a]=(0,s.useState)(),i=(0,s.useCallback)((()=>{a(e.current?.closest("[role=tabpanel][hidden]"))}),[e,a]);(0,s.useEffect)((()=>{i()}),[i]),function(e,t,n){void 0===n&&(n=Te);const a=(0,o.zX)(t),i=(0,o.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(a);return e&&t.observe(e,i),()=>t.disconnect()}),[e,a,i])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),i())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var He=n(851);const Me={codeLine:"codeLine_jdp1",codeLineNumber:"codeLineNumber_R_98",codeLineContent:"codeLineContent_yMSg"};function Ie(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:a,getTokenProps:o}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const l=a({line:t,className:(0,u.Z)(n,s&&Me.codeLine)}),c=t.map(((e,t)=>(0,i.jsx)("span",{...o({token:e,key:t})},t)));return(0,i.jsxs)("span",{...l,children:[s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:Me.codeLineNumber}),(0,i.jsx)("span",{className:Me.codeLineContent,children:c})]}):c,(0,i.jsx)("br",{})]})}function Ae(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function Se(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Ue={copyButtonCopied:"copyButtonCopied_gkYy",copyButtonIcons:"copyButtonIcons_eTNg",copyButtonIcon:"copyButtonIcon_np4i",copyButtonSuccessIcon:"copyButtonSuccessIcon_Sc4_"};function ze(e){let{code:t,className:n}=e;const[a,o]=(0,s.useState)(!1),l=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),a=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const o=document.getSelection(),i=o.rangeCount>0&&o.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let l=!1;try{l=document.execCommand("copy")}catch{}s.remove(),i&&(o.removeAllRanges(),o.addRange(i)),a&&a.focus()}(t),o(!0),l.current=window.setTimeout((()=>{o(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,i.jsx)("button",{type:"button","aria-label":a?(0,h.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,h.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,h.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,u.Z)("clean-btn",n,Ue.copyButton,a&&Ue.copyButtonCopied),onClick:c,children:(0,i.jsxs)("span",{className:Ue.copyButtonIcons,"aria-hidden":"true",children:[(0,i.jsx)(Ae,{className:Ue.copyButtonIcon}),(0,i.jsx)(Se,{className:Ue.copyButtonSuccessIcon})]})})}function Re(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const Ve={wordWrapButtonIcon:"wordWrapButtonIcon_bcT8",wordWrapButtonEnabled:"wordWrapButtonEnabled_bAqi"};function Oe(e){let{className:t,onClick:n,isEnabled:s}=e;const a=(0,h.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,i.jsx)("button",{type:"button",onClick:n,className:(0,u.Z)("clean-btn",t,s&&Ve.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,i.jsx)(Re,{className:Ve.wordWrapButtonIcon,"aria-hidden":"true"})})}function Pe(e){let{children:t,className:n="",metastring:a,title:o,showLineNumbers:l,language:c}=e;const{prism:{defaultLanguage:r,magicComments:d}}=(0,W.L)(),m=function(e){return e?.toLowerCase()}(c??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??r),h=xe(),p=function(){const[e,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)(!1),o=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=o.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[o,e]),l=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=o.current,n=e>t||o.current.querySelector("code").hasAttribute("style");a(n)}),[o]);return Ee(o,l),(0,s.useEffect)((()=>{l()}),[e,l]),(0,s.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:o,isEnabled:e,isCodeScrollable:n,toggle:i}}(),f=function(e){return e?.match(je)?.groups.title??""}(a)||o,{lineClassNames:x,code:b}=Le(t,{metastring:a,language:m,magicComments:d}),g=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(a);return(0,i.jsxs)(Be,{as:"div",className:(0,u.Z)(n,m&&!n.includes(`language-${m}`)&&`language-${m}`),children:[f&&(0,i.jsx)("div",{className:we.codeBlockTitle,children:f}),(0,i.jsxs)("div",{className:we.codeBlockContent,children:[(0,i.jsx)(He.y$,{theme:h,code:b,language:m??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:a,getTokenProps:o}=e;return(0,i.jsx)("pre",{tabIndex:0,ref:p.codeBlockRef,className:(0,u.Z)(t,we.codeBlock,"thin-scrollbar"),style:n,children:(0,i.jsx)("code",{className:(0,u.Z)(we.codeBlockLines,g&&we.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,i.jsx)(Ie,{line:e,getLineProps:a,getTokenProps:o,classNames:x[t],showLineNumbers:g},t)))})})}}),(0,i.jsxs)("div",{className:we.buttonGroup,children:[(p.isEnabled||p.isCodeScrollable)&&(0,i.jsx)(Oe,{className:we.codeButton,onClick:()=>p.toggle(),isEnabled:p.isEnabled}),(0,i.jsx)(ze,{className:we.codeButton,code:b})]})]})]})}function De(e){let{children:t,...n}=e;const a=(0,pe.Z)(),o=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),l="string"==typeof o?Pe:Ze;return(0,i.jsx)(l,{...n,children:o},String(a))}function We(e){return(0,i.jsx)("code",{...e})}var $e=n(7026);const Fe={details:"details_q9H4",isBrowser:"isBrowser_jtuO",collapsibleContent:"collapsibleContent_vj_8"};function qe(e){return!!e&&("SUMMARY"===e.tagName||qe(e.parentElement))}function Ge(e,t){return!!e&&(e===t||Ge(e.parentElement,t))}function Qe(e){let{summary:t,children:n,...a}=e;(0,$e.Z)().collectAnchor(a.id);const o=(0,pe.Z)(),l=(0,s.useRef)(null),{collapsed:c,setCollapsed:r}=(0,D.u)({initialState:!a.open}),[d,m]=(0,s.useState)(a.open),h=s.isValidElement(t)?t:(0,i.jsx)("summary",{children:t??"Details"});return(0,i.jsxs)("details",{...a,ref:l,open:d,"data-collapsed":c,className:(0,u.Z)(Fe.details,o&&Fe.isBrowser,a.className),onMouseDown:e=>{qe(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;qe(t)&&Ge(t,l.current)&&(e.preventDefault(),c?(r(!1),m(!0)):r(!0))},children:[h,(0,i.jsx)(D.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{r(e),m(!e)},children:(0,i.jsx)("div",{className:Fe.collapsibleContent,children:n})})]})}const Ke={details:"details_m1IK"},Ye="alert alert--info";function Je(e){let{...t}=e;return(0,i.jsx)(Qe,{...t,className:(0,u.Z)(Ye,Ke.details,t.className)})}function Xe(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),a=(0,i.jsx)(i.Fragment,{children:t.filter((e=>e!==n))});return(0,i.jsx)(Je,{...e,summary:n,children:a})}function et(e){return(0,i.jsx)(ue.Z,{...e})}const tt={containsTaskList:"containsTaskList_Z_Kk"};function nt(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&tt.containsTaskList)}const st={img:"img_dBzI"};function at(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}const ot={admonition:"admonition_PP2Y",admonitionHeading:"admonitionHeading_p2gG",admonitionIcon:"admonitionIcon_vU0q",admonitionContent:"admonitionContent_ukBW"};function it(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,u.Z)(v.k.common.admonition,v.k.common.admonitionType(t),ot.admonition,n),children:s})}function lt(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:ot.admonitionHeading,children:[(0,i.jsx)("span",{className:ot.admonitionIcon,children:t}),n]})}function ct(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:ot.admonitionContent,children:t}):null}function rt(e){const{type:t,icon:n,title:s,children:a,className:o}=e;return(0,i.jsxs)(it,{type:t,className:o,children:[(0,i.jsx)(lt,{title:s,icon:n}),(0,i.jsx)(ct,{children:a})]})}function dt(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const ut={icon:(0,i.jsx)(dt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function mt(e){return(0,i.jsx)(rt,{...ut,...e,className:(0,u.Z)("alert alert--secondary",e.className),children:e.children})}function ht(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const pt={icon:(0,i.jsx)(ht,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function ft(e){return(0,i.jsx)(rt,{...pt,...e,className:(0,u.Z)("alert alert--success",e.className),children:e.children})}function xt(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const bt={icon:(0,i.jsx)(xt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function gt(e){return(0,i.jsx)(rt,{...bt,...e,className:(0,u.Z)("alert alert--info",e.className),children:e.children})}function jt(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const vt={icon:(0,i.jsx)(jt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function Nt(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const Ct={icon:(0,i.jsx)(Nt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const kt={icon:(0,i.jsx)(jt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const yt={...{note:mt,tip:ft,info:gt,warning:function(e){return(0,i.jsx)(rt,{...vt,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(rt,{...Ct,...e,className:(0,u.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(mt,{title:"secondary",...e}),important:e=>(0,i.jsx)(gt,{title:"important",...e}),success:e=>(0,i.jsx)(ft,{title:"success",...e}),caution:function(e){return(0,i.jsx)(rt,{...kt,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})}}};function Lt(e){const t=at(e),n=(s=t.type,yt[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),yt.info));var s;return(0,i.jsx)(n,{...t})}var _t=n(5242);const Bt={Head:he.Z,details:Xe,Details:Xe,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,i.jsx)(We,{...e}):(0,i.jsx)(De,{...e})},a:function(e){return(0,i.jsx)(p.Z,{...e})},pre:function(e){return(0,i.jsx)(i.Fragment,{children:e.children})},ul:function(e){return(0,i.jsx)("ul",{...e,className:nt(e.className)})},li:function(e){return(0,$e.Z)().collectAnchor(e.id),(0,i.jsx)("li",{...e})},img:function(e){return(0,i.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,st.img))});var t},h1:e=>(0,i.jsx)(et,{as:"h1",...e}),h2:e=>(0,i.jsx)(et,{as:"h2",...e}),h3:e=>(0,i.jsx)(et,{as:"h3",...e}),h4:e=>(0,i.jsx)(et,{as:"h4",...e}),h5:e=>(0,i.jsx)(et,{as:"h5",...e}),h6:e=>(0,i.jsx)(et,{as:"h6",...e}),admonition:Lt,mermaid:_t.Z};function wt(e){let{children:t}=e;return(0,i.jsx)(me.Z,{components:Bt,children:t})}function Zt(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=r();return t.hide_title||void 0!==n?null:e.title}();return(0,i.jsxs)("div",{className:(0,u.Z)(v.k.docs.docMarkdown,"markdown"),children:[n&&(0,i.jsx)("header",{children:(0,i.jsx)(ue.Z,{as:"h1",children:n})}),(0,i.jsx)(wt,{children:t})]})}var Tt=n(7746),Et=n(6239),Ht=n(8509);function Mt(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const It={breadcrumbHomeIcon:"breadcrumbHomeIcon_vytQ"};function At(){const e=(0,Ht.Z)("/");return(0,i.jsx)("li",{className:"breadcrumbs__item",children:(0,i.jsx)(p.Z,{"aria-label":(0,h.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,i.jsx)(Mt,{className:It.breadcrumbHomeIcon})})})}const St={breadcrumbsContainer:"breadcrumbsContainer_Asfe"};function Ut(e){let{children:t,href:n,isLast:s}=e;const a="breadcrumbs__link";return s?(0,i.jsx)("span",{className:a,itemProp:"name",children:t}):n?(0,i.jsx)(p.Z,{className:a,href:n,itemProp:"item",children:(0,i.jsx)("span",{itemProp:"name",children:t})}):(0,i.jsx)("span",{className:a,children:t})}function zt(e){let{children:t,active:n,index:s,addMicrodata:a}=e;return(0,i.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,u.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,i.jsx)("meta",{itemProp:"position",content:String(s+1)})]})}function Rt(){const e=(0,Tt.s1)(),t=(0,Et.Ns)();return e?(0,i.jsx)("nav",{className:(0,u.Z)(v.k.docs.docBreadcrumbs,St.breadcrumbsContainer),"aria-label":(0,h.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,i.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,i.jsx)(At,{}),e.map(((t,n)=>{const s=n===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,i.jsx)(zt,{active:s,index:n,addMicrodata:!!a,children:(0,i.jsx)(Ut,{href:a,isLast:s,children:t.label})},n)}))]})}):null}function Vt(){return(0,i.jsx)(h.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function Ot(){return(0,i.jsx)(h.Z,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function Pt(){return(0,i.jsx)(he.Z,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function Dt(e){let{className:t}=e;return(0,i.jsx)(Lt,{type:"caution",title:(0,i.jsx)(Vt,{}),className:(0,u.Z)(t,v.k.common.unlistedBanner),children:(0,i.jsx)(Ot,{})})}function Wt(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pt,{}),(0,i.jsx)(Dt,{...e})]})}const $t={docItemContainer:"docItemContainer_Q1lr",docItemCol:"docItemCol_gnFM"};function Ft(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=r(),n=(0,m.i)(),s=e.hide_table_of_contents,a=!s&&t.length>0;return{hidden:s,mobile:a?(0,i.jsx)(oe,{}):void 0,desktop:!a||"desktop"!==n&&"ssr"!==n?void 0:(0,i.jsx)(de,{})}}(),{metadata:{unlisted:s}}=r();return(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&$t.docItemCol),children:[s&&(0,i.jsx)(Wt,{}),(0,i.jsx)(B,{}),(0,i.jsxs)("div",{className:$t.docItemContainer,children:[(0,i.jsxs)("article",{children:[(0,i.jsx)(Rt,{}),(0,i.jsx)(w,{}),n.mobile,(0,i.jsx)(Zt,{children:t}),(0,i.jsx)(P,{})]}),(0,i.jsx)(b,{})]})]}),n.desktop&&(0,i.jsx)("div",{className:"col col--3",children:n.desktop})]})}function qt(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,i.jsx)(c,{content:e.content,children:(0,i.jsxs)(a.FG,{className:t,children:[(0,i.jsx)(d,{}),(0,i.jsx)(Ft,{children:(0,i.jsx)(n,{})})]})})}},6241:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,a,o]=t;if(s&&o){s=parseInt(s),o=parseInt(o);const e=s {"use strict";n.d(t,{Z:()=>l,a:()=>i});var s=n(4614);const a={},o=s.createContext(a);function i(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/17896441.d76fb94c.js b/assets/js/17896441.d76fb94c.js deleted file mode 100644 index 45f4c93c6..000000000 --- a/assets/js/17896441.d76fb94c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7918],{8374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Pt});var s=n(4614),a=n(5839),o=n(7487),i=n(5735);const l=s.createContext(null);function c(e){let{children:t,content:n}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,i.jsx)(l.Provider,{value:a,children:t})}function r(){const e=(0,s.useContext)(l);if(null===e)throw new o.i6("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=r();return(0,i.jsx)(a.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(7475),m=n(8514),h=n(5958),p=n(9990);function f(e){const{permalink:t,title:n,subLabel:s,isNext:a}=e;return(0,i.jsxs)(p.Z,{className:(0,u.Z)("pagination-nav__link",a?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,i.jsx)("div",{className:"pagination-nav__label",children:n})]})}function x(e){const{previous:t,next:n}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,h.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,i.jsx)(f,{...t,subLabel:(0,i.jsx)(h.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,i.jsx)(f,{...n,subLabel:(0,i.jsx)(h.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function g(){const{metadata:e}=r();return(0,i.jsx)(x,{previous:e.previous,next:e.next})}var b=n(8314),j=n(3532),v=n(8349),N=n(4528),C=n(9947);const k={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,i.jsx)(h.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:(0,i.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,i.jsx)(h.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:(0,i.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function L(e){const t=k[e.versionMetadata.banner];return(0,i.jsx)(t,{...e})}function y(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,i.jsx)(h.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,i.jsx)("b",{children:(0,i.jsx)(p.Z,{to:n,onClick:s,children:(0,i.jsx)(h.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function B(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:s}}=(0,b.Z)(),{pluginId:a}=(0,j.gA)({failfast:!0}),{savePreferredVersionName:o}=(0,N.J)(a),{latestDocSuggestion:l,latestVersionSuggestion:c}=(0,j.Jo)(a),r=l??(d=c).docs.find((e=>e.id===d.mainDocId));var d;return(0,i.jsxs)("div",{className:(0,u.Z)(t,v.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,i.jsx)("div",{children:(0,i.jsx)(L,{siteTitle:s,versionMetadata:n})}),(0,i.jsx)("div",{className:"margin-top--md",children:(0,i.jsx)(y,{versionLabel:c.label,to:r.path,onClick:()=>o(c.name)})})]})}function _(e){let{className:t}=e;const n=(0,C.E)();return n.banner?(0,i.jsx)(B,{className:t,versionMetadata:n}):null}function w(e){let{className:t}=e;const n=(0,C.E)();return n.badge?(0,i.jsx)("span",{className:(0,u.Z)(t,v.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,i.jsx)(h.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}function Z(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return(0,i.jsx)(h.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,i.jsx)("b",{children:(0,i.jsx)("time",{dateTime:new Date(1e3*t).toISOString(),children:n})})},children:" on {date}"})}function T(e){let{lastUpdatedBy:t}=e;return(0,i.jsx)(h.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,i.jsx)("b",{children:t})},children:" by {user}"})}function E(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:s}=e;return(0,i.jsxs)("span",{className:v.k.common.lastUpdated,children:[(0,i.jsx)(h.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?(0,i.jsx)(Z,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:s?(0,i.jsx)(T,{lastUpdatedBy:s}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const H={iconEdit:"iconEdit_RG8k"};function A(e){let{className:t,...n}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,u.Z)(H.iconEdit,t),"aria-hidden":"true",...n,children:(0,i.jsx)("g",{children:(0,i.jsx)("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 I(e){let{editUrl:t}=e;return(0,i.jsxs)(p.Z,{to:t,className:v.k.common.editThisPage,children:[(0,i.jsx)(A,{}),(0,i.jsx)(h.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}const M={tag:"tag_gMuA",tagRegular:"tagRegular_w1Fc",tagWithCount:"tagWithCount_DpC7"};function U(e){let{permalink:t,label:n,count:s}=e;return(0,i.jsxs)(p.Z,{href:t,className:(0,u.Z)(M.tag,s?M.tagWithCount:M.tagRegular),children:[n,s&&(0,i.jsx)("span",{children:s})]})}const S={tags:"tags_SNqj",tag:"tag_gyd5"};function z(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(h.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,u.Z)(S.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:n}=e;return(0,i.jsx)("li",{className:S.tag,children:(0,i.jsx)(U,{label:t,permalink:n})},n)}))})]})}const R={lastUpdated:"lastUpdated_wL_R"};function V(e){return(0,i.jsx)("div",{className:(0,u.Z)(v.k.docs.docFooterTagsRow,"row margin-bottom--sm"),children:(0,i.jsx)("div",{className:"col",children:(0,i.jsx)(z,{...e})})})}function O(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:a}=e;return(0,i.jsxs)("div",{className:(0,u.Z)(v.k.docs.docFooterEditMetaRow,"row"),children:[(0,i.jsx)("div",{className:"col",children:t&&(0,i.jsx)(I,{editUrl:t})}),(0,i.jsx)("div",{className:(0,u.Z)("col",R.lastUpdated),children:(n||s)&&(0,i.jsx)(E,{lastUpdatedAt:n,formattedLastUpdatedAt:a,lastUpdatedBy:s})})]})}function D(){const{metadata:e}=r(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:a,tags:o}=e,l=o.length>0,c=!!(t||n||a);return l||c?(0,i.jsxs)("footer",{className:(0,u.Z)(v.k.docs.docFooter,"docusaurus-mt-lg"),children:[l&&(0,i.jsx)(V,{tags:o}),c&&(0,i.jsx)(O,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:a,formattedLastUpdatedAt:s})]}):null}var P=n(5179),W=n(4859);function $(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):s.push(a)})),s}function F(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=F({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function q(e){const t=e.getBoundingClientRect();return t.top===t.bottom?q(e.parentNode):t}function G(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>q(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom {e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function J(e){const t=(0,s.useRef)(void 0),n=X();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:i}=e;function l(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),l=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let a=t;a<=n;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:o,maxHeadingLevel:i}),c=G(l,{anchorTopOffset:n.current}),r=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===r)}))}return document.addEventListener("scroll",l),document.addEventListener("resize",l),l(),()=>{document.removeEventListener("scroll",l),document.removeEventListener("resize",l)}}),[e,n])}function K(e){let{toc:t,className:n,linkClassName:s,isChild:a}=e;return t.length?(0,i.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,i.jsxs)("li",{children:[(0,i.jsx)(p.Z,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,i.jsx)(K,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const Y=s.memo(K);function Q(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:a="table-of-contents__link",linkActiveClassName:o,minHeadingLevel:l,maxHeadingLevel:c,...r}=e;const d=(0,W.L)(),u=l??d.tableOfContents.minHeadingLevel,m=c??d.tableOfContents.maxHeadingLevel,h=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>F({toc:$(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:u,maxHeadingLevel:m});return J((0,s.useMemo)((()=>{if(a&&o)return{linkClassName:a,linkActiveClassName:o,minHeadingLevel:u,maxHeadingLevel:m}}),[a,o,u,m])),(0,i.jsx)(Y,{toc:h,className:n,linkClassName:a,...r})}const ee={tocCollapsibleButton:"tocCollapsibleButton_z6iq",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_zyNh"};function te(e){let{collapsed:t,...n}=e;return(0,i.jsx)("button",{type:"button",...n,className:(0,u.Z)("clean-btn",ee.tocCollapsibleButton,!t&&ee.tocCollapsibleButtonExpanded,n.className),children:(0,i.jsx)(h.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const ne={tocCollapsible:"tocCollapsible_g8Hf",tocCollapsibleContent:"tocCollapsibleContent_qPB0",tocCollapsibleExpanded:"tocCollapsibleExpanded_zMVq"};function se(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:o,toggleCollapsed:l}=(0,P.u)({initialState:!0});return(0,i.jsxs)("div",{className:(0,u.Z)(ne.tocCollapsible,!o&&ne.tocCollapsibleExpanded,n),children:[(0,i.jsx)(te,{collapsed:o,onClick:l}),(0,i.jsx)(P.z,{lazy:!0,className:ne.tocCollapsibleContent,collapsed:o,children:(0,i.jsx)(Q,{toc:t,minHeadingLevel:s,maxHeadingLevel:a})})]})}const ae={tocMobile:"tocMobile_dSKl"};function oe(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(se,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(v.k.docs.docTocMobile,ae.tocMobile)})}const ie={tableOfContents:"tableOfContents_Kcgb",docItemContainer:"docItemContainer_vCLV"},le="table-of-contents__link toc-highlight",ce="table-of-contents__link--active";function re(e){let{className:t,...n}=e;return(0,i.jsx)("div",{className:(0,u.Z)(ie.tableOfContents,"thin-scrollbar",t),children:(0,i.jsx)(Q,{...n,linkClassName:le,linkActiveClassName:ce})})}function de(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(re,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:v.k.docs.docTocDesktop})}var ue=n(1616),me=n(7355),he=n(10),pe=n(7992),fe=n(9303);function xe(){const{prism:e}=(0,W.L)(),{colorMode:t}=(0,fe.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var ge=n(6241),be=n.n(ge);const je=/title=(? ["'])(?.*?)\1/,ve=/\{(? [\d,-]+)\}/,Ne={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"},lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""}};function Ce(e,t){const n=e.map((e=>{const{start:n,end:s}=Ne[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function ke(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:a,metastring:o}=t;if(o&&ve.test(o)){const e=o.match(ve).groups.range;if(0===a.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=a[0].className,s=be()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return Ce(["js","jsBlock"],t);case"jsx":case"tsx":return Ce(["js","jsBlock","jsx"],t);case"html":return Ce(["js","jsBlock","html"],t);case"python":case"py":case"bash":return Ce(["bash"],t);case"markdown":case"md":return Ce(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return Ce(["tex"],t);case"lua":case"haskell":case"sql":return Ce(["lua"],t);case"wasm":return Ce(["wasm"],t);default:return Ce(Object.keys(Ne).filter((e=>!["lua","wasm","tex","latex","matlab"].includes(e))),t)}}(s,a),l=n.split("\n"),c=Object.fromEntries(a.map((e=>[e.className,{start:0,range:""}]))),r=Object.fromEntries(a.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),d=Object.fromEntries(a.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),u=Object.fromEntries(a.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let h=0;h void 0!==e));r[t]?c[r[t]].range+=`${h},`:d[t]?c[d[t]].start=h:u[t]&&(c[u[t]].range+=`${c[u[t]].start}-${h-1},`),l.splice(h,1)}n=l.join("\n");const m={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;be()(n).forEach((e=>{m[e]??=[],m[e].push(t)}))})),{lineClassNames:m,code:n}}const Le={codeBlockContainer:"codeBlockContainer_O4pk"};function ye(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,a]=e;const o=t[s];o&&"string"==typeof a&&(n[o]=a)})),n}(xe());return(0,i.jsx)(t,{...n,style:s,className:(0,u.Z)(n.className,Le.codeBlockContainer,v.k.common.codeBlock)})}const Be={codeBlockContent:"codeBlockContent_iAjG",codeBlockTitle:"codeBlockTitle_LEd8",codeBlock:"codeBlock_Ou2N",codeBlockStandalone:"codeBlockStandalone_xCr3",codeBlockLines:"codeBlockLines_XW2f",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_QGAY",buttonGroup:"buttonGroup_XNaI"};function _e(e){let{children:t,className:n}=e;return(0,i.jsx)(ye,{as:"pre",tabIndex:0,className:(0,u.Z)(Be.codeBlockStandalone,"thin-scrollbar",n),children:(0,i.jsx)("code",{className:Be.codeBlockLines,children:t})})}const we={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Ze(e,t){const[n,a]=(0,s.useState)(),i=(0,s.useCallback)((()=>{a(e.current?.closest("[role=tabpanel][hidden]"))}),[e,a]);(0,s.useEffect)((()=>{i()}),[i]),function(e,t,n){void 0===n&&(n=we);const a=(0,o.zX)(t),i=(0,o.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(a);return e&&t.observe(e,i),()=>t.disconnect()}),[e,a,i])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),i())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var Te=n(5124);const Ee={codeLine:"codeLine_EFk5",codeLineNumber:"codeLineNumber_CMt8",codeLineContent:"codeLineContent_Jmpz"};function He(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:a,getTokenProps:o}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const l=a({line:t,className:(0,u.Z)(n,s&&Ee.codeLine)}),c=t.map(((e,t)=>(0,i.jsx)("span",{...o({token:e,key:t})},t)));return(0,i.jsxs)("span",{...l,children:[s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:Ee.codeLineNumber}),(0,i.jsx)("span",{className:Ee.codeLineContent,children:c})]}):c,(0,i.jsx)("br",{})]})}function Ae(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function Ie(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Me={copyButtonCopied:"copyButtonCopied_OgpD",copyButtonIcons:"copyButtonIcons_N_tX",copyButtonIcon:"copyButtonIcon_EL_3",copyButtonSuccessIcon:"copyButtonSuccessIcon_ACM0"};function Ue(e){let{code:t,className:n}=e;const[a,o]=(0,s.useState)(!1),l=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),a=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const o=document.getSelection(),i=o.rangeCount>0&&o.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let l=!1;try{l=document.execCommand("copy")}catch{}s.remove(),i&&(o.removeAllRanges(),o.addRange(i)),a&&a.focus()}(t),o(!0),l.current=window.setTimeout((()=>{o(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,i.jsx)("button",{type:"button","aria-label":a?(0,h.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,h.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,h.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,u.Z)("clean-btn",n,Me.copyButton,a&&Me.copyButtonCopied),onClick:c,children:(0,i.jsxs)("span",{className:Me.copyButtonIcons,"aria-hidden":"true",children:[(0,i.jsx)(Ae,{className:Me.copyButtonIcon}),(0,i.jsx)(Ie,{className:Me.copyButtonSuccessIcon})]})})}function Se(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const ze={wordWrapButtonIcon:"wordWrapButtonIcon_D6L7",wordWrapButtonEnabled:"wordWrapButtonEnabled_etWt"};function Re(e){let{className:t,onClick:n,isEnabled:s}=e;const a=(0,h.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,i.jsx)("button",{type:"button",onClick:n,className:(0,u.Z)("clean-btn",t,s&&ze.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,i.jsx)(Se,{className:ze.wordWrapButtonIcon,"aria-hidden":"true"})})}function Ve(e){let{children:t,className:n="",metastring:a,title:o,showLineNumbers:l,language:c}=e;const{prism:{defaultLanguage:r,magicComments:d}}=(0,W.L)(),m=function(e){return e?.toLowerCase()}(c??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??r),h=xe(),p=function(){const[e,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)(!1),o=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=o.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[o,e]),l=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=o.current,n=e>t||o.current.querySelector("code").hasAttribute("style");a(n)}),[o]);return Ze(o,l),(0,s.useEffect)((()=>{l()}),[e,l]),(0,s.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:o,isEnabled:e,isCodeScrollable:n,toggle:i}}(),f=function(e){return e?.match(je)?.groups.title??""}(a)||o,{lineClassNames:x,code:g}=ke(t,{metastring:a,language:m,magicComments:d}),b=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(a);return(0,i.jsxs)(ye,{as:"div",className:(0,u.Z)(n,m&&!n.includes(`language-${m}`)&&`language-${m}`),children:[f&&(0,i.jsx)("div",{className:Be.codeBlockTitle,children:f}),(0,i.jsxs)("div",{className:Be.codeBlockContent,children:[(0,i.jsx)(Te.y$,{theme:h,code:g,language:m??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:a,getTokenProps:o}=e;return(0,i.jsx)("pre",{tabIndex:0,ref:p.codeBlockRef,className:(0,u.Z)(t,Be.codeBlock,"thin-scrollbar"),style:n,children:(0,i.jsx)("code",{className:(0,u.Z)(Be.codeBlockLines,b&&Be.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,i.jsx)(He,{line:e,getLineProps:a,getTokenProps:o,classNames:x[t],showLineNumbers:b},t)))})})}}),(0,i.jsxs)("div",{className:Be.buttonGroup,children:[(p.isEnabled||p.isCodeScrollable)&&(0,i.jsx)(Re,{className:Be.codeButton,onClick:()=>p.toggle(),isEnabled:p.isEnabled}),(0,i.jsx)(Ue,{className:Be.codeButton,code:g})]})]})]})}function Oe(e){let{children:t,...n}=e;const a=(0,pe.Z)(),o=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),l="string"==typeof o?Ve:_e;return(0,i.jsx)(l,{...n,children:o},String(a))}const De={details:"details_PrKF",isBrowser:"isBrowser_UK4B",collapsibleContent:"collapsibleContent_o49n"};function Pe(e){return!!e&&("SUMMARY"===e.tagName||Pe(e.parentElement))}function We(e,t){return!!e&&(e===t||We(e.parentElement,t))}function $e(e){let{summary:t,children:n,...a}=e;const o=(0,pe.Z)(),l=(0,s.useRef)(null),{collapsed:c,setCollapsed:r}=(0,P.u)({initialState:!a.open}),[d,m]=(0,s.useState)(a.open),h=s.isValidElement(t)?t:(0,i.jsx)("summary",{children:t??"Details"});return(0,i.jsxs)("details",{...a,ref:l,open:d,"data-collapsed":c,className:(0,u.Z)(De.details,o&&De.isBrowser,a.className),onMouseDown:e=>{Pe(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;Pe(t)&&We(t,l.current)&&(e.preventDefault(),c?(r(!1),m(!0)):r(!0))},children:[h,(0,i.jsx)(P.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{r(e),m(!e)},children:(0,i.jsx)("div",{className:De.collapsibleContent,children:n})})]})}const Fe={details:"details_NGsD"},qe="alert alert--info";function Ge(e){let{...t}=e;return(0,i.jsx)($e,{...t,className:(0,u.Z)(qe,Fe.details,t.className)})}function Xe(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),a=(0,i.jsx)(i.Fragment,{children:t.filter((e=>e!==n))});return(0,i.jsx)(Ge,{...e,summary:n,children:a})}function Je(e){return(0,i.jsx)(ue.Z,{...e})}const Ke={containsTaskList:"containsTaskList_Twdj"};function Ye(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&Ke.containsTaskList)}const Qe={img:"img_YHV8"};function et(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}const tt={admonition:"admonition_04Bq",admonitionHeading:"admonitionHeading_CBB1",admonitionIcon:"admonitionIcon_qEYz",admonitionContent:"admonitionContent_Gj5W"};function nt(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,u.Z)(v.k.common.admonition,v.k.common.admonitionType(t),tt.admonition,n),children:s})}function st(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:tt.admonitionHeading,children:[(0,i.jsx)("span",{className:tt.admonitionIcon,children:t}),n]})}function at(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:tt.admonitionContent,children:t}):null}function ot(e){const{type:t,icon:n,title:s,children:a,className:o}=e;return(0,i.jsxs)(nt,{type:t,className:o,children:[(0,i.jsx)(st,{title:s,icon:n}),(0,i.jsx)(at,{children:a})]})}function it(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const lt={icon:(0,i.jsx)(it,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function ct(e){return(0,i.jsx)(ot,{...lt,...e,className:(0,u.Z)("alert alert--secondary",e.className),children:e.children})}function rt(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const dt={icon:(0,i.jsx)(rt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function ut(e){return(0,i.jsx)(ot,{...dt,...e,className:(0,u.Z)("alert alert--success",e.className),children:e.children})}function mt(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const ht={icon:(0,i.jsx)(mt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function pt(e){return(0,i.jsx)(ot,{...ht,...e,className:(0,u.Z)("alert alert--info",e.className),children:e.children})}function ft(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const xt={icon:(0,i.jsx)(ft,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function gt(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const bt={icon:(0,i.jsx)(gt,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const jt={icon:(0,i.jsx)(ft,{}),title:(0,i.jsx)(h.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const vt={...{note:ct,tip:ut,info:pt,warning:function(e){return(0,i.jsx)(ot,{...xt,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(ot,{...bt,...e,className:(0,u.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(ct,{title:"secondary",...e}),important:e=>(0,i.jsx)(pt,{title:"important",...e}),success:e=>(0,i.jsx)(ut,{title:"success",...e}),caution:function(e){return(0,i.jsx)(ot,{...jt,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})}}};function Nt(e){const t=et(e),n=(s=t.type,vt[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),vt.info));var s;return(0,i.jsx)(n,{...t})}var Ct=n(9315);const kt={Head:he.Z,details:Xe,Details:Xe,code:function(e){return s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))?(0,i.jsx)("code",{...e}):(0,i.jsx)(Oe,{...e})},a:function(e){return(0,i.jsx)(p.Z,{...e})},pre:function(e){return(0,i.jsx)(i.Fragment,{children:e.children})},ul:function(e){return(0,i.jsx)("ul",{...e,className:Ye(e.className)})},img:function(e){return(0,i.jsx)("img",{loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,Qe.img))});var t},h1:e=>(0,i.jsx)(Je,{as:"h1",...e}),h2:e=>(0,i.jsx)(Je,{as:"h2",...e}),h3:e=>(0,i.jsx)(Je,{as:"h3",...e}),h4:e=>(0,i.jsx)(Je,{as:"h4",...e}),h5:e=>(0,i.jsx)(Je,{as:"h5",...e}),h6:e=>(0,i.jsx)(Je,{as:"h6",...e}),admonition:Nt,mermaid:Ct.Z};function Lt(e){let{children:t}=e;return(0,i.jsx)(me.Z,{components:kt,children:t})}function yt(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=r();return t.hide_title||void 0!==n?null:e.title}();return(0,i.jsxs)("div",{className:(0,u.Z)(v.k.docs.docMarkdown,"markdown"),children:[n&&(0,i.jsx)("header",{children:(0,i.jsx)(ue.Z,{as:"h1",children:n})}),(0,i.jsx)(Lt,{children:t})]})}var Bt=n(2039),_t=n(2213),wt=n(5827);function Zt(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const Tt={breadcrumbHomeIcon:"breadcrumbHomeIcon__Szg"};function Et(){const e=(0,wt.Z)("/");return(0,i.jsx)("li",{className:"breadcrumbs__item",children:(0,i.jsx)(p.Z,{"aria-label":(0,h.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,i.jsx)(Zt,{className:Tt.breadcrumbHomeIcon})})})}const Ht={breadcrumbsContainer:"breadcrumbsContainer_zmEe"};function At(e){let{children:t,href:n,isLast:s}=e;const a="breadcrumbs__link";return s?(0,i.jsx)("span",{className:a,itemProp:"name",children:t}):n?(0,i.jsx)(p.Z,{className:a,href:n,itemProp:"item",children:(0,i.jsx)("span",{itemProp:"name",children:t})}):(0,i.jsx)("span",{className:a,children:t})}function It(e){let{children:t,active:n,index:s,addMicrodata:a}=e;return(0,i.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,u.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,i.jsx)("meta",{itemProp:"position",content:String(s+1)})]})}function Mt(){const e=(0,Bt.s1)(),t=(0,_t.Ns)();return e?(0,i.jsx)("nav",{className:(0,u.Z)(v.k.docs.docBreadcrumbs,Ht.breadcrumbsContainer),"aria-label":(0,h.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,i.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,i.jsx)(Et,{}),e.map(((t,n)=>{const s=n===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,i.jsx)(It,{active:s,index:n,addMicrodata:!!a,children:(0,i.jsx)(At,{href:a,isLast:s,children:t.label})},n)}))]})}):null}function Ut(){return(0,i.jsx)(h.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function St(){return(0,i.jsx)(h.Z,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function zt(){return(0,i.jsx)(he.Z,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function Rt(e){let{className:t}=e;return(0,i.jsx)(Nt,{type:"caution",title:(0,i.jsx)(Ut,{}),className:(0,u.Z)(t,v.k.common.unlistedBanner),children:(0,i.jsx)(St,{})})}function Vt(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(zt,{}),(0,i.jsx)(Rt,{...e})]})}const Ot={docItemContainer:"docItemContainer_ZJxz",docItemCol:"docItemCol_ZXpF"};function Dt(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=r(),n=(0,m.i)(),s=e.hide_table_of_contents,a=!s&&t.length>0;return{hidden:s,mobile:a?(0,i.jsx)(oe,{}):void 0,desktop:!a||"desktop"!==n&&"ssr"!==n?void 0:(0,i.jsx)(de,{})}}(),{metadata:{unlisted:s}}=r();return(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&Ot.docItemCol),children:[s&&(0,i.jsx)(Vt,{}),(0,i.jsx)(_,{}),(0,i.jsxs)("div",{className:Ot.docItemContainer,children:[(0,i.jsxs)("article",{children:[(0,i.jsx)(Mt,{}),(0,i.jsx)(w,{}),n.mobile,(0,i.jsx)(yt,{children:t}),(0,i.jsx)(D,{})]}),(0,i.jsx)(g,{})]})]}),n.desktop&&(0,i.jsx)("div",{className:"col col--3",children:n.desktop})]})}function Pt(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,i.jsx)(c,{content:e.content,children:(0,i.jsxs)(a.FG,{className:t,children:[(0,i.jsx)(d,{}),(0,i.jsx)(Dt,{children:(0,i.jsx)(n,{})})]})})}},6241:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,a,o]=t;if(s&&o){s=parseInt(s),o=parseInt(o);const e=s {"use strict";n.d(t,{Z:()=>l,a:()=>i});var s=n(4614);const a={},o=s.createContext(a);function i(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1c24dc38.2c92f1ef.js b/assets/js/1c24dc38.2c92f1ef.js new file mode 100644 index 000000000..17e627db8 --- /dev/null +++ b/assets/js/1c24dc38.2c92f1ef.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3899],{2210:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>s,default:()=>c,frontMatter:()=>i,metadata:()=>a,toc:()=>d});var o=r(5735),t=r(7355);const i={},s="isValidPhoneNumberFormat",a={id:"utils/validator/isValidPhoneNumberFormat",title:"isValidPhoneNumberFormat",description:"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc774 -(hyphen)\uc744 \ud3ec\ud568\ud55c \uc804\ud654\ubc88\ud638 \ud615\uc2dd\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/validator/isValidPhoneNumberFormat.md",sourceDirName:"utils/validator",slug:"/utils/validator/isValidPhoneNumberFormat",permalink:"/modern-kit/docs/utils/validator/isValidPhoneNumberFormat",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"isValidEmail",permalink:"/modern-kit/docs/utils/validator/isValidEmail"}},l={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function m(e){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{id:"isvalidphonenumberformat",children:"isValidPhoneNumberFormat"}),"\n",(0,o.jsxs)(n.p,{children:["\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc774 ",(0,o.jsx)(n.code,{children:"-(hyphen)"}),"\uc744 \ud3ec\ud568\ud55c \uc804\ud654\ubc88\ud638 \ud615\uc2dd\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XXX-YYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XXX-YYYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XX-YYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XX-YYYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XXXX-YYYY"})}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"\uc2e4\uc81c \uc804\ud654\ubc88\ud638 \uccb4\uacc4\uc5d0 \ub9de\ub294\uc9c0 \uc5c4\uaca9\ud558\uac8c \ud655\uc778\ud558\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4."}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-tsx",children:"const isValidPhoneNumberFormat: (value: string) => boolean\n"})}),"\n",(0,o.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:"import { isValidPhoneNumberFormat, formatPhoneNumber } from '@modern-kit/utils';\n\nconst isPhoneNumberFormat1 = isValidPhoneNumberFormat('010-1234-1234'); // true\nconst isPhoneNumberFormat2 = isValidPhoneNumberFormat('031-123-1234'); // true\nconst isPhoneNumberFormat3 = isValidPhoneNumberFormat('02-123-1234'); // true\nconst isPhoneNumberFormat4 = isValidPhoneNumberFormat('02-1234-1234'); // true\n\nconst isPhoneNumberFormat5 = isValidPhoneNumberFormat('0-1234-1234'); // false\nconst isPhoneNumberFormat6 = isValidPhoneNumberFormat('010-12455-1234'); // false\n\nconst isPhoneNumberFormat7 = isValidPhoneNumberFormat(formatPhoneNumber('01012341234')); // true\nconst isPhoneNumberFormat8 = isValidPhoneNumberFormat(formatPhoneNumber('021231234')); // true\nconst isPhoneNumberFormat9 = isValidPhoneNumberFormat(formatPhoneNumber('010-1234-1234')); // true\n"})})]})}function c(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},7355:(e,n,r)=>{r.d(n,{Z:()=>a,a:()=>s});var o=r(4614);const t={},i=o.createContext(t);function s(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1c24dc38.ebe27d8f.js b/assets/js/1c24dc38.ebe27d8f.js deleted file mode 100644 index 4c80f97b4..000000000 --- a/assets/js/1c24dc38.ebe27d8f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3899],{662:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>s,default:()=>c,frontMatter:()=>i,metadata:()=>a,toc:()=>d});var o=r(5735),t=r(7355);const i={},s="isValidPhoneNumberFormat",a={id:"utils/validator/isValidPhoneNumberFormat",title:"isValidPhoneNumberFormat",description:"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc774 -(hyphen)\uc744 \ud3ec\ud568\ud55c \uc804\ud654\ubc88\ud638 \ud615\uc2dd\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/validator/isValidPhoneNumberFormat.md",sourceDirName:"utils/validator",slug:"/utils/validator/isValidPhoneNumberFormat",permalink:"/modern-kit/docs/utils/validator/isValidPhoneNumberFormat",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"isValidEmail",permalink:"/modern-kit/docs/utils/validator/isValidEmail"}},l={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function m(e){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{id:"isvalidphonenumberformat",children:"isValidPhoneNumberFormat"}),"\n",(0,o.jsxs)(n.p,{children:["\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc774 ",(0,o.jsx)(n.code,{children:"-(hyphen)"}),"\uc744 \ud3ec\ud568\ud55c \uc804\ud654\ubc88\ud638 \ud615\uc2dd\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XXX-YYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XXX-YYYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XX-YYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XX-YYYY-ZZZZ"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"XXXX-YYYY"})}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"\uc2e4\uc81c \uc804\ud654\ubc88\ud638 \uccb4\uacc4\uc5d0 \ub9de\ub294\uc9c0 \uc5c4\uaca9\ud558\uac8c \ud655\uc778\ud558\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4."}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-tsx",children:"const isValidPhoneNumberFormat: (value: string) => boolean\n"})}),"\n",(0,o.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:"import { isValidPhoneNumberFormat, formatPhoneNumber } from '@modern-kit/utils';\n\nconst isPhoneNumberFormat1 = isValidPhoneNumberFormat('010-1234-1234'); // true\nconst isPhoneNumberFormat2 = isValidPhoneNumberFormat('031-123-1234'); // true\nconst isPhoneNumberFormat3 = isValidPhoneNumberFormat('02-123-1234'); // true\nconst isPhoneNumberFormat4 = isValidPhoneNumberFormat('02-1234-1234'); // true\n\nconst isPhoneNumberFormat5 = isValidPhoneNumberFormat('0-1234-1234'); // false\nconst isPhoneNumberFormat6 = isValidPhoneNumberFormat('010-12455-1234'); // false\n\nconst isPhoneNumberFormat7 = isValidPhoneNumberFormat(formatPhoneNumber('01012341234')); // true\nconst isPhoneNumberFormat8 = isValidPhoneNumberFormat(formatPhoneNumber('021231234')); // true\nconst isPhoneNumberFormat9 = isValidPhoneNumberFormat(formatPhoneNumber('010-1234-1234')); // true\n"})})]})}function c(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},7355:(e,n,r)=>{r.d(n,{Z:()=>a,a:()=>s});var o=r(4614);const t={},i=o.createContext(t);function s(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.94ee7782.js b/assets/js/1df93b7f.94ee7782.js new file mode 100644 index 000000000..62426c26f --- /dev/null +++ b/assets/js/1df93b7f.94ee7782.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3237],{1418:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});n(4614);var s=n(3497),i=n(3020),a=n(1054),r=n(7036);const o={banner:"banner_d9gt",bannerContainer:"bannerContainer_m_gH",heroBanner:"heroBanner_qdFl",buttons:"buttons_AeoN",mainContentWrapper:"mainContentWrapper_BZQx",mainContentHead:"mainContentHead_ActD",mainContentParagraph:"mainContentParagraph_cI3D",mainContentTitle:"mainContentTitle_gFQ_",contributors:"contributors__k0X"};var c=n(5735);function m(){const{siteConfig:t}=(0,i.Z)();return(0,c.jsx)("header",{className:o.banner,children:(0,c.jsxs)("div",{className:o.bannerContainer,children:[(0,c.jsx)("h1",{className:"hero__title",style:{fontSize:"3.5rem",color:"#2e8555"},children:t.title}),(0,c.jsx)("p",{className:o.mainContentTitle,children:"@modern-kit\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8 \uac1c\ubc1c\uc5d0 \uc720\uc6a9\ud55c \ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5 \ubc0f \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4."}),(0,c.jsxs)("div",{className:o.buttons,children:[(0,c.jsx)(s.Z,{className:"button button--primary button--lg",to:"/docs/introduce",children:"Getting Started"}),(0,c.jsx)("a",{className:"button button--secondary button--lg",href:"https://github.com/modern-agile-team/modern-kit",target:"_blank",children:"Github"})]})]})})}function l(){const{siteConfig:t}=(0,i.Z)();return(0,c.jsxs)(a.Z,{title:`${t.title}`,description:"Provides React UI Components, React Custom Hooks, and Utility functions.",children:[(0,c.jsx)(m,{}),(0,c.jsxs)(r.Z,{children:[(0,c.jsx)("meta",{property:"og:title",content:"@modern-kit"}),(0,c.jsx)("meta",{property:"og:description",content:"@modern-kit is an open source library that provides useful React UI Components, React Custom Hooks, and various Utility Functions"}),(0,c.jsx)("meta",{property:"og:url",content:"https://modern-agile-team.github.io/modern-kit"}),(0,c.jsx)("meta",{property:"og:image",content:"https://github.com/modern-agile-team/modern-kit/assets/64779472/70cbcee5-8a1b-407b-8917-00d259d225ee"})]}),(0,c.jsx)("main",{children:(0,c.jsxs)("div",{className:o.mainContentWrapper,children:[(0,c.jsxs)("h2",{className:o.mainContentHead,children:["@modern-kit/react",(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/react",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@modern-kit/react.svg"})}),(0,c.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/react",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/react/latest"})})]}),(0,c.jsx)("p",{className:o.mainContentParagraph,children:"React\uc640 \uad00\ub828\ub41c \uc720\uc6a9\ud55c \ucef4\ud3ec\ub10c\ud2b8\uc640 \ucee4\uc2a4\ud140 \ud6c5\uc744 \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."}),(0,c.jsxs)("h2",{className:o.mainContentHead,children:["@modern-kit/utils",(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/utils",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@modern-kit/utils.svg"})}),(0,c.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/utils",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/utils/latest"})})]}),(0,c.jsx)("p",{className:o.mainContentParagraph,children:"\ud074\ub77c\uc774\uc5b8\ud2b8 \uac1c\ubc1c\uacfc \uad00\ub828\ub41c \uc720\uc6a9\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."}),(0,c.jsxs)("h2",{className:o.mainContentHead,children:["@modern-kit/types",(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/types",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@modern-kit/types.svg"})}),(0,c.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/types",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/types/latest"})})]}),(0,c.jsx)("p",{className:o.mainContentParagraph,children:"\uc720\uc6a9\ud55c \uc720\ud2f8 \ud0c0\uc785\ub4e4\uc744 \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4."})]})}),(0,c.jsxs)("div",{className:o.contributors,children:[(0,c.jsx)("h2",{children:"Thank you to all contributors! \ud83d\udc97"}),(0,c.jsx)("p",{children:"@modern-kit\ub294 \uc9c0\uc18d\uc801\uc73c\ub85c \uc720\uc9c0 \uad00\ub9ac\ub418\uba70, \uc5ec\ub7ec\ubd84\ub4e4\uc758 \ubaa8\ub4e0 \uae30\uc5ec\ub97c \ud658\uc601\ud569\ub2c8\ub2e4."}),(0,c.jsx)("div",{children:(0,c.jsx)("img",{src:"https://contrib.rocks/image?repo=Modern-Agile-Team/modern-kit"})})]})]})}}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.af27e030.js b/assets/js/1df93b7f.af27e030.js deleted file mode 100644 index 75941a6b7..000000000 --- a/assets/js/1df93b7f.af27e030.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3237],{9976:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});n(4614);var s=n(9990),i=n(8314),a=n(5754),r=n(10);const o={banner:"banner_d9gt",bannerContainer:"bannerContainer_m_gH",heroBanner:"heroBanner_qdFl",buttons:"buttons_AeoN",mainContentWrapper:"mainContentWrapper_BZQx",mainContentHead:"mainContentHead_ActD",mainContentParagraph:"mainContentParagraph_cI3D",mainContentTitle:"mainContentTitle_gFQ_",contributors:"contributors__k0X"};var c=n(5735);function m(){const{siteConfig:t}=(0,i.Z)();return(0,c.jsx)("header",{className:o.banner,children:(0,c.jsxs)("div",{className:o.bannerContainer,children:[(0,c.jsx)("h1",{className:"hero__title",style:{fontSize:"3.5rem",color:"#2e8555"},children:t.title}),(0,c.jsx)("p",{className:o.mainContentTitle,children:"@modern-kit\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8 \uac1c\ubc1c\uc5d0 \uc720\uc6a9\ud55c \ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5 \ubc0f \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4."}),(0,c.jsxs)("div",{className:o.buttons,children:[(0,c.jsx)(s.Z,{className:"button button--primary button--lg",to:"/docs/introduce",children:"Getting Started"}),(0,c.jsx)("a",{className:"button button--secondary button--lg",href:"https://github.com/modern-agile-team/modern-kit",target:"_blank",children:"Github"})]})]})})}function l(){const{siteConfig:t}=(0,i.Z)();return(0,c.jsxs)(a.Z,{title:`${t.title}`,description:"Provides React UI Components, React Custom Hooks, and Utility functions.",children:[(0,c.jsx)(m,{}),(0,c.jsxs)(r.Z,{children:[(0,c.jsx)("meta",{property:"og:title",content:"@modern-kit"}),(0,c.jsx)("meta",{property:"og:description",content:"@modern-kit is an open source library that provides useful React UI Components, React Custom Hooks, and various Utility Functions"}),(0,c.jsx)("meta",{property:"og:url",content:"https://modern-agile-team.github.io/modern-kit"}),(0,c.jsx)("meta",{property:"og:image",content:"https://github.com/modern-agile-team/modern-kit/assets/64779472/70cbcee5-8a1b-407b-8917-00d259d225ee"})]}),(0,c.jsx)("main",{children:(0,c.jsxs)("div",{className:o.mainContentWrapper,children:[(0,c.jsxs)("h2",{className:o.mainContentHead,children:["@modern-kit/react",(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/react",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@modern-kit/react.svg"})}),(0,c.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/react",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/react/latest"})})]}),(0,c.jsx)("p",{className:o.mainContentParagraph,children:"React\uc640 \uad00\ub828\ub41c \uc720\uc6a9\ud55c \ucef4\ud3ec\ub10c\ud2b8\uc640 \ucee4\uc2a4\ud140 \ud6c5\uc744 \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."}),(0,c.jsxs)("h2",{className:o.mainContentHead,children:["@modern-kit/utils",(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/utils",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@modern-kit/utils.svg"})}),(0,c.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/utils",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/utils/latest"})})]}),(0,c.jsx)("p",{className:o.mainContentParagraph,children:"\ud074\ub77c\uc774\uc5b8\ud2b8 \uac1c\ubc1c\uacfc \uad00\ub828\ub41c \uc720\uc6a9\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."}),(0,c.jsxs)("h2",{className:o.mainContentHead,children:["@modern-kit/types",(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/types",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@modern-kit/types.svg"})}),(0,c.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/types",target:"_blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/types/latest"})})]}),(0,c.jsx)("p",{className:o.mainContentParagraph,children:"\uc720\uc6a9\ud55c \uc720\ud2f8 \ud0c0\uc785\ub4e4\uc744 \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4."})]})}),(0,c.jsxs)("div",{className:o.contributors,children:[(0,c.jsx)("h2",{children:"Thank you to all contributors! \ud83d\udc97"}),(0,c.jsx)("p",{children:"@modern-kit\ub294 \uc9c0\uc18d\uc801\uc73c\ub85c \uc720\uc9c0 \uad00\ub9ac\ub418\uba70, \uc5ec\ub7ec\ubd84\ub4e4\uc758 \ubaa8\ub4e0 \uae30\uc5ec\ub97c \ud658\uc601\ud569\ub2c8\ub2e4."}),(0,c.jsx)("div",{children:(0,c.jsx)("img",{src:"https://contrib.rocks/image?repo=Modern-Agile-Team/modern-kit"})})]})]})}}}]); \ No newline at end of file diff --git a/assets/js/219c5550.981b09e8.js b/assets/js/219c5550.ec637614.js similarity index 97% rename from assets/js/219c5550.981b09e8.js rename to assets/js/219c5550.ec637614.js index 5fb50a5a1..0f3d83b83 100644 --- a/assets/js/219c5550.981b09e8.js +++ b/assets/js/219c5550.ec637614.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4291],{7108:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>r,default:()=>d,frontMatter:()=>c,metadata:()=>l,toc:()=>i});var o=n(5735),s=n(7355);const c={},r="objectValues",l={id:"utils/object/objectValues",title:"objectValues",description:"Object.values()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/object/objectValues.md",sourceDirName:"utils/object",slug:"/utils/object/objectValues",permalink:"/modern-kit/docs/utils/object/objectValues",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"objectKeys",permalink:"/modern-kit/docs/utils/object/objectKeys"},next:{title:"omit",permalink:"/modern-kit/docs/utils/object/omit"}},a={},i=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}];function u(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h1,{id:"objectvalues",children:"objectValues"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"Object.values()"}),"\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-tsx",children:"type ObjectKeys > = Exclude<\n keyof T,\n symbol\n>;\n\nconst objectValues: >(\n obj: T\n) => T[ObjectKeys ][];\n"})}),"\n",(0,o.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-ts",children:"import { objectValues } from '@modern-kit/utils';\n\nconst symbol = Symbol('d');\nconst obj = {\n a: 1,\n b: 2,\n c: 3,\n [symbol]: 4,\n} as const;\n\n /**\n * type: (1 | 2 | 3)[]\n * value: [1, 2, 3]\n */\nconst values = objectValues(obj);\n"})}),"\n",(0,o.jsx)(t.h2,{id:"note",children:"Note"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.a,{href:"https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/values",children:"Object.values()"})})]})}function d(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},7355:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>r});var o=n(4614);const s={},c=o.createContext(s);function r(e){const t=o.useContext(c);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4291],{2462:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>r,default:()=>d,frontMatter:()=>c,metadata:()=>l,toc:()=>i});var o=n(5735),s=n(7355);const c={},r="objectValues",l={id:"utils/object/objectValues",title:"objectValues",description:"Object.values()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/object/objectValues.md",sourceDirName:"utils/object",slug:"/utils/object/objectValues",permalink:"/modern-kit/docs/utils/object/objectValues",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"objectKeys",permalink:"/modern-kit/docs/utils/object/objectKeys"},next:{title:"omit",permalink:"/modern-kit/docs/utils/object/omit"}},a={},i=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}];function u(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h1,{id:"objectvalues",children:"objectValues"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"Object.values()"}),"\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-tsx",children:"type ObjectKeys > = Exclude<\n keyof T,\n symbol\n>;\n\nconst objectValues: >(\n obj: T\n) => T[ObjectKeys ][];\n"})}),"\n",(0,o.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-ts",children:"import { objectValues } from '@modern-kit/utils';\n\nconst symbol = Symbol('d');\nconst obj = {\n a: 1,\n b: 2,\n c: 3,\n [symbol]: 4,\n} as const;\n\n /**\n * type: (1 | 2 | 3)[]\n * value: [1, 2, 3]\n */\nconst values = objectValues(obj);\n"})}),"\n",(0,o.jsx)(t.h2,{id:"note",children:"Note"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.a,{href:"https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/values",children:"Object.values()"})})]})}function d(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},7355:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>r});var o=n(4614);const s={},c=o.createContext(s);function r(e){const t=o.useContext(c);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/218.e79b9422.js b/assets/js/2220.4b6309d9.js similarity index 65% rename from assets/js/218.e79b9422.js rename to assets/js/2220.4b6309d9.js index ba3904b46..478ea00d2 100644 --- a/assets/js/218.e79b9422.js +++ b/assets/js/2220.4b6309d9.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[218],{5112:(e,t,n)=>{n.d(t,{Z:()=>a});n(4614);var i=n(7475),o=n(5958),s=n(1616),r=n(5735);function a(e){let{className:t}=e;return(0,r.jsx)("main",{className:(0,i.Z)("container margin-vert--xl",t),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(s.Z,{as:"h1",className:"hero__title",children:(0,r.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},218:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});n(4614);var i=n(5958),o=n(5839),s=n(5754),r=n(5112),a=n(5735);function d(){const e=(0,i.I)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.d,{title:e}),(0,a.jsx)(s.Z,{children:(0,a.jsx)(r.Z,{})})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2220],{2593:(e,t,n)=>{n.d(t,{Z:()=>a});n(4614);var i=n(605),o=n(3583),s=n(9290),r=n(5735);function a(e){let{className:t}=e;return(0,r.jsx)("main",{className:(0,i.Z)("container margin-vert--xl",t),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(s.Z,{as:"h1",className:"hero__title",children:(0,r.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},2220:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});n(4614);var i=n(3583),o=n(9603),s=n(1054),r=n(2593),a=n(5735);function d(){const e=(0,i.I)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.d,{title:e}),(0,a.jsx)(s.Z,{children:(0,a.jsx)(r.Z,{})})]})}}}]); \ No newline at end of file diff --git a/assets/js/2eff3e5b.b0d67535.js b/assets/js/2eff3e5b.447524a8.js similarity index 97% rename from assets/js/2eff3e5b.b0d67535.js rename to assets/js/2eff3e5b.447524a8.js index b45588ccf..0834b4a7c 100644 --- a/assets/js/2eff3e5b.b0d67535.js +++ b/assets/js/2eff3e5b.447524a8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4753],{1850:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var t=o(5735),s=o(7355);const r={},c="useToggle",a={id:"react/hooks/useToggle",title:"useToggle",description:"boolean \ud0c0\uc785\uc758 state\ub97c Toggle\ub85c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useToggle.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useToggle",permalink:"/modern-kit/docs/react/hooks/useToggle",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useTimeout",permalink:"/modern-kit/docs/react/hooks/useTimeout"},next:{title:"useUnMount",permalink:"/modern-kit/docs/react/hooks/useUnmount"}},l={},u=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function i(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"usetoggle",children:"useToggle"}),"\n",(0,t.jsx)(n.p,{children:"boolean \ud0c0\uc785\uc758 state\ub97c Toggle\ub85c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4."}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"const useToggle: (defaultValue?: boolean) => readonly [boolean, () => void]\n"})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { useToggle } from '@modern-kit/react';\n\nconst Example = () => {\n const [bool, toggle] = useToggle(false);\n\n return (\n \n {bool &&\n );\n}\n"})})]})}function d(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(i,{...e})}):i(e)}},7355:(e,n,o)=>{o.d(n,{Z:()=>a,a:()=>c});var t=o(4614);const s={},r=t.createContext(s);function c(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4753],{1078:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var t=o(5735),s=o(7355);const r={},c="useToggle",a={id:"react/hooks/useToggle",title:"useToggle",description:"boolean \ud0c0\uc785\uc758 state\ub97c Toggle\ub85c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useToggle.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useToggle",permalink:"/modern-kit/docs/react/hooks/useToggle",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useTimeout",permalink:"/modern-kit/docs/react/hooks/useTimeout"},next:{title:"useUnMount",permalink:"/modern-kit/docs/react/hooks/useUnmount"}},l={},u=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function i(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"usetoggle",children:"useToggle"}),"\n",(0,t.jsx)(n.p,{children:"boolean \ud0c0\uc785\uc758 state\ub97c Toggle\ub85c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4."}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"const useToggle: (defaultValue?: boolean) => readonly [boolean, () => void]\n"})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { useToggle } from '@modern-kit/react';\n\nconst Example = () => {\n const [bool, toggle] = useToggle(false);\n\n return (\nrender
}\n \n\n {bool &&\n );\n}\n"})})]})}function d(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(i,{...e})}):i(e)}},7355:(e,n,o)=>{o.d(n,{Z:()=>a,a:()=>c});var t=o(4614);const s={},r=t.createContext(s);function c(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/30200773.5f344b57.js b/assets/js/30200773.7f5db494.js similarity index 97% rename from assets/js/30200773.5f344b57.js rename to assets/js/30200773.7f5db494.js index 56f8e9dc4..2480c0d90 100644 --- a/assets/js/30200773.5f344b57.js +++ b/assets/js/30200773.7f5db494.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6863],{5462:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>a,contentTitle:()=>r,default:()=>c,frontMatter:()=>t,metadata:()=>u,toc:()=>d});var i=n(5735),l=n(7355);const t={},r="isNullish",u={id:"utils/validator/isNullish",title:"isNullish",description:"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 null \ub610\ub294 undefined\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790 \ud0c0\uc785\uc774 undefined | null\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/validator/isNullish.md",sourceDirName:"utils/validator",slug:"/utils/validator/isNullish",permalink:"/modern-kit/docs/utils/validator/isNullish",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"isNotNullish",permalink:"/modern-kit/docs/utils/validator/isNotNullish"},next:{title:"isNumber",permalink:"/modern-kit/docs/utils/validator/isNumber"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function o(e){const s={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,l.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.h1,{id:"isnullish",children:"isNullish"}),"\n",(0,i.jsxs)(s.p,{children:["\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 ",(0,i.jsx)(s.code,{children:"null"})," \ub610\ub294 ",(0,i.jsx)(s.code,{children:"undefined"}),"\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790 \ud0c0\uc785\uc774 ",(0,i.jsx)(s.code,{children:"undefined | null"}),"\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,i.jsx)("br",{}),"\n",(0,i.jsx)(s.h2,{id:"interface",children:"Interface"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-tsx",metastring:'title="typescript"',children:"const isNullish:render
}\n \n(val: T | null | undefined) => val is null | undefined\n"})}),"\n",(0,i.jsx)(s.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-ts",children:"import { isNullish } from '@modern-kit/utils';\n\nisNullish(undefined); // true\nisNullish(null); // true\n\nisNullish(1); // false\nisNullish(false); // false\nisNullish(\"str\"); // false\nisNullish({}); // false\n"})})]})}function c(e={}){const{wrapper:s}={...(0,l.a)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(o,{...e})}):o(e)}},7355:(e,s,n)=>{n.d(s,{Z:()=>u,a:()=>r});var i=n(4614);const l={},t=i.createContext(l);function r(e){const s=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function u(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:r(e.components),i.createElement(t.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6863],{5641:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>a,contentTitle:()=>r,default:()=>c,frontMatter:()=>t,metadata:()=>u,toc:()=>d});var i=n(5735),l=n(7355);const t={},r="isNullish",u={id:"utils/validator/isNullish",title:"isNullish",description:"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 null \ub610\ub294 undefined\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790 \ud0c0\uc785\uc774 undefined | null\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/validator/isNullish.md",sourceDirName:"utils/validator",slug:"/utils/validator/isNullish",permalink:"/modern-kit/docs/utils/validator/isNullish",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"isNotNullish",permalink:"/modern-kit/docs/utils/validator/isNotNullish"},next:{title:"isNumber",permalink:"/modern-kit/docs/utils/validator/isNumber"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function o(e){const s={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,l.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.h1,{id:"isnullish",children:"isNullish"}),"\n",(0,i.jsxs)(s.p,{children:["\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 ",(0,i.jsx)(s.code,{children:"null"})," \ub610\ub294 ",(0,i.jsx)(s.code,{children:"undefined"}),"\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790 \ud0c0\uc785\uc774 ",(0,i.jsx)(s.code,{children:"undefined | null"}),"\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,i.jsx)("br",{}),"\n",(0,i.jsx)(s.h2,{id:"interface",children:"Interface"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-tsx",metastring:'title="typescript"',children:"const isNullish: (val: T | null | undefined) => val is null | undefined\n"})}),"\n",(0,i.jsx)(s.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-ts",children:"import { isNullish } from '@modern-kit/utils';\n\nisNullish(undefined); // true\nisNullish(null); // true\n\nisNullish(1); // false\nisNullish(false); // false\nisNullish(\"str\"); // false\nisNullish({}); // false\n"})})]})}function c(e={}){const{wrapper:s}={...(0,l.a)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(o,{...e})}):o(e)}},7355:(e,s,n)=>{n.d(s,{Z:()=>u,a:()=>r});var i=n(4614);const l={},t=i.createContext(l);function r(e){const s=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function u(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:r(e.components),i.createElement(t.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/308b5f81.cbf90c8c.js b/assets/js/308b5f81.ae23e2df.js similarity index 98% rename from assets/js/308b5f81.cbf90c8c.js rename to assets/js/308b5f81.ae23e2df.js index 3b91b0fae..b592443c7 100644 --- a/assets/js/308b5f81.cbf90c8c.js +++ b/assets/js/308b5f81.ae23e2df.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4580],{5900:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=t(5735),s=t(7355);const o={},c="useIntersectionObserver",i={id:"react/hooks/useIntersectionObserver",title:"useIntersectionObserver",description:"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uac00 Viewport\uc5d0 \ub178\ucd9c\ub418\ub294 \uc2dc\uc810\uc5d0 action \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\uc2dc\ud0a4\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useIntersectionObserver.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useIntersectionObserver",permalink:"/modern-kit/docs/react/hooks/useIntersectionObserver",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useImageStatus",permalink:"/modern-kit/docs/react/hooks/useImageStatus"},next:{title:"useInterval",permalink:"/modern-kit/docs/react/hooks/useInterval"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"useintersectionobserver",children:"useIntersectionObserver"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"ref"}),"\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uac00 ",(0,r.jsx)(n.code,{children:"Viewport"}),"\uc5d0 \ub178\ucd9c\ub418\ub294 \uc2dc\uc810\uc5d0 ",(0,r.jsx)(n.code,{children:"action"})," \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\uc2dc\ud0a4\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\n",(0,r.jsxs)(n.p,{children:["Intersection Observer Option\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.(\ud558\ub2e8 ",(0,r.jsx)(n.code,{children:"Note"})," \ucc38\uace0)"]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"interface UseIntersectionObserverProps {\n action: (entry: IntersectionObserverEntry) => void;\n calledOnce?: boolean;\n threshold?: number | number[];\n root?: Document | Element | null;\n rootMargin?: string;\n}\n\nconst useIntersectionObserver: ({ \n action, \n calledOnce, \n root, \n threshold, \n rootMargin\n}: UseIntersectionObserverProps) => React.RefObject \n"})}),"\n",(0,r.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:'import { useIntersectionObserver } from \'@modern-kit/react\';\n\nconst Example = () => {\n const divRef = useIntersectionObserver ({\n action: () => { /* action */},\n });\n const imgRef = useIntersectionObserver ({\n action: (entry) => { /* \ud544\uc694\ud558\ub2e4\uba74 IntersectionObserverEntry \ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. */},\n });\n\n return (\n \n {/* ... */}\n\n );\n};\n'})}),"\n",(0,r.jsx)(n.h2,{id:"note",children:"Note"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://developer.mozilla.org/ko/docs/Web/API/IntersectionObserver",children:"Intersection Observer API"})})]})}function u(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},7355:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>c});var r=t(4614);const s={},o=r.createContext(s);function c(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4580],{8777:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=t(5735),s=t(7355);const o={},c="useIntersectionObserver",i={id:"react/hooks/useIntersectionObserver",title:"useIntersectionObserver",description:"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uac00 Viewport\uc5d0 \ub178\ucd9c\ub418\ub294 \uc2dc\uc810\uc5d0 action \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\uc2dc\ud0a4\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useIntersectionObserver.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useIntersectionObserver",permalink:"/modern-kit/docs/react/hooks/useIntersectionObserver",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useImageStatus",permalink:"/modern-kit/docs/react/hooks/useImageStatus"},next:{title:"useInterval",permalink:"/modern-kit/docs/react/hooks/useInterval"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"useintersectionobserver",children:"useIntersectionObserver"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"ref"}),"\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uac00 ",(0,r.jsx)(n.code,{children:"Viewport"}),"\uc5d0 \ub178\ucd9c\ub418\ub294 \uc2dc\uc810\uc5d0 ",(0,r.jsx)(n.code,{children:"action"})," \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\uc2dc\ud0a4\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\n",(0,r.jsxs)(n.p,{children:["Intersection Observer Option\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.(\ud558\ub2e8 ",(0,r.jsx)(n.code,{children:"Note"})," \ucc38\uace0)"]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"interface UseIntersectionObserverProps {\n action: (entry: IntersectionObserverEntry) => void;\n calledOnce?: boolean;\n threshold?: number | number[];\n root?: Document | Element | null;\n rootMargin?: string;\n}\n\nconst useIntersectionObserver:Box\n \n({ \n action, \n calledOnce, \n root, \n threshold, \n rootMargin\n}: UseIntersectionObserverProps) => React.RefObject \n"})}),"\n",(0,r.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:'import { useIntersectionObserver } from \'@modern-kit/react\';\n\nconst Example = () => {\n const divRef = useIntersectionObserver ({\n action: () => { /* action */},\n });\n const imgRef = useIntersectionObserver ({\n action: (entry) => { /* \ud544\uc694\ud558\ub2e4\uba74 IntersectionObserverEntry \ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. */},\n });\n\n return (\n \n {/* ... */}\n\n );\n};\n'})}),"\n",(0,r.jsx)(n.h2,{id:"note",children:"Note"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://developer.mozilla.org/ko/docs/Web/API/IntersectionObserver",children:"Intersection Observer API"})})]})}function u(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},7355:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>c});var r=t(4614);const s={},o=r.createContext(s);function c(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3209f55a.c4db8f05.js b/assets/js/3209f55a.f263a1aa.js similarity index 97% rename from assets/js/3209f55a.c4db8f05.js rename to assets/js/3209f55a.f263a1aa.js index e0a49ad57..1b15c031c 100644 --- a/assets/js/3209f55a.c4db8f05.js +++ b/assets/js/3209f55a.f263a1aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4870],{8331:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>c,metadata:()=>o,toc:()=>d});var r=n(5735),t=n(7355);const c={},a="useAsyncPreservedCallback",o={id:"react/hooks/useAsyncPreservedCallback",title:"useAsyncPreservedCallback",description:"usePreservedCallback \uacfc \uc720\uc0ac\ud558\ub098 Promise\ub97c \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useAsyncPreservedCallback.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useAsyncPreservedCallback",permalink:"/modern-kit/docs/react/hooks/useAsyncPreservedCallback",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"When",permalink:"/modern-kit/docs/react/components/When"},next:{title:"useDebounce",permalink:"/modern-kit/docs/react/hooks/useDebounce"}},l={},d=[{value:"Interface",id:"interface",level:2}];function i(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{id:"useasyncpreservedcallback",children:"useAsyncPreservedCallback"}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.a,{href:"https://modern-agile-team.github.io/modern-kit/docs/react/hooks/usePreservedCallback",children:"usePreservedCallback"})," \uacfc \uc720\uc0ac\ud558\ub098 Promise\ub97c \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(s.h2,{id:"interface",children:"Interface"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-tsx",children:"const useAsyncPreservedCallback:Box\n \nPromise >(\n callback: T\n) => (...args: any[]) => Promise ;\n"})})]})}function u(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(i,{...e})}):i(e)}},7355:(e,s,n)=>{n.d(s,{Z:()=>o,a:()=>a});var r=n(4614);const t={},c=r.createContext(t);function a(e){const s=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(c.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4870],{2717:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>c,metadata:()=>o,toc:()=>d});var r=n(5735),t=n(7355);const c={},a="useAsyncPreservedCallback",o={id:"react/hooks/useAsyncPreservedCallback",title:"useAsyncPreservedCallback",description:"usePreservedCallback \uacfc \uc720\uc0ac\ud558\ub098 Promise\ub97c \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useAsyncPreservedCallback.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useAsyncPreservedCallback",permalink:"/modern-kit/docs/react/hooks/useAsyncPreservedCallback",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"When",permalink:"/modern-kit/docs/react/components/When"},next:{title:"useDebounce",permalink:"/modern-kit/docs/react/hooks/useDebounce"}},l={},d=[{value:"Interface",id:"interface",level:2}];function i(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{id:"useasyncpreservedcallback",children:"useAsyncPreservedCallback"}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.a,{href:"https://modern-agile-team.github.io/modern-kit/docs/react/hooks/usePreservedCallback",children:"usePreservedCallback"})," \uacfc \uc720\uc0ac\ud558\ub098 Promise\ub97c \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(s.h2,{id:"interface",children:"Interface"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-tsx",children:"const useAsyncPreservedCallback: Promise >(\n callback: T\n) => (...args: any[]) => Promise ;\n"})})]})}function u(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(i,{...e})}):i(e)}},7355:(e,s,n)=>{n.d(s,{Z:()=>o,a:()=>a});var r=n(4614);const t={},c=r.createContext(t);function a(e){const s=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(c.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3842c52b.cd51f642.js b/assets/js/3842c52b.4383edd1.js similarity index 98% rename from assets/js/3842c52b.cd51f642.js rename to assets/js/3842c52b.4383edd1.js index e7a3c0be1..5177dcb81 100644 --- a/assets/js/3842c52b.cd51f642.js +++ b/assets/js/3842c52b.4383edd1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8852],{6287:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>o,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var t=n(5735),a=n(7355);const r={},c="usePreservedCallback",l={id:"react/hooks/usePreservedCallback",title:"usePreservedCallback",description:"\uc8fc\uc5b4\uc9c4 \ucf5c\ubc31 \ud568\uc218\ub97c \ubcf4\uc874\ud558\uace0 \ucef4\ud3ec\ub10c\ud2b8 \ub80c\ub354\ub9c1 \uc0ac\uc774\uc5d0 \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/usePreservedCallback.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/usePreservedCallback",permalink:"/modern-kit/docs/react/hooks/usePreservedCallback",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useOnClickOutside",permalink:"/modern-kit/docs/react/hooks/useOnClickOutside"},next:{title:"usePreservedState",permalink:"/modern-kit/docs/react/hooks/usePreservedState"}},o={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"as-is",id:"as-is",level:3},{value:"to-be (usePreservedCallback)",id:"to-be-usepreservedcallback",level:3}];function i(e){const s={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,a.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{id:"usepreservedcallback",children:"usePreservedCallback"}),"\n",(0,t.jsx)(s.p,{children:"\uc8fc\uc5b4\uc9c4 \ucf5c\ubc31 \ud568\uc218\ub97c \ubcf4\uc874\ud558\uace0 \ucef4\ud3ec\ub10c\ud2b8 \ub80c\ub354\ub9c1 \uc0ac\uc774\uc5d0 \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\n",(0,t.jsx)(s.p,{children:"\uc774 \ud6c5\uc740 \ud2b9\ud788 \ucf5c\ubc31 \ud568\uc218\uac00 \ub80c\ub354\ub9c1 \uc911\uc5d0 \ubcc0\uacbd\ub420 \ub54c \uc720\uc6a9\ud569\ub2c8\ub2e4. \ubd88\ud544\uc694\ud55c \ud568\uc218 \uc0dd\uc131\uc744 \ubc29\uc9c0\ud558\uace0 \ucd5c\uc801\ud654\ud558\uba70, \ucd5c\uc2e0 \ubc84\uc804\uc758 \ucf5c\ubc31 \ud568\uc218\ub97c \uc0ac\uc6a9 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(s.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-tsx",children:"const usePreservedCallback: any>(\n callback: T\n) => (...args: any[]) => any;\n"})}),"\n",(0,t.jsx)(s.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(s.h3,{id:"as-is",children:"as-is"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-tsx",children:'import React, { useEffect, useState } from "react";\n\nconst Example = () => {\n const [state, setState] = useState(0);\n\n const callback = () => {\n setState(state + 1);\n };\n\n useEffect(() => {\n callback(); // \ubb34\ud55c \ud638\ucd9c\n }, [callback]);\n\n return (\n <>{/* ... */}>\n );\n}\n'})}),"\n",(0,t.jsx)(s.h3,{id:"to-be-usepreservedcallback",children:"to-be (usePreservedCallback)"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-tsx",children:"import React, { useEffect, useState } from \"react\";\nimport { usePreservedCallback } from '@modern-kit/react';\n\nconst Example = () => {\n const [state, setState] = useState(0);\n\n const callback = usePreservedCallback(() => {\n setState(state + 1);\n });\n\n useEffect(() => {\n callback(); // 1\ud68c\ub9cc \ud638\ucd9c\n }, [callback]);\n\n return (\n <>{/* ... */}>\n );\n}\n"})})]})}function u(e={}){const{wrapper:s}={...(0,a.a)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(i,{...e})}):i(e)}},7355:(e,s,n)=>{n.d(s,{Z:()=>l,a:()=>c});var t=n(4614);const a={},r=t.createContext(a);function c(e){const s=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),t.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8852],{9071:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>o,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var t=n(5735),a=n(7355);const r={},c="usePreservedCallback",l={id:"react/hooks/usePreservedCallback",title:"usePreservedCallback",description:"\uc8fc\uc5b4\uc9c4 \ucf5c\ubc31 \ud568\uc218\ub97c \ubcf4\uc874\ud558\uace0 \ucef4\ud3ec\ub10c\ud2b8 \ub80c\ub354\ub9c1 \uc0ac\uc774\uc5d0 \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/usePreservedCallback.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/usePreservedCallback",permalink:"/modern-kit/docs/react/hooks/usePreservedCallback",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useOnClickOutside",permalink:"/modern-kit/docs/react/hooks/useOnClickOutside"},next:{title:"usePreservedState",permalink:"/modern-kit/docs/react/hooks/usePreservedState"}},o={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"as-is",id:"as-is",level:3},{value:"to-be (usePreservedCallback)",id:"to-be-usepreservedcallback",level:3}];function i(e){const s={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,a.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{id:"usepreservedcallback",children:"usePreservedCallback"}),"\n",(0,t.jsx)(s.p,{children:"\uc8fc\uc5b4\uc9c4 \ucf5c\ubc31 \ud568\uc218\ub97c \ubcf4\uc874\ud558\uace0 \ucef4\ud3ec\ub10c\ud2b8 \ub80c\ub354\ub9c1 \uc0ac\uc774\uc5d0 \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\n",(0,t.jsx)(s.p,{children:"\uc774 \ud6c5\uc740 \ud2b9\ud788 \ucf5c\ubc31 \ud568\uc218\uac00 \ub80c\ub354\ub9c1 \uc911\uc5d0 \ubcc0\uacbd\ub420 \ub54c \uc720\uc6a9\ud569\ub2c8\ub2e4. \ubd88\ud544\uc694\ud55c \ud568\uc218 \uc0dd\uc131\uc744 \ubc29\uc9c0\ud558\uace0 \ucd5c\uc801\ud654\ud558\uba70, \ucd5c\uc2e0 \ubc84\uc804\uc758 \ucf5c\ubc31 \ud568\uc218\ub97c \uc0ac\uc6a9 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(s.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-tsx",children:"const usePreservedCallback: any>(\n callback: T\n) => (...args: any[]) => any;\n"})}),"\n",(0,t.jsx)(s.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(s.h3,{id:"as-is",children:"as-is"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-tsx",children:'import React, { useEffect, useState } from "react";\n\nconst Example = () => {\n const [state, setState] = useState(0);\n\n const callback = () => {\n setState(state + 1);\n };\n\n useEffect(() => {\n callback(); // \ubb34\ud55c \ud638\ucd9c\n }, [callback]);\n\n return (\n <>{/* ... */}>\n );\n}\n'})}),"\n",(0,t.jsx)(s.h3,{id:"to-be-usepreservedcallback",children:"to-be (usePreservedCallback)"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-tsx",children:"import React, { useEffect, useState } from \"react\";\nimport { usePreservedCallback } from '@modern-kit/react';\n\nconst Example = () => {\n const [state, setState] = useState(0);\n\n const callback = usePreservedCallback(() => {\n setState(state + 1);\n });\n\n useEffect(() => {\n callback(); // 1\ud68c\ub9cc \ud638\ucd9c\n }, [callback]);\n\n return (\n <>{/* ... */}>\n );\n}\n"})})]})}function u(e={}){const{wrapper:s}={...(0,a.a)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(i,{...e})}):i(e)}},7355:(e,s,n)=>{n.d(s,{Z:()=>l,a:()=>c});var t=n(4614);const a={},r=t.createContext(a);function c(e){const s=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),t.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3c17568f.73c52060.js b/assets/js/3c17568f.243d66f2.js similarity index 97% rename from assets/js/3c17568f.73c52060.js rename to assets/js/3c17568f.243d66f2.js index 186cc6ecd..172d53b5d 100644 --- a/assets/js/3c17568f.73c52060.js +++ b/assets/js/3c17568f.243d66f2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8911],{5545:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>u,toc:()=>a});var s=t(5735),o=t(7355);const r={},c="useIsMounted",u={id:"react/hooks/useIsMounted",title:"useIsMounted",description:"\ucef4\ud3ec\ub10c\ud2b8\uac00 \ube0c\ub77c\uc6b0\uc800\uc5d0 mount \ub418\uc5c8\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useIsMounted.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useIsMounted",permalink:"/modern-kit/docs/react/hooks/useIsMounted",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useInterval",permalink:"/modern-kit/docs/react/hooks/useInterval"},next:{title:"useIsomorphicLayoutEffect",permalink:"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect"}},d={},a=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function i(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"useismounted",children:"useIsMounted"}),"\n",(0,s.jsx)(n.p,{children:"\ucef4\ud3ec\ub10c\ud2b8\uac00 \ube0c\ub77c\uc6b0\uc800\uc5d0 mount \ub418\uc5c8\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"SSR"})," \ud658\uacbd\uc5d0\uc11c \uc2e4\uc81c \ucef4\ud3ec\ub10c\ud2b8\uac00 \ube0c\ub77c\uc6b0\uc800\uc5d0 mount \ub418\uc5c8\ub2e4\ub294 \uac83\uc744 \ubcf4\uc7a5\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. ",(0,s.jsx)(n.code,{children:"(Feat. Hydration Error)"})]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"const useIsMounted: () => boolean\n"})}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"import { useIsMounted } from '@modern-kit/react';\n\nconst Example = () => {\n const isMounted = useIsMounted();\n\n return {isMounted ? 'done' : 'in progress'};\n};\n"})})]})}function l(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},7355:(e,n,t)=>{t.d(n,{Z:()=>u,a:()=>c});var s=t(4614);const o={},r=s.createContext(o);function c(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function u(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8911],{3781:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>u,toc:()=>a});var s=t(5735),o=t(7355);const r={},c="useIsMounted",u={id:"react/hooks/useIsMounted",title:"useIsMounted",description:"\ucef4\ud3ec\ub10c\ud2b8\uac00 \ube0c\ub77c\uc6b0\uc800\uc5d0 mount \ub418\uc5c8\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useIsMounted.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useIsMounted",permalink:"/modern-kit/docs/react/hooks/useIsMounted",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useInterval",permalink:"/modern-kit/docs/react/hooks/useInterval"},next:{title:"useIsomorphicLayoutEffect",permalink:"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect"}},d={},a=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function i(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"useismounted",children:"useIsMounted"}),"\n",(0,s.jsx)(n.p,{children:"\ucef4\ud3ec\ub10c\ud2b8\uac00 \ube0c\ub77c\uc6b0\uc800\uc5d0 mount \ub418\uc5c8\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"SSR"})," \ud658\uacbd\uc5d0\uc11c \uc2e4\uc81c \ucef4\ud3ec\ub10c\ud2b8\uac00 \ube0c\ub77c\uc6b0\uc800\uc5d0 mount \ub418\uc5c8\ub2e4\ub294 \uac83\uc744 \ubcf4\uc7a5\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. ",(0,s.jsx)(n.code,{children:"(Feat. Hydration Error)"})]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"const useIsMounted: () => boolean\n"})}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"import { useIsMounted } from '@modern-kit/react';\n\nconst Example = () => {\n const isMounted = useIsMounted();\n\n return{isMounted ? 'done' : 'in progress'};\n};\n"})})]})}function l(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},7355:(e,n,t)=>{t.d(n,{Z:()=>u,a:()=>c});var s=t(4614);const o={},r=s.createContext(o);function c(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function u(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3ffd14c6.4abdfdba.js b/assets/js/3ffd14c6.c9f3bfa0.js similarity index 97% rename from assets/js/3ffd14c6.4abdfdba.js rename to assets/js/3ffd14c6.c9f3bfa0.js index 934e4e8ab..70ac5256c 100644 --- a/assets/js/3ffd14c6.4abdfdba.js +++ b/assets/js/3ffd14c6.c9f3bfa0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2014],{9612:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>l,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var s=t(5735),r=t(7355);const o={},c="useOnClickOutside",i={id:"react/hooks/useOnClickOutside",title:"useOnClickOutside",description:"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8 \uc678\ubd80 \uc694\uc18c\ub97c \ud074\ub9ad \ud560 \uacbd\uc6b0 \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useOnClickOutside.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useOnClickOutside",permalink:"/modern-kit/docs/react/hooks/useOnClickOutside",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useMergeRefs",permalink:"/modern-kit/docs/react/hooks/useMergeRefs"},next:{title:"usePreservedCallback",permalink:"/modern-kit/docs/react/hooks/usePreservedCallback"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function u(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"useonclickoutside",children:"useOnClickOutside"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"ref"}),"\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8 \uc678\ubd80 \uc694\uc18c\ub97c \ud074\ub9ad \ud560 \uacbd\uc6b0 \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"const useOnClickOutside:(\n action: (targetElement: T) => void\n) => {\n ref: React.RefObject ;\n};\n"})}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"import { useMemo } from 'react';\nimport { useOnClickOutside } from '@modern-kit/react';\n\nconst Example = () => {\n const { ref } = useOnClickOutside (() => {\n window.alert('outside click')\n });\n \n const boxStyle = useMemo(() => {\n return {\n width: '400px',\n height: '400px',\n background: '#439966',\n fontSize: '1.5rem',\n color: '#fff',\n };\n }, []);\n\n return (\n \n Target Box\n\n );\n};\n"})})]})}function l(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},7355:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>c});var s=t(4614);const r={},o=s.createContext(r);function c(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2014],{9005:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>l,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var s=t(5735),r=t(7355);const o={},c="useOnClickOutside",i={id:"react/hooks/useOnClickOutside",title:"useOnClickOutside",description:"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8 \uc678\ubd80 \uc694\uc18c\ub97c \ud074\ub9ad \ud560 \uacbd\uc6b0 \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useOnClickOutside.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useOnClickOutside",permalink:"/modern-kit/docs/react/hooks/useOnClickOutside",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useMergeRefs",permalink:"/modern-kit/docs/react/hooks/useMergeRefs"},next:{title:"usePreservedCallback",permalink:"/modern-kit/docs/react/hooks/usePreservedCallback"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function u(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"useonclickoutside",children:"useOnClickOutside"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"ref"}),"\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8 \uc678\ubd80 \uc694\uc18c\ub97c \ud074\ub9ad \ud560 \uacbd\uc6b0 \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"const useOnClickOutside:(\n action: (targetElement: T) => void\n) => {\n ref: React.RefObject ;\n};\n"})}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-tsx",children:"import { useMemo } from 'react';\nimport { useOnClickOutside } from '@modern-kit/react';\n\nconst Example = () => {\n const { ref } = useOnClickOutside (() => {\n window.alert('outside click')\n });\n \n const boxStyle = useMemo(() => {\n return {\n width: '400px',\n height: '400px',\n background: '#439966',\n fontSize: '1.5rem',\n color: '#fff',\n };\n }, []);\n\n return (\n \n Target Box\n\n );\n};\n"})})]})}function l(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},7355:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>c});var s=t(4614);const r={},o=s.createContext(r);function c(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/47707012.d99619b7.js b/assets/js/47707012.d99619b7.js new file mode 100644 index 000000000..a047191e8 --- /dev/null +++ b/assets/js/47707012.d99619b7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5917],{525:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>j,frontMatter:()=>c,metadata:()=>i,toc:()=>a});var s=n(5735),o=n(7355);const c={},r="objectEntries",i={id:"utils/object/objectEntries",title:"objectEntries",description:"Object.entries()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\uc9c0\ub9cc key\ud0c0\uc785\uc744 \uc9c0\ucf1c\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/object/objectEntries.md",sourceDirName:"utils/object",slug:"/utils/object/objectEntries",permalink:"/modern-kit/docs/utils/object/objectEntries",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"mergeProperties",permalink:"/modern-kit/docs/utils/object/mergeProperties"},next:{title:"objectKeys",permalink:"/modern-kit/docs/utils/object/objectKeys"}},l={},a=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"objectentries",children:"objectEntries"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Object.entries()"}),"\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\uc9c0\ub9cc ",(0,s.jsx)(t.code,{children:"key"}),"\ud0c0\uc785\uc744 \uc9c0\ucf1c\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-tsx",children:"type ObjectKeys> = Exclude<\n keyof T,\n symbol\n>;\n\nconst objectEntries: >(\n obj: T\n) => [ObjectKeys , T[ObjectKeys ]][];\n"})}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-ts",children:"import { objectEntries } from '@modern-kit/utils';\n\nconst symbol = Symbol('d');\nconst obj = {\n a: 1,\n b: 2,\n c: 3,\n [symbol]: 4,\n} as const;\n\n /**\n * type: [\"a\" | \"b\" | \"c\", 1 | 2 | 3][]\n * value: \n [\n ['a', 1],\n ['b', 2],\n ['c', 3],\n ]\n */\nconst entries = objectEntries(obj);\n"})}),"\n",(0,s.jsx)(t.h2,{id:"note",children:"Note"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/entries",children:"Object.entries()"})})]})}function j(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},7355:(e,t,n)=>{n.d(t,{Z:()=>i,a:()=>r});var s=n(4614);const o={},c=s.createContext(o);function r(e){const t=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/47707012.feaf56ad.js b/assets/js/47707012.feaf56ad.js deleted file mode 100644 index f9201510c..000000000 --- a/assets/js/47707012.feaf56ad.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5917],{1527:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>j,frontMatter:()=>c,metadata:()=>i,toc:()=>a});var s=n(5735),o=n(7355);const c={},r="objectEntries",i={id:"utils/object/objectEntries",title:"objectEntries",description:"Object.entries()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\uc9c0\ub9cc key\ud0c0\uc785\uc744 \uc9c0\ucf1c\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/object/objectEntries.md",sourceDirName:"utils/object",slug:"/utils/object/objectEntries",permalink:"/modern-kit/docs/utils/object/objectEntries",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"mergeProperties",permalink:"/modern-kit/docs/utils/object/mergeProperties"},next:{title:"objectKeys",permalink:"/modern-kit/docs/utils/object/objectKeys"}},l={},a=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"objectentries",children:"objectEntries"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Object.entries()"}),"\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\uc9c0\ub9cc ",(0,s.jsx)(t.code,{children:"key"}),"\ud0c0\uc785\uc744 \uc9c0\ucf1c\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-tsx",children:"type ObjectKeys > = Exclude<\n keyof T,\n symbol\n>;\n\nconst objectEntries: >(\n obj: T\n) => [ObjectKeys , T[ObjectKeys ]][];\n"})}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-ts",children:"import { objectEntries } from '@modern-kit/utils';\n\nconst symbol = Symbol('d');\nconst obj = {\n a: 1,\n b: 2,\n c: 3,\n [symbol]: 4,\n} as const;\n\n /**\n * type: [\"a\" | \"b\" | \"c\", 1 | 2 | 3][]\n * value: \n [\n ['a', 1],\n ['b', 2],\n ['c', 3],\n ]\n */\nconst entries = objectEntries(obj);\n"})}),"\n",(0,s.jsx)(t.h2,{id:"note",children:"Note"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/entries",children:"Object.entries()"})})]})}function j(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},7355:(e,t,n)=>{n.d(t,{Z:()=>i,a:()=>r});var s=n(4614);const o={},c=s.createContext(o);function r(e){const t=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/47a95eb2.d71e73ae.js b/assets/js/47a95eb2.693418e2.js similarity index 98% rename from assets/js/47a95eb2.d71e73ae.js rename to assets/js/47a95eb2.693418e2.js index a61ab5c9c..26a187099 100644 --- a/assets/js/47a95eb2.d71e73ae.js +++ b/assets/js/47a95eb2.693418e2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[410],{8989:(t,n,e)=>{e.r(n),e.d(n,{Input:()=>p,InputExample:()=>h,assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>a,metadata:()=>f,toc:()=>s});var r=e(5735),o=e(7355),i=e(4614),u=e(5474);const a={},c="DebounceWrapper",f={id:"react/components/DebounceWrapper",title:"DebounceWrapper",description:"\uc790\uc2dd \uc694\uc18c\uc5d0\uc11c \ubc1c\uc0dd\ud558\ub294 \uc774\ubca4\ud2b8(ex: Click Event)\ub97c debounce\ud574\uc8fc\ub294 \uc720\ud2f8 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/DebounceWrapper.mdx",sourceDirName:"react/components",slug:"/react/components/DebounceWrapper",permalink:"/modern-kit/docs/react/components/DebounceWrapper",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\uc18c\uac1c",permalink:"/modern-kit/docs/introduce/"},next:{title:"InView",permalink:"/modern-kit/docs/react/components/InView"}},l={},s=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Button Click Case",id:"button-click-case",level:3},{value:"Input Change Case",id:"input-change-case",level:3},{value:"Example",id:"example",level:2},{value:"Button Click Case",id:"button-click-case-1",level:3},{value:"Input Change Case",id:"input-change-case-1",level:3}],p=({onChange:t})=>{const n={input:"input",...(0,o.a)()},[e,u]=(0,i.useState)("");return(0,r.jsx)(n.input,{type:"text",onChange:n=>{u(n.target.value),t(n.target.value)},value:e})},h=()=>{const t={p:"p",...(0,o.a)()},[n,e]=(0,i.useState)("");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.uM,{capture:"onChange",wait:500,children:(0,r.jsx)(p,{onChange:t=>{e(t)}})}),(0,r.jsxs)(t.p,{children:["Text: ",n]})]})};function v(t){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"debouncewrapper",children:"DebounceWrapper"}),"\n",(0,r.jsxs)(n.p,{children:["\uc790\uc2dd \uc694\uc18c\uc5d0\uc11c \ubc1c\uc0dd\ud558\ub294 \uc774\ubca4\ud2b8",(0,r.jsx)(n.code,{children:"(ex: Click Event)"}),"\ub97c debounce\ud574\uc8fc\ub294 \uc720\ud2f8 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"type DebounceParameters = Parameters ;\n\ninterface DebounceWrapperProps {\n children: JSX.Element; // \ud558\ub098\uc758 \uc694\uc18c\ub9cc children prop\uc73c\ub85c \ub118\uaca8\uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n capture: string;\n wait: DebounceParameters[1]; // number\n options?: DebounceParameters[2]; // DebounceSettings\n}\n\nconst DebounceWrapper: ({\n children,\n capture,\n wait,\n options,\n}: DebounceWrapperProps) => React.FunctionComponentElement ;\n"})}),"\n",(0,r.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(n.h3,{id:"button-click-case",children:"Button Click Case"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"import { DebounceWrapper } from '@modern-kit/react'\n\nconst Example = () => {\n const onClick = () => {\n console.log('debounce');\n };\n \n return (\n \n \n \n );\n};\n"})}),"\n",(0,r.jsx)(n.h3,{id:"input-change-case",children:"Input Change Case"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"const Input = ({ onChange }: { onChange: (value: string) => void }) => {\n const [value, setValue] = useState('');\n\n const handleChange = (e: ChangeEvent) => {\n setValue(e.target.value);\n onChange(e.target.value);\n };\n\n return ;\n};\n\nconst Example = () => {\n const [text, setText] = useState('');\n\n const onChange = (value: string) => {\n setText(value);\n };\n\n return (\n <>\n \n \n \n{text}
\n >\n );\n}\n"})}),"\n",(0,r.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,r.jsx)(n.h3,{id:"button-click-case-1",children:"Button Click Case"}),"\n",(0,r.jsx)("p",{style:{marginBottom:"4px"},children:"\ube0c\ub77c\uc6b0\uc800\uc758 \uac1c\ubc1c\uc790 \ub3c4\uad6c\uc758 \ucf58\uc194\uc5d0\uc11c \ub3d9\uc791\uc744 \ud655\uc778\ud558\uc138\uc694."}),"\n",(0,r.jsx)(u.uM,{capture:"onClick",wait:500,children:(0,r.jsx)("button",{onClick:()=>{console.log("debounce")},children:"Button"})}),"\n",(0,r.jsx)("br",{}),"\n","\n","\n",(0,r.jsx)(n.h3,{id:"input-change-case-1",children:"Input Change Case"}),"\n",(0,r.jsx)(h,{})]})}function d(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,r.jsx)(n,{...t,children:(0,r.jsx)(v,{...t})}):v(t)}},7355:(t,n,e)=>{e.d(n,{Z:()=>a,a:()=>u});var r=e(4614);const o={},i=r.createContext(o);function u(t){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof t?t(n):{...n,...t}}),[n,t])}function a(t){let n;return n=t.disableParentContext?"function"==typeof t.components?t.components(o):t.components||o:u(t.components),r.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,e)=>{e.d(n,{D9:()=>Wp,ac:()=>Mp,df:()=>xp,iP:()=>Rp,nA:()=>Ip,uM:()=>bp,wY:()=>Op,yU:()=>Cp});var r=e(4614),o=e(5735),i=(e(2832),"object"==typeof global&&global&&global.Object===Object&&global),u="object"==typeof self&&self&&self.Object===Object&&self,a=i||u||Function("return this")(),c=a.Symbol,f=Object.prototype,l=f.hasOwnProperty,s=f.toString,p=c?c.toStringTag:void 0,h=Object.prototype.toString,v="[object Null]",d="[object Undefined]",g=c?c.toStringTag:void 0;function y(t){return null==t?void 0===t?d:v:g&&g in Object(t)?function(t){var n=l.call(t,p),e=t[p];try{t[p]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(n?t[p]=e:delete t[p]),o}(t):function(t){return h.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var b="[object Symbol]";function m(t){return"symbol"==typeof t||_(t)&&y(t)==b}var j=NaN;function w(t){return"number"==typeof t?t:m(t)?j:+t}function x(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Tt=Lt(ht),Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function qt(t){return function(){return t}}var $t=function(){try{var t=lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Kt=$t?function(t,n){return $t(t,"toString",{configurable:!0,enumerable:!1,value:qt(n),writable:!0})}:V,Vt=Lt(Kt);function Zt(t,n){for(var e=-1,r=null==t?0:t.length;++e -1}var Xt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Qt(t,n,e){var r=n+"";return Vt(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(Ft,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Zt(Xt,(function(e){var r="_."+e[0];n&e[1]&&!Yt(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(r),e)))}var tn=1,nn=2,en=4,rn=8,on=32,un=64;function an(t,n,e,r,o,i,u,a,c,f){var l=n&rn;n|=l?on:un,(n&=~(l?un:on))&en||(n&=~(tn|nn));var s=[t,n,o,l?i:void 0,l?u:void 0,l?void 0:i,l?void 0:u,a,c,f],p=e.apply(void 0,s);return Dt(t)&&Tt(p,s),p.placeholder=r,Qt(p,t,n)}function cn(t){return t.placeholder}var fn=9007199254740991,ln=/^(?:0|[1-9]\d*)$/;function sn(t,n){var e=typeof t;return!!(n=null==n?fn:n)&&("number"==e||"symbol"!=e&&ln.test(t))&&t>-1&&t%1==0&&t 1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof y&&(A=g||gt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,En=4,kn=8,In=128,Sn=256,Mn=Math.min,Wn="Expected a function",Cn=1,Rn=2,Bn=8,zn=16,Dn=32,Pn=64,Ln=Math.max;function Tn(t,n,e,r,o,i,u,c){var f=n&Rn;if(!f&&"function"!=typeof t)throw new TypeError(Wn);var l=r?r.length:0;if(l||(n&=~(Dn|Pn),r=o=void 0),u=void 0===u?u:Ln(K(u),0),c=void 0===c?c:K(c),l-=o?o.length:0,n&Pn){var s=r,p=o;r=o=void 0}var h=f?void 0:kt(t),v=[t,n,e,r,o,s,p,i,u,c];if(h&&function(t,n){var e=t[1],r=n[1],o=e|r,i=o<(On|An|In),u=r==In&&e==kn||r==In&&e==Sn&&t[7].length<=n[8]||r==(In|Sn)&&n[7].length<=n[8]&&e==kn;if(!i&&!u)return t;r&On&&(t[2]=n[2],o|=e&On?0:En);var a=n[3];if(a){var c=t[3];t[3]=c?mt(c,a,n[4]):a,t[4]=c?vn(t[3],xn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?wt(c,a,n[6]):a,t[6]=c?vn(t[5],xn):n[6]),(a=n[7])&&(t[7]=a),r&In&&(t[8]=null==t[8]?n[8]:Mn(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=o}(v,h),t=v[0],n=v[1],e=v[2],r=v[3],o=v[4],!(c=v[9]=void 0===v[9]?f?0:t.length:Ln(v[9]-l,0))&&n&(Bn|zn)&&(n&=~(Bn|zn)),n&&n!=Cn)d=n==Bn||n==zn?function(t,n,e){var r=gt(t);return function o(){for(var i=arguments.length,u=Array(i),c=i,f=cn(o);c--;)u[c]=arguments[c];var l=i<3&&u[0]!==f&&u[i-1]!==f?[]:vn(u,f);return(i-=l.length) -1&&t%1==0&&t<=Hn}function Yn(t){return null!=t&&Jn(t.length)&&!Y(t)}function Xn(t,n,e){if(!z(e))return!1;var r=typeof n;return!!("number"==r?Yn(e)&&sn(n,e.length):"string"==r&&n in e)&&Fn(e[n],t)}function Qn(t){return Gn((function(n,e){var r=-1,o=e.length,i=o>1?e[o-1]:void 0,u=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Xn(e[0],e[1],u)&&(i=o<3?void 0:i,o=1),n=Object(n);++r -1},$e.prototype.set=function(t,n){var e=this.__data__,r=Fe(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};var Ke=lt(a,"Map");function Ve(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function Ze(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n 0&&e(a)?n>1?cr(a,n-1,e,r,o):ir(o,a):r||(o[o.length]=a)}return o}function fr(t){return null!=t&&t.length?cr(t,1):[]}function lr(t){return Vt(Zn(t,void 0,fr),t+"")}var sr=lr(or),pr=xe(Object.getPrototypeOf,Object),hr="[object Object]",vr=Function.prototype,dr=Object.prototype,gr=vr.toString,yr=dr.hasOwnProperty,_r=gr.call(Object);function br(t){if(!_(t)||y(t)!=hr)return!1;var n=pr(t);if(null===n)return!0;var e=yr.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&gr.call(e)==_r}function mr(t){if(!_(t))return!1;var n=y(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!br(t)}var jr=Gn((function(t,n){try{return _t(t,void 0,n)}catch(t){return mr(t)?t:new Error(t)}}));function wr(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=K(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var xr=Gn((function(t,n,e){var r=1;if(e.length){var o=vn(e,cn(xr));r|=32}return Tn(t,r,n,e,o)}));xr.placeholder={};var Or=lr((function(t,n){return Zt(n,(function(n){n=nr(n),Nn(t,n,xr(t[n],t))})),t})),Ar=Gn((function(t,n,e){var r=3;if(e.length){var o=vn(e,cn(Ar));r|=32}return Tn(n,r,t,e,o)}));function Er(t,n,e){var r=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var i=Array(o);++r =r?t:Er(t,n,e)}Ar.placeholder={};var Ir=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Sr(t){return Ir.test(t)}var Mr="\\ud800-\\udfff",Wr="["+Mr+"]",Cr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Rr="\\ud83c[\\udffb-\\udfff]",Br="[^"+Mr+"]",zr="(?:\\ud83c[\\udde6-\\uddff]){2}",Dr="[\\ud800-\\udbff][\\udc00-\\udfff]",Pr="(?:"+Cr+"|"+Rr+")?",Lr="[\\ufe0e\\ufe0f]?",Tr=Lr+Pr+"(?:\\u200d(?:"+[Br,zr,Dr].join("|")+")"+Lr+Pr+")*",Ur="(?:"+[Br+Cr+"?",Cr,zr,Dr,Wr].join("|")+")",Nr=RegExp(Rr+"(?="+Rr+")|"+Ur+Tr,"g");function Fr(t){return Sr(t)?function(t){return t.match(Nr)||[]}(t):function(t){return t.split("")}(t)}function qr(t){return function(n){var e=Sr(n=Xe(n))?Fr(n):void 0,r=e?e[0]:n.charAt(0),o=e?kr(e,1).join(""):n.slice(1);return r[t]()+o}}var $r=qr("toUpperCase");function Kr(t){return $r(Xe(t).toLowerCase())}function Vr(t,n,e,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(e=t[++o]);++o=n?t:n)),t}function zo(t){var n=this.__data__=new $e(t);this.size=n.size}function Do(t,n){return t&&Kn(n,ke(n),t)}zo.prototype.clear=function(){this.__data__=new $e,this.size=0},zo.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},zo.prototype.get=function(t){return this.__data__.get(t)},zo.prototype.has=function(t){return this.__data__.has(t)},zo.prototype.set=function(t,n){var e=this.__data__;if(e instanceof $e){var r=e.__data__;if(!Ke||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ze(r)}return e.set(t,n),this.size=e.size,this};var Po="object"==typeof exports&&exports&&!exports.nodeType&&exports,Lo=Po&&"object"==typeof module&&module&&!module.nodeType&&module,To=Lo&&Lo.exports===Po?a.Buffer:void 0,Uo=To?To.allocUnsafe:void 0;function No(t,n){if(n)return t.slice();var e=t.length,r=Uo?Uo(e):new t.constructor(e);return t.copy(r),r}function Fo(t,n){for(var e=-1,r=null==t?0:t.length,o=0,i=[];++e a))return!1;var f=i.get(t),l=i.get(n);if(f&&l)return f==n&&l==t;var s=-1,p=!0,h=e&Xi?new Gi:void 0;for(i.set(t,n),i.set(n,t);++s=n||e<0||s&&t-f>=i}function d(){var t=ta();if(v(t))return g(t);a=setTimeout(d,function(t){var e=n-(t-c);return s?ea(e,i-(t-f)):e}(t))}function g(t){return a=void 0,p&&r?h(t):(r=o=void 0,u)}function y(){var t=ta(),e=v(t);if(r=arguments,o=this,c=t,e){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),l?h(t):u}(c);if(s)return clearTimeout(a),a=setTimeout(d,n),h(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=N(n)||0,z(e)&&(l=!!e.leading,i=(s="maxWait"in e)?na(N(e.maxWait)||0,n):i,p="trailing"in e?!!e.trailing:p),y.cancel=function(){void 0!==a&&clearTimeout(a),f=0,r=c=o=a=void 0},y.flush=function(){return void 0===a?u:g(ta())},y}var oa=Object.prototype,ia=oa.hasOwnProperty,ua=Gn((function(t,n){t=Object(t);var e=-1,r=n.length,o=r>2?n[2]:void 0;for(o&&Xn(n[0],n[1],o)&&(r=1);++e =ba&&(i=Ji,u=!1,n=new Gi(n));t:for(;++o":">",'"':""","'":"'"}),La=/[&<>"']/g,Ta=RegExp(La.source);function Ua(t){return(t=Xe(t))&&Ta.test(t)?t.replace(La,Pa):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.source);function qa(t,n){for(var e=-1,r=null==t?0:t.length;++e -1?o[i?n[u]:u]:void 0}}var Ga=Math.max;function Ha(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:K(e);return o<0&&(o=Ga(r+o,0)),Gt(t,Uu(n),o)}var Ja=Za(Ha);function Ya(t,n,e){var r;return e(t,(function(t,e,o){if(n(t,e,o))return r=e,!1})),r}var Xa=Math.max,Qa=Math.min;function tc(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==e&&(o=K(e),o=e<0?Xa(r+o,0):Qa(o,r-1)),Gt(t,Uu(n),o,!0)}var nc=Za(tc);function ec(t){return t&&t.length?t[0]:void 0}function rc(t,n){var e=-1,r=Yn(t)?Array(t.length):[];return Zu(t,(function(t,o,i){r[++e]=n(t,o,i)})),r}function oc(t,n){return(O(t)?x:rc)(t,Uu(n))}var ic=So("floor");function uc(t){return lr((function(n){var e=n.length,r=e,o=Wt.prototype.thru;for(t&&n.reverse();r--;){var i=n[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==Mt(i))var u=new Wt([],!0)}for(r=u?r:e;++r n}function hc(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=N(n),e=N(e)),t(n,e)}}var vc=hc(pc),dc=hc((function(t,n){return t>=n})),gc=Object.prototype.hasOwnProperty;function yc(t,n){return null!=t&&gc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&y(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,ke(t))}var Oc=Math.max,Ac=Math.max,Ec=Math.min;function kc(t,n,e){for(var r=e?_a:Yt,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=x(l,ve(n))),c=Ec(l.length,c),a[u]=!e&&(n||o>=120&&l.length>=120)?new Gi(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s 1),n})),Kn(t,Jo(t),e),r&&(e=Zi(e,7,Of));for(var o=n.length;o--;)xf(e,n[o]);return e}));function Ef(t,n,e,r){if(!z(t))return t;for(var o=-1,i=(n=Qe(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||r&&u&&c||!e&&c||!o)return 1;if(!r&&!i&&!f&&t =a?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function Wf(t){return lr((function(n){return n=x(n,ve(Uu)),Gn((function(e){var r=this;return t(n,(function(t){return _t(t,r,e)}))}))}))}var Cf=Wf(x),Rf=Gn,Bf=Math.min,zf=Rf((function(t,n){var e=(n=1==n.length&&O(n[0])?x(n[0],ve(Uu)):x(cr(n,1),ve(Uu))).length;return Gn((function(r){for(var o=-1,i=Bf(r.length,e);++oLf)return e;do{n%2&&(e+=t),(n=Tf(n/2))&&(t+=t)}while(n);return e}var Nf=Lu("length"),Ff="\\ud800-\\udfff",qf="["+Ff+"]",$f="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Kf="\\ud83c[\\udffb-\\udfff]",Vf="[^"+Ff+"]",Zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Gf="[\\ud800-\\udbff][\\udc00-\\udfff]",Hf="(?:"+$f+"|"+Kf+")?",Jf="[\\ufe0e\\ufe0f]?",Yf=Jf+Hf+"(?:\\u200d(?:"+[Vf,Zf,Gf].join("|")+")"+Jf+Hf+")*",Xf="(?:"+[Vf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Qf=RegExp(Kf+"(?="+Kf+")|"+Xf+Yf,"g");function tl(t){return Sr(t)?function(t){for(var n=Qf.lastIndex=0;Qf.test(t);)++n;return n}(t):Nf(t)}var nl=Math.ceil;function el(t,n){var e=(n=void 0===n?" ":I(n)).length;if(e<2)return e?Uf(n,t):n;var r=Uf(n,nl(t/tl(n)));return Sr(n)?kr(Fr(r),0,t).join(""):r.slice(0,t)}var rl=Math.ceil,ol=Math.floor,il=/^\s+/,ul=a.parseInt,al=Gn((function(t,n){return Tn(t,32,void 0,n,vn(n,cn(al)))}));al.placeholder={};var cl=Gn((function(t,n){return Tn(t,64,void 0,n,vn(n,cn(cl)))}));cl.placeholder={};var fl=Hu((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),ll=lr((function(t,n){return null==t?{}:function(t,n){return kf(t,n,(function(n,e){return Bu(t,e)}))}(t,n)}));function sl(t,n,e,r){for(var o=e-1,i=t.length;++o-1;)a!==t&&pl.call(a,c,1),pl.call(t,c,1);return t}function vl(t,n){return t&&t.length&&n&&n.length?hl(t,n):t}var dl=Gn(vl),gl=Array.prototype.splice;function yl(t,n){for(var e=t?n.length:0,r=e-1;e--;){var o=n[e];if(e==r||o!==i){var i=o;sn(o)?gl.call(t,o,1):xf(t,o)}}return t}var _l=lr((function(t,n){var e=null==t?0:t.length,r=or(t,n);return yl(t,x(n,(function(t){return sn(t,e)?+t:t})).sort(Sf)),r})),bl=Math.floor,ml=Math.random;function jl(t,n){return t+bl(ml()*(n-t+1))}var wl=parseFloat,xl=Math.min,Ol=Math.random,Al=Math.ceil,El=Math.max;function kl(t){return function(n,e,r){return r&&"number"!=typeof r&&Xn(n,e,r)&&(e=r=void 0),n=$(n),void 0===e?(e=n,n=0):e=$(e),function(t,n,e,r){for(var o=-1,i=El(Al((n-t)/(e||1)),0),u=Array(i);i--;)u[r?i:++o]=t,t+=e;return u}(n,e,r=void 0===r?n 1&&Xn(t,n[0],n[1])?n=[]:e>2&&Xn(n[0],n[1],n[2])&&(n=[n[0]]),Mf(t,cr(n,1),[])})),Vl=4294967294,Zl=Math.floor,Gl=Math.min;function Hl(t,n,e,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=e(n))!=n,a=null===n,c=m(n),f=void 0===n;o>>1,u=t[i];null!==u&&!m(u)&&(e?u<=n:u /g,as={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:us,variable:"",imports:{_:{escape:Ua}}},cs=/\b__p \+= '';/g,fs=/\b(__p \+=) '' \+/g,ls=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ss=/[()=,{}\[\]\/\s]/,ps=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hs=/($^)/,vs=/['\n\r\u2028\u2029\\]/g,ds=Object.prototype.hasOwnProperty;function gs(t,n){return n(t)}var ys=4294967295,_s=Math.min;function bs(t,n){var e=t;return e instanceof At&&(e=e.value()),Vr(n,(function(t,n){return n.func.apply(n.thisArg,ir([t],n.args))}),e)}function ms(){return bs(this.__wrapped__,this.__actions__)}function js(t,n){for(var e=t.length;e--&&Jt(n,t[e],0)>-1;);return e}function ws(t,n){for(var e=-1,r=t.length;++e -1;);return e}var xs=/^\s+/,Os=/\w*$/,As=Zr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Es=/&(?:amp|lt|gt|quot|#39);/g,ks=RegExp(Es.source),Is=Qo&&1/nu(new Qo([,-0]))[1]==1/0?function(t){return new Qo(t)}:Et,Ss=200;function Ms(t,n,e){var r=-1,o=Yt,i=t.length,u=!0,a=[],c=a;if(e)u=!1,o=_a;else if(i>=Ss){var f=n?null:Is(t);if(f)return nu(f);u=!1,o=Ji,c=new Gi}else c=n?[]:a;t:for(;++r1||this.__actions__.length)&&r instanceof At&&sn(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:gs,args:[o],thisArg:void 0}),new Wt(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Fs(t,n,e){var r=t.length;if(r<2)return r?Ms(t[0]):[];for(var o=-1,i=Array(r);++o 1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,Ps(t,e)})),Ys={chunk:function(t,n,e){n=(e?Xn(t,n,e):void 0===n)?1:Ro(K(n),0);var r=null==t?0:t.length;if(!r||n<1)return[];for(var o=0,i=0,u=Array(Co(r/n));o o?0:o+e),(r=void 0===r||r>o?o:K(r))<0&&(r+=o),r=e>r?0:Ka(r);e -1:!!o&&Jt(t,n,e)>-1},invokeMap:Fc,keyBy:ef,map:oc,orderBy:function(t,n,e,r){return null==t?[]:(O(n)||(n=null==n?[]:[n]),O(e=r?void 0:e)||(e=null==e?[]:[e]),Mf(t,n,e))},partition:fl,reduce:function(t,n,e){var r=O(t)?Vr:Wl,o=arguments.length<3;return r(t,Uu(n),e,o,Zu)},reduceRight:function(t,n,e){var r=O(t)?Cl:Wl,o=arguments.length<3;return r(t,Uu(n),e,o,Ca)},reject:function(t,n){return(O(t)?Fo:Va)(t,bf(Uu(n)))},sample:function(t){return(O(t)?Dl:Pl)(t)},sampleSize:function(t,n,e){return n=(e?Xn(t,n,e):void 0===n)?1:K(n),(O(t)?Tl:Ul)(t,n)},shuffle:function(t){return(O(t)?Nl:Fl)(t)},size:function(t){if(null==t)return 0;if(Yn(t))return jc(t)?tl(t):t.length;var n=si(t);return"[object Map]"==n||"[object Set]"==n?t.size:Ee(t).length},some:function(t,n,e){var r=O(t)?Hi:$l;return e&&Xn(t,n,e)&&(n=void 0),r(t,Uu(n))},sortBy:Kl},Qs=ta,tp={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=K(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:Un,before:wr,bind:xr,bindKey:Ar,curry:Xu,curryRight:Qu,debounce:ra,defer:ga,delay:ya,flip:function(t){return Tn(t,512)},memoize:Ge,negate:bf,once:function(t){return wr(2,t)},overArgs:zf,partial:al,partialRight:cl,rearg:Ml,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Gn(t,n=void 0===n?n:K(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:Xl(K(n),0),Gn((function(e){var r=e[n],o=kr(e,0,n);return r&&ir(o,r),_t(t,this,o)}))},throttle:function(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return z(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),ra(t,n,{leading:r,maxWait:n,trailing:o})},unary:function(t){return Un(t,1)},wrap:function(t,n){return al(ka(n),t)}},np={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return O(t)?t:[t]},clone:function(t){return Zi(t,4)},cloneDeep:function(t){return Zi(t,5)},cloneDeepWith:function(t,n){return Zi(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Zi(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Nu(t,n,ke(n))},eq:Fn,gt:vc,gte:dc,isArguments:ae,isArray:O,isArrayBuffer:$c,isArrayLike:Yn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==y(t)},isBuffer:pe,isDate:Vc,isElement:function(t){return _(t)&&1===t.nodeType&&!br(t)},isEmpty:function(t){if(null==t)return!0;if(Yn(t)&&(O(t)||"string"==typeof t||"function"==typeof t.splice||pe(t)||me(t)||ae(t)))return!t.length;var n=si(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(ne(t))return!Ee(t).length;for(var e in t)if(Zc.call(t,e))return!1;return!0},isEqual:function(t,n){return Ou(t,n)},isEqualWith:function(t,n,e){var r=(e="function"==typeof e?e:void 0)?e(t,n):void 0;return void 0===r?Ou(t,n,void 0,e):!!r},isError:mr,isFinite:function(t){return"number"==typeof t&&Gc(t)},isFunction:Y,isInteger:Hc,isLength:Jn,isMap:Ui,isMatch:function(t,n){return t===n||ku(t,n,Su(n))},isMatchWith:function(t,n,e){return e="function"==typeof e?e:void 0,ku(t,n,Su(n),e)},isNaN:function(t){return Jc(t)&&t!=+t},isNative:function(t){if(Yc(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ft(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:Jc,isObject:z,isObjectLike:_,isPlainObject:br,isRegExp:Qc,isSafeInteger:function(t){return Hc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Fi,isString:jc,isSymbol:m,isTypedArray:me,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return _(t)&&"[object WeakMap]"==si(t)},isWeakSet:function(t){return _(t)&&"[object WeakSet]"==y(t)},lt:ff,lte:lf,toArray:jf,toFinite:$,toInteger:K,toLength:Ka,toNumber:N,toPlainObject:la,toSafeInteger:function(t){return t?Bo(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Xe},ep={add:M,ceil:Mo,divide:Aa,floor:ic,max:function(t){return t&&t.length?sf(t,V,pc):void 0},maxBy:function(t,n){return t&&t.length?sf(t,Uu(n),pc):void 0},mean:function(t){return hf(t,V)},meanBy:function(t,n){return hf(t,Uu(n))},min:function(t){return t&&t.length?sf(t,V,cf):void 0},minBy:function(t,n){return t&&t.length?sf(t,Uu(n),cf):void 0},multiply:_f,round:zl,subtract:ts,sum:function(t){return t&&t.length?pf(t,V):0},sumBy:function(t,n){return t&&t.length?pf(t,Uu(n)):0}},rp={assign:Se,assignIn:Ce,assignInWith:Re,assignWith:Be,at:sr,create:function(t,n){var e=dt(t);return null==n?e:Do(e,n)},defaults:ua,defaultsDeep:va,entries:za,entriesIn:Da,extend:Ce,extendWith:Re,findKey:function(t,n){return Ya(t,Uu(n),Ku)},findLastKey:function(t,n){return Ya(t,Uu(n),Wa)},forIn:function(t,n){return null==t?t:$u(t,ka(n),We)},forInRight:function(t,n){return null==t?t:Ma(t,ka(n),We)},forOwn:function(t,n){return t&&Ku(t,ka(n))},forOwnRight:function(t,n){return t&&Wa(t,ka(n))},functions:function(t){return null==t?[]:fc(t,ke(t))},functionsIn:function(t){return null==t?[]:fc(t,We(t))},get:rr,has:function(t,n){return null!=t&&Ru(t,n,yc)},hasIn:Bu,invert:Bc,invertBy:Lc,invoke:Nc,keys:ke,keysIn:We,mapKeys:function(t,n){var e={};return n=Uu(n),Ku(t,(function(t,r,o){Nn(e,n(t,r,o),t)})),e},mapValues:function(t,n){var e={};return n=Uu(n),Ku(t,(function(t,r,o){Nn(e,r,n(t,r,o))})),e},merge:vf,mergeWith:ha,omit:Af,omitBy:function(t,n){return If(t,bf(Uu(n)))},pick:ll,pickBy:If,result:function(t,n,e){var r=-1,o=(n=Qe(n,t)).length;for(o||(o=1,t=void 0);++r =this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},plant:function(t){for(var n,e=this;e instanceof xt;){var r=Rt(e);r.__index__=0,r.__values__=void 0,n?o.__wrapped__=r:n=r;var o=r;e=e.__wrapped__}return o.__wrapped__=t,n},reverse:function(){var t=this.__wrapped__;if(t instanceof At){var n=t;return this.__actions__.length&&(n=new At(this)),(n=n.reverse()).__actions__.push({func:gs,args:[Bl],thisArg:void 0}),new Wt(n,this.__chain__)}return this.thru(Bl)},tap:function(t,n){return n(t),t},thru:gs,toIterator:function(){return this},toJSON:ms,value:ms,valueOf:ms,wrapperChain:function(){return Wo(this)}},ip={camelCase:Eo,capitalize:Kr,deburr:Yr,endsWith:function(t,n,e){t=Xe(t),n=I(n);var r=t.length,o=e=void 0===e?r:Bo(K(e),0,r);return(e-=n.length)>=0&&t.slice(e,o)==n},escape:Ua,escapeRegExp:function(t){return(t=Xe(t))&&Fa.test(t)?t.replace(Na,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,e){t=Xe(t);var r=(n=K(n))?tl(t):0;if(!n||r>=n)return t;var o=(n-r)/2;return el(ol(o),e)+t+el(rl(o),e)},padEnd:function(t,n,e){t=Xe(t);var r=(n=K(n))?tl(t):0;return n&&r >>0)?(t=Xe(t))&&("string"==typeof n||null!=n&&!Qc(n))&&!(n=I(n))&&Sr(t)?kr(Fr(t),0,e):t.split(n,e):[]},startCase:Ql,startsWith:function(t,n,e){return t=Xe(t),e=null==e?0:Bo(K(e),0,t.length),n=I(n),t.slice(e,e+n.length)==n},template:function(t,n,e){var r=as.imports._.templateSettings||as;e&&Xn(t,n,e)&&(n=void 0),t=Xe(t),n=Re({},n,r,rs);var o,i,u=Re({},n.imports,r.imports,rs),a=ke(u),c=wc(u,a),f=0,l=n.interpolate||hs,s="__p += '",p=RegExp((n.escape||hs).source+"|"+l.source+"|"+(l===us?ps:hs).source+"|"+(n.evaluate||hs).source+"|$","g"),h=ds.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(n,e,r,u,a,c){return r||(r=u),s+=t.slice(f,c).replace(vs,is),e&&(o=!0,s+="' +\n__e("+e+") +\n'"),a&&(i=!0,s+="';\n"+a+";\n__p += '"),r&&(s+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),s+="';\n";var v=ds.call(n,"variable")&&n.variable;if(v){if(ss.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(i?s.replace(cs,""):s).replace(fs,"$1").replace(ls,"$1;"),s="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}";var d=jr((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,mr(d))throw d;return d},templateSettings:as,toLower:function(t){return Xe(t).toLowerCase()},toUpper:function(t){return Xe(t).toUpperCase()},trim:function(t,n,e){if((t=Xe(t))&&(e||void 0===n))return B(t);if(!t||!(n=I(n)))return t;var r=Fr(t),o=Fr(n);return kr(r,ws(r,o),js(r,o)+1).join("")},trimEnd:function(t,n,e){if((t=Xe(t))&&(e||void 0===n))return t.slice(0,C(t)+1);if(!t||!(n=I(n)))return t;var r=Fr(t);return kr(r,0,js(r,Fr(n))+1).join("")},trimStart:function(t,n,e){if((t=Xe(t))&&(e||void 0===n))return t.replace(xs,"");if(!t||!(n=I(n)))return t;var r=Fr(t);return kr(r,ws(r,Fr(n))).join("")},truncate:function(t,n){var e=30,r="...";if(z(n)){var o="separator"in n?n.separator:o;e="length"in n?K(n.length):e,r="omission"in n?I(n.omission):r}var i=(t=Xe(t)).length;if(Sr(t)){var u=Fr(t);i=u.length}if(e>=i)return t;var a=e-tl(r);if(a<1)return r;var c=u?kr(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+r;if(u&&(a+=c.length-a),Qc(o)){if(t.slice(a).search(o)){var f,l=c;for(o.global||(o=RegExp(o.source,Xe(Os.exec(o))+"g")),o.lastIndex=0;f=o.exec(l);)var s=f.index;c=c.slice(0,void 0===s?a:s)}}else if(t.indexOf(I(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},unescape:function(t){return(t=Xe(t))&&ks.test(t)?t.replace(Es,As):t},upperCase:Ts,upperFirst:$r,words:xo},up={attempt:jr,bindAll:Or,cond:function(t){var n=null==t?0:t.length,e=Uu;return t=n?x(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[e(t[0]),t[1]]})):[],Gn((function(e){for(var r=-1;++r 9007199254740991)return[];var e=ys,r=_s(t,ys);n=ka(n),t-=ys;for(var o=ee(r,n);++e =bc(n,e)&&t<_c(n,e)}(t=N(t),n,e)},zt.invoke=rp.invoke,zt.isArguments=np.isArguments,zt.isArray=O,zt.isArrayBuffer=np.isArrayBuffer,zt.isArrayLike=np.isArrayLike,zt.isArrayLikeObject=np.isArrayLikeObject,zt.isBoolean=np.isBoolean,zt.isBuffer=np.isBuffer,zt.isDate=np.isDate,zt.isElement=np.isElement,zt.isEmpty=np.isEmpty,zt.isEqual=np.isEqual,zt.isEqualWith=np.isEqualWith,zt.isError=np.isError,zt.isFinite=np.isFinite,zt.isFunction=np.isFunction,zt.isInteger=np.isInteger,zt.isLength=np.isLength,zt.isMap=np.isMap,zt.isMatch=np.isMatch,zt.isMatchWith=np.isMatchWith,zt.isNaN=np.isNaN,zt.isNative=np.isNative,zt.isNil=np.isNil,zt.isNull=np.isNull,zt.isNumber=np.isNumber,zt.isObject=z,zt.isObjectLike=np.isObjectLike,zt.isPlainObject=np.isPlainObject,zt.isRegExp=np.isRegExp,zt.isSafeInteger=np.isSafeInteger,zt.isSet=np.isSet,zt.isString=np.isString,zt.isSymbol=np.isSymbol,zt.isTypedArray=np.isTypedArray,zt.isUndefined=np.isUndefined,zt.isWeakMap=np.isWeakMap,zt.isWeakSet=np.isWeakSet,zt.join=Ys.join,zt.kebabCase=ip.kebabCase,zt.last=wa,zt.lastIndexOf=Ys.lastIndexOf,zt.lowerCase=ip.lowerCase,zt.lowerFirst=ip.lowerFirst,zt.lt=np.lt,zt.lte=np.lte,zt.max=ep.max,zt.maxBy=ep.maxBy,zt.mean=ep.mean,zt.meanBy=ep.meanBy,zt.min=ep.min,zt.minBy=ep.minBy,zt.stubArray=up.stubArray,zt.stubFalse=up.stubFalse,zt.stubObject=up.stubObject,zt.stubString=up.stubString,zt.stubTrue=up.stubTrue,zt.multiply=ep.multiply,zt.nth=Ys.nth,zt.noop=up.noop,zt.now=Qs,zt.pad=ip.pad,zt.padEnd=ip.padEnd,zt.padStart=ip.padStart,zt.parseInt=ip.parseInt,zt.random=function(t,n,e){if(e&&"boolean"!=typeof e&&Xn(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=$(t),void 0===n?(n=t,t=0):n=$(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var o=Ol();return xl(t+o*(n-t+wl("1e-"+((o+"").length-1))),n)}return jl(t,n)},zt.reduce=Xs.reduce,zt.reduceRight=Xs.reduceRight,zt.repeat=ip.repeat,zt.replace=ip.replace,zt.result=rp.result,zt.round=ep.round,zt.sample=Xs.sample,zt.size=Xs.size,zt.snakeCase=ip.snakeCase,zt.some=Xs.some,zt.sortedIndex=Ys.sortedIndex,zt.sortedIndexBy=Ys.sortedIndexBy,zt.sortedIndexOf=Ys.sortedIndexOf,zt.sortedLastIndex=Ys.sortedLastIndex,zt.sortedLastIndexBy=Ys.sortedLastIndexBy,zt.sortedLastIndexOf=Ys.sortedLastIndexOf,zt.startCase=ip.startCase,zt.startsWith=ip.startsWith,zt.subtract=ep.subtract,zt.sum=ep.sum,zt.sumBy=ep.sumBy,zt.template=ip.template,zt.times=up.times,zt.toFinite=np.toFinite,zt.toInteger=K,zt.toLength=np.toLength,zt.toLower=ip.toLower,zt.toNumber=np.toNumber,zt.toSafeInteger=np.toSafeInteger,zt.toString=np.toString,zt.toUpper=ip.toUpper,zt.trim=ip.trim,zt.trimEnd=ip.trimEnd,zt.trimStart=ip.trimStart,zt.truncate=ip.truncate,zt.unescape=ip.unescape,zt.uniqueId=up.uniqueId,zt.upperCase=ip.upperCase,zt.upperFirst=ip.upperFirst,zt.each=Xs.forEach,zt.eachRight=Xs.forEachRight,zt.first=Ys.head,gp(zt,(Gs={},Ku(zt,(function(t,n){pp.call(zt.prototype,n)||(Gs[n]=t)})),Gs),{chain:!1}),zt.VERSION="4.17.21",(zt.templateSettings=ip.templateSettings).imports._=zt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zt[t].placeholder=zt})),Zt(["drop","take"],(function(t,n){At.prototype[t]=function(e){e=void 0===e?1:vp(K(e),0);var r=this.__filtered__&&!n?new At(this):this.clone();return r.__filtered__?r.__takeCount__=dp(e,r.__takeCount__):r.__views__.push({size:dp(e,lp),type:t+(r.__dir__<0?"Right":"")}),r},At.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Zt(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;At.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Uu(t),type:e}),n.__filtered__=n.__filtered__||r,n}})),Zt(["head","last"],(function(t,n){var e="take"+(n?"Right":"");At.prototype[t]=function(){return this[e](1).value()[0]}})),Zt(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");At.prototype[t]=function(){return this.__filtered__?new At(this):this[e](1)}})),At.prototype.compact=function(){return this.filter(V)},At.prototype.find=function(t){return this.filter(t).head()},At.prototype.findLast=function(t){return this.reverse().find(t)},At.prototype.invokeMap=Gn((function(t,n){return"function"==typeof t?new At(this):this.map((function(e){return Uc(e,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(t)))},At.prototype.slice=function(t,n){t=K(t);var e=this;return e.__filtered__&&(t>0||n<0)?new At(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=K(n))<0?e.dropRight(-n):e.take(n-t)),e)},At.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},At.prototype.toArray=function(){return this.take(lp)},Ku(At.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=zt[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);o&&(zt.prototype[n]=function(){var n=this.__wrapped__,u=r?[1]:arguments,a=n instanceof At,c=u[0],f=a||O(n),l=function(t){var n=o.apply(zt,ir([t],u));return r&&s?n[0]:n};f&&e&&"function"==typeof c&&1!=c.length&&(a=f=!1);var s=this.__chain__,p=!!this.__actions__.length,h=i&&!s,v=a&&!p;if(!i&&f){n=v?n:new At(this);var d=t.apply(n,u);return d.__actions__.push({func:gs,args:[l],thisArg:void 0}),new Wt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?r?d.value()[0]:d.value():d)})})),Zt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=sp[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zt.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(O(o)?o:[],t)}return this[e]((function(e){return n.apply(O(e)?e:[],t)}))}})),Ku(At.prototype,(function(t,n){var e=zt[n];if(e){var r=e.name+"";pp.call(It,r)||(It[r]=[]),It[r].push({name:n,func:e})}})),It[jn(void 0,2).name]=[{name:"wrapper",func:void 0}],At.prototype.clone=function(){var t=new At(this.__wrapped__);return t.__actions__=Ct(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ct(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ct(this.__views__),t},At.prototype.reverse=function(){if(this.__filtered__){var t=new At(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},At.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=O(t),r=n<0,o=e?t.length:0,i=function(t,n,e){for(var r=-1,o=e.length;++r {const n=(0,r.useRef)(t);return(0,r.useEffect)((()=>{n.current=t}),[t]),(0,r.useCallback)(((...t)=>n.current(...t)),[])},_p=(t,n,e={})=>{const o=yp(t),i=(0,r.useMemo)((()=>ra(o,n,e)),[o,n,e]);return(t=>{const n=yp(t);(0,r.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},bp=({children:t,capture:n,wait:e,options:o})=>{const i=r.Children.only(t),u=_p(((...t)=>{const e=null==i?void 0:i.props;if(e)return"function"==typeof e[n]?e[n](...t):void 0}),e,o);return(0,r.cloneElement)(i,{[n]:u})};function mp(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o {const u=(0,r.useRef)(null),a=yp(t),c=(0,r.useCallback)((([t],e)=>{if(t&&t.isIntersecting){const r=t.target;a&&a(t),n&&e.unobserve(r)}}),[a,n]);return(0,r.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(c,{root:e,rootMargin:i,threshold:o});return n.observe(t),()=>{n.unobserve(t)}}),[e,o,i,c]),u},wp=(...t)=>(0,r.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),xp=(0,r.forwardRef)(((t,n)=>{const{action:e,calledOnce:r,threshold:i,root:u,rootMargin:a}=t,c=mp(t,["action","calledOnce","threshold","root","rootMargin"]),f=jp({action:e,calledOnce:r,threshold:i,root:u,rootMargin:a});return(0,o.jsx)("div",Object.assign({ref:wp(n,f)},c,{children:t.children}))})),Op=(0,r.forwardRef)(((t,n)=>{var{src:e,style:i,threshold:u,root:a,rootMargin:c}=t,f=mp(t,["src","style","threshold","root","rootMargin"]);const l=jp({action:t=>{t.target.src=e},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,r.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,o.jsx)("img",Object.assign({},f,{ref:wp(n,l),style:s}))}));"function"==typeof SuppressedError&&SuppressedError;const Ap=()=>"undefined"==typeof window&&"undefined"!=typeof global,Ep=()=>!Ap(),kp=Ep()?r.useLayoutEffect:r.useEffect;(0,r.createContext)({parentPortalElement:null});const Ip=({children:t,condition:n})=>{const e=(t=>"function"==typeof t?t():t)(n);return e?(0,o.jsx)(r.Fragment,{children:t}):null},Sp=t=>!!Ep()&&window.matchMedia(t).matches,Mp=t=>{const[n,e]=(0,r.useState)(Sp(t)),o=(0,r.useCallback)((()=>{e(Sp(t))}),[t]);return(0,r.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)}),[t,o]),{isMatch:n}},Wp=t=>{const n=(0,r.useRef)(t);return(0,r.useEffect)((()=>{n.current=t}),[t]),n.current},Cp=t=>{const[n,e]=(0,r.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),o=(0,r.useRef)(null),i=yp(t),u=(0,r.useCallback)((([t])=>{t&&(i(t),e(t.contentRect))}),[i]);return(0,r.useEffect)((()=>{const t=o.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:o,contentRect:n}},Rp=(t={})=>{const{isDebounce:n=!1,wait:e=300}=t,[o,i]=(0,r.useState)({width:null,height:null}),u=(0,r.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=_p(u,e),c=(0,r.useMemo)((()=>n?a:u),[u,n,a]);return kp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),o}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[410],{5777:(t,n,e)=>{e.r(n),e.d(n,{Input:()=>s,InputExample:()=>p,assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>a,metadata:()=>f,toc:()=>h});var r=e(5735),o=e(7355),i=e(4614),u=e(5474);const a={},c="DebounceWrapper",f={id:"react/components/DebounceWrapper",title:"DebounceWrapper",description:"\uc790\uc2dd \uc694\uc18c\uc5d0\uc11c \ubc1c\uc0dd\ud558\ub294 \uc774\ubca4\ud2b8(ex: Click Event)\ub97c debounce\ud574\uc8fc\ub294 \uc720\ud2f8 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/DebounceWrapper.mdx",sourceDirName:"react/components",slug:"/react/components/DebounceWrapper",permalink:"/modern-kit/docs/react/components/DebounceWrapper",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\uc18c\uac1c",permalink:"/modern-kit/docs/introduce/"},next:{title:"InView",permalink:"/modern-kit/docs/react/components/InView"}},l={},s=({onChange:t})=>{const n={input:"input",...(0,o.a)()},[e,u]=(0,i.useState)("");return(0,r.jsx)(n.input,{type:"text",onChange:n=>{u(n.target.value),t(n.target.value)},value:e})},p=()=>{const t={p:"p",...(0,o.a)()},[n,e]=(0,i.useState)("");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.uM,{capture:"onChange",wait:500,children:(0,r.jsx)(s,{onChange:t=>{e(t)}})}),(0,r.jsxs)(t.p,{children:["Text: ",n]})]})},h=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Button Click Case",id:"button-click-case",level:3},{value:"Input Change Case",id:"input-change-case",level:3},{value:"Example",id:"example",level:2},{value:"Button Click Case",id:"button-click-case-1",level:3},{value:"Input Change Case",id:"input-change-case-1",level:3}];function v(t){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"debouncewrapper",children:"DebounceWrapper"}),"\n",(0,r.jsxs)(n.p,{children:["\uc790\uc2dd \uc694\uc18c\uc5d0\uc11c \ubc1c\uc0dd\ud558\ub294 \uc774\ubca4\ud2b8",(0,r.jsx)(n.code,{children:"(ex: Click Event)"}),"\ub97c debounce\ud574\uc8fc\ub294 \uc720\ud2f8 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"type DebounceParameters = Parameters ;\n\ninterface DebounceWrapperProps {\n children: JSX.Element; // \ud558\ub098\uc758 \uc694\uc18c\ub9cc children prop\uc73c\ub85c \ub118\uaca8\uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n capture: string;\n wait: DebounceParameters[1]; // number\n options?: DebounceParameters[2]; // DebounceSettings\n}\n\nconst DebounceWrapper: ({\n children,\n capture,\n wait,\n options,\n}: DebounceWrapperProps) => React.FunctionComponentElement ;\n"})}),"\n",(0,r.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(n.h3,{id:"button-click-case",children:"Button Click Case"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"import { DebounceWrapper } from '@modern-kit/react'\n\nconst Example = () => {\n const onClick = () => {\n console.log('debounce');\n };\n \n return (\n \n \n \n );\n};\n"})}),"\n",(0,r.jsx)(n.h3,{id:"input-change-case",children:"Input Change Case"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"const Input = ({ onChange }: { onChange: (value: string) => void }) => {\n const [value, setValue] = useState('');\n\n const handleChange = (e: ChangeEvent) => {\n setValue(e.target.value);\n onChange(e.target.value);\n };\n\n return ;\n};\n\nconst Example = () => {\n const [text, setText] = useState('');\n\n const onChange = (value: string) => {\n setText(value);\n };\n\n return (\n <>\n \n \n \n{text}
\n >\n );\n}\n"})}),"\n",(0,r.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,r.jsx)(n.h3,{id:"button-click-case-1",children:"Button Click Case"}),"\n",(0,r.jsx)("p",{style:{marginBottom:"4px"},children:"\ube0c\ub77c\uc6b0\uc800\uc758 \uac1c\ubc1c\uc790 \ub3c4\uad6c\uc758 \ucf58\uc194\uc5d0\uc11c \ub3d9\uc791\uc744 \ud655\uc778\ud558\uc138\uc694."}),"\n",(0,r.jsx)(u.uM,{capture:"onClick",wait:500,children:(0,r.jsx)("button",{onClick:()=>{console.log("debounce")},children:"Button"})}),"\n",(0,r.jsx)("br",{}),"\n","\n","\n",(0,r.jsx)(n.h3,{id:"input-change-case-1",children:"Input Change Case"}),"\n",(0,r.jsx)(p,{})]})}function d(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,r.jsx)(n,{...t,children:(0,r.jsx)(v,{...t})}):v(t)}},7355:(t,n,e)=>{e.d(n,{Z:()=>a,a:()=>u});var r=e(4614);const o={},i=r.createContext(o);function u(t){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof t?t(n):{...n,...t}}),[n,t])}function a(t){let n;return n=t.disableParentContext?"function"==typeof t.components?t.components(o):t.components||o:u(t.components),r.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,e)=>{e.d(n,{D9:()=>Wp,ac:()=>Mp,df:()=>xp,iP:()=>Rp,nA:()=>Ip,uM:()=>bp,wY:()=>Op,yU:()=>Cp});var r=e(4614),o=e(5735),i=(e(2832),"object"==typeof global&&global&&global.Object===Object&&global),u="object"==typeof self&&self&&self.Object===Object&&self,a=i||u||Function("return this")(),c=a.Symbol,f=Object.prototype,l=f.hasOwnProperty,s=f.toString,p=c?c.toStringTag:void 0,h=Object.prototype.toString,v="[object Null]",d="[object Undefined]",g=c?c.toStringTag:void 0;function y(t){return null==t?void 0===t?d:v:g&&g in Object(t)?function(t){var n=l.call(t,p),e=t[p];try{t[p]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(n?t[p]=e:delete t[p]),o}(t):function(t){return h.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var b="[object Symbol]";function m(t){return"symbol"==typeof t||_(t)&&y(t)==b}var j=NaN;function w(t){return"number"==typeof t?t:m(t)?j:+t}function x(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Tt=Lt(ht),Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function qt(t){return function(){return t}}var $t=function(){try{var t=lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Kt=$t?function(t,n){return $t(t,"toString",{configurable:!0,enumerable:!1,value:qt(n),writable:!0})}:V,Vt=Lt(Kt);function Zt(t,n){for(var e=-1,r=null==t?0:t.length;++e -1}var Xt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Qt(t,n,e){var r=n+"";return Vt(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(Ft,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Zt(Xt,(function(e){var r="_."+e[0];n&e[1]&&!Yt(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(r),e)))}var tn=1,nn=2,en=4,rn=8,on=32,un=64;function an(t,n,e,r,o,i,u,a,c,f){var l=n&rn;n|=l?on:un,(n&=~(l?un:on))&en||(n&=~(tn|nn));var s=[t,n,o,l?i:void 0,l?u:void 0,l?void 0:i,l?void 0:u,a,c,f],p=e.apply(void 0,s);return Dt(t)&&Tt(p,s),p.placeholder=r,Qt(p,t,n)}function cn(t){return t.placeholder}var fn=9007199254740991,ln=/^(?:0|[1-9]\d*)$/;function sn(t,n){var e=typeof t;return!!(n=null==n?fn:n)&&("number"==e||"symbol"!=e&&ln.test(t))&&t>-1&&t%1==0&&t 1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof y&&(A=g||gt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,En=4,kn=8,In=128,Sn=256,Mn=Math.min,Wn="Expected a function",Cn=1,Rn=2,Bn=8,zn=16,Dn=32,Pn=64,Ln=Math.max;function Tn(t,n,e,r,o,i,u,c){var f=n&Rn;if(!f&&"function"!=typeof t)throw new TypeError(Wn);var l=r?r.length:0;if(l||(n&=~(Dn|Pn),r=o=void 0),u=void 0===u?u:Ln(K(u),0),c=void 0===c?c:K(c),l-=o?o.length:0,n&Pn){var s=r,p=o;r=o=void 0}var h=f?void 0:kt(t),v=[t,n,e,r,o,s,p,i,u,c];if(h&&function(t,n){var e=t[1],r=n[1],o=e|r,i=o<(On|An|In),u=r==In&&e==kn||r==In&&e==Sn&&t[7].length<=n[8]||r==(In|Sn)&&n[7].length<=n[8]&&e==kn;if(!i&&!u)return t;r&On&&(t[2]=n[2],o|=e&On?0:En);var a=n[3];if(a){var c=t[3];t[3]=c?mt(c,a,n[4]):a,t[4]=c?vn(t[3],xn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?wt(c,a,n[6]):a,t[6]=c?vn(t[5],xn):n[6]),(a=n[7])&&(t[7]=a),r&In&&(t[8]=null==t[8]?n[8]:Mn(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=o}(v,h),t=v[0],n=v[1],e=v[2],r=v[3],o=v[4],!(c=v[9]=void 0===v[9]?f?0:t.length:Ln(v[9]-l,0))&&n&(Bn|zn)&&(n&=~(Bn|zn)),n&&n!=Cn)d=n==Bn||n==zn?function(t,n,e){var r=gt(t);return function o(){for(var i=arguments.length,u=Array(i),c=i,f=cn(o);c--;)u[c]=arguments[c];var l=i<3&&u[0]!==f&&u[i-1]!==f?[]:vn(u,f);return(i-=l.length) -1&&t%1==0&&t<=Hn}function Yn(t){return null!=t&&Jn(t.length)&&!Y(t)}function Xn(t,n,e){if(!z(e))return!1;var r=typeof n;return!!("number"==r?Yn(e)&&sn(n,e.length):"string"==r&&n in e)&&Fn(e[n],t)}function Qn(t){return Gn((function(n,e){var r=-1,o=e.length,i=o>1?e[o-1]:void 0,u=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Xn(e[0],e[1],u)&&(i=o<3?void 0:i,o=1),n=Object(n);++r -1},$e.prototype.set=function(t,n){var e=this.__data__,r=Fe(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};var Ke=lt(a,"Map");function Ve(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function Ze(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n 0&&e(a)?n>1?cr(a,n-1,e,r,o):ir(o,a):r||(o[o.length]=a)}return o}function fr(t){return null!=t&&t.length?cr(t,1):[]}function lr(t){return Vt(Zn(t,void 0,fr),t+"")}var sr=lr(or),pr=xe(Object.getPrototypeOf,Object),hr="[object Object]",vr=Function.prototype,dr=Object.prototype,gr=vr.toString,yr=dr.hasOwnProperty,_r=gr.call(Object);function br(t){if(!_(t)||y(t)!=hr)return!1;var n=pr(t);if(null===n)return!0;var e=yr.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&gr.call(e)==_r}function mr(t){if(!_(t))return!1;var n=y(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!br(t)}var jr=Gn((function(t,n){try{return _t(t,void 0,n)}catch(t){return mr(t)?t:new Error(t)}}));function wr(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=K(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var xr=Gn((function(t,n,e){var r=1;if(e.length){var o=vn(e,cn(xr));r|=32}return Tn(t,r,n,e,o)}));xr.placeholder={};var Or=lr((function(t,n){return Zt(n,(function(n){n=nr(n),Nn(t,n,xr(t[n],t))})),t})),Ar=Gn((function(t,n,e){var r=3;if(e.length){var o=vn(e,cn(Ar));r|=32}return Tn(n,r,t,e,o)}));function Er(t,n,e){var r=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var i=Array(o);++r =r?t:Er(t,n,e)}Ar.placeholder={};var Ir=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Sr(t){return Ir.test(t)}var Mr="\\ud800-\\udfff",Wr="["+Mr+"]",Cr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Rr="\\ud83c[\\udffb-\\udfff]",Br="[^"+Mr+"]",zr="(?:\\ud83c[\\udde6-\\uddff]){2}",Dr="[\\ud800-\\udbff][\\udc00-\\udfff]",Pr="(?:"+Cr+"|"+Rr+")?",Lr="[\\ufe0e\\ufe0f]?",Tr=Lr+Pr+"(?:\\u200d(?:"+[Br,zr,Dr].join("|")+")"+Lr+Pr+")*",Ur="(?:"+[Br+Cr+"?",Cr,zr,Dr,Wr].join("|")+")",Nr=RegExp(Rr+"(?="+Rr+")|"+Ur+Tr,"g");function Fr(t){return Sr(t)?function(t){return t.match(Nr)||[]}(t):function(t){return t.split("")}(t)}function qr(t){return function(n){var e=Sr(n=Xe(n))?Fr(n):void 0,r=e?e[0]:n.charAt(0),o=e?kr(e,1).join(""):n.slice(1);return r[t]()+o}}var $r=qr("toUpperCase");function Kr(t){return $r(Xe(t).toLowerCase())}function Vr(t,n,e,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(e=t[++o]);++o=n?t:n)),t}function zo(t){var n=this.__data__=new $e(t);this.size=n.size}function Do(t,n){return t&&Kn(n,ke(n),t)}zo.prototype.clear=function(){this.__data__=new $e,this.size=0},zo.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},zo.prototype.get=function(t){return this.__data__.get(t)},zo.prototype.has=function(t){return this.__data__.has(t)},zo.prototype.set=function(t,n){var e=this.__data__;if(e instanceof $e){var r=e.__data__;if(!Ke||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ze(r)}return e.set(t,n),this.size=e.size,this};var Po="object"==typeof exports&&exports&&!exports.nodeType&&exports,Lo=Po&&"object"==typeof module&&module&&!module.nodeType&&module,To=Lo&&Lo.exports===Po?a.Buffer:void 0,Uo=To?To.allocUnsafe:void 0;function No(t,n){if(n)return t.slice();var e=t.length,r=Uo?Uo(e):new t.constructor(e);return t.copy(r),r}function Fo(t,n){for(var e=-1,r=null==t?0:t.length,o=0,i=[];++e a))return!1;var f=i.get(t),l=i.get(n);if(f&&l)return f==n&&l==t;var s=-1,p=!0,h=e&Xi?new Gi:void 0;for(i.set(t,n),i.set(n,t);++s=n||e<0||s&&t-f>=i}function d(){var t=ta();if(v(t))return g(t);a=setTimeout(d,function(t){var e=n-(t-c);return s?ea(e,i-(t-f)):e}(t))}function g(t){return a=void 0,p&&r?h(t):(r=o=void 0,u)}function y(){var t=ta(),e=v(t);if(r=arguments,o=this,c=t,e){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),l?h(t):u}(c);if(s)return clearTimeout(a),a=setTimeout(d,n),h(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=N(n)||0,z(e)&&(l=!!e.leading,i=(s="maxWait"in e)?na(N(e.maxWait)||0,n):i,p="trailing"in e?!!e.trailing:p),y.cancel=function(){void 0!==a&&clearTimeout(a),f=0,r=c=o=a=void 0},y.flush=function(){return void 0===a?u:g(ta())},y}var oa=Object.prototype,ia=oa.hasOwnProperty,ua=Gn((function(t,n){t=Object(t);var e=-1,r=n.length,o=r>2?n[2]:void 0;for(o&&Xn(n[0],n[1],o)&&(r=1);++e =ba&&(i=Ji,u=!1,n=new Gi(n));t:for(;++o":">",'"':""","'":"'"}),La=/[&<>"']/g,Ta=RegExp(La.source);function Ua(t){return(t=Xe(t))&&Ta.test(t)?t.replace(La,Pa):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.source);function qa(t,n){for(var e=-1,r=null==t?0:t.length;++e -1?o[i?n[u]:u]:void 0}}var Ga=Math.max;function Ha(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:K(e);return o<0&&(o=Ga(r+o,0)),Gt(t,Uu(n),o)}var Ja=Za(Ha);function Ya(t,n,e){var r;return e(t,(function(t,e,o){if(n(t,e,o))return r=e,!1})),r}var Xa=Math.max,Qa=Math.min;function tc(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==e&&(o=K(e),o=e<0?Xa(r+o,0):Qa(o,r-1)),Gt(t,Uu(n),o,!0)}var nc=Za(tc);function ec(t){return t&&t.length?t[0]:void 0}function rc(t,n){var e=-1,r=Yn(t)?Array(t.length):[];return Zu(t,(function(t,o,i){r[++e]=n(t,o,i)})),r}function oc(t,n){return(O(t)?x:rc)(t,Uu(n))}var ic=So("floor");function uc(t){return lr((function(n){var e=n.length,r=e,o=Wt.prototype.thru;for(t&&n.reverse();r--;){var i=n[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==Mt(i))var u=new Wt([],!0)}for(r=u?r:e;++r n}function hc(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=N(n),e=N(e)),t(n,e)}}var vc=hc(pc),dc=hc((function(t,n){return t>=n})),gc=Object.prototype.hasOwnProperty;function yc(t,n){return null!=t&&gc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&y(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,ke(t))}var Oc=Math.max,Ac=Math.max,Ec=Math.min;function kc(t,n,e){for(var r=e?_a:Yt,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=x(l,ve(n))),c=Ec(l.length,c),a[u]=!e&&(n||o>=120&&l.length>=120)?new Gi(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s 1),n})),Kn(t,Jo(t),e),r&&(e=Zi(e,7,Of));for(var o=n.length;o--;)xf(e,n[o]);return e}));function Ef(t,n,e,r){if(!z(t))return t;for(var o=-1,i=(n=Qe(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||r&&u&&c||!e&&c||!o)return 1;if(!r&&!i&&!f&&t =a?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function Wf(t){return lr((function(n){return n=x(n,ve(Uu)),Gn((function(e){var r=this;return t(n,(function(t){return _t(t,r,e)}))}))}))}var Cf=Wf(x),Rf=Gn,Bf=Math.min,zf=Rf((function(t,n){var e=(n=1==n.length&&O(n[0])?x(n[0],ve(Uu)):x(cr(n,1),ve(Uu))).length;return Gn((function(r){for(var o=-1,i=Bf(r.length,e);++oLf)return e;do{n%2&&(e+=t),(n=Tf(n/2))&&(t+=t)}while(n);return e}var Nf=Lu("length"),Ff="\\ud800-\\udfff",qf="["+Ff+"]",$f="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Kf="\\ud83c[\\udffb-\\udfff]",Vf="[^"+Ff+"]",Zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Gf="[\\ud800-\\udbff][\\udc00-\\udfff]",Hf="(?:"+$f+"|"+Kf+")?",Jf="[\\ufe0e\\ufe0f]?",Yf=Jf+Hf+"(?:\\u200d(?:"+[Vf,Zf,Gf].join("|")+")"+Jf+Hf+")*",Xf="(?:"+[Vf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Qf=RegExp(Kf+"(?="+Kf+")|"+Xf+Yf,"g");function tl(t){return Sr(t)?function(t){for(var n=Qf.lastIndex=0;Qf.test(t);)++n;return n}(t):Nf(t)}var nl=Math.ceil;function el(t,n){var e=(n=void 0===n?" ":I(n)).length;if(e<2)return e?Uf(n,t):n;var r=Uf(n,nl(t/tl(n)));return Sr(n)?kr(Fr(r),0,t).join(""):r.slice(0,t)}var rl=Math.ceil,ol=Math.floor,il=/^\s+/,ul=a.parseInt,al=Gn((function(t,n){return Tn(t,32,void 0,n,vn(n,cn(al)))}));al.placeholder={};var cl=Gn((function(t,n){return Tn(t,64,void 0,n,vn(n,cn(cl)))}));cl.placeholder={};var fl=Hu((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),ll=lr((function(t,n){return null==t?{}:function(t,n){return kf(t,n,(function(n,e){return Bu(t,e)}))}(t,n)}));function sl(t,n,e,r){for(var o=e-1,i=t.length;++o-1;)a!==t&&pl.call(a,c,1),pl.call(t,c,1);return t}function vl(t,n){return t&&t.length&&n&&n.length?hl(t,n):t}var dl=Gn(vl),gl=Array.prototype.splice;function yl(t,n){for(var e=t?n.length:0,r=e-1;e--;){var o=n[e];if(e==r||o!==i){var i=o;sn(o)?gl.call(t,o,1):xf(t,o)}}return t}var _l=lr((function(t,n){var e=null==t?0:t.length,r=or(t,n);return yl(t,x(n,(function(t){return sn(t,e)?+t:t})).sort(Sf)),r})),bl=Math.floor,ml=Math.random;function jl(t,n){return t+bl(ml()*(n-t+1))}var wl=parseFloat,xl=Math.min,Ol=Math.random,Al=Math.ceil,El=Math.max;function kl(t){return function(n,e,r){return r&&"number"!=typeof r&&Xn(n,e,r)&&(e=r=void 0),n=$(n),void 0===e?(e=n,n=0):e=$(e),function(t,n,e,r){for(var o=-1,i=El(Al((n-t)/(e||1)),0),u=Array(i);i--;)u[r?i:++o]=t,t+=e;return u}(n,e,r=void 0===r?n 1&&Xn(t,n[0],n[1])?n=[]:e>2&&Xn(n[0],n[1],n[2])&&(n=[n[0]]),Mf(t,cr(n,1),[])})),Vl=4294967294,Zl=Math.floor,Gl=Math.min;function Hl(t,n,e,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=e(n))!=n,a=null===n,c=m(n),f=void 0===n;o>>1,u=t[i];null!==u&&!m(u)&&(e?u<=n:u /g,as={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:us,variable:"",imports:{_:{escape:Ua}}},cs=/\b__p \+= '';/g,fs=/\b(__p \+=) '' \+/g,ls=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ss=/[()=,{}\[\]\/\s]/,ps=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hs=/($^)/,vs=/['\n\r\u2028\u2029\\]/g,ds=Object.prototype.hasOwnProperty;function gs(t,n){return n(t)}var ys=4294967295,_s=Math.min;function bs(t,n){var e=t;return e instanceof At&&(e=e.value()),Vr(n,(function(t,n){return n.func.apply(n.thisArg,ir([t],n.args))}),e)}function ms(){return bs(this.__wrapped__,this.__actions__)}function js(t,n){for(var e=t.length;e--&&Jt(n,t[e],0)>-1;);return e}function ws(t,n){for(var e=-1,r=t.length;++e -1;);return e}var xs=/^\s+/,Os=/\w*$/,As=Zr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Es=/&(?:amp|lt|gt|quot|#39);/g,ks=RegExp(Es.source),Is=Qo&&1/nu(new Qo([,-0]))[1]==1/0?function(t){return new Qo(t)}:Et,Ss=200;function Ms(t,n,e){var r=-1,o=Yt,i=t.length,u=!0,a=[],c=a;if(e)u=!1,o=_a;else if(i>=Ss){var f=n?null:Is(t);if(f)return nu(f);u=!1,o=Ji,c=new Gi}else c=n?[]:a;t:for(;++r1||this.__actions__.length)&&r instanceof At&&sn(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:gs,args:[o],thisArg:void 0}),new Wt(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Fs(t,n,e){var r=t.length;if(r<2)return r?Ms(t[0]):[];for(var o=-1,i=Array(r);++o 1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,Ps(t,e)})),Ys={chunk:function(t,n,e){n=(e?Xn(t,n,e):void 0===n)?1:Ro(K(n),0);var r=null==t?0:t.length;if(!r||n<1)return[];for(var o=0,i=0,u=Array(Co(r/n));o o?0:o+e),(r=void 0===r||r>o?o:K(r))<0&&(r+=o),r=e>r?0:Ka(r);e -1:!!o&&Jt(t,n,e)>-1},invokeMap:Fc,keyBy:ef,map:oc,orderBy:function(t,n,e,r){return null==t?[]:(O(n)||(n=null==n?[]:[n]),O(e=r?void 0:e)||(e=null==e?[]:[e]),Mf(t,n,e))},partition:fl,reduce:function(t,n,e){var r=O(t)?Vr:Wl,o=arguments.length<3;return r(t,Uu(n),e,o,Zu)},reduceRight:function(t,n,e){var r=O(t)?Cl:Wl,o=arguments.length<3;return r(t,Uu(n),e,o,Ca)},reject:function(t,n){return(O(t)?Fo:Va)(t,bf(Uu(n)))},sample:function(t){return(O(t)?Dl:Pl)(t)},sampleSize:function(t,n,e){return n=(e?Xn(t,n,e):void 0===n)?1:K(n),(O(t)?Tl:Ul)(t,n)},shuffle:function(t){return(O(t)?Nl:Fl)(t)},size:function(t){if(null==t)return 0;if(Yn(t))return jc(t)?tl(t):t.length;var n=si(t);return"[object Map]"==n||"[object Set]"==n?t.size:Ee(t).length},some:function(t,n,e){var r=O(t)?Hi:$l;return e&&Xn(t,n,e)&&(n=void 0),r(t,Uu(n))},sortBy:Kl},Qs=ta,tp={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=K(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:Un,before:wr,bind:xr,bindKey:Ar,curry:Xu,curryRight:Qu,debounce:ra,defer:ga,delay:ya,flip:function(t){return Tn(t,512)},memoize:Ge,negate:bf,once:function(t){return wr(2,t)},overArgs:zf,partial:al,partialRight:cl,rearg:Ml,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Gn(t,n=void 0===n?n:K(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:Xl(K(n),0),Gn((function(e){var r=e[n],o=kr(e,0,n);return r&&ir(o,r),_t(t,this,o)}))},throttle:function(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return z(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),ra(t,n,{leading:r,maxWait:n,trailing:o})},unary:function(t){return Un(t,1)},wrap:function(t,n){return al(ka(n),t)}},np={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return O(t)?t:[t]},clone:function(t){return Zi(t,4)},cloneDeep:function(t){return Zi(t,5)},cloneDeepWith:function(t,n){return Zi(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Zi(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Nu(t,n,ke(n))},eq:Fn,gt:vc,gte:dc,isArguments:ae,isArray:O,isArrayBuffer:$c,isArrayLike:Yn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==y(t)},isBuffer:pe,isDate:Vc,isElement:function(t){return _(t)&&1===t.nodeType&&!br(t)},isEmpty:function(t){if(null==t)return!0;if(Yn(t)&&(O(t)||"string"==typeof t||"function"==typeof t.splice||pe(t)||me(t)||ae(t)))return!t.length;var n=si(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(ne(t))return!Ee(t).length;for(var e in t)if(Zc.call(t,e))return!1;return!0},isEqual:function(t,n){return Ou(t,n)},isEqualWith:function(t,n,e){var r=(e="function"==typeof e?e:void 0)?e(t,n):void 0;return void 0===r?Ou(t,n,void 0,e):!!r},isError:mr,isFinite:function(t){return"number"==typeof t&&Gc(t)},isFunction:Y,isInteger:Hc,isLength:Jn,isMap:Ui,isMatch:function(t,n){return t===n||ku(t,n,Su(n))},isMatchWith:function(t,n,e){return e="function"==typeof e?e:void 0,ku(t,n,Su(n),e)},isNaN:function(t){return Jc(t)&&t!=+t},isNative:function(t){if(Yc(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ft(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:Jc,isObject:z,isObjectLike:_,isPlainObject:br,isRegExp:Qc,isSafeInteger:function(t){return Hc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Fi,isString:jc,isSymbol:m,isTypedArray:me,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return _(t)&&"[object WeakMap]"==si(t)},isWeakSet:function(t){return _(t)&&"[object WeakSet]"==y(t)},lt:ff,lte:lf,toArray:jf,toFinite:$,toInteger:K,toLength:Ka,toNumber:N,toPlainObject:la,toSafeInteger:function(t){return t?Bo(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Xe},ep={add:M,ceil:Mo,divide:Aa,floor:ic,max:function(t){return t&&t.length?sf(t,V,pc):void 0},maxBy:function(t,n){return t&&t.length?sf(t,Uu(n),pc):void 0},mean:function(t){return hf(t,V)},meanBy:function(t,n){return hf(t,Uu(n))},min:function(t){return t&&t.length?sf(t,V,cf):void 0},minBy:function(t,n){return t&&t.length?sf(t,Uu(n),cf):void 0},multiply:_f,round:zl,subtract:ts,sum:function(t){return t&&t.length?pf(t,V):0},sumBy:function(t,n){return t&&t.length?pf(t,Uu(n)):0}},rp={assign:Se,assignIn:Ce,assignInWith:Re,assignWith:Be,at:sr,create:function(t,n){var e=dt(t);return null==n?e:Do(e,n)},defaults:ua,defaultsDeep:va,entries:za,entriesIn:Da,extend:Ce,extendWith:Re,findKey:function(t,n){return Ya(t,Uu(n),Ku)},findLastKey:function(t,n){return Ya(t,Uu(n),Wa)},forIn:function(t,n){return null==t?t:$u(t,ka(n),We)},forInRight:function(t,n){return null==t?t:Ma(t,ka(n),We)},forOwn:function(t,n){return t&&Ku(t,ka(n))},forOwnRight:function(t,n){return t&&Wa(t,ka(n))},functions:function(t){return null==t?[]:fc(t,ke(t))},functionsIn:function(t){return null==t?[]:fc(t,We(t))},get:rr,has:function(t,n){return null!=t&&Ru(t,n,yc)},hasIn:Bu,invert:Bc,invertBy:Lc,invoke:Nc,keys:ke,keysIn:We,mapKeys:function(t,n){var e={};return n=Uu(n),Ku(t,(function(t,r,o){Nn(e,n(t,r,o),t)})),e},mapValues:function(t,n){var e={};return n=Uu(n),Ku(t,(function(t,r,o){Nn(e,r,n(t,r,o))})),e},merge:vf,mergeWith:ha,omit:Af,omitBy:function(t,n){return If(t,bf(Uu(n)))},pick:ll,pickBy:If,result:function(t,n,e){var r=-1,o=(n=Qe(n,t)).length;for(o||(o=1,t=void 0);++r =this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},plant:function(t){for(var n,e=this;e instanceof xt;){var r=Rt(e);r.__index__=0,r.__values__=void 0,n?o.__wrapped__=r:n=r;var o=r;e=e.__wrapped__}return o.__wrapped__=t,n},reverse:function(){var t=this.__wrapped__;if(t instanceof At){var n=t;return this.__actions__.length&&(n=new At(this)),(n=n.reverse()).__actions__.push({func:gs,args:[Bl],thisArg:void 0}),new Wt(n,this.__chain__)}return this.thru(Bl)},tap:function(t,n){return n(t),t},thru:gs,toIterator:function(){return this},toJSON:ms,value:ms,valueOf:ms,wrapperChain:function(){return Wo(this)}},ip={camelCase:Eo,capitalize:Kr,deburr:Yr,endsWith:function(t,n,e){t=Xe(t),n=I(n);var r=t.length,o=e=void 0===e?r:Bo(K(e),0,r);return(e-=n.length)>=0&&t.slice(e,o)==n},escape:Ua,escapeRegExp:function(t){return(t=Xe(t))&&Fa.test(t)?t.replace(Na,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,e){t=Xe(t);var r=(n=K(n))?tl(t):0;if(!n||r>=n)return t;var o=(n-r)/2;return el(ol(o),e)+t+el(rl(o),e)},padEnd:function(t,n,e){t=Xe(t);var r=(n=K(n))?tl(t):0;return n&&r >>0)?(t=Xe(t))&&("string"==typeof n||null!=n&&!Qc(n))&&!(n=I(n))&&Sr(t)?kr(Fr(t),0,e):t.split(n,e):[]},startCase:Ql,startsWith:function(t,n,e){return t=Xe(t),e=null==e?0:Bo(K(e),0,t.length),n=I(n),t.slice(e,e+n.length)==n},template:function(t,n,e){var r=as.imports._.templateSettings||as;e&&Xn(t,n,e)&&(n=void 0),t=Xe(t),n=Re({},n,r,rs);var o,i,u=Re({},n.imports,r.imports,rs),a=ke(u),c=wc(u,a),f=0,l=n.interpolate||hs,s="__p += '",p=RegExp((n.escape||hs).source+"|"+l.source+"|"+(l===us?ps:hs).source+"|"+(n.evaluate||hs).source+"|$","g"),h=ds.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(n,e,r,u,a,c){return r||(r=u),s+=t.slice(f,c).replace(vs,is),e&&(o=!0,s+="' +\n__e("+e+") +\n'"),a&&(i=!0,s+="';\n"+a+";\n__p += '"),r&&(s+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),s+="';\n";var v=ds.call(n,"variable")&&n.variable;if(v){if(ss.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(i?s.replace(cs,""):s).replace(fs,"$1").replace(ls,"$1;"),s="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}";var d=jr((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,mr(d))throw d;return d},templateSettings:as,toLower:function(t){return Xe(t).toLowerCase()},toUpper:function(t){return Xe(t).toUpperCase()},trim:function(t,n,e){if((t=Xe(t))&&(e||void 0===n))return B(t);if(!t||!(n=I(n)))return t;var r=Fr(t),o=Fr(n);return kr(r,ws(r,o),js(r,o)+1).join("")},trimEnd:function(t,n,e){if((t=Xe(t))&&(e||void 0===n))return t.slice(0,C(t)+1);if(!t||!(n=I(n)))return t;var r=Fr(t);return kr(r,0,js(r,Fr(n))+1).join("")},trimStart:function(t,n,e){if((t=Xe(t))&&(e||void 0===n))return t.replace(xs,"");if(!t||!(n=I(n)))return t;var r=Fr(t);return kr(r,ws(r,Fr(n))).join("")},truncate:function(t,n){var e=30,r="...";if(z(n)){var o="separator"in n?n.separator:o;e="length"in n?K(n.length):e,r="omission"in n?I(n.omission):r}var i=(t=Xe(t)).length;if(Sr(t)){var u=Fr(t);i=u.length}if(e>=i)return t;var a=e-tl(r);if(a<1)return r;var c=u?kr(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+r;if(u&&(a+=c.length-a),Qc(o)){if(t.slice(a).search(o)){var f,l=c;for(o.global||(o=RegExp(o.source,Xe(Os.exec(o))+"g")),o.lastIndex=0;f=o.exec(l);)var s=f.index;c=c.slice(0,void 0===s?a:s)}}else if(t.indexOf(I(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},unescape:function(t){return(t=Xe(t))&&ks.test(t)?t.replace(Es,As):t},upperCase:Ts,upperFirst:$r,words:xo},up={attempt:jr,bindAll:Or,cond:function(t){var n=null==t?0:t.length,e=Uu;return t=n?x(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[e(t[0]),t[1]]})):[],Gn((function(e){for(var r=-1;++r 9007199254740991)return[];var e=ys,r=_s(t,ys);n=ka(n),t-=ys;for(var o=ee(r,n);++e =bc(n,e)&&t<_c(n,e)}(t=N(t),n,e)},zt.invoke=rp.invoke,zt.isArguments=np.isArguments,zt.isArray=O,zt.isArrayBuffer=np.isArrayBuffer,zt.isArrayLike=np.isArrayLike,zt.isArrayLikeObject=np.isArrayLikeObject,zt.isBoolean=np.isBoolean,zt.isBuffer=np.isBuffer,zt.isDate=np.isDate,zt.isElement=np.isElement,zt.isEmpty=np.isEmpty,zt.isEqual=np.isEqual,zt.isEqualWith=np.isEqualWith,zt.isError=np.isError,zt.isFinite=np.isFinite,zt.isFunction=np.isFunction,zt.isInteger=np.isInteger,zt.isLength=np.isLength,zt.isMap=np.isMap,zt.isMatch=np.isMatch,zt.isMatchWith=np.isMatchWith,zt.isNaN=np.isNaN,zt.isNative=np.isNative,zt.isNil=np.isNil,zt.isNull=np.isNull,zt.isNumber=np.isNumber,zt.isObject=z,zt.isObjectLike=np.isObjectLike,zt.isPlainObject=np.isPlainObject,zt.isRegExp=np.isRegExp,zt.isSafeInteger=np.isSafeInteger,zt.isSet=np.isSet,zt.isString=np.isString,zt.isSymbol=np.isSymbol,zt.isTypedArray=np.isTypedArray,zt.isUndefined=np.isUndefined,zt.isWeakMap=np.isWeakMap,zt.isWeakSet=np.isWeakSet,zt.join=Ys.join,zt.kebabCase=ip.kebabCase,zt.last=wa,zt.lastIndexOf=Ys.lastIndexOf,zt.lowerCase=ip.lowerCase,zt.lowerFirst=ip.lowerFirst,zt.lt=np.lt,zt.lte=np.lte,zt.max=ep.max,zt.maxBy=ep.maxBy,zt.mean=ep.mean,zt.meanBy=ep.meanBy,zt.min=ep.min,zt.minBy=ep.minBy,zt.stubArray=up.stubArray,zt.stubFalse=up.stubFalse,zt.stubObject=up.stubObject,zt.stubString=up.stubString,zt.stubTrue=up.stubTrue,zt.multiply=ep.multiply,zt.nth=Ys.nth,zt.noop=up.noop,zt.now=Qs,zt.pad=ip.pad,zt.padEnd=ip.padEnd,zt.padStart=ip.padStart,zt.parseInt=ip.parseInt,zt.random=function(t,n,e){if(e&&"boolean"!=typeof e&&Xn(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=$(t),void 0===n?(n=t,t=0):n=$(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var o=Ol();return xl(t+o*(n-t+wl("1e-"+((o+"").length-1))),n)}return jl(t,n)},zt.reduce=Xs.reduce,zt.reduceRight=Xs.reduceRight,zt.repeat=ip.repeat,zt.replace=ip.replace,zt.result=rp.result,zt.round=ep.round,zt.sample=Xs.sample,zt.size=Xs.size,zt.snakeCase=ip.snakeCase,zt.some=Xs.some,zt.sortedIndex=Ys.sortedIndex,zt.sortedIndexBy=Ys.sortedIndexBy,zt.sortedIndexOf=Ys.sortedIndexOf,zt.sortedLastIndex=Ys.sortedLastIndex,zt.sortedLastIndexBy=Ys.sortedLastIndexBy,zt.sortedLastIndexOf=Ys.sortedLastIndexOf,zt.startCase=ip.startCase,zt.startsWith=ip.startsWith,zt.subtract=ep.subtract,zt.sum=ep.sum,zt.sumBy=ep.sumBy,zt.template=ip.template,zt.times=up.times,zt.toFinite=np.toFinite,zt.toInteger=K,zt.toLength=np.toLength,zt.toLower=ip.toLower,zt.toNumber=np.toNumber,zt.toSafeInteger=np.toSafeInteger,zt.toString=np.toString,zt.toUpper=ip.toUpper,zt.trim=ip.trim,zt.trimEnd=ip.trimEnd,zt.trimStart=ip.trimStart,zt.truncate=ip.truncate,zt.unescape=ip.unescape,zt.uniqueId=up.uniqueId,zt.upperCase=ip.upperCase,zt.upperFirst=ip.upperFirst,zt.each=Xs.forEach,zt.eachRight=Xs.forEachRight,zt.first=Ys.head,gp(zt,(Gs={},Ku(zt,(function(t,n){pp.call(zt.prototype,n)||(Gs[n]=t)})),Gs),{chain:!1}),zt.VERSION="4.17.21",(zt.templateSettings=ip.templateSettings).imports._=zt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zt[t].placeholder=zt})),Zt(["drop","take"],(function(t,n){At.prototype[t]=function(e){e=void 0===e?1:vp(K(e),0);var r=this.__filtered__&&!n?new At(this):this.clone();return r.__filtered__?r.__takeCount__=dp(e,r.__takeCount__):r.__views__.push({size:dp(e,lp),type:t+(r.__dir__<0?"Right":"")}),r},At.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Zt(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;At.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Uu(t),type:e}),n.__filtered__=n.__filtered__||r,n}})),Zt(["head","last"],(function(t,n){var e="take"+(n?"Right":"");At.prototype[t]=function(){return this[e](1).value()[0]}})),Zt(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");At.prototype[t]=function(){return this.__filtered__?new At(this):this[e](1)}})),At.prototype.compact=function(){return this.filter(V)},At.prototype.find=function(t){return this.filter(t).head()},At.prototype.findLast=function(t){return this.reverse().find(t)},At.prototype.invokeMap=Gn((function(t,n){return"function"==typeof t?new At(this):this.map((function(e){return Uc(e,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(t)))},At.prototype.slice=function(t,n){t=K(t);var e=this;return e.__filtered__&&(t>0||n<0)?new At(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=K(n))<0?e.dropRight(-n):e.take(n-t)),e)},At.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},At.prototype.toArray=function(){return this.take(lp)},Ku(At.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=zt[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);o&&(zt.prototype[n]=function(){var n=this.__wrapped__,u=r?[1]:arguments,a=n instanceof At,c=u[0],f=a||O(n),l=function(t){var n=o.apply(zt,ir([t],u));return r&&s?n[0]:n};f&&e&&"function"==typeof c&&1!=c.length&&(a=f=!1);var s=this.__chain__,p=!!this.__actions__.length,h=i&&!s,v=a&&!p;if(!i&&f){n=v?n:new At(this);var d=t.apply(n,u);return d.__actions__.push({func:gs,args:[l],thisArg:void 0}),new Wt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?r?d.value()[0]:d.value():d)})})),Zt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=sp[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zt.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(O(o)?o:[],t)}return this[e]((function(e){return n.apply(O(e)?e:[],t)}))}})),Ku(At.prototype,(function(t,n){var e=zt[n];if(e){var r=e.name+"";pp.call(It,r)||(It[r]=[]),It[r].push({name:n,func:e})}})),It[jn(void 0,2).name]=[{name:"wrapper",func:void 0}],At.prototype.clone=function(){var t=new At(this.__wrapped__);return t.__actions__=Ct(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ct(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ct(this.__views__),t},At.prototype.reverse=function(){if(this.__filtered__){var t=new At(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},At.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=O(t),r=n<0,o=e?t.length:0,i=function(t,n,e){for(var r=-1,o=e.length;++r {const n=(0,r.useRef)(t);return(0,r.useEffect)((()=>{n.current=t}),[t]),(0,r.useCallback)(((...t)=>n.current(...t)),[])},_p=(t,n,e={})=>{const o=yp(t),i=(0,r.useMemo)((()=>ra(o,n,e)),[o,n,e]);return(t=>{const n=yp(t);(0,r.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},bp=({children:t,capture:n,wait:e,options:o})=>{const i=r.Children.only(t),u=_p(((...t)=>{const e=null==i?void 0:i.props;if(e)return"function"==typeof e[n]?e[n](...t):void 0}),e,o);return(0,r.cloneElement)(i,{[n]:u})};function mp(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o {const u=(0,r.useRef)(null),a=yp(t),c=(0,r.useCallback)((([t],e)=>{if(t&&t.isIntersecting){const r=t.target;a&&a(t),n&&e.unobserve(r)}}),[a,n]);return(0,r.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(c,{root:e,rootMargin:i,threshold:o});return n.observe(t),()=>{n.unobserve(t)}}),[e,o,i,c]),u},wp=(...t)=>(0,r.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),xp=(0,r.forwardRef)(((t,n)=>{const{action:e,calledOnce:r,threshold:i,root:u,rootMargin:a}=t,c=mp(t,["action","calledOnce","threshold","root","rootMargin"]),f=jp({action:e,calledOnce:r,threshold:i,root:u,rootMargin:a});return(0,o.jsx)("div",Object.assign({ref:wp(n,f)},c,{children:t.children}))})),Op=(0,r.forwardRef)(((t,n)=>{var{src:e,style:i,threshold:u,root:a,rootMargin:c}=t,f=mp(t,["src","style","threshold","root","rootMargin"]);const l=jp({action:t=>{t.target.src=e},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,r.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,o.jsx)("img",Object.assign({},f,{ref:wp(n,l),style:s}))}));"function"==typeof SuppressedError&&SuppressedError;const Ap=()=>"undefined"==typeof window&&"undefined"!=typeof global,Ep=()=>!Ap(),kp=Ep()?r.useLayoutEffect:r.useEffect;(0,r.createContext)({parentPortalElement:null});const Ip=({children:t,condition:n})=>{const e=(t=>"function"==typeof t?t():t)(n);return e?(0,o.jsx)(r.Fragment,{children:t}):null},Sp=t=>!!Ep()&&window.matchMedia(t).matches,Mp=t=>{const[n,e]=(0,r.useState)(Sp(t)),o=(0,r.useCallback)((()=>{e(Sp(t))}),[t]);return(0,r.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)}),[t,o]),{isMatch:n}},Wp=t=>{const n=(0,r.useRef)(t);return(0,r.useEffect)((()=>{n.current=t}),[t]),n.current},Cp=t=>{const[n,e]=(0,r.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),o=(0,r.useRef)(null),i=yp(t),u=(0,r.useCallback)((([t])=>{t&&(i(t),e(t.contentRect))}),[i]);return(0,r.useEffect)((()=>{const t=o.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:o,contentRect:n}},Rp=(t={})=>{const{isDebounce:n=!1,wait:e=300}=t,[o,i]=(0,r.useState)({width:null,height:null}),u=(0,r.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=_p(u,e),c=(0,r.useMemo)((()=>n?a:u),[u,n,a]);return kp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),o}}}]); \ No newline at end of file diff --git a/assets/js/4fcbd706.993f9b9f.js b/assets/js/4fcbd706.79f90fba.js similarity index 97% rename from assets/js/4fcbd706.993f9b9f.js rename to assets/js/4fcbd706.79f90fba.js index 837e483af..d7caf1b51 100644 --- a/assets/js/4fcbd706.993f9b9f.js +++ b/assets/js/4fcbd706.79f90fba.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1698],{8710:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var n=r(5735),s=r(7355);const a={},c="repeatCharacters",o={id:"utils/string/repeatCharacters",title:"repeatCharacters",description:"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc758 \uac01 \ubb38\uc790\ub97c \uc8fc\uc5b4\uc9c4 \ubc18\ubcf5 \ud69f\uc218\ub9cc\ud07c \ubc18\ubcf5\ud574\uc11c \uc0c8\ub85c\uc6b4 \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/string/repeatCharacters.md",sourceDirName:"utils/string",slug:"/utils/string/repeatCharacters",permalink:"/modern-kit/docs/utils/string/repeatCharacters",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"removeSpecialCharacters",permalink:"/modern-kit/docs/utils/string/removeSpecialCharacters"},next:{title:"hasProperty",permalink:"/modern-kit/docs/utils/validator/hasProperty"}},i={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function d(e){const t={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"repeatcharacters",children:"repeatCharacters"}),"\n",(0,n.jsx)(t.p,{children:"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc758 \uac01 \ubb38\uc790\ub97c \uc8fc\uc5b4\uc9c4 \ubc18\ubcf5 \ud69f\uc218\ub9cc\ud07c \ubc18\ubcf5\ud574\uc11c \uc0c8\ub85c\uc6b4 \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-tsx",children:"const repeatCharacters: (value: string, repeatCount: number) => string\n"})}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-ts",children:"import { repeatCharacters } from '@modern-kit/utils';\n\nconst str1 = 'A!B@C';\nconst repeatedStr1 = repeatCharacters(str1, 2); // 'AA!!BB@@CC'\n\nconst str2 = 'Hello';\nconst repeatedStr2 = repeatCharacters(str2, 3); // 'HHHeeelllooo'\n"})})]})}function p(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},7355:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>c});var n=r(4614);const s={},a=n.createContext(s);function c(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),n.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1698],{4182:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var n=r(5735),s=r(7355);const a={},c="repeatCharacters",o={id:"utils/string/repeatCharacters",title:"repeatCharacters",description:"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc758 \uac01 \ubb38\uc790\ub97c \uc8fc\uc5b4\uc9c4 \ubc18\ubcf5 \ud69f\uc218\ub9cc\ud07c \ubc18\ubcf5\ud574\uc11c \uc0c8\ub85c\uc6b4 \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/string/repeatCharacters.md",sourceDirName:"utils/string",slug:"/utils/string/repeatCharacters",permalink:"/modern-kit/docs/utils/string/repeatCharacters",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"removeSpecialCharacters",permalink:"/modern-kit/docs/utils/string/removeSpecialCharacters"},next:{title:"hasProperty",permalink:"/modern-kit/docs/utils/validator/hasProperty"}},i={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function d(e){const t={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"repeatcharacters",children:"repeatCharacters"}),"\n",(0,n.jsx)(t.p,{children:"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc758 \uac01 \ubb38\uc790\ub97c \uc8fc\uc5b4\uc9c4 \ubc18\ubcf5 \ud69f\uc218\ub9cc\ud07c \ubc18\ubcf5\ud574\uc11c \uc0c8\ub85c\uc6b4 \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-tsx",children:"const repeatCharacters: (value: string, repeatCount: number) => string\n"})}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-ts",children:"import { repeatCharacters } from '@modern-kit/utils';\n\nconst str1 = 'A!B@C';\nconst repeatedStr1 = repeatCharacters(str1, 2); // 'AA!!BB@@CC'\n\nconst str2 = 'Hello';\nconst repeatedStr2 = repeatCharacters(str2, 3); // 'HHHeeelllooo'\n"})})]})}function p(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},7355:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>c});var n=r(4614);const s={},a=n.createContext(s);function c(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),n.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/52083c08.771e7d79.js b/assets/js/52083c08.771e7d79.js new file mode 100644 index 000000000..bedcb3381 --- /dev/null +++ b/assets/js/52083c08.771e7d79.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[259],{178:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>i,toc:()=>d});var t=o(5735),c=o(7355);const r={},s="deepCopy",i={id:"utils/common/deepCopy",title:"deepCopy",description:"\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \uac12\uc744 \uae4a\uc740 \ubcf5\uc0ac\ub97c \uc218\ud589\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/common/deepCopy.md",sourceDirName:"utils/common",slug:"/utils/common/deepCopy",permalink:"/modern-kit/docs/utils/common/deepCopy",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"asyncNoop",permalink:"/modern-kit/docs/utils/common/asyncNoop"},next:{title:"deepEqual",permalink:"/modern-kit/docs/utils/common/deepEqual"}},p={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function a(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,c.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"deepcopy",children:"deepCopy"}),"\n",(0,t.jsxs)(n.p,{children:["\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \uac12\uc744 ",(0,t.jsx)(n.code,{children:"\uae4a\uc740 \ubcf5\uc0ac"}),"\ub97c \uc218\ud589\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"const deepCopy: (source: T) => T\n"})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import { deepCopy } from '@modern-kit/utils';\n\nconst originNum = 42;\nconst copyNum = deepCopy(originNum);\n\nconst originObj = { a: 1, b: { c: 2 } };\nconst copyObj = deepCopy(originObj);\n\nconst originArray = [1, 2, [3, 4]];\nconst copyArray = deepCopy(originArray);\n\nconst originSet = new Set([1, 2, 3]);\nconst copySet = deepCopy(originSet);\n\nconst originMap = new Map([\n ['a', 1],\n ['b', 2],\n]);\nconst copyMap = deepCopy(originMap);\n"})})]})}function l(e={}){const{wrapper:n}={...(0,c.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(a,{...e})}):a(e)}},7355:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>s});var t=o(4614);const c={},r=t.createContext(c);function s(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:s(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/52083c08.933afc6f.js b/assets/js/52083c08.933afc6f.js deleted file mode 100644 index 87682b5d4..000000000 --- a/assets/js/52083c08.933afc6f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[259],{1145:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>i,toc:()=>d});var t=o(5735),c=o(7355);const r={},s="deepCopy",i={id:"utils/common/deepCopy",title:"deepCopy",description:"\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \uac12\uc744 \uae4a\uc740 \ubcf5\uc0ac\ub97c \uc218\ud589\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/common/deepCopy.md",sourceDirName:"utils/common",slug:"/utils/common/deepCopy",permalink:"/modern-kit/docs/utils/common/deepCopy",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"asyncNoop",permalink:"/modern-kit/docs/utils/common/asyncNoop"},next:{title:"deepEqual",permalink:"/modern-kit/docs/utils/common/deepEqual"}},p={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function a(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,c.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"deepcopy",children:"deepCopy"}),"\n",(0,t.jsxs)(n.p,{children:["\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \uac12\uc744 ",(0,t.jsx)(n.code,{children:"\uae4a\uc740 \ubcf5\uc0ac"}),"\ub97c \uc218\ud589\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"const deepCopy: (source: T) => T\n"})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import { deepCopy } from '@modern-kit/utils';\n\nconst originNum = 42;\nconst copyNum = deepCopy(originNum);\n\nconst originObj = { a: 1, b: { c: 2 } };\nconst copyObj = deepCopy(originObj);\n\nconst originArray = [1, 2, [3, 4]];\nconst copyArray = deepCopy(originArray);\n\nconst originSet = new Set([1, 2, 3]);\nconst copySet = deepCopy(originSet);\n\nconst originMap = new Map([\n ['a', 1],\n ['b', 2],\n]);\nconst copyMap = deepCopy(originMap);\n"})})]})}function l(e={}){const{wrapper:n}={...(0,c.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(a,{...e})}):a(e)}},7355:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>s});var t=o(4614);const c={},r=t.createContext(c);function s(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:s(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/525bfb2e.3e302d43.js b/assets/js/525bfb2e.3e302d43.js new file mode 100644 index 000000000..d5f4fb606 --- /dev/null +++ b/assets/js/525bfb2e.3e302d43.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2917],{9396:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var i=n(5735),o=n(7355);const r={},s="getViewportSize",c={id:"utils/common/getViewportSize",title:"getViewportSize",description:"\ud604\uc7ac Viewport Size\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/common/getViewportSize.md",sourceDirName:"utils/common",slug:"/utils/common/getViewportSize",permalink:"/modern-kit/docs/utils/common/getViewportSize",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"getUniqTime",permalink:"/modern-kit/docs/utils/common/getUniqTime"},next:{title:"hexToRgba",permalink:"/modern-kit/docs/utils/common/hexToRgba"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function l(e){const t={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"getviewportsize",children:"getViewportSize"}),"\n",(0,i.jsxs)(t.p,{children:["\ud604\uc7ac ",(0,i.jsx)(t.code,{children:"Viewport Size"}),"\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.\n\uc11c\ubc84 \ud658\uacbd\uc5d0\uc11c\ub294 ",(0,i.jsx)(t.code,{children:"{ width: 0, height: 0} "}),"\uc744 \ubc18\ud658\ud55c\ub2e4."]}),"\n",(0,i.jsx)("br",{}),"\n",(0,i.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-tsx",children:"const getViewportSize: () => {\n readonly width: number;\n readonly height: number;\n}\n"})}),"\n",(0,i.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-ts",children:"import { getViewportSize } from '@modern-kit/utils';\n\nconst { width, height } = getViewportSize();\n"})})]})}function u(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},7355:(e,t,n)=>{n.d(t,{Z:()=>c,a:()=>s});var i=n(4614);const o={},r=i.createContext(o);function s(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/525bfb2e.b9178b4a.js b/assets/js/525bfb2e.b9178b4a.js deleted file mode 100644 index 6d2ab3e32..000000000 --- a/assets/js/525bfb2e.b9178b4a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2917],{930:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var i=n(5735),o=n(7355);const r={},s="getViewportSize",c={id:"utils/common/getViewportSize",title:"getViewportSize",description:"\ud604\uc7ac Viewport Size\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/common/getViewportSize.md",sourceDirName:"utils/common",slug:"/utils/common/getViewportSize",permalink:"/modern-kit/docs/utils/common/getViewportSize",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"getUniqTime",permalink:"/modern-kit/docs/utils/common/getUniqTime"},next:{title:"hexToRgba",permalink:"/modern-kit/docs/utils/common/hexToRgba"}},a={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function l(e){const t={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"getviewportsize",children:"getViewportSize"}),"\n",(0,i.jsxs)(t.p,{children:["\ud604\uc7ac ",(0,i.jsx)(t.code,{children:"Viewport Size"}),"\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.\n\uc11c\ubc84 \ud658\uacbd\uc5d0\uc11c\ub294 ",(0,i.jsx)(t.code,{children:"{ width: 0, height: 0} "}),"\uc744 \ubc18\ud658\ud55c\ub2e4."]}),"\n",(0,i.jsx)("br",{}),"\n",(0,i.jsx)(t.h2,{id:"interface",children:"Interface"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-tsx",children:"const getViewportSize: () => {\n readonly width: number;\n readonly height: number;\n}\n"})}),"\n",(0,i.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-ts",children:"import { getViewportSize } from '@modern-kit/utils';\n\nconst { width, height } = getViewportSize();\n"})})]})}function u(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},7355:(e,t,n)=>{n.d(t,{Z:()=>c,a:()=>s});var i=n(4614);const o={},r=i.createContext(o);function s(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/53f54fd5.d203d2e2.js b/assets/js/53f54fd5.dd353841.js similarity index 97% rename from assets/js/53f54fd5.d203d2e2.js rename to assets/js/53f54fd5.dd353841.js index 254deafbb..4f6c0cc3e 100644 --- a/assets/js/53f54fd5.d203d2e2.js +++ b/assets/js/53f54fd5.dd353841.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3883],{9470:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>m,frontMatter:()=>a,metadata:()=>r,toc:()=>d});var t=o(5735),s=o(7355);const a={},c="abRandom",r={id:"utils/common/abRandom",title:"abRandom",description:"50% \ud655\ub960\ub85c 0\ub610\ub294 1\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/common/abRandom.md",sourceDirName:"utils/common",slug:"/utils/common/abRandom",permalink:"/modern-kit/docs/utils/common/abRandom",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useWindowSize",permalink:"/modern-kit/docs/react/hooks/useWindowSize"},next:{title:"asyncNoop",permalink:"/modern-kit/docs/utils/common/asyncNoop"}},i={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function l(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"abrandom",children:"abRandom"}),"\n",(0,t.jsxs)(n.p,{children:["50% \ud655\ub960\ub85c ",(0,t.jsx)(n.code,{children:"0"}),"\ub610\ub294 ",(0,t.jsx)(n.code,{children:"1"}),"\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"AB \ud14c\uc2a4\ud2b8"}),"\ub97c \ud560 \ub54c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."]}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"const abRandom: () => 0 | 1\n"})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import { abRandom } from '@modern-kit/utils';\n\nconst ab = abRandom();\n"})})]})}function m(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},7355:(e,n,o)=>{o.d(n,{Z:()=>r,a:()=>c});var t=o(4614);const s={},a=t.createContext(s);function c(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3883],{3072:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>m,frontMatter:()=>a,metadata:()=>r,toc:()=>d});var t=o(5735),s=o(7355);const a={},c="abRandom",r={id:"utils/common/abRandom",title:"abRandom",description:"50% \ud655\ub960\ub85c 0\ub610\ub294 1\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.",source:"@site/docs/utils/common/abRandom.md",sourceDirName:"utils/common",slug:"/utils/common/abRandom",permalink:"/modern-kit/docs/utils/common/abRandom",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useWindowSize",permalink:"/modern-kit/docs/react/hooks/useWindowSize"},next:{title:"asyncNoop",permalink:"/modern-kit/docs/utils/common/asyncNoop"}},i={},d=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}];function l(e){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"abrandom",children:"abRandom"}),"\n",(0,t.jsxs)(n.p,{children:["50% \ud655\ub960\ub85c ",(0,t.jsx)(n.code,{children:"0"}),"\ub610\ub294 ",(0,t.jsx)(n.code,{children:"1"}),"\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4."]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"AB \ud14c\uc2a4\ud2b8"}),"\ub97c \ud560 \ub54c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."]}),"\n",(0,t.jsx)("br",{}),"\n",(0,t.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"const abRandom: () => 0 | 1\n"})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import { abRandom } from '@modern-kit/utils';\n\nconst ab = abRandom();\n"})})]})}function m(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},7355:(e,n,o)=>{o.d(n,{Z:()=>r,a:()=>c});var t=o(4614);const s={},a=t.createContext(s);function c(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/54102c04.ccfb5463.js b/assets/js/54102c04.e708fc6f.js similarity index 99% rename from assets/js/54102c04.ccfb5463.js rename to assets/js/54102c04.e708fc6f.js index 6ed9a1c19..a17203ce4 100644 --- a/assets/js/54102c04.ccfb5463.js +++ b/assets/js/54102c04.e708fc6f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2269],{7348:(t,n,r)=>{r.r(n),r.d(n,{assets:()=>f,contentTitle:()=>a,default:()=>p,frontMatter:()=>u,metadata:()=>c,toc:()=>l});var e=r(5735),i=r(7355),o=r(5474);const u={},a="LazyImage",c={id:"react/components/LazyImage",title:"LazyImage",description:"Viewport\uc5d0 \ub178\ucd9c\ub420 \ub54c \ud560\ub2f9\ub41c \uc774\ubbf8\uc9c0\ub97c Lazy Loading \ud558\ub294 \uc774\ubbf8\uc9c0 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/LazyImage.mdx",sourceDirName:"react/components",slug:"/react/components/LazyImage",permalink:"/modern-kit/docs/react/components/LazyImage",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"InView",permalink:"/modern-kit/docs/react/components/InView"},next:{title:"Portal",permalink:"/modern-kit/docs/react/components/Portal"}},f={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Default",id:"default",level:3},{value:"Fallback",id:"fallback",level:3},{value:"Example",id:"example",level:2},{value:"Note",id:"note",level:2}];function s(t){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,i.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"lazyimage",children:"LazyImage"}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"Viewport"}),"\uc5d0 \ub178\ucd9c\ub420 \ub54c \ud560\ub2f9\ub41c \uc774\ubbf8\uc9c0\ub97c ",(0,e.jsx)(n.code,{children:"Lazy Loading"})," \ud558\ub294 \uc774\ubbf8\uc9c0 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"width"}),", ",(0,e.jsx)(n.code,{children:"height"})," \uac12\uc744 \uc785\ub825\ud574 \uc774\ubbf8\uc9c0\uc758 \ud06c\uae30\ub97c \uc870\uc808 \ud560 \uc218 \uc788\uc73c\uba70, \ub3d9\uc2dc\uc5d0 ",(0,e.jsx)(n.code,{children:"Layout Shift"}),"\ub97c \uac1c\uc120\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.p,{children:["Intersection Observer Option\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.(\ud558\ub2e8 ",(0,e.jsx)(n.code,{children:"Note"})," \ucc38\uace0)"]}),"\n",(0,e.jsx)("br",{}),"\n",(0,e.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"interface LazyImageProps extends React.ComponentProps<'img'> {\n src: string;\n threshold?: number | number[]; // default: 0\n root?: Document | Element | null; // default: null\n rootMargin?: string; // default: '0px 0px 0px 0px'\n}\n\nconst LazyImage: React.ForwardRefExoticComponent & React.RefAttributes >\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.h3,{id:"default",children:"Default"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { LazyImage } from '@modern-kit/react';\nimport img1 from '../assets/img1.png';\nimport img2 from '../assets/img2.png';\n\nconst Example = () => {\n return (\n \n {/* ... */}\n\n );\n}; \n"})}),"\n",(0,e.jsx)("br",{}),"\n",(0,e.jsx)(n.h3,{id:"fallback",children:"Fallback"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { LazyImage } from '@modern-kit/react';\nimport img1 from '../assets/img1.png';\n\nconst Example = () => {\n const [isLoaded, setIsLoaded] = useState(false);\n\n const wrapperStyle: CSSProperties = {\n position: 'relative',\n width: '400px',\n height: '400px',\n };\n\n const imgStyle: CSSProperties = {\n position: 'absolute',\n top: 0,\n left: 0,\n opacity: isLoaded ? 1 : 0,\n transition: 'opacity 0.2s',\n };\n\n const skeletonStyle: CSSProperties = {\n width: '400px',\n height: '400px',\n backgroundColor: '#cdcbcb',\n }\n\n return (\n\n {/* ... */}\n \n {/* ... */}\n \n {!isLoaded && }\n\n );\n}; \n"})}),"\n",(0,e.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,e.jsxs)("div",{style:{maxWidth:"500px",height:"500px",overflow:"scroll",background:"#f8f8f8"},children:[(0,e.jsx)("div",{style:{width:"100%",height:"500px",textAlign:"center",fontSize:"2rem"},children:(0,e.jsx)(n.p,{children:"\uc2a4\ud06c\ub864 \ud574\uc8fc\uc138\uc694."})}),(0,e.jsx)(o.wY,{width:"100%",height:400,src:"https://github.com/Team-Grace/devgrace/assets/64779472/b5640bec-2abc-4205-afbf-ccfd9876a90b",alt:"img1",onClick:()=>console.log("img click1")}),(0,e.jsx)("div",{style:{width:"100%",height:"150px"}}),(0,e.jsx)(o.wY,{width:"100%",height:400,src:"https://github.com/Team-Grace/devgrace/assets/64779472/207743a7-b29f-4826-bc08-8df0d67e568b",alt:"img2",onClick:()=>console.log("img click2")}),(0,e.jsx)("div",{style:{width:"100%",height:"150px"}}),(0,e.jsx)(o.wY,{width:"100%",height:400,src:"https://github.com/Team-Grace/devgrace/assets/64779472/d1957ec8-fe87-406e-bfda-fb4ee505b152",alt:"img3",onClick:()=>console.log("img click3")})]}),"\n",(0,e.jsx)(n.h2,{id:"note",children:"Note"}),"\n",(0,e.jsx)(n.p,{children:(0,e.jsx)(n.a,{href:"https://developer.mozilla.org/ko/docs/Web/API/IntersectionObserver",children:"Intersection Observer API"})})]})}function p(t={}){const{wrapper:n}={...(0,i.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(s,{...t})}):s(t)}},7355:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const i={},o=e.createContext(i);function u(t){const n=e.useContext(o);return e.useMemo((function(){return"function"==typeof t?t(n):{...n,...t}}),[n,t])}function a(t){let n;return n=t.disableParentContext?"function"==typeof t.components?t.components(i):t.components||i:u(t.components),e.createElement(o.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{D9:()=>Rp,ac:()=>Mp,df:()=>xp,iP:()=>zp,nA:()=>kp,uM:()=>bp,wY:()=>Op,yU:()=>Wp});var e=r(4614),i=r(5735),o=(r(2832),"object"==typeof global&&global&&global.Object===Object&&global),u="object"==typeof self&&self&&self.Object===Object&&self,a=o||u||Function("return this")(),c=a.Symbol,f=Object.prototype,l=f.hasOwnProperty,s=f.toString,p=c?c.toStringTag:void 0,h=Object.prototype.toString,v="[object Null]",d="[object Undefined]",g=c?c.toStringTag:void 0;function y(t){return null==t?void 0===t?d:v:g&&g in Object(t)?function(t){var n=l.call(t,p),r=t[p];try{t[p]=void 0;var e=!0}catch(t){}var i=s.call(t);return e&&(n?t[p]=r:delete t[p]),i}(t):function(t){return h.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var b="[object Symbol]";function m(t){return"symbol"==typeof t||_(t)&&y(t)==b}var j=NaN;function w(t){return"number"==typeof t?t:m(t)?j:+t}function x(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++rsetIsLoaded(true)}\n />\n 0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Tt=Dt(ht),Nt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function qt(t){return function(){return t}}var $t=function(){try{var t=lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Kt=$t?function(t,n){return $t(t,"toString",{configurable:!0,enumerable:!1,value:qt(n),writable:!0})}:V,Vt=Dt(Kt);function Zt(t,n){for(var r=-1,e=null==t?0:t.length;++r -1}var Qt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Xt(t,n,r){var e=n+"";return Vt(t,function(t,n){var r=n.length;if(!r)return t;var e=r-1;return n[e]=(r>1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(Ft,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Zt(Qt,(function(r){var e="_."+r[0];n&r[1]&&!Jt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Nt);return n?n[1].split(Ut):[]}(e),r)))}var tn=1,nn=2,rn=4,en=8,on=32,un=64;function an(t,n,r,e,i,o,u,a,c,f){var l=n&en;n|=l?on:un,(n&=~(l?un:on))&rn||(n&=~(tn|nn));var s=[t,n,i,l?o:void 0,l?u:void 0,l?void 0:o,l?void 0:u,a,c,f],p=r.apply(void 0,s);return Pt(t)&&Tt(p,s),p.placeholder=e,Xt(p,t,n)}function cn(t){return t.placeholder}var fn=9007199254740991,ln=/^(?:0|[1-9]\d*)$/;function sn(t,n){var r=typeof t;return!!(n=null==n?fn:n)&&("number"==r||"symbol"!=r&&ln.test(t))&&t>-1&&t%1==0&&t 1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof y&&(A=g||gt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,In=4,En=8,kn=128,Sn=256,Mn=Math.min,Rn="Expected a function",Wn=1,zn=2,Ln=8,Bn=16,Pn=32,Cn=64,Dn=Math.max;function Tn(t,n,r,e,i,o,u,c){var f=n&zn;if(!f&&"function"!=typeof t)throw new TypeError(Rn);var l=e?e.length:0;if(l||(n&=~(Pn|Cn),e=i=void 0),u=void 0===u?u:Dn(K(u),0),c=void 0===c?c:K(c),l-=i?i.length:0,n&Cn){var s=e,p=i;e=i=void 0}var h=f?void 0:Et(t),v=[t,n,r,e,i,s,p,o,u,c];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(On|An|kn),u=e==kn&&r==En||e==kn&&r==Sn&&t[7].length<=n[8]||e==(kn|Sn)&&n[7].length<=n[8]&&r==En;if(!o&&!u)return t;e&On&&(t[2]=n[2],i|=r&On?0:In);var a=n[3];if(a){var c=t[3];t[3]=c?mt(c,a,n[4]):a,t[4]=c?vn(t[3],xn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?wt(c,a,n[6]):a,t[6]=c?vn(t[5],xn):n[6]),(a=n[7])&&(t[7]=a),e&kn&&(t[8]=null==t[8]?n[8]:Mn(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i}(v,h),t=v[0],n=v[1],r=v[2],e=v[3],i=v[4],!(c=v[9]=void 0===v[9]?f?0:t.length:Dn(v[9]-l,0))&&n&(Ln|Bn)&&(n&=~(Ln|Bn)),n&&n!=Wn)d=n==Ln||n==Bn?function(t,n,r){var e=gt(t);return function i(){for(var o=arguments.length,u=Array(o),c=o,f=cn(i);c--;)u[c]=arguments[c];var l=o<3&&u[0]!==f&&u[o-1]!==f?[]:vn(u,f);return(o-=l.length) -1&&t%1==0&&t<=Yn}function Jn(t){return null!=t&&Hn(t.length)&&!J(t)}function Qn(t,n,r){if(!B(r))return!1;var e=typeof n;return!!("number"==e?Jn(r)&&sn(n,r.length):"string"==e&&n in r)&&Fn(r[n],t)}function Xn(t){return Gn((function(n,r){var e=-1,i=r.length,o=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&Qn(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},$r.prototype.set=function(t,n){var r=this.__data__,e=Fr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Kr=lt(a,"Map");function Vr(t,n){var r,e,i=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof n?"string":"hash"]:i.map}function Zr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n 0&&r(a)?n>1?ce(a,n-1,r,e,i):oe(i,a):e||(i[i.length]=a)}return i}function fe(t){return null!=t&&t.length?ce(t,1):[]}function le(t){return Vt(Zn(t,void 0,fe),t+"")}var se=le(ie),pe=xr(Object.getPrototypeOf,Object),he="[object Object]",ve=Function.prototype,de=Object.prototype,ge=ve.toString,ye=de.hasOwnProperty,_e=ge.call(Object);function be(t){if(!_(t)||y(t)!=he)return!1;var n=pe(t);if(null===n)return!0;var r=ye.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ge.call(r)==_e}function me(t){if(!_(t))return!1;var n=y(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!be(t)}var je=Gn((function(t,n){try{return _t(t,void 0,n)}catch(t){return me(t)?t:new Error(t)}}));function we(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=K(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var xe=Gn((function(t,n,r){var e=1;if(r.length){var i=vn(r,cn(xe));e|=32}return Tn(t,e,n,r,i)}));xe.placeholder={};var Oe=le((function(t,n){return Zt(n,(function(n){n=ne(n),Un(t,n,xe(t[n],t))})),t})),Ae=Gn((function(t,n,r){var e=3;if(r.length){var i=vn(r,cn(Ae));e|=32}return Tn(n,e,t,r,i)}));function Ie(t,n,r){var e=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(r=r>i?i:r)<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(i);++e=e?t:Ie(t,n,r)}Ae.placeholder={};var ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Se(t){return ke.test(t)}var Me="\\ud800-\\udfff",Re="["+Me+"]",We="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ze="\\ud83c[\\udffb-\\udfff]",Le="[^"+Me+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="(?:"+We+"|"+ze+")?",De="[\\ufe0e\\ufe0f]?",Te=De+Ce+"(?:\\u200d(?:"+[Le,Be,Pe].join("|")+")"+De+Ce+")*",Ne="(?:"+[Le+We+"?",We,Be,Pe,Re].join("|")+")",Ue=RegExp(ze+"(?="+ze+")|"+Ne+Te,"g");function Fe(t){return Se(t)?function(t){return t.match(Ue)||[]}(t):function(t){return t.split("")}(t)}function qe(t){return function(n){var r=Se(n=Qr(n))?Fe(n):void 0,e=r?r[0]:n.charAt(0),i=r?Ee(r,1).join(""):n.slice(1);return e[t]()+i}}var $e=qe("toUpperCase");function Ke(t){return $e(Qr(t).toLowerCase())}function Ve(t,n,r,e){var i=-1,o=null==t?0:t.length;for(e&&o&&(r=t[++i]);++i =n?t:n)),t}function Li(t){var n=this.__data__=new $r(t);this.size=n.size}function Bi(t,n){return t&&Kn(n,Er(n),t)}Li.prototype.clear=function(){this.__data__=new $r,this.size=0},Li.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Li.prototype.get=function(t){return this.__data__.get(t)},Li.prototype.has=function(t){return this.__data__.has(t)},Li.prototype.set=function(t,n){var r=this.__data__;if(r instanceof $r){var e=r.__data__;if(!Kr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Zr(e)}return r.set(t,n),this.size=r.size,this};var Pi="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ci=Pi&&"object"==typeof module&&module&&!module.nodeType&&module,Di=Ci&&Ci.exports===Pi?a.Buffer:void 0,Ti=Di?Di.allocUnsafe:void 0;function Ni(t,n){if(n)return t.slice();var r=t.length,e=Ti?Ti(r):new t.constructor(r);return t.copy(e),e}function Ui(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++r a))return!1;var f=o.get(t),l=o.get(n);if(f&&l)return f==n&&l==t;var s=-1,p=!0,h=r&Qo?new Go:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-f>=o}function d(){var t=ta();if(v(t))return g(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ra(r,o-(t-f)):r}(t))}function g(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function y(){var t=ta(),r=v(t);if(e=arguments,i=this,c=t,r){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),l?h(t):u}(c);if(s)return clearTimeout(a),a=setTimeout(d,n),h(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=U(n)||0,B(r)&&(l=!!r.leading,o=(s="maxWait"in r)?na(U(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},y.flush=function(){return void 0===a?u:g(ta())},y}var ia=Object.prototype,oa=ia.hasOwnProperty,ua=Gn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&Qn(n[0],n[1],i)&&(e=1);++r =ba&&(o=Ho,u=!1,n=new Go(n));t:for(;++i":">",'"':""","'":"'"}),Da=/[&<>"']/g,Ta=RegExp(Da.source);function Na(t){return(t=Qr(t))&&Ta.test(t)?t.replace(Da,Ca):t}var Ua=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Ua.source);function qa(t,n){for(var r=-1,e=null==t?0:t.length;++r -1?i[o?n[u]:u]:void 0}}var Ga=Math.max;function Ya(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:K(r);return i<0&&(i=Ga(e+i,0)),Gt(t,Nu(n),i)}var Ha=Za(Ya);function Ja(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}var Qa=Math.max,Xa=Math.min;function tc(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=K(r),i=r<0?Qa(e+i,0):Xa(i,e-1)),Gt(t,Nu(n),i,!0)}var nc=Za(tc);function rc(t){return t&&t.length?t[0]:void 0}function ec(t,n){var r=-1,e=Jn(t)?Array(t.length):[];return Zu(t,(function(t,i,o){e[++r]=n(t,i,o)})),e}function ic(t,n){return(O(t)?x:ec)(t,Nu(n))}var oc=ki("floor");function uc(t){return le((function(n){var r=n.length,e=r,i=Rt.prototype.thru;for(t&&n.reverse();e--;){var o=n[e];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!u&&"wrapper"==Mt(o))var u=new Rt([],!0)}for(e=u?e:r;++e n}function hc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=U(n),r=U(r)),t(n,r)}}var vc=hc(pc),dc=hc((function(t,n){return t>=n})),gc=Object.prototype.hasOwnProperty;function yc(t,n){return null!=t&&gc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&y(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,Er(t))}var Oc=Math.max,Ac=Math.max,Ic=Math.min;function Ec(t,n,r){for(var e=r?_a:Jt,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=x(l,vr(n))),c=Ic(l.length,c),a[u]=!r&&(n||i>=120&&l.length>=120)?new Go(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Kn(t,Yi(t),r),e&&(r=Zo(r,7,Of));for(var i=n.length;i--;)xf(r,n[i]);return r}));function If(t,n,r,e){if(!B(t))return t;for(var i=-1,o=(n=Xr(n,t)).length,u=o-1,a=t;null!=a&&++i n||o&&u&&c&&!a&&!f||e&&u&&c||!r&&c||!i)return 1;if(!e&&!o&&!f&&t =a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function Rf(t){return le((function(n){return n=x(n,vr(Nu)),Gn((function(r){var e=this;return t(n,(function(t){return _t(t,e,r)}))}))}))}var Wf=Rf(x),zf=Gn,Lf=Math.min,Bf=zf((function(t,n){var r=(n=1==n.length&&O(n[0])?x(n[0],vr(Nu)):x(ce(n,1),vr(Nu))).length;return Gn((function(e){for(var i=-1,o=Lf(e.length,r);++i Df)return r;do{n%2&&(r+=t),(n=Tf(n/2))&&(t+=t)}while(n);return r}var Uf=Du("length"),Ff="\\ud800-\\udfff",qf="["+Ff+"]",$f="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Kf="\\ud83c[\\udffb-\\udfff]",Vf="[^"+Ff+"]",Zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Gf="[\\ud800-\\udbff][\\udc00-\\udfff]",Yf="(?:"+$f+"|"+Kf+")?",Hf="[\\ufe0e\\ufe0f]?",Jf=Hf+Yf+"(?:\\u200d(?:"+[Vf,Zf,Gf].join("|")+")"+Hf+Yf+")*",Qf="(?:"+[Vf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Xf=RegExp(Kf+"(?="+Kf+")|"+Qf+Jf,"g");function tl(t){return Se(t)?function(t){for(var n=Xf.lastIndex=0;Xf.test(t);)++n;return n}(t):Uf(t)}var nl=Math.ceil;function rl(t,n){var r=(n=void 0===n?" ":k(n)).length;if(r<2)return r?Nf(n,t):n;var e=Nf(n,nl(t/tl(n)));return Se(n)?Ee(Fe(e),0,t).join(""):e.slice(0,t)}var el=Math.ceil,il=Math.floor,ol=/^\s+/,ul=a.parseInt,al=Gn((function(t,n){return Tn(t,32,void 0,n,vn(n,cn(al)))}));al.placeholder={};var cl=Gn((function(t,n){return Tn(t,64,void 0,n,vn(n,cn(cl)))}));cl.placeholder={};var fl=Yu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),ll=le((function(t,n){return null==t?{}:function(t,n){return Ef(t,n,(function(n,r){return Lu(t,r)}))}(t,n)}));function sl(t,n,r,e){for(var i=r-1,o=t.length;++i -1;)a!==t&&pl.call(a,c,1),pl.call(t,c,1);return t}function vl(t,n){return t&&t.length&&n&&n.length?hl(t,n):t}var dl=Gn(vl),gl=Array.prototype.splice;function yl(t,n){for(var r=t?n.length:0,e=r-1;r--;){var i=n[r];if(r==e||i!==o){var o=i;sn(i)?gl.call(t,i,1):xf(t,i)}}return t}var _l=le((function(t,n){var r=null==t?0:t.length,e=ie(t,n);return yl(t,x(n,(function(t){return sn(t,r)?+t:t})).sort(Sf)),e})),bl=Math.floor,ml=Math.random;function jl(t,n){return t+bl(ml()*(n-t+1))}var wl=parseFloat,xl=Math.min,Ol=Math.random,Al=Math.ceil,Il=Math.max;function El(t){return function(n,r,e){return e&&"number"!=typeof e&&Qn(n,r,e)&&(r=e=void 0),n=$(n),void 0===r?(r=n,n=0):r=$(r),function(t,n,r,e){for(var i=-1,o=Il(Al((n-t)/(r||1)),0),u=Array(o);o--;)u[e?o:++i]=t,t+=r;return u}(n,r,e=void 0===e?n 1&&Qn(t,n[0],n[1])?n=[]:r>2&&Qn(n[0],n[1],n[2])&&(n=[n[0]]),Mf(t,ce(n,1),[])})),Vl=4294967294,Zl=Math.floor,Gl=Math.min;function Yl(t,n,r,e){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var u=(n=r(n))!=n,a=null===n,c=m(n),f=void 0===n;i >>1,u=t[o];null!==u&&!m(u)&&(r?u<=n:u /g,as={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:us,variable:"",imports:{_:{escape:Na}}},cs=/\b__p \+= '';/g,fs=/\b(__p \+=) '' \+/g,ls=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ss=/[()=,{}\[\]\/\s]/,ps=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hs=/($^)/,vs=/['\n\r\u2028\u2029\\]/g,ds=Object.prototype.hasOwnProperty;function gs(t,n){return n(t)}var ys=4294967295,_s=Math.min;function bs(t,n){var r=t;return r instanceof At&&(r=r.value()),Ve(n,(function(t,n){return n.func.apply(n.thisArg,oe([t],n.args))}),r)}function ms(){return bs(this.__wrapped__,this.__actions__)}function js(t,n){for(var r=t.length;r--&&Ht(n,t[r],0)>-1;);return r}function ws(t,n){for(var r=-1,e=t.length;++r -1;);return r}var xs=/^\s+/,Os=/\w*$/,As=Ze({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Is=/&(?:amp|lt|gt|quot|#39);/g,Es=RegExp(Is.source),ks=Qi&&1/nu(new Qi([,-0]))[1]==1/0?function(t){return new Qi(t)}:It,Ss=200;function Ms(t,n,r){var e=-1,i=Jt,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=_a;else if(o>=Ss){var f=n?null:ks(t);if(f)return nu(f);u=!1,i=Ho,c=new Go}else c=n?[]:a;t:for(;++e 1||this.__actions__.length)&&e instanceof At&&sn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:gs,args:[i],thisArg:void 0}),new Rt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Fs(t,n,r){var e=t.length;if(e<2)return e?Ms(t[0]):[];for(var i=-1,o=Array(e);++i 1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Cs(t,r)})),Js={chunk:function(t,n,r){n=(r?Qn(t,n,r):void 0===n)?1:Wi(K(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,o=0,u=Array(Ri(e/n));i i?0:i+r),(e=void 0===e||e>i?i:K(e))<0&&(e+=i),e=r>e?0:Ka(e);r -1:!!i&&Ht(t,n,r)>-1},invokeMap:Fc,keyBy:rf,map:ic,orderBy:function(t,n,r,e){return null==t?[]:(O(n)||(n=null==n?[]:[n]),O(r=e?void 0:r)||(r=null==r?[]:[r]),Mf(t,n,r))},partition:fl,reduce:function(t,n,r){var e=O(t)?Ve:Rl,i=arguments.length<3;return e(t,Nu(n),r,i,Zu)},reduceRight:function(t,n,r){var e=O(t)?Wl:Rl,i=arguments.length<3;return e(t,Nu(n),r,i,Wa)},reject:function(t,n){return(O(t)?Ui:Va)(t,bf(Nu(n)))},sample:function(t){return(O(t)?Pl:Cl)(t)},sampleSize:function(t,n,r){return n=(r?Qn(t,n,r):void 0===n)?1:K(n),(O(t)?Tl:Nl)(t,n)},shuffle:function(t){return(O(t)?Ul:Fl)(t)},size:function(t){if(null==t)return 0;if(Jn(t))return jc(t)?tl(t):t.length;var n=lo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Ir(t).length},some:function(t,n,r){var e=O(t)?Yo:$l;return r&&Qn(t,n,r)&&(n=void 0),e(t,Nu(n))},sortBy:Kl},Xs=ta,tp={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=K(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:Nn,before:we,bind:xe,bindKey:Ae,curry:Qu,curryRight:Xu,debounce:ea,defer:ga,delay:ya,flip:function(t){return Tn(t,512)},memoize:Gr,negate:bf,once:function(t){return we(2,t)},overArgs:Bf,partial:al,partialRight:cl,rearg:Ml,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Gn(t,n=void 0===n?n:K(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:Ql(K(n),0),Gn((function(r){var e=r[n],i=Ee(r,0,n);return e&&oe(i,e),_t(t,this,i)}))},throttle:function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return B(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),ea(t,n,{leading:e,maxWait:n,trailing:i})},unary:function(t){return Nn(t,1)},wrap:function(t,n){return al(Ea(n),t)}},np={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return O(t)?t:[t]},clone:function(t){return Zo(t,4)},cloneDeep:function(t){return Zo(t,5)},cloneDeepWith:function(t,n){return Zo(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Zo(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Uu(t,n,Er(n))},eq:Fn,gt:vc,gte:dc,isArguments:ar,isArray:O,isArrayBuffer:$c,isArrayLike:Jn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==y(t)},isBuffer:pr,isDate:Vc,isElement:function(t){return _(t)&&1===t.nodeType&&!be(t)},isEmpty:function(t){if(null==t)return!0;if(Jn(t)&&(O(t)||"string"==typeof t||"function"==typeof t.splice||pr(t)||mr(t)||ar(t)))return!t.length;var n=lo(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(nr(t))return!Ir(t).length;for(var r in t)if(Zc.call(t,r))return!1;return!0},isEqual:function(t,n){return Ou(t,n)},isEqualWith:function(t,n,r){var e=(r="function"==typeof r?r:void 0)?r(t,n):void 0;return void 0===e?Ou(t,n,void 0,r):!!e},isError:me,isFinite:function(t){return"number"==typeof t&&Gc(t)},isFunction:J,isInteger:Yc,isLength:Hn,isMap:No,isMatch:function(t,n){return t===n||Eu(t,n,Su(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Eu(t,n,Su(n),r)},isNaN:function(t){return Hc(t)&&t!=+t},isNative:function(t){if(Jc(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ft(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:Hc,isObject:B,isObjectLike:_,isPlainObject:be,isRegExp:Xc,isSafeInteger:function(t){return Yc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Fo,isString:jc,isSymbol:m,isTypedArray:mr,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return _(t)&&"[object WeakMap]"==lo(t)},isWeakSet:function(t){return _(t)&&"[object WeakSet]"==y(t)},lt:ff,lte:lf,toArray:jf,toFinite:$,toInteger:K,toLength:Ka,toNumber:U,toPlainObject:la,toSafeInteger:function(t){return t?zi(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Qr},rp={add:M,ceil:Si,divide:Aa,floor:oc,max:function(t){return t&&t.length?sf(t,V,pc):void 0},maxBy:function(t,n){return t&&t.length?sf(t,Nu(n),pc):void 0},mean:function(t){return hf(t,V)},meanBy:function(t,n){return hf(t,Nu(n))},min:function(t){return t&&t.length?sf(t,V,cf):void 0},minBy:function(t,n){return t&&t.length?sf(t,Nu(n),cf):void 0},multiply:_f,round:Bl,subtract:ts,sum:function(t){return t&&t.length?pf(t,V):0},sumBy:function(t,n){return t&&t.length?pf(t,Nu(n)):0}},ep={assign:Sr,assignIn:Wr,assignInWith:zr,assignWith:Lr,at:se,create:function(t,n){var r=dt(t);return null==n?r:Bi(r,n)},defaults:ua,defaultsDeep:va,entries:Ba,entriesIn:Pa,extend:Wr,extendWith:zr,findKey:function(t,n){return Ja(t,Nu(n),Ku)},findLastKey:function(t,n){return Ja(t,Nu(n),Ra)},forIn:function(t,n){return null==t?t:$u(t,Ea(n),Rr)},forInRight:function(t,n){return null==t?t:Ma(t,Ea(n),Rr)},forOwn:function(t,n){return t&&Ku(t,Ea(n))},forOwnRight:function(t,n){return t&&Ra(t,Ea(n))},functions:function(t){return null==t?[]:fc(t,Er(t))},functionsIn:function(t){return null==t?[]:fc(t,Rr(t))},get:ee,has:function(t,n){return null!=t&&zu(t,n,yc)},hasIn:Lu,invert:Lc,invertBy:Dc,invoke:Uc,keys:Er,keysIn:Rr,mapKeys:function(t,n){var r={};return n=Nu(n),Ku(t,(function(t,e,i){Un(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=Nu(n),Ku(t,(function(t,e,i){Un(r,e,n(t,e,i))})),r},merge:vf,mergeWith:ha,omit:Af,omitBy:function(t,n){return kf(t,bf(Nu(n)))},pick:ll,pickBy:kf,result:function(t,n,r){var e=-1,i=(n=Xr(n,t)).length;for(i||(i=1,t=void 0);++e=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},plant:function(t){for(var n,r=this;r instanceof xt;){var e=zt(r);e.__index__=0,e.__values__=void 0,n?i.__wrapped__=e:n=e;var i=e;r=r.__wrapped__}return i.__wrapped__=t,n},reverse:function(){var t=this.__wrapped__;if(t instanceof At){var n=t;return this.__actions__.length&&(n=new At(this)),(n=n.reverse()).__actions__.push({func:gs,args:[Ll],thisArg:void 0}),new Rt(n,this.__chain__)}return this.thru(Ll)},tap:function(t,n){return n(t),t},thru:gs,toIterator:function(){return this},toJSON:ms,value:ms,valueOf:ms,wrapperChain:function(){return Mi(this)}},op={camelCase:Ai,capitalize:Ke,deburr:Je,endsWith:function(t,n,r){t=Qr(t),n=k(n);var e=t.length,i=r=void 0===r?e:zi(K(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:Na,escapeRegExp:function(t){return(t=Qr(t))&&Fa.test(t)?t.replace(Ua,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,r){t=Qr(t);var e=(n=K(n))?tl(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return rl(il(i),r)+t+rl(el(i),r)},padEnd:function(t,n,r){t=Qr(t);var e=(n=K(n))?tl(t):0;return n&&e >>0)?(t=Qr(t))&&("string"==typeof n||null!=n&&!Xc(n))&&!(n=k(n))&&Se(t)?Ee(Fe(t),0,r):t.split(n,r):[]},startCase:Xl,startsWith:function(t,n,r){return t=Qr(t),r=null==r?0:zi(K(r),0,t.length),n=k(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=as.imports._.templateSettings||as;r&&Qn(t,n,r)&&(n=void 0),t=Qr(t),n=zr({},n,e,es);var i,o,u=zr({},n.imports,e.imports,es),a=Er(u),c=wc(u,a),f=0,l=n.interpolate||hs,s="__p += '",p=RegExp((n.escape||hs).source+"|"+l.source+"|"+(l===us?ps:hs).source+"|"+(n.evaluate||hs).source+"|$","g"),h=ds.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(n,r,e,u,a,c){return e||(e=u),s+=t.slice(f,c).replace(vs,os),r&&(i=!0,s+="' +\n__e("+r+") +\n'"),a&&(o=!0,s+="';\n"+a+";\n__p += '"),e&&(s+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),s+="';\n";var v=ds.call(n,"variable")&&n.variable;if(v){if(ss.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(o?s.replace(cs,""):s).replace(fs,"$1").replace(ls,"$1;"),s="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}";var d=je((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,me(d))throw d;return d},templateSettings:as,toLower:function(t){return Qr(t).toLowerCase()},toUpper:function(t){return Qr(t).toUpperCase()},trim:function(t,n,r){if((t=Qr(t))&&(r||void 0===n))return L(t);if(!t||!(n=k(n)))return t;var e=Fe(t),i=Fe(n);return Ee(e,ws(e,i),js(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.slice(0,W(t)+1);if(!t||!(n=k(n)))return t;var e=Fe(t);return Ee(e,0,js(e,Fe(n))+1).join("")},trimStart:function(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.replace(xs,"");if(!t||!(n=k(n)))return t;var e=Fe(t);return Ee(e,ws(e,Fe(n))).join("")},truncate:function(t,n){var r=30,e="...";if(B(n)){var i="separator"in n?n.separator:i;r="length"in n?K(n.length):r,e="omission"in n?k(n.omission):e}var o=(t=Qr(t)).length;if(Se(t)){var u=Fe(t);o=u.length}if(r>=o)return t;var a=r-tl(e);if(a<1)return e;var c=u?Ee(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+e;if(u&&(a+=c.length-a),Xc(i)){if(t.slice(a).search(i)){var f,l=c;for(i.global||(i=RegExp(i.source,Qr(Os.exec(i))+"g")),i.lastIndex=0;f=i.exec(l);)var s=f.index;c=c.slice(0,void 0===s?a:s)}}else if(t.indexOf(k(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=Qr(t))&&Es.test(t)?t.replace(Is,As):t},upperCase:Ts,upperFirst:$e,words:wi},up={attempt:je,bindAll:Oe,cond:function(t){var n=null==t?0:t.length,r=Nu;return t=n?x(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Gn((function(r){for(var e=-1;++e 9007199254740991)return[];var r=ys,e=_s(t,ys);n=Ea(n),t-=ys;for(var i=rr(e,n);++r =bc(n,r)&&t<_c(n,r)}(t=U(t),n,r)},Bt.invoke=ep.invoke,Bt.isArguments=np.isArguments,Bt.isArray=O,Bt.isArrayBuffer=np.isArrayBuffer,Bt.isArrayLike=np.isArrayLike,Bt.isArrayLikeObject=np.isArrayLikeObject,Bt.isBoolean=np.isBoolean,Bt.isBuffer=np.isBuffer,Bt.isDate=np.isDate,Bt.isElement=np.isElement,Bt.isEmpty=np.isEmpty,Bt.isEqual=np.isEqual,Bt.isEqualWith=np.isEqualWith,Bt.isError=np.isError,Bt.isFinite=np.isFinite,Bt.isFunction=np.isFunction,Bt.isInteger=np.isInteger,Bt.isLength=np.isLength,Bt.isMap=np.isMap,Bt.isMatch=np.isMatch,Bt.isMatchWith=np.isMatchWith,Bt.isNaN=np.isNaN,Bt.isNative=np.isNative,Bt.isNil=np.isNil,Bt.isNull=np.isNull,Bt.isNumber=np.isNumber,Bt.isObject=B,Bt.isObjectLike=np.isObjectLike,Bt.isPlainObject=np.isPlainObject,Bt.isRegExp=np.isRegExp,Bt.isSafeInteger=np.isSafeInteger,Bt.isSet=np.isSet,Bt.isString=np.isString,Bt.isSymbol=np.isSymbol,Bt.isTypedArray=np.isTypedArray,Bt.isUndefined=np.isUndefined,Bt.isWeakMap=np.isWeakMap,Bt.isWeakSet=np.isWeakSet,Bt.join=Js.join,Bt.kebabCase=op.kebabCase,Bt.last=wa,Bt.lastIndexOf=Js.lastIndexOf,Bt.lowerCase=op.lowerCase,Bt.lowerFirst=op.lowerFirst,Bt.lt=np.lt,Bt.lte=np.lte,Bt.max=rp.max,Bt.maxBy=rp.maxBy,Bt.mean=rp.mean,Bt.meanBy=rp.meanBy,Bt.min=rp.min,Bt.minBy=rp.minBy,Bt.stubArray=up.stubArray,Bt.stubFalse=up.stubFalse,Bt.stubObject=up.stubObject,Bt.stubString=up.stubString,Bt.stubTrue=up.stubTrue,Bt.multiply=rp.multiply,Bt.nth=Js.nth,Bt.noop=up.noop,Bt.now=Xs,Bt.pad=op.pad,Bt.padEnd=op.padEnd,Bt.padStart=op.padStart,Bt.parseInt=op.parseInt,Bt.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Qn(t,n,r)&&(n=r=void 0),void 0===r&&("boolean"==typeof n?(r=n,n=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=$(t),void 0===n?(n=t,t=0):n=$(n)),t>n){var e=t;t=n,n=e}if(r||t%1||n%1){var i=Ol();return xl(t+i*(n-t+wl("1e-"+((i+"").length-1))),n)}return jl(t,n)},Bt.reduce=Qs.reduce,Bt.reduceRight=Qs.reduceRight,Bt.repeat=op.repeat,Bt.replace=op.replace,Bt.result=ep.result,Bt.round=rp.round,Bt.sample=Qs.sample,Bt.size=Qs.size,Bt.snakeCase=op.snakeCase,Bt.some=Qs.some,Bt.sortedIndex=Js.sortedIndex,Bt.sortedIndexBy=Js.sortedIndexBy,Bt.sortedIndexOf=Js.sortedIndexOf,Bt.sortedLastIndex=Js.sortedLastIndex,Bt.sortedLastIndexBy=Js.sortedLastIndexBy,Bt.sortedLastIndexOf=Js.sortedLastIndexOf,Bt.startCase=op.startCase,Bt.startsWith=op.startsWith,Bt.subtract=rp.subtract,Bt.sum=rp.sum,Bt.sumBy=rp.sumBy,Bt.template=op.template,Bt.times=up.times,Bt.toFinite=np.toFinite,Bt.toInteger=K,Bt.toLength=np.toLength,Bt.toLower=op.toLower,Bt.toNumber=np.toNumber,Bt.toSafeInteger=np.toSafeInteger,Bt.toString=np.toString,Bt.toUpper=op.toUpper,Bt.trim=op.trim,Bt.trimEnd=op.trimEnd,Bt.trimStart=op.trimStart,Bt.truncate=op.truncate,Bt.unescape=op.unescape,Bt.uniqueId=up.uniqueId,Bt.upperCase=op.upperCase,Bt.upperFirst=op.upperFirst,Bt.each=Qs.forEach,Bt.eachRight=Qs.forEachRight,Bt.first=Js.head,gp(Bt,(Gs={},Ku(Bt,(function(t,n){pp.call(Bt.prototype,n)||(Gs[n]=t)})),Gs),{chain:!1}),Bt.VERSION="4.17.21",(Bt.templateSettings=op.templateSettings).imports._=Bt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Bt[t].placeholder=Bt})),Zt(["drop","take"],(function(t,n){At.prototype[t]=function(r){r=void 0===r?1:vp(K(r),0);var e=this.__filtered__&&!n?new At(this):this.clone();return e.__filtered__?e.__takeCount__=dp(r,e.__takeCount__):e.__views__.push({size:dp(r,lp),type:t+(e.__dir__<0?"Right":"")}),e},At.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Zt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;At.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Nu(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Zt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");At.prototype[t]=function(){return this[r](1).value()[0]}})),Zt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");At.prototype[t]=function(){return this.__filtered__?new At(this):this[r](1)}})),At.prototype.compact=function(){return this.filter(V)},At.prototype.find=function(t){return this.filter(t).head()},At.prototype.findLast=function(t){return this.reverse().find(t)},At.prototype.invokeMap=Gn((function(t,n){return"function"==typeof t?new At(this):this.map((function(r){return Nc(r,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Nu(t)))},At.prototype.slice=function(t,n){t=K(t);var r=this;return r.__filtered__&&(t>0||n<0)?new At(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=K(n))<0?r.dropRight(-n):r.take(n-t)),r)},At.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},At.prototype.toArray=function(){return this.take(lp)},Ku(At.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Bt[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Bt.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof At,c=u[0],f=a||O(n),l=function(t){var n=i.apply(Bt,oe([t],u));return e&&s?n[0]:n};f&&r&&"function"==typeof c&&1!=c.length&&(a=f=!1);var s=this.__chain__,p=!!this.__actions__.length,h=o&&!s,v=a&&!p;if(!o&&f){n=v?n:new At(this);var d=t.apply(n,u);return d.__actions__.push({func:gs,args:[l],thisArg:void 0}),new Rt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),Zt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=sp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Bt.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(O(i)?i:[],t)}return this[r]((function(r){return n.apply(O(r)?r:[],t)}))}})),Ku(At.prototype,(function(t,n){var r=Bt[n];if(r){var e=r.name+"";pp.call(kt,e)||(kt[e]=[]),kt[e].push({name:n,func:r})}})),kt[jn(void 0,2).name]=[{name:"wrapper",func:void 0}],At.prototype.clone=function(){var t=new At(this.__wrapped__);return t.__actions__=Wt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Wt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Wt(this.__views__),t},At.prototype.reverse=function(){if(this.__filtered__){var t=new At(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},At.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=O(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e{const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),(0,e.useCallback)(((...t)=>n.current(...t)),[])},_p=(t,n,r={})=>{const i=yp(t),o=(0,e.useMemo)((()=>ea(i,n,r)),[i,n,r]);return(t=>{const n=yp(t);(0,e.useEffect)((()=>()=>n()),[n])})((()=>o.cancel())),o},bp=({children:t,capture:n,wait:r,options:i})=>{const o=e.Children.only(t),u=_p(((...t)=>{const r=null==o?void 0:o.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,i);return(0,e.cloneElement)(o,{[n]:u})};function mp(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(t);i {const u=(0,e.useRef)(null),a=yp(t),c=(0,e.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,e.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(c,{root:r,rootMargin:o,threshold:i});return n.observe(t),()=>{n.unobserve(t)}}),[r,i,o,c]),u},wp=(...t)=>(0,e.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),xp=(0,e.forwardRef)(((t,n)=>{const{action:r,calledOnce:e,threshold:o,root:u,rootMargin:a}=t,c=mp(t,["action","calledOnce","threshold","root","rootMargin"]),f=jp({action:r,calledOnce:e,threshold:o,root:u,rootMargin:a});return(0,i.jsx)("div",Object.assign({ref:wp(n,f)},c,{children:t.children}))})),Op=(0,e.forwardRef)(((t,n)=>{var{src:r,style:o,threshold:u,root:a,rootMargin:c}=t,f=mp(t,["src","style","threshold","root","rootMargin"]);const l=jp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,e.useMemo)((()=>Object.assign({display:"inline-block"},o)),[o]);return(0,i.jsx)("img",Object.assign({},f,{ref:wp(n,l),style:s}))}));"function"==typeof SuppressedError&&SuppressedError;const Ap=()=>"undefined"==typeof window&&"undefined"!=typeof global,Ip=()=>!Ap(),Ep=Ip()?e.useLayoutEffect:e.useEffect;(0,e.createContext)({parentPortalElement:null});const kp=({children:t,condition:n})=>{const r=(t=>"function"==typeof t?t():t)(n);return r?(0,i.jsx)(e.Fragment,{children:t}):null},Sp=t=>!!Ip()&&window.matchMedia(t).matches,Mp=t=>{const[n,r]=(0,e.useState)(Sp(t)),i=(0,e.useCallback)((()=>{r(Sp(t))}),[t]);return(0,e.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",i),()=>n.removeEventListener("change",i)}),[t,i]),{isMatch:n}},Rp=t=>{const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current},Wp=t=>{const[n,r]=(0,e.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),i=(0,e.useRef)(null),o=yp(t),u=(0,e.useCallback)((([t])=>{t&&(o(t),r(t.contentRect))}),[o]);return(0,e.useEffect)((()=>{const t=i.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:i,contentRect:n}},zp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[i,o]=(0,e.useState)({width:null,height:null}),u=(0,e.useCallback)((()=>{o({width:window.innerWidth,height:window.innerHeight})}),[]),a=_p(u,r),c=(0,e.useMemo)((()=>n?a:u),[u,n,a]);return Ep((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),i}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2269],{8503:(t,n,r)=>{r.r(n),r.d(n,{assets:()=>f,contentTitle:()=>a,default:()=>p,frontMatter:()=>u,metadata:()=>c,toc:()=>l});var e=r(5735),i=r(7355),o=r(5474);const u={},a="LazyImage",c={id:"react/components/LazyImage",title:"LazyImage",description:"Viewport\uc5d0 \ub178\ucd9c\ub420 \ub54c \ud560\ub2f9\ub41c \uc774\ubbf8\uc9c0\ub97c Lazy Loading \ud558\ub294 \uc774\ubbf8\uc9c0 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/LazyImage.mdx",sourceDirName:"react/components",slug:"/react/components/LazyImage",permalink:"/modern-kit/docs/react/components/LazyImage",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"InView",permalink:"/modern-kit/docs/react/components/InView"},next:{title:"Portal",permalink:"/modern-kit/docs/react/components/Portal"}},f={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Default",id:"default",level:3},{value:"Fallback",id:"fallback",level:3},{value:"Example",id:"example",level:2},{value:"Note",id:"note",level:2}];function s(t){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,i.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"lazyimage",children:"LazyImage"}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"Viewport"}),"\uc5d0 \ub178\ucd9c\ub420 \ub54c \ud560\ub2f9\ub41c \uc774\ubbf8\uc9c0\ub97c ",(0,e.jsx)(n.code,{children:"Lazy Loading"})," \ud558\ub294 \uc774\ubbf8\uc9c0 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"width"}),", ",(0,e.jsx)(n.code,{children:"height"})," \uac12\uc744 \uc785\ub825\ud574 \uc774\ubbf8\uc9c0\uc758 \ud06c\uae30\ub97c \uc870\uc808 \ud560 \uc218 \uc788\uc73c\uba70, \ub3d9\uc2dc\uc5d0 ",(0,e.jsx)(n.code,{children:"Layout Shift"}),"\ub97c \uac1c\uc120\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.p,{children:["Intersection Observer Option\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.(\ud558\ub2e8 ",(0,e.jsx)(n.code,{children:"Note"})," \ucc38\uace0)"]}),"\n",(0,e.jsx)("br",{}),"\n",(0,e.jsx)(n.h2,{id:"interface",children:"Interface"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"interface LazyImageProps extends React.ComponentProps<'img'> {\n src: string;\n threshold?: number | number[]; // default: 0\n root?: Document | Element | null; // default: null\n rootMargin?: string; // default: '0px 0px 0px 0px'\n}\n\nconst LazyImage: React.ForwardRefExoticComponent & React.RefAttributes >\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.h3,{id:"default",children:"Default"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { LazyImage } from '@modern-kit/react';\nimport img1 from '../assets/img1.png';\nimport img2 from '../assets/img2.png';\n\nconst Example = () => {\n return (\n \n {/* ... */}\n\n );\n}; \n"})}),"\n",(0,e.jsx)("br",{}),"\n",(0,e.jsx)(n.h3,{id:"fallback",children:"Fallback"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { LazyImage } from '@modern-kit/react';\nimport img1 from '../assets/img1.png';\n\nconst Example = () => {\n const [isLoaded, setIsLoaded] = useState(false);\n\n const wrapperStyle: CSSProperties = {\n position: 'relative',\n width: '400px',\n height: '400px',\n };\n\n const imgStyle: CSSProperties = {\n position: 'absolute',\n top: 0,\n left: 0,\n opacity: isLoaded ? 1 : 0,\n transition: 'opacity 0.2s',\n };\n\n const skeletonStyle: CSSProperties = {\n width: '400px',\n height: '400px',\n backgroundColor: '#cdcbcb',\n }\n\n return (\n\n {/* ... */}\n \n {/* ... */}\n \n {!isLoaded && }\n\n );\n}; \n"})}),"\n",(0,e.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,e.jsxs)("div",{style:{maxWidth:"500px",height:"500px",overflow:"scroll",background:"#f8f8f8"},children:[(0,e.jsx)("div",{style:{width:"100%",height:"500px",textAlign:"center",fontSize:"2rem"},children:(0,e.jsx)(n.p,{children:"\uc2a4\ud06c\ub864 \ud574\uc8fc\uc138\uc694."})}),(0,e.jsx)(o.wY,{width:"100%",height:400,src:"https://github.com/Team-Grace/devgrace/assets/64779472/b5640bec-2abc-4205-afbf-ccfd9876a90b",alt:"img1",onClick:()=>console.log("img click1")}),(0,e.jsx)("div",{style:{width:"100%",height:"150px"}}),(0,e.jsx)(o.wY,{width:"100%",height:400,src:"https://github.com/Team-Grace/devgrace/assets/64779472/207743a7-b29f-4826-bc08-8df0d67e568b",alt:"img2",onClick:()=>console.log("img click2")}),(0,e.jsx)("div",{style:{width:"100%",height:"150px"}}),(0,e.jsx)(o.wY,{width:"100%",height:400,src:"https://github.com/Team-Grace/devgrace/assets/64779472/d1957ec8-fe87-406e-bfda-fb4ee505b152",alt:"img3",onClick:()=>console.log("img click3")})]}),"\n",(0,e.jsx)(n.h2,{id:"note",children:"Note"}),"\n",(0,e.jsx)(n.p,{children:(0,e.jsx)(n.a,{href:"https://developer.mozilla.org/ko/docs/Web/API/IntersectionObserver",children:"Intersection Observer API"})})]})}function p(t={}){const{wrapper:n}={...(0,i.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(s,{...t})}):s(t)}},7355:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const i={},o=e.createContext(i);function u(t){const n=e.useContext(o);return e.useMemo((function(){return"function"==typeof t?t(n):{...n,...t}}),[n,t])}function a(t){let n;return n=t.disableParentContext?"function"==typeof t.components?t.components(i):t.components||i:u(t.components),e.createElement(o.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{D9:()=>Rp,ac:()=>Mp,df:()=>xp,iP:()=>zp,nA:()=>kp,uM:()=>bp,wY:()=>Op,yU:()=>Wp});var e=r(4614),i=r(5735),o=(r(2832),"object"==typeof global&&global&&global.Object===Object&&global),u="object"==typeof self&&self&&self.Object===Object&&self,a=o||u||Function("return this")(),c=a.Symbol,f=Object.prototype,l=f.hasOwnProperty,s=f.toString,p=c?c.toStringTag:void 0,h=Object.prototype.toString,v="[object Null]",d="[object Undefined]",g=c?c.toStringTag:void 0;function y(t){return null==t?void 0===t?d:v:g&&g in Object(t)?function(t){var n=l.call(t,p),r=t[p];try{t[p]=void 0;var e=!0}catch(t){}var i=s.call(t);return e&&(n?t[p]=r:delete t[p]),i}(t):function(t){return h.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var b="[object Symbol]";function m(t){return"symbol"==typeof t||_(t)&&y(t)==b}var j=NaN;function w(t){return"number"==typeof t?t:m(t)?j:+t}function x(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++rsetIsLoaded(true)}\n />\n 0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Tt=Dt(ht),Nt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function qt(t){return function(){return t}}var $t=function(){try{var t=lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Kt=$t?function(t,n){return $t(t,"toString",{configurable:!0,enumerable:!1,value:qt(n),writable:!0})}:V,Vt=Dt(Kt);function Zt(t,n){for(var r=-1,e=null==t?0:t.length;++r -1}var Qt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Xt(t,n,r){var e=n+"";return Vt(t,function(t,n){var r=n.length;if(!r)return t;var e=r-1;return n[e]=(r>1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(Ft,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Zt(Qt,(function(r){var e="_."+r[0];n&r[1]&&!Jt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Nt);return n?n[1].split(Ut):[]}(e),r)))}var tn=1,nn=2,rn=4,en=8,on=32,un=64;function an(t,n,r,e,i,o,u,a,c,f){var l=n&en;n|=l?on:un,(n&=~(l?un:on))&rn||(n&=~(tn|nn));var s=[t,n,i,l?o:void 0,l?u:void 0,l?void 0:o,l?void 0:u,a,c,f],p=r.apply(void 0,s);return Pt(t)&&Tt(p,s),p.placeholder=e,Xt(p,t,n)}function cn(t){return t.placeholder}var fn=9007199254740991,ln=/^(?:0|[1-9]\d*)$/;function sn(t,n){var r=typeof t;return!!(n=null==n?fn:n)&&("number"==r||"symbol"!=r&&ln.test(t))&&t>-1&&t%1==0&&t 1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof y&&(A=g||gt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,In=4,En=8,kn=128,Sn=256,Mn=Math.min,Rn="Expected a function",Wn=1,zn=2,Ln=8,Bn=16,Pn=32,Cn=64,Dn=Math.max;function Tn(t,n,r,e,i,o,u,c){var f=n&zn;if(!f&&"function"!=typeof t)throw new TypeError(Rn);var l=e?e.length:0;if(l||(n&=~(Pn|Cn),e=i=void 0),u=void 0===u?u:Dn(K(u),0),c=void 0===c?c:K(c),l-=i?i.length:0,n&Cn){var s=e,p=i;e=i=void 0}var h=f?void 0:Et(t),v=[t,n,r,e,i,s,p,o,u,c];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(On|An|kn),u=e==kn&&r==En||e==kn&&r==Sn&&t[7].length<=n[8]||e==(kn|Sn)&&n[7].length<=n[8]&&r==En;if(!o&&!u)return t;e&On&&(t[2]=n[2],i|=r&On?0:In);var a=n[3];if(a){var c=t[3];t[3]=c?mt(c,a,n[4]):a,t[4]=c?vn(t[3],xn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?wt(c,a,n[6]):a,t[6]=c?vn(t[5],xn):n[6]),(a=n[7])&&(t[7]=a),e&kn&&(t[8]=null==t[8]?n[8]:Mn(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i}(v,h),t=v[0],n=v[1],r=v[2],e=v[3],i=v[4],!(c=v[9]=void 0===v[9]?f?0:t.length:Dn(v[9]-l,0))&&n&(Ln|Bn)&&(n&=~(Ln|Bn)),n&&n!=Wn)d=n==Ln||n==Bn?function(t,n,r){var e=gt(t);return function i(){for(var o=arguments.length,u=Array(o),c=o,f=cn(i);c--;)u[c]=arguments[c];var l=o<3&&u[0]!==f&&u[o-1]!==f?[]:vn(u,f);return(o-=l.length) -1&&t%1==0&&t<=Yn}function Jn(t){return null!=t&&Hn(t.length)&&!J(t)}function Qn(t,n,r){if(!B(r))return!1;var e=typeof n;return!!("number"==e?Jn(r)&&sn(n,r.length):"string"==e&&n in r)&&Fn(r[n],t)}function Xn(t){return Gn((function(n,r){var e=-1,i=r.length,o=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&Qn(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},$r.prototype.set=function(t,n){var r=this.__data__,e=Fr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Kr=lt(a,"Map");function Vr(t,n){var r,e,i=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof n?"string":"hash"]:i.map}function Zr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n 0&&r(a)?n>1?ce(a,n-1,r,e,i):oe(i,a):e||(i[i.length]=a)}return i}function fe(t){return null!=t&&t.length?ce(t,1):[]}function le(t){return Vt(Zn(t,void 0,fe),t+"")}var se=le(ie),pe=xr(Object.getPrototypeOf,Object),he="[object Object]",ve=Function.prototype,de=Object.prototype,ge=ve.toString,ye=de.hasOwnProperty,_e=ge.call(Object);function be(t){if(!_(t)||y(t)!=he)return!1;var n=pe(t);if(null===n)return!0;var r=ye.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ge.call(r)==_e}function me(t){if(!_(t))return!1;var n=y(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!be(t)}var je=Gn((function(t,n){try{return _t(t,void 0,n)}catch(t){return me(t)?t:new Error(t)}}));function we(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=K(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var xe=Gn((function(t,n,r){var e=1;if(r.length){var i=vn(r,cn(xe));e|=32}return Tn(t,e,n,r,i)}));xe.placeholder={};var Oe=le((function(t,n){return Zt(n,(function(n){n=ne(n),Un(t,n,xe(t[n],t))})),t})),Ae=Gn((function(t,n,r){var e=3;if(r.length){var i=vn(r,cn(Ae));e|=32}return Tn(n,e,t,r,i)}));function Ie(t,n,r){var e=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(r=r>i?i:r)<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(i);++e=e?t:Ie(t,n,r)}Ae.placeholder={};var ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Se(t){return ke.test(t)}var Me="\\ud800-\\udfff",Re="["+Me+"]",We="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ze="\\ud83c[\\udffb-\\udfff]",Le="[^"+Me+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="(?:"+We+"|"+ze+")?",De="[\\ufe0e\\ufe0f]?",Te=De+Ce+"(?:\\u200d(?:"+[Le,Be,Pe].join("|")+")"+De+Ce+")*",Ne="(?:"+[Le+We+"?",We,Be,Pe,Re].join("|")+")",Ue=RegExp(ze+"(?="+ze+")|"+Ne+Te,"g");function Fe(t){return Se(t)?function(t){return t.match(Ue)||[]}(t):function(t){return t.split("")}(t)}function qe(t){return function(n){var r=Se(n=Qr(n))?Fe(n):void 0,e=r?r[0]:n.charAt(0),i=r?Ee(r,1).join(""):n.slice(1);return e[t]()+i}}var $e=qe("toUpperCase");function Ke(t){return $e(Qr(t).toLowerCase())}function Ve(t,n,r,e){var i=-1,o=null==t?0:t.length;for(e&&o&&(r=t[++i]);++i =n?t:n)),t}function Li(t){var n=this.__data__=new $r(t);this.size=n.size}function Bi(t,n){return t&&Kn(n,Er(n),t)}Li.prototype.clear=function(){this.__data__=new $r,this.size=0},Li.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Li.prototype.get=function(t){return this.__data__.get(t)},Li.prototype.has=function(t){return this.__data__.has(t)},Li.prototype.set=function(t,n){var r=this.__data__;if(r instanceof $r){var e=r.__data__;if(!Kr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Zr(e)}return r.set(t,n),this.size=r.size,this};var Pi="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ci=Pi&&"object"==typeof module&&module&&!module.nodeType&&module,Di=Ci&&Ci.exports===Pi?a.Buffer:void 0,Ti=Di?Di.allocUnsafe:void 0;function Ni(t,n){if(n)return t.slice();var r=t.length,e=Ti?Ti(r):new t.constructor(r);return t.copy(e),e}function Ui(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++r a))return!1;var f=o.get(t),l=o.get(n);if(f&&l)return f==n&&l==t;var s=-1,p=!0,h=r&Qo?new Go:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-f>=o}function d(){var t=ta();if(v(t))return g(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ra(r,o-(t-f)):r}(t))}function g(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function y(){var t=ta(),r=v(t);if(e=arguments,i=this,c=t,r){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),l?h(t):u}(c);if(s)return clearTimeout(a),a=setTimeout(d,n),h(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=U(n)||0,B(r)&&(l=!!r.leading,o=(s="maxWait"in r)?na(U(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},y.flush=function(){return void 0===a?u:g(ta())},y}var ia=Object.prototype,oa=ia.hasOwnProperty,ua=Gn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&Qn(n[0],n[1],i)&&(e=1);++r