diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/404.html b/404.html index a0147bcc8..bef588edc 100644 --- a/404.html +++ b/404.html @@ -4,8 +4,8 @@ Page Not Found | @modern-kit - - + +
Skip to main content

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/assets/js/11738f66.41ad3032.js b/assets/js/11738f66.41ad3032.js deleted file mode 100644 index fc586a24f..000000000 --- a/assets/js/11738f66.41ad3032.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4949],{7496:(t,n,r)=>{r.r(n),r.d(n,{ResizeObserver:()=>l,assets:()=>f,contentTitle:()=>a,default:()=>h,frontMatter:()=>u,metadata:()=>c,toc:()=>s});var e=r(5735),o=r(289),i=r(5474);const u={},a="useResizeObserver",c={id:"react/hooks/useResizeObserver",title:"useResizeObserver",description:"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uc758 DOM \ud06c\uae30 \ubcc0\ud654\ub97c \uac10\uc9c0\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useResizeObserver.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useResizeObserver",permalink:"/modern-kit/docs/react/hooks/useResizeObserver",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"usePrevious",permalink:"/modern-kit/docs/react/hooks/usePrevious"},next:{title:"useTimeout",permalink:"/modern-kit/docs/react/hooks/useTimeout"}},f={},s=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}],l=()=>{const t={br:"br",div:"div",...(0,o.a)()},{ref:n,contentRect:r}=(0,i.yU)((t=>{console.log("resize",t)}));return(0,e.jsxs)(t.div,{ref:n,style:{width:"100%",height:"400px",background:"#439966",fontSize:"2rem",color:"#fff"},children:["\ube0c\ub77c\uc6b0\uc800 \ub108\ube44\ub97c \uc904\uc5ec\ubcf4\uc138\uc694. ",(0,e.jsx)(t.br,{}),`width: ${r.width}, height: ${r.height}`]})};function p(t){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"useresizeobserver",children:"useResizeObserver"}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"ref"}),"\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uc758 DOM \ud06c\uae30 \ubcc0\ud654\ub97c \uac10\uc9c0\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\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:"/**\n * type ContentRect = {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n }\n */\ntype ContentRect = Omit;\n\nconst useResizeObserver: (\n action: (entry: ResizeObserverEntry) => void\n) => {\n ref: React.RefObject;\n contentRect: ContentRect;\n};\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import React, { forwardRef, useRef } from 'react';\nimport { useResizeObserver } from '@modern-kit/react';\n\nconst Example = () => {\n const { ref, contentRect } = useResizeObserver((entry) => {\n console.log('resize', entry);\n });\n\n const boxStyle = useMemo(() => {\n return {\n width: '100%', \n height: '400px', \n background: '#439966', \n fontSize: '2rem',\n color: '#fff',\n }\n }, []);\n\n return (\n \n \ube0c\ub77c\uc6b0\uc800 \ub108\ube44\ub97c \uc904\uc5ec\ubcf4\uc138\uc694.
\n {`width: ${contentRect.width}, height: ${contentRect.height}`}\n \n );\n};\n"})}),"\n","\n",(0,e.jsx)(l,{}),"\n",(0,e.jsx)("br",{}),"\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/en-US/docs/Web/API/ResizeObserver",children:"ResizeObserver API"})})]})}function h(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(p,{...t})}):p(t)}},289:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const o={},i=e.createContext(o);function u(t){const n=e.useContext(i);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(o):t.components||o:u(t.components),e.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{AB:()=>f,D9:()=>Sp,ac:()=>Mp,df:()=>Ap,iP:()=>Wp,nA:()=>kp,uM:()=>jp,wY:()=>Ep,yU:()=>zp});var e=r(5735),o=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const i=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!i(),c=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),(0,o.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=o.Children.toArray(t);let e=0,i=0;if(2!==r.length)return null;for(const o of r){if(![f.CaseA,f.CaseB].includes(o.type))return null;o.type===f.CaseA?e+=1:i+=1}return e>=2||i>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,o.useEffect)((()=>{r()}),[r]),(0,e.jsx)(o.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,o.useEffect)((()=>{r()}),[r]),(0,e.jsx)(o.Fragment,{children:t})};var s="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,p=s||l||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=h?h.toStringTag:void 0;function w(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,g),r=t[g];try{t[g]=void 0;var e=!0}catch(t){}var o=y.call(t);return e&&(n?t[g]=r:delete t[g]),o}(t):function(t){return _.call(t)}(t)}function x(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||x(t)&&w(t)==O}var E=NaN;function R(t){return"number"==typeof t?t:A(t)?E:+t}function k(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Gt(t){return function(){return t}}var Ht=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Jt=qt(Ht?function(t,n){return Ht(t,"toString",{configurable:!0,enumerable:!1,value:Gt(n),writable:!0})}:Y);function Yt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Jt(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Yt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,sn=64;function ln(t,n,r,e,o,i,u,a,c,f){var s=n&cn;n|=s?fn:sn,(n&=~(s?sn:fn))&an||(n&=~(on|un));var l=[t,n,o,s?i:void 0,s?u:void 0,s?void 0:i,s?void 0:u,a,c,f],p=r.apply(void 0,l);return Nt(t)&&$t(p,l),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?hn:n)&&("number"==r||"symbol"!=r&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),s&&c<_&&(b.length=c),this&&this!==p&&this instanceof g&&(A=y||jt(A)),A.apply(O,b)}}var En=1,Rn="__lodash_placeholder__",kn=1,In=2,Mn=4,Sn=8,zn=128,Wn=256,Bn=Math.min,Cn="Expected a function",Ln=1,Pn=2,Tn=8,Dn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,r,e,o,i,u,a){var c=n&Pn;if(!c&&"function"!=typeof t)throw new TypeError(Cn);var f=e?e.length:0;if(f||(n&=~(Un|Nn),e=o=void 0),u=void 0===u?u:Fn(J(u),0),a=void 0===a?a:J(a),f-=o?o.length:0,n&Nn){var s=e,l=o;e=o=void 0}var h=c?void 0:zt(t),v=[t,n,r,e,o,s,l,i,u,a];if(h&&function(t,n){var r=t[1],e=n[1],o=r|e,i=o<(kn|In|zn),u=e==zn&&r==Sn||e==zn&&r==Wn&&t[7].length<=n[8]||e==(zn|Wn)&&n[7].length<=n[8]&&r==Sn;if(!i&&!u)return t;e&kn&&(t[2]=n[2],o|=r&kn?0:Mn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],Rn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?Rt(c,a,n[6]):a,t[6]=c?_n(t[5],Rn):n[6]),(a=n[7])&&(t[7]=a),e&zn&&(t[8]=null==t[8]?n[8]:Bn(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],r=v[2],e=v[3],o=v[4],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Tn|Dn)&&(n&=~(Tn|Dn)),n&&n!=Ln)d=n==Tn||n==Dn?function(t,n,r){var e=jt(t);return function o(){for(var i=arguments.length,u=Array(i),a=i,c=pn(o);a--;)u[a]=arguments[a];var f=i<3&&u[0]!==c&&u[i-1]!==c?[]:_n(u,c);return(i-=f.length)-1&&t%1==0&&t<=Xn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!U(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Vn(r[n],t)}function er(t){return Qn((function(n,r){var e=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&rr(r[0],r[1],u)&&(i=o<3?void 0:i,o=1),n=Object(n);++e-1},Gr.prototype.set=function(t,n){var r=this.__data__,e=Vr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Hr=dt(p,"Map");function Jr(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function Yr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,o):fe(o,a):e||(o[o.length]=a)}return o}function he(t){return null!=t&&t.length?pe(t,1):[]}function ve(t){return Jt(Yn(t,void 0,he),t+"")}var de=ve(ce),ye=Rr(Object.getPrototypeOf,Object),ge="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,je=be.hasOwnProperty,we=me.call(Object);function xe(t){if(!x(t)||w(t)!=ge)return!1;var n=ye(t);if(null===n)return!0;var r=je.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==we}function Oe(t){if(!x(t))return!1;var n=w(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!xe(t)}var Ae=Qn((function(t,n){try{return xt(t,void 0,n)}catch(t){return Oe(t)?t:new Error(t)}}));function Ee(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var Re=Qn((function(t,n,r){var e=1;if(r.length){var o=_n(r,pn(Re));e|=32}return qn(t,e,n,r,o)}));Re.placeholder={};var ke=ve((function(t,n){return Yt(n,(function(n){n=ie(n),Kn(t,n,Re(t[n],t))})),t})),Ie=Qn((function(t,n,r){var e=3;if(r.length){var o=_n(r,pn(Ie));e|=32}return qn(n,e,t,r,o)}));function Me(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e=e?t:Me(t,n,r)}Ie.placeholder={};var ze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function We(t){return ze.test(t)}var Be="\\ud800-\\udfff",Ce="["+Be+"]",Le="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Pe="\\ud83c[\\udffb-\\udfff]",Te="[^"+Be+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="(?:"+Le+"|"+Pe+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ne+"(?:\\u200d(?:"+[Te,De,Ue].join("|")+")"+Fe+Ne+")*",$e="(?:"+[Te+Le+"?",Le,De,Ue,Ce].join("|")+")",Ke=RegExp(Pe+"(?="+Pe+")|"+$e+qe,"g");function Ve(t){return We(t)?function(t){return t.match(Ke)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=We(n=re(n))?Ve(n):void 0,e=r?r[0]:n.charAt(0),o=r?Se(r,1).join(""):n.slice(1);return e[t]()+o}}var Ge=Ze("toUpperCase");function He(t){return Ge(re(t).toLowerCase())}function Je(t,n,r,e){var o=-1,i=null==t?0:t.length;for(e&&i&&(r=t[++o]);++o=n?t:n)),t}function Do(t){var n=this.__data__=new Gr(t);this.size=n.size}function Uo(t,n){return t&&Hn(n,Sr(n),t)}Do.prototype.clear=function(){this.__data__=new Gr,this.size=0},Do.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Do.prototype.get=function(t){return this.__data__.get(t)},Do.prototype.has=function(t){return this.__data__.has(t)},Do.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!Hr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(t,n),this.size=r.size,this};var No="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fo=No&&"object"==typeof module&&module&&!module.nodeType&&module,qo=Fo&&Fo.exports===No?p.Buffer:void 0,$o=qo?qo.allocUnsafe:void 0;function Ko(t,n){if(n)return t.slice();var r=t.length,e=$o?$o(r):new t.constructor(r);return t.copy(e),e}function Vo(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++ra))return!1;var f=i.get(t),s=i.get(n);if(f&&s)return f==n&&s==t;var l=-1,p=!0,h=r&ru?new Qi:void 0;for(i.set(t,n),i.set(n,t);++l=n||r<0||l&&t-f>=i}function d(){var t=oa();if(v(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return l?ua(r,i-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=o=void 0,u)}function g(){var t=oa(),r=v(t);if(e=arguments,o=this,c=t,r){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),s?h(t):u}(c);if(l)return clearTimeout(a),a=setTimeout(d,n),h(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=V(n)||0,U(r)&&(s=!!r.leading,i=(l="maxWait"in r)?ia(V(r.maxWait)||0,n):i,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=o=a=void 0},g.flush=function(){return void 0===a?u:y(oa())},g}var ca=Object.prototype,fa=ca.hasOwnProperty,sa=Qn((function(t,n){t=Object(t);var r=-1,e=n.length,o=e>2?n[2]:void 0;for(o&&rr(n[0],n[1],o)&&(e=1);++r=xa&&(i=tu,u=!1,n=new Qi(n));t:for(;++o":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Na):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?o[i?n[u]:u]:void 0}}var Qa=Math.max;function Xa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=null==r?0:J(r);return o<0&&(o=Qa(e+o,0)),Qt(t,$u(n),o)}var tc=Ya(Xa);function nc(t,n,r){var e;return r(t,(function(t,r,o){if(n(t,r,o))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function oc(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=e-1;return void 0!==r&&(o=J(r),o=r<0?rc(e+o,0):ec(o,e-1)),Qt(t,$u(n),o,!0)}var ic=Ya(oc);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Yu(t,(function(t,o,i){e[++r]=n(t,o,i)})),e}function cc(t,n){return(I(t)?k:ac)(t,$u(n))}var fc=Wo("floor");function sc(t){return ve((function(n){var r=n.length,e=r,o=Lt.prototype.thru;for(t&&n.reverse();e--;){var i=n[e];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==Ct(i))var u=new Lt([],!0)}for(e=u?e:r;++en}function gc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=V(n),r=V(r)),t(n,r)}}var _c=gc(yc),bc=gc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var wc=Math.max,xc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!I(t)&&x(t)&&w(t)==Oc}function Ec(t,n){return k(n,(function(n){return t[n]}))}function Rc(t){return null==t?[]:Ec(t,Sr(t))}var kc=Math.max,Ic=Math.max,Mc=Math.min;function Sc(t,n,r){for(var e=r?wa:nn,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var s=t[u];u&&n&&(s=k(s,_r(n))),c=Mc(s.length,c),a[u]=!r&&(n||o>=120&&s.length>=120)?new Qi(u&&s):void 0}s=t[0];var l=-1,p=a[0];t:for(;++l1),n})),Hn(t,ti(t),r),e&&(r=Yi(r,7,kf));for(var o=n.length;o--;)Rf(r,n[o]);return r}));function Mf(t,n,r,e){if(!U(t))return t;for(var o=-1,i=(n=ee(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||e&&u&&c||!r&&c||!o)return 1;if(!e&&!i&&!f&&t=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function Cf(t){return ve((function(n){return n=k(n,_r($u)),Qn((function(r){var e=this;return t(n,(function(t){return xt(t,e,r)}))}))}))}var Lf=Cf(k),Pf=Qn,Tf=Math.min,Df=Pf((function(t,n){var r=(n=1==n.length&&I(n[0])?k(n[0],_r($u)):k(pe(n,1),_r($u))).length;return Qn((function(e){for(var o=-1,i=Tf(e.length,r);++oFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Gf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Hf="\\ud83c[\\udffb-\\udfff]",Jf="[^"+Vf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Qf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="(?:"+Gf+"|"+Hf+")?",ts="[\\ufe0e\\ufe0f]?",ns=ts+Xf+"(?:\\u200d(?:"+[Jf,Yf,Qf].join("|")+")"+ts+Xf+")*",rs="(?:"+[Jf+Gf+"?",Gf,Yf,Qf,Zf].join("|")+")",es=RegExp(Hf+"(?="+Hf+")|"+rs+ns,"g");function os(t){return We(t)?function(t){for(var n=es.lastIndex=0;es.test(t);)++n;return n}(t):Kf(t)}var is=Math.ceil;function us(t,n){var r=(n=void 0===n?" ":W(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,is(t/os(n)));return We(n)?Se(Ve(e),0,t).join(""):e.slice(0,t)}var as=Math.ceil,cs=Math.floor,fs=/^\s+/,ss=p.parseInt,ls=Qn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(ls)))}));ls.placeholder={};var ps=Qn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(ps)))}));ps.placeholder={};var hs=Xu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),vs=ve((function(t,n){return null==t?{}:function(t,n){return Sf(t,n,(function(n,r){return Tu(t,r)}))}(t,n)}));function ds(t,n,r,e){for(var o=r-1,i=t.length;++o-1;)a!==t&&ys.call(a,c,1),ys.call(t,c,1);return t}function _s(t,n){return t&&t.length&&n&&n.length?gs(t,n):t}var bs=Qn(_s),ms=Array.prototype.splice;function js(t,n){for(var r=t?n.length:0,e=r-1;r--;){var o=n[r];if(r==e||o!==i){var i=o;dn(o)?ms.call(t,o,1):Rf(t,o)}}return t}var ws=ve((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return js(t,k(n,(function(t){return dn(t,r)?+t:t})).sort(Wf)),e})),xs=Math.floor,Os=Math.random;function As(t,n){return t+xs(Os()*(n-t+1))}var Es=parseFloat,Rs=Math.min,ks=Math.random,Is=Math.ceil,Ms=Math.max;function Ss(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=H(n),void 0===r?(r=n,n=0):r=H(r),function(t,n,r,e){for(var o=-1,i=Ms(Is((n-t)/(r||1)),0),u=Array(i);i--;)u[e?i:++o]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),Bf(t,pe(n,1),[])})),Js=4294967294,Ys=Math.floor,Qs=Math.min;function Xs(t,n,r,e){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=r(n))!=n,a=null===n,c=A(n),f=void 0===n;o>>1,u=t[i];null!==u&&!A(u)&&(r?u<=n:u/g,ll={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:sl,variable:"",imports:{_:{escape:$a}}},pl=/\b__p \+= '';/g,hl=/\b(__p \+=) '' \+/g,vl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dl=/[()=,{}\[\]\/\s]/,yl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gl=/($^)/,_l=/['\n\r\u2028\u2029\\]/g,bl=Object.prototype.hasOwnProperty;function ml(t,n){return n(t)}var jl=4294967295,wl=Math.min;function xl(t,n){var r=t;return r instanceof Mt&&(r=r.value()),Je(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function Ol(){return xl(this.__wrapped__,this.__actions__)}function Al(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function El(t,n){for(var r=-1,e=t.length;++r-1;);return r}var Rl=/^\s+/,kl=/\w*$/,Il=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ml=/&(?:amp|lt|gt|quot|#39);/g,Sl=RegExp(Ml.source),zl=ei&&1/iu(new ei([,-0]))[1]==1/0?function(t){return new ei(t)}:St,Wl=200;function Bl(t,n,r){var e=-1,o=nn,i=t.length,u=!0,a=[],c=a;if(r)u=!1,o=wa;else if(i>=Wl){var f=n?null:zl(t);if(f)return iu(f);u=!1,o=tu,c=new Qi}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof Mt&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ml,args:[o],thisArg:void 0}),new Lt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Vl(t,n,r){var e=t.length;if(e<2)return e?Bl(t[0]):[];for(var o=-1,i=Array(e);++o1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Nl(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Po(J(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var o=0,i=0,u=Array(Lo(e/n));oo?0:o+r),(e=void 0===e||e>o?o:J(e))<0&&(e+=o),e=r>e?0:Ha(e);r-1:!!o&&tn(t,n,r)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(I(n)||(n=null==n?[]:[n]),I(r=e?void 0:r)||(r=null==r?[]:[r]),Bf(t,n,r))},partition:hs,reduce:function(t,n,r){var e=I(t)?Je:Cs,o=arguments.length<3;return e(t,$u(n),r,o,Yu)},reduceRight:function(t,n,r){var e=I(t)?Ls:Cs,o=arguments.length<3;return e(t,$u(n),r,o,La)},reject:function(t,n){return(I(t)?Vo:Ja)(t,xf($u(n)))},sample:function(t){return(I(t)?Us:Ns)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:J(n),(I(t)?qs:$s)(t,n)},shuffle:function(t){return(I(t)?Ks:Vs)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Ac(t)?os(t):t.length;var n=di(t);return"[object Map]"==n||"[object Set]"==n?t.size:Mr(t).length},some:function(t,n,r){var e=I(t)?Xi:Gs;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Hs},rp=oa,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ee,bind:Re,bindKey:Ie,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Qr,negate:xf,once:function(t){return Ee(2,t)},overArgs:Df,partial:ls,partialRight:ps,rearg:Bs,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Qn(t,n=void 0===n?n:J(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rl(J(n),0),Qn((function(r){var e=r[n],o=Se(r,0,n);return e&&fe(o,e),xt(t,this,o)}))},throttle:function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),aa(t,n,{leading:e,maxWait:n,trailing:o})},unary:function(t){return $n(t,1)},wrap:function(t,n){return ls(Sa(n),t)}},op={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return I(t)?t:[t]},clone:function(t){return Yi(t,4)},cloneDeep:function(t){return Yi(t,5)},cloneDeepWith:function(t,n){return Yi(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Yi(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Sr(n))},eq:Vn,gt:_c,gte:bc,isArguments:lr,isArray:I,isArrayBuffer:Gc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||x(t)&&"[object Boolean]"==w(t)},isBuffer:yr,isDate:Jc,isElement:function(t){return x(t)&&1===t.nodeType&&!xe(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(I(t)||"string"==typeof t||"function"==typeof t.splice||yr(t)||Or(t)||lr(t)))return!t.length;var n=di(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(ir(t))return!Mr(t).length;for(var r in t)if(Yc.call(t,r))return!1;return!0},isEqual:function(t,n){return ku(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?ku(t,n,void 0,r):!!e},isError:Oe,isFinite:function(t){return"number"==typeof t&&Qc(t)},isFunction:rt,isInteger:Xc,isLength:tr,isMap:$i,isMatch:function(t,n){return t===n||Su(t,n,Wu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Su(t,n,Wu(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:x,isPlainObject:xe,isRegExp:ef,isSafeInteger:function(t){return Xc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vi,isString:Ac,isSymbol:A,isTypedArray:Or,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return x(t)&&"[object WeakMap]"==di(t)},isWeakSet:function(t){return x(t)&&"[object WeakSet]"==w(t)},lt:hf,lte:vf,toArray:Af,toFinite:H,toInteger:J,toLength:Ha,toNumber:V,toPlainObject:va,toSafeInteger:function(t){return t?To(J(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},ip={add:C,ceil:Bo,divide:Ia,floor:fc,max:function(t){return t&&t.length?df(t,Y,yc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),yc):void 0},mean:function(t){return gf(t,Y)},meanBy:function(t,n){return gf(t,$u(n))},min:function(t){return t&&t.length?df(t,Y,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:wf,round:Ds,subtract:ol,sum:function(t){return t&&t.length?yf(t,Y):0},sumBy:function(t,n){return t&&t.length?yf(t,$u(n)):0}},up={assign:Wr,assignIn:Lr,assignInWith:Pr,assignWith:Tr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Uo(r,n)},defaults:sa,defaultsDeep:_a,entries:Da,entriesIn:Ua,extend:Lr,extendWith:Pr,findKey:function(t,n){return nc(t,$u(n),Hu)},findLastKey:function(t,n){return nc(t,$u(n),Ca)},forIn:function(t,n){return null==t?t:Gu(t,Sa(n),Cr)},forInRight:function(t,n){return null==t?t:Ba(t,Sa(n),Cr)},forOwn:function(t,n){return t&&Hu(t,Sa(n))},forOwnRight:function(t,n){return t&&Ca(t,Sa(n))},functions:function(t){return null==t?[]:hc(t,Sr(t))},functionsIn:function(t){return null==t?[]:hc(t,Cr(t))},get:ae,has:function(t,n){return null!=t&&Pu(t,n,jc)},hasIn:Tu,invert:Tc,invertBy:Fc,invoke:Kc,keys:Sr,keysIn:Cr,mapKeys:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,o){Kn(r,n(t,e,o),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,o){Kn(r,e,n(t,e,o))})),r},merge:_f,mergeWith:ga,omit:If,omitBy:function(t,n){return zf(t,xf($u(n)))},pick:vs,pickBy:zf,result:function(t,n,r){var e=-1,o=(n=ee(n,t)).length;for(o||(o=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 kt;){var e=Tt(r);e.__index__=0,e.__values__=void 0,n?o.__wrapped__=e:n=e;var o=e;r=r.__wrapped__}return o.__wrapped__=t,n},reverse:function(){var t=this.__wrapped__;if(t instanceof Mt){var n=t;return this.__actions__.length&&(n=new Mt(this)),(n=n.reverse()).__actions__.push({func:ml,args:[Ts],thisArg:void 0}),new Lt(n,this.__chain__)}return this.thru(Ts)},tap:function(t,n){return n(t),t},thru:ml,toIterator:function(){return this},toJSON:Ol,value:Ol,valueOf:Ol,wrapperChain:function(){return Co(this)}},cp={camelCase:Mo,capitalize:He,deburr:no,endsWith:function(t,n,r){t=re(t),n=W(n);var e=t.length,o=r=void 0===r?e:To(J(r),0,e);return(r-=n.length)>=0&&t.slice(r,o)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:sf,lowerFirst:lf,pad:function(t,n,r){t=re(t);var e=(n=J(n))?os(t):0;if(!n||e>=n)return t;var o=(n-e)/2;return us(cs(o),r)+t+us(as(o),r)},padEnd:function(t,n,r){t=re(t);var e=(n=J(n))?os(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=W(n))&&We(t)?Se(Ve(t),0,r):t.split(n,r):[]},startCase:el,startsWith:function(t,n,r){return t=re(t),r=null==r?0:To(J(r),0,t.length),n=W(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ll.imports._.templateSettings||ll;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Pr({},n,e,al);var o,i,u=Pr({},n.imports,e.imports,al),a=Sr(u),c=Ec(u,a),f=0,s=n.interpolate||gl,l="__p += '",p=RegExp((n.escape||gl).source+"|"+s.source+"|"+(s===sl?yl:gl).source+"|"+(n.evaluate||gl).source+"|$","g"),h=bl.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(n,r,e,u,a,c){return e||(e=u),l+=t.slice(f,c).replace(_l,fl),r&&(o=!0,l+="' +\n__e("+r+") +\n'"),a&&(i=!0,l+="';\n"+a+";\n__p += '"),e&&(l+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),l+="';\n";var v=bl.call(n,"variable")&&n.variable;if(v){if(dl.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(i?l.replace(pl,""):l).replace(hl,"$1").replace(vl,"$1;"),l="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")+l+"return __p\n}";var d=Ae((function(){return Function(a,h+"return "+l).apply(void 0,c)}));if(d.source=l,Oe(d))throw d;return d},templateSettings:ll,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return D(t);if(!t||!(n=W(n)))return t;var e=Ve(t),o=Ve(n);return Se(e,El(e,o),Al(e,o)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,P(t)+1);if(!t||!(n=W(n)))return t;var e=Ve(t);return Se(e,0,Al(e,Ve(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(Rl,"");if(!t||!(n=W(n)))return t;var e=Ve(t);return Se(e,El(e,Ve(n))).join("")},truncate:function(t,n){var r=30,e="...";if(U(n)){var o="separator"in n?n.separator:o;r="length"in n?J(n.length):r,e="omission"in n?W(n.omission):e}var i=(t=re(t)).length;if(We(t)){var u=Ve(t);i=u.length}if(r>=i)return t;var a=r-os(e);if(a<1)return e;var c=u?Se(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+e;if(u&&(a+=c.length-a),ef(o)){if(t.slice(a).search(o)){var f,s=c;for(o.global||(o=RegExp(o.source,re(kl.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var l=f.index;c=c.slice(0,void 0===l?a:l)}}else if(t.indexOf(W(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Sl.test(t)?t.replace(Ml,Il):t},upperCase:ql,upperFirst:Ge,words:Ro},fp={attempt:Ae,bindAll:ke,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?k(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Qn((function(r){for(var e=-1;++e9007199254740991)return[];var r=jl,e=wl(t,jl);n=Sa(n),t-=jl;for(var o=ur(e,n);++r=xc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var o=ks();return Rs(t+o*(n-t+Es("1e-"+((o+"").length-1))),n)}return As(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=ip.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=ip.subtract,Ut.sum=ip.sum,Ut.sumBy=ip.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=op.toFinite,Ut.toInteger=J,Ut.toLength=op.toLength,Ut.toLower=cp.toLower,Ut.toNumber=op.toNumber,Ut.toSafeInteger=op.toSafeInteger,Ut.toString=op.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Ql={},Hu(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Ql[n]=t)})),Ql),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Yt(["drop","take"],(function(t,n){Mt.prototype[t]=function(r){r=void 0===r?1:gp(J(r),0);var e=this.__filtered__&&!n?new Mt(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,hp),type:t+(e.__dir__<0?"Right":"")}),e},Mt.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Yt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;Mt.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Yt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");Mt.prototype[t]=function(){return this[r](1).value()[0]}})),Yt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");Mt.prototype[t]=function(){return this.__filtered__?new Mt(this):this[r](1)}})),Mt.prototype.compact=function(){return this.filter(Y)},Mt.prototype.find=function(t){return this.filter(t).head()},Mt.prototype.findLast=function(t){return this.reverse().find(t)},Mt.prototype.invokeMap=Qn((function(t,n){return"function"==typeof t?new Mt(this):this.map((function(r){return $c(r,t,n)}))})),Mt.prototype.reject=function(t){return this.filter(xf($u(t)))},Mt.prototype.slice=function(t,n){t=J(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Mt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=J(n))<0?r.dropRight(-n):r.take(n-t)),r)},Mt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Mt.prototype.toArray=function(){return this.take(hp)},Hu(Mt.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),o=Ut[e?"take"+("last"==n?"Right":""):n],i=e||/^find/.test(n);o&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof Mt,c=u[0],f=a||I(n),s=function(t){var n=o.apply(Ut,fe([t],u));return e&&l?n[0]:n};f&&r&&"function"==typeof c&&1!=c.length&&(a=f=!1);var l=this.__chain__,p=!!this.__actions__.length,h=i&&!l,v=a&&!p;if(!i&&f){n=v?n:new Mt(this);var d=t.apply(n,u);return d.__actions__.push({func:ml,args:[s],thisArg:void 0}),new Lt(d,l)}return h&&v?t.apply(this,u):(d=this.thru(s),h?e?d.value()[0]:d.value():d)})})),Yt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var o=this.value();return n.apply(I(o)?o:[],t)}return this[r]((function(r){return n.apply(I(r)?r:[],t)}))}})),Hu(Mt.prototype,(function(t,n){var r=Ut[n];if(r){var e=r.name+"";dp.call(Wt,e)||(Wt[e]=[]),Wt[e].push({name:n,func:r})}})),Wt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],Mt.prototype.clone=function(){var t=new Mt(this.__wrapped__);return t.__actions__=Pt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Pt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Pt(this.__views__),t},Mt.prototype.reverse=function(){if(this.__filtered__){var t=new Mt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Mt.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=I(t),e=n<0,o=r?t.length:0,i=function(t,n,r){for(var e=-1,o=r.length;++e{const e=c(t),i=(0,o.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,o.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},jp=({children:t,capture:n,wait:r,options:e})=>{const i=o.Children.only(t),u=mp(((...t)=>{const r=null==i?void 0:i.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,o.cloneElement)(i,{[n]:u})};function wp(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 o=0;for(e=Object.getOwnPropertySymbols(t);o{const u=(0,o.useRef)(null),a=c(t),f=(0,o.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,o.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:i,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,i,f]),u},Op=(...t)=>(0,o.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,o.forwardRef)(((t,n)=>{const{action:r,calledOnce:o,threshold:i,root:u,rootMargin:a}=t,c=wp(t,["action","calledOnce","threshold","root","rootMargin"]),f=xp({action:r,calledOnce:o,threshold:i,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ep=(0,o.forwardRef)(((t,n)=>{var{src:r,style:i,threshold:u,root:a,rootMargin:c}=t,f=wp(t,["src","style","threshold","root","rootMargin"]);const s=xp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),l=(0,o.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,e.jsx)("img",Object.assign({},f,{ref:Op(n,s),style:l}))})),Rp=a()?o.useLayoutEffect:o.useEffect;(0,o.createContext)({parentPortalElement:null});const kp=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(o.Fragment,{children:t}):null,Ip=t=>!!a()&&window.matchMedia(t).matches,Mp=t=>{const[n,r]=(0,o.useState)(Ip(t)),e=(0,o.useCallback)((()=>{r(Ip(t))}),[t]);return(0,o.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Sp=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),n.current},zp=t=>{const[n,r]=(0,o.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,o.useRef)(null),i=c(t),u=(0,o.useCallback)((([t])=>{t&&(i(t),r(t.contentRect))}),[i]);return(0,o.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},Wp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,i]=(0,o.useState)({width:null,height:null}),u=(0,o.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,o.useMemo)((()=>n?a:u),[u,n,a]);return Rp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/11738f66.f94a5732.js b/assets/js/11738f66.f94a5732.js new file mode 100644 index 000000000..4b8b2addc --- /dev/null +++ b/assets/js/11738f66.f94a5732.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4949],{7496:(t,n,r)=>{r.r(n),r.d(n,{ResizeObserver:()=>l,assets:()=>f,contentTitle:()=>a,default:()=>v,frontMatter:()=>u,metadata:()=>c,toc:()=>s});var e=r(5735),o=r(289),i=r(5474);const u={},a="useResizeObserver",c={id:"react/hooks/useResizeObserver",title:"useResizeObserver",description:"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uc758 DOM \ud06c\uae30 \ubcc0\ud654\ub97c \uac10\uc9c0\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useResizeObserver.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useResizeObserver",permalink:"/modern-kit/docs/react/hooks/useResizeObserver",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"usePrevious",permalink:"/modern-kit/docs/react/hooks/usePrevious"},next:{title:"useTimeout",permalink:"/modern-kit/docs/react/hooks/useTimeout"}},f={},s=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Note",id:"note",level:2}],l=()=>{const t={br:"br",div:"div",...(0,o.a)()},{ref:n,contentRect:r}=(0,i.yU)((t=>{console.log("resize",t)}));return(0,e.jsxs)(t.div,{ref:n,style:{width:"100%",height:"400px",background:"#439966",fontSize:"2rem",color:"#fff"},children:["\ube0c\ub77c\uc6b0\uc800 \ub108\ube44\ub97c \uc904\uc5ec\ubcf4\uc138\uc694. ",(0,e.jsx)(t.br,{}),`width: ${r.width}, height: ${r.height}`]})};function p(t){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"useresizeobserver",children:"useResizeObserver"}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"ref"}),"\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uc758 DOM \ud06c\uae30 \ubcc0\ud654\ub97c \uac10\uc9c0\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."]}),"\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:"/**\n * type ContentRect = {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n }\n */\ntype ContentRect = Omit;\n\nconst useResizeObserver: (\n action: (entry: ResizeObserverEntry) => void\n) => {\n ref: React.RefObject;\n contentRect: ContentRect;\n};\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import React, { forwardRef, useRef } from 'react';\nimport { useResizeObserver } from '@modern-kit/react';\n\nconst Example = () => {\n const { ref, contentRect } = useResizeObserver((entry) => {\n console.log('resize', entry);\n });\n\n const boxStyle = useMemo(() => {\n return {\n width: '100%', \n height: '400px', \n background: '#439966', \n fontSize: '2rem',\n color: '#fff',\n }\n }, []);\n\n return (\n \n \ube0c\ub77c\uc6b0\uc800 \ub108\ube44\ub97c \uc904\uc5ec\ubcf4\uc138\uc694.
\n {`width: ${contentRect.width}, height: ${contentRect.height}`}\n \n );\n};\n"})}),"\n","\n",(0,e.jsx)(l,{}),"\n",(0,e.jsx)("br",{}),"\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/en-US/docs/Web/API/ResizeObserver",children:"ResizeObserver API"})})]})}function v(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(p,{...t})}):p(t)}},289:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const o={},i=e.createContext(o);function u(t){const n=e.useContext(i);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(o):t.components||o:u(t.components),e.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{D9:()=>Sp,ac:()=>Mp,df:()=>xp,iP:()=>Wp,nA:()=>kp,uM:()=>bp,wY:()=>Op,yU:()=>zp});var e=r(4614),o=r(5735),i=(r(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,s=f.hasOwnProperty,l=f.toString,p=c?c.toStringTag:void 0,v=Object.prototype.toString,h="[object Null]",d="[object Undefined]",y=c?c.toStringTag:void 0;function g(t){return null==t?void 0===t?d:h:y&&y in Object(t)?function(t){var n=s.call(t,p),r=t[p];try{t[p]=void 0;var e=!0}catch(t){}var o=l.call(t);return e&&(n?t[p]=r:delete t[p]),o}(t):function(t){return v.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var b="[object Symbol]";function m(t){return"symbol"==typeof t||_(t)&&g(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,o=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Dt=Tt(vt),Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function qt(t){return function(){return t}}var $t=function(){try{var t=st(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=Tt(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]&&!Yt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(e),r)))}var tn=1,nn=2,rn=4,en=8,on=32,un=64;function an(t,n,r,e,o,i,u,a,c,f){var s=n&en;n|=s?on:un,(n&=~(s?un:on))&rn||(n&=~(tn|nn));var l=[t,n,o,s?i:void 0,s?u:void 0,s?void 0:i,s?void 0:u,a,c,f],p=r.apply(void 0,l);return Pt(t)&&Dt(p,l),p.placeholder=e,Xt(p,t,n)}function cn(t){return t.placeholder}var fn=9007199254740991,sn=/^(?:0|[1-9]\d*)$/;function ln(t,n){var r=typeof t;return!!(n=null==n?fn:n)&&("number"==r||"symbol"!=r&&sn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&f<_&&(b.length=f),this&&this!==a&&this instanceof g&&(A=y||yt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,En=4,Rn=8,kn=128,In=256,Mn=Math.min,Sn="Expected a function",zn=1,Wn=2,Bn=8,Ln=16,Pn=32,Cn=64,Tn=Math.max;function Dn(t,n,r,e,o,i,u,c){var f=n&Wn;if(!f&&"function"!=typeof t)throw new TypeError(Sn);var s=e?e.length:0;if(s||(n&=~(Pn|Cn),e=o=void 0),u=void 0===u?u:Tn(K(u),0),c=void 0===c?c:K(c),s-=o?o.length:0,n&Cn){var l=e,p=o;e=o=void 0}var v=f?void 0:Rt(t),h=[t,n,r,e,o,l,p,i,u,c];if(v&&function(t,n){var r=t[1],e=n[1],o=r|e,i=o<(On|An|kn),u=e==kn&&r==Rn||e==kn&&r==In&&t[7].length<=n[8]||e==(kn|In)&&n[7].length<=n[8]&&r==Rn;if(!i&&!u)return t;e&On&&(t[2]=n[2],o|=r&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?hn(t[3],xn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?wt(c,a,n[6]):a,t[6]=c?hn(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]=o}(h,v),t=h[0],n=h[1],r=h[2],e=h[3],o=h[4],!(c=h[9]=void 0===h[9]?f?0:t.length:Tn(h[9]-s,0))&&n&(Bn|Ln)&&(n&=~(Bn|Ln)),n&&n!=zn)d=n==Bn||n==Ln?function(t,n,r){var e=yt(t);return function o(){for(var i=arguments.length,u=Array(i),c=i,f=cn(o);c--;)u[c]=arguments[c];var s=i<3&&u[0]!==f&&u[i-1]!==f?[]:hn(u,f);return(i-=s.length)-1&&t%1==0&&t<=Hn}function Yn(t){return null!=t&&Jn(t.length)&&!Y(t)}function Qn(t,n,r){if(!L(r))return!1;var e=typeof n;return!!("number"==e?Yn(r)&&ln(n,r.length):"string"==e&&n in r)&&Fn(r[n],t)}function Xn(t){return Gn((function(n,r){var e=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Qn(r[0],r[1],u)&&(i=o<3?void 0:i,o=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=st(a,"Map");function Vr(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function Zr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?ce(a,n-1,r,e,o):ie(o,a):e||(o[o.length]=a)}return o}function fe(t){return null!=t&&t.length?ce(t,1):[]}function se(t){return Vt(Zn(t,void 0,fe),t+"")}var le=se(oe),pe=xr(Object.getPrototypeOf,Object),ve="[object Object]",he=Function.prototype,de=Object.prototype,ye=he.toString,ge=de.hasOwnProperty,_e=ye.call(Object);function be(t){if(!_(t)||g(t)!=ve)return!1;var n=pe(t);if(null===n)return!0;var r=ge.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ye.call(r)==_e}function me(t){if(!_(t))return!1;var n=g(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 o=hn(r,cn(xe));e|=32}return Dn(t,e,n,r,o)}));xe.placeholder={};var Oe=se((function(t,n){return Zt(n,(function(n){n=ne(n),Nn(t,n,xe(t[n],t))})),t})),Ae=Gn((function(t,n,r){var e=3;if(r.length){var o=hn(r,cn(Ae));e|=32}return Dn(n,e,t,r,o)}));function Ee(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e=e?t:Ee(t,n,r)}Ae.placeholder={};var ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ie(t){return ke.test(t)}var Me="\\ud800-\\udfff",Se="["+Me+"]",ze="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",We="\\ud83c[\\udffb-\\udfff]",Be="[^"+Me+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="(?:"+ze+"|"+We+")?",Te="[\\ufe0e\\ufe0f]?",De=Te+Ce+"(?:\\u200d(?:"+[Be,Le,Pe].join("|")+")"+Te+Ce+")*",Ue="(?:"+[Be+ze+"?",ze,Le,Pe,Se].join("|")+")",Ne=RegExp(We+"(?="+We+")|"+Ue+De,"g");function Fe(t){return Ie(t)?function(t){return t.match(Ne)||[]}(t):function(t){return t.split("")}(t)}function qe(t){return function(n){var r=Ie(n=Qr(n))?Fe(n):void 0,e=r?r[0]:n.charAt(0),o=r?Re(r,1).join(""):n.slice(1);return e[t]()+o}}var $e=qe("toUpperCase");function Ke(t){return $e(Qr(t).toLowerCase())}function Ve(t,n,r,e){var o=-1,i=null==t?0:t.length;for(e&&i&&(r=t[++o]);++o=n?t:n)),t}function Lo(t){var n=this.__data__=new $r(t);this.size=n.size}function Po(t,n){return t&&Kn(n,Rr(n),t)}Lo.prototype.clear=function(){this.__data__=new $r,this.size=0},Lo.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Lo.prototype.get=function(t){return this.__data__.get(t)},Lo.prototype.has=function(t){return this.__data__.has(t)},Lo.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 Co="object"==typeof exports&&exports&&!exports.nodeType&&exports,To=Co&&"object"==typeof module&&module&&!module.nodeType&&module,Do=To&&To.exports===Co?a.Buffer:void 0,Uo=Do?Do.allocUnsafe:void 0;function No(t,n){if(n)return t.slice();var r=t.length,e=Uo?Uo(r):new t.constructor(r);return t.copy(e),e}function Fo(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++ra))return!1;var f=i.get(t),s=i.get(n);if(f&&s)return f==n&&s==t;var l=-1,p=!0,v=r&Qi?new Gi:void 0;for(i.set(t,n),i.set(n,t);++l=n||r<0||l&&t-f>=i}function d(){var t=ta();if(h(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return l?ra(r,i-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?v(t):(e=o=void 0,u)}function g(){var t=ta(),r=h(t);if(e=arguments,o=this,c=t,r){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),s?v(t):u}(c);if(l)return clearTimeout(a),a=setTimeout(d,n),v(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=N(n)||0,L(r)&&(s=!!r.leading,i=(l="maxWait"in r)?na(N(r.maxWait)||0,n):i,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=o=a=void 0},g.flush=function(){return void 0===a?u:y(ta())},g}var oa=Object.prototype,ia=oa.hasOwnProperty,ua=Gn((function(t,n){t=Object(t);var r=-1,e=n.length,o=e>2?n[2]:void 0;for(o&&Qn(n[0],n[1],o)&&(e=1);++r=ba&&(i=Ji,u=!1,n=new Gi(n));t:for(;++o":">",'"':""","'":"'"}),Ta=/[&<>"']/g,Da=RegExp(Ta.source);function Ua(t){return(t=Qr(t))&&Da.test(t)?t.replace(Ta,Ca):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.source);function qa(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?o[i?n[u]:u]:void 0}}var Ga=Math.max;function Ha(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=null==r?0:K(r);return o<0&&(o=Ga(e+o,0)),Gt(t,Uu(n),o)}var Ja=Za(Ha);function Ya(t,n,r){var e;return r(t,(function(t,r,o){if(n(t,r,o))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 o=e-1;return void 0!==r&&(o=K(r),o=r<0?Qa(e+o,0):Xa(o,e-1)),Gt(t,Uu(n),o,!0)}var nc=Za(tc);function rc(t){return t&&t.length?t[0]:void 0}function ec(t,n){var r=-1,e=Yn(t)?Array(t.length):[];return Zu(t,(function(t,o,i){e[++r]=n(t,o,i)})),e}function oc(t,n){return(O(t)?x:ec)(t,Uu(n))}var ic=Io("floor");function uc(t){return se((function(n){var r=n.length,e=r,o=St.prototype.thru;for(t&&n.reverse();e--;){var i=n[e];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==Mt(i))var u=new St([],!0)}for(e=u?e:r;++en}function vc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=N(n),r=N(r)),t(n,r)}}var hc=vc(pc),dc=vc((function(t,n){return t>=n})),yc=Object.prototype.hasOwnProperty;function gc(t,n){return null!=t&&yc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&g(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,Rr(t))}var Oc=Math.max,Ac=Math.max,Ec=Math.min;function Rc(t,n,r){for(var e=r?_a:Yt,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var s=t[u];u&&n&&(s=x(s,hr(n))),c=Ec(s.length,c),a[u]=!r&&(n||o>=120&&s.length>=120)?new Gi(u&&s):void 0}s=t[0];var l=-1,p=a[0];t:for(;++l1),n})),Kn(t,Jo(t),r),e&&(r=Zi(r,7,Of));for(var o=n.length;o--;)xf(r,n[o]);return r}));function Ef(t,n,r,e){if(!L(t))return t;for(var o=-1,i=(n=Xr(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||e&&u&&c||!r&&c||!o)return 1;if(!e&&!i&&!f&&t=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function Sf(t){return se((function(n){return n=x(n,hr(Uu)),Gn((function(r){var e=this;return t(n,(function(t){return _t(t,e,r)}))}))}))}var zf=Sf(x),Wf=Gn,Bf=Math.min,Lf=Wf((function(t,n){var r=(n=1==n.length&&O(n[0])?x(n[0],hr(Uu)):x(ce(n,1),hr(Uu))).length;return Gn((function(e){for(var o=-1,i=Bf(e.length,r);++oTf)return r;do{n%2&&(r+=t),(n=Df(n/2))&&(t+=t)}while(n);return r}var Nf=Tu("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+")*",Qf="(?:"+[Vf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Xf=RegExp(Kf+"(?="+Kf+")|"+Qf+Yf,"g");function ts(t){return Ie(t)?function(t){for(var n=Xf.lastIndex=0;Xf.test(t);)++n;return n}(t):Nf(t)}var ns=Math.ceil;function rs(t,n){var r=(n=void 0===n?" ":k(n)).length;if(r<2)return r?Uf(n,t):n;var e=Uf(n,ns(t/ts(n)));return Ie(n)?Re(Fe(e),0,t).join(""):e.slice(0,t)}var es=Math.ceil,os=Math.floor,is=/^\s+/,us=a.parseInt,as=Gn((function(t,n){return Dn(t,32,void 0,n,hn(n,cn(as)))}));as.placeholder={};var cs=Gn((function(t,n){return Dn(t,64,void 0,n,hn(n,cn(cs)))}));cs.placeholder={};var fs=Hu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),ss=se((function(t,n){return null==t?{}:function(t,n){return Rf(t,n,(function(n,r){return Bu(t,r)}))}(t,n)}));function ls(t,n,r,e){for(var o=r-1,i=t.length;++o-1;)a!==t&&ps.call(a,c,1),ps.call(t,c,1);return t}function hs(t,n){return t&&t.length&&n&&n.length?vs(t,n):t}var ds=Gn(hs),ys=Array.prototype.splice;function gs(t,n){for(var r=t?n.length:0,e=r-1;r--;){var o=n[r];if(r==e||o!==i){var i=o;ln(o)?ys.call(t,o,1):xf(t,o)}}return t}var _s=se((function(t,n){var r=null==t?0:t.length,e=oe(t,n);return gs(t,x(n,(function(t){return ln(t,r)?+t:t})).sort(If)),e})),bs=Math.floor,ms=Math.random;function js(t,n){return t+bs(ms()*(n-t+1))}var ws=parseFloat,xs=Math.min,Os=Math.random,As=Math.ceil,Es=Math.max;function Rs(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 o=-1,i=Es(As((n-t)/(r||1)),0),u=Array(i);i--;)u[e?i:++o]=t,t+=r;return u}(n,r,e=void 0===e?n1&&Qn(t,n[0],n[1])?n=[]:r>2&&Qn(n[0],n[1],n[2])&&(n=[n[0]]),Mf(t,ce(n,1),[])})),Vs=4294967294,Zs=Math.floor,Gs=Math.min;function Hs(t,n,r,e){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=r(n))!=n,a=null===n,c=m(n),f=void 0===n;o>>1,u=t[i];null!==u&&!m(u)&&(r?u<=n:u/g,al={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ul,variable:"",imports:{_:{escape:Ua}}},cl=/\b__p \+= '';/g,fl=/\b(__p \+=) '' \+/g,sl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ll=/[()=,{}\[\]\/\s]/,pl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vl=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,dl=Object.prototype.hasOwnProperty;function yl(t,n){return n(t)}var gl=4294967295,_l=Math.min;function bl(t,n){var r=t;return r instanceof At&&(r=r.value()),Ve(n,(function(t,n){return n.func.apply(n.thisArg,ie([t],n.args))}),r)}function ml(){return bl(this.__wrapped__,this.__actions__)}function jl(t,n){for(var r=t.length;r--&&Jt(n,t[r],0)>-1;);return r}function wl(t,n){for(var r=-1,e=t.length;++r-1;);return r}var xl=/^\s+/,Ol=/\w*$/,Al=Ze({"&":"&","<":"<",">":">",""":'"',"'":"'"}),El=/&(?:amp|lt|gt|quot|#39);/g,Rl=RegExp(El.source),kl=Xo&&1/nu(new Xo([,-0]))[1]==1/0?function(t){return new Xo(t)}:Et,Il=200;function Ml(t,n,r){var e=-1,o=Yt,i=t.length,u=!0,a=[],c=a;if(r)u=!1,o=_a;else if(i>=Il){var f=n?null:kl(t);if(f)return nu(f);u=!1,o=Ji,c=new Gi}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof At&&ln(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:yl,args:[o],thisArg:void 0}),new St(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Fl(t,n,r){var e=t.length;if(e<2)return e?Ml(t[0]):[];for(var o=-1,i=Array(e);++o1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Cl(t,r)})),Yl={chunk:function(t,n,r){n=(r?Qn(t,n,r):void 0===n)?1:Wo(K(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var o=0,i=0,u=Array(zo(e/n));oo?0:o+r),(e=void 0===e||e>o?o:K(e))<0&&(e+=o),e=r>e?0:Ka(e);r-1:!!o&&Jt(t,n,r)>-1},invokeMap:Fc,keyBy:rf,map:oc,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:fs,reduce:function(t,n,r){var e=O(t)?Ve:Ss,o=arguments.length<3;return e(t,Uu(n),r,o,Zu)},reduceRight:function(t,n,r){var e=O(t)?zs:Ss,o=arguments.length<3;return e(t,Uu(n),r,o,za)},reject:function(t,n){return(O(t)?Fo:Va)(t,bf(Uu(n)))},sample:function(t){return(O(t)?Ps:Cs)(t)},sampleSize:function(t,n,r){return n=(r?Qn(t,n,r):void 0===n)?1:K(n),(O(t)?Ds:Us)(t,n)},shuffle:function(t){return(O(t)?Ns:Fs)(t)},size:function(t){if(null==t)return 0;if(Yn(t))return jc(t)?ts(t):t.length;var n=li(t);return"[object Map]"==n||"[object Set]"==n?t.size:Er(t).length},some:function(t,n,r){var e=O(t)?Hi:$s;return r&&Qn(t,n,r)&&(n=void 0),e(t,Uu(n))},sortBy:Ks},Xl=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:we,bind:xe,bindKey:Ae,curry:Qu,curryRight:Xu,debounce:ea,defer:ya,delay:ga,flip:function(t){return Dn(t,512)},memoize:Gr,negate:bf,once:function(t){return we(2,t)},overArgs:Lf,partial:as,partialRight:cs,rearg:Ms,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:Qs(K(n),0),Gn((function(r){var e=r[n],o=Re(r,0,n);return e&&ie(o,e),_t(t,this,o)}))},throttle:function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return L(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),ea(t,n,{leading:e,maxWait:n,trailing:o})},unary:function(t){return Un(t,1)},wrap:function(t,n){return as(Ra(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,Rr(n))},eq:Fn,gt:hc,gte:dc,isArguments:ar,isArray:O,isArrayBuffer:$c,isArrayLike:Yn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==g(t)},isBuffer:pr,isDate:Vc,isElement:function(t){return _(t)&&1===t.nodeType&&!be(t)},isEmpty:function(t){if(null==t)return!0;if(Yn(t)&&(O(t)||"string"==typeof t||"function"==typeof t.splice||pr(t)||mr(t)||ar(t)))return!t.length;var n=li(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(nr(t))return!Er(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:Y,isInteger:Hc,isLength:Jn,isMap:Ui,isMatch:function(t,n){return t===n||Ru(t,n,Iu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Ru(t,n,Iu(n),r)},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:L,isObjectLike:_,isPlainObject:be,isRegExp:Xc,isSafeInteger:function(t){return Hc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Fi,isString:jc,isSymbol:m,isTypedArray:mr,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return _(t)&&"[object WeakMap]"==li(t)},isWeakSet:function(t){return _(t)&&"[object WeakSet]"==g(t)},lt:ff,lte:sf,toArray:jf,toFinite:$,toInteger:K,toLength:Ka,toNumber:N,toPlainObject:sa,toSafeInteger:function(t){return t?Bo(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Qr},rp={add:M,ceil:Mo,divide:Aa,floor:ic,max:function(t){return t&&t.length?lf(t,V,pc):void 0},maxBy:function(t,n){return t&&t.length?lf(t,Uu(n),pc):void 0},mean:function(t){return vf(t,V)},meanBy:function(t,n){return vf(t,Uu(n))},min:function(t){return t&&t.length?lf(t,V,cf):void 0},minBy:function(t,n){return t&&t.length?lf(t,Uu(n),cf):void 0},multiply:_f,round:Ls,subtract:tl,sum:function(t){return t&&t.length?pf(t,V):0},sumBy:function(t,n){return t&&t.length?pf(t,Uu(n)):0}},ep={assign:Ir,assignIn:zr,assignInWith:Wr,assignWith:Br,at:le,create:function(t,n){var r=dt(t);return null==n?r:Po(r,n)},defaults:ua,defaultsDeep:ha,entries:La,entriesIn:Pa,extend:zr,extendWith:Wr,findKey:function(t,n){return Ya(t,Uu(n),Ku)},findLastKey:function(t,n){return Ya(t,Uu(n),Sa)},forIn:function(t,n){return null==t?t:$u(t,Ra(n),Sr)},forInRight:function(t,n){return null==t?t:Ma(t,Ra(n),Sr)},forOwn:function(t,n){return t&&Ku(t,Ra(n))},forOwnRight:function(t,n){return t&&Sa(t,Ra(n))},functions:function(t){return null==t?[]:fc(t,Rr(t))},functionsIn:function(t){return null==t?[]:fc(t,Sr(t))},get:ee,has:function(t,n){return null!=t&&Wu(t,n,gc)},hasIn:Bu,invert:Bc,invertBy:Tc,invoke:Nc,keys:Rr,keysIn:Sr,mapKeys:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,o){Nn(r,n(t,e,o),t)})),r},mapValues:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,o){Nn(r,e,n(t,e,o))})),r},merge:hf,mergeWith:va,omit:Af,omitBy:function(t,n){return kf(t,bf(Uu(n)))},pick:ss,pickBy:kf,result:function(t,n,r){var e=-1,o=(n=Xr(n,t)).length;for(o||(o=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=Wt(r);e.__index__=0,e.__values__=void 0,n?o.__wrapped__=e:n=e;var o=e;r=r.__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:yl,args:[Bs],thisArg:void 0}),new St(n,this.__chain__)}return this.thru(Bs)},tap:function(t,n){return n(t),t},thru:yl,toIterator:function(){return this},toJSON:ml,value:ml,valueOf:ml,wrapperChain:function(){return So(this)}},ip={camelCase:Eo,capitalize:Ke,deburr:Ye,endsWith:function(t,n,r){t=Qr(t),n=k(n);var e=t.length,o=r=void 0===r?e:Bo(K(r),0,e);return(r-=n.length)>=0&&t.slice(r,o)==n},escape:Ua,escapeRegExp:function(t){return(t=Qr(t))&&Fa.test(t)?t.replace(Na,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,r){t=Qr(t);var e=(n=K(n))?ts(t):0;if(!n||e>=n)return t;var o=(n-e)/2;return rs(os(o),r)+t+rs(es(o),r)},padEnd:function(t,n,r){t=Qr(t);var e=(n=K(n))?ts(t):0;return n&&e>>0)?(t=Qr(t))&&("string"==typeof n||null!=n&&!Xc(n))&&!(n=k(n))&&Ie(t)?Re(Fe(t),0,r):t.split(n,r):[]},startCase:Xs,startsWith:function(t,n,r){return t=Qr(t),r=null==r?0:Bo(K(r),0,t.length),n=k(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=al.imports._.templateSettings||al;r&&Qn(t,n,r)&&(n=void 0),t=Qr(t),n=Wr({},n,e,el);var o,i,u=Wr({},n.imports,e.imports,el),a=Rr(u),c=wc(u,a),f=0,s=n.interpolate||vl,l="__p += '",p=RegExp((n.escape||vl).source+"|"+s.source+"|"+(s===ul?pl:vl).source+"|"+(n.evaluate||vl).source+"|$","g"),v=dl.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(n,r,e,u,a,c){return e||(e=u),l+=t.slice(f,c).replace(hl,il),r&&(o=!0,l+="' +\n__e("+r+") +\n'"),a&&(i=!0,l+="';\n"+a+";\n__p += '"),e&&(l+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),l+="';\n";var h=dl.call(n,"variable")&&n.variable;if(h){if(ll.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(i?l.replace(cl,""):l).replace(fl,"$1").replace(sl,"$1;"),l="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var d=je((function(){return Function(a,v+"return "+l).apply(void 0,c)}));if(d.source=l,me(d))throw d;return d},templateSettings:al,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 B(t);if(!t||!(n=k(n)))return t;var e=Fe(t),o=Fe(n);return Re(e,wl(e,o),jl(e,o)+1).join("")},trimEnd:function(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.slice(0,z(t)+1);if(!t||!(n=k(n)))return t;var e=Fe(t);return Re(e,0,jl(e,Fe(n))+1).join("")},trimStart:function(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.replace(xl,"");if(!t||!(n=k(n)))return t;var e=Fe(t);return Re(e,wl(e,Fe(n))).join("")},truncate:function(t,n){var r=30,e="...";if(L(n)){var o="separator"in n?n.separator:o;r="length"in n?K(n.length):r,e="omission"in n?k(n.omission):e}var i=(t=Qr(t)).length;if(Ie(t)){var u=Fe(t);i=u.length}if(r>=i)return t;var a=r-ts(e);if(a<1)return e;var c=u?Re(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+e;if(u&&(a+=c.length-a),Xc(o)){if(t.slice(a).search(o)){var f,s=c;for(o.global||(o=RegExp(o.source,Qr(Ol.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var l=f.index;c=c.slice(0,void 0===l?a:l)}}else if(t.indexOf(k(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=Qr(t))&&Rl.test(t)?t.replace(El,Al):t},upperCase:Dl,upperFirst:$e,words:xo},up={attempt:je,bindAll:Oe,cond:function(t){var n=null==t?0:t.length,r=Uu;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;++e9007199254740991)return[];var r=gl,e=_l(t,gl);n=Ra(n),t-=gl;for(var o=rr(e,n);++r=bc(n,r)&&t<_c(n,r)}(t=N(t),n,r)},Lt.invoke=ep.invoke,Lt.isArguments=np.isArguments,Lt.isArray=O,Lt.isArrayBuffer=np.isArrayBuffer,Lt.isArrayLike=np.isArrayLike,Lt.isArrayLikeObject=np.isArrayLikeObject,Lt.isBoolean=np.isBoolean,Lt.isBuffer=np.isBuffer,Lt.isDate=np.isDate,Lt.isElement=np.isElement,Lt.isEmpty=np.isEmpty,Lt.isEqual=np.isEqual,Lt.isEqualWith=np.isEqualWith,Lt.isError=np.isError,Lt.isFinite=np.isFinite,Lt.isFunction=np.isFunction,Lt.isInteger=np.isInteger,Lt.isLength=np.isLength,Lt.isMap=np.isMap,Lt.isMatch=np.isMatch,Lt.isMatchWith=np.isMatchWith,Lt.isNaN=np.isNaN,Lt.isNative=np.isNative,Lt.isNil=np.isNil,Lt.isNull=np.isNull,Lt.isNumber=np.isNumber,Lt.isObject=L,Lt.isObjectLike=np.isObjectLike,Lt.isPlainObject=np.isPlainObject,Lt.isRegExp=np.isRegExp,Lt.isSafeInteger=np.isSafeInteger,Lt.isSet=np.isSet,Lt.isString=np.isString,Lt.isSymbol=np.isSymbol,Lt.isTypedArray=np.isTypedArray,Lt.isUndefined=np.isUndefined,Lt.isWeakMap=np.isWeakMap,Lt.isWeakSet=np.isWeakSet,Lt.join=Yl.join,Lt.kebabCase=ip.kebabCase,Lt.last=wa,Lt.lastIndexOf=Yl.lastIndexOf,Lt.lowerCase=ip.lowerCase,Lt.lowerFirst=ip.lowerFirst,Lt.lt=np.lt,Lt.lte=np.lte,Lt.max=rp.max,Lt.maxBy=rp.maxBy,Lt.mean=rp.mean,Lt.meanBy=rp.meanBy,Lt.min=rp.min,Lt.minBy=rp.minBy,Lt.stubArray=up.stubArray,Lt.stubFalse=up.stubFalse,Lt.stubObject=up.stubObject,Lt.stubString=up.stubString,Lt.stubTrue=up.stubTrue,Lt.multiply=rp.multiply,Lt.nth=Yl.nth,Lt.noop=up.noop,Lt.now=Xl,Lt.pad=ip.pad,Lt.padEnd=ip.padEnd,Lt.padStart=ip.padStart,Lt.parseInt=ip.parseInt,Lt.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 o=Os();return xs(t+o*(n-t+ws("1e-"+((o+"").length-1))),n)}return js(t,n)},Lt.reduce=Ql.reduce,Lt.reduceRight=Ql.reduceRight,Lt.repeat=ip.repeat,Lt.replace=ip.replace,Lt.result=ep.result,Lt.round=rp.round,Lt.sample=Ql.sample,Lt.size=Ql.size,Lt.snakeCase=ip.snakeCase,Lt.some=Ql.some,Lt.sortedIndex=Yl.sortedIndex,Lt.sortedIndexBy=Yl.sortedIndexBy,Lt.sortedIndexOf=Yl.sortedIndexOf,Lt.sortedLastIndex=Yl.sortedLastIndex,Lt.sortedLastIndexBy=Yl.sortedLastIndexBy,Lt.sortedLastIndexOf=Yl.sortedLastIndexOf,Lt.startCase=ip.startCase,Lt.startsWith=ip.startsWith,Lt.subtract=rp.subtract,Lt.sum=rp.sum,Lt.sumBy=rp.sumBy,Lt.template=ip.template,Lt.times=up.times,Lt.toFinite=np.toFinite,Lt.toInteger=K,Lt.toLength=np.toLength,Lt.toLower=ip.toLower,Lt.toNumber=np.toNumber,Lt.toSafeInteger=np.toSafeInteger,Lt.toString=np.toString,Lt.toUpper=ip.toUpper,Lt.trim=ip.trim,Lt.trimEnd=ip.trimEnd,Lt.trimStart=ip.trimStart,Lt.truncate=ip.truncate,Lt.unescape=ip.unescape,Lt.uniqueId=up.uniqueId,Lt.upperCase=ip.upperCase,Lt.upperFirst=ip.upperFirst,Lt.each=Ql.forEach,Lt.eachRight=Ql.forEachRight,Lt.first=Yl.head,yp(Lt,(Gl={},Ku(Lt,(function(t,n){pp.call(Lt.prototype,n)||(Gl[n]=t)})),Gl),{chain:!1}),Lt.VERSION="4.17.21",(Lt.templateSettings=ip.templateSettings).imports._=Lt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Lt[t].placeholder=Lt})),Zt(["drop","take"],(function(t,n){At.prototype[t]=function(r){r=void 0===r?1:hp(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,sp),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:Uu(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 Uc(r,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(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(sp)},Ku(At.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),o=Lt[e?"take"+("last"==n?"Right":""):n],i=e||/^find/.test(n);o&&(Lt.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof At,c=u[0],f=a||O(n),s=function(t){var n=o.apply(Lt,ie([t],u));return e&&l?n[0]:n};f&&r&&"function"==typeof c&&1!=c.length&&(a=f=!1);var l=this.__chain__,p=!!this.__actions__.length,v=i&&!l,h=a&&!p;if(!i&&f){n=h?n:new At(this);var d=t.apply(n,u);return d.__actions__.push({func:yl,args:[s],thisArg:void 0}),new St(d,l)}return v&&h?t.apply(this,u):(d=this.thru(s),v?e?d.value()[0]:d.value():d)})})),Zt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=lp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Lt.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var o=this.value();return n.apply(O(o)?o:[],t)}return this[r]((function(r){return n.apply(O(r)?r:[],t)}))}})),Ku(At.prototype,(function(t,n){var r=Lt[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__=zt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zt(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,o=r?t.length:0,i=function(t,n,r){for(var e=-1,o=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 o=gp(t),i=(0,e.useMemo)((()=>ea(o,n,r)),[o,n,r]);return(t=>{const n=gp(t);(0,e.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},bp=({children:t,capture:n,wait:r,options:o})=>{const i=e.Children.only(t),u=_p(((...t)=>{const r=null==i?void 0:i.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,o);return(0,e.cloneElement)(i,{[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 o=0;for(e=Object.getOwnPropertySymbols(t);o{const u=(0,e.useRef)(null),a=gp(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:i,threshold:o});return n.observe(t),()=>{n.unobserve(t)}}),[r,o,i,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:i,root:u,rootMargin:a}=t,c=mp(t,["action","calledOnce","threshold","root","rootMargin"]),f=jp({action:r,calledOnce:e,threshold:i,root:u,rootMargin:a});return(0,o.jsx)("div",Object.assign({ref:wp(n,f)},c,{children:t.children}))})),Op=(0,e.forwardRef)(((t,n)=>{var{src:r,style:i,threshold:u,root:a,rootMargin:c}=t,f=mp(t,["src","style","threshold","root","rootMargin"]);const s=jp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),l=(0,e.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,o.jsx)("img",Object.assign({},f,{ref:wp(n,s),style:l}))}));"function"==typeof SuppressedError&&SuppressedError;const Ap=()=>"undefined"==typeof window&&"undefined"!=typeof global,Ep=()=>!Ap(),Rp=Ep()?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,o.jsx)(e.Fragment,{children:t}):null},Ip=t=>!!Ep()&&window.matchMedia(t).matches,Mp=t=>{const[n,r]=(0,e.useState)(Ip(t)),o=(0,e.useCallback)((()=>{r(Ip(t))}),[t]);return(0,e.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)}),[t,o]),{isMatch:n}},Sp=t=>{const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current},zp=t=>{const[n,r]=(0,e.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),o=(0,e.useRef)(null),i=gp(t),u=(0,e.useCallback)((([t])=>{t&&(i(t),r(t.contentRect))}),[i]);return(0,e.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}},Wp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[o,i]=(0,e.useState)({width:null,height:null}),u=(0,e.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=_p(u,r),c=(0,e.useMemo)((()=>n?a:u),[u,n,a]);return Rp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),o}}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.4b9bfa5f.js b/assets/js/1df93b7f.4b9bfa5f.js new file mode 100644 index 000000000..46aecec8a --- /dev/null +++ b/assets/js/1df93b7f.4b9bfa5f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3237],{9976:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});n(4614);var a=n(9990),s=n(8314),i=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,s.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)(a.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 d(){const{siteConfig:t}=(0,s.Z)();return(0,c.jsxs)(i.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/Team-Grace/devgrace/assets/64779472/dcf0fed7-0411-45b4-adbf-363bdf38a5d2"})]}),(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)("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=Team-Grace/devgrace"})})]})]})}}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.ee586972.js b/assets/js/1df93b7f.ee586972.js deleted file mode 100644 index bfb0068ce..000000000 --- a/assets/js/1df93b7f.ee586972.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:()=>d});n(4614);var a=n(9990),s=n(8314),i=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,s.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 \uc720\uc6a9\ud55c \ub9ac\uc561\ud2b8 UI \ucef4\ud3ec\ub10c\ud2b8, \ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5 \ubc0f \ub2e4\uc591\ud55c \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)(a.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 d(){const{siteConfig:t}=(0,s.Z)();return(0,c.jsxs)(i.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/Team-Grace/devgrace/assets/64779472/dcf0fed7-0411-45b4-adbf-363bdf38a5d2"})]}),(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)("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=Team-Grace/devgrace"})})]})]})}}}]); \ No newline at end of file diff --git a/assets/js/393bf8b9.4951ea8c.js b/assets/js/393bf8b9.4951ea8c.js deleted file mode 100644 index c8aa27a0a..000000000 --- a/assets/js/393bf8b9.4951ea8c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6946],{163:(t,n,r)=>{r.r(n),r.d(n,{Example:()=>s,assets:()=>f,contentTitle:()=>a,default:()=>h,frontMatter:()=>u,metadata:()=>c,toc:()=>l});var e=r(5735),i=r(289),o=r(5474);const u={},a="AB",c={id:"react/components/AB",title:"AB",description:"AB \ud14c\uc2a4\ud2b8\ud560 \ub54c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/AB.mdx",sourceDirName:"react/components",slug:"/react/components/AB",permalink:"/modern-kit/docs/react/components/AB",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\uc18c\uac1c",permalink:"/modern-kit/docs/introduce/"},next:{title:"DebounceWrapper",permalink:"/modern-kit/docs/react/components/DebounceWrapper"}},f={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Example",id:"example",level:2}],s=()=>{const t={div:"div",...(0,i.a)()},{CaseA:n,CaseB:r}=o.AB;return(0,e.jsxs)(o.AB,{children:[(0,e.jsx)(n,{renderAction:()=>console.log("CaseA Render"),children:(0,e.jsx)(t.div,{style:{width:"50px",backgroundColor:"green",color:"white",fontSize:"2rem",textAlign:"center"},children:"A"})}),(0,e.jsx)(r,{renderAction:()=>console.log("CaseB Render"),children:(0,e.jsx)(t.div,{style:{width:"50px",backgroundColor:"blue",color:"white",fontSize:"2rem",textAlign:"center"},children:"B"})})]})};function p(t){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"ab",children:"AB"}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"AB \ud14c\uc2a4\ud2b8"}),"\ud560 \ub54c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.p,{children:["\uc544\ub798\uc640 \uac19\uc774 \uc62c\ubc14\ub974\uac8c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uc73c\uba74 ",(0,e.jsx)(n.code,{children:"null"}),"\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.ul,{children:["\n",(0,e.jsx)(n.li,{children:"\uc62c\ubc14\ub974\uc9c0 \uc54a\uc740 \ucef4\ud3ec\ub10c\ud2b8 \ud0c0\uc785\uc744 \uc0ac\uc6a9 (\uc0ac\uc6a9 \uac00\ub2a5\ud55c \ucef4\ud3ec\ub10c\ud2b8: AB.CaseA. AB.CaseB)"}),"\n",(0,e.jsx)(n.li,{children:"\uc911\ubcf5\ub41c \ucef4\ud3ec\ub10c\ud2b8 \ud0c0\uc785\uc744 \uc0ac\uc6a9"}),"\n",(0,e.jsxs)(n.li,{children:["\uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8 \uae38\uc774\uac00 ",(0,e.jsx)(n.code,{children:"2"}),"\uac00 \uc544\ub2cc \uacbd\uc6b0"]}),"\n"]}),"\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 ABProps {\n renderAction?: () => void; // \ub80c\ub354\ub9c1 \ub420 \ub54c \uc2e4\ud589\ub418\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.\n}\n\nconst AB: {\n ({ children }: PropsWithChildren): JSX.Element | null;\n CaseA({ children, renderAction }: PropsWithChildren): JSX.Element;\n CaseB({ children, renderAction }: PropsWithChildren): JSX.Element;\n}\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:'import { AB } from \'@modern-kit/react\';\n\nconst { CaseA, CaseB } = AB;\n\nconst Example = () => {\n return (\n \n console.log("Case A Render")}>\n
A
\n
\n console.log("Case B Render")}>\n
B
\n
\n
\n );\n}; \n'})}),"\n",(0,e.jsx)(n.h2,{id:"example",children:"Example"}),"\n","\n",(0,e.jsx)(s,{})]})}function h(t={}){const{wrapper:n}={...(0,i.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(p,{...t})}):p(t)}},289:(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,{AB:()=>f,D9:()=>Mp,ac:()=>Sp,df:()=>Op,iP:()=>Wp,nA:()=>kp,uM:()=>jp,wY:()=>Ep,yU:()=>Rp});var e=r(5735),i=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const o=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!o(),c=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),(0,i.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=i.Children.toArray(t);let e=0,o=0;if(2!==r.length)return null;for(const i of r){if(![f.CaseA,f.CaseB].includes(i.type))return null;i.type===f.CaseA?e+=1:o+=1}return e>=2||o>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})};var l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=h?h.toStringTag:void 0;function w(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,g),r=t[g];try{t[g]=void 0;var e=!0}catch(t){}var i=y.call(t);return e&&(n?t[g]=r:delete t[g]),i}(t):function(t){return _.call(t)}(t)}function x(t){return null!=t&&"object"==typeof t}var A="[object Symbol]";function O(t){return"symbol"==typeof t||x(t)&&w(t)==A}var E=NaN;function B(t){return"number"==typeof t?t:O(t)?E:+t}function k(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Jt(t){return function(){return t}}var Gt=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ht=qt(Gt?function(t,n){return Gt(t,"toString",{configurable:!0,enumerable:!1,value:Jt(n),writable:!0})}:Y);function Yt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Ht(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Yt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,ln=64;function sn(t,n,r,e,i,o,u,a,c,f){var l=n&cn;n|=l?fn:ln,(n&=~(l?ln:fn))&an||(n&=~(on|un));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 Nt(t)&&$t(p,s),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?hn:n)&&("number"==r||"symbol"!=r&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&c<_&&(b.length=c),this&&this!==p&&this instanceof g&&(O=y||jt(O)),O.apply(A,b)}}var En=1,Bn="__lodash_placeholder__",kn=1,In=2,Sn=4,Mn=8,Rn=128,Wn=256,Cn=Math.min,zn="Expected a function",Pn=1,Ln=2,Dn=8,Tn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,r,e,i,o,u,a){var c=n&Ln;if(!c&&"function"!=typeof t)throw new TypeError(zn);var f=e?e.length:0;if(f||(n&=~(Un|Nn),e=i=void 0),u=void 0===u?u:Fn(H(u),0),a=void 0===a?a:H(a),f-=i?i.length:0,n&Nn){var l=e,s=i;e=i=void 0}var h=c?void 0:Rt(t),v=[t,n,r,e,i,l,s,o,u,a];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(kn|In|Rn),u=e==Rn&&r==Mn||e==Rn&&r==Wn&&t[7].length<=n[8]||e==(Rn|Wn)&&n[7].length<=n[8]&&r==Mn;if(!o&&!u)return t;e&kn&&(t[2]=n[2],i|=r&kn?0:Sn);var a=n[3];if(a){var c=t[3];t[3]=c?Ot(c,a,n[4]):a,t[4]=c?_n(t[3],Bn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?Bt(c,a,n[6]):a,t[6]=c?_n(t[5],Bn):n[6]),(a=n[7])&&(t[7]=a),e&Rn&&(t[8]=null==t[8]?n[8]:Cn(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],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Dn|Tn)&&(n&=~(Dn|Tn)),n&&n!=Pn)d=n==Dn||n==Tn?function(t,n,r){var e=jt(t);return function i(){for(var o=arguments.length,u=Array(o),a=o,c=pn(i);a--;)u[a]=arguments[a];var f=o<3&&u[0]!==c&&u[o-1]!==c?[]:_n(u,c);return(o-=f.length)-1&&t%1==0&&t<=Qn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!U(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Vn(r[n],t)}function er(t){return Xn((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&&rr(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},Jr.prototype.set=function(t,n){var r=this.__data__,e=Vr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Gr=dt(p,"Map");function Hr(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 Yr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,i):fe(i,a):e||(i[i.length]=a)}return i}function he(t){return null!=t&&t.length?pe(t,1):[]}function ve(t){return Ht(Yn(t,void 0,he),t+"")}var de=ve(ce),ye=Br(Object.getPrototypeOf,Object),ge="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,je=be.hasOwnProperty,we=me.call(Object);function xe(t){if(!x(t)||w(t)!=ge)return!1;var n=ye(t);if(null===n)return!0;var r=je.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==we}function Ae(t){if(!x(t))return!1;var n=w(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!xe(t)}var Oe=Xn((function(t,n){try{return xt(t,void 0,n)}catch(t){return Ae(t)?t:new Error(t)}}));function Ee(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var Be=Xn((function(t,n,r){var e=1;if(r.length){var i=_n(r,pn(Be));e|=32}return qn(t,e,n,r,i)}));Be.placeholder={};var ke=ve((function(t,n){return Yt(n,(function(n){n=oe(n),Kn(t,n,Be(t[n],t))})),t})),Ie=Xn((function(t,n,r){var e=3;if(r.length){var i=_n(r,pn(Ie));e|=32}return qn(n,e,t,r,i)}));function Se(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:Se(t,n,r)}Ie.placeholder={};var Re=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function We(t){return Re.test(t)}var Ce="\\ud800-\\udfff",ze="["+Ce+"]",Pe="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Le="\\ud83c[\\udffb-\\udfff]",De="[^"+Ce+"]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="(?:"+Pe+"|"+Le+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ne+"(?:\\u200d(?:"+[De,Te,Ue].join("|")+")"+Fe+Ne+")*",$e="(?:"+[De+Pe+"?",Pe,Te,Ue,ze].join("|")+")",Ke=RegExp(Le+"(?="+Le+")|"+$e+qe,"g");function Ve(t){return We(t)?function(t){return t.match(Ke)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=We(n=re(n))?Ve(n):void 0,e=r?r[0]:n.charAt(0),i=r?Me(r,1).join(""):n.slice(1);return e[t]()+i}}var Je=Ze("toUpperCase");function Ge(t){return Je(re(t).toLowerCase())}function He(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 Di(t){var n=this.__data__=new Jr(t);this.size=n.size}function Ti(t,n){return t&&Gn(n,Mr(n),t)}Di.prototype.clear=function(){this.__data__=new Jr,this.size=0},Di.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Di.prototype.get=function(t){return this.__data__.get(t)},Di.prototype.has=function(t){return this.__data__.has(t)},Di.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Jr){var e=r.__data__;if(!Gr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(t,n),this.size=r.size,this};var Ui="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ni=Ui&&"object"==typeof module&&module&&!module.nodeType&&module,Fi=Ni&&Ni.exports===Ui?p.Buffer:void 0,qi=Fi?Fi.allocUnsafe:void 0;function $i(t,n){if(n)return t.slice();var r=t.length,e=qi?qi(r):new t.constructor(r);return t.copy(e),e}function Ki(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))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&ru?new Xo:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-f>=o}function d(){var t=ia();if(v(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ua(r,o-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function g(){var t=ia(),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=V(n)||0,U(r)&&(l=!!r.leading,o=(s="maxWait"in r)?oa(V(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(ia())},g}var ca=Object.prototype,fa=ca.hasOwnProperty,la=Xn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&rr(n[0],n[1],i)&&(e=1);++r=xa&&(o=tu,u=!1,n=new Xo(n));t:for(;++i":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Na):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?i[o?n[u]:u]:void 0}}var Xa=Math.max;function Qa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:H(r);return i<0&&(i=Xa(e+i,0)),Xt(t,$u(n),i)}var tc=Ya(Qa);function nc(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function ic(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=H(r),i=r<0?rc(e+i,0):ec(i,e-1)),Xt(t,$u(n),i,!0)}var oc=Ya(ic);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Yu(t,(function(t,i,o){e[++r]=n(t,i,o)})),e}function cc(t,n){return(I(t)?k:ac)(t,$u(n))}var fc=Ri("floor");function lc(t){return ve((function(n){var r=n.length,e=r,i=Pt.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"==zt(o))var u=new Pt([],!0)}for(e=u?e:r;++en}function gc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=V(n),r=V(r)),t(n,r)}}var _c=gc(yc),bc=gc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var wc=Math.max,xc=Math.min,Ac="[object String]";function Oc(t){return"string"==typeof t||!I(t)&&x(t)&&w(t)==Ac}function Ec(t,n){return k(n,(function(n){return t[n]}))}function Bc(t){return null==t?[]:Ec(t,Mr(t))}var kc=Math.max,Ic=Math.max,Sc=Math.min;function Mc(t,n,r){for(var e=r?wa:nn,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=k(l,_r(n))),c=Sc(l.length,c),a[u]=!r&&(n||i>=120&&l.length>=120)?new Xo(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Gn(t,Qi(t),r),e&&(r=Yo(r,7,kf));for(var i=n.length;i--;)Bf(r,n[i]);return r}));function Sf(t,n,r,e){if(!U(t))return t;for(var i=-1,o=(n=ee(n,t)).length,u=o-1,a=t;null!=a&&++in||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 zf(t){return ve((function(n){return n=k(n,_r($u)),Xn((function(r){var e=this;return t(n,(function(t){return xt(t,e,r)}))}))}))}var Pf=zf(k),Lf=Xn,Df=Math.min,Tf=Lf((function(t,n){var r=(n=1==n.length&&I(n[0])?k(n[0],_r($u)):k(pe(n,1),_r($u))).length;return Xn((function(e){for(var i=-1,o=Df(e.length,r);++iFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Jf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Gf="\\ud83c[\\udffb-\\udfff]",Hf="[^"+Vf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Xf="[\\ud800-\\udbff][\\udc00-\\udfff]",Qf="(?:"+Jf+"|"+Gf+")?",tl="[\\ufe0e\\ufe0f]?",nl=tl+Qf+"(?:\\u200d(?:"+[Hf,Yf,Xf].join("|")+")"+tl+Qf+")*",rl="(?:"+[Hf+Jf+"?",Jf,Yf,Xf,Zf].join("|")+")",el=RegExp(Gf+"(?="+Gf+")|"+rl+nl,"g");function il(t){return We(t)?function(t){for(var n=el.lastIndex=0;el.test(t);)++n;return n}(t):Kf(t)}var ol=Math.ceil;function ul(t,n){var r=(n=void 0===n?" ":W(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,ol(t/il(n)));return We(n)?Me(Ve(e),0,t).join(""):e.slice(0,t)}var al=Math.ceil,cl=Math.floor,fl=/^\s+/,ll=p.parseInt,sl=Xn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(sl)))}));sl.placeholder={};var pl=Xn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(pl)))}));pl.placeholder={};var hl=Qu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),vl=ve((function(t,n){return null==t?{}:function(t,n){return Mf(t,n,(function(n,r){return Du(t,r)}))}(t,n)}));function dl(t,n,r,e){for(var i=r-1,o=t.length;++i-1;)a!==t&&yl.call(a,c,1),yl.call(t,c,1);return t}function _l(t,n){return t&&t.length&&n&&n.length?gl(t,n):t}var bl=Xn(_l),ml=Array.prototype.splice;function jl(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;dn(i)?ml.call(t,i,1):Bf(t,i)}}return t}var wl=ve((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return jl(t,k(n,(function(t){return dn(t,r)?+t:t})).sort(Wf)),e})),xl=Math.floor,Al=Math.random;function Ol(t,n){return t+xl(Al()*(n-t+1))}var El=parseFloat,Bl=Math.min,kl=Math.random,Il=Math.ceil,Sl=Math.max;function Ml(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=G(n),void 0===r?(r=n,n=0):r=G(r),function(t,n,r,e){for(var i=-1,o=Sl(Il((n-t)/(r||1)),0),u=Array(o);o--;)u[e?o:++i]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),Cf(t,pe(n,1),[])})),Hl=4294967294,Yl=Math.floor,Xl=Math.min;function Ql(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=O(n),f=void 0===n;i>>1,u=t[o];null!==u&&!O(u)&&(r?u<=n:u/g,ss={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ls,variable:"",imports:{_:{escape:$a}}},ps=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ds=/[()=,{}\[\]\/\s]/,ys=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gs=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,bs=Object.prototype.hasOwnProperty;function ms(t,n){return n(t)}var js=4294967295,ws=Math.min;function xs(t,n){var r=t;return r instanceof St&&(r=r.value()),He(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function As(){return xs(this.__wrapped__,this.__actions__)}function Os(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function Es(t,n){for(var r=-1,e=t.length;++r-1;);return r}var Bs=/^\s+/,ks=/\w*$/,Is=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ss=/&(?:amp|lt|gt|quot|#39);/g,Ms=RegExp(Ss.source),Rs=ro&&1/ou(new ro([,-0]))[1]==1/0?function(t){return new ro(t)}:Mt,Ws=200;function Cs(t,n,r){var e=-1,i=nn,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=wa;else if(o>=Ws){var f=n?null:Rs(t);if(f)return ou(f);u=!1,i=tu,c=new Xo}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof St&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:void 0}),new Pt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Vs(t,n,r){var e=t.length;if(e<2)return e?Cs(t[0]):[];for(var i=-1,o=Array(e);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Ns(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Pi(H(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,o=0,u=Array(zi(e/n));ii?0:i+r),(e=void 0===e||e>i?i:H(e))<0&&(e+=i),e=r>e?0:Ga(e);r-1:!!i&&tn(t,n,r)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(I(n)||(n=null==n?[]:[n]),I(r=e?void 0:r)||(r=null==r?[]:[r]),Cf(t,n,r))},partition:hl,reduce:function(t,n,r){var e=I(t)?He:zl,i=arguments.length<3;return e(t,$u(n),r,i,Yu)},reduceRight:function(t,n,r){var e=I(t)?Pl:zl,i=arguments.length<3;return e(t,$u(n),r,i,Pa)},reject:function(t,n){return(I(t)?Ki:Ha)(t,xf($u(n)))},sample:function(t){return(I(t)?Ul:Nl)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:H(n),(I(t)?ql:$l)(t,n)},shuffle:function(t){return(I(t)?Kl:Vl)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Oc(t)?il(t):t.length;var n=vo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Sr(t).length},some:function(t,n,r){var e=I(t)?Qo:Jl;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Gl},rp=ia,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ee,bind:Be,bindKey:Ie,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Xr,negate:xf,once:function(t){return Ee(2,t)},overArgs:Tf,partial:sl,partialRight:pl,rearg:Cl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Xn(t,n=void 0===n?n:H(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rs(H(n),0),Xn((function(r){var e=r[n],i=Me(r,0,n);return e&&fe(i,e),xt(t,this,i)}))},throttle:function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),aa(t,n,{leading:e,maxWait:n,trailing:i})},unary:function(t){return $n(t,1)},wrap:function(t,n){return sl(Ma(n),t)}},ip={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return I(t)?t:[t]},clone:function(t){return Yo(t,4)},cloneDeep:function(t){return Yo(t,5)},cloneDeepWith:function(t,n){return Yo(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Yo(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Mr(n))},eq:Vn,gt:_c,gte:bc,isArguments:sr,isArray:I,isArrayBuffer:Jc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||x(t)&&"[object Boolean]"==w(t)},isBuffer:yr,isDate:Hc,isElement:function(t){return x(t)&&1===t.nodeType&&!xe(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(I(t)||"string"==typeof t||"function"==typeof t.splice||yr(t)||Ar(t)||sr(t)))return!t.length;var n=vo(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(or(t))return!Sr(t).length;for(var r in t)if(Yc.call(t,r))return!1;return!0},isEqual:function(t,n){return ku(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?ku(t,n,void 0,r):!!e},isError:Ae,isFinite:function(t){return"number"==typeof t&&Xc(t)},isFunction:rt,isInteger:Qc,isLength:tr,isMap:$o,isMatch:function(t,n){return t===n||Mu(t,n,Wu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Mu(t,n,Wu(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:x,isPlainObject:xe,isRegExp:ef,isSafeInteger:function(t){return Qc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vo,isString:Oc,isSymbol:O,isTypedArray:Ar,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return x(t)&&"[object WeakMap]"==vo(t)},isWeakSet:function(t){return x(t)&&"[object WeakSet]"==w(t)},lt:hf,lte:vf,toArray:Of,toFinite:G,toInteger:H,toLength:Ga,toNumber:V,toPlainObject:va,toSafeInteger:function(t){return t?Li(H(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},op={add:z,ceil:Wi,divide:Ia,floor:fc,max:function(t){return t&&t.length?df(t,Y,yc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),yc):void 0},mean:function(t){return gf(t,Y)},meanBy:function(t,n){return gf(t,$u(n))},min:function(t){return t&&t.length?df(t,Y,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:wf,round:Tl,subtract:is,sum:function(t){return t&&t.length?yf(t,Y):0},sumBy:function(t,n){return t&&t.length?yf(t,$u(n)):0}},up={assign:Wr,assignIn:Pr,assignInWith:Lr,assignWith:Dr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Ti(r,n)},defaults:la,defaultsDeep:_a,entries:Ta,entriesIn:Ua,extend:Pr,extendWith:Lr,findKey:function(t,n){return nc(t,$u(n),Gu)},findLastKey:function(t,n){return nc(t,$u(n),za)},forIn:function(t,n){return null==t?t:Ju(t,Ma(n),zr)},forInRight:function(t,n){return null==t?t:Ca(t,Ma(n),zr)},forOwn:function(t,n){return t&&Gu(t,Ma(n))},forOwnRight:function(t,n){return t&&za(t,Ma(n))},functions:function(t){return null==t?[]:hc(t,Mr(t))},functionsIn:function(t){return null==t?[]:hc(t,zr(t))},get:ae,has:function(t,n){return null!=t&&Lu(t,n,jc)},hasIn:Du,invert:Dc,invertBy:Fc,invoke:Kc,keys:Mr,keysIn:zr,mapKeys:function(t,n){var r={};return n=$u(n),Gu(t,(function(t,e,i){Kn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Gu(t,(function(t,e,i){Kn(r,e,n(t,e,i))})),r},merge:_f,mergeWith:ga,omit:If,omitBy:function(t,n){return Rf(t,xf($u(n)))},pick:vl,pickBy:Rf,result:function(t,n,r){var e=-1,i=(n=ee(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 kt;){var e=Dt(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 St){var n=t;return this.__actions__.length&&(n=new St(this)),(n=n.reverse()).__actions__.push({func:ms,args:[Dl],thisArg:void 0}),new Pt(n,this.__chain__)}return this.thru(Dl)},tap:function(t,n){return n(t),t},thru:ms,toIterator:function(){return this},toJSON:As,value:As,valueOf:As,wrapperChain:function(){return Ci(this)}},cp={camelCase:Ii,capitalize:Ge,deburr:ni,endsWith:function(t,n,r){t=re(t),n=W(n);var e=t.length,i=r=void 0===r?e:Li(H(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:lf,lowerFirst:sf,pad:function(t,n,r){t=re(t);var e=(n=H(n))?il(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return ul(cl(i),r)+t+ul(al(i),r)},padEnd:function(t,n,r){t=re(t);var e=(n=H(n))?il(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=W(n))&&We(t)?Me(Ve(t),0,r):t.split(n,r):[]},startCase:es,startsWith:function(t,n,r){return t=re(t),r=null==r?0:Li(H(r),0,t.length),n=W(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ss.imports._.templateSettings||ss;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Lr({},n,e,as);var i,o,u=Lr({},n.imports,e.imports,as),a=Mr(u),c=Ec(u,a),f=0,l=n.interpolate||gs,s="__p += '",p=RegExp((n.escape||gs).source+"|"+l.source+"|"+(l===ls?ys:gs).source+"|"+(n.evaluate||gs).source+"|$","g"),h=bs.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(_s,fs),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=bs.call(n,"variable")&&n.variable;if(v){if(ds.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(o?s.replace(ps,""):s).replace(hs,"$1").replace(vs,"$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=Oe((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,Ae(d))throw d;return d},templateSettings:ss,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return T(t);if(!t||!(n=W(n)))return t;var e=Ve(t),i=Ve(n);return Me(e,Es(e,i),Os(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,L(t)+1);if(!t||!(n=W(n)))return t;var e=Ve(t);return Me(e,0,Os(e,Ve(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(Bs,"");if(!t||!(n=W(n)))return t;var e=Ve(t);return Me(e,Es(e,Ve(n))).join("")},truncate:function(t,n){var r=30,e="...";if(U(n)){var i="separator"in n?n.separator:i;r="length"in n?H(n.length):r,e="omission"in n?W(n.omission):e}var o=(t=re(t)).length;if(We(t)){var u=Ve(t);o=u.length}if(r>=o)return t;var a=r-il(e);if(a<1)return e;var c=u?Me(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+e;if(u&&(a+=c.length-a),ef(i)){if(t.slice(a).search(i)){var f,l=c;for(i.global||(i=RegExp(i.source,re(ks.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(W(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Ms.test(t)?t.replace(Ss,Is):t},upperCase:qs,upperFirst:Je,words:Ei},fp={attempt:Oe,bindAll:ke,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?k(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Xn((function(r){for(var e=-1;++e9007199254740991)return[];var r=js,e=ws(t,js);n=Ma(n),t-=js;for(var i=ur(e,n);++r=xc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var i=kl();return Bl(t+i*(n-t+El("1e-"+((i+"").length-1))),n)}return Ol(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=op.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=op.subtract,Ut.sum=op.sum,Ut.sumBy=op.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=ip.toFinite,Ut.toInteger=H,Ut.toLength=ip.toLength,Ut.toLower=cp.toLower,Ut.toNumber=ip.toNumber,Ut.toSafeInteger=ip.toSafeInteger,Ut.toString=ip.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Xs={},Gu(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Xs[n]=t)})),Xs),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Yt(["drop","take"],(function(t,n){St.prototype[t]=function(r){r=void 0===r?1:gp(H(r),0);var e=this.__filtered__&&!n?new St(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,hp),type:t+(e.__dir__<0?"Right":"")}),e},St.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Yt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;St.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Yt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");St.prototype[t]=function(){return this[r](1).value()[0]}})),Yt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");St.prototype[t]=function(){return this.__filtered__?new St(this):this[r](1)}})),St.prototype.compact=function(){return this.filter(Y)},St.prototype.find=function(t){return this.filter(t).head()},St.prototype.findLast=function(t){return this.reverse().find(t)},St.prototype.invokeMap=Xn((function(t,n){return"function"==typeof t?new St(this):this.map((function(r){return $c(r,t,n)}))})),St.prototype.reject=function(t){return this.filter(xf($u(t)))},St.prototype.slice=function(t,n){t=H(t);var r=this;return r.__filtered__&&(t>0||n<0)?new St(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=H(n))<0?r.dropRight(-n):r.take(n-t)),r)},St.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},St.prototype.toArray=function(){return this.take(hp)},Gu(St.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Ut[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof St,c=u[0],f=a||I(n),l=function(t){var n=i.apply(Ut,fe([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 St(this);var d=t.apply(n,u);return d.__actions__.push({func:ms,args:[l],thisArg:void 0}),new Pt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),Yt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(I(i)?i:[],t)}return this[r]((function(r){return n.apply(I(r)?r:[],t)}))}})),Gu(St.prototype,(function(t,n){var r=Ut[n];if(r){var e=r.name+"";dp.call(Wt,e)||(Wt[e]=[]),Wt[e].push({name:n,func:r})}})),Wt[On(void 0,2).name]=[{name:"wrapper",func:void 0}],St.prototype.clone=function(){var t=new St(this.__wrapped__);return t.__actions__=Lt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lt(this.__views__),t},St.prototype.reverse=function(){if(this.__filtered__){var t=new St(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},St.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=I(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e{const e=c(t),o=(0,i.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,i.useEffect)((()=>()=>n()),[n])})((()=>o.cancel())),o},jp=({children:t,capture:n,wait:r,options:e})=>{const o=i.Children.only(t),u=mp(((...t)=>{const r=null==o?void 0:o.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,i.cloneElement)(o,{[n]:u})};function wp(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,i.useRef)(null),a=c(t),f=(0,i.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,i.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:o,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,o,f]),u},Ap=(...t)=>(0,i.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Op=(0,i.forwardRef)(((t,n)=>{const{action:r,calledOnce:i,threshold:o,root:u,rootMargin:a}=t,c=wp(t,["action","calledOnce","threshold","root","rootMargin"]),f=xp({action:r,calledOnce:i,threshold:o,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Ap(n,f)},c,{children:t.children}))})),Ep=(0,i.forwardRef)(((t,n)=>{var{src:r,style:o,threshold:u,root:a,rootMargin:c}=t,f=wp(t,["src","style","threshold","root","rootMargin"]);const l=xp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,i.useMemo)((()=>Object.assign({display:"inline-block"},o)),[o]);return(0,e.jsx)("img",Object.assign({},f,{ref:Ap(n,l),style:s}))})),Bp=a()?i.useLayoutEffect:i.useEffect;(0,i.createContext)({parentPortalElement:null});const kp=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(i.Fragment,{children:t}):null,Ip=t=>!!a()&&window.matchMedia(t).matches,Sp=t=>{const[n,r]=(0,i.useState)(Ip(t)),e=(0,i.useCallback)((()=>{r(Ip(t))}),[t]);return(0,i.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Mp=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),n.current},Rp=t=>{const[n,r]=(0,i.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,i.useRef)(null),o=c(t),u=(0,i.useCallback)((([t])=>{t&&(o(t),r(t.contentRect))}),[o]);return(0,i.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},Wp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,o]=(0,i.useState)({width:null,height:null}),u=(0,i.useCallback)((()=>{o({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,i.useMemo)((()=>n?a:u),[u,n,a]);return Bp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/47a95eb2.28de7645.js b/assets/js/47a95eb2.28de7645.js new file mode 100644 index 000000000..ac48f79e3 --- /dev/null +++ b/assets/js/47a95eb2.28de7645.js @@ -0,0 +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(289),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)}},289:(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&&t1&&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();++n0&&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=[];++ea))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;++rn}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(;++s1),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?n1&&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);++o1?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));oo?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;++r9007199254740991)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/47a95eb2.2a620662.js b/assets/js/47a95eb2.2a620662.js deleted file mode 100644 index cc44eddb3..000000000 --- a/assets/js/47a95eb2.2a620662.js +++ /dev/null @@ -1 +0,0 @@ -"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(289),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:"AB",permalink:"/modern-kit/docs/react/components/AB"},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)}},289:(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,{AB:()=>f,D9:()=>Cp,ac:()=>Sp,df:()=>Ap,iP:()=>Bp,nA:()=>Ip,uM:()=>jp,wY:()=>Ep,yU:()=>Wp});var r=e(5735),o=e(4614);e(2832);"function"==typeof SuppressedError&&SuppressedError;const i=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!i(),c=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),(0,o.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,e=o.Children.toArray(t);let r=0,i=0;if(2!==e.length)return null;for(const o of e){if(![f.CaseA,f.CaseB].includes(o.type))return null;o.type===f.CaseA?r+=1:i+=1}return r>=2||i>=2?null:n?e[0]:e[1]};f.CaseA=({children:t,renderAction:n})=>{const e=c(n||u);return(0,o.useEffect)((()=>{e()}),[e]),(0,r.jsx)(o.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const e=c(n||u);return(0,o.useEffect)((()=>{e()}),[e]),(0,r.jsx)(o.Fragment,{children:t})};var l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,g=v.toString,y=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=h?h.toStringTag:void 0;function x(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,y),e=t[y];try{t[y]=void 0;var r=!0}catch(t){}var o=g.call(t);return r&&(n?t[y]=e:delete t[y]),o}(t):function(t){return _.call(t)}(t)}function w(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||w(t)&&x(t)==O}var E=NaN;function k(t){return"number"==typeof t?t:A(t)?E:+t}function I(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 $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Gt(t){return function(){return t}}var Ht=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Jt=qt(Ht?function(t,n){return Ht(t,"toString",{configurable:!0,enumerable:!1,value:Gt(n),writable:!0})}:Y);function Yt(t,n){for(var e=-1,r=null==t?0:t.length;++e-1}var en=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function rn(t,n,e){var r=n+"";return Jt(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Yt(en,(function(e){var r="_."+e[0];n&e[1]&&!nn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(r),e)))}var on=1,un=2,an=4,cn=8,fn=32,ln=64;function sn(t,n,e,r,o,i,u,a,c,f){var l=n&cn;n|=l?fn:ln,(n&=~(l?ln:fn))&an||(n&=~(on|un));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 Nt(t)&&$t(p,s),p.placeholder=r,rn(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var e=typeof t;return!!(n=null==n?hn:n)&&("number"==e||"symbol"!=e&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&c<_&&(b.length=c),this&&this!==p&&this instanceof y&&(A=g||jt(A)),A.apply(O,b)}}var En=1,kn="__lodash_placeholder__",In=1,Mn=2,Sn=4,Cn=8,Wn=128,Bn=256,Rn=Math.min,zn="Expected a function",Dn=1,Pn=2,Ln=8,Tn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,e,r,o,i,u,a){var c=n&Pn;if(!c&&"function"!=typeof t)throw new TypeError(zn);var f=r?r.length:0;if(f||(n&=~(Un|Nn),r=o=void 0),u=void 0===u?u:Fn(J(u),0),a=void 0===a?a:J(a),f-=o?o.length:0,n&Nn){var l=r,s=o;r=o=void 0}var h=c?void 0:Wt(t),v=[t,n,e,r,o,l,s,i,u,a];if(h&&function(t,n){var e=t[1],r=n[1],o=e|r,i=o<(In|Mn|Wn),u=r==Wn&&e==Cn||r==Wn&&e==Bn&&t[7].length<=n[8]||r==(Wn|Bn)&&n[7].length<=n[8]&&e==Cn;if(!i&&!u)return t;r&In&&(t[2]=n[2],o|=e&In?0:Sn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],kn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?kt(c,a,n[6]):a,t[6]=c?_n(t[5],kn):n[6]),(a=n[7])&&(t[7]=a),r&Wn&&(t[8]=null==t[8]?n[8]:Rn(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],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Ln|Tn)&&(n&=~(Ln|Tn)),n&&n!=Dn)d=n==Ln||n==Tn?function(t,n,e){var r=jt(t);return function o(){for(var i=arguments.length,u=Array(i),a=i,c=pn(o);a--;)u[a]=arguments[a];var f=i<3&&u[0]!==c&&u[i-1]!==c?[]:_n(u,c);return(i-=f.length)-1&&t%1==0&&t<=Qn}function ne(t){return null!=t&&te(t.length)&&!et(t)}function ee(t,n,e){if(!U(e))return!1;var r=typeof n;return!!("number"==r?ne(e)&&dn(n,e.length):"string"==r&&n in e)&&Vn(e[n],t)}function re(t){return Xn((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&&ee(e[0],e[1],u)&&(i=o<3?void 0:i,o=1),n=Object(n);++r-1},Ge.prototype.set=function(t,n){var e=this.__data__,r=Ve(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};var He=dt(p,"Map");function Je(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 Ye(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?pr(a,n-1,e,r,o):fr(o,a):r||(o[o.length]=a)}return o}function hr(t){return null!=t&&t.length?pr(t,1):[]}function vr(t){return Jt(Yn(t,void 0,hr),t+"")}var dr=vr(cr),gr=ke(Object.getPrototypeOf,Object),yr="[object Object]",_r=Function.prototype,br=Object.prototype,mr=_r.toString,jr=br.hasOwnProperty,xr=mr.call(Object);function wr(t){if(!w(t)||x(t)!=yr)return!1;var n=gr(t);if(null===n)return!0;var e=jr.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&mr.call(e)==xr}function Or(t){if(!w(t))return!1;var n=x(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!wr(t)}var Ar=Xn((function(t,n){try{return wt(t,void 0,n)}catch(t){return Or(t)?t:new Error(t)}}));function Er(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var kr=Xn((function(t,n,e){var r=1;if(e.length){var o=_n(e,pn(kr));r|=32}return qn(t,r,n,e,o)}));kr.placeholder={};var Ir=vr((function(t,n){return Yt(n,(function(n){n=ir(n),Kn(t,n,kr(t[n],t))})),t})),Mr=Xn((function(t,n,e){var r=3;if(e.length){var o=_n(e,pn(Mr));r|=32}return qn(n,r,t,e,o)}));function Sr(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:Sr(t,n,e)}Mr.placeholder={};var Wr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Br(t){return Wr.test(t)}var Rr="\\ud800-\\udfff",zr="["+Rr+"]",Dr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Pr="\\ud83c[\\udffb-\\udfff]",Lr="[^"+Rr+"]",Tr="(?:\\ud83c[\\udde6-\\uddff]){2}",Ur="[\\ud800-\\udbff][\\udc00-\\udfff]",Nr="(?:"+Dr+"|"+Pr+")?",Fr="[\\ufe0e\\ufe0f]?",qr=Fr+Nr+"(?:\\u200d(?:"+[Lr,Tr,Ur].join("|")+")"+Fr+Nr+")*",$r="(?:"+[Lr+Dr+"?",Dr,Tr,Ur,zr].join("|")+")",Kr=RegExp(Pr+"(?="+Pr+")|"+$r+qr,"g");function Vr(t){return Br(t)?function(t){return t.match(Kr)||[]}(t):function(t){return t.split("")}(t)}function Zr(t){return function(n){var e=Br(n=er(n))?Vr(n):void 0,r=e?e[0]:n.charAt(0),o=e?Cr(e,1).join(""):n.slice(1);return r[t]()+o}}var Gr=Zr("toUpperCase");function Hr(t){return Gr(er(t).toLowerCase())}function Jr(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 To(t){var n=this.__data__=new Ge(t);this.size=n.size}function Uo(t,n){return t&&Hn(n,Ce(n),t)}To.prototype.clear=function(){this.__data__=new Ge,this.size=0},To.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},To.prototype.get=function(t){return this.__data__.get(t)},To.prototype.has=function(t){return this.__data__.has(t)},To.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Ge){var r=e.__data__;if(!He||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ye(r)}return e.set(t,n),this.size=e.size,this};var No="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fo=No&&"object"==typeof module&&module&&!module.nodeType&&module,qo=Fo&&Fo.exports===No?p.Buffer:void 0,$o=qo?qo.allocUnsafe:void 0;function Ko(t,n){if(n)return t.slice();var e=t.length,r=$o?$o(e):new t.constructor(e);return t.copy(r),r}function Vo(t,n){for(var e=-1,r=null==t?0:t.length,o=0,i=[];++ea))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&eu?new Xi:void 0;for(i.set(t,n),i.set(n,t);++s=n||e<0||s&&t-f>=i}function d(){var t=oa();if(v(t))return g(t);a=setTimeout(d,function(t){var e=n-(t-c);return s?ua(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=oa(),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=V(n)||0,U(e)&&(l=!!e.leading,i=(s="maxWait"in e)?ia(V(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(oa())},y}var ca=Object.prototype,fa=ca.hasOwnProperty,la=Xn((function(t,n){t=Object(t);var e=-1,r=n.length,o=r>2?n[2]:void 0;for(o&&ee(n[0],n[1],o)&&(r=1);++e=wa&&(i=tu,u=!1,n=new Xi(n));t:for(;++o":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=er(t))&&qa.test(t)?t.replace(Fa,Na):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var e=-1,r=null==t?0:t.length;++e-1?o[i?n[u]:u]:void 0}}var Xa=Math.max;function Qa(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:J(e);return o<0&&(o=Xa(r+o,0)),Xt(t,$u(n),o)}var tc=Ya(Qa);function nc(t,n,e){var r;return e(t,(function(t,e,o){if(n(t,e,o))return r=e,!1})),r}var ec=Math.max,rc=Math.min;function oc(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==e&&(o=J(e),o=e<0?ec(r+o,0):rc(o,r-1)),Xt(t,$u(n),o,!0)}var ic=Ya(oc);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var e=-1,r=ne(t)?Array(t.length):[];return Yu(t,(function(t,o,i){r[++e]=n(t,o,i)})),r}function cc(t,n){return(M(t)?I:ac)(t,$u(n))}var fc=Bo("floor");function lc(t){return vr((function(n){var e=n.length,r=e,o=Dt.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"==zt(i))var u=new Dt([],!0)}for(r=u?r:e;++rn}function yc(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=V(n),e=V(e)),t(n,e)}}var _c=yc(gc),bc=yc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var xc=Math.max,wc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!M(t)&&w(t)&&x(t)==Oc}function Ec(t,n){return I(n,(function(n){return t[n]}))}function kc(t){return null==t?[]:Ec(t,Ce(t))}var Ic=Math.max,Mc=Math.max,Sc=Math.min;function Cc(t,n,e){for(var r=e?xa:nn,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=I(l,_e(n))),c=Sc(l.length,c),a[u]=!e&&(n||o>=120&&l.length>=120)?new Xi(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Hn(t,ti(t),e),r&&(e=Yi(e,7,If));for(var o=n.length;o--;)kf(e,n[o]);return e}));function Sf(t,n,e,r){if(!U(t))return t;for(var o=-1,i=(n=rr(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 zf(t){return vr((function(n){return n=I(n,_e($u)),Xn((function(e){var r=this;return t(n,(function(t){return wt(t,r,e)}))}))}))}var Df=zf(I),Pf=Xn,Lf=Math.min,Tf=Pf((function(t,n){var e=(n=1==n.length&&M(n[0])?I(n[0],_e($u)):I(pr(n,1),_e($u))).length;return Xn((function(r){for(var o=-1,i=Lf(r.length,e);++oFf)return e;do{n%2&&(e+=t),(n=qf(n/2))&&(t+=t)}while(n);return e}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Gf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Hf="\\ud83c[\\udffb-\\udfff]",Jf="[^"+Vf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Xf="[\\ud800-\\udbff][\\udc00-\\udfff]",Qf="(?:"+Gf+"|"+Hf+")?",tl="[\\ufe0e\\ufe0f]?",nl=tl+Qf+"(?:\\u200d(?:"+[Jf,Yf,Xf].join("|")+")"+tl+Qf+")*",el="(?:"+[Jf+Gf+"?",Gf,Yf,Xf,Zf].join("|")+")",rl=RegExp(Hf+"(?="+Hf+")|"+el+nl,"g");function ol(t){return Br(t)?function(t){for(var n=rl.lastIndex=0;rl.test(t);)++n;return n}(t):Kf(t)}var il=Math.ceil;function ul(t,n){var e=(n=void 0===n?" ":B(n)).length;if(e<2)return e?$f(n,t):n;var r=$f(n,il(t/ol(n)));return Br(n)?Cr(Vr(r),0,t).join(""):r.slice(0,t)}var al=Math.ceil,cl=Math.floor,fl=/^\s+/,ll=p.parseInt,sl=Xn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(sl)))}));sl.placeholder={};var pl=Xn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(pl)))}));pl.placeholder={};var hl=Qu((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),vl=vr((function(t,n){return null==t?{}:function(t,n){return Cf(t,n,(function(n,e){return Lu(t,e)}))}(t,n)}));function dl(t,n,e,r){for(var o=e-1,i=t.length;++o-1;)a!==t&&gl.call(a,c,1),gl.call(t,c,1);return t}function _l(t,n){return t&&t.length&&n&&n.length?yl(t,n):t}var bl=Xn(_l),ml=Array.prototype.splice;function jl(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;dn(o)?ml.call(t,o,1):kf(t,o)}}return t}var xl=vr((function(t,n){var e=null==t?0:t.length,r=cr(t,n);return jl(t,I(n,(function(t){return dn(t,e)?+t:t})).sort(Bf)),r})),wl=Math.floor,Ol=Math.random;function Al(t,n){return t+wl(Ol()*(n-t+1))}var El=parseFloat,kl=Math.min,Il=Math.random,Ml=Math.ceil,Sl=Math.max;function Cl(t){return function(n,e,r){return r&&"number"!=typeof r&&ee(n,e,r)&&(e=r=void 0),n=H(n),void 0===e?(e=n,n=0):e=H(e),function(t,n,e,r){for(var o=-1,i=Sl(Ml((n-t)/(e||1)),0),u=Array(i);i--;)u[r?i:++o]=t,t+=e;return u}(n,e,r=void 0===r?n1&&ee(t,n[0],n[1])?n=[]:e>2&&ee(n[0],n[1],n[2])&&(n=[n[0]]),Rf(t,pr(n,1),[])})),Jl=4294967294,Yl=Math.floor,Xl=Math.min;function Ql(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=A(n),f=void 0===n;o>>1,u=t[i];null!==u&&!A(u)&&(e?u<=n:u/g,ss={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ls,variable:"",imports:{_:{escape:$a}}},ps=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ds=/[()=,{}\[\]\/\s]/,gs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ys=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,bs=Object.prototype.hasOwnProperty;function ms(t,n){return n(t)}var js=4294967295,xs=Math.min;function ws(t,n){var e=t;return e instanceof St&&(e=e.value()),Jr(n,(function(t,n){return n.func.apply(n.thisArg,fr([t],n.args))}),e)}function Os(){return ws(this.__wrapped__,this.__actions__)}function As(t,n){for(var e=t.length;e--&&tn(n,t[e],0)>-1;);return e}function Es(t,n){for(var e=-1,r=t.length;++e-1;);return e}var ks=/^\s+/,Is=/\w*$/,Ms=Yr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ss=/&(?:amp|lt|gt|quot|#39);/g,Cs=RegExp(Ss.source),Ws=ri&&1/iu(new ri([,-0]))[1]==1/0?function(t){return new ri(t)}:Ct,Bs=200;function Rs(t,n,e){var r=-1,o=nn,i=t.length,u=!0,a=[],c=a;if(e)u=!1,o=xa;else if(i>=Bs){var f=n?null:Ws(t);if(f)return iu(f);u=!1,o=tu,c=new Xi}else c=n?[]:a;t:for(;++r1||this.__actions__.length)&&r instanceof St&&dn(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:ms,args:[o],thisArg:void 0}),new Dt(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Vs(t,n,e){var r=t.length;if(r<2)return r?Rs(t[0]):[];for(var o=-1,i=Array(r);++o1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,Ns(t,e)})),tp={chunk:function(t,n,e){n=(e?ee(t,n,e):void 0===n)?1:Po(J(n),0);var r=null==t?0:t.length;if(!r||n<1)return[];for(var o=0,i=0,u=Array(Do(r/n));oo?0:o+e),(r=void 0===r||r>o?o:J(r))<0&&(r+=o),r=e>r?0:Ha(r);e-1:!!o&&tn(t,n,e)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,e,r){return null==t?[]:(M(n)||(n=null==n?[]:[n]),M(e=r?void 0:e)||(e=null==e?[]:[e]),Rf(t,n,e))},partition:hl,reduce:function(t,n,e){var r=M(t)?Jr:zl,o=arguments.length<3;return r(t,$u(n),e,o,Yu)},reduceRight:function(t,n,e){var r=M(t)?Dl:zl,o=arguments.length<3;return r(t,$u(n),e,o,Da)},reject:function(t,n){return(M(t)?Vo:Ja)(t,wf($u(n)))},sample:function(t){return(M(t)?Ul:Nl)(t)},sampleSize:function(t,n,e){return n=(e?ee(t,n,e):void 0===n)?1:J(n),(M(t)?ql:$l)(t,n)},shuffle:function(t){return(M(t)?Kl:Vl)(t)},size:function(t){if(null==t)return 0;if(ne(t))return Ac(t)?ol(t):t.length;var n=di(t);return"[object Map]"==n||"[object Set]"==n?t.size:Se(t).length},some:function(t,n,e){var r=M(t)?Qi:Gl;return e&&ee(t,n,e)&&(n=void 0),r(t,$u(n))},sortBy:Hl},ep=oa,rp={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Er,bind:kr,bindKey:Mr,curry:ea,curryRight:ra,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Xe,negate:wf,once:function(t){return Er(2,t)},overArgs:Tf,partial:sl,partialRight:pl,rearg:Rl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Xn(t,n=void 0===n?n:J(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:es(J(n),0),Xn((function(e){var r=e[n],o=Cr(e,0,n);return r&&fr(o,r),wt(t,this,o)}))},throttle:function(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),aa(t,n,{leading:r,maxWait:n,trailing:o})},unary:function(t){return $n(t,1)},wrap:function(t,n){return sl(Ca(n),t)}},op={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return M(t)?t:[t]},clone:function(t){return Yi(t,4)},cloneDeep:function(t){return Yi(t,5)},cloneDeepWith:function(t,n){return Yi(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Yi(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Ce(n))},eq:Vn,gt:_c,gte:bc,isArguments:se,isArray:M,isArrayBuffer:Gc,isArrayLike:ne,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||w(t)&&"[object Boolean]"==x(t)},isBuffer:ge,isDate:Jc,isElement:function(t){return w(t)&&1===t.nodeType&&!wr(t)},isEmpty:function(t){if(null==t)return!0;if(ne(t)&&(M(t)||"string"==typeof t||"function"==typeof t.splice||ge(t)||Oe(t)||se(t)))return!t.length;var n=di(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(ie(t))return!Se(t).length;for(var e in t)if(Yc.call(t,e))return!1;return!0},isEqual:function(t,n){return Iu(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?Iu(t,n,void 0,e):!!r},isError:Or,isFinite:function(t){return"number"==typeof t&&Xc(t)},isFunction:et,isInteger:Qc,isLength:te,isMap:$i,isMatch:function(t,n){return t===n||Cu(t,n,Bu(n))},isMatchWith:function(t,n,e){return e="function"==typeof e?e:void 0,Cu(t,n,Bu(n),e)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:w,isPlainObject:wr,isRegExp:rf,isSafeInteger:function(t){return Qc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vi,isString:Ac,isSymbol:A,isTypedArray:Oe,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return w(t)&&"[object WeakMap]"==di(t)},isWeakSet:function(t){return w(t)&&"[object WeakSet]"==x(t)},lt:hf,lte:vf,toArray:Af,toFinite:H,toInteger:J,toLength:Ha,toNumber:V,toPlainObject:va,toSafeInteger:function(t){return t?Lo(J(t),-9007199254740991,9007199254740991):0===t?t:0},toString:er},ip={add:z,ceil:Ro,divide:Ma,floor:fc,max:function(t){return t&&t.length?df(t,Y,gc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),gc):void 0},mean:function(t){return yf(t,Y)},meanBy:function(t,n){return yf(t,$u(n))},min:function(t){return t&&t.length?df(t,Y,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:xf,round:Tl,subtract:os,sum:function(t){return t&&t.length?gf(t,Y):0},sumBy:function(t,n){return t&&t.length?gf(t,$u(n)):0}},up={assign:Be,assignIn:De,assignInWith:Pe,assignWith:Le,at:dr,create:function(t,n){var e=mt(t);return null==n?e:Uo(e,n)},defaults:la,defaultsDeep:_a,entries:Ta,entriesIn:Ua,extend:De,extendWith:Pe,findKey:function(t,n){return nc(t,$u(n),Hu)},findLastKey:function(t,n){return nc(t,$u(n),za)},forIn:function(t,n){return null==t?t:Gu(t,Ca(n),ze)},forInRight:function(t,n){return null==t?t:Ra(t,Ca(n),ze)},forOwn:function(t,n){return t&&Hu(t,Ca(n))},forOwnRight:function(t,n){return t&&za(t,Ca(n))},functions:function(t){return null==t?[]:hc(t,Ce(t))},functionsIn:function(t){return null==t?[]:hc(t,ze(t))},get:ar,has:function(t,n){return null!=t&&Pu(t,n,jc)},hasIn:Lu,invert:Lc,invertBy:Fc,invoke:Kc,keys:Ce,keysIn:ze,mapKeys:function(t,n){var e={};return n=$u(n),Hu(t,(function(t,r,o){Kn(e,n(t,r,o),t)})),e},mapValues:function(t,n){var e={};return n=$u(n),Hu(t,(function(t,r,o){Kn(e,r,n(t,r,o))})),e},merge:_f,mergeWith:ya,omit:Mf,omitBy:function(t,n){return Wf(t,wf($u(n)))},pick:vl,pickBy:Wf,result:function(t,n,e){var r=-1,o=(n=rr(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 It;){var r=Lt(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 St){var n=t;return this.__actions__.length&&(n=new St(this)),(n=n.reverse()).__actions__.push({func:ms,args:[Ll],thisArg:void 0}),new Dt(n,this.__chain__)}return this.thru(Ll)},tap:function(t,n){return n(t),t},thru:ms,toIterator:function(){return this},toJSON:Os,value:Os,valueOf:Os,wrapperChain:function(){return zo(this)}},cp={camelCase:So,capitalize:Hr,deburr:no,endsWith:function(t,n,e){t=er(t),n=B(n);var r=t.length,o=e=void 0===e?r:Lo(J(e),0,r);return(e-=n.length)>=0&&t.slice(e,o)==n},escape:$a,escapeRegExp:function(t){return(t=er(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:lf,lowerFirst:sf,pad:function(t,n,e){t=er(t);var r=(n=J(n))?ol(t):0;if(!n||r>=n)return t;var o=(n-r)/2;return ul(cl(o),e)+t+ul(al(o),e)},padEnd:function(t,n,e){t=er(t);var r=(n=J(n))?ol(t):0;return n&&r>>0)?(t=er(t))&&("string"==typeof n||null!=n&&!rf(n))&&!(n=B(n))&&Br(t)?Cr(Vr(t),0,e):t.split(n,e):[]},startCase:rs,startsWith:function(t,n,e){return t=er(t),e=null==e?0:Lo(J(e),0,t.length),n=B(n),t.slice(e,e+n.length)==n},template:function(t,n,e){var r=ss.imports._.templateSettings||ss;e&&ee(t,n,e)&&(n=void 0),t=er(t),n=Pe({},n,r,as);var o,i,u=Pe({},n.imports,r.imports,as),a=Ce(u),c=Ec(u,a),f=0,l=n.interpolate||ys,s="__p += '",p=RegExp((n.escape||ys).source+"|"+l.source+"|"+(l===ls?gs:ys).source+"|"+(n.evaluate||ys).source+"|$","g"),h=bs.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(_s,fs),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=bs.call(n,"variable")&&n.variable;if(v){if(ds.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(i?s.replace(ps,""):s).replace(hs,"$1").replace(vs,"$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=Ar((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,Or(d))throw d;return d},templateSettings:ss,toLower:function(t){return er(t).toLowerCase()},toUpper:function(t){return er(t).toUpperCase()},trim:function(t,n,e){if((t=er(t))&&(e||void 0===n))return T(t);if(!t||!(n=B(n)))return t;var r=Vr(t),o=Vr(n);return Cr(r,Es(r,o),As(r,o)+1).join("")},trimEnd:function(t,n,e){if((t=er(t))&&(e||void 0===n))return t.slice(0,P(t)+1);if(!t||!(n=B(n)))return t;var r=Vr(t);return Cr(r,0,As(r,Vr(n))+1).join("")},trimStart:function(t,n,e){if((t=er(t))&&(e||void 0===n))return t.replace(ks,"");if(!t||!(n=B(n)))return t;var r=Vr(t);return Cr(r,Es(r,Vr(n))).join("")},truncate:function(t,n){var e=30,r="...";if(U(n)){var o="separator"in n?n.separator:o;e="length"in n?J(n.length):e,r="omission"in n?B(n.omission):r}var i=(t=er(t)).length;if(Br(t)){var u=Vr(t);i=u.length}if(e>=i)return t;var a=e-ol(r);if(a<1)return r;var c=u?Cr(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+r;if(u&&(a+=c.length-a),rf(o)){if(t.slice(a).search(o)){var f,l=c;for(o.global||(o=RegExp(o.source,er(Is.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(B(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},unescape:function(t){return(t=er(t))&&Cs.test(t)?t.replace(Ss,Ms):t},upperCase:qs,upperFirst:Gr,words:ko},fp={attempt:Ar,bindAll:Ir,cond:function(t){var n=null==t?0:t.length,e=$u;return t=n?I(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[e(t[0]),t[1]]})):[],Xn((function(e){for(var r=-1;++r9007199254740991)return[];var e=js,r=xs(t,js);n=Ca(n),t-=js;for(var o=ue(r,n);++e=wc(n,e)&&tn){var r=t;t=n,n=r}if(e||t%1||n%1){var o=Il();return kl(t+o*(n-t+El("1e-"+((o+"").length-1))),n)}return Al(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=ip.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=ip.subtract,Ut.sum=ip.sum,Ut.sumBy=ip.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=op.toFinite,Ut.toInteger=J,Ut.toLength=op.toLength,Ut.toLower=cp.toLower,Ut.toNumber=op.toNumber,Ut.toSafeInteger=op.toSafeInteger,Ut.toString=op.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Xs={},Hu(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Xs[n]=t)})),Xs),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Yt(["drop","take"],(function(t,n){St.prototype[t]=function(e){e=void 0===e?1:yp(J(e),0);var r=this.__filtered__&&!n?new St(this):this.clone();return r.__filtered__?r.__takeCount__=_p(e,r.__takeCount__):r.__views__.push({size:_p(e,hp),type:t+(r.__dir__<0?"Right":"")}),r},St.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Yt(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;St.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:e}),n.__filtered__=n.__filtered__||r,n}})),Yt(["head","last"],(function(t,n){var e="take"+(n?"Right":"");St.prototype[t]=function(){return this[e](1).value()[0]}})),Yt(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");St.prototype[t]=function(){return this.__filtered__?new St(this):this[e](1)}})),St.prototype.compact=function(){return this.filter(Y)},St.prototype.find=function(t){return this.filter(t).head()},St.prototype.findLast=function(t){return this.reverse().find(t)},St.prototype.invokeMap=Xn((function(t,n){return"function"==typeof t?new St(this):this.map((function(e){return $c(e,t,n)}))})),St.prototype.reject=function(t){return this.filter(wf($u(t)))},St.prototype.slice=function(t,n){t=J(t);var e=this;return e.__filtered__&&(t>0||n<0)?new St(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=J(n))<0?e.dropRight(-n):e.take(n-t)),e)},St.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},St.prototype.toArray=function(){return this.take(hp)},Hu(St.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=Ut[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);o&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=r?[1]:arguments,a=n instanceof St,c=u[0],f=a||M(n),l=function(t){var n=o.apply(Ut,fr([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 St(this);var d=t.apply(n,u);return d.__actions__.push({func:ms,args:[l],thisArg:void 0}),new Dt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?r?d.value()[0]:d.value():d)})})),Yt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(M(o)?o:[],t)}return this[e]((function(e){return n.apply(M(e)?e:[],t)}))}})),Hu(St.prototype,(function(t,n){var e=Ut[n];if(e){var r=e.name+"";dp.call(Bt,r)||(Bt[r]=[]),Bt[r].push({name:n,func:e})}})),Bt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],St.prototype.clone=function(){var t=new St(this.__wrapped__);return t.__actions__=Pt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Pt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Pt(this.__views__),t},St.prototype.reverse=function(){if(this.__filtered__){var t=new St(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},St.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=M(t),r=n<0,o=e?t.length:0,i=function(t,n,e){for(var r=-1,o=e.length;++r{const r=c(t),i=(0,o.useMemo)((()=>aa(r,n,e)),[r,n,e]);return(t=>{const n=c(t);(0,o.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},jp=({children:t,capture:n,wait:e,options:r})=>{const i=o.Children.only(t),u=mp(((...t)=>{const e=null==i?void 0:i.props;if(e)return"function"==typeof e[n]?e[n](...t):void 0}),e,r);return(0,o.cloneElement)(i,{[n]:u})};function xp(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,o.useRef)(null),a=c(t),f=(0,o.useCallback)((([t],e)=>{if(t&&t.isIntersecting){const r=t.target;a&&a(t),n&&e.unobserve(r)}}),[a,n]);return(0,o.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:e,rootMargin:i,threshold:r});return n.observe(t),()=>{n.unobserve(t)}}),[e,r,i,f]),u},Op=(...t)=>(0,o.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,o.forwardRef)(((t,n)=>{const{action:e,calledOnce:o,threshold:i,root:u,rootMargin:a}=t,c=xp(t,["action","calledOnce","threshold","root","rootMargin"]),f=wp({action:e,calledOnce:o,threshold:i,root:u,rootMargin:a});return(0,r.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ep=(0,o.forwardRef)(((t,n)=>{var{src:e,style:i,threshold:u,root:a,rootMargin:c}=t,f=xp(t,["src","style","threshold","root","rootMargin"]);const l=wp({action:t=>{t.target.src=e},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,o.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,r.jsx)("img",Object.assign({},f,{ref:Op(n,l),style:s}))})),kp=a()?o.useLayoutEffect:o.useEffect;(0,o.createContext)({parentPortalElement:null});const Ip=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,r.jsx)(o.Fragment,{children:t}):null,Mp=t=>!!a()&&window.matchMedia(t).matches,Sp=t=>{const[n,e]=(0,o.useState)(Mp(t)),r=(0,o.useCallback)((()=>{e(Mp(t))}),[t]);return(0,o.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)}),[t,r]),{isMatch:n}},Cp=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),n.current},Wp=t=>{const[n,e]=(0,o.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),r=(0,o.useRef)(null),i=c(t),u=(0,o.useCallback)((([t])=>{t&&(i(t),e(t.contentRect))}),[i]);return(0,o.useEffect)((()=>{const t=r.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:r,contentRect:n}},Bp=(t={})=>{const{isDebounce:n=!1,wait:e=300}=t,[r,i]=(0,o.useState)({width:null,height:null}),u=(0,o.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,e),c=(0,o.useMemo)((()=>n?a:u),[u,n,a]);return kp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),r}}}]); \ No newline at end of file diff --git a/assets/js/54102c04.7ac76a7f.js b/assets/js/54102c04.7ac76a7f.js new file mode 100644 index 000000000..a29201db8 --- /dev/null +++ b/assets/js/54102c04.7ac76a7f.js @@ -0,0 +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(289),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
\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 {!isLoaded &&
}\n setIsLoaded(true)}\n />\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)}},289:(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);++r0){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&&t1&&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();++n0&&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=[];++ra))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;++en}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&&++in||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);++iDf)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?n1&&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(;++e1||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);++i1?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));ii?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;++e9007199254740991)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 diff --git a/assets/js/54102c04.b277e149.js b/assets/js/54102c04.b277e149.js deleted file mode 100644 index ef5118f24..000000000 --- a/assets/js/54102c04.b277e149.js +++ /dev/null @@ -1 +0,0 @@ -"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(289),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
\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 {!isLoaded &&
}\n setIsLoaded(true)}\n />\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)}},289:(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,{AB:()=>f,D9:()=>Rp,ac:()=>Mp,df:()=>Ap,iP:()=>zp,nA:()=>kp,uM:()=>jp,wY:()=>Ip,yU:()=>Wp});var e=r(5735),i=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const o=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!o(),c=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),(0,i.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=i.Children.toArray(t);let e=0,o=0;if(2!==r.length)return null;for(const i of r){if(![f.CaseA,f.CaseB].includes(i.type))return null;i.type===f.CaseA?e+=1:o+=1}return e>=2||o>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})};var l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,g=v.toString,y=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=h?h.toStringTag:void 0;function x(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,y),r=t[y];try{t[y]=void 0;var e=!0}catch(t){}var i=g.call(t);return e&&(n?t[y]=r:delete t[y]),i}(t):function(t){return _.call(t)}(t)}function w(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||w(t)&&x(t)==O}var I=NaN;function E(t){return"number"==typeof t?t:A(t)?I:+t}function k(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Gt(t){return function(){return t}}var Yt=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ht=qt(Yt?function(t,n){return Yt(t,"toString",{configurable:!0,enumerable:!1,value:Gt(n),writable:!0})}:J);function Jt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Ht(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Jt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,ln=64;function sn(t,n,r,e,i,o,u,a,c,f){var l=n&cn;n|=l?fn:ln,(n&=~(l?ln:fn))&an||(n&=~(on|un));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 Ut(t)&&$t(p,s),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?hn:n)&&("number"==r||"symbol"!=r&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&c<_&&(b.length=c),this&&this!==p&&this instanceof y&&(A=g||jt(A)),A.apply(O,b)}}var In=1,En="__lodash_placeholder__",kn=1,Sn=2,Mn=4,Rn=8,Wn=128,zn=256,Ln=Math.min,Bn="Expected a function",Cn=1,Pn=2,Dn=8,Tn=16,Nn=32,Un=64,Fn=Math.max;function qn(t,n,r,e,i,o,u,a){var c=n&Pn;if(!c&&"function"!=typeof t)throw new TypeError(Bn);var f=e?e.length:0;if(f||(n&=~(Nn|Un),e=i=void 0),u=void 0===u?u:Fn(H(u),0),a=void 0===a?a:H(a),f-=i?i.length:0,n&Un){var l=e,s=i;e=i=void 0}var h=c?void 0:Wt(t),v=[t,n,r,e,i,l,s,o,u,a];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(kn|Sn|Wn),u=e==Wn&&r==Rn||e==Wn&&r==zn&&t[7].length<=n[8]||e==(Wn|zn)&&n[7].length<=n[8]&&r==Rn;if(!o&&!u)return t;e&kn&&(t[2]=n[2],i|=r&kn?0:Mn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],En):n[4]}(a=n[5])&&(c=t[5],t[5]=c?Et(c,a,n[6]):a,t[6]=c?_n(t[5],En):n[6]),(a=n[7])&&(t[7]=a),e&Wn&&(t[8]=null==t[8]?n[8]:Ln(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],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Dn|Tn)&&(n&=~(Dn|Tn)),n&&n!=Cn)d=n==Dn||n==Tn?function(t,n,r){var e=jt(t);return function i(){for(var o=arguments.length,u=Array(o),a=o,c=pn(i);a--;)u[a]=arguments[a];var f=o<3&&u[0]!==c&&u[o-1]!==c?[]:_n(u,c);return(o-=f.length)-1&&t%1==0&&t<=Xn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!N(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Vn(r[n],t)}function er(t){return Qn((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&&rr(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},Gr.prototype.set=function(t,n){var r=this.__data__,e=Vr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Yr=dt(p,"Map");function Hr(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 Jr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,i):fe(i,a):e||(i[i.length]=a)}return i}function he(t){return null!=t&&t.length?pe(t,1):[]}function ve(t){return Ht(Jn(t,void 0,he),t+"")}var de=ve(ce),ge=Er(Object.getPrototypeOf,Object),ye="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,je=be.hasOwnProperty,xe=me.call(Object);function we(t){if(!w(t)||x(t)!=ye)return!1;var n=ge(t);if(null===n)return!0;var r=je.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==xe}function Oe(t){if(!w(t))return!1;var n=x(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!we(t)}var Ae=Qn((function(t,n){try{return wt(t,void 0,n)}catch(t){return Oe(t)?t:new Error(t)}}));function Ie(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var Ee=Qn((function(t,n,r){var e=1;if(r.length){var i=_n(r,pn(Ee));e|=32}return qn(t,e,n,r,i)}));Ee.placeholder={};var ke=ve((function(t,n){return Jt(n,(function(n){n=oe(n),Kn(t,n,Ee(t[n],t))})),t})),Se=Qn((function(t,n,r){var e=3;if(r.length){var i=_n(r,pn(Se));e|=32}return qn(n,e,t,r,i)}));function Me(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:Me(t,n,r)}Se.placeholder={};var We=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function ze(t){return We.test(t)}var Le="\\ud800-\\udfff",Be="["+Le+"]",Ce="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Pe="\\ud83c[\\udffb-\\udfff]",De="[^"+Le+"]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="(?:"+Ce+"|"+Pe+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ue+"(?:\\u200d(?:"+[De,Te,Ne].join("|")+")"+Fe+Ue+")*",$e="(?:"+[De+Ce+"?",Ce,Te,Ne,Be].join("|")+")",Ke=RegExp(Pe+"(?="+Pe+")|"+$e+qe,"g");function Ve(t){return ze(t)?function(t){return t.match(Ke)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=ze(n=re(n))?Ve(n):void 0,e=r?r[0]:n.charAt(0),i=r?Re(r,1).join(""):n.slice(1);return e[t]()+i}}var Ge=Ze("toUpperCase");function Ye(t){return Ge(re(t).toLowerCase())}function He(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 Di(t){var n=this.__data__=new Gr(t);this.size=n.size}function Ti(t,n){return t&&Yn(n,Rr(n),t)}Di.prototype.clear=function(){this.__data__=new Gr,this.size=0},Di.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Di.prototype.get=function(t){return this.__data__.get(t)},Di.prototype.has=function(t){return this.__data__.has(t)},Di.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!Yr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Jr(e)}return r.set(t,n),this.size=r.size,this};var Ni="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ui=Ni&&"object"==typeof module&&module&&!module.nodeType&&module,Fi=Ui&&Ui.exports===Ni?p.Buffer:void 0,qi=Fi?Fi.allocUnsafe:void 0;function $i(t,n){if(n)return t.slice();var r=t.length,e=qi?qi(r):new t.constructor(r);return t.copy(e),e}function Ki(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))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&ru?new Qo:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-f>=o}function d(){var t=ia();if(v(t))return g(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ua(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=ia(),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=V(n)||0,N(r)&&(l=!!r.leading,o=(s="maxWait"in r)?oa(V(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(ia())},y}var ca=Object.prototype,fa=ca.hasOwnProperty,la=Qn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&rr(n[0],n[1],i)&&(e=1);++r=wa&&(o=tu,u=!1,n=new Qo(n));t:for(;++i":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Ua):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?i[o?n[u]:u]:void 0}}var Qa=Math.max;function Xa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:H(r);return i<0&&(i=Qa(e+i,0)),Qt(t,$u(n),i)}var tc=Ja(Xa);function nc(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function ic(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=H(r),i=r<0?rc(e+i,0):ec(i,e-1)),Qt(t,$u(n),i,!0)}var oc=Ja(ic);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Ju(t,(function(t,i,o){e[++r]=n(t,i,o)})),e}function cc(t,n){return(S(t)?k:ac)(t,$u(n))}var fc=Wi("floor");function lc(t){return ve((function(n){var r=n.length,e=r,i=Ct.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"==Bt(o))var u=new Ct([],!0)}for(e=u?e:r;++en}function yc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=V(n),r=V(r)),t(n,r)}}var _c=yc(gc),bc=yc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var xc=Math.max,wc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!S(t)&&w(t)&&x(t)==Oc}function Ic(t,n){return k(n,(function(n){return t[n]}))}function Ec(t){return null==t?[]:Ic(t,Rr(t))}var kc=Math.max,Sc=Math.max,Mc=Math.min;function Rc(t,n,r){for(var e=r?xa:nn,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=k(l,_r(n))),c=Mc(l.length,c),a[u]=!r&&(n||i>=120&&l.length>=120)?new Qo(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Yn(t,Xi(t),r),e&&(r=Jo(r,7,kf));for(var i=n.length;i--;)Ef(r,n[i]);return r}));function Mf(t,n,r,e){if(!N(t))return t;for(var i=-1,o=(n=ee(n,t)).length,u=o-1,a=t;null!=a&&++in||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 Bf(t){return ve((function(n){return n=k(n,_r($u)),Qn((function(r){var e=this;return t(n,(function(t){return wt(t,e,r)}))}))}))}var Cf=Bf(k),Pf=Qn,Df=Math.min,Tf=Pf((function(t,n){var r=(n=1==n.length&&S(n[0])?k(n[0],_r($u)):k(pe(n,1),_r($u))).length;return Qn((function(e){for(var i=-1,o=Df(e.length,r);++iFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Gf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Yf="\\ud83c[\\udffb-\\udfff]",Hf="[^"+Vf+"]",Jf="(?:\\ud83c[\\udde6-\\uddff]){2}",Qf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="(?:"+Gf+"|"+Yf+")?",tl="[\\ufe0e\\ufe0f]?",nl=tl+Xf+"(?:\\u200d(?:"+[Hf,Jf,Qf].join("|")+")"+tl+Xf+")*",rl="(?:"+[Hf+Gf+"?",Gf,Jf,Qf,Zf].join("|")+")",el=RegExp(Yf+"(?="+Yf+")|"+rl+nl,"g");function il(t){return ze(t)?function(t){for(var n=el.lastIndex=0;el.test(t);)++n;return n}(t):Kf(t)}var ol=Math.ceil;function ul(t,n){var r=(n=void 0===n?" ":z(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,ol(t/il(n)));return ze(n)?Re(Ve(e),0,t).join(""):e.slice(0,t)}var al=Math.ceil,cl=Math.floor,fl=/^\s+/,ll=p.parseInt,sl=Qn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(sl)))}));sl.placeholder={};var pl=Qn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(pl)))}));pl.placeholder={};var hl=Xu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),vl=ve((function(t,n){return null==t?{}:function(t,n){return Rf(t,n,(function(n,r){return Du(t,r)}))}(t,n)}));function dl(t,n,r,e){for(var i=r-1,o=t.length;++i-1;)a!==t&&gl.call(a,c,1),gl.call(t,c,1);return t}function _l(t,n){return t&&t.length&&n&&n.length?yl(t,n):t}var bl=Qn(_l),ml=Array.prototype.splice;function jl(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;dn(i)?ml.call(t,i,1):Ef(t,i)}}return t}var xl=ve((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return jl(t,k(n,(function(t){return dn(t,r)?+t:t})).sort(zf)),e})),wl=Math.floor,Ol=Math.random;function Al(t,n){return t+wl(Ol()*(n-t+1))}var Il=parseFloat,El=Math.min,kl=Math.random,Sl=Math.ceil,Ml=Math.max;function Rl(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=Y(n),void 0===r?(r=n,n=0):r=Y(r),function(t,n,r,e){for(var i=-1,o=Ml(Sl((n-t)/(r||1)),0),u=Array(o);o--;)u[e?o:++i]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),Lf(t,pe(n,1),[])})),Hl=4294967294,Jl=Math.floor,Ql=Math.min;function Xl(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=A(n),f=void 0===n;i>>1,u=t[o];null!==u&&!A(u)&&(r?u<=n:u/g,ss={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ls,variable:"",imports:{_:{escape:$a}}},ps=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ds=/[()=,{}\[\]\/\s]/,gs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ys=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,bs=Object.prototype.hasOwnProperty;function ms(t,n){return n(t)}var js=4294967295,xs=Math.min;function ws(t,n){var r=t;return r instanceof Mt&&(r=r.value()),He(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function Os(){return ws(this.__wrapped__,this.__actions__)}function As(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function Is(t,n){for(var r=-1,e=t.length;++r-1;);return r}var Es=/^\s+/,ks=/\w*$/,Ss=Je({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ms=/&(?:amp|lt|gt|quot|#39);/g,Rs=RegExp(Ms.source),Ws=ro&&1/ou(new ro([,-0]))[1]==1/0?function(t){return new ro(t)}:Rt,zs=200;function Ls(t,n,r){var e=-1,i=nn,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=xa;else if(o>=zs){var f=n?null:Ws(t);if(f)return ou(f);u=!1,i=tu,c=new Qo}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof Mt&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:void 0}),new Ct(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Vs(t,n,r){var e=t.length;if(e<2)return e?Ls(t[0]):[];for(var i=-1,o=Array(e);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Us(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Ci(H(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,o=0,u=Array(Bi(e/n));ii?0:i+r),(e=void 0===e||e>i?i:H(e))<0&&(e+=i),e=r>e?0:Ya(e);r-1:!!i&&tn(t,n,r)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(S(n)||(n=null==n?[]:[n]),S(r=e?void 0:r)||(r=null==r?[]:[r]),Lf(t,n,r))},partition:hl,reduce:function(t,n,r){var e=S(t)?He:Bl,i=arguments.length<3;return e(t,$u(n),r,i,Ju)},reduceRight:function(t,n,r){var e=S(t)?Cl:Bl,i=arguments.length<3;return e(t,$u(n),r,i,Ca)},reject:function(t,n){return(S(t)?Ki:Ha)(t,wf($u(n)))},sample:function(t){return(S(t)?Nl:Ul)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:H(n),(S(t)?ql:$l)(t,n)},shuffle:function(t){return(S(t)?Kl:Vl)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Ac(t)?il(t):t.length;var n=vo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Mr(t).length},some:function(t,n,r){var e=S(t)?Xo:Gl;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Yl},rp=ia,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ie,bind:Ee,bindKey:Se,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Qr,negate:wf,once:function(t){return Ie(2,t)},overArgs:Tf,partial:sl,partialRight:pl,rearg:Ll,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Qn(t,n=void 0===n?n:H(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rs(H(n),0),Qn((function(r){var e=r[n],i=Re(r,0,n);return e&&fe(i,e),wt(t,this,i)}))},throttle:function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return N(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),aa(t,n,{leading:e,maxWait:n,trailing:i})},unary:function(t){return $n(t,1)},wrap:function(t,n){return sl(Ra(n),t)}},ip={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return S(t)?t:[t]},clone:function(t){return Jo(t,4)},cloneDeep:function(t){return Jo(t,5)},cloneDeepWith:function(t,n){return Jo(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Jo(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Rr(n))},eq:Vn,gt:_c,gte:bc,isArguments:sr,isArray:S,isArrayBuffer:Gc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||w(t)&&"[object Boolean]"==x(t)},isBuffer:gr,isDate:Hc,isElement:function(t){return w(t)&&1===t.nodeType&&!we(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(S(t)||"string"==typeof t||"function"==typeof t.splice||gr(t)||Or(t)||sr(t)))return!t.length;var n=vo(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(or(t))return!Mr(t).length;for(var r in t)if(Jc.call(t,r))return!1;return!0},isEqual:function(t,n){return ku(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?ku(t,n,void 0,r):!!e},isError:Oe,isFinite:function(t){return"number"==typeof t&&Qc(t)},isFunction:rt,isInteger:Xc,isLength:tr,isMap:$o,isMatch:function(t,n){return t===n||Ru(t,n,zu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Ru(t,n,zu(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:N,isObjectLike:w,isPlainObject:we,isRegExp:ef,isSafeInteger:function(t){return Xc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vo,isString:Ac,isSymbol:A,isTypedArray:Or,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return w(t)&&"[object WeakMap]"==vo(t)},isWeakSet:function(t){return w(t)&&"[object WeakSet]"==x(t)},lt:hf,lte:vf,toArray:Af,toFinite:Y,toInteger:H,toLength:Ya,toNumber:V,toPlainObject:va,toSafeInteger:function(t){return t?Pi(H(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},op={add:B,ceil:zi,divide:Sa,floor:fc,max:function(t){return t&&t.length?df(t,J,gc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),gc):void 0},mean:function(t){return yf(t,J)},meanBy:function(t,n){return yf(t,$u(n))},min:function(t){return t&&t.length?df(t,J,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:xf,round:Tl,subtract:is,sum:function(t){return t&&t.length?gf(t,J):0},sumBy:function(t,n){return t&&t.length?gf(t,$u(n)):0}},up={assign:zr,assignIn:Cr,assignInWith:Pr,assignWith:Dr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Ti(r,n)},defaults:la,defaultsDeep:_a,entries:Ta,entriesIn:Na,extend:Cr,extendWith:Pr,findKey:function(t,n){return nc(t,$u(n),Yu)},findLastKey:function(t,n){return nc(t,$u(n),Ba)},forIn:function(t,n){return null==t?t:Gu(t,Ra(n),Br)},forInRight:function(t,n){return null==t?t:La(t,Ra(n),Br)},forOwn:function(t,n){return t&&Yu(t,Ra(n))},forOwnRight:function(t,n){return t&&Ba(t,Ra(n))},functions:function(t){return null==t?[]:hc(t,Rr(t))},functionsIn:function(t){return null==t?[]:hc(t,Br(t))},get:ae,has:function(t,n){return null!=t&&Pu(t,n,jc)},hasIn:Du,invert:Dc,invertBy:Fc,invoke:Kc,keys:Rr,keysIn:Br,mapKeys:function(t,n){var r={};return n=$u(n),Yu(t,(function(t,e,i){Kn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Yu(t,(function(t,e,i){Kn(r,e,n(t,e,i))})),r},merge:_f,mergeWith:ya,omit:Sf,omitBy:function(t,n){return Wf(t,wf($u(n)))},pick:vl,pickBy:Wf,result:function(t,n,r){var e=-1,i=(n=ee(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 kt;){var e=Dt(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 Mt){var n=t;return this.__actions__.length&&(n=new Mt(this)),(n=n.reverse()).__actions__.push({func:ms,args:[Dl],thisArg:void 0}),new Ct(n,this.__chain__)}return this.thru(Dl)},tap:function(t,n){return n(t),t},thru:ms,toIterator:function(){return this},toJSON:Os,value:Os,valueOf:Os,wrapperChain:function(){return Li(this)}},cp={camelCase:Si,capitalize:Ye,deburr:ni,endsWith:function(t,n,r){t=re(t),n=z(n);var e=t.length,i=r=void 0===r?e:Pi(H(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:lf,lowerFirst:sf,pad:function(t,n,r){t=re(t);var e=(n=H(n))?il(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return ul(cl(i),r)+t+ul(al(i),r)},padEnd:function(t,n,r){t=re(t);var e=(n=H(n))?il(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=z(n))&&ze(t)?Re(Ve(t),0,r):t.split(n,r):[]},startCase:es,startsWith:function(t,n,r){return t=re(t),r=null==r?0:Pi(H(r),0,t.length),n=z(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ss.imports._.templateSettings||ss;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Pr({},n,e,as);var i,o,u=Pr({},n.imports,e.imports,as),a=Rr(u),c=Ic(u,a),f=0,l=n.interpolate||ys,s="__p += '",p=RegExp((n.escape||ys).source+"|"+l.source+"|"+(l===ls?gs:ys).source+"|"+(n.evaluate||ys).source+"|$","g"),h=bs.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(_s,fs),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=bs.call(n,"variable")&&n.variable;if(v){if(ds.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(o?s.replace(ps,""):s).replace(hs,"$1").replace(vs,"$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=Ae((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,Oe(d))throw d;return d},templateSettings:ss,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return T(t);if(!t||!(n=z(n)))return t;var e=Ve(t),i=Ve(n);return Re(e,Is(e,i),As(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,P(t)+1);if(!t||!(n=z(n)))return t;var e=Ve(t);return Re(e,0,As(e,Ve(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(Es,"");if(!t||!(n=z(n)))return t;var e=Ve(t);return Re(e,Is(e,Ve(n))).join("")},truncate:function(t,n){var r=30,e="...";if(N(n)){var i="separator"in n?n.separator:i;r="length"in n?H(n.length):r,e="omission"in n?z(n.omission):e}var o=(t=re(t)).length;if(ze(t)){var u=Ve(t);o=u.length}if(r>=o)return t;var a=r-il(e);if(a<1)return e;var c=u?Re(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+e;if(u&&(a+=c.length-a),ef(i)){if(t.slice(a).search(i)){var f,l=c;for(i.global||(i=RegExp(i.source,re(ks.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(z(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Rs.test(t)?t.replace(Ms,Ss):t},upperCase:qs,upperFirst:Ge,words:Ii},fp={attempt:Ae,bindAll:ke,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?k(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Qn((function(r){for(var e=-1;++e9007199254740991)return[];var r=js,e=xs(t,js);n=Ra(n),t-=js;for(var i=ur(e,n);++r=wc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var i=kl();return El(t+i*(n-t+Il("1e-"+((i+"").length-1))),n)}return Al(t,n)},Nt.reduce=np.reduce,Nt.reduceRight=np.reduceRight,Nt.repeat=cp.repeat,Nt.replace=cp.replace,Nt.result=up.result,Nt.round=op.round,Nt.sample=np.sample,Nt.size=np.size,Nt.snakeCase=cp.snakeCase,Nt.some=np.some,Nt.sortedIndex=tp.sortedIndex,Nt.sortedIndexBy=tp.sortedIndexBy,Nt.sortedIndexOf=tp.sortedIndexOf,Nt.sortedLastIndex=tp.sortedLastIndex,Nt.sortedLastIndexBy=tp.sortedLastIndexBy,Nt.sortedLastIndexOf=tp.sortedLastIndexOf,Nt.startCase=cp.startCase,Nt.startsWith=cp.startsWith,Nt.subtract=op.subtract,Nt.sum=op.sum,Nt.sumBy=op.sumBy,Nt.template=cp.template,Nt.times=fp.times,Nt.toFinite=ip.toFinite,Nt.toInteger=H,Nt.toLength=ip.toLength,Nt.toLower=cp.toLower,Nt.toNumber=ip.toNumber,Nt.toSafeInteger=ip.toSafeInteger,Nt.toString=ip.toString,Nt.toUpper=cp.toUpper,Nt.trim=cp.trim,Nt.trimEnd=cp.trimEnd,Nt.trimStart=cp.trimStart,Nt.truncate=cp.truncate,Nt.unescape=cp.unescape,Nt.uniqueId=fp.uniqueId,Nt.upperCase=cp.upperCase,Nt.upperFirst=cp.upperFirst,Nt.each=np.forEach,Nt.eachRight=np.forEachRight,Nt.first=tp.head,bp(Nt,(Qs={},Yu(Nt,(function(t,n){dp.call(Nt.prototype,n)||(Qs[n]=t)})),Qs),{chain:!1}),Nt.VERSION="4.17.21",(Nt.templateSettings=cp.templateSettings).imports._=Nt,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Nt[t].placeholder=Nt})),Jt(["drop","take"],(function(t,n){Mt.prototype[t]=function(r){r=void 0===r?1:yp(H(r),0);var e=this.__filtered__&&!n?new Mt(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,hp),type:t+(e.__dir__<0?"Right":"")}),e},Mt.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Jt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;Mt.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Jt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");Mt.prototype[t]=function(){return this[r](1).value()[0]}})),Jt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");Mt.prototype[t]=function(){return this.__filtered__?new Mt(this):this[r](1)}})),Mt.prototype.compact=function(){return this.filter(J)},Mt.prototype.find=function(t){return this.filter(t).head()},Mt.prototype.findLast=function(t){return this.reverse().find(t)},Mt.prototype.invokeMap=Qn((function(t,n){return"function"==typeof t?new Mt(this):this.map((function(r){return $c(r,t,n)}))})),Mt.prototype.reject=function(t){return this.filter(wf($u(t)))},Mt.prototype.slice=function(t,n){t=H(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Mt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=H(n))<0?r.dropRight(-n):r.take(n-t)),r)},Mt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Mt.prototype.toArray=function(){return this.take(hp)},Yu(Mt.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Nt[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Nt.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof Mt,c=u[0],f=a||S(n),l=function(t){var n=i.apply(Nt,fe([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 Mt(this);var d=t.apply(n,u);return d.__actions__.push({func:ms,args:[l],thisArg:void 0}),new Ct(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),Jt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Nt.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(S(i)?i:[],t)}return this[r]((function(r){return n.apply(S(r)?r:[],t)}))}})),Yu(Mt.prototype,(function(t,n){var r=Nt[n];if(r){var e=r.name+"";dp.call(zt,e)||(zt[e]=[]),zt[e].push({name:n,func:r})}})),zt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],Mt.prototype.clone=function(){var t=new Mt(this.__wrapped__);return t.__actions__=Pt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Pt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Pt(this.__views__),t},Mt.prototype.reverse=function(){if(this.__filtered__){var t=new Mt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Mt.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=S(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e{const e=c(t),o=(0,i.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,i.useEffect)((()=>()=>n()),[n])})((()=>o.cancel())),o},jp=({children:t,capture:n,wait:r,options:e})=>{const o=i.Children.only(t),u=mp(((...t)=>{const r=null==o?void 0:o.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,i.cloneElement)(o,{[n]:u})};function xp(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,i.useRef)(null),a=c(t),f=(0,i.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,i.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:o,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,o,f]),u},Op=(...t)=>(0,i.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,i.forwardRef)(((t,n)=>{const{action:r,calledOnce:i,threshold:o,root:u,rootMargin:a}=t,c=xp(t,["action","calledOnce","threshold","root","rootMargin"]),f=wp({action:r,calledOnce:i,threshold:o,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ip=(0,i.forwardRef)(((t,n)=>{var{src:r,style:o,threshold:u,root:a,rootMargin:c}=t,f=xp(t,["src","style","threshold","root","rootMargin"]);const l=wp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,i.useMemo)((()=>Object.assign({display:"inline-block"},o)),[o]);return(0,e.jsx)("img",Object.assign({},f,{ref:Op(n,l),style:s}))})),Ep=a()?i.useLayoutEffect:i.useEffect;(0,i.createContext)({parentPortalElement:null});const kp=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(i.Fragment,{children:t}):null,Sp=t=>!!a()&&window.matchMedia(t).matches,Mp=t=>{const[n,r]=(0,i.useState)(Sp(t)),e=(0,i.useCallback)((()=>{r(Sp(t))}),[t]);return(0,i.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Rp=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),n.current},Wp=t=>{const[n,r]=(0,i.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,i.useRef)(null),o=c(t),u=(0,i.useCallback)((([t])=>{t&&(o(t),r(t.contentRect))}),[o]);return(0,i.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},zp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,o]=(0,i.useState)({width:null,height:null}),u=(0,i.useCallback)((()=>{o({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,i.useMemo)((()=>n?a:u),[u,n,a]);return Ep((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/61a35b61.8133a8b1.js b/assets/js/61a35b61.8133a8b1.js new file mode 100644 index 000000000..0446668c0 --- /dev/null +++ b/assets/js/61a35b61.8133a8b1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9034],{4320:(t,n,r)=>{r.r(n),r.d(n,{Example:()=>s,assets:()=>f,contentTitle:()=>a,default:()=>v,frontMatter:()=>u,metadata:()=>c,toc:()=>l});var e=r(5735),i=r(289),o=r(5474);const u={},a="useMediaQuery",c={id:"react/hooks/useMediaQuery",title:"useMediaQuery",description:"Resize \uc2dc\uc5d0\ub3c4 \ub3d9\uc791\ud558\uba70, \ubbf8\ub514\uc5b4 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc758 \ubd84\uc11d \uacb0\uacfc\ub97c \uc27d\uac8c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useMediaQuery.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useMediaQuery",permalink:"/modern-kit/docs/react/hooks/useMediaQuery",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useIsomorphicLayoutEffect",permalink:"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect"},next:{title:"useMergeRefs",permalink:"/modern-kit/docs/react/hooks/useMergeRefs"}},f={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}],s=()=>{const t={div:"div",p:"p",...(0,i.a)()},{isMatch:n}=(0,o.ac)("(min-width: 768px)");return(0,e.jsxs)(t.div,{children:[(0,e.jsx)(t.p,{children:"\ube0c\ub77c\uc6b0\uc800 \ub108\ube44\ub97c \uc218\uc815\ud574\ubcf4\uc138\uc694!"}),(0,e.jsx)(t.p,{children:n?"viewport \ub108\ube44\uac00 768px \uc774\uc0c1\uc785\ub2c8\ub2e4.":"viewport \ub108\ube44\uac00 768px \ubbf8\ub9cc\uc785\ub2c8\ub2e4."})]})};function p(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,i.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"usemediaquery",children:"useMediaQuery"}),"\n",(0,e.jsx)(n.p,{children:"Resize \uc2dc\uc5d0\ub3c4 \ub3d9\uc791\ud558\uba70, \ubbf8\ub514\uc5b4 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc758 \ubd84\uc11d \uacb0\uacfc\ub97c \uc27d\uac8c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\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:"const useMediaQuery: (query: string) => {\n isMatch: boolean;\n}\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { useMediaQuery } from '@modern-kit/react';\n\nconst Example = () => {\n const { isMatch } = useMediaQuery('(min-width: 768px)');\n\n return (\n
\n

\n {isMatch\n ? 'viewport \ub108\ube44\uac00 768px \uc774\uc0c1\uc785\ub2c8\ub2e4.'\n : 'viewport \ub108\ube44\uac00 768px \ubbf8\ub9cc\uc785\ub2c8\ub2e4.'}\n

\n
\n );\n};\n\n"})}),"\n","\n",(0,e.jsx)(s,{})]})}function v(t={}){const{wrapper:n}={...(0,i.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(p,{...t})}):p(t)}},289:(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:()=>Sp,df:()=>xp,iP:()=>Bp,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,v=Object.prototype.toString,h="[object Null]",d="[object Undefined]",y=c?c.toStringTag:void 0;function g(t){return null==t?void 0===t?d:h:y&&y 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 v.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var b="[object Symbol]";function m(t){return"symbol"==typeof t||_(t)&&g(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);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Tt=Dt(vt),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=Dt(Kt);function Zt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var Yt=[["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(Yt,(function(r){var e="_."+r[0];n&r[1]&&!Jt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(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&&t1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof g&&(A=y||yt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,En=4,Mn=8,kn=128,In=256,Sn=Math.min,Rn="Expected a function",Wn=1,Bn=2,zn=8,Ln=16,Pn=32,Cn=64,Dn=Math.max;function Tn(t,n,r,e,i,o,u,c){var f=n&Bn;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 v=f?void 0:Mt(t),h=[t,n,r,e,i,s,p,o,u,c];if(v&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(On|An|kn),u=e==kn&&r==Mn||e==kn&&r==In&&t[7].length<=n[8]||e==(kn|In)&&n[7].length<=n[8]&&r==Mn;if(!o&&!u)return t;e&On&&(t[2]=n[2],i|=r&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?hn(t[3],xn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?wt(c,a,n[6]):a,t[6]=c?hn(t[5],xn):n[6]),(a=n[7])&&(t[7]=a),e&kn&&(t[8]=null==t[8]?n[8]:Sn(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i}(h,v),t=h[0],n=h[1],r=h[2],e=h[3],i=h[4],!(c=h[9]=void 0===h[9]?f?0:t.length:Dn(h[9]-l,0))&&n&(zn|Ln)&&(n&=~(zn|Ln)),n&&n!=Wn)d=n==zn||n==Ln?function(t,n,r){var e=yt(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?[]:hn(u,f);return(o-=l.length)-1&&t%1==0&&t<=Gn}function Jn(t){return null!=t&&Hn(t.length)&&!J(t)}function Yn(t,n,r){if(!L(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 Qn((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&&Yn(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();++n0&&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),ve="[object Object]",he=Function.prototype,de=Object.prototype,ye=he.toString,ge=de.hasOwnProperty,_e=ye.call(Object);function be(t){if(!_(t)||g(t)!=ve)return!1;var n=pe(t);if(null===n)return!0;var r=ge.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ye.call(r)==_e}function me(t){if(!_(t))return!1;var n=g(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!be(t)}var je=Qn((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=Qn((function(t,n,r){var e=1;if(r.length){var i=hn(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),Nn(t,n,xe(t[n],t))})),t})),Ae=Qn((function(t,n,r){var e=3;if(r.length){var i=hn(r,cn(Ae));e|=32}return Tn(n,e,t,r,i)}));function Ee(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:Ee(t,n,r)}Ae.placeholder={};var ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ie(t){return ke.test(t)}var Se="\\ud800-\\udfff",Re="["+Se+"]",We="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Be="\\ud83c[\\udffb-\\udfff]",ze="[^"+Se+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="(?:"+We+"|"+Be+")?",De="[\\ufe0e\\ufe0f]?",Te=De+Ce+"(?:\\u200d(?:"+[ze,Le,Pe].join("|")+")"+De+Ce+")*",Ue="(?:"+[ze+We+"?",We,Le,Pe,Re].join("|")+")",Ne=RegExp(Be+"(?="+Be+")|"+Ue+Te,"g");function Fe(t){return Ie(t)?function(t){return t.match(Ne)||[]}(t):function(t){return t.split("")}(t)}function qe(t){return function(n){var r=Ie(n=Yr(n))?Fe(n):void 0,e=r?r[0]:n.charAt(0),i=r?Me(r,1).join(""):n.slice(1);return e[t]()+i}}var $e=qe("toUpperCase");function Ke(t){return $e(Yr(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 zi(t){var n=this.__data__=new $r(t);this.size=n.size}function Li(t,n){return t&&Kn(n,Mr(n),t)}zi.prototype.clear=function(){this.__data__=new $r,this.size=0},zi.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},zi.prototype.get=function(t){return this.__data__.get(t)},zi.prototype.has=function(t){return this.__data__.has(t)},zi.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 Ui(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 Ni(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))return!1;var f=o.get(t),l=o.get(n);if(f&&l)return f==n&&l==t;var s=-1,p=!0,v=r&Yo?new Qo: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(h(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ra(r,o-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?v(t):(e=i=void 0,u)}function g(){var t=ta(),r=h(t);if(e=arguments,i=this,c=t,r){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),l?v(t):u}(c);if(s)return clearTimeout(a),a=setTimeout(d,n),v(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=N(n)||0,L(r)&&(l=!!r.leading,o=(s="maxWait"in r)?na(N(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(ta())},g}var ia=Object.prototype,oa=ia.hasOwnProperty,ua=Qn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&Yn(n[0],n[1],i)&&(e=1);++r=ba&&(o=Ho,u=!1,n=new Qo(n));t:for(;++i":">",'"':""","'":"'"}),Da=/[&<>"']/g,Ta=RegExp(Da.source);function Ua(t){return(t=Yr(t))&&Ta.test(t)?t.replace(Da,Ca):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.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 Qa=Math.max;function Ga(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=Qa(e+i,0)),Qt(t,Uu(n),i)}var Ha=Za(Ga);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 Ya=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?Ya(e+i,0):Xa(i,e-1)),Qt(t,Uu(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,Uu(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"==St(o))var u=new Rt([],!0)}for(e=u?e:r;++en}function vc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=N(n),r=N(r)),t(n,r)}}var hc=vc(pc),dc=vc((function(t,n){return t>=n})),yc=Object.prototype.hasOwnProperty;function gc(t,n){return null!=t&&yc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&g(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,Mr(t))}var Oc=Math.max,Ac=Math.max,Ec=Math.min;function Mc(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,hr(n))),c=Ec(l.length,c),a[u]=!r&&(n||i>=120&&l.length>=120)?new Qo(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Kn(t,Gi(t),r),e&&(r=Zo(r,7,Of));for(var i=n.length;i--;)xf(r,n[i]);return r}));function Ef(t,n,r,e){if(!L(t))return t;for(var i=-1,o=(n=Xr(n,t)).length,u=o-1,a=t;null!=a&&++in||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,hr(Uu)),Qn((function(r){var e=this;return t(n,(function(t){return _t(t,e,r)}))}))}))}var Wf=Rf(x),Bf=Qn,zf=Math.min,Lf=Bf((function(t,n){var r=(n=1==n.length&&O(n[0])?x(n[0],hr(Uu)):x(ce(n,1),hr(Uu))).length;return Qn((function(e){for(var i=-1,o=zf(e.length,r);++iDf)return r;do{n%2&&(r+=t),(n=Tf(n/2))&&(t+=t)}while(n);return r}var Nf=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}",Qf="[\\ud800-\\udbff][\\udc00-\\udfff]",Gf="(?:"+$f+"|"+Kf+")?",Hf="[\\ufe0e\\ufe0f]?",Jf=Hf+Gf+"(?:\\u200d(?:"+[Vf,Zf,Qf].join("|")+")"+Hf+Gf+")*",Yf="(?:"+[Vf+$f+"?",$f,Zf,Qf,qf].join("|")+")",Xf=RegExp(Kf+"(?="+Kf+")|"+Yf+Jf,"g");function tl(t){return Ie(t)?function(t){for(var n=Xf.lastIndex=0;Xf.test(t);)++n;return n}(t):Nf(t)}var nl=Math.ceil;function rl(t,n){var r=(n=void 0===n?" ":k(n)).length;if(r<2)return r?Uf(n,t):n;var e=Uf(n,nl(t/tl(n)));return Ie(n)?Me(Fe(e),0,t).join(""):e.slice(0,t)}var el=Math.ceil,il=Math.floor,ol=/^\s+/,ul=a.parseInt,al=Qn((function(t,n){return Tn(t,32,void 0,n,hn(n,cn(al)))}));al.placeholder={};var cl=Qn((function(t,n){return Tn(t,64,void 0,n,hn(n,cn(cl)))}));cl.placeholder={};var fl=Gu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),ll=le((function(t,n){return null==t?{}:function(t,n){return Mf(t,n,(function(n,r){return zu(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 hl(t,n){return t&&t.length&&n&&n.length?vl(t,n):t}var dl=Qn(hl),yl=Array.prototype.splice;function gl(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)?yl.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 gl(t,x(n,(function(t){return sn(t,r)?+t:t})).sort(If)),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,El=Math.max;function Ml(t){return function(n,r,e){return e&&"number"!=typeof e&&Yn(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=El(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?n1&&Yn(t,n[0],n[1])?n=[]:r>2&&Yn(n[0],n[1],n[2])&&(n=[n[0]]),Sf(t,ce(n,1),[])})),Vl=4294967294,Zl=Math.floor,Ql=Math.min;function Gl(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:Ua}}},cs=/\b__p \+= '';/g,fs=/\b(__p \+=) '' \+/g,ls=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ss=/[()=,{}\[\]\/\s]/,ps=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vs=/($^)/,hs=/['\n\r\u2028\u2029\\]/g,ds=Object.prototype.hasOwnProperty;function ys(t,n){return n(t)}var gs=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({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Es=/&(?:amp|lt|gt|quot|#39);/g,Ms=RegExp(Es.source),ks=Yi&&1/nu(new Yi([,-0]))[1]==1/0?function(t){return new Yi(t)}:Et,Is=200;function Ss(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>=Is){var f=n?null:ks(t);if(f)return nu(f);u=!1,i=Ho,c=new Qo}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof At&&sn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ys,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?Ss(t[0]):[];for(var i=-1,o=Array(e);++i1?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?Yn(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));ii?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]),Sf(t,n,r))},partition:fl,reduce:function(t,n,r){var e=O(t)?Ve:Rl,i=arguments.length<3;return e(t,Uu(n),r,i,Zu)},reduceRight:function(t,n,r){var e=O(t)?Wl:Rl,i=arguments.length<3;return e(t,Uu(n),r,i,Wa)},reject:function(t,n){return(O(t)?Ni:Va)(t,bf(Uu(n)))},sample:function(t){return(O(t)?Pl:Cl)(t)},sampleSize:function(t,n,r){return n=(r?Yn(t,n,r):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(Jn(t))return jc(t)?tl(t):t.length;var n=lo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Er(t).length},some:function(t,n,r){var e=O(t)?Go:$l;return r&&Yn(t,n,r)&&(n=void 0),e(t,Uu(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:Un,before:we,bind:xe,bindKey:Ae,curry:Yu,curryRight:Xu,debounce:ea,defer:ya,delay:ga,flip:function(t){return Tn(t,512)},memoize:Qr,negate:bf,once:function(t){return we(2,t)},overArgs:Lf,partial:al,partialRight:cl,rearg:Sl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Qn(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:Yl(K(n),0),Qn((function(r){var e=r[n],i=Me(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 L(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 Un(t,1)},wrap:function(t,n){return al(Ma(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||Nu(t,n,Mr(n))},eq:Fn,gt:hc,gte:dc,isArguments:ar,isArray:O,isArrayBuffer:$c,isArrayLike:Jn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==g(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!Er(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&&Qc(t)},isFunction:J,isInteger:Gc,isLength:Hn,isMap:Uo,isMatch:function(t,n){return t===n||Mu(t,n,Iu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Mu(t,n,Iu(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:L,isObjectLike:_,isPlainObject:be,isRegExp:Xc,isSafeInteger:function(t){return Gc(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]"==g(t)},lt:ff,lte:lf,toArray:jf,toFinite:$,toInteger:K,toLength:Ka,toNumber:N,toPlainObject:la,toSafeInteger:function(t){return t?Bi(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Yr},rp={add:S,ceil:Ii,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,Uu(n),pc):void 0},mean:function(t){return vf(t,V)},meanBy:function(t,n){return vf(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:Ll,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}},ep={assign:Ir,assignIn:Wr,assignInWith:Br,assignWith:zr,at:se,create:function(t,n){var r=dt(t);return null==n?r:Li(r,n)},defaults:ua,defaultsDeep:ha,entries:La,entriesIn:Pa,extend:Wr,extendWith:Br,findKey:function(t,n){return Ja(t,Uu(n),Ku)},findLastKey:function(t,n){return Ja(t,Uu(n),Ra)},forIn:function(t,n){return null==t?t:$u(t,Ma(n),Rr)},forInRight:function(t,n){return null==t?t:Sa(t,Ma(n),Rr)},forOwn:function(t,n){return t&&Ku(t,Ma(n))},forOwnRight:function(t,n){return t&&Ra(t,Ma(n))},functions:function(t){return null==t?[]:fc(t,Mr(t))},functionsIn:function(t){return null==t?[]:fc(t,Rr(t))},get:ee,has:function(t,n){return null!=t&&Bu(t,n,gc)},hasIn:zu,invert:zc,invertBy:Dc,invoke:Nc,keys:Mr,keysIn:Rr,mapKeys:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,i){Nn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,i){Nn(r,e,n(t,e,i))})),r},merge:hf,mergeWith:va,omit:Af,omitBy:function(t,n){return kf(t,bf(Uu(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=Bt(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:ys,args:[zl],thisArg:void 0}),new Rt(n,this.__chain__)}return this.thru(zl)},tap:function(t,n){return n(t),t},thru:ys,toIterator:function(){return this},toJSON:ms,value:ms,valueOf:ms,wrapperChain:function(){return Si(this)}},op={camelCase:Ai,capitalize:Ke,deburr:Je,endsWith:function(t,n,r){t=Yr(t),n=k(n);var e=t.length,i=r=void 0===r?e:Bi(K(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:Ua,escapeRegExp:function(t){return(t=Yr(t))&&Fa.test(t)?t.replace(Na,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,r){t=Yr(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=Yr(t);var e=(n=K(n))?tl(t):0;return n&&e>>0)?(t=Yr(t))&&("string"==typeof n||null!=n&&!Xc(n))&&!(n=k(n))&&Ie(t)?Me(Fe(t),0,r):t.split(n,r):[]},startCase:Xl,startsWith:function(t,n,r){return t=Yr(t),r=null==r?0:Bi(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&&Yn(t,n,r)&&(n=void 0),t=Yr(t),n=Br({},n,e,es);var i,o,u=Br({},n.imports,e.imports,es),a=Mr(u),c=wc(u,a),f=0,l=n.interpolate||vs,s="__p += '",p=RegExp((n.escape||vs).source+"|"+l.source+"|"+(l===us?ps:vs).source+"|"+(n.evaluate||vs).source+"|$","g"),v=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(hs,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 h=ds.call(n,"variable")&&n.variable;if(h){if(ss.test(h))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("+(h||"obj")+") {\n"+(h?"":"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,v+"return "+s).apply(void 0,c)}));if(d.source=s,me(d))throw d;return d},templateSettings:as,toLower:function(t){return Yr(t).toLowerCase()},toUpper:function(t){return Yr(t).toUpperCase()},trim:function(t,n,r){if((t=Yr(t))&&(r||void 0===n))return z(t);if(!t||!(n=k(n)))return t;var e=Fe(t),i=Fe(n);return Me(e,ws(e,i),js(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=Yr(t))&&(r||void 0===n))return t.slice(0,W(t)+1);if(!t||!(n=k(n)))return t;var e=Fe(t);return Me(e,0,js(e,Fe(n))+1).join("")},trimStart:function(t,n,r){if((t=Yr(t))&&(r||void 0===n))return t.replace(xs,"");if(!t||!(n=k(n)))return t;var e=Fe(t);return Me(e,ws(e,Fe(n))).join("")},truncate:function(t,n){var r=30,e="...";if(L(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=Yr(t)).length;if(Ie(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?Me(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,Yr(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=Yr(t))&&Ms.test(t)?t.replace(Es,As):t},upperCase:Ts,upperFirst:$e,words:wi},up={attempt:je,bindAll:Oe,cond:function(t){var n=null==t?0:t.length,r=Uu;return t=n?x(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Qn((function(r){for(var e=-1;++e9007199254740991)return[];var r=gs,e=_s(t,gs);n=Ma(n),t-=gs;for(var i=rr(e,n);++r=bc(n,r)&&t<_c(n,r)}(t=N(t),n,r)},Lt.invoke=ep.invoke,Lt.isArguments=np.isArguments,Lt.isArray=O,Lt.isArrayBuffer=np.isArrayBuffer,Lt.isArrayLike=np.isArrayLike,Lt.isArrayLikeObject=np.isArrayLikeObject,Lt.isBoolean=np.isBoolean,Lt.isBuffer=np.isBuffer,Lt.isDate=np.isDate,Lt.isElement=np.isElement,Lt.isEmpty=np.isEmpty,Lt.isEqual=np.isEqual,Lt.isEqualWith=np.isEqualWith,Lt.isError=np.isError,Lt.isFinite=np.isFinite,Lt.isFunction=np.isFunction,Lt.isInteger=np.isInteger,Lt.isLength=np.isLength,Lt.isMap=np.isMap,Lt.isMatch=np.isMatch,Lt.isMatchWith=np.isMatchWith,Lt.isNaN=np.isNaN,Lt.isNative=np.isNative,Lt.isNil=np.isNil,Lt.isNull=np.isNull,Lt.isNumber=np.isNumber,Lt.isObject=L,Lt.isObjectLike=np.isObjectLike,Lt.isPlainObject=np.isPlainObject,Lt.isRegExp=np.isRegExp,Lt.isSafeInteger=np.isSafeInteger,Lt.isSet=np.isSet,Lt.isString=np.isString,Lt.isSymbol=np.isSymbol,Lt.isTypedArray=np.isTypedArray,Lt.isUndefined=np.isUndefined,Lt.isWeakMap=np.isWeakMap,Lt.isWeakSet=np.isWeakSet,Lt.join=Js.join,Lt.kebabCase=op.kebabCase,Lt.last=wa,Lt.lastIndexOf=Js.lastIndexOf,Lt.lowerCase=op.lowerCase,Lt.lowerFirst=op.lowerFirst,Lt.lt=np.lt,Lt.lte=np.lte,Lt.max=rp.max,Lt.maxBy=rp.maxBy,Lt.mean=rp.mean,Lt.meanBy=rp.meanBy,Lt.min=rp.min,Lt.minBy=rp.minBy,Lt.stubArray=up.stubArray,Lt.stubFalse=up.stubFalse,Lt.stubObject=up.stubObject,Lt.stubString=up.stubString,Lt.stubTrue=up.stubTrue,Lt.multiply=rp.multiply,Lt.nth=Js.nth,Lt.noop=up.noop,Lt.now=Xs,Lt.pad=op.pad,Lt.padEnd=op.padEnd,Lt.padStart=op.padStart,Lt.parseInt=op.parseInt,Lt.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Yn(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)},Lt.reduce=Ys.reduce,Lt.reduceRight=Ys.reduceRight,Lt.repeat=op.repeat,Lt.replace=op.replace,Lt.result=ep.result,Lt.round=rp.round,Lt.sample=Ys.sample,Lt.size=Ys.size,Lt.snakeCase=op.snakeCase,Lt.some=Ys.some,Lt.sortedIndex=Js.sortedIndex,Lt.sortedIndexBy=Js.sortedIndexBy,Lt.sortedIndexOf=Js.sortedIndexOf,Lt.sortedLastIndex=Js.sortedLastIndex,Lt.sortedLastIndexBy=Js.sortedLastIndexBy,Lt.sortedLastIndexOf=Js.sortedLastIndexOf,Lt.startCase=op.startCase,Lt.startsWith=op.startsWith,Lt.subtract=rp.subtract,Lt.sum=rp.sum,Lt.sumBy=rp.sumBy,Lt.template=op.template,Lt.times=up.times,Lt.toFinite=np.toFinite,Lt.toInteger=K,Lt.toLength=np.toLength,Lt.toLower=op.toLower,Lt.toNumber=np.toNumber,Lt.toSafeInteger=np.toSafeInteger,Lt.toString=np.toString,Lt.toUpper=op.toUpper,Lt.trim=op.trim,Lt.trimEnd=op.trimEnd,Lt.trimStart=op.trimStart,Lt.truncate=op.truncate,Lt.unescape=op.unescape,Lt.uniqueId=up.uniqueId,Lt.upperCase=op.upperCase,Lt.upperFirst=op.upperFirst,Lt.each=Ys.forEach,Lt.eachRight=Ys.forEachRight,Lt.first=Js.head,yp(Lt,(Qs={},Ku(Lt,(function(t,n){pp.call(Lt.prototype,n)||(Qs[n]=t)})),Qs),{chain:!1}),Lt.VERSION="4.17.21",(Lt.templateSettings=op.templateSettings).imports._=Lt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Lt[t].placeholder=Lt})),Zt(["drop","take"],(function(t,n){At.prototype[t]=function(r){r=void 0===r?1:hp(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:Uu(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=Qn((function(t,n){return"function"==typeof t?new At(this):this.map((function(r){return Uc(r,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(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=Lt[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Lt.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(Lt,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,v=o&&!s,h=a&&!p;if(!o&&f){n=h?n:new At(this);var d=t.apply(n,u);return d.__actions__.push({func:ys,args:[l],thisArg:void 0}),new Rt(d,s)}return v&&h?t.apply(this,u):(d=this.thru(l),v?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);Lt.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=Lt[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=gp(t),o=(0,e.useMemo)((()=>ea(i,n,r)),[i,n,r]);return(t=>{const n=gp(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=gp(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,Ep=()=>!Ap(),Mp=Ep()?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},Ip=t=>!!Ep()&&window.matchMedia(t).matches,Sp=t=>{const[n,r]=(0,e.useState)(Ip(t)),i=(0,e.useCallback)((()=>{r(Ip(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=gp(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}},Bp=(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 Mp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),i}}}]); \ No newline at end of file diff --git a/assets/js/61a35b61.b21e14e5.js b/assets/js/61a35b61.b21e14e5.js deleted file mode 100644 index 41f05a0ce..000000000 --- a/assets/js/61a35b61.b21e14e5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9034],{4320:(t,n,r)=>{r.r(n),r.d(n,{Example:()=>s,assets:()=>f,contentTitle:()=>a,default:()=>h,frontMatter:()=>u,metadata:()=>c,toc:()=>l});var e=r(5735),i=r(289),o=r(5474);const u={},a="useMediaQuery",c={id:"react/hooks/useMediaQuery",title:"useMediaQuery",description:"Resize \uc2dc\uc5d0\ub3c4 \ub3d9\uc791\ud558\uba70, \ubbf8\ub514\uc5b4 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc758 \ubd84\uc11d \uacb0\uacfc\ub97c \uc27d\uac8c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useMediaQuery.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useMediaQuery",permalink:"/modern-kit/docs/react/hooks/useMediaQuery",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useIsomorphicLayoutEffect",permalink:"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect"},next:{title:"useMergeRefs",permalink:"/modern-kit/docs/react/hooks/useMergeRefs"}},f={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}],s=()=>{const t={div:"div",p:"p",...(0,i.a)()},{isMatch:n}=(0,o.ac)("(min-width: 768px)");return(0,e.jsxs)(t.div,{children:[(0,e.jsx)(t.p,{children:"\ube0c\ub77c\uc6b0\uc800 \ub108\ube44\ub97c \uc218\uc815\ud574\ubcf4\uc138\uc694!"}),(0,e.jsx)(t.p,{children:n?"viewport \ub108\ube44\uac00 768px \uc774\uc0c1\uc785\ub2c8\ub2e4.":"viewport \ub108\ube44\uac00 768px \ubbf8\ub9cc\uc785\ub2c8\ub2e4."})]})};function p(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,i.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"usemediaquery",children:"useMediaQuery"}),"\n",(0,e.jsx)(n.p,{children:"Resize \uc2dc\uc5d0\ub3c4 \ub3d9\uc791\ud558\uba70, \ubbf8\ub514\uc5b4 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc758 \ubd84\uc11d \uacb0\uacfc\ub97c \uc27d\uac8c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\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:"const useMediaQuery: (query: string) => {\n isMatch: boolean;\n}\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { useMediaQuery } from '@modern-kit/react';\n\nconst Example = () => {\n const { isMatch } = useMediaQuery('(min-width: 768px)');\n\n return (\n
\n

\n {isMatch\n ? 'viewport \ub108\ube44\uac00 768px \uc774\uc0c1\uc785\ub2c8\ub2e4.'\n : 'viewport \ub108\ube44\uac00 768px \ubbf8\ub9cc\uc785\ub2c8\ub2e4.'}\n

\n
\n );\n};\n\n"})}),"\n","\n",(0,e.jsx)(s,{})]})}function h(t={}){const{wrapper:n}={...(0,i.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(p,{...t})}):p(t)}},289:(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,{AB:()=>f,D9:()=>Rp,ac:()=>Sp,df:()=>Ap,iP:()=>Bp,nA:()=>kp,uM:()=>jp,wY:()=>Ep,yU:()=>Wp});var e=r(5735),i=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const o=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!o(),c=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),(0,i.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=i.Children.toArray(t);let e=0,o=0;if(2!==r.length)return null;for(const i of r){if(![f.CaseA,f.CaseB].includes(i.type))return null;i.type===f.CaseA?e+=1:o+=1}return e>=2||o>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})};var l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=h?h.toStringTag:void 0;function w(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,g),r=t[g];try{t[g]=void 0;var e=!0}catch(t){}var i=y.call(t);return e&&(n?t[g]=r:delete t[g]),i}(t):function(t){return _.call(t)}(t)}function x(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||x(t)&&w(t)==O}var E=NaN;function M(t){return"number"==typeof t?t:A(t)?E:+t}function k(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Qt(t){return function(){return t}}var Gt=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ht=qt(Gt?function(t,n){return Gt(t,"toString",{configurable:!0,enumerable:!1,value:Qt(n),writable:!0})}:J);function Jt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Ht(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Jt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,ln=64;function sn(t,n,r,e,i,o,u,a,c,f){var l=n&cn;n|=l?fn:ln,(n&=~(l?ln:fn))&an||(n&=~(on|un));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 Nt(t)&&$t(p,s),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?hn:n)&&("number"==r||"symbol"!=r&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&c<_&&(b.length=c),this&&this!==p&&this instanceof g&&(A=y||jt(A)),A.apply(O,b)}}var En=1,Mn="__lodash_placeholder__",kn=1,In=2,Sn=4,Rn=8,Wn=128,Bn=256,zn=Math.min,Cn="Expected a function",Ln=1,Pn=2,Dn=8,Tn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,r,e,i,o,u,a){var c=n&Pn;if(!c&&"function"!=typeof t)throw new TypeError(Cn);var f=e?e.length:0;if(f||(n&=~(Un|Nn),e=i=void 0),u=void 0===u?u:Fn(H(u),0),a=void 0===a?a:H(a),f-=i?i.length:0,n&Nn){var l=e,s=i;e=i=void 0}var h=c?void 0:Wt(t),v=[t,n,r,e,i,l,s,o,u,a];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(kn|In|Wn),u=e==Wn&&r==Rn||e==Wn&&r==Bn&&t[7].length<=n[8]||e==(Wn|Bn)&&n[7].length<=n[8]&&r==Rn;if(!o&&!u)return t;e&kn&&(t[2]=n[2],i|=r&kn?0:Sn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],Mn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?Mt(c,a,n[6]):a,t[6]=c?_n(t[5],Mn):n[6]),(a=n[7])&&(t[7]=a),e&Wn&&(t[8]=null==t[8]?n[8]:zn(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],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Dn|Tn)&&(n&=~(Dn|Tn)),n&&n!=Ln)d=n==Dn||n==Tn?function(t,n,r){var e=jt(t);return function i(){for(var o=arguments.length,u=Array(o),a=o,c=pn(i);a--;)u[a]=arguments[a];var f=o<3&&u[0]!==c&&u[o-1]!==c?[]:_n(u,c);return(o-=f.length)-1&&t%1==0&&t<=Xn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!U(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Vn(r[n],t)}function er(t){return Yn((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&&rr(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},Qr.prototype.set=function(t,n){var r=this.__data__,e=Vr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Gr=dt(p,"Map");function Hr(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 Jr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,i):fe(i,a):e||(i[i.length]=a)}return i}function he(t){return null!=t&&t.length?pe(t,1):[]}function ve(t){return Ht(Jn(t,void 0,he),t+"")}var de=ve(ce),ye=Mr(Object.getPrototypeOf,Object),ge="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,je=be.hasOwnProperty,we=me.call(Object);function xe(t){if(!x(t)||w(t)!=ge)return!1;var n=ye(t);if(null===n)return!0;var r=je.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==we}function Oe(t){if(!x(t))return!1;var n=w(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!xe(t)}var Ae=Yn((function(t,n){try{return xt(t,void 0,n)}catch(t){return Oe(t)?t:new Error(t)}}));function Ee(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var Me=Yn((function(t,n,r){var e=1;if(r.length){var i=_n(r,pn(Me));e|=32}return qn(t,e,n,r,i)}));Me.placeholder={};var ke=ve((function(t,n){return Jt(n,(function(n){n=oe(n),Kn(t,n,Me(t[n],t))})),t})),Ie=Yn((function(t,n,r){var e=3;if(r.length){var i=_n(r,pn(Ie));e|=32}return qn(n,e,t,r,i)}));function Se(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:Se(t,n,r)}Ie.placeholder={};var We=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Be(t){return We.test(t)}var ze="\\ud800-\\udfff",Ce="["+ze+"]",Le="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Pe="\\ud83c[\\udffb-\\udfff]",De="[^"+ze+"]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="(?:"+Le+"|"+Pe+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ne+"(?:\\u200d(?:"+[De,Te,Ue].join("|")+")"+Fe+Ne+")*",$e="(?:"+[De+Le+"?",Le,Te,Ue,Ce].join("|")+")",Ke=RegExp(Pe+"(?="+Pe+")|"+$e+qe,"g");function Ve(t){return Be(t)?function(t){return t.match(Ke)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=Be(n=re(n))?Ve(n):void 0,e=r?r[0]:n.charAt(0),i=r?Re(r,1).join(""):n.slice(1);return e[t]()+i}}var Qe=Ze("toUpperCase");function Ge(t){return Qe(re(t).toLowerCase())}function He(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 Di(t){var n=this.__data__=new Qr(t);this.size=n.size}function Ti(t,n){return t&&Gn(n,Rr(n),t)}Di.prototype.clear=function(){this.__data__=new Qr,this.size=0},Di.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Di.prototype.get=function(t){return this.__data__.get(t)},Di.prototype.has=function(t){return this.__data__.has(t)},Di.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Qr){var e=r.__data__;if(!Gr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Jr(e)}return r.set(t,n),this.size=r.size,this};var Ui="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ni=Ui&&"object"==typeof module&&module&&!module.nodeType&&module,Fi=Ni&&Ni.exports===Ui?p.Buffer:void 0,qi=Fi?Fi.allocUnsafe:void 0;function $i(t,n){if(n)return t.slice();var r=t.length,e=qi?qi(r):new t.constructor(r);return t.copy(e),e}function Ki(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))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&ru?new Yo:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-f>=o}function d(){var t=ia();if(v(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ua(r,o-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function g(){var t=ia(),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=V(n)||0,U(r)&&(l=!!r.leading,o=(s="maxWait"in r)?oa(V(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(ia())},g}var ca=Object.prototype,fa=ca.hasOwnProperty,la=Yn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&rr(n[0],n[1],i)&&(e=1);++r=xa&&(o=tu,u=!1,n=new Yo(n));t:for(;++i":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Na):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?i[o?n[u]:u]:void 0}}var Ya=Math.max;function Xa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:H(r);return i<0&&(i=Ya(e+i,0)),Yt(t,$u(n),i)}var tc=Ja(Xa);function nc(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function ic(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=H(r),i=r<0?rc(e+i,0):ec(i,e-1)),Yt(t,$u(n),i,!0)}var oc=Ja(ic);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Ju(t,(function(t,i,o){e[++r]=n(t,i,o)})),e}function cc(t,n){return(I(t)?k:ac)(t,$u(n))}var fc=Wi("floor");function lc(t){return ve((function(n){var r=n.length,e=r,i=Lt.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"==Ct(o))var u=new Lt([],!0)}for(e=u?e:r;++en}function gc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=V(n),r=V(r)),t(n,r)}}var _c=gc(yc),bc=gc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var wc=Math.max,xc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!I(t)&&x(t)&&w(t)==Oc}function Ec(t,n){return k(n,(function(n){return t[n]}))}function Mc(t){return null==t?[]:Ec(t,Rr(t))}var kc=Math.max,Ic=Math.max,Sc=Math.min;function Rc(t,n,r){for(var e=r?wa:nn,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=k(l,_r(n))),c=Sc(l.length,c),a[u]=!r&&(n||i>=120&&l.length>=120)?new Yo(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Gn(t,Xi(t),r),e&&(r=Jo(r,7,kf));for(var i=n.length;i--;)Mf(r,n[i]);return r}));function Sf(t,n,r,e){if(!U(t))return t;for(var i=-1,o=(n=ee(n,t)).length,u=o-1,a=t;null!=a&&++in||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 Cf(t){return ve((function(n){return n=k(n,_r($u)),Yn((function(r){var e=this;return t(n,(function(t){return xt(t,e,r)}))}))}))}var Lf=Cf(k),Pf=Yn,Df=Math.min,Tf=Pf((function(t,n){var r=(n=1==n.length&&I(n[0])?k(n[0],_r($u)):k(pe(n,1),_r($u))).length;return Yn((function(e){for(var i=-1,o=Df(e.length,r);++iFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Qf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Gf="\\ud83c[\\udffb-\\udfff]",Hf="[^"+Vf+"]",Jf="(?:\\ud83c[\\udde6-\\uddff]){2}",Yf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="(?:"+Qf+"|"+Gf+")?",tl="[\\ufe0e\\ufe0f]?",nl=tl+Xf+"(?:\\u200d(?:"+[Hf,Jf,Yf].join("|")+")"+tl+Xf+")*",rl="(?:"+[Hf+Qf+"?",Qf,Jf,Yf,Zf].join("|")+")",el=RegExp(Gf+"(?="+Gf+")|"+rl+nl,"g");function il(t){return Be(t)?function(t){for(var n=el.lastIndex=0;el.test(t);)++n;return n}(t):Kf(t)}var ol=Math.ceil;function ul(t,n){var r=(n=void 0===n?" ":B(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,ol(t/il(n)));return Be(n)?Re(Ve(e),0,t).join(""):e.slice(0,t)}var al=Math.ceil,cl=Math.floor,fl=/^\s+/,ll=p.parseInt,sl=Yn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(sl)))}));sl.placeholder={};var pl=Yn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(pl)))}));pl.placeholder={};var hl=Xu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),vl=ve((function(t,n){return null==t?{}:function(t,n){return Rf(t,n,(function(n,r){return Du(t,r)}))}(t,n)}));function dl(t,n,r,e){for(var i=r-1,o=t.length;++i-1;)a!==t&&yl.call(a,c,1),yl.call(t,c,1);return t}function _l(t,n){return t&&t.length&&n&&n.length?gl(t,n):t}var bl=Yn(_l),ml=Array.prototype.splice;function jl(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;dn(i)?ml.call(t,i,1):Mf(t,i)}}return t}var wl=ve((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return jl(t,k(n,(function(t){return dn(t,r)?+t:t})).sort(Bf)),e})),xl=Math.floor,Ol=Math.random;function Al(t,n){return t+xl(Ol()*(n-t+1))}var El=parseFloat,Ml=Math.min,kl=Math.random,Il=Math.ceil,Sl=Math.max;function Rl(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=G(n),void 0===r?(r=n,n=0):r=G(r),function(t,n,r,e){for(var i=-1,o=Sl(Il((n-t)/(r||1)),0),u=Array(o);o--;)u[e?o:++i]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),zf(t,pe(n,1),[])})),Hl=4294967294,Jl=Math.floor,Yl=Math.min;function Xl(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=A(n),f=void 0===n;i>>1,u=t[o];null!==u&&!A(u)&&(r?u<=n:u/g,ss={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ls,variable:"",imports:{_:{escape:$a}}},ps=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ds=/[()=,{}\[\]\/\s]/,ys=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gs=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,bs=Object.prototype.hasOwnProperty;function ms(t,n){return n(t)}var js=4294967295,ws=Math.min;function xs(t,n){var r=t;return r instanceof St&&(r=r.value()),He(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function Os(){return xs(this.__wrapped__,this.__actions__)}function As(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function Es(t,n){for(var r=-1,e=t.length;++r-1;);return r}var Ms=/^\s+/,ks=/\w*$/,Is=Je({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ss=/&(?:amp|lt|gt|quot|#39);/g,Rs=RegExp(Ss.source),Ws=ro&&1/ou(new ro([,-0]))[1]==1/0?function(t){return new ro(t)}:Rt,Bs=200;function zs(t,n,r){var e=-1,i=nn,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=wa;else if(o>=Bs){var f=n?null:Ws(t);if(f)return ou(f);u=!1,i=tu,c=new Yo}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof St&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:void 0}),new Lt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Vs(t,n,r){var e=t.length;if(e<2)return e?zs(t[0]):[];for(var i=-1,o=Array(e);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Ns(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Li(H(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,o=0,u=Array(Ci(e/n));ii?0:i+r),(e=void 0===e||e>i?i:H(e))<0&&(e+=i),e=r>e?0:Ga(e);r-1:!!i&&tn(t,n,r)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(I(n)||(n=null==n?[]:[n]),I(r=e?void 0:r)||(r=null==r?[]:[r]),zf(t,n,r))},partition:hl,reduce:function(t,n,r){var e=I(t)?He:Cl,i=arguments.length<3;return e(t,$u(n),r,i,Ju)},reduceRight:function(t,n,r){var e=I(t)?Ll:Cl,i=arguments.length<3;return e(t,$u(n),r,i,La)},reject:function(t,n){return(I(t)?Ki:Ha)(t,xf($u(n)))},sample:function(t){return(I(t)?Ul:Nl)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:H(n),(I(t)?ql:$l)(t,n)},shuffle:function(t){return(I(t)?Kl:Vl)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Ac(t)?il(t):t.length;var n=vo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Sr(t).length},some:function(t,n,r){var e=I(t)?Xo:Ql;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Gl},rp=ia,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ee,bind:Me,bindKey:Ie,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Yr,negate:xf,once:function(t){return Ee(2,t)},overArgs:Tf,partial:sl,partialRight:pl,rearg:zl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Yn(t,n=void 0===n?n:H(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rs(H(n),0),Yn((function(r){var e=r[n],i=Re(r,0,n);return e&&fe(i,e),xt(t,this,i)}))},throttle:function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),aa(t,n,{leading:e,maxWait:n,trailing:i})},unary:function(t){return $n(t,1)},wrap:function(t,n){return sl(Ra(n),t)}},ip={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return I(t)?t:[t]},clone:function(t){return Jo(t,4)},cloneDeep:function(t){return Jo(t,5)},cloneDeepWith:function(t,n){return Jo(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Jo(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Rr(n))},eq:Vn,gt:_c,gte:bc,isArguments:sr,isArray:I,isArrayBuffer:Qc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||x(t)&&"[object Boolean]"==w(t)},isBuffer:yr,isDate:Hc,isElement:function(t){return x(t)&&1===t.nodeType&&!xe(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(I(t)||"string"==typeof t||"function"==typeof t.splice||yr(t)||Or(t)||sr(t)))return!t.length;var n=vo(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(or(t))return!Sr(t).length;for(var r in t)if(Jc.call(t,r))return!1;return!0},isEqual:function(t,n){return ku(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?ku(t,n,void 0,r):!!e},isError:Oe,isFinite:function(t){return"number"==typeof t&&Yc(t)},isFunction:rt,isInteger:Xc,isLength:tr,isMap:$o,isMatch:function(t,n){return t===n||Ru(t,n,Bu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Ru(t,n,Bu(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:x,isPlainObject:xe,isRegExp:ef,isSafeInteger:function(t){return Xc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vo,isString:Ac,isSymbol:A,isTypedArray:Or,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return x(t)&&"[object WeakMap]"==vo(t)},isWeakSet:function(t){return x(t)&&"[object WeakSet]"==w(t)},lt:hf,lte:vf,toArray:Af,toFinite:G,toInteger:H,toLength:Ga,toNumber:V,toPlainObject:va,toSafeInteger:function(t){return t?Pi(H(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},op={add:C,ceil:Bi,divide:Ia,floor:fc,max:function(t){return t&&t.length?df(t,J,yc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),yc):void 0},mean:function(t){return gf(t,J)},meanBy:function(t,n){return gf(t,$u(n))},min:function(t){return t&&t.length?df(t,J,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:wf,round:Tl,subtract:is,sum:function(t){return t&&t.length?yf(t,J):0},sumBy:function(t,n){return t&&t.length?yf(t,$u(n)):0}},up={assign:Br,assignIn:Lr,assignInWith:Pr,assignWith:Dr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Ti(r,n)},defaults:la,defaultsDeep:_a,entries:Ta,entriesIn:Ua,extend:Lr,extendWith:Pr,findKey:function(t,n){return nc(t,$u(n),Gu)},findLastKey:function(t,n){return nc(t,$u(n),Ca)},forIn:function(t,n){return null==t?t:Qu(t,Ra(n),Cr)},forInRight:function(t,n){return null==t?t:za(t,Ra(n),Cr)},forOwn:function(t,n){return t&&Gu(t,Ra(n))},forOwnRight:function(t,n){return t&&Ca(t,Ra(n))},functions:function(t){return null==t?[]:hc(t,Rr(t))},functionsIn:function(t){return null==t?[]:hc(t,Cr(t))},get:ae,has:function(t,n){return null!=t&&Pu(t,n,jc)},hasIn:Du,invert:Dc,invertBy:Fc,invoke:Kc,keys:Rr,keysIn:Cr,mapKeys:function(t,n){var r={};return n=$u(n),Gu(t,(function(t,e,i){Kn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Gu(t,(function(t,e,i){Kn(r,e,n(t,e,i))})),r},merge:_f,mergeWith:ga,omit:If,omitBy:function(t,n){return Wf(t,xf($u(n)))},pick:vl,pickBy:Wf,result:function(t,n,r){var e=-1,i=(n=ee(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 kt;){var e=Dt(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 St){var n=t;return this.__actions__.length&&(n=new St(this)),(n=n.reverse()).__actions__.push({func:ms,args:[Dl],thisArg:void 0}),new Lt(n,this.__chain__)}return this.thru(Dl)},tap:function(t,n){return n(t),t},thru:ms,toIterator:function(){return this},toJSON:Os,value:Os,valueOf:Os,wrapperChain:function(){return zi(this)}},cp={camelCase:Ii,capitalize:Ge,deburr:ni,endsWith:function(t,n,r){t=re(t),n=B(n);var e=t.length,i=r=void 0===r?e:Pi(H(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:lf,lowerFirst:sf,pad:function(t,n,r){t=re(t);var e=(n=H(n))?il(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return ul(cl(i),r)+t+ul(al(i),r)},padEnd:function(t,n,r){t=re(t);var e=(n=H(n))?il(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=B(n))&&Be(t)?Re(Ve(t),0,r):t.split(n,r):[]},startCase:es,startsWith:function(t,n,r){return t=re(t),r=null==r?0:Pi(H(r),0,t.length),n=B(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ss.imports._.templateSettings||ss;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Pr({},n,e,as);var i,o,u=Pr({},n.imports,e.imports,as),a=Rr(u),c=Ec(u,a),f=0,l=n.interpolate||gs,s="__p += '",p=RegExp((n.escape||gs).source+"|"+l.source+"|"+(l===ls?ys:gs).source+"|"+(n.evaluate||gs).source+"|$","g"),h=bs.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(_s,fs),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=bs.call(n,"variable")&&n.variable;if(v){if(ds.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(o?s.replace(ps,""):s).replace(hs,"$1").replace(vs,"$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=Ae((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,Oe(d))throw d;return d},templateSettings:ss,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return T(t);if(!t||!(n=B(n)))return t;var e=Ve(t),i=Ve(n);return Re(e,Es(e,i),As(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,P(t)+1);if(!t||!(n=B(n)))return t;var e=Ve(t);return Re(e,0,As(e,Ve(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(Ms,"");if(!t||!(n=B(n)))return t;var e=Ve(t);return Re(e,Es(e,Ve(n))).join("")},truncate:function(t,n){var r=30,e="...";if(U(n)){var i="separator"in n?n.separator:i;r="length"in n?H(n.length):r,e="omission"in n?B(n.omission):e}var o=(t=re(t)).length;if(Be(t)){var u=Ve(t);o=u.length}if(r>=o)return t;var a=r-il(e);if(a<1)return e;var c=u?Re(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+e;if(u&&(a+=c.length-a),ef(i)){if(t.slice(a).search(i)){var f,l=c;for(i.global||(i=RegExp(i.source,re(ks.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(B(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Rs.test(t)?t.replace(Ss,Is):t},upperCase:qs,upperFirst:Qe,words:Ei},fp={attempt:Ae,bindAll:ke,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?k(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Yn((function(r){for(var e=-1;++e9007199254740991)return[];var r=js,e=ws(t,js);n=Ra(n),t-=js;for(var i=ur(e,n);++r=xc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var i=kl();return Ml(t+i*(n-t+El("1e-"+((i+"").length-1))),n)}return Al(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=op.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=op.subtract,Ut.sum=op.sum,Ut.sumBy=op.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=ip.toFinite,Ut.toInteger=H,Ut.toLength=ip.toLength,Ut.toLower=cp.toLower,Ut.toNumber=ip.toNumber,Ut.toSafeInteger=ip.toSafeInteger,Ut.toString=ip.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Ys={},Gu(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Ys[n]=t)})),Ys),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Jt(["drop","take"],(function(t,n){St.prototype[t]=function(r){r=void 0===r?1:gp(H(r),0);var e=this.__filtered__&&!n?new St(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,hp),type:t+(e.__dir__<0?"Right":"")}),e},St.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Jt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;St.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Jt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");St.prototype[t]=function(){return this[r](1).value()[0]}})),Jt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");St.prototype[t]=function(){return this.__filtered__?new St(this):this[r](1)}})),St.prototype.compact=function(){return this.filter(J)},St.prototype.find=function(t){return this.filter(t).head()},St.prototype.findLast=function(t){return this.reverse().find(t)},St.prototype.invokeMap=Yn((function(t,n){return"function"==typeof t?new St(this):this.map((function(r){return $c(r,t,n)}))})),St.prototype.reject=function(t){return this.filter(xf($u(t)))},St.prototype.slice=function(t,n){t=H(t);var r=this;return r.__filtered__&&(t>0||n<0)?new St(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=H(n))<0?r.dropRight(-n):r.take(n-t)),r)},St.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},St.prototype.toArray=function(){return this.take(hp)},Gu(St.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Ut[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof St,c=u[0],f=a||I(n),l=function(t){var n=i.apply(Ut,fe([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 St(this);var d=t.apply(n,u);return d.__actions__.push({func:ms,args:[l],thisArg:void 0}),new Lt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),Jt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(I(i)?i:[],t)}return this[r]((function(r){return n.apply(I(r)?r:[],t)}))}})),Gu(St.prototype,(function(t,n){var r=Ut[n];if(r){var e=r.name+"";dp.call(Bt,e)||(Bt[e]=[]),Bt[e].push({name:n,func:r})}})),Bt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],St.prototype.clone=function(){var t=new St(this.__wrapped__);return t.__actions__=Pt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Pt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Pt(this.__views__),t},St.prototype.reverse=function(){if(this.__filtered__){var t=new St(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},St.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=I(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e{const e=c(t),o=(0,i.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,i.useEffect)((()=>()=>n()),[n])})((()=>o.cancel())),o},jp=({children:t,capture:n,wait:r,options:e})=>{const o=i.Children.only(t),u=mp(((...t)=>{const r=null==o?void 0:o.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,i.cloneElement)(o,{[n]:u})};function wp(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,i.useRef)(null),a=c(t),f=(0,i.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,i.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:o,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,o,f]),u},Op=(...t)=>(0,i.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,i.forwardRef)(((t,n)=>{const{action:r,calledOnce:i,threshold:o,root:u,rootMargin:a}=t,c=wp(t,["action","calledOnce","threshold","root","rootMargin"]),f=xp({action:r,calledOnce:i,threshold:o,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ep=(0,i.forwardRef)(((t,n)=>{var{src:r,style:o,threshold:u,root:a,rootMargin:c}=t,f=wp(t,["src","style","threshold","root","rootMargin"]);const l=xp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,i.useMemo)((()=>Object.assign({display:"inline-block"},o)),[o]);return(0,e.jsx)("img",Object.assign({},f,{ref:Op(n,l),style:s}))})),Mp=a()?i.useLayoutEffect:i.useEffect;(0,i.createContext)({parentPortalElement:null});const kp=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(i.Fragment,{children:t}):null,Ip=t=>!!a()&&window.matchMedia(t).matches,Sp=t=>{const[n,r]=(0,i.useState)(Ip(t)),e=(0,i.useCallback)((()=>{r(Ip(t))}),[t]);return(0,i.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Rp=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),n.current},Wp=t=>{const[n,r]=(0,i.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,i.useRef)(null),o=c(t),u=(0,i.useCallback)((([t])=>{t&&(o(t),r(t.contentRect))}),[o]);return(0,i.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},Bp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,o]=(0,i.useState)({width:null,height:null}),u=(0,i.useCallback)((()=>{o({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,i.useMemo)((()=>n?a:u),[u,n,a]);return Mp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/634f3e62.6d22c4d8.js b/assets/js/634f3e62.6d22c4d8.js deleted file mode 100644 index 15fd2a02b..000000000 --- a/assets/js/634f3e62.6d22c4d8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[713],{5745:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/7475180a.f1089528.js b/assets/js/7475180a.f1089528.js new file mode 100644 index 000000000..e6587c7c4 --- /dev/null +++ b/assets/js/7475180a.f1089528.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9646],{5745:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.65d5ffd0.js b/assets/js/935f2afb.65d5ffd0.js deleted file mode 100644 index 13352f27b..000000000 --- a/assets/js/935f2afb.65d5ffd0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"tutorialSidebar":[{"type":"link","label":"Introduce","href":"/modern-kit/docs/introduce/","docId":"introduce/Introduce","unlisted":false},{"type":"category","label":"react","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"components","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AB","href":"/modern-kit/docs/react/components/AB","docId":"react/components/AB","unlisted":false},{"type":"link","label":"DebounceWrapper","href":"/modern-kit/docs/react/components/DebounceWrapper","docId":"react/components/DebounceWrapper","unlisted":false},{"type":"link","label":"InView","href":"/modern-kit/docs/react/components/InView","docId":"react/components/InView","unlisted":false},{"type":"link","label":"LazyImage","href":"/modern-kit/docs/react/components/LazyImage","docId":"react/components/LazyImage","unlisted":false},{"type":"link","label":"Portal","href":"/modern-kit/docs/react/components/Portal","docId":"react/components/Portal","unlisted":false},{"type":"link","label":"When","href":"/modern-kit/docs/react/components/When","docId":"react/components/When","unlisted":false}]},{"type":"category","label":"hooks","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"useAsyncPreservedCallback","href":"/modern-kit/docs/react/hooks/useAsyncPreservedCallback","docId":"react/hooks/useAsyncPreservedCallback","unlisted":false},{"type":"link","label":"useDebounce","href":"/modern-kit/docs/react/hooks/useDebounce","docId":"react/hooks/useDebounce","unlisted":false},{"type":"link","label":"useForceUpdate","href":"/modern-kit/docs/react/hooks/useForceUpdate","docId":"react/hooks/useForceUpdate","unlisted":false},{"type":"link","label":"useImageStatus","href":"/modern-kit/docs/react/hooks/useImageStatus","docId":"react/hooks/useImageStatus","unlisted":false},{"type":"link","label":"useIntersectionObserver","href":"/modern-kit/docs/react/hooks/useIntersectionObserver","docId":"react/hooks/useIntersectionObserver","unlisted":false},{"type":"link","label":"useInterval","href":"/modern-kit/docs/react/hooks/useInterval","docId":"react/hooks/useInterval","unlisted":false},{"type":"link","label":"useIsMounted","href":"/modern-kit/docs/react/hooks/useIsMounted","docId":"react/hooks/useIsMounted","unlisted":false},{"type":"link","label":"useIsomorphicLayoutEffect","href":"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect","docId":"react/hooks/useIsomorphicLayoutEffect","unlisted":false},{"type":"link","label":"useMediaQuery","href":"/modern-kit/docs/react/hooks/useMediaQuery","docId":"react/hooks/useMediaQuery","unlisted":false},{"type":"link","label":"useMergeRefs","href":"/modern-kit/docs/react/hooks/useMergeRefs","docId":"react/hooks/useMergeRefs","unlisted":false},{"type":"link","label":"useOnClickOutside","href":"/modern-kit/docs/react/hooks/useOnClickOutside","docId":"react/hooks/useOnClickOutside","unlisted":false},{"type":"link","label":"usePreservedCallback","href":"/modern-kit/docs/react/hooks/usePreservedCallback","docId":"react/hooks/usePreservedCallback","unlisted":false},{"type":"link","label":"usePrevious","href":"/modern-kit/docs/react/hooks/usePrevious","docId":"react/hooks/usePrevious","unlisted":false},{"type":"link","label":"useResizeObserver","href":"/modern-kit/docs/react/hooks/useResizeObserver","docId":"react/hooks/useResizeObserver","unlisted":false},{"type":"link","label":"useTimeout","href":"/modern-kit/docs/react/hooks/useTimeout","docId":"react/hooks/useTimeout","unlisted":false},{"type":"link","label":"useToggle","href":"/modern-kit/docs/react/hooks/useToggle","docId":"react/hooks/useToggle","unlisted":false},{"type":"link","label":"useUnMount","href":"/modern-kit/docs/react/hooks/useUnmount","docId":"react/hooks/useUnmount","unlisted":false},{"type":"link","label":"useVisibilityChange","href":"/modern-kit/docs/react/hooks/useVisibilityChange","docId":"react/hooks/useVisibilityChange","unlisted":false},{"type":"link","label":"useWindowScrollTo","href":"/modern-kit/docs/react/hooks/useWindowScrollTo","docId":"react/hooks/useWindowScrollTo","unlisted":false},{"type":"link","label":"useWindowSize","href":"/modern-kit/docs/react/hooks/useWindowSize","docId":"react/hooks/useWindowSize","unlisted":false}]}]},{"type":"category","label":"utils","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"common","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"abRandom","href":"/modern-kit/docs/utils/common/abRandom","docId":"utils/common/abRandom","unlisted":false},{"type":"link","label":"asyncNoop","href":"/modern-kit/docs/utils/common/asyncNoop","docId":"utils/common/asyncNoop","unlisted":false},{"type":"link","label":"deepCopy","href":"/modern-kit/docs/utils/common/deepCopy","docId":"utils/common/deepCopy","unlisted":false},{"type":"link","label":"deepEqual","href":"/modern-kit/docs/utils/common/deepEqual","docId":"utils/common/deepEqual","unlisted":false},{"type":"link","label":"getUniqId","href":"/modern-kit/docs/utils/common/getUniqId","docId":"utils/common/getUniqId","unlisted":false},{"type":"link","label":"getUniqTime","href":"/modern-kit/docs/utils/common/getUniqTime","docId":"utils/common/getUniqTime","unlisted":false},{"type":"link","label":"getViewportSize","href":"/modern-kit/docs/utils/common/getViewportSize","docId":"utils/common/getViewportSize","unlisted":false},{"type":"link","label":"hexToRgba","href":"/modern-kit/docs/utils/common/hexToRgba","docId":"utils/common/hexToRgba","unlisted":false},{"type":"link","label":"noop","href":"/modern-kit/docs/utils/common/noop","docId":"utils/common/noop","unlisted":false},{"type":"link","label":"wrapInArray","href":"/modern-kit/docs/utils/common/wrapInArray","docId":"utils/common/wrapInArray","unlisted":false}]},{"type":"category","label":"device","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"getOS","href":"/modern-kit/docs/utils/device/getOS","docId":"utils/device/getOS","unlisted":false},{"type":"link","label":"isClient","href":"/modern-kit/docs/utils/device/isClient","docId":"utils/device/isClient","unlisted":false},{"type":"link","label":"isMobile","href":"/modern-kit/docs/utils/device/isMobile","docId":"utils/device/isMobile","unlisted":false},{"type":"link","label":"isServer","href":"/modern-kit/docs/utils/device/isSever","docId":"utils/device/isSever","unlisted":false}]},{"type":"category","label":"object","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"deleteEmptyProperties","href":"/modern-kit/docs/utils/object/deleteEmptyProperties","docId":"utils/object/deleteEmptyProperties","unlisted":false},{"type":"link","label":"mergeProperties","href":"/modern-kit/docs/utils/object/mergeProperties","docId":"utils/object/mergeProperties","unlisted":false},{"type":"link","label":"objectEntries","href":"/modern-kit/docs/utils/object/objectEntries","docId":"utils/object/objectEntries","unlisted":false},{"type":"link","label":"objectKeys","href":"/modern-kit/docs/utils/object/objectKeys","docId":"utils/object/objectKeys","unlisted":false},{"type":"link","label":"objectValues","href":"/modern-kit/docs/utils/object/objectValues","docId":"utils/object/objectValues","unlisted":false},{"type":"link","label":"omit","href":"/modern-kit/docs/utils/object/omit","docId":"utils/object/omit","unlisted":false},{"type":"link","label":"pick","href":"/modern-kit/docs/utils/object/pick","docId":"utils/object/pick","unlisted":false}]},{"type":"category","label":"string","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"countSubstringOccurrences","href":"/modern-kit/docs/utils/string/countSubstringOccurrences","docId":"utils/string/countSubstringOccurrences","unlisted":false},{"type":"link","label":"extractNumber","href":"/modern-kit/docs/utils/string/extractNumber","docId":"utils/string/extractNumber","unlisted":false},{"type":"link","label":"formatNumberWithCommas","href":"/modern-kit/docs/utils/string/formatNumberWithCommas","docId":"utils/string/formatNumberWithCommas","unlisted":false},{"type":"link","label":"formatPhoneNumber","href":"/modern-kit/docs/utils/string/formatPhoneNumber","docId":"utils/string/formatPhoneNumber","unlisted":false},{"type":"link","label":"removeSpecialCharacters","href":"/modern-kit/docs/utils/string/removeSpecialCharacters","docId":"utils/string/removeSpecialCharacters","unlisted":false},{"type":"link","label":"repeatCharacters","href":"/modern-kit/docs/utils/string/repeatCharacters","docId":"utils/string/repeatCharacters","unlisted":false}]},{"type":"category","label":"validator","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"isFunction","href":"/modern-kit/docs/utils/validator/isFuntion","docId":"utils/validator/isFuntion","unlisted":false},{"type":"link","label":"isNotNullish","href":"/modern-kit/docs/utils/validator/isNotNullish","docId":"utils/validator/isNotNullish","unlisted":false},{"type":"link","label":"isNullish","href":"/modern-kit/docs/utils/validator/isNullish","docId":"utils/validator/isNullish","unlisted":false},{"type":"link","label":"isNumber","href":"/modern-kit/docs/utils/validator/isNumber","docId":"utils/validator/isNumber","unlisted":false},{"type":"link","label":"isValidEmail","href":"/modern-kit/docs/utils/validator/isValidEmail","docId":"utils/validator/isValidEmail","unlisted":false},{"type":"link","label":"isValidPhoneNumberFormat","href":"/modern-kit/docs/utils/validator/isValidPhoneNumberFormat","docId":"utils/validator/isValidPhoneNumberFormat","unlisted":false}]}]}]},"docs":{"introduce/Introduce":{"id":"introduce/Introduce","title":"\uc18c\uac1c","description":"modern-kit\ub294 \uc720\uc6a9\ud55c \ub9ac\uc561\ud2b8 UI \ucef4\ud3ec\ub10c\ud2b8, \ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5 \ubc0f \ub2e4\uc591\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/components/AB":{"id":"react/components/AB","title":"AB","description":"AB \ud14c\uc2a4\ud2b8\ud560 \ub54c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/components/DebounceWrapper":{"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.","sidebar":"tutorialSidebar"},"react/components/InView":{"id":"react/components/InView","title":"InView","description":"Viewport\uc5d0 \ub178\ucd9c\ub420 \ub54c props\ub85c \ub118\uaca8\uc8fc\ub294 action \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/components/LazyImage":{"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.","sidebar":"tutorialSidebar"},"react/components/Portal":{"id":"react/components/Portal","title":"Portal","description":"Portal \ucef4\ud3ec\ub10c\ud2b8\ub294 React.createPortal\uc744 \uc0ac\uc6a9\ud574 \ubd80\ubaa8 \ucef4\ud3ec\ub10c\ud2b8\uc758 DOM \uacc4\uce35 \uad6c\uc870 \uc678\ubd80\uc758 DOM \ub178\ub4dc\uc5d0\uc11c \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud569\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/components/When":{"id":"react/components/When","title":"When","description":"condition prop\uc774 true\uba74 \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud558\uace0, false\uba74 \ub80c\ub354\ub9c1\ud558\uc9c0 \uc54a\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useAsyncPreservedCallback":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useDebounce":{"id":"react/hooks/useDebounce","title":"useDebounce","description":"debounce\ub97c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useForceUpdate":{"id":"react/hooks/useForceUpdate","title":"useForceUpdate","description":"\ubc18\ud658\ub41c \ud568\uc218\ub97c \uc2e4\ud589\ud558\uba74 \uac15\uc81c\ub85c \ucef4\ud3ec\ub10c\ud2b8\uac00 \ub9ac\ub80c\ub354\ub9c1 \uc2dc\ud0a4\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useImageStatus":{"id":"react/hooks/useImageStatus","title":"useImageStatus","description":"\ubc18\ud658\ub41c ref\ub97c ` \ud0dc\uadf8\uc5d0 \ud560\ub2f9\ud558\uba74 \uc774\ubbf8\uc9c0 \ub85c\ub4dc\ud558\ub294 \uacfc\uc815\uc5d0\uc11c pending, loading, complete, error` \uc0c1\ud0dc\ub97c \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useIntersectionObserver":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useInterval":{"id":"react/hooks/useInterval","title":"useInterval","description":"window.setInterval\uc744 \ud3b8\ub9ac\ud558\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useIsMounted":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useIsomorphicLayoutEffect":{"id":"react/hooks/useIsomorphicLayoutEffect","title":"useIsomorphicLayoutEffect","description":"useIsomorphicLayoutEffect\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1 \ud658\uacbd\uc5d0\uc11c\ub3c4 \ub3d9\uae30\uc801\uc73c\ub85c \uc2e4\ud589\ub418\ub3c4\ub85d \ubcf4\uc7a5\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useMediaQuery":{"id":"react/hooks/useMediaQuery","title":"useMediaQuery","description":"Resize \uc2dc\uc5d0\ub3c4 \ub3d9\uc791\ud558\uba70, \ubbf8\ub514\uc5b4 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc758 \ubd84\uc11d \uacb0\uacfc\ub97c \uc27d\uac8c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useMergeRefs":{"id":"react/hooks/useMergeRefs","title":"useMergeRefs","description":"\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \uc5ec\ub7ec \uac1c\uc758 ref\ub97c \ud558\ub098\ub85c \ubcd1\ud569\ud560 \ub54c \ud65c\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useOnClickOutside":{"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.","sidebar":"tutorialSidebar"},"react/hooks/usePreservedCallback":{"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.","sidebar":"tutorialSidebar"},"react/hooks/usePrevious":{"id":"react/hooks/usePrevious","title":"usePrevious","description":"\uc774\uc804 \ub80c\ub354\ub9c1\uc5d0\uc11c \uc778\uc218\uc758 \uac12\uc744 \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useResizeObserver":{"id":"react/hooks/useResizeObserver","title":"useResizeObserver","description":"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uc758 DOM \ud06c\uae30 \ubcc0\ud654\ub97c \uac10\uc9c0\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useTimeout":{"id":"react/hooks/useTimeout","title":"useTimeout","description":"window.setTimeout\uc744 \ud3b8\ub9ac\ud558\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useToggle":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useUnmount":{"id":"react/hooks/useUnmount","title":"useUnMount","description":"\ucef4\ud3ec\ub10c\ud2b8\uac00 \uc5b8\ub9c8\uc6b4\ud2b8\ub420 \ub54c \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useVisibilityChange":{"id":"react/hooks/useVisibilityChange","title":"useVisibilityChange","description":"visibilitychange \uc774\ubca4\ud2b8\uac00 \ubc1c\uc0dd\ud560 \ub54c \uc989, \ube0c\ub77c\uc6b0\uc800 \ud0ed\uc758 \ucf58\ud150\uce20\uac00 \ubcf4\uc5ec\uc9c0\uba74 onShow \ucf5c\ubc31 \ud568\uc218\ub97c \uc2e4\ud589\ud558\uba70, \ucf58\ud150\uce20\uac00 \uc228\uaca8\uc9c0\uba74 onHide \ucf5c\ubc31 \ud568\uc218\ub97c \uc2e4\ud589\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useWindowScrollTo":{"id":"react/hooks/useWindowScrollTo","title":"useWindowScrollTo","description":"window.scrollTo()\ub97c \ud3b8\ud558\uac8c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useWindowSize":{"id":"react/hooks/useWindowSize","title":"useWindowSize","description":"\ud604\uc7ac \ube0c\ub77c\uc6b0\uc800 \ucc3d\uc758 \ub108\ube44\uc640 \ub192\uc774 \uc815\ubcf4\ub97c \ucd94\uc801\ud558\uace0, \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4. \ub610\ud55c, \ubd88 \ud544\uc694\ud55c \ud638\ucd9c\uc744 \ubc29\uc9c0\ud558\uae30\uc704\ud55c debounce \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/abRandom":{"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.","sidebar":"tutorialSidebar"},"utils/common/asyncNoop":{"id":"utils/common/asyncNoop","title":"asyncNoop","description":"\uc544\ubb34 \ub3d9\uc791 \ud558\uc9c0 \uc54a\uace0, Promise\ub97c \ubc18\ud658\ud558\ub294 async \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/deepCopy":{"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.","sidebar":"tutorialSidebar"},"utils/common/deepEqual":{"id":"utils/common/deepEqual","title":"deepEqual","description":"\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \ub450 \uac12\uc744 \uae4a\uc740 \ube44\uad50\ud574\uc11c \uac19\uc740\uc9c0 \ub2e4\ub978\uc9c0 \uc5ec\ubd80\ub97c \ubc18\ud658\ud574\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/getUniqId":{"id":"utils/common/getUniqId","title":"getUniqId","description":"\uc720\ub2c8\ud06c\ud55c \uc544\uc774\ub514\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/getUniqTime":{"id":"utils/common/getUniqTime","title":"getUniqTime","description":"\uae30\ubcf8\uc801\uc73c\ub85c new Date().getTime() \uac12\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc774\uc9c0\ub9cc, \ub3d9\uc77c \uc2dc\uac04\uc5d0 \uc5ec\ub7ec\ubc88 \ud638\ucd9c \ud560 \uacbd\uc6b0 \uc720\ub2c8\ud06c \uac12\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/getViewportSize":{"id":"utils/common/getViewportSize","title":"getViewportSize","description":"\ud604\uc7ac Viewport Size\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/hexToRgba":{"id":"utils/common/hexToRgba","title":"hexToRgba","description":"16\uc9c4\uc218 \uc0c9\uc0c1 \ucf54\ub4dc(Hex)\ub97c RGB\ud615\uc2dd\uc73c\ub85c \ubcc0\uacbd\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. (HEX -> RGB)","sidebar":"tutorialSidebar"},"utils/common/noop":{"id":"utils/common/noop","title":"noop","description":"\uc544\ubb34 \ub3d9\uc791 \ud558\uc9c0 \uc54a\uace0, undefined\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/wrapInArray":{"id":"utils/common/wrapInArray","title":"wrapInArray","description":"\ubc30\uc5f4\uc774 \uc544\ub2c8\ub77c\uba74 \ub798\ud551\ub41c \ubc30\uc5f4\uc744 \ubc18\ud658\ud558\uace0, \ubc30\uc5f4\uc774\ub77c\uba74 \ub798\ud551\ud558\uc9c0 \uc54a\uace0 \ubc18\ud658\ud574\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/getOS":{"id":"utils/device/getOS","title":"getOS","description":"userAgent\ub97c \uae30\ubc18\uc73c\ub85c OS \uac12\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/isClient":{"id":"utils/device/isClient","title":"isClient","description":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ub7f0\ud0c0\uc784 \ud658\uacbd\uc774 \ud074\ub77c\uc774\uc5b8\ud2b8(\ube0c\ub77c\uc6b0\uc800)\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/isMobile":{"id":"utils/device/isMobile","title":"isMobile","description":"\ubaa8\ubc14\uc77c \ud658\uacbd\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/isSever":{"id":"utils/device/isSever","title":"isServer","description":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ub7f0\ud0c0\uc784 \ud658\uacbd\uc774 \uc11c\ubc84(Node.js)\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/deleteEmptyProperties":{"id":"utils/object/deleteEmptyProperties","title":"deleteEmptyProperties","description":"\uac1d\uccb4\uc758 \uc911\ucca9 \uac1d\uccb4/\ubc30\uc5f4\uc744 \ud3ec\ud568\ud55c \ubaa8\ub4e0 \ud504\ub85c\ud37c\ud2f0\ub97c \uc21c\ud68c\ud558\uba74\uc11c \uac12\uc774 \uc544\ub798 \ub098\uc5f4\ud55c \ube48 \uac12\ub4e4 \uc911 \ud558\ub098\ub77c\uba74, \ud574\ub2f9 \ud504\ub85c\ud37c\ud2f0\ub4e4\uc744 \uc81c\uac70\ud55c \uc0c8\ub85c\uc6b4 \uac1d\uccb4\ub97c \ubc18\ud658\ud574\uc8fc\ub294 \uc720\ud2f8 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/mergeProperties":{"id":"utils/object/mergeProperties","title":"mergeProperties","description":"\uae30\uc900\uc774 \ub418\ub294 target \uac1d\uccb4\uc640 source \uac1d\uccb4\uc758 \ud504\ub85c\ud37c\ud2f0\ub97c \ubcd1\ud569\ud558\ub294 \uc720\ud2f8 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/objectEntries":{"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.","sidebar":"tutorialSidebar"},"utils/object/objectKeys":{"id":"utils/object/objectKeys","title":"objectKeys","description":"Object.keys()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\uc9c0\ub9cc key\ud0c0\uc785\uc744 \uc9c0\ucf1c\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/objectValues":{"id":"utils/object/objectValues","title":"objectValues","description":"Object.values()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/omit":{"id":"utils/object/omit","title":"omit","description":"\uc778\uc790\ub85c \ub123\uc740 keys\ub97c \uc0dd\ub7b5\ud55c \uac1d\uccb4\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \ubc18\ud658\ub41c \uac1d\uccb4\ub294 \uae4a\uc740 \ubcf5\uc0ac\ub41c \uc0c8\ub85c\uc6b4 \uac1d\uccb4\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/pick":{"id":"utils/object/pick","title":"pick","description":"\uc778\uc790\ub85c \ub123\uc740 keys\ub85c \uad6c\uc131\ub41c \uac1d\uccb4\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \ubc18\ud658\ub41c \uac1d\uccb4\ub294 \uae4a\uc740 \ubcf5\uc0ac\ub41c \uc0c8\ub85c\uc6b4 \uac1d\uccb4\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/countSubstringOccurrences":{"id":"utils/string/countSubstringOccurrences","title":"countSubstringOccurrences","description":"\ubb38\uc790\uc5f4\uc5d0\uc11c \ud2b9\uc815 \ud558\uc704 \ubb38\uc790\uc5f4\uc774 \uc5bc\ub9c8\ub098 \ubc18\ubcf5 \ub4f1\uc7a5\ud588\ub294\uc9c0 \ud69f\uc218\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/extractNumber":{"id":"utils/string/extractNumber","title":"extractNumber","description":"\ubb38\uc790\uc5f4\uc744 \uc785\ub825\ud558\uba74 \uc22b\uc790\ub97c \uc81c\uc678\ud55c \ubaa8\ub4e0 \ubb38\uc790\ub97c \uc81c\uac70\ud55c \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/formatNumberWithCommas":{"id":"utils/string/formatNumberWithCommas","title":"formatNumberWithCommas","description":"\ubb38\uc790\uc5f4 \ub610\ub294 \uc22b\uc790\ub97c \uc785\ub825\ud558\uba74 \uc22b\uc790\ub97c \ucc9c \ub2e8\uc704\ub85c (,)comma\ub97c \ucd94\uac00\ud55c \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/formatPhoneNumber":{"id":"utils/string/formatPhoneNumber","title":"formatPhoneNumber","description":"\ubb38\uc790\uc5f4\uc744 \uc785\ub825\ud558\uba74 \uc804\ud654 \ubc88\ud638 \ud3ec\ub9f7\uc73c\ub85c -(hyphen)\uc744 \ub123\uc5b4\uc11c \ubc18\ud658\ud574\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/removeSpecialCharacters":{"id":"utils/string/removeSpecialCharacters","title":"removeSpecialCharacters","description":"\ubb38\uc790\uc5f4\uc744 \uc785\ub825\ud558\uba74 \ud2b9\uc218 \ubb38\uc790\ub97c \uc81c\uac70\ud55c \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/repeatCharacters":{"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.","sidebar":"tutorialSidebar"},"utils/validator/isFuntion":{"id":"utils/validator/isFuntion","title":"isFunction","description":"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 \ud568\uc218\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790\uc758 \ud0c0\uc785\uc744 Function\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isNotNullish":{"id":"utils/validator/isNotNullish","title":"isNotNullish","description":"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 null \ub610\ub294 undefined\uac00 \uc544\ub2cc\uc9c0 \uac80\uc0ac\ud558\uace0, \uc544\ub2c8\ub77c\uba74 \uc8fc\uc5b4\uc9c4 \uc778\uc790 \ud0c0\uc785 \uadf8\ub300\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isNullish":{"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.","sidebar":"tutorialSidebar"},"utils/validator/isNumber":{"id":"utils/validator/isNumber","title":"isNumber","description":"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 \uc22b\uc790\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790\uc758 \ud0c0\uc785\uc744 number\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isValidEmail":{"id":"utils/validator/isValidEmail","title":"isValidEmail","description":"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc774 \uc774\uba54\uc77c \ud615\uc2dd\uc744 \uc900\uc218\ud558\ub294\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isValidPhoneNumberFormat":{"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.","sidebar":"tutorialSidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.9eed9948.js b/assets/js/935f2afb.9eed9948.js new file mode 100644 index 000000000..f5b783c6d --- /dev/null +++ b/assets/js/935f2afb.9eed9948.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"tutorialSidebar":[{"type":"link","label":"Introduce","href":"/modern-kit/docs/introduce/","docId":"introduce/Introduce","unlisted":false},{"type":"category","label":"react","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"components","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"DebounceWrapper","href":"/modern-kit/docs/react/components/DebounceWrapper","docId":"react/components/DebounceWrapper","unlisted":false},{"type":"link","label":"InView","href":"/modern-kit/docs/react/components/InView","docId":"react/components/InView","unlisted":false},{"type":"link","label":"LazyImage","href":"/modern-kit/docs/react/components/LazyImage","docId":"react/components/LazyImage","unlisted":false},{"type":"link","label":"Portal","href":"/modern-kit/docs/react/components/Portal","docId":"react/components/Portal","unlisted":false},{"type":"link","label":"When","href":"/modern-kit/docs/react/components/When","docId":"react/components/When","unlisted":false}]},{"type":"category","label":"hooks","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"useAsyncPreservedCallback","href":"/modern-kit/docs/react/hooks/useAsyncPreservedCallback","docId":"react/hooks/useAsyncPreservedCallback","unlisted":false},{"type":"link","label":"useDebounce","href":"/modern-kit/docs/react/hooks/useDebounce","docId":"react/hooks/useDebounce","unlisted":false},{"type":"link","label":"useForceUpdate","href":"/modern-kit/docs/react/hooks/useForceUpdate","docId":"react/hooks/useForceUpdate","unlisted":false},{"type":"link","label":"useImageStatus","href":"/modern-kit/docs/react/hooks/useImageStatus","docId":"react/hooks/useImageStatus","unlisted":false},{"type":"link","label":"useIntersectionObserver","href":"/modern-kit/docs/react/hooks/useIntersectionObserver","docId":"react/hooks/useIntersectionObserver","unlisted":false},{"type":"link","label":"useInterval","href":"/modern-kit/docs/react/hooks/useInterval","docId":"react/hooks/useInterval","unlisted":false},{"type":"link","label":"useIsMounted","href":"/modern-kit/docs/react/hooks/useIsMounted","docId":"react/hooks/useIsMounted","unlisted":false},{"type":"link","label":"useIsomorphicLayoutEffect","href":"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect","docId":"react/hooks/useIsomorphicLayoutEffect","unlisted":false},{"type":"link","label":"useMediaQuery","href":"/modern-kit/docs/react/hooks/useMediaQuery","docId":"react/hooks/useMediaQuery","unlisted":false},{"type":"link","label":"useMergeRefs","href":"/modern-kit/docs/react/hooks/useMergeRefs","docId":"react/hooks/useMergeRefs","unlisted":false},{"type":"link","label":"useOnClickOutside","href":"/modern-kit/docs/react/hooks/useOnClickOutside","docId":"react/hooks/useOnClickOutside","unlisted":false},{"type":"link","label":"usePreservedCallback","href":"/modern-kit/docs/react/hooks/usePreservedCallback","docId":"react/hooks/usePreservedCallback","unlisted":false},{"type":"link","label":"usePrevious","href":"/modern-kit/docs/react/hooks/usePrevious","docId":"react/hooks/usePrevious","unlisted":false},{"type":"link","label":"useResizeObserver","href":"/modern-kit/docs/react/hooks/useResizeObserver","docId":"react/hooks/useResizeObserver","unlisted":false},{"type":"link","label":"useTimeout","href":"/modern-kit/docs/react/hooks/useTimeout","docId":"react/hooks/useTimeout","unlisted":false},{"type":"link","label":"useToggle","href":"/modern-kit/docs/react/hooks/useToggle","docId":"react/hooks/useToggle","unlisted":false},{"type":"link","label":"useUnMount","href":"/modern-kit/docs/react/hooks/useUnmount","docId":"react/hooks/useUnmount","unlisted":false},{"type":"link","label":"useVisibilityChange","href":"/modern-kit/docs/react/hooks/useVisibilityChange","docId":"react/hooks/useVisibilityChange","unlisted":false},{"type":"link","label":"useWindowScrollTo","href":"/modern-kit/docs/react/hooks/useWindowScrollTo","docId":"react/hooks/useWindowScrollTo","unlisted":false},{"type":"link","label":"useWindowSize","href":"/modern-kit/docs/react/hooks/useWindowSize","docId":"react/hooks/useWindowSize","unlisted":false}]}]},{"type":"category","label":"utils","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"common","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"abRandom","href":"/modern-kit/docs/utils/common/abRandom","docId":"utils/common/abRandom","unlisted":false},{"type":"link","label":"asyncNoop","href":"/modern-kit/docs/utils/common/asyncNoop","docId":"utils/common/asyncNoop","unlisted":false},{"type":"link","label":"deepCopy","href":"/modern-kit/docs/utils/common/deepCopy","docId":"utils/common/deepCopy","unlisted":false},{"type":"link","label":"deepEqual","href":"/modern-kit/docs/utils/common/deepEqual","docId":"utils/common/deepEqual","unlisted":false},{"type":"link","label":"getUniqId","href":"/modern-kit/docs/utils/common/getUniqId","docId":"utils/common/getUniqId","unlisted":false},{"type":"link","label":"getUniqTime","href":"/modern-kit/docs/utils/common/getUniqTime","docId":"utils/common/getUniqTime","unlisted":false},{"type":"link","label":"getViewportSize","href":"/modern-kit/docs/utils/common/getViewportSize","docId":"utils/common/getViewportSize","unlisted":false},{"type":"link","label":"hexToRgba","href":"/modern-kit/docs/utils/common/hexToRgba","docId":"utils/common/hexToRgba","unlisted":false},{"type":"link","label":"noop","href":"/modern-kit/docs/utils/common/noop","docId":"utils/common/noop","unlisted":false},{"type":"link","label":"wrapInArray","href":"/modern-kit/docs/utils/common/wrapInArray","docId":"utils/common/wrapInArray","unlisted":false}]},{"type":"category","label":"device","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"getOS","href":"/modern-kit/docs/utils/device/getOS","docId":"utils/device/getOS","unlisted":false},{"type":"link","label":"isClient","href":"/modern-kit/docs/utils/device/isClient","docId":"utils/device/isClient","unlisted":false},{"type":"link","label":"isMobile","href":"/modern-kit/docs/utils/device/isMobile","docId":"utils/device/isMobile","unlisted":false},{"type":"link","label":"isServer","href":"/modern-kit/docs/utils/device/isSever","docId":"utils/device/isSever","unlisted":false}]},{"type":"category","label":"object","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"deleteEmptyProperties","href":"/modern-kit/docs/utils/object/deleteEmptyProperties","docId":"utils/object/deleteEmptyProperties","unlisted":false},{"type":"link","label":"mergeProperties","href":"/modern-kit/docs/utils/object/mergeProperties","docId":"utils/object/mergeProperties","unlisted":false},{"type":"link","label":"objectEntries","href":"/modern-kit/docs/utils/object/objectEntries","docId":"utils/object/objectEntries","unlisted":false},{"type":"link","label":"objectKeys","href":"/modern-kit/docs/utils/object/objectKeys","docId":"utils/object/objectKeys","unlisted":false},{"type":"link","label":"objectValues","href":"/modern-kit/docs/utils/object/objectValues","docId":"utils/object/objectValues","unlisted":false},{"type":"link","label":"omit","href":"/modern-kit/docs/utils/object/omit","docId":"utils/object/omit","unlisted":false},{"type":"link","label":"pick","href":"/modern-kit/docs/utils/object/pick","docId":"utils/object/pick","unlisted":false}]},{"type":"category","label":"string","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"countSubstringOccurrences","href":"/modern-kit/docs/utils/string/countSubstringOccurrences","docId":"utils/string/countSubstringOccurrences","unlisted":false},{"type":"link","label":"extractNumber","href":"/modern-kit/docs/utils/string/extractNumber","docId":"utils/string/extractNumber","unlisted":false},{"type":"link","label":"formatNumberWithCommas","href":"/modern-kit/docs/utils/string/formatNumberWithCommas","docId":"utils/string/formatNumberWithCommas","unlisted":false},{"type":"link","label":"formatPhoneNumber","href":"/modern-kit/docs/utils/string/formatPhoneNumber","docId":"utils/string/formatPhoneNumber","unlisted":false},{"type":"link","label":"removeSpecialCharacters","href":"/modern-kit/docs/utils/string/removeSpecialCharacters","docId":"utils/string/removeSpecialCharacters","unlisted":false},{"type":"link","label":"repeatCharacters","href":"/modern-kit/docs/utils/string/repeatCharacters","docId":"utils/string/repeatCharacters","unlisted":false}]},{"type":"category","label":"validator","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"isFunction","href":"/modern-kit/docs/utils/validator/isFuntion","docId":"utils/validator/isFuntion","unlisted":false},{"type":"link","label":"isNotNullish","href":"/modern-kit/docs/utils/validator/isNotNullish","docId":"utils/validator/isNotNullish","unlisted":false},{"type":"link","label":"isNullish","href":"/modern-kit/docs/utils/validator/isNullish","docId":"utils/validator/isNullish","unlisted":false},{"type":"link","label":"isNumber","href":"/modern-kit/docs/utils/validator/isNumber","docId":"utils/validator/isNumber","unlisted":false},{"type":"link","label":"isValidEmail","href":"/modern-kit/docs/utils/validator/isValidEmail","docId":"utils/validator/isValidEmail","unlisted":false},{"type":"link","label":"isValidPhoneNumberFormat","href":"/modern-kit/docs/utils/validator/isValidPhoneNumberFormat","docId":"utils/validator/isValidPhoneNumberFormat","unlisted":false}]}]}]},"docs":{"introduce/Introduce":{"id":"introduce/Introduce","title":"\uc18c\uac1c","description":"modern-kit\ub294 \uc720\uc6a9\ud55c \ub9ac\uc561\ud2b8 UI \ucef4\ud3ec\ub10c\ud2b8, \ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5 \ubc0f \ub2e4\uc591\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/components/DebounceWrapper":{"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.","sidebar":"tutorialSidebar"},"react/components/InView":{"id":"react/components/InView","title":"InView","description":"Viewport\uc5d0 \ub178\ucd9c\ub420 \ub54c props\ub85c \ub118\uaca8\uc8fc\ub294 action \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/components/LazyImage":{"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.","sidebar":"tutorialSidebar"},"react/components/Portal":{"id":"react/components/Portal","title":"Portal","description":"Portal \ucef4\ud3ec\ub10c\ud2b8\ub294 React.createPortal\uc744 \uc0ac\uc6a9\ud574 \ubd80\ubaa8 \ucef4\ud3ec\ub10c\ud2b8\uc758 DOM \uacc4\uce35 \uad6c\uc870 \uc678\ubd80\uc758 DOM \ub178\ub4dc\uc5d0\uc11c \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud569\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/components/When":{"id":"react/components/When","title":"When","description":"condition prop\uc774 true\uba74 \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud558\uace0, false\uba74 \ub80c\ub354\ub9c1\ud558\uc9c0 \uc54a\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useAsyncPreservedCallback":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useDebounce":{"id":"react/hooks/useDebounce","title":"useDebounce","description":"debounce\ub97c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useForceUpdate":{"id":"react/hooks/useForceUpdate","title":"useForceUpdate","description":"\ubc18\ud658\ub41c \ud568\uc218\ub97c \uc2e4\ud589\ud558\uba74 \uac15\uc81c\ub85c \ucef4\ud3ec\ub10c\ud2b8\uac00 \ub9ac\ub80c\ub354\ub9c1 \uc2dc\ud0a4\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useImageStatus":{"id":"react/hooks/useImageStatus","title":"useImageStatus","description":"\ubc18\ud658\ub41c ref\ub97c ` \ud0dc\uadf8\uc5d0 \ud560\ub2f9\ud558\uba74 \uc774\ubbf8\uc9c0 \ub85c\ub4dc\ud558\ub294 \uacfc\uc815\uc5d0\uc11c pending, loading, complete, error` \uc0c1\ud0dc\ub97c \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useIntersectionObserver":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useInterval":{"id":"react/hooks/useInterval","title":"useInterval","description":"window.setInterval\uc744 \ud3b8\ub9ac\ud558\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useIsMounted":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useIsomorphicLayoutEffect":{"id":"react/hooks/useIsomorphicLayoutEffect","title":"useIsomorphicLayoutEffect","description":"useIsomorphicLayoutEffect\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1 \ud658\uacbd\uc5d0\uc11c\ub3c4 \ub3d9\uae30\uc801\uc73c\ub85c \uc2e4\ud589\ub418\ub3c4\ub85d \ubcf4\uc7a5\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useMediaQuery":{"id":"react/hooks/useMediaQuery","title":"useMediaQuery","description":"Resize \uc2dc\uc5d0\ub3c4 \ub3d9\uc791\ud558\uba70, \ubbf8\ub514\uc5b4 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc758 \ubd84\uc11d \uacb0\uacfc\ub97c \uc27d\uac8c \ud655\uc778 \ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useMergeRefs":{"id":"react/hooks/useMergeRefs","title":"useMergeRefs","description":"\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \uc5ec\ub7ec \uac1c\uc758 ref\ub97c \ud558\ub098\ub85c \ubcd1\ud569\ud560 \ub54c \ud65c\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useOnClickOutside":{"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.","sidebar":"tutorialSidebar"},"react/hooks/usePreservedCallback":{"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.","sidebar":"tutorialSidebar"},"react/hooks/usePrevious":{"id":"react/hooks/usePrevious","title":"usePrevious","description":"\uc774\uc804 \ub80c\ub354\ub9c1\uc5d0\uc11c \uc778\uc218\uc758 \uac12\uc744 \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useResizeObserver":{"id":"react/hooks/useResizeObserver","title":"useResizeObserver","description":"ref\ub97c \ud560\ub2f9\ud55c \ud0c0\uac9f \uc5d8\ub9ac\uba3c\ud2b8\uc758 DOM \ud06c\uae30 \ubcc0\ud654\ub97c \uac10\uc9c0\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useTimeout":{"id":"react/hooks/useTimeout","title":"useTimeout","description":"window.setTimeout\uc744 \ud3b8\ub9ac\ud558\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucee4\uc2a4\ud140 \ud6c5 \uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useToggle":{"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.","sidebar":"tutorialSidebar"},"react/hooks/useUnmount":{"id":"react/hooks/useUnmount","title":"useUnMount","description":"\ucef4\ud3ec\ub10c\ud2b8\uac00 \uc5b8\ub9c8\uc6b4\ud2b8\ub420 \ub54c \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useVisibilityChange":{"id":"react/hooks/useVisibilityChange","title":"useVisibilityChange","description":"visibilitychange \uc774\ubca4\ud2b8\uac00 \ubc1c\uc0dd\ud560 \ub54c \uc989, \ube0c\ub77c\uc6b0\uc800 \ud0ed\uc758 \ucf58\ud150\uce20\uac00 \ubcf4\uc5ec\uc9c0\uba74 onShow \ucf5c\ubc31 \ud568\uc218\ub97c \uc2e4\ud589\ud558\uba70, \ucf58\ud150\uce20\uac00 \uc228\uaca8\uc9c0\uba74 onHide \ucf5c\ubc31 \ud568\uc218\ub97c \uc2e4\ud589\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useWindowScrollTo":{"id":"react/hooks/useWindowScrollTo","title":"useWindowScrollTo","description":"window.scrollTo()\ub97c \ud3b8\ud558\uac8c \ud638\ucd9c\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"react/hooks/useWindowSize":{"id":"react/hooks/useWindowSize","title":"useWindowSize","description":"\ud604\uc7ac \ube0c\ub77c\uc6b0\uc800 \ucc3d\uc758 \ub108\ube44\uc640 \ub192\uc774 \uc815\ubcf4\ub97c \ucd94\uc801\ud558\uace0, \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4. \ub610\ud55c, \ubd88 \ud544\uc694\ud55c \ud638\ucd9c\uc744 \ubc29\uc9c0\ud558\uae30\uc704\ud55c debounce \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/abRandom":{"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.","sidebar":"tutorialSidebar"},"utils/common/asyncNoop":{"id":"utils/common/asyncNoop","title":"asyncNoop","description":"\uc544\ubb34 \ub3d9\uc791 \ud558\uc9c0 \uc54a\uace0, Promise\ub97c \ubc18\ud658\ud558\ub294 async \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/deepCopy":{"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.","sidebar":"tutorialSidebar"},"utils/common/deepEqual":{"id":"utils/common/deepEqual","title":"deepEqual","description":"\uc778\uc790\ub85c \uc8fc\uc5b4\uc9c4 \ub450 \uac12\uc744 \uae4a\uc740 \ube44\uad50\ud574\uc11c \uac19\uc740\uc9c0 \ub2e4\ub978\uc9c0 \uc5ec\ubd80\ub97c \ubc18\ud658\ud574\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/getUniqId":{"id":"utils/common/getUniqId","title":"getUniqId","description":"\uc720\ub2c8\ud06c\ud55c \uc544\uc774\ub514\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/getUniqTime":{"id":"utils/common/getUniqTime","title":"getUniqTime","description":"\uae30\ubcf8\uc801\uc73c\ub85c new Date().getTime() \uac12\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc774\uc9c0\ub9cc, \ub3d9\uc77c \uc2dc\uac04\uc5d0 \uc5ec\ub7ec\ubc88 \ud638\ucd9c \ud560 \uacbd\uc6b0 \uc720\ub2c8\ud06c \uac12\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/getViewportSize":{"id":"utils/common/getViewportSize","title":"getViewportSize","description":"\ud604\uc7ac Viewport Size\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/hexToRgba":{"id":"utils/common/hexToRgba","title":"hexToRgba","description":"16\uc9c4\uc218 \uc0c9\uc0c1 \ucf54\ub4dc(Hex)\ub97c RGB\ud615\uc2dd\uc73c\ub85c \ubcc0\uacbd\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. (HEX -> RGB)","sidebar":"tutorialSidebar"},"utils/common/noop":{"id":"utils/common/noop","title":"noop","description":"\uc544\ubb34 \ub3d9\uc791 \ud558\uc9c0 \uc54a\uace0, undefined\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/common/wrapInArray":{"id":"utils/common/wrapInArray","title":"wrapInArray","description":"\ubc30\uc5f4\uc774 \uc544\ub2c8\ub77c\uba74 \ub798\ud551\ub41c \ubc30\uc5f4\uc744 \ubc18\ud658\ud558\uace0, \ubc30\uc5f4\uc774\ub77c\uba74 \ub798\ud551\ud558\uc9c0 \uc54a\uace0 \ubc18\ud658\ud574\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/getOS":{"id":"utils/device/getOS","title":"getOS","description":"userAgent\ub97c \uae30\ubc18\uc73c\ub85c OS \uac12\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/isClient":{"id":"utils/device/isClient","title":"isClient","description":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ub7f0\ud0c0\uc784 \ud658\uacbd\uc774 \ud074\ub77c\uc774\uc5b8\ud2b8(\ube0c\ub77c\uc6b0\uc800)\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/isMobile":{"id":"utils/device/isMobile","title":"isMobile","description":"\ubaa8\ubc14\uc77c \ud658\uacbd\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/device/isSever":{"id":"utils/device/isSever","title":"isServer","description":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ub7f0\ud0c0\uc784 \ud658\uacbd\uc774 \uc11c\ubc84(Node.js)\uc778\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/deleteEmptyProperties":{"id":"utils/object/deleteEmptyProperties","title":"deleteEmptyProperties","description":"\uac1d\uccb4\uc758 \uc911\ucca9 \uac1d\uccb4/\ubc30\uc5f4\uc744 \ud3ec\ud568\ud55c \ubaa8\ub4e0 \ud504\ub85c\ud37c\ud2f0\ub97c \uc21c\ud68c\ud558\uba74\uc11c \uac12\uc774 \uc544\ub798 \ub098\uc5f4\ud55c \ube48 \uac12\ub4e4 \uc911 \ud558\ub098\ub77c\uba74, \ud574\ub2f9 \ud504\ub85c\ud37c\ud2f0\ub4e4\uc744 \uc81c\uac70\ud55c \uc0c8\ub85c\uc6b4 \uac1d\uccb4\ub97c \ubc18\ud658\ud574\uc8fc\ub294 \uc720\ud2f8 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/mergeProperties":{"id":"utils/object/mergeProperties","title":"mergeProperties","description":"\uae30\uc900\uc774 \ub418\ub294 target \uac1d\uccb4\uc640 source \uac1d\uccb4\uc758 \ud504\ub85c\ud37c\ud2f0\ub97c \ubcd1\ud569\ud558\ub294 \uc720\ud2f8 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/objectEntries":{"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.","sidebar":"tutorialSidebar"},"utils/object/objectKeys":{"id":"utils/object/objectKeys","title":"objectKeys","description":"Object.keys()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\uc9c0\ub9cc key\ud0c0\uc785\uc744 \uc9c0\ucf1c\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/objectValues":{"id":"utils/object/objectValues","title":"objectValues","description":"Object.values()\uc640 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/omit":{"id":"utils/object/omit","title":"omit","description":"\uc778\uc790\ub85c \ub123\uc740 keys\ub97c \uc0dd\ub7b5\ud55c \uac1d\uccb4\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \ubc18\ud658\ub41c \uac1d\uccb4\ub294 \uae4a\uc740 \ubcf5\uc0ac\ub41c \uc0c8\ub85c\uc6b4 \uac1d\uccb4\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/object/pick":{"id":"utils/object/pick","title":"pick","description":"\uc778\uc790\ub85c \ub123\uc740 keys\ub85c \uad6c\uc131\ub41c \uac1d\uccb4\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \ubc18\ud658\ub41c \uac1d\uccb4\ub294 \uae4a\uc740 \ubcf5\uc0ac\ub41c \uc0c8\ub85c\uc6b4 \uac1d\uccb4\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/countSubstringOccurrences":{"id":"utils/string/countSubstringOccurrences","title":"countSubstringOccurrences","description":"\ubb38\uc790\uc5f4\uc5d0\uc11c \ud2b9\uc815 \ud558\uc704 \ubb38\uc790\uc5f4\uc774 \uc5bc\ub9c8\ub098 \ubc18\ubcf5 \ub4f1\uc7a5\ud588\ub294\uc9c0 \ud69f\uc218\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/extractNumber":{"id":"utils/string/extractNumber","title":"extractNumber","description":"\ubb38\uc790\uc5f4\uc744 \uc785\ub825\ud558\uba74 \uc22b\uc790\ub97c \uc81c\uc678\ud55c \ubaa8\ub4e0 \ubb38\uc790\ub97c \uc81c\uac70\ud55c \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/formatNumberWithCommas":{"id":"utils/string/formatNumberWithCommas","title":"formatNumberWithCommas","description":"\ubb38\uc790\uc5f4 \ub610\ub294 \uc22b\uc790\ub97c \uc785\ub825\ud558\uba74 \uc22b\uc790\ub97c \ucc9c \ub2e8\uc704\ub85c (,)comma\ub97c \ucd94\uac00\ud55c \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/formatPhoneNumber":{"id":"utils/string/formatPhoneNumber","title":"formatPhoneNumber","description":"\ubb38\uc790\uc5f4\uc744 \uc785\ub825\ud558\uba74 \uc804\ud654 \ubc88\ud638 \ud3ec\ub9f7\uc73c\ub85c -(hyphen)\uc744 \ub123\uc5b4\uc11c \ubc18\ud658\ud574\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/removeSpecialCharacters":{"id":"utils/string/removeSpecialCharacters","title":"removeSpecialCharacters","description":"\ubb38\uc790\uc5f4\uc744 \uc785\ub825\ud558\uba74 \ud2b9\uc218 \ubb38\uc790\ub97c \uc81c\uac70\ud55c \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/string/repeatCharacters":{"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.","sidebar":"tutorialSidebar"},"utils/validator/isFuntion":{"id":"utils/validator/isFuntion","title":"isFunction","description":"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 \ud568\uc218\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790\uc758 \ud0c0\uc785\uc744 Function\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isNotNullish":{"id":"utils/validator/isNotNullish","title":"isNotNullish","description":"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 null \ub610\ub294 undefined\uac00 \uc544\ub2cc\uc9c0 \uac80\uc0ac\ud558\uace0, \uc544\ub2c8\ub77c\uba74 \uc8fc\uc5b4\uc9c4 \uc778\uc790 \ud0c0\uc785 \uadf8\ub300\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isNullish":{"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.","sidebar":"tutorialSidebar"},"utils/validator/isNumber":{"id":"utils/validator/isNumber","title":"isNumber","description":"\uc8fc\uc5b4\uc9c4 \uc778\uc790\uac00 \uc22b\uc790\uc778\uc9c0 \uac80\uc0ac\ud558\uace0, \ub9de\ub2e4\uba74 \uc778\uc790\uc758 \ud0c0\uc785\uc744 number\ub85c \uc881\ud600\uc8fc\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isValidEmail":{"id":"utils/validator/isValidEmail","title":"isValidEmail","description":"\uc8fc\uc5b4\uc9c4 \ubb38\uc790\uc5f4\uc774 \uc774\uba54\uc77c \ud615\uc2dd\uc744 \uc900\uc218\ud558\ub294\uc9c0 \ud655\uc778\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.","sidebar":"tutorialSidebar"},"utils/validator/isValidPhoneNumberFormat":{"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.","sidebar":"tutorialSidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/993de3e1.1ece6045.js b/assets/js/993de3e1.1ece6045.js new file mode 100644 index 000000000..a21d2ee41 --- /dev/null +++ b/assets/js/993de3e1.1ece6045.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3385],{126:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>s,metadata:()=>d,toc:()=>l});var i=t(5735),r=t(289);const s={},c="\uc18c\uac1c",d={id:"introduce/Introduce",title:"\uc18c\uac1c",description:"modern-kit\ub294 \uc720\uc6a9\ud55c \ub9ac\uc561\ud2b8 UI \ucef4\ud3ec\ub10c\ud2b8, \ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5 \ubc0f \ub2e4\uc591\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4.",source:"@site/docs/introduce/Introduce.md",sourceDirName:"introduce",slug:"/introduce/",permalink:"/modern-kit/docs/introduce/",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",next:{title:"DebounceWrapper",permalink:"/modern-kit/docs/react/components/DebounceWrapper"}},a={},l=[{value:"Usage",id:"usage",level:2},{value:"@modern-kit/react ",id:"modern-kitreact--",level:3},{value:"@modern-kit/utils ",id:"modern-kitutils--",level:3}];function o(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"\uc18c\uac1c",children:"\uc18c\uac1c"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"modern-kit"}),"\ub294 \uc720\uc6a9\ud55c ",(0,i.jsx)(n.code,{children:"\ub9ac\uc561\ud2b8 UI \ucef4\ud3ec\ub10c\ud2b8"}),", ",(0,i.jsx)(n.code,{children:"\ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5"})," \ubc0f \ub2e4\uc591\ud55c ",(0,i.jsx)(n.code,{children:"\uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218"}),"\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4."]}),"\n",(0,i.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsxs)(n.h3,{id:"modern-kitreact--",children:["@modern-kit/react ",(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/react",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/npm/v/@modern-kit/react.svg"})})," ",(0,i.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/react",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/react/latest"})})]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["React\uc640 \uad00\ub828\ub41c \uc720\uc6a9\ud55c ",(0,i.jsx)(n.code,{children:"\ucef4\ud3ec\ub10c\ud2b8"}),"\uc640 ",(0,i.jsx)(n.code,{children:"\ucee4\uc2a4\ud140 \ud6c5"}),"\uc744 \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"npm i @modern-kit/react\n"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"yarn add @modern-kit/react\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"modern-kitutils--",children:["@modern-kit/utils ",(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/utils",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/npm/v/@modern-kit/utils.svg"})})," ",(0,i.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/utils",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/utils/latest"})})]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\ud074\ub77c\uc774\uc5b8\ud2b8 \uac1c\ubc1c\uacfc \uad00\ub828\ub41c \uc720\uc6a9\ud55c ",(0,i.jsx)(n.code,{children:"\uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218"}),"\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"npm i @modern-kit/utils\n"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"yarn add @modern-kit/utils\n"})}),"\n",(0,i.jsx)("br",{})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(o,{...e})}):o(e)}},289:(e,n,t)=>{t.d(n,{Z:()=>d,a:()=>c});var i=t(4614);const r={},s=i.createContext(r);function c(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/993de3e1.a7f2b1f1.js b/assets/js/993de3e1.a7f2b1f1.js deleted file mode 100644 index bac55ea5d..000000000 --- a/assets/js/993de3e1.a7f2b1f1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3385],{126:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>m,frontMatter:()=>s,metadata:()=>d,toc:()=>a});var i=t(5735),r=t(289);const s={},c="\uc18c\uac1c",d={id:"introduce/Introduce",title:"\uc18c\uac1c",description:"modern-kit\ub294 \uc720\uc6a9\ud55c \ub9ac\uc561\ud2b8 UI \ucef4\ud3ec\ub10c\ud2b8, \ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5 \ubc0f \ub2e4\uc591\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4.",source:"@site/docs/introduce/Introduce.md",sourceDirName:"introduce",slug:"/introduce/",permalink:"/modern-kit/docs/introduce/",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",next:{title:"AB",permalink:"/modern-kit/docs/react/components/AB"}},l={},a=[{value:"Usage",id:"usage",level:2},{value:"@modern-kit/react ",id:"modern-kitreact--",level:3},{value:"@modern-kit/utils ",id:"modern-kitutils--",level:3}];function o(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"\uc18c\uac1c",children:"\uc18c\uac1c"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"modern-kit"}),"\ub294 \uc720\uc6a9\ud55c ",(0,i.jsx)(n.code,{children:"\ub9ac\uc561\ud2b8 UI \ucef4\ud3ec\ub10c\ud2b8"}),", ",(0,i.jsx)(n.code,{children:"\ub9ac\uc561\ud2b8 \ucee4\uc2a4\ud140 \ud6c5"})," \ubc0f \ub2e4\uc591\ud55c ",(0,i.jsx)(n.code,{children:"\uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218"}),"\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc785\ub2c8\ub2e4."]}),"\n",(0,i.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsxs)(n.h3,{id:"modern-kitreact--",children:["@modern-kit/react ",(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/react",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/npm/v/@modern-kit/react.svg"})})," ",(0,i.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/react",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/react/latest"})})]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["React\uc640 \uad00\ub828\ub41c \uc720\uc6a9\ud55c ",(0,i.jsx)(n.code,{children:"\ucef4\ud3ec\ub10c\ud2b8"}),"\uc640 ",(0,i.jsx)(n.code,{children:"\ucee4\uc2a4\ud140 \ud6c5"}),"\uc744 \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"npm i @modern-kit/react\n"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"yarn add @modern-kit/react\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"modern-kitutils--",children:["@modern-kit/utils ",(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@modern-kit/utils",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/npm/v/@modern-kit/utils.svg"})})," ",(0,i.jsx)("a",{href:"https://bundlephobia.com/package/@modern-kit/utils",target:"_blank",children:(0,i.jsx)("img",{align:"center",src:"https://img.shields.io/bundlephobia/minzip/@modern-kit/utils/latest"})})]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\ud074\ub77c\uc774\uc5b8\ud2b8 \uac1c\ubc1c\uacfc \uad00\ub828\ub41c \uc720\uc6a9\ud55c ",(0,i.jsx)(n.code,{children:"\uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218"}),"\ub97c \uc81c\uacf5\ud558\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4."]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"npm i @modern-kit/utils\n"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"yarn add @modern-kit/utils\n"})}),"\n",(0,i.jsx)("br",{})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(o,{...e})}):o(e)}},289:(e,n,t)=>{t.d(n,{Z:()=>d,a:()=>c});var i=t(4614);const r={},s=i.createContext(r);function c(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9be130a4.aacdb15d.js b/assets/js/9be130a4.aacdb15d.js new file mode 100644 index 000000000..ae4184cb4 --- /dev/null +++ b/assets/js/9be130a4.aacdb15d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5337],{4584:(t,n,r)=>{r.r(n),r.d(n,{Example:()=>p,assets:()=>s,contentTitle:()=>c,default:()=>h,frontMatter:()=>a,metadata:()=>f,toc:()=>l});var e=r(5735),o=r(289),i=r(5474),u=r(4614);const a={},c="usePrevious",f={id:"react/hooks/usePrevious",title:"usePrevious",description:"\uc774\uc804 \ub80c\ub354\ub9c1\uc5d0\uc11c \uc778\uc218\uc758 \uac12\uc744 \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/usePrevious.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/usePrevious",permalink:"/modern-kit/docs/react/hooks/usePrevious",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"usePreservedCallback",permalink:"/modern-kit/docs/react/hooks/usePreservedCallback"},next:{title:"useResizeObserver",permalink:"/modern-kit/docs/react/hooks/useResizeObserver"}},s={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}],p=()=>{const t={button:"button",div:"div",...(0,o.a)()},[n,r]=(0,u.useState)(0),a=(0,i.D9)(n);return(0,e.jsxs)(t.div,{children:[(0,e.jsxs)(t.div,{children:["Current Count is - ",n]}),(0,e.jsxs)(t.div,{children:["Previous Count is - ",a]}),(0,e.jsx)(t.button,{onClick:()=>{r(n+1)},children:"Increment"})]})};function v(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"useprevious",children:"usePrevious"}),"\n",(0,e.jsx)(n.p,{children:"\uc774\uc804 \ub80c\ub354\ub9c1\uc5d0\uc11c \uc778\uc218\uc758 \uac12\uc744 \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\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:"const usePrevious: (value: T) => T;\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { useState } from 'react';\nimport { usePrevious } from '@modern-kit/react';\n\nconst Example = () => {\n const [count, setCount] = useState(0);\n const previousCount = usePrevious(count);\n\n const onIncrementCount = () => {\n setCount(count + 1);\n };\n\n return (\n
\n
Current Count is - {count}
\n
Previous Count is - {previousCount}
\n \n
\n );\n};\n"})}),"\n","\n",(0,e.jsx)(p,{})]})}function h(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(v,{...t})}):v(t)}},289:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const o={},i=e.createContext(o);function u(t){const n=e.useContext(i);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(o):t.components||o:u(t.components),e.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{D9:()=>Rp,ac:()=>Mp,df:()=>xp,iP:()=>Bp,nA:()=>Ip,uM:()=>bp,wY:()=>Op,yU:()=>Wp});var e=r(4614),o=r(5735),i=(r(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,s=f.hasOwnProperty,l=f.toString,p=c?c.toStringTag:void 0,v=Object.prototype.toString,h="[object Null]",d="[object Undefined]",y=c?c.toStringTag:void 0;function g(t){return null==t?void 0===t?d:h:y&&y in Object(t)?function(t){var n=s.call(t,p),r=t[p];try{t[p]=void 0;var e=!0}catch(t){}var o=l.call(t);return e&&(n?t[p]=r:delete t[p]),o}(t):function(t){return v.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var b="[object Symbol]";function m(t){return"symbol"==typeof t||_(t)&&g(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,o=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Dt=Tt(vt),Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function qt(t){return function(){return t}}var $t=function(){try{var t=st(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=Tt(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]&&!Yt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(e),r)))}var tn=1,nn=2,rn=4,en=8,on=32,un=64;function an(t,n,r,e,o,i,u,a,c,f){var s=n&en;n|=s?on:un,(n&=~(s?un:on))&rn||(n&=~(tn|nn));var l=[t,n,o,s?i:void 0,s?u:void 0,s?void 0:i,s?void 0:u,a,c,f],p=r.apply(void 0,l);return zt(t)&&Dt(p,l),p.placeholder=e,Xt(p,t,n)}function cn(t){return t.placeholder}var fn=9007199254740991,sn=/^(?:0|[1-9]\d*)$/;function ln(t,n){var r=typeof t;return!!(n=null==n?fn:n)&&("number"==r||"symbol"!=r&&sn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&f<_&&(b.length=f),this&&this!==a&&this instanceof g&&(A=y||yt(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,Rn="Expected a function",Wn=1,Bn=2,Cn=8,Pn=16,zn=32,Ln=64,Tn=Math.max;function Dn(t,n,r,e,o,i,u,c){var f=n&Bn;if(!f&&"function"!=typeof t)throw new TypeError(Rn);var s=e?e.length:0;if(s||(n&=~(zn|Ln),e=o=void 0),u=void 0===u?u:Tn(K(u),0),c=void 0===c?c:K(c),s-=o?o.length:0,n&Ln){var l=e,p=o;e=o=void 0}var v=f?void 0:kt(t),h=[t,n,r,e,o,l,p,i,u,c];if(v&&function(t,n){var r=t[1],e=n[1],o=r|e,i=o<(On|An|In),u=e==In&&r==kn||e==In&&r==Sn&&t[7].length<=n[8]||e==(In|Sn)&&n[7].length<=n[8]&&r==kn;if(!i&&!u)return t;e&On&&(t[2]=n[2],o|=r&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?hn(t[3],xn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?wt(c,a,n[6]):a,t[6]=c?hn(t[5],xn):n[6]),(a=n[7])&&(t[7]=a),e&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}(h,v),t=h[0],n=h[1],r=h[2],e=h[3],o=h[4],!(c=h[9]=void 0===h[9]?f?0:t.length:Tn(h[9]-s,0))&&n&(Cn|Pn)&&(n&=~(Cn|Pn)),n&&n!=Wn)d=n==Cn||n==Pn?function(t,n,r){var e=yt(t);return function o(){for(var i=arguments.length,u=Array(i),c=i,f=cn(o);c--;)u[c]=arguments[c];var s=i<3&&u[0]!==f&&u[i-1]!==f?[]:hn(u,f);return(i-=s.length)-1&&t%1==0&&t<=Hn}function Yn(t){return null!=t&&Jn(t.length)&&!Y(t)}function Qn(t,n,r){if(!P(r))return!1;var e=typeof n;return!!("number"==e?Yn(r)&&ln(n,r.length):"string"==e&&n in r)&&Fn(r[n],t)}function Xn(t){return Gn((function(n,r){var e=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Qn(r[0],r[1],u)&&(i=o<3?void 0:i,o=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=st(a,"Map");function Vr(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function Zr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?ce(a,n-1,r,e,o):ie(o,a):e||(o[o.length]=a)}return o}function fe(t){return null!=t&&t.length?ce(t,1):[]}function se(t){return Vt(Zn(t,void 0,fe),t+"")}var le=se(oe),pe=xr(Object.getPrototypeOf,Object),ve="[object Object]",he=Function.prototype,de=Object.prototype,ye=he.toString,ge=de.hasOwnProperty,_e=ye.call(Object);function be(t){if(!_(t)||g(t)!=ve)return!1;var n=pe(t);if(null===n)return!0;var r=ge.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ye.call(r)==_e}function me(t){if(!_(t))return!1;var n=g(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 o=hn(r,cn(xe));e|=32}return Dn(t,e,n,r,o)}));xe.placeholder={};var Oe=se((function(t,n){return Zt(n,(function(n){n=ne(n),Nn(t,n,xe(t[n],t))})),t})),Ae=Gn((function(t,n,r){var e=3;if(r.length){var o=hn(r,cn(Ae));e|=32}return Dn(n,e,t,r,o)}));function Ee(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e=e?t:Ee(t,n,r)}Ae.placeholder={};var Ie=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Se(t){return Ie.test(t)}var Me="\\ud800-\\udfff",Re="["+Me+"]",We="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Be="\\ud83c[\\udffb-\\udfff]",Ce="[^"+Me+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="(?:"+We+"|"+Be+")?",Te="[\\ufe0e\\ufe0f]?",De=Te+Le+"(?:\\u200d(?:"+[Ce,Pe,ze].join("|")+")"+Te+Le+")*",Ue="(?:"+[Ce+We+"?",We,Pe,ze,Re].join("|")+")",Ne=RegExp(Be+"(?="+Be+")|"+Ue+De,"g");function Fe(t){return Se(t)?function(t){return t.match(Ne)||[]}(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),o=r?ke(r,1).join(""):n.slice(1);return e[t]()+o}}var $e=qe("toUpperCase");function Ke(t){return $e(Qr(t).toLowerCase())}function Ve(t,n,r,e){var o=-1,i=null==t?0:t.length;for(e&&i&&(r=t[++o]);++o=n?t:n)),t}function Po(t){var n=this.__data__=new $r(t);this.size=n.size}function zo(t,n){return t&&Kn(n,kr(n),t)}Po.prototype.clear=function(){this.__data__=new $r,this.size=0},Po.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Po.prototype.get=function(t){return this.__data__.get(t)},Po.prototype.has=function(t){return this.__data__.has(t)},Po.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 Lo="object"==typeof exports&&exports&&!exports.nodeType&&exports,To=Lo&&"object"==typeof module&&module&&!module.nodeType&&module,Do=To&&To.exports===Lo?a.Buffer:void 0,Uo=Do?Do.allocUnsafe:void 0;function No(t,n){if(n)return t.slice();var r=t.length,e=Uo?Uo(r):new t.constructor(r);return t.copy(e),e}function Fo(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++ra))return!1;var f=i.get(t),s=i.get(n);if(f&&s)return f==n&&s==t;var l=-1,p=!0,v=r&Qi?new Gi:void 0;for(i.set(t,n),i.set(n,t);++l=n||r<0||l&&t-f>=i}function d(){var t=ta();if(h(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return l?ra(r,i-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?v(t):(e=o=void 0,u)}function g(){var t=ta(),r=h(t);if(e=arguments,o=this,c=t,r){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),s?v(t):u}(c);if(l)return clearTimeout(a),a=setTimeout(d,n),v(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=N(n)||0,P(r)&&(s=!!r.leading,i=(l="maxWait"in r)?na(N(r.maxWait)||0,n):i,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=o=a=void 0},g.flush=function(){return void 0===a?u:y(ta())},g}var oa=Object.prototype,ia=oa.hasOwnProperty,ua=Gn((function(t,n){t=Object(t);var r=-1,e=n.length,o=e>2?n[2]:void 0;for(o&&Qn(n[0],n[1],o)&&(e=1);++r=ba&&(i=Ji,u=!1,n=new Gi(n));t:for(;++o":">",'"':""","'":"'"}),Ta=/[&<>"']/g,Da=RegExp(Ta.source);function Ua(t){return(t=Qr(t))&&Da.test(t)?t.replace(Ta,La):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.source);function qa(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?o[i?n[u]:u]:void 0}}var Ga=Math.max;function Ha(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=null==r?0:K(r);return o<0&&(o=Ga(e+o,0)),Gt(t,Uu(n),o)}var Ja=Za(Ha);function Ya(t,n,r){var e;return r(t,(function(t,r,o){if(n(t,r,o))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 o=e-1;return void 0!==r&&(o=K(r),o=r<0?Qa(e+o,0):Xa(o,e-1)),Gt(t,Uu(n),o,!0)}var nc=Za(tc);function rc(t){return t&&t.length?t[0]:void 0}function ec(t,n){var r=-1,e=Yn(t)?Array(t.length):[];return Zu(t,(function(t,o,i){e[++r]=n(t,o,i)})),e}function oc(t,n){return(O(t)?x:ec)(t,Uu(n))}var ic=So("floor");function uc(t){return se((function(n){var r=n.length,e=r,o=Rt.prototype.thru;for(t&&n.reverse();e--;){var i=n[e];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==Mt(i))var u=new Rt([],!0)}for(e=u?e:r;++en}function vc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=N(n),r=N(r)),t(n,r)}}var hc=vc(pc),dc=vc((function(t,n){return t>=n})),yc=Object.prototype.hasOwnProperty;function gc(t,n){return null!=t&&yc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&g(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,kr(t))}var Oc=Math.max,Ac=Math.max,Ec=Math.min;function kc(t,n,r){for(var e=r?_a:Yt,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var s=t[u];u&&n&&(s=x(s,hr(n))),c=Ec(s.length,c),a[u]=!r&&(n||o>=120&&s.length>=120)?new Gi(u&&s):void 0}s=t[0];var l=-1,p=a[0];t:for(;++l1),n})),Kn(t,Jo(t),r),e&&(r=Zi(r,7,Of));for(var o=n.length;o--;)xf(r,n[o]);return r}));function Ef(t,n,r,e){if(!P(t))return t;for(var o=-1,i=(n=Xr(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||e&&u&&c||!r&&c||!o)return 1;if(!e&&!i&&!f&&t=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function Rf(t){return se((function(n){return n=x(n,hr(Uu)),Gn((function(r){var e=this;return t(n,(function(t){return _t(t,e,r)}))}))}))}var Wf=Rf(x),Bf=Gn,Cf=Math.min,Pf=Bf((function(t,n){var r=(n=1==n.length&&O(n[0])?x(n[0],hr(Uu)):x(ce(n,1),hr(Uu))).length;return Gn((function(e){for(var o=-1,i=Cf(e.length,r);++oTf)return r;do{n%2&&(r+=t),(n=Df(n/2))&&(t+=t)}while(n);return r}var Nf=Tu("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+")*",Qf="(?:"+[Vf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Xf=RegExp(Kf+"(?="+Kf+")|"+Qf+Yf,"g");function ts(t){return Se(t)?function(t){for(var n=Xf.lastIndex=0;Xf.test(t);)++n;return n}(t):Nf(t)}var ns=Math.ceil;function rs(t,n){var r=(n=void 0===n?" ":I(n)).length;if(r<2)return r?Uf(n,t):n;var e=Uf(n,ns(t/ts(n)));return Se(n)?ke(Fe(e),0,t).join(""):e.slice(0,t)}var es=Math.ceil,os=Math.floor,is=/^\s+/,us=a.parseInt,as=Gn((function(t,n){return Dn(t,32,void 0,n,hn(n,cn(as)))}));as.placeholder={};var cs=Gn((function(t,n){return Dn(t,64,void 0,n,hn(n,cn(cs)))}));cs.placeholder={};var fs=Hu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),ss=se((function(t,n){return null==t?{}:function(t,n){return kf(t,n,(function(n,r){return Cu(t,r)}))}(t,n)}));function ls(t,n,r,e){for(var o=r-1,i=t.length;++o-1;)a!==t&&ps.call(a,c,1),ps.call(t,c,1);return t}function hs(t,n){return t&&t.length&&n&&n.length?vs(t,n):t}var ds=Gn(hs),ys=Array.prototype.splice;function gs(t,n){for(var r=t?n.length:0,e=r-1;r--;){var o=n[r];if(r==e||o!==i){var i=o;ln(o)?ys.call(t,o,1):xf(t,o)}}return t}var _s=se((function(t,n){var r=null==t?0:t.length,e=oe(t,n);return gs(t,x(n,(function(t){return ln(t,r)?+t:t})).sort(Sf)),e})),bs=Math.floor,ms=Math.random;function js(t,n){return t+bs(ms()*(n-t+1))}var ws=parseFloat,xs=Math.min,Os=Math.random,As=Math.ceil,Es=Math.max;function ks(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 o=-1,i=Es(As((n-t)/(r||1)),0),u=Array(i);i--;)u[e?i:++o]=t,t+=r;return u}(n,r,e=void 0===e?n1&&Qn(t,n[0],n[1])?n=[]:r>2&&Qn(n[0],n[1],n[2])&&(n=[n[0]]),Mf(t,ce(n,1),[])})),Vs=4294967294,Zs=Math.floor,Gs=Math.min;function Hs(t,n,r,e){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=r(n))!=n,a=null===n,c=m(n),f=void 0===n;o>>1,u=t[i];null!==u&&!m(u)&&(r?u<=n:u/g,al={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ul,variable:"",imports:{_:{escape:Ua}}},cl=/\b__p \+= '';/g,fl=/\b(__p \+=) '' \+/g,sl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ll=/[()=,{}\[\]\/\s]/,pl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vl=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,dl=Object.prototype.hasOwnProperty;function yl(t,n){return n(t)}var gl=4294967295,_l=Math.min;function bl(t,n){var r=t;return r instanceof At&&(r=r.value()),Ve(n,(function(t,n){return n.func.apply(n.thisArg,ie([t],n.args))}),r)}function ml(){return bl(this.__wrapped__,this.__actions__)}function jl(t,n){for(var r=t.length;r--&&Jt(n,t[r],0)>-1;);return r}function wl(t,n){for(var r=-1,e=t.length;++r-1;);return r}var xl=/^\s+/,Ol=/\w*$/,Al=Ze({"&":"&","<":"<",">":">",""":'"',"'":"'"}),El=/&(?:amp|lt|gt|quot|#39);/g,kl=RegExp(El.source),Il=Xo&&1/nu(new Xo([,-0]))[1]==1/0?function(t){return new Xo(t)}:Et,Sl=200;function Ml(t,n,r){var e=-1,o=Yt,i=t.length,u=!0,a=[],c=a;if(r)u=!1,o=_a;else if(i>=Sl){var f=n?null:Il(t);if(f)return nu(f);u=!1,o=Ji,c=new Gi}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof At&&ln(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:yl,args:[o],thisArg:void 0}),new Rt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Fl(t,n,r){var e=t.length;if(e<2)return e?Ml(t[0]):[];for(var o=-1,i=Array(e);++o1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Ll(t,r)})),Yl={chunk:function(t,n,r){n=(r?Qn(t,n,r):void 0===n)?1:Bo(K(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var o=0,i=0,u=Array(Wo(e/n));oo?0:o+r),(e=void 0===e||e>o?o:K(e))<0&&(e+=o),e=r>e?0:Ka(e);r-1:!!o&&Jt(t,n,r)>-1},invokeMap:Fc,keyBy:rf,map:oc,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:fs,reduce:function(t,n,r){var e=O(t)?Ve:Rs,o=arguments.length<3;return e(t,Uu(n),r,o,Zu)},reduceRight:function(t,n,r){var e=O(t)?Ws:Rs,o=arguments.length<3;return e(t,Uu(n),r,o,Wa)},reject:function(t,n){return(O(t)?Fo:Va)(t,bf(Uu(n)))},sample:function(t){return(O(t)?zs:Ls)(t)},sampleSize:function(t,n,r){return n=(r?Qn(t,n,r):void 0===n)?1:K(n),(O(t)?Ds:Us)(t,n)},shuffle:function(t){return(O(t)?Ns:Fs)(t)},size:function(t){if(null==t)return 0;if(Yn(t))return jc(t)?ts(t):t.length;var n=li(t);return"[object Map]"==n||"[object Set]"==n?t.size:Er(t).length},some:function(t,n,r){var e=O(t)?Hi:$s;return r&&Qn(t,n,r)&&(n=void 0),e(t,Uu(n))},sortBy:Ks},Xl=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:we,bind:xe,bindKey:Ae,curry:Qu,curryRight:Xu,debounce:ea,defer:ya,delay:ga,flip:function(t){return Dn(t,512)},memoize:Gr,negate:bf,once:function(t){return we(2,t)},overArgs:Pf,partial:as,partialRight:cs,rearg:Ms,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:Qs(K(n),0),Gn((function(r){var e=r[n],o=ke(r,0,n);return e&&ie(o,e),_t(t,this,o)}))},throttle:function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return P(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),ea(t,n,{leading:e,maxWait:n,trailing:o})},unary:function(t){return Un(t,1)},wrap:function(t,n){return as(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,kr(n))},eq:Fn,gt:hc,gte:dc,isArguments:ar,isArray:O,isArrayBuffer:$c,isArrayLike:Yn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==g(t)},isBuffer:pr,isDate:Vc,isElement:function(t){return _(t)&&1===t.nodeType&&!be(t)},isEmpty:function(t){if(null==t)return!0;if(Yn(t)&&(O(t)||"string"==typeof t||"function"==typeof t.splice||pr(t)||mr(t)||ar(t)))return!t.length;var n=li(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(nr(t))return!Er(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:Y,isInteger:Hc,isLength:Jn,isMap:Ui,isMatch:function(t,n){return t===n||ku(t,n,Su(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,ku(t,n,Su(n),r)},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:P,isObjectLike:_,isPlainObject:be,isRegExp:Xc,isSafeInteger:function(t){return Hc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Fi,isString:jc,isSymbol:m,isTypedArray:mr,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return _(t)&&"[object WeakMap]"==li(t)},isWeakSet:function(t){return _(t)&&"[object WeakSet]"==g(t)},lt:ff,lte:sf,toArray:jf,toFinite:$,toInteger:K,toLength:Ka,toNumber:N,toPlainObject:sa,toSafeInteger:function(t){return t?Co(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Qr},rp={add:M,ceil:Mo,divide:Aa,floor:ic,max:function(t){return t&&t.length?lf(t,V,pc):void 0},maxBy:function(t,n){return t&&t.length?lf(t,Uu(n),pc):void 0},mean:function(t){return vf(t,V)},meanBy:function(t,n){return vf(t,Uu(n))},min:function(t){return t&&t.length?lf(t,V,cf):void 0},minBy:function(t,n){return t&&t.length?lf(t,Uu(n),cf):void 0},multiply:_f,round:Ps,subtract:tl,sum:function(t){return t&&t.length?pf(t,V):0},sumBy:function(t,n){return t&&t.length?pf(t,Uu(n)):0}},ep={assign:Sr,assignIn:Wr,assignInWith:Br,assignWith:Cr,at:le,create:function(t,n){var r=dt(t);return null==n?r:zo(r,n)},defaults:ua,defaultsDeep:ha,entries:Pa,entriesIn:za,extend:Wr,extendWith:Br,findKey:function(t,n){return Ya(t,Uu(n),Ku)},findLastKey:function(t,n){return Ya(t,Uu(n),Ra)},forIn:function(t,n){return null==t?t:$u(t,ka(n),Rr)},forInRight:function(t,n){return null==t?t:Ma(t,ka(n),Rr)},forOwn:function(t,n){return t&&Ku(t,ka(n))},forOwnRight:function(t,n){return t&&Ra(t,ka(n))},functions:function(t){return null==t?[]:fc(t,kr(t))},functionsIn:function(t){return null==t?[]:fc(t,Rr(t))},get:ee,has:function(t,n){return null!=t&&Bu(t,n,gc)},hasIn:Cu,invert:Cc,invertBy:Tc,invoke:Nc,keys:kr,keysIn:Rr,mapKeys:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,o){Nn(r,n(t,e,o),t)})),r},mapValues:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,o){Nn(r,e,n(t,e,o))})),r},merge:hf,mergeWith:va,omit:Af,omitBy:function(t,n){return If(t,bf(Uu(n)))},pick:ss,pickBy:If,result:function(t,n,r){var e=-1,o=(n=Xr(n,t)).length;for(o||(o=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=Bt(r);e.__index__=0,e.__values__=void 0,n?o.__wrapped__=e:n=e;var o=e;r=r.__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:yl,args:[Cs],thisArg:void 0}),new Rt(n,this.__chain__)}return this.thru(Cs)},tap:function(t,n){return n(t),t},thru:yl,toIterator:function(){return this},toJSON:ml,value:ml,valueOf:ml,wrapperChain:function(){return Ro(this)}},ip={camelCase:Eo,capitalize:Ke,deburr:Ye,endsWith:function(t,n,r){t=Qr(t),n=I(n);var e=t.length,o=r=void 0===r?e:Co(K(r),0,e);return(r-=n.length)>=0&&t.slice(r,o)==n},escape:Ua,escapeRegExp:function(t){return(t=Qr(t))&&Fa.test(t)?t.replace(Na,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,r){t=Qr(t);var e=(n=K(n))?ts(t):0;if(!n||e>=n)return t;var o=(n-e)/2;return rs(os(o),r)+t+rs(es(o),r)},padEnd:function(t,n,r){t=Qr(t);var e=(n=K(n))?ts(t):0;return n&&e>>0)?(t=Qr(t))&&("string"==typeof n||null!=n&&!Xc(n))&&!(n=I(n))&&Se(t)?ke(Fe(t),0,r):t.split(n,r):[]},startCase:Xs,startsWith:function(t,n,r){return t=Qr(t),r=null==r?0:Co(K(r),0,t.length),n=I(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=al.imports._.templateSettings||al;r&&Qn(t,n,r)&&(n=void 0),t=Qr(t),n=Br({},n,e,el);var o,i,u=Br({},n.imports,e.imports,el),a=kr(u),c=wc(u,a),f=0,s=n.interpolate||vl,l="__p += '",p=RegExp((n.escape||vl).source+"|"+s.source+"|"+(s===ul?pl:vl).source+"|"+(n.evaluate||vl).source+"|$","g"),v=dl.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(n,r,e,u,a,c){return e||(e=u),l+=t.slice(f,c).replace(hl,il),r&&(o=!0,l+="' +\n__e("+r+") +\n'"),a&&(i=!0,l+="';\n"+a+";\n__p += '"),e&&(l+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),l+="';\n";var h=dl.call(n,"variable")&&n.variable;if(h){if(ll.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(i?l.replace(cl,""):l).replace(fl,"$1").replace(sl,"$1;"),l="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var d=je((function(){return Function(a,v+"return "+l).apply(void 0,c)}));if(d.source=l,me(d))throw d;return d},templateSettings:al,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 C(t);if(!t||!(n=I(n)))return t;var e=Fe(t),o=Fe(n);return ke(e,wl(e,o),jl(e,o)+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=I(n)))return t;var e=Fe(t);return ke(e,0,jl(e,Fe(n))+1).join("")},trimStart:function(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.replace(xl,"");if(!t||!(n=I(n)))return t;var e=Fe(t);return ke(e,wl(e,Fe(n))).join("")},truncate:function(t,n){var r=30,e="...";if(P(n)){var o="separator"in n?n.separator:o;r="length"in n?K(n.length):r,e="omission"in n?I(n.omission):e}var i=(t=Qr(t)).length;if(Se(t)){var u=Fe(t);i=u.length}if(r>=i)return t;var a=r-ts(e);if(a<1)return e;var c=u?ke(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+e;if(u&&(a+=c.length-a),Xc(o)){if(t.slice(a).search(o)){var f,s=c;for(o.global||(o=RegExp(o.source,Qr(Ol.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var l=f.index;c=c.slice(0,void 0===l?a:l)}}else if(t.indexOf(I(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=Qr(t))&&kl.test(t)?t.replace(El,Al):t},upperCase:Dl,upperFirst:$e,words:xo},up={attempt:je,bindAll:Oe,cond:function(t){var n=null==t?0:t.length,r=Uu;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;++e9007199254740991)return[];var r=gl,e=_l(t,gl);n=ka(n),t-=gl;for(var o=rr(e,n);++r=bc(n,r)&&t<_c(n,r)}(t=N(t),n,r)},Pt.invoke=ep.invoke,Pt.isArguments=np.isArguments,Pt.isArray=O,Pt.isArrayBuffer=np.isArrayBuffer,Pt.isArrayLike=np.isArrayLike,Pt.isArrayLikeObject=np.isArrayLikeObject,Pt.isBoolean=np.isBoolean,Pt.isBuffer=np.isBuffer,Pt.isDate=np.isDate,Pt.isElement=np.isElement,Pt.isEmpty=np.isEmpty,Pt.isEqual=np.isEqual,Pt.isEqualWith=np.isEqualWith,Pt.isError=np.isError,Pt.isFinite=np.isFinite,Pt.isFunction=np.isFunction,Pt.isInteger=np.isInteger,Pt.isLength=np.isLength,Pt.isMap=np.isMap,Pt.isMatch=np.isMatch,Pt.isMatchWith=np.isMatchWith,Pt.isNaN=np.isNaN,Pt.isNative=np.isNative,Pt.isNil=np.isNil,Pt.isNull=np.isNull,Pt.isNumber=np.isNumber,Pt.isObject=P,Pt.isObjectLike=np.isObjectLike,Pt.isPlainObject=np.isPlainObject,Pt.isRegExp=np.isRegExp,Pt.isSafeInteger=np.isSafeInteger,Pt.isSet=np.isSet,Pt.isString=np.isString,Pt.isSymbol=np.isSymbol,Pt.isTypedArray=np.isTypedArray,Pt.isUndefined=np.isUndefined,Pt.isWeakMap=np.isWeakMap,Pt.isWeakSet=np.isWeakSet,Pt.join=Yl.join,Pt.kebabCase=ip.kebabCase,Pt.last=wa,Pt.lastIndexOf=Yl.lastIndexOf,Pt.lowerCase=ip.lowerCase,Pt.lowerFirst=ip.lowerFirst,Pt.lt=np.lt,Pt.lte=np.lte,Pt.max=rp.max,Pt.maxBy=rp.maxBy,Pt.mean=rp.mean,Pt.meanBy=rp.meanBy,Pt.min=rp.min,Pt.minBy=rp.minBy,Pt.stubArray=up.stubArray,Pt.stubFalse=up.stubFalse,Pt.stubObject=up.stubObject,Pt.stubString=up.stubString,Pt.stubTrue=up.stubTrue,Pt.multiply=rp.multiply,Pt.nth=Yl.nth,Pt.noop=up.noop,Pt.now=Xl,Pt.pad=ip.pad,Pt.padEnd=ip.padEnd,Pt.padStart=ip.padStart,Pt.parseInt=ip.parseInt,Pt.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 o=Os();return xs(t+o*(n-t+ws("1e-"+((o+"").length-1))),n)}return js(t,n)},Pt.reduce=Ql.reduce,Pt.reduceRight=Ql.reduceRight,Pt.repeat=ip.repeat,Pt.replace=ip.replace,Pt.result=ep.result,Pt.round=rp.round,Pt.sample=Ql.sample,Pt.size=Ql.size,Pt.snakeCase=ip.snakeCase,Pt.some=Ql.some,Pt.sortedIndex=Yl.sortedIndex,Pt.sortedIndexBy=Yl.sortedIndexBy,Pt.sortedIndexOf=Yl.sortedIndexOf,Pt.sortedLastIndex=Yl.sortedLastIndex,Pt.sortedLastIndexBy=Yl.sortedLastIndexBy,Pt.sortedLastIndexOf=Yl.sortedLastIndexOf,Pt.startCase=ip.startCase,Pt.startsWith=ip.startsWith,Pt.subtract=rp.subtract,Pt.sum=rp.sum,Pt.sumBy=rp.sumBy,Pt.template=ip.template,Pt.times=up.times,Pt.toFinite=np.toFinite,Pt.toInteger=K,Pt.toLength=np.toLength,Pt.toLower=ip.toLower,Pt.toNumber=np.toNumber,Pt.toSafeInteger=np.toSafeInteger,Pt.toString=np.toString,Pt.toUpper=ip.toUpper,Pt.trim=ip.trim,Pt.trimEnd=ip.trimEnd,Pt.trimStart=ip.trimStart,Pt.truncate=ip.truncate,Pt.unescape=ip.unescape,Pt.uniqueId=up.uniqueId,Pt.upperCase=ip.upperCase,Pt.upperFirst=ip.upperFirst,Pt.each=Ql.forEach,Pt.eachRight=Ql.forEachRight,Pt.first=Yl.head,yp(Pt,(Gl={},Ku(Pt,(function(t,n){pp.call(Pt.prototype,n)||(Gl[n]=t)})),Gl),{chain:!1}),Pt.VERSION="4.17.21",(Pt.templateSettings=ip.templateSettings).imports._=Pt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Pt[t].placeholder=Pt})),Zt(["drop","take"],(function(t,n){At.prototype[t]=function(r){r=void 0===r?1:hp(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,sp),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:Uu(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 Uc(r,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(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(sp)},Ku(At.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),o=Pt[e?"take"+("last"==n?"Right":""):n],i=e||/^find/.test(n);o&&(Pt.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof At,c=u[0],f=a||O(n),s=function(t){var n=o.apply(Pt,ie([t],u));return e&&l?n[0]:n};f&&r&&"function"==typeof c&&1!=c.length&&(a=f=!1);var l=this.__chain__,p=!!this.__actions__.length,v=i&&!l,h=a&&!p;if(!i&&f){n=h?n:new At(this);var d=t.apply(n,u);return d.__actions__.push({func:yl,args:[s],thisArg:void 0}),new Rt(d,l)}return v&&h?t.apply(this,u):(d=this.thru(s),v?e?d.value()[0]:d.value():d)})})),Zt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=lp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Pt.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var o=this.value();return n.apply(O(o)?o:[],t)}return this[r]((function(r){return n.apply(O(r)?r:[],t)}))}})),Ku(At.prototype,(function(t,n){var r=Pt[n];if(r){var e=r.name+"";pp.call(It,e)||(It[e]=[]),It[e].push({name:n,func:r})}})),It[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,o=r?t.length:0,i=function(t,n,r){for(var e=-1,o=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 o=gp(t),i=(0,e.useMemo)((()=>ea(o,n,r)),[o,n,r]);return(t=>{const n=gp(t);(0,e.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},bp=({children:t,capture:n,wait:r,options:o})=>{const i=e.Children.only(t),u=_p(((...t)=>{const r=null==i?void 0:i.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,o);return(0,e.cloneElement)(i,{[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 o=0;for(e=Object.getOwnPropertySymbols(t);o{const u=(0,e.useRef)(null),a=gp(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:i,threshold:o});return n.observe(t),()=>{n.unobserve(t)}}),[r,o,i,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:i,root:u,rootMargin:a}=t,c=mp(t,["action","calledOnce","threshold","root","rootMargin"]),f=jp({action:r,calledOnce:e,threshold:i,root:u,rootMargin:a});return(0,o.jsx)("div",Object.assign({ref:wp(n,f)},c,{children:t.children}))})),Op=(0,e.forwardRef)(((t,n)=>{var{src:r,style:i,threshold:u,root:a,rootMargin:c}=t,f=mp(t,["src","style","threshold","root","rootMargin"]);const s=jp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),l=(0,e.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,o.jsx)("img",Object.assign({},f,{ref:wp(n,s),style:l}))}));"function"==typeof SuppressedError&&SuppressedError;const Ap=()=>"undefined"==typeof window&&"undefined"!=typeof global,Ep=()=>!Ap(),kp=Ep()?e.useLayoutEffect:e.useEffect;(0,e.createContext)({parentPortalElement:null});const Ip=({children:t,condition:n})=>{const r=(t=>"function"==typeof t?t():t)(n);return r?(0,o.jsx)(e.Fragment,{children:t}):null},Sp=t=>!!Ep()&&window.matchMedia(t).matches,Mp=t=>{const[n,r]=(0,e.useState)(Sp(t)),o=(0,e.useCallback)((()=>{r(Sp(t))}),[t]);return(0,e.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)}),[t,o]),{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}),o=(0,e.useRef)(null),i=gp(t),u=(0,e.useCallback)((([t])=>{t&&(i(t),r(t.contentRect))}),[i]);return(0,e.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}},Bp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[o,i]=(0,e.useState)({width:null,height:null}),u=(0,e.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=_p(u,r),c=(0,e.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/9be130a4.f676eca8.js b/assets/js/9be130a4.f676eca8.js deleted file mode 100644 index 35ec99b5d..000000000 --- a/assets/js/9be130a4.f676eca8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5337],{4584:(t,n,r)=>{r.r(n),r.d(n,{Example:()=>p,assets:()=>s,contentTitle:()=>c,default:()=>h,frontMatter:()=>a,metadata:()=>f,toc:()=>l});var e=r(5735),o=r(289),i=r(5474),u=r(4614);const a={},c="usePrevious",f={id:"react/hooks/usePrevious",title:"usePrevious",description:"\uc774\uc804 \ub80c\ub354\ub9c1\uc5d0\uc11c \uc778\uc218\uc758 \uac12\uc744 \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4.",source:"@site/docs/react/hooks/usePrevious.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/usePrevious",permalink:"/modern-kit/docs/react/hooks/usePrevious",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"usePreservedCallback",permalink:"/modern-kit/docs/react/hooks/usePreservedCallback"},next:{title:"useResizeObserver",permalink:"/modern-kit/docs/react/hooks/useResizeObserver"}},s={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}],p=()=>{const t={button:"button",div:"div",...(0,o.a)()},[n,r]=(0,u.useState)(0),a=(0,i.D9)(n);return(0,e.jsxs)(t.div,{children:[(0,e.jsxs)(t.div,{children:["Current Count is - ",n]}),(0,e.jsxs)(t.div,{children:["Previous Count is - ",a]}),(0,e.jsx)(t.button,{onClick:()=>{r(n+1)},children:"Increment"})]})};function v(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"useprevious",children:"usePrevious"}),"\n",(0,e.jsx)(n.p,{children:"\uc774\uc804 \ub80c\ub354\ub9c1\uc5d0\uc11c \uc778\uc218\uc758 \uac12\uc744 \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4."}),"\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:"const usePrevious: (value: T) => T;\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { useState } from 'react';\nimport { usePrevious } from '@modern-kit/react';\n\nconst Example = () => {\n const [count, setCount] = useState(0);\n const previousCount = usePrevious(count);\n\n const onIncrementCount = () => {\n setCount(count + 1);\n };\n\n return (\n
\n
Current Count is - {count}
\n
Previous Count is - {previousCount}
\n \n
\n );\n};\n"})}),"\n","\n",(0,e.jsx)(p,{})]})}function h(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(v,{...t})}):v(t)}},289:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const o={},i=e.createContext(o);function u(t){const n=e.useContext(i);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(o):t.components||o:u(t.components),e.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{AB:()=>f,D9:()=>Rp,ac:()=>Sp,df:()=>Ap,iP:()=>Bp,nA:()=>Ip,uM:()=>jp,wY:()=>Ep,yU:()=>Wp});var e=r(5735),o=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const i=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!i(),c=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),(0,o.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=o.Children.toArray(t);let e=0,i=0;if(2!==r.length)return null;for(const o of r){if(![f.CaseA,f.CaseB].includes(o.type))return null;o.type===f.CaseA?e+=1:i+=1}return e>=2||i>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,o.useEffect)((()=>{r()}),[r]),(0,e.jsx)(o.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,o.useEffect)((()=>{r()}),[r]),(0,e.jsx)(o.Fragment,{children:t})};var s="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,p=s||l||Function("return this")(),v=p.Symbol,h=Object.prototype,d=h.hasOwnProperty,y=h.toString,g=v?v.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=v?v.toStringTag:void 0;function w(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,g),r=t[g];try{t[g]=void 0;var e=!0}catch(t){}var o=y.call(t);return e&&(n?t[g]=r:delete t[g]),o}(t):function(t){return _.call(t)}(t)}function x(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||x(t)&&w(t)==O}var E=NaN;function k(t){return"number"==typeof t?t:A(t)?E:+t}function I(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Gt(t){return function(){return t}}var Ht=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Jt=qt(Ht?function(t,n){return Ht(t,"toString",{configurable:!0,enumerable:!1,value:Gt(n),writable:!0})}:Y);function Yt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Jt(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Yt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,sn=64;function ln(t,n,r,e,o,i,u,a,c,f){var s=n&cn;n|=s?fn:sn,(n&=~(s?sn:fn))&an||(n&=~(on|un));var l=[t,n,o,s?i:void 0,s?u:void 0,s?void 0:i,s?void 0:u,a,c,f],p=r.apply(void 0,l);return Nt(t)&&$t(p,l),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var vn=9007199254740991,hn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?vn:n)&&("number"==r||"symbol"!=r&&hn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),s&&c<_&&(b.length=c),this&&this!==p&&this instanceof g&&(A=y||jt(A)),A.apply(O,b)}}var En=1,kn="__lodash_placeholder__",In=1,Mn=2,Sn=4,Rn=8,Wn=128,Bn=256,Cn=Math.min,Pn="Expected a function",zn=1,Ln=2,Tn=8,Dn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,r,e,o,i,u,a){var c=n&Ln;if(!c&&"function"!=typeof t)throw new TypeError(Pn);var f=e?e.length:0;if(f||(n&=~(Un|Nn),e=o=void 0),u=void 0===u?u:Fn(J(u),0),a=void 0===a?a:J(a),f-=o?o.length:0,n&Nn){var s=e,l=o;e=o=void 0}var v=c?void 0:Wt(t),h=[t,n,r,e,o,s,l,i,u,a];if(v&&function(t,n){var r=t[1],e=n[1],o=r|e,i=o<(In|Mn|Wn),u=e==Wn&&r==Rn||e==Wn&&r==Bn&&t[7].length<=n[8]||e==(Wn|Bn)&&n[7].length<=n[8]&&r==Rn;if(!i&&!u)return t;e&In&&(t[2]=n[2],o|=r&In?0:Sn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],kn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?kt(c,a,n[6]):a,t[6]=c?_n(t[5],kn):n[6]),(a=n[7])&&(t[7]=a),e&Wn&&(t[8]=null==t[8]?n[8]:Cn(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=o}(h,v),t=h[0],n=h[1],r=h[2],e=h[3],o=h[4],!(a=h[9]=void 0===h[9]?c?0:t.length:Fn(h[9]-f,0))&&n&(Tn|Dn)&&(n&=~(Tn|Dn)),n&&n!=zn)d=n==Tn||n==Dn?function(t,n,r){var e=jt(t);return function o(){for(var i=arguments.length,u=Array(i),a=i,c=pn(o);a--;)u[a]=arguments[a];var f=i<3&&u[0]!==c&&u[i-1]!==c?[]:_n(u,c);return(i-=f.length)-1&&t%1==0&&t<=Xn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!U(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Vn(r[n],t)}function er(t){return Qn((function(n,r){var e=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&rr(r[0],r[1],u)&&(i=o<3?void 0:i,o=1),n=Object(n);++e-1},Gr.prototype.set=function(t,n){var r=this.__data__,e=Vr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Hr=dt(p,"Map");function Jr(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function Yr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,o):fe(o,a):e||(o[o.length]=a)}return o}function ve(t){return null!=t&&t.length?pe(t,1):[]}function he(t){return Jt(Yn(t,void 0,ve),t+"")}var de=he(ce),ye=kr(Object.getPrototypeOf,Object),ge="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,je=be.hasOwnProperty,we=me.call(Object);function xe(t){if(!x(t)||w(t)!=ge)return!1;var n=ye(t);if(null===n)return!0;var r=je.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==we}function Oe(t){if(!x(t))return!1;var n=w(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!xe(t)}var Ae=Qn((function(t,n){try{return xt(t,void 0,n)}catch(t){return Oe(t)?t:new Error(t)}}));function Ee(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var ke=Qn((function(t,n,r){var e=1;if(r.length){var o=_n(r,pn(ke));e|=32}return qn(t,e,n,r,o)}));ke.placeholder={};var Ie=he((function(t,n){return Yt(n,(function(n){n=ie(n),Kn(t,n,ke(t[n],t))})),t})),Me=Qn((function(t,n,r){var e=3;if(r.length){var o=_n(r,pn(Me));e|=32}return qn(n,e,t,r,o)}));function Se(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e=e?t:Se(t,n,r)}Me.placeholder={};var We=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Be(t){return We.test(t)}var Ce="\\ud800-\\udfff",Pe="["+Ce+"]",ze="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Le="\\ud83c[\\udffb-\\udfff]",Te="[^"+Ce+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="(?:"+ze+"|"+Le+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ne+"(?:\\u200d(?:"+[Te,De,Ue].join("|")+")"+Fe+Ne+")*",$e="(?:"+[Te+ze+"?",ze,De,Ue,Pe].join("|")+")",Ke=RegExp(Le+"(?="+Le+")|"+$e+qe,"g");function Ve(t){return Be(t)?function(t){return t.match(Ke)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=Be(n=re(n))?Ve(n):void 0,e=r?r[0]:n.charAt(0),o=r?Re(r,1).join(""):n.slice(1);return e[t]()+o}}var Ge=Ze("toUpperCase");function He(t){return Ge(re(t).toLowerCase())}function Je(t,n,r,e){var o=-1,i=null==t?0:t.length;for(e&&i&&(r=t[++o]);++o=n?t:n)),t}function Do(t){var n=this.__data__=new Gr(t);this.size=n.size}function Uo(t,n){return t&&Hn(n,Rr(n),t)}Do.prototype.clear=function(){this.__data__=new Gr,this.size=0},Do.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Do.prototype.get=function(t){return this.__data__.get(t)},Do.prototype.has=function(t){return this.__data__.has(t)},Do.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!Hr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(t,n),this.size=r.size,this};var No="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fo=No&&"object"==typeof module&&module&&!module.nodeType&&module,qo=Fo&&Fo.exports===No?p.Buffer:void 0,$o=qo?qo.allocUnsafe:void 0;function Ko(t,n){if(n)return t.slice();var r=t.length,e=$o?$o(r):new t.constructor(r);return t.copy(e),e}function Vo(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++ra))return!1;var f=i.get(t),s=i.get(n);if(f&&s)return f==n&&s==t;var l=-1,p=!0,v=r&ru?new Qi:void 0;for(i.set(t,n),i.set(n,t);++l=n||r<0||l&&t-f>=i}function d(){var t=oa();if(h(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return l?ua(r,i-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?v(t):(e=o=void 0,u)}function g(){var t=oa(),r=h(t);if(e=arguments,o=this,c=t,r){if(void 0===a)return function(t){return f=t,a=setTimeout(d,n),s?v(t):u}(c);if(l)return clearTimeout(a),a=setTimeout(d,n),v(c)}return void 0===a&&(a=setTimeout(d,n)),u}return n=V(n)||0,U(r)&&(s=!!r.leading,i=(l="maxWait"in r)?ia(V(r.maxWait)||0,n):i,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=o=a=void 0},g.flush=function(){return void 0===a?u:y(oa())},g}var ca=Object.prototype,fa=ca.hasOwnProperty,sa=Qn((function(t,n){t=Object(t);var r=-1,e=n.length,o=e>2?n[2]:void 0;for(o&&rr(n[0],n[1],o)&&(e=1);++r=xa&&(i=tu,u=!1,n=new Qi(n));t:for(;++o":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Na):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?o[i?n[u]:u]:void 0}}var Qa=Math.max;function Xa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=null==r?0:J(r);return o<0&&(o=Qa(e+o,0)),Qt(t,$u(n),o)}var tc=Ya(Xa);function nc(t,n,r){var e;return r(t,(function(t,r,o){if(n(t,r,o))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function oc(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=e-1;return void 0!==r&&(o=J(r),o=r<0?rc(e+o,0):ec(o,e-1)),Qt(t,$u(n),o,!0)}var ic=Ya(oc);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Yu(t,(function(t,o,i){e[++r]=n(t,o,i)})),e}function cc(t,n){return(M(t)?I:ac)(t,$u(n))}var fc=Bo("floor");function sc(t){return he((function(n){var r=n.length,e=r,o=zt.prototype.thru;for(t&&n.reverse();e--;){var i=n[e];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==Pt(i))var u=new zt([],!0)}for(e=u?e:r;++en}function gc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=V(n),r=V(r)),t(n,r)}}var _c=gc(yc),bc=gc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var wc=Math.max,xc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!M(t)&&x(t)&&w(t)==Oc}function Ec(t,n){return I(n,(function(n){return t[n]}))}function kc(t){return null==t?[]:Ec(t,Rr(t))}var Ic=Math.max,Mc=Math.max,Sc=Math.min;function Rc(t,n,r){for(var e=r?wa:nn,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var s=t[u];u&&n&&(s=I(s,_r(n))),c=Sc(s.length,c),a[u]=!r&&(n||o>=120&&s.length>=120)?new Qi(u&&s):void 0}s=t[0];var l=-1,p=a[0];t:for(;++l1),n})),Hn(t,ti(t),r),e&&(r=Yi(r,7,If));for(var o=n.length;o--;)kf(r,n[o]);return r}));function Sf(t,n,r,e){if(!U(t))return t;for(var o=-1,i=(n=ee(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||e&&u&&c||!r&&c||!o)return 1;if(!e&&!i&&!f&&t=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function Pf(t){return he((function(n){return n=I(n,_r($u)),Qn((function(r){var e=this;return t(n,(function(t){return xt(t,e,r)}))}))}))}var zf=Pf(I),Lf=Qn,Tf=Math.min,Df=Lf((function(t,n){var r=(n=1==n.length&&M(n[0])?I(n[0],_r($u)):I(pe(n,1),_r($u))).length;return Qn((function(e){for(var o=-1,i=Tf(e.length,r);++oFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Gf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Hf="\\ud83c[\\udffb-\\udfff]",Jf="[^"+Vf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Qf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="(?:"+Gf+"|"+Hf+")?",ts="[\\ufe0e\\ufe0f]?",ns=ts+Xf+"(?:\\u200d(?:"+[Jf,Yf,Qf].join("|")+")"+ts+Xf+")*",rs="(?:"+[Jf+Gf+"?",Gf,Yf,Qf,Zf].join("|")+")",es=RegExp(Hf+"(?="+Hf+")|"+rs+ns,"g");function os(t){return Be(t)?function(t){for(var n=es.lastIndex=0;es.test(t);)++n;return n}(t):Kf(t)}var is=Math.ceil;function us(t,n){var r=(n=void 0===n?" ":B(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,is(t/os(n)));return Be(n)?Re(Ve(e),0,t).join(""):e.slice(0,t)}var as=Math.ceil,cs=Math.floor,fs=/^\s+/,ss=p.parseInt,ls=Qn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(ls)))}));ls.placeholder={};var ps=Qn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(ps)))}));ps.placeholder={};var vs=Xu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),hs=he((function(t,n){return null==t?{}:function(t,n){return Rf(t,n,(function(n,r){return Tu(t,r)}))}(t,n)}));function ds(t,n,r,e){for(var o=r-1,i=t.length;++o-1;)a!==t&&ys.call(a,c,1),ys.call(t,c,1);return t}function _s(t,n){return t&&t.length&&n&&n.length?gs(t,n):t}var bs=Qn(_s),ms=Array.prototype.splice;function js(t,n){for(var r=t?n.length:0,e=r-1;r--;){var o=n[r];if(r==e||o!==i){var i=o;dn(o)?ms.call(t,o,1):kf(t,o)}}return t}var ws=he((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return js(t,I(n,(function(t){return dn(t,r)?+t:t})).sort(Bf)),e})),xs=Math.floor,Os=Math.random;function As(t,n){return t+xs(Os()*(n-t+1))}var Es=parseFloat,ks=Math.min,Is=Math.random,Ms=Math.ceil,Ss=Math.max;function Rs(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=H(n),void 0===r?(r=n,n=0):r=H(r),function(t,n,r,e){for(var o=-1,i=Ss(Ms((n-t)/(r||1)),0),u=Array(i);i--;)u[e?i:++o]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),Cf(t,pe(n,1),[])})),Js=4294967294,Ys=Math.floor,Qs=Math.min;function Xs(t,n,r,e){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=r(n))!=n,a=null===n,c=A(n),f=void 0===n;o>>1,u=t[i];null!==u&&!A(u)&&(r?u<=n:u/g,ll={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:sl,variable:"",imports:{_:{escape:$a}}},pl=/\b__p \+= '';/g,vl=/\b(__p \+=) '' \+/g,hl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dl=/[()=,{}\[\]\/\s]/,yl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gl=/($^)/,_l=/['\n\r\u2028\u2029\\]/g,bl=Object.prototype.hasOwnProperty;function ml(t,n){return n(t)}var jl=4294967295,wl=Math.min;function xl(t,n){var r=t;return r instanceof St&&(r=r.value()),Je(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function Ol(){return xl(this.__wrapped__,this.__actions__)}function Al(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function El(t,n){for(var r=-1,e=t.length;++r-1;);return r}var kl=/^\s+/,Il=/\w*$/,Ml=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sl=/&(?:amp|lt|gt|quot|#39);/g,Rl=RegExp(Sl.source),Wl=ei&&1/iu(new ei([,-0]))[1]==1/0?function(t){return new ei(t)}:Rt,Bl=200;function Cl(t,n,r){var e=-1,o=nn,i=t.length,u=!0,a=[],c=a;if(r)u=!1,o=wa;else if(i>=Bl){var f=n?null:Wl(t);if(f)return iu(f);u=!1,o=tu,c=new Qi}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof St&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ml,args:[o],thisArg:void 0}),new zt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Vl(t,n,r){var e=t.length;if(e<2)return e?Cl(t[0]):[];for(var o=-1,i=Array(e);++o1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Nl(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Lo(J(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var o=0,i=0,u=Array(zo(e/n));oo?0:o+r),(e=void 0===e||e>o?o:J(e))<0&&(e+=o),e=r>e?0:Ha(e);r-1:!!o&&tn(t,n,r)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(M(n)||(n=null==n?[]:[n]),M(r=e?void 0:r)||(r=null==r?[]:[r]),Cf(t,n,r))},partition:vs,reduce:function(t,n,r){var e=M(t)?Je:Ps,o=arguments.length<3;return e(t,$u(n),r,o,Yu)},reduceRight:function(t,n,r){var e=M(t)?zs:Ps,o=arguments.length<3;return e(t,$u(n),r,o,za)},reject:function(t,n){return(M(t)?Vo:Ja)(t,xf($u(n)))},sample:function(t){return(M(t)?Us:Ns)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:J(n),(M(t)?qs:$s)(t,n)},shuffle:function(t){return(M(t)?Ks:Vs)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Ac(t)?os(t):t.length;var n=di(t);return"[object Map]"==n||"[object Set]"==n?t.size:Sr(t).length},some:function(t,n,r){var e=M(t)?Xi:Gs;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Hs},rp=oa,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ee,bind:ke,bindKey:Me,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Qr,negate:xf,once:function(t){return Ee(2,t)},overArgs:Df,partial:ls,partialRight:ps,rearg:Cs,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Qn(t,n=void 0===n?n:J(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rl(J(n),0),Qn((function(r){var e=r[n],o=Re(r,0,n);return e&&fe(o,e),xt(t,this,o)}))},throttle:function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),aa(t,n,{leading:e,maxWait:n,trailing:o})},unary:function(t){return $n(t,1)},wrap:function(t,n){return ls(Ra(n),t)}},op={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return M(t)?t:[t]},clone:function(t){return Yi(t,4)},cloneDeep:function(t){return Yi(t,5)},cloneDeepWith:function(t,n){return Yi(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Yi(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Rr(n))},eq:Vn,gt:_c,gte:bc,isArguments:lr,isArray:M,isArrayBuffer:Gc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||x(t)&&"[object Boolean]"==w(t)},isBuffer:yr,isDate:Jc,isElement:function(t){return x(t)&&1===t.nodeType&&!xe(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(M(t)||"string"==typeof t||"function"==typeof t.splice||yr(t)||Or(t)||lr(t)))return!t.length;var n=di(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(ir(t))return!Sr(t).length;for(var r in t)if(Yc.call(t,r))return!1;return!0},isEqual:function(t,n){return Iu(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?Iu(t,n,void 0,r):!!e},isError:Oe,isFinite:function(t){return"number"==typeof t&&Qc(t)},isFunction:rt,isInteger:Xc,isLength:tr,isMap:$i,isMatch:function(t,n){return t===n||Ru(t,n,Bu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Ru(t,n,Bu(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ht(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:x,isPlainObject:xe,isRegExp:ef,isSafeInteger:function(t){return Xc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vi,isString:Ac,isSymbol:A,isTypedArray:Or,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return x(t)&&"[object WeakMap]"==di(t)},isWeakSet:function(t){return x(t)&&"[object WeakSet]"==w(t)},lt:vf,lte:hf,toArray:Af,toFinite:H,toInteger:J,toLength:Ha,toNumber:V,toPlainObject:ha,toSafeInteger:function(t){return t?To(J(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},ip={add:P,ceil:Co,divide:Ma,floor:fc,max:function(t){return t&&t.length?df(t,Y,yc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),yc):void 0},mean:function(t){return gf(t,Y)},meanBy:function(t,n){return gf(t,$u(n))},min:function(t){return t&&t.length?df(t,Y,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:wf,round:Ds,subtract:ol,sum:function(t){return t&&t.length?yf(t,Y):0},sumBy:function(t,n){return t&&t.length?yf(t,$u(n)):0}},up={assign:Br,assignIn:zr,assignInWith:Lr,assignWith:Tr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Uo(r,n)},defaults:sa,defaultsDeep:_a,entries:Da,entriesIn:Ua,extend:zr,extendWith:Lr,findKey:function(t,n){return nc(t,$u(n),Hu)},findLastKey:function(t,n){return nc(t,$u(n),Pa)},forIn:function(t,n){return null==t?t:Gu(t,Ra(n),Pr)},forInRight:function(t,n){return null==t?t:Ca(t,Ra(n),Pr)},forOwn:function(t,n){return t&&Hu(t,Ra(n))},forOwnRight:function(t,n){return t&&Pa(t,Ra(n))},functions:function(t){return null==t?[]:vc(t,Rr(t))},functionsIn:function(t){return null==t?[]:vc(t,Pr(t))},get:ae,has:function(t,n){return null!=t&&Lu(t,n,jc)},hasIn:Tu,invert:Tc,invertBy:Fc,invoke:Kc,keys:Rr,keysIn:Pr,mapKeys:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,o){Kn(r,n(t,e,o),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,o){Kn(r,e,n(t,e,o))})),r},merge:_f,mergeWith:ga,omit:Mf,omitBy:function(t,n){return Wf(t,xf($u(n)))},pick:hs,pickBy:Wf,result:function(t,n,r){var e=-1,o=(n=ee(n,t)).length;for(o||(o=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 It;){var e=Tt(r);e.__index__=0,e.__values__=void 0,n?o.__wrapped__=e:n=e;var o=e;r=r.__wrapped__}return o.__wrapped__=t,n},reverse:function(){var t=this.__wrapped__;if(t instanceof St){var n=t;return this.__actions__.length&&(n=new St(this)),(n=n.reverse()).__actions__.push({func:ml,args:[Ts],thisArg:void 0}),new zt(n,this.__chain__)}return this.thru(Ts)},tap:function(t,n){return n(t),t},thru:ml,toIterator:function(){return this},toJSON:Ol,value:Ol,valueOf:Ol,wrapperChain:function(){return Po(this)}},cp={camelCase:So,capitalize:He,deburr:no,endsWith:function(t,n,r){t=re(t),n=B(n);var e=t.length,o=r=void 0===r?e:To(J(r),0,e);return(r-=n.length)>=0&&t.slice(r,o)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:sf,lowerFirst:lf,pad:function(t,n,r){t=re(t);var e=(n=J(n))?os(t):0;if(!n||e>=n)return t;var o=(n-e)/2;return us(cs(o),r)+t+us(as(o),r)},padEnd:function(t,n,r){t=re(t);var e=(n=J(n))?os(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=B(n))&&Be(t)?Re(Ve(t),0,r):t.split(n,r):[]},startCase:el,startsWith:function(t,n,r){return t=re(t),r=null==r?0:To(J(r),0,t.length),n=B(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ll.imports._.templateSettings||ll;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Lr({},n,e,al);var o,i,u=Lr({},n.imports,e.imports,al),a=Rr(u),c=Ec(u,a),f=0,s=n.interpolate||gl,l="__p += '",p=RegExp((n.escape||gl).source+"|"+s.source+"|"+(s===sl?yl:gl).source+"|"+(n.evaluate||gl).source+"|$","g"),v=bl.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(n,r,e,u,a,c){return e||(e=u),l+=t.slice(f,c).replace(_l,fl),r&&(o=!0,l+="' +\n__e("+r+") +\n'"),a&&(i=!0,l+="';\n"+a+";\n__p += '"),e&&(l+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),l+="';\n";var h=bl.call(n,"variable")&&n.variable;if(h){if(dl.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(i?l.replace(pl,""):l).replace(vl,"$1").replace(hl,"$1;"),l="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var d=Ae((function(){return Function(a,v+"return "+l).apply(void 0,c)}));if(d.source=l,Oe(d))throw d;return d},templateSettings:ll,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return D(t);if(!t||!(n=B(n)))return t;var e=Ve(t),o=Ve(n);return Re(e,El(e,o),Al(e,o)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,L(t)+1);if(!t||!(n=B(n)))return t;var e=Ve(t);return Re(e,0,Al(e,Ve(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(kl,"");if(!t||!(n=B(n)))return t;var e=Ve(t);return Re(e,El(e,Ve(n))).join("")},truncate:function(t,n){var r=30,e="...";if(U(n)){var o="separator"in n?n.separator:o;r="length"in n?J(n.length):r,e="omission"in n?B(n.omission):e}var i=(t=re(t)).length;if(Be(t)){var u=Ve(t);i=u.length}if(r>=i)return t;var a=r-os(e);if(a<1)return e;var c=u?Re(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+e;if(u&&(a+=c.length-a),ef(o)){if(t.slice(a).search(o)){var f,s=c;for(o.global||(o=RegExp(o.source,re(Il.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var l=f.index;c=c.slice(0,void 0===l?a:l)}}else if(t.indexOf(B(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Rl.test(t)?t.replace(Sl,Ml):t},upperCase:ql,upperFirst:Ge,words:ko},fp={attempt:Ae,bindAll:Ie,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?I(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Qn((function(r){for(var e=-1;++e9007199254740991)return[];var r=jl,e=wl(t,jl);n=Ra(n),t-=jl;for(var o=ur(e,n);++r=xc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var o=Is();return ks(t+o*(n-t+Es("1e-"+((o+"").length-1))),n)}return As(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=ip.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=ip.subtract,Ut.sum=ip.sum,Ut.sumBy=ip.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=op.toFinite,Ut.toInteger=J,Ut.toLength=op.toLength,Ut.toLower=cp.toLower,Ut.toNumber=op.toNumber,Ut.toSafeInteger=op.toSafeInteger,Ut.toString=op.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Ql={},Hu(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Ql[n]=t)})),Ql),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Yt(["drop","take"],(function(t,n){St.prototype[t]=function(r){r=void 0===r?1:gp(J(r),0);var e=this.__filtered__&&!n?new St(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,vp),type:t+(e.__dir__<0?"Right":"")}),e},St.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Yt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;St.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Yt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");St.prototype[t]=function(){return this[r](1).value()[0]}})),Yt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");St.prototype[t]=function(){return this.__filtered__?new St(this):this[r](1)}})),St.prototype.compact=function(){return this.filter(Y)},St.prototype.find=function(t){return this.filter(t).head()},St.prototype.findLast=function(t){return this.reverse().find(t)},St.prototype.invokeMap=Qn((function(t,n){return"function"==typeof t?new St(this):this.map((function(r){return $c(r,t,n)}))})),St.prototype.reject=function(t){return this.filter(xf($u(t)))},St.prototype.slice=function(t,n){t=J(t);var r=this;return r.__filtered__&&(t>0||n<0)?new St(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=J(n))<0?r.dropRight(-n):r.take(n-t)),r)},St.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},St.prototype.toArray=function(){return this.take(vp)},Hu(St.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),o=Ut[e?"take"+("last"==n?"Right":""):n],i=e||/^find/.test(n);o&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof St,c=u[0],f=a||M(n),s=function(t){var n=o.apply(Ut,fe([t],u));return e&&l?n[0]:n};f&&r&&"function"==typeof c&&1!=c.length&&(a=f=!1);var l=this.__chain__,p=!!this.__actions__.length,v=i&&!l,h=a&&!p;if(!i&&f){n=h?n:new St(this);var d=t.apply(n,u);return d.__actions__.push({func:ml,args:[s],thisArg:void 0}),new zt(d,l)}return v&&h?t.apply(this,u):(d=this.thru(s),v?e?d.value()[0]:d.value():d)})})),Yt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=hp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var o=this.value();return n.apply(M(o)?o:[],t)}return this[r]((function(r){return n.apply(M(r)?r:[],t)}))}})),Hu(St.prototype,(function(t,n){var r=Ut[n];if(r){var e=r.name+"";dp.call(Bt,e)||(Bt[e]=[]),Bt[e].push({name:n,func:r})}})),Bt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],St.prototype.clone=function(){var t=new St(this.__wrapped__);return t.__actions__=Lt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lt(this.__views__),t},St.prototype.reverse=function(){if(this.__filtered__){var t=new St(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},St.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=M(t),e=n<0,o=r?t.length:0,i=function(t,n,r){for(var e=-1,o=r.length;++e{const e=c(t),i=(0,o.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,o.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},jp=({children:t,capture:n,wait:r,options:e})=>{const i=o.Children.only(t),u=mp(((...t)=>{const r=null==i?void 0:i.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,o.cloneElement)(i,{[n]:u})};function wp(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 o=0;for(e=Object.getOwnPropertySymbols(t);o{const u=(0,o.useRef)(null),a=c(t),f=(0,o.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,o.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:i,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,i,f]),u},Op=(...t)=>(0,o.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,o.forwardRef)(((t,n)=>{const{action:r,calledOnce:o,threshold:i,root:u,rootMargin:a}=t,c=wp(t,["action","calledOnce","threshold","root","rootMargin"]),f=xp({action:r,calledOnce:o,threshold:i,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ep=(0,o.forwardRef)(((t,n)=>{var{src:r,style:i,threshold:u,root:a,rootMargin:c}=t,f=wp(t,["src","style","threshold","root","rootMargin"]);const s=xp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),l=(0,o.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,e.jsx)("img",Object.assign({},f,{ref:Op(n,s),style:l}))})),kp=a()?o.useLayoutEffect:o.useEffect;(0,o.createContext)({parentPortalElement:null});const Ip=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(o.Fragment,{children:t}):null,Mp=t=>!!a()&&window.matchMedia(t).matches,Sp=t=>{const[n,r]=(0,o.useState)(Mp(t)),e=(0,o.useCallback)((()=>{r(Mp(t))}),[t]);return(0,o.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Rp=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),n.current},Wp=t=>{const[n,r]=(0,o.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,o.useRef)(null),i=c(t),u=(0,o.useCallback)((([t])=>{t&&(i(t),r(t.contentRect))}),[i]);return(0,o.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},Bp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,i]=(0,o.useState)({width:null,height:null}),u=(0,o.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,o.useMemo)((()=>n?a:u),[u,n,a]);return kp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/28b092ea.6cbbd1ca.js b/assets/js/af3a3cdc.5f6de8ed.js similarity index 62% rename from assets/js/28b092ea.6cbbd1ca.js rename to assets/js/af3a3cdc.5f6de8ed.js index d2e9c40f4..96d84be48 100644 --- a/assets/js/28b092ea.6cbbd1ca.js +++ b/assets/js/af3a3cdc.5f6de8ed.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8374],{3769:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9263],{3769:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/b35b1276.b49176eb.js b/assets/js/b35b1276.b49176eb.js deleted file mode 100644 index 8d2ab179d..000000000 --- a/assets/js/b35b1276.b49176eb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1813],{6754:(t,n,r)=>{r.r(n),r.d(n,{Example:()=>p,assets:()=>l,contentTitle:()=>c,default:()=>v,frontMatter:()=>a,metadata:()=>f,toc:()=>s});var e=r(5735),o=r(289),i=r(4614),u=r(5474);const a={},c="When",f={id:"react/components/When",title:"When",description:"condition prop\uc774 true\uba74 \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud558\uace0, false\uba74 \ub80c\ub354\ub9c1\ud558\uc9c0 \uc54a\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/When.mdx",sourceDirName:"react/components",slug:"/react/components/When",permalink:"/modern-kit/docs/react/components/When",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Portal",permalink:"/modern-kit/docs/react/components/Portal"},next:{title:"useAsyncPreservedCallback",permalink:"/modern-kit/docs/react/hooks/useAsyncPreservedCallback"}},l={},s=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}],p=()=>{const t={button:"button",h1:"h1",...(0,o.a)()},[n,r]=(0,i.useState)(!1);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.button,{onClick:()=>r(!n),children:"Toggle Button"}),(0,e.jsx)(u.nA,{condition:n,children:(0,e.jsx)(t.h1,{children:"Render"})})]})};function h(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"when",children:"When"}),"\n",(0,e.jsxs)(n.p,{children:["condition prop\uc774 ",(0,e.jsx)(n.code,{children:"true"}),"\uba74 \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud558\uace0, ",(0,e.jsx)(n.code,{children:"false"}),"\uba74 \ub80c\ub354\ub9c1\ud558\uc9c0 \uc54a\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.p,{children:["condition prop\uc73c\ub85c ",(0,e.jsx)(n.code,{children:"boolean\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218"}),"\ub3c4 \ud5c8\uc6a9\ub429\ub2c8\ub2e4."]}),"\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:"type Condition = boolean | ((...args: any[]) => boolean);\n\ninterface WhenProps {\n condition: Condition;\n}\n\nconst When: ({ children, condition }: PropsWithChildren) => JSX.Element | null\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { When } from '@modern-kit/react';\nconst Example = () => {\n const [state, setState] = useState(false);\n\n return (\n <>\n \n\n \n

Render

\n
\n \n );\n};\n"})}),"\n","\n",(0,e.jsx)(p,{})]})}function v(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(h,{...t})}):h(t)}},289:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const o={},i=e.createContext(o);function u(t){const n=e.useContext(i);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(o):t.components||o:u(t.components),e.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{AB:()=>f,D9:()=>Mp,ac:()=>Wp,df:()=>Ap,iP:()=>Bp,nA:()=>Ip,uM:()=>jp,wY:()=>Ep,yU:()=>Rp});var e=r(5735),o=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const i=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!i(),c=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),(0,o.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=o.Children.toArray(t);let e=0,i=0;if(2!==r.length)return null;for(const o of r){if(![f.CaseA,f.CaseB].includes(o.type))return null;o.type===f.CaseA?e+=1:i+=1}return e>=2||i>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,o.useEffect)((()=>{r()}),[r]),(0,e.jsx)(o.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,o.useEffect)((()=>{r()}),[r]),(0,e.jsx)(o.Fragment,{children:t})};var l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=h?h.toStringTag:void 0;function w(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,g),r=t[g];try{t[g]=void 0;var e=!0}catch(t){}var o=y.call(t);return e&&(n?t[g]=r:delete t[g]),o}(t):function(t){return _.call(t)}(t)}function x(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||x(t)&&w(t)==O}var E=NaN;function k(t){return"number"==typeof t?t:A(t)?E:+t}function I(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Gt(t){return function(){return t}}var Jt=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ht=qt(Jt?function(t,n){return Jt(t,"toString",{configurable:!0,enumerable:!1,value:Gt(n),writable:!0})}:Y);function Yt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Ht(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Yt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,ln=64;function sn(t,n,r,e,o,i,u,a,c,f){var l=n&cn;n|=l?fn:ln,(n&=~(l?ln:fn))&an||(n&=~(on|un));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=r.apply(void 0,s);return Nt(t)&&$t(p,s),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?hn:n)&&("number"==r||"symbol"!=r&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&c<_&&(b.length=c),this&&this!==p&&this instanceof g&&(A=y||jt(A)),A.apply(O,b)}}var En=1,kn="__lodash_placeholder__",In=1,Sn=2,Wn=4,Mn=8,Rn=128,Bn=256,Cn=Math.min,zn="Expected a function",Pn=1,Ln=2,Tn=8,Dn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,r,e,o,i,u,a){var c=n&Ln;if(!c&&"function"!=typeof t)throw new TypeError(zn);var f=e?e.length:0;if(f||(n&=~(Un|Nn),e=o=void 0),u=void 0===u?u:Fn(H(u),0),a=void 0===a?a:H(a),f-=o?o.length:0,n&Nn){var l=e,s=o;e=o=void 0}var h=c?void 0:Rt(t),v=[t,n,r,e,o,l,s,i,u,a];if(h&&function(t,n){var r=t[1],e=n[1],o=r|e,i=o<(In|Sn|Rn),u=e==Rn&&r==Mn||e==Rn&&r==Bn&&t[7].length<=n[8]||e==(Rn|Bn)&&n[7].length<=n[8]&&r==Mn;if(!i&&!u)return t;e&In&&(t[2]=n[2],o|=r&In?0:Wn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],kn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?kt(c,a,n[6]):a,t[6]=c?_n(t[5],kn):n[6]),(a=n[7])&&(t[7]=a),e&Rn&&(t[8]=null==t[8]?n[8]:Cn(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],r=v[2],e=v[3],o=v[4],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Tn|Dn)&&(n&=~(Tn|Dn)),n&&n!=Pn)d=n==Tn||n==Dn?function(t,n,r){var e=jt(t);return function o(){for(var i=arguments.length,u=Array(i),a=i,c=pn(o);a--;)u[a]=arguments[a];var f=i<3&&u[0]!==c&&u[i-1]!==c?[]:_n(u,c);return(i-=f.length)-1&&t%1==0&&t<=Qn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!U(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Vn(r[n],t)}function er(t){return Xn((function(n,r){var e=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&rr(r[0],r[1],u)&&(i=o<3?void 0:i,o=1),n=Object(n);++e-1},Gr.prototype.set=function(t,n){var r=this.__data__,e=Vr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Jr=dt(p,"Map");function Hr(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function Yr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,o):fe(o,a):e||(o[o.length]=a)}return o}function he(t){return null!=t&&t.length?pe(t,1):[]}function ve(t){return Ht(Yn(t,void 0,he),t+"")}var de=ve(ce),ye=kr(Object.getPrototypeOf,Object),ge="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,je=be.hasOwnProperty,we=me.call(Object);function xe(t){if(!x(t)||w(t)!=ge)return!1;var n=ye(t);if(null===n)return!0;var r=je.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==we}function Oe(t){if(!x(t))return!1;var n=w(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!xe(t)}var Ae=Xn((function(t,n){try{return xt(t,void 0,n)}catch(t){return Oe(t)?t:new Error(t)}}));function Ee(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var ke=Xn((function(t,n,r){var e=1;if(r.length){var o=_n(r,pn(ke));e|=32}return qn(t,e,n,r,o)}));ke.placeholder={};var Ie=ve((function(t,n){return Yt(n,(function(n){n=ie(n),Kn(t,n,ke(t[n],t))})),t})),Se=Xn((function(t,n,r){var e=3;if(r.length){var o=_n(r,pn(Se));e|=32}return qn(n,e,t,r,o)}));function We(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e=e?t:We(t,n,r)}Se.placeholder={};var Re=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Be(t){return Re.test(t)}var Ce="\\ud800-\\udfff",ze="["+Ce+"]",Pe="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Le="\\ud83c[\\udffb-\\udfff]",Te="[^"+Ce+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="(?:"+Pe+"|"+Le+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ne+"(?:\\u200d(?:"+[Te,De,Ue].join("|")+")"+Fe+Ne+")*",$e="(?:"+[Te+Pe+"?",Pe,De,Ue,ze].join("|")+")",Ke=RegExp(Le+"(?="+Le+")|"+$e+qe,"g");function Ve(t){return Be(t)?function(t){return t.match(Ke)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=Be(n=re(n))?Ve(n):void 0,e=r?r[0]:n.charAt(0),o=r?Me(r,1).join(""):n.slice(1);return e[t]()+o}}var Ge=Ze("toUpperCase");function Je(t){return Ge(re(t).toLowerCase())}function He(t,n,r,e){var o=-1,i=null==t?0:t.length;for(e&&i&&(r=t[++o]);++o=n?t:n)),t}function Do(t){var n=this.__data__=new Gr(t);this.size=n.size}function Uo(t,n){return t&&Jn(n,Mr(n),t)}Do.prototype.clear=function(){this.__data__=new Gr,this.size=0},Do.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Do.prototype.get=function(t){return this.__data__.get(t)},Do.prototype.has=function(t){return this.__data__.has(t)},Do.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!Jr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(t,n),this.size=r.size,this};var No="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fo=No&&"object"==typeof module&&module&&!module.nodeType&&module,qo=Fo&&Fo.exports===No?p.Buffer:void 0,$o=qo?qo.allocUnsafe:void 0;function Ko(t,n){if(n)return t.slice();var r=t.length,e=$o?$o(r):new t.constructor(r);return t.copy(e),e}function Vo(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++ra))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=r&ru?new Xi:void 0;for(i.set(t,n),i.set(n,t);++s=n||r<0||s&&t-f>=i}function d(){var t=oa();if(v(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ua(r,i-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=o=void 0,u)}function g(){var t=oa(),r=v(t);if(e=arguments,o=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=V(n)||0,U(r)&&(l=!!r.leading,i=(s="maxWait"in r)?ia(V(r.maxWait)||0,n):i,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=o=a=void 0},g.flush=function(){return void 0===a?u:y(oa())},g}var ca=Object.prototype,fa=ca.hasOwnProperty,la=Xn((function(t,n){t=Object(t);var r=-1,e=n.length,o=e>2?n[2]:void 0;for(o&&rr(n[0],n[1],o)&&(e=1);++r=xa&&(i=tu,u=!1,n=new Xi(n));t:for(;++o":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Na):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?o[i?n[u]:u]:void 0}}var Xa=Math.max;function Qa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=null==r?0:H(r);return o<0&&(o=Xa(e+o,0)),Xt(t,$u(n),o)}var tc=Ya(Qa);function nc(t,n,r){var e;return r(t,(function(t,r,o){if(n(t,r,o))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function oc(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=e-1;return void 0!==r&&(o=H(r),o=r<0?rc(e+o,0):ec(o,e-1)),Xt(t,$u(n),o,!0)}var ic=Ya(oc);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Yu(t,(function(t,o,i){e[++r]=n(t,o,i)})),e}function cc(t,n){return(S(t)?I:ac)(t,$u(n))}var fc=Bo("floor");function lc(t){return ve((function(n){var r=n.length,e=r,o=Pt.prototype.thru;for(t&&n.reverse();e--;){var i=n[e];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==zt(i))var u=new Pt([],!0)}for(e=u?e:r;++en}function gc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=V(n),r=V(r)),t(n,r)}}var _c=gc(yc),bc=gc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var wc=Math.max,xc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!S(t)&&x(t)&&w(t)==Oc}function Ec(t,n){return I(n,(function(n){return t[n]}))}function kc(t){return null==t?[]:Ec(t,Mr(t))}var Ic=Math.max,Sc=Math.max,Wc=Math.min;function Mc(t,n,r){for(var e=r?wa:nn,o=t[0].length,i=t.length,u=i,a=Array(i),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=I(l,_r(n))),c=Wc(l.length,c),a[u]=!r&&(n||o>=120&&l.length>=120)?new Xi(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Jn(t,ti(t),r),e&&(r=Yi(r,7,If));for(var o=n.length;o--;)kf(r,n[o]);return r}));function Wf(t,n,r,e){if(!U(t))return t;for(var o=-1,i=(n=ee(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||e&&u&&c||!r&&c||!o)return 1;if(!e&&!i&&!f&&t=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function zf(t){return ve((function(n){return n=I(n,_r($u)),Xn((function(r){var e=this;return t(n,(function(t){return xt(t,e,r)}))}))}))}var Pf=zf(I),Lf=Xn,Tf=Math.min,Df=Lf((function(t,n){var r=(n=1==n.length&&S(n[0])?I(n[0],_r($u)):I(pe(n,1),_r($u))).length;return Xn((function(e){for(var o=-1,i=Tf(e.length,r);++oFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Gf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Jf="\\ud83c[\\udffb-\\udfff]",Hf="[^"+Vf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Xf="[\\ud800-\\udbff][\\udc00-\\udfff]",Qf="(?:"+Gf+"|"+Jf+")?",tl="[\\ufe0e\\ufe0f]?",nl=tl+Qf+"(?:\\u200d(?:"+[Hf,Yf,Xf].join("|")+")"+tl+Qf+")*",rl="(?:"+[Hf+Gf+"?",Gf,Yf,Xf,Zf].join("|")+")",el=RegExp(Jf+"(?="+Jf+")|"+rl+nl,"g");function ol(t){return Be(t)?function(t){for(var n=el.lastIndex=0;el.test(t);)++n;return n}(t):Kf(t)}var il=Math.ceil;function ul(t,n){var r=(n=void 0===n?" ":B(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,il(t/ol(n)));return Be(n)?Me(Ve(e),0,t).join(""):e.slice(0,t)}var al=Math.ceil,cl=Math.floor,fl=/^\s+/,ll=p.parseInt,sl=Xn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(sl)))}));sl.placeholder={};var pl=Xn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(pl)))}));pl.placeholder={};var hl=Qu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),vl=ve((function(t,n){return null==t?{}:function(t,n){return Mf(t,n,(function(n,r){return Tu(t,r)}))}(t,n)}));function dl(t,n,r,e){for(var o=r-1,i=t.length;++o-1;)a!==t&&yl.call(a,c,1),yl.call(t,c,1);return t}function _l(t,n){return t&&t.length&&n&&n.length?gl(t,n):t}var bl=Xn(_l),ml=Array.prototype.splice;function jl(t,n){for(var r=t?n.length:0,e=r-1;r--;){var o=n[r];if(r==e||o!==i){var i=o;dn(o)?ml.call(t,o,1):kf(t,o)}}return t}var wl=ve((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return jl(t,I(n,(function(t){return dn(t,r)?+t:t})).sort(Bf)),e})),xl=Math.floor,Ol=Math.random;function Al(t,n){return t+xl(Ol()*(n-t+1))}var El=parseFloat,kl=Math.min,Il=Math.random,Sl=Math.ceil,Wl=Math.max;function Ml(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=J(n),void 0===r?(r=n,n=0):r=J(r),function(t,n,r,e){for(var o=-1,i=Wl(Sl((n-t)/(r||1)),0),u=Array(i);i--;)u[e?i:++o]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),Cf(t,pe(n,1),[])})),Hl=4294967294,Yl=Math.floor,Xl=Math.min;function Ql(t,n,r,e){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=r(n))!=n,a=null===n,c=A(n),f=void 0===n;o>>1,u=t[i];null!==u&&!A(u)&&(r?u<=n:u/g,ss={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ls,variable:"",imports:{_:{escape:$a}}},ps=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ds=/[()=,{}\[\]\/\s]/,ys=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gs=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,bs=Object.prototype.hasOwnProperty;function ms(t,n){return n(t)}var js=4294967295,ws=Math.min;function xs(t,n){var r=t;return r instanceof Wt&&(r=r.value()),He(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function Os(){return xs(this.__wrapped__,this.__actions__)}function As(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function Es(t,n){for(var r=-1,e=t.length;++r-1;);return r}var ks=/^\s+/,Is=/\w*$/,Ss=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ws=/&(?:amp|lt|gt|quot|#39);/g,Ms=RegExp(Ws.source),Rs=ei&&1/iu(new ei([,-0]))[1]==1/0?function(t){return new ei(t)}:Mt,Bs=200;function Cs(t,n,r){var e=-1,o=nn,i=t.length,u=!0,a=[],c=a;if(r)u=!1,o=wa;else if(i>=Bs){var f=n?null:Rs(t);if(f)return iu(f);u=!1,o=tu,c=new Xi}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof Wt&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[o],thisArg:void 0}),new Pt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Vs(t,n,r){var e=t.length;if(e<2)return e?Cs(t[0]):[];for(var o=-1,i=Array(e);++o1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Ns(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Lo(H(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var o=0,i=0,u=Array(Po(e/n));oo?0:o+r),(e=void 0===e||e>o?o:H(e))<0&&(e+=o),e=r>e?0:Ja(e);r-1:!!o&&tn(t,n,r)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(S(n)||(n=null==n?[]:[n]),S(r=e?void 0:r)||(r=null==r?[]:[r]),Cf(t,n,r))},partition:hl,reduce:function(t,n,r){var e=S(t)?He:zl,o=arguments.length<3;return e(t,$u(n),r,o,Yu)},reduceRight:function(t,n,r){var e=S(t)?Pl:zl,o=arguments.length<3;return e(t,$u(n),r,o,Pa)},reject:function(t,n){return(S(t)?Vo:Ha)(t,xf($u(n)))},sample:function(t){return(S(t)?Ul:Nl)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:H(n),(S(t)?ql:$l)(t,n)},shuffle:function(t){return(S(t)?Kl:Vl)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Ac(t)?ol(t):t.length;var n=di(t);return"[object Map]"==n||"[object Set]"==n?t.size:Wr(t).length},some:function(t,n,r){var e=S(t)?Qi:Gl;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Jl},rp=oa,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=H(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ee,bind:ke,bindKey:Se,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Xr,negate:xf,once:function(t){return Ee(2,t)},overArgs:Df,partial:sl,partialRight:pl,rearg:Cl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Xn(t,n=void 0===n?n:H(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rs(H(n),0),Xn((function(r){var e=r[n],o=Me(r,0,n);return e&&fe(o,e),xt(t,this,o)}))},throttle:function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),aa(t,n,{leading:e,maxWait:n,trailing:o})},unary:function(t){return $n(t,1)},wrap:function(t,n){return sl(Ma(n),t)}},op={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return S(t)?t:[t]},clone:function(t){return Yi(t,4)},cloneDeep:function(t){return Yi(t,5)},cloneDeepWith:function(t,n){return Yi(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Yi(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Mr(n))},eq:Vn,gt:_c,gte:bc,isArguments:sr,isArray:S,isArrayBuffer:Gc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||x(t)&&"[object Boolean]"==w(t)},isBuffer:yr,isDate:Hc,isElement:function(t){return x(t)&&1===t.nodeType&&!xe(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(S(t)||"string"==typeof t||"function"==typeof t.splice||yr(t)||Or(t)||sr(t)))return!t.length;var n=di(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(ir(t))return!Wr(t).length;for(var r in t)if(Yc.call(t,r))return!1;return!0},isEqual:function(t,n){return Iu(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?Iu(t,n,void 0,r):!!e},isError:Oe,isFinite:function(t){return"number"==typeof t&&Xc(t)},isFunction:rt,isInteger:Qc,isLength:tr,isMap:$i,isMatch:function(t,n){return t===n||Mu(t,n,Bu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Mu(t,n,Bu(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:x,isPlainObject:xe,isRegExp:ef,isSafeInteger:function(t){return Qc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vi,isString:Ac,isSymbol:A,isTypedArray:Or,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return x(t)&&"[object WeakMap]"==di(t)},isWeakSet:function(t){return x(t)&&"[object WeakSet]"==w(t)},lt:hf,lte:vf,toArray:Af,toFinite:J,toInteger:H,toLength:Ja,toNumber:V,toPlainObject:va,toSafeInteger:function(t){return t?To(H(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},ip={add:z,ceil:Co,divide:Sa,floor:fc,max:function(t){return t&&t.length?df(t,Y,yc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),yc):void 0},mean:function(t){return gf(t,Y)},meanBy:function(t,n){return gf(t,$u(n))},min:function(t){return t&&t.length?df(t,Y,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:wf,round:Dl,subtract:os,sum:function(t){return t&&t.length?yf(t,Y):0},sumBy:function(t,n){return t&&t.length?yf(t,$u(n)):0}},up={assign:Br,assignIn:Pr,assignInWith:Lr,assignWith:Tr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Uo(r,n)},defaults:la,defaultsDeep:_a,entries:Da,entriesIn:Ua,extend:Pr,extendWith:Lr,findKey:function(t,n){return nc(t,$u(n),Ju)},findLastKey:function(t,n){return nc(t,$u(n),za)},forIn:function(t,n){return null==t?t:Gu(t,Ma(n),zr)},forInRight:function(t,n){return null==t?t:Ca(t,Ma(n),zr)},forOwn:function(t,n){return t&&Ju(t,Ma(n))},forOwnRight:function(t,n){return t&&za(t,Ma(n))},functions:function(t){return null==t?[]:hc(t,Mr(t))},functionsIn:function(t){return null==t?[]:hc(t,zr(t))},get:ae,has:function(t,n){return null!=t&&Lu(t,n,jc)},hasIn:Tu,invert:Tc,invertBy:Fc,invoke:Kc,keys:Mr,keysIn:zr,mapKeys:function(t,n){var r={};return n=$u(n),Ju(t,(function(t,e,o){Kn(r,n(t,e,o),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Ju(t,(function(t,e,o){Kn(r,e,n(t,e,o))})),r},merge:_f,mergeWith:ga,omit:Sf,omitBy:function(t,n){return Rf(t,xf($u(n)))},pick:vl,pickBy:Rf,result:function(t,n,r){var e=-1,o=(n=ee(n,t)).length;for(o||(o=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 It;){var e=Tt(r);e.__index__=0,e.__values__=void 0,n?o.__wrapped__=e:n=e;var o=e;r=r.__wrapped__}return o.__wrapped__=t,n},reverse:function(){var t=this.__wrapped__;if(t instanceof Wt){var n=t;return this.__actions__.length&&(n=new Wt(this)),(n=n.reverse()).__actions__.push({func:ms,args:[Tl],thisArg:void 0}),new Pt(n,this.__chain__)}return this.thru(Tl)},tap:function(t,n){return n(t),t},thru:ms,toIterator:function(){return this},toJSON:Os,value:Os,valueOf:Os,wrapperChain:function(){return zo(this)}},cp={camelCase:Wo,capitalize:Je,deburr:no,endsWith:function(t,n,r){t=re(t),n=B(n);var e=t.length,o=r=void 0===r?e:To(H(r),0,e);return(r-=n.length)>=0&&t.slice(r,o)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:lf,lowerFirst:sf,pad:function(t,n,r){t=re(t);var e=(n=H(n))?ol(t):0;if(!n||e>=n)return t;var o=(n-e)/2;return ul(cl(o),r)+t+ul(al(o),r)},padEnd:function(t,n,r){t=re(t);var e=(n=H(n))?ol(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=B(n))&&Be(t)?Me(Ve(t),0,r):t.split(n,r):[]},startCase:es,startsWith:function(t,n,r){return t=re(t),r=null==r?0:To(H(r),0,t.length),n=B(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ss.imports._.templateSettings||ss;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Lr({},n,e,as);var o,i,u=Lr({},n.imports,e.imports,as),a=Mr(u),c=Ec(u,a),f=0,l=n.interpolate||gs,s="__p += '",p=RegExp((n.escape||gs).source+"|"+l.source+"|"+(l===ls?ys:gs).source+"|"+(n.evaluate||gs).source+"|$","g"),h=bs.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(_s,fs),r&&(o=!0,s+="' +\n__e("+r+") +\n'"),a&&(i=!0,s+="';\n"+a+";\n__p += '"),e&&(s+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),s+="';\n";var v=bs.call(n,"variable")&&n.variable;if(v){if(ds.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(i?s.replace(ps,""):s).replace(hs,"$1").replace(vs,"$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=Ae((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,Oe(d))throw d;return d},templateSettings:ss,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return D(t);if(!t||!(n=B(n)))return t;var e=Ve(t),o=Ve(n);return Me(e,Es(e,o),As(e,o)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,L(t)+1);if(!t||!(n=B(n)))return t;var e=Ve(t);return Me(e,0,As(e,Ve(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(ks,"");if(!t||!(n=B(n)))return t;var e=Ve(t);return Me(e,Es(e,Ve(n))).join("")},truncate:function(t,n){var r=30,e="...";if(U(n)){var o="separator"in n?n.separator:o;r="length"in n?H(n.length):r,e="omission"in n?B(n.omission):e}var i=(t=re(t)).length;if(Be(t)){var u=Ve(t);i=u.length}if(r>=i)return t;var a=r-ol(e);if(a<1)return e;var c=u?Me(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+e;if(u&&(a+=c.length-a),ef(o)){if(t.slice(a).search(o)){var f,l=c;for(o.global||(o=RegExp(o.source,re(Is.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(B(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Ms.test(t)?t.replace(Ws,Ss):t},upperCase:qs,upperFirst:Ge,words:ko},fp={attempt:Ae,bindAll:Ie,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?I(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Xn((function(r){for(var e=-1;++e9007199254740991)return[];var r=js,e=ws(t,js);n=Ma(n),t-=js;for(var o=ur(e,n);++r=xc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var o=Il();return kl(t+o*(n-t+El("1e-"+((o+"").length-1))),n)}return Al(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=ip.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=ip.subtract,Ut.sum=ip.sum,Ut.sumBy=ip.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=op.toFinite,Ut.toInteger=H,Ut.toLength=op.toLength,Ut.toLower=cp.toLower,Ut.toNumber=op.toNumber,Ut.toSafeInteger=op.toSafeInteger,Ut.toString=op.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Xs={},Ju(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Xs[n]=t)})),Xs),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Yt(["drop","take"],(function(t,n){Wt.prototype[t]=function(r){r=void 0===r?1:gp(H(r),0);var e=this.__filtered__&&!n?new Wt(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,hp),type:t+(e.__dir__<0?"Right":"")}),e},Wt.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Yt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;Wt.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Yt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");Wt.prototype[t]=function(){return this[r](1).value()[0]}})),Yt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");Wt.prototype[t]=function(){return this.__filtered__?new Wt(this):this[r](1)}})),Wt.prototype.compact=function(){return this.filter(Y)},Wt.prototype.find=function(t){return this.filter(t).head()},Wt.prototype.findLast=function(t){return this.reverse().find(t)},Wt.prototype.invokeMap=Xn((function(t,n){return"function"==typeof t?new Wt(this):this.map((function(r){return $c(r,t,n)}))})),Wt.prototype.reject=function(t){return this.filter(xf($u(t)))},Wt.prototype.slice=function(t,n){t=H(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Wt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=H(n))<0?r.dropRight(-n):r.take(n-t)),r)},Wt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wt.prototype.toArray=function(){return this.take(hp)},Ju(Wt.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),o=Ut[e?"take"+("last"==n?"Right":""):n],i=e||/^find/.test(n);o&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof Wt,c=u[0],f=a||S(n),l=function(t){var n=o.apply(Ut,fe([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=i&&!s,v=a&&!p;if(!i&&f){n=v?n:new Wt(this);var d=t.apply(n,u);return d.__actions__.push({func:ms,args:[l],thisArg:void 0}),new Pt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),Yt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var o=this.value();return n.apply(S(o)?o:[],t)}return this[r]((function(r){return n.apply(S(r)?r:[],t)}))}})),Ju(Wt.prototype,(function(t,n){var r=Ut[n];if(r){var e=r.name+"";dp.call(Bt,e)||(Bt[e]=[]),Bt[e].push({name:n,func:r})}})),Bt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],Wt.prototype.clone=function(){var t=new Wt(this.__wrapped__);return t.__actions__=Lt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lt(this.__views__),t},Wt.prototype.reverse=function(){if(this.__filtered__){var t=new Wt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wt.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=S(t),e=n<0,o=r?t.length:0,i=function(t,n,r){for(var e=-1,o=r.length;++e{const e=c(t),i=(0,o.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,o.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},jp=({children:t,capture:n,wait:r,options:e})=>{const i=o.Children.only(t),u=mp(((...t)=>{const r=null==i?void 0:i.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,o.cloneElement)(i,{[n]:u})};function wp(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 o=0;for(e=Object.getOwnPropertySymbols(t);o{const u=(0,o.useRef)(null),a=c(t),f=(0,o.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,o.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:i,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,i,f]),u},Op=(...t)=>(0,o.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,o.forwardRef)(((t,n)=>{const{action:r,calledOnce:o,threshold:i,root:u,rootMargin:a}=t,c=wp(t,["action","calledOnce","threshold","root","rootMargin"]),f=xp({action:r,calledOnce:o,threshold:i,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ep=(0,o.forwardRef)(((t,n)=>{var{src:r,style:i,threshold:u,root:a,rootMargin:c}=t,f=wp(t,["src","style","threshold","root","rootMargin"]);const l=xp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,o.useMemo)((()=>Object.assign({display:"inline-block"},i)),[i]);return(0,e.jsx)("img",Object.assign({},f,{ref:Op(n,l),style:s}))})),kp=a()?o.useLayoutEffect:o.useEffect;(0,o.createContext)({parentPortalElement:null});const Ip=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(o.Fragment,{children:t}):null,Sp=t=>!!a()&&window.matchMedia(t).matches,Wp=t=>{const[n,r]=(0,o.useState)(Sp(t)),e=(0,o.useCallback)((()=>{r(Sp(t))}),[t]);return(0,o.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Mp=t=>{const n=(0,o.useRef)(t);return(0,o.useEffect)((()=>{n.current=t}),[t]),n.current},Rp=t=>{const[n,r]=(0,o.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,o.useRef)(null),i=c(t),u=(0,o.useCallback)((([t])=>{t&&(i(t),r(t.contentRect))}),[i]);return(0,o.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},Bp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,i]=(0,o.useState)({width:null,height:null}),u=(0,o.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,o.useMemo)((()=>n?a:u),[u,n,a]);return kp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/b35b1276.f73997c9.js b/assets/js/b35b1276.f73997c9.js new file mode 100644 index 000000000..201e409de --- /dev/null +++ b/assets/js/b35b1276.f73997c9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1813],{6754:(t,n,r)=>{r.r(n),r.d(n,{Example:()=>p,assets:()=>l,contentTitle:()=>c,default:()=>v,frontMatter:()=>a,metadata:()=>f,toc:()=>s});var e=r(5735),o=r(289),i=r(4614),u=r(5474);const a={},c="When",f={id:"react/components/When",title:"When",description:"condition prop\uc774 true\uba74 \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud558\uace0, false\uba74 \ub80c\ub354\ub9c1\ud558\uc9c0 \uc54a\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/When.mdx",sourceDirName:"react/components",slug:"/react/components/When",permalink:"/modern-kit/docs/react/components/When",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Portal",permalink:"/modern-kit/docs/react/components/Portal"},next:{title:"useAsyncPreservedCallback",permalink:"/modern-kit/docs/react/hooks/useAsyncPreservedCallback"}},l={},s=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2}],p=()=>{const t={button:"button",h1:"h1",...(0,o.a)()},[n,r]=(0,i.useState)(!1);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.button,{onClick:()=>r(!n),children:"Toggle Button"}),(0,e.jsx)(u.nA,{condition:n,children:(0,e.jsx)(t.h1,{children:"Render"})})]})};function h(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,o.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"when",children:"When"}),"\n",(0,e.jsxs)(n.p,{children:["condition prop\uc774 ",(0,e.jsx)(n.code,{children:"true"}),"\uba74 \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub80c\ub354\ub9c1\ud558\uace0, ",(0,e.jsx)(n.code,{children:"false"}),"\uba74 \ub80c\ub354\ub9c1\ud558\uc9c0 \uc54a\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\n",(0,e.jsxs)(n.p,{children:["condition prop\uc73c\ub85c ",(0,e.jsx)(n.code,{children:"boolean\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218"}),"\ub3c4 \ud5c8\uc6a9\ub429\ub2c8\ub2e4."]}),"\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:"type Condition = boolean | ((...args: any[]) => boolean);\n\ninterface WhenProps {\n condition: Condition;\n}\n\nconst When: ({ children, condition }: PropsWithChildren) => JSX.Element | null\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { When } from '@modern-kit/react';\nconst Example = () => {\n const [state, setState] = useState(false);\n\n return (\n <>\n \n\n \n

Render

\n
\n \n );\n};\n"})}),"\n","\n",(0,e.jsx)(p,{})]})}function v(t={}){const{wrapper:n}={...(0,o.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(h,{...t})}):h(t)}},289:(t,n,r)=>{r.d(n,{Z:()=>a,a:()=>u});var e=r(4614);const o={},i=e.createContext(o);function u(t){const n=e.useContext(i);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(o):t.components||o:u(t.components),e.createElement(i.Provider,{value:n},t.children)}},5474:(t,n,r)=>{r.d(n,{D9:()=>Mp,ac:()=>Wp,df:()=>xp,iP:()=>Bp,nA:()=>Ip,uM:()=>bp,wY:()=>Op,yU:()=>Rp});var e=r(4614),o=r(5735),i=(r(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]",y=c?c.toStringTag:void 0;function g(t){return null==t?void 0===t?d:v:y&&y 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 o=s.call(t);return e&&(n?t[p]=r: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)&&g(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,o=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Dt=Tt(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=Tt(Kt);function Zt(t,n){for(var r=-1,e=null==t?0:t.length;++r-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,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(Xt,(function(r){var e="_."+r[0];n&r[1]&&!Yt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(e),r)))}var tn=1,nn=2,rn=4,en=8,on=32,un=64;function an(t,n,r,e,o,i,u,a,c,f){var l=n&en;n|=l?on:un,(n&=~(l?un:on))&rn||(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=r.apply(void 0,s);return Ct(t)&&Dt(p,s),p.placeholder=e,Qt(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&&t1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof g&&(A=y||yt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,En=4,kn=8,In=128,Sn=256,Wn=Math.min,Mn="Expected a function",Rn=1,Bn=2,zn=8,Pn=16,Cn=32,Ln=64,Tn=Math.max;function Dn(t,n,r,e,o,i,u,c){var f=n&Bn;if(!f&&"function"!=typeof t)throw new TypeError(Mn);var l=e?e.length:0;if(l||(n&=~(Cn|Ln),e=o=void 0),u=void 0===u?u:Tn(K(u),0),c=void 0===c?c:K(c),l-=o?o.length:0,n&Ln){var s=e,p=o;e=o=void 0}var h=f?void 0:kt(t),v=[t,n,r,e,o,s,p,i,u,c];if(h&&function(t,n){var r=t[1],e=n[1],o=r|e,i=o<(On|An|In),u=e==In&&r==kn||e==In&&r==Sn&&t[7].length<=n[8]||e==(In|Sn)&&n[7].length<=n[8]&&r==kn;if(!i&&!u)return t;e&On&&(t[2]=n[2],o|=r&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),e&In&&(t[8]=null==t[8]?n[8]:Wn(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],r=v[2],e=v[3],o=v[4],!(c=v[9]=void 0===v[9]?f?0:t.length:Tn(v[9]-l,0))&&n&(zn|Pn)&&(n&=~(zn|Pn)),n&&n!=Rn)d=n==zn||n==Pn?function(t,n,r){var e=yt(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<=Jn}function Yn(t){return null!=t&&Hn(t.length)&&!Y(t)}function Xn(t,n,r){if(!P(r))return!1;var e=typeof n;return!!("number"==e?Yn(r)&&sn(n,r.length):"string"==e&&n in r)&&Fn(r[n],t)}function Qn(t){return Gn((function(n,r){var e=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Xn(r[0],r[1],u)&&(i=o<3?void 0:i,o=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,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function Zr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?ce(a,n-1,r,e,o):ie(o,a):e||(o[o.length]=a)}return o}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(oe),pe=xr(Object.getPrototypeOf,Object),he="[object Object]",ve=Function.prototype,de=Object.prototype,ye=ve.toString,ge=de.hasOwnProperty,_e=ye.call(Object);function be(t){if(!_(t)||g(t)!=he)return!1;var n=pe(t);if(null===n)return!0;var r=ge.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ye.call(r)==_e}function me(t){if(!_(t))return!1;var n=g(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 o=vn(r,cn(xe));e|=32}return Dn(t,e,n,r,o)}));xe.placeholder={};var Oe=le((function(t,n){return Zt(n,(function(n){n=ne(n),Nn(t,n,xe(t[n],t))})),t})),Ae=Gn((function(t,n,r){var e=3;if(r.length){var o=vn(r,cn(Ae));e|=32}return Dn(n,e,t,r,o)}));function Ee(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e=e?t:Ee(t,n,r)}Ae.placeholder={};var Ie=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Se(t){return Ie.test(t)}var We="\\ud800-\\udfff",Me="["+We+"]",Re="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Be="\\ud83c[\\udffb-\\udfff]",ze="[^"+We+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="(?:"+Re+"|"+Be+")?",Te="[\\ufe0e\\ufe0f]?",De=Te+Le+"(?:\\u200d(?:"+[ze,Pe,Ce].join("|")+")"+Te+Le+")*",Ue="(?:"+[ze+Re+"?",Re,Pe,Ce,Me].join("|")+")",Ne=RegExp(Be+"(?="+Be+")|"+Ue+De,"g");function Fe(t){return Se(t)?function(t){return t.match(Ne)||[]}(t):function(t){return t.split("")}(t)}function qe(t){return function(n){var r=Se(n=Xr(n))?Fe(n):void 0,e=r?r[0]:n.charAt(0),o=r?ke(r,1).join(""):n.slice(1);return e[t]()+o}}var $e=qe("toUpperCase");function Ke(t){return $e(Xr(t).toLowerCase())}function Ve(t,n,r,e){var o=-1,i=null==t?0:t.length;for(e&&i&&(r=t[++o]);++o=n?t:n)),t}function Po(t){var n=this.__data__=new $r(t);this.size=n.size}function Co(t,n){return t&&Kn(n,kr(n),t)}Po.prototype.clear=function(){this.__data__=new $r,this.size=0},Po.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Po.prototype.get=function(t){return this.__data__.get(t)},Po.prototype.has=function(t){return this.__data__.has(t)},Po.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 Lo="object"==typeof exports&&exports&&!exports.nodeType&&exports,To=Lo&&"object"==typeof module&&module&&!module.nodeType&&module,Do=To&&To.exports===Lo?a.Buffer:void 0,Uo=Do?Do.allocUnsafe:void 0;function No(t,n){if(n)return t.slice();var r=t.length,e=Uo?Uo(r):new t.constructor(r);return t.copy(e),e}function Fo(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++ra))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=r&Xi?new Gi:void 0;for(i.set(t,n),i.set(n,t);++s=n||r<0||s&&t-f>=i}function d(){var t=ta();if(v(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ra(r,i-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=o=void 0,u)}function g(){var t=ta(),r=v(t);if(e=arguments,o=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=N(n)||0,P(r)&&(l=!!r.leading,i=(s="maxWait"in r)?na(N(r.maxWait)||0,n):i,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=o=a=void 0},g.flush=function(){return void 0===a?u:y(ta())},g}var oa=Object.prototype,ia=oa.hasOwnProperty,ua=Gn((function(t,n){t=Object(t);var r=-1,e=n.length,o=e>2?n[2]:void 0;for(o&&Xn(n[0],n[1],o)&&(e=1);++r=ba&&(i=Hi,u=!1,n=new Gi(n));t:for(;++o":">",'"':""","'":"'"}),Ta=/[&<>"']/g,Da=RegExp(Ta.source);function Ua(t){return(t=Xr(t))&&Da.test(t)?t.replace(Ta,La):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.source);function qa(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?o[i?n[u]:u]:void 0}}var Ga=Math.max;function Ja(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=null==r?0:K(r);return o<0&&(o=Ga(e+o,0)),Gt(t,Uu(n),o)}var Ha=Za(Ja);function Ya(t,n,r){var e;return r(t,(function(t,r,o){if(n(t,r,o))return e=r,!1})),e}var Xa=Math.max,Qa=Math.min;function tc(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=e-1;return void 0!==r&&(o=K(r),o=r<0?Xa(e+o,0):Qa(o,e-1)),Gt(t,Uu(n),o,!0)}var nc=Za(tc);function rc(t){return t&&t.length?t[0]:void 0}function ec(t,n){var r=-1,e=Yn(t)?Array(t.length):[];return Zu(t,(function(t,o,i){e[++r]=n(t,o,i)})),e}function oc(t,n){return(O(t)?x:ec)(t,Uu(n))}var ic=So("floor");function uc(t){return le((function(n){var r=n.length,e=r,o=Mt.prototype.thru;for(t&&n.reverse();e--;){var i=n[e];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!u&&"wrapper"==Wt(i))var u=new Mt([],!0)}for(e=u?e:r;++en}function hc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=N(n),r=N(r)),t(n,r)}}var vc=hc(pc),dc=hc((function(t,n){return t>=n})),yc=Object.prototype.hasOwnProperty;function gc(t,n){return null!=t&&yc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&g(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,kr(t))}var Oc=Math.max,Ac=Math.max,Ec=Math.min;function kc(t,n,r){for(var e=r?_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,vr(n))),c=Ec(l.length,c),a[u]=!r&&(n||o>=120&&l.length>=120)?new Gi(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Kn(t,Ho(t),r),e&&(r=Zi(r,7,Of));for(var o=n.length;o--;)xf(r,n[o]);return r}));function Ef(t,n,r,e){if(!P(t))return t;for(var o=-1,i=(n=Qr(n,t)).length,u=i-1,a=t;null!=a&&++on||i&&u&&c&&!a&&!f||e&&u&&c||!r&&c||!o)return 1;if(!e&&!i&&!f&&t=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function Mf(t){return le((function(n){return n=x(n,vr(Uu)),Gn((function(r){var e=this;return t(n,(function(t){return _t(t,e,r)}))}))}))}var Rf=Mf(x),Bf=Gn,zf=Math.min,Pf=Bf((function(t,n){var r=(n=1==n.length&&O(n[0])?x(n[0],vr(Uu)):x(ce(n,1),vr(Uu))).length;return Gn((function(e){for(var o=-1,i=zf(e.length,r);++oTf)return r;do{n%2&&(r+=t),(n=Df(n/2))&&(t+=t)}while(n);return r}var Nf=Tu("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]",Jf="(?:"+$f+"|"+Kf+")?",Hf="[\\ufe0e\\ufe0f]?",Yf=Hf+Jf+"(?:\\u200d(?:"+[Vf,Zf,Gf].join("|")+")"+Hf+Jf+")*",Xf="(?:"+[Vf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Qf=RegExp(Kf+"(?="+Kf+")|"+Xf+Yf,"g");function tl(t){return Se(t)?function(t){for(var n=Qf.lastIndex=0;Qf.test(t);)++n;return n}(t):Nf(t)}var nl=Math.ceil;function rl(t,n){var r=(n=void 0===n?" ":I(n)).length;if(r<2)return r?Uf(n,t):n;var e=Uf(n,nl(t/tl(n)));return Se(n)?ke(Fe(e),0,t).join(""):e.slice(0,t)}var el=Math.ceil,ol=Math.floor,il=/^\s+/,ul=a.parseInt,al=Gn((function(t,n){return Dn(t,32,void 0,n,vn(n,cn(al)))}));al.placeholder={};var cl=Gn((function(t,n){return Dn(t,64,void 0,n,vn(n,cn(cl)))}));cl.placeholder={};var fl=Ju((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),ll=le((function(t,n){return null==t?{}:function(t,n){return kf(t,n,(function(n,r){return zu(t,r)}))}(t,n)}));function sl(t,n,r,e){for(var o=r-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),yl=Array.prototype.splice;function gl(t,n){for(var r=t?n.length:0,e=r-1;r--;){var o=n[r];if(r==e||o!==i){var i=o;sn(o)?yl.call(t,o,1):xf(t,o)}}return t}var _l=le((function(t,n){var r=null==t?0:t.length,e=oe(t,n);return gl(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,El=Math.max;function kl(t){return function(n,r,e){return e&&"number"!=typeof e&&Xn(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 o=-1,i=El(Al((n-t)/(r||1)),0),u=Array(i);i--;)u[e?i:++o]=t,t+=r;return u}(n,r,e=void 0===e?n1&&Xn(t,n[0],n[1])?n=[]:r>2&&Xn(n[0],n[1],n[2])&&(n=[n[0]]),Wf(t,ce(n,1),[])})),Vl=4294967294,Zl=Math.floor,Gl=Math.min;function Jl(t,n,r,e){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(n=r(n))!=n,a=null===n,c=m(n),f=void 0===n;o>>1,u=t[i];null!==u&&!m(u)&&(r?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 ys(t,n){return n(t)}var gs=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,ie([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({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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 Ws(t,n,r){var e=-1,o=Yt,i=t.length,u=!0,a=[],c=a;if(r)u=!1,o=_a;else if(i>=Ss){var f=n?null:Is(t);if(f)return nu(f);u=!1,o=Hi,c=new Gi}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof At&&sn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ys,args:[o],thisArg:void 0}),new Mt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function Fs(t,n,r){var e=t.length;if(e<2)return e?Ws(t[0]):[];for(var o=-1,i=Array(e);++o1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Ls(t,r)})),Ys={chunk:function(t,n,r){n=(r?Xn(t,n,r):void 0===n)?1:Bo(K(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var o=0,i=0,u=Array(Ro(e/n));oo?0:o+r),(e=void 0===e||e>o?o:K(e))<0&&(e+=o),e=r>e?0:Ka(e);r-1:!!o&&Ht(t,n,r)>-1},invokeMap:Fc,keyBy:rf,map:oc,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]),Wf(t,n,r))},partition:fl,reduce:function(t,n,r){var e=O(t)?Ve:Ml,o=arguments.length<3;return e(t,Uu(n),r,o,Zu)},reduceRight:function(t,n,r){var e=O(t)?Rl:Ml,o=arguments.length<3;return e(t,Uu(n),r,o,Ra)},reject:function(t,n){return(O(t)?Fo:Va)(t,bf(Uu(n)))},sample:function(t){return(O(t)?Cl:Ll)(t)},sampleSize:function(t,n,r){return n=(r?Xn(t,n,r):void 0===n)?1:K(n),(O(t)?Dl: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:Er(t).length},some:function(t,n,r){var e=O(t)?Ji:$l;return r&&Xn(t,n,r)&&(n=void 0),e(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:we,bind:xe,bindKey:Ae,curry:Xu,curryRight:Qu,debounce:ea,defer:ya,delay:ga,flip:function(t){return Dn(t,512)},memoize:Gr,negate:bf,once:function(t){return we(2,t)},overArgs:Pf,partial:al,partialRight:cl,rearg:Wl,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(r){var e=r[n],o=ke(r,0,n);return e&&ie(o,e),_t(t,this,o)}))},throttle:function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return P(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),ea(t,n,{leading:e,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,kr(n))},eq:Fn,gt:vc,gte:dc,isArguments:ar,isArray:O,isArrayBuffer:$c,isArrayLike:Yn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==g(t)},isBuffer:pr,isDate:Vc,isElement:function(t){return _(t)&&1===t.nodeType&&!be(t)},isEmpty:function(t){if(null==t)return!0;if(Yn(t)&&(O(t)||"string"==typeof t||"function"==typeof t.splice||pr(t)||mr(t)||ar(t)))return!t.length;var n=si(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(nr(t))return!Er(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:Y,isInteger:Jc,isLength:Hn,isMap:Ui,isMatch:function(t,n){return t===n||ku(t,n,Su(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,ku(t,n,Su(n),r)},isNaN:function(t){return Hc(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:Hc,isObject:P,isObjectLike:_,isPlainObject:be,isRegExp:Qc,isSafeInteger:function(t){return Jc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Fi,isString:jc,isSymbol:m,isTypedArray:mr,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return _(t)&&"[object WeakMap]"==si(t)},isWeakSet:function(t){return _(t)&&"[object WeakSet]"==g(t)},lt:ff,lte:lf,toArray:jf,toFinite:$,toInteger:K,toLength:Ka,toNumber:N,toPlainObject:la,toSafeInteger:function(t){return t?zo(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Xr},rp={add:W,ceil:Wo,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:Pl,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}},ep={assign:Sr,assignIn:Rr,assignInWith:Br,assignWith:zr,at:se,create:function(t,n){var r=dt(t);return null==n?r:Co(r,n)},defaults:ua,defaultsDeep:va,entries:Pa,entriesIn:Ca,extend:Rr,extendWith:Br,findKey:function(t,n){return Ya(t,Uu(n),Ku)},findLastKey:function(t,n){return Ya(t,Uu(n),Ma)},forIn:function(t,n){return null==t?t:$u(t,ka(n),Mr)},forInRight:function(t,n){return null==t?t:Wa(t,ka(n),Mr)},forOwn:function(t,n){return t&&Ku(t,ka(n))},forOwnRight:function(t,n){return t&&Ma(t,ka(n))},functions:function(t){return null==t?[]:fc(t,kr(t))},functionsIn:function(t){return null==t?[]:fc(t,Mr(t))},get:ee,has:function(t,n){return null!=t&&Bu(t,n,gc)},hasIn:zu,invert:zc,invertBy:Tc,invoke:Nc,keys:kr,keysIn:Mr,mapKeys:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,o){Nn(r,n(t,e,o),t)})),r},mapValues:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,o){Nn(r,e,n(t,e,o))})),r},merge:vf,mergeWith:ha,omit:Af,omitBy:function(t,n){return If(t,bf(Uu(n)))},pick:ll,pickBy:If,result:function(t,n,r){var e=-1,o=(n=Qr(n,t)).length;for(o||(o=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=Bt(r);e.__index__=0,e.__values__=void 0,n?o.__wrapped__=e:n=e;var o=e;r=r.__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:ys,args:[zl],thisArg:void 0}),new Mt(n,this.__chain__)}return this.thru(zl)},tap:function(t,n){return n(t),t},thru:ys,toIterator:function(){return this},toJSON:ms,value:ms,valueOf:ms,wrapperChain:function(){return Mo(this)}},ip={camelCase:Eo,capitalize:Ke,deburr:Ye,endsWith:function(t,n,r){t=Xr(t),n=I(n);var e=t.length,o=r=void 0===r?e:zo(K(r),0,e);return(r-=n.length)>=0&&t.slice(r,o)==n},escape:Ua,escapeRegExp:function(t){return(t=Xr(t))&&Fa.test(t)?t.replace(Na,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,r){t=Xr(t);var e=(n=K(n))?tl(t):0;if(!n||e>=n)return t;var o=(n-e)/2;return rl(ol(o),r)+t+rl(el(o),r)},padEnd:function(t,n,r){t=Xr(t);var e=(n=K(n))?tl(t):0;return n&&e>>0)?(t=Xr(t))&&("string"==typeof n||null!=n&&!Qc(n))&&!(n=I(n))&&Se(t)?ke(Fe(t),0,r):t.split(n,r):[]},startCase:Ql,startsWith:function(t,n,r){return t=Xr(t),r=null==r?0:zo(K(r),0,t.length),n=I(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=as.imports._.templateSettings||as;r&&Xn(t,n,r)&&(n=void 0),t=Xr(t),n=Br({},n,e,es);var o,i,u=Br({},n.imports,e.imports,es),a=kr(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,is),r&&(o=!0,s+="' +\n__e("+r+") +\n'"),a&&(i=!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=(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=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 Xr(t).toLowerCase()},toUpper:function(t){return Xr(t).toUpperCase()},trim:function(t,n,r){if((t=Xr(t))&&(r||void 0===n))return z(t);if(!t||!(n=I(n)))return t;var e=Fe(t),o=Fe(n);return ke(e,ws(e,o),js(e,o)+1).join("")},trimEnd:function(t,n,r){if((t=Xr(t))&&(r||void 0===n))return t.slice(0,R(t)+1);if(!t||!(n=I(n)))return t;var e=Fe(t);return ke(e,0,js(e,Fe(n))+1).join("")},trimStart:function(t,n,r){if((t=Xr(t))&&(r||void 0===n))return t.replace(xs,"");if(!t||!(n=I(n)))return t;var e=Fe(t);return ke(e,ws(e,Fe(n))).join("")},truncate:function(t,n){var r=30,e="...";if(P(n)){var o="separator"in n?n.separator:o;r="length"in n?K(n.length):r,e="omission"in n?I(n.omission):e}var i=(t=Xr(t)).length;if(Se(t)){var u=Fe(t);i=u.length}if(r>=i)return t;var a=r-tl(e);if(a<1)return e;var c=u?ke(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+e;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,Xr(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+e},unescape:function(t){return(t=Xr(t))&&ks.test(t)?t.replace(Es,As):t},upperCase:Ds,upperFirst:$e,words:xo},up={attempt:je,bindAll:Oe,cond:function(t){var n=null==t?0:t.length,r=Uu;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;++e9007199254740991)return[];var r=gs,e=_s(t,gs);n=ka(n),t-=gs;for(var o=rr(e,n);++r=bc(n,r)&&t<_c(n,r)}(t=N(t),n,r)},Pt.invoke=ep.invoke,Pt.isArguments=np.isArguments,Pt.isArray=O,Pt.isArrayBuffer=np.isArrayBuffer,Pt.isArrayLike=np.isArrayLike,Pt.isArrayLikeObject=np.isArrayLikeObject,Pt.isBoolean=np.isBoolean,Pt.isBuffer=np.isBuffer,Pt.isDate=np.isDate,Pt.isElement=np.isElement,Pt.isEmpty=np.isEmpty,Pt.isEqual=np.isEqual,Pt.isEqualWith=np.isEqualWith,Pt.isError=np.isError,Pt.isFinite=np.isFinite,Pt.isFunction=np.isFunction,Pt.isInteger=np.isInteger,Pt.isLength=np.isLength,Pt.isMap=np.isMap,Pt.isMatch=np.isMatch,Pt.isMatchWith=np.isMatchWith,Pt.isNaN=np.isNaN,Pt.isNative=np.isNative,Pt.isNil=np.isNil,Pt.isNull=np.isNull,Pt.isNumber=np.isNumber,Pt.isObject=P,Pt.isObjectLike=np.isObjectLike,Pt.isPlainObject=np.isPlainObject,Pt.isRegExp=np.isRegExp,Pt.isSafeInteger=np.isSafeInteger,Pt.isSet=np.isSet,Pt.isString=np.isString,Pt.isSymbol=np.isSymbol,Pt.isTypedArray=np.isTypedArray,Pt.isUndefined=np.isUndefined,Pt.isWeakMap=np.isWeakMap,Pt.isWeakSet=np.isWeakSet,Pt.join=Ys.join,Pt.kebabCase=ip.kebabCase,Pt.last=wa,Pt.lastIndexOf=Ys.lastIndexOf,Pt.lowerCase=ip.lowerCase,Pt.lowerFirst=ip.lowerFirst,Pt.lt=np.lt,Pt.lte=np.lte,Pt.max=rp.max,Pt.maxBy=rp.maxBy,Pt.mean=rp.mean,Pt.meanBy=rp.meanBy,Pt.min=rp.min,Pt.minBy=rp.minBy,Pt.stubArray=up.stubArray,Pt.stubFalse=up.stubFalse,Pt.stubObject=up.stubObject,Pt.stubString=up.stubString,Pt.stubTrue=up.stubTrue,Pt.multiply=rp.multiply,Pt.nth=Ys.nth,Pt.noop=up.noop,Pt.now=Qs,Pt.pad=ip.pad,Pt.padEnd=ip.padEnd,Pt.padStart=ip.padStart,Pt.parseInt=ip.parseInt,Pt.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Xn(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 o=Ol();return xl(t+o*(n-t+wl("1e-"+((o+"").length-1))),n)}return jl(t,n)},Pt.reduce=Xs.reduce,Pt.reduceRight=Xs.reduceRight,Pt.repeat=ip.repeat,Pt.replace=ip.replace,Pt.result=ep.result,Pt.round=rp.round,Pt.sample=Xs.sample,Pt.size=Xs.size,Pt.snakeCase=ip.snakeCase,Pt.some=Xs.some,Pt.sortedIndex=Ys.sortedIndex,Pt.sortedIndexBy=Ys.sortedIndexBy,Pt.sortedIndexOf=Ys.sortedIndexOf,Pt.sortedLastIndex=Ys.sortedLastIndex,Pt.sortedLastIndexBy=Ys.sortedLastIndexBy,Pt.sortedLastIndexOf=Ys.sortedLastIndexOf,Pt.startCase=ip.startCase,Pt.startsWith=ip.startsWith,Pt.subtract=rp.subtract,Pt.sum=rp.sum,Pt.sumBy=rp.sumBy,Pt.template=ip.template,Pt.times=up.times,Pt.toFinite=np.toFinite,Pt.toInteger=K,Pt.toLength=np.toLength,Pt.toLower=ip.toLower,Pt.toNumber=np.toNumber,Pt.toSafeInteger=np.toSafeInteger,Pt.toString=np.toString,Pt.toUpper=ip.toUpper,Pt.trim=ip.trim,Pt.trimEnd=ip.trimEnd,Pt.trimStart=ip.trimStart,Pt.truncate=ip.truncate,Pt.unescape=ip.unescape,Pt.uniqueId=up.uniqueId,Pt.upperCase=ip.upperCase,Pt.upperFirst=ip.upperFirst,Pt.each=Xs.forEach,Pt.eachRight=Xs.forEachRight,Pt.first=Ys.head,yp(Pt,(Gs={},Ku(Pt,(function(t,n){pp.call(Pt.prototype,n)||(Gs[n]=t)})),Gs),{chain:!1}),Pt.VERSION="4.17.21",(Pt.templateSettings=ip.templateSettings).imports._=Pt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Pt[t].placeholder=Pt})),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:Uu(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 Uc(r,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(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),o=Pt[e?"take"+("last"==n?"Right":""):n],i=e||/^find/.test(n);o&&(Pt.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=o.apply(Pt,ie([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=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:ys,args:[l],thisArg:void 0}),new Mt(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);Pt.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var o=this.value();return n.apply(O(o)?o:[],t)}return this[r]((function(r){return n.apply(O(r)?r:[],t)}))}})),Ku(At.prototype,(function(t,n){var r=Pt[n];if(r){var e=r.name+"";pp.call(It,e)||(It[e]=[]),It[e].push({name:n,func:r})}})),It[jn(void 0,2).name]=[{name:"wrapper",func:void 0}],At.prototype.clone=function(){var t=new At(this.__wrapped__);return t.__actions__=Rt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Rt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Rt(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,o=r?t.length:0,i=function(t,n,r){for(var e=-1,o=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 o=gp(t),i=(0,e.useMemo)((()=>ea(o,n,r)),[o,n,r]);return(t=>{const n=gp(t);(0,e.useEffect)((()=>()=>n()),[n])})((()=>i.cancel())),i},bp=({children:t,capture:n,wait:r,options:o})=>{const i=e.Children.only(t),u=_p(((...t)=>{const r=null==i?void 0:i.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,o);return(0,e.cloneElement)(i,{[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 o=0;for(e=Object.getOwnPropertySymbols(t);o{const u=(0,e.useRef)(null),a=gp(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:i,threshold:o});return n.observe(t),()=>{n.unobserve(t)}}),[r,o,i,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:i,root:u,rootMargin:a}=t,c=mp(t,["action","calledOnce","threshold","root","rootMargin"]),f=jp({action:r,calledOnce:e,threshold:i,root:u,rootMargin:a});return(0,o.jsx)("div",Object.assign({ref:wp(n,f)},c,{children:t.children}))})),Op=(0,e.forwardRef)(((t,n)=>{var{src:r,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=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,e.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()?e.useLayoutEffect:e.useEffect;(0,e.createContext)({parentPortalElement:null});const Ip=({children:t,condition:n})=>{const r=(t=>"function"==typeof t?t():t)(n);return r?(0,o.jsx)(e.Fragment,{children:t}):null},Sp=t=>!!Ep()&&window.matchMedia(t).matches,Wp=t=>{const[n,r]=(0,e.useState)(Sp(t)),o=(0,e.useCallback)((()=>{r(Sp(t))}),[t]);return(0,e.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)}),[t,o]),{isMatch:n}},Mp=t=>{const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current},Rp=t=>{const[n,r]=(0,e.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),o=(0,e.useRef)(null),i=gp(t),u=(0,e.useCallback)((([t])=>{t&&(i(t),r(t.contentRect))}),[i]);return(0,e.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}},Bp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[o,i]=(0,e.useState)({width:null,height:null}),u=(0,e.useCallback)((()=>{i({width:window.innerWidth,height:window.innerHeight})}),[]),a=_p(u,r),c=(0,e.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/b3bf5b56.31659840.js b/assets/js/b3bf5b56.31659840.js deleted file mode 100644 index 8ca9c7a4d..000000000 --- a/assets/js/b3bf5b56.31659840.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1175],{6627:(t,n,r)=>{r.r(n),r.d(n,{DebounceExample:()=>h,DefaultExample:()=>p,assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>a,metadata:()=>f,toc:()=>s});var e=r(5735),i=r(289),o=r(5474),u=r(4614);const a={},c="useWindowSize",f={id:"react/hooks/useWindowSize",title:"useWindowSize",description:"\ud604\uc7ac \ube0c\ub77c\uc6b0\uc800 \ucc3d\uc758 \ub108\ube44\uc640 \ub192\uc774 \uc815\ubcf4\ub97c \ucd94\uc801\ud558\uace0, \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4. \ub610\ud55c, \ubd88 \ud544\uc694\ud55c \ud638\ucd9c\uc744 \ubc29\uc9c0\ud558\uae30\uc704\ud55c debounce \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useWindowSize.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useWindowSize",permalink:"/modern-kit/docs/react/hooks/useWindowSize",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useWindowScrollTo",permalink:"/modern-kit/docs/react/hooks/useWindowScrollTo"},next:{title:"abRandom",permalink:"/modern-kit/docs/utils/common/abRandom"}},l={},s=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Default",id:"default",level:3},{value:"Debounce",id:"debounce",level:3}],p=()=>{const t={br:"br",div:"div",...(0,i.a)()},n=(0,o.iP)(),r=(0,u.useMemo)((()=>({width:"100%",background:"#439966",fontSize:"2rem",color:"#fff"})),[]);return(0,e.jsxs)(t.div,{style:r,children:["\ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694. ",(0,e.jsx)(t.br,{}),"width: ",n.width,"px ",(0,e.jsx)(t.br,{}),"height: ",n.height,"px"]})},h=()=>{const t={br:"br",div:"div",...(0,i.a)()},n=(0,o.iP)({isDebounce:!0,wait:300}),r=(0,u.useMemo)((()=>({width:"100%",background:"#0067A3",fontSize:"2rem",color:"#fff"})),[]);return(0,e.jsxs)(t.div,{style:r,children:["\ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694. ",(0,e.jsx)(t.br,{}),"width: ",n.width,"px ",(0,e.jsx)(t.br,{}),"height: ",n.height,"px"]})};function v(t){const n={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:"usewindowsize",children:"useWindowSize"}),"\n",(0,e.jsxs)(n.p,{children:["\ud604\uc7ac \ube0c\ub77c\uc6b0\uc800 \ucc3d\uc758 \ub108\ube44\uc640 \ub192\uc774 \uc815\ubcf4\ub97c \ucd94\uc801\ud558\uace0, \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4. \ub610\ud55c, \ubd88 \ud544\uc694\ud55c \ud638\ucd9c\uc744 \ubc29\uc9c0\ud558\uae30\uc704\ud55c ",(0,e.jsx)(n.code,{children:"debounce"})," \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4."]}),"\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 Size {\n width: number | null;\n height: number | null;\n}\n\ninterface useWindowSizeProps {\n isDebounce?: boolean; // debounce options, default: false\n wait?: number; // debounce delay time, default: 300\n}\n\nconst useWindowSize: (options?: useWindowSizeProps) => Size\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 { useWindowSize } from '@modern-kit/react';\n\nconst Example = () => {\n const windowSize = useWindowSize();\n const boxStyle = useMemo(() => {\n return {\n width: '100%', \n background: '#439966', \n fontSize: '2rem',\n color: '#fff',\n }\n }, []);\n\n return (\n
\n \ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694.
\n width: {windowSize.width}px
\n height: {windowSize.height}px\n
\n );\n};\n"})}),"\n","\n",(0,e.jsx)(p,{}),"\n",(0,e.jsx)("br",{}),"\n",(0,e.jsx)(n.h3,{id:"debounce",children:"Debounce"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { useWindowSize } from '@modern-kit/react';\n\nconst DebounceExample = () => {\n const windowSize = useWindowSize({ isDebounce: true, wait: 300 });\n const boxStyle = useMemo(() => {\n return {\n width: '100%', \n background: '#0067A3', \n fontSize: '2rem',\n color: '#fff',\n }\n }, []);\n\n return (\n
\n \ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694.
\n width: {windowSize.width}px
\n height: {windowSize.height}px\n
\n );\n};\n"})}),"\n","\n",(0,e.jsx)(h,{}),"\n",(0,e.jsx)("br",{})]})}function d(t={}){const{wrapper:n}={...(0,i.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(v,{...t})}):v(t)}},289:(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,{AB:()=>f,D9:()=>Wp,ac:()=>Mp,df:()=>Ap,iP:()=>Rp,nA:()=>kp,uM:()=>wp,wY:()=>Ep,yU:()=>zp});var e=r(5735),i=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const o=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!o(),c=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),(0,i.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=i.Children.toArray(t);let e=0,o=0;if(2!==r.length)return null;for(const i of r){if(![f.CaseA,f.CaseB].includes(i.type))return null;i.type===f.CaseA?e+=1:o+=1}return e>=2||o>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})};var l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",w=h?h.toStringTag:void 0;function j(t){return null==t?void 0===t?m:b:w&&w in Object(t)?function(t){var n=d.call(t,g),r=t[g];try{t[g]=void 0;var e=!0}catch(t){}var i=y.call(t);return e&&(n?t[g]=r:delete t[g]),i}(t):function(t){return _.call(t)}(t)}function x(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||x(t)&&j(t)==O}var E=NaN;function S(t){return"number"==typeof t?t:A(t)?E:+t}function k(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Gt(t){return function(){return t}}var Ht=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Jt=qt(Ht?function(t,n){return Ht(t,"toString",{configurable:!0,enumerable:!1,value:Gt(n),writable:!0})}:Y);function Yt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Jt(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Yt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Kt);return n?n[1].split(Vt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,ln=64;function sn(t,n,r,e,i,o,u,a,c,f){var l=n&cn;n|=l?fn:ln,(n&=~(l?ln:fn))&an||(n&=~(on|un));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 Nt(t)&&$t(p,s),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?hn:n)&&("number"==r||"symbol"!=r&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&c<_&&(b.length=c),this&&this!==p&&this instanceof g&&(A=y||wt(A)),A.apply(O,b)}}var En=1,Sn="__lodash_placeholder__",kn=1,In=2,Mn=4,Wn=8,zn=128,Rn=256,Bn=Math.min,Cn="Expected a function",Pn=1,Ln=2,Dn=8,Tn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,r,e,i,o,u,a){var c=n&Ln;if(!c&&"function"!=typeof t)throw new TypeError(Cn);var f=e?e.length:0;if(f||(n&=~(Un|Nn),e=i=void 0),u=void 0===u?u:Fn(J(u),0),a=void 0===a?a:J(a),f-=i?i.length:0,n&Nn){var l=e,s=i;e=i=void 0}var h=c?void 0:zt(t),v=[t,n,r,e,i,l,s,o,u,a];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(kn|In|zn),u=e==zn&&r==Wn||e==zn&&r==Rn&&t[7].length<=n[8]||e==(zn|Rn)&&n[7].length<=n[8]&&r==Wn;if(!o&&!u)return t;e&kn&&(t[2]=n[2],i|=r&kn?0:Mn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],Sn):n[4]}(a=n[5])&&(c=t[5],t[5]=c?St(c,a,n[6]):a,t[6]=c?_n(t[5],Sn):n[6]),(a=n[7])&&(t[7]=a),e&zn&&(t[8]=null==t[8]?n[8]:Bn(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],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Dn|Tn)&&(n&=~(Dn|Tn)),n&&n!=Pn)d=n==Dn||n==Tn?function(t,n,r){var e=wt(t);return function i(){for(var o=arguments.length,u=Array(o),a=o,c=pn(i);a--;)u[a]=arguments[a];var f=o<3&&u[0]!==c&&u[o-1]!==c?[]:_n(u,c);return(o-=f.length)-1&&t%1==0&&t<=Xn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!U(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Vn(r[n],t)}function er(t){return Qn((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&&rr(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},Gr.prototype.set=function(t,n){var r=this.__data__,e=Vr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Hr=dt(p,"Map");function Jr(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 Yr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,i):fe(i,a):e||(i[i.length]=a)}return i}function he(t){return null!=t&&t.length?pe(t,1):[]}function ve(t){return Jt(Yn(t,void 0,he),t+"")}var de=ve(ce),ye=Sr(Object.getPrototypeOf,Object),ge="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,we=be.hasOwnProperty,je=me.call(Object);function xe(t){if(!x(t)||j(t)!=ge)return!1;var n=ye(t);if(null===n)return!0;var r=we.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==je}function Oe(t){if(!x(t))return!1;var n=j(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!xe(t)}var Ae=Qn((function(t,n){try{return xt(t,void 0,n)}catch(t){return Oe(t)?t:new Error(t)}}));function Ee(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var Se=Qn((function(t,n,r){var e=1;if(r.length){var i=_n(r,pn(Se));e|=32}return qn(t,e,n,r,i)}));Se.placeholder={};var ke=ve((function(t,n){return Yt(n,(function(n){n=oe(n),Kn(t,n,Se(t[n],t))})),t})),Ie=Qn((function(t,n,r){var e=3;if(r.length){var i=_n(r,pn(Ie));e|=32}return qn(n,e,t,r,i)}));function Me(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:Me(t,n,r)}Ie.placeholder={};var ze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Re(t){return ze.test(t)}var Be="\\ud800-\\udfff",Ce="["+Be+"]",Pe="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Le="\\ud83c[\\udffb-\\udfff]",De="[^"+Be+"]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="(?:"+Pe+"|"+Le+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ne+"(?:\\u200d(?:"+[De,Te,Ue].join("|")+")"+Fe+Ne+")*",$e="(?:"+[De+Pe+"?",Pe,Te,Ue,Ce].join("|")+")",Ke=RegExp(Le+"(?="+Le+")|"+$e+qe,"g");function Ve(t){return Re(t)?function(t){return t.match(Ke)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=Re(n=re(n))?Ve(n):void 0,e=r?r[0]:n.charAt(0),i=r?We(r,1).join(""):n.slice(1);return e[t]()+i}}var Ge=Ze("toUpperCase");function He(t){return Ge(re(t).toLowerCase())}function Je(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 Di(t){var n=this.__data__=new Gr(t);this.size=n.size}function Ti(t,n){return t&&Hn(n,Wr(n),t)}Di.prototype.clear=function(){this.__data__=new Gr,this.size=0},Di.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Di.prototype.get=function(t){return this.__data__.get(t)},Di.prototype.has=function(t){return this.__data__.has(t)},Di.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!Hr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(t,n),this.size=r.size,this};var Ui="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ni=Ui&&"object"==typeof module&&module&&!module.nodeType&&module,Fi=Ni&&Ni.exports===Ui?p.Buffer:void 0,qi=Fi?Fi.allocUnsafe:void 0;function $i(t,n){if(n)return t.slice();var r=t.length,e=qi?qi(r):new t.constructor(r);return t.copy(e),e}function Ki(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))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&ru?new Qo:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-f>=o}function d(){var t=ia();if(v(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ua(r,o-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function g(){var t=ia(),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=V(n)||0,U(r)&&(l=!!r.leading,o=(s="maxWait"in r)?oa(V(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(ia())},g}var ca=Object.prototype,fa=ca.hasOwnProperty,la=Qn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&rr(n[0],n[1],i)&&(e=1);++r=xa&&(o=tu,u=!1,n=new Qo(n));t:for(;++i":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Na):t}var Ka=/[\\^$.*+?()[\]{}|]/g,Va=RegExp(Ka.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?i[o?n[u]:u]:void 0}}var Qa=Math.max;function Xa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:J(r);return i<0&&(i=Qa(e+i,0)),Qt(t,$u(n),i)}var tc=Ya(Xa);function nc(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function ic(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=J(r),i=r<0?rc(e+i,0):ec(i,e-1)),Qt(t,$u(n),i,!0)}var oc=Ya(ic);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Yu(t,(function(t,i,o){e[++r]=n(t,i,o)})),e}function cc(t,n){return(I(t)?k:ac)(t,$u(n))}var fc=zi("floor");function lc(t){return ve((function(n){var r=n.length,e=r,i=Pt.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"==Ct(o))var u=new Pt([],!0)}for(e=u?e:r;++en}function gc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=V(n),r=V(r)),t(n,r)}}var _c=gc(yc),bc=gc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function wc(t,n){return null!=t&&mc.call(t,n)}var jc=Math.max,xc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!I(t)&&x(t)&&j(t)==Oc}function Ec(t,n){return k(n,(function(n){return t[n]}))}function Sc(t){return null==t?[]:Ec(t,Wr(t))}var kc=Math.max,Ic=Math.max,Mc=Math.min;function Wc(t,n,r){for(var e=r?ja:nn,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=k(l,_r(n))),c=Mc(l.length,c),a[u]=!r&&(n||i>=120&&l.length>=120)?new Qo(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Hn(t,Xi(t),r),e&&(r=Yo(r,7,kf));for(var i=n.length;i--;)Sf(r,n[i]);return r}));function Mf(t,n,r,e){if(!U(t))return t;for(var i=-1,o=(n=ee(n,t)).length,u=o-1,a=t;null!=a&&++in||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 Cf(t){return ve((function(n){return n=k(n,_r($u)),Qn((function(r){var e=this;return t(n,(function(t){return xt(t,e,r)}))}))}))}var Pf=Cf(k),Lf=Qn,Df=Math.min,Tf=Lf((function(t,n){var r=(n=1==n.length&&I(n[0])?k(n[0],_r($u)):k(pe(n,1),_r($u))).length;return Qn((function(e){for(var i=-1,o=Df(e.length,r);++iFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Kf=Fu("length"),Vf="\\ud800-\\udfff",Zf="["+Vf+"]",Gf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Hf="\\ud83c[\\udffb-\\udfff]",Jf="[^"+Vf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Qf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="(?:"+Gf+"|"+Hf+")?",tl="[\\ufe0e\\ufe0f]?",nl=tl+Xf+"(?:\\u200d(?:"+[Jf,Yf,Qf].join("|")+")"+tl+Xf+")*",rl="(?:"+[Jf+Gf+"?",Gf,Yf,Qf,Zf].join("|")+")",el=RegExp(Hf+"(?="+Hf+")|"+rl+nl,"g");function il(t){return Re(t)?function(t){for(var n=el.lastIndex=0;el.test(t);)++n;return n}(t):Kf(t)}var ol=Math.ceil;function ul(t,n){var r=(n=void 0===n?" ":R(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,ol(t/il(n)));return Re(n)?We(Ve(e),0,t).join(""):e.slice(0,t)}var al=Math.ceil,cl=Math.floor,fl=/^\s+/,ll=p.parseInt,sl=Qn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(sl)))}));sl.placeholder={};var pl=Qn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(pl)))}));pl.placeholder={};var hl=Xu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),vl=ve((function(t,n){return null==t?{}:function(t,n){return Wf(t,n,(function(n,r){return Du(t,r)}))}(t,n)}));function dl(t,n,r,e){for(var i=r-1,o=t.length;++i-1;)a!==t&&yl.call(a,c,1),yl.call(t,c,1);return t}function _l(t,n){return t&&t.length&&n&&n.length?gl(t,n):t}var bl=Qn(_l),ml=Array.prototype.splice;function wl(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;dn(i)?ml.call(t,i,1):Sf(t,i)}}return t}var jl=ve((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return wl(t,k(n,(function(t){return dn(t,r)?+t:t})).sort(Rf)),e})),xl=Math.floor,Ol=Math.random;function Al(t,n){return t+xl(Ol()*(n-t+1))}var El=parseFloat,Sl=Math.min,kl=Math.random,Il=Math.ceil,Ml=Math.max;function Wl(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=H(n),void 0===r?(r=n,n=0):r=H(r),function(t,n,r,e){for(var i=-1,o=Ml(Il((n-t)/(r||1)),0),u=Array(o);o--;)u[e?o:++i]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),Bf(t,pe(n,1),[])})),Jl=4294967294,Yl=Math.floor,Ql=Math.min;function Xl(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=A(n),f=void 0===n;i>>1,u=t[o];null!==u&&!A(u)&&(r?u<=n:u/g,ss={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ls,variable:"",imports:{_:{escape:$a}}},ps=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ds=/[()=,{}\[\]\/\s]/,ys=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gs=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,bs=Object.prototype.hasOwnProperty;function ms(t,n){return n(t)}var ws=4294967295,js=Math.min;function xs(t,n){var r=t;return r instanceof Mt&&(r=r.value()),Je(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function Os(){return xs(this.__wrapped__,this.__actions__)}function As(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function Es(t,n){for(var r=-1,e=t.length;++r-1;);return r}var Ss=/^\s+/,ks=/\w*$/,Is=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ms=/&(?:amp|lt|gt|quot|#39);/g,Ws=RegExp(Ms.source),zs=ro&&1/ou(new ro([,-0]))[1]==1/0?function(t){return new ro(t)}:Wt,Rs=200;function Bs(t,n,r){var e=-1,i=nn,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=ja;else if(o>=Rs){var f=n?null:zs(t);if(f)return ou(f);u=!1,i=tu,c=new Qo}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof Mt&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:void 0}),new Pt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Vs(t,n,r){var e=t.length;if(e<2)return e?Bs(t[0]):[];for(var i=-1,o=Array(e);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Ns(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Pi(J(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,o=0,u=Array(Ci(e/n));ii?0:i+r),(e=void 0===e||e>i?i:J(e))<0&&(e+=i),e=r>e?0:Ha(e);r-1:!!i&&tn(t,n,r)>-1},invokeMap:Vc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(I(n)||(n=null==n?[]:[n]),I(r=e?void 0:r)||(r=null==r?[]:[r]),Bf(t,n,r))},partition:hl,reduce:function(t,n,r){var e=I(t)?Je:Cl,i=arguments.length<3;return e(t,$u(n),r,i,Yu)},reduceRight:function(t,n,r){var e=I(t)?Pl:Cl,i=arguments.length<3;return e(t,$u(n),r,i,Pa)},reject:function(t,n){return(I(t)?Ki:Ja)(t,xf($u(n)))},sample:function(t){return(I(t)?Ul:Nl)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:J(n),(I(t)?ql:$l)(t,n)},shuffle:function(t){return(I(t)?Kl:Vl)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Ac(t)?il(t):t.length;var n=vo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Mr(t).length},some:function(t,n,r){var e=I(t)?Xo:Gl;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Hl},rp=ia,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ee,bind:Se,bindKey:Ie,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:wa,flip:function(t){return qn(t,512)},memoize:Qr,negate:xf,once:function(t){return Ee(2,t)},overArgs:Tf,partial:sl,partialRight:pl,rearg:Bl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Qn(t,n=void 0===n?n:J(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rs(J(n),0),Qn((function(r){var e=r[n],i=We(r,0,n);return e&&fe(i,e),xt(t,this,i)}))},throttle:function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),aa(t,n,{leading:e,maxWait:n,trailing:i})},unary:function(t){return $n(t,1)},wrap:function(t,n){return sl(Wa(n),t)}},ip={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return I(t)?t:[t]},clone:function(t){return Yo(t,4)},cloneDeep:function(t){return Yo(t,5)},cloneDeepWith:function(t,n){return Yo(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Yo(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Ku(t,n,Wr(n))},eq:Vn,gt:_c,gte:bc,isArguments:sr,isArray:I,isArrayBuffer:Gc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||x(t)&&"[object Boolean]"==j(t)},isBuffer:yr,isDate:Jc,isElement:function(t){return x(t)&&1===t.nodeType&&!xe(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(I(t)||"string"==typeof t||"function"==typeof t.splice||yr(t)||Or(t)||sr(t)))return!t.length;var n=vo(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(or(t))return!Mr(t).length;for(var r in t)if(Yc.call(t,r))return!1;return!0},isEqual:function(t,n){return ku(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?ku(t,n,void 0,r):!!e},isError:Oe,isFinite:function(t){return"number"==typeof t&&Qc(t)},isFunction:rt,isInteger:Xc,isLength:tr,isMap:$o,isMatch:function(t,n){return t===n||Wu(t,n,Ru(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Wu(t,n,Ru(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:x,isPlainObject:xe,isRegExp:ef,isSafeInteger:function(t){return Xc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Vo,isString:Ac,isSymbol:A,isTypedArray:Or,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return x(t)&&"[object WeakMap]"==vo(t)},isWeakSet:function(t){return x(t)&&"[object WeakSet]"==j(t)},lt:hf,lte:vf,toArray:Af,toFinite:H,toInteger:J,toLength:Ha,toNumber:V,toPlainObject:va,toSafeInteger:function(t){return t?Li(J(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},op={add:C,ceil:Ri,divide:Ia,floor:fc,max:function(t){return t&&t.length?df(t,Y,yc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),yc):void 0},mean:function(t){return gf(t,Y)},meanBy:function(t,n){return gf(t,$u(n))},min:function(t){return t&&t.length?df(t,Y,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:jf,round:Tl,subtract:is,sum:function(t){return t&&t.length?yf(t,Y):0},sumBy:function(t,n){return t&&t.length?yf(t,$u(n)):0}},up={assign:Rr,assignIn:Pr,assignInWith:Lr,assignWith:Dr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Ti(r,n)},defaults:la,defaultsDeep:_a,entries:Ta,entriesIn:Ua,extend:Pr,extendWith:Lr,findKey:function(t,n){return nc(t,$u(n),Hu)},findLastKey:function(t,n){return nc(t,$u(n),Ca)},forIn:function(t,n){return null==t?t:Gu(t,Wa(n),Cr)},forInRight:function(t,n){return null==t?t:Ba(t,Wa(n),Cr)},forOwn:function(t,n){return t&&Hu(t,Wa(n))},forOwnRight:function(t,n){return t&&Ca(t,Wa(n))},functions:function(t){return null==t?[]:hc(t,Wr(t))},functionsIn:function(t){return null==t?[]:hc(t,Cr(t))},get:ae,has:function(t,n){return null!=t&&Lu(t,n,wc)},hasIn:Du,invert:Dc,invertBy:Fc,invoke:Kc,keys:Wr,keysIn:Cr,mapKeys:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,i){Kn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,i){Kn(r,e,n(t,e,i))})),r},merge:_f,mergeWith:ga,omit:If,omitBy:function(t,n){return zf(t,xf($u(n)))},pick:vl,pickBy:zf,result:function(t,n,r){var e=-1,i=(n=ee(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 kt;){var e=Dt(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 Mt){var n=t;return this.__actions__.length&&(n=new Mt(this)),(n=n.reverse()).__actions__.push({func:ms,args:[Dl],thisArg:void 0}),new Pt(n,this.__chain__)}return this.thru(Dl)},tap:function(t,n){return n(t),t},thru:ms,toIterator:function(){return this},toJSON:Os,value:Os,valueOf:Os,wrapperChain:function(){return Bi(this)}},cp={camelCase:Ii,capitalize:He,deburr:ni,endsWith:function(t,n,r){t=re(t),n=R(n);var e=t.length,i=r=void 0===r?e:Li(J(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Va.test(t)?t.replace(Ka,"\\$&"):t},kebabCase:uf,lowerCase:lf,lowerFirst:sf,pad:function(t,n,r){t=re(t);var e=(n=J(n))?il(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return ul(cl(i),r)+t+ul(al(i),r)},padEnd:function(t,n,r){t=re(t);var e=(n=J(n))?il(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=R(n))&&Re(t)?We(Ve(t),0,r):t.split(n,r):[]},startCase:es,startsWith:function(t,n,r){return t=re(t),r=null==r?0:Li(J(r),0,t.length),n=R(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ss.imports._.templateSettings||ss;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Lr({},n,e,as);var i,o,u=Lr({},n.imports,e.imports,as),a=Wr(u),c=Ec(u,a),f=0,l=n.interpolate||gs,s="__p += '",p=RegExp((n.escape||gs).source+"|"+l.source+"|"+(l===ls?ys:gs).source+"|"+(n.evaluate||gs).source+"|$","g"),h=bs.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(_s,fs),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=bs.call(n,"variable")&&n.variable;if(v){if(ds.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(o?s.replace(ps,""):s).replace(hs,"$1").replace(vs,"$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=Ae((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,Oe(d))throw d;return d},templateSettings:ss,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return T(t);if(!t||!(n=R(n)))return t;var e=Ve(t),i=Ve(n);return We(e,Es(e,i),As(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,L(t)+1);if(!t||!(n=R(n)))return t;var e=Ve(t);return We(e,0,As(e,Ve(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(Ss,"");if(!t||!(n=R(n)))return t;var e=Ve(t);return We(e,Es(e,Ve(n))).join("")},truncate:function(t,n){var r=30,e="...";if(U(n)){var i="separator"in n?n.separator:i;r="length"in n?J(n.length):r,e="omission"in n?R(n.omission):e}var o=(t=re(t)).length;if(Re(t)){var u=Ve(t);o=u.length}if(r>=o)return t;var a=r-il(e);if(a<1)return e;var c=u?We(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+e;if(u&&(a+=c.length-a),ef(i)){if(t.slice(a).search(i)){var f,l=c;for(i.global||(i=RegExp(i.source,re(ks.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(R(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Ws.test(t)?t.replace(Ms,Is):t},upperCase:qs,upperFirst:Ge,words:Ei},fp={attempt:Ae,bindAll:ke,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?k(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Qn((function(r){for(var e=-1;++e9007199254740991)return[];var r=ws,e=js(t,ws);n=Wa(n),t-=ws;for(var i=ur(e,n);++r=xc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var i=kl();return Sl(t+i*(n-t+El("1e-"+((i+"").length-1))),n)}return Al(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=op.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=op.subtract,Ut.sum=op.sum,Ut.sumBy=op.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=ip.toFinite,Ut.toInteger=J,Ut.toLength=ip.toLength,Ut.toLower=cp.toLower,Ut.toNumber=ip.toNumber,Ut.toSafeInteger=ip.toSafeInteger,Ut.toString=ip.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Qs={},Hu(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Qs[n]=t)})),Qs),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Yt(["drop","take"],(function(t,n){Mt.prototype[t]=function(r){r=void 0===r?1:gp(J(r),0);var e=this.__filtered__&&!n?new Mt(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,hp),type:t+(e.__dir__<0?"Right":"")}),e},Mt.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Yt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;Mt.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Yt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");Mt.prototype[t]=function(){return this[r](1).value()[0]}})),Yt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");Mt.prototype[t]=function(){return this.__filtered__?new Mt(this):this[r](1)}})),Mt.prototype.compact=function(){return this.filter(Y)},Mt.prototype.find=function(t){return this.filter(t).head()},Mt.prototype.findLast=function(t){return this.reverse().find(t)},Mt.prototype.invokeMap=Qn((function(t,n){return"function"==typeof t?new Mt(this):this.map((function(r){return $c(r,t,n)}))})),Mt.prototype.reject=function(t){return this.filter(xf($u(t)))},Mt.prototype.slice=function(t,n){t=J(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Mt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=J(n))<0?r.dropRight(-n):r.take(n-t)),r)},Mt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Mt.prototype.toArray=function(){return this.take(hp)},Hu(Mt.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Ut[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof Mt,c=u[0],f=a||I(n),l=function(t){var n=i.apply(Ut,fe([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 Mt(this);var d=t.apply(n,u);return d.__actions__.push({func:ms,args:[l],thisArg:void 0}),new Pt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),Yt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(I(i)?i:[],t)}return this[r]((function(r){return n.apply(I(r)?r:[],t)}))}})),Hu(Mt.prototype,(function(t,n){var r=Ut[n];if(r){var e=r.name+"";dp.call(Rt,e)||(Rt[e]=[]),Rt[e].push({name:n,func:r})}})),Rt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],Mt.prototype.clone=function(){var t=new Mt(this.__wrapped__);return t.__actions__=Lt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lt(this.__views__),t},Mt.prototype.reverse=function(){if(this.__filtered__){var t=new Mt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Mt.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=I(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e{const e=c(t),o=(0,i.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,i.useEffect)((()=>()=>n()),[n])})((()=>o.cancel())),o},wp=({children:t,capture:n,wait:r,options:e})=>{const o=i.Children.only(t),u=mp(((...t)=>{const r=null==o?void 0:o.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,i.cloneElement)(o,{[n]:u})};function jp(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,i.useRef)(null),a=c(t),f=(0,i.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,i.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:o,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,o,f]),u},Op=(...t)=>(0,i.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,i.forwardRef)(((t,n)=>{const{action:r,calledOnce:i,threshold:o,root:u,rootMargin:a}=t,c=jp(t,["action","calledOnce","threshold","root","rootMargin"]),f=xp({action:r,calledOnce:i,threshold:o,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ep=(0,i.forwardRef)(((t,n)=>{var{src:r,style:o,threshold:u,root:a,rootMargin:c}=t,f=jp(t,["src","style","threshold","root","rootMargin"]);const l=xp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,i.useMemo)((()=>Object.assign({display:"inline-block"},o)),[o]);return(0,e.jsx)("img",Object.assign({},f,{ref:Op(n,l),style:s}))})),Sp=a()?i.useLayoutEffect:i.useEffect;(0,i.createContext)({parentPortalElement:null});const kp=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(i.Fragment,{children:t}):null,Ip=t=>!!a()&&window.matchMedia(t).matches,Mp=t=>{const[n,r]=(0,i.useState)(Ip(t)),e=(0,i.useCallback)((()=>{r(Ip(t))}),[t]);return(0,i.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Wp=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),n.current},zp=t=>{const[n,r]=(0,i.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,i.useRef)(null),o=c(t),u=(0,i.useCallback)((([t])=>{t&&(o(t),r(t.contentRect))}),[o]);return(0,i.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},Rp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,o]=(0,i.useState)({width:null,height:null}),u=(0,i.useCallback)((()=>{o({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,i.useMemo)((()=>n?a:u),[u,n,a]);return Sp((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/b3bf5b56.7b091d81.js b/assets/js/b3bf5b56.7b091d81.js new file mode 100644 index 000000000..0163f92a3 --- /dev/null +++ b/assets/js/b3bf5b56.7b091d81.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1175],{6627:(t,n,r)=>{r.r(n),r.d(n,{DebounceExample:()=>h,DefaultExample:()=>p,assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>a,metadata:()=>f,toc:()=>s});var e=r(5735),i=r(289),o=r(5474),u=r(4614);const a={},c="useWindowSize",f={id:"react/hooks/useWindowSize",title:"useWindowSize",description:"\ud604\uc7ac \ube0c\ub77c\uc6b0\uc800 \ucc3d\uc758 \ub108\ube44\uc640 \ub192\uc774 \uc815\ubcf4\ub97c \ucd94\uc801\ud558\uace0, \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4. \ub610\ud55c, \ubd88 \ud544\uc694\ud55c \ud638\ucd9c\uc744 \ubc29\uc9c0\ud558\uae30\uc704\ud55c debounce \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.",source:"@site/docs/react/hooks/useWindowSize.mdx",sourceDirName:"react/hooks",slug:"/react/hooks/useWindowSize",permalink:"/modern-kit/docs/react/hooks/useWindowSize",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"useWindowScrollTo",permalink:"/modern-kit/docs/react/hooks/useWindowScrollTo"},next:{title:"abRandom",permalink:"/modern-kit/docs/utils/common/abRandom"}},l={},s=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Default",id:"default",level:3},{value:"Debounce",id:"debounce",level:3}],p=()=>{const t={br:"br",div:"div",...(0,i.a)()},n=(0,o.iP)(),r=(0,u.useMemo)((()=>({width:"100%",background:"#439966",fontSize:"2rem",color:"#fff"})),[]);return(0,e.jsxs)(t.div,{style:r,children:["\ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694. ",(0,e.jsx)(t.br,{}),"width: ",n.width,"px ",(0,e.jsx)(t.br,{}),"height: ",n.height,"px"]})},h=()=>{const t={br:"br",div:"div",...(0,i.a)()},n=(0,o.iP)({isDebounce:!0,wait:300}),r=(0,u.useMemo)((()=>({width:"100%",background:"#0067A3",fontSize:"2rem",color:"#fff"})),[]);return(0,e.jsxs)(t.div,{style:r,children:["\ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694. ",(0,e.jsx)(t.br,{}),"width: ",n.width,"px ",(0,e.jsx)(t.br,{}),"height: ",n.height,"px"]})};function v(t){const n={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:"usewindowsize",children:"useWindowSize"}),"\n",(0,e.jsxs)(n.p,{children:["\ud604\uc7ac \ube0c\ub77c\uc6b0\uc800 \ucc3d\uc758 \ub108\ube44\uc640 \ub192\uc774 \uc815\ubcf4\ub97c \ucd94\uc801\ud558\uace0, \ubc18\ud658\ud558\ub294 \ucee4\uc2a4\ud140 \ud6c5\uc785\ub2c8\ub2e4. \ub610\ud55c, \ubd88 \ud544\uc694\ud55c \ud638\ucd9c\uc744 \ubc29\uc9c0\ud558\uae30\uc704\ud55c ",(0,e.jsx)(n.code,{children:"debounce"})," \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4."]}),"\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 Size {\n width: number | null;\n height: number | null;\n}\n\ninterface useWindowSizeProps {\n isDebounce?: boolean; // debounce options, default: false\n wait?: number; // debounce delay time, default: 300\n}\n\nconst useWindowSize: (options?: useWindowSizeProps) => Size\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 { useWindowSize } from '@modern-kit/react';\n\nconst Example = () => {\n const windowSize = useWindowSize();\n const boxStyle = useMemo(() => {\n return {\n width: '100%', \n background: '#439966', \n fontSize: '2rem',\n color: '#fff',\n }\n }, []);\n\n return (\n
\n \ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694.
\n width: {windowSize.width}px
\n height: {windowSize.height}px\n
\n );\n};\n"})}),"\n","\n",(0,e.jsx)(p,{}),"\n",(0,e.jsx)("br",{}),"\n",(0,e.jsx)(n.h3,{id:"debounce",children:"Debounce"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { useWindowSize } from '@modern-kit/react';\n\nconst DebounceExample = () => {\n const windowSize = useWindowSize({ isDebounce: true, wait: 300 });\n const boxStyle = useMemo(() => {\n return {\n width: '100%', \n background: '#0067A3', \n fontSize: '2rem',\n color: '#fff',\n }\n }, []);\n\n return (\n
\n \ube0c\ub77c\uc6b0\uc800 \ud06c\uae30\ub97c \uc904\uc5ec\ubcf4\uc138\uc694.
\n width: {windowSize.width}px
\n height: {windowSize.height}px\n
\n );\n};\n"})}),"\n","\n",(0,e.jsx)(h,{}),"\n",(0,e.jsx)("br",{})]})}function d(t={}){const{wrapper:n}={...(0,i.a)(),...t.components};return n?(0,e.jsx)(n,{...t,children:(0,e.jsx)(v,{...t})}):v(t)}},289:(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:()=>Wp,ac:()=>Mp,df:()=>xp,iP:()=>Rp,nA:()=>kp,uM:()=>bp,wY:()=>Op,yU:()=>zp});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]",y=c?c.toStringTag:void 0;function g(t){return null==t?void 0===t?d:v:y&&y 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)&&g(t)==b}var w=NaN;function j(t){return"number"==typeof t?t:m(t)?w:+t}function x(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Tt=Dt(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=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]&&!Yt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(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 Lt(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&&t1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof g&&(A=y||yt(A)),A.apply(O,b)}}var jn=1,xn="__lodash_placeholder__",On=1,An=2,Sn=4,En=8,kn=128,In=256,Mn=Math.min,Wn="Expected a function",zn=1,Rn=2,Bn=8,Pn=16,Ln=32,Cn=64,Dn=Math.max;function Tn(t,n,r,e,i,o,u,c){var f=n&Rn;if(!f&&"function"!=typeof t)throw new TypeError(Wn);var l=e?e.length:0;if(l||(n&=~(Ln|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==In&&t[7].length<=n[8]||e==(kn|In)&&n[7].length<=n[8]&&r==En;if(!o&&!u)return t;e&On&&(t[2]=n[2],i|=r&On?0:Sn);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?jt(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&(Bn|Pn)&&(n&=~(Bn|Pn)),n&&n!=zn)d=n==Bn||n==Pn?function(t,n,r){var e=yt(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<=Hn}function Yn(t){return null!=t&&Jn(t.length)&&!Y(t)}function Qn(t,n,r){if(!P(r))return!1;var e=typeof n;return!!("number"==e?Yn(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();++n0&&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,ye=ve.toString,ge=de.hasOwnProperty,_e=ye.call(Object);function be(t){if(!_(t)||g(t)!=he)return!1;var n=pe(t);if(null===n)return!0;var r=ge.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ye.call(r)==_e}function me(t){if(!_(t))return!1;var n=g(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!be(t)}var we=Gn((function(t,n){try{return _t(t,void 0,n)}catch(t){return me(t)?t:new Error(t)}}));function je(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),Nn(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 Se(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:Se(t,n,r)}Ae.placeholder={};var ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ie(t){return ke.test(t)}var Me="\\ud800-\\udfff",We="["+Me+"]",ze="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Re="\\ud83c[\\udffb-\\udfff]",Be="[^"+Me+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="(?:"+ze+"|"+Re+")?",De="[\\ufe0e\\ufe0f]?",Te=De+Ce+"(?:\\u200d(?:"+[Be,Pe,Le].join("|")+")"+De+Ce+")*",Ue="(?:"+[Be+ze+"?",ze,Pe,Le,We].join("|")+")",Ne=RegExp(Re+"(?="+Re+")|"+Ue+Te,"g");function Fe(t){return Ie(t)?function(t){return t.match(Ne)||[]}(t):function(t){return t.split("")}(t)}function qe(t){return function(n){var r=Ie(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 Bi(t){var n=this.__data__=new $r(t);this.size=n.size}function Pi(t,n){return t&&Kn(n,Er(n),t)}Bi.prototype.clear=function(){this.__data__=new $r,this.size=0},Bi.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Bi.prototype.get=function(t){return this.__data__.get(t)},Bi.prototype.has=function(t){return this.__data__.has(t)},Bi.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 Li="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ci=Li&&"object"==typeof module&&module&&!module.nodeType&&module,Di=Ci&&Ci.exports===Li?a.Buffer:void 0,Ti=Di?Di.allocUnsafe:void 0;function Ui(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 Ni(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))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 y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ra(r,o-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function g(){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=N(n)||0,P(r)&&(l=!!r.leading,o=(s="maxWait"in r)?na(N(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(ta())},g}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=Jo,u=!1,n=new Go(n));t:for(;++i":">",'"':""","'":"'"}),Da=/[&<>"']/g,Ta=RegExp(Da.source);function Ua(t){return(t=Qr(t))&&Ta.test(t)?t.replace(Da,Ca):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.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 Ha(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,Uu(n),i)}var Ja=Za(Ha);function Ya(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,Uu(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=Yn(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,Uu(n))}var oc=ki("floor");function uc(t){return le((function(n){var r=n.length,e=r,i=Wt.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 Wt([],!0)}for(e=u?e:r;++en}function hc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=N(n),r=N(r)),t(n,r)}}var vc=hc(pc),dc=hc((function(t,n){return t>=n})),yc=Object.prototype.hasOwnProperty;function gc(t,n){return null!=t&&yc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function wc(t){return"string"==typeof t||!O(t)&&_(t)&&g(t)==mc}function jc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:jc(t,Er(t))}var Oc=Math.max,Ac=Math.max,Sc=Math.min;function Ec(t,n,r){for(var e=r?_a:Yt,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=Sc(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,Hi(t),r),e&&(r=Zo(r,7,Of));for(var i=n.length;i--;)xf(r,n[i]);return r}));function Sf(t,n,r,e){if(!P(t))return t;for(var i=-1,o=(n=Xr(n,t)).length,u=o-1,a=t;null!=a&&++in||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 Wf(t){return le((function(n){return n=x(n,vr(Uu)),Gn((function(r){var e=this;return t(n,(function(t){return _t(t,e,r)}))}))}))}var zf=Wf(x),Rf=Gn,Bf=Math.min,Pf=Rf((function(t,n){var r=(n=1==n.length&&O(n[0])?x(n[0],vr(Uu)):x(ce(n,1),vr(Uu))).length;return Gn((function(e){for(var i=-1,o=Bf(e.length,r);++iDf)return r;do{n%2&&(r+=t),(n=Tf(n/2))&&(t+=t)}while(n);return r}var Nf=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]",Hf="(?:"+$f+"|"+Kf+")?",Jf="[\\ufe0e\\ufe0f]?",Yf=Jf+Hf+"(?:\\u200d(?:"+[Vf,Zf,Gf].join("|")+")"+Jf+Hf+")*",Qf="(?:"+[Vf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Xf=RegExp(Kf+"(?="+Kf+")|"+Qf+Yf,"g");function tl(t){return Ie(t)?function(t){for(var n=Xf.lastIndex=0;Xf.test(t);)++n;return n}(t):Nf(t)}var nl=Math.ceil;function rl(t,n){var r=(n=void 0===n?" ":k(n)).length;if(r<2)return r?Uf(n,t):n;var e=Uf(n,nl(t/tl(n)));return Ie(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=Hu((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 Bu(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),yl=Array.prototype.splice;function gl(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)?yl.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 gl(t,x(n,(function(t){return sn(t,r)?+t:t})).sort(If)),e})),bl=Math.floor,ml=Math.random;function wl(t,n){return t+bl(ml()*(n-t+1))}var jl=parseFloat,xl=Math.min,Ol=Math.random,Al=Math.ceil,Sl=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=Sl(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?n1&&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 Hl(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: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 ys(t,n){return n(t)}var gs=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 ws(t,n){for(var r=t.length;r--&&Jt(n,t[r],0)>-1;);return r}function js(t,n){for(var r=-1,e=t.length;++r-1;);return r}var xs=/^\s+/,Os=/\w*$/,As=Ze({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ss=/&(?:amp|lt|gt|quot|#39);/g,Es=RegExp(Ss.source),ks=Qi&&1/nu(new Qi([,-0]))[1]==1/0?function(t){return new Qi(t)}:St,Is=200;function Ms(t,n,r){var e=-1,i=Yt,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=_a;else if(o>=Is){var f=n?null:ks(t);if(f)return nu(f);u=!1,i=Jo,c=new Go}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof At&&sn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ys,args:[i],thisArg:void 0}),new Wt(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);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Cs(t,r)})),Ys={chunk:function(t,n,r){n=(r?Qn(t,n,r):void 0===n)?1:zi(K(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,o=0,u=Array(Wi(e/n));ii?0:i+r),(e=void 0===e||e>i?i:K(e))<0&&(e+=i),e=r>e?0:Ka(e);r-1:!!i&&Jt(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:Wl,i=arguments.length<3;return e(t,Uu(n),r,i,Zu)},reduceRight:function(t,n,r){var e=O(t)?zl:Wl,i=arguments.length<3;return e(t,Uu(n),r,i,za)},reject:function(t,n){return(O(t)?Ni:Va)(t,bf(Uu(n)))},sample:function(t){return(O(t)?Ll:Cl)(t)},sampleSize:function(t,n,r){return n=(r?Qn(t,n,r):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 wc(t)?tl(t):t.length;var n=lo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Sr(t).length},some:function(t,n,r){var e=O(t)?Ho:$l;return r&&Qn(t,n,r)&&(n=void 0),e(t,Uu(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:Un,before:je,bind:xe,bindKey:Ae,curry:Qu,curryRight:Xu,debounce:ea,defer:ya,delay:ga,flip:function(t){return Tn(t,512)},memoize:Gr,negate:bf,once:function(t){return je(2,t)},overArgs:Pf,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 P(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 Un(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||Nu(t,n,Er(n))},eq:Fn,gt:vc,gte:dc,isArguments:ar,isArray:O,isArrayBuffer:$c,isArrayLike:Yn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==g(t)},isBuffer:pr,isDate:Vc,isElement:function(t){return _(t)&&1===t.nodeType&&!be(t)},isEmpty:function(t){if(null==t)return!0;if(Yn(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!Sr(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:Y,isInteger:Hc,isLength:Jn,isMap:Uo,isMatch:function(t,n){return t===n||Eu(t,n,Iu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Eu(t,n,Iu(n),r)},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:P,isObjectLike:_,isPlainObject:be,isRegExp:Xc,isSafeInteger:function(t){return Hc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Fo,isString:wc,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]"==g(t)},lt:ff,lte:lf,toArray:wf,toFinite:$,toInteger:K,toLength:Ka,toNumber:N,toPlainObject:la,toSafeInteger:function(t){return t?Ri(K(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Qr},rp={add:M,ceil:Ii,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,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:Pl,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}},ep={assign:Ir,assignIn:zr,assignInWith:Rr,assignWith:Br,at:se,create:function(t,n){var r=dt(t);return null==n?r:Pi(r,n)},defaults:ua,defaultsDeep:va,entries:Pa,entriesIn:La,extend:zr,extendWith:Rr,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,Ea(n),Wr)},forInRight:function(t,n){return null==t?t:Ma(t,Ea(n),Wr)},forOwn:function(t,n){return t&&Ku(t,Ea(n))},forOwnRight:function(t,n){return t&&Wa(t,Ea(n))},functions:function(t){return null==t?[]:fc(t,Er(t))},functionsIn:function(t){return null==t?[]:fc(t,Wr(t))},get:ee,has:function(t,n){return null!=t&&Ru(t,n,gc)},hasIn:Bu,invert:Bc,invertBy:Dc,invoke:Nc,keys:Er,keysIn:Wr,mapKeys:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,i){Nn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=Uu(n),Ku(t,(function(t,e,i){Nn(r,e,n(t,e,i))})),r},merge:vf,mergeWith:ha,omit:Af,omitBy:function(t,n){return kf(t,bf(Uu(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=Rt(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:ys,args:[Bl],thisArg:void 0}),new Wt(n,this.__chain__)}return this.thru(Bl)},tap:function(t,n){return n(t),t},thru:ys,toIterator:function(){return this},toJSON:ms,value:ms,valueOf:ms,wrapperChain:function(){return Mi(this)}},op={camelCase:Ai,capitalize:Ke,deburr:Ye,endsWith:function(t,n,r){t=Qr(t),n=k(n);var e=t.length,i=r=void 0===r?e:Ri(K(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:Ua,escapeRegExp:function(t){return(t=Qr(t))&&Fa.test(t)?t.replace(Na,"\\$&"):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))&&Ie(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:Ri(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=Rr({},n,e,es);var i,o,u=Rr({},n.imports,e.imports,es),a=Er(u),c=jc(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=we((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 B(t);if(!t||!(n=k(n)))return t;var e=Fe(t),i=Fe(n);return Ee(e,js(e,i),ws(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.slice(0,z(t)+1);if(!t||!(n=k(n)))return t;var e=Fe(t);return Ee(e,0,ws(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,js(e,Fe(n))).join("")},truncate:function(t,n){var r=30,e="...";if(P(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(Ie(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(Ss,As):t},upperCase:Ts,upperFirst:$e,words:ji},up={attempt:we,bindAll:Oe,cond:function(t){var n=null==t?0:t.length,r=Uu;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;++e9007199254740991)return[];var r=gs,e=_s(t,gs);n=Ea(n),t-=gs;for(var i=rr(e,n);++r=bc(n,r)&&t<_c(n,r)}(t=N(t),n,r)},Pt.invoke=ep.invoke,Pt.isArguments=np.isArguments,Pt.isArray=O,Pt.isArrayBuffer=np.isArrayBuffer,Pt.isArrayLike=np.isArrayLike,Pt.isArrayLikeObject=np.isArrayLikeObject,Pt.isBoolean=np.isBoolean,Pt.isBuffer=np.isBuffer,Pt.isDate=np.isDate,Pt.isElement=np.isElement,Pt.isEmpty=np.isEmpty,Pt.isEqual=np.isEqual,Pt.isEqualWith=np.isEqualWith,Pt.isError=np.isError,Pt.isFinite=np.isFinite,Pt.isFunction=np.isFunction,Pt.isInteger=np.isInteger,Pt.isLength=np.isLength,Pt.isMap=np.isMap,Pt.isMatch=np.isMatch,Pt.isMatchWith=np.isMatchWith,Pt.isNaN=np.isNaN,Pt.isNative=np.isNative,Pt.isNil=np.isNil,Pt.isNull=np.isNull,Pt.isNumber=np.isNumber,Pt.isObject=P,Pt.isObjectLike=np.isObjectLike,Pt.isPlainObject=np.isPlainObject,Pt.isRegExp=np.isRegExp,Pt.isSafeInteger=np.isSafeInteger,Pt.isSet=np.isSet,Pt.isString=np.isString,Pt.isSymbol=np.isSymbol,Pt.isTypedArray=np.isTypedArray,Pt.isUndefined=np.isUndefined,Pt.isWeakMap=np.isWeakMap,Pt.isWeakSet=np.isWeakSet,Pt.join=Ys.join,Pt.kebabCase=op.kebabCase,Pt.last=ja,Pt.lastIndexOf=Ys.lastIndexOf,Pt.lowerCase=op.lowerCase,Pt.lowerFirst=op.lowerFirst,Pt.lt=np.lt,Pt.lte=np.lte,Pt.max=rp.max,Pt.maxBy=rp.maxBy,Pt.mean=rp.mean,Pt.meanBy=rp.meanBy,Pt.min=rp.min,Pt.minBy=rp.minBy,Pt.stubArray=up.stubArray,Pt.stubFalse=up.stubFalse,Pt.stubObject=up.stubObject,Pt.stubString=up.stubString,Pt.stubTrue=up.stubTrue,Pt.multiply=rp.multiply,Pt.nth=Ys.nth,Pt.noop=up.noop,Pt.now=Xs,Pt.pad=op.pad,Pt.padEnd=op.padEnd,Pt.padStart=op.padStart,Pt.parseInt=op.parseInt,Pt.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+jl("1e-"+((i+"").length-1))),n)}return wl(t,n)},Pt.reduce=Qs.reduce,Pt.reduceRight=Qs.reduceRight,Pt.repeat=op.repeat,Pt.replace=op.replace,Pt.result=ep.result,Pt.round=rp.round,Pt.sample=Qs.sample,Pt.size=Qs.size,Pt.snakeCase=op.snakeCase,Pt.some=Qs.some,Pt.sortedIndex=Ys.sortedIndex,Pt.sortedIndexBy=Ys.sortedIndexBy,Pt.sortedIndexOf=Ys.sortedIndexOf,Pt.sortedLastIndex=Ys.sortedLastIndex,Pt.sortedLastIndexBy=Ys.sortedLastIndexBy,Pt.sortedLastIndexOf=Ys.sortedLastIndexOf,Pt.startCase=op.startCase,Pt.startsWith=op.startsWith,Pt.subtract=rp.subtract,Pt.sum=rp.sum,Pt.sumBy=rp.sumBy,Pt.template=op.template,Pt.times=up.times,Pt.toFinite=np.toFinite,Pt.toInteger=K,Pt.toLength=np.toLength,Pt.toLower=op.toLower,Pt.toNumber=np.toNumber,Pt.toSafeInteger=np.toSafeInteger,Pt.toString=np.toString,Pt.toUpper=op.toUpper,Pt.trim=op.trim,Pt.trimEnd=op.trimEnd,Pt.trimStart=op.trimStart,Pt.truncate=op.truncate,Pt.unescape=op.unescape,Pt.uniqueId=up.uniqueId,Pt.upperCase=op.upperCase,Pt.upperFirst=op.upperFirst,Pt.each=Qs.forEach,Pt.eachRight=Qs.forEachRight,Pt.first=Ys.head,yp(Pt,(Gs={},Ku(Pt,(function(t,n){pp.call(Pt.prototype,n)||(Gs[n]=t)})),Gs),{chain:!1}),Pt.VERSION="4.17.21",(Pt.templateSettings=op.templateSettings).imports._=Pt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Pt[t].placeholder=Pt})),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:Uu(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 Uc(r,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(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=Pt[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Pt.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(Pt,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:ys,args:[l],thisArg:void 0}),new Wt(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);Pt.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=Pt[n];if(r){var e=r.name+"";pp.call(kt,e)||(kt[e]=[]),kt[e].push({name:n,func:r})}})),kt[wn(void 0,2).name]=[{name:"wrapper",func:void 0}],At.prototype.clone=function(){var t=new At(this.__wrapped__);return t.__actions__=zt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zt(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=gp(t),o=(0,e.useMemo)((()=>ea(i,n,r)),[i,n,r]);return(t=>{const n=gp(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=gp(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},jp=(...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=wp({action:r,calledOnce:e,threshold:o,root:u,rootMargin:a});return(0,i.jsx)("div",Object.assign({ref:jp(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=wp({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:jp(n,l),style:s}))}));"function"==typeof SuppressedError&&SuppressedError;const Ap=()=>"undefined"==typeof window&&"undefined"!=typeof global,Sp=()=>!Ap(),Ep=Sp()?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},Ip=t=>!!Sp()&&window.matchMedia(t).matches,Mp=t=>{const[n,r]=(0,e.useState)(Ip(t)),i=(0,e.useCallback)((()=>{r(Ip(t))}),[t]);return(0,e.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",i),()=>n.removeEventListener("change",i)}),[t,i]),{isMatch:n}},Wp=t=>{const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current},zp=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=gp(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}},Rp=(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 diff --git a/assets/js/bf0dbc92.2838f528.js b/assets/js/bf0dbc92.2838f528.js deleted file mode 100644 index 31a807664..000000000 --- a/assets/js/bf0dbc92.2838f528.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8067],{6037:(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(289),o=r(5474);const u={},a="InView",c={id:"react/components/InView",title:"InView",description:"Viewport\uc5d0 \ub178\ucd9c\ub420 \ub54c props\ub85c \ub118\uaca8\uc8fc\ub294 action \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/InView.mdx",sourceDirName:"react/components",slug:"/react/components/InView",permalink:"/modern-kit/docs/react/components/InView",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"DebounceWrapper",permalink:"/modern-kit/docs/react/components/DebounceWrapper"},next:{title:"LazyImage",permalink:"/modern-kit/docs/react/components/LazyImage"}},f={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Example",id:"example",level:2}];function s(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,i.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"inview",children:"InView"}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"Viewport"}),"\uc5d0 \ub178\ucd9c\ub420 \ub54c props\ub85c \ub118\uaca8\uc8fc\ub294 ",(0,e.jsx)(n.code,{children:"action"})," \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\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 UseIntersectionObserverProps {\n action: (entry: IntersectionObserverEntry) => void;\n calledOnce?: boolean;\n threshold?: number | number[];\n root?: Document | Element | null;\n rootMargin?: string;\n}\n\ntype InViewProps = React.ComponentProps<'div'> & UseIntersectionObserverProps;\n\nconst InView: React.ForwardRefExoticComponent<\n Omit, 'ref'> &\n React.RefAttributes\n>;\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { InView } from '@modern-kit/react';\n\nconst Example = () => {\n const onAction = () => {\n /* action */\n }\n\n return (\n
\n {/* ... */}\n Box1\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:"#f1f3f5"},children:[(0,e.jsx)("div",{style:{width:"100%",height:"600px",textAlign:"center",fontSize:"2rem"},children:"\uc2a4\ud06c\ub864 \ud574\uc8fc\uc138\uc694."}),(0,e.jsx)(o.df,{style:{width:"100%",height:"300px",background:"#c0392B",color:"white",textAlign:"center",fontSize:"21px"},action:()=>console.log("action callback(1)"),calledOnce:!0,children:(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"Box1"}),(0,e.jsx)("p",{children:"\ube0c\ub77c\uc6b0\uc800 \uac1c\ubc1c\uc790 \ub3c4\uad6c\uc758 \ucf58\uc194\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694."}),(0,e.jsx)("p",{children:"action \ucf5c\ubc31 \ud568\uc218\uac00 \ucd5c\ucd08 1\ud68c\ub9cc \ud638\ucd9c\ub429\ub2c8\ub2e4."}),(0,e.jsx)("p",{children:"calledOnce: true"})]})}),(0,e.jsx)("div",{style:{width:"100%",height:"100px"}}),(0,e.jsx)(o.df,{style:{width:"100%",height:"300px",background:"#89a5ea",color:"white",textAlign:"center",fontSize:"21px"},action:()=>console.log("action callback(2)"),children:(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"Box2"}),(0,e.jsx)("p",{children:"\ube0c\ub77c\uc6b0\uc800 \uac1c\ubc1c\uc790 \ub3c4\uad6c\uc758 \ucf58\uc194\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694."}),(0,e.jsx)("p",{children:"action \ucf5c\ubc31 \ud568\uc218\uac00 \uc5ec\ub7ec \ubc88 \ud638\ucd9c\ub429\ub2c8\ub2e4."}),(0,e.jsx)("p",{children:"calledOnce: false"})]})}),(0,e.jsx)("div",{style:{width:"100%",height:"600px",textAlign:"center"}})]})]})}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)}},289:(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,{AB:()=>f,D9:()=>Rp,ac:()=>Sp,df:()=>Ap,iP:()=>Bp,nA:()=>kp,uM:()=>jp,wY:()=>Ep,yU:()=>Wp});var e=r(5735),i=r(4614);r(2832);"function"==typeof SuppressedError&&SuppressedError;const o=()=>"undefined"==typeof window&&"undefined"!=typeof global,u=()=>{},a=()=>!o(),c=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),(0,i.useCallback)(((...t)=>n.current(...t)),[])},f=({children:t})=>{const n=Math.random()<.5?0:1,r=i.Children.toArray(t);let e=0,o=0;if(2!==r.length)return null;for(const i of r){if(![f.CaseA,f.CaseB].includes(i.type))return null;i.type===f.CaseA?e+=1:o+=1}return e>=2||o>=2?null:n?r[0]:r[1]};f.CaseA=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})},f.CaseB=({children:t,renderAction:n})=>{const r=c(n||u);return(0,i.useEffect)((()=>{r()}),[r]),(0,e.jsx)(i.Fragment,{children:t})};var l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),h=p.Symbol,v=Object.prototype,d=v.hasOwnProperty,y=v.toString,g=h?h.toStringTag:void 0,_=Object.prototype.toString,b="[object Null]",m="[object Undefined]",j=h?h.toStringTag:void 0;function w(t){return null==t?void 0===t?m:b:j&&j in Object(t)?function(t){var n=d.call(t,g),r=t[g];try{t[g]=void 0;var e=!0}catch(t){}var i=y.call(t);return e&&(n?t[g]=r:delete t[g]),i}(t):function(t){return _.call(t)}(t)}function x(t){return null!=t&&"object"==typeof t}var O="[object Symbol]";function A(t){return"symbol"==typeof t||x(t)&&w(t)==O}var E=NaN;function I(t){return"number"==typeof t?t:A(t)?E:+t}function k(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var $t=qt(_t),Vt=/\{\n\/\* \[wrapped with (.+)\] \*/,Kt=/,? & /,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Gt(t){return function(){return t}}var Ht=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Jt=qt(Ht?function(t,n){return Ht(t,"toString",{configurable:!0,enumerable:!1,value:Gt(n),writable:!0})}:Y);function Yt(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var rn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function en(t,n,r){var e=n+"";return Jt(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(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Yt(rn,(function(r){var e="_."+r[0];n&r[1]&&!nn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Vt);return n?n[1].split(Kt):[]}(e),r)))}var on=1,un=2,an=4,cn=8,fn=32,ln=64;function sn(t,n,r,e,i,o,u,a,c,f){var l=n&cn;n|=l?fn:ln,(n&=~(l?ln:fn))&an||(n&=~(on|un));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 Nt(t)&&$t(p,s),p.placeholder=e,en(p,t,n)}function pn(t){return t.placeholder}var hn=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function dn(t,n){var r=typeof t;return!!(n=null==n?hn:n)&&("number"==r||"symbol"!=r&&vn.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),l&&c<_&&(b.length=c),this&&this!==p&&this instanceof g&&(A=y||jt(A)),A.apply(O,b)}}var En=1,In="__lodash_placeholder__",kn=1,Mn=2,Sn=4,Rn=8,Wn=128,Bn=256,zn=Math.min,Cn="Expected a function",Pn=1,Ln=2,Dn=8,Tn=16,Un=32,Nn=64,Fn=Math.max;function qn(t,n,r,e,i,o,u,a){var c=n&Ln;if(!c&&"function"!=typeof t)throw new TypeError(Cn);var f=e?e.length:0;if(f||(n&=~(Un|Nn),e=i=void 0),u=void 0===u?u:Fn(J(u),0),a=void 0===a?a:J(a),f-=i?i.length:0,n&Nn){var l=e,s=i;e=i=void 0}var h=c?void 0:Wt(t),v=[t,n,r,e,i,l,s,o,u,a];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,o=i<(kn|Mn|Wn),u=e==Wn&&r==Rn||e==Wn&&r==Bn&&t[7].length<=n[8]||e==(Wn|Bn)&&n[7].length<=n[8]&&r==Rn;if(!o&&!u)return t;e&kn&&(t[2]=n[2],i|=r&kn?0:Sn);var a=n[3];if(a){var c=t[3];t[3]=c?At(c,a,n[4]):a,t[4]=c?_n(t[3],In):n[4]}(a=n[5])&&(c=t[5],t[5]=c?It(c,a,n[6]):a,t[6]=c?_n(t[5],In):n[6]),(a=n[7])&&(t[7]=a),e&Wn&&(t[8]=null==t[8]?n[8]:zn(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],!(a=v[9]=void 0===v[9]?c?0:t.length:Fn(v[9]-f,0))&&n&(Dn|Tn)&&(n&=~(Dn|Tn)),n&&n!=Pn)d=n==Dn||n==Tn?function(t,n,r){var e=jt(t);return function i(){for(var o=arguments.length,u=Array(o),a=o,c=pn(i);a--;)u[a]=arguments[a];var f=o<3&&u[0]!==c&&u[o-1]!==c?[]:_n(u,c);return(o-=f.length)-1&&t%1==0&&t<=Xn}function nr(t){return null!=t&&tr(t.length)&&!rt(t)}function rr(t,n,r){if(!U(r))return!1;var e=typeof n;return!!("number"==e?nr(r)&&dn(n,r.length):"string"==e&&n in r)&&Kn(r[n],t)}function er(t){return Qn((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&&rr(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},Gr.prototype.set=function(t,n){var r=this.__data__,e=Kr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var Hr=dt(p,"Map");function Jr(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 Yr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?pe(a,n-1,r,e,i):fe(i,a):e||(i[i.length]=a)}return i}function he(t){return null!=t&&t.length?pe(t,1):[]}function ve(t){return Jt(Yn(t,void 0,he),t+"")}var de=ve(ce),ye=Ir(Object.getPrototypeOf,Object),ge="[object Object]",_e=Function.prototype,be=Object.prototype,me=_e.toString,je=be.hasOwnProperty,we=me.call(Object);function xe(t){if(!x(t)||w(t)!=ge)return!1;var n=ye(t);if(null===n)return!0;var r=je.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==we}function Oe(t){if(!x(t))return!1;var n=w(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!xe(t)}var Ae=Qn((function(t,n){try{return xt(t,void 0,n)}catch(t){return Oe(t)?t:new Error(t)}}));function Ee(t,n){var r;if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var Ie=Qn((function(t,n,r){var e=1;if(r.length){var i=_n(r,pn(Ie));e|=32}return qn(t,e,n,r,i)}));Ie.placeholder={};var ke=ve((function(t,n){return Yt(n,(function(n){n=oe(n),Vn(t,n,Ie(t[n],t))})),t})),Me=Qn((function(t,n,r){var e=3;if(r.length){var i=_n(r,pn(Me));e|=32}return qn(n,e,t,r,i)}));function Se(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:Se(t,n,r)}Me.placeholder={};var We=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Be(t){return We.test(t)}var ze="\\ud800-\\udfff",Ce="["+ze+"]",Pe="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Le="\\ud83c[\\udffb-\\udfff]",De="[^"+ze+"]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="(?:"+Pe+"|"+Le+")?",Fe="[\\ufe0e\\ufe0f]?",qe=Fe+Ne+"(?:\\u200d(?:"+[De,Te,Ue].join("|")+")"+Fe+Ne+")*",$e="(?:"+[De+Pe+"?",Pe,Te,Ue,Ce].join("|")+")",Ve=RegExp(Le+"(?="+Le+")|"+$e+qe,"g");function Ke(t){return Be(t)?function(t){return t.match(Ve)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){return function(n){var r=Be(n=re(n))?Ke(n):void 0,e=r?r[0]:n.charAt(0),i=r?Re(r,1).join(""):n.slice(1);return e[t]()+i}}var Ge=Ze("toUpperCase");function He(t){return Ge(re(t).toLowerCase())}function Je(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 Di(t){var n=this.__data__=new Gr(t);this.size=n.size}function Ti(t,n){return t&&Hn(n,Rr(n),t)}Di.prototype.clear=function(){this.__data__=new Gr,this.size=0},Di.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Di.prototype.get=function(t){return this.__data__.get(t)},Di.prototype.has=function(t){return this.__data__.has(t)},Di.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!Hr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(t,n),this.size=r.size,this};var Ui="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ni=Ui&&"object"==typeof module&&module&&!module.nodeType&&module,Fi=Ni&&Ni.exports===Ui?p.Buffer:void 0,qi=Fi?Fi.allocUnsafe:void 0;function $i(t,n){if(n)return t.slice();var r=t.length,e=qi?qi(r):new t.constructor(r);return t.copy(e),e}function Vi(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))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&ru?new Qo:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-f>=o}function d(){var t=ia();if(v(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ua(r,o-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function g(){var t=ia(),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=K(n)||0,U(r)&&(l=!!r.leading,o=(s="maxWait"in r)?oa(K(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(ia())},g}var ca=Object.prototype,fa=ca.hasOwnProperty,la=Qn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&rr(n[0],n[1],i)&&(e=1);++r=xa&&(o=tu,u=!1,n=new Qo(n));t:for(;++i":">",'"':""","'":"'"}),Fa=/[&<>"']/g,qa=RegExp(Fa.source);function $a(t){return(t=re(t))&&qa.test(t)?t.replace(Fa,Na):t}var Va=/[\\^$.*+?()[\]{}|]/g,Ka=RegExp(Va.source);function Za(t,n){for(var r=-1,e=null==t?0:t.length;++r-1?i[o?n[u]:u]:void 0}}var Qa=Math.max;function Xa(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:J(r);return i<0&&(i=Qa(e+i,0)),Qt(t,$u(n),i)}var tc=Ya(Xa);function nc(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}var rc=Math.max,ec=Math.min;function ic(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=J(r),i=r<0?rc(e+i,0):ec(i,e-1)),Qt(t,$u(n),i,!0)}var oc=Ya(ic);function uc(t){return t&&t.length?t[0]:void 0}function ac(t,n){var r=-1,e=nr(t)?Array(t.length):[];return Yu(t,(function(t,i,o){e[++r]=n(t,i,o)})),e}function cc(t,n){return(M(t)?k:ac)(t,$u(n))}var fc=Wi("floor");function lc(t){return ve((function(n){var r=n.length,e=r,i=Pt.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"==Ct(o))var u=new Pt([],!0)}for(e=u?e:r;++en}function gc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=K(n),r=K(r)),t(n,r)}}var _c=gc(yc),bc=gc((function(t,n){return t>=n})),mc=Object.prototype.hasOwnProperty;function jc(t,n){return null!=t&&mc.call(t,n)}var wc=Math.max,xc=Math.min,Oc="[object String]";function Ac(t){return"string"==typeof t||!M(t)&&x(t)&&w(t)==Oc}function Ec(t,n){return k(n,(function(n){return t[n]}))}function Ic(t){return null==t?[]:Ec(t,Rr(t))}var kc=Math.max,Mc=Math.max,Sc=Math.min;function Rc(t,n,r){for(var e=r?wa:nn,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,f=[];u--;){var l=t[u];u&&n&&(l=k(l,_r(n))),c=Sc(l.length,c),a[u]=!r&&(n||i>=120&&l.length>=120)?new Qo(u&&l):void 0}l=t[0];var s=-1,p=a[0];t:for(;++s1),n})),Hn(t,Xi(t),r),e&&(r=Yo(r,7,kf));for(var i=n.length;i--;)If(r,n[i]);return r}));function Sf(t,n,r,e){if(!U(t))return t;for(var i=-1,o=(n=ee(n,t)).length,u=o-1,a=t;null!=a&&++in||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 Cf(t){return ve((function(n){return n=k(n,_r($u)),Qn((function(r){var e=this;return t(n,(function(t){return xt(t,e,r)}))}))}))}var Pf=Cf(k),Lf=Qn,Df=Math.min,Tf=Lf((function(t,n){var r=(n=1==n.length&&M(n[0])?k(n[0],_r($u)):k(pe(n,1),_r($u))).length;return Qn((function(e){for(var i=-1,o=Df(e.length,r);++iFf)return r;do{n%2&&(r+=t),(n=qf(n/2))&&(t+=t)}while(n);return r}var Vf=Fu("length"),Kf="\\ud800-\\udfff",Zf="["+Kf+"]",Gf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Hf="\\ud83c[\\udffb-\\udfff]",Jf="[^"+Kf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Qf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="(?:"+Gf+"|"+Hf+")?",tl="[\\ufe0e\\ufe0f]?",nl=tl+Xf+"(?:\\u200d(?:"+[Jf,Yf,Qf].join("|")+")"+tl+Xf+")*",rl="(?:"+[Jf+Gf+"?",Gf,Yf,Qf,Zf].join("|")+")",el=RegExp(Hf+"(?="+Hf+")|"+rl+nl,"g");function il(t){return Be(t)?function(t){for(var n=el.lastIndex=0;el.test(t);)++n;return n}(t):Vf(t)}var ol=Math.ceil;function ul(t,n){var r=(n=void 0===n?" ":B(n)).length;if(r<2)return r?$f(n,t):n;var e=$f(n,ol(t/il(n)));return Be(n)?Re(Ke(e),0,t).join(""):e.slice(0,t)}var al=Math.ceil,cl=Math.floor,fl=/^\s+/,ll=p.parseInt,sl=Qn((function(t,n){return qn(t,32,void 0,n,_n(n,pn(sl)))}));sl.placeholder={};var pl=Qn((function(t,n){return qn(t,64,void 0,n,_n(n,pn(pl)))}));pl.placeholder={};var hl=Xu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),vl=ve((function(t,n){return null==t?{}:function(t,n){return Rf(t,n,(function(n,r){return Du(t,r)}))}(t,n)}));function dl(t,n,r,e){for(var i=r-1,o=t.length;++i-1;)a!==t&&yl.call(a,c,1),yl.call(t,c,1);return t}function _l(t,n){return t&&t.length&&n&&n.length?gl(t,n):t}var bl=Qn(_l),ml=Array.prototype.splice;function jl(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;dn(i)?ml.call(t,i,1):If(t,i)}}return t}var wl=ve((function(t,n){var r=null==t?0:t.length,e=ce(t,n);return jl(t,k(n,(function(t){return dn(t,r)?+t:t})).sort(Bf)),e})),xl=Math.floor,Ol=Math.random;function Al(t,n){return t+xl(Ol()*(n-t+1))}var El=parseFloat,Il=Math.min,kl=Math.random,Ml=Math.ceil,Sl=Math.max;function Rl(t){return function(n,r,e){return e&&"number"!=typeof e&&rr(n,r,e)&&(r=e=void 0),n=H(n),void 0===r?(r=n,n=0):r=H(r),function(t,n,r,e){for(var i=-1,o=Sl(Ml((n-t)/(r||1)),0),u=Array(o);o--;)u[e?o:++i]=t,t+=r;return u}(n,r,e=void 0===e?n1&&rr(t,n[0],n[1])?n=[]:r>2&&rr(n[0],n[1],n[2])&&(n=[n[0]]),zf(t,pe(n,1),[])})),Jl=4294967294,Yl=Math.floor,Ql=Math.min;function Xl(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=A(n),f=void 0===n;i>>1,u=t[o];null!==u&&!A(u)&&(r?u<=n:u/g,ss={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ls,variable:"",imports:{_:{escape:$a}}},ps=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ds=/[()=,{}\[\]\/\s]/,ys=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gs=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,bs=Object.prototype.hasOwnProperty;function ms(t,n){return n(t)}var js=4294967295,ws=Math.min;function xs(t,n){var r=t;return r instanceof St&&(r=r.value()),Je(n,(function(t,n){return n.func.apply(n.thisArg,fe([t],n.args))}),r)}function Os(){return xs(this.__wrapped__,this.__actions__)}function As(t,n){for(var r=t.length;r--&&tn(n,t[r],0)>-1;);return r}function Es(t,n){for(var r=-1,e=t.length;++r-1;);return r}var Is=/^\s+/,ks=/\w*$/,Ms=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ss=/&(?:amp|lt|gt|quot|#39);/g,Rs=RegExp(Ss.source),Ws=ro&&1/ou(new ro([,-0]))[1]==1/0?function(t){return new ro(t)}:Rt,Bs=200;function zs(t,n,r){var e=-1,i=nn,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=wa;else if(o>=Bs){var f=n?null:Ws(t);if(f)return ou(f);u=!1,i=tu,c=new Qo}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof St&&dn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:void 0}),new Pt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Ks(t,n,r){var e=t.length;if(e<2)return e?zs(t[0]):[];for(var i=-1,o=Array(e);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Ns(t,r)})),tp={chunk:function(t,n,r){n=(r?rr(t,n,r):void 0===n)?1:Pi(J(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,o=0,u=Array(Ci(e/n));ii?0:i+r),(e=void 0===e||e>i?i:J(e))<0&&(e+=i),e=r>e?0:Ha(e);r-1:!!i&&tn(t,n,r)>-1},invokeMap:Kc,keyBy:af,map:cc,orderBy:function(t,n,r,e){return null==t?[]:(M(n)||(n=null==n?[]:[n]),M(r=e?void 0:r)||(r=null==r?[]:[r]),zf(t,n,r))},partition:hl,reduce:function(t,n,r){var e=M(t)?Je:Cl,i=arguments.length<3;return e(t,$u(n),r,i,Yu)},reduceRight:function(t,n,r){var e=M(t)?Pl:Cl,i=arguments.length<3;return e(t,$u(n),r,i,Pa)},reject:function(t,n){return(M(t)?Vi:Ja)(t,xf($u(n)))},sample:function(t){return(M(t)?Ul:Nl)(t)},sampleSize:function(t,n,r){return n=(r?rr(t,n,r):void 0===n)?1:J(n),(M(t)?ql:$l)(t,n)},shuffle:function(t){return(M(t)?Vl:Kl)(t)},size:function(t){if(null==t)return 0;if(nr(t))return Ac(t)?il(t):t.length;var n=vo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Sr(t).length},some:function(t,n,r){var e=M(t)?Xo:Gl;return r&&rr(t,n,r)&&(n=void 0),e(t,$u(n))},sortBy:Hl},rp=ia,ep={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=J(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:$n,before:Ee,bind:Ie,bindKey:Me,curry:ra,curryRight:ea,debounce:aa,defer:ma,delay:ja,flip:function(t){return qn(t,512)},memoize:Qr,negate:xf,once:function(t){return Ee(2,t)},overArgs:Tf,partial:sl,partialRight:pl,rearg:zl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Qn(t,n=void 0===n?n:J(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:rs(J(n),0),Qn((function(r){var e=r[n],i=Re(r,0,n);return e&&fe(i,e),xt(t,this,i)}))},throttle:function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),aa(t,n,{leading:e,maxWait:n,trailing:i})},unary:function(t){return $n(t,1)},wrap:function(t,n){return sl(Ra(n),t)}},ip={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return M(t)?t:[t]},clone:function(t){return Yo(t,4)},cloneDeep:function(t){return Yo(t,5)},cloneDeepWith:function(t,n){return Yo(t,5,n="function"==typeof n?n:void 0)},cloneWith:function(t,n){return Yo(t,4,n="function"==typeof n?n:void 0)},conformsTo:function(t,n){return null==n||Vu(t,n,Rr(n))},eq:Kn,gt:_c,gte:bc,isArguments:sr,isArray:M,isArrayBuffer:Gc,isArrayLike:nr,isArrayLikeObject:pa,isBoolean:function(t){return!0===t||!1===t||x(t)&&"[object Boolean]"==w(t)},isBuffer:yr,isDate:Jc,isElement:function(t){return x(t)&&1===t.nodeType&&!xe(t)},isEmpty:function(t){if(null==t)return!0;if(nr(t)&&(M(t)||"string"==typeof t||"function"==typeof t.splice||yr(t)||Or(t)||sr(t)))return!t.length;var n=vo(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(or(t))return!Sr(t).length;for(var r in t)if(Yc.call(t,r))return!1;return!0},isEqual:function(t,n){return ku(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?ku(t,n,void 0,r):!!e},isError:Oe,isFinite:function(t){return"number"==typeof t&&Qc(t)},isFunction:rt,isInteger:Xc,isLength:tr,isMap:$o,isMatch:function(t,n){return t===n||Ru(t,n,Bu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Ru(t,n,Bu(n),r)},isNaN:function(t){return tf(t)&&t!=+t},isNative:function(t){if(nf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vt(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:tf,isObject:U,isObjectLike:x,isPlainObject:xe,isRegExp:ef,isSafeInteger:function(t){return Xc(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Ko,isString:Ac,isSymbol:A,isTypedArray:Or,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return x(t)&&"[object WeakMap]"==vo(t)},isWeakSet:function(t){return x(t)&&"[object WeakSet]"==w(t)},lt:hf,lte:vf,toArray:Af,toFinite:H,toInteger:J,toLength:Ha,toNumber:K,toPlainObject:va,toSafeInteger:function(t){return t?Li(J(t),-9007199254740991,9007199254740991):0===t?t:0},toString:re},op={add:C,ceil:Bi,divide:Ma,floor:fc,max:function(t){return t&&t.length?df(t,Y,yc):void 0},maxBy:function(t,n){return t&&t.length?df(t,$u(n),yc):void 0},mean:function(t){return gf(t,Y)},meanBy:function(t,n){return gf(t,$u(n))},min:function(t){return t&&t.length?df(t,Y,pf):void 0},minBy:function(t,n){return t&&t.length?df(t,$u(n),pf):void 0},multiply:wf,round:Tl,subtract:is,sum:function(t){return t&&t.length?yf(t,Y):0},sumBy:function(t,n){return t&&t.length?yf(t,$u(n)):0}},up={assign:Br,assignIn:Pr,assignInWith:Lr,assignWith:Dr,at:de,create:function(t,n){var r=mt(t);return null==n?r:Ti(r,n)},defaults:la,defaultsDeep:_a,entries:Ta,entriesIn:Ua,extend:Pr,extendWith:Lr,findKey:function(t,n){return nc(t,$u(n),Hu)},findLastKey:function(t,n){return nc(t,$u(n),Ca)},forIn:function(t,n){return null==t?t:Gu(t,Ra(n),Cr)},forInRight:function(t,n){return null==t?t:za(t,Ra(n),Cr)},forOwn:function(t,n){return t&&Hu(t,Ra(n))},forOwnRight:function(t,n){return t&&Ca(t,Ra(n))},functions:function(t){return null==t?[]:hc(t,Rr(t))},functionsIn:function(t){return null==t?[]:hc(t,Cr(t))},get:ae,has:function(t,n){return null!=t&&Lu(t,n,jc)},hasIn:Du,invert:Dc,invertBy:Fc,invoke:Vc,keys:Rr,keysIn:Cr,mapKeys:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,i){Vn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=$u(n),Hu(t,(function(t,e,i){Vn(r,e,n(t,e,i))})),r},merge:_f,mergeWith:ga,omit:Mf,omitBy:function(t,n){return Wf(t,xf($u(n)))},pick:vl,pickBy:Wf,result:function(t,n,r){var e=-1,i=(n=ee(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 kt;){var e=Dt(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 St){var n=t;return this.__actions__.length&&(n=new St(this)),(n=n.reverse()).__actions__.push({func:ms,args:[Dl],thisArg:void 0}),new Pt(n,this.__chain__)}return this.thru(Dl)},tap:function(t,n){return n(t),t},thru:ms,toIterator:function(){return this},toJSON:Os,value:Os,valueOf:Os,wrapperChain:function(){return zi(this)}},cp={camelCase:Mi,capitalize:He,deburr:ni,endsWith:function(t,n,r){t=re(t),n=B(n);var e=t.length,i=r=void 0===r?e:Li(J(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:$a,escapeRegExp:function(t){return(t=re(t))&&Ka.test(t)?t.replace(Va,"\\$&"):t},kebabCase:uf,lowerCase:lf,lowerFirst:sf,pad:function(t,n,r){t=re(t);var e=(n=J(n))?il(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return ul(cl(i),r)+t+ul(al(i),r)},padEnd:function(t,n,r){t=re(t);var e=(n=J(n))?il(t):0;return n&&e>>0)?(t=re(t))&&("string"==typeof n||null!=n&&!ef(n))&&!(n=B(n))&&Be(t)?Re(Ke(t),0,r):t.split(n,r):[]},startCase:es,startsWith:function(t,n,r){return t=re(t),r=null==r?0:Li(J(r),0,t.length),n=B(n),t.slice(r,r+n.length)==n},template:function(t,n,r){var e=ss.imports._.templateSettings||ss;r&&rr(t,n,r)&&(n=void 0),t=re(t),n=Lr({},n,e,as);var i,o,u=Lr({},n.imports,e.imports,as),a=Rr(u),c=Ec(u,a),f=0,l=n.interpolate||gs,s="__p += '",p=RegExp((n.escape||gs).source+"|"+l.source+"|"+(l===ls?ys:gs).source+"|"+(n.evaluate||gs).source+"|$","g"),h=bs.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(_s,fs),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=bs.call(n,"variable")&&n.variable;if(v){if(ds.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(o?s.replace(ps,""):s).replace(hs,"$1").replace(vs,"$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=Ae((function(){return Function(a,h+"return "+s).apply(void 0,c)}));if(d.source=s,Oe(d))throw d;return d},templateSettings:ss,toLower:function(t){return re(t).toLowerCase()},toUpper:function(t){return re(t).toUpperCase()},trim:function(t,n,r){if((t=re(t))&&(r||void 0===n))return T(t);if(!t||!(n=B(n)))return t;var e=Ke(t),i=Ke(n);return Re(e,Es(e,i),As(e,i)+1).join("")},trimEnd:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.slice(0,L(t)+1);if(!t||!(n=B(n)))return t;var e=Ke(t);return Re(e,0,As(e,Ke(n))+1).join("")},trimStart:function(t,n,r){if((t=re(t))&&(r||void 0===n))return t.replace(Is,"");if(!t||!(n=B(n)))return t;var e=Ke(t);return Re(e,Es(e,Ke(n))).join("")},truncate:function(t,n){var r=30,e="...";if(U(n)){var i="separator"in n?n.separator:i;r="length"in n?J(n.length):r,e="omission"in n?B(n.omission):e}var o=(t=re(t)).length;if(Be(t)){var u=Ke(t);o=u.length}if(r>=o)return t;var a=r-il(e);if(a<1)return e;var c=u?Re(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+e;if(u&&(a+=c.length-a),ef(i)){if(t.slice(a).search(i)){var f,l=c;for(i.global||(i=RegExp(i.source,re(ks.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(B(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},unescape:function(t){return(t=re(t))&&Rs.test(t)?t.replace(Ss,Ms):t},upperCase:qs,upperFirst:Ge,words:Ei},fp={attempt:Ae,bindAll:ke,cond:function(t){var n=null==t?0:t.length,r=$u;return t=n?k(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[r(t[0]),t[1]]})):[],Qn((function(r){for(var e=-1;++e9007199254740991)return[];var r=js,e=ws(t,js);n=Ra(n),t-=js;for(var i=ur(e,n);++r=xc(n,r)&&tn){var e=t;t=n,n=e}if(r||t%1||n%1){var i=kl();return Il(t+i*(n-t+El("1e-"+((i+"").length-1))),n)}return Al(t,n)},Ut.reduce=np.reduce,Ut.reduceRight=np.reduceRight,Ut.repeat=cp.repeat,Ut.replace=cp.replace,Ut.result=up.result,Ut.round=op.round,Ut.sample=np.sample,Ut.size=np.size,Ut.snakeCase=cp.snakeCase,Ut.some=np.some,Ut.sortedIndex=tp.sortedIndex,Ut.sortedIndexBy=tp.sortedIndexBy,Ut.sortedIndexOf=tp.sortedIndexOf,Ut.sortedLastIndex=tp.sortedLastIndex,Ut.sortedLastIndexBy=tp.sortedLastIndexBy,Ut.sortedLastIndexOf=tp.sortedLastIndexOf,Ut.startCase=cp.startCase,Ut.startsWith=cp.startsWith,Ut.subtract=op.subtract,Ut.sum=op.sum,Ut.sumBy=op.sumBy,Ut.template=cp.template,Ut.times=fp.times,Ut.toFinite=ip.toFinite,Ut.toInteger=J,Ut.toLength=ip.toLength,Ut.toLower=cp.toLower,Ut.toNumber=ip.toNumber,Ut.toSafeInteger=ip.toSafeInteger,Ut.toString=ip.toString,Ut.toUpper=cp.toUpper,Ut.trim=cp.trim,Ut.trimEnd=cp.trimEnd,Ut.trimStart=cp.trimStart,Ut.truncate=cp.truncate,Ut.unescape=cp.unescape,Ut.uniqueId=fp.uniqueId,Ut.upperCase=cp.upperCase,Ut.upperFirst=cp.upperFirst,Ut.each=np.forEach,Ut.eachRight=np.forEachRight,Ut.first=tp.head,bp(Ut,(Qs={},Hu(Ut,(function(t,n){dp.call(Ut.prototype,n)||(Qs[n]=t)})),Qs),{chain:!1}),Ut.VERSION="4.17.21",(Ut.templateSettings=cp.templateSettings).imports._=Ut,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ut[t].placeholder=Ut})),Yt(["drop","take"],(function(t,n){St.prototype[t]=function(r){r=void 0===r?1:gp(J(r),0);var e=this.__filtered__&&!n?new St(this):this.clone();return e.__filtered__?e.__takeCount__=_p(r,e.__takeCount__):e.__views__.push({size:_p(r,hp),type:t+(e.__dir__<0?"Right":"")}),e},St.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Yt(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;St.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:$u(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),Yt(["head","last"],(function(t,n){var r="take"+(n?"Right":"");St.prototype[t]=function(){return this[r](1).value()[0]}})),Yt(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");St.prototype[t]=function(){return this.__filtered__?new St(this):this[r](1)}})),St.prototype.compact=function(){return this.filter(Y)},St.prototype.find=function(t){return this.filter(t).head()},St.prototype.findLast=function(t){return this.reverse().find(t)},St.prototype.invokeMap=Qn((function(t,n){return"function"==typeof t?new St(this):this.map((function(r){return $c(r,t,n)}))})),St.prototype.reject=function(t){return this.filter(xf($u(t)))},St.prototype.slice=function(t,n){t=J(t);var r=this;return r.__filtered__&&(t>0||n<0)?new St(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=J(n))<0?r.dropRight(-n):r.take(n-t)),r)},St.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},St.prototype.toArray=function(){return this.take(hp)},Hu(St.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Ut[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Ut.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof St,c=u[0],f=a||M(n),l=function(t){var n=i.apply(Ut,fe([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 St(this);var d=t.apply(n,u);return d.__actions__.push({func:ms,args:[l],thisArg:void 0}),new Pt(d,s)}return h&&v?t.apply(this,u):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),Yt(["pop","push","shift","sort","splice","unshift"],(function(t){var n=vp[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ut.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(M(i)?i:[],t)}return this[r]((function(r){return n.apply(M(r)?r:[],t)}))}})),Hu(St.prototype,(function(t,n){var r=Ut[n];if(r){var e=r.name+"";dp.call(Bt,e)||(Bt[e]=[]),Bt[e].push({name:n,func:r})}})),Bt[An(void 0,2).name]=[{name:"wrapper",func:void 0}],St.prototype.clone=function(){var t=new St(this.__wrapped__);return t.__actions__=Lt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lt(this.__views__),t},St.prototype.reverse=function(){if(this.__filtered__){var t=new St(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},St.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=M(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e{const e=c(t),o=(0,i.useMemo)((()=>aa(e,n,r)),[e,n,r]);return(t=>{const n=c(t);(0,i.useEffect)((()=>()=>n()),[n])})((()=>o.cancel())),o},jp=({children:t,capture:n,wait:r,options:e})=>{const o=i.Children.only(t),u=mp(((...t)=>{const r=null==o?void 0:o.props;if(r)return"function"==typeof r[n]?r[n](...t):void 0}),r,e);return(0,i.cloneElement)(o,{[n]:u})};function wp(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,i.useRef)(null),a=c(t),f=(0,i.useCallback)((([t],r)=>{if(t&&t.isIntersecting){const e=t.target;a&&a(t),n&&r.unobserve(e)}}),[a,n]);return(0,i.useEffect)((()=>{const t=u.current;if("undefined"==typeof IntersectionObserver)return;if(!t)return;const n=new IntersectionObserver(f,{root:r,rootMargin:o,threshold:e});return n.observe(t),()=>{n.unobserve(t)}}),[r,e,o,f]),u},Op=(...t)=>(0,i.useCallback)((n=>{t.forEach((t=>{"function"==typeof t?t(n):null!=t&&(t.current=n)}))}),[...t]),Ap=(0,i.forwardRef)(((t,n)=>{const{action:r,calledOnce:i,threshold:o,root:u,rootMargin:a}=t,c=wp(t,["action","calledOnce","threshold","root","rootMargin"]),f=xp({action:r,calledOnce:i,threshold:o,root:u,rootMargin:a});return(0,e.jsx)("div",Object.assign({ref:Op(n,f)},c,{children:t.children}))})),Ep=(0,i.forwardRef)(((t,n)=>{var{src:r,style:o,threshold:u,root:a,rootMargin:c}=t,f=wp(t,["src","style","threshold","root","rootMargin"]);const l=xp({action:t=>{t.target.src=r},calledOnce:!0,threshold:u,root:a,rootMargin:c}),s=(0,i.useMemo)((()=>Object.assign({display:"inline-block"},o)),[o]);return(0,e.jsx)("img",Object.assign({},f,{ref:Op(n,l),style:s}))})),Ip=a()?i.useLayoutEffect:i.useEffect;(0,i.createContext)({parentPortalElement:null});const kp=({children:t,condition:n})=>(t=>"function"==typeof t?t():t)(n)?(0,e.jsx)(i.Fragment,{children:t}):null,Mp=t=>!!a()&&window.matchMedia(t).matches,Sp=t=>{const[n,r]=(0,i.useState)(Mp(t)),e=(0,i.useCallback)((()=>{r(Mp(t))}),[t]);return(0,i.useEffect)((()=>{const n=window.matchMedia(t);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[t,e]),{isMatch:n}},Rp=t=>{const n=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=t}),[t]),n.current},Wp=t=>{const[n,r]=(0,i.useState)({bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}),e=(0,i.useRef)(null),o=c(t),u=(0,i.useCallback)((([t])=>{t&&(o(t),r(t.contentRect))}),[o]);return(0,i.useEffect)((()=>{const t=e.current;if("undefined"==typeof ResizeObserver)return;if(!t)return;const n=new ResizeObserver(u);return n.observe(t),()=>{n.unobserve(t)}}),[u]),{ref:e,contentRect:n}},Bp=(t={})=>{const{isDebounce:n=!1,wait:r=300}=t,[e,o]=(0,i.useState)({width:null,height:null}),u=(0,i.useCallback)((()=>{o({width:window.innerWidth,height:window.innerHeight})}),[]),a=mp(u,r),c=(0,i.useMemo)((()=>n?a:u),[u,n,a]);return Ip((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),e}}}]); \ No newline at end of file diff --git a/assets/js/bf0dbc92.3d381c8e.js b/assets/js/bf0dbc92.3d381c8e.js new file mode 100644 index 000000000..731f2fa10 --- /dev/null +++ b/assets/js/bf0dbc92.3d381c8e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8067],{6037:(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(289),o=r(5474);const u={},a="InView",c={id:"react/components/InView",title:"InView",description:"Viewport\uc5d0 \ub178\ucd9c\ub420 \ub54c props\ub85c \ub118\uaca8\uc8fc\ub294 action \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4.",source:"@site/docs/react/components/InView.mdx",sourceDirName:"react/components",slug:"/react/components/InView",permalink:"/modern-kit/docs/react/components/InView",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"DebounceWrapper",permalink:"/modern-kit/docs/react/components/DebounceWrapper"},next:{title:"LazyImage",permalink:"/modern-kit/docs/react/components/LazyImage"}},f={},l=[{value:"Interface",id:"interface",level:2},{value:"Usage",id:"usage",level:2},{value:"Example",id:"example",level:2}];function s(t){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,i.a)(),...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.h1,{id:"inview",children:"InView"}),"\n",(0,e.jsxs)(n.p,{children:[(0,e.jsx)(n.code,{children:"Viewport"}),"\uc5d0 \ub178\ucd9c\ub420 \ub54c props\ub85c \ub118\uaca8\uc8fc\ub294 ",(0,e.jsx)(n.code,{children:"action"})," \ucf5c\ubc31 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ucef4\ud3ec\ub10c\ud2b8\uc785\ub2c8\ub2e4."]}),"\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 UseIntersectionObserverProps {\n action: (entry: IntersectionObserverEntry) => void;\n calledOnce?: boolean;\n threshold?: number | number[];\n root?: Document | Element | null;\n rootMargin?: string;\n}\n\ntype InViewProps = React.ComponentProps<'div'> & UseIntersectionObserverProps;\n\nconst InView: React.ForwardRefExoticComponent<\n Omit, 'ref'> &\n React.RefAttributes\n>;\n"})}),"\n",(0,e.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,e.jsx)(n.pre,{children:(0,e.jsx)(n.code,{className:"language-tsx",children:"import { InView } from '@modern-kit/react';\n\nconst Example = () => {\n const onAction = () => {\n /* action */\n }\n\n return (\n
\n {/* ... */}\n Box1\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:"#f1f3f5"},children:[(0,e.jsx)("div",{style:{width:"100%",height:"600px",textAlign:"center",fontSize:"2rem"},children:"\uc2a4\ud06c\ub864 \ud574\uc8fc\uc138\uc694."}),(0,e.jsx)(o.df,{style:{width:"100%",height:"300px",background:"#c0392B",color:"white",textAlign:"center",fontSize:"21px"},action:()=>console.log("action callback(1)"),calledOnce:!0,children:(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"Box1"}),(0,e.jsx)("p",{children:"\ube0c\ub77c\uc6b0\uc800 \uac1c\ubc1c\uc790 \ub3c4\uad6c\uc758 \ucf58\uc194\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694."}),(0,e.jsx)("p",{children:"action \ucf5c\ubc31 \ud568\uc218\uac00 \ucd5c\ucd08 1\ud68c\ub9cc \ud638\ucd9c\ub429\ub2c8\ub2e4."}),(0,e.jsx)("p",{children:"calledOnce: true"})]})}),(0,e.jsx)("div",{style:{width:"100%",height:"100px"}}),(0,e.jsx)(o.df,{style:{width:"100%",height:"300px",background:"#89a5ea",color:"white",textAlign:"center",fontSize:"21px"},action:()=>console.log("action callback(2)"),children:(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"Box2"}),(0,e.jsx)("p",{children:"\ube0c\ub77c\uc6b0\uc800 \uac1c\ubc1c\uc790 \ub3c4\uad6c\uc758 \ucf58\uc194\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694."}),(0,e.jsx)("p",{children:"action \ucf5c\ubc31 \ud568\uc218\uac00 \uc5ec\ub7ec \ubc88 \ud638\ucd9c\ub429\ub2c8\ub2e4."}),(0,e.jsx)("p",{children:"calledOnce: false"})]})}),(0,e.jsx)("div",{style:{width:"100%",height:"600px",textAlign:"center"}})]})]})}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)}},289:(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:()=>Sp,df:()=>xp,iP:()=>Bp,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]",y=c?c.toStringTag:void 0;function g(t){return null==t?void 0===t?d:v:y&&y 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)&&g(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);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Tt=Dt(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){}}(),Vt=$t?function(t,n){return $t(t,"toString",{configurable:!0,enumerable:!1,value:qt(n),writable:!0})}:K,Kt=Dt(Vt);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 Kt(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]&&!Yt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Nt):[]}(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 Lt(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&&t1&&b.reverse(),s&&f<_&&(b.length=f),this&&this!==a&&this instanceof g&&(A=y||yt(A)),A.apply(O,b)}}var wn=1,xn="__lodash_placeholder__",On=1,An=2,En=4,In=8,kn=128,Mn=256,Sn=Math.min,Rn="Expected a function",Wn=1,Bn=2,zn=8,Pn=16,Ln=32,Cn=64,Dn=Math.max;function Tn(t,n,r,e,i,o,u,c){var f=n&Bn;if(!f&&"function"!=typeof t)throw new TypeError(Rn);var l=e?e.length:0;if(l||(n&=~(Ln|Cn),e=i=void 0),u=void 0===u?u:Dn(V(u),0),c=void 0===c?c:V(c),l-=i?i.length:0,n&Cn){var s=e,p=i;e=i=void 0}var h=f?void 0:It(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==In||e==kn&&r==Mn&&t[7].length<=n[8]||e==(kn|Mn)&&n[7].length<=n[8]&&r==In;if(!o&&!u)return t;e&On&&(t[2]=n[2],i|=r&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),e&kn&&(t[8]=null==t[8]?n[8]:Sn(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&(zn|Pn)&&(n&=~(zn|Pn)),n&&n!=Wn)d=n==zn||n==Pn?function(t,n,r){var e=yt(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<=Hn}function Yn(t){return null!=t&&Jn(t.length)&&!Y(t)}function Qn(t,n,r){if(!P(r))return!1;var e=typeof n;return!!("number"==e?Yn(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 Vr=lt(a,"Map");function Kr(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();++n0&&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 Kt(Zn(t,void 0,fe),t+"")}var se=le(ie),pe=xr(Object.getPrototypeOf,Object),he="[object Object]",ve=Function.prototype,de=Object.prototype,ye=ve.toString,ge=de.hasOwnProperty,_e=ye.call(Object);function be(t){if(!_(t)||g(t)!=he)return!1;var n=pe(t);if(null===n)return!0;var r=ge.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ye.call(r)==_e}function me(t){if(!_(t))return!1;var n=g(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=V(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),Nn(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 Ee(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:Ee(t,n,r)}Ae.placeholder={};var ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Me(t){return ke.test(t)}var Se="\\ud800-\\udfff",Re="["+Se+"]",We="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Be="\\ud83c[\\udffb-\\udfff]",ze="[^"+Se+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="(?:"+We+"|"+Be+")?",De="[\\ufe0e\\ufe0f]?",Te=De+Ce+"(?:\\u200d(?:"+[ze,Pe,Le].join("|")+")"+De+Ce+")*",Ue="(?:"+[ze+We+"?",We,Pe,Le,Re].join("|")+")",Ne=RegExp(Be+"(?="+Be+")|"+Ue+Te,"g");function Fe(t){return Me(t)?function(t){return t.match(Ne)||[]}(t):function(t){return t.split("")}(t)}function qe(t){return function(n){var r=Me(n=Qr(n))?Fe(n):void 0,e=r?r[0]:n.charAt(0),i=r?Ie(r,1).join(""):n.slice(1);return e[t]()+i}}var $e=qe("toUpperCase");function Ve(t){return $e(Qr(t).toLowerCase())}function Ke(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 zi(t){var n=this.__data__=new $r(t);this.size=n.size}function Pi(t,n){return t&&Vn(n,Ir(n),t)}zi.prototype.clear=function(){this.__data__=new $r,this.size=0},zi.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},zi.prototype.get=function(t){return this.__data__.get(t)},zi.prototype.has=function(t){return this.__data__.has(t)},zi.prototype.set=function(t,n){var r=this.__data__;if(r instanceof $r){var e=r.__data__;if(!Vr||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 Li="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ci=Li&&"object"==typeof module&&module&&!module.nodeType&&module,Di=Ci&&Ci.exports===Li?a.Buffer:void 0,Ti=Di?Di.allocUnsafe:void 0;function Ui(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 Ni(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))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 y(t);a=setTimeout(d,function(t){var r=n-(t-c);return s?ra(r,o-(t-f)):r}(t))}function y(t){return a=void 0,p&&e?h(t):(e=i=void 0,u)}function g(){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=N(n)||0,P(r)&&(l=!!r.leading,o=(s="maxWait"in r)?na(N(r.maxWait)||0,n):o,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),f=0,e=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(ta())},g}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=Jo,u=!1,n=new Go(n));t:for(;++i":">",'"':""","'":"'"}),Da=/[&<>"']/g,Ta=RegExp(Da.source);function Ua(t){return(t=Qr(t))&&Ta.test(t)?t.replace(Da,Ca):t}var Na=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Na.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 Ha(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:V(r);return i<0&&(i=Ga(e+i,0)),Gt(t,Uu(n),i)}var Ja=Za(Ha);function Ya(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=V(r),i=r<0?Qa(e+i,0):Xa(i,e-1)),Gt(t,Uu(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=Yn(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,Uu(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"==St(o))var u=new Rt([],!0)}for(e=u?e:r;++en}function hc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=N(n),r=N(r)),t(n,r)}}var vc=hc(pc),dc=hc((function(t,n){return t>=n})),yc=Object.prototype.hasOwnProperty;function gc(t,n){return null!=t&&yc.call(t,n)}var _c=Math.max,bc=Math.min,mc="[object String]";function jc(t){return"string"==typeof t||!O(t)&&_(t)&&g(t)==mc}function wc(t,n){return x(n,(function(n){return t[n]}))}function xc(t){return null==t?[]:wc(t,Ir(t))}var Oc=Math.max,Ac=Math.max,Ec=Math.min;function Ic(t,n,r){for(var e=r?_a:Yt,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=Ec(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})),Vn(t,Hi(t),r),e&&(r=Zo(r,7,Of));for(var i=n.length;i--;)xf(r,n[i]);return r}));function Ef(t,n,r,e){if(!P(t))return t;for(var i=-1,o=(n=Xr(n,t)).length,u=o-1,a=t;null!=a&&++in||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(Uu)),Gn((function(r){var e=this;return t(n,(function(t){return _t(t,e,r)}))}))}))}var Wf=Rf(x),Bf=Gn,zf=Math.min,Pf=Bf((function(t,n){var r=(n=1==n.length&&O(n[0])?x(n[0],vr(Uu)):x(ce(n,1),vr(Uu))).length;return Gn((function(e){for(var i=-1,o=zf(e.length,r);++iDf)return r;do{n%2&&(r+=t),(n=Tf(n/2))&&(t+=t)}while(n);return r}var Nf=Du("length"),Ff="\\ud800-\\udfff",qf="["+Ff+"]",$f="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vf="\\ud83c[\\udffb-\\udfff]",Kf="[^"+Ff+"]",Zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Gf="[\\ud800-\\udbff][\\udc00-\\udfff]",Hf="(?:"+$f+"|"+Vf+")?",Jf="[\\ufe0e\\ufe0f]?",Yf=Jf+Hf+"(?:\\u200d(?:"+[Kf,Zf,Gf].join("|")+")"+Jf+Hf+")*",Qf="(?:"+[Kf+$f+"?",$f,Zf,Gf,qf].join("|")+")",Xf=RegExp(Vf+"(?="+Vf+")|"+Qf+Yf,"g");function tl(t){return Me(t)?function(t){for(var n=Xf.lastIndex=0;Xf.test(t);)++n;return n}(t):Nf(t)}var nl=Math.ceil;function rl(t,n){var r=(n=void 0===n?" ":k(n)).length;if(r<2)return r?Uf(n,t):n;var e=Uf(n,nl(t/tl(n)));return Me(n)?Ie(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=Hu((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),ll=le((function(t,n){return null==t?{}:function(t,n){return If(t,n,(function(n,r){return zu(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),yl=Array.prototype.splice;function gl(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)?yl.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 gl(t,x(n,(function(t){return sn(t,r)?+t:t})).sort(Mf)),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,El=Math.max;function Il(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=El(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?n1&&Qn(t,n[0],n[1])?n=[]:r>2&&Qn(n[0],n[1],n[2])&&(n=[n[0]]),Sf(t,ce(n,1),[])})),Kl=4294967294,Zl=Math.floor,Gl=Math.min;function Hl(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: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 ys(t,n){return n(t)}var gs=4294967295,_s=Math.min;function bs(t,n){var r=t;return r instanceof At&&(r=r.value()),Ke(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--&&Jt(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({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Es=/&(?:amp|lt|gt|quot|#39);/g,Is=RegExp(Es.source),ks=Qi&&1/nu(new Qi([,-0]))[1]==1/0?function(t){return new Qi(t)}:Et,Ms=200;function Ss(t,n,r){var e=-1,i=Yt,o=t.length,u=!0,a=[],c=a;if(r)u=!1,i=_a;else if(o>=Ms){var f=n?null:ks(t);if(f)return nu(f);u=!1,i=Jo,c=new Go}else c=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof At&&sn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:ys,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?Ss(t[0]):[];for(var i=-1,o=Array(e);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Cs(t,r)})),Ys={chunk:function(t,n,r){n=(r?Qn(t,n,r):void 0===n)?1:Wi(V(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));ii?0:i+r),(e=void 0===e||e>i?i:V(e))<0&&(e+=i),e=r>e?0:Va(e);r-1:!!i&&Jt(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]),Sf(t,n,r))},partition:fl,reduce:function(t,n,r){var e=O(t)?Ke:Rl,i=arguments.length<3;return e(t,Uu(n),r,i,Zu)},reduceRight:function(t,n,r){var e=O(t)?Wl:Rl,i=arguments.length<3;return e(t,Uu(n),r,i,Wa)},reject:function(t,n){return(O(t)?Ni:Ka)(t,bf(Uu(n)))},sample:function(t){return(O(t)?Ll:Cl)(t)},sampleSize:function(t,n,r){return n=(r?Qn(t,n,r):void 0===n)?1:V(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=lo(t);return"[object Map]"==n||"[object Set]"==n?t.size:Er(t).length},some:function(t,n,r){var e=O(t)?Ho:$l;return r&&Qn(t,n,r)&&(n=void 0),e(t,Uu(n))},sortBy:Vl},Xs=ta,tp={after:function(t,n){if("function"!=typeof n)throw new TypeError("Expected a function");return t=V(t),function(){if(--t<1)return n.apply(this,arguments)}},ary:Un,before:we,bind:xe,bindKey:Ae,curry:Qu,curryRight:Xu,debounce:ea,defer:ya,delay:ga,flip:function(t){return Tn(t,512)},memoize:Gr,negate:bf,once:function(t){return we(2,t)},overArgs:Pf,partial:al,partialRight:cl,rearg:Sl,rest:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return Gn(t,n=void 0===n?n:V(n))},spread:function(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:Ql(V(n),0),Gn((function(r){var e=r[n],i=Ie(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 P(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 Un(t,1)},wrap:function(t,n){return al(Ia(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||Nu(t,n,Ir(n))},eq:Fn,gt:vc,gte:dc,isArguments:ar,isArray:O,isArrayBuffer:$c,isArrayLike:Yn,isArrayLikeObject:ca,isBoolean:function(t){return!0===t||!1===t||_(t)&&"[object Boolean]"==g(t)},isBuffer:pr,isDate:Kc,isElement:function(t){return _(t)&&1===t.nodeType&&!be(t)},isEmpty:function(t){if(null==t)return!0;if(Yn(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!Er(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:Y,isInteger:Hc,isLength:Jn,isMap:Uo,isMatch:function(t,n){return t===n||Iu(t,n,Mu(n))},isMatchWith:function(t,n,r){return r="function"==typeof r?r:void 0,Iu(t,n,Mu(n),r)},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:P,isObjectLike:_,isPlainObject:be,isRegExp:Xc,isSafeInteger:function(t){return Hc(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]"==g(t)},lt:ff,lte:lf,toArray:jf,toFinite:$,toInteger:V,toLength:Va,toNumber:N,toPlainObject:la,toSafeInteger:function(t){return t?Bi(V(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Qr},rp={add:S,ceil:Mi,divide:Aa,floor:oc,max:function(t){return t&&t.length?sf(t,K,pc):void 0},maxBy:function(t,n){return t&&t.length?sf(t,Uu(n),pc):void 0},mean:function(t){return hf(t,K)},meanBy:function(t,n){return hf(t,Uu(n))},min:function(t){return t&&t.length?sf(t,K,cf):void 0},minBy:function(t,n){return t&&t.length?sf(t,Uu(n),cf):void 0},multiply:_f,round:Pl,subtract:ts,sum:function(t){return t&&t.length?pf(t,K):0},sumBy:function(t,n){return t&&t.length?pf(t,Uu(n)):0}},ep={assign:Mr,assignIn:Wr,assignInWith:Br,assignWith:zr,at:se,create:function(t,n){var r=dt(t);return null==n?r:Pi(r,n)},defaults:ua,defaultsDeep:va,entries:Pa,entriesIn:La,extend:Wr,extendWith:Br,findKey:function(t,n){return Ya(t,Uu(n),Vu)},findLastKey:function(t,n){return Ya(t,Uu(n),Ra)},forIn:function(t,n){return null==t?t:$u(t,Ia(n),Rr)},forInRight:function(t,n){return null==t?t:Sa(t,Ia(n),Rr)},forOwn:function(t,n){return t&&Vu(t,Ia(n))},forOwnRight:function(t,n){return t&&Ra(t,Ia(n))},functions:function(t){return null==t?[]:fc(t,Ir(t))},functionsIn:function(t){return null==t?[]:fc(t,Rr(t))},get:ee,has:function(t,n){return null!=t&&Bu(t,n,gc)},hasIn:zu,invert:zc,invertBy:Dc,invoke:Nc,keys:Ir,keysIn:Rr,mapKeys:function(t,n){var r={};return n=Uu(n),Vu(t,(function(t,e,i){Nn(r,n(t,e,i),t)})),r},mapValues:function(t,n){var r={};return n=Uu(n),Vu(t,(function(t,e,i){Nn(r,e,n(t,e,i))})),r},merge:vf,mergeWith:ha,omit:Af,omitBy:function(t,n){return kf(t,bf(Uu(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=Bt(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:ys,args:[zl],thisArg:void 0}),new Rt(n,this.__chain__)}return this.thru(zl)},tap:function(t,n){return n(t),t},thru:ys,toIterator:function(){return this},toJSON:ms,value:ms,valueOf:ms,wrapperChain:function(){return Si(this)}},op={camelCase:Ai,capitalize:Ve,deburr:Ye,endsWith:function(t,n,r){t=Qr(t),n=k(n);var e=t.length,i=r=void 0===r?e:Bi(V(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},escape:Ua,escapeRegExp:function(t){return(t=Qr(t))&&Fa.test(t)?t.replace(Na,"\\$&"):t},kebabCase:nf,lowerCase:uf,lowerFirst:af,pad:function(t,n,r){t=Qr(t);var e=(n=V(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=V(n))?tl(t):0;return n&&e>>0)?(t=Qr(t))&&("string"==typeof n||null!=n&&!Xc(n))&&!(n=k(n))&&Me(t)?Ie(Fe(t),0,r):t.split(n,r):[]},startCase:Xl,startsWith:function(t,n,r){return t=Qr(t),r=null==r?0:Bi(V(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=Br({},n,e,es);var i,o,u=Br({},n.imports,e.imports,es),a=Ir(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 z(t);if(!t||!(n=k(n)))return t;var e=Fe(t),i=Fe(n);return Ie(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 Ie(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 Ie(e,ws(e,Fe(n))).join("")},truncate:function(t,n){var r=30,e="...";if(P(n)){var i="separator"in n?n.separator:i;r="length"in n?V(n.length):r,e="omission"in n?k(n.omission):e}var o=(t=Qr(t)).length;if(Me(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?Ie(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))&&Is.test(t)?t.replace(Es,As):t},upperCase:Ts,upperFirst:$e,words:wi},up={attempt:je,bindAll:Oe,cond:function(t){var n=null==t?0:t.length,r=Uu;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;++e9007199254740991)return[];var r=gs,e=_s(t,gs);n=Ia(n),t-=gs;for(var i=rr(e,n);++r=bc(n,r)&&t<_c(n,r)}(t=N(t),n,r)},Pt.invoke=ep.invoke,Pt.isArguments=np.isArguments,Pt.isArray=O,Pt.isArrayBuffer=np.isArrayBuffer,Pt.isArrayLike=np.isArrayLike,Pt.isArrayLikeObject=np.isArrayLikeObject,Pt.isBoolean=np.isBoolean,Pt.isBuffer=np.isBuffer,Pt.isDate=np.isDate,Pt.isElement=np.isElement,Pt.isEmpty=np.isEmpty,Pt.isEqual=np.isEqual,Pt.isEqualWith=np.isEqualWith,Pt.isError=np.isError,Pt.isFinite=np.isFinite,Pt.isFunction=np.isFunction,Pt.isInteger=np.isInteger,Pt.isLength=np.isLength,Pt.isMap=np.isMap,Pt.isMatch=np.isMatch,Pt.isMatchWith=np.isMatchWith,Pt.isNaN=np.isNaN,Pt.isNative=np.isNative,Pt.isNil=np.isNil,Pt.isNull=np.isNull,Pt.isNumber=np.isNumber,Pt.isObject=P,Pt.isObjectLike=np.isObjectLike,Pt.isPlainObject=np.isPlainObject,Pt.isRegExp=np.isRegExp,Pt.isSafeInteger=np.isSafeInteger,Pt.isSet=np.isSet,Pt.isString=np.isString,Pt.isSymbol=np.isSymbol,Pt.isTypedArray=np.isTypedArray,Pt.isUndefined=np.isUndefined,Pt.isWeakMap=np.isWeakMap,Pt.isWeakSet=np.isWeakSet,Pt.join=Ys.join,Pt.kebabCase=op.kebabCase,Pt.last=wa,Pt.lastIndexOf=Ys.lastIndexOf,Pt.lowerCase=op.lowerCase,Pt.lowerFirst=op.lowerFirst,Pt.lt=np.lt,Pt.lte=np.lte,Pt.max=rp.max,Pt.maxBy=rp.maxBy,Pt.mean=rp.mean,Pt.meanBy=rp.meanBy,Pt.min=rp.min,Pt.minBy=rp.minBy,Pt.stubArray=up.stubArray,Pt.stubFalse=up.stubFalse,Pt.stubObject=up.stubObject,Pt.stubString=up.stubString,Pt.stubTrue=up.stubTrue,Pt.multiply=rp.multiply,Pt.nth=Ys.nth,Pt.noop=up.noop,Pt.now=Xs,Pt.pad=op.pad,Pt.padEnd=op.padEnd,Pt.padStart=op.padStart,Pt.parseInt=op.parseInt,Pt.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)},Pt.reduce=Qs.reduce,Pt.reduceRight=Qs.reduceRight,Pt.repeat=op.repeat,Pt.replace=op.replace,Pt.result=ep.result,Pt.round=rp.round,Pt.sample=Qs.sample,Pt.size=Qs.size,Pt.snakeCase=op.snakeCase,Pt.some=Qs.some,Pt.sortedIndex=Ys.sortedIndex,Pt.sortedIndexBy=Ys.sortedIndexBy,Pt.sortedIndexOf=Ys.sortedIndexOf,Pt.sortedLastIndex=Ys.sortedLastIndex,Pt.sortedLastIndexBy=Ys.sortedLastIndexBy,Pt.sortedLastIndexOf=Ys.sortedLastIndexOf,Pt.startCase=op.startCase,Pt.startsWith=op.startsWith,Pt.subtract=rp.subtract,Pt.sum=rp.sum,Pt.sumBy=rp.sumBy,Pt.template=op.template,Pt.times=up.times,Pt.toFinite=np.toFinite,Pt.toInteger=V,Pt.toLength=np.toLength,Pt.toLower=op.toLower,Pt.toNumber=np.toNumber,Pt.toSafeInteger=np.toSafeInteger,Pt.toString=np.toString,Pt.toUpper=op.toUpper,Pt.trim=op.trim,Pt.trimEnd=op.trimEnd,Pt.trimStart=op.trimStart,Pt.truncate=op.truncate,Pt.unescape=op.unescape,Pt.uniqueId=up.uniqueId,Pt.upperCase=op.upperCase,Pt.upperFirst=op.upperFirst,Pt.each=Qs.forEach,Pt.eachRight=Qs.forEachRight,Pt.first=Ys.head,yp(Pt,(Gs={},Vu(Pt,(function(t,n){pp.call(Pt.prototype,n)||(Gs[n]=t)})),Gs),{chain:!1}),Pt.VERSION="4.17.21",(Pt.templateSettings=op.templateSettings).imports._=Pt,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Pt[t].placeholder=Pt})),Zt(["drop","take"],(function(t,n){At.prototype[t]=function(r){r=void 0===r?1:vp(V(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:Uu(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(K)},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 Uc(r,t,n)}))})),At.prototype.reject=function(t){return this.filter(bf(Uu(t)))},At.prototype.slice=function(t,n){t=V(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=V(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)},Vu(At.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Pt[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Pt.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(Pt,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:ys,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);Pt.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)}))}})),Vu(At.prototype,(function(t,n){var r=Pt[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=gp(t),o=(0,e.useMemo)((()=>ea(i,n,r)),[i,n,r]);return(t=>{const n=gp(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=gp(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,Ep=()=>!Ap(),Ip=Ep()?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},Mp=t=>!!Ep()&&window.matchMedia(t).matches,Sp=t=>{const[n,r]=(0,e.useState)(Mp(t)),i=(0,e.useCallback)((()=>{r(Mp(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=gp(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}},Bp=(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 Ip((()=>(u(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[]),i}}}]); \ No newline at end of file diff --git a/assets/js/main.92b48103.js b/assets/js/main.92b48103.js new file mode 100644 index 000000000..b6d10dd62 --- /dev/null +++ b/assets/js/main.92b48103.js @@ -0,0 +1,2 @@ +/*! For license information please see main.92b48103.js.LICENSE.txt */ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[179],{6782:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,t:()=>i});var r=n(4614),o=n(5735);const a=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,o.jsx)(a.Provider,{value:n,children:t})}},586:(e,t,n)=>{"use strict";var r=n(4614),o=n(2364),a=n(3208),i=n(9691),l=n(7591);const s=[n(1015),n(663),n(9285),n(8867)];var c=n(3423),u=n(3366),d=n(9048),p=n(5735);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var m=n(10),h=n(8314),g=n(5827),b=n(4859),y=n(5839),v=n(430),k=n(6411),w=n(5930),x=n(3394),S=n(8516);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,h.Z)(),r=(0,v.l)(),o=n[e].htmlLang,a=e=>e.replace("-","_");return(0,p.jsxs)(m.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:a(o)}),Object.values(n).filter((e=>o!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:a(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function C(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,h.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,h.Z)(),{pathname:r}=(0,u.TH)();return e+(0,x.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),o=t?`${n}${t}`:r;return(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{property:"og:url",content:o}),(0,p.jsx)("link",{rel:"canonical",href:o})]})}function _(){const{i18n:{currentLocale:e}}=(0,h.Z)(),{metadata:t,image:n}=(0,b.L)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:k.h})]}),n&&(0,p.jsx)(y.d,{image:n}),(0,p.jsx)(C,{}),(0,p.jsx)(E,{}),(0,p.jsx)(S.Z,{tag:w.HX,locale:e}),(0,p.jsx)(m.Z,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const T=new Map;function j(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}var N=n(6782),A=n(9275),L=n(4933);function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>o.forEach((e=>e?.()))}const R=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,L.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,o=t.hash===n.hash,a=t.search===n.search;if(r&&o&&!a)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),P("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function O(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=l.Z.canUseDOM?P("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=P("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),O(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(R,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.AW,{location:t,render:()=>e})})}}const D=I,F="__docusaurus-base-url-issue-banner-container",M="__docusaurus-base-url-issue-banner",z="__docusaurus-base-url-issue-banner-suggestion-container";function B(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${F}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n
\n

Your Docusaurus site did not load properly.

\n

A very common reason is a wrong site baseUrl configuration.

\n

Current configured baseUrl = ${e} ${"/"===e?" (default value)":""}

\n

We suggest trying baseUrl =

\n
\n`}(e)).replace(/{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const o=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;o?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var K=n(9688);const Y=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!Y.has(e))(e))return!1;Y.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(G).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,K.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?Q(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),O(e))},te=Object.freeze(ee),ne=Boolean(!0);if(l.Z.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(i.B6,{children:(0,p.jsx)(a.VK,{children:(0,p.jsx)(W,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},l=()=>{if(ne)r.startTransition((()=>{o.hydrateRoot(e,t,{onRecoverableError:n})}));else{const a=o.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{a.render(t)}))}};O(window.location.pathname).then(l)}},9275:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>p});var r=n(4614),o=n(6809);const a=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/modern-kit/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/modern-kit/docs","mainDocId":"introduce/Introduce","docs":[{"id":"introduce/Introduce","path":"/modern-kit/docs/introduce/","sidebar":"tutorialSidebar"},{"id":"react/components/DebounceWrapper","path":"/modern-kit/docs/react/components/DebounceWrapper","sidebar":"tutorialSidebar"},{"id":"react/components/InView","path":"/modern-kit/docs/react/components/InView","sidebar":"tutorialSidebar"},{"id":"react/components/LazyImage","path":"/modern-kit/docs/react/components/LazyImage","sidebar":"tutorialSidebar"},{"id":"react/components/Portal","path":"/modern-kit/docs/react/components/Portal","sidebar":"tutorialSidebar"},{"id":"react/components/When","path":"/modern-kit/docs/react/components/When","sidebar":"tutorialSidebar"},{"id":"react/hooks/useAsyncPreservedCallback","path":"/modern-kit/docs/react/hooks/useAsyncPreservedCallback","sidebar":"tutorialSidebar"},{"id":"react/hooks/useDebounce","path":"/modern-kit/docs/react/hooks/useDebounce","sidebar":"tutorialSidebar"},{"id":"react/hooks/useForceUpdate","path":"/modern-kit/docs/react/hooks/useForceUpdate","sidebar":"tutorialSidebar"},{"id":"react/hooks/useImageStatus","path":"/modern-kit/docs/react/hooks/useImageStatus","sidebar":"tutorialSidebar"},{"id":"react/hooks/useIntersectionObserver","path":"/modern-kit/docs/react/hooks/useIntersectionObserver","sidebar":"tutorialSidebar"},{"id":"react/hooks/useInterval","path":"/modern-kit/docs/react/hooks/useInterval","sidebar":"tutorialSidebar"},{"id":"react/hooks/useIsMounted","path":"/modern-kit/docs/react/hooks/useIsMounted","sidebar":"tutorialSidebar"},{"id":"react/hooks/useIsomorphicLayoutEffect","path":"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect","sidebar":"tutorialSidebar"},{"id":"react/hooks/useMediaQuery","path":"/modern-kit/docs/react/hooks/useMediaQuery","sidebar":"tutorialSidebar"},{"id":"react/hooks/useMergeRefs","path":"/modern-kit/docs/react/hooks/useMergeRefs","sidebar":"tutorialSidebar"},{"id":"react/hooks/useOnClickOutside","path":"/modern-kit/docs/react/hooks/useOnClickOutside","sidebar":"tutorialSidebar"},{"id":"react/hooks/usePreservedCallback","path":"/modern-kit/docs/react/hooks/usePreservedCallback","sidebar":"tutorialSidebar"},{"id":"react/hooks/usePrevious","path":"/modern-kit/docs/react/hooks/usePrevious","sidebar":"tutorialSidebar"},{"id":"react/hooks/useResizeObserver","path":"/modern-kit/docs/react/hooks/useResizeObserver","sidebar":"tutorialSidebar"},{"id":"react/hooks/useTimeout","path":"/modern-kit/docs/react/hooks/useTimeout","sidebar":"tutorialSidebar"},{"id":"react/hooks/useToggle","path":"/modern-kit/docs/react/hooks/useToggle","sidebar":"tutorialSidebar"},{"id":"react/hooks/useUnmount","path":"/modern-kit/docs/react/hooks/useUnmount","sidebar":"tutorialSidebar"},{"id":"react/hooks/useVisibilityChange","path":"/modern-kit/docs/react/hooks/useVisibilityChange","sidebar":"tutorialSidebar"},{"id":"react/hooks/useWindowScrollTo","path":"/modern-kit/docs/react/hooks/useWindowScrollTo","sidebar":"tutorialSidebar"},{"id":"react/hooks/useWindowSize","path":"/modern-kit/docs/react/hooks/useWindowSize","sidebar":"tutorialSidebar"},{"id":"utils/common/abRandom","path":"/modern-kit/docs/utils/common/abRandom","sidebar":"tutorialSidebar"},{"id":"utils/common/asyncNoop","path":"/modern-kit/docs/utils/common/asyncNoop","sidebar":"tutorialSidebar"},{"id":"utils/common/deepCopy","path":"/modern-kit/docs/utils/common/deepCopy","sidebar":"tutorialSidebar"},{"id":"utils/common/deepEqual","path":"/modern-kit/docs/utils/common/deepEqual","sidebar":"tutorialSidebar"},{"id":"utils/common/getUniqId","path":"/modern-kit/docs/utils/common/getUniqId","sidebar":"tutorialSidebar"},{"id":"utils/common/getUniqTime","path":"/modern-kit/docs/utils/common/getUniqTime","sidebar":"tutorialSidebar"},{"id":"utils/common/getViewportSize","path":"/modern-kit/docs/utils/common/getViewportSize","sidebar":"tutorialSidebar"},{"id":"utils/common/hexToRgba","path":"/modern-kit/docs/utils/common/hexToRgba","sidebar":"tutorialSidebar"},{"id":"utils/common/noop","path":"/modern-kit/docs/utils/common/noop","sidebar":"tutorialSidebar"},{"id":"utils/common/wrapInArray","path":"/modern-kit/docs/utils/common/wrapInArray","sidebar":"tutorialSidebar"},{"id":"utils/device/getOS","path":"/modern-kit/docs/utils/device/getOS","sidebar":"tutorialSidebar"},{"id":"utils/device/isClient","path":"/modern-kit/docs/utils/device/isClient","sidebar":"tutorialSidebar"},{"id":"utils/device/isMobile","path":"/modern-kit/docs/utils/device/isMobile","sidebar":"tutorialSidebar"},{"id":"utils/device/isSever","path":"/modern-kit/docs/utils/device/isSever","sidebar":"tutorialSidebar"},{"id":"utils/object/deleteEmptyProperties","path":"/modern-kit/docs/utils/object/deleteEmptyProperties","sidebar":"tutorialSidebar"},{"id":"utils/object/mergeProperties","path":"/modern-kit/docs/utils/object/mergeProperties","sidebar":"tutorialSidebar"},{"id":"utils/object/objectEntries","path":"/modern-kit/docs/utils/object/objectEntries","sidebar":"tutorialSidebar"},{"id":"utils/object/objectKeys","path":"/modern-kit/docs/utils/object/objectKeys","sidebar":"tutorialSidebar"},{"id":"utils/object/objectValues","path":"/modern-kit/docs/utils/object/objectValues","sidebar":"tutorialSidebar"},{"id":"utils/object/omit","path":"/modern-kit/docs/utils/object/omit","sidebar":"tutorialSidebar"},{"id":"utils/object/pick","path":"/modern-kit/docs/utils/object/pick","sidebar":"tutorialSidebar"},{"id":"utils/string/countSubstringOccurrences","path":"/modern-kit/docs/utils/string/countSubstringOccurrences","sidebar":"tutorialSidebar"},{"id":"utils/string/extractNumber","path":"/modern-kit/docs/utils/string/extractNumber","sidebar":"tutorialSidebar"},{"id":"utils/string/formatNumberWithCommas","path":"/modern-kit/docs/utils/string/formatNumberWithCommas","sidebar":"tutorialSidebar"},{"id":"utils/string/formatPhoneNumber","path":"/modern-kit/docs/utils/string/formatPhoneNumber","sidebar":"tutorialSidebar"},{"id":"utils/string/removeSpecialCharacters","path":"/modern-kit/docs/utils/string/removeSpecialCharacters","sidebar":"tutorialSidebar"},{"id":"utils/string/repeatCharacters","path":"/modern-kit/docs/utils/string/repeatCharacters","sidebar":"tutorialSidebar"},{"id":"utils/validator/isFuntion","path":"/modern-kit/docs/utils/validator/isFuntion","sidebar":"tutorialSidebar"},{"id":"utils/validator/isNotNullish","path":"/modern-kit/docs/utils/validator/isNotNullish","sidebar":"tutorialSidebar"},{"id":"utils/validator/isNullish","path":"/modern-kit/docs/utils/validator/isNullish","sidebar":"tutorialSidebar"},{"id":"utils/validator/isNumber","path":"/modern-kit/docs/utils/validator/isNumber","sidebar":"tutorialSidebar"},{"id":"utils/validator/isValidEmail","path":"/modern-kit/docs/utils/validator/isValidEmail","sidebar":"tutorialSidebar"},{"id":"utils/validator/isValidPhoneNumberFormat","path":"/modern-kit/docs/utils/validator/isValidPhoneNumberFormat","sidebar":"tutorialSidebar"}],"draftIds":[],"sidebars":{"tutorialSidebar":{"link":{"path":"/modern-kit/docs/introduce/","label":"Introduce"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}');var l=n(7529);const s=JSON.parse('{"docusaurusVersion":"3.0.0","siteVersion":"0.0.5","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.0.0"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"3.0.0"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.0.0"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.0.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.0.0"}}}');var c=n(5735);const u={siteConfig:o.default,siteMetadata:s,globalData:a,i18n:i,codeTranslations:l},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},9703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(4614),o=n(7591),a=n(10),i=n(7930),l=n(5754),s=n(5735);function c(e){let{error:t,tryAgain:n}=e;return(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,s.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,s.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,s.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,s.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,s.jsxs)(f,{fallback:()=>(0,s.jsx)(c,{error:t,tryAgain:n}),children:[(0,s.jsx)(a.Z,{children:(0,s.jsx)("title",{children:"Page Error"})}),(0,s.jsx)(l.Z,{children:(0,s.jsx)(c,{error:t,tryAgain:n})})]})}const p=e=>(0,s.jsx)(d,{...e});class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){o.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??p)(e)}return e??null}}},7591:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,o={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},10:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});n(4614);var r=n(9691),o=n(5735);function a(e){return(0,o.jsx)(r.ql,{...e})}},9990:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(4614),o=n(3208),a=n(7930),i=n(8314),l=n(717),s=n(7591),c=n(5735);const u=r.createContext({collectLink:()=>{}});var d=n(5827);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:m,isActive:h,"data-noBrokenLinkCheck":g,autoAddBaseUrl:b=!0,...y}=e;const{siteConfig:{trailingSlash:v,baseUrl:k}}=(0,i.Z)(),{withBaseUrl:w}=(0,d.C)(),x=(0,r.useContext)(u),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const E=p||f;const C=(0,l.Z)(E),_=E?.replace("pathname://","");let T=void 0!==_?(j=_,b&&(e=>e.startsWith("/"))(j)?w(j):j):void 0;var j;T&&C&&(T=(0,a.applyTrailingSlash)(T,{trailingSlash:v,baseUrl:k}));const N=(0,r.useRef)(!1),A=n?o.OL:o.rU,L=s.Z.canUseIntersectionObserver,P=(0,r.useRef)(),R=()=>{N.current||null==T||(window.docusaurus.preload(T),N.current=!0)};(0,r.useEffect)((()=>(!L&&C&&null!=T&&window.docusaurus.prefetch(T),()=>{L&&P.current&&P.current.disconnect()})),[P,T,L,C]);const O=T?.startsWith("#")??!1,I=!T||!C||O;return I||g||x.collectLink(T),I?(0,c.jsx)("a",{ref:S,href:T,...E&&!C&&{target:"_blank",rel:"noopener noreferrer"},...y}):(0,c.jsx)(A,{...y,onMouseEnter:R,onTouchStart:R,innerRef:e=>{S.current=e,L&&e&&C&&(P.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(P.current.unobserve(e),P.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),P.current.observe(e))},to:T,...n&&{isActive:h,activeClassName:m}})}const f=r.forwardRef(p)},9315:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=()=>null},5958:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>s});var r=n(4614),o=n(5735);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(7529);function l(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function s(e,t){let{message:n,id:r}=e;return a(l({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal children",t),new Error("The Docusaurus component only accept simple string values");const i=l({message:t,id:n});return(0,o.jsx)(o.Fragment,{children:a(i,r)})}},4910:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},717:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function o(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>o,b:()=>r})},5827:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>l});var r=n(4614),o=n(8314),a=n(717);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,o.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:o=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,a.b)(n))return n;if(o)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const l=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+l:l}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function l(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},8314:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4614),o=n(9275);function a(){return(0,r.useContext)(o._)}},7992:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4614),o=n(6782);function a(){return(0,r.useContext)(o._)}},4933:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4614);const o=n(7591).Z.canUseDOM?r.useLayoutEffect:r.useEffect},9688:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function o(e){const t={};return function e(n,o){Object.entries(n).forEach((n=>{let[a,i]=n;const l=o?`${o}.${a}`:a;r(i)?e(i,l):t[l]=i}))}(e),t}},506:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,z:()=>i});var r=n(4614),o=n(5735);const a=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(a),l=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,o.jsx)(a.Provider,{value:l,children:t})}},3532:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>h,gA:()=>p,_r:()=>u,Jo:()=>g,zh:()=>d,yW:()=>m,gB:()=>f});var r=n(3366),o=n(8314),a=n(4910);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,o.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const l=e=>e.versions.find((e=>e.isLast));function s(e,t){const n=function(e,t){const n=l(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),o=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:o,alternateDocVersions:o?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(o.id):{}}}const c={},u=()=>i("docusaurus-plugin-content-docs")??c,d=e=>function(e,t,n){void 0===t&&(t=a.m),void 0===n&&(n={});const r=i(e),o=r?.[t];if(!o&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return o}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=u(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const o=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),a=o?{pluginId:o[0],pluginData:o[1]}:void 0;if(!a&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return a}(t,n,e)}function f(e){return d(e).versions}function m(e){const t=d(e);return l(t)}function h(e){const t=d(e),{pathname:n}=(0,r.TH)();return s(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=l(e);return{latestDocSuggestion:s(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},4409:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(2602),o=n.n(r);o().configure({showSpinner:!1});const a={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{o().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){o().done()}}},663:(e,t,n)=>{"use strict";n.r(t);var r=n(5124),o=n(6809);!function(e){const{themeConfig:{prism:t}}=o.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(8624),n(9932)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},1616:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(4614);var r=n(7475),o=n(5958),a=n(4859),i=n(9990);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_PKLA",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_nBF9"};var s=n(5735);function c(e){let{as:t,id:n,...c}=e;const{navbar:{hideOnScroll:u}}=(0,a.L)();if("h1"===t||!n)return(0,s.jsx)(t,{...c,id:void 0});const d=(0,o.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof c.children?c.children:n});return(0,s.jsxs)(t,{...c,className:(0,r.Z)("anchor",u?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,c.className),id:n,children:[c.children,(0,s.jsx)(i.Z,{className:"hash-link",to:`#${n}`,"aria-label":d,title:d,children:"\u200b"})]})}},2019:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});n(4614);const r={iconExternalLink:"iconExternalLink_tcjt"};var o=n(5735);function a(e){let{width:t=13.5,height:n=13.5}=e;return(0,o.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,o.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},5754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>pt});var r=n(4614),o=n(7475),a=n(9703),i=n(5839),l=n(3366),s=n(5958),c=n(9008),u=n(5735);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,l.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const m=(0,s.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function h(e){const t=e.children??m,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(8349),b=n(6411);const y={skipToContent:"skipToContent_al5k"};function v(){return(0,u.jsx)(h,{className:y.skipToContent})}var k=n(4859),w=n(7357);function x(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:o=1.2,className:a,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:o,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_OjVU"};function E(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,s.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,o.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(x,{width:14,height:14,strokeWidth:3.1})})}const C={content:"content_EiDp"};function _(e){const{announcementBar:t}=(0,k.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,o.Z)(C.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_f1NP",announcementBarPlaceholder:"announcementBarPlaceholder_oIJQ",announcementBarClose:"announcementBarClose_I2la",announcementBarContent:"announcementBarContent_4KW8"};function j(){const{announcementBar:e}=(0,k.L)(),{isActive:t,close:n}=(0,w.nT)();if(!t)return null;const{backgroundColor:r,textColor:o,isCloseable:a}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:o},role:"banner",children:[a&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(_,{className:T.announcementBarContent}),a&&(0,u.jsx)(E,{onClick:n,className:T.announcementBarClose})]})}var N=n(2469),A=n(806);var L=n(7487),P=n(7274);const R=r.createContext(null);function O(e){let{children:t}=e;const n=function(){const e=(0,N.e)(),t=(0,P.HY)(),[n,o]=(0,r.useState)(!1),a=null!==t.component,i=(0,L.D9)(a);return(0,r.useEffect)((()=>{a&&!i&&o(!0)}),[a,i]),(0,r.useEffect)((()=>{a?e.shown||o(!0):o(!1)}),[e.shown,a]),(0,r.useMemo)((()=>[n,o]),[n])}();return(0,u.jsx)(R.Provider,{value:n,children:t})}function I(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function D(){const e=(0,r.useContext)(R);if(!e)throw new L.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,o=(0,r.useCallback)((()=>n(!1)),[n]),a=(0,P.HY)();return(0,r.useMemo)((()=>({shown:t,hide:o,content:I(a)})),[o,a,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:a}=D();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,o.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":a}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var M=n(9303),z=n(7992);function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function U(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const $={toggle:"toggle_PJvE",toggleButton:"toggleButton_OyO7",darkToggleIcon:"darkToggleIcon_V1Oa",lightToggleIcon:"lightToggleIcon_UzMI",toggleButtonDisabled:"toggleButtonDisabled_SiBW"};function q(e){let{className:t,buttonClassName:n,value:r,onChange:a}=e;const i=(0,z.Z)(),l=(0,s.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,s.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,s.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,o.Z)($.toggle,t),children:(0,u.jsxs)("button",{className:(0,o.Z)("clean-btn",$.toggleButton,!i&&$.toggleButtonDisabled,n),type:"button",onClick:()=>a("dark"===r?"light":"dark"),disabled:!i,title:l,"aria-label":l,"aria-live":"polite",children:[(0,u.jsx)(B,{className:(0,o.Z)($.toggleIcon,$.lightToggleIcon)}),(0,u.jsx)(U,{className:(0,o.Z)($.toggleIcon,$.darkToggleIcon)})]})})}const H=r.memo(q),Z={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_rOBh"};function V(e){let{className:t}=e;const n=(0,k.L)().navbar.style,r=(0,k.L)().colorMode.disableSwitch,{colorMode:o,setColorMode:a}=(0,M.I)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Z.darkNavbarColorModeToggle:void 0,value:o,onChange:a})}var W=n(3622);function G(){return(0,u.jsx)(W.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function Q(){const e=(0,N.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,s.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(x,{color:"var(--ifm-color-emphasis-600)"})})}function K(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(G,{}),(0,u.jsx)(V,{className:"margin-right--md"}),(0,u.jsx)(Q,{})]})}var Y=n(9990),X=n(5827),J=n(717);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(2019);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:o,label:a,html:i,isDropdownLink:l,prependBaseUrlToHref:s,...c}=e;const d=(0,X.Z)(r),p=(0,X.Z)(t),f=(0,X.Z)(o,{forcePrependBaseUrl:!0}),m=a&&o&&!(0,J.Z)(o),h=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[a,m&&(0,u.jsx)(te.Z,{...l&&{width:12,height:12}})]})};return o?(0,u.jsx)(Y.Z,{href:s?f:o,...c,...h}):(0,u.jsx)(Y.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...h})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const a=(0,u.jsx)(ne,{className:(0,o.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:a}):a}function oe(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,o.Z)("menu__link",t),...r})})}function ae(e){let{mobile:t=!1,position:n,...r}=e;const o=t?oe:re;return(0,u.jsx)(o,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(5179),le=n(2213),se=n(8314);function ce(e,t){return e.some((e=>function(e,t){return!!(0,le.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function ue(e){let{items:t,position:n,className:a,onClick:i,...l}=e;const s=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[s]),(0,u.jsxs)("div",{ref:s,className:(0,o.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:l.to?void 0:"#",className:(0,o.Z)("navbar__link",a),...l,onClick:l.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:l.children??l.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ee,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function de(e){let{items:t,className:n,position:a,onClick:i,...s}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,se.Z)(),{pathname:t}=(0,l.TH)();return t.replace(e,"/")}(),d=ce(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:m}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,o.Z)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,o.Z)("menu__link menu__link--sublist menu__link--sublist-caret",n),...s,onClick:e=>{e.preventDefault(),f()},children:s.children??s.label}),(0,u.jsx)(ie.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ee,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function pe(e){let{mobile:t=!1,...n}=e;const r=t?de:ue;return(0,u.jsx)(r,{...n})}var fe=n(430);function me(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const he="iconLanguage_ptZi";var ge=n(9315);const be={navbarSearchContainer:"navbarSearchContainer_bEtv"};function ye(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,o.Z)(n,be.navbarSearchContainer),children:t})}var ve=n(3532),ke=n(2039);var we=n(4528);const xe=e=>e.docs.find((t=>t.id===e.mainDocId));const Se={default:ae,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:o="",...a}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,se.Z)(),p=(0,fe.l)(),{search:f,hash:m}=(0,l.TH)(),h=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${m}${o}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,s.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(pe,{...a,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(me,{className:he}),g]}),items:h})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(ye,{className:n,children:(0,u.jsx)(ge.Z,{})})},dropdown:pe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:a=!1}=e;const i=a?"li":"div";return(0,u.jsx)(i,{className:(0,o.Z)({navbar__item:!r&&!a,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,ve.Iw)(r),i=(0,ke.vY)(t,r),l=a?.path===i?.path;return null===i||i.unlisted&&!l?null:(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>l||!!a?.sidebar&&a.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,ve.Iw)(r),i=(0,ke.oz)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>a?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...o}=e;const a=(0,ke.lO)(r)[0],i=t??a.label,l=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(a).path;return(0,u.jsx)(ae,{...o,label:i,to:l})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:o,dropdownItemsAfter:a,...i}=e;const{search:c,hash:d}=(0,l.TH)(),p=(0,ve.Iw)(n),f=(0,ve.gB)(n),{savePreferredVersionName:m}=(0,we.J)(n),h=[...o,...f.map((e=>{const t=p.alternateDocVersions[e.name]??xe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...a],g=(0,ke.lO)(n)[0],b=t&&h.length>1?(0,s.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,y=t&&h.length>1?void 0:xe(g).path;return h.length<=1?(0,u.jsx)(ae,{...i,mobile:t,label:b,to:y,isActive:r?()=>!1:void 0}):(0,u.jsx)(pe,{...i,mobile:t,label:b,to:y,items:h,isActive:r?()=>!1:void 0})}};function Ee(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=Se[r];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(o,{...n})}function Ce(){const e=(0,N.e)(),t=(0,k.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ee,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function _e(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(s.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Te(){const e=0===(0,k.L)().navbar.items.length,t=D();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(_e,{onClick:()=>t.hide()}),t.content]})}function je(){const e=(0,N.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(F,{header:(0,u.jsx)(K,{}),primaryMenu:(0,u.jsx)(Ce,{}),secondaryMenu:(0,u.jsx)(Te,{})}):null}const Ne={navbarHideable:"navbarHideable_aDCK",navbarHidden:"navbarHidden_kAkf"};function Ae(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,o.Z)("navbar-sidebar__backdrop",e.className)})}function Le(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:a}}=(0,k.L)(),i=(0,N.e)(),{navbarRef:l,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),o=(0,r.useRef)(!1),a=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(a.current=e.getBoundingClientRect().height)}),[]);return(0,A.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i=l?n(!1):i+c{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return o.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:l,"aria-label":(0,s.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,o.Z)("navbar","navbar--fixed-top",n&&[Ne.navbarHideable,!d&&Ne.navbarHidden],{"navbar--dark":"dark"===a,"navbar--primary":"primary"===a,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(Ae,{onClick:i.toggle}),(0,u.jsx)(je,{})]})}var Pe=n(7930);const Re={errorBoundaryError:"errorBoundaryError_rOgF",errorBoundaryFallback:"errorBoundaryFallback_Iw5X"};function Oe(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(s.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function Ie(e){let{error:t}=e;const n=(0,Pe.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:Re.errorBoundaryError,children:n})}class De extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const Fe="right";function Me(e){let{width:t=30,height:n=30,className:r,...o}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...o,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function ze(){const{toggle:e,shown:t}=(0,N.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,s.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(Me,{})})}const Be={colorModeToggle:"colorModeToggle_LgG9"};function Ue(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(De,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ee,{...e})},t)))})}function $e(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function qe(){const e=(0,N.e)(),t=(0,k.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??Fe)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return(0,u.jsx)($e,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(ze,{}),(0,u.jsx)(G,{}),(0,u.jsx)(Ue,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ue,{items:r}),(0,u.jsx)(V,{className:Be.colorModeToggle}),!o&&(0,u.jsx)(ye,{children:(0,u.jsx)(ge.Z,{})})]})})}function He(){return(0,u.jsx)(Le,{children:(0,u.jsx)(qe,{})})}function Ze(e){let{item:t}=e;const{to:n,href:r,label:o,prependBaseUrlToHref:a,...i}=t,l=(0,X.Z)(n),s=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(Y.Z,{className:"footer__link-item",...r?{href:a?s:r}:{to:l},...i,children:[o,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function Ve(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(Ze,{item:t})},t.href??t.to)}function We(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(Ve,{item:e},t)))})]})}function Ge(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(We,{column:e},t)))})}function Qe(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function Ke(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(Ze,{item:t})}function Ye(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(Ke,{item:e}),t.length!==n+1&&(0,u.jsx)(Qe,{})]},n)))})})}function Xe(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(Ge,{columns:t}):(0,u.jsx)(Ye,{links:t})}var Je=n(4395);const et={footerLogoLink:"footerLogoLink_qeqT"};function tt(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(Je.Z,{className:(0,o.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function nt(e){let{logo:t}=e;return t.href?(0,u.jsx)(Y.Z,{href:t.href,className:et.footerLogoLink,target:t.target,children:(0,u.jsx)(tt,{logo:t})}):(0,u.jsx)(tt,{logo:t})}function rt(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function ot(e){let{style:t,links:n,logo:r,copyright:a}=e;return(0,u.jsx)("footer",{className:(0,o.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||a)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),a]})]})})}function at(){const{footer:e}=(0,k.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:o}=e;return(0,u.jsx)(ot,{style:o,links:n&&n.length>0&&(0,u.jsx)(Xe,{links:n}),logo:r&&(0,u.jsx)(nt,{logo:r}),copyright:t&&(0,u.jsx)(rt,{copyright:t})})}const it=r.memo(at),lt=(0,L.Qc)([M.S,w.pl,A.OC,we.L5,i.VC,function(e){let{children:t}=e;return(0,u.jsx)(P.n2,{children:(0,u.jsx)(N.M,{children:(0,u.jsx)(O,{children:t})})})}]);function st(e){let{children:t}=e;return(0,u.jsx)(lt,{children:t})}var ct=n(1616);function ut(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(ct.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(s.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(Oe,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(Ie,{error:t})})]})})})}const dt={mainWrapper:"mainWrapper_VX8u"};function pt(e){const{children:t,noFooter:n,wrapperClassName:r,title:l,description:s}=e;return(0,b.t)(),(0,u.jsxs)(st,{children:[(0,u.jsx)(i.d,{title:l,description:s}),(0,u.jsx)(v,{}),(0,u.jsx)(j,{}),(0,u.jsx)(He,{}),(0,u.jsx)("div",{id:d,className:(0,o.Z)(g.k.wrapper.main,dt.mainWrapper,r),children:(0,u.jsx)(a.Z,{fallback:e=>(0,u.jsx)(ut,{...e}),children:t})}),!n&&(0,u.jsx)(it,{})]})}},3622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(4614);var r=n(9990),o=n(5827),a=n(8314),i=n(4859),l=n(4395),s=n(5735);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const a={light:(0,o.Z)(t.src),dark:(0,o.Z)(t.srcDark||t.src)},i=(0,s.jsx)(l.Z,{className:t.className,sources:a,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,s.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,a.Z)(),{navbar:{title:n,logo:l}}=(0,i.L)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,o.Z)(l?.href||"/"),m=n?"":t,h=l?.alt??m;return(0,s.jsxs)(r.Z,{to:f,...p,...l?.target&&{target:l.target},children:[l&&(0,s.jsx)(c,{logo:l,alt:h,imageClassName:u}),null!=n&&(0,s.jsx)("b",{className:d,children:n})]})}},8516:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});n(4614);var r=n(10),o=n(5735);function a(e){let{locale:t,version:n,tag:a}=e;const i=t;return(0,o.jsxs)(r.Z,{children:[t&&(0,o.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,o.jsx)("meta",{name:"docusaurus_version",content:n}),a&&(0,o.jsx)("meta",{name:"docusaurus_tag",content:a}),i&&(0,o.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,o.jsx)("meta",{name:"docsearch:version",content:n}),a&&(0,o.jsx)("meta",{name:"docsearch:docusaurus_tag",content:a})]})}},4395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(4614),o=n(7475),a=n(7992),i=n(9303);const l={themedComponent:"themedComponent_JZov","themedComponent--light":"themedComponent--light_CIJg","themedComponent--dark":"themedComponent--dark_HJAQ"};var s=n(5735);function c(e){let{className:t,children:n}=e;const c=(0,a.Z)(),{colorMode:u}=(0,i.I)();return(0,s.jsx)(s.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const a=n({theme:e,className:(0,o.Z)(t,l.themedComponent,l[`themedComponent--${e}`])});return(0,s.jsx)(r.Fragment,{children:a},e)}))})}function u(e){const{sources:t,className:n,alt:r,...o}=e;return(0,s.jsx)(c,{className:n,children:e=>{let{theme:n,className:a}=e;return(0,s.jsx)("img",{src:t[n],alt:r,className:a,...o})}})}},5179:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>b});var r=n(4614),o=n(7591),a=n(4933),i=n(9557),l=n(5735);const s="ease-in-out";function c(e){let{initialState:t}=e;const[n,o]=(0,r.useState)(t??!1),a=(0,r.useCallback)((()=>{o((e=>!e))}),[]);return{collapsed:n,setCollapsed:o,toggleCollapsed:a}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:o}=e;const a=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=o?.duration??function(e){if((0,i.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${o?.easing??s}`,height:`${t}px`}}function l(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!a.current)return p(e,n),void(a.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(l(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{l()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,o])}function m(e){if(!o.Z.canUseDOM)return e?u:d}function h(e){let{as:t="div",collapsed:n,children:o,animation:a,onCollapseTransitionEnd:i,className:s,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:a}),(0,l.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:s,children:o})}function g(e){let{collapsed:t,...n}=e;const[o,i]=(0,r.useState)(!t),[s,c]=(0,r.useState)(t);return(0,a.Z)((()=>{t||i(!0)}),[t]),(0,a.Z)((()=>{o&&c(t)}),[o,t]),o?(0,l.jsx)(h,{...n,collapsed:s}):null}function b(e){let{lazy:t,...n}=e;const r=t?g:h;return(0,l.jsx)(r,{...n})}},7357:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>m});var r=n(4614),o=n(7992),a=n(7343),i=n(7487),l=n(4859),s=n(5735);const c=(0,a.WA)("docusaurus.announcement.dismiss"),u=(0,a.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,l.L)(),t=(0,o.Z)(),[n,a]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{a(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),a(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||a(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,s.jsx)(f.Provider,{value:n,children:t})}function h(){const e=(0,r.useContext)(f);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},9303:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,S:()=>g});var r=n(4614),o=n(7591),a=n(7487),i=n(7343),l=n(4859),s=n(5735);const c=r.createContext(void 0),u="theme",d=(0,i.WA)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,m=e=>o.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),h=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,l.L)(),[o,a]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:o=!0}=r;t?(a(t),o&&h(t)):(a(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(o))}),[o]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const s=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||s.current?s.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:o,setColorMode:i,get isDarkTheme(){return o===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[o,i])}();return(0,s.jsx)(c.Provider,{value:n,children:t})}function b(){const e=(0,r.useContext)(c);if(null==e)throw new a.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},4528:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>b});var r=n(4614),o=n(3532),a=n(4910),i=n(4859),l=n(2039),s=n(7487),c=n(7343),u=n(5735);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const m=r.createContext(null);function h(){const e=(0,o._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[a,l]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{l(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function o(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,o(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[a,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),l((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=h();return(0,u.jsx)(m.Provider,{value:n,children:t})}function b(e){let{children:t}=e;return l.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function y(){const e=(0,r.useContext)(m);if(!e)throw new s.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=a.m);const t=(0,o.zh)(e),[n,i]=y(),{preferredVersionName:l}=n[e];return{preferredVersion:t.versions.find((e=>e.name===l))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}},9550:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>s});var r=n(4614),o=n(7487),a=n(5735);const i=Symbol("EmptyContext"),l=r.createContext(i);function s(e){let{children:t,name:n,items:o}=e;const i=(0,r.useMemo)((()=>n&&o?{name:n,items:o}:null),[n,o]);return(0,a.jsx)(l.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(l);if(e===i)throw new o.i6("DocsSidebarProvider");return e}},9947:(e,t,n)=>{"use strict";n.d(t,{E:()=>s,q:()=>l});var r=n(4614),o=n(7487),a=n(5735);const i=r.createContext(null);function l(e){let{children:t,version:n}=e;return(0,a.jsx)(i.Provider,{value:n,children:t})}function s(){const e=(0,r.useContext)(i);if(null===e)throw new o.i6("DocsVersionProvider");return e}},2469:(e,t,n)=>{"use strict";n.d(t,{M:()=>f,e:()=>m});var r=n(4614),o=n(7274),a=n(8514),i=n(3366),l=n(7487);function s(e){!function(e){const t=(0,i.k6)(),n=(0,l.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}var c=n(4859),u=n(5735);const d=r.createContext(void 0);function p(){const e=function(){const e=(0,o.HY)(),{items:t}=(0,c.L)().navbar;return 0===t.length&&!e.component}(),t=(0,a.i)(),n=!e&&"mobile"===t,[i,l]=(0,r.useState)(!1);s((()=>{if(i)return l(!1),!1}));const u=(0,r.useCallback)((()=>{l((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&l(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:i})),[e,n,u,i])}function f(e){let{children:t}=e;const n=p();return(0,u.jsx)(d.Provider,{value:n,children:t})}function m(){const e=r.useContext(d);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},7274:(e,t,n)=>{"use strict";n.d(t,{HY:()=>s,Zo:()=>c,n2:()=>l});var r=n(4614),o=n(7487),a=n(5735);const i=r.createContext(null);function l(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,a.jsx)(i.Provider,{value:n,children:t})}function s(){const e=(0,r.useContext)(i);if(!e)throw new o.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const a=(0,r.useContext)(i);if(!a)throw new o.i6("NavbarSecondaryMenuContentProvider");const[,l]=a,s=(0,o.Ql)(n);return(0,r.useEffect)((()=>{l({component:t,props:s})}),[l,t,s]),(0,r.useEffect)((()=>()=>l({component:null,props:null})),[l]),null}},6411:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,t:()=>a});var r=n(4614);const o="navigation-with-keyboard";function a(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(o),"mousedown"===e.type&&document.body.classList.remove(o)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(o),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},8514:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(4614),o=n(7591);const a={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function l(){const[e,t]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){t(function(){if(!o.Z.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>i?a.desktop:a.mobile}())}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),e}},8349:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},9557:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},2039:(e,t,n)=>{"use strict";n.d(t,{LM:()=>f,_F:()=>g,cE:()=>p,SN:()=>E,lO:()=>w,vY:()=>S,oz:()=>x,s1:()=>k,f:()=>y});var r=n(4614),o=n(3366),a=n(9048),i=n(3532),l=n(4528),s=n(9947),c=n(9550);function u(e){return Array.from(new Set(e))}var d=n(2213);const p=!!i._r;function f(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=f(t);if(e)return e}}(e):void 0:e.href}const m=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),h=(e,t)=>e.some((e=>g(e,t)));function g(e,t){return"link"===e.type?m(e.href,t):"category"===e.type&&(m(e.href,t)||h(e.items,t))}function b(e,t){switch(e.type){case"category":return g(e,t)||e.items.some((e=>b(e,t)));case"link":return!e.unlisted||g(e,t);default:return!1}}function y(e,t){return(0,r.useMemo)((()=>e.filter((e=>b(e,t)))),[e,t])}function v(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const o=[];return function e(t){for(const a of t)if("category"===a.type&&((0,d.Mg)(a.href,n)||e(a.items))||"link"===a.type&&(0,d.Mg)(a.href,n)){return r&&"category"!==a.type||o.unshift(a),!0}return!1}(t),o}function k(){const e=(0,c.V)(),{pathname:t}=(0,o.TH)(),n=(0,i.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?v({sidebarItems:e.items,pathname:t}):null}function w(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,l.J)(e),o=(0,i.yW)(e);return(0,r.useMemo)((()=>u([t,n,o].filter(Boolean))),[t,n,o])}function x(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function S(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${u(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function E(e){let{route:t}=e;const n=(0,o.TH)(),r=(0,s.E)(),i=t.routes,l=i.find((e=>(0,o.LX)(n.pathname,e)));if(!l)return null;const c=l.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,a.H)(i),sidebarName:c,sidebarItems:u}}},5839:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>d,VC:()=>m});var r=n(4614),o=n(7475),a=n(10),i=n(506);function l(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var s=n(5827),c=n(8314);var u=n(5735);function d(e){let{title:t,description:n,keywords:r,image:o,children:i}=e;const l=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,s.C)(),p=o?d(o,{absolute:!0}):void 0;return(0,u.jsxs)(a.Z,{children:[t&&(0,u.jsx)("title",{children:l}),t&&(0,u.jsx)("meta",{property:"og:title",content:l}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),i]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(p),l=(0,o.Z)(i,t);return(0,u.jsxs)(p.Provider,{value:l,children:[(0,u.jsx)(a.Z,{children:(0,u.jsx)("html",{className:l})}),n]})}function m(e){let{children:t}=e;const n=l(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const a=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,o.Z)(r,a),children:t})}},7487:(e,t,n)=>{"use strict";n.d(t,{D9:()=>l,Qc:()=>u,Ql:()=>c,i6:()=>s,zX:()=>i});var r=n(4614),o=n(4933),a=n(5735);function i(e){const t=(0,r.useRef)(e);return(0,o.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function l(e){const t=(0,r.useRef)();return(0,o.Z)((()=>{t.current=e})),t.current}class s extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,a.jsx)(a.Fragment,{children:e.reduceRight(((e,t)=>(0,a.jsx)(t,{children:e})),n)})}}},2213:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>l});var r=n(4614),o=n(3423),a=n(8314);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function l(){const{baseUrl:e}=(0,a.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function o(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(o).flatMap((e=>e.routes??[])))}(n)}({routes:o.Z,baseUrl:e})),[e])}},806:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>f,OC:()=>c,RF:()=>p});var r=n(4614),o=n(7591),a=n(7992),i=(n(4933),n(7487)),l=n(5735);const s=r.createContext(void 0);function c(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(s.Provider,{value:n,children:t})}function u(){const e=(0,r.useContext)(s);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const d=()=>o.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function p(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=u(),o=(0,r.useRef)(d()),a=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=d();a(e,o.current),o.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[a,n,...t])}function f(){const e=(0,r.useRef)(null),t=(0,a.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const o=document.documentElement.scrollTop;(n&&o>e||!n&&ot&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},5930:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>o});n(8314);const r="default";function o(e,t){return`docs-${e}-${t}`}},7343:(e,t,n)=>{"use strict";n.d(t,{WA:()=>s});n(4614);const r="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:o}=e;if(n===r)return;const a=document.createEvent("StorageEvent");a.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,o),window.dispatchEvent(a)}function a(e){if(void 0===e&&(e=r),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const l={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function s(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=a(t?.persistence);return null===n?l:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}},430:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(8314),o=n(3366),a=n(7930);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:l}}=(0,r.Z)(),{pathname:s}=(0,o.TH)(),c=(0,a.applyTrailingSlash)(s,{trailingSlash:n,baseUrl:e}),u=l===i?e:e.replace(`/${l}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},9008:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(4614),o=n(3366),a=n(7487);function i(e){const t=(0,o.TH)(),n=(0,a.D9)(t),i=(0,a.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},4859:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(8314);function o(){return(0,r.Z)().siteConfig.themeConfig}},8559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[o]=e.split(/[#?]/),a="/"===o||o===r?o:(i=o,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(o,a)}},3400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},3394:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var o=n(8559);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(o).default}});var a=n(3400);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return a.getErrorCausalChain}})},776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[o]=e.split(/[#?]/),a="/"===o||o===r?o:(i=o,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(o,a)}},8386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},7930:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var o=n(776);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(o).default}});var a=n(8386);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return a.getErrorCausalChain}})},3423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(4614);var r=n(4409),o=n.n(r),a=n(6887);const i={"0145a656":[()=>n.e(3881).then(n.bind(n,7265)),"@site/docs/react/hooks/useImageStatus.mdx",7265],"0ac9f023":[()=>n.e(7672).then(n.bind(n,4567)),"@site/docs/utils/validator/isNumber.md",4567],"114d5267":[()=>n.e(8828).then(n.bind(n,4513)),"@site/docs/utils/object/omit.md",4513],"11738f66":[()=>n.e(4949).then(n.bind(n,7496)),"@site/docs/react/hooks/useResizeObserver.mdx",7496],"13eb7aa0":[()=>n.e(8913).then(n.bind(n,5983)),"@site/docs/utils/validator/isValidEmail.md",5983],17896441:[()=>Promise.all([n.e(532),n.e(7918)]).then(n.bind(n,8374)),"@theme/DocItem",8374],"1c24dc38":[()=>n.e(3899).then(n.bind(n,662)),"@site/docs/utils/validator/isValidPhoneNumberFormat.md",662],"1df93b7f":[()=>Promise.all([n.e(532),n.e(3237)]).then(n.bind(n,9976)),"@site/src/pages/index.tsx",9976],"219c5550":[()=>n.e(4291).then(n.bind(n,7108)),"@site/docs/utils/object/objectValues.md",7108],"2eff3e5b":[()=>n.e(4753).then(n.bind(n,1850)),"@site/docs/react/hooks/useToggle.mdx",1850],30200773:[()=>n.e(6863).then(n.bind(n,5462)),"@site/docs/utils/validator/isNullish.md",5462],"308b5f81":[()=>n.e(4580).then(n.bind(n,5900)),"@site/docs/react/hooks/useIntersectionObserver.mdx",5900],"3209f55a":[()=>n.e(4870).then(n.bind(n,8331)),"@site/docs/react/hooks/useAsyncPreservedCallback.mdx",8331],"3842c52b":[()=>n.e(8852).then(n.bind(n,6287)),"@site/docs/react/hooks/usePreservedCallback.mdx",6287],"3c17568f":[()=>n.e(8911).then(n.bind(n,5545)),"@site/docs/react/hooks/useIsMounted.mdx",5545],"3ffd14c6":[()=>n.e(2014).then(n.bind(n,9612)),"@site/docs/react/hooks/useOnClickOutside.mdx",9612],47707012:[()=>n.e(5917).then(n.bind(n,1527)),"@site/docs/utils/object/objectEntries.md",1527],"47a95eb2":[()=>n.e(410).then(n.bind(n,8989)),"@site/docs/react/components/DebounceWrapper.mdx",8989],"4fcbd706":[()=>n.e(1698).then(n.bind(n,8710)),"@site/docs/utils/string/repeatCharacters.md",8710],"52083c08":[()=>n.e(259).then(n.bind(n,1145)),"@site/docs/utils/common/deepCopy.md",1145],"525bfb2e":[()=>n.e(2917).then(n.bind(n,930)),"@site/docs/utils/common/getViewportSize.md",930],"53f54fd5":[()=>n.e(3883).then(n.bind(n,9470)),"@site/docs/utils/common/abRandom.md",9470],"54102c04":[()=>n.e(2269).then(n.bind(n,7348)),"@site/docs/react/components/LazyImage.mdx",7348],"5c9b0204":[()=>n.e(6331).then(n.bind(n,9815)),"@site/docs/utils/object/pick.md",9815],"5cdabd8b":[()=>n.e(8640).then(n.bind(n,4719)),"@site/docs/utils/string/removeSpecialCharacters.md",4719],"5d610355":[()=>n.e(1958).then(n.bind(n,1098)),"@site/docs/react/hooks/useInterval.mdx",1098],"5e95c892":[()=>n.e(9661).then(n.bind(n,4710)),"@theme/DocsRoot",4710],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"61a35b61":[()=>n.e(9034).then(n.bind(n,4320)),"@site/docs/react/hooks/useMediaQuery.mdx",4320],"61f7a55d":[()=>n.e(8953).then(n.bind(n,8099)),"@site/docs/react/hooks/useWindowScrollTo.mdx",8099],"67c089fb":[()=>n.e(3776).then(n.bind(n,5008)),"@site/docs/react/hooks/useDebounce.mdx",5008],"6b7ba1c1":[()=>n.e(4583).then(n.bind(n,2520)),"@site/docs/utils/common/hexToRgba.md",2520],"6bd54dd6":[()=>n.e(4168).then(n.bind(n,9075)),"@site/docs/react/hooks/useVisibilityChange.mdx",9075],"6dde689d":[()=>n.e(3030).then(n.bind(n,1777)),"@site/docs/react/hooks/useTimeout.mdx",1777],"73aec3a2":[()=>n.e(937).then(n.bind(n,7803)),"@site/docs/utils/string/formatNumberWithCommas.md",7803],"7475180a":[()=>n.e(9646).then(n.t.bind(n,5745,19)),"/home/runner/work/modern-kit/modern-kit/docs/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",5745],"764f42b2":[()=>n.e(5497).then(n.bind(n,2251)),"@site/docs/react/hooks/useMergeRefs.mdx",2251],"7d279fec":[()=>n.e(7647).then(n.bind(n,7725)),"@site/docs/react/hooks/useForceUpdate.mdx",7725],"8797c936":[()=>n.e(9247).then(n.bind(n,6040)),"@site/docs/utils/device/isMobile.md",6040],"90f5246c":[()=>n.e(2386).then(n.bind(n,2411)),"@site/docs/utils/object/deleteEmptyProperties.md",2411],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"993de3e1":[()=>n.e(3385).then(n.bind(n,126)),"@site/docs/introduce/Introduce.md",126],"9be130a4":[()=>n.e(5337).then(n.bind(n,4584)),"@site/docs/react/hooks/usePrevious.mdx",4584],"9e9c0b32":[()=>n.e(7167).then(n.bind(n,3162)),"@site/docs/utils/validator/isFuntion.md",3162],"9ea35591":[()=>n.e(5539).then(n.bind(n,7734)),"@site/docs/utils/validator/isNotNullish.md",7734],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8230)),"@theme/DocVersionRoot",8230],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,8438)),"@theme/DocRoot",8438],abb91cfa:[()=>n.e(3980).then(n.bind(n,7403)),"@site/docs/utils/string/formatPhoneNumber.md",7403],ad000c78:[()=>n.e(9128).then(n.bind(n,2658)),"@site/docs/utils/device/isClient.md",2658],af3a3cdc:[()=>n.e(9263).then(n.t.bind(n,3769,19)),"/home/runner/work/modern-kit/modern-kit/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",3769],b35b1276:[()=>n.e(1813).then(n.bind(n,6754)),"@site/docs/react/components/When.mdx",6754],b3bf5b56:[()=>n.e(1175).then(n.bind(n,6627)),"@site/docs/react/hooks/useWindowSize.mdx",6627],b7504c90:[()=>n.e(6911).then(n.bind(n,369)),"@site/docs/utils/string/countSubstringOccurrences.md",369],bac0f70c:[()=>n.e(7893).then(n.bind(n,1704)),"@site/docs/utils/string/extractNumber.md",1704],bf0dbc92:[()=>n.e(8067).then(n.bind(n,6037)),"@site/docs/react/components/InView.mdx",6037],cbca3a13:[()=>n.e(2777).then(n.bind(n,205)),"@site/docs/utils/common/getUniqTime.md",205],cdcab0ad:[()=>n.e(3470).then(n.bind(n,6910)),"@site/docs/react/components/Portal.mdx",6910],d272ecc5:[()=>n.e(5380).then(n.bind(n,8614)),"@site/docs/utils/object/objectKeys.md",8614],d5af7a66:[()=>n.e(6002).then(n.bind(n,3801)),"@site/docs/utils/device/isSever.md",3801],dbd15680:[()=>n.e(7515).then(n.bind(n,6672)),"@site/docs/utils/common/noop.md",6672],dbf68f77:[()=>n.e(8862).then(n.bind(n,3440)),"@site/docs/react/hooks/useIsomorphicLayoutEffect.mdx",3440],e72e489d:[()=>n.e(5418).then(n.bind(n,6210)),"@site/docs/utils/common/asyncNoop.md",6210],eabfdb13:[()=>n.e(2627).then(n.bind(n,479)),"@site/docs/react/hooks/useUnmount.mdx",479],ee418e94:[()=>n.e(4142).then(n.bind(n,1688)),"@site/docs/utils/device/getOS.md",1688],f6dc8c23:[()=>n.e(324).then(n.bind(n,1447)),"@site/docs/utils/object/mergeProperties.md",1447],f717749c:[()=>n.e(8442).then(n.bind(n,979)),"@site/docs/utils/common/getUniqId.md",979],fa6a5d39:[()=>n.e(1900).then(n.bind(n,548)),"@site/docs/utils/common/wrapInArray.md",548],ff56c94b:[()=>n.e(5666).then(n.bind(n,9391)),"@site/docs/utils/common/deepEqual.md",9391]};var l=n(5735);function s(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,l.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,l.jsx)("p",{children:String(t)}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,l.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,l.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,l.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,l.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,l.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,l.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,l.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,l.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,l.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,l.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,l.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(9688),u=n(506);function d(e,t){if("*"===e)return o()({loading:s,loader:()=>n.e(218).then(n.bind(n,218)),modules:["@theme/NotFound"],webpack:()=>[218],render(e,t){const n=e.default;return(0,l.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,l.jsx)(n,{...t})})}});const r=a[`${e}-${t}`],d={},p=[],f=[],m=(0,c.Z)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),o().Map({loading:s,loader:d,modules:p,webpack:()=>f,render(t,n){const o=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let i=o;const l=n.split(".");l.slice(0,-1).forEach((e=>{i=i[e]})),i[l[l.length-1]]=a}));const a=o.__comp;delete o.__comp;const i=o.__context;return delete o.__context,(0,l.jsx)(u.z,{value:i,children:(0,l.jsx)(a,{...o,...n})})}})}const p=[{path:"/modern-kit/docs",component:d("/modern-kit/docs","61d"),routes:[{path:"/modern-kit/docs",component:d("/modern-kit/docs","24c"),routes:[{path:"/modern-kit/docs",component:d("/modern-kit/docs","551"),routes:[{path:"/modern-kit/docs/introduce/",component:d("/modern-kit/docs/introduce/","d8a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/components/DebounceWrapper",component:d("/modern-kit/docs/react/components/DebounceWrapper","822"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/components/InView",component:d("/modern-kit/docs/react/components/InView","e57"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/components/LazyImage",component:d("/modern-kit/docs/react/components/LazyImage","1b0"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/components/Portal",component:d("/modern-kit/docs/react/components/Portal","ad9"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/components/When",component:d("/modern-kit/docs/react/components/When","575"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useAsyncPreservedCallback",component:d("/modern-kit/docs/react/hooks/useAsyncPreservedCallback","33d"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useDebounce",component:d("/modern-kit/docs/react/hooks/useDebounce","60a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useForceUpdate",component:d("/modern-kit/docs/react/hooks/useForceUpdate","d01"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useImageStatus",component:d("/modern-kit/docs/react/hooks/useImageStatus","078"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useIntersectionObserver",component:d("/modern-kit/docs/react/hooks/useIntersectionObserver","a27"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useInterval",component:d("/modern-kit/docs/react/hooks/useInterval","728"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useIsMounted",component:d("/modern-kit/docs/react/hooks/useIsMounted","cb4"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect",component:d("/modern-kit/docs/react/hooks/useIsomorphicLayoutEffect","9aa"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useMediaQuery",component:d("/modern-kit/docs/react/hooks/useMediaQuery","452"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useMergeRefs",component:d("/modern-kit/docs/react/hooks/useMergeRefs","27b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useOnClickOutside",component:d("/modern-kit/docs/react/hooks/useOnClickOutside","d1a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/usePreservedCallback",component:d("/modern-kit/docs/react/hooks/usePreservedCallback","cd2"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/usePrevious",component:d("/modern-kit/docs/react/hooks/usePrevious","309"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useResizeObserver",component:d("/modern-kit/docs/react/hooks/useResizeObserver","a51"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useTimeout",component:d("/modern-kit/docs/react/hooks/useTimeout","2b4"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useToggle",component:d("/modern-kit/docs/react/hooks/useToggle","0f0"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useUnmount",component:d("/modern-kit/docs/react/hooks/useUnmount","5fe"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useVisibilityChange",component:d("/modern-kit/docs/react/hooks/useVisibilityChange","81e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useWindowScrollTo",component:d("/modern-kit/docs/react/hooks/useWindowScrollTo","87c"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/react/hooks/useWindowSize",component:d("/modern-kit/docs/react/hooks/useWindowSize","24c"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/abRandom",component:d("/modern-kit/docs/utils/common/abRandom","5f5"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/asyncNoop",component:d("/modern-kit/docs/utils/common/asyncNoop","dce"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/deepCopy",component:d("/modern-kit/docs/utils/common/deepCopy","95b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/deepEqual",component:d("/modern-kit/docs/utils/common/deepEqual","9d5"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/getUniqId",component:d("/modern-kit/docs/utils/common/getUniqId","871"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/getUniqTime",component:d("/modern-kit/docs/utils/common/getUniqTime","cbb"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/getViewportSize",component:d("/modern-kit/docs/utils/common/getViewportSize","006"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/hexToRgba",component:d("/modern-kit/docs/utils/common/hexToRgba","d4b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/noop",component:d("/modern-kit/docs/utils/common/noop","9ec"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/common/wrapInArray",component:d("/modern-kit/docs/utils/common/wrapInArray","8cd"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/device/getOS",component:d("/modern-kit/docs/utils/device/getOS","4a4"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/device/isClient",component:d("/modern-kit/docs/utils/device/isClient","794"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/device/isMobile",component:d("/modern-kit/docs/utils/device/isMobile","24d"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/device/isSever",component:d("/modern-kit/docs/utils/device/isSever","013"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/object/deleteEmptyProperties",component:d("/modern-kit/docs/utils/object/deleteEmptyProperties","7e9"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/object/mergeProperties",component:d("/modern-kit/docs/utils/object/mergeProperties","0c7"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/object/objectEntries",component:d("/modern-kit/docs/utils/object/objectEntries","355"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/object/objectKeys",component:d("/modern-kit/docs/utils/object/objectKeys","277"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/object/objectValues",component:d("/modern-kit/docs/utils/object/objectValues","628"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/object/omit",component:d("/modern-kit/docs/utils/object/omit","aa7"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/object/pick",component:d("/modern-kit/docs/utils/object/pick","c49"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/string/countSubstringOccurrences",component:d("/modern-kit/docs/utils/string/countSubstringOccurrences","b5d"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/string/extractNumber",component:d("/modern-kit/docs/utils/string/extractNumber","1f8"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/string/formatNumberWithCommas",component:d("/modern-kit/docs/utils/string/formatNumberWithCommas","573"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/string/formatPhoneNumber",component:d("/modern-kit/docs/utils/string/formatPhoneNumber","0da"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/string/removeSpecialCharacters",component:d("/modern-kit/docs/utils/string/removeSpecialCharacters","c7b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/string/repeatCharacters",component:d("/modern-kit/docs/utils/string/repeatCharacters","93b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/validator/isFuntion",component:d("/modern-kit/docs/utils/validator/isFuntion","efe"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/validator/isNotNullish",component:d("/modern-kit/docs/utils/validator/isNotNullish","8bf"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/validator/isNullish",component:d("/modern-kit/docs/utils/validator/isNullish","33e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/validator/isNumber",component:d("/modern-kit/docs/utils/validator/isNumber","d20"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/validator/isValidEmail",component:d("/modern-kit/docs/utils/validator/isValidEmail","9d7"),exact:!0,sidebar:"tutorialSidebar"},{path:"/modern-kit/docs/utils/validator/isValidPhoneNumberFormat",component:d("/modern-kit/docs/utils/validator/isValidPhoneNumberFormat","246"),exact:!0,sidebar:"tutorialSidebar"}]}]}]},{path:"/modern-kit/",component:d("/modern-kit/","e1e"),exact:!0},{path:"*",component:d("*")}]},1015:(e,t,n)=>{"use strict";n.r(t)},8867:(e,t,n)=>{"use strict";n.r(t)},4761:(e,t,n)=>{"use strict";var r=n(4614),o=n(625);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n