1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3940],{55627:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M15.4 2c.2 1.1-.3 2.2-.9 3s-1.7 1.5-2.8 1.4c-.2-1.1.3-2.1.9-2.9.7-.8 1.8-1.4 2.8-1.5m3.2 17.4c.5-.8.8-1.3 1.2-2.2-3.1-1.2-3.6-5.6-.5-7.2-.9-1.2-2.2-1.8-3.5-1.8-.9 0-1.5.2-2.1.4-.5.2-.9.3-1.4.3-.6 0-1-.2-1.6-.4s-1.2-.4-1.9-.4c-1.4 0-2.9.8-3.8 2.3-1.3 2-1.1 5.9 1 9.1.9 1.2 1.9 2.5 3.2 2.5.6 0 .9-.2 1.3-.3.5-.2 1-.4 1.8-.4.9 0 1.3.2 1.8.4.4.2.7.3 1.3.3 1.4 0 2.4-1.5 3.2-2.6",clipRule:"evenodd"})))},27460:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("rect",{width:24,height:24,fill:"#fff",rx:8})),l||(l=n.createElement("path",{fill:"#0E4AA4",d:"M10.015 9.5H8.029V12h1.986v7.5h3.308V12h2.383l.264-2.5h-2.647V8.438c0-.563.133-.813.728-.813h1.92V4.5h-2.515c-2.383 0-3.441 1-3.441 2.875z"})))},51873:function(t,e,r){"use strict";var s,l,n,a=r(67294);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},i.apply(null,arguments)}e.Z=t=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=a.createElement("rect",{width:24,height:24,fill:"#fff",rx:8})),l||(l=a.createElement("path",{fill:"#0E4AA4",d:"M17.705 7.684a2.3 2.3 0 0 0-.547-.842 2.3 2.3 0 0 0-.842-.547c-.258-.1-.645-.22-1.358-.252C14.186 6.008 13.954 6 12 6s-2.186.007-2.957.043c-.714.032-1.102.151-1.36.252a2.3 2.3 0 0 0-.84.547c-.244.236-.43.524-.548.842-.1.257-.22.645-.252 1.359C6.008 9.814 6 10.046 6 12s.008 2.186.043 2.958c.032.713.151 1.1.252 1.358.117.318.304.606.547.842.236.243.524.43.842.547.257.1.645.22 1.359.252.771.036 1.003.043 2.957.043s2.186-.007 2.957-.043c.714-.032 1.101-.151 1.36-.252a2.42 2.42 0 0 0 1.388-1.389c.1-.258.22-.645.252-1.358.036-.772.043-1.004.043-2.958s-.007-2.186-.043-2.957c-.032-.714-.151-1.102-.252-1.36M12 15.758a3.758 3.758 0 1 1 0-7.516 3.758 3.758 0 0 1 0 7.516m3.907-6.901c-.485 0-.879-.279-.879-.764s.394-.878.879-.878.54.398.54.883-.055.759-.54.759"})),n||(n=a.createElement("path",{fill:"#0E4AA4",d:"M14.288 12a2.297 2.297 0 1 1-4.594 0 2.297 2.297 0 0 1 4.594 0"})))},44745:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("rect",{width:24,height:24,fill:"#fff",rx:8})),l||(l=n.createElement("path",{fill:"#0E4AA4",d:"M8.042 6.913a1.4 1.4 0 0 1-1.414 1.413 1.4 1.4 0 0 1-1.413-1.413A1.4 1.4 0 0 1 6.628 5.5a1.4 1.4 0 0 1 1.414 1.413m0 2.544H5.215V18.5h2.827zm4.523 0H9.738V18.5h2.827v-4.748c0-2.656 3.393-2.882 3.393 0V18.5h2.827v-5.709c0-4.465-5.032-4.295-6.22-2.091z"})))},41387:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},t),s||(s=l.createElement("path",{fill:"#FFA944",d:"m11.442 2.924 1.466 2.934c.2.408.734.8 1.184.875l2.658.441c1.7.284 2.1 1.517.875 2.734l-2.067 2.066c-.35.35-.541 1.025-.433 1.509l.592 2.558c.466 2.025-.609 2.808-2.4 1.75l-2.492-1.475c-.45-.267-1.192-.267-1.65 0L6.683 17.79c-1.783 1.058-2.866.267-2.4-1.75l.592-2.558c.108-.484-.083-1.159-.433-1.509L2.375 9.908c-1.217-1.217-.825-2.45.875-2.734l2.658-.441c.442-.075.975-.467 1.175-.875L8.55 2.924c.8-1.591 2.1-1.591 2.892 0"})))},61857:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("rect",{width:24,height:24,fill:"#fff",rx:8})),l||(l=n.createElement("path",{fill:"#0E4AA4",d:"M6.075 11.781a526 526 0 0 1 6.444-2.775c3.069-1.277 3.706-1.499 4.122-1.506.091-.001.296.021.428.129.112.09.143.213.157.299s.033.282.019.435c-.167 1.747-.886 5.987-1.252 7.944-.155.828-.46 1.106-.755 1.133-.642.059-1.13-.424-1.75-.832-.973-.637-1.523-1.034-2.467-1.656-1.09-.719-.384-1.114.238-1.76.163-.169 2.99-2.74 3.045-2.974.007-.029.013-.138-.052-.195-.064-.057-.16-.038-.228-.022q-.146.033-4.661 3.08-.661.454-1.198.443c-.395-.008-1.154-.223-1.718-.406-.692-.225-1.242-.344-1.194-.726q.038-.3.822-.61"})))},28089:function(t,e,r){"use strict";var s,l,n,a=r(67294);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&
1(t[s]=r[s])}return t},i.apply(null,arguments)}e.Z=t=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 28 28"},t),s||(s=a.createElement("path",{fill:"currentColor",d:"M13.585 26.238c6.86 0 12.42-5.56 12.42-12.419S20.444 1.4 13.584 1.4C6.726 1.401 1.166 6.961 1.166 13.82s5.56 12.42 12.42 12.42"})),l||(l=a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.5 11a3 3 0 1 1 3 3v2"})),n||(n=a.createElement("path",{fill:"#fff",stroke:"#fff",strokeWidth:2,d:"M12.888 19.984a.5.5 0 0 1 .271-.084.52.52 0 0 1 .355.152l.707-.707-.707.707a.52.52 0 0 1 .152.354.5.5 0 0 1-.084.272l.831.555-.831-.555a.5.5 0 1 1-.694-.694Z"})))},963:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("rect",{width:24,height:24,fill:"#fff",rx:8})),l||(l=n.createElement("path",{fill:"#0E4AA4",d:"M17.389 5h2.606L14.3 11.354 21 20h-5.246l-4.109-5.244L6.945 20h-2.61l6.092-6.796L4 5h5.379l3.714 4.793zm-.915 13.477h1.444L8.594 6.443h-1.55z"})))},85908:function(t,e,r){"use strict";var s,l,n,a=r(67294);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},i.apply(null,arguments)}e.Z=t=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.89 5.88H5.11A3.12 3.12 0 0 0 2 8.99v11.36c0 1.45 1.04 2.07 2.31 1.36l3.93-2.19c.42-.23 1.1-.23 1.51 0l3.93 2.19c1.27.71 2.31.09 2.31-1.36V8.99a3.105 3.105 0 0 0-3.1-3.11"})),l||(l=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M16 8.99v11.36c0 1.45-1.04 2.06-2.31 1.36l-3.93-2.19c-.42-.23-1.1-.23-1.52 0l-3.93 2.19c-1.27.7-2.31.09-2.31-1.36V8.99c0-1.71 1.4-3.11 3.11-3.11h7.78c1.71 0 3.11 1.4 3.11 3.11"})),n||(n=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M22 5.11v11.36c0 1.45-1.04 2.06-2.31 1.36L16 15.77V8.99c0-1.71-1.4-3.11-3.11-3.11H8v-.77C8 3.4 9.4 2 11.11 2h7.78C20.6 2 22 3.4 22 5.11"})))},44648:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.47 10.74 12 14.26l3.53-3.52"})))},98417:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M17.44 14.62 20 12.06 17.44 9.5M9.76 12.06h10.17M11.76 20c-4.42 0-8-3-8-8s3.58-8 8-8"})))},48975:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4m4-5 5 5m0 0 5-5m-5 5V3"})))},20621:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m18.47 16.83.39 3.16c.1.83-.79 1.41-1.5.98l-4.19-2.49q-.69 0-1.35-.09A4.86 4.86 0 0 0 13 15.23c0-2.84-2.46-5.14-5.5-5.14-1.16 0-2.23.33-3.12.91-.03-.25-.04-.5-.04-.76C4.34 5.69 8.29 2 13.17 2S22 5.69 22 10.24c0 2.7-1.39 5.09-3.53 6.59"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13 15.23c0 1.19-.44 2.29-1.18 3.16-.99 1.2-2.56 1.97-4.32 1.97l-2.61 1.55c-.44.27-1-.1-.94-.61l.25-1.97C2.86 18.4 2 16.91 2 15.23c0-1.76.94-3.31 2.38-4.23.89-.58 1.96-.91 3.12-.91 3.04 0 5.5 2.3 5.5 5.14"})))},96067:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9"})))},13980:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 15.36 2 5.135c0-1.285.77-1.595 1.71-.686L6.3 6.952a1.02 1.02 0 0 0 1.41 0l3.58-3.469a1.02 1.02 0 0 1 1.41 0l3.59 3.47a1.02 1.02 0 0 0 1.41 0l2.59-2.503c.94-.909 1.71-.6 1.71.686l-1 10.233c-.5 2.832-2 4.832-5 4.832H8c-2.76-.01-5-2.175-5-4.842M8 16.5h8"})))},4378:function(t,e,r){"use strict";var s,l,n,a,i=r(67294);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},o.apply(null,arguments)}e.Z=t=>i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.15 16.5v2.1"})),l||(l=i.createElement("path",{stroke:"currentColor",strokeMiterlimit:10,strokeWidth:1.5,d:"M7.15 22h10v-1c0-1.1-.9-2-2-2h-6c-1.1 0-2 .9-2 2v1Z"})),n||(n=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.15 22h12M12 16c-3.87 0-7-3.13-7-7V6c0-2.21 1.79-4 4-4h6c2.21 0 4 1.79 4 4v3c0 3.87-3.13 7-7 7"})),a||(a=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5.47 11.65c-.75-.24-1.41-.68-1.93-1.2-.9-1-1.5-2.2-1.5-3.6s1.1-2.5 2.5-2.5h.65c-.2.46-.3.97-.3 1.5v3c0 1 .21 1.94.58 2.8M18.53 11.65c.75-.24 1.41-.68 1.93-1.2.9-1 1.5-2.2 1.5-3.6s-1.1-2.5-2.5-2.5h-.65c.2.46.3.97.3 1.5v3c0 1-.21 1.94-.58 2.8"})))},18194:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M3 7h18M3 12h18M3 17h18"})))},69455:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.2v.1"})))},12625:function(t,e,r){"use strict";var s,l,n,a=r(67294);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},i.apply(null,arguments)}e.Z=t=>a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M3.5 11.43V6.28c0-3.4.85-4.25 4.25-4.25h1.27c1.27 0 1.56.38 2.04 1.02l1.27 1.7c.32.42.51.68 1.36.68h2.55c3.4 0 4.25.85 4.25 4.25v1.79"})),l||(l=a.createElement("path",{stroke:"currentColor",strokeMiterlimit:10,strokeWidth:1.5,d:"m21.67 14.3-.4 5c-.15 1.53-.27 2.7-2.98 2.7H5.71C3 22 2.88 20.83 2.73 19.3l-.4-5c-.08-.83.18-1.6.65-2.19l.02-.02C3.55 11.42 4.38 11 5.31 11h13.38c.93 0 1.75.42 2.29 1.07.01.01.02.02.02.03.49.59.76 1.36.67 2.2Z"})),n||(n=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M9.43 17h5.14"})))},84459:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.26 18.9V7.1c0-1.5-.64-2.1-2.23-2.1h-1.04c-1.59 0-2.23.6-2.23 2.1v11.8M5.26 18.9v-6.8c0-1.5.64-2.1 2.23-2.1h1.04c1.59 0 2.23.6 2.23 2.1v6.8M2 19h20"})))},52278:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M22 16.74V4.67c0-1.2-.98-2.09-2.17-1.99h-.06c-2.1.18-5.29 1.25-7.07 2.37l-.17.11c-.29.18-.77.18-1.06 0l-.25-.15C9.44 3.9 6.26 2.84 4.16 2.67 2.97 2.57 2 3.47 2 4.66v12.08c0 .96.78 1.86 1.74 1.98l.29.04c2.17.29 5.52 1.39 7.44 2.44l.04.02c.27.15.7.15.96 0 1.92-1.06 5.28-2.17 7.46-2.46l.33-.04c.96-.12 1.74-1.02 1.74-1.98M12 5.49v15M7.75 8.49H5.5M8.5 11.49h-3"})))},73717:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3.5 18V7c0-4 1-5 5-5m12 9v6c0 .14 0 .28-.01.42"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.35 15H20.5v3.5c0 1.93-1.57 3.5-3.5 3.5H7c-1.93 0-3.5-1.57-3.5-3.5v-.65C3.5 16.28 4.78 15 6.35 15M18.584 8.889h.898c1.795 0 3.269-1.637 3.269-3.646 0-2.002-1.468-3.646-3.27-3.646h-.897M14.417 1.597h-.892c-1.804 0-3.274 1.638-3.274 3.646 0 2.002 1.47 3.646 3.274 3.646h.892M14.418 5.243h4.166"})))},78648:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{fill:"currentColor",d:"M10.487 5.848a6.26 6.26 0 0 0-4.617 4.549c-.555 2.245.08 4.533 1.7 6.121.572.562.914 1.463.914 2.409v.151c0 .623.272 1.184.704 1.57v1.243c0 1.163.946 2.109 2.109 2.109h1.406c1.163 0 2.11-.946 2.11-2.11V20.65c.43-.387.703-.948.703-1.57v-.155c0-.932.36-1.85.964-2.454A6.3 6.3 0 0 0 18.328 12c0-4.035-3.739-7.108-7.841-6.152m2.92 16.043a.704.704 0 0 1-.704.703h-1.406a.704.704 0 0 1-.703-.703v-.703h2.812zm2.077-6.414c-.874.875-1.375 2.132-1.375 3.447v.154a.704.704 0 0 1-.703.703h-2.812a.704.704 0 0 1-.703-.703v-.151c0-1.336-.488-2.58-1.337-3.413-1.26-1.236-1.753-3.023-1.319-4.78a4.84 4.84 0 0 1 3.571-3.516c3.22-.75 6.116 1.652 6.116 4.782a4.9 4.9 0 0 1-1.438 3.476m-8.953-9.94-1.989-1.99a.703.703 0 1 0-.994.995l1.989 1.989a.703.703 0 1 0 .994-.994m-2.968 5.76H.703a.703.703 0 0 0 0 1.406h2.86a.703.703 0 0 0 0-1.406m19.734 0h-2.86a.703.703 0 0 0 0 1.406h2.86a.703.703 0 0 0 0-1.406m-2.845-7.75a.703.703 0 0 0-.994 0l-1.989 1.99a.703.703 0 0 0 .994.994l1.99-1.989a.703.703 0 0 0 0-.994M12 0a.703.703 0 0 0-.703.703v2.86a.703.703 0 0 0 1.406 0V.703A.703.703 0 0 0 12 0"})),l||(l=n.createElement("path",{fill:"currentColor",d:"M12 8.484c-.289 0-.584.035-.875.103-1.212.283-2.227 1.281-2.525 2.484a.703.703 0 1 0 1.365.338c.171-.692.78-1.289 1.48-1.452q.282-.066.555-.066a.703.703 0 0 0 0-1.407"})))},32959:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m21.66 10.44-.98 4.18c-.84 3.61-2.5 5.07-5.62 4.77q-.75-.06-1.62-.27l-1.68-.4c-4.17-.99-5.46-3.05-4.48-7.23l.98-4.19c.2-.85.44-1.59.74-2.2 1.17-2.42 3.16-3.07 6.5-2.28l1.67.39c4.19.98 5.47 3.05 4.49 7.23"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15.06 19.39c-.62.42-1.4.77-2.35 1.08l-1.58.52c-3.97 1.28-6.06.21-7.35-3.76L2.5 13.28c-1.28-3.97-.22-6.07 3.75-7.35l1.58-.52c.41-.13.8-.24 1.17-.31-.3.61-.54 1.35-.74 2.2l-.98 4.19c-.98 4.18.31 6.24 4.48 7.23l1.68.4q.87.21 1.62.27M12.64 8.53l4.85 1.23M11.66 12.4l2.9.74"})))},93256:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M21 5v14a3 3 0 0 1-3 3h-1m4-17h-4m4 0v-.5a3 3 0 0 0-3-3H8a2 2 0 0 0-2 2V5m11 0v17m0-17H6m11 17H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M6.5 12H13M7.5 16H12"})))},96360:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6M19 7h-3M8 17H5"})))},8195:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97"})))},7979:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.16 10.87c-.1-.01-.22-.01-.33 0a4.42 4.42 0 0 1-4.27-4.43C7.56 3.99 9.54 2 12 2a4.435 4.435 0 0 1 .16 8.87M7.16 14.56c-2.42 1.62-2.42 4.26 0 5.87 2.75 1.84 7.26 1.84 10.01 0 2.42-1.62 2.42-4.26 0-5.87-2.74-1.83-7.25-1.83-10.01 0"})))},37344:function(t,e,r){"use strict";var s,l=r(67294);function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},n.apply(null,arguments)}e.Z=t=>l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42"})))},66965:function(t,e,r){"use strict";var s,l,n=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},a.apply(null,arguments)}e.Z=t=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m19.14 19.14-.13-.13m0-14.02.13-.13zM4.86 19.14l.13-.13zM12 2.08V2zM12 22v-.08zM2.08 12H2zM22 12h-.08zM4.99 4.99l-.13-.13z"})))},16644:function(t,e,r){"use strict";r(28660);var s=r(1571),l=r(67294),n=r(66965),a=r(37344),i=r(27325),o=r(24577),w=r(85893);e.Z=t=>{let{radioBtn:e,className:r}=t;const{theme:c,setTheme:d}=(0,s.F)(),{t:u}=(0,i.ZP)(),{0:h,1:m}=(0,l.useState)(!1);return(0,l.useEffect)((()=>m(!0)),[]),h?e?(0,w.jsxs)("div",{className:"tw-items-center tw-justify-between tw-flex",children:[(0,w.jsxs)("div",{className:"tw-flex tw-items-end tw-gap-2",children:[(0,w.jsx)(a.Z,{className:"tw-text-title tw-w-6 tw-h-6","aria-hidden":"true"}),(0,w.jsx)("span",{className:"tw-text-title tw-font-text-medium tw-text-base",children:u("night-mode")})]}),(0,w.jsx)(o.z,{variant:"toggle",onClick:()=>d("dark"===c?"light":"dark"),"aria-label":u("dark"===c?"switch-to-light-mode":"switch-to-dark-mode"),"aria-pressed":"dark"===c,"data-checked":"dark"===c})]}):(0,w.jsx)("button",{className:`${r} tw-bg-transparent tw-border-none tw-items-center tw-justify-center tw-p-2 tw-rounded-xl tw-cursor-pointer hover:tw-bg-blue-light-1 tw-transition-all tw-duration-300 tw-flex`,onClick:()=>d("dark"===c?"light":"dark"),"aria-label":u("dark"===c?"switch-to-light-mode":"switch-to-dark-mode"),"aria-pressed":"dark"===c,children:"dark"===c?(0,w.jsx)(n.Z,{className:"tw-text-title tw-w-6 tw-h-6","aria-hidden":"true"}):(0,w.jsx)(a.Z,{className:"tw-text-title tw-w-6 tw-h-6","aria-hidden":"true"})}):null}},71376:function(t,e,r){"use strict";var s=r(21107),l=r(22327),n=(r(28660),r(67294),r(41664)),a=r.n(n),i=r(17770),o=r(85893);const w=["disable","children","className"];function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.Z=t=>{var e;let{disable:r,children:s,className:n}=t,c=(0,l.Z)(t,w);const{callback:u}=(0,i.K)(),h=u(c);if(!0===r)return(0,o.jsx)(o.Fragment,{children:s});const m="string"===typeof h.href?h.href:(null===(e=h.href)||void 0===e?void 0:e.pathname)||"";return m.startsWith("http")||m.startsWith("mailto:")||m.startsWith("tel:")?(0,o.jsx)("a",{href:m,className:n,children:s}):(0,o.jsx)(a(),d(d({},h),{},{prefetch:!1,className:n,children:s}))}},57201:function(t,e,r){"use strict";var s=r(58118),l=r.n(s),n=(r(28660),r(67294)),a=r(67716),i=r(49595),o=r(27325),w=r(15482),c=r(22756),d=r.n(c),u=r(20254),h=r(85893);e.Z=t=>{let{onClose:e,disabledLocales:r=[],baseUrl:s}=t;const c=(0,w.ZP)().resolve(a.s),m="rtl"===(0,u.Z)().direction,x=[...c.supportedLocales.filter((t=>c.getSourceLang()==t.sourceLang))],{0:p,1:f}
1=(0,n.useState)(""),{t:g}=(0,o.ZP)();(0,n.useEffect)((()=>{if(void 0!==s)return void f(s.replace(/^\/+|\/+$/g,""));const t=window.location.pathname+window.location.search;f(t.split("/").slice(2).join("/"))}),[s]);const v=t=>{const e=""!=p?`/${p}`:"";window.location.href=`/${t.getLang()}${e}`};return(0,h.jsx)("div",{dir:m?"rtl":"ltr",children:(0,h.jsxs)("div",{className:"tw-fixed tw-bottom-0 tw-bg-background tw-rounded-t-3xl tw-pb-4 tw-w-svw sm:tw-w-[640px] tw-overflow-hidden tw-shadow-1 sm:tw-max-h-[calc(100vh-200px)] "+(m?"tw-right-1/2 tw--translate-x-[50%]":"tw-left-1/2 tw-translate-x-[-50%]"),children:[(0,h.jsxs)("div",{className:`tw-flex tw-items-center tw-justify-between tw-px-4 tw-pr-2 tw-py-[6px] tw-h-[52px] sm:tw-h-[56px] ${d().headerBottomBorder}`,children:[(0,h.jsxs)("h6",{className:"tw-text-title tw-m-0 tw-text-sm md:tw-text-base",children:[g("choose-your-display-language")," :"]}),(0,h.jsx)(i.Z,{className:"tw-cursor-pointer tw-text-title tw-p-2 tw-w-10 tw-h-10 hover:tw-bg-gray-84 tw-rounded-2xl tw-transition tw-duration-300",onClick:e})]}),(0,h.jsx)("div",{className:`${d().scrollContainer} tw-w-full tw-p-1 tw-flex tw-flex-col tw-justify-between tw-overflow-y-scroll tw-max-h-[calc(100vh-132px)] sm:tw-overflow-y-auto sm:tw-gap-6 sm:tw-max-h-[calc(100vh-256px)]`,children:(0,h.jsx)("div",{className:"tw-grid tw-auto-rows-max tw-grid-cols-1 sm:tw-grid-cols-3 tw-w-full sm:tw-overflow-y-auto",children:(t=>{let e=[];for(const s in t){const n=t[s];e.push((0,h.jsx)("a",{onClick:()=>l()(r).call(r,n.getLang())?null:v(n),children:(0,h.jsx)("div",{className:"tw-flex tw-justify-between tw-items-center tw-py-[8px] sm:tw-py-[12px] tw-px-4 tw-m-[2px] hover:tw-bg-blue-light-1 tw-rounded-3xl\n "+(l()(r).call(r,n.getLang())?"tw-grayscale tw-opacity-40 tw-cursor-not-allowed":"ripple"),children:(0,h.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-2",children:[(0,h.jsx)("div",{className:"tw-relative",children:(0,h.jsx)("img",{className:"tw-w-5 tw-h-5",alt:n.getDestinationFlag(),src:n.getDestinationFlag()})}),(0,h.jsx)("span",{className:"tw-font-text-medium tw-text-title tw-text-sm",children:n.getDestinationLabel()})]})})},s))}return e})(x)})})]})})}},18457:function(t,e,r){"use strict";r.d(e,{S:function(){return c},z:function(){return d}});r(28660);var s=r(21107),l=(r(67294),r(85893));function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const i=t=>(0,l.jsxs)("svg",a(a({xmlns:"http://www.w3.org/2000/svg",fill:"none",width:25,height:24},t),{},{children:[(0,l.jsx)("mask",{id:"a",width:25,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,l.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0V0Z"})}),(0,l.jsxs)("g",{mask:"url(#a)",children:[(0,l.jsx)("path",{fill:"#0A0A0A",d:"M8.792 14.536a.404.404 0 0 0-.151.269.401.401 0 0 0 .201.398l1.564.885c-.108.379-.075.783.092 1.138a1.592 1.592 0 0 0 1.948.835c.372-.124.686-.38.884-.72.198-.34.266-.74.192-1.126a1.61 1.61 0 0 0-.594-.97 1.59 1.59 0 0 0-1.083-.33c-.39.027-.757.196-1.033.476l-1.577-.89a.397.397 0 0 0-.443.035ZM16.125 10.088l-.646-.38.007-.013.007-.011.632.404Zm1.716-2.677.4-.634.638.403-.407.635-.631-.404ZM12.4 5.727l.012-.75h.014l-.027.75ZM12 5.72l-.013-.75h.026L12 5.72Zm-.4.007-.027-.75h.014l.013.75ZM6.16 7.411l-.653.37-.353-.622.604-.382.401.634Zm1.257 2.214-.625.415-.014-.021-.013-.023.652-.37Zm1.662 2.505.4.634-.62.392-.405-.611.625-.415ZM12 11.285v-.75.75Zm2.92.845.647.381-.393.667-.654-.414.4-.634Zm1.205-2.042-.632-.404 1.716-2.678.632.405.631.404-1.716 2.678-.631-.405Zm1.716-2.677-.401.633a10.131 10.131 0 0 0-5.067-1.567l.027-.75.027-.75a11.63 11.63 0 0 1 5.815 1.8l-.401.634ZM12.4 5.727l-.013.75-.4-.007.012-.75.013-.75.4.007-.013.75ZM12 5.72l.013.75-.4.007-.013-.75-.013-.75.4-.007.013.75Zm-.4.007.027.75A10.13 10.13 0 0 0 6.56 8.044l-.4-.633-.402-.634a11.63 11.63 0 0 1 5.815-1.8l.027.75ZM6.16 7.411l.651-.37L8.07 9.254l-.652.37-.652.37-1.258-2.214.652-.37Zm1.257 2.214.625-.414 1.662 2.505-.625.414-.625.415-1.662-2.505.625-.415Zm1.662 2.505-.4-.634A6.2 6.2 0 0 1 12 10.535v1.5a4.7 4.7 0 0 0-2.52.73l-.4-.635ZM12 11.285v-.75c1.22 0 2.36.353 3.322.961l-.401.634-.4.634a4.7 4.7 0 0 0-2.521-.73v-.75Zm2.92.845-.645-.38 1.204-2.043.646.381.646.381-1.204 2.042-.646-.38Z"}),(0,l.jsx)("path",{fill:"#1D9F78",stroke:"#0A0A0A",strokeWidth:1.5,d:"M9.08 12.13a5.57 5.57 0 0 0-2.56 4.131.65.65 0 0 1-.642.588H1.646a.649.649 0 0 1-.645-.69A11.143 11.143 0 0 1 6.16 7.41l2.92 4.72Z"}),(0,l.jsx)("path",{stroke:"#0A0A0A",strokeWidth:1.5,d:"M22.354 16.85h-4.232a.65.65 0 0 1-.643-.589 5.57 5.57 0 0 0-2.559-4.13l2.92-4.72A11.143 11.143 0 0 1 23 16.16a.649.649 0 0 1-.645.69Z"})]})]})),o=t=>(0,l.jsxs)("svg",a(a({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},t),{},{children:[(0,l.jsxs)("g",{clipPath:"url(#a)",children:[(0,l.jsx)("mask",{id:"b",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,l.jsx)("path",{fill:"#fff",stroke:"#fff",d:"M23.5 23.5V.5H.5v23h23Z"})}),(0,l.jsxs)("g",{mask:"url(#b)",children:[(0,l.jsx)("path",{fill:"#0A0A0A",stroke:"#0A0A0A",strokeWidth:.5,d:"M12.061 12.752a.398.398 0 0 0-.306.005.392.392 0 0 0-.24.373l.028 1.794a1.
1601 1.601 0 1 0 .8.002l-.03-1.809a.4.4 0 0 0-.252-.365Z"}),(0,l.jsx)("path",{fill:"#FFA944",fillRule:"evenodd",d:"M11.997 5.84c-2.145 0-4.148.613-5.84 1.674l1.257 2.194 1.662 2.48a5.488 5.488 0 0 1 2.921-.838c1.073 0 2.074.308 2.92.838l1.205-2.022 1.716-2.652a10.966 10.966 0 0 0-5.84-1.673Z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#0A0A0A",d:"M11.997 5.84v-.75h.75v.75h-.75Zm0 0v.75h-.75v-.75h.75Zm-5.84 1.674-.651.373-.36-.626.612-.383.398.636Zm1.257 2.194-.623.417-.015-.022-.013-.022.65-.373Zm1.662 2.48.398.635-.616.386-.405-.604.623-.418Zm2.921-.838v-.75h.387l.224.315-.611.435Zm0 0v.75h-.387l-.224-.315.611-.435Zm2.92.838.645.383-.392.659-.65-.407.398-.636Zm1.205-2.022-.644-.384.007-.012.007-.011.63.407Zm1.716-2.652.398-.635.645.404-.413.639-.63-.408Zm-5.09-1.674h-1.5 1.5Zm-6.99 1.038a11.716 11.716 0 0 1 6.24-1.788v1.5c-2.002 0-3.867.572-5.444 1.56l-.796-1.272Zm1.005 3.203L5.506 7.887l1.3-.746 1.258 2.194-1.3.746Zm1.69 2.524-1.662-2.48 1.246-.835 1.662 2.48-1.245.835Zm3.544-.505c-.927 0-1.791.266-2.523.723l-.795-1.271a6.238 6.238 0 0 1 3.318-.952v1.5Zm-.61-.315 1.22-.87h.001l-1.222.87Zm3.133 1.038a4.738 4.738 0 0 0-2.523-.723v-1.5c1.218 0 2.356.35 3.319.952l-.796 1.271Zm2.246-2.273-1.204 2.021-1.289-.767 1.205-2.022 1.288.768Zm1.702-2.628-1.716 2.651-1.26-.814 1.716-2.652 1.26.815Zm-6.47-2.831c2.29 0 4.43.654 6.238 1.788l-.796 1.27a10.216 10.216 0 0 0-5.443-1.558v-1.5Z"}),(0,l.jsx)("path",{stroke:"#0A0A0A",strokeWidth:1.5,d:"M9.08 12.189a5.508 5.508 0 0 0-2.56 4.09.647.647 0 0 1-.642.582H1.646a.645.645 0 0 1-.645-.683A11.015 11.015 0 0 1 6.16 7.515l2.92 4.674ZM22.355 16.861h-4.232a.647.647 0 0 1-.642-.582 5.508 5.508 0 0 0-2.56-4.09l2.921-4.674A11.015 11.015 0 0 1 23 16.18a.645.645 0 0 1-.645.682Z"})]})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"a",children:(0,l.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]})),w=t=>(0,l.jsxs)("svg",a(a({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},t),{},{children:[(0,l.jsxs)("g",{clipPath:"url(#a)",children:[(0,l.jsx)("mask",{id:"b",width:25,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,l.jsx)("path",{fill:"#fff",stroke:"#fff",d:"M24.172 23.5V.5h-23v23h23Z"})}),(0,l.jsxs)("g",{mask:"url(#b)",children:[(0,l.jsx)("path",{fill:"#0A0A0A",stroke:"#0A0A0A",strokeWidth:.5,d:"M16.076 14.937a.398.398 0 0 0-.136-.275.394.394 0 0 0-.44-.055l-1.607.798a1.602 1.602 0 1 0 .344.723l1.618-.807a.4.4 0 0 0 .221-.384Z"}),(0,l.jsx)("path",{fill:"#0A0A0A",d:"M12.669 5.84v-.75h.75v.75h-.75Zm0 0v.75h-.75v-.75h.75Zm-5.84 1.674-.652.373-.358-.626.61-.383.4.636Zm1.257 2.194-.623.417-.015-.022-.013-.022.65-.373Zm1.662 2.48.398.635-.616.386-.405-.604.623-.418Zm2.92-.838v-.75h.388l.224.315-.611.435Zm0 0v.75h-.386l-.224-.315.61-.435Zm2.921.838.645.383-.393.659-.65-.407.398-.636Zm1.205-2.022-.644-.384.007-.012.007-.011.63.407Zm1.716-2.652.398-.635.645.404-.414.639-.63-.408ZM13.419 5.84h-1.5 1.5Zm-6.99 1.038a11.716 11.716 0 0 1 6.24-1.788v1.5c-2 0-3.866.572-5.443 1.56L6.43 6.878Zm1.006 3.203L6.177 7.887l1.302-.746 1.257 2.194-1.301.746Zm1.69 2.524-1.662-2.48 1.246-.835 1.662 2.48-1.246.835Zm3.544-.505c-.928 0-1.792.266-2.523.723l-.796-1.271a6.238 6.238 0 0 1 3.319-.952v1.5Zm-.611-.315 1.222-.87-1.222.87Zm3.134 1.038a4.738 4.738 0 0 0-2.523-.723v-1.5c1.218 0 2.356.35 3.318.952l-.795 1.271Zm2.246-2.273-1.204 2.021-1.289-.767 1.205-2.022 1.288.768Zm1.701-2.628-1.715 2.651-1.26-.814 1.716-2.652 1.26.815ZM12.67 5.09c2.29 0 4.43.654 6.239 1.788l-.796 1.27a10.216 10.216 0 0 0-5.443-1.558v-1.5Z"}),(0,l.jsx)("path",{stroke:"#0A0A0A",strokeWidth:1.5,d:"M9.751 12.189a5.508 5.508 0 0 0-2.558 4.09.647.647 0 0 1-.643.582H2.318a.645.645 0 0 1-.645-.683 11.015 11.015 0 0 1 5.158-8.663l2.92 4.674Z"}),(0,l.jsx)("path",{fill:"#DD3331",stroke:"#0A0A0A",strokeWidth:1.5,d:"M23.027 16.861
1h-4.232a.647.647 0 0 1-.642-.582 5.508 5.508 0 0 0-2.56-4.09l2.921-4.674a11.015 11.015 0 0 1 5.158 8.664.645.645 0 0 1-.645.682Z"})]})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"a",children:(0,l.jsx)("path",{fill:"#fff",d:"M.672 0h24v24h-24z"})})})]})),c={A1:"#AEF2C9",A2:"#5FFB6F",B1:"#FFE588",B2:"#FFC977",C1:"#FDAE94",C2:"#FF5B51"},d={A1:i,A2:i,B1:o,B2:o,C1:w,C2:w}},49841:function(t,e,r){"use strict";r.d(e,{f:function(){return l}});r(28660);var s=r(25617);function l(t,e){return(0,s.v9)((e=>void 0===e.static?null:t(e.static)),e)}},85565:function(t,e,r){"use strict";r.d(e,{Np:function(){return c}});var s=r(78490),l=r.n(s),n=(r(28660),r(67294),r(79655)),a=r(96238),i=r(71376),o=r(27325),w=r(85893);function c(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,s=[];if((null===t||void 0===t?void 0:t.length)>0)for(let o=0;o<t.length;o++){var n;s.push({"@type":"ListItem",position:o+1,item:{"@id":(0,a.u)(t[o]),name:r&&!t[o].webTitle?r(l()(n=(t[o].title??"").toLowerCase()).call(n," ","-"),...t[o].titleArgs??[]):t[o].title}})}const i={"@type":"BreadcrumbList",itemListElement:s};return e?{"@context":"https://schema.org","@graph":[i]}:i}e.ZP=t=>{let{breadcrumbs:e,useReactLink:r=!1,linkClasses:s,listItemClasses:a,lastItemClasses:c}=t;const d="[&:not(:last-child)]:after:tw-content-['/'] [&:not(:last-child)]:after:tw-px-1 [&:not(:last-child)]:after:tw-opacity-70",{t:u}=(0,o.ZP)();return null==e?null:(0,w.jsx)("nav",{"aria-label":"breadcrumbs",children:(0,w.jsx)("ol",{className:"tw-flex tw-flex-wrap tw-list-none tw-m-0 tw-p-0 tw-capitalize",children:e.map(((t,o)=>{var h;const m=t.webTitle?t.title:u(l()(h=(t.title??"").toLowerCase()).call(h," ","-"),...t.titleArgs??[]);return o!=e.length-1&&t.url?(0,w.jsx)("li",{className:`${d} ${a} tw-text-blue-1`,children:r?(0,w.jsx)(n.rU,{to:t.url,title:null!=t.webTitle?t.webTitle:t.title,className:`!tw-text-inherit hover:tw-text-inherit ${s}`,children:m}):(0,w.jsx)(i.Z,{href:t.url,hasLocale:!1,children:(0,w.jsx)("a",{title:null!=t.webTitle?t.webTitle:t.title,className:`!tw-text-inherit hover:tw-text-inherit ${s}`,children:m})})},o):(0,w.jsx)("li",{className:`${d} ${c} !tw-text-gray-40`,children:(0,w.jsx)("span",{children:m})},o)}))})})}},88465:function(t,e,r){"use strict";r.d(e,{Z:function(){return h}});r(28660);var s=r(67294),l=(r(68893),r(9429)),n=r(1443),a=r(64566),i=r(2456),o=r(85893);class w extends s.Component{render(){const{children:t,breadcrumbs:e,title:r,subTitle:s,className:l}=this.props;return(0,o.jsx)("div",{className:`tw-float-left tw-z-10 tw-flex-col tw-inline-flex tw-content-evenly ${l}`,children:t??(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.Z,{title:r,className:"tw-mt-12 tw-text-[1.7rem] min-[288px]:tw-mt-[2.5rem] sm:tw-text-[2rem] sm:tw-mt-0 md:tw-mt-6 lg:tw-mt-0 "}),(0,o.jsx)(a.Z,{breadcrumbs:e}),(0,o.jsx)(i.Z,{subTitle:s})]})})}}var c=w;var d=t=>{let{image:e,children:r,alt:s,className:l}=t;return(0,o.jsx)("div",{className:` tw-z-10 tw-relative tw-text-center ${l}`,children:r??(e?(0,o.jsx)("img",{className:"tw-w-full tw-h-auto md:tw-w-[360px] md:tw-h-[239px] lg:tw-w-[480px] lg:tw-h-[319px] xl:tw-w-[540px] xl:tw-h-[359px] tw-mt-6 tw-mb-12 dark:tw-brightness-75 dark:tw-saturate-[1.2]",src:e,alt:s}):"")})};class u extends s.Component{render(){const{children:t,breadcrumbs:e,title:r,subTitle:s,className:n,containerClassName:a,classes:i}=this.props;return(0,o.jsx)(l.Z,{classes:i,children:(0,o.jsx)("div",{className:`tw-max-w-[1200px] tw-mx-4 md:tw-mx-8 xl:tw-mx-auto ${a}`,children:(0,o.jsx)("div",{className:`tw-flex tw-leading-6 ${n}`,children:t??(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(c,{breadcrumbs:e,title:r,subTitle:s})})})})})}}u.Title=n.Z,u.SubTitle=i.Z,u.Content=c,u.Image=d,u.BreadCrumb=a.Z;var h=u},64566:function(t,e,r){"use strict";r(28660),r(67294);var s=r(85565),l=r(85893);e.Z=t=>{let{breadcrumbs:e,className:r,children:n,listItemClasses:a,linkClasses:i,lastItemClasses:o}=t;return(0,l.jsx)(l.Fragment,{children:n??(e?(0,l.jsx)("div",{className:`tw-text-[0.8rem] tw-font-text-bold sm:tw-text-[0.95rem] tw-font-medium tw-text-[#6a778db9] tw-tracking-[0.15px] tw-z-[2] tw-w-full ${r} md:tw-flex tw-hidden tw-mb-2`,children:(0,l.jsx)(s.ZP,{breadcrumbs:e,listItemClasses:a,linkClasses:i,lastItemClasses:o})}):null)})}},2456:function(t,e,r){"use strict";r(28660),r(67294);var s=r(85893);e.Z=t=>{let{subTitle:e,children:r}=t;return(0,s.jsx)(s.Fragment,{children:r??(0,s.jsx)("p",{className:"tw-text-justify tw-text-sub-title tw-text-sm md:tw-text-base lg:tw-text-lg tw-leading-5 md:tw-leading-6 lg:tw-leading-7 tw-mb-4 sm:tw-mb-6",children:e})})}},1443:function(t,e,r){"use strict";r(28660),r(67294);var s=r(85893);e.Z=t=>{let{title:e,className:r,children:l}=t;return(0,s.jsx)(s.Fragment,{children:l??(0,s.jsx)("h1",{className:`tw-leading-[27px] md:tw-leading-[30px] lg:tw-leading-[45px] tw-text-lg md:tw-text-2xl lg:tw-text-4xl tw-text-title tw-relative tw-w-fit tw-mb-4 sm:tw-mb-6 tw-mt-4 md:tw-mt-6 lg:tw-mt-[80px] tw-font-text-bold ${r}`,children:e})})}},27429:function(t,e,r){"use strict";r(28660);
1var s=r(9008),l=r.n(s),n=(r(67294),r(85893));const a=(t,e)=>{const r="LanGeek";if(!t)return r;const s=(t=>{if(!t)return"";try{if("en"===t.toLowerCase())return"GB".split("").map((t=>String.fromCodePoint(127397+t.charCodeAt(0)))).join("");const e=new Intl.Locale(t).maximize();if(!e.region)return"";const r=e.region;return r&&2===r.length?r.toUpperCase().split("").map((t=>String.fromCodePoint(127397+t.charCodeAt(0)))).join(""):""}catch{return""}})(null===e||void 0===e?void 0:e.sourceLang);return s?`${t} ${s} LanGeek`:`${t} LanGeek`};e.Z=t=>{let{route:e,title:r,desc:s,image:i,lang:o}=t;const w=a(r,o),c=(t=>{if(t)try{const e=new Intl.Locale(t).maximize();return e.region?`${e.language}_${e.region}`:e.language}catch{return t}})((null===o||void 0===o?void 0:o.destinationLang)??(null===o||void 0===o?void 0:o.sourceLang));return(0,n.jsxs)(l(),{children:[(0,n.jsx)("title",{children:w}),(0,n.jsx)("meta",{name:"Description",content:s}),(0,n.jsx)("meta",{property:"og:title",content:w}),(0,n.jsx)("meta",{property:"og:description",content:s}),(0,n.jsx)("meta",{property:"og:url",content:`https://langeek.co${e}`}),(0,n.jsx)("meta",{property:"og:locale",content:c}),(0,n.jsx)("meta",{property:"og:site_name",content:"Langeek"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:image",content:i??"/assets/logo/langeek.png",itemProp:"image"})]})}},75070:function(t,e,r){"use strict";var s=r(21107),l=(r(28660),r(67294),r(92345)),n=r(85893);function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.Z=t=>(0,n.jsx)(l.Z,i(i({},t),{},{position:"center center",overlayStyle:{background:"rgba(0,0,0,0.3)",backdropFilter:"blur(4px)"},children:t.children}))},9429:function(t,e,r){"use strict";r(28660),r(67294);var s=r(85893);e.Z=t=>(0,s.jsx)("div",{className:t.classes,children:t.children})},93940:function(t,e,r){"use strict";r.d(e,{Z:function(){return Re}});var s=r(21107),l=(r(28660),r(9008)),n=r.n(l),a=r(88339),i=r(67294),o=r(4031),w=r(18609),c=r(22327),d=r(58118),u=r.n(d),h=r(25617),m=r(45111),x=r(71376),p=r(8470),f=r.n(p),g=r(57728),v=r(20254),b=r(85893);function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var k=t=>{let{links:e,onLangSelect:r,showLanguageSelection:s,activeURL:l}=t;const n=["vocabulary","grammar","expressions","pronunciation","reading"],{0:a,1:o}=(0,i.useState)(null),w=(0,i.useRef)([]),c=(0,i.useRef)(null),{direction:d}=(0,v.Z)(),u="rtl"===d,{0:h,1:m}=(0,i.useState)(!1),p=(0,i.useMemo)((()=>n.findIndex((t=>e[t].href===l))),[l,e]),j=()=>{const t=null!==a?n.indexOf(a):p,e=c.current;if(t>=0&&e){const r=w.current[t];if(r){const{offsetLeft:t,offsetWidth:s,offsetTop:l,offsetHeight:n}=r;if(u){const r=e.offsetWidth-(t+s);e.style.setProperty("--left",`${r}px`)}else e.style.setProperty("--left",`${t}px`);e.style.setProperty("--width",`${s}px`),e.style.setProperty("--top",`${l}px`),e.style.setProperty("--height",`${n}px`),e.style.setProperty("--scale","1")}}else e&&e.style.setProperty("--scale","0")};(0,i.useEffect)((()=>{j();const t=setTimeout(j,150);return()=>clearTimeout(t)}),[a,u,p]),(0,i.useEffect)((()=>{const t=()=>{j()};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]);const k=h?`${f().highlight} ${f().smooth}`:`${f().highlight} ${f().instant}`;return(0,b.jsxs)("div",{ref:c,className:"tw-relative tw-hidden md:tw-flex tw-w-full tw-gap-1.5 xl:tw-gap-0.5 tw-flex-nowrap tw-items-center tw-py-3 xl:tw-py-2",children:[(0,b.jsx)("div",{className:k}),n.map(((t,r)=>{const s=e[t].iconComponent,n=e[t].href===l,i=a===t||null===a&&n;return(0,b.jsx)(x.Z,{href:e[t].href,passHref:!0,locale:e[t].locale,hasLocale:!0,children:(0,b.jsx)("a",y(y({},e[t].disabled?{rel:"nofollow"}:{}),{},{onClick:r=>e[t].disabled?r.preventDefault():m(!1),ref:t=>w.current[r]=t,className:`${e[t].disabled?"tw-grayscale tw-opacity-[0.5] tw-cursor-not-allowed":null} tw-font-text-medium tw-px-2 xl:tw-px-4 tw-py-2 xl:tw-py-3 tw-rounded-3xl tw-hidden md:tw-flex tw-items-center tw-justify-center tw-relative tw-transition-all tw-duration-300`,title:e[t].webTitle,onMouseEnter:()=>{o(t),m(!0)},onMouseLeave:()=>o(null),children:(0,b.jsxs)("div",{className:(0,g.cn)(i?"tw-mx-2 xl:tw-mx-0":null,"tw-flex tw-items-center tw-justify-center tw-h-6"),children:[s&&(0,b.jsx)(s,{width:24,height:24,className:"tw-transition-all tw-duration-300 xl:tw-mr-2\n "+(i?"tw-opacity-100 t
1w-text-blue-1 tw-w-6 tw-mr-2":"xl:tw-opacity-0 tw-text-gray-58 xl:tw-w-0")}),(0,b.jsx)("span",{className:"tw-transition-all tw-duration-300 tw-whitespace-nowrap\n "+(i?"tw-text-blue-1 tw-font-medium tw-text-base tw-block":"tw-text-title tw-hidden xl:tw-block"),children:e[t].title})]})}))},r)}))]})},N=(r(68893),r(15482)),Z=r(67716),L=r(27325),O=r(13163),E=r(29028),P=r(30596),C=r(6867),S=r(78830),M=r(21576),A=r(10871),D=r(16644),$=r(56369),B=r(21468),_=r(64774),F=r(18457);const T=t=>{let{children:e}=t;const r=(0,N.ZP)().resolve(Z.s).getLang(),s=(0,P.Vv)((t=>t.userLevel))?"/dashboard/my-stats":"/dashboard/level-test";return(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:r,href:s,children:e})};var z,W,I,H,q,V=()=>{const{t:t}=(0,L.ZP)(),e=(0,P.Vv)((t=>t.userLevel)),r=(0,N.ZP)().resolve(Z.s).getSourceLang();if(!(0,B.v)(r))return null;if(e){const r=F.z[e],s=F.S[e];return(0,b.jsx)(T,{children:(0,b.jsxs)("a",{className:"tw-px-4 tw-py-2 tw-rounded-3xl tw-flex tw-justify-between tw-items-center tw-gap-1 hover:tw-no-underline",style:{background:s},children:[(0,b.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-1",children:[(0,b.jsx)(r,{className:"tw-h-5"}),(0,b.jsxs)("span",{className:"tw-text-sm tw-font-text-regular tw-text-gray-700",children:[t("my-level"),": "]}),(0,b.jsx)("span",{className:"tw-text-base tw-font-text-bold tw-text-black",children:e})]}),(0,b.jsx)(_.Z,{className:"tw-w-4 tw-h-4 rtl:tw-rotate-180 tw-text-title"})]})})}return(0,b.jsx)(T,{children:(0,b.jsx)("a",{className:"tw-px-4 tw-py-2 tw-bg-blue-1 tw-rounded-3xl tw-inline-flex tw-justify-center tw-items-center tw-gap-2 hover:tw-no-underline tw-text-white tw-text-sm tw-font-text-medium tw-leading-5 tw-w-full",children:t("level-assessment")})})},R=r(5152),U=r.n(R),G=r(1459),K=r(38621),Q=r.n(K);function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},J.apply(null,arguments)}var Y=t=>i.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 49 50"},t),z||(z=i.createElement("path",{fill:"url(#premium-user_svg__a)",stroke:"#EEB55F",strokeMiterlimit:10,strokeWidth:.62,d:"M46.876 13.439a1 1 0 0 0-.273-1.696l-3.614-1.435.038-7.233a1 1 0 0 0-1.247-.974l-7.01 1.785L32.503.727a1 1 0 0 0-1.711.145L28.164 6.27a20.64 20.64 0 0 1 14.111 11.025z"})),W||(W=i.createElement("path",{fill:"#fff",d:"M44.003 13.896a1 1 0 0 0-.2-1.666l-2.382-1.169-.294-5.584a1 1 0 0 0-1.214-.924L34.597 5.73l-1.878-2.183a1 1 0 0 0-1.66.22l-1.082 2.252c5.688 1.516 9.216 4.543 12.117 9.467z",opacity:.2})),I||(I=i.createElement("path",{fill:"url(#premium-user_svg__b)",d:"M9.297 44.6C-1.13 36.452-3.082 21.462 4.947 11.185c4.85-6.208 12.485-9.55 20.42-8.937a.87.87 0 0 1 .801.948.897.897 0 0 1-.955.814c-7.348-.56-14.41 2.526-18.89 8.26-7.427 9.507-5.612 23.393 4.056 30.946s23.574 5.962 31.007-3.552a21.6 21.6 0 0 0 4.381-10.382c.493-3.709.049-7.47-1.291-10.94a.88.88 0 0 1 .017-.676.9.9 0 0 1 .827-.534.87.87 0 0 1 .8.557 24 24 0 0 1 1.392 11.813 23.4 23.4 0 0 1-4.745 11.241c-8.024 10.27-23.041 12.005-33.47 3.857"})),H||(H=i.createElement("rect",{width:39,height:39,x:4.875,y:6.231,stroke:"#EEB55F",strokeWidth:3,rx:19.5})),q||(q=i.createElement("defs",null,i.createElement("linearGradient",{id:"premium-user_svg__a",x1:32.528,x2:49.163,y1:-1.918,y2:11.079,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#EECA93"}),i.createElement("stop",{offset:.07,stopColor:"#EFCB95"}),i.createElement("stop",{offset:.37,stopColor:"#F9B83A"}),i.createElement("stop",{offset:.4,stopColor:"#F1BF3F"}),i.createElement("stop",{offset:1,stopColor:"#ECDBB0"})),i.createElement("linearGradient",{id:"premium-user_svg__b",x1:3.933,x2:41.757,y1:12.484,y2:42.036,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#FFDF8B"}),i.createElement("stop",{offset:.07,stopColor:"#F2CC93"}),i.createElement("stop",{offset:.76,stopColor:"#F1C85D"}),i.createElement("stop",{offset:1,stopColor:"#E6B469"}))))),X=r(28089);function tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function et(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const rt=U()((()=>r.e(2679).then(r.t.bind(r,72679,23)).then((t=>t.LazyLoadImage))),{loadableGenerated:{webpack:()=>[72679]}}),st=t=>{let{loading:e}=t;const{0:r,1:s}=(0,i.useState)({}),{0:l,1:n}=(0,i.useState)(0);return(0,i.useEffect)((()=>{if(e)setTimeout((()=>{s(et(et({},r),{},{[l]:!0})),l<5&&n(l+1)}),75);else{const t={};Array.from(Array(5)).map(((e,r)=>t[r]=!1)),s(t),n(0)}}),[l,e]),(0,b.jsx)(i.Fragment,{children:Array.from(Array(5)).map(((t,s)=>e?(0,b.jsxs)("div",{className:["tw-absolute tw-w-full tw-h-full tw-top-0 tw-left-0 tw-transition-all tw-ease-in-out tw-duration-[.3s]",r[s]?Q().run:void 0].join(" "),children:[t,(0,b.jsx)("span",{className:'tw-absolute tw-content-[""] tw-w-[5px] tw-h-[5px] tw-bg-background tw-top-0 tw-left-[-1px] tw-bottom-0 tw-m-auto '})]},s):null))})};var lt=t=>{let{showPremiumBar:e=!1,showName:r=!1,showEmail:s=!1,showLeitnerStatus:l=!1,disableLink:n=!1,showLevelTestStatus:a=!1,premiumBarClassNames:w,profileImageClassNames:c,levelTestClassNames:d}=t;const u=(0,o.BA)((t=>t.auth.user)),h=(0,P.Vv)((t=>{var e;return((null===(e=(t.leitners??{})[E.oE])||void 0===e?void 0:e.cards)??[]).filter((t=>t.readState==C.Yc.NOT_READ))})),m=(0,i.useContext)(G.J).isActiveSub,{0:p,1:f}=(0,i.useState)(!1),j=(0,P.Vv)((t=>t.userLevel)),{direction:y}=(0,v.Z)();return(0,i.useEffect)((()=>{let t=null,e=null;return!p&&null!==h&&void 0!==h&&h.length&&(t=setTimeout((()=>{f(!0),e=setTimeout((()=>f(!1)),5900)}),1e4)),()=>{e&&clearTimeout(e),t&&clearTimeout(t)}}),[p,h]),(0,b.jsx)(x.Z,{disable:n,href:"/dashboard/profile",children:(0,b.jsxs)("a",{className:"tw-flex tw-gap-3",children:[(0,b.jsxs)("div",{className:(0,g.cn)("tw-relative tw-flex tw-items-center tw-justify-center",{'after:tw-bg-blue-light-6 after:tw-absolute after:tw-content-[""] after:tw-w-full after:tw-h-full after:tw-top-0 after:tw-bottom-0 after:tw-right-0 after:tw-left-0 after:tw-rounded-[50%] after:tw-m-auto tw-w-12 tw-h-12 tw-rounded-[50%] !tw-border !tw-border-solid !tw-border-transparent tw-relative tw-flex tw-items-center tw-bg-blue-light-1':l,"after:tw-bg-gradient-to-r tw-from-[red] tw-to-[orange]":l&&h.length}),children:[(0,b.jsx)(rt,{src:`https://api.langeek.co/v1/a/img/profile/${null===u||void 0===u?void 0:u.profilePictureId}.png`,alt:"profile",className:(0,g.cn)("tw-w-11 tw-h-11 tw-rounded-[50%] tw-relative tw-z-10 tw-bg-blue-light-1",c)}),e&&m?(0,b.jsx)(Y,{className:(0,g.cn)("tw-absolute tw-bottom-0 tw-translate-y-[13%] tw-translate-x-[-14%] rtl:tw-translate-x-[14%] tw-left-0 tw-w-16 tw-h-16",w)}):null,l&&h.length?(0,b.jsx)(st,{loading:p}):null,a&&null===j?(0,b.jsx)(X.Z,{className:(0,g.cn)("tw-w-5 tw-h-5 tw-absolute tw-top-1/2 -tw-translate-y-1/2 tw-translate-x-1/2 tw-z-20 tw-text-[#FFA944] tw-grayscale","rtl"==y?"tw-left-0":"tw-right-0",d)}):null]}),r||s?(0,b.jsxs)("div",{className:"tw-flex tw-flex-col",children:[r?(0,b.jsx)("span",{className:" tw-text-base tw-text-title tw-truncate tw-font-text-medium ",children:null===u||void 0===u?void 0:u.displayName}):null,s?(0,b.jsx)("span",{className:"tw-max-w-[150px] tw-text-gray-40 tw-text-sm tw-font-light tw-truncate ",children:null===u||void 0===u?void 0:u.email}):null]}):null]})})},nt=r(49595),at=r(4378),it=r(44648),ot=r(7979),wt=r(55557),ct=r(12625),dt=r(96360),ut=r(85908),ht=r(84459),mt=r(98417);function xt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?xt(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const ft=U()((()=>r.e(2679).then(r.t.bind(r,72679,23)).then((t=>t.LazyLoadImage))),{loadableGenerated:{webpack:()=>[72679]}});var gt=t=>{var e;let{show:r,links:s,onClose:l,onLangSelect:n,showLanguageSelection:w,activeURL:c,onShowLeaderboard:d}=t;const u=(0,o.BA)((t=>t.auth.user)),m=(0,N.ZP)().resolve(Z.s),p=m.getDestinationLang()??m.getSourceLang(),{t:f}=(0,L.ZP)(),{0:g,1:v}=(0,i.useState)(!1),j=[s.expressions,s.grammar,s.vocabulary,s.pronunciation,s.reading],y=(0,h.I0)(),k=(0,a.W)(),B=m.getLang(),F=m.getSourceLang(),T=!(null!==(e=O.Z.findLeitnerLearningWords(E.oE))&&void 0!==e&&e.length),z=(0,P.Vv)((t=>{var e;return((null===(e=(t.leitners??{})[E.oE])||void 0===e?void 0:e.cards)??[]).filter((t=>t.readState==C.Yc.NOT_READ))})),W="en"===F,I=m.getAvailableDestinationLocales().length>1,H=(0,P.Vv)((t=>{var e;return null===(e=(t.leitners??{})[E.oE])||void 0===e?void 0:e.date}));(0,i.useEffect)((()=>{q()}),[]),(0,i.useEffect)((()=>{null!==u&&void 0!==u&&u.id&&y($.u.checkVersion(null===u||void 0===u?void 0:u.id))}),[null===u||void 0===u?void 0:u.id]);const q=()=>{if(!H)return void y(M.Z.load(E.oE));let t=new Date,e=new Date(H);t.toDateString()===e.toDateString()||y(M.Z.load(E.oE))};return(0,b.jsx)(i.Fragment,{children:(0,b.jsxs)("div",{className:"tw-flex tw-flex-col xl:tw-hidden tw-bg-background tw-overflow-y-scroll tw-fixed tw-top-0 tw-bottom-0 tw-left-0 tw-h-full tw-w-[400px] tw-max-w-[85%] tw-z-[1502] tw-transition-all tw-ease-in-out tw-duration-300 rtl:tw-translate-x-full ltr:-tw-translate-x-full "+(r?"ltr:!tw-translate-x-0 rtl:!tw-translate-x-0":""),children:[(0,b.jsxs)("div",{className:"tw-flex tw-justify-between tw-w-full tw-mt-4 tw-self-start tw-items-center tw-px-3",children:[(0,b.jsx)("div",{className:"tw-flex tw-flex-col tw-justify-start ",children:(0,b.jsx)(x.Z,{href:"/",passHref:!0,children:(0,b.jsxs)("a",{className:"tw-pt-2 tw-mb-4 tw-flex tw-items-center",children:[(0,b.jsx)(ft,{src:`/assets/logo/logo-${m.getSourceLang()}.svg`,alt:"LanGeek",height:40}),(0,b.jsx)("span",{className:"tw-sr-only",children:f("home")})]})})}),(0,b.jsx)("button",{type:"button",className:"tw-text-title tw-px-0 hover:tw-opacity-75 tw-text-xl tw-border-none tw-bg-transparent",onClick:l,"aria-label":"Close",children:(0,b.jsx)(nt.Z,{className:"tw-w-6 tw-h-6 tw-text-title","aria-hidden":"true"})})]}),w?(0,b.jsxs)("a",{className:"tw-rounded-[10px] tw-px-3 tw-py-4 tw-bg-background tw-flex tw-items-center tw-justify-between",onClick:n,children:[(0,b.jsxs)("span",{children:[(0,b.jsx)(A.Z,{type:"lazy",src:m.getLangObject().getDestinationFlag(),width:30,height:30,alt:p}),(0,b.jsx)("span",{className:"tw-font-text-medium tw-text-base tw-text-title tw-ml-3 tw-mr-0",children:null===p||void 0===p?void 0:p.toUpperCase()})]}),I?(0,b.jsx)(_.Z,{className:"tw-text-title tw-w-6 tw-h-6 rtl:tw-rotate-180"}):null]}):null,(0,b.jsx)("div",{onClick:d,className:"tw-group hover:tw-text-purple tw-transition-all tw-duration-300 tw-text-title hover:tw-no-underline hover:tw-cursor-pointer tw-flex tw-items-center tw-px-3 tw-py-4 tw-justify-between "+(T?"disabled":""),children:(0,b.jsxs)("div",{className:"tw-flex tw-gap-2 tw-items-center tw-justify-between",children:[(0,b.jsx)(at.Z,{className:"tw-text-title tw-h-6 tw-w-6"}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:f("leaderboard")})]})}),(0,b.jsx)("div",{className:"tw-px-3 tw-py-4",children:(0,b.jsx)(D.Z,{radioBtn:!0})}),(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-border-solid tw-border-x-0 tw-border-y tw-border-y-blue-light-1 ",children:[(0,b.jsxs)("div",{onClick:()=>v(!g),className:"tw-flex tw-items-center tw-px-3 tw-py-4 tw-justify-between tw-relative tw-text-left hover:tw-bg-blue-light-1 tw-cursor-pointer "+(g?"tw-text-purple tw-bg-blue-light-4":"tw-text-title"),children:[(0,b.jsx)("span",{className:"tw-text-base hover:tw-no-underline hover:tw-text-purple tw-font-text-medium tw-cursor-pointer ",children:f("learn")}),(0,b.jsx)(it.Z,{width:24,height:24,className:"tw-transition-all tw-duration-300 tw-text-title "+(g?"tw-rotate-180":"")})]}),(0,b.jsx)("div",{className:`tw-flex tw-flex-col tw-gap-4 tw-max-h-0 tw-transition-all tw-overflow-hidden tw-duration-300 tw-ease-in-out tw-bg-blue-light-4 ${g?"tw-max-h-[40rem]":""} `,children:j.map(((t,e)=>(0,b.jsx)("div",{children:(0,b.jsx)(x.Z,{href:t.href,passHref:!0,locale:t.locale,hasLocale:!0,disable:t.disabled,children:(0,b.jsxs)("a",pt(pt({},t.noFollow||t.disabled?{rel:"nofollow"}:{}),{},{role:"link","aria-label":`View ${t.title} page`,className:`${t.disabled?"tw-grayscale tw-opacity-[0.5] tw-cursor-not-allowed":null} tw-flex tw-font-text-medium tw-px-3 tw-py-4 tw-gap-2 tw-items-center tw-text-left tw-text-base hover:tw-no-underline tw-text-title hover:tw-bg-blue-light-1 hover:tw-text-purple ${c===t.href?"tw-text-purple":""}`,children:[t.iconComponent?(0,b.jsx)(t.iconComponent,{className:"tw-w-6 tw-h-6 tw-text-title"}):null,(0,b.jsx)("span",{children:t.title})]}))})},e)))}
1),["app","premium","contactUs"].map(((t,e)=>(0,b.jsx)(x.Z,{href:s[t].href,passHref:!0,locale:s[t].locale,children:(0,b.jsx)("a",pt(pt({href:t,title:s[t].webTitle},s[t].noFollow?{rel:"nofollow"}:{}),{},{className:"tw-font-text-medium tw-flex tw-gap-2 tw-items-center tw-text-left tw-px-3 tw-py-4 tw-text-base hover:tw-no-underline tw-text-title hover:tw-bg-blue-light-1 hover:tw-text-purple "+(c===s[t].href?"tw-text-purple":""),children:s[t].title}))},e))),(0,b.jsx)("a",{href:`https://dictionary.langeek.co?lang=${B}`,className:"tw-font-text-medium tw-flex tw-gap-2 tw-items-center tw-text-left tw-px-3 tw-py-4 tw-text-base hover:tw-no-underline tw-text-title hover:tw-bg-blue-light-1 hover:tw-text-purple",children:f("dictionary")})]}),u?(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-justify-between tw-h-full",children:[(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:B,href:"/dashboard/leitner/overview",children:(0,b.jsxs)("a",{className:"tw-group hover:tw-text-purple tw-transition-all tw-duration-300 tw-text-title hover:tw-no-underline tw-flex tw-items-center tw-px-3 tw-py-4 tw-justify-between "+(T?"disabled":""),children:[(0,b.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(wt.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:f("daily-words")})]}),(0,b.jsx)("span",{className:"tw-bg-purple group-hover:tw-bg-purple-1 tw-text-white tw-rounded-full tw-w-6 tw-h-6 tw-text-sm tw-flex tw-items-center tw-justify-center",children:null===z||void 0===z?void 0:z.length})]})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:B,href:"/dashboard/my-category",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-px-3 tw-py-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(ct.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:f("my-word-lists")})]})})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:B,href:"/dashboard/billing",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-px-3 tw-py-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(dt.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:f("billing")})]})})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:B,href:"/dashboard/bookmarks",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-px-3 tw-py-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)(ut.Z,{className:"tw-mr-2 tw-w-6 tw-h-6 tw-text-title"}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:f("bookmarks")})]})})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:B,href:"/dashboard/my-stats",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-px-3 tw-py-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(ht.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:f("stats")})]})})}),(0,b.jsxs)("div",{className:"tw-mt-auto tw-w-full",children:[(0,b.jsx)("hr",{className:"tw-m-0 tw-mt-4"}),(0,b.jsxs)("div",{className:"tw-flex tw-bg-blue-light-4 tw-gap-3 tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-cursor-pointer tw-items-center tw-px-3 tw-py-4 tw-justify-between",children:[(0,b.jsx)(lt,{showLevelTestStatus:!0,showLeitnerStatus:!0,showPremiumBar:!0,showName:!0,showEmail
1:!0}),(0,b.jsx)(mt.Z,{onClick:()=>{k.push(`/${B}`).then((()=>y(S.V.signOut())))},className:"tw-ml-auto tw-w-6 tw-h-6 rtl:tw-rotate-180 tw-text-red-alarm"})]}),W?(0,b.jsx)("div",{className:"tw-px-3 tw-pb-3 tw-cursor-default",children:(0,b.jsx)(V,{})}):null]})]}):(0,b.jsxs)("div",{className:"tw-flex tw-mt-auto tw-flex-col tw-px-3 tw-py-4",children:[(0,b.jsx)("hr",{className:"tw-w-full"}),(0,b.jsx)(x.Z,{href:s.signin.href,passHref:!0,locale:s.signin.locale,children:(0,b.jsx)("a",{className:"tw-w-full tw-self-start tw-py-2 tw-px-6 tw-mr-4 tw-my-auto tw-items-center tw-bg-blue-1 tw-ml-auto xl:tw-px-5 tw-font-text-bold tw-rounded-full hover:tw-no-underline tw-text-white hover:tw-text-white hover:tw-bg-purple tw-transition-all tw-duration-300",children:(0,b.jsxs)("span",{className:"tw-whitespace-nowrap tw-text-base tw-items-center tw-flex tw-gap-2 tw-font-text-medium tw-justify-center",children:[(0,b.jsx)(ot.Z,{className:"tw-text-white",width:24,height:24}),f("login")]})})})]})]})})},vt=r(75070),bt=r(61319);var jt=()=>{var t;const e=(0,a.W)(),r=(0,h.I0)(),s=(0,P.Vv)((t=>{var e;return null===(e=(t.leitners??{})[E.oE])||void 0===e?void 0:e.date})),l=(0,P.Vv)((t=>{var e;return((null===(e=(t.leitners??{})[E.oE])||void 0===e?void 0:e.cards)??[]).filter((t=>t.readState==C.Yc.NOT_READ))})),{0:n,1:o}=(0,i.useState)(!1),w=!(null!==(t=O.Z.findLeitnerLearningWords(E.oE))&&void 0!==t&&t.length),c=(0,N.ZP)().resolve(Z.s),d=c.getLang(),u=c.getSourceLang(),{t:m}=(0,L.ZP)(),p=()=>{if(!s)return void r(M.Z.load(E.oE));let t=new Date,e=new Date(s);t.toDateString()===e.toDateString()||r(M.Z.load(E.oE))},f="en"===u;return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsxs)("div",{onClick:()=>{p(),o(!n)},className:"tw-whitespace-nowrap tw-items-center tw-ml-4 tw-mr-2 tw-hidden xl:tw-inline-flex tw-gap-2 tw-relative tw-cursor-pointer ",children:[(0,b.jsx)(lt,{disableLink:!0,showPremiumBar:!0,showLeitnerStatus:!0,showLevelTestStatus:f}),(0,b.jsxs)("div",{className:(n?" !tw-opacity-100 !tw-translate-y-[110%] !tw-scale-100 tw-translate-x-0":"")+" tw-max-w-none tw-translate-x-0 tw-shadow-1 tw-translate-y-[50%] tw-scale-0 tw-absolute tw-min-w-[220px] tw-rounded-2xl tw-opacity-0 tw-bg-background tw-ease-in-out tw-transition-all tw-duration-300 tw-right-0 tw-bottom-10 tw-z-[1030] tw-h-auto",children:[(0,b.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-2",children:[(0,b.jsx)("div",{className:"tw-px-4 tw-py-3",children:(0,b.jsx)(lt,{showLevelTestStatus:f,showEmail:!0,showName:!0,levelTestClassNames:"!tw-top-1/4"})}),(0,b.jsx)(nt.Z,{onClick:t=>{t.preventDefault(),o(!1)},className:"tw-w-6 tw-h-6 tw-ml-auto xl:tw-hidden tw-text-title"})]}),f?(0,b.jsx)("div",{className:"tw-px-4 tw-py-2 tw-cursor-default tw-bg-blue-light-4",children:(0,b.jsx)(V,{})}):null,(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:d,href:"/dashboard/leitner/overview",children:(0,b.jsxs)("a",{className:"tw-group hover:tw-text-purple tw-transition-all tw-duration-300 tw-text-title hover:tw-no-underline tw-flex tw-items-center tw-p-4 tw-justify-between "+(w?"disabled":""),children:[(0,b.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(wt.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:m("daily-words")})]}),(0,b.jsx)("span",{className:"tw-bg-purple group-hover:tw-bg-purple-1 tw-text-white tw-rounded-full tw-w-6 tw-h-6 tw-text-sm tw-flex tw-items-center tw-justify-center",children:null===l||void 0===l?void 0:l.length})]})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:d,href:"/dashboard/my-category",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-p-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(ct.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:m("my-word-lists")}
1)]})})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:d,href:"/dashboard/bookmarks",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-p-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(ut.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:m("bookmarks")})]})})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:d,href:"/dashboard/billing",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-p-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(dt.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:m("billing")})]})})}),(0,b.jsx)(x.Z,{passHref:!0,hasLocale:!0,locale:d,href:"/dashboard/my-stats",children:(0,b.jsx)("a",{className:" hover:tw-text-purple tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-items-center tw-p-4 tw-justify-between",children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(ht.Z,{className:"tw-w-6 tw-h-6 tw-text-title"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:m("stats")})]})})}),(0,b.jsx)("div",{className:"max-xl:tw-absolute tw-bottom-0 tw-left-0 tw-w-full",children:(0,b.jsx)("div",{className:" tw-transition-all tw-duration-300 hover:tw-no-underline tw-text-title tw-flex tw-cursor-pointer tw-items-center tw-p-4 xl:tw-rounded-b-2xl tw-justify-between",onClick:()=>{e.push(`/${d}`).then((()=>r(S.V.signOut())))},children:(0,b.jsxs)("div",{className:"tw-flex tw-items-center tw-text-[#dc3545]",children:[(0,b.jsx)("span",{className:"tw-flex tw-items-center tw-mr-2",children:(0,b.jsx)(mt.Z,{className:"tw-w-6 tw-h-6 tw-text-[#dc3545]"})}),(0,b.jsx)("span",{className:"tw-font-text-medium",children:m("sign-out")})]})})})]})]}),n?(0,b.jsx)("div",{onClick:()=>o(!1),className:"tw-w-screen tw-h-screen max-xl:backdrop xl:tw-fixed xl:tw-left-0 xl:tw-top-0 xl:tw-bg-transparent xl:tw-z-[1020]"}):null]})},yt=r(49841),kt=r(35002),Nt=r(37659),Zt=r.n(Nt),Lt=r(81607),Ot=r.n(Lt),Et=r(82865),Pt=r.n(Et),Ct=r(91893),St=r.n(Ct),Mt=r(62048);var At=()=>(0,b.jsx)("div",{className:"tw-absolute tw-w-full tw-left-0 tw-items-center tw-gap-3 tw-shadow-1 tw-max-h-[calc(100vh-76px)] sm:tw-max-h-[80vh] tw-overflow-x-hidden tw-pb-4 tw-px-0 tw-rounded-b-3xl tw-bg-background tw-top-[100%] sm:tw-top-[104%]",children:Array.from(Array(7)).map(((t,e)=>(0,b.jsxs)("div",{className:"tw-h-20 tw-px-4 tw-py-3 tw-flex tw-justify-between tw-items-center",children:[(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-justify-between tw-h-full",children:[(0,b.jsx)(Mt.Z,{width:170}),(0,b.jsx)(Mt.Z,{width:120})]}),(0,b.jsx)(Mt.Z,{width:56,height:56})]},e)))}),Dt=r(40467),$t=r(8195),Bt=r(69455),_t=r(56200);const Ft="user-category",Tt=t=>{const e=null===t||void 0===t?void 0:t.split("?")[1];return e?new(Zt())(e).get("user_id"):null},zt=(t,e)=>{const r=Ot()(e).call(e);if(!r)return t;const s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return t.split(new RegExp(`(${s})`,"gi")).map(((t,e)=>t.toLocaleLowerCase()===r.toLocaleLowerCase()?(0,b.jsx)("mark",{className:"tw-rounded-sm tw-bg-orange-light-2 tw-px-0.5 tw-text-title",children:t},`${t}-${e}`):t))};var Wt=t=>{let{setShowSearchBar:e,searchTerm:r}=t;const{t:s}=(0,L.ZP)(),l=(0,N.ZP)(),{data:n,status:a,value:o,loadResult:w,result:c,setData:d,setValue:u,message:h,retry:m}=(0,Dt.Z)(),{0:p,1:f}=(0,i.useState)(-1),{0:g,1:v}=(0,i.useState)({}),j=(0,i.useRef)(null),y=(0,i.useRef)(null),k=(0,i.useRef)([]),Z=(n??[]).filter((t=>t.type!==Ft)),O=(n??[]).filter((t=>t.type===Ft)),E=[...Z,...O],P=[{id:"langeek-content",title:`LanGeek ${s("content")}`,results:Z,startIndex:0},{id:"user-word-lists",title:s("user-word-lists"),results:O,startIndex:Z.length}].filter((t=>t.results.length>0)),C=a===bt.q.Success&&n?`${n.length} ${s(1===n.length?"result-found":"results-found")}`:"",S="string"===typeof h&&h?h:s("something-went-wrong");(0,i.useEffect)((()=>{var t;null===(t=y.current)||void 0===t||t.focus()}),[]),(0,i.useEffect)((()=>{r&&w({target:{value:r}})}),[r]),(0,i.useEffect)((()=>{f(-1),k.current=[]}
1),[n]),(0,i.useEffect)((()=>{const t=Array.from(new Set((n??[]).filter((t=>t.type===Ft)).map((t=>Tt(t.url))).filter((t=>Boolean(t)))));if(!t.length)return void v({});let e=!0;return l.resolve(_t.Z).briefBatch(t).then((t=>{e&&v(Pt()(t.map((t=>[t.id,t.profilePictureId]))))})).catch((()=>{e&&v({})})),()=>{e=!1}}),[n,l]),(0,i.useEffect)((()=>{var t;p>=0&&(null===(t=k.current[p])||void 0===t||t.scrollIntoView({block:"nearest"}))}),[p]),(0,i.useEffect)((()=>{const t=t=>{var r;null!==(r=j.current)&&void 0!==r&&r.contains(t.target)||e(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)}),[e]);return(0,b.jsx)("div",{id:"global-search",role:"search",ref:j,className:"tw-transition-all tw-duration-200 tw-ease-linear tw-w-full lg:tw-w-full tw-z-50 tw-py-2 tw-px-4 sm:tw-py4 sm:tw-px-8 xl:tw-px-0 xl:tw-py-0",children:(0,b.jsxs)("div",{className:"tw-flex tw-w-full tw-items-center tw-gap-4 lg:tw-gap-10",children:[(0,b.jsxs)("div",{className:(n&&n.length?"tw-rounded-b-3xl sm:tw-rounded-b-none":"tw-rounded-b-3xl")+" tw-bg-blue-light-2 tw-transition-all tw-duration-300 tw-ease-linear sm:tw-relative tw-rounded-t-3xl tw-px-4 tw-py-2 tw-w-full",children:[(0,b.jsx)("button",{type:"button","aria-label":s("search"),title:s("search"),onClick:()=>{var t;return null===(t=y.current)||void 0===t?void 0:t.focus()},className:"tw-mr-4 tw-p-0 tw-border-0 tw-bg-transparent tw-cursor-pointer",children:(0,b.jsx)($t.Z,{"aria-hidden":"true",focusable:"false",className:"tw-text-title tw-w-6 tw-h-6"})}),(0,b.jsx)("input",{id:"global-search-input",ref:y,"aria-label":s("search"),role:"combobox","aria-autocomplete":"list","aria-expanded":Boolean(null===n||void 0===n?void 0:n.length),"aria-controls":"global-search-results","aria-activedescendant":p>=0?`global-search-result-${p}`:void 0,value:o??"",onChange:w,onKeyDown:t=>{const e=E.length;if("ArrowDown"===t.key&&e>0)t.preventDefault(),f((t=>(t+1)%e));else if("ArrowUp"===t.key&&e>0)t.preventDefault(),f((t=>t<=0?e-1:t-1));else if("Enter"===t.key&&p>=0){var r;t.preventDefault(),null===(r=k.current[p])||void 0===r||r.click()}},className:"tw-border-0 tw-w-[calc(100%-52px)] focus:tw-outline-none tw-bg-blue-light-2 tw-text-title",type:"text",placeholder:s("search")}),(0,b.jsx)("span",{role:"status","aria-live":"polite","aria-atomic":"true",className:"tw-sr-only",children:C}),a===bt.q.Loading?(0,b.jsx)(At,{}):a===bt.q.Failure?(0,b.jsxs)("div",{role:"alert",className:`${St().container} tw-absolute tw-w-full tw-left-0 tw-top-[104%] tw-flex tw-flex-col tw-items-center tw-justify-center tw-gap-3 tw-rounded-b-3xl tw-bg-item-background tw-p-6 tw-text-center tw-shadow-1`,children:[(0,b.jsx)(Bt.Z,{"aria-hidden":"true",focusable:"false",className:"tw-h-7 tw-w-7 tw-text-red-alarm"}),(0,b.jsx)("p",{className:"tw-m-0 tw-font-text-medium tw-text-title",children:S}),(0,b.jsx)("button",{type:"button",title:s("try-again"),onClick:()=>{var t;m(),null===(t=y.current)||void 0===t||t.focus()},className:"tw-cursor-pointer tw-rounded-3xl tw-border-0 tw-bg-blue-1 tw-px-5 tw-py-2 tw-font-text-medium tw-text-white hover:tw-bg-purple",children:s("try-again")})]}):n&&n.length?(0,b.jsxs)("div",{className:`${St().container} tw-absolute tw-w-full tw-left-0 tw-items-center tw-gap-3 tw-shadow-1 tw-overflow-scroll tw-max-h-[calc(100vh-76px)] sm:tw-max-h-[80vh] tw-overflow-x-hidden tw-pb-4 tw-px-0 tw-rounded-b-3xl tw-bg-item-background tw-top-[100%] sm:tw-top-[104%]`,children:[(0,b.jsx)("p",{"aria-hidden":"true",className:"tw-m-0 tw-px-4 tw-py-2 tw-text-sm tw-font-text-medium tw-text-sub-title",children:C}),(0,b.jsx)("div",{id:"global-search-results",role:"listbox",children:P.map((t=>(0,b.jsxs)("div",{role:"group","aria-labelledby":`global-search-section-${t.id}`,children:[(0,b.jsx)("h2",{id:`global-search-section-${t.id}`,className:"tw-sticky tw-top-0 tw-z-10 tw-m-0 tw-border-0 tw-border-b tw-border-solid tw-border-gray-84 tw-bg-item-background tw-px-4 tw-py-2 tw-font-text-bold tw-text-sm tw-text-title tw-capitalize",children:t.title}),t.results.map(((r,s)=>{const l=t.startIndex+s,n=Tt(r.url),a=n?g[n]:null;return(0,b.jsx)(x.Z,{href:r.url,children:(0,b.jsxs)("a",{id:`global-search-result-${l}`,ref:t=>{k.current[l]=t},role:"option","aria-selected":p===l,tabIndex:-1,onMouseEnter:()=>f(l),onClick:()=>e(!1),className:(p===l?"tw-bg-blue-light-4":"")+" tw-flex hover:tw-bg-blue-light-4 tw-px-4 tw-py-3 tw-items-center tw-justify-between tw-h-20 hover:tw-no-underline tw-text-title hover:tw-text-title",children:[(0,b.jsxs)("div",{className:(r.parentTitle?" tw-justify-between":"tw-justify-center")+" tw-h-full tw-flex tw-flex-col tw-w-[85%]",children:[(0,b.jsx)("p",{className:"tw-mb-0",children:zt(r.title,o??"")}),(0,b.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-2 tw-overflow-hidden",children:[r.type===Ft?(0,b.jsx)("span",{className:"tw-flex tw-h-6 tw-w-[23px] tw-flex-none tw-items-center tw-justify-center tw-overflow-hidden tw-rounded-full tw-bg-blue-light-1",children:a?(0,b.jsx)(A.Z,{src:`https://api.langeek.co/v1/a/img/profile/${a}.png`,alt:"",width:23,height:24,className:"tw-h-6 tw-w-[23px] tw-object-contain"}):null}):null,(0,b.jsx)("p",{className:"tw-font-text-regular tw-text-sm tw-text-gray-40 tw-mb-0 tw-whitespace-nowrap tw-overflow-hidden tw-text-ellipsis",children:r.parentTitle})]})]}),r.photo?(0,b.jsxs)("div",{className:"tw-h-full",children:[" ",(0,b.jsx)(A.Z,{className:"tw-h-full tw-w-auto",src:r.photo,alt:r.title})]}):null]})},`${r.type}-${r.id}`)}))]},t.id)))})]}):!n||null!==c&&void 0!==c&&c.length?null:(0,b.jsxs)("div",{className:`${St().container} tw-absolute tw-w-full tw-flex tw-flex-col tw-justify-center tw-left-0 tw-items-center tw-gap-3 tw-shadow-1 tw-overflow-scroll tw-h-[90vh] sm:tw-h-[390px] tw-overflow-x-hidden tw-p-4 tw-rounded-b-3xl tw-bg-item-background tw-top-[104%]`,children:[(0,b.jsx)(A.Z,{src:"/assets/img/no-words-transparent.png",width:"50%",alt:""}),(0,b.jsx)("p",{className:"tw-font-text-medium tw-text-title tw-text-lg",children:"There is no result for your search!"})]})]}),(0,b.jsxs)("button",{type:"button","aria-label":s("close"),"aria-keyshortcuts":"Escape",title:`${s("close")} (Esc)`,className:"tw-relative tw-border-0 tw-bg-transparent hover:tw-bg-blue-light-1 tw-z-50 tw-p-3 tw-rounded-2xl tw-ml-auto tw-transition-all tw-duration-300 tw-ease-in-out tw-flex tw-items-center tw-justify-center tw-mr-4 lg:tw-mr-0 tw-cursor-pointer xl:tw-hidden",onClick:()=>{e(!1),d(null),u("")},children:[(0,b.jsx)(nt.Z,{"aria-hidden":"true",focusable:"false",className:"tw-w-6 tw-h-6 tw-text-title"}),(0,b.jsx)("kbd",{"aria-hidden":"true",className:"tw-hidden sm:tw-inline-flex tw-absolute -tw-top-1 -tw-right-2 tw-rounded tw-border tw-border-solid tw-border-gray-84 tw-bg-item-background tw-px-1 tw-py-0.5 tw-font-text-medium tw-text-[8px] tw-leading-none tw-text-sub-title tw-shadow-1",children:"Esc"})]})]})})},It=r(57201),Ht=r(99445),qt=r(67843),Vt=r(56637),Rt=r(95734),Ut=r.n(Rt);var Gt,Kt=t=>{let{position:e,children:r}=t;const{0:s,1:l}=(0,i.useState)(!0),n=(0,i.useRef)(0),a=()=>{const t=window.pageYOffset,e=t<=n.current;e!==s&&l(e),n.current=t};(0,i.useEffect)((()=>(n.current=window.pageYOffset,window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a))),[s]);const o="top"===e?Ut().top:Ut().bottom,w=s?Ut().visible:"top"===e?Ut().hiddenTop:Ut().hiddenBottom;return(0,b.jsx)("div",{className:`${Ut().sticky} ${o} ${w}`,children:r})},Qt=r(61948),Jt=r(73717),Yt=r(13980);function Xt(){return Xt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Xt.apply(null,arguments)}var te=t=>i.createElement("svg",Xt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),Gt||(Gt=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M16.5 2.25h-9A1.5 1.5 0 0 0 6 3.75v16.5a1.5 1.5 0 0 0 1.5 1.5h9a1.5 1.5 0 0 0 1.5-1.5V3.75a1.5 1.5 0 0 0-1.5-1.5M6 5.25h12M6 18.75h12"}))),ee=r(18194),re=r(32959),se=r(52278),le=r(93256),ne=r(78648),ae=r(20621),ie=r(96067);const oe=["showLanguageSelection","disabledLocales"];function we(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function ce(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?we(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var de=t=>{var e,r,s,l;let{showLanguageSelection:n=!1,disabledLocales:w}=t,d=(0,c.Z)(t,oe);const{t:p}=(0,L.ZP)(),f=(0,a.W)(),{show:g,autoControl:v}=(0,o.BA)((t=>t.navbar)),j=(0,N.ZP)(),y=j.resolve(Z.s).getLang(),O=(0,h.I0)(),{0:E,1:P}=(0,i.useState)(0),C=(0,i.useRef)(null),S=j.resolve(Z.s),M=S.getDestinationLang()??S.getSourceLang(),$=S.getLangObject().getDestinationFlag(),_=(0,o.BA)((t=>t.auth.user)),F=(0,o.BA)((t=>{var e,r;return null===(e=t.auth)||void 0===e||null===(r=e.signIn)||void 0===r?void 0:r.status})),{0:T,1:z}=(0,i.useState)(!1),{0:W,1:I}=(0,i.useState)(!1),{0:H,1:q}=(0,i.useState)(!1),V="string"===typeof f.query.search?f.query.search:null,{0:R,1:U}=(0,i.useState)(!1),{general:G}=(0,o.BA)((t=>t.user.stats.leaderboard)),{0:K,1:Q}=(0,i.useState)(!1),J=(0,yt.f)((t=>t.activeNavbar)),{isUserFromIran:Y}=(0,Ht.Z)(),X=S.getDefaultLocale().getLang();(0,i.useEffect)((()=>{V&&"string"===typeof V&&V.length>0&&U(!0)}),[V]),(0,i.useEffect)((()=>{const t=t=>{const e=t.target,r=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||(null===e||void 0===e?void 0:e.isContentEditable),s=(t.ctrlKey||t.metaKey)&&"k"===t.key.toLocaleLowerCase(),l="/"===t.key&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&!r;if(s||l)return t.preventDefault(),U(!0),void window.requestAnimationFrame((()=>{var t;null===(t=document.getElementById("global-search-input"))||void 0===t||t.focus()}));"Escape"===t.key&&R&&(t.preventDefault(),U(!1))};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)}),[R]);const tt=S.getAvailableDestinationLocales().length>1;(0,Vt.Z)();const et=(0,b.jsx)("div",{className:"tw-flex tw-items-center",children:(0,b.jsx)("img",{className:"dark:tw-contrast-200 dark:tw-invert dark:tw-brightness-0",src:`/assets/logo/logo-${S.getSourceLang()}.svg`,alt:"LanGeek Website",height:45,width:125})}),rt=F===bt.q.Loading;(0,i.useEffect)((()=>{q(!0)}),[]);const st={signin:{title:"sign in",webTitle:p("sign-in"),href:"/sign-in",locale:X,noFollow:!0},profile:{title:p("profile"),webTitle:p("profile"),href:"/dashboard/profile",locale:X,noFollow:!0},vocabulary:{title:p("vocabulary"),webTitle:p("vocabulary-page-title"),href:(0,B.K1)(S.getSourceLang())?"/vocab/level-based":"/vocab",noFollow:!1,iconComponent:re.Z,disabled:!(0,B.ZP)(S.getSourceLang(),Qt.W.Vocab),locale:y??X},grammar:{title:p("grammar"),webTitle:p("grammar-webtitle"),href:"/grammar",noFollow:!1,iconComponent:se.Z,disabled:!(0,B.ZP)(S.getSourceLang(),Qt.W.Grammar),locale:y??X},app:{title:p("mobile-app"),webTitle:p("mobile-app-download"),href:Y?"https://help.langeek.co/fa/langeek-mobile-app-farsi":"/mobile-app",noFollow:!1,locale:y??X},pronunciation:{title:p("pronunciation"),webTitle:p("pronunciation-webtitle"),href:"/pronunciation",noFollow:!1,iconComponent:ae.Z,disabled:!(0,B.ZP)(S.getSourceLang(),Qt.W.Pronunciation),locale:y??X},dictionary:{title:p("dictionary"),webTitle:p("picture-dictionary"),href:"https://dictionary.langeek.co",noFollow:!1,locale:X},premium:{title:p("premium"),webTitle:p("premium"),href:"/plans",noFollow:!0,locale:y??X},subscription:{title:p("subscription"),webTitle:p("subscription"),href:"/dashboard/billing",noFollow:!0,locale:X},expressions:{title:p("expressions"),webTitle:p("expressions-page-title"),href:"/expressions",noFollow:!1,iconComponent:ne.Z,disabled:!(0,B.ZP)(S.get
1SourceLang(),Qt.W.Expressions),locale:y??X},reading:{title:p("reading"),webTitle:p("reading-page-title"),href:"/reading",noFollow:!1,iconComponent:le.Z,disabled:!(0,B.ZP)(S.getSourceLang(),Qt.W.Reading),locale:y??X},contactUs:{title:p("contact-us"),webTitle:p("contact-us"),href:"/contact-us",noFollow:!0,locale:y??X}},lt=(0,i.useMemo)((()=>{const t=Object.values(st);let e="";for(const s of t){var r;if(J&&J===s.href)return s.href;u()(r=f.pathname).call(r,s.href)&&(e=s.href)}return e}),[]),it=()=>{const t=document.documentElement.scrollTop;if(!v)return void P(t);const e=E>t;var r;e&&E-50<t&&t-50>0||!e&&E+50>t||(e!==g&&(r=e,O(m.E.setShow(r))),P(t))},wt=()=>{tt&&(I(!1),z(!0))};(0,i.useEffect)((()=>(window.addEventListener("scroll",it,!0),()=>window.removeEventListener("scroll",it,!0))),[g,v,E]),(0,i.useEffect)((()=>{if(!y){const t=setTimeout((()=>{z(!0)}),800);return()=>clearTimeout(t)}}),[y]);const ct=[{title:"dictionary",icon:Jt.Z,classes:"tw-text-title hover:tw-text-purple-1 tw-font-text-medium"},{title:"app",icon:te,classes:"tw-text-title hover:tw-text-purple-1 tw-font-text-medium"},{title:"contactUs",icon:ie.Z,classes:"tw-text-title hover:tw-text-purple-1 tw-font-text-medium"},{title:"premium",icon:Yt.Z,classes:"tw-font-text-bold tw-text-orange-dark hover:tw-text-purple-1"}];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Kt,{position:"top",children:(0,b.jsxs)("div",{className:"tw-top-0 tw-z-[1030] !tw-w-full tw-bg-background tw-backdrop-blur tw-bg-opacity-80 tw-transition-all tw-duration-300 tw-ease-in-out "+(void 0===g||g?"!tw-top-0":"!tw-top-[-90px]"),ref:C,children:[(0,b.jsx)("div",{className:"tw-bg-blue-light-4 tw-hidden xl:tw-block tw-w-full xl:tw-px-[120px]",children:(0,b.jsx)("div",{className:"tw-mx-auto tw-max-w-[var(--container-max)]",children:(0,b.jsxs)("div",{className:"tw-flex tw-flex-nowrap tw-items-center tw-justify-between",children:[(0,b.jsx)("div",{className:"tw-flex tw-flex-nowrap tw-items-end tw-gap-4 tw-py-[14px] tw-pr-4",children:ct.map(((t,e)=>(0,b.jsxs)(i.Fragment,{children:[e>0&&(0,b.jsx)("span",{className:"tw-text-sm tw-text-title tw-opacity-15",children:"|"}),(0,b.jsx)(x.Z,{href:st[t.title].href,passHref:!0,locale:st[t.title].locale,hasLocale:!0,children:(0,b.jsxs)("a",ce(ce({className:`${t.classes} tw-text-sm tw-transition-all tw-duration-300 tw-flex tw-items-center tw-gap-1`,title:st[t.title].webTitle},st[t.title].noFollow?{rel:"nofollow"}:{}),{},{children:[(0,b.jsx)(t.icon,{className:"tw-w-5 tw-h-5"}),st[t.title].title]}))})]},`${t.title}-${e}`)))}),(0,b.jsxs)("div",{className:"tw-flex tw-flex-nowrap tw-items-center tw-gap-[6px]",children:[(0,b.jsx)("div",{className:"tw-block",children:(0,b.jsx)(D.Z,{radioBtn:!1})}),H&&_&&(G.last30Days.status===bt.q.Loading||G.last30Days.status===bt.q.Idle||G.streak.status===bt.q.Loading||G.streak.status===bt.q.Idle?(0,b.jsx)(Mt.Z,{width:24,height:24,className:"tw-rounded-xl"}):G.last30Days.status===bt.q.Success&&G.streak.status===bt.q.Success&&((null===(e=G.last30Days.data)||void 0===e||null===(r=e[0])||void 0===r?void 0:r.score)>1||(null===(s=G.streak.data)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.score)>1)&&(0,b.jsxs)("div",{onClick:t=>{t.stopPropagation(),t.preventDefault(),Q(!0)},className:"tw-cursor-pointer tw-bg-transparent tw-border-none tw-items-center tw-justify-center tw-p-2 tw-rounded-xl hover:tw-bg-blue-light-1 tw-transition-all tw-duration-300 tw-flex tw-relative",children:[(0,b.jsx)(at.Z,{className:"tw-text-title tw-h-6 tw-w-6"}),K&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"tw-fixed tw-top-0 tw-right-0 tw-w-screen sm:tw-w-auto sm:tw-absolute sm:tw-top-16 sm:tw-right-0 tw-z-[9999]",children:(0,b.jsx)(qt.Z,{homePage:!0,onClose:t=>{t.stopPropagation(),Q(!1)}})}),(0,b.jsx)("div",{onClick:t=>{t.stopPropagation(),Q(!1)},className:"tw-h-screen tw-w-screen tw-inset-0 max-sm:tw-bg-black/30 tw-fixed tw-cursor-default max-sm:tw-backdrop-blur-sm tw-z-[9998]"})]})]}))]})]})})}),(0,b.jsx)("div",{className:"tw-px-4 md:tw-px-8 xl:tw-px-[120px]",children:(0,b.jsx)("div",{className:"tw-max-w-[var(--container-max)] tw-mx-auto",children:(0,b.jsx)("nav",{className:"tw-flex tw-flex-col",children:(0,b.jsxs)("div",{className:"tw-flex-nowrap tw-items-center tw-justify-between md:tw-gap-6 "+(R?"xl:tw-gap-[120px] xl:tw-flex":"tw-flex xl:tw-gap-12"),children:[(0,b.jsx)(x.Z,{href:"/",children:(0,b.jsxs)("a",{className:(R?"tw-hidden xl:tw-flex":"tw-flex")+" tw-font-text-bold tw-z-10 tw-p-0 tw-py-4 xl:tw-py-3 tw-gap-3 tw-flex tw-items-center hover:tw-no-underline",children:[et,(0,b.jsx)("span",{className:"tw-sr-only",children:p("home")})]})}),R?(0,b.jsx)(Wt,{searchTerm:V,setShowSearchBar:U}):(0,b.jsx)(k,ce(ce({links:st,onLangSelect:wt,showLanguageSelection:n},d),{},{activeURL:lt})),(0,b.jsxs)("div",{className:`tw-flex tw-gap-1 tw-justify-end tw-items-center ${R&&"tw-hidden xl:tw-flex"}`,children:[(0,b.jsx)("button",{type:"button","aria-label":p(R?"close"
1:"search"),"aria-keyshortcuts":R?"Escape":"Control+K Meta+K /","aria-expanded":R,"aria-controls":"global-search",title:`${p(R?"close":"search")} (${R?"Esc":"Ctrl+K"})`,onClick:()=>U(!R),className:"tw-relative tw-cursor-pointer tw-border-0 tw-bg-transparent hover:tw-bg-blue-light-1 tw-z-50 tw-p-3 tw-rounded-2xl tw-transition-all tw-duration-300 tw-ease-in-out tw-flex tw-items-center tw-justify-center",children:R?(0,b.jsx)(nt.Z,{"aria-hidden":"true",focusable:"false",className:"tw-w-6 tw-h-6 tw-text-title",width:24,height:24}):(0,b.jsx)($t.Z,{"aria-hidden":"true",focusable:"false",width:24,height:24,className:"tw-w-6 tw-h-6 tw-text-title"})}),n&&(0,b.jsx)("a",{onClick:wt,className:(tt?"tw-cursor-pointer":" tw-cursor-auto")+" tw-justify-end hover:tw-no-underline",children:(0,b.jsx)("div",{className:"tw-bg-background dark:tw-bg-blue-light-5 tw-rounded-xl tw-p-3 tw-flex tw-items-center tw-justify-center",children:(0,b.jsx)(A.Z,{type:"lazy",src:$,className:"",width:24,height:24,alt:`${M} language`})})}),H?_?(0,b.jsx)("div",{className:""+(R?"tw-hidden md:tw-block":"tw-block"),onClick:()=>I(!0),children:(0,b.jsx)(jt,{})}):(0,b.jsx)(x.Z,{href:st.signin.href,passHref:!0,locale:st.signin.locale,children:(0,b.jsx)("a",{rel:"nofollow",className:(rt?"disabled":"")+" tw-self-start tw-py-2 tw-hidden xl:tw-flex tw-px-6 tw-mr-4 tw-my-auto tw-items-center tw-bg-blue-1 tw-ml-auto md:tw-px-5 tw-font-text-bold tw-rounded-full hover:tw-no-underline tw-text-white hover:tw-text-white hover:tw-bg-purple tw-transition-all tw-duration-300",children:(0,b.jsxs)("span",{className:"tw-whitespace-nowrap tw-text-base tw-items-center tw-flex tw-gap-2 tw-font-text-medium",children:[rt?(0,b.jsx)(kt.Z,{width:16,height:16,style:"tw-mr-2"}):(0,b.jsx)(ot.Z,{className:"tw-text-white",width:24,height:24}),p("sign-in")]})})}):(0,b.jsx)("div",{className:"tw-ml-auto",children:(0,b.jsx)(Mt.Z,{width:70,height:40})}),(0,b.jsxs)("button",{"aria-expanded":W,"aria-controls":"navbar",className:(R?"tw-hidden":"tw-flex")+" tw-z-[12] tw-bg-transparent tw-text-[1.3rem] tw-shadow-none tw-outline-none tw-outline-offset-0 tw-border-none tw-flex xl:tw-hidden tw-items-center",onClick:()=>I(!W),id:"menuButton",children:[(0,b.jsx)("span",{className:"tw-sr-only",children:"Toggle navigation"}),(0,b.jsx)(ee.Z,{className:"tw-text-title tw-w-6 tw-h-6"})]})]})]})})})})]})}),(0,b.jsx)(gt,ce(ce({links:st,show:W,onClose:()=>I(!1),onLangSelect:wt,showLanguageSelection:n},d),{},{activeURL:lt,onShowLeaderboard:()=>{Q(!0),I(!1)}})),W&&(0,b.jsx)("div",{className:"backdrop xl:tw-hidden tw-z-[1030]",onClick:()=>I(!1)}),R&&(0,b.jsx)("div",{"aria-hidden":"true",className:"tw-fixed tw-inset-0 tw-z-[999] tw-bg-black/40 tw-backdrop-blur-[1px] tw-cursor-default",onClick:()=>U(!1)}),K&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"tw-fixed tw-top-0 tw-right-0 sm:tw-right-12 xl:tw-hidden tw-w-screen sm:tw-w-auto sm:tw-absolute sm:tw-top-16 tw-z-[9999]",children:(0,b.jsx)(qt.Z,{homePage:!0,onClose:t=>{t.stopPropagation(),Q(!1)}})}),(0,b.jsx)("div",{onClick:t=>{t.stopPropagation(),Q(!1)},className:"xl:tw-hidden tw-h-screen tw-w-screen tw-inset-0 max-sm:tw-bg-black/30 tw-fixed tw-cursor-default max-sm:tw-backdrop-blur-sm tw-z-[9998]"})]}),(0,b.jsx)(vt.Z,{open:T&&n,closeOnDocumentClick:!1,lockScroll:!0,closeOnEscape:!1,children:(0,b.jsx)(It.Z,{disabledLocales:w,onClose:()=>z(!1)})})]})},ue=r(85565),he=r(88465),me=r(44745),xe=r(61857),pe=r(51873),fe=r(27460),ge=r(963),ve=r(24282),be=r.n(ve);var je=t=>{var e;let{disabledLocales:r,metaQueryParams:s,localizedMetaQueryParams:l}=t;const n=(0,N.ZP)().resolve(Z.s),i=(0,a.W)();if(!(n.getAvailableDestinationLocales().length>1))return null;const o=be()(e=(0,w.kt)(n,i,r,!1,s,l)).call(e,((t,e)=>("alternate"==e.rel&&(t[e.lang]=e),t)),{});return(0,b.jsx)("div",{className:"tw-flex tw-overflow-hidden tw-justify-center tw-flex-nowrap tw-py-1 tw-bg-blue-light-1",children:n.supportedLocales.filter((t=>t.sourceLang==n.getSourceLang())).map((t=>(0,b.jsx)("span",{className:"tw-text-nowrap tw-py-1 tw-px-2 tw-text-xs tw-mx-1 tw-rounded-xl",children:"undefined"!=typeof o[t.getLang()]?(0,b.jsx)("a",{className:"tw-cursor-pointer tw-text-gray-40",href:o[t.getLang()].href,hrefLang:o[t.getLang()].hreflang,title:n.getLangLabel(t.destinationLang??t.sourceLang),children:t.getDestinationLabel()}):(0,b.jsx)("span",{className:"tw-text-gray-40 tw-cursor-not-allowed",children:t.getDestinationLabel()})},t.getLang())))})};var ye,ke,Ne=t=>{let{disabledLocales:e,hideLocalizationLinks:r=!1,metaQueryParams:s,localizedMetaQueryParams:l}=t;const n=(0,N.ZP)().resolve(Z.s).getLang(),{t:a}=(0,L.ZP)(),o=(0,yt.f)((t=>{var e;return null===t||void 0===t||null===(e=t.footer)||void 0===e?void 0:e.links})),{0:w,1:c}=(0,i.useState)(null),d=(0,b.jsxs)("div",{className:"tw-border-0 tw-h-full tw-bg-inherit tw-flex tw-flex-col",children:[(0,b.jsxs)("div",{className:"tw-flex tw-gap-3 tw-items-center",children:[(0,b.jsx)("img",{loading:"lazy",src:"/assets/logo/tile310x310.png",alt:"LanGeek",className:"tw-w-8 tw-h-8 sm:tw-w-10 sm:tw-h-10 md:tw-w-12 md:tw-h-12"}),(0,b.jsx)("p",{className:"tw-text-title tw-font-bold tw-m-0",children:"Langeek"})]}),(0,b.jsxs)("div",{className:"tw-py-3 tw-h-full tw-flex tw-flex-col",children:[(0,b.jsx)("div",{className:"tw-text-sub-title tw-font-normal tw-text-base ",children:a("langeek-is-a-language-learning-platform-that-helps-you-learn-easier-faster-and-smarter")}),(0,b.jsx)("ul",{className:"tw-m-0 tw-p-0 tw-list-none tw-mt-3",children:(0,b.jsxs)("li",{className:"tw-mt-4 tw-mb-1 tw-flex tw-items-center",children:[(0,b.jsx)(ie.Z,{className:"tw-w-6 tw-h-6 tw-text-title"}),(0,b.jsx)("a",{href:"mailto:[email protected]",rel:"nofollow",className:"md:tw-mr-2 tw-mr-4 tw-ml-2 tw-text-title tw-font-text-medium tw-text-base hover:!tw-text-purple tw-duration-300 tw-transition-colors",children:"[email protected]"})]})})]})]}),u=(0,b.jsxs)("ul",{className:("quick-access"===w?"tw-max-h-[40rem]":"tw-max-h-0")+" md:!tw-max-h-max tw-m-0 tw-p-0 tw-list-none tw-flex tw-flex-col tw-gap-4 tw-overflow-hidden tw-transition-all tw-duration-700",children:[(0,b.jsx)("li",{children:(0,b.jsx)(x.Z,{href:"/",children:(0,b.jsx)("a",{title:a("home"),className:"tw-inline-block tw-w-full tw-truncate tw-text-title hover:!tw-text-purple tw-transition-colors tw-duration-300 tw-text-sm tw-font-normal",children:a("home")})})}),(0,b.jsx)("li",{children:(0,b.jsx)(x.Z,{href:"/about",passHref:!0,hasLocale:!0,locale:n,children:(0,b.jsx)("a",{title:a("about-us"),className:" tw-inline-block tw-w-full tw-truncate tw-text-title hover:!tw-text-purple tw-transition-colors tw-duration-300 tw-text-sm tw-font-normal ",children:a("about-us")})})}),(0,b.jsx)("li",{children:(0,b.jsx)(x.Z,{href:"/contact-us",passHref:!0,hasLocale:!0,locale:n,children:(0,b.jsx)("a",{rel:"nofollow",title:a("contact-us"),className:" tw-inline-block tw-w-full tw-truncate tw-text-title hover:!tw-text-purple tw-transition-colors tw-duration-300 tw-text-sm tw-font-normal ",children:a("contact-us")})})}),(0,b.jsx)("li",{children:(0,b.jsx)("a",{href:"https://community.langeek.co",target:"_blank",rel:"noreferrer",title:a("langeek-community"),className:"tw-inline-block tw-cursor-pointer tw-w-full tw-truncate tw-text-title hover:!tw-text-purple tw-transition-colors tw-duration-300 tw-text-sm tw-font-normal",children:a("langeek-community")})}),(0,b.jsx)("li",{children:(0,b.jsx)("a",{href:"https://help.langeek.co",target:"_blank",rel:"noreferrer",className:" tw-inline-block tw-cursor-pointer tw-w-full tw-truncate tw-text-title hover:!tw-text-purple tw-transition-colors tw-duration-300 tw-text-sm tw-font-normal",children:a("help-center")})})]});return(0,b.jsxs)("footer",{className:"hover:[&_a]:tw-no-underline tw-bg-blue-light-4",children:[(0,b.jsx)("div",{className:"tw-w-full old-container md:tw-mx-auto tw-overflow-hidden",children:(0,b.jsxs)("div",{className:"tw-flex tw-flex-col md:tw-grid tw-gri
1d-cols-3 tw-grid-rows-2 xl:tw-grid-cols-7 xl:tw-grid-rows-1 -tw-mx-[15px] tw-gap-x-20 md:tw-gap-y-8 tw-px-4 tw-py-4 md:tw-px-8 md:tw-py-6",children:[(0,b.jsx)("div",{className:"xl:tw-col-span-2",children:d}),(0,b.jsxs)("div",{className:"tw-mt-5 md:tw-mt-0",children:[(0,b.jsxs)("p",{className:"tw-truncate tw-font-text-medium tw-text-blue-1 tw-m-0 tw-text-base tw-hidden md:tw-mb-6 md:tw-block",children:[" ",a("quick-access")]}),(0,b.jsxs)("div",{onClick:()=>c("quick-access"),className:"tw-flex tw-truncate tw-justify-between tw-items-start tw-group tw-cursor-pointer md:tw-hidden",children:[(0,b.jsx)("p",{className:"group-hover:tw-text-purple tw-font-text-medium tw-mb-5 tw-text-blue-1 tw-text-base tw-block ",children:a("quick-access")}),(0,b.jsx)(it.Z,{className:("quick-access"===w?"tw-rotate-180":"")+" tw-text-blue-1 group-hover:tw-text-purple tw-w-6 tw-h-6 tw-transition-all tw-duration-700"})]}),(0,b.jsx)("div",{className:"tw-mb-5",children:u})]}),null===o||void 0===o?void 0:o.map((t=>(0,b.jsxs)("div",{children:[(0,b.jsx)(x.Z,{href:t.url,locale:n,children:(0,b.jsx)("a",{className:"tw-font-text-medium tw-text-blue-1 hover:!tw-text-purple tw-m-0 tw-text-base tw-hidden md:tw-mb-6 md:tw-block",title:a(t.title),children:a(t.title)})}),(0,b.jsxs)("div",{onClick:()=>c(t.url),className:"tw-w-full tw-flex tw-flex-row-reverse tw-justify-between tw-items-start tw-cursor-pointer hover:tw-text-purple md:tw-hidden tw-group",children:[(0,b.jsx)(it.Z,{className:(w===t.url?"tw-rotate-180":"")+" tw-text-blue-1 group-hover:tw-text-purple tw-w-6 tw-h-6 md:tw-hidden tw-transition-all tw-duration-700"}),(0,b.jsx)("p",{className:"tw-font-text-medium tw-text-blue-1 hover:!tw-text-purple tw-mb-5 tw-text-base group-hover:!tw-text-purple",children:a(t.title)})]}),(0,b.jsxs)("ul",{className:(w===t.url?"tw-max-h-[40rem]":"tw-max-h-0")+" md:!tw-max-h-max tw-m-0 tw-p-0 tw-list-none tw-flex tw-flex-col tw-gap-4 tw-overflow-hidden tw-transition-all tw-duration-700 tw-mb-5",children:[t.rows.slice(0,4).map((t=>(0,b.jsx)("li",{children:(0,b.jsx)(x.Z,{href:t.url,locale:n,children:(0,b.jsx)("a",{title:a(t.title),className:" tw-inline-block tw-truncate tw-w-full tw-text-title hover:!tw-text-purple tw-transition-colors tw-duration-300 tw-text-sm tw-font-normal",children:a(t.title)})})},t.url))),(0,b.jsx)("li",{children:(0,b.jsx)(x.Z,{href:t.url,locale:n,children:(0,b.jsx)("a",{title:t.title,className:" tw-inline-block tw-truncate tw-w-full tw-text-title hover:!tw-text-purple tw-transition-colors tw-duration-300 tw-text-sm tw-font-normal",children:(0,b.jsxs)("span",{children:[a("see-more")," ..."]})})})})]})]},t.title)))]})}),(0,b.jsxs)("div",{className:"tw-bg-[#0E4AA4] tw-w-full md:tw-mt-6 tw-mt-4",children:[!r&&(0,b.jsx)(je,{disabledLocales:e,metaQueryParams:s,localizedMetaQueryParams:l}),(0,b.jsxs)(he.Z,{className:"tw-bg-inherit tw-w-full lg:tw-w-full md:tw-gap-4 tw-py-6 tw-text-center tw-flex tw-flex-col md:tw-flex-row tw-justify-between tw-mx-auto",children:[(0,b.jsx)("div",{className:"tw-order-2 md:tw-order-1",children:(0,b.jsxs)("small",{className:"tw-block tw-text-white tw-font-normal tw-text-xs",children:["Copyright \xa9 2020 Langeek Inc.",(0,b.jsx)("span",{className:"tw-hidden md:tw-inline",children:" | "}),(0,b.jsx)("br",{className:"md:tw-hidden"}),"All Rights Reserved.",(0,b.jsx)("span",{className:"tw-hidden md:tw-inline",children:" | "}),(0,b.jsx)("br",{className:"md:tw-hidden"}),(0,b.jsx)(x.Z,{hasLocale:!1,href:"/en/privacy-policy",passHref:!0,children:(0,b.jsxs)("a",{title:"Privacy Policy",className:"tw-text-white tw-underline hover:!tw-underline",children:[" ",a("privacy-policy")]})}),(0,b.jsx)("span",{className:"tw-inline",children:" | "}),(0,b.jsx)(x.Z,{hasLocale:!1,href:"/en/terms-of-service",passHref:!0,children:(0,b.jsxs)("a",{title:"Terms Of Service",className:"tw-text-white tw-underline hover:!tw-underline",children:[" ",a("terms-of-service")]})})]})}),(0,b.jsxs)("div",{className:"tw-flex tw-justify-center tw-text-center tw-order-1 md:tw-order-2 tw-mb-4 md:tw-mb-0 tw-gap-5",children:[(0,b.jsxs)("a",{className:"tw-cursor-pointer",href:"https://www.instagram.com/langeek.co",target:"_blank",rel:"noreferrer",children:[(0,b.jsx)(pe.Z,{className:"tw-w-6 tw-h-6"}),(0,b.jsx)("span",{className:"tw-sr-only",children:"Instagram"})]}),(0,b.jsxs)("a",{className:"tw-cursor-pointer",href:"https://x.com/langeek_co",target:"_blank",rel:"noreferrer",children:[(0,b.jsx)(ge.Z,{className:"tw-w-6 tw-h-6"}),(0,b.jsx)("span",{className:"tw-sr-only",children:"X"})]}),(0,b.jsxs)("a",{className:"tw-cursor-pointer",href:"https://www.linkedin.com/company/langeek",target:"_blank",rel:"noreferrer",children:[(0,b.jsx)(me.Z,{className:"tw-w-6 tw-h-6"}),(0,b.jsx)("span",{className:"tw-sr-only",children:"LinkedIn"})]}),(0,b.jsxs)("a",{className:"tw-cursor-pointer",href:"https://www.facebook.com/langeek.co/",target:"_blank",rel:"noreferrer",children:[(0,b.jsx)(fe.Z,{className:"tw-w-6 tw-h-6"}),(0,b.jsx)("span",{className:"tw-sr-only",children:"Facebook"})]}),(0,b.jsxs)("a",{href:"https://t.me/langeek",target:"_blank",rel:"noreferrer",children:[(0,b.jsx)(xe.Z,{className:"tw-w-6 tw-h-6"}),(0,b.jsx)("span",{className:"tw-sr-only",children:"Telegram"})]})]})]})]})]})},Ze=r(27429),Le=r(9429),Oe=r(59359),Ee=r(48975),Pe=r(55627);function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ce.apply(null,arguments)}var Se=t=>i.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),ye||(ye=i.createElement("g",{clipPath:"url(#google_play_svg__a)"},i.createElement("path",{fill:"#EA4335",d:"m11.82 11.52-9.24 9.66a2.52 2.52 0 0 0 2.4 1.8q.72 0 1.26-.36l10.44-5.94z"}),i.createElement("path",{fill:"#FBBC04",d:"m21.18 9.84-4.5-2.58-5.04 4.44 5.1 4.98 4.5-2.52c.78-.42 1.32-1.26 1.32-2.16-.06-.9-.6-1.74-1.38-2.16"}),i.createElement("path",{fill:"#4285F4",d:"M2.58 2.82c-.06.18-.06.42-.06.66v17.1c0 .24 0 .42.06.66l9.6-9.42z"}),i.createElement("path",{fill:"#34A853",d:"m11.88 12 4.8-4.74L6.3 1.38c-.36-.24-.84-.36-1.32-.36-1.14 0-2.16.78-2.4 1.8z"}))),ke||(ke=i.createElement("defs",null,i.createElement("clipPath",{id:"google_play_svg__a"},i.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"}))))),Me=r(41387);var Ae=t=>{const{t:e}=(0,L.ZP)(),{isUserFromIran:r}=(0,Ht.Z)(),s=(0,N.ZP)().resolve(Z.s).getLang(),l=!(0,o.BA)((t=>t.adsense.anchor.bottom)),n=(0,o.BA)((t=>{var e;return null===(e=t.mobileVersion.data)||void 0===e?void 0:e.hasMobileVersion}));return t.open?n?null:(0,b.jsx)(x.Z,{hasLocale:!0,locale:s,href:r?"https://help.langeek.co/fa/langeek-mobile-app-farsi":"/mobile-app",children:Oe.tq?(0,b.jsxs)("div",{className:`${l?"tw-sticky":null} tw-flex tw-text-start tw-px-4 xs:tw-px-8 tw-z-[200] tw-w-full tw-bottom-0 tw-right-0 tw-py-3 tw-bg-blue-light-2 tw-justify-between tw-items-center`,children:[(0,b.jsxs)("div",{className:" tw-text-sub-title ",children:[(0,b.jsxs)("div",{className:"tw-font-text-bold tw-text-xs sm:tw-text-sm ",children:[(0,b.jsx)("img",{width:20,height:20,src:"/assets/logo/langeek-mono-small.png",className:" tw-w-5 tw-mr-2",alt:"LanGeek"}),e("download-langeek-app")]}),(0,b.jsxs)("div",{className:"tw-flex tw-items-center tw-mt-2",children:[Array.from(Array(5)).map(((t,e)=>(0,b.jsx)(Me.Z,{width:12,height:12,className:"tw-w-3 tw-h-3 "},e))),(0,b.jsx)("span",{className:"tw-ml-1.5 tw-text-[11px] ",children:"4.5"})]})]}),(0,b.jsx)("button",{className:"tw-border-[1.5px] tw-flex tw-bg-transparent tw-font-text-semibold tw-self-end tw-border-primary tw-border-solid !tw-text-primary tw-opacity-100 tw-bg-background tw-rounded-3xl tw-text-xs sm:tw-text-sm tw-px-2 sm:tw-px-4 tw-py-2 tw-justify-center tw-items-center ",children:Oe.gn?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Pe.Z,{className:"tw-w-4 tw-h-4 tw-text-blue-1",width:16,height:16}),(0,b.jsx)("span",{children:e("app-store")})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Se,{className:"tw-w-4 tw-h-4",width:16,height:16}),(0,b.jsx)("span",{children:e("google-play-store")})]})})]}):(0,b.jsx)("a",{className:`${l?"tw-sticky":null} hover:tw-no-underline tw-bottom-0 tw-z-[998] tw-bg-blue-light-2 tw-hidden sm:tw-flex tw-w-full tw-py-3 tw-px-6 tw-text-white tw-font-text-regular`,children:(0,b.jsxs)("div",{className:"tw-justify-between tw-items-center tw-flex tw-w-full old-container",children:[(0,b.jsxs)("div",{className:"tw-flex",children:[(0,b.jsx)("img",{src:"/assets/logo/langeek-mono-small.png",width:24,height:24,className:" tw-w-6 tw-h-6 tw-mr-2",alt:"LanGeek"}),(0,b.jsx)("div",{className:"tw-text-sub-title",children:e("download-langeek-app")})]}),(0,b.jsxs)("button",{className:"tw-px-8 tw-py-2 tw-bg-transparent tw-border-[1.5px] tw-border-solid tw-border-primary tw-rounded-3xl tw-text-primary hover:tw-bg-primary tw-cursor-pointer tw-group hover:tw-text-white tw-text-base tw-transition-all tw-duration-300",children:[(0,b.jsx)(Ee.Z,{width:20,height:20,className:"tw-mr-2 group-hover:tw-text-white tw-transition-all tw-duration-300 tw-text-blue-1"}),e("download")]})]})})}):null},De=r(2260);function $e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function Be(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$e(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _e=t=>{let{siteTitle:e,siteDescription:r,destinationLocale:s,breadcrumbsMeta:l,image:a,webPage:i,itemList:o,article:w,socialMedia:c}=t;const d="https://langeek.co",u={"@context":"https://schema.org","@graph":[]};return u["@graph"].push({"@type":"Organization","@id":`${d}/#organization`,name:e,url:`${d}/`,sameAs:c||[],logo:{"@type":"ImageObject","@id":`${d}/#logo`,url:`${d}/assets/logo/pwa-192x192.png`,contentUrl:`${d}/assets/logo/pwa-192x192.png`,caption:e,inLanguage:s,width:192,height:192},description:r}),u["@graph"].push({"@type":"WebSite","@id":`${d}/#website`,url:`${d}/`,name:e,publisher:{"@id":`${d}/#organization`},potentialAction:{"@type":"SearchAction",target:`${d}/?search={search_term_string}`,"query-input":"required name=search_term_string"},inLanguage:s}),l&&u["@graph"].push(l),a&&u["@graph"].push({"@type":"ImageObject","@id":a.url,url:a.url,width:a.width,height:a.height,caption:a.caption,inLanguage:s}),i&&u["@graph"].push(Be(Be(Be({"@type":i.type??"WebPage","@id":`${d+i.url}#webpage`,url:`${d+i.url}`,name:i.name,datePublished:i.datePublished,dateModified:i.dateModified,isPartOf:{"@id":`${d}/#website`}},a?{primaryImageOfPage:{"@id":a.url}}:{}),o?{mainEntity:{"@id":`${d+i.url}#itemlist`}}:{}),{},{inLanguage:s})),o&&i&&u["@graph"].push(Be(Be({"@type":"ItemList","@id":`${d+i.url}#itemlist`},o.name?{name:o.name}:{}),{},{numberOfItems:o.items.length,itemListElement:o.items.map(((t,e)=>({"@type":"ListItem",position:e+1,name:t.name,url:`${d+t.url}`})))})),w&&i&&u["@graph"].push(Be(Be({"@type":"Article",headline:null===w||void 0===w?void 0:w.headline,keywords:null===w||void 0===w?void 0:w.keywords,datePublished:null===w||void 0===w?void 0:w.dateModified,dateModified:null===w||void 0===w?void 0:w.dateModified,articleSection:null===w||void 0===w?void 0:w.articleSection,publisher:{"@id":`${d}/#organization`},description:null===w||void 0===w?void 0:w.description,"@id":`${d+i.url}#richSnippet`,isPartOf:{"@id":`${d+i.url}#webpage`}},a?{image:{"@id":a.url}}:{}),{},{inLanguage:s,mainEntityOfPage:{"@id":`${d+i.url}#webpage`}})),(0,b.jsx)(n(),{children:(0,b.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(u)}})})},Fe=r(64487);function Te(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function ze(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}U()((()=>r.e(324).then(r.bind(r,10324))),{loadableGenerated:{webpack:()=>[10324]}});const We=U()((()=>r.e(2055).then(r.bind(r,72055))),{loadableGenerated:{webpack:()=>[72055]}}),Ie=U()((()=>Promise.all([r.e(551),r.e(4811),r.e(3035),r.e(4520),r.e(1129),r.e(9325),r.e(2144),r.e(3484)]).then(r.bind(r,28823))),{loadableGenerated:{webpack:()=>[28823]}}),He=U()((()=>r.e(3809).then(r.bind(r,43809))),{loadableGenerated:{webpack:()=>[43809]}}),qe=U()((()=>r.e(629).then(r.bind(r,70629))),{loadableGenerated:{webpack:()=>[70629]}}),Ve=U()((()=>r.e(3333).then(r.bind(r,63333))),{loadableGenerated:{webpack:()=>[63333]}});var Re=t=>{let{layoutClassName:e,contentClassName:r,webTitle:s,title:l,metaDescription:c,hideNavbar:d,subTitle:u,breadcrumb:h,showTitle:m,hideFooter:x,navbar:p={},downloadAppAlert:f=!0,image:g,authorizedRequired:v=!1,googleOneTap:j=!0,description:y,children:k,direction:O="ltr",disabledLocales:E,noMetaTags:P=!1,onlyEnglishMetadata:C=!1,metaQueryParams:S,localizedMetaQueryParams:M,googleMetadata:D}=t;const $=(0,a.W)(),{t:B}=(0,L.ZP)(),_=(0,o.BA)((t=>t.auth.user)),F=(0,N.ZP)(),T=F.resolve(De.Z),z=F.resolve(Z.s),{0:W,1:I}=(0,i.useState)(!1),H=(0,o.TL)((t=>t.todayStats)),q={syncStatus:(0,o.BA)((t=>{var e,r;return null===(e=t.persisted)||void 0===e||null===(r=e.syncState)||void 0===r?void 0:r.status})),syncError:(0,o.BA)((t=>t.sync.error)),loading:(0,o.BA)((t=>t.sync.loading)),synchronizedAt:(0,o.BA)((t=>{var e;return null===(e=t.persisted.syncState)||void 0===e?void 0:e.synchronizedAt}))}
1,V=z.getDestinationLang()??z.getLang(),R=ze({siteTitle:"LanGeek",siteDescription:B("langeek-is-a-language-learning-platform-that-helps-you-learn-easier-faster-and-smarter"),destinationLocale:"fil"==V?"tl":V,breadcrumbsMeta:h?(0,ue.Np)(h,!1,B):null,socialMedia:["https://www.facebook.com/langeek.co/","https://x.com/langeek_co","https://www.linkedin.com/company/langeek","https://www.instagram.com/langeek.co","https://t.me/langeek","https://www.youtube.com/@langeek-co","https://www.tiktok.com/@langeek.co"]},D??{});return(0,i.useEffect)((()=>{const t=()=>{document.querySelectorAll('head link[id^="canonical"], head link[id^="alternate"]').forEach((t=>{var e;return null===(e=t.parentNode)||void 0===e?void 0:e.removeChild(t)}))};return $.events.on("routeChangeStart",t),()=>{$.events.off("routeChangeStart",t)}}),[$.events]),(0,i.useEffect)((()=>{_?(window.localStorage.setItem("crashlytics-data",JSON.stringify({userId:_.id})),(0,Fe.av)({id:_.id})):(0,Fe.av)(null)}),[_]),(0,i.useEffect)((()=>{v&&!_&&$.push("/en/sign-in"),T.checkHasCookieAccess()&&(0,w.x_)()||I(!0)}),[]),(0,b.jsx)("div",{dir:O,children:(0,b.jsxs)(Le.Z,{classes:`${e??""} tw-flex tw-flex-col tw-min-h-[100vh] tw-bg-background`,children:[P?null:(0,b.jsx)(n(),{children:(0,w.kt)(z,$,E,C,S,M).map((t=>(0,b.jsx)("link",{rel:t.rel,href:t.href,hrefLang:t.hreflang,id:t.key},t.key)))}),(0,b.jsx)(qe,{}),null,!1!==D?(0,b.jsx)(_e,ze({},R)):null,(0,b.jsx)(We,{user:_,todayStats:H}),(0,b.jsx)(He,ze({user:_},q)),(0,b.jsx)(Ze.Z,{lang:z.getLangObject(),title:l,desc:c,route:$.asPath,image:g}),d?null:(0,b.jsx)(de,ze({disabledLocales:E},p)),m?(0,b.jsxs)("div",{className:"md:tw-pt-12 tw-pt-6 md:tw-mt-0 tw-mt-2 md:tw-pb-6 tw-pb-4 tw-mb-2 tw-px-12 tw-text-center tw-flex tw-flex-col tw-gap-3 md:tw-gap-4 tw-justify-center tw-items-center",children:[(0,b.jsx)("h1",{className:"tw-text-title tw-font-text-bold tw-text-lg sm:tw-text-2xl lg:tw-text-[40px]",children:s||l}),(0,b.jsx)(A.Z,{width:269,height:18,className:"tw-w-[269px] !tw-h-auto sm:!tw-w-[355px] lg:tw-w-[400px]",src:"/assets/svgs/line.svg",alt:"line"}),(0,b.jsx)("h2",{className:"tw-text-sub-title tw-text-sm sm:tw-text-base lg:tw-text-lg tw-font-text-regular",children:u}),y?(0,b.jsx)("h5",{className:"tw-text-sub-title tw-font-text-medium tw-mt-7",children:y}):null,null==h?null:(0,b.jsx)("div",{className:'after:tw-my-0 after:tw-flex-grow-[.5] after:tw-flex-shrink-0 after:tw-basis-5 after:tw-mx-[20px] after:tw-content-[""] after:tw-border-t after:tw-border-solid after:tw-border-x-0 after:tw-border-b-0 after:tw-border-[#ced4da] after:tw-max-w-[10%] tw-font-inter before:tw-my-0 before:tw-flex-grow-[.5] before:tw-flex-shrink-0 before:tw-basis-5 before:tw-mx-[20px] before:tw-content-[""] before:tw-border-t before:tw-border-solid before:tw-border-x-0 before:tw-border-b-0 before:tw-border-[#ced4da] before:tw-max-w-[10%] tw-text-[#6a778db9] tw-leading[.15px] tw-z-[2] tw-flex tw-w-full tw-justify-center tw-items-center tw-text-center tw-font-semibold tw-text-[.8rem] sm:tw-text-[.9rem] -tw-mt-2 tw-pt-6 md:tw-flex',children:(0,b.jsx)(ue.ZP,{breadcrumbs:h})})]}):null,(0,b.jsxs)("main",{className:`${r??""} tw-flex-grow`,children:[v&&!_?null:k,(0,b.jsx)(Ve,{show:W,setShow:I}),(0,b.jsx)(Ae,{open:f})]}),!_&&j?(0,b.jsx)(Ie,{googleOneTap:j,authPage:!1}):null,x?null:(0,b.jsx)("div",{children:(0,b.jsx)(Ne,{disabledLocales:E,hideLocalizationLinks:C,metaQueryParams:S,localizedMetaQueryParams:M})})]})})}},67843:function(t,e,r){"use strict";r.d(e,{Z:function(){return F}});var s=r(58118),l=r.n(s),n=(r(28660),r(27325)),a=r(4378),i=r(67294),o=r(62048),w=r(85893);var c=t=>{let{homePage:e,enableAnimation:r}=t;const{t:s}=(0,n.ZP)();return(0,w.jsxs)("div",{className:"tw-flex tw-flex-col xl:tw-w-full tw-bg-item-background tw-rounded-3xl "+(e?"tw-shadow-1 sm:tw-rounded-t-3xl sm:!tw-w-96":""),children:[(0,w.jsxs)("div",{className:"tw-bg-item-background tw-px-6 tw-py-4 tw-rounded-t-3xl tw-flex tw-items-center tw-gap-1.5",children:[(0,w.jsx)(a.Z,{className:"tw-text-title tw-w-6 tw-h-6"}),(0,w.jsx)("h3",{className:"tw-m-0 tw-font-text-bold tw-text-title tw-text-base md:tw-text-lg",children:s("leaderboard")})]}),(0,w.jsxs)("div",{className:"tw-flex tw-flex-col",children:[(0,w.jsxs)("div",{className:"tw-bg-blue-light-3 tw-pt-16 tw-flex tw-items-end",children:[(0,w.jsx)("div",{className:"tw-w-full",children:(0,w.jsx)(o.Z,{enableAnimation:r,className:"tw-h-32 tw-w-full tw-rounded-t-3xl tw-min-w-20"})}),(0,w.jsx)("div",{className:"tw-w-full",children:(0,w.jsx)(o.Z,{enableAnimation:r,className:"tw-h-40 tw-w-full tw-rounded-t-3xl tw-min-w-20"})}),(0,w.jsx)("div",{className:"tw-w-full",children:(0,w.jsx)(o.Z,{enableAnimation:r,className:"tw-h-32 tw-w-full tw-rounded-t-3xl tw-min-w-20"})})]}),(0,w.jsx)("div",{children:Array.from(Array(4)).map(((t,e)=>(0,w.jsx)(o.Z,{enableAnimation:r,className:"tw-h-16"},e)))})]}),(0,w.jsx)("div",{className:"tw-rounded-b-3xl tw-overflow-hidden",children:(0,w.jsx)(o.Z,{enableAnimation:r,className:"tw-h-20"})})]})},d=r(39520),u=r(10871);const h={1:"tw-w-16 tw-h-16",2:"tw-w-12 tw-h-12",3:"tw-w-12 tw-h-12"},m={1:"orange",2:"purple-1",3:"green"},x={1:"orange-light",2:"blue-light-6",3:"green-light"};var p=t=>{var e,r;let{rank:s,pictureId:l,isTop:n}=t;const{profilePictureList:a}=(0,d.r)();return n?(0,w.jsxs)("div",{className:"tw-absolute tw-left-1/2 tw-top-0 -tw-translate-x-1/2 rtl:tw-translate-x-1/2 -tw-translate-y-1/2 tw-z-10",children:[(0,w.jsx)("div",{className:`tw-bg-${x[s]} tw-rounded-full tw-overflow-hidden tw-border-${m[s]} tw-border-4 tw-border-solid`,style:{border:`4px solid ${m[s]}`},children:(0,w.jsx)(u.Z,{className:h[s],src:(null===(e=a.find((t=>+t.id===+l)))||void 0===e?void 0:e.url)??"/assets/img/user/avatar/1.png",alt:"user"})}),(0,w.jsx)("div",{className:`tw-rounded-full tw-w-6 tw-h-6 tw-text-white tw-flex tw-items-center tw-justify-center tw-absolute tw-bottom-0 tw-left-1/2 -tw-translate-x-1/2 rtl:tw-translate-x-1/2 tw-translate-y-1/2 tw-bg-${m[s]} `,children:s})]}):(0,w.jsx)("div",{className:"tw-w-8 tw-h-8 tw-bg-blue-light-1 tw-rounded-full tw-overflow-hidden",children:(0,w.jsx)(u.Z,{src:(null===(r=a.find((t=>+t.id===+l)))||void 0===r?void 0:r.url)??"/assets/img/user/avatar/1.png",alt:"user avatar",className:"tw-h-full tw-w-full"})})},f=r(57728),g=r(18609),v=r(4031),b=r(26026),j=r(88339),y=r(15482),k=r(67716);var N=t=>{var e,r,s;const l=(0,v.BA)((t=>t.user.stats.filterValue)),{t:a}=(0,n.ZP)(),i=(0,g.kC)(null===(e=t.rank)||void 0===e?void 0:e.score),o=(0,j.W)(),c=(0,y.ZP)().resolve(k.s).getLang(),d=t.briefs.find((e=>{var r;return e.id===(null===(r=t.rank)||void 0===r?void 0:r.userId)}));return(0,w.jsxs)("div",{title:a("visit-profile"),onClick:()=>{var e;return o.push(`/${c}/user/profile?userId=${null===(e=t.rank)||void 0===e?void 0:e.userId}`)},className:(0,f.cn)("tw-bg-blue-light-6 tw-relative tw-h-32 tw-w-full tw-rounded-t-3xl tw-flex tw-items-center tw-justify-center tw-cursor-pointer",t.containerClasses),children:[(0,w.jsx)(p,{isTop:!0,pictureId:null===d||void 0===d?void 0:d.profilePictureId,rank:null===(r=t.rank)||void 0===r?void 0:r.rank}),(0,w.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-text-center tw-pt-4 tw-px-2",children:[(0,w.jsx)("span",{dir:"ltr",className:(0,f.cn)("tw-font-text-bold tw-text-title tw-text-sm md:tw-text-xs tw-block tw-max-w-20 sm:tw-max-w-28 tw-truncate"),children:null===d||void 0===d?void 0:d.displayName}),(0,w.jsx)("span",{className:(0,f.cn)("tw-font-text-medium tw-text-sub-title tw-text-xs lg:tw-text-sm tw-line-clamp-2"),children:l===b.m.CurrentStreak?(null===(s=t.rank)||void 0===s?void 0:s.score)+" "+a("d"):i.hours+" "+a("h")+" "+i.minutes+" "+a("m")})]})]})},Z=r(71376),L=r(61319),O=r(84459);var E=t=>{var e,r,s;let{homePage:a}=t;const{t:i}=(0,n.ZP)(),o=(0,y.ZP)().resolve(k.s).getLang(),c=(0,v.BA)((t=>t.user.stats.filterValue)),{user:h}=(0,v.BA)((t=>t.user.stats.leaderboard)),m=(0,v.BA)((t=>t.auth.user)),{error:x,loading:p,profilePictureList:f}=(0,d.r)(),j=l()(e=[L.q.Loading,L.q.Idle]).call(e,c===b.m.Last30Days?h.last30Days.status:h.streak.status),N=l()(r=[L.q.Failure,L.q.Inconsistent]).call(r,c===b.m.Last30Days?h.last30Days.status:h.streak.status);if(j)return(0,w.jsxs)("div",{className:"tw-bg-blue-2 tw-px-6 tw-py-4 tw-rounded-b-3xl tw-flex tw-items-center tw-justify-between tw-gap-4",children:[(0,w.jsx)("span",{className:"tw-text-white tw-font-text-medium tw-text-sm tw-block tw-truncate",children:i("my-rank")}),a?(0,w.jsx)(Z.Z,{passHref:!0,hasLocale:!0,locale:o,href:"/dashboard/my-stats",children:(0,w.jsxs)("a",{className:"tw-px-6 tw-py-3 tw-rounded-3xl tw-bg-gray-94 tw-text-title tw-flex tw-items-center tw-gap-2",children:[(0,w.jsx)(O.Z,{className:"tw-w-6 tw-h-6 tw-text-title"}),(0,w.jsx)("span",{className:"tw-font-text-medium",children:i("stats")})]})}):(0,w.jsx)("span",{className:"tw-text-white tw-font-text-medium tw-text-sm"})]});if(N)return null;const E=c===b.m.CurrentStreak?h.streak.data.find((t=>t.userId===m.id)):h.last30Days.data.find((t=>t.userId===m.id));return(0,w.jsxs)("div",{className:"tw-bg-blue-2 tw-px-6 tw-py-4 tw-rounded-b-3xl tw-flex tw-items-center tw-justify-between tw-gap-4",children:[(0,w.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-1.5",children:[(0,w.jsx)("div",{className:"tw-w-8 tw-h-8 tw-bg-blue-light-6 tw-rounded-full tw-overflow-hidden",children:(0,w.jsx)(u.Z,{src:x||p?"/assets/img/user/avatar/31.png":null===(s=f.find((t=>+t.id===+m.profilePictureId)))||void 0===s?void 0:s.url,alt:"my profile",className:"tw-w-full tw-h-full"})}),(0,w.jsxs)("div",{className:"tw-gap-1 tw-flex tw-items-center",children:[(0,w.jsx)("span",{className:"tw-text-white tw-font-text-medium tw-text-sm tw-block tw-truncate",children:i("my-rank")}),(0,w.jsx)("span",{className:"tw-text-white tw-font-text-bold tw-text-base",children:(null===E||void 0===E?void 0:E.rank)??1/0})]})]}),(0,w.jsx)("div",{children:a?(0,w.jsx)(Z.Z,{passHref:!0,hasLocale:!0,locale:o,href:"/dashboard/my-stats",children:(0,w.jsxs)("a",{className:"tw-px-6 tw-py-3 tw-rounded-3xl tw-bg-gray-94 tw-text-title tw-flex tw-items-center tw-gap-2",children:[(0,w.jsx)(O.Z,{className:"tw-w-6 tw-h-6 tw-text-title"}),(0,w.jsx)("span",{className:"tw-font-text-medium",children:i("stats")})]})}):(0,w.jsx)("span",{className:"tw-text-white tw-font-text-medium tw-text-sm tw-block tw-truncate",children:c===b.m.CurrentStreak?`${(null===E||void 0===E?void 0:E.score)??0} ${i("d")}`:`${(0,g.kC)((null===E||void 0===E?void 0:E.score)??0).hours} ${i("h")} ${(0,g.kC)((null===E||void 0===E?void 0:E.score)??0).minutes} ${i("m")}`})})]})};var P=t=>{let{ranks:e,briefs:r}=t;const s=(0,v.BA)((t=>t.user.stats.filterValue)),{t:l}=(0,n.ZP)(),a=(0,j.W)(),i=(0,y.ZP)().resolve(k.s).getLang();return(0,w.jsx)("div",{className:"tw-cursor-default",children:e.map((t=>{var e,n;return(0,w.jsxs)("div",{title:l("visit-profile"),onClick:()=>a.push(`/${i}/user/profile?userId=${null===t||void 0===t?void 0:t.userId}`),className:"tw-flex tw-items-center tw-justify-between tw-px-6 tw-py-4 odd:tw-bg-item-background even:tw-bg-blue-light-3 tw-cursor-pointer",children:[(0,w.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-4",children:[(0,w.jsx)("div",{children:(0,w.jsx)("span",{className:"tw-font-text-bold tw-text-base tw-text-gray-40",children:t.rank})}),(0,w.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-2",children:[(0,w.jsx)(p,{isTop:!1,pictureId:null===(e=r.find((e=>
1e.id===t.userId)))||void 0===e?void 0:e.profilePictureId,rank:t.rank}),(0,w.jsx)("div",{children:(0,w.jsx)("span",{dir:"ltr",className:"tw-text-title tw-font-text-medium tw-text-sm sm:tw-text-base tw-block tw-max-w-28 tw-truncate",children:(null===(n=r.find((e=>e.id===t.userId)))||void 0===n?void 0:n.displayName)??"user"})})]})]}),(0,w.jsx)("div",{children:(0,w.jsx)("span",{className:"tw-text-sub-title tw-font-text-medium tw-text-xs sm:tw-text-sm tw-block tw-truncate",children:s===b.m.CurrentStreak?t.score+" "+l("d"):(0,g.kC)(t.score).hours+" "+l("h")+" "+(0,g.kC)(t.score).minutes+" "+l("m")})})]},t.userId)}))})},C=r(49595),S=r(5152),M=r.n(S);const A=M()((()=>Promise.resolve().then(r.bind(r,30719)).then((t=>t.SwiperSlide))),{loadableGenerated:{webpack:()=>[30719]}}),D=M()((()=>r.e(4780).then(r.bind(r,84780))),{loadableGenerated:{webpack:()=>[84780]}});var $=t=>{var e,r,s,l;let{changeFilterValue:a}=t;const i=(0,v.BA)((t=>t.user.stats.filterValue)),{t:o}=(0,n.ZP)(),{general:c}=(0,v.BA)((t=>t.user.stats.leaderboard));return(0,w.jsxs)(D,{className:"!tw-mb-0 tw-flex tw-items-center tw-justify-between tw-bg-item-background !tw-px-4",children:[(null===(e=c.last30Days.data)||void 0===e||null===(r=e[0])||void 0===r?void 0:r.score)>1?(0,w.jsx)(A,{onClick:()=>a(b.m.Last30Days),className:"tw-text-center tw-truncate tw-block tw-relative tw-cursor-pointer !tw-w-auto tw-basis-1/2 !tw-opacity-100 tw-px-4 tw-pb-[14.5px] !tw-transform-none "+(i===b.m.Last30Days?"tw-border-0 tw-border-b-2 tw-border-b-blue-1 tw-border-solid tw-text-blue-1 tw-font-bold":"tw-border-0 tw-border-b-2 tw-border-b-blue-light-1 tw-border-solid"),children:o("last-30-days-usage")}):null,(null===(s=c.streak.data)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.score)>1?(0,w.jsx)(A,{onClick:()=>a(b.m.CurrentStreak),className:"tw-text-center tw-truncate tw-block tw-relative tw-cursor-pointer !tw-w-auto tw-basis-1/2 !tw-opacity-100 tw-px-4 tw-pb-[14.5px] !tw-transform-none "+(i===b.m.CurrentStreak?"tw-border-0 tw-border-b-2 tw-border-b-blue-1 tw-border-solid tw-text-blue-1 tw-font-bold":"tw-border-0 tw-border-b-2 tw-border-b-blue-light-1 tw-border-solid"),children:o("streak")}):null]})},B=r(25617),_=r(85634);var F=t=>{var e,r,s;let{homePage:o,onClose:u,className:h}=t;const{t:m}=(0,n.ZP)(),x=(0,v.BA)((t=>t.user.stats.filterValue)),{general:p}=(0,v.BA)((t=>t.user.stats.leaderboard)),f=(0,B.I0)(),g=t=>{f(_.q.setFilterValue(t))};(0,i.useEffect)((()=>{var t,e;x===b.m.Last30Days&&p.last30Days.status===L.q.Success&&((null===(t=p.last30Days.data)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.score)<=1&&g(b.m.CurrentStreak))}),[p.last30Days.status]);const j=l()(e=[L.q.Loading,L.q.Idle]).call(e,x===b.m.Last30Days?p.last30Days.status:p.streak.status),y=l()(r=[L.q.Failure,L.q.Inconsistent]).call(r,x===b.m.Last30Days?p.last30Days.status:p.streak.status);if(j)return(0,w.jsx)(c,{enableAnimation:!0,homePage:o});if(y)return(0,w.jsx)(c,{enableAnimation:!1,homePage:o});const k=x===b.m.CurrentStreak?p.streak.data.slice(0,3):p.last30Days.data.slice(0,3),Z=x===b.m.CurrentStreak?p.streak.userBriefs:p.last30Days.userBriefs,O=x===b.m.CurrentStreak?p.streak.data.slice(3,7):p.last30Days.data.slice(3,7);return(null===k||void 0===k||null===(s=k[0])||void 0===s?void 0:s.score)<=1?null:(0,w.jsx)(d.N,{children:(0,w.jsxs)("div",{className:`tw-flex tw-flex-col xl:tw-w-full ${o?"tw-shadow-1 sm:tw-rounded-t-3xl sm:!tw-w-96":""} ${h}`,children:[(0,w.jsxs)("div",{className:"tw-flex tw-justify-between tw-items-center tw-bg-item-background tw-px-6 tw-py-4 tw-rounded-t-3xl ",children:[(0,w.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-1.5",children:[(0,w.jsx)(a.Z,{className:"tw-text-title tw-w-6 tw-h-6"}),(0,w.jsx)("h3",{className:"tw-m-0 tw-font-text-bold tw-text-title tw-text-base md:tw-text-lg",children:m("leaderboard")})]}),o?(0,w.jsx)("div",{onClick:t=>u(t),children:(0,w.jsx)(C.Z,{className:"tw-text-title tw-w-6 tw-h-6"})}):null]}),(0,w.jsx)($,{changeFilterValue:g}),(0,w.jsxs)("div",{className:"tw-flex tw-flex-col",children:[(0,w.jsxs)("div",{className:"tw-cursor-auto tw-bg-blue-light-3 tw-flex tw-items-end tw-pt-16",children:[(0,w.jsx)(N,{briefs:Z,rank:null===k||void 0===k?void 0:k[1]}),(0,w.jsx)(N,{briefs:Z,rank:null===k||void 0===k?void 0:k[0],containerClasses:"!tw-h-40 !tw-bg-orange-light"}),(0,w.jsx)(N,{briefs:Z,rank:null===k||void 0===k?void 0:k[2]})]}),(0,w.jsx)(P,{briefs:Z,ranks:O})]}),(0,w.jsx)(E,{homePage:o})]})})}},56637:function(t,e,r){"use strict";r(28660);var s=r(4031),l=r(85634),n=r(61319),a=r(26026),i=r(67294),o=r(25617);e.Z=()=>{const{general:t,user:e}=(0,s.BA)((t=>t.user.stats.leaderboard)),r=(0,o.I0)();(0,i.useEffect)((()=>{t.last30Days.status===n.q.Success&&e.last30Days.status===n.q.Success||(r(l.q.loadLeaderboard(a.m.Last30Days,"general")),r(l.q.loadLeaderboard(a.m.Last30Days,"user"))),t.streak.status===n.q.Success&&e.streak.status===n.q.Success||(r(l.q.loadLeaderboard(a.m.CurrentStreak,"general")),r(l.q.loadLeaderboard(a.m.CurrentStreak,"user")))}),[])}},39520:function(t,e,r){"use strict";r.d(e,{N:function(){return c},r:function(){return d}});r(28660);var s=r(67294),l=r(56200),n=r(15482),a=r(61319);var i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=(0,n.ZP)(),{0:r,1:i}
1=(0,s.useState)([]),{0:o,1:w}=(0,s.useState)(!1),{0:c,1:d}=(0,s.useState)(!1),{0:u,1:h}=(0,s.useState)(a.q.Idle),m=(0,s.useCallback)((async()=>{if(t.length>0)h(a.q.Success);else{h(a.q.Loading),d(!0),w(!1);try{const t=await e.resolve(l.Z).getProfilePicturesList();i(t),h(a.q.Success)}catch(r){w(!0),h(a.q.Failure)}finally{d(!1)}}}),[e]);return(0,s.useEffect)((()=>{m()}),[m]),{profilePictureList:r,error:o,loading:c,status:u,refetch:m}},o=r(85893);const w=(0,s.createContext)(null),c=t=>{let{children:e}=t;const{0:r,1:l}=(0,s.useState)([]),{profilePictureList:n,error:a,loading:c,status:d,refetch:u}=i(r),h=(0,s.useCallback)((t=>{l(t)}),[]);return(0,o.jsx)(w.Provider,{value:{profilePictureList:n,error:a,loading:c,status:d,refetch:u,setCache:h},children:e})},d=()=>{const t=(0,s.useContext)(w);if(null===t)throw new Error("usePictureList must be used within a PictureListProvider");return t}},40467:function(t,e,r){"use strict";var s=r(81607),l=r.n(s),n=(r(28660),r(4031)),a=r(44011),i=r(67294),o=r(25617);e.Z=()=>{const{0:t,1:e}=(0,i.useState)(),{0:r,1:s}=(0,i.useState)(),w=(0,n.BA)((t=>t.search.searchResult)),c=(0,n.BA)((t=>t.search.status)),d=(0,n.BA)((t=>t.search.message)),u=(0,i.useRef)(!1),h=(0,o.I0)(),m=t=>{""!==l()(t).call(t)&&h(a.Z.loadSearchData(t))};return(0,i.useEffect)((()=>{s(null)}),[]),(0,i.useEffect)((()=>{u.current&&s(w),u.current=!0}),[w]),{value:t,setValue:e,data:r,setData:s,result:w,status:c,message:d,loadResult:t=>{e(t.target.value),m(t.target.value)},retry:()=>m(t??"")}}},95734:function(t){t.exports={sticky:"Sticky_sticky__DWHz4",top:"Sticky_top__Zsal_",bottom:"Sticky_bottom__s_JZF",visible:"Sticky_visible__pra6Y",hiddenTop:"Sticky_hiddenTop__SEiJt",hiddenBottom:"Sticky_hiddenBottom__NKC_0"}},22756:function(t){t.exports={headerBottomBorder:"LangsContainer_headerBottomBorder__f0lp_",dark:"LangsContainer_dark__1sJ4o",scrollContainer:"LangsContainer_scrollContainer__bc8FX"}},8470:function(t){t.exports={highlight:"NavbarDesktop_highlight__7LaAf",instant:"NavbarDesktop_instant__Zlx1g",smooth:"NavbarDesktop_smooth__lnan3"}},38621:function(t){t.exports={run:"ProfilePicture_run__vzNrI",dotLoader:"ProfilePicture_dotLoader__O4WOf"}},91893:function(t){t.exports={container:"SearchBar_container__ziErk"}}}]); 2//# sourceMappingURL=3940-2847201223836146.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.