From d1d21bb3c6c615e0935b7721dc2d5195141e0ad2 Mon Sep 17 00:00:00 2001 From: Sadanand Pai Date: Sun, 14 Jul 2024 11:38:47 +0000 Subject: [PATCH] build files - github action --- docs/angular/index.html | 2 +- .../{main-QX4T5MGV.js => main-VSUEO647.js} | 2 +- .../{index-cb91F9Bx.js => index-qAJhlmHl.js} | 2 +- docs/index.html | 2 +- ...{header-BV02bT_J.js => header-V_WlNcet.js} | 2 +- docs/javascript/assets/index--gv0YqRY.js | 1 - docs/javascript/assets/index-1cs4qU3O.css | 1 - .../{index-9n35bGLm.js => index-1iLvaazD.js} | 2 +- .../{index-e4n4dTEq.js => index-1nkAPeEg.js} | 2 +- docs/javascript/assets/index-2ZlcrEWv.css | 1 - .../{index-alBh_9tg.js => index-2s5LAoFj.js} | 2 +- .../{index-IMSr9Pfj.js => index-2xTdXh47.js} | 2 +- .../{index-wDqfkJZq.js => index-3XYSJ61H.js} | 2 +- .../{index-AAYBhotw.js => index-4B-38J5c.js} | 2 +- .../{index-xeGGnmTE.js => index-4QEnb5f1.js} | 2 +- .../{index-nDyahxpV.js => index-4gUoPtYL.js} | 2 +- docs/javascript/assets/index-4w34TAP-.css | 1 - .../{index-HWbcEGtq.js => index-5CFuNz-P.js} | 2 +- .../{index-7fTbjKLL.js => index-5G3laa4T.js} | 2 +- .../{index-8a4fzYtj.js => index-7UBU1shY.js} | 2 +- .../{index-Yp02GvT7.js => index-7xu_W-xn.js} | 2 +- docs/javascript/assets/index-8nsIntmx.js | 1 - .../{index-HVNddoCz.js => index-8vgkgvit.js} | 2 +- docs/javascript/assets/index-951_JENs.js | 1 - docs/javascript/assets/index-9SlXGAjS.css | 1 - .../{index-M3Tc53Oy.js => index-A60Gz9Go.js} | 2 +- docs/javascript/assets/index-AZ0uN2UM.js | 2 - .../{index-tgu1jxDL.js => index-AayZXvpJ.js} | 2 +- docs/javascript/assets/index-Ac206fmO.css | 1 - .../{index-JlTYHVe2.js => index-Aj1XmqjO.js} | 2 +- .../{index-ZAufEBZg.js => index-B2_7JC-1.js} | 2 +- .../{index-St5JQTKu.js => index-C34JBFMe.js} | 2 +- .../{index-osB6ybrg.js => index-C_i8v26c.js} | 2 +- .../{index-4L6sBD7q.js => index-Cuyiz2Nk.js} | 2 +- .../{index-7hRhOyI2.js => index-CzCgJ8ac.js} | 2 +- .../{index-hFSyjhzS.js => index-EAgV_hvJ.js} | 2 +- .../{index-TElHX8es.js => index-FPNCGECH.js} | 2 +- .../{index-KE8ezX-6.js => index-GiDcix_H.js} | 2 +- .../{index-H1U9x-U7.js => index-IAt5pLW9.js} | 2 +- .../{index-isYlwqIt.js => index-ICiPL8qB.js} | 2 +- docs/javascript/assets/index-L7RwDjkD.css | 1 - .../{index-GsbXeaDL.js => index-LGeQfvHg.js} | 2 +- .../{index-8FjEH2Jb.js => index-LMlpSju6.js} | 2 +- .../{index-lxD5NlHJ.js => index-Mjo2wzM5.js} | 2 +- docs/javascript/assets/index-N2cJtsy_.css | 1 - .../{index-PD96617_.js => index-OFTHBfLb.js} | 2 +- docs/javascript/assets/index-OPFOuI63.js | 1 - .../{index-hqBCijBB.js => index-Ovbs8Y4G.js} | 2 +- .../{index-aFoxCdvT.js => index-P41hnPiU.js} | 2 +- .../{index-tnEjeE29.js => index-Px_Hbdqv.js} | 2 +- .../{index-FMCQ0hOW.js => index-Qk_FopJ4.js} | 2 +- docs/javascript/assets/index-RMQGDYJ5.js | 1 - .../{index-z4L70XLO.js => index-SYz2KRIN.js} | 2 +- .../{index-eWM4s4jS.js => index-UVwpnqU9.js} | 2 +- .../{index-5Msc-Xi-.js => index-WuF8pMM_.js} | 2 +- .../{index-dM6T1ulJ.js => index-YhPhKgqP.js} | 2 +- .../{index-btGuZ4sI.js => index-_ekVGRY0.js} | 2 +- .../{index-e00N2DoI.js => index-ahY8_XPf.js} | 2 +- .../{index-B7errex0.js => index-aj_7zjbb.js} | 2 +- .../{index-48-kZ-Fx.js => index-cCAXDpCN.js} | 2 +- .../{index-9671j0uW.js => index-dNOV8TdZ.js} | 2 +- .../{index-gpWo-PRn.js => index-eHDGZszS.js} | 2 +- docs/javascript/assets/index-fOxG5XRf.css | 1 - .../{index-2nWatOoe.js => index-fu0dB_49.js} | 2 +- .../{index-7HVzEEN_.js => index-hBViL2ZL.js} | 2 +- .../{index-3dH-Rsxa.js => index-hhV0bhhk.js} | 2 +- .../{index-bB5SJRWo.js => index-igXKdzqz.js} | 2 +- .../{index--s_XcGd0.js => index-j7evlMg1.js} | 2 +- .../{index-b9Hd8N0p.js => index-mwi5XAit.js} | 2 +- docs/javascript/assets/index-nJyq2Jsf.css | 1 - .../{index-Xxd4Lp8J.js => index-pvIBNZpX.js} | 2 +- .../{index-RNWD4UDO.js => index-rAzApyjA.js} | 2 +- .../{index-Adn_e4vl.js => index-s_pjxmF7.js} | 2 +- .../{index-8ZFg-X97.js => index-sw8hoKaj.js} | 2 +- docs/javascript/assets/index-tQhEyuvt.js | 1 - .../{index-Gpu52Rd9.js => index-tR8JdaDe.js} | 2 +- .../{index-FoHoOUCE.js => index-tV5vvgA4.js} | 2 +- docs/javascript/assets/index-uEcy61FZ.css | 1 - .../{index-Y0-iyYgG.js => index-vtmC6wdU.js} | 2 +- .../{index-bW3TYGl0.js => index-wLFJ4mRs.js} | 2 +- .../{index-4Zln4SWt.js => index-xpnn-RPY.js} | 2 +- .../{index-kSaYXW1s.js => index-yzY4xXjY.js} | 2 +- docs/javascript/assets/navbar-Dp-2B13D.js | 27 ------- docs/javascript/assets/navbar-MlIeMpk0.js | 27 +++++++ .../src/challenges/25-5-clock/index.html | 6 +- .../src/challenges/Footer/index.html | 48 ------------- .../src/challenges/accordion/index.html | 71 ------------------- .../src/challenges/analog-clock/index.html | 6 +- .../src/challenges/area-selector/index.html | 6 +- .../src/challenges/array-methods/index.html | 6 +- .../src/challenges/atm-simulator/index.html | 6 +- .../challenges/basic-calculator/index.html | 6 +- .../src/challenges/bill-spilt/index.html | 6 +- .../src/challenges/blobmaker/index.html | 41 ----------- .../src/challenges/bmi-calculator/index.html | 6 +- .../src/challenges/calendar/index.html | 6 +- .../src/challenges/carousel/index.html | 6 +- .../src/challenges/chess-board/index.html | 6 +- .../src/challenges/chips-input/index.html | 6 +- .../src/challenges/color-spotter/index.html | 6 +- .../src/challenges/column-table/index.html | 6 +- .../src/challenges/comment-box/index.html | 6 +- .../src/challenges/connect-four/index.html | 6 +- .../challenges/count-down-timer/index.html | 6 +- .../src/challenges/counter/index.html | 6 +- .../challenges/currency-converter/index.html | 6 +- .../src/challenges/dialog-popup/index.html | 35 --------- .../src/challenges/dice-game/index.html | 6 +- .../drag-and-drop-puzzle/index.html | 6 +- .../src/challenges/file-uploader/index.html | 6 +- .../src/challenges/finance-tracker/index.html | 6 +- .../src/challenges/fitness-tracker/index.html | 6 +- .../challenges/gradient-generator/index.html | 67 ----------------- .../challenges/guess-the-number/index.html | 6 +- .../src/challenges/hangman-game/index.html | 6 +- .../src/challenges/infinite-scroll/index.html | 6 +- .../src/challenges/json-creator/index.html | 6 +- .../src/challenges/lift-simulation/index.html | 6 +- .../src/challenges/light-dark-mode/index.html | 29 -------- .../src/challenges/match-pair/index.html | 6 +- .../src/challenges/meme-generator/index.html | 6 +- .../src/challenges/movie-info/index.html | 6 +- .../src/challenges/multi-typing/index.html | 6 +- .../src/challenges/music-kit/index.html | 6 +- .../src/challenges/navigation-bar/index.html | 45 ------------ .../src/challenges/otp-input/index.html | 6 +- .../src/challenges/paginator/index.html | 6 +- .../challenges/password-generator/index.html | 6 +- .../challenges/password-strength/index.html | 6 +- .../src/challenges/pixel-art/index.html | 6 +- .../src/challenges/progress-bar/index.html | 6 +- .../challenges/quiz-app-with-timer/index.html | 6 +- .../src/challenges/quiz-app/index.html | 6 +- .../challenges/rock-paper-scissor/index.html | 6 +- .../src/challenges/roll-dice/index.html | 6 +- .../src/challenges/simon-game/index.html | 6 +- .../src/challenges/skeleton-loader/index.html | 21 ------ .../src/challenges/snake-game/index.html | 6 +- .../challenges/sorting-visualizer/index.html | 6 +- .../src/challenges/spinning-loader/index.html | 16 ----- .../challenges/star-rating-display/index.html | 24 ------- .../src/challenges/star-rating/index.html | 6 +- .../index.html | 8 +-- .../challenges/string-transformers/index.html | 6 +- .../challenges/telephone-formatter/index.html | 6 +- .../src/challenges/tic-tac-toe/index.html | 6 +- .../src/challenges/toast-popup/index.html | 6 +- .../src/challenges/todo-list/index.html | 6 +- .../src/challenges/transfer-list/index.html | 6 +- .../challenges/type-ahead-online/index.html | 6 +- .../src/challenges/type-ahead/index.html | 6 +- .../challenges/typing-speed-test/index.html | 6 +- .../src/challenges/weather-app/index.html | 6 +- .../src/challenges/word-counter/index.html | 6 +- .../{index-CtqPmT0s.js => index-CCwkGLnD.js} | 2 +- docs/react/index.html | 2 +- .../{index-y2aIRCCx.js => index-CApGTyRX.js} | 2 +- docs/vue/index.html | 2 +- 158 files changed, 277 insertions(+), 692 deletions(-) rename docs/angular/{main-QX4T5MGV.js => main-VSUEO647.js} (74%) rename docs/assets/{index-cb91F9Bx.js => index-qAJhlmHl.js} (96%) rename docs/javascript/assets/{header-BV02bT_J.js => header-V_WlNcet.js} (95%) delete mode 100644 docs/javascript/assets/index--gv0YqRY.js delete mode 100644 docs/javascript/assets/index-1cs4qU3O.css rename docs/javascript/assets/{index-9n35bGLm.js => index-1iLvaazD.js} (97%) rename docs/javascript/assets/{index-e4n4dTEq.js => index-1nkAPeEg.js} (97%) delete mode 100644 docs/javascript/assets/index-2ZlcrEWv.css rename docs/javascript/assets/{index-alBh_9tg.js => index-2s5LAoFj.js} (88%) rename docs/javascript/assets/{index-IMSr9Pfj.js => index-2xTdXh47.js} (99%) rename docs/javascript/assets/{index-wDqfkJZq.js => index-3XYSJ61H.js} (96%) rename docs/javascript/assets/{index-AAYBhotw.js => index-4B-38J5c.js} (97%) rename docs/javascript/assets/{index-xeGGnmTE.js => index-4QEnb5f1.js} (95%) rename docs/javascript/assets/{index-nDyahxpV.js => index-4gUoPtYL.js} (96%) delete mode 100644 docs/javascript/assets/index-4w34TAP-.css rename docs/javascript/assets/{index-HWbcEGtq.js => index-5CFuNz-P.js} (94%) rename docs/javascript/assets/{index-7fTbjKLL.js => index-5G3laa4T.js} (91%) rename docs/javascript/assets/{index-8a4fzYtj.js => index-7UBU1shY.js} (97%) rename docs/javascript/assets/{index-Yp02GvT7.js => index-7xu_W-xn.js} (97%) delete mode 100644 docs/javascript/assets/index-8nsIntmx.js rename docs/javascript/assets/{index-HVNddoCz.js => index-8vgkgvit.js} (96%) delete mode 100644 docs/javascript/assets/index-951_JENs.js delete mode 100644 docs/javascript/assets/index-9SlXGAjS.css rename docs/javascript/assets/{index-M3Tc53Oy.js => index-A60Gz9Go.js} (99%) delete mode 100644 docs/javascript/assets/index-AZ0uN2UM.js rename docs/javascript/assets/{index-tgu1jxDL.js => index-AayZXvpJ.js} (97%) delete mode 100644 docs/javascript/assets/index-Ac206fmO.css rename docs/javascript/assets/{index-JlTYHVe2.js => index-Aj1XmqjO.js} (96%) rename docs/javascript/assets/{index-ZAufEBZg.js => index-B2_7JC-1.js} (95%) rename docs/javascript/assets/{index-St5JQTKu.js => index-C34JBFMe.js} (96%) rename docs/javascript/assets/{index-osB6ybrg.js => index-C_i8v26c.js} (88%) rename docs/javascript/assets/{index-4L6sBD7q.js => index-Cuyiz2Nk.js} (94%) rename docs/javascript/assets/{index-7hRhOyI2.js => index-CzCgJ8ac.js} (97%) rename docs/javascript/assets/{index-hFSyjhzS.js => index-EAgV_hvJ.js} (94%) rename docs/javascript/assets/{index-TElHX8es.js => index-FPNCGECH.js} (92%) rename docs/javascript/assets/{index-KE8ezX-6.js => index-GiDcix_H.js} (93%) rename docs/javascript/assets/{index-H1U9x-U7.js => index-IAt5pLW9.js} (95%) rename docs/javascript/assets/{index-isYlwqIt.js => index-ICiPL8qB.js} (78%) delete mode 100644 docs/javascript/assets/index-L7RwDjkD.css rename docs/javascript/assets/{index-GsbXeaDL.js => index-LGeQfvHg.js} (90%) rename docs/javascript/assets/{index-8FjEH2Jb.js => index-LMlpSju6.js} (94%) rename docs/javascript/assets/{index-lxD5NlHJ.js => index-Mjo2wzM5.js} (95%) delete mode 100644 docs/javascript/assets/index-N2cJtsy_.css rename docs/javascript/assets/{index-PD96617_.js => index-OFTHBfLb.js} (85%) delete mode 100644 docs/javascript/assets/index-OPFOuI63.js rename docs/javascript/assets/{index-hqBCijBB.js => index-Ovbs8Y4G.js} (99%) rename docs/javascript/assets/{index-aFoxCdvT.js => index-P41hnPiU.js} (97%) rename docs/javascript/assets/{index-tnEjeE29.js => index-Px_Hbdqv.js} (94%) rename docs/javascript/assets/{index-FMCQ0hOW.js => index-Qk_FopJ4.js} (99%) delete mode 100644 docs/javascript/assets/index-RMQGDYJ5.js rename docs/javascript/assets/{index-z4L70XLO.js => index-SYz2KRIN.js} (97%) rename docs/javascript/assets/{index-eWM4s4jS.js => index-UVwpnqU9.js} (96%) rename docs/javascript/assets/{index-5Msc-Xi-.js => index-WuF8pMM_.js} (92%) rename docs/javascript/assets/{index-dM6T1ulJ.js => index-YhPhKgqP.js} (93%) rename docs/javascript/assets/{index-btGuZ4sI.js => index-_ekVGRY0.js} (91%) rename docs/javascript/assets/{index-e00N2DoI.js => index-ahY8_XPf.js} (95%) rename docs/javascript/assets/{index-B7errex0.js => index-aj_7zjbb.js} (92%) rename docs/javascript/assets/{index-48-kZ-Fx.js => index-cCAXDpCN.js} (96%) rename docs/javascript/assets/{index-9671j0uW.js => index-dNOV8TdZ.js} (98%) rename docs/javascript/assets/{index-gpWo-PRn.js => index-eHDGZszS.js} (92%) delete mode 100644 docs/javascript/assets/index-fOxG5XRf.css rename docs/javascript/assets/{index-2nWatOoe.js => index-fu0dB_49.js} (99%) rename docs/javascript/assets/{index-7HVzEEN_.js => index-hBViL2ZL.js} (96%) rename docs/javascript/assets/{index-3dH-Rsxa.js => index-hhV0bhhk.js} (90%) rename docs/javascript/assets/{index-bB5SJRWo.js => index-igXKdzqz.js} (98%) rename docs/javascript/assets/{index--s_XcGd0.js => index-j7evlMg1.js} (97%) rename docs/javascript/assets/{index-b9Hd8N0p.js => index-mwi5XAit.js} (94%) delete mode 100644 docs/javascript/assets/index-nJyq2Jsf.css rename docs/javascript/assets/{index-Xxd4Lp8J.js => index-pvIBNZpX.js} (99%) rename docs/javascript/assets/{index-RNWD4UDO.js => index-rAzApyjA.js} (99%) rename docs/javascript/assets/{index-Adn_e4vl.js => index-s_pjxmF7.js} (90%) rename docs/javascript/assets/{index-8ZFg-X97.js => index-sw8hoKaj.js} (91%) delete mode 100644 docs/javascript/assets/index-tQhEyuvt.js rename docs/javascript/assets/{index-Gpu52Rd9.js => index-tR8JdaDe.js} (91%) rename docs/javascript/assets/{index-FoHoOUCE.js => index-tV5vvgA4.js} (94%) delete mode 100644 docs/javascript/assets/index-uEcy61FZ.css rename docs/javascript/assets/{index-Y0-iyYgG.js => index-vtmC6wdU.js} (94%) rename docs/javascript/assets/{index-bW3TYGl0.js => index-wLFJ4mRs.js} (93%) rename docs/javascript/assets/{index-4Zln4SWt.js => index-xpnn-RPY.js} (93%) rename docs/javascript/assets/{index-kSaYXW1s.js => index-yzY4xXjY.js} (94%) delete mode 100644 docs/javascript/assets/navbar-Dp-2B13D.js create mode 100644 docs/javascript/assets/navbar-MlIeMpk0.js delete mode 100644 docs/javascript/src/challenges/Footer/index.html delete mode 100644 docs/javascript/src/challenges/accordion/index.html delete mode 100644 docs/javascript/src/challenges/blobmaker/index.html delete mode 100644 docs/javascript/src/challenges/dialog-popup/index.html delete mode 100644 docs/javascript/src/challenges/gradient-generator/index.html delete mode 100644 docs/javascript/src/challenges/light-dark-mode/index.html delete mode 100644 docs/javascript/src/challenges/navigation-bar/index.html delete mode 100644 docs/javascript/src/challenges/skeleton-loader/index.html delete mode 100644 docs/javascript/src/challenges/spinning-loader/index.html delete mode 100644 docs/javascript/src/challenges/star-rating-display/index.html rename docs/javascript/src/challenges/{MadStory_generator => story-generator}/index.html (88%) rename docs/react/assets/{index-CtqPmT0s.js => index-CCwkGLnD.js} (88%) rename docs/vue/assets/{index-y2aIRCCx.js => index-CApGTyRX.js} (66%) diff --git a/docs/angular/index.html b/docs/angular/index.html index 136b4f642..63350c1d2 100644 --- a/docs/angular/index.html +++ b/docs/angular/index.html @@ -10,5 +10,5 @@ - + diff --git a/docs/angular/main-QX4T5MGV.js b/docs/angular/main-VSUEO647.js similarity index 74% rename from docs/angular/main-QX4T5MGV.js rename to docs/angular/main-VSUEO647.js index b39e4e03b..df49dfddd 100644 --- a/docs/angular/main-QX4T5MGV.js +++ b/docs/angular/main-VSUEO647.js @@ -1 +1 @@ -import{$ as qn,$a as ir,A as He,Aa as Z,B as $,Ba as x,C as wt,D as $n,E as _n,F as zn,Fa as Qn,G as P,H as Fn,I as R,Ia as Dt,Ja as Yn,K as S,L as w,Ma as Jn,N as Hn,Na as Xn,O as Ct,Oa as z,P as E,Q as C,R as f,Ra as qe,S as me,Sa as er,T as _,Ta as It,Ua as tr,V as Bn,Va as Ot,W as Vn,Wa as Pt,Xa as nr,Z as bt,Za as xt,_ as St,_a as rr,a as d,aa as Be,ab as O,b as k,ba as G,bb as Nt,c as Pn,ca as Rt,cb as jt,d as xn,da as Kn,db as Ke,e as ft,ea as kt,eb as sr,f as gt,fa as Gn,g as q,ga as ve,h as M,ha as Tt,i as K,ia as ye,j as I,ja as Mt,jb as ar,k as p,kb as Ut,l as fe,la as Wn,lb as or,m as Nn,n as jn,na as At,o as y,oa as Ve,p as mt,q as A,qa as Et,r as Un,ra as we,s as vt,sa as L,u as ee,v as te,va as Ce,w as ge,x as yt,xa as Zn,y as ne,z as Ln,za as W}from"./chunk-LTBXVXDY.js";var _t=class extends ir{constructor(){super(...arguments),this.supportsDOMEvents=!0}},zt=class n extends _t{static makeCurrent(){rr(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=li();return i==null?null:ui(i)}resetBaseElement(){be=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return sr(document.cookie,e)}},be=null;function li(){return be=be||document.querySelector("base"),be?be.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var ci=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Ft=new E("EventManagerPlugins"),dr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(a=>a.supports(t)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(C(Ft),C(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Ge=class{constructor(e){this._doc=e}},Lt="ng-app-id",hr=(()=>{let e=class e{constructor(t,r,s,a={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ut(a),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Lt}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let a=s.get(t);return a.usage+=r,a.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,a=s?.get(r);if(a?.parentNode===t)return s.delete(r),a.removeAttribute(Lt),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Lt,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),a=this.styleRef,o=a.get(r)?.elements;o?o.push(s):a.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(C(O),C(kt),C(Tt,8),C(ve))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),$t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Bt=/%COMP%/g,pr="%COMP%",di=`_nghost-${pr}`,hi=`_ngcontent-${pr}`,pi=!0,fi=new E("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>pi});function gi(n){return hi.replace(Bt,n)}function mi(n){return di.replace(Bt,n)}function fr(n,e){return e.map(i=>i.replace(Bt,n))}var lr=(()=>{let e=class e{constructor(t,r,s,a,o,u,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=u,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Ut(u),this.defaultRenderer=new Se(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===me.ShadowDom&&(r=k(d({},r),{encapsulation:me.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof We?s.applyToHost(t):s instanceof Re&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,u=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(r.encapsulation){case me.Emulated:a=new We(l,c,r,this.appId,h,o,u,m);break;case me.ShadowDom:return new Ht(l,c,t,r,o,u,this.nonce,m);default:a=new Re(l,c,r,h,o,u,m);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(C(dr),C(hr),C(kt),C(fi),C(O),C(ve),C(L),C(Tt))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Se=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS($t[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ur(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(ur(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new S(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=$t[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=$t[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(ye.DashCase|ye.Important)?e.style.setProperty(i,t,r&ye.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&ye.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=xt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function ur(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Ht=class extends Se{constructor(e,i,t,r,s,a,o,u){super(e,s,a,u),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=fr(r.id,r.styles);for(let c of l){let h=document.createElement("style");o&&h.setAttribute("nonce",o),h.textContent=c,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Re=class extends Se{constructor(e,i,t,r,s,a,o,u){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=u?fr(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},We=class extends Re{constructor(e,i,t,r,s,a,o,u){let l=r+"-"+t.id;super(e,i,t,s,a,o,u,l),this.contentAttr=gi(l),this.hostAttr=mi(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},vi=(()=>{let e=class e extends Ge{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(C(O))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),cr=["alt","control","meta","shift"],yi={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Ci=(()=>{let e=class e extends Ge{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let a=e.parseEventName(r),o=e.eventCallback(a.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(t,a.domEventName,o))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let a=e._normalizeKey(r.pop()),o="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),o="code."),cr.forEach(c=>{let h=r.indexOf(c);h>-1&&(r.splice(h,1),o+=c+".")}),o+=a,r.length!=0||a.length===0)return null;let l={};return l.domEventName=s,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let s=yi[t.key]||t.key,a="";return r.indexOf("code.")>-1&&(s=t.code,a="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),cr.forEach(o=>{if(o!==s){let u=wi[o];u(t)&&(a+=o+".")}}),a+=s,a===r)}static eventCallback(t,r,s){return a=>{e.matchEventFullKeyCode(a,t)&&s.runGuarded(()=>r(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(C(O))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})();function gr(n,e){return nr(d({rootComponent:n},bi(e)))}function bi(n){return{appProviders:[...Mi,...n?.providers??[]],platformProviders:Ti}}function Si(){zt.makeCurrent()}function Ri(){return new At}function ki(){return Kn(document),document}var Ti=[{provide:ve,useValue:ar},{provide:Gn,useValue:Si,multi:!0},{provide:O,useFactory:ki,deps:[]}];var Mi=[{provide:qn,useValue:"root"},{provide:At,useFactory:Ri,deps:[]},{provide:Ft,useClass:vi,multi:!0,deps:[O,L,ve]},{provide:Ft,useClass:Ci,multi:!0,deps:[O]},lr,hr,dr,{provide:Wn,useExisting:lr},{provide:or,useClass:ci,deps:[]},[]];function Ai(){return new Vt(C(O))}var Vt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(C(O))},e.\u0275prov=w({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var g="primary",$e=Symbol("RouteTitle"),Zt=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function oe(n){return new Zt(n)}function Di(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.lengtht[s]===r)}else return n===e}function Sr(n){return n.length>0?n[n.length-1]:null}function B(n){return Nn(n)?n:Qn(n)?I(Promise.resolve(n)):p(n)}var Oi={exact:kr,subset:Tr},Rr={exact:Pi,subset:xi,ignored:()=>!0};function mr(n,e,i){return Oi[i.paths](n.root,e.root,i.matrixParams)&&Rr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function Pi(n,e){return N(n,e)}function kr(n,e,i){if(!Y(n.segments,e.segments)||!Je(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!kr(n.children[t],e.children[t],i))return!1;return!0}function xi(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>br(n[i],e[i]))}function Tr(n,e,i){return Mr(n,e,e.segments,i)}function Mr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Y(r,i)||e.hasChildren()||!Je(r,i,t))}else if(n.segments.length===i.length){if(!Y(n.segments,i)||!Je(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Tr(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!Y(n.segments,r)||!Je(n.segments,r,t)||!n.children[g]?!1:Mr(n.children[g],e,s,t)}}function Je(n,e,i){return e.every((t,r)=>Rr[i](n[r].parameters,t.parameters))}var F=class{constructor(e=new v([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}toString(){return Ui.serialize(this)}},v=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xe(this)}},Q=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=oe(this.parameters)),this._parameterMap}toString(){return Er(this)}};function Ni(n,e){return Y(n,e)&&n.every((i,t)=>N(i.parameters,e[t].parameters))}function Y(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function ji(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===g&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==g&&(i=i.concat(e(r,t)))}),i}var Sn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>new tt)(),providedIn:"root"});let n=e;return n})(),tt=class{parse(e){let i=new Jt(e);return new F(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${ke(e.root,!0)}`,t=_i(e.queryParams),r=typeof e.fragment=="string"?`#${Li(e.fragment)}`:"";return`${i}${t}${r}`}},Ui=new tt;function Xe(n){return n.segments.map(e=>Er(e)).join("/")}function ke(n,e){if(!n.hasChildren())return Xe(n);if(e){let i=n.children[g]?ke(n.children[g],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==g&&t.push(`${r}:${ke(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=ji(n,(t,r)=>r===g?[ke(n.children[g],!1)]:[`${r}:${ke(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[g]!=null?`${Xe(n)}/${i[0]}`:`${Xe(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qe(n){return Ar(n).replace(/%3B/gi,";")}function Li(n){return encodeURI(n)}function Yt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function et(n){return decodeURIComponent(n)}function vr(n){return et(n.replace(/\+/g,"%20"))}function Er(n){return`${Yt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Yt(e)}=${Yt(n[e])}`).join("")}function _i(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Qe(i)}=${Qe(r)}`).join("&"):`${Qe(i)}=${Qe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var zi=/^[^\/()?;#]+/;function qt(n){let e=n.match(zi);return e?e[0]:""}var Fi=/^[^\/()?;=#]+/;function Hi(n){let e=n.match(Fi);return e?e[0]:""}var Bi=/^[^=?&#]+/;function Vi(n){let e=n.match(Bi);return e?e[0]:""}var qi=/^[^&#]+/;function Ki(n){let e=n.match(qi);return e?e[0]:""}var Jt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[g]=new v(e,i)),t}parseSegment(){let e=qt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(e),new Q(et(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Hi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=qt(this.remaining);r&&(t=r,this.capture(t))}e[et(i)]=et(t)}parseQueryParam(e){let i=Vi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let a=Ki(this.remaining);a&&(t=a,this.capture(t))}let r=vr(i),s=vr(t);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=qt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new S(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=g);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[g]:new v([],a),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new S(4011,!1)}};function Dr(n){return n.segments.length>0?new v([],{[g]:n}):n}function Ir(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=Ir(r);if(t===g&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))e[a]=o;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new v(n.segments,e);return Gi(i)}function Gi(n){if(n.numberOfChildren===1&&n.children[g]){let e=n.children[g];return new v(n.segments.concat(e.segments),e.children)}return n}function le(n){return n instanceof F}function Wi(n,e,i=null,t=null){let r=Or(n);return Pr(r,e,i,t)}function Or(n){let e;function i(s){let a={};for(let u of s.children){let l=i(u);a[u.outlet]=l}let o=new v(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Dr(t);return e??r}function Pr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Kt(r,r,r,i,t);let s=Zi(e);if(s.toRoot())return Kt(r,r,new v([],{}),i,t);let a=Qi(s,r,n),o=a.processChildren?Ae(a.segmentGroup,a.index,s.commands):Nr(a.segmentGroup,a.index,s.commands);return Kt(r,a.segmentGroup,o,i,t)}function nt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Ie(n){return typeof n=="object"&&n!=null&&n.outlets}function Kt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([u,l])=>{s[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`});let a;n===e?a=i:a=xr(n,e,i);let o=Dr(Ir(a));return new F(o,s,r)}function xr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=xr(s,e,i)}),new v(n.segments,t)}var rt=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&nt(t[0]))throw new S(4003,!1);let r=t.find(Ie);if(r&&r!==Sr(t))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Zi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new rt(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([u,l])=>{o[u]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,u)=>{u==0&&o==="."||(u==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new rt(i,e,t)}var se=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Qi(n,e,i){if(n.isAbsolute)return new se(e,!0,0);if(!i)return new se(e,!1,NaN);if(i.parent===null)return new se(i,!0,0);let t=nt(n.commands[0])?0:1,r=i.segments.length-1+t;return Yi(i,r,n.numberOfDoubleDots)}function Yi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new S(4005,!1);r=t.segments.length}return new se(t,!1,r-s)}function Ji(n){return Ie(n[0])?n[0].outlets:{[g]:n}}function Nr(n,e,i){if(n||(n=new v([],{})),n.segments.length===0&&n.hasChildren())return Ae(n,e,i);let t=Xi(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==g)&&n.children[g]&&n.numberOfChildren===1&&n.children[g].segments.length===0){let s=Ae(n.children[g],e,i);return new v(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=Nr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new v(n.segments,r)}}function Xi(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let a=n.segments[r],o=i[t];if(Ie(o))break;let u=`${o}`,l=t0&&u===void 0)break;if(u&&l&&typeof l=="object"&&l.outlets===void 0){if(!wr(u,l,a))return s;t+=2}else{if(!wr(u,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function Xt(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=Xt(new v([],{}),0,t))}),e}function yr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function wr(n,e,i){return n==i.path&&N(e,i.parameters)}var Ee="imperative",D=class{constructor(e,i){this.id=e,this.url=i}},Oe=class extends D{constructor(e,i,t="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},J=class extends D{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},H=class extends D{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},X=class extends D{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},Pe=class extends D{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},it=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},en=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tn=class extends D{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},nn=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rn=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sn=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},an=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},on=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ln=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var xe=class{},Ne=class{constructor(e){this.url=e}};var dn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ct,this.attachRef=null}},ct=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new dn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),st=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=hn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=hn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=pn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return pn(e,this._root).map(i=>i.value)}};function hn(n,e){if(n===e.value)return e;for(let i of e.children){let t=hn(n,i);if(t)return t}return null}function pn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=pn(n,i);if(t.length)return t.unshift(e),t}return[]}var T=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function ie(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var at=class extends st{constructor(e,i){super(e),this.snapshot=i,kn(this,e)}toString(){return this.snapshot.toString()}};function jr(n,e){let i=ts(n,e),t=new M([new Q("",{})]),r=new M({}),s=new M({}),a=new M({}),o=new M(""),u=new ue(t,r,a,o,s,g,e,i.root);return u.snapshot=i.root,new at(new T(u,[]),i)}function ts(n,e){let i={},t={},r={},s="",a=new je([],i,r,s,t,g,e,null,{});return new ot("",new T(a,[]))}var ue=class{constructor(e,i,t,r,s,a,o,u){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(y(l=>l[$e]))??p(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(y(e=>oe(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(y(e=>oe(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Rn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:d(d({},e.params),n.params),data:d(d({},e.data),n.data),resolve:d(d(d(d({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:d(d({},n.data),n._resolvedData??{})},r&&Lr(r)&&(t.resolve[$e]=r.title),t}var je=class{get title(){return this.data?.[$e]}constructor(e,i,t,r,s,a,o,u,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=u,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=oe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},ot=class extends st{constructor(e,i){super(i),this.url=e,kn(this,i)}toString(){return Ur(this._root)}};function kn(n,e){e.value._routerState=n,e.children.forEach(i=>kn(n,i))}function Ur(n){let e=n.children.length>0?` { ${n.children.map(Ur).join(", ")} } `:"";return`${n.value}${e}`}function Gt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,N(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),N(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),N(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function fn(n,e){let i=N(n.params,e.params)&&Ni(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||fn(n.parent,e.parent))}function Lr(n){return typeof n.title=="string"||n.title===null}var _e=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.parentContexts=f(ct),this.location=f(Zn),this.changeDetector=f(Et),this.environmentInjector=f(Be),this.inputBinder=f(Tn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,l=new gn(t,u,s.injector);this.activated=s.createComponent(o,{index:s.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Bn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Vn]});let n=e;return n})(),gn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===ue?this.route:e===ct?this.childContexts:this.parent.get(e,i)}},Tn=new E("");function ns(n,e,i){let t=Ue(n,e._root,i?i._root:void 0);return new at(t,e)}function Ue(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=rs(n,e,i);return new T(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(o=>Ue(n,o)),a}}let t=is(e.value),r=e.children.map(s=>Ue(n,s));return new T(t,r)}}function rs(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ue(n,t,r);return Ue(n,t)})}function is(n){return new ue(new M(n.url),new M(n.params),new M(n.queryParams),new M(n.fragment),new M(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function _r(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=le(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=zr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function zr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function ss(n){return Fr(n)&&le(n.url)}function Fr(n){return n&&n[$r]}var as=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=_({type:e,selectors:[["ng-component"]],standalone:!0,features:[z],decls:1,vars:0,template:function(r,s){r&1&&x(0,"router-outlet")},dependencies:[_e],encapsulation:2});let n=e;return n})();function os(n,e){return n.providers&&!n._injector&&(n._injector=Xn(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Mn(n){let e=n.children&&n.children.map(Mn),i=e?k(d({},n),{children:e}):d({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==g&&(i.component=as),i}function j(n){return n.outlet||g}function ls(n,e){let i=n.filter(t=>j(t)===e);return i.push(...n.filter(t=>j(t)!==e)),i}function ze(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var us=(n,e,i,t)=>y(r=>(new mn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),mn=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Gt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=ie(i);e.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],t),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let a=t.getContext(r.outlet);a&&this.deactivateChildRoutes(e,i,a.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ie(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);if(t&&t.outlet){let a=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:o})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ie(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=ie(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new cn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new ln(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Gt(r),r===s)if(r.component){let a=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,a.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let a=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),Gt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=ze(r.snapshot);a.attachRef=null,a.route=r,a.injector=o,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},lt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ae=class{constructor(e,i){this.component=e,this.route=i}};function cs(n,e,i){let t=n._root,r=e?e._root:null;return Te(t,r,i,[t.value])}function ds(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function de(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Hn(n)?n:e.get(n):t}function Te(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=ie(e);return n.children.forEach(a=>{hs(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>De(o,i.getContext(a),r)),r}function hs(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=e?e.value:null,o=i?i.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let u=ps(a,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new lt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Te(n,e,o?o.children:null,t,r):Te(n,e,i,t,r),u&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ae(o.outlet.component,a))}else a&&De(e,o,r),r.canActivateChecks.push(new lt(t)),s.component?Te(n,null,o?o.children:null,t,r):Te(n,null,i,t,r);return r}function ps(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Y(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Y(n.url,e.url)||!N(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fn(n,e)||!N(n.queryParams,e.queryParams);case"paramsChange":default:return!fn(n,e)}}function De(n,e,i){let t=ie(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?De(a,e.children.getContext(s),i):De(a,null,i):De(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ae(e.outlet.component,r)):i.canDeactivateChecks.push(new ae(null,r)):i.canDeactivateChecks.push(new ae(null,r))}function Fe(n){return typeof n=="function"}function fs(n){return typeof n=="boolean"}function gs(n){return n&&Fe(n.canLoad)}function ms(n){return n&&Fe(n.canActivate)}function vs(n){return n&&Fe(n.canActivateChild)}function ys(n){return n&&Fe(n.canDeactivate)}function ws(n){return n&&Fe(n.canMatch)}function Hr(n){return n instanceof jn||n?.name==="EmptyError"}var Ye=Symbol("INITIAL_VALUE");function ce(){return P(n=>mt(n.map(e=>e.pipe(ne(1),zn(Ye)))).pipe(y(e=>{for(let i of e)if(i!==!0){if(i===Ye)return Ye;if(i===!1||i instanceof F)return i}return!0}),ee(e=>e!==Ye),ne(1)))}function Cs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?p(k(d({},i),{guardsResult:!0})):bs(a,t,r,n).pipe(A(o=>o&&fs(o)?Ss(t,s,n,e):p(o)),y(o=>k(d({},i),{guardsResult:o})))})}function bs(n,e,i,t){return I(n).pipe(A(r=>As(r.component,r.route,i,e,t)),$(r=>r!==!0,!0))}function Ss(n,e,i,t){return I(e).pipe(ge(r=>Un(ks(r.route.parent,t),Rs(r.route,t),Ms(n,r.path,i),Ts(n,r.route,i))),$(r=>r!==!0,!0))}function Rs(n,e){return n!==null&&e&&e(new un(n)),p(!0)}function ks(n,e){return n!==null&&e&&e(new on(n)),p(!0)}function Ts(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return p(!0);let r=t.map(s=>vt(()=>{let a=ze(e)??i,o=de(s,a),u=ms(o)?o.canActivate(e,n):G(a,()=>o(e,n));return B(u).pipe($())}));return p(r).pipe(ce())}function Ms(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>ds(a)).filter(a=>a!==null).map(a=>vt(()=>{let o=a.guards.map(u=>{let l=ze(a.node)??i,c=de(u,l),h=vs(c)?c.canActivateChild(t,n):G(l,()=>c(t,n));return B(h).pipe($())});return p(o).pipe(ce())}));return p(s).pipe(ce())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let a=s.map(o=>{let u=ze(e)??r,l=de(o,u),c=ys(l)?l.canDeactivate(n,e,i,t):G(u,()=>l(n,e,i,t));return B(c).pipe($())});return p(a).pipe(ce())}function Es(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return p(!0);let s=r.map(a=>{let o=de(a,n),u=gs(o)?o.canLoad(e,i):G(n,()=>o(e,i));return B(u)});return p(s).pipe(ce(),Br(t))}function Br(n){return xn(R(e=>{if(le(e))throw _r(n,e)}),y(e=>e===!0))}function Ds(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return p(!0);let s=r.map(a=>{let o=de(a,n),u=ws(o)?o.canMatch(e,i):G(n,()=>o(e,i));return B(u)});return p(s).pipe(ce(),Br(t))}var Le=class{constructor(e){this.segmentGroup=e||null}},ut=class extends Error{constructor(e){super(),this.urlTree=e}};function re(n){return fe(new Le(n))}function Is(n){return fe(new S(4e3,!1))}function Os(n){return fe(zr(!1,3))}var vn=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return p(t);if(r.numberOfChildren>1||!r.children[g])return Is(e.redirectTo);r=r.children[g]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ut(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new F(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let o=s.substring(1);t[r]=i[o]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),a={};return Object.entries(i.children).forEach(([o,u])=>{a[o]=this.createSegmentGroup(e,u,t,r)}),new v(s,a)}createSegments(e,i,t,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},yn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ps(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=os(e,t),Ds(t,e,i,r).pipe(y(a=>a===!0?s:d({},yn)))):p(s)}function An(n,e,i){if(e.path==="**")return xs(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?d({},yn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Di)(i,n,e);if(!r)return d({},yn);let s={};Object.entries(r.posParams??{}).forEach(([o,u])=>{s[o]=u.path});let a=r.consumed.length>0?d(d({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function xs(n){return{matched:!0,parameters:n.length>0?Sr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Cr(n,e,i,t){return i.length>0&&Us(n,i,t)?{segmentGroup:new v(e,js(t,new v(i,n.children))),slicedSegments:[]}:i.length===0&&Ls(n,i,t)?{segmentGroup:new v(n.segments,Ns(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new v(n.segments,n.children),slicedSegments:i}}function Ns(n,e,i,t,r){let s={};for(let a of t)if(dt(n,i,a)&&!r[j(a)]){let o=new v([],{});s[j(a)]=o}return d(d({},r),s)}function js(n,e){let i={};i[g]=e;for(let t of n)if(t.path===""&&j(t)!==g){let r=new v([],{});i[j(t)]=r}return i}function Us(n,e,i){return i.some(t=>dt(n,e,t)&&j(t)!==g)}function Ls(n,e,i){return i.some(t=>dt(n,e,t))}function dt(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return j(n)!==t&&(t===g||!dt(e,i,n))?!1:An(e,n,i).matched}function _s(n,e,i){return e.length===0&&!n.children[i]}var wn=class{};function zs(n,e,i,t,r,s,a="emptyOnly"){return new Cn(n,e,i,t,r,a,s).recognize()}var Fs=31,Cn=class{constructor(e,i,t,r,s,a,o){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new vn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new S(4002,`'${e.segmentGroup}'`)}recognize(){let e=Cr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(y(i=>{let t=new je([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,{},g,this.rootComponentType,null,{}),r=new T(t,i),s=new ot("",r),a=Wi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(s._root,null),{state:s,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,g).pipe(te(t=>{if(t instanceof ut)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Le?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=Rn(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(y(s=>s instanceof T?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return I(r).pipe(ge(s=>{let a=t.children[s],o=ls(i,s);return this.processSegmentGroup(e,o,a,s)}),_n((s,a)=>(s.push(...a),s)),yt(null),$n(),A(s=>{if(s===null)return re(t);let a=Vr(s);return Hs(a),p(a)}))}processSegment(e,i,t,r,s,a){return I(i).pipe(ge(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(te(u=>{if(u instanceof Le)return p(null);throw u}))),$(o=>!!o),te(o=>{if(Hr(o))return _s(t,r,s)?p(new wn):re(t);throw o}))}processSegmentAgainstRoute(e,i,t,r,s,a,o){return $s(t,r,s,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,a):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,a):re(r):re(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:u,positionalParamSegments:l,remainingSegments:c}=An(i,r,s);if(!o)return re(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Fs&&(this.allowRedirects=!1));let h=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,h).pipe(A(m=>this.processSegment(e,t,i,m.concat(c),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=Ps(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(P(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(P(({routes:u})=>{let l=t._loadedInjector??e,{consumedSegments:c,remainingSegments:h,parameters:m}=o,b=new je(c,m,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Vs(t),j(t),t.component??t._loadedComponent??null,t,qs(t)),{segmentGroup:he,slicedSegments:pe}=Cr(i,c,h,u);if(pe.length===0&&he.hasChildren())return this.processChildren(l,u,he).pipe(y(V=>V===null?null:new T(b,V)));if(u.length===0&&pe.length===0)return p(new T(b,[]));let pt=j(t)===s;return this.processSegment(l,u,he,pe,pt?g:s,!0).pipe(y(V=>new T(b,V instanceof T?[V]:[])))}))):re(i)))}getChildConfig(e,i,t){return i.children?p({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?p({routes:i._loadedRoutes,injector:i._loadedInjector}):Es(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(R(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Os(i))):p({routes:[],injector:e})}};function Hs(n){n.sort((e,i)=>e.value.outlet===g?-1:i.value.outlet===g?1:e.value.outlet.localeCompare(i.value.outlet))}function Bs(n){let e=n.value.routeConfig;return e&&e.path===""}function Vr(n){let e=[],i=new Set;for(let t of n){if(!Bs(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=Vr(t.children);e.push(new T(t.value,r))}return e.filter(t=>!i.has(t))}function Vs(n){return n.data||{}}function qs(n){return n.resolve||{}}function Ks(n,e,i,t,r,s){return A(a=>zs(n,e,i,t,a.extractedUrl,r,s).pipe(y(({state:o,tree:u})=>k(d({},a),{targetSnapshot:o,urlAfterRedirects:u}))))}function Gs(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return p(i);let s=new Set(r.map(u=>u.route)),a=new Set;for(let u of s)if(!a.has(u))for(let l of qr(u))a.add(l);let o=0;return I(a).pipe(ge(u=>s.has(u)?Ws(u,t,n,e):(u.data=Rn(u,u.parent,n).resolve,p(void 0))),R(()=>o++),wt(1),A(u=>o===a.size?p(i):K))})}function qr(n){let e=n.children.map(i=>qr(i)).flat();return[n,...e]}function Ws(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!Lr(r)&&(s[$e]=r.title),Zs(s,n,e,t).pipe(y(a=>(n._resolvedData=a,n.data=Rn(n,n.parent,i).resolve,null)))}function Zs(n,e,i,t){let r=Qt(n);if(r.length===0)return p({});let s={};return I(r).pipe(A(a=>Qs(n[a],e,i,t).pipe($(),R(o=>{s[a]=o}))),wt(1),Ln(s),te(a=>Hr(a)?K:fe(a)))}function Qs(n,e,i,t){let r=ze(e)??t,s=de(n,r),a=s.resolve?s.resolve(e,i):G(r,()=>s(e,i));return B(a)}function Wt(n){return P(e=>{let i=n(e);return i?I(i).pipe(y(()=>e)):p(e)})}var Kr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(a=>a.outlet===g);return r}getResolvedTitleForRoute(t){return t.data[$e]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(Ys))(),providedIn:"root"});let n=e;return n})(),Ys=(()=>{let e=class e extends Kr{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(C(Vt))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),En=new E("",{providedIn:"root",factory:()=>({})}),Dn=new E("ROUTES"),Js=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return p(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=B(t.loadComponent()).pipe(y(Gr),R(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),He(()=>{this.componentLoaders.delete(t)})),s=new gt(r,()=>new q).pipe(ft());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return p({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=Xs(r,this.compiler,t,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),o=new gt(a,()=>new q).pipe(ft());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Xs(n,e,i,t){return B(n.loadChildren()).pipe(y(Gr),A(r=>r instanceof Jn||Array.isArray(r)?p(r):I(e.compileModuleAsync(r))),y(r=>{t&&t(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(i).injector,a=s.get(Dn,[],{optional:!0,self:!0}).flat()),{routes:a.map(Mn),injector:s}}))}function ea(n){return n&&typeof n=="object"&&"default"in n}function Gr(n){return ea(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(ta))(),providedIn:"root"});let n=e;return n})(),ta=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),na=new E("");var ra=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new q,this.transitionAbortSubject=new q,this.configLoader=f(Js),this.environmentInjector=f(Be),this.urlSerializer=f(Sn),this.rootContexts=f(ct),this.location=f(Ke),this.inputBindingEnabled=f(Tn,{optional:!0})!==null,this.titleStrategy=f(Kr),this.options=f(En,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(In),this.createViewTransition=f(na,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let t=s=>this.events.next(new sn(s)),r=s=>this.events.next(new an(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(k(d(d({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new M({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ee,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ee(a=>a.id!==0),y(a=>k(d({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),P(a=>{this.currentTransition=a;let o=!1,u=!1;return p(a).pipe(R(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?k(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),P(l=>{let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload"){let m="";return this.events.next(new X(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),K}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return p(l).pipe(P(m=>{let b=this.transitions?.getValue();return this.events.next(new Oe(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),b!==this.transitions?.getValue()?K:Promise.resolve(m)}),Ks(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(m=>{a.targetSnapshot=m.targetSnapshot,a.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation=k(d({},this.currentNavigation),{finalUrl:m.urlAfterRedirects});let b=new it(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(b)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:m,extractedUrl:b,source:he,restoredState:pe,extras:pt}=l,V=new Oe(m,this.urlSerializer.serialize(b),he,pe);this.events.next(V);let ni=jr(b,this.rootComponentType).snapshot;return this.currentTransition=a=k(d({},l),{targetSnapshot:ni,urlAfterRedirects:b,extras:k(d({},pt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=b,p(a)}else{let m="";return this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),K}}),R(l=>{let c=new en(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),y(l=>(this.currentTransition=a=k(d({},l),{guards:cs(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),Cs(this.environmentInjector,l=>this.events.next(l)),R(l=>{if(a.guardsResult=l.guardsResult,le(l.guardsResult))throw _r(this.urlSerializer,l.guardsResult);let c=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ee(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Wt(l=>{if(l.guards.canActivateChecks.length)return p(l).pipe(R(c=>{let h=new nn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),P(c=>{let h=!1;return p(c).pipe(Gs(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",2)}}))}),R(c=>{let h=new rn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),Wt(l=>{let c=h=>{let m=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&m.push(this.configLoader.loadComponent(h.routeConfig).pipe(R(b=>{h.component=b}),y(()=>{})));for(let b of h.children)m.push(...c(b));return m};return mt(c(l.targetSnapshot.root)).pipe(yt(),ne(1))}),Wt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:l,targetSnapshot:c}=a,h=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return h?I(h).pipe(y(()=>a)):p(a)}),y(l=>{let c=ns(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=k(d({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,a}),R(()=>{this.events.next(new xe)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ne(1),R({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new J(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Fn(this.transitionAbortSubject.pipe(R(l=>{throw l}))),He(()=>{if(!o&&!u){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),te(l=>{if(u=!0,Fr(l))this.events.next(new H(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),ss(l)?this.events.next(new Ne(l.url)):a.resolve(!1);else{this.events.next(new Pe(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(c){a.reject(c)}}return K}))}))}cancelNavigationTransition(t,r,s){let a=new H(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ia(n){return n!==Ee}var sa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(aa))(),providedIn:"root"});let n=e;return n})(),bn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},aa=(()=>{let e=class e extends bn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=bt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Wr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(oa))(),providedIn:"root"});let n=e;return n})(),oa=(()=>{let e=class e extends Wr{constructor(){super(...arguments),this.location=f(Ke),this.urlSerializer=f(Sn),this.options=f(En,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new F,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=jr(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Oe)this.stateMemento=this.createStateMemento();else if(t instanceof X)this.rawUrlTree=r.initialUrl;else if(t instanceof it){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof xe?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof H&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof Pe?this.restoreHistory(r,!0):t instanceof J&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let a=this.browserPageId,o=d(d({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=d(d({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,a=this.currentPageId-s;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=bt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Me=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Me||{});function la(n,e){n.events.pipe(ee(i=>i instanceof J||i instanceof H||i instanceof Pe||i instanceof X),y(i=>i instanceof J||i instanceof X?Me.COMPLETE:(i instanceof H?i.code===0||i.code===1:!1)?Me.REDIRECTING:Me.FAILED),ee(i=>i!==Me.REDIRECTING),ne(1)).subscribe(()=>{e()})}function ua(n){throw n}var ca={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},da={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ht=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(qe),this.stateManager=f(Wr),this.options=f(En,{optional:!0})||{},this.pendingTasks=f(er),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(ra),this.urlSerializer=f(Sn),this.location=f(Ke),this.urlHandlingStrategy=f(In),this._events=new q,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=f(sa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(Dn,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(Tn,{optional:!0}),this.eventsSubscription=new Pn,this.isNgZoneEnabled=f(L)instanceof L&&L.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof H&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof J)this.navigated=!0;else if(r instanceof Ne){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ia(s.source)};this.scheduleNavigation(o,Ee,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}pa(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)}))}navigateToSyncWithBrowser(t,r,s){let a={replaceUrl:!0},o=s?.navigationId?s:null;if(s){let l=d({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let u=this.parseUrl(t);this.scheduleNavigation(u,r,o,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Mn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:a,fragment:o,queryParamsHandling:u,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:o,h=null;switch(u){case"merge":h=d(d({},this.currentUrlTree.queryParams),a);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=a||null}h!==null&&(h=this.removeEmptyProps(h));let m;try{let b=s?s.snapshot:this.routerState.snapshot.root;m=Or(b)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),m=this.currentUrlTree.root}return Pr(m,t,h,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=le(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ee,null,r)}navigate(t,r={skipLocationChange:!1}){return ha(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=d({},ca):r===!1?s=d({},da):s=r,le(t))return mr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return mr(this.currentUrlTree,a,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return a!=null&&(r[s]=a),r},{})}scheduleNavigation(t,r,s,a,o){if(this.disposed)return Promise.resolve(!1);let u,l,c;o?(u=o.resolve,l=o.reject,c=o.promise):c=new Promise((m,b)=>{u=m,l=b});let h=this.pendingTasks.add();return la(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:u,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ha(n){for(let e=0;ei.\u0275providers)])}function ga(n){return n.routerState.root}function ma(){let n=f(Rt);return e=>{let i=n.get(Ot);if(e!==i.components[0])return;let t=n.get(ht),r=n.get(va);n.get(ya)===1&&t.initialNavigation(),n.get(wa,null,Ct.Optional)?.setUpPreloading(),n.get(fa,null,Ct.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var va=new E("",{factory:()=>new q}),ya=new E("",{providedIn:"root",factory:()=>1});var wa=new E("");var Qr=["easy","medium","hard"];function U(n){return new Map([...n.entries()].sort((e,i)=>{let t=Qr.indexOf(e[1].difficulty),r=Qr.indexOf(i[1].difficulty);return t-r}))}var Ca=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"easy",developer:"sadanandpai",tags:[]}]]),ba=U(Ca);var Sa=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:"easy",developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:"easy",developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:"easy",developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:"easy",developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["dialog-popup",{title:"Dialog Popup",link:"dialog-popup/",difficulty:"easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:"easy",developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["spinning-loader",{title:"Spinning Loader",link:"spinning-loader/",difficulty:"easy",developer:"DhanushNehru",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:"easy",developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:"easy",developer:"pranav514",tags:[],isNew:!0}],["accordion",{title:"Accordion",link:"accordion/",difficulty:"easy",developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:"easy",developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["Footer",{title:"Footer",link:"Footer/",difficulty:"easy",developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:"easy",developer:"AckermanLevi1",tags:[],isNew:!0}],["MadStory_generator",{title:"MadStory Generator",link:"MadStory_generator/",difficulty:"easy",developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:"easy",developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:"easy",developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:"easy",developer:"VishakhaSainani",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:"easy",developer:"AbhineshJha",tags:[]}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:"easy",developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:"easy",developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:"medium",developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:"medium",developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:"medium",developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:"medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:"medium",developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"medium",developer:"Sukomal07",tags:[],isNew:!0}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:"medium",developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"medium",developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:"medium",developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:"medium",developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:"medium",developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:"medium",developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:"medium",developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:"medium",developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:"hard",developer:"sadanandpai",tags:[]}]]),Ra=U(Sa);var ka=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:"easy",developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:"easy",developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"easy",developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"easy",tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"easy",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"easy",developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"easy",developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"easy",developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"easy",developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"easy",developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:"easy",developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"medium",developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"medium",developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:"medium",developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"medium",developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"medium",developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"medium",developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"medium",developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"medium",developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:"medium",developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"medium",developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"medium",developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"medium",developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"medium",developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:"medium",developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"medium",developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"hard",developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"medium",developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:"medium",developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:"medium",developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"medium",developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"hard",developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"hard",developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"hard",developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:"hard",developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:"hard",developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:"easy",developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:"medium",developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:"medium",developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:"medium",developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:"medium",developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:"medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:"easy",developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:"medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}]]),Ta=U(ka);var Ma=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"easy",developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:"easy",developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:"easy",developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:"easy",developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:"easy",developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:"easy",developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:"easy",developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:"medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"medium",developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"medium",developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"medium",developer:"Shardik04",tags:[]}]]),Aa=U(Ma);var Ea=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}]]),On=U(Ea);var Yr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=Pt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=Pt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=_({type:e,selectors:[["app-navbar"]],inputs:{title:"title"},standalone:!0,features:[z],decls:11,vars:3,consts:[[1,"navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"right"],["href","https://github.com/sadanandpai/frontend-mini-challenges/","target","blank"],["src","https://cdn-icons-png.flaticon.com/512/25/25231.png","alt","github repo",1,"github"]],template:function(r,s){r&1&&(W(0,"nav",0)(1,"div",1)(2,"a",2),Dt(3," < "),Z(),W(4,"a",3),x(5,"img",4),Z()(),W(6,"h1"),Dt(7),Z(),W(8,"div",5)(9,"a",6),x(10,"img",7),Z()()()),r&2&&(Ve(2),Ce("href",s.backURL,Mt),Ve(2),Ce("href",s.homeURL,Mt),Ve(3),Yn(s.title))},styles:[".navbar[_ngcontent-%COMP%]{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%);box-shadow:0 4px 4px #0000001a}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:flex;flex-grow:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;color:#000}.navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;text-align:right}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .github[_ngcontent-%COMP%]{width:30px;height:30px;vertical-align:text-bottom}"]});let n=e;return n})();var Jr=(()=>{let e=class e{constructor(){this.title="Challenge",this.router=f(ht)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=On.get(t);r&&(this.title=r.title)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=_({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[z],decls:3,vars:1,consts:[[3,"title"],[1,"container"]],template:function(r,s){r&1&&(x(0,"app-navbar",0),W(1,"div",1),x(2,"router-outlet"),Z()),r&2&&Ce("title",s.title)},dependencies:[Yr,_e],encapsulation:2});let n=e;return n})();var Xr=[{path:"",component:Jr,children:[{path:"counter",loadComponent:()=>import("./chunk-P6JRW256.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-2GACWZDO.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-6UZ3QE7S.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-RYO7AHJW.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-QSPVKJQN.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-4P7VNLHJ.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ei={providers:[Zr(Xr),{provide:Nt,useClass:jt}]};var ti=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=_({type:e,selectors:[["app-root"]],standalone:!0,features:[z],decls:1,vars:0,template:function(r,s){r&1&&x(0,"router-outlet")},dependencies:[_e]});let n=e;return n})();gr(ti,ei).catch(n=>console.error(n)); +import{$ as qn,$a as ir,A as He,Aa as Z,B as $,Ba as x,C as wt,D as $n,E as zn,F as _n,Fa as Qn,G as P,H as Fn,I as R,Ia as Dt,Ja as Yn,K as S,L as w,Ma as Jn,N as Hn,Na as Xn,O as Ct,Oa as _,P as E,Q as C,R as f,Ra as qe,S as me,Sa as er,T as z,Ta as It,Ua as tr,V as Bn,Va as Ot,W as Vn,Wa as Pt,Xa as nr,Z as bt,Za as xt,_ as St,_a as rr,a as d,aa as Be,ab as O,b as k,ba as G,bb as Nt,c as Pn,ca as Rt,cb as jt,d as xn,da as Kn,db as Ke,e as ft,ea as kt,eb as sr,f as gt,fa as Gn,g as q,ga as ve,h as M,ha as Tt,i as K,ia as ye,j as I,ja as Mt,jb as ar,k as p,kb as Ut,l as fe,la as Wn,lb as or,m as Nn,n as jn,na as At,o as y,oa as Ve,p as mt,q as A,qa as Et,r as Un,ra as we,s as vt,sa as L,u as ee,v as te,va as Ce,w as ge,x as yt,xa as Zn,y as ne,z as Ln,za as W}from"./chunk-LTBXVXDY.js";var zt=class extends ir{constructor(){super(...arguments),this.supportsDOMEvents=!0}},_t=class n extends zt{static makeCurrent(){rr(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=li();return i==null?null:ui(i)}resetBaseElement(){be=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return sr(document.cookie,e)}},be=null;function li(){return be=be||document.querySelector("base"),be?be.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var ci=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Ft=new E("EventManagerPlugins"),dr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(a=>a.supports(t)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(C(Ft),C(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Ge=class{constructor(e){this._doc=e}},Lt="ng-app-id",hr=(()=>{let e=class e{constructor(t,r,s,a={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ut(a),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Lt}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let a=s.get(t);return a.usage+=r,a.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,a=s?.get(r);if(a?.parentNode===t)return s.delete(r),a.removeAttribute(Lt),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Lt,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),a=this.styleRef,o=a.get(r)?.elements;o?o.push(s):a.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(C(O),C(kt),C(Tt,8),C(ve))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),$t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Bt=/%COMP%/g,pr="%COMP%",di=`_nghost-${pr}`,hi=`_ngcontent-${pr}`,pi=!0,fi=new E("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>pi});function gi(n){return hi.replace(Bt,n)}function mi(n){return di.replace(Bt,n)}function fr(n,e){return e.map(i=>i.replace(Bt,n))}var lr=(()=>{let e=class e{constructor(t,r,s,a,o,u,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=u,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Ut(u),this.defaultRenderer=new Se(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===me.ShadowDom&&(r=k(d({},r),{encapsulation:me.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof We?s.applyToHost(t):s instanceof Re&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,u=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(r.encapsulation){case me.Emulated:a=new We(l,c,r,this.appId,h,o,u,m);break;case me.ShadowDom:return new Ht(l,c,t,r,o,u,this.nonce,m);default:a=new Re(l,c,r,h,o,u,m);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(C(dr),C(hr),C(kt),C(fi),C(O),C(ve),C(L),C(Tt))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Se=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS($t[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ur(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(ur(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new S(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=$t[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=$t[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(ye.DashCase|ye.Important)?e.style.setProperty(i,t,r&ye.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&ye.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=xt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function ur(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Ht=class extends Se{constructor(e,i,t,r,s,a,o,u){super(e,s,a,u),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=fr(r.id,r.styles);for(let c of l){let h=document.createElement("style");o&&h.setAttribute("nonce",o),h.textContent=c,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Re=class extends Se{constructor(e,i,t,r,s,a,o,u){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=u?fr(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},We=class extends Re{constructor(e,i,t,r,s,a,o,u){let l=r+"-"+t.id;super(e,i,t,s,a,o,u,l),this.contentAttr=gi(l),this.hostAttr=mi(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},vi=(()=>{let e=class e extends Ge{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(C(O))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),cr=["alt","control","meta","shift"],yi={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Ci=(()=>{let e=class e extends Ge{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let a=e.parseEventName(r),o=e.eventCallback(a.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(t,a.domEventName,o))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let a=e._normalizeKey(r.pop()),o="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),o="code."),cr.forEach(c=>{let h=r.indexOf(c);h>-1&&(r.splice(h,1),o+=c+".")}),o+=a,r.length!=0||a.length===0)return null;let l={};return l.domEventName=s,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let s=yi[t.key]||t.key,a="";return r.indexOf("code.")>-1&&(s=t.code,a="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),cr.forEach(o=>{if(o!==s){let u=wi[o];u(t)&&(a+=o+".")}}),a+=s,a===r)}static eventCallback(t,r,s){return a=>{e.matchEventFullKeyCode(a,t)&&s.runGuarded(()=>r(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(C(O))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})();function gr(n,e){return nr(d({rootComponent:n},bi(e)))}function bi(n){return{appProviders:[...Mi,...n?.providers??[]],platformProviders:Ti}}function Si(){_t.makeCurrent()}function Ri(){return new At}function ki(){return Kn(document),document}var Ti=[{provide:ve,useValue:ar},{provide:Gn,useValue:Si,multi:!0},{provide:O,useFactory:ki,deps:[]}];var Mi=[{provide:qn,useValue:"root"},{provide:At,useFactory:Ri,deps:[]},{provide:Ft,useClass:vi,multi:!0,deps:[O,L,ve]},{provide:Ft,useClass:Ci,multi:!0,deps:[O]},lr,hr,dr,{provide:Wn,useExisting:lr},{provide:or,useClass:ci,deps:[]},[]];function Ai(){return new Vt(C(O))}var Vt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(C(O))},e.\u0275prov=w({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var g="primary",$e=Symbol("RouteTitle"),Zt=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function oe(n){return new Zt(n)}function Di(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.lengtht[s]===r)}else return n===e}function Sr(n){return n.length>0?n[n.length-1]:null}function B(n){return Nn(n)?n:Qn(n)?I(Promise.resolve(n)):p(n)}var Oi={exact:kr,subset:Tr},Rr={exact:Pi,subset:xi,ignored:()=>!0};function mr(n,e,i){return Oi[i.paths](n.root,e.root,i.matrixParams)&&Rr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function Pi(n,e){return N(n,e)}function kr(n,e,i){if(!Y(n.segments,e.segments)||!Je(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!kr(n.children[t],e.children[t],i))return!1;return!0}function xi(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>br(n[i],e[i]))}function Tr(n,e,i){return Mr(n,e,e.segments,i)}function Mr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Y(r,i)||e.hasChildren()||!Je(r,i,t))}else if(n.segments.length===i.length){if(!Y(n.segments,i)||!Je(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Tr(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!Y(n.segments,r)||!Je(n.segments,r,t)||!n.children[g]?!1:Mr(n.children[g],e,s,t)}}function Je(n,e,i){return e.every((t,r)=>Rr[i](n[r].parameters,t.parameters))}var F=class{constructor(e=new v([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}toString(){return Ui.serialize(this)}},v=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xe(this)}},Q=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=oe(this.parameters)),this._parameterMap}toString(){return Er(this)}};function Ni(n,e){return Y(n,e)&&n.every((i,t)=>N(i.parameters,e[t].parameters))}function Y(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function ji(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===g&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==g&&(i=i.concat(e(r,t)))}),i}var Sn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>new tt)(),providedIn:"root"});let n=e;return n})(),tt=class{parse(e){let i=new Jt(e);return new F(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${ke(e.root,!0)}`,t=zi(e.queryParams),r=typeof e.fragment=="string"?`#${Li(e.fragment)}`:"";return`${i}${t}${r}`}},Ui=new tt;function Xe(n){return n.segments.map(e=>Er(e)).join("/")}function ke(n,e){if(!n.hasChildren())return Xe(n);if(e){let i=n.children[g]?ke(n.children[g],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==g&&t.push(`${r}:${ke(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=ji(n,(t,r)=>r===g?[ke(n.children[g],!1)]:[`${r}:${ke(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[g]!=null?`${Xe(n)}/${i[0]}`:`${Xe(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qe(n){return Ar(n).replace(/%3B/gi,";")}function Li(n){return encodeURI(n)}function Yt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function et(n){return decodeURIComponent(n)}function vr(n){return et(n.replace(/\+/g,"%20"))}function Er(n){return`${Yt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Yt(e)}=${Yt(n[e])}`).join("")}function zi(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Qe(i)}=${Qe(r)}`).join("&"):`${Qe(i)}=${Qe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var _i=/^[^\/()?;#]+/;function qt(n){let e=n.match(_i);return e?e[0]:""}var Fi=/^[^\/()?;=#]+/;function Hi(n){let e=n.match(Fi);return e?e[0]:""}var Bi=/^[^=?&#]+/;function Vi(n){let e=n.match(Bi);return e?e[0]:""}var qi=/^[^&#]+/;function Ki(n){let e=n.match(qi);return e?e[0]:""}var Jt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[g]=new v(e,i)),t}parseSegment(){let e=qt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(e),new Q(et(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Hi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=qt(this.remaining);r&&(t=r,this.capture(t))}e[et(i)]=et(t)}parseQueryParam(e){let i=Vi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let a=Ki(this.remaining);a&&(t=a,this.capture(t))}let r=vr(i),s=vr(t);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=qt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new S(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=g);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[g]:new v([],a),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new S(4011,!1)}};function Dr(n){return n.segments.length>0?new v([],{[g]:n}):n}function Ir(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=Ir(r);if(t===g&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))e[a]=o;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new v(n.segments,e);return Gi(i)}function Gi(n){if(n.numberOfChildren===1&&n.children[g]){let e=n.children[g];return new v(n.segments.concat(e.segments),e.children)}return n}function le(n){return n instanceof F}function Wi(n,e,i=null,t=null){let r=Or(n);return Pr(r,e,i,t)}function Or(n){let e;function i(s){let a={};for(let u of s.children){let l=i(u);a[u.outlet]=l}let o=new v(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Dr(t);return e??r}function Pr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Kt(r,r,r,i,t);let s=Zi(e);if(s.toRoot())return Kt(r,r,new v([],{}),i,t);let a=Qi(s,r,n),o=a.processChildren?Ae(a.segmentGroup,a.index,s.commands):Nr(a.segmentGroup,a.index,s.commands);return Kt(r,a.segmentGroup,o,i,t)}function nt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Ie(n){return typeof n=="object"&&n!=null&&n.outlets}function Kt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([u,l])=>{s[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`});let a;n===e?a=i:a=xr(n,e,i);let o=Dr(Ir(a));return new F(o,s,r)}function xr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=xr(s,e,i)}),new v(n.segments,t)}var rt=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&nt(t[0]))throw new S(4003,!1);let r=t.find(Ie);if(r&&r!==Sr(t))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Zi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new rt(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([u,l])=>{o[u]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,u)=>{u==0&&o==="."||(u==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new rt(i,e,t)}var se=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Qi(n,e,i){if(n.isAbsolute)return new se(e,!0,0);if(!i)return new se(e,!1,NaN);if(i.parent===null)return new se(i,!0,0);let t=nt(n.commands[0])?0:1,r=i.segments.length-1+t;return Yi(i,r,n.numberOfDoubleDots)}function Yi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new S(4005,!1);r=t.segments.length}return new se(t,!1,r-s)}function Ji(n){return Ie(n[0])?n[0].outlets:{[g]:n}}function Nr(n,e,i){if(n||(n=new v([],{})),n.segments.length===0&&n.hasChildren())return Ae(n,e,i);let t=Xi(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==g)&&n.children[g]&&n.numberOfChildren===1&&n.children[g].segments.length===0){let s=Ae(n.children[g],e,i);return new v(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=Nr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new v(n.segments,r)}}function Xi(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let a=n.segments[r],o=i[t];if(Ie(o))break;let u=`${o}`,l=t0&&u===void 0)break;if(u&&l&&typeof l=="object"&&l.outlets===void 0){if(!wr(u,l,a))return s;t+=2}else{if(!wr(u,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function Xt(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=Xt(new v([],{}),0,t))}),e}function yr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function wr(n,e,i){return n==i.path&&N(e,i.parameters)}var Ee="imperative",D=class{constructor(e,i){this.id=e,this.url=i}},Oe=class extends D{constructor(e,i,t="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},J=class extends D{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},H=class extends D{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},X=class extends D{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},Pe=class extends D{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},it=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},en=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tn=class extends D{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},nn=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rn=class extends D{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sn=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},an=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},on=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ln=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var xe=class{},Ne=class{constructor(e){this.url=e}};var dn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ct,this.attachRef=null}},ct=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new dn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),st=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=hn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=hn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=pn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return pn(e,this._root).map(i=>i.value)}};function hn(n,e){if(n===e.value)return e;for(let i of e.children){let t=hn(n,i);if(t)return t}return null}function pn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=pn(n,i);if(t.length)return t.unshift(e),t}return[]}var T=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function ie(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var at=class extends st{constructor(e,i){super(e),this.snapshot=i,kn(this,e)}toString(){return this.snapshot.toString()}};function jr(n,e){let i=ts(n,e),t=new M([new Q("",{})]),r=new M({}),s=new M({}),a=new M({}),o=new M(""),u=new ue(t,r,a,o,s,g,e,i.root);return u.snapshot=i.root,new at(new T(u,[]),i)}function ts(n,e){let i={},t={},r={},s="",a=new je([],i,r,s,t,g,e,null,{});return new ot("",new T(a,[]))}var ue=class{constructor(e,i,t,r,s,a,o,u){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(y(l=>l[$e]))??p(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(y(e=>oe(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(y(e=>oe(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Rn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:d(d({},e.params),n.params),data:d(d({},e.data),n.data),resolve:d(d(d(d({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:d(d({},n.data),n._resolvedData??{})},r&&Lr(r)&&(t.resolve[$e]=r.title),t}var je=class{get title(){return this.data?.[$e]}constructor(e,i,t,r,s,a,o,u,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=u,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=oe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},ot=class extends st{constructor(e,i){super(i),this.url=e,kn(this,i)}toString(){return Ur(this._root)}};function kn(n,e){e.value._routerState=n,e.children.forEach(i=>kn(n,i))}function Ur(n){let e=n.children.length>0?` { ${n.children.map(Ur).join(", ")} } `:"";return`${n.value}${e}`}function Gt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,N(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),N(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),N(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function fn(n,e){let i=N(n.params,e.params)&&Ni(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||fn(n.parent,e.parent))}function Lr(n){return typeof n.title=="string"||n.title===null}var ze=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.parentContexts=f(ct),this.location=f(Zn),this.changeDetector=f(Et),this.environmentInjector=f(Be),this.inputBinder=f(Tn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,l=new gn(t,u,s.injector);this.activated=s.createComponent(o,{index:s.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Bn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Vn]});let n=e;return n})(),gn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===ue?this.route:e===ct?this.childContexts:this.parent.get(e,i)}},Tn=new E("");function ns(n,e,i){let t=Ue(n,e._root,i?i._root:void 0);return new at(t,e)}function Ue(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=rs(n,e,i);return new T(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(o=>Ue(n,o)),a}}let t=is(e.value),r=e.children.map(s=>Ue(n,s));return new T(t,r)}}function rs(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ue(n,t,r);return Ue(n,t)})}function is(n){return new ue(new M(n.url),new M(n.params),new M(n.queryParams),new M(n.fragment),new M(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function zr(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=le(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=_r(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function _r(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function ss(n){return Fr(n)&&le(n.url)}function Fr(n){return n&&n[$r]}var as=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=z({type:e,selectors:[["ng-component"]],standalone:!0,features:[_],decls:1,vars:0,template:function(r,s){r&1&&x(0,"router-outlet")},dependencies:[ze],encapsulation:2});let n=e;return n})();function os(n,e){return n.providers&&!n._injector&&(n._injector=Xn(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Mn(n){let e=n.children&&n.children.map(Mn),i=e?k(d({},n),{children:e}):d({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==g&&(i.component=as),i}function j(n){return n.outlet||g}function ls(n,e){let i=n.filter(t=>j(t)===e);return i.push(...n.filter(t=>j(t)!==e)),i}function _e(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var us=(n,e,i,t)=>y(r=>(new mn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),mn=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Gt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=ie(i);e.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],t),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let a=t.getContext(r.outlet);a&&this.deactivateChildRoutes(e,i,a.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ie(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);if(t&&t.outlet){let a=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:o})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ie(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=ie(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new cn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new ln(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Gt(r),r===s)if(r.component){let a=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,a.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let a=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),Gt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=_e(r.snapshot);a.attachRef=null,a.route=r,a.injector=o,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},lt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ae=class{constructor(e,i){this.component=e,this.route=i}};function cs(n,e,i){let t=n._root,r=e?e._root:null;return Te(t,r,i,[t.value])}function ds(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function de(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Hn(n)?n:e.get(n):t}function Te(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=ie(e);return n.children.forEach(a=>{hs(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>De(o,i.getContext(a),r)),r}function hs(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=e?e.value:null,o=i?i.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let u=ps(a,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new lt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Te(n,e,o?o.children:null,t,r):Te(n,e,i,t,r),u&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ae(o.outlet.component,a))}else a&&De(e,o,r),r.canActivateChecks.push(new lt(t)),s.component?Te(n,null,o?o.children:null,t,r):Te(n,null,i,t,r);return r}function ps(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Y(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Y(n.url,e.url)||!N(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fn(n,e)||!N(n.queryParams,e.queryParams);case"paramsChange":default:return!fn(n,e)}}function De(n,e,i){let t=ie(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?De(a,e.children.getContext(s),i):De(a,null,i):De(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ae(e.outlet.component,r)):i.canDeactivateChecks.push(new ae(null,r)):i.canDeactivateChecks.push(new ae(null,r))}function Fe(n){return typeof n=="function"}function fs(n){return typeof n=="boolean"}function gs(n){return n&&Fe(n.canLoad)}function ms(n){return n&&Fe(n.canActivate)}function vs(n){return n&&Fe(n.canActivateChild)}function ys(n){return n&&Fe(n.canDeactivate)}function ws(n){return n&&Fe(n.canMatch)}function Hr(n){return n instanceof jn||n?.name==="EmptyError"}var Ye=Symbol("INITIAL_VALUE");function ce(){return P(n=>mt(n.map(e=>e.pipe(ne(1),_n(Ye)))).pipe(y(e=>{for(let i of e)if(i!==!0){if(i===Ye)return Ye;if(i===!1||i instanceof F)return i}return!0}),ee(e=>e!==Ye),ne(1)))}function Cs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?p(k(d({},i),{guardsResult:!0})):bs(a,t,r,n).pipe(A(o=>o&&fs(o)?Ss(t,s,n,e):p(o)),y(o=>k(d({},i),{guardsResult:o})))})}function bs(n,e,i,t){return I(n).pipe(A(r=>As(r.component,r.route,i,e,t)),$(r=>r!==!0,!0))}function Ss(n,e,i,t){return I(e).pipe(ge(r=>Un(ks(r.route.parent,t),Rs(r.route,t),Ms(n,r.path,i),Ts(n,r.route,i))),$(r=>r!==!0,!0))}function Rs(n,e){return n!==null&&e&&e(new un(n)),p(!0)}function ks(n,e){return n!==null&&e&&e(new on(n)),p(!0)}function Ts(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return p(!0);let r=t.map(s=>vt(()=>{let a=_e(e)??i,o=de(s,a),u=ms(o)?o.canActivate(e,n):G(a,()=>o(e,n));return B(u).pipe($())}));return p(r).pipe(ce())}function Ms(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>ds(a)).filter(a=>a!==null).map(a=>vt(()=>{let o=a.guards.map(u=>{let l=_e(a.node)??i,c=de(u,l),h=vs(c)?c.canActivateChild(t,n):G(l,()=>c(t,n));return B(h).pipe($())});return p(o).pipe(ce())}));return p(s).pipe(ce())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let a=s.map(o=>{let u=_e(e)??r,l=de(o,u),c=ys(l)?l.canDeactivate(n,e,i,t):G(u,()=>l(n,e,i,t));return B(c).pipe($())});return p(a).pipe(ce())}function Es(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return p(!0);let s=r.map(a=>{let o=de(a,n),u=gs(o)?o.canLoad(e,i):G(n,()=>o(e,i));return B(u)});return p(s).pipe(ce(),Br(t))}function Br(n){return xn(R(e=>{if(le(e))throw zr(n,e)}),y(e=>e===!0))}function Ds(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return p(!0);let s=r.map(a=>{let o=de(a,n),u=ws(o)?o.canMatch(e,i):G(n,()=>o(e,i));return B(u)});return p(s).pipe(ce(),Br(t))}var Le=class{constructor(e){this.segmentGroup=e||null}},ut=class extends Error{constructor(e){super(),this.urlTree=e}};function re(n){return fe(new Le(n))}function Is(n){return fe(new S(4e3,!1))}function Os(n){return fe(_r(!1,3))}var vn=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return p(t);if(r.numberOfChildren>1||!r.children[g])return Is(e.redirectTo);r=r.children[g]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ut(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new F(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let o=s.substring(1);t[r]=i[o]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),a={};return Object.entries(i.children).forEach(([o,u])=>{a[o]=this.createSegmentGroup(e,u,t,r)}),new v(s,a)}createSegments(e,i,t,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},yn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ps(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=os(e,t),Ds(t,e,i,r).pipe(y(a=>a===!0?s:d({},yn)))):p(s)}function An(n,e,i){if(e.path==="**")return xs(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?d({},yn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Di)(i,n,e);if(!r)return d({},yn);let s={};Object.entries(r.posParams??{}).forEach(([o,u])=>{s[o]=u.path});let a=r.consumed.length>0?d(d({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function xs(n){return{matched:!0,parameters:n.length>0?Sr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Cr(n,e,i,t){return i.length>0&&Us(n,i,t)?{segmentGroup:new v(e,js(t,new v(i,n.children))),slicedSegments:[]}:i.length===0&&Ls(n,i,t)?{segmentGroup:new v(n.segments,Ns(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new v(n.segments,n.children),slicedSegments:i}}function Ns(n,e,i,t,r){let s={};for(let a of t)if(dt(n,i,a)&&!r[j(a)]){let o=new v([],{});s[j(a)]=o}return d(d({},r),s)}function js(n,e){let i={};i[g]=e;for(let t of n)if(t.path===""&&j(t)!==g){let r=new v([],{});i[j(t)]=r}return i}function Us(n,e,i){return i.some(t=>dt(n,e,t)&&j(t)!==g)}function Ls(n,e,i){return i.some(t=>dt(n,e,t))}function dt(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return j(n)!==t&&(t===g||!dt(e,i,n))?!1:An(e,n,i).matched}function zs(n,e,i){return e.length===0&&!n.children[i]}var wn=class{};function _s(n,e,i,t,r,s,a="emptyOnly"){return new Cn(n,e,i,t,r,a,s).recognize()}var Fs=31,Cn=class{constructor(e,i,t,r,s,a,o){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new vn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new S(4002,`'${e.segmentGroup}'`)}recognize(){let e=Cr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(y(i=>{let t=new je([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,{},g,this.rootComponentType,null,{}),r=new T(t,i),s=new ot("",r),a=Wi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(s._root,null),{state:s,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,g).pipe(te(t=>{if(t instanceof ut)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Le?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=Rn(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(y(s=>s instanceof T?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return I(r).pipe(ge(s=>{let a=t.children[s],o=ls(i,s);return this.processSegmentGroup(e,o,a,s)}),zn((s,a)=>(s.push(...a),s)),yt(null),$n(),A(s=>{if(s===null)return re(t);let a=Vr(s);return Hs(a),p(a)}))}processSegment(e,i,t,r,s,a){return I(i).pipe(ge(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(te(u=>{if(u instanceof Le)return p(null);throw u}))),$(o=>!!o),te(o=>{if(Hr(o))return zs(t,r,s)?p(new wn):re(t);throw o}))}processSegmentAgainstRoute(e,i,t,r,s,a,o){return $s(t,r,s,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,a):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,a):re(r):re(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:u,positionalParamSegments:l,remainingSegments:c}=An(i,r,s);if(!o)return re(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Fs&&(this.allowRedirects=!1));let h=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,h).pipe(A(m=>this.processSegment(e,t,i,m.concat(c),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=Ps(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(P(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(P(({routes:u})=>{let l=t._loadedInjector??e,{consumedSegments:c,remainingSegments:h,parameters:m}=o,b=new je(c,m,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Vs(t),j(t),t.component??t._loadedComponent??null,t,qs(t)),{segmentGroup:he,slicedSegments:pe}=Cr(i,c,h,u);if(pe.length===0&&he.hasChildren())return this.processChildren(l,u,he).pipe(y(V=>V===null?null:new T(b,V)));if(u.length===0&&pe.length===0)return p(new T(b,[]));let pt=j(t)===s;return this.processSegment(l,u,he,pe,pt?g:s,!0).pipe(y(V=>new T(b,V instanceof T?[V]:[])))}))):re(i)))}getChildConfig(e,i,t){return i.children?p({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?p({routes:i._loadedRoutes,injector:i._loadedInjector}):Es(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(R(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Os(i))):p({routes:[],injector:e})}};function Hs(n){n.sort((e,i)=>e.value.outlet===g?-1:i.value.outlet===g?1:e.value.outlet.localeCompare(i.value.outlet))}function Bs(n){let e=n.value.routeConfig;return e&&e.path===""}function Vr(n){let e=[],i=new Set;for(let t of n){if(!Bs(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=Vr(t.children);e.push(new T(t.value,r))}return e.filter(t=>!i.has(t))}function Vs(n){return n.data||{}}function qs(n){return n.resolve||{}}function Ks(n,e,i,t,r,s){return A(a=>_s(n,e,i,t,a.extractedUrl,r,s).pipe(y(({state:o,tree:u})=>k(d({},a),{targetSnapshot:o,urlAfterRedirects:u}))))}function Gs(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return p(i);let s=new Set(r.map(u=>u.route)),a=new Set;for(let u of s)if(!a.has(u))for(let l of qr(u))a.add(l);let o=0;return I(a).pipe(ge(u=>s.has(u)?Ws(u,t,n,e):(u.data=Rn(u,u.parent,n).resolve,p(void 0))),R(()=>o++),wt(1),A(u=>o===a.size?p(i):K))})}function qr(n){let e=n.children.map(i=>qr(i)).flat();return[n,...e]}function Ws(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!Lr(r)&&(s[$e]=r.title),Zs(s,n,e,t).pipe(y(a=>(n._resolvedData=a,n.data=Rn(n,n.parent,i).resolve,null)))}function Zs(n,e,i,t){let r=Qt(n);if(r.length===0)return p({});let s={};return I(r).pipe(A(a=>Qs(n[a],e,i,t).pipe($(),R(o=>{s[a]=o}))),wt(1),Ln(s),te(a=>Hr(a)?K:fe(a)))}function Qs(n,e,i,t){let r=_e(e)??t,s=de(n,r),a=s.resolve?s.resolve(e,i):G(r,()=>s(e,i));return B(a)}function Wt(n){return P(e=>{let i=n(e);return i?I(i).pipe(y(()=>e)):p(e)})}var Kr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(a=>a.outlet===g);return r}getResolvedTitleForRoute(t){return t.data[$e]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(Ys))(),providedIn:"root"});let n=e;return n})(),Ys=(()=>{let e=class e extends Kr{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(C(Vt))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),En=new E("",{providedIn:"root",factory:()=>({})}),Dn=new E("ROUTES"),Js=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return p(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=B(t.loadComponent()).pipe(y(Gr),R(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),He(()=>{this.componentLoaders.delete(t)})),s=new gt(r,()=>new q).pipe(ft());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return p({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=Xs(r,this.compiler,t,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),o=new gt(a,()=>new q).pipe(ft());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Xs(n,e,i,t){return B(n.loadChildren()).pipe(y(Gr),A(r=>r instanceof Jn||Array.isArray(r)?p(r):I(e.compileModuleAsync(r))),y(r=>{t&&t(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(i).injector,a=s.get(Dn,[],{optional:!0,self:!0}).flat()),{routes:a.map(Mn),injector:s}}))}function ea(n){return n&&typeof n=="object"&&"default"in n}function Gr(n){return ea(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(ta))(),providedIn:"root"});let n=e;return n})(),ta=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),na=new E("");var ra=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new q,this.transitionAbortSubject=new q,this.configLoader=f(Js),this.environmentInjector=f(Be),this.urlSerializer=f(Sn),this.rootContexts=f(ct),this.location=f(Ke),this.inputBindingEnabled=f(Tn,{optional:!0})!==null,this.titleStrategy=f(Kr),this.options=f(En,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(In),this.createViewTransition=f(na,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let t=s=>this.events.next(new sn(s)),r=s=>this.events.next(new an(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(k(d(d({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new M({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ee,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ee(a=>a.id!==0),y(a=>k(d({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),P(a=>{this.currentTransition=a;let o=!1,u=!1;return p(a).pipe(R(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?k(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),P(l=>{let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload"){let m="";return this.events.next(new X(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),K}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return p(l).pipe(P(m=>{let b=this.transitions?.getValue();return this.events.next(new Oe(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),b!==this.transitions?.getValue()?K:Promise.resolve(m)}),Ks(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(m=>{a.targetSnapshot=m.targetSnapshot,a.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation=k(d({},this.currentNavigation),{finalUrl:m.urlAfterRedirects});let b=new it(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(b)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:m,extractedUrl:b,source:he,restoredState:pe,extras:pt}=l,V=new Oe(m,this.urlSerializer.serialize(b),he,pe);this.events.next(V);let ni=jr(b,this.rootComponentType).snapshot;return this.currentTransition=a=k(d({},l),{targetSnapshot:ni,urlAfterRedirects:b,extras:k(d({},pt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=b,p(a)}else{let m="";return this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),K}}),R(l=>{let c=new en(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),y(l=>(this.currentTransition=a=k(d({},l),{guards:cs(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),Cs(this.environmentInjector,l=>this.events.next(l)),R(l=>{if(a.guardsResult=l.guardsResult,le(l.guardsResult))throw zr(this.urlSerializer,l.guardsResult);let c=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ee(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Wt(l=>{if(l.guards.canActivateChecks.length)return p(l).pipe(R(c=>{let h=new nn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),P(c=>{let h=!1;return p(c).pipe(Gs(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",2)}}))}),R(c=>{let h=new rn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),Wt(l=>{let c=h=>{let m=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&m.push(this.configLoader.loadComponent(h.routeConfig).pipe(R(b=>{h.component=b}),y(()=>{})));for(let b of h.children)m.push(...c(b));return m};return mt(c(l.targetSnapshot.root)).pipe(yt(),ne(1))}),Wt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:l,targetSnapshot:c}=a,h=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return h?I(h).pipe(y(()=>a)):p(a)}),y(l=>{let c=ns(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=k(d({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,a}),R(()=>{this.events.next(new xe)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ne(1),R({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new J(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Fn(this.transitionAbortSubject.pipe(R(l=>{throw l}))),He(()=>{if(!o&&!u){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),te(l=>{if(u=!0,Fr(l))this.events.next(new H(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),ss(l)?this.events.next(new Ne(l.url)):a.resolve(!1);else{this.events.next(new Pe(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(c){a.reject(c)}}return K}))}))}cancelNavigationTransition(t,r,s){let a=new H(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ia(n){return n!==Ee}var sa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(aa))(),providedIn:"root"});let n=e;return n})(),bn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},aa=(()=>{let e=class e extends bn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=bt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Wr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>(()=>f(oa))(),providedIn:"root"});let n=e;return n})(),oa=(()=>{let e=class e extends Wr{constructor(){super(...arguments),this.location=f(Ke),this.urlSerializer=f(Sn),this.options=f(En,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new F,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=jr(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Oe)this.stateMemento=this.createStateMemento();else if(t instanceof X)this.rawUrlTree=r.initialUrl;else if(t instanceof it){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof xe?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof H&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof Pe?this.restoreHistory(r,!0):t instanceof J&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let a=this.browserPageId,o=d(d({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=d(d({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,a=this.currentPageId-s;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=bt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Me=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Me||{});function la(n,e){n.events.pipe(ee(i=>i instanceof J||i instanceof H||i instanceof Pe||i instanceof X),y(i=>i instanceof J||i instanceof X?Me.COMPLETE:(i instanceof H?i.code===0||i.code===1:!1)?Me.REDIRECTING:Me.FAILED),ee(i=>i!==Me.REDIRECTING),ne(1)).subscribe(()=>{e()})}function ua(n){throw n}var ca={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},da={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ht=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(qe),this.stateManager=f(Wr),this.options=f(En,{optional:!0})||{},this.pendingTasks=f(er),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(ra),this.urlSerializer=f(Sn),this.location=f(Ke),this.urlHandlingStrategy=f(In),this._events=new q,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=f(sa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(Dn,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(Tn,{optional:!0}),this.eventsSubscription=new Pn,this.isNgZoneEnabled=f(L)instanceof L&&L.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof H&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof J)this.navigated=!0;else if(r instanceof Ne){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ia(s.source)};this.scheduleNavigation(o,Ee,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}pa(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)}))}navigateToSyncWithBrowser(t,r,s){let a={replaceUrl:!0},o=s?.navigationId?s:null;if(s){let l=d({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let u=this.parseUrl(t);this.scheduleNavigation(u,r,o,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Mn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:a,fragment:o,queryParamsHandling:u,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:o,h=null;switch(u){case"merge":h=d(d({},this.currentUrlTree.queryParams),a);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=a||null}h!==null&&(h=this.removeEmptyProps(h));let m;try{let b=s?s.snapshot:this.routerState.snapshot.root;m=Or(b)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),m=this.currentUrlTree.root}return Pr(m,t,h,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=le(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ee,null,r)}navigate(t,r={skipLocationChange:!1}){return ha(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=d({},ca):r===!1?s=d({},da):s=r,le(t))return mr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return mr(this.currentUrlTree,a,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return a!=null&&(r[s]=a),r},{})}scheduleNavigation(t,r,s,a,o){if(this.disposed)return Promise.resolve(!1);let u,l,c;o?(u=o.resolve,l=o.reject,c=o.promise):c=new Promise((m,b)=>{u=m,l=b});let h=this.pendingTasks.add();return la(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:u,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ha(n){for(let e=0;ei.\u0275providers)])}function ga(n){return n.routerState.root}function ma(){let n=f(Rt);return e=>{let i=n.get(Ot);if(e!==i.components[0])return;let t=n.get(ht),r=n.get(va);n.get(ya)===1&&t.initialNavigation(),n.get(wa,null,Ct.Optional)?.setUpPreloading(),n.get(fa,null,Ct.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var va=new E("",{factory:()=>new q}),ya=new E("",{providedIn:"root",factory:()=>1});var wa=new E("");var Qr=["easy","medium","hard"];function U(n){return new Map([...n.entries()].sort((e,i)=>{let t=Qr.indexOf(e[1].difficulty),r=Qr.indexOf(i[1].difficulty);return t-r}))}var Ca=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"easy",developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:"easy",developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:"easy",developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:"easy",developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:"easy",developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:"easy",developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:"easy",developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"medium",developer:"Sukomal07",tags:[],isNew:!0}]]),ba=U(Ca);var Sa=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:"easy",developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:"easy",developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:"easy",developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:"easy",developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:"easy",developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:"easy",developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:"easy",developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:"easy",developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:"easy",developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:"easy",developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:"easy",developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:"easy",developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:"easy",developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:"easy",developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:"medium",developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:"medium",developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:"medium",developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:"medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:"medium",developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:"medium",developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"medium",developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:"medium",developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:"medium",developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:"medium",developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:"medium",developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"medium",developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:"medium",developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:"medium",developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:"hard",developer:"sadanandpai",tags:[]}]]),Ra=U(Sa);var ka=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:"easy",developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:"easy",developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"easy",developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"easy",tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"easy",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"easy",developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"easy",developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"easy",developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"easy",developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"easy",developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:"easy",developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"medium",developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"medium",developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:"medium",developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"medium",developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"medium",developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"medium",developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"medium",developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"medium",developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:"medium",developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"medium",developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"medium",developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"medium",developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"medium",developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:"medium",developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"medium",developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"hard",developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"medium",developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:"medium",developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:"medium",developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"medium",developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"hard",developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"hard",developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"hard",developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:"hard",developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:"hard",developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:"easy",developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:"medium",developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:"medium",developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:"medium",developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:"medium",developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:"medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:"easy",developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:"medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}]]),Ta=U(ka);var Ma=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"easy",developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:"easy",developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:"easy",developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:"easy",developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:"easy",developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:"easy",developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:"easy",developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:"medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"medium",developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"medium",developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"medium",developer:"Shardik04",tags:[]}]]),Aa=U(Ma);var Ea=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}]]),On=U(Ea);var Yr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=Pt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=Pt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=z({type:e,selectors:[["app-navbar"]],inputs:{title:"title"},standalone:!0,features:[_],decls:11,vars:3,consts:[[1,"navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"right"],["href","https://github.com/sadanandpai/frontend-mini-challenges/","target","blank"],["src","https://cdn-icons-png.flaticon.com/512/25/25231.png","alt","github repo",1,"github"]],template:function(r,s){r&1&&(W(0,"nav",0)(1,"div",1)(2,"a",2),Dt(3," < "),Z(),W(4,"a",3),x(5,"img",4),Z()(),W(6,"h1"),Dt(7),Z(),W(8,"div",5)(9,"a",6),x(10,"img",7),Z()()()),r&2&&(Ve(2),Ce("href",s.backURL,Mt),Ve(2),Ce("href",s.homeURL,Mt),Ve(3),Yn(s.title))},styles:[".navbar[_ngcontent-%COMP%]{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%);box-shadow:0 4px 4px #0000001a}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:flex;flex-grow:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;color:#000}.navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;text-align:right}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .github[_ngcontent-%COMP%]{width:30px;height:30px;vertical-align:text-bottom}"]});let n=e;return n})();var Jr=(()=>{let e=class e{constructor(){this.title="Challenge",this.router=f(ht)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=On.get(t);r&&(this.title=r.title)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=z({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[_],decls:3,vars:1,consts:[[3,"title"],[1,"container"]],template:function(r,s){r&1&&(x(0,"app-navbar",0),W(1,"div",1),x(2,"router-outlet"),Z()),r&2&&Ce("title",s.title)},dependencies:[Yr,ze],encapsulation:2});let n=e;return n})();var Xr=[{path:"",component:Jr,children:[{path:"counter",loadComponent:()=>import("./chunk-P6JRW256.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-2GACWZDO.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-6UZ3QE7S.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-RYO7AHJW.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-QSPVKJQN.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-4P7VNLHJ.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ei={providers:[Zr(Xr),{provide:Nt,useClass:jt}]};var ti=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=z({type:e,selectors:[["app-root"]],standalone:!0,features:[_],decls:1,vars:0,template:function(r,s){r&1&&x(0,"router-outlet")},dependencies:[ze]});let n=e;return n})();gr(ti,ei).catch(n=>console.error(n)); diff --git a/docs/assets/index-cb91F9Bx.js b/docs/assets/index-qAJhlmHl.js similarity index 96% rename from docs/assets/index-cb91F9Bx.js rename to docs/assets/index-qAJhlmHl.js index a34b28658..1fbfe7545 100644 --- a/docs/assets/index-cb91F9Bx.js +++ b/docs/assets/index-qAJhlmHl.js @@ -276,7 +276,7 @@ html body { ${H4(this.passedParams)?`
`:""} - `,this.shadowRoot.appendChild(n),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:r}=vb(this);this.swiperParams=n,this.passedParams=r,delete this.swiperParams.init,this.render(),this.swiper=new cn(this.shadowRoot.querySelector(".swiper"),{...n.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...n,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const a=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;sn.includes("_")).map(n=>n.replace(/[A-Z]/g,r=>`-${r}`).replace("_","").toLowerCase())}}Cd.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(ok.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class X4 extends ik{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(ak(this.shadowRoot,G4),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const K4=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",ok),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",X4))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Cd.push(...t)});const Y4=[{id:1,name:"Dummy User 1",role:"Frontend Engineer",img:"https://avatars.githubusercontent.com/u/1111111",comment:"Great resource for learning and frontend interview preparation. It helped me to crack browser coding rounds of multiple companies"}];K4();function Q4(){return V.jsxs("section",{children:[V.jsx("h2",{id:"testimonials",className:xc.heading,children:"Testimonials"}),V.jsxs("swiper-container",{slidesPerView:2,spaceBetween:30,loop:!0,navigation:!0,pagination:{clickable:!0},modules:[ek,JP],children:[V.jsx("swiper-slide",{children:V.jsx("article",{className:xc.testimonial,children:V.jsxs("h3",{className:"text-center",children:["If you are benefited from these challenges for interviews or learning, please consider adding your testimonial by submitting the details"," ",V.jsx("a",{href:"https://forms.gle/2hJGa3foKuPctiWE7",target:"_blank",rel:"noreferrer",children:"here"})]})})}),Y4.map(t=>V.jsx(M5,{testimonial:t},t.id))]})]})}const Z4="_topBtn_1lydx_1",J4={topBtn:Z4};function sk(){const[t,e]=S.useState(!1);S.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?e(!0):e(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return t&&V.jsx("button",{className:J4.topBtn,onClick:n,children:V.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[V.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),V.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function e6(){return V.jsxs(V.Fragment,{children:[V.jsxs(Fv,{children:[V.jsx(Tu,{to:"#whyUs",children:"Why us?"}),V.jsx(Tu,{to:"#testimonials",children:"Testimonials"}),V.jsx(Tu,{to:"#contributors",children:"Contributors"}),V.jsx(qc,{to:"/leaderboard",children:"Leaderboard"})]}),V.jsxs("div",{className:Xo.container,children:[V.jsx(l_,{}),V.jsx("hr",{className:Xo.hr}),V.jsx(HN,{}),V.jsx("hr",{className:Xo.hr}),V.jsx(Q4,{}),V.jsx("hr",{className:Xo.hr}),V.jsx(jN,{}),V.jsx(GN,{}),V.jsx(sk,{})]})]})}const Td=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["sahankatta",{name:"Sahan Katta",pic:"https://avatars.githubusercontent.com/u/65811236"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["christian-lee1398",{name:"Christian Lee",pic:"https://avatars.githubusercontent.com/u/83561483"}],["Sukomal07",{name:"Sukomal Dutta",pic:"https://avatars.githubusercontent.com/u/100500478"}],["5h0ov",{name:"Shuvadipta Das",pic:"https://avatars.githubusercontent.com/u/83227649"}],["shruti-sen2004",{name:"Shruti Sen",pic:"https://avatars.githubusercontent.com/u/115914670"}],["Kushal347",{name:"Kushal Agrawal",pic:"https://avatars.githubusercontent.com/u/115914670"}],["AbhineshJha",{name:"ABHINESH KUMAR JHA",pic:"https://avatars.githubusercontent.com/u/142514166"}],["hritik",{name:"Hritik Bhattacharya",pic:"https://avatars.githubusercontent.com/u/44370586"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["VishakhaSainani",{name:"Vishakha Sainani",pic:"https://avatars.githubusercontent.com/u/113436770"}],["shivam200446",{name:"Shivam",pic:"https://avatars.githubusercontent.com/u/127589548?s=96&v=4"}],["Vivek-GuptaXCode",{name:"Vivek Kumar Gupta",pic:"https://avatars.githubusercontent.com/u/145761266"}],["CrypticRevenger",{name:"Spandan Tripathy",pic:"https://avatars.githubusercontent.com/u/128175097"}],["AckermanLevi1",{name:"Aryan Bhargava",pic:"https://avatars.githubusercontent.com/u/114604529"}],["sujitmahapatra",{name:"Sujit Mahapatra",pic:"https://avatars.githubusercontent.com/u/127632703"}],["avtech",{name:"Ayush Varshney",pic:"https://avatars.githubusercontent.com/u/97428742"}],["pranav514",{name:"Pranav",pic:"https://avatars.githubusercontent.com/u/76992202"}],["Bratajit-03",{name:"Bratajit Das",pic:"https://avatars.githubusercontent.com/u/106532791"}],["DhanushNehru",{name:"Dhanush Nehru",pic:"https://avatars.githubusercontent.com/u/22955675"}],["itsayopapi",{name:"Ayomide Hassan",pic:"https://avatars.githubusercontent.com/u/111683116"}],["srijanB7",{name:"Srijan B7",pic:"https://avatars.githubusercontent.com/u/115921421"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}],["jeevaramanathan",{name:"Jeeva Ramanathan",pic:"https://avatars.githubusercontent.com/u/64531160"}],["AbhilashMadi",{name:"Abhilash",pic:"https://avatars.githubusercontent.com/u/109837171"}],["AnkitKTrivedi",{name:"Ankit Kumar Trivedi",pic:"https://avatars.githubusercontent.com/u/38967951"}],["jaydadhaniya",{name:"Jay Dadhaniya",pic:"https://avatars.githubusercontent.com/u/24772528"}],["pankajparkar",{name:"Pankaj Parkar",pic:"https://avatars.githubusercontent.com/u/5320044"}],["bhumikkalola",{name:"Bhumik Kalola",pic:"https://avatars.githubusercontent.com/u/147032346"}],["babandakale",{name:"Baban Dakale",pic:"https://avatars.githubusercontent.com/u/142794846"}],["Manmit Tiwade",{name:"Manmit Tiwade",pic:"https://avatars.githubusercontent.com/u/112580293"}],["liza",{name:"Liza",pic:"https://avatars.githubusercontent.com/u/78140921"}],["Shardik04",{name:"Hardik Shah",pic:"https://avatars.githubusercontent.com/u/11913104"}],["Vivek7038",{name:"Vivek Chavan",pic:"https://avatars.githubusercontent.com/u/95691809"}],["codechitra",{name:"Akash Deep Chitransh",pic:"https://avatars.githubusercontent.com/u/85569078"}],["takshch",{name:"Taksh Chanana",pic:"https://avatars.githubusercontent.com/u/26649558"}],["Syamsai-Polavarapu",{name:"Syamsai Polavarapu",pic:"https://avatars.githubusercontent.com/u/25497768"}],["Akshay-Omkar",{name:"Akshay Omkar",pic:"https://avatars.githubusercontent.com/u/62467248"}],["Bateusz",{name:"Mateusz",pic:"https://avatars.githubusercontent.com/u/55596139"}],["ssudipta",{name:"Sudipta Saha",pic:"https://avatars.githubusercontent.com/u/10368983"}],["Akshat-Gupta",{name:"Akshat Gupta",pic:"https://avatars.githubusercontent.com/u/53713926"}]]);var z=(t=>(t.Easy="easy",t.Medium="medium",t.Hard="hard",t))(z||{});const wb=[z.Easy,z.Medium,z.Hard];function vl(t){return new Map([...t.entries()].sort((e,n)=>{const r=wb.indexOf(e[1].difficulty),i=wb.indexOf(n[1].difficulty);return r-i}))}function t6(t,e){if(!e||e.length===0)return t;const n=e.map(i=>i.value);return t.filter(i=>n.includes(i.developer))}function n6(t,e){return!e||e.length===0?t:t.filter(r=>r==null?void 0:r.title.toLowerCase().includes(e.toLowerCase()))}function r6(t,e){if(!e||e.length===0)return t;const n=e.map(r=>r.value);return t.filter(r=>n.includes(r.difficulty))}function i6({challenges:t,title:e,contributors:n,difficulties:r}){if((!e||e.length===0)&&(!n||n.length===0)&&(!r||r.length===0))return t;let i=n6(t,e);return i=t6(i,n),i=r6(i,r),i}const a6=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:z.Easy,developer:"sadanandpai",tags:[]}]]),lk=vl(a6),o6=new Map([["counter",{title:"Counter",link:"counter/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:z.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:z.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:z.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:z.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["dialog-popup",{title:"Dialog Popup",link:"dialog-popup/",difficulty:z.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:z.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["spinning-loader",{title:"Spinning Loader",link:"spinning-loader/",difficulty:z.Easy,developer:"DhanushNehru",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:z.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:z.Easy,developer:"pranav514",tags:[],isNew:!0}],["accordion",{title:"Accordion",link:"accordion/",difficulty:z.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:z.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["Footer",{title:"Footer",link:"Footer/",difficulty:z.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:z.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["MadStory_generator",{title:"MadStory Generator",link:"MadStory_generator/",difficulty:z.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:z.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:z.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:z.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:z.Easy,developer:"AbhineshJha",tags:[]}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:z.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:z.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:z.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:z.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:z.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:z.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:z.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:z.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:z.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:z.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:z.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:z.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:z.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:z.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:z.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:z.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:z.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:z.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}]]),uk=vl(o6),s6=new Map([["counter",{title:"Counter",link:"counter",difficulty:z.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:z.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:z.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:z.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:z.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:z.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:z.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:z.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:z.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:z.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:z.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:z.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:z.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:z.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:z.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:z.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:z.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:z.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:z.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:z.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:z.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:z.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:z.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:z.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:z.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:z.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:z.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:z.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:z.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:z.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:z.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:z.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:z.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:z.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:z.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:z.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:z.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:z.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:z.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:z.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:z.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:z.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:z.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:z.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:z.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:z.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:z.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:z.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:z.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:z.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:z.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:z.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:z.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]),ck=vl(s6),l6=new Map([["counter",{title:"Counter",link:"/counter",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:z.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:z.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:z.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:z.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:z.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:z.Medium,developer:"Shardik04",tags:[]}]]),dk=vl(l6),u6=new Map([["counter",{title:"Counter",link:"counter",difficulty:z.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),fk=vl(u6);function c6(t,e,n){e.forEach(r=>{const i=t.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):t.set(r.developer,{[n]:1,totalContributions:1})})}const d6=()=>{const t=new Map;new Map([["css",lk],["js",uk],["react",ck],["vue",dk],["angular",fk]]).forEach((i,a)=>{c6(t,i,a)});const n=new Map;t.forEach((i,a)=>{const o=Td.get(a);o&&n.set(a,{name:o==null?void 0:o.name,pic:o==null?void 0:o.pic,contributions:i,numberOfContributions:i.totalContributions,developer:a})});const r=new Map(Array.from(n.entries()).sort((i,a)=>a[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(a[1].name)));return new Map([...r.entries()])},f6="_leaderboardTableWrapper_1flea_1",p6="_leaderboardTable_1flea_1",h6="_leaderBoardTableData_1flea_31",m6="_leaderBoardContributorImg_1flea_37",g6="_userProfileImg_1flea_38",v6="_leaderBoardContributorName_1flea_46",y6="_leaderBoardHeading_1flea_50",w6="_userProfileHeading_1flea_51",b6="_profileDetailsContainer_1flea_56",S6="_profileLink_1flea_60",x6="_fontWeightNormal_1flea_68",E6="_contributionTableCell_1flea_72",C6="_techStackDiv_1flea_76",T6="_techStackImg_1flea_83",P6="_techStackDivWrapper_1flea_87",k6="_totalContributions_1flea_101",M6="_leaderboardRowContainer_1flea_125",O6="_index_1flea_131",A6="_name_1flea_139",L6="_contributions_1flea_146",ft={leaderboardTableWrapper:f6,leaderboardTable:p6,leaderBoardTableData:h6,leaderBoardContributorImg:m6,userProfileImg:g6,leaderBoardContributorName:v6,leaderBoardHeading:y6,userProfileHeading:w6,profileDetailsContainer:b6,profileLink:S6,fontWeightNormal:x6,contributionTableCell:E6,techStackDiv:C6,techStackImg:T6,techStackDivWrapper:P6,totalContributions:k6,leaderboardRowContainer:M6,index:O6,name:A6,contributions:L6};function mp(...t){return t.join(" ")}const R6=new Map([["css",cv],["js",fv],["react",pv],["vue",hv],["angular",dv]]),I6=d6(),D6=Array.from(I6.values()).map((t,e)=>V.jsxs("tr",{className:ft.leaderboardRowContainer,children:[V.jsx("td",{className:mp(ft.leaderBoardTableData,ft.index),children:e}),V.jsx("td",{className:mp(ft.leaderBoardTableData,ft.leaderBoardContributorNameTd,ft.name),children:V.jsxs("div",{className:ft.profileLink,children:[V.jsx("img",{className:ft.leaderBoardContributorImg,src:t.pic,alt:""}),V.jsx("span",{className:ft.leaderBoardContributorName,children:t.name})]})}),V.jsx("td",{className:mp(ft.leaderBoardTableData,ft.contributions),children:V.jsxs("div",{className:ft.contributionTableCell,children:[[...R6.entries()].map(([n,r])=>{const i=t.contributions[n];return i?V.jsx("div",{className:ft.techStackDiv,children:V.jsxs("div",{className:ft.techStackDivWrapper,children:[V.jsx("img",{src:r,className:ft.techStackImg}),V.jsx("div",{children:i})]})},n):null}),V.jsxs("div",{className:ft.totalContributions,children:[V.jsx("div",{children:"Total"}),V.jsx("div",{children:t.numberOfContributions})]})]})})]},t.name));function F6(){return V.jsx("div",{className:"container",children:V.jsx("div",{className:ft.leaderboardTableWrapper,children:V.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:ft.leaderboardTable,children:[V.jsx("thead",{children:V.jsxs("tr",{children:[V.jsx("td",{children:"#"}),V.jsx("td",{children:"Name"}),V.jsx("td",{children:"Contributions"})]})}),V.jsx("tbody",{children:D6})]})})})}function N6(){return V.jsxs(V.Fragment,{children:[V.jsx(Fv,{title:"Leaderboard"}),V.jsx(F6,{})]})}const _6="_avatar_1jv0o_1",V6="_avatarGroup_1jv0o_11",pk={avatar:_6,avatarGroup:V6};function j6({src:t,alt:e}){return V.jsx("img",{src:t,alt:e,className:pk.avatar})}function $6({contributorNames:t}){return V.jsx("div",{className:pk.avatarGroup,children:t.map(e=>{var r;const n=(r=Td.get(e))==null?void 0:r.pic;return n?V.jsx(j6,{src:n,alt:""},e):null}).filter(Boolean)})}const z6="_filterOptionWrapper_1lebs_1",B6="_searchInputWrapper_1lebs_8",H6="_searchInput_1lebs_8",U6="_searchIcon_1lebs_21",W6="_filterByTechWrapper_1lebs_38",G6="_activeTech_1lebs_60",q6="_emptyMessage_1lebs_64",X6="_challengeGrid_1lebs_75",K6="_challengeCard_1lebs_82",Y6="_avatarContainer_1lebs_97",Q6="_disabled_1lebs_105",Z6="_developer_1lebs_129",J6="_name_1lebs_142",eB="_medium_1lebs_145",tB="_hard_1lebs_148",$t={filterOptionWrapper:z6,searchInputWrapper:B6,searchInput:H6,searchIcon:U6,filterByTechWrapper:W6,activeTech:G6,emptyMessage:q6,challengeGrid:X6,challengeCard:K6,avatarContainer:Y6,disabled:Q6,new:"_new_1lebs_119",developer:Z6,name:J6,medium:eB,hard:tB},nB=({link:t,contributor:e,challenge:n})=>V.jsxs("a",{className:`${$t.challengeCard} ${$t[n.difficulty]}`,href:t,children:[n.isNew&&V.jsx("span",{className:$t.new,children:"New"}),V.jsxs("div",{children:[V.jsx("h3",{children:n.title}),V.jsxs("div",{className:$t.avatarContainer,children:[n.developer&&V.jsxs("div",{className:$t.developer,children:[V.jsx("img",{src:e==null?void 0:e.pic,alt:""}),V.jsx("span",{className:$t.name,children:e==null?void 0:e.name})]}),n.contributors&&V.jsx($6,{contributorNames:n.contributors})]})]})]},n.title);var rB=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function iB(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,a=t.defaultValue,o=a===void 0?null:a,l=t.inputValue,s=t.menuIsOpen,u=t.onChange,c=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,p=t.value,w=gt(t,rB),g=S.useState(l!==void 0?l:n),y=ie(g,2),h=y[0],v=y[1],m=S.useState(s!==void 0?s:i),b=ie(m,2),E=b[0],x=b[1],C=S.useState(p!==void 0?p:o),T=ie(C,2),P=T[0],O=T[1],I=S.useCallback(function(k,F){typeof u=="function"&&u(k,F),O(k)},[u]),N=S.useCallback(function(k,F){var j;typeof c=="function"&&(j=c(k,F)),v(j!==void 0?j:k)},[c]),A=S.useCallback(function(){typeof f=="function"&&f(),x(!0)},[f]),M=S.useCallback(function(){typeof d=="function"&&d(),x(!1)},[d]),R=l!==void 0?l:h,D=s!==void 0?s:E,L=p!==void 0?p:P;return H(H({},w),{},{inputValue:R,menuIsOpen:D,onChange:I,onInputChange:N,onMenuClose:M,onMenuOpen:A,value:L})}function aB(t){if(t.sheet)return t.sheet;for(var e=0;e6)switch(xt(t,e+1)){case 109:if(xt(t,e+4)!==45)break;case 102:return Ce(t,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+vc+(xt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Kh(t,"stretch")?hk(Ce(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(xt(t,e+1)!==115)break;case 6444:switch(xt(t,ir(t)-3-(~Kh(t,"!important")&&10))){case 107:return Ce(t,":",":"+Ee)+t;case 101:return Ce(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(xt(t,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+Dt+"$2box$3")+t}break;case 5936:switch(xt(t,e+11)){case 114:return Ee+t+Dt+Ce(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ee+t+Dt+Ce(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ee+t+Dt+Ce(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ee+t+Dt+t+t}return t}var hB=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Pv:e.return=hk(e.value,e.length);break;case $T:return Bi([_o(e,{value:Ce(e.value,"@","@"+Ee)})],i);case Tv:if(e.length)return lV(e.props,function(a){switch(sV(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bi([_o(e,{props:[Ce(a,/:(read-\w+)/,":"+vc+"$1")]})],i);case"::placeholder":return Bi([_o(e,{props:[Ce(a,/:(plac\w+)/,":"+Ee+"input-$1")]}),_o(e,{props:[Ce(a,/:(plac\w+)/,":"+vc+"$1")]}),_o(e,{props:[Ce(a,/:(plac\w+)/,Dt+"input-$1")]})],i)}return""})}},mB=[hB],gB=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||mB,a={},o,l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),h=1;h0},...n,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const a=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;sn.includes("_")).map(n=>n.replace(/[A-Z]/g,r=>`-${r}`).replace("_","").toLowerCase())}}Cd.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(ok.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class X4 extends ik{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(ak(this.shadowRoot,G4),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const K4=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",ok),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",X4))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Cd.push(...t)});const Y4=[{id:1,name:"Dummy User 1",role:"Frontend Engineer",img:"https://avatars.githubusercontent.com/u/1111111",comment:"Great resource for learning and frontend interview preparation. It helped me to crack browser coding rounds of multiple companies"}];K4();function Q4(){return V.jsxs("section",{children:[V.jsx("h2",{id:"testimonials",className:xc.heading,children:"Testimonials"}),V.jsxs("swiper-container",{slidesPerView:2,spaceBetween:30,loop:!0,navigation:!0,pagination:{clickable:!0},modules:[ek,JP],children:[V.jsx("swiper-slide",{children:V.jsx("article",{className:xc.testimonial,children:V.jsxs("h3",{className:"text-center",children:["If you are benefited from these challenges for interviews or learning, please consider adding your testimonial by submitting the details"," ",V.jsx("a",{href:"https://forms.gle/2hJGa3foKuPctiWE7",target:"_blank",rel:"noreferrer",children:"here"})]})})}),Y4.map(t=>V.jsx(M5,{testimonial:t},t.id))]})]})}const Z4="_topBtn_1lydx_1",J4={topBtn:Z4};function sk(){const[t,e]=S.useState(!1);S.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?e(!0):e(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return t&&V.jsx("button",{className:J4.topBtn,onClick:n,children:V.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[V.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),V.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function e6(){return V.jsxs(V.Fragment,{children:[V.jsxs(Fv,{children:[V.jsx(Tu,{to:"#whyUs",children:"Why us?"}),V.jsx(Tu,{to:"#testimonials",children:"Testimonials"}),V.jsx(Tu,{to:"#contributors",children:"Contributors"}),V.jsx(qc,{to:"/leaderboard",children:"Leaderboard"})]}),V.jsxs("div",{className:Xo.container,children:[V.jsx(l_,{}),V.jsx("hr",{className:Xo.hr}),V.jsx(HN,{}),V.jsx("hr",{className:Xo.hr}),V.jsx(Q4,{}),V.jsx("hr",{className:Xo.hr}),V.jsx(jN,{}),V.jsx(GN,{}),V.jsx(sk,{})]})]})}const Td=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["sahankatta",{name:"Sahan Katta",pic:"https://avatars.githubusercontent.com/u/65811236"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["christian-lee1398",{name:"Christian Lee",pic:"https://avatars.githubusercontent.com/u/83561483"}],["Sukomal07",{name:"Sukomal Dutta",pic:"https://avatars.githubusercontent.com/u/100500478"}],["5h0ov",{name:"Shuvadipta Das",pic:"https://avatars.githubusercontent.com/u/83227649"}],["shruti-sen2004",{name:"Shruti Sen",pic:"https://avatars.githubusercontent.com/u/115914670"}],["Kushal347",{name:"Kushal Agrawal",pic:"https://avatars.githubusercontent.com/u/115914670"}],["AbhineshJha",{name:"ABHINESH KUMAR JHA",pic:"https://avatars.githubusercontent.com/u/142514166"}],["hritik",{name:"Hritik Bhattacharya",pic:"https://avatars.githubusercontent.com/u/44370586"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["VishakhaSainani",{name:"Vishakha Sainani",pic:"https://avatars.githubusercontent.com/u/113436770"}],["shivam200446",{name:"Shivam",pic:"https://avatars.githubusercontent.com/u/127589548?s=96&v=4"}],["Vivek-GuptaXCode",{name:"Vivek Kumar Gupta",pic:"https://avatars.githubusercontent.com/u/145761266"}],["CrypticRevenger",{name:"Spandan Tripathy",pic:"https://avatars.githubusercontent.com/u/128175097"}],["AckermanLevi1",{name:"Aryan Bhargava",pic:"https://avatars.githubusercontent.com/u/114604529"}],["sujitmahapatra",{name:"Sujit Mahapatra",pic:"https://avatars.githubusercontent.com/u/127632703"}],["avtech",{name:"Ayush Varshney",pic:"https://avatars.githubusercontent.com/u/97428742"}],["pranav514",{name:"Pranav",pic:"https://avatars.githubusercontent.com/u/76992202"}],["Bratajit-03",{name:"Bratajit Das",pic:"https://avatars.githubusercontent.com/u/106532791"}],["DhanushNehru",{name:"Dhanush Nehru",pic:"https://avatars.githubusercontent.com/u/22955675"}],["itsayopapi",{name:"Ayomide Hassan",pic:"https://avatars.githubusercontent.com/u/111683116"}],["srijanB7",{name:"Srijan B7",pic:"https://avatars.githubusercontent.com/u/115921421"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}],["jeevaramanathan",{name:"Jeeva Ramanathan",pic:"https://avatars.githubusercontent.com/u/64531160"}],["AbhilashMadi",{name:"Abhilash",pic:"https://avatars.githubusercontent.com/u/109837171"}],["AnkitKTrivedi",{name:"Ankit Kumar Trivedi",pic:"https://avatars.githubusercontent.com/u/38967951"}],["jaydadhaniya",{name:"Jay Dadhaniya",pic:"https://avatars.githubusercontent.com/u/24772528"}],["pankajparkar",{name:"Pankaj Parkar",pic:"https://avatars.githubusercontent.com/u/5320044"}],["bhumikkalola",{name:"Bhumik Kalola",pic:"https://avatars.githubusercontent.com/u/147032346"}],["babandakale",{name:"Baban Dakale",pic:"https://avatars.githubusercontent.com/u/142794846"}],["Manmit Tiwade",{name:"Manmit Tiwade",pic:"https://avatars.githubusercontent.com/u/112580293"}],["liza",{name:"Liza",pic:"https://avatars.githubusercontent.com/u/78140921"}],["Shardik04",{name:"Hardik Shah",pic:"https://avatars.githubusercontent.com/u/11913104"}],["Vivek7038",{name:"Vivek Chavan",pic:"https://avatars.githubusercontent.com/u/95691809"}],["codechitra",{name:"Akash Deep Chitransh",pic:"https://avatars.githubusercontent.com/u/85569078"}],["takshch",{name:"Taksh Chanana",pic:"https://avatars.githubusercontent.com/u/26649558"}],["Syamsai-Polavarapu",{name:"Syamsai Polavarapu",pic:"https://avatars.githubusercontent.com/u/25497768"}],["Akshay-Omkar",{name:"Akshay Omkar",pic:"https://avatars.githubusercontent.com/u/62467248"}],["Bateusz",{name:"Mateusz",pic:"https://avatars.githubusercontent.com/u/55596139"}],["ssudipta",{name:"Sudipta Saha",pic:"https://avatars.githubusercontent.com/u/10368983"}],["Akshat-Gupta",{name:"Akshat Gupta",pic:"https://avatars.githubusercontent.com/u/53713926"}]]);var z=(t=>(t.Easy="easy",t.Medium="medium",t.Hard="hard",t))(z||{});const wb=[z.Easy,z.Medium,z.Hard];function vl(t){return new Map([...t.entries()].sort((e,n)=>{const r=wb.indexOf(e[1].difficulty),i=wb.indexOf(n[1].difficulty);return r-i}))}function t6(t,e){if(!e||e.length===0)return t;const n=e.map(i=>i.value);return t.filter(i=>n.includes(i.developer))}function n6(t,e){return!e||e.length===0?t:t.filter(r=>r==null?void 0:r.title.toLowerCase().includes(e.toLowerCase()))}function r6(t,e){if(!e||e.length===0)return t;const n=e.map(r=>r.value);return t.filter(r=>n.includes(r.difficulty))}function i6({challenges:t,title:e,contributors:n,difficulties:r}){if((!e||e.length===0)&&(!n||n.length===0)&&(!r||r.length===0))return t;let i=n6(t,e);return i=t6(i,n),i=r6(i,r),i}const a6=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:z.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:z.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:z.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:z.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:z.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:z.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:z.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:z.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:z.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),lk=vl(a6),o6=new Map([["counter",{title:"Counter",link:"counter/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:z.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:z.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:z.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:z.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:z.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:z.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:z.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:z.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:z.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:z.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:z.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:z.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:z.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:z.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:z.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:z.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:z.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:z.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:z.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:z.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:z.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:z.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:z.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:z.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:z.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:z.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:z.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:z.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:z.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:z.Hard,developer:"sadanandpai",tags:[]}]]),uk=vl(o6),s6=new Map([["counter",{title:"Counter",link:"counter",difficulty:z.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:z.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:z.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:z.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:z.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:z.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:z.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:z.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:z.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:z.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:z.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:z.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:z.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:z.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:z.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:z.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:z.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:z.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:z.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:z.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:z.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:z.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:z.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:z.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:z.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:z.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:z.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:z.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:z.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:z.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:z.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:z.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:z.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:z.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:z.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:z.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:z.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:z.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:z.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:z.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:z.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:z.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:z.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:z.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:z.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:z.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:z.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:z.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:z.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:z.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:z.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:z.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:z.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:z.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:z.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]),ck=vl(s6),l6=new Map([["counter",{title:"Counter",link:"/counter",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:z.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:z.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:z.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:z.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:z.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:z.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:z.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:z.Medium,developer:"Shardik04",tags:[]}]]),dk=vl(l6),u6=new Map([["counter",{title:"Counter",link:"counter",difficulty:z.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:z.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),fk=vl(u6);function c6(t,e,n){e.forEach(r=>{const i=t.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):t.set(r.developer,{[n]:1,totalContributions:1})})}const d6=()=>{const t=new Map;new Map([["css",lk],["js",uk],["react",ck],["vue",dk],["angular",fk]]).forEach((i,a)=>{c6(t,i,a)});const n=new Map;t.forEach((i,a)=>{const o=Td.get(a);o&&n.set(a,{name:o==null?void 0:o.name,pic:o==null?void 0:o.pic,contributions:i,numberOfContributions:i.totalContributions,developer:a})});const r=new Map(Array.from(n.entries()).sort((i,a)=>a[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(a[1].name)));return new Map([...r.entries()])},f6="_leaderboardTableWrapper_1flea_1",p6="_leaderboardTable_1flea_1",h6="_leaderBoardTableData_1flea_31",m6="_leaderBoardContributorImg_1flea_37",g6="_userProfileImg_1flea_38",v6="_leaderBoardContributorName_1flea_46",y6="_leaderBoardHeading_1flea_50",w6="_userProfileHeading_1flea_51",b6="_profileDetailsContainer_1flea_56",S6="_profileLink_1flea_60",x6="_fontWeightNormal_1flea_68",E6="_contributionTableCell_1flea_72",C6="_techStackDiv_1flea_76",T6="_techStackImg_1flea_83",P6="_techStackDivWrapper_1flea_87",k6="_totalContributions_1flea_101",M6="_leaderboardRowContainer_1flea_125",O6="_index_1flea_131",A6="_name_1flea_139",L6="_contributions_1flea_146",ft={leaderboardTableWrapper:f6,leaderboardTable:p6,leaderBoardTableData:h6,leaderBoardContributorImg:m6,userProfileImg:g6,leaderBoardContributorName:v6,leaderBoardHeading:y6,userProfileHeading:w6,profileDetailsContainer:b6,profileLink:S6,fontWeightNormal:x6,contributionTableCell:E6,techStackDiv:C6,techStackImg:T6,techStackDivWrapper:P6,totalContributions:k6,leaderboardRowContainer:M6,index:O6,name:A6,contributions:L6};function mp(...t){return t.join(" ")}const R6=new Map([["css",cv],["js",fv],["react",pv],["vue",hv],["angular",dv]]),I6=d6(),D6=Array.from(I6.values()).map((t,e)=>V.jsxs("tr",{className:ft.leaderboardRowContainer,children:[V.jsx("td",{className:mp(ft.leaderBoardTableData,ft.index),children:e}),V.jsx("td",{className:mp(ft.leaderBoardTableData,ft.leaderBoardContributorNameTd,ft.name),children:V.jsxs("div",{className:ft.profileLink,children:[V.jsx("img",{className:ft.leaderBoardContributorImg,src:t.pic,alt:""}),V.jsx("span",{className:ft.leaderBoardContributorName,children:t.name})]})}),V.jsx("td",{className:mp(ft.leaderBoardTableData,ft.contributions),children:V.jsxs("div",{className:ft.contributionTableCell,children:[[...R6.entries()].map(([n,r])=>{const i=t.contributions[n];return i?V.jsx("div",{className:ft.techStackDiv,children:V.jsxs("div",{className:ft.techStackDivWrapper,children:[V.jsx("img",{src:r,className:ft.techStackImg}),V.jsx("div",{children:i})]})},n):null}),V.jsxs("div",{className:ft.totalContributions,children:[V.jsx("div",{children:"Total"}),V.jsx("div",{children:t.numberOfContributions})]})]})})]},t.name));function F6(){return V.jsx("div",{className:"container",children:V.jsx("div",{className:ft.leaderboardTableWrapper,children:V.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:ft.leaderboardTable,children:[V.jsx("thead",{children:V.jsxs("tr",{children:[V.jsx("td",{children:"#"}),V.jsx("td",{children:"Name"}),V.jsx("td",{children:"Contributions"})]})}),V.jsx("tbody",{children:D6})]})})})}function N6(){return V.jsxs(V.Fragment,{children:[V.jsx(Fv,{title:"Leaderboard"}),V.jsx(F6,{})]})}const _6="_avatar_1jv0o_1",V6="_avatarGroup_1jv0o_11",pk={avatar:_6,avatarGroup:V6};function j6({src:t,alt:e}){return V.jsx("img",{src:t,alt:e,className:pk.avatar})}function $6({contributorNames:t}){return V.jsx("div",{className:pk.avatarGroup,children:t.map(e=>{var r;const n=(r=Td.get(e))==null?void 0:r.pic;return n?V.jsx(j6,{src:n,alt:""},e):null}).filter(Boolean)})}const z6="_filterOptionWrapper_1lebs_1",B6="_searchInputWrapper_1lebs_8",H6="_searchInput_1lebs_8",U6="_searchIcon_1lebs_21",W6="_filterByTechWrapper_1lebs_38",G6="_activeTech_1lebs_60",q6="_emptyMessage_1lebs_64",X6="_challengeGrid_1lebs_75",K6="_challengeCard_1lebs_82",Y6="_avatarContainer_1lebs_97",Q6="_disabled_1lebs_105",Z6="_developer_1lebs_129",J6="_name_1lebs_142",eB="_medium_1lebs_145",tB="_hard_1lebs_148",$t={filterOptionWrapper:z6,searchInputWrapper:B6,searchInput:H6,searchIcon:U6,filterByTechWrapper:W6,activeTech:G6,emptyMessage:q6,challengeGrid:X6,challengeCard:K6,avatarContainer:Y6,disabled:Q6,new:"_new_1lebs_119",developer:Z6,name:J6,medium:eB,hard:tB},nB=({link:t,contributor:e,challenge:n})=>V.jsxs("a",{className:`${$t.challengeCard} ${$t[n.difficulty]}`,href:t,children:[n.isNew&&V.jsx("span",{className:$t.new,children:"New"}),V.jsxs("div",{children:[V.jsx("h3",{children:n.title}),V.jsxs("div",{className:$t.avatarContainer,children:[n.developer&&V.jsxs("div",{className:$t.developer,children:[V.jsx("img",{src:e==null?void 0:e.pic,alt:""}),V.jsx("span",{className:$t.name,children:e==null?void 0:e.name})]}),n.contributors&&V.jsx($6,{contributorNames:n.contributors})]})]})]},n.title);var rB=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function iB(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,a=t.defaultValue,o=a===void 0?null:a,l=t.inputValue,s=t.menuIsOpen,u=t.onChange,c=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,p=t.value,w=gt(t,rB),g=S.useState(l!==void 0?l:n),y=ie(g,2),h=y[0],v=y[1],m=S.useState(s!==void 0?s:i),b=ie(m,2),E=b[0],x=b[1],C=S.useState(p!==void 0?p:o),T=ie(C,2),P=T[0],O=T[1],I=S.useCallback(function(k,F){typeof u=="function"&&u(k,F),O(k)},[u]),N=S.useCallback(function(k,F){var j;typeof c=="function"&&(j=c(k,F)),v(j!==void 0?j:k)},[c]),A=S.useCallback(function(){typeof f=="function"&&f(),x(!0)},[f]),M=S.useCallback(function(){typeof d=="function"&&d(),x(!1)},[d]),R=l!==void 0?l:h,D=s!==void 0?s:E,L=p!==void 0?p:P;return H(H({},w),{},{inputValue:R,menuIsOpen:D,onChange:I,onInputChange:N,onMenuClose:M,onMenuOpen:A,value:L})}function aB(t){if(t.sheet)return t.sheet;for(var e=0;e6)switch(xt(t,e+1)){case 109:if(xt(t,e+4)!==45)break;case 102:return Ce(t,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+vc+(xt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Kh(t,"stretch")?hk(Ce(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(xt(t,e+1)!==115)break;case 6444:switch(xt(t,ir(t)-3-(~Kh(t,"!important")&&10))){case 107:return Ce(t,":",":"+Ee)+t;case 101:return Ce(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(xt(t,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+Dt+"$2box$3")+t}break;case 5936:switch(xt(t,e+11)){case 114:return Ee+t+Dt+Ce(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ee+t+Dt+Ce(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ee+t+Dt+Ce(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ee+t+Dt+t+t}return t}var hB=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Pv:e.return=hk(e.value,e.length);break;case $T:return Bi([_o(e,{value:Ce(e.value,"@","@"+Ee)})],i);case Tv:if(e.length)return lV(e.props,function(a){switch(sV(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bi([_o(e,{props:[Ce(a,/:(read-\w+)/,":"+vc+"$1")]})],i);case"::placeholder":return Bi([_o(e,{props:[Ce(a,/:(plac\w+)/,":"+Ee+"input-$1")]}),_o(e,{props:[Ce(a,/:(plac\w+)/,":"+vc+"$1")]}),_o(e,{props:[Ce(a,/:(plac\w+)/,Dt+"input-$1")]})],i)}return""})}},mB=[hB],gB=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||mB,a={},o,l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),h=1;h Frontend Mini Challenges - + diff --git a/docs/javascript/assets/header-BV02bT_J.js b/docs/javascript/assets/header-V_WlNcet.js similarity index 95% rename from docs/javascript/assets/header-BV02bT_J.js rename to docs/javascript/assets/header-V_WlNcet.js index 85d5ce2aa..1bcda484a 100644 --- a/docs/javascript/assets/header-BV02bT_J.js +++ b/docs/javascript/assets/header-V_WlNcet.js @@ -1 +1 @@ -import{j as d}from"./navbar-Dp-2B13D.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; +import{j as d}from"./navbar-MlIeMpk0.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; diff --git a/docs/javascript/assets/index--gv0YqRY.js b/docs/javascript/assets/index--gv0YqRY.js deleted file mode 100644 index d27c7df29..000000000 --- a/docs/javascript/assets/index--gv0YqRY.js +++ /dev/null @@ -1 +0,0 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); diff --git a/docs/javascript/assets/index-1cs4qU3O.css b/docs/javascript/assets/index-1cs4qU3O.css deleted file mode 100644 index dbcee25a0..000000000 --- a/docs/javascript/assets/index-1cs4qU3O.css +++ /dev/null @@ -1 +0,0 @@ -.star-container{display:flex;flex-wrap:wrap;justify-content:center;font-size:3rem;gap:10px;margin-bottom:1rem}.star{position:relative;-webkit-user-select:none;user-select:none}.star-filled:before{content:"★";position:absolute;left:0;right:0;color:gold}.star-partial{position:absolute;left:0;top:0;overflow:hidden;color:gold;align-self:flex-start;width:0%}#range{width:100%;margin-top:1rem}@media screen and (min-width: 768px){#range{width:50%}} diff --git a/docs/javascript/assets/index-9n35bGLm.js b/docs/javascript/assets/index-1iLvaazD.js similarity index 97% rename from docs/javascript/assets/index-9n35bGLm.js rename to docs/javascript/assets/index-1iLvaazD.js index c45eb683a..56304a263 100644 --- a/docs/javascript/assets/index-9n35bGLm.js +++ b/docs/javascript/assets/index-1iLvaazD.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const h=["January","February","March","April","May","June","July","August","September","October","November","December"],D=["S","M","T","W","T","F","S"],C=()=>{const e=document.createDocumentFragment();return h.map(n=>{const a=document.createElement("option");a.textContent=n,e.appendChild(a)}),e},F=(e=proxy.today)=>{const n=document.createDocumentFragment(),a=e.getFullYear();for(let o=a-100;o{const n=document.createDocumentFragment();return D.map(a=>{const o=document.createElement(e);o.textContent=a,n.appendChild(o)}),n},E=(e,n)=>{const a=document.createDocumentFragment(),o=new Date(n,e,1).getDay(),m=new Date(n,e+1,0).getDate();for(let c=0;c{const n=C();l.appendChild(n),l.selectedIndex=e.getMonth();const a=F(e);u.appendChild(a),u.selectedIndex=100},Y=()=>{p.innerHTML="",p.appendChild(x("span"))},q=(e=t.month,n=t.year)=>{l.selectedIndex=e,u.value=n},g=(e=t.today)=>{var o;const n=E(t.month,t.year);r.innerHTML="",r.appendChild(n),e.getMonth()===l.selectedIndex&&e.getFullYear()===+u.value?r.classList.add("current-month"):r.classList.remove("current-month"),(o=r.querySelector(`.date-${e.getDate()}`))==null||o.classList.add("today")},w=()=>{q(),g()},i=()=>{var e,n;(e=r.querySelector(".selected"))==null||e.classList.remove("selected"),(n=r.querySelector(`.date-${t.selectedDate.getDate()}`))==null||n.classList.add("selected"),v.textContent=t.selectedDate.toDateString()};S.addEventListener("click",()=>{const e=new Date(t.year,t.month,0);e.getFullYear(){const e=new Date(t.year,t.month+1,1);e.getFullYear()>=t.today.getFullYear()+10||e&&(t.month=e.getMonth(),t.year=e.getFullYear())});l.addEventListener("change",()=>t.month=l.selectedIndex);u.addEventListener("change",()=>t.year=+u.value);M.addEventListener("click",()=>{t.month=t.today.getMonth(),t.year=t.today.getFullYear()});r.addEventListener("click",e=>{e.target.className.includes("date")&&(t.selectedDate=e.target.textContent)});L();Y();g();i(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const h=["January","February","March","April","May","June","July","August","September","October","November","December"],D=["S","M","T","W","T","F","S"],C=()=>{const e=document.createDocumentFragment();return h.map(n=>{const a=document.createElement("option");a.textContent=n,e.appendChild(a)}),e},F=(e=proxy.today)=>{const n=document.createDocumentFragment(),a=e.getFullYear();for(let o=a-100;o{const n=document.createDocumentFragment();return D.map(a=>{const o=document.createElement(e);o.textContent=a,n.appendChild(o)}),n},E=(e,n)=>{const a=document.createDocumentFragment(),o=new Date(n,e,1).getDay(),m=new Date(n,e+1,0).getDate();for(let c=0;c{const n=C();l.appendChild(n),l.selectedIndex=e.getMonth();const a=F(e);u.appendChild(a),u.selectedIndex=100},Y=()=>{p.innerHTML="",p.appendChild(x("span"))},q=(e=t.month,n=t.year)=>{l.selectedIndex=e,u.value=n},g=(e=t.today)=>{var o;const n=E(t.month,t.year);r.innerHTML="",r.appendChild(n),e.getMonth()===l.selectedIndex&&e.getFullYear()===+u.value?r.classList.add("current-month"):r.classList.remove("current-month"),(o=r.querySelector(`.date-${e.getDate()}`))==null||o.classList.add("today")},w=()=>{q(),g()},i=()=>{var e,n;(e=r.querySelector(".selected"))==null||e.classList.remove("selected"),(n=r.querySelector(`.date-${t.selectedDate.getDate()}`))==null||n.classList.add("selected"),v.textContent=t.selectedDate.toDateString()};S.addEventListener("click",()=>{const e=new Date(t.year,t.month,0);e.getFullYear(){const e=new Date(t.year,t.month+1,1);e.getFullYear()>=t.today.getFullYear()+10||e&&(t.month=e.getMonth(),t.year=e.getFullYear())});l.addEventListener("change",()=>t.month=l.selectedIndex);u.addEventListener("change",()=>t.year=+u.value);M.addEventListener("click",()=>{t.month=t.today.getMonth(),t.year=t.today.getFullYear()});r.addEventListener("click",e=>{e.target.className.includes("date")&&(t.selectedDate=e.target.textContent)});L();Y();g();i(); diff --git a/docs/javascript/assets/index-e4n4dTEq.js b/docs/javascript/assets/index-1nkAPeEg.js similarity index 97% rename from docs/javascript/assets/index-e4n4dTEq.js rename to docs/javascript/assets/index-1nkAPeEg.js index d1f37b34c..e23922505 100644 --- a/docs/javascript/assets/index-e4n4dTEq.js +++ b/docs/javascript/assets/index-1nkAPeEg.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const h=["JS","HTML","CSS","TS"],d=["React","Angular","Vue","Svelte"],r=document.querySelector(".left-section"),m=document.querySelector(".right-section"),a=document.querySelector(".move-all-left"),E=document.querySelector(".move-left"),u=document.querySelector(".move-right"),v=document.querySelector(".move-all-right");class S{constructor({leftSectionEl:e,rightSectionEl:t,moveAllLeftButton:i,moveLeftButton:l,moveRightButton:o,moveAllRightButton:n,leftItems:c,rightItems:s}){this.leftSectionEl=e,this.rightSectionEl=t,this.moveAllLeftButton=i,this.moveLeftButton=l,this.moveRightButton=o,this.moveAllRightButton=n,this.leftItems=c,this.rightItems=s,this.populate(),this.setState(),this.addEventListeners()}populate(){this.leftItems.forEach(e=>this.leftSectionEl.appendChild(this.createElement(e))),this.rightItems.forEach(e=>this.rightSectionEl.appendChild(this.createElement(e)))}createElement(e){const t=document.createElement("div"),i=document.createElement("input");i.type="checkbox",i.id=e;const l=document.createElement("label");return l.htmlFor=e,l.textContent=e,t.appendChild(i),t.appendChild(l),t}setState(){this.moveAllLeftButton.disabled=!this.rightSectionEl.childElementCount,this.moveLeftButton.disabled=!this.rightSectionEl.querySelector("input:checked"),this.moveRightButton.disabled=!this.leftSectionEl.querySelector("input:checked"),this.moveAllRightButton.disabled=!this.leftSectionEl.childElementCount}addEventListeners(){this.leftSectionEl.addEventListener("click",this.setState.bind(this)),this.rightSectionEl.addEventListener("click",this.setState.bind(this)),this.moveAllLeftButton.addEventListener("click",()=>{this.moveAllLeft(),this.setState()}),this.moveLeftButton.addEventListener("click",()=>{this.moveLeft(),this.setState()}),this.moveRightButton.addEventListener("click",()=>{this.moveRight(),this.setState()}),this.moveAllRightButton.addEventListener("click",()=>{this.moveAllRight(),this.setState()})}moveAllLeft(){this.rightSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.leftSectionEl.appendChild(i)})}moveLeft(){this.rightSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.leftSectionEl.appendChild(i)})}moveRight(){this.leftSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.rightSectionEl.appendChild(i)})}moveAllRight(){this.leftSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.rightSectionEl.appendChild(i)})}}new S({leftSectionEl:r,rightSectionEl:m,moveAllLeftButton:a,moveLeftButton:E,moveRightButton:u,moveAllRightButton:v,leftItems:h,rightItems:d}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const h=["JS","HTML","CSS","TS"],d=["React","Angular","Vue","Svelte"],r=document.querySelector(".left-section"),m=document.querySelector(".right-section"),a=document.querySelector(".move-all-left"),E=document.querySelector(".move-left"),u=document.querySelector(".move-right"),v=document.querySelector(".move-all-right");class S{constructor({leftSectionEl:e,rightSectionEl:t,moveAllLeftButton:i,moveLeftButton:l,moveRightButton:o,moveAllRightButton:n,leftItems:c,rightItems:s}){this.leftSectionEl=e,this.rightSectionEl=t,this.moveAllLeftButton=i,this.moveLeftButton=l,this.moveRightButton=o,this.moveAllRightButton=n,this.leftItems=c,this.rightItems=s,this.populate(),this.setState(),this.addEventListeners()}populate(){this.leftItems.forEach(e=>this.leftSectionEl.appendChild(this.createElement(e))),this.rightItems.forEach(e=>this.rightSectionEl.appendChild(this.createElement(e)))}createElement(e){const t=document.createElement("div"),i=document.createElement("input");i.type="checkbox",i.id=e;const l=document.createElement("label");return l.htmlFor=e,l.textContent=e,t.appendChild(i),t.appendChild(l),t}setState(){this.moveAllLeftButton.disabled=!this.rightSectionEl.childElementCount,this.moveLeftButton.disabled=!this.rightSectionEl.querySelector("input:checked"),this.moveRightButton.disabled=!this.leftSectionEl.querySelector("input:checked"),this.moveAllRightButton.disabled=!this.leftSectionEl.childElementCount}addEventListeners(){this.leftSectionEl.addEventListener("click",this.setState.bind(this)),this.rightSectionEl.addEventListener("click",this.setState.bind(this)),this.moveAllLeftButton.addEventListener("click",()=>{this.moveAllLeft(),this.setState()}),this.moveLeftButton.addEventListener("click",()=>{this.moveLeft(),this.setState()}),this.moveRightButton.addEventListener("click",()=>{this.moveRight(),this.setState()}),this.moveAllRightButton.addEventListener("click",()=>{this.moveAllRight(),this.setState()})}moveAllLeft(){this.rightSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.leftSectionEl.appendChild(i)})}moveLeft(){this.rightSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.leftSectionEl.appendChild(i)})}moveRight(){this.leftSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.rightSectionEl.appendChild(i)})}moveAllRight(){this.leftSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.rightSectionEl.appendChild(i)})}}new S({leftSectionEl:r,rightSectionEl:m,moveAllLeftButton:a,moveLeftButton:E,moveRightButton:u,moveAllRightButton:v,leftItems:h,rightItems:d}); diff --git a/docs/javascript/assets/index-2ZlcrEWv.css b/docs/javascript/assets/index-2ZlcrEWv.css deleted file mode 100644 index aa1ab731e..000000000 --- a/docs/javascript/assets/index-2ZlcrEWv.css +++ /dev/null @@ -1 +0,0 @@ -.gradient{display:flex;gap:30px;justify-content:center;align-items:center}.controlls{position:relative;min-width:500px;min-height:400px;border-radius:10px;border:1px solid #ccc;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:space-around}.slider-container{position:relative!important;width:100%;display:flex;justify-content:space-between;align-items:center}.leftButton{position:absolute;top:50%;width:30px;height:30px;background-color:#fff;border-radius:50%;box-shadow:#00000026 0 0 0 1px,#0000000d 0 10px 10px -5px,inset #fff 0 0 0 6px;cursor:-webkit-grab;transition:border .15s ease,box-shadow .15s ease;z-index:2;display:flex;align-items:center;justify-content:center;transform:translate3d(0,-50%,0)}.leftButton>span{width:15px;height:15px;display:flex;border-radius:50%}.slider{width:100%;height:12px;border-radius:10px}.rightButton{position:absolute;top:50%;width:30px;height:30px;background-color:#fff;border-radius:50%;box-shadow:#00000026 0 0 0 1px,#0000000d 0 10px 10px -5px,inset #fff 0 0 0 6px;cursor:-webkit-grab;transition:border .15s ease,box-shadow .15s ease;z-index:2;display:flex;align-items:center;justify-content:center}.rightButton>span{width:15px;height:15px;display:flex;border-radius:50%}.active{box-shadow:#06f 0 0 0 1px,#0000000d 0 10px 10px -5px,inset #fff 0 0 0 6px;z-index:3}.input-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:30px;width:100%}.input-group>div{display:flex;flex-direction:column;gap:20px}.input-group>div>label{font-weight:500}.input-group>div>input{width:100%;padding:0 14px;height:45px;box-shadow:inset #d8d8da 0 0 0 1px,inset #fff 0 0 0 100px!important;border:none;font-size:15px;border-radius:10px;text-align:center;text-transform:uppercase}.input-group>div>select{width:100%;padding:0 14px;height:45px;border:none;font-size:15px;border-radius:10px;box-shadow:inset #d8d8da 0 0 0 1px;text-align:left;cursor:pointer}.buttons{width:100%;display:flex;justify-content:center;gap:30px}.buttons>button{width:100%;height:45px;border:none;border-radius:10px;box-shadow:inset #d8d8da 0 0 0 1px;background:transparent;font-size:15px;font-weight:700;cursor:pointer}.buttons .copyBtn{background:#0066ff;color:#fff}.preview{position:relative;min-width:500px;min-height:400px;border-radius:10px;box-shadow:inset #00000013 0 0 0 1px}.preview .full-screen{width:20px;height:20px;position:absolute;top:6%;right:4%;cursor:pointer}.full-screenImg{width:20px;height:20px}.close{display:none;position:absolute;top:5%;right:5%;cursor:pointer}.closeImg{width:40px;height:40px}.full-screen-mode{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100}@media only screen and (max-width: 900px){.title{font-size:25px}.gradient{flex-direction:column}.controlls{min-width:90%;gap:30px}.preview{min-width:90%;margin-bottom:20px}} diff --git a/docs/javascript/assets/index-alBh_9tg.js b/docs/javascript/assets/index-2s5LAoFj.js similarity index 88% rename from docs/javascript/assets/index-alBh_9tg.js rename to docs/javascript/assets/index-2s5LAoFj.js index a85a56a47..6421856c4 100644 --- a/docs/javascript/assets/index-alBh_9tg.js +++ b/docs/javascript/assets/index-2s5LAoFj.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const c=document.getElementById("increment"),a=document.getElementById("decrement"),e=document.getElementById("changeBy"),d=document.getElementById("reset"),t=document.querySelector(".value");c.addEventListener("click",()=>{t.textContent=+t.textContent+e.valueAsNumber});a.addEventListener("click",()=>{t.textContent=parseInt(t.textContent)-parseInt(e.value)});e.addEventListener("change",()=>{const n=e.valueAsNumber;(Number.isNaN(n)||n<0)&&(e.value=1)});d.addEventListener("click",()=>{t.textContent=0}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const c=document.getElementById("increment"),a=document.getElementById("decrement"),e=document.getElementById("changeBy"),d=document.getElementById("reset"),t=document.querySelector(".value");c.addEventListener("click",()=>{t.textContent=+t.textContent+e.valueAsNumber});a.addEventListener("click",()=>{t.textContent=parseInt(t.textContent)-parseInt(e.value)});e.addEventListener("change",()=>{const n=e.valueAsNumber;(Number.isNaN(n)||n<0)&&(e.value=1)});d.addEventListener("click",()=>{t.textContent=0}); diff --git a/docs/javascript/assets/index-IMSr9Pfj.js b/docs/javascript/assets/index-2xTdXh47.js similarity index 99% rename from docs/javascript/assets/index-IMSr9Pfj.js rename to docs/javascript/assets/index-2xTdXh47.js index 3ab17cbb5..e1fdf0eba 100644 --- a/docs/javascript/assets/index-IMSr9Pfj.js +++ b/docs/javascript/assets/index-2xTdXh47.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";var r=document.querySelectorAll("textarea")[0],L=document.querySelector("#characterCount"),g=document.querySelector("#wordCount"),w=document.querySelector("#sentenceCount"),m=document.querySelector("#paragraphCount"),u=document.querySelector("#readingTime"),l=document.querySelector("#readability"),f=document.querySelectorAll(".keywords")[0],v=document.querySelector("#topKeywords");r.addEventListener("keyup",function(){console.clear(),L.innerHTML=r.value.length;var e=r.value.match(/\b[-?(\w+)?]+\b/gi);if(e?g.innerHTML=e.length:g.innerHTML=0,e){var h=r.value.split(/[.|!|?]+/g);console.log(h),w.innerHTML=h.length-1}else w.innerHTML=0;if(e){var a=r.value.replace(/\n$/gm,"").split(/\n/);m.innerHTML=a.length}else m.innerHTML=0;if(e){var n=Math.floor(e.length*60/275);if(n>59){var d=Math.floor(n/60);n=n-d*60,u.innerHTML=d+"m "+n+"s"}else u.innerHTML=n+"s"}else u.innerHTML="0s";if(e){for(var o=[],p=["a","able","about","above","abst","accordance","according","accordingly","across","act","actually","added","adj","affected","affecting","affects","after","afterwards","again","against","ah","all","almost","alone","along","already","also","although","always","am","among","amongst","an","and","announce","another","any","anybody","anyhow","anymore","anyone","anything","anyway","anyways","anywhere","apparently","approximately","are","aren","arent","arise","around","as","aside","ask","asking","at","auth","available","away","awfully","b","back","be","became","because","become","becomes","becoming","been","before","beforehand","begin","beginning","beginnings","begins","behind","being","believe","below","beside","besides","between","beyond","biol","both","brief","briefly","but","by","c","ca","came","can","cannot","can't","cause","causes","certain","certainly","co","com","come","comes","contain","containing","contains","could","couldnt","d","date","did","didn't","different","do","does","doesn't","doing","done","don't","down","downwards","due","during","e","each","ed","edu","effect","eg","eight","eighty","either","else","elsewhere","end","ending","enough","especially","et","et-al","etc","even","ever","every","everybody","everyone","everything","everywhere","ex","except","f","far","few","ff","fifth","first","five","fix","followed","following","follows","for","former","formerly","forth","found","four","from","further","furthermore","g","gave","get","gets","getting","give","given","gives","giving","go","goes","gone","got","gotten","h","had","happens","hardly","has","hasn't","have","haven't","having","he","hed","hence","her","here","hereafter","hereby","herein","heres","hereupon","hers","herself","hes","hi","hid","him","himself","his","hither","home","how","howbeit","however","hundred","i","id","ie","if","i'll","im","immediate","immediately","importance","important","in","inc","indeed","index","information","instead","into","invention","inward","is","isn't","it","itd","it'll","its","itself","i've","j","just","k","keep","keeps","kept","kg","km","know","known","knows","l","largely","last","lately","later","latter","latterly","least","less","lest","let","lets","like","liked","likely","line","little","'ll","look","looking","looks","ltd","m","made","mainly","make","makes","many","may","maybe","me","mean","means","meantime","meanwhile","merely","mg","might","million","miss","ml","more","moreover","most","mostly","mr","mrs","much","mug","must","my","myself","n","na","name","namely","nay","nd","near","nearly","necessarily","necessary","need","needs","neither","never","nevertheless","new","next","nine","ninety","no","nobody","non","none","nonetheless","noone","nor","normally","nos","not","noted","nothing","now","nowhere","o","obtain","obtained","obviously","of","off","often","oh","ok","okay","old","omitted","on","once","one","ones","only","onto","or","ord","other","others","otherwise","ought","our","ours","ourselves","out","outside","over","overall","owing","own","p","page","pages","part","particular","particularly","past","per","perhaps","placed","please","plus","poorly","possible","possibly","potentially","pp","predominantly","present","previously","primarily","probably","promptly","proud","provides","put","q","que","quickly","quite","qv","r","ran","rather","rd","re","readily","really","recent","recently","ref","refs","regarding","regardless","regards","related","relatively","research","respectively","resulted","resulting","results","right","run","s","said","same","saw","say","saying","says","sec","section","see","seeing","seem","seemed","seeming","seems","seen","self","selves","sent","seven","several","shall","she","shed","she'll","shes","should","shouldn't","show","showed","shown","showns","shows","significant","significantly","similar","similarly","since","six","slightly","so","some","somebody","somehow","someone","somethan","something","sometime","sometimes","somewhat","somewhere","soon","sorry","specifically","specified","specify","specifying","still","stop","strongly","sub","substantially","successfully","such","sufficiently","suggest","sup","sure","t","take","taken","taking","tell","tends","th","than","thank","thanks","thanx","that","that'll","thats","that've","the","their","theirs","them","themselves","then","thence","there","thereafter","thereby","thered","therefore","therein","there'll","thereof","therere","theres","thereto","thereupon","there've","these","they","theyd","they'll","theyre","they've","think","this","those","thou","though","thoughh","thousand","throug","through","throughout","thru","thus","til","tip","to","together","too","took","toward","towards","tried","tries","truly","try","trying","ts","twice","two","u","un","under","unfortunately","unless","unlike","unlikely","until","unto","up","upon","ups","us","use","used","useful","usefully","usefulness","uses","using","usually","v","value","various","'ve","very","via","viz","vol","vols","vs","w","want","wants","was","wasn't","way","we","wed","welcome","we'll","went","were","weren't","we've","what","whatever","what'll","whats","when","whence","whenever","where","whereafter","whereas","whereby","wherein","wheres","whereupon","wherever","whether","which","while","whim","whither","who","whod","whoever","whole","who'll","whom","whomever","whos","whose","why","widely","willing","wish","with","within","without","won't","words","world","would","wouldn't","www","x","y","yes","yet","you","youd","you'll","your","youre","yours","yourself","yourselves","you've","z","zero"],t=0;t"+s[t][0]+": "+s[t][1],v.appendChild(c)}}e?f.style.display="block":f.style.display="none"});l.addEventListener("click",function(){l.innerHTML="Fetching score...";var e="https://ipeirotis-readability-metrics.p.mashape.com/getReadabilityMetrics?text=",h=r.value,a=new XMLHttpRequest;a.open("POST",encodeURI(e+h),!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Mashape-Authorization","PQ4FOFuaR6mshI6qpnQKQvkDZQXjp1o6Zcqjsnug7GvNggTzUE"),a.send(),a.onload=function(){this.status>=200&&this.status<400?l.innerHTML=T(JSON.parse(this.response).FLESCH_READING):l.innerHTML="Not available."},a.onerror=function(){l.innerHTML="Not available."}});function T(e){switch(!0){case e<=30:return"Readability: College graduate.";case(e>30&&e<=50):return"Readability: College level.";case(e>50&&e<=60):return"Readability: 10th - 12th grade.";case(e>60&&e<=70):return"Readability: 8th - 9th grade.";case(e>70&&e<=80):return"Readability: 7th grade.";case(e>80&&e<=90):return"Readability: 6th grade.";case(e>90&&e<=100):return"Readability: 5th grade.";default:return"Not available."}} +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";var r=document.querySelectorAll("textarea")[0],L=document.querySelector("#characterCount"),g=document.querySelector("#wordCount"),w=document.querySelector("#sentenceCount"),m=document.querySelector("#paragraphCount"),u=document.querySelector("#readingTime"),l=document.querySelector("#readability"),f=document.querySelectorAll(".keywords")[0],v=document.querySelector("#topKeywords");r.addEventListener("keyup",function(){console.clear(),L.innerHTML=r.value.length;var e=r.value.match(/\b[-?(\w+)?]+\b/gi);if(e?g.innerHTML=e.length:g.innerHTML=0,e){var h=r.value.split(/[.|!|?]+/g);console.log(h),w.innerHTML=h.length-1}else w.innerHTML=0;if(e){var a=r.value.replace(/\n$/gm,"").split(/\n/);m.innerHTML=a.length}else m.innerHTML=0;if(e){var n=Math.floor(e.length*60/275);if(n>59){var d=Math.floor(n/60);n=n-d*60,u.innerHTML=d+"m "+n+"s"}else u.innerHTML=n+"s"}else u.innerHTML="0s";if(e){for(var o=[],p=["a","able","about","above","abst","accordance","according","accordingly","across","act","actually","added","adj","affected","affecting","affects","after","afterwards","again","against","ah","all","almost","alone","along","already","also","although","always","am","among","amongst","an","and","announce","another","any","anybody","anyhow","anymore","anyone","anything","anyway","anyways","anywhere","apparently","approximately","are","aren","arent","arise","around","as","aside","ask","asking","at","auth","available","away","awfully","b","back","be","became","because","become","becomes","becoming","been","before","beforehand","begin","beginning","beginnings","begins","behind","being","believe","below","beside","besides","between","beyond","biol","both","brief","briefly","but","by","c","ca","came","can","cannot","can't","cause","causes","certain","certainly","co","com","come","comes","contain","containing","contains","could","couldnt","d","date","did","didn't","different","do","does","doesn't","doing","done","don't","down","downwards","due","during","e","each","ed","edu","effect","eg","eight","eighty","either","else","elsewhere","end","ending","enough","especially","et","et-al","etc","even","ever","every","everybody","everyone","everything","everywhere","ex","except","f","far","few","ff","fifth","first","five","fix","followed","following","follows","for","former","formerly","forth","found","four","from","further","furthermore","g","gave","get","gets","getting","give","given","gives","giving","go","goes","gone","got","gotten","h","had","happens","hardly","has","hasn't","have","haven't","having","he","hed","hence","her","here","hereafter","hereby","herein","heres","hereupon","hers","herself","hes","hi","hid","him","himself","his","hither","home","how","howbeit","however","hundred","i","id","ie","if","i'll","im","immediate","immediately","importance","important","in","inc","indeed","index","information","instead","into","invention","inward","is","isn't","it","itd","it'll","its","itself","i've","j","just","k","keep","keeps","kept","kg","km","know","known","knows","l","largely","last","lately","later","latter","latterly","least","less","lest","let","lets","like","liked","likely","line","little","'ll","look","looking","looks","ltd","m","made","mainly","make","makes","many","may","maybe","me","mean","means","meantime","meanwhile","merely","mg","might","million","miss","ml","more","moreover","most","mostly","mr","mrs","much","mug","must","my","myself","n","na","name","namely","nay","nd","near","nearly","necessarily","necessary","need","needs","neither","never","nevertheless","new","next","nine","ninety","no","nobody","non","none","nonetheless","noone","nor","normally","nos","not","noted","nothing","now","nowhere","o","obtain","obtained","obviously","of","off","often","oh","ok","okay","old","omitted","on","once","one","ones","only","onto","or","ord","other","others","otherwise","ought","our","ours","ourselves","out","outside","over","overall","owing","own","p","page","pages","part","particular","particularly","past","per","perhaps","placed","please","plus","poorly","possible","possibly","potentially","pp","predominantly","present","previously","primarily","probably","promptly","proud","provides","put","q","que","quickly","quite","qv","r","ran","rather","rd","re","readily","really","recent","recently","ref","refs","regarding","regardless","regards","related","relatively","research","respectively","resulted","resulting","results","right","run","s","said","same","saw","say","saying","says","sec","section","see","seeing","seem","seemed","seeming","seems","seen","self","selves","sent","seven","several","shall","she","shed","she'll","shes","should","shouldn't","show","showed","shown","showns","shows","significant","significantly","similar","similarly","since","six","slightly","so","some","somebody","somehow","someone","somethan","something","sometime","sometimes","somewhat","somewhere","soon","sorry","specifically","specified","specify","specifying","still","stop","strongly","sub","substantially","successfully","such","sufficiently","suggest","sup","sure","t","take","taken","taking","tell","tends","th","than","thank","thanks","thanx","that","that'll","thats","that've","the","their","theirs","them","themselves","then","thence","there","thereafter","thereby","thered","therefore","therein","there'll","thereof","therere","theres","thereto","thereupon","there've","these","they","theyd","they'll","theyre","they've","think","this","those","thou","though","thoughh","thousand","throug","through","throughout","thru","thus","til","tip","to","together","too","took","toward","towards","tried","tries","truly","try","trying","ts","twice","two","u","un","under","unfortunately","unless","unlike","unlikely","until","unto","up","upon","ups","us","use","used","useful","usefully","usefulness","uses","using","usually","v","value","various","'ve","very","via","viz","vol","vols","vs","w","want","wants","was","wasn't","way","we","wed","welcome","we'll","went","were","weren't","we've","what","whatever","what'll","whats","when","whence","whenever","where","whereafter","whereas","whereby","wherein","wheres","whereupon","wherever","whether","which","while","whim","whither","who","whod","whoever","whole","who'll","whom","whomever","whos","whose","why","widely","willing","wish","with","within","without","won't","words","world","would","wouldn't","www","x","y","yes","yet","you","youd","you'll","your","youre","yours","yourself","yourselves","you've","z","zero"],t=0;t"+s[t][0]+": "+s[t][1],v.appendChild(c)}}e?f.style.display="block":f.style.display="none"});l.addEventListener("click",function(){l.innerHTML="Fetching score...";var e="https://ipeirotis-readability-metrics.p.mashape.com/getReadabilityMetrics?text=",h=r.value,a=new XMLHttpRequest;a.open("POST",encodeURI(e+h),!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Mashape-Authorization","PQ4FOFuaR6mshI6qpnQKQvkDZQXjp1o6Zcqjsnug7GvNggTzUE"),a.send(),a.onload=function(){this.status>=200&&this.status<400?l.innerHTML=T(JSON.parse(this.response).FLESCH_READING):l.innerHTML="Not available."},a.onerror=function(){l.innerHTML="Not available."}});function T(e){switch(!0){case e<=30:return"Readability: College graduate.";case(e>30&&e<=50):return"Readability: College level.";case(e>50&&e<=60):return"Readability: 10th - 12th grade.";case(e>60&&e<=70):return"Readability: 8th - 9th grade.";case(e>70&&e<=80):return"Readability: 7th grade.";case(e>80&&e<=90):return"Readability: 6th grade.";case(e>90&&e<=100):return"Readability: 5th grade.";default:return"Not available."}} diff --git a/docs/javascript/assets/index-wDqfkJZq.js b/docs/javascript/assets/index-3XYSJ61H.js similarity index 96% rename from docs/javascript/assets/index-wDqfkJZq.js rename to docs/javascript/assets/index-3XYSJ61H.js index 078ec6cd7..7f707ef80 100644 --- a/docs/javascript/assets/index-wDqfkJZq.js +++ b/docs/javascript/assets/index-3XYSJ61H.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const u=document.getElementById("amount"),d=document.querySelectorAll(".btn"),l=document.getElementById("customTip"),i=document.getElementById("person"),a=document.getElementById("generate-bill"),v=document.querySelector(".tipValue"),m=document.querySelector(".totalValue"),L=document.querySelector(".bill"),n=document.getElementById("reset");let s=0,o=0,r=0;function c(){return s>0&&o>0&&r>0?(a.classList.add("active"),a.disabled=!1,!0):(a.classList.remove("active"),a.disabled=!0,!1)}function f(){s=parseFloat(u.value),d.forEach(e=>{s>0?(e.classList.add("true"),e.disabled=!1,l.disabled=!1,i.disabled=!1):(e.classList.remove("true"),e.disabled=!0,l.disabled=!0,i.disabled=!0)}),c()}function p(e){d.forEach(t=>{t.classList.remove("active"),e&&e.target.innerHTML==t.innerHTML&&(t.classList.add("active"),o=parseFloat(t.innerHTML)/100)}),l.value="",c()}function B(){l.value!==0&&(o=parseFloat(l.value/100),d.forEach(e=>{e.classList.remove("active")})),c()}function E(){r=parseFloat(i.value),c()}function b(){if(r>=1){let e=s*o,t=s+e,T=t/r;v.innerHTML="₹"+e.toFixed(2),m.innerHTML="₹"+t.toFixed(2),L.innerHTML="₹"+T.toFixed(2),n.classList.add("active"),n.disabled=!1}}function y(){u.value="",f(),d.forEach(e=>{e.classList.remove("true"),e.disabled=!0}),o="",l.value="",p(),i.value="",E(),c(),a.disabled=!0,v.innerHTML="",m.innerHTML="",L.innerHTML="",n.classList.remove("active"),n.disabled=!0}u.addEventListener("input",f);a.addEventListener("click",b);l.addEventListener("input",B);i.addEventListener("input",E);n.addEventListener("click",y);d.forEach(e=>{e.addEventListener("click",p)}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const u=document.getElementById("amount"),d=document.querySelectorAll(".btn"),l=document.getElementById("customTip"),i=document.getElementById("person"),a=document.getElementById("generate-bill"),v=document.querySelector(".tipValue"),m=document.querySelector(".totalValue"),L=document.querySelector(".bill"),n=document.getElementById("reset");let s=0,o=0,r=0;function c(){return s>0&&o>0&&r>0?(a.classList.add("active"),a.disabled=!1,!0):(a.classList.remove("active"),a.disabled=!0,!1)}function f(){s=parseFloat(u.value),d.forEach(e=>{s>0?(e.classList.add("true"),e.disabled=!1,l.disabled=!1,i.disabled=!1):(e.classList.remove("true"),e.disabled=!0,l.disabled=!0,i.disabled=!0)}),c()}function p(e){d.forEach(t=>{t.classList.remove("active"),e&&e.target.innerHTML==t.innerHTML&&(t.classList.add("active"),o=parseFloat(t.innerHTML)/100)}),l.value="",c()}function B(){l.value!==0&&(o=parseFloat(l.value/100),d.forEach(e=>{e.classList.remove("active")})),c()}function E(){r=parseFloat(i.value),c()}function b(){if(r>=1){let e=s*o,t=s+e,T=t/r;v.innerHTML="₹"+e.toFixed(2),m.innerHTML="₹"+t.toFixed(2),L.innerHTML="₹"+T.toFixed(2),n.classList.add("active"),n.disabled=!1}}function y(){u.value="",f(),d.forEach(e=>{e.classList.remove("true"),e.disabled=!0}),o="",l.value="",p(),i.value="",E(),c(),a.disabled=!0,v.innerHTML="",m.innerHTML="",L.innerHTML="",n.classList.remove("active"),n.disabled=!0}u.addEventListener("input",f);a.addEventListener("click",b);l.addEventListener("input",B);i.addEventListener("input",E);n.addEventListener("click",y);d.forEach(e=>{e.addEventListener("click",p)}); diff --git a/docs/javascript/assets/index-AAYBhotw.js b/docs/javascript/assets/index-4B-38J5c.js similarity index 97% rename from docs/javascript/assets/index-AAYBhotw.js rename to docs/javascript/assets/index-4B-38J5c.js index 8a88dbccc..1c2be33b8 100644 --- a/docs/javascript/assets/index-AAYBhotw.js +++ b/docs/javascript/assets/index-4B-38J5c.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const f=document.querySelector("#range"),k=document.querySelector(".char-length"),i=document.querySelector(".password-form"),a=document.querySelector(".password"),p=document.querySelector("#lc"),w=document.querySelector("#uc"),S=document.querySelector("#numbers"),v=document.querySelector("#symbols"),C=document.querySelector(".copy-btn"),d=document.querySelector("#clipboard-container"),M=document.querySelector("#rememberPass");let s=10;const m=["!","@","#","$","%","^","&","*","(",")",",",".","/",">","<","?","~",";",":","[","]","{","}"],h={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},g={upper:()=>String.fromCodePoint(65+Math.floor(Math.random()*26)),lower:()=>String.fromCodePoint(97+Math.floor(Math.random()*26)),numeric:()=>String.fromCodePoint(49+Math.floor(Math.random()*9)),symbols:()=>m[Math.floor(Math.random()*m.length)]},b=e=>{k.textContent=e,s=e},E=(e,r)=>{let t="";for(let o=0;oe.split("").reduce((t,o)=>{const n=Math.floor(Math.random()*t.length);return t=t.substring(0,n)+o+t.substring(n),t},r),P=(e,r)=>{const t=Object.entries(r).reduce((c,[l,u])=>(u&&(c[l]=u),c),{}),o=Object.keys(t).length,n=E(e-o,Object.keys(t)),y=Object.entries(t).map(([c,l])=>l?g[c]():"").join("");return q(y,n)},x=e=>{let r="";return e.split("").map(o=>{h[o]?r+=` ${h[o]}`:r+=` ${o}`}),r.trim()};C.addEventListener("click",e=>{if(e.preventDefault(),window.navigator.clipboard.writeText(a.value),a)d.classList.add("clipboard-container-active"),setTimeout(()=>{d.classList.remove("clipboard-container-active")},1e3);else return});i.addEventListener("submit",e=>{e.preventDefault();const r=P(s,{lower:p.checked,upper:w.checked,numeric:S.checked,symbols:v.checked});a.value=r,M.innerText=x(a.value)});i.addEventListener("change",e=>{e.target.type==="range"&&b(e.target.value),e.target.type==="checkbox"&&Array.from(i.querySelectorAll('[type="checkbox"]')).filter(o=>o.checked).length===0&&(e.target.checked=!0)});f.value=s;p.checked=!0;b(s); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const f=document.querySelector("#range"),k=document.querySelector(".char-length"),i=document.querySelector(".password-form"),a=document.querySelector(".password"),p=document.querySelector("#lc"),w=document.querySelector("#uc"),S=document.querySelector("#numbers"),v=document.querySelector("#symbols"),C=document.querySelector(".copy-btn"),d=document.querySelector("#clipboard-container"),M=document.querySelector("#rememberPass");let s=10;const m=["!","@","#","$","%","^","&","*","(",")",",",".","/",">","<","?","~",";",":","[","]","{","}"],h={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},g={upper:()=>String.fromCodePoint(65+Math.floor(Math.random()*26)),lower:()=>String.fromCodePoint(97+Math.floor(Math.random()*26)),numeric:()=>String.fromCodePoint(49+Math.floor(Math.random()*9)),symbols:()=>m[Math.floor(Math.random()*m.length)]},b=e=>{k.textContent=e,s=e},E=(e,r)=>{let t="";for(let o=0;oe.split("").reduce((t,o)=>{const n=Math.floor(Math.random()*t.length);return t=t.substring(0,n)+o+t.substring(n),t},r),P=(e,r)=>{const t=Object.entries(r).reduce((c,[l,u])=>(u&&(c[l]=u),c),{}),o=Object.keys(t).length,n=E(e-o,Object.keys(t)),y=Object.entries(t).map(([c,l])=>l?g[c]():"").join("");return q(y,n)},x=e=>{let r="";return e.split("").map(o=>{h[o]?r+=` ${h[o]}`:r+=` ${o}`}),r.trim()};C.addEventListener("click",e=>{if(e.preventDefault(),window.navigator.clipboard.writeText(a.value),a)d.classList.add("clipboard-container-active"),setTimeout(()=>{d.classList.remove("clipboard-container-active")},1e3);else return});i.addEventListener("submit",e=>{e.preventDefault();const r=P(s,{lower:p.checked,upper:w.checked,numeric:S.checked,symbols:v.checked});a.value=r,M.innerText=x(a.value)});i.addEventListener("change",e=>{e.target.type==="range"&&b(e.target.value),e.target.type==="checkbox"&&Array.from(i.querySelectorAll('[type="checkbox"]')).filter(o=>o.checked).length===0&&(e.target.checked=!0)});f.value=s;p.checked=!0;b(s); diff --git a/docs/javascript/assets/index-xeGGnmTE.js b/docs/javascript/assets/index-4QEnb5f1.js similarity index 95% rename from docs/javascript/assets/index-xeGGnmTE.js rename to docs/javascript/assets/index-4QEnb5f1.js index 1b050daeb..6a831c11b 100644 --- a/docs/javascript/assets/index-xeGGnmTE.js +++ b/docs/javascript/assets/index-4QEnb5f1.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";function a(o,t){this.row=o,this.col=t}a.prototype.setColor=function(o){this.color=o};a.prototype.generateGrid=function(){const o=document.createDocumentFragment();for(let t=0;t0;o--){const c=Math.floor(Math.random()*(o+1));[n[o],n[c]]=[n[c],n[o]]}return n}async function f(t){s.style.display="none",l.style.display="block";try{const o=(await(await fetch(t)).json()).results[0];return y(o),o.correct_answer}catch(e){console.error(e)}finally{s.style.display="block",l.style.display="none"}}async function d(){const t=u(),e=await f(t);g(e)}function g(t){r.addEventListener("submit",e=>{e.preventDefault();const n=document.querySelector('input[name="choices"]:checked');if(n){const o=n.value,c=document.querySelector(`input[value="${t}"]`);c&&o===c.value?(a("correct"),setTimeout(()=>{i(),r.reset(),d()},1e3)):(a("wrong"),setTimeout(()=>{i(),r.reset()},1e3))}else alert("Please select an answer")})}document.addEventListener("DOMContentLoaded",d);function a(t){const e=document.getElementById(`${t}__alert`);e.style.display="inline-block"}function i(){const t=document.getElementById("correct__alert"),e=document.getElementById("wrong__alert");t.style.display="none",e.style.display="none"} +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const s=document.getElementById("main__container"),l=document.getElementById("loading__container"),r=document.getElementById("submitForm");function u(){return"https://opentdb.com/api.php?amount=1&type=multiple"}function m(t){for(let e=1;e<=t.length;e++){const n=document.getElementById(`choice_${e}`),o=document.getElementById(`choice${e}`);n.value=t[e-1],o.innerHTML=t[e-1]}}function y(t){const{question:e,correct_answer:n,incorrect_answers:o}=t;document.getElementById("question").innerHTML=e;const c=p(n,o);m(c)}function p(t,e){const n=[t,...e];for(let o=n.length-1;o>0;o--){const c=Math.floor(Math.random()*(o+1));[n[o],n[c]]=[n[c],n[o]]}return n}async function f(t){s.style.display="none",l.style.display="block";try{const o=(await(await fetch(t)).json()).results[0];return y(o),o.correct_answer}catch(e){console.error(e)}finally{s.style.display="block",l.style.display="none"}}async function d(){const t=u(),e=await f(t);g(e)}function g(t){r.addEventListener("submit",e=>{e.preventDefault();const n=document.querySelector('input[name="choices"]:checked');if(n){const o=n.value,c=document.querySelector(`input[value="${t}"]`);c&&o===c.value?(a("correct"),setTimeout(()=>{i(),r.reset(),d()},1e3)):(a("wrong"),setTimeout(()=>{i(),r.reset()},1e3))}else alert("Please select an answer")})}document.addEventListener("DOMContentLoaded",d);function a(t){const e=document.getElementById(`${t}__alert`);e.style.display="inline-block"}function i(){const t=document.getElementById("correct__alert"),e=document.getElementById("wrong__alert");t.style.display="none",e.style.display="none"} diff --git a/docs/javascript/assets/index-4w34TAP-.css b/docs/javascript/assets/index-4w34TAP-.css deleted file mode 100644 index 34e1fb930..000000000 --- a/docs/javascript/assets/index-4w34TAP-.css +++ /dev/null @@ -1 +0,0 @@ -ul{margin:0;padding:0}.container{max-width:1200px;margin:0 auto}footer{background-color:#7f3535;color:#fff;padding:20px;border-top:2px solid #555}.footer-content{display:flex;justify-content:space-between;align-items:center}.footer-logo img{max-width:100px;background:white;border-radius:85px}.footer-links ul,.footer-social ul{list-style:none;font-size:25px;padding:0}.footer-links ul li,.footer-social ul li{margin:5px 0}.footer-links a,.footer-social a{text-decoration:none;color:#fff}.footer-contact p{margin:10px 0}.footer-contact a{color:#fff}.footer-bottom{text-align:center;padding-top:10px}@media screen and (min-width: 768px){.footer-content{flex-direction:row;justify-content:space-between;align-items:center;text-align:left}.footer-logo img{margin-bottom:10px}.footer-links ul,.footer-social ul{text-align:center}} diff --git a/docs/javascript/assets/index-HWbcEGtq.js b/docs/javascript/assets/index-5CFuNz-P.js similarity index 94% rename from docs/javascript/assets/index-HWbcEGtq.js rename to docs/javascript/assets/index-5CFuNz-P.js index 3d527ad51..cee9649bb 100644 --- a/docs/javascript/assets/index-HWbcEGtq.js +++ b/docs/javascript/assets/index-5CFuNz-P.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";function u(e,t){const n=document.createElement(e);for(let s in t)n.setAttribute(s,t[s]);return n}function L(e,t,n=0){const s=document.createDocumentFragment();for(let l=n;lu("button",{class:"star star-empty","data-index":e}),1));const i=a.querySelectorAll(".star");a.addEventListener("mouseover",v);a.addEventListener("mouseleave",C);a.addEventListener("click",g);function o(e){for(let t=d;tu("button",{class:"star star-empty","data-index":e}),1));const i=a.querySelectorAll(".star");a.addEventListener("mouseover",v);a.addEventListener("mouseleave",C);a.addEventListener("click",g);function o(e){for(let t=d;t[]);let c=1,t=1,e=0,n=0;for(;n=0&&e{m=+d.value,i()});u.addEventListener("change",()=>{s=+u.value,i()});i(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const d=document.querySelector("#rows"),u=document.querySelector("#columns"),p=document.querySelector(".table-body");let m=+d.value,s=+u.value;function f(l,r){const o=Array.from(Array(l),()=>[]);let c=1,t=1,e=0,n=0;for(;n=0&&e{m=+d.value,i()});u.addEventListener("change",()=>{s=+u.value,i()});i(); diff --git a/docs/javascript/assets/index-8a4fzYtj.js b/docs/javascript/assets/index-7UBU1shY.js similarity index 97% rename from docs/javascript/assets/index-8a4fzYtj.js rename to docs/javascript/assets/index-7UBU1shY.js index 5d63bb301..eed555335 100644 --- a/docs/javascript/assets/index-8a4fzYtj.js +++ b/docs/javascript/assets/index-7UBU1shY.js @@ -1,2 +1,2 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const i=document.querySelector("#commentContainer"),n=(s="div",e,...t)=>{const a=document.createElement(s);for(let o in e)a[o]=e[o];return t.forEach(o=>a.appendChild(o)),a},r=(s,e,t)=>{e=e.replaceAll(` +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const i=document.querySelector("#commentContainer"),n=(s="div",e,...t)=>{const a=document.createElement(s);for(let o in e)a[o]=e[o];return t.forEach(o=>a.appendChild(o)),a},r=(s,e,t)=>{e=e.replaceAll(` `,"
");const a=n("p",{textContent:s,className:"text-bold name"}),o=n("p",{innerHTML:e,className:"comment-text"}),l=[];l.push(n("button",{textContent:"Reply",className:"btn btn-primary small reply"})),t!=null&&t.hasNoEdit||l.push(n("button",{textContent:"Edit",className:"btn btn-primary small edit"})),t!=null&&t.hasNoDelete||l.push(n("button",{textContent:"Delete",className:"btn btn-primary small delete"}));const d=n("div",{className:"btn-holder"},...l),b=n("div",{className:"main-comment"},a,o,d),u=n("div",{className:"sub-comments"});return n("div",{className:"comment"},b,u)},p=()=>{const s=n("input",{placeholder:"Your name",className:"text-bold name "}),e=n("textarea",{placeholder:"comment",className:"comment-text",rows:2,cols:30}),t=n("button",{textContent:"Post",className:"btn btn-primary small post"}),a=n("button",{textContent:"Cancel",className:"btn btn-primary small cancel"}),o=n("div",{className:"btn-holder"},t,a);return n("div",{className:"comment"},s,e,o)},c=s=>{s.nextElementSibling.disabled=!s.nextElementSibling.disabled,s.previousElementSibling.disabled=!s.previousElementSibling.disabled},N=r("Sadanand","Hello, world",{hasNoDelete:!0,hasNoEdit:!0});i.appendChild(N);let m=!1;i.addEventListener("click",s=>{const e=s.target;if(e.tagName.toLowerCase()==="button"){if(e.classList.contains("reply")&&!m){e.closest(".main-comment").nextElementSibling.appendChild(p()),m=!0;return}if(e.classList.contains("edit")){e.textContent="Save",e.className="btn btn-primary small save",c(e),e.closest(".main-comment").children[1].contentEditable=!0;return}if(e.classList.contains("save")){const t=e.closest(".main-comment").children[1];if(!t.textContent)return;e.textContent="Edit",e.className="btn btn-primary small edit",t.contentEditable=!1,c(e);return}if(e.classList.contains("delete")){e.closest(".comment").remove();return}if(e.classList.contains("cancel")){e.closest(".comment").remove(),m=!1;return}if(e.classList.contains("post")){const t=e.closest(".comment"),a=t.children[0].value,o=t.children[1].value;if(!a||!o)return;e.closest(".sub-comments").appendChild(r(a,o)),t.remove(),m=!1;return}}}); diff --git a/docs/javascript/assets/index-Yp02GvT7.js b/docs/javascript/assets/index-7xu_W-xn.js similarity index 97% rename from docs/javascript/assets/index-Yp02GvT7.js rename to docs/javascript/assets/index-7xu_W-xn.js index 392d99448..28dbd1d17 100644 --- a/docs/javascript/assets/index-Yp02GvT7.js +++ b/docs/javascript/assets/index-7xu_W-xn.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const l=document.getElementById("grid");class a{constructor(e,t=3){this.gridSize=t,this.root=e,this.grid=[],this.currentPlayer="X",this.winner=null,this.cellFilled=0,this.populateGrid(),this.addEventListeners()}populateGrid(){this.root.appendChild(this.createGrid());const e=this.root.children;for(let t=0;t{e.target.classList.contains("cell")&&this.winner===null&&this.play(e.target)})}play(e){var t,i;if(e.textContent===""){if(this.set(e.dataset.x,e.dataset.y,this.currentPlayer),this.cellFilled+=1,this.checkWinner()){this.winner=this.currentPlayer,(t=this.winnerCallback)==null||t.call(this,this.winner);return}else if(this.cellFilled===this.gridSize*this.gridSize){this.winner="Draw",(i=this.winnerCallback)==null||i.call(this,this.winner);return}this.changePlayer()}}changePlayer(){this.currentPlayer=this.currentPlayer==="X"?"O":"X"}set(e,t,i){this.grid[e][t].textContent=i}checkWinner(){return this.isRowHasWinner(0)||this.isRowHasWinner(1)||this.isRowHasWinner(2)||this.isColHasWinner(0)||this.isColHasWinner(1)||this.isColHasWinner(2)||this.checkDiagonal()||this.checkDiagonalReverse()}isRowHasWinner(e){const t=this.grid[e][0].textContent;return this.grid[e].every(i=>i.textContent===t)?t:!1}isColHasWinner(e){const t=this.grid[0][e].textContent;return this.grid.map(i=>i[e]).every(i=>i.textContent===t)?t:!1}checkDiagonal(){const e=this.grid[0][0].textContent;for(let t=0;t{e.forEach(t=>{t.textContent=""})}),this.currentPlayer="X",this.winner=null,this.cellFilled=0}}const s=new a(l);s.winnerCallback=r=>{switch(r){case"X":document.getElementById("winner").textContent="Player X won!";break;case"O":document.getElementById("winner").textContent="Player O won!";break;default:document.getElementById("winner").textContent="Draw!"}};document.getElementById("reset").addEventListener("click",()=>{s.reset(),document.getElementById("winner").textContent=""}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const l=document.getElementById("grid");class a{constructor(e,t=3){this.gridSize=t,this.root=e,this.grid=[],this.currentPlayer="X",this.winner=null,this.cellFilled=0,this.populateGrid(),this.addEventListeners()}populateGrid(){this.root.appendChild(this.createGrid());const e=this.root.children;for(let t=0;t{e.target.classList.contains("cell")&&this.winner===null&&this.play(e.target)})}play(e){var t,i;if(e.textContent===""){if(this.set(e.dataset.x,e.dataset.y,this.currentPlayer),this.cellFilled+=1,this.checkWinner()){this.winner=this.currentPlayer,(t=this.winnerCallback)==null||t.call(this,this.winner);return}else if(this.cellFilled===this.gridSize*this.gridSize){this.winner="Draw",(i=this.winnerCallback)==null||i.call(this,this.winner);return}this.changePlayer()}}changePlayer(){this.currentPlayer=this.currentPlayer==="X"?"O":"X"}set(e,t,i){this.grid[e][t].textContent=i}checkWinner(){return this.isRowHasWinner(0)||this.isRowHasWinner(1)||this.isRowHasWinner(2)||this.isColHasWinner(0)||this.isColHasWinner(1)||this.isColHasWinner(2)||this.checkDiagonal()||this.checkDiagonalReverse()}isRowHasWinner(e){const t=this.grid[e][0].textContent;return this.grid[e].every(i=>i.textContent===t)?t:!1}isColHasWinner(e){const t=this.grid[0][e].textContent;return this.grid.map(i=>i[e]).every(i=>i.textContent===t)?t:!1}checkDiagonal(){const e=this.grid[0][0].textContent;for(let t=0;t{e.forEach(t=>{t.textContent=""})}),this.currentPlayer="X",this.winner=null,this.cellFilled=0}}const s=new a(l);s.winnerCallback=r=>{switch(r){case"X":document.getElementById("winner").textContent="Player X won!";break;case"O":document.getElementById("winner").textContent="Player O won!";break;default:document.getElementById("winner").textContent="Draw!"}};document.getElementById("reset").addEventListener("click",()=>{s.reset(),document.getElementById("winner").textContent=""}); diff --git a/docs/javascript/assets/index-8nsIntmx.js b/docs/javascript/assets/index-8nsIntmx.js deleted file mode 100644 index 368354dca..000000000 --- a/docs/javascript/assets/index-8nsIntmx.js +++ /dev/null @@ -1 +0,0 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";function i(e,n){const t=document.createElement(e);for(let l in n)t.setAttribute(l,n[l]);return t}function m(e,n,t=0){const l=document.createDocumentFragment();for(let r=t;r{const n=i("span",{class:"star","data-index":e}),t=i("span",{class:"star-partial","data-index":e});return t.textContent="★",n.textContent="☆",n.appendChild(t),n},1));const s=c.querySelectorAll(".star");function y(e){const n=Math.floor(e);for(let t=0;tu(+e.target.value));d.setAttribute("max",o);u(f); diff --git a/docs/javascript/assets/index-HVNddoCz.js b/docs/javascript/assets/index-8vgkgvit.js similarity index 96% rename from docs/javascript/assets/index-HVNddoCz.js rename to docs/javascript/assets/index-8vgkgvit.js index 117655d29..656e97e0c 100644 --- a/docs/javascript/assets/index-HVNddoCz.js +++ b/docs/javascript/assets/index-8vgkgvit.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";function m(e,t=500){let o=null;return function(...u){o&&(clearTimeout(o),o=null),o=setTimeout(e,t,...u)}}const p=5,i=document.getElementById("userInput"),l=document.querySelector(".suggestions"),g=document.getElementById("loader"),E=document.getElementById("info");let s="",n=null,r=null;const L=m(v);function h(e){var t;(t=l.querySelector(".highlight"))==null||t.classList.remove("highlight"),l.childNodes[e].classList.add("highlight"),i.value=l.childNodes[e].textContent}function f(){var e;(e=l.querySelector(".highlight"))==null||e.classList.remove("highlight"),i.value=s,n=null}function a(){l.innerHTML="",n=null,i.value=s}async function y(e){r=new AbortController;try{const t=await fetch(`https://api.github.com/search/users?per_page=${p}&q=${e}`,{signal:r.signal});r=null;const o=await t.json();return c(!1),{text:e,result:o.items}}catch(t){return t.name!=="AbortError"&&d(),c(!1),{text:e,result:[]}}}async function v(){if(l.innerHTML="",n=null,s=i.value,s.length>0){const{text:e,result:t}=await y(s);if(i.value===e){t.length===0&&d("No results found");for(let o=0;o{r&&(r.abort(),r=null),i.value===""?c(!1):c(),l.innerHTML="",n=null,d(""),L()});i.addEventListener("keydown",e=>{if(e.key==="Enter"&&n!=null){s=l.childNodes[n].textContent,a();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=l.childElementCount){f();return}h(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??l.childElementCount,n-1<0){f();return}h(--n)}});i.addEventListener("blur",()=>{setTimeout(a,100)});l.addEventListener("click",e=>{const t=e.target;t.tagName.toLowerCase()==="li"&&(s=t.textContent,a())}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";function m(e,t=500){let o=null;return function(...u){o&&(clearTimeout(o),o=null),o=setTimeout(e,t,...u)}}const p=5,i=document.getElementById("userInput"),l=document.querySelector(".suggestions"),g=document.getElementById("loader"),E=document.getElementById("info");let s="",n=null,r=null;const L=m(v);function h(e){var t;(t=l.querySelector(".highlight"))==null||t.classList.remove("highlight"),l.childNodes[e].classList.add("highlight"),i.value=l.childNodes[e].textContent}function f(){var e;(e=l.querySelector(".highlight"))==null||e.classList.remove("highlight"),i.value=s,n=null}function a(){l.innerHTML="",n=null,i.value=s}async function y(e){r=new AbortController;try{const t=await fetch(`https://api.github.com/search/users?per_page=${p}&q=${e}`,{signal:r.signal});r=null;const o=await t.json();return c(!1),{text:e,result:o.items}}catch(t){return t.name!=="AbortError"&&d(),c(!1),{text:e,result:[]}}}async function v(){if(l.innerHTML="",n=null,s=i.value,s.length>0){const{text:e,result:t}=await y(s);if(i.value===e){t.length===0&&d("No results found");for(let o=0;o{r&&(r.abort(),r=null),i.value===""?c(!1):c(),l.innerHTML="",n=null,d(""),L()});i.addEventListener("keydown",e=>{if(e.key==="Enter"&&n!=null){s=l.childNodes[n].textContent,a();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=l.childElementCount){f();return}h(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??l.childElementCount,n-1<0){f();return}h(--n)}});i.addEventListener("blur",()=>{setTimeout(a,100)});l.addEventListener("click",e=>{const t=e.target;t.tagName.toLowerCase()==="li"&&(s=t.textContent,a())}); diff --git a/docs/javascript/assets/index-951_JENs.js b/docs/javascript/assets/index-951_JENs.js deleted file mode 100644 index 6b77c020e..000000000 --- a/docs/javascript/assets/index-951_JENs.js +++ /dev/null @@ -1 +0,0 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const r=document.getElementById("css-code"),t=document.querySelectorAll("input[type='range']");t.forEach(function(e){e.addEventListener("input",s)});const o=document.querySelectorAll("input[type='number']");o.forEach(function(e){e.addEventListener("change",s)});function s(){const e=t[0].value,n=t[1].value,c=t[2].value,u=t[3].value,i=o[0].value,l=o[1].value,d=`${e}% ${100-e}% ${100-c}% ${c}% / ${u}% ${n}% ${100-n}% ${100-u}%`;document.getElementById("blob").style.cssText=`border-radius: ${d}; height: ${i}px; width: ${l}px`,r.value=`border-radius: ${d};`}document.getElementById("copy").addEventListener("click",function(){r.select(),document.execCommand("copy"),alert("Code copied!")}); diff --git a/docs/javascript/assets/index-9SlXGAjS.css b/docs/javascript/assets/index-9SlXGAjS.css deleted file mode 100644 index 77d0ecbb1..000000000 --- a/docs/javascript/assets/index-9SlXGAjS.css +++ /dev/null @@ -1 +0,0 @@ -.container{transition:.25s}body.dark .navbar-app{background:linear-gradient(to bottom,#292929,#121212);box-shadow:0 4px 4px #ffffff1a;color:#fff}body.dark .navbar-app a img{-webkit-filter:invert(1);filter:invert(1)}.inner-container{margin:1rem 0;padding:2.5%;border:1px solid blue}body.dark,#innnerThemeSwitch:checked+.inner-container,body.dark #innnerThemeSwitch:checked+.inner-container{color:canvas;background-color:canvasText}#innnerThemeSwitch+.inner-container,body.dark #innnerThemeSwitch+.inner-container{color:canvasText;background-color:canvas} diff --git a/docs/javascript/assets/index-M3Tc53Oy.js b/docs/javascript/assets/index-A60Gz9Go.js similarity index 99% rename from docs/javascript/assets/index-M3Tc53Oy.js rename to docs/javascript/assets/index-A60Gz9Go.js index 51ec0d15d..4ab5241d4 100644 --- a/docs/javascript/assets/index-M3Tc53Oy.js +++ b/docs/javascript/assets/index-A60Gz9Go.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const n="data:image/png;base64,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",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8AAADw8PBhYWFHR0eJiYnKysrq6uo/Pz8bGxt4eHiAgIDMzMzt7e3o6Oj09PSlpaXV1dUoKCiwsLC+vr6Dg4M2Nja2trZZWVk5OTnc3NyWlpZra2uOjo4wMDBfX19QUFARERFxcXEjIyOfn58WFhZDQ0MmrS94AAAIiElEQVR4nO2da1/qMAzGmQjekIugIOBxKPr9P+IBj0fZ07RLt7RN+e15Cxv5s6VNekl7vU6dvDVeTO+2/X5/O5iPLlIbI67JfFVU9PA4TG2TpGbbgtLgKrVhQhpek3xH3d6nNk5AF69WvqNeUtvXWlMn30E369QmtlO/DvCgfWojW2jywAAsirfUdjbWFYvvoFVqSxuKDVgUZWpbG2nywSfM80W99ADMstd48QIsilFqg3219gQsitQW++rJm/Axtcl+mnsDFoX6OHy8eNk+f5n6sRrcUAhPm+H48MX14nFHfVzefjdOn2/T0SQ1Dmr88qfuEX3OTr5fG64Wl3NNkENGzzCFa+iUsaKtlqB89FxvLNEZ7BlXrcYJeFATd/5nBeS8qQdtogOhhhwzizl57R3n0uvEwwC8yGVrubq2dfpS0iEr1htaFLZWccS7nH4DoqjkWXhrvQEz8kk2CsAZojhqZr0Dq7EpzK4mklgNxVH2W4y5t1jEw/oV9/8vLh034d6jSND589Mjuxv2epxg4Uu7aGA/emcTDhx3+WTfJfo4x4BtmpPQY6gj8iCAdRztebXCftyH8Mm8/L8eosF9iewoLuffgfJ6f/oOcwmvp+TlP4ra8VOt/EPlNVr6Er5XgrMl8QPvQVAsejR//w6+MvkxnkVoNCREvBQzQDV/nchy/r/JHEJiuNRMkW0BfACZKRNJUbIJyXE28ymKGM+SEa9ZplZumIQl/aHR3sR7TY1JM0t6NGMSOi+ve1NCaIK/bM1u+ixC60gFuuJnK7M9ZCSu1nG/GYvQffmpWpntIRzQ7tu/umMQvto/xoHlWAuNcHDGEWy8MQgd6e0t/JI9l5YVNqWO390zCB0hNeagsRpT/Gcdw7YLBmHN5aeKleojocM7hgxCx5wThhbLxjb7KR3h+T/Dx/l8uZiFn8xIR/hffx4XQefe0hMe9RrwldVBWBS7YAPFWgiL4iPQc9RDeEi8gvijJsIwcY4uwhDTNsoIAyTG2gidMyONpI5Q/CnqI5QeD1dIKDy/qJHwozENJY2Esq2NSkLR9zQV4eXLcrQezu/oNSplQxpKaQg3vz8zfqMQBQfiUhC+ViPsNbEbR3BqKgGhOfsGOzaPkksz4hNSMxvmRLtctx+dEOeXf6+tSG77VGzCP/SH98ZDZFnPUWxCWyNprDsTa00jE9rXxSGhWC4cmdA+2oRLQsSSqMiE9k4Ap2odM5F+ikv4ZP8Yp9ufa01nKi6hY4YZ54jFVk3FJaQ7w3+C5ak3dZZzpYfwuiNsqI4QTOwIO0LH5R1hU3WEYGJH2BE6Lu8Im6ojBBM7wo7QcXlHyNLVeH1QZcHj+RDO9v2TgZDP2+W3LWdCuKC2GD5tjjUczoFwsiHw/ml7dQ6Edr6j9tkTjnZOQFO5EbJLJWRKeO9fhiwvQmO32LkRNgLMidC/FGBmhB4FR/Mk9Co4miWhX8HRDAndgcwZEDZsZRiErrKd1/WEroWjXoS20vDl22a6GRCryFiE4/106tryMZ9O947laHWX+xDiftR/2v7u0Z3Za+6kO8rBh5CqLV7CVkabp2ZBSD1Cc9PtmK6xngUhUQ2GXDdNemsOhEQ0Y1kYTpUfy4HQrJZqKwNgVP3IhNAIZ+wl0on0IwdCtNlVOcxsUTMgNJ6Lc3ut0SplQGgstnXe1nDFDAg9V6LiI8+AEN+7us3D0PRmQIilCmu3ZlT/kgwIYSFqfa3QqivmR8ioMllxxfwILTs4KjrtFTMgfOd+8URlVoTeLU2v4ooZEGJvwdpwOsuJECcEedvcNhkRYjBd8u5f5kNojGHwDrWZ5EN4gYTMze2zbAjNkTbm5vZNNoRG5WNu8ewyF0LzKA3mezrJhbC3MxCZJQpnuRASw9nM2n37TAiJQUKuK64SEsLorXP/IXHoD/e8hYSE0Ae4H4pJyHXFYbpD78Bg9y5Z6jw/DWeCuYS+VVNUgZjG56TCKYXTLa4J8R49I6H8iFcsQVR3SBtvDlGT0LNqraVWJap2RY+y298ijniJfLqLn3C+tn70hVr2pdkV0VbGJXm5Ip52w6rAgyM2ql0Rnwfv5GtiiXDUM3p8hOkCr6hwTq6IC7WYL1tGroirRbnXZeOKzavTEK6oslfEmK0mKj2RWSVMpyviIiCPgnSZuCKWh/SpZZZHgIoHXnldnEOAig2No2IWoRx6RVy27VncMwNXxOTQ91hk/a6IFnqfU6q+V8RxJe8z2NW7IhrnfwflrojJYZOaiboD1GbJIUi1K+I0RKMTZ1QHqA2TQ5BmV9yBXQ1vo7dXxPfLdUS9U2pd0TiRremN1PaKLZJDkFZXxGNmW5z9oNQVcQVQm3vpzBXBolZjuipdETdEtDNIoytictiyGrtCV2ydHIKIXjHxFD/OHLZd8KIvQAVj2k8eaXNFieQQpMwV8R+vW4TBka5eUSQ5BOnqFWWSQ5AqV0RDZO6qaNgG2/ZS6L56pvjFkkMQ5YriJ4CyhMmhmLeocUXB5BCkxRWb7LVjSsewDc4cSsbIOgJUTA5FGwMVriicHII0BKjSySFIQYCKrYHwAfLpA1RsaMTDjuSuiG7oOtSrmVK7Ig6V+i5RYIjoFcXqvdfLKDUj3NAcRbli47kfX5nVD4Ubmi9Rrngd4odM4QiN7FnOv6IC1NqqNhIyN7sK9/c/IitGr2QPqTd1T/2zgd4dKkA9vqqbUbCtelcL8jRuwbOqq6JrZSZQuPfGv3R7EIkdrkqICFATyHs1m4ea1sYWVaCG9FtEyx1bZVDAXm+ZGjD8YCa1OzqmImwiT/sUQwcYX0rpi1EADwk3UYE4ip7jVXJI44z8TU4CmuAge3h9BMh6nVq/xgWUmNT21dhek15aD2HjGIdGA7piuyzewGeHmrwuZvOXt20/iLa3m/koXSWcTin0F1lkduF9plcBAAAAAElFTkSuQmCC",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const n="data:image/png;base64,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",g="data:image/png;base64,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",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); diff --git a/docs/javascript/assets/index-AZ0uN2UM.js b/docs/javascript/assets/index-AZ0uN2UM.js deleted file mode 100644 index de3d82e02..000000000 --- a/docs/javascript/assets/index-AZ0uN2UM.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const f=document.querySelector(".slider"),n=document.querySelector(".leftButton"),o=document.querySelector(".rightButton"),X=document.querySelector(".leftButton span"),q=document.querySelector(".rightButton span"),w=document.getElementById("leftcolor"),C=document.getElementById("rightcolor"),g=document.getElementById("position"),$=document.getElementById("rotation"),N=document.getElementById("random"),h=document.getElementById("preview"),W=document.getElementById("copy"),S=document.querySelector(".full-screen"),k=document.querySelector(".close");let b=!1,E,I=90,i,r,L,l=0,y=100,u=parseInt(f.getBoundingClientRect().width-20);function c(){E=`linear-gradient(${I}deg, ${i} ${l}%, ${r} ${y}%)`,h.style.background=E,f.style.background=E}function M(){const t=Math.floor(Math.random()*256),e=Math.floor(Math.random()*256),m=Math.floor(Math.random()*256);return`rgb(${t}, ${e}, ${m})`}function R(t,e,m){const a=x=>{const d=x.toString(16);return d.length===1?"0"+d:d},s=a(t),p=a(e),v=a(m);return`#${s}${p}${v}`}function D(t){t=t.replace(/^#/,"");const e=parseInt(t,16),m=e>>16&255,a=e>>8&255,s=e&255;return{r:m,g:a,b:s}}function H(){i=M(),r=M(),c(),X.style.background=`${i} ${l}%`,q.style.background=`${r} ${y}%`;const t=R(parseInt(i.slice(4,-1).split(", ")[0]),parseInt(i.slice(4,-1).split(", ")[1]),parseInt(i.slice(4,-1).split(", ")[2])),e=R(parseInt(r.slice(4,-1).split(", ")[0]),parseInt(r.slice(4,-1).split(", ")[1]),parseInt(r.slice(4,-1).split(", ")[2]));w.value=t,C.value=e,$.value=`${I}°`}function B(t,e){b=!0;const a=(e.type.startsWith("touch")?e.touches[0].clientX:e.clientX)-t.getBoundingClientRect().left;u=parseInt(f.getBoundingClientRect().width-20);function s(v){if(b){const x=v.type.startsWith("touch")?v.touches[0].clientX:v.clientX,d=parseInt(Math.min(u,Math.max(0,x-f.getBoundingClientRect().left-a)));t===n?(l=parseInt(d/u*100),g.value=`${l}%`):t===o&&(y=parseInt(d/u*100),g.value=`${y}%`),c(),t.style.transform=`translate3d(${d}px, -50%, 0px)`}}function p(){b=!1,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",p)}document.addEventListener("mousemove",s),document.addEventListener("mouseup",p),document.addEventListener("touchmove",s),document.addEventListener("touchend",p)}n.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});n.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});w.addEventListener("input",()=>{const t=w.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(i=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),X.style.background=`${i} ${l}%`)}});C.addEventListener("input",()=>{const t=C.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(r=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),q.style.background=`${r} ${l}%`)}});g.addEventListener("change",()=>{const t=parseInt(g.value);L=t/100*u,!isNaN(t)&&t>=0&&t<=100&&(n.classList.contains("active")?(l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):o.classList.contains("active")?(y=t,o.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):(n.classList.add("active"),l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()),g.value=`${t}%`)});$.addEventListener("change",()=>{const t=parseInt($.value);!isNaN(t)&&t>=0&&t<=360&&(I=t,c(),$.value=`${I}°`)});N.addEventListener("click",H);W.addEventListener("click",()=>{document.execCommand("copy"),alert(`CSS copied to clipboard: -`+E)});S.addEventListener("click",()=>{h.classList.remove("preview"),h.classList.add("full-screen-mode"),S.style.display="none",k.style.display="block"});k.addEventListener("click",()=>{h.classList.add("preview"),h.classList.remove("full-screen-mode"),S.style.display="block",k.style.display="none"});function P(){u=parseInt(f.getBoundingClientRect().width-20),o.style.transform=`translate3d(${u}px, -50%, 0px)`}window.addEventListener("load",()=>{P(),H()});window.addEventListener("resize",()=>{P()}); diff --git a/docs/javascript/assets/index-tgu1jxDL.js b/docs/javascript/assets/index-AayZXvpJ.js similarity index 97% rename from docs/javascript/assets/index-tgu1jxDL.js rename to docs/javascript/assets/index-AayZXvpJ.js index 0b813c965..4f852bc24 100644 --- a/docs/javascript/assets/index-tgu1jxDL.js +++ b/docs/javascript/assets/index-AayZXvpJ.js @@ -1 +1 @@ -var y=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var u=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var o=(s,e,t)=>(y(s,e,"access private method"),t);import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const h=document.querySelector(".time"),v=document.querySelectorAll(".duration-button"),b=document.querySelector("#breaklen"),q=document.querySelector("#sesslen"),S=document.querySelector("#minute"),k=document.querySelector("#second"),T=document.querySelector("#play"),E=document.querySelector("#reset"),g=document.querySelector(".timer-header"),I=document.querySelector("#beep"),m=document.querySelector("#playicon");var i,a;class x{constructor(){u(this,i);this.state="session",this.session={time:25,interval:[5,60]},this.break={time:5,interval:[2,20]},this.timeLeft=[25,0],this.isRunning=!1,this.startInterval=null}start(){this.isRunning=!0,this.startInterval=setInterval(()=>this.run(),1e3),m.classList.remove("fa-play"),m.classList.add("fa-pause")}pause(){clearInterval(this.startInterval),this.isRunning=!1,m.classList.remove("fa-pause"),m.classList.add("fa-play")}reset(){this.pause(),this.timeLeft=[25,0],this.break.time=5,this.session.time=25,this.state="session",this.render()}setTime(e){if(this.isRunning)return;const{currentTarget:{dataset:{target:t,direction:r}}}=e,c=r==="up"?1:-1,{time:d,interval:f}=this[t],l=d+c,[p,L]=f;l>L||l9?e:`0${e}`};const n=new x;n.render();v.forEach(s=>{s.addEventListener("click",e=>n.setTime(e))});T.addEventListener("click",()=>{n.isRunning?n.pause():n.start()});E.addEventListener("click",()=>n.reset()); +var y=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var u=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var o=(s,e,t)=>(y(s,e,"access private method"),t);import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const h=document.querySelector(".time"),v=document.querySelectorAll(".duration-button"),b=document.querySelector("#breaklen"),q=document.querySelector("#sesslen"),S=document.querySelector("#minute"),k=document.querySelector("#second"),T=document.querySelector("#play"),E=document.querySelector("#reset"),g=document.querySelector(".timer-header"),I=document.querySelector("#beep"),m=document.querySelector("#playicon");var i,a;class x{constructor(){u(this,i);this.state="session",this.session={time:25,interval:[5,60]},this.break={time:5,interval:[2,20]},this.timeLeft=[25,0],this.isRunning=!1,this.startInterval=null}start(){this.isRunning=!0,this.startInterval=setInterval(()=>this.run(),1e3),m.classList.remove("fa-play"),m.classList.add("fa-pause")}pause(){clearInterval(this.startInterval),this.isRunning=!1,m.classList.remove("fa-pause"),m.classList.add("fa-play")}reset(){this.pause(),this.timeLeft=[25,0],this.break.time=5,this.session.time=25,this.state="session",this.render()}setTime(e){if(this.isRunning)return;const{currentTarget:{dataset:{target:t,direction:r}}}=e,c=r==="up"?1:-1,{time:d,interval:f}=this[t],l=d+c,[p,L]=f;l>L||l9?e:`0${e}`};const n=new x;n.render();v.forEach(s=>{s.addEventListener("click",e=>n.setTime(e))});T.addEventListener("click",()=>{n.isRunning?n.pause():n.start()});E.addEventListener("click",()=>n.reset()); diff --git a/docs/javascript/assets/index-Ac206fmO.css b/docs/javascript/assets/index-Ac206fmO.css deleted file mode 100644 index 501ff56c7..000000000 --- a/docs/javascript/assets/index-Ac206fmO.css +++ /dev/null @@ -1 +0,0 @@ -.wrapper{background-color:#fff;width:45%;min-width:550px;padding:30px;position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;border-radius:8px}.output{background-color:#eef3f8;width:100%;min-height:250px;padding:20px 0;overflow:hidden;border-radius:5px;position:relative;display:grid;place-items:center}#blob{height:200px;width:200px;border-radius:50%;background:linear-gradient(#d94a4a,#c22222);box-shadow:15px 20px 30px #00000026}.dimesions{display:flex;justify-content:space-around;width:100%;margin:20px 0 40px}label{font-weight:500}input[type=number]{height:40px;width:80px;padding:10px;margin-top:5px;border:1px solid #a0a0b0;border-radius:3px}input[type=number]:focus{background-color:#f1f5fa;border-color:#c22222;color:#c22222}.sliders{width:100%;display:grid;grid-template-columns:1fr 1fr;grid-gap:20px}input[type=text]{width:82%;margin-top:50px;padding:10px;font-size:12px;border:none;background-color:#f1eff9;border-radius:3px}button{width:12%;margin-left:4%;padding:10px 0;background-color:#c22222;border:none;cursor:pointer;border-radius:3px;color:#fff;font-size:12px} diff --git a/docs/javascript/assets/index-JlTYHVe2.js b/docs/javascript/assets/index-Aj1XmqjO.js similarity index 96% rename from docs/javascript/assets/index-JlTYHVe2.js rename to docs/javascript/assets/index-Aj1XmqjO.js index 10a51b781..44a7016a6 100644 --- a/docs/javascript/assets/index-JlTYHVe2.js +++ b/docs/javascript/assets/index-Aj1XmqjO.js @@ -1,4 +1,4 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const d=document.getElementById("noun"),i=document.getElementById("verb"),r=document.getElementById("adjective"),c=document.getElementById("adverb"),s=document.getElementById("generate"),u=document.getElementById("play-again"),y=document.getElementById("share-story-twitter"),a=document.getElementById("story");function h(){const e=d.value,t=i.value,n=r.value,o=c.value,l=` +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const d=document.getElementById("noun"),i=document.getElementById("verb"),r=document.getElementById("adjective"),c=document.getElementById("adverb"),s=document.getElementById("generate"),u=document.getElementById("play-again"),y=document.getElementById("share-story-twitter"),a=document.getElementById("story");function h(){const e=d.value,t=i.value,n=r.value,o=c.value,l=` In a fantastical realm, there resided a ${e} of incredible bravery. From a young age, this ${e} aspired to ${t} ${n}ly, diligently honing their skills ${o}. One magical day, while ${t}ing near the ancient ${e}, they stumbled upon an enchanted ${e}. diff --git a/docs/javascript/assets/index-ZAufEBZg.js b/docs/javascript/assets/index-B2_7JC-1.js similarity index 95% rename from docs/javascript/assets/index-ZAufEBZg.js rename to docs/javascript/assets/index-B2_7JC-1.js index 1c636c8f4..b3dd7cf4a 100644 --- a/docs/javascript/assets/index-ZAufEBZg.js +++ b/docs/javascript/assets/index-B2_7JC-1.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const i=["map","filter"];function c(t,e){this.dropdown=p(t),this.input=s(e),this.output=m()}c.prototype.setOutput=function(t){return this.output.value=t,t};c.prototype.evaluate=function(t){const e=Function(`return function func(value, index, array){ return ${this.input.value} }`);return t[this.dropdown.value](e())};function p(t=i[0]){const e=document.createElement("select");return i.forEach(u=>{const n=document.createElement("option");n.value=u,n.textContent=u,e.appendChild(n)}),e.value=t,e}function s(t){const e=document.createElement("input");return e.value=t??"value",e}function m(){return document.createElement("output")}const l=[],v=document.getElementById("methodList");function a(t,e,u){const n=new c(e,u),o=document.createElement("div"),r=document.createElement("div");r.appendChild(n.dropdown),r.appendChild(n.input);const d=document.createElement("div");d.appendChild(n.output),o.appendChild(r),o.appendChild(d),v.appendChild(o),l.push(n)}function h(){const t=E(document.querySelector('[name="array_values"]').value);l.reduce((e,u)=>{const n=u.evaluate(e);return u.setOutput(n),n},t)}function E(t){return t.split(",")}document.getElementById("add").addEventListener("click",a);document.getElementById("evaluate").addEventListener("click",h);a(null,"filter","index > 3");a(null,"map","value / 5"); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const i=["map","filter"];function c(t,e){this.dropdown=p(t),this.input=s(e),this.output=m()}c.prototype.setOutput=function(t){return this.output.value=t,t};c.prototype.evaluate=function(t){const e=Function(`return function func(value, index, array){ return ${this.input.value} }`);return t[this.dropdown.value](e())};function p(t=i[0]){const e=document.createElement("select");return i.forEach(u=>{const n=document.createElement("option");n.value=u,n.textContent=u,e.appendChild(n)}),e.value=t,e}function s(t){const e=document.createElement("input");return e.value=t??"value",e}function m(){return document.createElement("output")}const l=[],v=document.getElementById("methodList");function a(t,e,u){const n=new c(e,u),o=document.createElement("div"),r=document.createElement("div");r.appendChild(n.dropdown),r.appendChild(n.input);const d=document.createElement("div");d.appendChild(n.output),o.appendChild(r),o.appendChild(d),v.appendChild(o),l.push(n)}function h(){const t=E(document.querySelector('[name="array_values"]').value);l.reduce((e,u)=>{const n=u.evaluate(e);return u.setOutput(n),n},t)}function E(t){return t.split(",")}document.getElementById("add").addEventListener("click",a);document.getElementById("evaluate").addEventListener("click",h);a(null,"filter","index > 3");a(null,"map","value / 5"); diff --git a/docs/javascript/assets/index-St5JQTKu.js b/docs/javascript/assets/index-C34JBFMe.js similarity index 96% rename from docs/javascript/assets/index-St5JQTKu.js rename to docs/javascript/assets/index-C34JBFMe.js index 8512e860c..a539bbf19 100644 --- a/docs/javascript/assets/index-St5JQTKu.js +++ b/docs/javascript/assets/index-C34JBFMe.js @@ -1 +1 @@ -var u=Object.defineProperty;var f=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var n=(a,e,t)=>(f(a,typeof e!="symbol"?e+"":e,t),t);import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const p="/frontend-mini-challenges/javascript/assets/1-OkPi44L4.jpg",I="/frontend-mini-challenges/javascript/assets/2-LbNREVae.jpg",v="/frontend-mini-challenges/javascript/assets/3-SrIwCN-U.jpg",y="/frontend-mini-challenges/javascript/assets/4-IwShTW20.jpg",E="/frontend-mini-challenges/javascript/assets/5-XTj0vlQy.jpg",H=document.getElementById("carousel"),L=document.getElementById("leftHandle"),P=document.getElementById("rightHandle"),h=document.getElementById("infinite"),d=document.getElementById("autoplay"),c=document.getElementById("autoplayInterval");class b{constructor(e,{images:t,leftHandle:s,rightHandle:i,isInfinite:l=!0,autoPlay:r=!1,autoPlayInterval:g=5e3,selected:m=0}){n(this,"swipeLeft",()=>{this.selected===0&&!this.isInfinite||(this.selected-=1,this.selected<0&&(this.selected+=this.images.length),this.setSelection())});n(this,"swipeRight",()=>{this.selected===this.images.length-1&&!this.isInfinite||(this.selected+=1,this.selected%=this.images.length,this.setSelection())});n(this,"dotSelect",e=>{e.target.classList.contains("dot")&&(this.selected=+e.target.dataset.index,this.setSelection())});this.carousel=e,this.images=t,this.leftHandle=s,this.rightHandle=i,this.selected=m,this.isInfinite=l,this.autoPlay=r,this.autoPlayInterval=g,this.placeImages(),this.dotHolder=this.createProgress(),this.addListeners(),this.setSelection(),this.startAutoPlay()}setInfinite(e){this.isInfinite=e,this.setHandles()}setAutoPlay(e,t){this.autoPlay=e,this.autoPlayInterval=t,this.startAutoPlay()}startAutoPlay(){this.autoPlay?(clearInterval(this.intervalId),this.intervalId=setInterval(this.swipeRight,this.autoPlayInterval)):clearInterval(this.intervalId)}addListeners(){this.leftHandle.addEventListener("click",this.swipeLeft),this.rightHandle.addEventListener("click",this.swipeRight),this.dotHolder.addEventListener("click",this.dotSelect)}setSelection(){var s;const e=this.carousel.querySelector(".img-holder"),t=this.dotHolder.querySelector(`[data-index='${this.selected}']`);e.style.transform=`translateX(${256*-this.selected}px)`,(s=this.dotHolder.querySelector(".selected"))==null||s.classList.remove("selected"),t.classList.add("selected"),this.setHandles()}setHandles(){this.isInfinite?this.disableHandles({isLeftDisabled:!1,isRightDisabled:!1}):this.disableHandles({isLeftDisabled:this.selected===0,isRightDisabled:this.selected===this.images.length-1})}disableHandles({isLeftDisabled:e,isRightDisabled:t}){this.leftHandle.disabled=e,this.rightHandle.disabled=t}placeImages(){const e=document.createElement("div");e.classList.add("img-frame");const t=document.createElement("div");t.classList.add("img-holder"),this.images.forEach(s=>{const i=document.createElement("img");i.src=s,t.appendChild(i)}),e.appendChild(t),this.carousel.appendChild(e)}createProgress(){const e=document.createElement("ul");return e.classList.add("dot-holder"),this.images.forEach((t,s)=>{const i=document.createElement("li");i.role="presentation";const l=document.createElement("button");l.role="tab",l.dataset.index=s,l.classList.add("dot"),i.appendChild(l),e.appendChild(i)}),this.carousel.appendChild(e),e}}const o=new b(H,{images:[p,I,v,y,E],selected:0,leftHandle:L,rightHandle:P,isInfinite:!1});h.addEventListener("change",()=>{o.setInfinite(h.checked)});d.addEventListener("change",()=>{c.disabled=!d.checked,o.setAutoPlay(d.checked,c.value)});c.addEventListener("change",()=>{o.setAutoPlay(d.checked,c.value)}); +var u=Object.defineProperty;var f=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var n=(a,e,t)=>(f(a,typeof e!="symbol"?e+"":e,t),t);import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const p="/frontend-mini-challenges/javascript/assets/1-OkPi44L4.jpg",I="/frontend-mini-challenges/javascript/assets/2-LbNREVae.jpg",v="/frontend-mini-challenges/javascript/assets/3-SrIwCN-U.jpg",y="/frontend-mini-challenges/javascript/assets/4-IwShTW20.jpg",E="/frontend-mini-challenges/javascript/assets/5-XTj0vlQy.jpg",H=document.getElementById("carousel"),L=document.getElementById("leftHandle"),P=document.getElementById("rightHandle"),h=document.getElementById("infinite"),d=document.getElementById("autoplay"),c=document.getElementById("autoplayInterval");class b{constructor(e,{images:t,leftHandle:s,rightHandle:i,isInfinite:l=!0,autoPlay:r=!1,autoPlayInterval:g=5e3,selected:m=0}){n(this,"swipeLeft",()=>{this.selected===0&&!this.isInfinite||(this.selected-=1,this.selected<0&&(this.selected+=this.images.length),this.setSelection())});n(this,"swipeRight",()=>{this.selected===this.images.length-1&&!this.isInfinite||(this.selected+=1,this.selected%=this.images.length,this.setSelection())});n(this,"dotSelect",e=>{e.target.classList.contains("dot")&&(this.selected=+e.target.dataset.index,this.setSelection())});this.carousel=e,this.images=t,this.leftHandle=s,this.rightHandle=i,this.selected=m,this.isInfinite=l,this.autoPlay=r,this.autoPlayInterval=g,this.placeImages(),this.dotHolder=this.createProgress(),this.addListeners(),this.setSelection(),this.startAutoPlay()}setInfinite(e){this.isInfinite=e,this.setHandles()}setAutoPlay(e,t){this.autoPlay=e,this.autoPlayInterval=t,this.startAutoPlay()}startAutoPlay(){this.autoPlay?(clearInterval(this.intervalId),this.intervalId=setInterval(this.swipeRight,this.autoPlayInterval)):clearInterval(this.intervalId)}addListeners(){this.leftHandle.addEventListener("click",this.swipeLeft),this.rightHandle.addEventListener("click",this.swipeRight),this.dotHolder.addEventListener("click",this.dotSelect)}setSelection(){var s;const e=this.carousel.querySelector(".img-holder"),t=this.dotHolder.querySelector(`[data-index='${this.selected}']`);e.style.transform=`translateX(${256*-this.selected}px)`,(s=this.dotHolder.querySelector(".selected"))==null||s.classList.remove("selected"),t.classList.add("selected"),this.setHandles()}setHandles(){this.isInfinite?this.disableHandles({isLeftDisabled:!1,isRightDisabled:!1}):this.disableHandles({isLeftDisabled:this.selected===0,isRightDisabled:this.selected===this.images.length-1})}disableHandles({isLeftDisabled:e,isRightDisabled:t}){this.leftHandle.disabled=e,this.rightHandle.disabled=t}placeImages(){const e=document.createElement("div");e.classList.add("img-frame");const t=document.createElement("div");t.classList.add("img-holder"),this.images.forEach(s=>{const i=document.createElement("img");i.src=s,t.appendChild(i)}),e.appendChild(t),this.carousel.appendChild(e)}createProgress(){const e=document.createElement("ul");return e.classList.add("dot-holder"),this.images.forEach((t,s)=>{const i=document.createElement("li");i.role="presentation";const l=document.createElement("button");l.role="tab",l.dataset.index=s,l.classList.add("dot"),i.appendChild(l),e.appendChild(i)}),this.carousel.appendChild(e),e}}const o=new b(H,{images:[p,I,v,y,E],selected:0,leftHandle:L,rightHandle:P,isInfinite:!1});h.addEventListener("change",()=>{o.setInfinite(h.checked)});d.addEventListener("change",()=>{c.disabled=!d.checked,o.setAutoPlay(d.checked,c.value)});c.addEventListener("change",()=>{o.setAutoPlay(d.checked,c.value)}); diff --git a/docs/javascript/assets/index-osB6ybrg.js b/docs/javascript/assets/index-C_i8v26c.js similarity index 88% rename from docs/javascript/assets/index-osB6ybrg.js rename to docs/javascript/assets/index-C_i8v26c.js index d5f601e68..ac6d33eb2 100644 --- a/docs/javascript/assets/index-osB6ybrg.js +++ b/docs/javascript/assets/index-C_i8v26c.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const l=document.getElementById("bmiForm");l.addEventListener("submit",function(n){n.preventDefault();const t=parseFloat(document.getElementById("height").value),e=parseFloat(document.getElementById("weight").value);if(!isNaN(t)&&!isNaN(e)){const i=o(t,e);a(i)}else alert("Please enter valid height and weight values.")});function o(n,t){const e=n/100;return(t/(e*e)).toFixed(2)}function a(n){const t=document.getElementById("result"),e=document.getElementById("bmiValue");e.textContent=n,t.style.display="block"} +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const l=document.getElementById("bmiForm");l.addEventListener("submit",function(n){n.preventDefault();const t=parseFloat(document.getElementById("height").value),e=parseFloat(document.getElementById("weight").value);if(!isNaN(t)&&!isNaN(e)){const i=o(t,e);a(i)}else alert("Please enter valid height and weight values.")});function o(n,t){const e=n/100;return(t/(e*e)).toFixed(2)}function a(n){const t=document.getElementById("result"),e=document.getElementById("bmiValue");e.textContent=n,t.style.display="block"} diff --git a/docs/javascript/assets/index-4L6sBD7q.js b/docs/javascript/assets/index-Cuyiz2Nk.js similarity index 94% rename from docs/javascript/assets/index-4L6sBD7q.js rename to docs/javascript/assets/index-Cuyiz2Nk.js index a3384f1eb..bc5b7fb1b 100644 --- a/docs/javascript/assets/index-4L6sBD7q.js +++ b/docs/javascript/assets/index-Cuyiz2Nk.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const i=document.getElementById("horizontal-position"),m=document.getElementById("vertical-position"),p=document.getElementById("type"),l=document.getElementById("message"),d=document.getElementById("show-toast"),f=document.getElementById("duration"),y=document.querySelector(".tc-left-top"),E=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),v=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");l.addEventListener("input",B);d.addEventListener("click",h);function B(){d.disabled=l.value.length===0}function h(){const o=l.value,n=p.value,c=i.value,e=m.value,t=+f.value*1e3;S(o,n,t,c,e)}function S(o,n,c,e,t){e==="left"?t==="top"?y.prepend(s(o,n,c,e)):E.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):v.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",r);const a=t.querySelector(".toast");setTimeout(r,c);async function r(){a.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(u=>setTimeout(u,100)),a.remove()}return t} +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const i=document.getElementById("horizontal-position"),m=document.getElementById("vertical-position"),p=document.getElementById("type"),l=document.getElementById("message"),d=document.getElementById("show-toast"),f=document.getElementById("duration"),y=document.querySelector(".tc-left-top"),E=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),v=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");l.addEventListener("input",B);d.addEventListener("click",h);function B(){d.disabled=l.value.length===0}function h(){const o=l.value,n=p.value,c=i.value,e=m.value,t=+f.value*1e3;S(o,n,t,c,e)}function S(o,n,c,e,t){e==="left"?t==="top"?y.prepend(s(o,n,c,e)):E.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):v.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",r);const a=t.querySelector(".toast");setTimeout(r,c);async function r(){a.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(u=>setTimeout(u,100)),a.remove()}return t} diff --git a/docs/javascript/assets/index-7hRhOyI2.js b/docs/javascript/assets/index-CzCgJ8ac.js similarity index 97% rename from docs/javascript/assets/index-7hRhOyI2.js rename to docs/javascript/assets/index-CzCgJ8ac.js index e8859cbfb..0981932a2 100644 --- a/docs/javascript/assets/index-7hRhOyI2.js +++ b/docs/javascript/assets/index-CzCgJ8ac.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const h=document.getElementById("pagination"),d=document.getElementById("pages"),g=document.getElementById("siblings"),c=document.getElementById("boundary");class r{constructor(t,n,s,e,o=1){this.paginatorElement=t,this.totalPages=n,this.activePage=o,this.siblingCount=s,this.boundary=e,this.addListener(),this.populate()}addListener(){this.paginatorElement.addEventListener("click",t=>{if(t.target.classList.contains("page-number")){this.activePage=+t.target.dataset.value,this.populate();return}if(t.target.classList.contains("page-decrement")){this.activePage=Math.max(1,this.activePage-1),this.populate();return}if(t.target.classList.contains("page-increment")){this.activePage=Math.min(this.totalPages,this.activePage+1),this.populate();return}})}populate(){this.paginatorElement.innerHTML="";const t=this.siblingCount*2+2+this.boundary;let n=!1;const s=document.createDocumentFragment();let e=document.createElement("button");e.classList.add("page-modifier"),e.classList.add("page-decrement"),e.textContent="<",this.activePage===1&&(e.disabled=!0),s.appendChild(e);for(let a=1;a<=this.totalPages;a++){const i=document.createElement("button");let l=a;if(!(a<=this.boundary||a>this.totalPages-this.boundary||this.activePage<=t-this.siblingCount&&a<=t||this.activePage>this.totalPages-t+this.siblingCount&&a>this.totalPages-t||a>=this.activePage-this.siblingCount&&a<=this.activePage+this.siblingCount)){if(n)continue;l="...",i.classList.add("dot"),i.classList.add(this.activePage>a?"dot-left":"dot-right"),i.dataset.value=this.activePage>a?Math.max(1,this.activePage-t):Math.min(this.totalPages,this.activePage+t)}i.textContent=l,typeof l=="number"&&(i.dataset.value=a,i.setAttribute("tabindex",0)),n=typeof l=="string",i.classList.add("page-number"),s.appendChild(i)}e=document.createElement("button"),e.classList.add("page-modifier"),e.classList.add("page-increment"),e.textContent=">",this.activePage===this.totalPages&&(e.disabled=!0),s.appendChild(e),this.paginatorElement.appendChild(s);const o=this.paginatorElement.querySelector(`[data-value='${this.activePage}']`);o.classList.add("active"),o.focus()}setTotalPages(t){this.totalPages=t,this.activePage=Math.min(this.activePage,this.totalPages),this.populate()}setBoundary(t){this.boundary=t,this.populate()}setSiblingCount(t){this.siblingCount=t,this.populate()}}const u=new r(h,+d.value,+g.value,+c.value);d.addEventListener("input",()=>{u.setTotalPages(+d.value)});g.addEventListener("input",()=>{u.setSiblingCount(+g.value)});c.addEventListener("input",()=>{u.setBoundary(+c.value)}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const h=document.getElementById("pagination"),d=document.getElementById("pages"),g=document.getElementById("siblings"),c=document.getElementById("boundary");class r{constructor(t,n,s,e,o=1){this.paginatorElement=t,this.totalPages=n,this.activePage=o,this.siblingCount=s,this.boundary=e,this.addListener(),this.populate()}addListener(){this.paginatorElement.addEventListener("click",t=>{if(t.target.classList.contains("page-number")){this.activePage=+t.target.dataset.value,this.populate();return}if(t.target.classList.contains("page-decrement")){this.activePage=Math.max(1,this.activePage-1),this.populate();return}if(t.target.classList.contains("page-increment")){this.activePage=Math.min(this.totalPages,this.activePage+1),this.populate();return}})}populate(){this.paginatorElement.innerHTML="";const t=this.siblingCount*2+2+this.boundary;let n=!1;const s=document.createDocumentFragment();let e=document.createElement("button");e.classList.add("page-modifier"),e.classList.add("page-decrement"),e.textContent="<",this.activePage===1&&(e.disabled=!0),s.appendChild(e);for(let a=1;a<=this.totalPages;a++){const i=document.createElement("button");let l=a;if(!(a<=this.boundary||a>this.totalPages-this.boundary||this.activePage<=t-this.siblingCount&&a<=t||this.activePage>this.totalPages-t+this.siblingCount&&a>this.totalPages-t||a>=this.activePage-this.siblingCount&&a<=this.activePage+this.siblingCount)){if(n)continue;l="...",i.classList.add("dot"),i.classList.add(this.activePage>a?"dot-left":"dot-right"),i.dataset.value=this.activePage>a?Math.max(1,this.activePage-t):Math.min(this.totalPages,this.activePage+t)}i.textContent=l,typeof l=="number"&&(i.dataset.value=a,i.setAttribute("tabindex",0)),n=typeof l=="string",i.classList.add("page-number"),s.appendChild(i)}e=document.createElement("button"),e.classList.add("page-modifier"),e.classList.add("page-increment"),e.textContent=">",this.activePage===this.totalPages&&(e.disabled=!0),s.appendChild(e),this.paginatorElement.appendChild(s);const o=this.paginatorElement.querySelector(`[data-value='${this.activePage}']`);o.classList.add("active"),o.focus()}setTotalPages(t){this.totalPages=t,this.activePage=Math.min(this.activePage,this.totalPages),this.populate()}setBoundary(t){this.boundary=t,this.populate()}setSiblingCount(t){this.siblingCount=t,this.populate()}}const u=new r(h,+d.value,+g.value,+c.value);d.addEventListener("input",()=>{u.setTotalPages(+d.value)});g.addEventListener("input",()=>{u.setSiblingCount(+g.value)});c.addEventListener("input",()=>{u.setBoundary(+c.value)}); diff --git a/docs/javascript/assets/index-hFSyjhzS.js b/docs/javascript/assets/index-EAgV_hvJ.js similarity index 94% rename from docs/javascript/assets/index-hFSyjhzS.js rename to docs/javascript/assets/index-EAgV_hvJ.js index 255b42570..71f2fea74 100644 --- a/docs/javascript/assets/index-hFSyjhzS.js +++ b/docs/javascript/assets/index-EAgV_hvJ.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const a=document.querySelector("button"),c=document.querySelectorAll(".options button")[0],u=document.querySelectorAll(".options button")[1],l=document.querySelectorAll(".options button")[2],s=document.querySelectorAll(".options button")[3];a.addEventListener("click",d);c.addEventListener("click",f);u.addEventListener("click",p);l.addEventListener("click",m);s.addEventListener("click",g);const r="1234";let o=!1,n=1e3;function d(){document.getElementById("pin").value===r?(o=!0,e("Login successful.")):(o=!1,e("Invalid PIN. Please try again."))}function f(){if(!o){e("Please login first.");return}e(`Your balance is $${n}`)}function p(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to deposit:"));!isNaN(t)&&t>0?(n+=t,e(`Deposited $${t}. Your new balance is $${n}`)):e("Invalid amount. Please try again.")}function m(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to withdraw:"));!isNaN(t)&&t>0&&t<=n?(n-=t,e(`Withdrawn $${t}. Your new balance is $${n}`)):e("Invalid amount or insufficient balance. Please try again.")}function g(){o=!1,e("Logged out successfully.")}function e(t){const i=document.getElementById("output");i.textContent=t} +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const a=document.querySelector("button"),c=document.querySelectorAll(".options button")[0],u=document.querySelectorAll(".options button")[1],l=document.querySelectorAll(".options button")[2],s=document.querySelectorAll(".options button")[3];a.addEventListener("click",d);c.addEventListener("click",f);u.addEventListener("click",p);l.addEventListener("click",m);s.addEventListener("click",g);const r="1234";let o=!1,n=1e3;function d(){document.getElementById("pin").value===r?(o=!0,e("Login successful.")):(o=!1,e("Invalid PIN. Please try again."))}function f(){if(!o){e("Please login first.");return}e(`Your balance is $${n}`)}function p(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to deposit:"));!isNaN(t)&&t>0?(n+=t,e(`Deposited $${t}. Your new balance is $${n}`)):e("Invalid amount. Please try again.")}function m(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to withdraw:"));!isNaN(t)&&t>0&&t<=n?(n-=t,e(`Withdrawn $${t}. Your new balance is $${n}`)):e("Invalid amount or insufficient balance. Please try again.")}function g(){o=!1,e("Logged out successfully.")}function e(t){const i=document.getElementById("output");i.textContent=t} diff --git a/docs/javascript/assets/index-TElHX8es.js b/docs/javascript/assets/index-FPNCGECH.js similarity index 92% rename from docs/javascript/assets/index-TElHX8es.js rename to docs/javascript/assets/index-FPNCGECH.js index 0f0ed93c1..2ba246335 100644 --- a/docs/javascript/assets/index-TElHX8es.js +++ b/docs/javascript/assets/index-FPNCGECH.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const r=document.getElementById("form"),t=document.getElementById("input"),i=document.getElementById("submit"),o=document.getElementById("output"),l=document.getElementById("guessDisplay"),s=document.getElementById("startGame");let e=[],n;function m(){o.textContent="",l.textContent="",e=[],n=Math.round(Math.random()*100),t.disabled=!1,i.disabled=!1,s.disabled=!0,t.focus()}function a(u){o.textContent=u,t.disabled=!0,i.disabled=!0,s.disabled=!1,s.focus()}function c(u){u.preventDefault();const d=+t.value;if(t.value="",e.push(d),l.textContent=`Your guesses: ${e.join(", ")}`,d>n)o.textContent="Too high!";else if(d=10&&a("You lost! The number was "+n)}r.addEventListener("submit",c);s.addEventListener("click",m);m(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const r=document.getElementById("form"),t=document.getElementById("input"),i=document.getElementById("submit"),o=document.getElementById("output"),l=document.getElementById("guessDisplay"),s=document.getElementById("startGame");let e=[],n;function m(){o.textContent="",l.textContent="",e=[],n=Math.round(Math.random()*100),t.disabled=!1,i.disabled=!1,s.disabled=!0,t.focus()}function a(u){o.textContent=u,t.disabled=!0,i.disabled=!0,s.disabled=!1,s.focus()}function c(u){u.preventDefault();const d=+t.value;if(t.value="",e.push(d),l.textContent=`Your guesses: ${e.join(", ")}`,d>n)o.textContent="Too high!";else if(d=10&&a("You lost! The number was "+n)}r.addEventListener("submit",c);s.addEventListener("click",m);m(); diff --git a/docs/javascript/assets/index-KE8ezX-6.js b/docs/javascript/assets/index-GiDcix_H.js similarity index 93% rename from docs/javascript/assets/index-KE8ezX-6.js rename to docs/javascript/assets/index-GiDcix_H.js index 981c7f768..47652000a 100644 --- a/docs/javascript/assets/index-KE8ezX-6.js +++ b/docs/javascript/assets/index-GiDcix_H.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const d=document.getElementById("generate"),r=document.getElementById("play"),u=9,o=[];s();function s(){for(let t=0;tt[e]&&(i=!0,n.push({indices:[e-1,e],type:"swap"}),[t[e-1],t[e]]=[t[e],t[e-1]])}while(i);return n}function c(t){container.innerHTML="";for(let n=0;nt[e]&&(i=!0,n.push({indices:[e-1,e],type:"swap"}),[t[e-1],t[e]]=[t[e],t[e-1]])}while(i);return n}function c(t){container.innerHTML="";for(let n=0;n{const o=document.createElement("div");o.className="post";const t=document.createElement("span");t.className="post-number",t.textContent=s+c+1;const l=document.createElement("span");l.className="post-body",l.textContent=n.body,o.appendChild(t),o.appendChild(l),w.appendChild(o)})}function N(){C.style.display="block"}function h(e){b.style.display=e}function i(e){E.style.display=e}function f(e,n){const c=`https://jsonplaceholder.typicode.com/posts?_start=${e}&_end=${n}`;d=!0,h("none"),i("block"),setTimeout(async()=>{try{const t=await(await fetch(c)).json();t.length0&&p(t),N()):(p(t),s=n,u=y(s)),r=0,a=!1}catch(o){console.log(o),r++;const t=document.getElementsByClassName("post").length;r>H?(h("block"),a=!0):t===0&&f(e,n),i("none")}finally{d=!1}},500)}f(s,u);function g(){if(d||m||a)return;const e=Math.ceil(window.innerHeight+window.scrollY),n=window.document.body.offsetHeight-36;e>=n&&f(s,u)}window.addEventListener("scroll",g);window.addEventListener("resize",g); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const w=document.querySelector(".post-container"),E=document.querySelector(".loader"),C=document.querySelector(".end-of-content"),b=document.querySelector(".fetch-error");let s=0,u=y(s),d=!1,a=!1,m=!1,r=0;const H=3;function y(e){const c=Math.ceil(window.innerHeight/90);return e+c}function p(e=[]){e.forEach((n,c)=>{const o=document.createElement("div");o.className="post";const t=document.createElement("span");t.className="post-number",t.textContent=s+c+1;const l=document.createElement("span");l.className="post-body",l.textContent=n.body,o.appendChild(t),o.appendChild(l),w.appendChild(o)})}function N(){C.style.display="block"}function h(e){b.style.display=e}function i(e){E.style.display=e}function f(e,n){const c=`https://jsonplaceholder.typicode.com/posts?_start=${e}&_end=${n}`;d=!0,h("none"),i("block"),setTimeout(async()=>{try{const t=await(await fetch(c)).json();t.length0&&p(t),N()):(p(t),s=n,u=y(s)),r=0,a=!1}catch(o){console.log(o),r++;const t=document.getElementsByClassName("post").length;r>H?(h("block"),a=!0):t===0&&f(e,n),i("none")}finally{d=!1}},500)}f(s,u);function g(){if(d||m||a)return;const e=Math.ceil(window.innerHeight+window.scrollY),n=window.document.body.offsetHeight-36;e>=n&&f(s,u)}window.addEventListener("scroll",g);window.addEventListener("resize",g); diff --git a/docs/javascript/assets/index-isYlwqIt.js b/docs/javascript/assets/index-ICiPL8qB.js similarity index 78% rename from docs/javascript/assets/index-isYlwqIt.js rename to docs/javascript/assets/index-ICiPL8qB.js index b776e4c79..8607e5d40 100644 --- a/docs/javascript/assets/index-isYlwqIt.js +++ b/docs/javascript/assets/index-ICiPL8qB.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const e=document.getElementById("phone"),r=n=>[...n].filter(t=>Number.isInteger(+t)&&t!==" ").join(""),i=n=>{const t=r(n);return t.length>3?"+("+t.substring(0,3)+") - "+t.substring(3):t};e.addEventListener("input",()=>e.value=i(e.value)); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const e=document.getElementById("phone"),r=n=>[...n].filter(t=>Number.isInteger(+t)&&t!==" ").join(""),i=n=>{const t=r(n);return t.length>3?"+("+t.substring(0,3)+") - "+t.substring(3):t};e.addEventListener("input",()=>e.value=i(e.value)); diff --git a/docs/javascript/assets/index-L7RwDjkD.css b/docs/javascript/assets/index-L7RwDjkD.css deleted file mode 100644 index 5217f288a..000000000 --- a/docs/javascript/assets/index-L7RwDjkD.css +++ /dev/null @@ -1 +0,0 @@ -button{background-color:#fff;border:1px solid black;border-radius:2px;padding:3px 7px;text-align:center}button:hover{cursor:pointer;background-color:#0ff}dialog{border:1px solid black;border-radius:3px;padding:10px;max-width:325px;width:80%}h4{padding:0;margin:0;border-bottom:1px solid black}.dialogContent{padding:10px} diff --git a/docs/javascript/assets/index-GsbXeaDL.js b/docs/javascript/assets/index-LGeQfvHg.js similarity index 90% rename from docs/javascript/assets/index-GsbXeaDL.js rename to docs/javascript/assets/index-LGeQfvHg.js index a55848651..453af1703 100644 --- a/docs/javascript/assets/index-GsbXeaDL.js +++ b/docs/javascript/assets/index-LGeQfvHg.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const n=document.querySelector(".meme-generator .generate-meme-btn");document.querySelector("body");const c=document.querySelector(".meme-generator img"),u=document.querySelector(".meme-generator .meme-title"),s=document.querySelector(".meme-generator .meme-author"),t=document.querySelector(".meme"),l=(e,o,r)=>{c.setAttribute("src",e),u.innerHTML=o,s.innerHTML=`Meme by: ${r}`},m=()=>{t.style.backgroundColor="#F7EEEE",t.style.boxShadow="10px 10px 16px rgb(0, 0, 0, 0.2)",fetch(" https://meme-api.com/gimme/wholesomememes").then(e=>e.json()).then(e=>{l(e.url,e.title,e.author)})};n.addEventListener("click",m);m(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const n=document.querySelector(".meme-generator .generate-meme-btn");document.querySelector("body");const c=document.querySelector(".meme-generator img"),u=document.querySelector(".meme-generator .meme-title"),s=document.querySelector(".meme-generator .meme-author"),t=document.querySelector(".meme"),l=(e,o,r)=>{c.setAttribute("src",e),u.innerHTML=o,s.innerHTML=`Meme by: ${r}`},m=()=>{t.style.backgroundColor="#F7EEEE",t.style.boxShadow="10px 10px 16px rgb(0, 0, 0, 0.2)",fetch(" https://meme-api.com/gimme/wholesomememes").then(e=>e.json()).then(e=>{l(e.url,e.title,e.author)})};n.addEventListener("click",m);m(); diff --git a/docs/javascript/assets/index-8FjEH2Jb.js b/docs/javascript/assets/index-LMlpSju6.js similarity index 94% rename from docs/javascript/assets/index-8FjEH2Jb.js rename to docs/javascript/assets/index-LMlpSju6.js index 843c515f5..fc92d1f85 100644 --- a/docs/javascript/assets/index-8FjEH2Jb.js +++ b/docs/javascript/assets/index-LMlpSju6.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const l=["JavaScript","HTML","CSS","React","Angular","Zustand","NextJS","TypeScript"],a=document.getElementById("listContainer"),s=document.getElementById("todoItemInput"),r=document.getElementById("todoForm"),d=document.getElementById("todo");r.addEventListener("submit",e=>{e.preventDefault();const t=s.value;t&&c(t)});function c(e){const t=d.content.cloneNode(!0);t.querySelector(".text").textContent=e,a.appendChild(t),s.value=""}a.addEventListener("click",e=>{if(e.target.classList.contains("delete"))e.target.parentElement.remove();else if(e.target.classList.contains("edit")){const t=e.target,o=e.target.parentElement.querySelector(".text"),n=document.createElement("input");n.value=o.textContent,t.parentElement.replaceChild(n,o),t.textContent="💾",t.className="save"}else if(e.target.classList.contains("save")){const t=e.target,o=e.target.parentElement.querySelector("input"),n=document.createElement("span");n.className="text",n.textContent=o.value,t.parentElement.replaceChild(n,o),t.textContent="✏️",t.className="edit"}});l.forEach(c); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const l=["JavaScript","HTML","CSS","React","Angular","Zustand","NextJS","TypeScript"],a=document.getElementById("listContainer"),s=document.getElementById("todoItemInput"),r=document.getElementById("todoForm"),d=document.getElementById("todo");r.addEventListener("submit",e=>{e.preventDefault();const t=s.value;t&&c(t)});function c(e){const t=d.content.cloneNode(!0);t.querySelector(".text").textContent=e,a.appendChild(t),s.value=""}a.addEventListener("click",e=>{if(e.target.classList.contains("delete"))e.target.parentElement.remove();else if(e.target.classList.contains("edit")){const t=e.target,o=e.target.parentElement.querySelector(".text"),n=document.createElement("input");n.value=o.textContent,t.parentElement.replaceChild(n,o),t.textContent="💾",t.className="save"}else if(e.target.classList.contains("save")){const t=e.target,o=e.target.parentElement.querySelector("input"),n=document.createElement("span");n.className="text",n.textContent=o.value,t.parentElement.replaceChild(n,o),t.textContent="✏️",t.className="edit"}});l.forEach(c); diff --git a/docs/javascript/assets/index-lxD5NlHJ.js b/docs/javascript/assets/index-Mjo2wzM5.js similarity index 95% rename from docs/javascript/assets/index-lxD5NlHJ.js rename to docs/javascript/assets/index-Mjo2wzM5.js index 4c46217d5..00a907991 100644 --- a/docs/javascript/assets/index-lxD5NlHJ.js +++ b/docs/javascript/assets/index-Mjo2wzM5.js @@ -1 +1 @@ -var m=Object.defineProperty;var u=(i,t,s)=>t in i?m(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(u(i,typeof t!="symbol"?t+"":t,s),s);import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const c=document.getElementById("display");document.getElementById("controls");class S{constructor(t,s,n,l,a,d,o,h){e(this,"msbRegex",/^[0-5]$/);e(this,"lsbRegex",/^[0-9]$/);e(this,"minutes",0);e(this,"seconds",0);e(this,"onClick",t=>{t.target.tagName==="INPUT"?t.target.select():t.target.id==="start"?this.onStart(t):t.target.id==="stop"?this.onStop(t):t.target.id==="reset"&&this.onReset(t)});e(this,"onInput",t=>{const s=Number(t.data);typeof s=="number"&&(t.target.id==="minMSB"||t.target.id==="secMSB"?this.onValueEntry(this.msbRegex,t.target,s):(t.target.id==="minLSB"||t.target.id==="secLSB")&&this.onValueEntry(this.lsbRegex,t.target,s))});this.minMSB=document.getElementById(t),this.minLSB=document.getElementById(s),this.secMSB=document.getElementById(n),this.secLSB=document.getElementById(l),this.start=document.getElementById(a),this.stop=document.getElementById(d),this.reset=document.getElementById(o),this.display=document.getElementById(h)}onStart(){this.setControls(!0,!1),this.display.classList.add("progress"),this.setInputsDisabledStatus(!0),this.setTime(),this.startTimer()}onStop(){this.setControls(!1,!0),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1),clearInterval(this.intervalId)}onReset(){this.setControls(!1,!0),this.resetControls(),this.resetTimerValue()}setControls(t=!1,s=!1){this.start.disabled=t,this.stop.disabled=s}onValueEntry(t,s,n){var l,a;t.test(n)?(s.value=n,(l=s.nextElementSibling)==null||l.focus(),(a=s.nextElementSibling)==null||a.select()):(s.value=0,s.select())}setInputsDisabledStatus(t=!1){this.minMSB.disabled=t,this.minLSB.disabled=t,this.secMSB.disabled=t,this.secLSB.disabled=t}resetControls(){clearInterval(this.intervalId),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1)}resetTimerValue(){this.minMSB.value=0,this.minLSB.value=0,this.secMSB.value=0,this.secLSB.value=0}setTime(){this.minutes=+(this.minMSB.value+this.minLSB.value),this.seconds=+(this.secMSB.value+this.secLSB.value)}startTimer(){if(this.minutes===0&&this.seconds===0){this.onReset();return}this.intervalId=setInterval(()=>{this.seconds-=1,this.seconds<0&&(this.seconds=59,this.minutes-=1),this.minutes===0&&this.seconds===0&&this.onReset(),this.setDisplay(this.minutes,this.seconds)},1e3)}setDisplay(t,s){[this.minMSB.value,this.minLSB.value]=String(t).padStart(2,0).split(""),[this.secMSB.value,this.secLSB.value]=String(s).padStart(2,0).split("")}}const r=new S("minMSB","minLSB","secMSB","secLSB","start","stop","reset","display");c.addEventListener("input",r.onInput);document.body.addEventListener("click",r.onClick); +var m=Object.defineProperty;var u=(i,t,s)=>t in i?m(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(u(i,typeof t!="symbol"?t+"":t,s),s);import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const c=document.getElementById("display");document.getElementById("controls");class S{constructor(t,s,n,l,a,d,o,h){e(this,"msbRegex",/^[0-5]$/);e(this,"lsbRegex",/^[0-9]$/);e(this,"minutes",0);e(this,"seconds",0);e(this,"onClick",t=>{t.target.tagName==="INPUT"?t.target.select():t.target.id==="start"?this.onStart(t):t.target.id==="stop"?this.onStop(t):t.target.id==="reset"&&this.onReset(t)});e(this,"onInput",t=>{const s=Number(t.data);typeof s=="number"&&(t.target.id==="minMSB"||t.target.id==="secMSB"?this.onValueEntry(this.msbRegex,t.target,s):(t.target.id==="minLSB"||t.target.id==="secLSB")&&this.onValueEntry(this.lsbRegex,t.target,s))});this.minMSB=document.getElementById(t),this.minLSB=document.getElementById(s),this.secMSB=document.getElementById(n),this.secLSB=document.getElementById(l),this.start=document.getElementById(a),this.stop=document.getElementById(d),this.reset=document.getElementById(o),this.display=document.getElementById(h)}onStart(){this.setControls(!0,!1),this.display.classList.add("progress"),this.setInputsDisabledStatus(!0),this.setTime(),this.startTimer()}onStop(){this.setControls(!1,!0),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1),clearInterval(this.intervalId)}onReset(){this.setControls(!1,!0),this.resetControls(),this.resetTimerValue()}setControls(t=!1,s=!1){this.start.disabled=t,this.stop.disabled=s}onValueEntry(t,s,n){var l,a;t.test(n)?(s.value=n,(l=s.nextElementSibling)==null||l.focus(),(a=s.nextElementSibling)==null||a.select()):(s.value=0,s.select())}setInputsDisabledStatus(t=!1){this.minMSB.disabled=t,this.minLSB.disabled=t,this.secMSB.disabled=t,this.secLSB.disabled=t}resetControls(){clearInterval(this.intervalId),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1)}resetTimerValue(){this.minMSB.value=0,this.minLSB.value=0,this.secMSB.value=0,this.secLSB.value=0}setTime(){this.minutes=+(this.minMSB.value+this.minLSB.value),this.seconds=+(this.secMSB.value+this.secLSB.value)}startTimer(){if(this.minutes===0&&this.seconds===0){this.onReset();return}this.intervalId=setInterval(()=>{this.seconds-=1,this.seconds<0&&(this.seconds=59,this.minutes-=1),this.minutes===0&&this.seconds===0&&this.onReset(),this.setDisplay(this.minutes,this.seconds)},1e3)}setDisplay(t,s){[this.minMSB.value,this.minLSB.value]=String(t).padStart(2,0).split(""),[this.secMSB.value,this.secLSB.value]=String(s).padStart(2,0).split("")}}const r=new S("minMSB","minLSB","secMSB","secLSB","start","stop","reset","display");c.addEventListener("input",r.onInput);document.body.addEventListener("click",r.onClick); diff --git a/docs/javascript/assets/index-N2cJtsy_.css b/docs/javascript/assets/index-N2cJtsy_.css deleted file mode 100644 index 87b91bca5..000000000 --- a/docs/javascript/assets/index-N2cJtsy_.css +++ /dev/null @@ -1 +0,0 @@ -.accordion-container{display:flex;justify-content:center;align-items:center;flex-direction:column}.fw-bold{font-weight:bolder;margin:20px 0}.accordion-header{margin:4px 0;padding:10px 20px;display:flex;align-items:center;background-color:#fff;border:1px solid #545454;overflow:hidden;border-radius:12px}.accordion-button{width:100%;background-color:#fff;border:none;text-align:left;padding:10px;font-weight:bolder}.accordion-arrow{width:0;height:0;border-style:solid;border-width:10px 10px 0 10px;border-color:#000 transparent transparent transparent;margin-left:5px;transform:rotate(0);transition:transform .3s ease;background-color:#fff}.accordion-arrow.open{transform:rotate(180deg)}.accordion-panel{max-height:0;overflow:hidden;transition:max-height .3s ease;border-radius:12px}.accordion-content{padding:20px} diff --git a/docs/javascript/assets/index-PD96617_.js b/docs/javascript/assets/index-OFTHBfLb.js similarity index 85% rename from docs/javascript/assets/index-PD96617_.js rename to docs/javascript/assets/index-OFTHBfLb.js index 3002688b3..6a20f8279 100644 --- a/docs/javascript/assets/index-PD96617_.js +++ b/docs/javascript/assets/index-OFTHBfLb.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const r=document.querySelector(".second-text"),s=["Student","Developer","Writer"];function i(n){return new Promise(t=>setTimeout(t,n))}async function a(n,t,o=200){await i(o);for(let e=0;esetTimeout(t,n))}async function a(n,t,o=200){await i(o);for(let e=0;e{z(u.value)}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const a="/frontend-mini-challenges/javascript/assets/clear-LZ6NAuEy.png",A="/frontend-mini-challenges/javascript/assets/clouds-Ewen_3nw.png",i="/frontend-mini-challenges/javascript/assets/drizzle-qNMLyhya.png",c="/frontend-mini-challenges/javascript/assets/haze-CPmwrBBR.png",o="data:image/png;base64,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",g="/frontend-mini-challenges/javascript/assets/mist-UsRI81hv.png",w="/frontend-mini-challenges/javascript/assets/rain-6EVq1sZg.png",p="/frontend-mini-challenges/javascript/assets/snow--VBqIh3y.png",m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAAAXNSR0IArs4c6QAACFZJREFUeAHtnOt120YQhcWc/A87CFKBkQoEVyB2ILgCMRWIrkBMBYQqEF0B4QrEVECoAsMVKN+lsdBwsSRByrZAwnPOzc7OY3fmahekkCiDizOV5+fnIa1dghGIgCRZ//PiomAUSpCDT4PBoGDst0BaAh7AofJIwi0Q6f0Smo7BArxWvrDATRv2Bm2Cuh5Ds3fUOA7U+RXbHCwr2JCIiTAC74AvyvnAddZ4fgJpQ7AAvuQYREorITYCE1ACKzqFSatFTimIpkScnlNWlkyObpZcrZnZBSs9PSVu9tZKUz5xanq4N7FFAOuMQAmsxC1Sux9CRzPbFfr0e1fNmjGwBOoKR997n5+6Hg2kwEq2qwACRcIdWACdVpEg/QFcg62nFZ9P4GLXXp330dAKOFluK5iABCxc4I5RZN7uWMf/YaXbYjttp8mJR0IUKpiYGy+uzfSRoOApxD43C6xCe3beRgM6JU6CzzmcPsGKz8EYJBVGjBkogZUggQRENgg97TxZtkAKVsNWGqcEpx9TYEvsOlbHNwQi0UrwuUaAjZvbdTqvU/zUdNgoHp+IsCdzKVubxogbAyupn4dzZAN8f6fnFL4yxYeaswSUxEaHNET83KwffK7h17pORoes/6axruJqbJwo7HpeOZkcWiyJ/nMt9tcgxhI8+c0P6OKcohNbF7+sl3aOX2TaZufW30av3ud9MrEjozt16RTG4UmQZwqW+uTNNbXEXbziTYglJwrsY03xKZJX2A4C+n8B2zGmKJBkyb343QZUxz/0bsuGHas/VVejkV9dy2Kb30t4pzqJLY19ZHRrN+aD1dA6cXAVCkrBj5ap3ZzN9JC2Xy82/C6WmKFX2INs8jNee76xyzt0ZJ2NDwQ/H//E7JXVfoy5cfwwtd4QhU0Sb6Ol9VudOFu4l1ZP9VViTarNbaMrr17lmzLy8zBnJmZS+zGOgDb/kZLWG6KwkQrOqw2194bfxko3sVXKxqD82M9pOyd3YlYrQ3n4VyYmDcV02kbxarIwTUidg+jYwslNtYiRib8Wvtj4pR51wv1132RO8RFIXrs5a9wAK8vQmgRMTVAeiumFDRJ0ikTaClgpmTSuPrYhsB9s4w2icOonOfOCmPZG9ChoECeSsGeGBRE8rMlTErDMmtheqCLnhZCamTVx4sZKfeoGWCNiH0Ew2axzbqp+zZuD6bYv5wFunoiNyPkmBPhHclwluZBejnAwBI/ASrxBBp6V8dZHciOoZxP40FW1vIiitEGDrEaSRkDPDHBxDfzn/zRIA4ElcJIGg3pghIBrsAK+bL+NRNpnnhhPzp0retTz7BJcgRnwTxqm9aHayYX7tA2+sz93Enf0d49v7L32aoT/Vn1Mf2h4+mkQaX/BSQrKfRQMXADHNEGfgEvQF9Fb5yWYg7wNYZaYmjxrrIi0pnPSS0gSYb/kFwMnysDGteW6xvRxBTQOT7SnfWUXBAiSHDxxjQvGg2VNHqSJqAeQHLzCeSQsaWMO7g8h0pGntyrxefDw6i4yVvjYhkR9SU4JngEnn1FyNznTUTdNhyUCf4KQTCDwY8hR2yDvETjR0e2V0HgExqBwJJhxgS6iw2ICpSbhqH5Y6T8FPok6XDqlTcFhJWlG9MsCGXppkFlS0FegeQIx5sDJAqUZ1C/+1t3Cw8SRUo0Ln4bQB0ZBUA40nrMsae4zHwrltiYhbYzvzvj/JV62FyFo7rHcp+mMZqMXNjY1fP4VbsYSNAV9lptN2l5mkFIYYvTLxFrWX5LdhIAIfQSGznamY0JfMfjD6y/jWn7wbBfwIk5q0tDfE5f7cb2aQ0oK7Kli+jwJkYA9l7OSLBTTeRvF66vENbgDD+AWRMcWTq7WWwIrOpUbglNEO1nJ6V9b3fu3urIle99zHTQGhcoTHPpVMgK+6N/8/+Mb28xZVz3n4F0Vr7fK7yt9PVQxX4zt71rH2YUPjHldkKdQXwy+gF0iYo8SFk28hSN/Ifz26m78HUYj2E/+CfNdNdyxv06Ik3uUj+DJGRh1tRIzb61y0nKC7VqjQLJiarH/NXyKdQoi8BZSsKn2bwiExBgT43hfNSvTBP+S0V25FD0Hx8icpJsqMdqzQFyTRzElwemehLdyD83GT4Y4Z56iuCsbOeMRozhwEjvFjIXRT/IvgGwDrhdrcyfQ+b7naH+IF6f4F0CXATbsidloMBC7y2Rz80Cg9ZenQl4RaKQ2cY2XTL46A8/AkdMPHK9MfGF0p1rytOdpCIRYif2qcWYmYOH7983J1Se1FUvUOh2nXow6Ge9bszN+Ks5d1YxTvzBsifFLbd0csRGw3yGzwPqKsRL7MZ2dU/XYVL4KFYp/bmKkuq8dofC1jRh9+bYnSnmRn4DN7l/4/k7P1ZC6MpL4BeMbgsLESF2AUKzWuwX2xDEN/OezbIR9JWcljZPv19K5OYXnrnrGbadPJ8knUGkrsKjgnzTMawledTxp5XdD1Dly9hVE5SLGyrZmdQIt0TYnpJcY09D+2LXWCjjJQnEnYaODzHXBqCu39cGNLwFzsE0KHBMw3NY8vgVwIpKjbbGdt6t4oCaciMCtzash+UECUjCp9K2kOxKImwErY+c72ZFuYtsR+s4TeEyjrDnz9siOWaeTOTSmU2RFBKavLZY1IvBoF0Zfgp2n+7X7/vR8GvIJVM8LkBxaDDm62rdAPwQrOZPzIs6RQ2MJKG23la7TcwMiFxsa8V+BGfBJw/SchXKcbeCUUx5pMqL+DITeuGBe/5+4l1KM6DTFZm5VvVHW32HMrfGsdUjUKdQ1O1Z0gidAxPZTaD4GU1CAfSLCMpCCg0g7i2u764hASIRfEDExkJRgKSXwSl/mVvI/58cvM148MyUAAAAASUVORK5CYII=",h=new Map([["clear",a],["clouds",A],["drizzle",i],["haze",c],["humidity",o],["mist",g],["rain",w],["snow",p],["wind",m]]),C="46d47581a51a79782741111953e700af",d="https://api.openweathermap.org/data/2.5/weather?units=metric&q=",u=document.querySelector(".search input"),l=document.querySelector(".search button"),f=document.querySelector(".weather-icon");async function z(t){var r,s;const n=await fetch(d+t+`&appid=${C}`);if(n.status==404)document.querySelector(".error").style.display="block",document.querySelector(".weather").style.display="none";else{var e=await n.json();document.querySelector(".city").innerHTML=e.name,document.querySelector(".temp").innerHTML=Math.round(e.main.temp)+"°C",document.querySelector(".humidity").innerHTML=e.main.humidity+"%",document.querySelector(".wind").innerHTML=e.wind.speed+"km/h",f.src=h.get((s=(r=e.weather[0])==null?void 0:r.main)==null?void 0:s.toLowerCase()),document.querySelector(".weather").style.display="block",document.querySelector(".error").style.display="none"}}l.addEventListener("click",()=>{z(u.value)}); diff --git a/docs/javascript/assets/index-aFoxCdvT.js b/docs/javascript/assets/index-P41hnPiU.js similarity index 97% rename from docs/javascript/assets/index-aFoxCdvT.js rename to docs/javascript/assets/index-P41hnPiU.js index ba2526684..730b7f282 100644 --- a/docs/javascript/assets/index-aFoxCdvT.js +++ b/docs/javascript/assets/index-P41hnPiU.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const o="/frontend-mini-challenges/javascript/assets/tom-1-ZxwkIOhV.mp3",a="/frontend-mini-challenges/javascript/assets/tom-2-zXm4l6or.mp3",i="/frontend-mini-challenges/javascript/assets/tom-3-9-KQMv6G.mp3",c="/frontend-mini-challenges/javascript/assets/tom-4-NV-LM3zZ.mp3",r="/frontend-mini-challenges/javascript/assets/snare-zXeTDHza.mp3",l="/frontend-mini-challenges/javascript/assets/crash-B1TgC1_6.mp3",m="data:audio/mpeg;base64,//uSRAAAAAAAaQUAAAAAAA0goAAAIg5BJBlqgAlgyCsDIqAB0xnAMfjEgN/CmMUoKIBhLG+BrERFjnpAZiCXAY5AyZJngONv8Dd7R5PpmAGixOBjkagZFLPlQqGaYGWxSBqpIAaKRAGdBd83QTZQGsUqBn81gZHCIGNBYBh4EfmiCZuboCsgY+FgGKBgBjIIAaBMoGWSv/ZqFaYGSQyBlIkAZAGwBQ8BuMSkAUAP+mgyCd6YGRxqBi0XgYrBYGViMBj4cAYqAwGNRWBiEKgoA//upBBbv4NzwDQKAMFwMeC4DFAoAxEBAMgjMDFonAGGYGFgkBgwBf/9mW7qt1u6hggYKAQGAgUAMHAMbisDE4nAw+AwMaCoDEQcAUDgGBQGFp4ygGFweBg0J//////////////+FlgB88csGznh8g7PAbAr/jcfj//JwvBEDT/wvxFk5IZ//JCAkFsf//5OPCRv//+TnnjweGHn////q5IYYTnuY3////8wxic88wxj88//////////////8AOWMAtVA2H8MtgZ3sGWAuSZpHSKF//7kkQKgANpkFgGUUACVbILMMocAEsUlUY914AJYY4oj7jAAYiBOlxy4Tg8G7nnEgFwelRiXNLMRigmKNHrsTmFTyciKKSyE7V1VyE4mOdl/t0Y01Djk//qzZpxx3//6mm/OU3///zUOf5qHHKb//////////////////+ANaBRSBpmIgiBswQXGD6mZQNC4kVC6jxoLyiUAsKVNjtzhYXeeyq/POQ03p+ahyev/SpqHHf/6r1Q47//9TTfpX///zf9c7///////////////////B4hQw5KOUzYHVophUDrdoep55hqQsAQ1Ir1Vuz7K00U0ooRw4YHsRXrl0N44ihQnDJCV2GtiVzWywr3pmC4xc7jQreDWlq11aNfPpBzKd+VjkybmUpyVMFAAhLAGHaudaSJssfGCwQ7MpX2+TBHDhuWvY4jyPpJImIhwZiW8NKGH5XEQpLnVJye9ZUvVWeR3e7r7uazXY3h5DaVLTDzS9d/ONVNQ3Ia4z8tc////u//VAC3NwDX4WNncIzWVASJTAIMXkNArTDGGSDgo4xwBmn/+5JkD4ADUjZQm48y4j0ianNpJjhNiONAbjDLiP4Tqc2zCSi+nRPzvWGxVq5QIewKrCPb3E4tw3Dbxx1Sa+qkVVMwxT1IlBOta9ecA3FakbFtG7rvBqv6a00ji8t/O99RnF7pUcxaNRA7//Z/nt9ALc3ANfwOm4CLl9dCuY3SktJoQ+aUmTFj4maJGOhIUOl+W8R9TNONTSWr6lf/3QqX3quj/+JLSuvt/N6/gCd34BhVqG8ooaMCBgIKAIALqZNJWlU7lVWS6TB2DtKudQw8VomySsbUjoaGKta8cPrX7IulxUJSCT8TgLxwNpRtorTrcjIBY8zcfGzSSFjkk90saWMdFIl9e+lh7vE3TJzAgITn5Jdt/7+u6And+AZVFG7n48aJhPLHpXYwiMcjhxzgZwGCsiI1cppPcrBrhXTehSKVk7bfVsqldZqjUPSDZEPBIHX6XoK9lQAAFzQA2Spj0sbPdDEHBoMBhbISDC8nwfl1IicrCXlgwhozSDRziL0aRdzlV6OLwMklSGnihje4PmR9V0pWJlUFondQl4KWI5I+//uSZCSAA2o8TZuPMuBAQqojcYk4DbDvMm68y4kOimgN1KTg9ipnynhI60pLMLinRFXWdfNLje3kuj4c0jvbxsx9+65xXWLaAAXNABBZjO51MVid0WuwJhIC8Jo2LJyMaHC1a0hFQye1AqIYkMUTnI6i+Xbp7A2IjxiwuXrkayQxvXO9ZtBhPpABd4AM5xlOyK9NQA1BAxoTxoFwQAULUNUxXrYMEpGUniPRo5mcwjiZC7sTcoy2l8GMIvBExDOX04xNu2BLJ6PIrqZMixphtOXM7xxoFlUx5uHd86XecW8GnoJzQh8ZCmN3MeZQSnsanjyWjmEtABd4AMO4iMkhvMjQQLUwUwhROHyOMdaBldRERk0g7EOlXIVVZNNn0loRajcEw6SFFmDx5G+o0gAl6p0YeptlmhLG7UA=",B=new Map([["w",o],["a",a],["s",i],["d",c],["j",r],["k",l],["l",m]]),d=document.querySelectorAll(".drum").length;for(let n=0;nCustom'}document.getElementById("convertButton").addEventListener("click",a);function a(){const e=parseFloat(document.getElementById("amount").value),t=document.getElementById("fromCurrency").value,r=document.getElementById("toCurrency").value,n=document.getElementById("result");if(isNaN(e)){alert("Please enter a valid amount.");return}const c=e/o[t]*o[r];n.value=c.toFixed(2)}u(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const o={USD:1,EUR:.85,GBP:.74,INR:74.63};document.getElementById("addCurrencyButton").addEventListener("click",function(){const e=document.getElementById("customCurrency").value.toUpperCase();if(e&&!o[e]){const t=parseFloat(prompt(`Enter exchange rate for 1 USD to ${e}`));isNaN(t)?alert("Invalid exchange rate. Please enter a valid number."):(o[e]=t,u())}else o[e]?alert(`Currency ${e} already exists.`):alert("Invalid currency code. Please enter a valid code (e.g., CAD).")});function u(){const e=document.getElementById("fromCurrency"),t=document.getElementById("toCurrency");e.innerHTML="",t.innerHTML="";for(const r in o){const n=document.createElement("option");n.value=r,n.innerText=r,e.appendChild(n);const c=n.cloneNode(!0);t.appendChild(c)}t.innerHTML+=''}document.getElementById("convertButton").addEventListener("click",a);function a(){const e=parseFloat(document.getElementById("amount").value),t=document.getElementById("fromCurrency").value,r=document.getElementById("toCurrency").value,n=document.getElementById("result");if(isNaN(e)){alert("Please enter a valid amount.");return}const c=e/o[t]*o[r];n.value=c.toFixed(2)}u(); diff --git a/docs/javascript/assets/index-FMCQ0hOW.js b/docs/javascript/assets/index-Qk_FopJ4.js similarity index 99% rename from docs/javascript/assets/index-FMCQ0hOW.js rename to docs/javascript/assets/index-Qk_FopJ4.js index 5ab9f84d7..6a4d6f25b 100644 --- a/docs/javascript/assets/index-FMCQ0hOW.js +++ b/docs/javascript/assets/index-Qk_FopJ4.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const l=[{word:"guitar",hint:"A musical instrument with strings."},{word:"oxygen",hint:"A colorless, odorless gas essential for life."},{word:"mountain",hint:"A large natural elevation of the Earth's surface."},{word:"painting",hint:"An art form using colors on a surface to create images or expression."},{word:"astronomy",hint:"The scientific study of celestial objects and phenomena."},{word:"football",hint:"A popular sport played with a spherical ball."},{word:"chocolate",hint:"A sweet treat made from cocoa beans."},{word:"butterfly",hint:"An insect with colorful wings and a slender body."},{word:"history",hint:"The study of past events and human civilization."},{word:"pizza",hint:"A savory dish consisting of a round, flattened base with toppings."},{word:"jazz",hint:"A genre of music characterized by improvisation and syncopation."},{word:"camera",hint:"A device used to capture and record images or videos."},{word:"diamond",hint:"A precious gemstone known for its brilliance and hardness."},{word:"adventure",hint:"An exciting or daring experience."},{word:"science",hint:"The systematic study of the structure and behavior of the physical and natural world."},{word:"bicycle",hint:"A human-powered vehicle with two wheels."},{word:"sunset",hint:"The daily disappearance of the sun below the horizon."},{word:"coffee",hint:"A popular caffeinated beverage made from roasted coffee beans."},{word:"dance",hint:"A rhythmic movement of the body often performed to music."},{word:"galaxy",hint:"A vast system of stars, gas, and dust held together by gravity."},{word:"orchestra",hint:"A large ensemble of musicians playing various instruments."},{word:"volcano",hint:"A mountain or hill with a vent through which lava, rock fragments, hot vapor, and gas are ejected."},{word:"novel",hint:"A long work of fiction, typically with a complex plot and characters."},{word:"sculpture",hint:"A three-dimensional art form created by shaping or combining materials."},{word:"symphony",hint:"A long musical composition for a full orchestra, typically in multiple movements."},{word:"architecture",hint:"The art and science of designing and constructing buildings."},{word:"ballet",hint:"A classical dance form characterized by precise and graceful movements."},{word:"astronaut",hint:"A person trained to travel and work in space."},{word:"waterfall",hint:"A cascade of water falling from a height."},{word:"technology",hint:"The application of scientific knowledge for practical purposes."},{word:"rainbow",hint:"A meteorological phenomenon that is caused by reflection, refraction, and dispersion of light."},{word:"universe",hint:"All existing matter, space, and time as a whole."},{word:"piano",hint:"A musical instrument played by pressing keys that cause hammers to strike strings."},{word:"vacation",hint:"A period of time devoted to pleasure, rest, or relaxation."},{word:"rainforest",hint:"A dense forest characterized by high rainfall and biodiversity."},{word:"theater",hint:"A building or outdoor area in which plays, movies, or other performances are staged."},{word:"telephone",hint:"A device used to transmit sound over long distances."},{word:"language",hint:"A system of communication consisting of words, gestures, and syntax."},{word:"desert",hint:"A barren or arid land with little or no precipitation."},{word:"sunflower",hint:"A tall plant with a large yellow flower head."},{word:"fantasy",hint:"A genre of imaginative fiction involving magic and supernatural elements."},{word:"telescope",hint:"An optical instrument used to view distant objects in space."},{word:"breeze",hint:"A gentle wind."},{word:"oasis",hint:"A fertile spot in a desert where water is found."},{word:"photography",hint:"The art, process, or practice of creating images by recording light or other electromagnetic radiation."},{word:"safari",hint:"An expedition or journey, typically to observe wildlife in their natural habitat."},{word:"planet",hint:"A celestial body that orbits a star and does not produce light of its own."},{word:"river",hint:"A large natural stream of water flowing in a channel to the sea, a lake, or another such stream."},{word:"tropical",hint:"Relating to or situated in the region between the Tropic of Cancer and the Tropic of Capricorn."},{word:"mysterious",hint:"Difficult or impossible to understand, explain, or identify."},{word:"enigma",hint:"Something that is mysterious, puzzling, or difficult to understand."},{word:"paradox",hint:"A statement or situation that contradicts itself or defies intuition."},{word:"puzzle",hint:"A game, toy, or problem designed to test ingenuity or knowledge."},{word:"whisper",hint:"To speak very softly or quietly, often in a secretive manner."},{word:"shadow",hint:"A dark area or shape produced by an object blocking the light."},{word:"secret",hint:"Something kept hidden or unknown to others."},{word:"curiosity",hint:"A strong desire to know or learn something."},{word:"unpredictable",hint:"Not able to be foreseen or known beforehand; uncertain."},{word:"obfuscate",hint:"To confuse or bewilder someone; to make something unclear or difficult to understand."},{word:"unveil",hint:"To make known or reveal something previously secret or unknown."},{word:"illusion",hint:"A false perception or belief; a deceptive appearance or impression."},{word:"moonlight",hint:"The light from the moon."},{word:"vibrant",hint:"Full of energy, brightness, and life."},{word:"nostalgia",hint:"A sentimental longing or wistful affection for the past."},{word:"brilliant",hint:"Exceptionally clever, talented, or impressive."}],m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_688'%20data-name='Group%20688'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_691'%20data-name='Group%20691'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",x="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_692'%20data-name='Group%20692'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_694'%20data-name='Group%20694'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_699'%20data-name='Group%20699'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(450.5%20284.782)%20rotate(-45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_698'%20data-name='Group%20698'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_700'%20data-name='Group%20700'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cpath%20id='Path_355'%20data-name='Path%20355'%20d='M5,2.5v51a2.5,2.5,0,0,1-5,0V2.5C0,1.119,5,1.119,5,2.5Z'%20transform='translate(16288.732%2014568.783)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="/frontend-mini-challenges/javascript/assets/lost-retzeMxq.gif",k="/frontend-mini-challenges/javascript/assets/victory-OYJro-8B.gif",G=[m,R,x,y,v,_,b],w=document.querySelector(".img-container img"),d=document.querySelector(".correctWord-list"),T=document.querySelector(".hint-text b"),c=document.querySelector(".wrong-guess b"),f=document.querySelector(".game-modal"),E=document.querySelector(".game-modal img"),L=document.querySelector(".modal-result"),S=document.querySelector(".modal-correctWord b"),q=document.querySelector(".btn-again"),h=document.querySelector(".keyboard-container");let s=[],o,n=0;const u=6;function z(t){const e=document.createDocumentFragment();Array.from(t).map(a=>{const r=document.createElement("li");r.classList.add("character"),e.appendChild(r)}),d.innerHTML="",d.appendChild(e)}function C(){const{word:t,hint:e}=l[Math.floor(Math.random()*l.length)];s=[],o=t,z(o),w.src=m,T.innerText=e,c.classList.add("wrong-guesses"),n=0,c.innerText=`${n} / ${u}`,f.classList.remove("show-modal"),j()}function j(){const t=document.createDocumentFragment();for(let e=97;e<=122;e++){const a=document.createElement("button");a.innerText=String.fromCharCode(e),a.classList.add("keys"),t.appendChild(a)}h.innerHTML="",h.appendChild(t)}function g(t){f.classList.add("show-modal"),E.src=t?k:A,L.innerText=`${t?"You are awesome":"Game Over"}`,S.innerText=o,q.addEventListener("click",p)}function B(){document.querySelectorAll(".keys").forEach(e=>{e.addEventListener("click",a=>{o.includes(a.target.innerText.toLowerCase())?Array.from(o).forEach((r,i)=>{a.target.innerText.toLowerCase()===r&&(s[i]=r,document.querySelectorAll(".character")[i].innerText=r,document.querySelectorAll(".character")[i].classList.add("set"))}):(n++,c.innerText=`${n} / ${u}`,w.src=G[n]),e.disabled=!0,e.classList.add("disabled"),n===6&&g(!1),s.join("")===o&&g(!0)})})}function p(){C(),B()}p(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const l=[{word:"guitar",hint:"A musical instrument with strings."},{word:"oxygen",hint:"A colorless, odorless gas essential for life."},{word:"mountain",hint:"A large natural elevation of the Earth's surface."},{word:"painting",hint:"An art form using colors on a surface to create images or expression."},{word:"astronomy",hint:"The scientific study of celestial objects and phenomena."},{word:"football",hint:"A popular sport played with a spherical ball."},{word:"chocolate",hint:"A sweet treat made from cocoa beans."},{word:"butterfly",hint:"An insect with colorful wings and a slender body."},{word:"history",hint:"The study of past events and human civilization."},{word:"pizza",hint:"A savory dish consisting of a round, flattened base with toppings."},{word:"jazz",hint:"A genre of music characterized by improvisation and syncopation."},{word:"camera",hint:"A device used to capture and record images or videos."},{word:"diamond",hint:"A precious gemstone known for its brilliance and hardness."},{word:"adventure",hint:"An exciting or daring experience."},{word:"science",hint:"The systematic study of the structure and behavior of the physical and natural world."},{word:"bicycle",hint:"A human-powered vehicle with two wheels."},{word:"sunset",hint:"The daily disappearance of the sun below the horizon."},{word:"coffee",hint:"A popular caffeinated beverage made from roasted coffee beans."},{word:"dance",hint:"A rhythmic movement of the body often performed to music."},{word:"galaxy",hint:"A vast system of stars, gas, and dust held together by gravity."},{word:"orchestra",hint:"A large ensemble of musicians playing various instruments."},{word:"volcano",hint:"A mountain or hill with a vent through which lava, rock fragments, hot vapor, and gas are ejected."},{word:"novel",hint:"A long work of fiction, typically with a complex plot and characters."},{word:"sculpture",hint:"A three-dimensional art form created by shaping or combining materials."},{word:"symphony",hint:"A long musical composition for a full orchestra, typically in multiple movements."},{word:"architecture",hint:"The art and science of designing and constructing buildings."},{word:"ballet",hint:"A classical dance form characterized by precise and graceful movements."},{word:"astronaut",hint:"A person trained to travel and work in space."},{word:"waterfall",hint:"A cascade of water falling from a height."},{word:"technology",hint:"The application of scientific knowledge for practical purposes."},{word:"rainbow",hint:"A meteorological phenomenon that is caused by reflection, refraction, and dispersion of light."},{word:"universe",hint:"All existing matter, space, and time as a whole."},{word:"piano",hint:"A musical instrument played by pressing keys that cause hammers to strike strings."},{word:"vacation",hint:"A period of time devoted to pleasure, rest, or relaxation."},{word:"rainforest",hint:"A dense forest characterized by high rainfall and biodiversity."},{word:"theater",hint:"A building or outdoor area in which plays, movies, or other performances are staged."},{word:"telephone",hint:"A device used to transmit sound over long distances."},{word:"language",hint:"A system of communication consisting of words, gestures, and syntax."},{word:"desert",hint:"A barren or arid land with little or no precipitation."},{word:"sunflower",hint:"A tall plant with a large yellow flower head."},{word:"fantasy",hint:"A genre of imaginative fiction involving magic and supernatural elements."},{word:"telescope",hint:"An optical instrument used to view distant objects in space."},{word:"breeze",hint:"A gentle wind."},{word:"oasis",hint:"A fertile spot in a desert where water is found."},{word:"photography",hint:"The art, process, or practice of creating images by recording light or other electromagnetic radiation."},{word:"safari",hint:"An expedition or journey, typically to observe wildlife in their natural habitat."},{word:"planet",hint:"A celestial body that orbits a star and does not produce light of its own."},{word:"river",hint:"A large natural stream of water flowing in a channel to the sea, a lake, or another such stream."},{word:"tropical",hint:"Relating to or situated in the region between the Tropic of Cancer and the Tropic of Capricorn."},{word:"mysterious",hint:"Difficult or impossible to understand, explain, or identify."},{word:"enigma",hint:"Something that is mysterious, puzzling, or difficult to understand."},{word:"paradox",hint:"A statement or situation that contradicts itself or defies intuition."},{word:"puzzle",hint:"A game, toy, or problem designed to test ingenuity or knowledge."},{word:"whisper",hint:"To speak very softly or quietly, often in a secretive manner."},{word:"shadow",hint:"A dark area or shape produced by an object blocking the light."},{word:"secret",hint:"Something kept hidden or unknown to others."},{word:"curiosity",hint:"A strong desire to know or learn something."},{word:"unpredictable",hint:"Not able to be foreseen or known beforehand; uncertain."},{word:"obfuscate",hint:"To confuse or bewilder someone; to make something unclear or difficult to understand."},{word:"unveil",hint:"To make known or reveal something previously secret or unknown."},{word:"illusion",hint:"A false perception or belief; a deceptive appearance or impression."},{word:"moonlight",hint:"The light from the moon."},{word:"vibrant",hint:"Full of energy, brightness, and life."},{word:"nostalgia",hint:"A sentimental longing or wistful affection for the past."},{word:"brilliant",hint:"Exceptionally clever, talented, or impressive."}],m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_688'%20data-name='Group%20688'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_691'%20data-name='Group%20691'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",x="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_692'%20data-name='Group%20692'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_694'%20data-name='Group%20694'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_699'%20data-name='Group%20699'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(450.5%20284.782)%20rotate(-45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_698'%20data-name='Group%20698'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_700'%20data-name='Group%20700'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cpath%20id='Path_355'%20data-name='Path%20355'%20d='M5,2.5v51a2.5,2.5,0,0,1-5,0V2.5C0,1.119,5,1.119,5,2.5Z'%20transform='translate(16288.732%2014568.783)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="/frontend-mini-challenges/javascript/assets/lost-retzeMxq.gif",k="/frontend-mini-challenges/javascript/assets/victory-OYJro-8B.gif",G=[m,R,x,y,v,_,b],w=document.querySelector(".img-container img"),d=document.querySelector(".correctWord-list"),T=document.querySelector(".hint-text b"),c=document.querySelector(".wrong-guess b"),f=document.querySelector(".game-modal"),E=document.querySelector(".game-modal img"),L=document.querySelector(".modal-result"),S=document.querySelector(".modal-correctWord b"),q=document.querySelector(".btn-again"),h=document.querySelector(".keyboard-container");let s=[],o,n=0;const u=6;function z(t){const e=document.createDocumentFragment();Array.from(t).map(a=>{const r=document.createElement("li");r.classList.add("character"),e.appendChild(r)}),d.innerHTML="",d.appendChild(e)}function C(){const{word:t,hint:e}=l[Math.floor(Math.random()*l.length)];s=[],o=t,z(o),w.src=m,T.innerText=e,c.classList.add("wrong-guesses"),n=0,c.innerText=`${n} / ${u}`,f.classList.remove("show-modal"),j()}function j(){const t=document.createDocumentFragment();for(let e=97;e<=122;e++){const a=document.createElement("button");a.innerText=String.fromCharCode(e),a.classList.add("keys"),t.appendChild(a)}h.innerHTML="",h.appendChild(t)}function g(t){f.classList.add("show-modal"),E.src=t?k:A,L.innerText=`${t?"You are awesome":"Game Over"}`,S.innerText=o,q.addEventListener("click",p)}function B(){document.querySelectorAll(".keys").forEach(e=>{e.addEventListener("click",a=>{o.includes(a.target.innerText.toLowerCase())?Array.from(o).forEach((r,i)=>{a.target.innerText.toLowerCase()===r&&(s[i]=r,document.querySelectorAll(".character")[i].innerText=r,document.querySelectorAll(".character")[i].classList.add("set"))}):(n++,c.innerText=`${n} / ${u}`,w.src=G[n]),e.disabled=!0,e.classList.add("disabled"),n===6&&g(!1),s.join("")===o&&g(!0)})})}function p(){C(),B()}p(); diff --git a/docs/javascript/assets/index-RMQGDYJ5.js b/docs/javascript/assets/index-RMQGDYJ5.js deleted file mode 100644 index d10d9c149..000000000 --- a/docs/javascript/assets/index-RMQGDYJ5.js +++ /dev/null @@ -1 +0,0 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const t=document.getElementById("showDialog"),o=document.getElementById("dialogPopup"),e=document.getElementById("closeDialog");t.addEventListener("click",()=>{o.showModal()});e.addEventListener("click",()=>{o.close("")}); diff --git a/docs/javascript/assets/index-z4L70XLO.js b/docs/javascript/assets/index-SYz2KRIN.js similarity index 97% rename from docs/javascript/assets/index-z4L70XLO.js rename to docs/javascript/assets/index-SYz2KRIN.js index 863fcc5d7..8b7d09b49 100644 --- a/docs/javascript/assets/index-z4L70XLO.js +++ b/docs/javascript/assets/index-SYz2KRIN.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const I=function(e,t,s){const r=document.createDocumentFragment();for(let a=0;a{let r=0;for(let a=0;aArray.from(new Array(e),()=>new Array(t).fill(0)),d=document.getElementById("board"),l=document.getElementById("slots"),x=document.getElementById("reset"),v=document.getElementById("info"),y=6,u=7,c=4,n={activePlayer:1,state:C(y,u),winner:null,getActiveColor(){return this.activePlayer===1?"blue":"red"},switchPlayer(){this.activePlayer=this.activePlayer===1?2:1},isStateFull(){return this.state[0].every(e=>e!==0)},reset(){this.state=C(y,u),this.winner=null,this.activePlayer=1}},F=(e,t)=>{d.style.gridTemplateRows=`repeat(${e}, 5em)`,d.style.gridTemplateColumns=`repeat(${t}, 5em)`},h=e=>{const t=l.querySelector(".active");t&&(t.classList.remove("active"),t.style.backgroundColor="transparent"),l.children[e].classList.add("active"),l.children[e].style.backgroundColor=n.getActiveColor()},p=()=>{const e=l.querySelector(".active");e&&(e.classList.remove("active"),e.style.backgroundColor="transparent")},S=e=>{let t=0;for(t=0;t{const s=n.state[e][t],r=c-1,a=c*2-1,m=n.state[e].slice(Math.max(0,t-r),t+c);if(f(m,s,c))return!0;const P=n.state.map(o=>o[t]).slice(e,e+c);if(f(P,s,c))return!0;const b=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t+o]});if(f(b,s,c))return!0;const k=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t-o]});return!!f(k,s,c)},w=()=>{const e=A(u,"slot");l.innerHTML="",l.appendChild(e);const t=I(y,u,"box");d.innerHTML="",d.appendChild(t),v.textContent=""},L=e=>{if(n.winner)return;const t=e.target;if(t.classList.contains("box")||t.classList.contains("slot")){const s=+t.dataset.j,r=S(s);if(r<0)return;if(T(r,s)){n.winner=n.activePlayer,v.textContent=`Player ${n.getActiveColor()} wins!`,p();return}if(r===0&&n.isStateFull()){n.winner=-1,v.textContent="Draw!",p();return}n.switchPlayer(),h(s)}},E=e=>{if(n.winner)return;const t=e.target;(t.classList.contains("box")||t.classList.contains("slot"))&&h(t.dataset.j)};x.addEventListener("click",function(){n.reset(),w()});d.addEventListener("click",L);l.addEventListener("click",L);d.addEventListener("mouseover",E);l.addEventListener("mouseover",E);w();F(y,u); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const I=function(e,t,s){const r=document.createDocumentFragment();for(let a=0;a{let r=0;for(let a=0;aArray.from(new Array(e),()=>new Array(t).fill(0)),d=document.getElementById("board"),l=document.getElementById("slots"),x=document.getElementById("reset"),v=document.getElementById("info"),y=6,u=7,c=4,n={activePlayer:1,state:C(y,u),winner:null,getActiveColor(){return this.activePlayer===1?"blue":"red"},switchPlayer(){this.activePlayer=this.activePlayer===1?2:1},isStateFull(){return this.state[0].every(e=>e!==0)},reset(){this.state=C(y,u),this.winner=null,this.activePlayer=1}},F=(e,t)=>{d.style.gridTemplateRows=`repeat(${e}, 5em)`,d.style.gridTemplateColumns=`repeat(${t}, 5em)`},h=e=>{const t=l.querySelector(".active");t&&(t.classList.remove("active"),t.style.backgroundColor="transparent"),l.children[e].classList.add("active"),l.children[e].style.backgroundColor=n.getActiveColor()},p=()=>{const e=l.querySelector(".active");e&&(e.classList.remove("active"),e.style.backgroundColor="transparent")},S=e=>{let t=0;for(t=0;t{const s=n.state[e][t],r=c-1,a=c*2-1,m=n.state[e].slice(Math.max(0,t-r),t+c);if(f(m,s,c))return!0;const P=n.state.map(o=>o[t]).slice(e,e+c);if(f(P,s,c))return!0;const b=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t+o]});if(f(b,s,c))return!0;const k=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t-o]});return!!f(k,s,c)},w=()=>{const e=A(u,"slot");l.innerHTML="",l.appendChild(e);const t=I(y,u,"box");d.innerHTML="",d.appendChild(t),v.textContent=""},L=e=>{if(n.winner)return;const t=e.target;if(t.classList.contains("box")||t.classList.contains("slot")){const s=+t.dataset.j,r=S(s);if(r<0)return;if(T(r,s)){n.winner=n.activePlayer,v.textContent=`Player ${n.getActiveColor()} wins!`,p();return}if(r===0&&n.isStateFull()){n.winner=-1,v.textContent="Draw!",p();return}n.switchPlayer(),h(s)}},E=e=>{if(n.winner)return;const t=e.target;(t.classList.contains("box")||t.classList.contains("slot"))&&h(t.dataset.j)};x.addEventListener("click",function(){n.reset(),w()});d.addEventListener("click",L);l.addEventListener("click",L);d.addEventListener("mouseover",E);l.addEventListener("mouseover",E);w();F(y,u); diff --git a/docs/javascript/assets/index-eWM4s4jS.js b/docs/javascript/assets/index-UVwpnqU9.js similarity index 96% rename from docs/javascript/assets/index-eWM4s4jS.js rename to docs/javascript/assets/index-UVwpnqU9.js index ecf2bcbff..66fc29663 100644 --- a/docs/javascript/assets/index-eWM4s4jS.js +++ b/docs/javascript/assets/index-UVwpnqU9.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const E=(e,t,{type:s="div",...a})=>{const o=document.createDocumentFragment();let r=0;for(let c=0;c{const s=document.createElement(e);return Object.entries(t).forEach(([a,o])=>{if(typeof o=="object"){Object.entries(o).forEach(([r,c])=>{s[a][r]=c});return}s[a]=o}),s},y=4,g=4,v=Array.from(new Array(y*g),(e,t)=>t),b=2e3,w=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"];let n=[],f=0,m=[],h=!1,p;const d=document.querySelector(".game-front"),l=document.querySelector(".game-back"),L=document.querySelector("output"),T=document.querySelector(".restart"),j=(e,t,s)=>{const a=Array.from(new Array(e*t/2),()=>s[Math.floor(Math.random()*s.length)]),o=a.concat(a),r=[],c=o.length;for(let i=0;i{e.forEach(s=>{d.children[s].classList.add(t),l.children[s].classList.add(t)})},u=(e,t)=>{e.forEach(s=>{d.children[s].classList.remove(t),l.children[s].classList.remove(t)})},S=async(e=!1)=>{h||(m=[],n=[],f=0,h=!0,L.textContent=f,e||(d.classList.add("reset"),l.classList.add("reset"),u(v,"active"),u(v,"match"),await new Promise(t=>setTimeout(t,b/2))),m=j(y,g,w),l.childNodes.forEach((t,s)=>{t.textContent=m[s]}),d.classList.remove("reset"),l.classList.remove("reset"),h=!1)};d.appendChild(E(y,g,{type:"button",className:"tile"}));l.appendChild(E(y,g,{type:"button",className:"tile back-tile"}));d.addEventListener("click",e=>{const t=e.target.dataset.idx;t==null||h||e.target.classList.contains("match")||(f++,n.length===2&&(p&&clearTimeout(p),u(n,"active"),n=[]),n.push(t),n.length===2&&(m[n[0]]===m[n[1]]&&(u(n,"active"),k(n,"match")),p=setTimeout(()=>{u(n,"active"),n=[]},b)),e.target.classList.add("active"),l.children[t].classList.add("active"),L.textContent=f)});T.addEventListener("click",()=>S());S(!0); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const E=(e,t,{type:s="div",...a})=>{const o=document.createDocumentFragment();let r=0;for(let c=0;c{const s=document.createElement(e);return Object.entries(t).forEach(([a,o])=>{if(typeof o=="object"){Object.entries(o).forEach(([r,c])=>{s[a][r]=c});return}s[a]=o}),s},y=4,g=4,v=Array.from(new Array(y*g),(e,t)=>t),b=2e3,w=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"];let n=[],f=0,m=[],h=!1,p;const d=document.querySelector(".game-front"),l=document.querySelector(".game-back"),L=document.querySelector("output"),T=document.querySelector(".restart"),j=(e,t,s)=>{const a=Array.from(new Array(e*t/2),()=>s[Math.floor(Math.random()*s.length)]),o=a.concat(a),r=[],c=o.length;for(let i=0;i{e.forEach(s=>{d.children[s].classList.add(t),l.children[s].classList.add(t)})},u=(e,t)=>{e.forEach(s=>{d.children[s].classList.remove(t),l.children[s].classList.remove(t)})},S=async(e=!1)=>{h||(m=[],n=[],f=0,h=!0,L.textContent=f,e||(d.classList.add("reset"),l.classList.add("reset"),u(v,"active"),u(v,"match"),await new Promise(t=>setTimeout(t,b/2))),m=j(y,g,w),l.childNodes.forEach((t,s)=>{t.textContent=m[s]}),d.classList.remove("reset"),l.classList.remove("reset"),h=!1)};d.appendChild(E(y,g,{type:"button",className:"tile"}));l.appendChild(E(y,g,{type:"button",className:"tile back-tile"}));d.addEventListener("click",e=>{const t=e.target.dataset.idx;t==null||h||e.target.classList.contains("match")||(f++,n.length===2&&(p&&clearTimeout(p),u(n,"active"),n=[]),n.push(t),n.length===2&&(m[n[0]]===m[n[1]]&&(u(n,"active"),k(n,"match")),p=setTimeout(()=>{u(n,"active"),n=[]},b)),e.target.classList.add("active"),l.children[t].classList.add("active"),L.textContent=f)});T.addEventListener("click",()=>S());S(!0); diff --git a/docs/javascript/assets/index-5Msc-Xi-.js b/docs/javascript/assets/index-WuF8pMM_.js similarity index 92% rename from docs/javascript/assets/index-5Msc-Xi-.js rename to docs/javascript/assets/index-WuF8pMM_.js index 17703a50c..61faecff9 100644 --- a/docs/javascript/assets/index-5Msc-Xi-.js +++ b/docs/javascript/assets/index-WuF8pMM_.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const n=document.getElementById("userInput"),p=document.getElementById("chipTemplate"),h=document.querySelector(".chips-display"),o=document.querySelector("form");class c{constructor(e=""){const s=p.content.cloneNode(!0);this.chip=s.querySelector(".chip"),this.chipName=this.chip.querySelector(".chip-name"),this.chip.querySelector(".remove").addEventListener("click",this.onRemove),h.appendChild(this.chip),this.setName(e)}setName(e){this.chipName.textContent=e,e===""?this.chip.style.display="none":this.chip.style.display="inherit"}finalizeName(){this.chip.classList.add("finalized")}onRemove(e){e.target.parentElement.remove()}}let i=new c;n.addEventListener("input",t=>{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const n=document.getElementById("userInput"),p=document.getElementById("chipTemplate"),h=document.querySelector(".chips-display"),o=document.querySelector("form");class c{constructor(e=""){const s=p.content.cloneNode(!0);this.chip=s.querySelector(".chip"),this.chipName=this.chip.querySelector(".chip-name"),this.chip.querySelector(".remove").addEventListener("click",this.onRemove),h.appendChild(this.chip),this.setName(e)}setName(e){this.chipName.textContent=e,e===""?this.chip.style.display="none":this.chip.style.display="inherit"}finalizeName(){this.chip.classList.add("finalized")}onRemove(e){e.target.parentElement.remove()}}let i=new c;n.addEventListener("input",t=>{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); diff --git a/docs/javascript/assets/index-dM6T1ulJ.js b/docs/javascript/assets/index-YhPhKgqP.js similarity index 93% rename from docs/javascript/assets/index-dM6T1ulJ.js rename to docs/javascript/assets/index-YhPhKgqP.js index 3778c3f4d..5e87d7718 100644 --- a/docs/javascript/assets/index-dM6T1ulJ.js +++ b/docs/javascript/assets/index-YhPhKgqP.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const s=document.getElementById("movie-title"),c=document.getElementById("movie-genre"),r=document.getElementById("movie-cast"),d=document.getElementById("movie-rating"),l=document.getElementById("movie-released"),v=document.getElementById("movie-director"),a=document.getElementById("movie-poster"),u="adff2bf8",o=document.querySelector(".movie-info");o.classList.add("hidden");const t=document.getElementById("search-form");t.addEventListener("submit",n=>{n.preventDefault();const m=new FormData(t).get("movie-name");function i(e){e.Response==="False"?alert("Please enter a valid movie name."):(s.textContent=e.Title,c.textContent=e.Genre,r.textContent=e.Actors,d.textContent=e.imdbRating,l.textContent=e.Released,v.textContent=e.Director,a.src=e.Poster,o.classList.remove("hidden"))}fetch(`https://www.omdbapi.com/?t=${m}&apikey=${u}`).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.error("Error fetching data: ",e)})}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const s=document.getElementById("movie-title"),c=document.getElementById("movie-genre"),r=document.getElementById("movie-cast"),d=document.getElementById("movie-rating"),l=document.getElementById("movie-released"),v=document.getElementById("movie-director"),a=document.getElementById("movie-poster"),u="adff2bf8",o=document.querySelector(".movie-info");o.classList.add("hidden");const t=document.getElementById("search-form");t.addEventListener("submit",n=>{n.preventDefault();const m=new FormData(t).get("movie-name");function i(e){e.Response==="False"?alert("Please enter a valid movie name."):(s.textContent=e.Title,c.textContent=e.Genre,r.textContent=e.Actors,d.textContent=e.imdbRating,l.textContent=e.Released,v.textContent=e.Director,a.src=e.Poster,o.classList.remove("hidden"))}fetch(`https://www.omdbapi.com/?t=${m}&apikey=${u}`).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.error("Error fetching data: ",e)})}); diff --git a/docs/javascript/assets/index-btGuZ4sI.js b/docs/javascript/assets/index-_ekVGRY0.js similarity index 91% rename from docs/javascript/assets/index-btGuZ4sI.js rename to docs/javascript/assets/index-_ekVGRY0.js index 4eae2279f..a6f38744c 100644 --- a/docs/javascript/assets/index-btGuZ4sI.js +++ b/docs/javascript/assets/index-_ekVGRY0.js @@ -1,4 +1,4 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const s=document.getElementById("balance-amount"),l=document.getElementById("transaction-list"),o=document.getElementById("description"),c=document.getElementById("amount"),u=document.getElementById("transaction-type"),m=document.getElementById("add-button");let d=0;function i(){s.textContent=`$${d.toFixed(2)}`}function r(n,t,e){const a=document.createElement("li");a.classList.add(e),a.innerHTML=` +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const s=document.getElementById("balance-amount"),l=document.getElementById("transaction-list"),o=document.getElementById("description"),c=document.getElementById("amount"),u=document.getElementById("transaction-type"),m=document.getElementById("add-button");let d=0;function i(){s.textContent=`$${d.toFixed(2)}`}function r(n,t,e){const a=document.createElement("li");a.classList.add(e),a.innerHTML=` ${n} $${t.toFixed(2)} `,l.appendChild(a),d+=e==="income"?t:-t,i()}m.addEventListener("click",()=>{const n=o.value,t=parseFloat(c.value),e=u.value;if(n.trim()===""||isNaN(t)||t<=0){alert("Please enter a valid description and amount.");return}r(n,t,e),o.value="",c.value=""});i(); diff --git a/docs/javascript/assets/index-e00N2DoI.js b/docs/javascript/assets/index-ahY8_XPf.js similarity index 95% rename from docs/javascript/assets/index-e00N2DoI.js rename to docs/javascript/assets/index-ahY8_XPf.js index 330cfdc86..4f73554cf 100644 --- a/docs/javascript/assets/index-e00N2DoI.js +++ b/docs/javascript/assets/index-ahY8_XPf.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const x=function(){var t=.618033988749895,e=(Math.random()+t)%1,a=Math.round(Math.random()*100)%85,d=Math.round(Math.random()*100)%85,m="hsl("+Math.round(360*e)+","+a+"%,"+d+"%)",u="hsl("+Math.round(360*e)+","+a+"%,"+(d+5)+"%)";return{color:m,oddColor:u}},r=document.getElementById("board"),f=3;let l=f,n=0,i=+localStorage.getItem("maxScore"),h=!0;function g(t,e){const a=document.createDocumentFragment(),d=x(),m=Math.ceil(Math.random()*e),u=Math.ceil(Math.random()*e);for(let s=1;s<=e;s++)for(let c=1;c<=e;c++){var o=document.createElement("button");o.dataset.locX=s,o.dataset.locY=c,o.classList.add("box"),s===m&&c===u?(o.style.backgroundColor=d.oddColor,o.classList.add("odd-box")):o.style.backgroundColor=d.color,a.appendChild(o)}t.appendChild(a),t.style.gridTemplateRows=`repeat(${e}, 1fr)`,t.style.gridTemplateColumns=`repeat(${e}, 1fr)`}function C(t){r.classList.add("shake"),setTimeout(()=>{r.classList.remove("shake"),t()},2e3)}function M(){n>i&&(document.getElementById("maxScore").textContent=n,i=n,localStorage.setItem("maxScore",i)),n=0,document.getElementById("score").textContent=n}document.addEventListener("click",t=>{h&&t.target.classList.contains("box")&&(t.target.classList.contains("odd-box")?(r.innerHTML="",document.getElementById("score").textContent=++n,g(r,++l)):(h=!1,document.querySelector(".odd-box").style.border="2px solid red",C(function(){M(),r.innerHTML="",l=f,g(r,l),h=!0})))});g(r,l);document.getElementById("maxScore").textContent=i; +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const x=function(){var t=.618033988749895,e=(Math.random()+t)%1,a=Math.round(Math.random()*100)%85,d=Math.round(Math.random()*100)%85,m="hsl("+Math.round(360*e)+","+a+"%,"+d+"%)",u="hsl("+Math.round(360*e)+","+a+"%,"+(d+5)+"%)";return{color:m,oddColor:u}},r=document.getElementById("board"),f=3;let l=f,n=0,i=+localStorage.getItem("maxScore"),h=!0;function g(t,e){const a=document.createDocumentFragment(),d=x(),m=Math.ceil(Math.random()*e),u=Math.ceil(Math.random()*e);for(let s=1;s<=e;s++)for(let c=1;c<=e;c++){var o=document.createElement("button");o.dataset.locX=s,o.dataset.locY=c,o.classList.add("box"),s===m&&c===u?(o.style.backgroundColor=d.oddColor,o.classList.add("odd-box")):o.style.backgroundColor=d.color,a.appendChild(o)}t.appendChild(a),t.style.gridTemplateRows=`repeat(${e}, 1fr)`,t.style.gridTemplateColumns=`repeat(${e}, 1fr)`}function C(t){r.classList.add("shake"),setTimeout(()=>{r.classList.remove("shake"),t()},2e3)}function M(){n>i&&(document.getElementById("maxScore").textContent=n,i=n,localStorage.setItem("maxScore",i)),n=0,document.getElementById("score").textContent=n}document.addEventListener("click",t=>{h&&t.target.classList.contains("box")&&(t.target.classList.contains("odd-box")?(r.innerHTML="",document.getElementById("score").textContent=++n,g(r,++l)):(h=!1,document.querySelector(".odd-box").style.border="2px solid red",C(function(){M(),r.innerHTML="",l=f,g(r,l),h=!0})))});g(r,l);document.getElementById("maxScore").textContent=i; diff --git a/docs/javascript/assets/index-B7errex0.js b/docs/javascript/assets/index-aj_7zjbb.js similarity index 92% rename from docs/javascript/assets/index-B7errex0.js rename to docs/javascript/assets/index-aj_7zjbb.js index d432651a0..a1ffa6b40 100644 --- a/docs/javascript/assets/index-B7errex0.js +++ b/docs/javascript/assets/index-aj_7zjbb.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";function i(t){const c={1:[[50,50]],2:[[20,20],[80,80]],3:[[20,20],[50,50],[80,80]],4:[[20,20],[20,80],[80,20],[80,80]],5:[[20,20],[20,80],[50,50],[80,20],[80,80]],6:[[20,20],[20,80],[50,20],[50,80],[80,20],[80,80]]},e=document.createElement("div");e.classList.add("dice");for(const n of c[t]){const o=document.createElement("div");o.classList.add("dice-dot"),o.style.setProperty("--top",`${n[0]}%`),o.style.setProperty("--left",`${n[1]}%`),e.appendChild(o)}return e}function r(t,c){t.innerHTML="";for(let e=0;e{const t=setInterval(()=>{r(d,l)},50);setTimeout(()=>{clearInterval(t)},1e3)}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";function i(t){const c={1:[[50,50]],2:[[20,20],[80,80]],3:[[20,20],[50,50],[80,80]],4:[[20,20],[20,80],[80,20],[80,80]],5:[[20,20],[20,80],[50,50],[80,20],[80,80]],6:[[20,20],[20,80],[50,20],[50,80],[80,20],[80,80]]},e=document.createElement("div");e.classList.add("dice");for(const n of c[t]){const o=document.createElement("div");o.classList.add("dice-dot"),o.style.setProperty("--top",`${n[0]}%`),o.style.setProperty("--left",`${n[1]}%`),e.appendChild(o)}return e}function r(t,c){t.innerHTML="";for(let e=0;e{const t=setInterval(()=>{r(d,l)},50);setTimeout(()=>{clearInterval(t)},1e3)}); diff --git a/docs/javascript/assets/index-48-kZ-Fx.js b/docs/javascript/assets/index-cCAXDpCN.js similarity index 96% rename from docs/javascript/assets/index-48-kZ-Fx.js rename to docs/javascript/assets/index-cCAXDpCN.js index 13b945569..4f48b9966 100644 --- a/docs/javascript/assets/index-48-kZ-Fx.js +++ b/docs/javascript/assets/index-cCAXDpCN.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const d=document.getElementById("json-holder"),u=document.querySelector(".json-template");document.querySelector(".get-json");const h=document.querySelector(".get-json-button"),m=document.querySelector("output");class l{constructor(){const e=u.content.cloneNode(!0);this.container=e.querySelector(".json-container"),this.valueEl=e.querySelector(".value"),this.addEl=e.querySelector(".add"),this.removeEl=e.querySelector(".remove"),this.arrowEl=e.querySelector(".arrow"),this.addListeners(),this.object={}}addListeners(){this.addEl.addEventListener("click",this.add.bind(this)),this.removeEl.addEventListener("click",this.remove.bind(this)),this.arrowEl.addEventListener("click",this.toggle.bind(this))}add(){this.valueEl.style.display="none";const e=document.createElement("div");e.classList.add("sub-item");const t=new l;e.appendChild(t.container),this.container.appendChild(e),this.arrowEl.classList.remove("hide"),this.arrowEl.classList.add("open")}remove(){const e=this.container.parentElement,t=e.parentElement;e.remove(),t.querySelector(".sub-item")||(t.querySelector(".value").style.display="inline",t.querySelector(".arrow").classList.remove("open"),t.querySelector(".arrow").classList.add("hide"))}toggle(){this.arrowEl.classList.toggle("open")}getJSON(e=this.container){const t={},n=e.querySelector(".key"),r=e.querySelector(".key + .value");if(n&&n.value)if(r.style.display!=="none")t[n.value]=r.value;else{let o=e.querySelector(".sub-item");const i=[o];for(;o.nextElementSibling;)i.push(o.nextElementSibling),o=o.nextElementSibling;let s={};i.forEach(a=>{s={...s,...this.getJSON(a)}}),Object.keys(s).length===0?t[n.value]=null:t[n.value]=s}return t}}const c=new l;d.appendChild(c.container);h.addEventListener("click",()=>m.textContent=JSON.stringify(c.getJSON(),null,2)); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const d=document.getElementById("json-holder"),u=document.querySelector(".json-template");document.querySelector(".get-json");const h=document.querySelector(".get-json-button"),m=document.querySelector("output");class l{constructor(){const e=u.content.cloneNode(!0);this.container=e.querySelector(".json-container"),this.valueEl=e.querySelector(".value"),this.addEl=e.querySelector(".add"),this.removeEl=e.querySelector(".remove"),this.arrowEl=e.querySelector(".arrow"),this.addListeners(),this.object={}}addListeners(){this.addEl.addEventListener("click",this.add.bind(this)),this.removeEl.addEventListener("click",this.remove.bind(this)),this.arrowEl.addEventListener("click",this.toggle.bind(this))}add(){this.valueEl.style.display="none";const e=document.createElement("div");e.classList.add("sub-item");const t=new l;e.appendChild(t.container),this.container.appendChild(e),this.arrowEl.classList.remove("hide"),this.arrowEl.classList.add("open")}remove(){const e=this.container.parentElement,t=e.parentElement;e.remove(),t.querySelector(".sub-item")||(t.querySelector(".value").style.display="inline",t.querySelector(".arrow").classList.remove("open"),t.querySelector(".arrow").classList.add("hide"))}toggle(){this.arrowEl.classList.toggle("open")}getJSON(e=this.container){const t={},n=e.querySelector(".key"),r=e.querySelector(".key + .value");if(n&&n.value)if(r.style.display!=="none")t[n.value]=r.value;else{let o=e.querySelector(".sub-item");const i=[o];for(;o.nextElementSibling;)i.push(o.nextElementSibling),o=o.nextElementSibling;let s={};i.forEach(a=>{s={...s,...this.getJSON(a)}}),Object.keys(s).length===0?t[n.value]=null:t[n.value]=s}return t}}const c=new l;d.appendChild(c.container);h.addEventListener("click",()=>m.textContent=JSON.stringify(c.getJSON(),null,2)); diff --git a/docs/javascript/assets/index-9671j0uW.js b/docs/javascript/assets/index-dNOV8TdZ.js similarity index 98% rename from docs/javascript/assets/index-9671j0uW.js rename to docs/javascript/assets/index-dNOV8TdZ.js index 2b066fe0e..69414da39 100644 --- a/docs/javascript/assets/index-9671j0uW.js +++ b/docs/javascript/assets/index-dNOV8TdZ.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";class c{constructor(a=[]){this.trie={},this.addWordsToTrie(a)}addWordsToTrie(a){for(let t of a){let i=this.trie;t=t.toLowerCase();for(const o of t)i.hasOwnProperty(o)||(i[o]={}),i=i[o];i.end=!0}}getWordsFromTrie(a,t){a=a.toLowerCase();let i=this.trie;for(const o of a)if(i=i[o],!i)return[];return this.getWordsByDFS(i,t,a)}getWordsByDFS(a,t=1/0,i="",o=[]){if(!(a.end&&(o.push(i),o.length===t))){for(const u in a)if(a.hasOwnProperty(u)&&(this.getWordsByDFS(a[u],t,i+u,o),o.length===t))break;return o}}}const m=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],S=5,l=document.getElementById("userInput"),r=document.querySelector(".suggestions"),y=new c(m);let n=null,s="";function g(e){var a;(a=r.querySelector(".highlight"))==null||a.classList.remove("highlight"),r.childNodes[e].classList.add("highlight"),l.value=r.childNodes[e].textContent}function h(){var e;(e=r.querySelector(".highlight"))==null||e.classList.remove("highlight"),l.value=s,n=null}function d(){r.innerHTML="",n=null,l.value=s}l.addEventListener("input",()=>{r.innerHTML="",n=null,s=l.value;const e=s?y.getWordsFromTrie(s,S):[];for(let a=0;a{if(e.key==="Enter"&&n!=null){s=r.childNodes[n].textContent,d();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=r.childElementCount){h();return}g(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??r.childElementCount,n-1<0){h();return}g(--n)}});l.addEventListener("blur",()=>{setTimeout(d,100)});r.addEventListener("click",e=>{const a=e.target;a.tagName.toLowerCase()==="li"&&(s=a.textContent,d())}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";class c{constructor(a=[]){this.trie={},this.addWordsToTrie(a)}addWordsToTrie(a){for(let t of a){let i=this.trie;t=t.toLowerCase();for(const o of t)i.hasOwnProperty(o)||(i[o]={}),i=i[o];i.end=!0}}getWordsFromTrie(a,t){a=a.toLowerCase();let i=this.trie;for(const o of a)if(i=i[o],!i)return[];return this.getWordsByDFS(i,t,a)}getWordsByDFS(a,t=1/0,i="",o=[]){if(!(a.end&&(o.push(i),o.length===t))){for(const u in a)if(a.hasOwnProperty(u)&&(this.getWordsByDFS(a[u],t,i+u,o),o.length===t))break;return o}}}const m=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],S=5,l=document.getElementById("userInput"),r=document.querySelector(".suggestions"),y=new c(m);let n=null,s="";function g(e){var a;(a=r.querySelector(".highlight"))==null||a.classList.remove("highlight"),r.childNodes[e].classList.add("highlight"),l.value=r.childNodes[e].textContent}function h(){var e;(e=r.querySelector(".highlight"))==null||e.classList.remove("highlight"),l.value=s,n=null}function d(){r.innerHTML="",n=null,l.value=s}l.addEventListener("input",()=>{r.innerHTML="",n=null,s=l.value;const e=s?y.getWordsFromTrie(s,S):[];for(let a=0;a{if(e.key==="Enter"&&n!=null){s=r.childNodes[n].textContent,d();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=r.childElementCount){h();return}g(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??r.childElementCount,n-1<0){h();return}g(--n)}});l.addEventListener("blur",()=>{setTimeout(d,100)});r.addEventListener("click",e=>{const a=e.target;a.tagName.toLowerCase()==="li"&&(s=a.textContent,d())}); diff --git a/docs/javascript/assets/index-gpWo-PRn.js b/docs/javascript/assets/index-eHDGZszS.js similarity index 92% rename from docs/javascript/assets/index-gpWo-PRn.js rename to docs/javascript/assets/index-eHDGZszS.js index fbeb5b2e3..8e75b8139 100644 --- a/docs/javascript/assets/index-gpWo-PRn.js +++ b/docs/javascript/assets/index-eHDGZszS.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const c=document.getElementById("userInput"),r=document.getElementById("lowercase"),d=document.getElementById("uppercase"),p=document.getElementById("camelcase"),u=document.getElementById("pascalcase"),C=document.getElementById("snakecase"),i=document.getElementById("kebabcase");document.getElementById("titlecase");const E=document.getElementById("trim");function l({text:e=c.value.trim()}){var n;const t=e.toLowerCase().split(" ").reduce((m,s)=>{var o,a;return m+((o=s[0])==null?void 0:o.toUpperCase())+((a=s.substring(1))==null?void 0:a.toLowerCase())});r.textContent=e.toLowerCase(),d.textContent=e.toUpperCase(),p.textContent=t,u.textContent=t?((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1):"",C.textContent=e.split(" ").join("_"),i.textContent=e.split(" ").join("-"),E.textContent=e.split(" ").join("")}c.addEventListener("input",l);l({}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const c=document.getElementById("userInput"),r=document.getElementById("lowercase"),d=document.getElementById("uppercase"),p=document.getElementById("camelcase"),u=document.getElementById("pascalcase"),C=document.getElementById("snakecase"),i=document.getElementById("kebabcase");document.getElementById("titlecase");const E=document.getElementById("trim");function l({text:e=c.value.trim()}){var n;const t=e.toLowerCase().split(" ").reduce((m,s)=>{var o,a;return m+((o=s[0])==null?void 0:o.toUpperCase())+((a=s.substring(1))==null?void 0:a.toLowerCase())});r.textContent=e.toLowerCase(),d.textContent=e.toUpperCase(),p.textContent=t,u.textContent=t?((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1):"",C.textContent=e.split(" ").join("_"),i.textContent=e.split(" ").join("-"),E.textContent=e.split(" ").join("")}c.addEventListener("input",l);l({}); diff --git a/docs/javascript/assets/index-fOxG5XRf.css b/docs/javascript/assets/index-fOxG5XRf.css deleted file mode 100644 index e50dc44a5..000000000 --- a/docs/javascript/assets/index-fOxG5XRf.css +++ /dev/null @@ -1 +0,0 @@ -h3{margin-bottom:5px;height:40px}p{margin:0;height:30px}.card{border-radius:5px;padding:15px;border:1px solid #c1c1c1;margin:0 auto}.skeleton-loader{background:#ddd;min-height:15px;position:relative;overflow:hidden;margin:0 0 8px;border-radius:2px}.skeleton-loader:last-child{width:70%;margin-bottom:0}.skeleton-loader:before{content:"";position:absolute;display:block;width:100%;height:100%;background:linear-gradient(to right,transparent,#fff,transparent);transform:translate(-100%);animation:skeleton-loader 1s infinite}@keyframes skeleton-loader{to{transform:translate(100%)}}.img{height:250px;border-radius:3px;margin-bottom:15px}@media screen and (width >= 768px){.card{max-width:50vw}} diff --git a/docs/javascript/assets/index-2nWatOoe.js b/docs/javascript/assets/index-fu0dB_49.js similarity index 99% rename from docs/javascript/assets/index-2nWatOoe.js rename to docs/javascript/assets/index-fu0dB_49.js index 895041b40..63fe008ed 100644 --- a/docs/javascript/assets/index-2nWatOoe.js +++ b/docs/javascript/assets/index-fu0dB_49.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExODA4MzlBRDEwQjBCQTIwMyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozRTY3MDlDNzM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozRTY3MDlDNjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDE4MDExNzQwNzIwNjgxMTgwODM5QUQxMEIwQkEyMDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDE4MDExNzQwNzIwNjgxMTgwODM5QUQxMEIwQkEyMDMiLz4gPC9yZGY6RGVzY3Jp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",D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozRTY3MDlDMjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozRTY3MDlDMzM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjNFNjcwOUMwMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNFNjcwOUMxMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+WIg5TAAABRdJREFUeNrs3UFO20AYhuHastJNehNWnIgDIHEBllwAiWUqcSJW3MeIRSRjOY2TJrFnvufZtVJTk/Z/Z8aEpOn7/heQqfUUgAAAAgAIABCh+/v7zyUfzx1FuL7mYgEw7FCc/lJR6Aw9VBeF5tIBMPhQXgyOhqA1/BB1VDgpAIYfKo5AZ/Ah90jgdQAQrLX6Q+5xoDX8kBuB1vBDbgTcAwD3AKz+kLgLsAMAOwAgNQC2/xB6DLADAEcAQAAAAQAEABAAQAAAAQAEABAAoGSdp4Bkd08PZ//Zz9f34r/+ZrfZ+lkAoof+/vnx5Mf4eHmrIgYCQOTgnzP0c2JQWggEAIMfHAIBwOBfKQQlREAAqHr4bzn4JUZAADD8wUcCAcDwB+8GvBAIw39la7seAcDwL3iNAgBhw7+/trVFQACowpqHf80REACqWP2FSgCw+guXAGD1FywBIGL4S1z91xQwAcDWP/jaBQCCdwECAMG7AAHAqhlMALB6BgdNACA4ZAIAjgCAAIDzsgCAc7MAAAIA6zL+VB4EgBA1fB6fAAACAAgAIACQZ+kbmgKAwVnYkjc2BQAD4wgAJO5iBAADFLybEQAMTnC8BACDFBwxAcAABUdLALALCI6XAFDFLqCUCKztOgUAR4EbD/+arlcAcBQIHX4BwFEgePgFABEIHn4BQASCh/9bs9tse/9tqM3w7cOXeBfhEoZfAIgJwa0iMNx5lPDdCQHAbiBw8AUAIQgefAFACAZOCcL4BmPJP5koAAjCGZ83WMu7EgkABPM6ABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEAATAUwACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAIAAAAIACAAgAIAAAAIACAAgAIAAAAIACABQoK72L/Du6WHy9z9f3/3rE6/ZbbZ97cN+//z449cfL2+iADUEYDz042GfaxwFMUAAChn8c4d+TgyEAAEIGXwhQAAKGP5rD/6hEIgAAhA2/HYDCED48NsNUKvW8J9mfx2HvuUIAlDp8IsAAhA+/OMIgACEDf/UtYIAhA2/owACEL69dhRAAGyn7QIQgNQV1VEAAQhfQR0FEABDBAKQzDEAAQgdGjsYBMDwgAAAAuA+AAhADkcZBMBqCQJg1QQBAAQAEABAAIYOfVYfUHkAvL02OAIAAlA+xxkEIJxjDQJg5QQBSFoxRQwBsP33JCAAVlAQgJiVU7wQgPBBsv1HAAIHyOqPAIQO1P5arf4IwAV3ASVFwPAjAIERsPVHAEJXVVt/BCB0lTX8CEDoUcDwU5Nmt9n2a7/I4VuHL/kOwoYfAVhBCG4dgeEOxPAjAEG7Aas+AhAYAqs+AhAWgvHNRoOPABQYgrlBmPrugqFHACoNwhQDjwAAkbwlGAgAIACAAAACAAgAIACAAAACAAgAIABAsQFoPA0QqbEDAEcAIDkAjgEQtv23AwA7gJ9FADJW/6kdgAhAyPAfOgKIAAQMv3sAEK47UgpvGAoVrvxzdwCOA1Dp8M89AogAVDj8/zoCOBJAxYN/agCmHlgMoMCh/58AHPsLRQFWOuyTD9T3ZhZSeR0ACAAgAIAAABm+BBgAb6HKIXAM7nkAAAAASUVORK5CYII=",C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozRTY3MDlCRTM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozRTY3MDlCRjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1QkZBQTc1MzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA1QkZBQTc2MzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+1c2J1gAABfVJREFUeNrs3U2O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",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNUJGQUE3MzM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNUJGQUE3NDM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1QkZBQTcxMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA1QkZBQTcyMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+qru5gAAABqpJREFUeNrs3UGO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",E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNUJGQUE2RjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNUJGQUE3MDM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1QkZBQTZEMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA1QkZBQTZFMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+tnAQbQAAB3pJREFUeNrs3UuO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",M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4MzZDMDk0RDM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4MzZDMDk0RTM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjNFNjcwOUM4MzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjgzNkMwOTRDMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SxkJ3gAACBpJREFUeNrs3UuO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",B=[Q,D,C,w,E,M],G=document.querySelector(".img1"),Y=document.querySelector(".img2"),R=document.querySelector(".play");function I(){const A=Math.floor(Math.random()*6),g=Math.floor(Math.random()*6);G.setAttribute("src",B[A]),Y.setAttribute("src",B[g]),N(A,g)}function N(A,g){A>g?document.getElementById("result").innerHTML="Player1 Wins!":Ag?document.getElementById("result").innerHTML="Player1 Wins!":A{o.addEventListener("click",e=>{k(e.target.dataset)})});function L(){m&&x();let o=`
`;i===d&&s===l&&(y(),c+=1,t.push([d,l]),a=c>a?c:a,u.innerText=c,f.innerText=a,localStorage.setItem("score",a)),i+=r,s+=n;for(let e=t.length-1;e>0;e--)t[e]=t[e-1];if(t[0]=[i,s],i<1||i>=36||s<1||s>=36)return m=!0;for(let e=0;e`,e!==0&&t[0][0]===t[e][0]&&t[0][1]===t[e][1])return m=!0;T.innerHTML=o}function A(){m=!1,c=0,h=90,l=0,d=0,i=9,s=7,t=[],r=0,n=0,u.innerText=c}function v(){y(),S=setInterval(L,h),document.addEventListener("keyup",k)}v();b.addEventListener("click",()=>{g.classList.remove("show-modal"),A(),v()}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const u=document.querySelector(".game-score b"),f=document.querySelector(".game-highestScore b"),p=document.querySelector(".modal-game-score b"),w=document.querySelector(".modal-game-highestScore b"),T=document.querySelector(".main-game"),q=document.querySelectorAll(".arrow"),b=document.querySelector(".btn"),g=document.querySelector(".modal-container");let m=!1,c=0,h=90,S,l=0,d=0,i=9,s=7,t=[],r=0,n=0,a=JSON.parse(localStorage.getItem("score"))||0;f.innerText=a;u.innerText=0;function x(){g.classList.add("show-modal"),p.innerText=c,w.innerText=a,clearInterval(S)}function y(){l=Math.floor(Math.random()*35+1),d=Math.floor(Math.random()*35+1)}function k(o){o.key==="ArrowUp"&&n!=1?(r=0,n=-1):o.key==="ArrowDown"&&n!==-1?(r=0,n=1):o.key==="ArrowLeft"&&r!==1?(r=-1,n=0):o.key==="ArrowRight"&&r!==-1&&(r=1,n=0)}q.forEach(o=>{o.addEventListener("click",e=>{k(e.target.dataset)})});function L(){m&&x();let o=`
`;i===d&&s===l&&(y(),c+=1,t.push([d,l]),a=c>a?c:a,u.innerText=c,f.innerText=a,localStorage.setItem("score",a)),i+=r,s+=n;for(let e=t.length-1;e>0;e--)t[e]=t[e-1];if(t[0]=[i,s],i<1||i>=36||s<1||s>=36)return m=!0;for(let e=0;e`,e!==0&&t[0][0]===t[e][0]&&t[0][1]===t[e][1])return m=!0;T.innerHTML=o}function A(){m=!1,c=0,h=90,l=0,d=0,i=9,s=7,t=[],r=0,n=0,u.innerText=c}function v(){y(),S=setInterval(L,h),document.addEventListener("keyup",k)}v();b.addEventListener("click",()=>{g.classList.remove("show-modal"),A(),v()}); diff --git a/docs/javascript/assets/index-3dH-Rsxa.js b/docs/javascript/assets/index-hhV0bhhk.js similarity index 90% rename from docs/javascript/assets/index-3dH-Rsxa.js rename to docs/javascript/assets/index-hhV0bhhk.js index eecc60b10..a3413c7f8 100644 --- a/docs/javascript/assets/index-3dH-Rsxa.js +++ b/docs/javascript/assets/index-hhV0bhhk.js @@ -1,4 +1,4 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const l=document.querySelector("form"),s=document.querySelector("#file-input"),c=document.querySelector("#selected-file-area");l.addEventListener("click",()=>{s.click()});s.onchange=({target:e})=>{const t=e.files[0];let n=t.name;if(t){const i=o(n);i.length>12&&(n=i.substring(0,12)+"... "+a(n))}r(n)};function o(e){const t=e.lastIndexOf(".");return e.substr(0,t)}function a(e){const t=e.lastIndexOf(".");return e.slice(t)}function r(e){const t=`
+import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const l=document.querySelector("form"),s=document.querySelector("#file-input"),c=document.querySelector("#selected-file-area");l.addEventListener("click",()=>{s.click()});s.onchange=({target:e})=>{const t=e.files[0];let n=t.name;if(t){const i=o(n);i.length>12&&(n=i.substring(0,12)+"... "+a(n))}r(n)};function o(e){const t=e.lastIndexOf(".");return e.substr(0,t)}function a(e){const t=e.lastIndexOf(".");return e.slice(t)}function r(e){const t=`
diff --git a/docs/javascript/assets/index-bB5SJRWo.js b/docs/javascript/assets/index-igXKdzqz.js similarity index 98% rename from docs/javascript/assets/index-bB5SJRWo.js rename to docs/javascript/assets/index-igXKdzqz.js index 4aba9ac2c..c899da325 100644 --- a/docs/javascript/assets/index-bB5SJRWo.js +++ b/docs/javascript/assets/index-igXKdzqz.js @@ -1,4 +1,4 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const h=document.getElementById("input-floor"),E=document.getElementById("input-lift"),D=document.getElementById("btn-submit"),I=document.getElementById("form1"),y=document.getElementById("btn-reset"),b=document.getElementById("content");let c=0,m=[{id:1,floor:1},{id:2,floor:1},{id:3,floor:1},{id:4,floor:1}];const L=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}};function g(e,t){let o,a=1/0;for(let s=0;s{location.reload(!0),h.value="",E.value="",I.style.display="flex",y.style.display="none",b.style.display="none",c=0});D.addEventListener("click",e=>{e.preventDefault();let t=h.value,o=E.value;if(t>99||t<1||o<1||o>4)alert("floor should be betwween 1- 99 and lift value should be between 1 - 4");else{I.style.display="none",y.style.display="block",b.style.display="flex";const a=Array(Number(t)).fill(0);for(let n=0;n3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}};function g(e,t){let o,a=1/0;for(let s=0;s{location.reload(!0),h.value="",E.value="",I.style.display="flex",y.style.display="none",b.style.display="none",c=0});D.addEventListener("click",e=>{e.preventDefault();let t=h.value,o=E.value;if(t>99||t<1||o<1||o>4)alert("floor should be betwween 1- 99 and lift value should be between 1 - 4");else{I.style.display="none",y.style.display="block",b.style.display="flex";const a=Array(Number(t)).fill(0);for(let n=0;n diff --git a/docs/javascript/assets/index--s_XcGd0.js b/docs/javascript/assets/index-j7evlMg1.js similarity index 97% rename from docs/javascript/assets/index--s_XcGd0.js rename to docs/javascript/assets/index-j7evlMg1.js index d80fbe8c2..7588feef4 100644 --- a/docs/javascript/assets/index--s_XcGd0.js +++ b/docs/javascript/assets/index-j7evlMg1.js @@ -1 +1 @@ -var E=Object.defineProperty;var K=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n),q=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var a=(t,e,n)=>(q(t,e,"read from private field"),n?n.call(t):e.get(t)),o=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";var d,c,u,m,r;class z{constructor(e,n){o(this,d,"1234567890".split(""));o(this,c,"qwertyuiop".split(""));o(this,u,"asdfghjkl".split(""));o(this,m,"zxcvbnm".split(""));o(this,r,new Map);this.el=e,this.callback=n,this.populateKeys(),this.addKeyListener(),this.addKeyboardListener()}populateKeys(){[a(this,d),a(this,c),a(this,u),a(this,m)].forEach(n=>{const s=document.createElement("div");s.classList.add("row"),n.forEach(f=>{const h=document.createElement("button");h.classList.add("key"),h.textContent=f,s.appendChild(h),a(this,r).set(f,h)}),this.el.appendChild(s)})}addKeyListener(){this.el.addEventListener("click",e=>{if(e.target.classList.contains("key")){const n=e.target;n.classList.add("active"),setTimeout(()=>n.classList.remove("active"),100),this.callback(n.textContent)}})}addKeyboardListener(){document.addEventListener("keydown",e=>{var s;let n=e.key;(s=a(this,r).get(n.toLowerCase()))==null||s.click()})}}d=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,r=new WeakMap;const k=["he turned in the research paper on friday otherwise he would have not passed the class","plans for this weekend include turning wine into water","the miniature pet elephant became the envy of the neighborhood","as she walked along the street and looked in the gutter she realized facemasks had become the new cigarette butts","he had unknowingly taken up sleepwalking as a nighttime hobby","they got there early and they got really good seats","david proudly graduated from high school top of his class at age 97","he realized there had been several deaths on this road but his concern rose when he saw the exact number","three generations with six decades of life experience","her life in the confines of the house became her new normal","he never understood why what when and where left out who","truth in advertising and dinosaurs with skateboards have much in common","its not possible to convince a monkey to give you a banana by promising it infinite bananas when they die","he was willing to find the depths of the rabbit hole in order to be with her","the estate agent quickly marked out his territory on the dance floor","at that moment she realized she had a sixth sense","the lyrics of the song sounded like fingernails on a chalkboard","its not often you find a soggy banana on the street","i have traveled all around africa and still havent found the gnu who stole my scarf","although it wasnt a pot of gold nancy was still enthralled at what she found at the end of the rainbow","honestly i didnt care much for the first season so i didnt bother with the second","the balloons floated away along with all my hopes and dreams","the anaconda was the greatest criminal mastermind in this part of the neighborhood","he learned the hardest lesson of his life and had the scars both physical and mental to prove it","he set out for a short walk but now all he could see were mangroves and water were for miles","the spa attendant applied the deep cleaning mask to the gentlemans back","the busker hoped that the people passing by would throw money but they threw tomatoes instead so he exchanged his hat for a juicer","the irony of the situation wasnt lost on anyone in the room","the bug was having an excellent day until he hit the windshield","it would have been a better night if the guys next to us werent in the splash zone","kevin embraced his ability to be at the wrong place at the wrong time","she was amazed by the large chunks of ice washing up on the beach","watching the geriatric mens softball team brought back memories of 3 yr olds playing tball","he used to get confused between soldiers and shoulders but as a military man he now soldiers responsibility","in hopes of finding out the truth he entered the oneroom library","he found his art never progressed when he literally used his sweat and tears","homesickness became contagious in the young campers cabin","today i dressed my unicorn in preparation for the race"];class R{constructor(){y(this,"isTimerRunning",!1);y(this,"runTimer",()=>{if(this.time===0){this.completionCallback(),this.stopTimer();return}this.time--,this.timerCallback(this.time)})}startTimer(e,n,s){this.isTimerRunning||(this.time=e,this.timerCallback=n,this.completionCallback=s,this.intervalId=setInterval(this.runTimer,1e3),this.isTimerRunning=!0)}stopTimer(){clearInterval(this.intervalId),this.isTimerRunning=!1}}const i=document.querySelector(".sentences-display"),S=document.querySelector(".keyboard"),w=document.querySelector(".time-display"),v=document.querySelector(".reset"),g=60;let x,l=0,b=!1;const p=new R,L=()=>{const t=k[Math.floor(Math.random()*k.length)];i.textContent+=t+" "},I=()=>{i.textContent.length<50&&L();const t=i.textContent.charAt(1).trim()?1:2;i.textContent=i.textContent.slice(t),C()},C=()=>{x=i.textContent.charAt(0)},D=t=>{b||(!p.isTimerRunning&&l===0&&p.startTimer(g,M,j),t===x&&(l++,I()))},M=t=>{w.textContent=t},j=()=>{w.textContent=`You typed ${l} letters in ${g} seconds`,b=!0},T=()=>{i.textContent="",L(),C(),l=0,w.textContent=g,p.stopTimer(),b=!1,v.blur()};v.addEventListener("click",T);new z(S,D);T(); +var E=Object.defineProperty;var K=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n),q=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var a=(t,e,n)=>(q(t,e,"read from private field"),n?n.call(t):e.get(t)),o=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";var d,c,u,m,r;class z{constructor(e,n){o(this,d,"1234567890".split(""));o(this,c,"qwertyuiop".split(""));o(this,u,"asdfghjkl".split(""));o(this,m,"zxcvbnm".split(""));o(this,r,new Map);this.el=e,this.callback=n,this.populateKeys(),this.addKeyListener(),this.addKeyboardListener()}populateKeys(){[a(this,d),a(this,c),a(this,u),a(this,m)].forEach(n=>{const s=document.createElement("div");s.classList.add("row"),n.forEach(f=>{const h=document.createElement("button");h.classList.add("key"),h.textContent=f,s.appendChild(h),a(this,r).set(f,h)}),this.el.appendChild(s)})}addKeyListener(){this.el.addEventListener("click",e=>{if(e.target.classList.contains("key")){const n=e.target;n.classList.add("active"),setTimeout(()=>n.classList.remove("active"),100),this.callback(n.textContent)}})}addKeyboardListener(){document.addEventListener("keydown",e=>{var s;let n=e.key;(s=a(this,r).get(n.toLowerCase()))==null||s.click()})}}d=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,r=new WeakMap;const k=["he turned in the research paper on friday otherwise he would have not passed the class","plans for this weekend include turning wine into water","the miniature pet elephant became the envy of the neighborhood","as she walked along the street and looked in the gutter she realized facemasks had become the new cigarette butts","he had unknowingly taken up sleepwalking as a nighttime hobby","they got there early and they got really good seats","david proudly graduated from high school top of his class at age 97","he realized there had been several deaths on this road but his concern rose when he saw the exact number","three generations with six decades of life experience","her life in the confines of the house became her new normal","he never understood why what when and where left out who","truth in advertising and dinosaurs with skateboards have much in common","its not possible to convince a monkey to give you a banana by promising it infinite bananas when they die","he was willing to find the depths of the rabbit hole in order to be with her","the estate agent quickly marked out his territory on the dance floor","at that moment she realized she had a sixth sense","the lyrics of the song sounded like fingernails on a chalkboard","its not often you find a soggy banana on the street","i have traveled all around africa and still havent found the gnu who stole my scarf","although it wasnt a pot of gold nancy was still enthralled at what she found at the end of the rainbow","honestly i didnt care much for the first season so i didnt bother with the second","the balloons floated away along with all my hopes and dreams","the anaconda was the greatest criminal mastermind in this part of the neighborhood","he learned the hardest lesson of his life and had the scars both physical and mental to prove it","he set out for a short walk but now all he could see were mangroves and water were for miles","the spa attendant applied the deep cleaning mask to the gentlemans back","the busker hoped that the people passing by would throw money but they threw tomatoes instead so he exchanged his hat for a juicer","the irony of the situation wasnt lost on anyone in the room","the bug was having an excellent day until he hit the windshield","it would have been a better night if the guys next to us werent in the splash zone","kevin embraced his ability to be at the wrong place at the wrong time","she was amazed by the large chunks of ice washing up on the beach","watching the geriatric mens softball team brought back memories of 3 yr olds playing tball","he used to get confused between soldiers and shoulders but as a military man he now soldiers responsibility","in hopes of finding out the truth he entered the oneroom library","he found his art never progressed when he literally used his sweat and tears","homesickness became contagious in the young campers cabin","today i dressed my unicorn in preparation for the race"];class R{constructor(){y(this,"isTimerRunning",!1);y(this,"runTimer",()=>{if(this.time===0){this.completionCallback(),this.stopTimer();return}this.time--,this.timerCallback(this.time)})}startTimer(e,n,s){this.isTimerRunning||(this.time=e,this.timerCallback=n,this.completionCallback=s,this.intervalId=setInterval(this.runTimer,1e3),this.isTimerRunning=!0)}stopTimer(){clearInterval(this.intervalId),this.isTimerRunning=!1}}const i=document.querySelector(".sentences-display"),S=document.querySelector(".keyboard"),w=document.querySelector(".time-display"),v=document.querySelector(".reset"),g=60;let x,l=0,b=!1;const p=new R,L=()=>{const t=k[Math.floor(Math.random()*k.length)];i.textContent+=t+" "},I=()=>{i.textContent.length<50&&L();const t=i.textContent.charAt(1).trim()?1:2;i.textContent=i.textContent.slice(t),C()},C=()=>{x=i.textContent.charAt(0)},D=t=>{b||(!p.isTimerRunning&&l===0&&p.startTimer(g,M,j),t===x&&(l++,I()))},M=t=>{w.textContent=t},j=()=>{w.textContent=`You typed ${l} letters in ${g} seconds`,b=!0},T=()=>{i.textContent="",L(),C(),l=0,w.textContent=g,p.stopTimer(),b=!1,v.blur()};v.addEventListener("click",T);new z(S,D);T(); diff --git a/docs/javascript/assets/index-b9Hd8N0p.js b/docs/javascript/assets/index-mwi5XAit.js similarity index 94% rename from docs/javascript/assets/index-b9Hd8N0p.js rename to docs/javascript/assets/index-mwi5XAit.js index 692c6c48f..e556ac873 100644 --- a/docs/javascript/assets/index-b9Hd8N0p.js +++ b/docs/javascript/assets/index-mwi5XAit.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const a=document.getElementById("display"),s=[],o=6,p=e=>{for(let n=0;n/^\d+$/.test(e);a.addEventListener("keydown",e=>{var t,i;const n=e.target;if(r(e.key)){n.value="";return}if(e.key==="ArrowLeft"){(t=n.previousElementSibling)==null||t.focus(),e.preventDefault(),e.stopPropagation();return}if(e.key==="ArrowRight"){(i=n.nextElementSibling)==null||i.focus();return}});a.addEventListener("keyup",e=>{var t;const n=e.target;if(e.key==="Backspace"||e.key==="Delete"){n.value="",(t=n.previousElementSibling)==null||t.focus();return}});a.addEventListener("input",e=>{const n=e.target;if(!r(n.value)){n.value="";return}if(n.value!==""){const t=n.nextElementSibling;t?t.focus():n.parentElement.firstChild.value===""?n.parentElement.firstChild.focus():n.blur()}});a.addEventListener("paste",e=>{const t=(e.clipboardData||window.clipboardData).getData("Text");typeof t=="string"&&t.length===o&&r(t)&&s.forEach((i,l)=>{i.value=t.charAt(l)})});p(o); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const a=document.getElementById("display"),s=[],o=6,p=e=>{for(let n=0;n/^\d+$/.test(e);a.addEventListener("keydown",e=>{var t,i;const n=e.target;if(r(e.key)){n.value="";return}if(e.key==="ArrowLeft"){(t=n.previousElementSibling)==null||t.focus(),e.preventDefault(),e.stopPropagation();return}if(e.key==="ArrowRight"){(i=n.nextElementSibling)==null||i.focus();return}});a.addEventListener("keyup",e=>{var t;const n=e.target;if(e.key==="Backspace"||e.key==="Delete"){n.value="",(t=n.previousElementSibling)==null||t.focus();return}});a.addEventListener("input",e=>{const n=e.target;if(!r(n.value)){n.value="";return}if(n.value!==""){const t=n.nextElementSibling;t?t.focus():n.parentElement.firstChild.value===""?n.parentElement.firstChild.focus():n.blur()}});a.addEventListener("paste",e=>{const t=(e.clipboardData||window.clipboardData).getData("Text");typeof t=="string"&&t.length===o&&r(t)&&s.forEach((i,l)=>{i.value=t.charAt(l)})});p(o); diff --git a/docs/javascript/assets/index-nJyq2Jsf.css b/docs/javascript/assets/index-nJyq2Jsf.css deleted file mode 100644 index a547ea99e..000000000 --- a/docs/javascript/assets/index-nJyq2Jsf.css +++ /dev/null @@ -1 +0,0 @@ -.loader-wrapper{display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100px;height:100px}.loader{width:100%;height:100%;border:10px solid #ccc;border-radius:50%;border-top-color:#3498db;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} diff --git a/docs/javascript/assets/index-Xxd4Lp8J.js b/docs/javascript/assets/index-pvIBNZpX.js similarity index 99% rename from docs/javascript/assets/index-Xxd4Lp8J.js rename to docs/javascript/assets/index-pvIBNZpX.js index 297658973..f60bafe7c 100644 --- a/docs/javascript/assets/index-Xxd4Lp8J.js +++ b/docs/javascript/assets/index-pvIBNZpX.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const E="data:audio/mpeg;base64,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",k="/frontend-mini-challenges/javascript/assets/green-DzOf4mZj.mp3",d="/frontend-mini-challenges/javascript/assets/red-4-OrdHCN.mp3",c="/frontend-mini-challenges/javascript/assets/yellow-pAJ_bTb8.mp3",Q="/frontend-mini-challenges/javascript/assets/wrong-ScTJZo6t.mp3";let t=[],l=!1,n=0,b=["red","blue","green","yellow"];const a=new Map([["red",new Audio(d)],["blue",new Audio(E)],["green",new Audio(k)],["yellow",new Audio(c)],["wrong",new Audio(Q)]]);let s=[],r=document.querySelectorAll(".btn");for(let A=0;AMath.random()-.5).slice(0,o)}function g(){r+=1,clearInterval(c),r===n.length?(h.classList.add("hide"),w.classList.remove("hide"),L.innerHTML="Your score is "+p+" out of "+n.length):(s=10,l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",b(r),q())}k.addEventListener("click",()=>{m(),h.classList.remove("hide"),w.classList.add("hide")});A.addEventListener("click",g);const q=()=>{c=setInterval(()=>{s--,l.innerHTML=`${s}s`,s===0&&(clearInterval(c),g())},1e3)},b=e=>{const o=document.querySelectorAll(".container-mid");e{t.classList.add("hide")}),o[e].classList.remove("hide"))};function S(){for(const e of n){const o=document.createElement("div");o.classList.add("container-mid","hide"),u.innerHTML="1 of "+n.length+" Question";const t=document.createElement("p");t.classList.add("question"),t.innerHTML=e.question,o.appendChild(t);for(let a=0;aI(i,e),o.appendChild(i)}y.appendChild(o)}}function I(e,o){const t=e.textContent,a=o.correct,i=e.parentElement.querySelectorAll(".option-div");if(t===a)e.classList.add("correct"),p++;else{e.classList.add("incorrect");for(const d of i)d.textContent===a&&d.classList.add("correct")}clearInterval(c),i.forEach(d=>{d.disabled=!0})}function m(){y.innerHTML="",r=0,p=0,s=10,c&&clearInterval(c),l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",S(),b(r),q()}C.addEventListener("click",()=>{f.classList.add("hide"),h.classList.remove("hide"),m()});window.onload=()=>{f.classList.remove("hide"),h.classList.add("hide")};n=H(v,10);m(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const v=[{question:"A flashing red traffic light signifies that a driver should do what?",options:["stop","speed up","proceed with caution","honk the horn"],correct:"stop",id:"0"},{question:"A knish is traditionally stuffed with what filling?",options:["potato","creamed corn","lemon custard","raspberry jelly"],correct:"potato",id:"1"},{question:"A pita is a type of what?",options:["fresh fruit","flat bread","French tart","friend bean dip"],correct:"flat bread",id:"2"},{question:"A portrait that comically exaggerates a person's physical traits is called a what?",options:["landscape","caricature","still life","Impressionism"],correct:"caricature",id:"3"},{question:"A second-year college student is usually called a what?",options:["sophomore","senior","freshman ","junior "],correct:"sophomore",id:"4"},{question:"A student who earns a J.D. can begin his or her career as a what?",options:["lawyer","bricklayer","doctor","accountant"],correct:"lawyer",id:"5"},{question:"A triptych is a work of art that is painted on how many panels?",options:["two","three","five","eight"],correct:"three",id:"6"},{question:"According to a famous line from the existentialist play 'No Exit' what is hell?",options:["oneself","other people","little made large","hued in green and blue"],correct:"other people",id:"7"},{question:"According to a popular slogan, what state should people not 'mess with'?",options:["New York","Texas","Montana","Rhode Island"],correct:"Texas",id:"8"},{question:"According to a Yale University study, what smell is the most recognizable to American adults?",options:["tuna","laundry","popcorn","coffee"],correct:"coffee",id:"9"},{question:"According to folklore, the 'jackalope' is an antlered version of what animal?",options:["chicken","rabbit","moose","snake"],correct:"rabbit",id:"10"},{question:"According to Greek mythology, who was Apollo's twin sister?",options:["Aphrodite","Artemis","Venus","Athena"],correct:"Artemis",id:"11"},{question:"According to legend, if you give someone the 'evil eye' what are you doing?",options:["cursing them","blessing a child","counting money","passing time"],correct:"cursing them",id:"12"},{question:"According to legend, in what country are you most likely to meet a leprechaun?",options:["Ireland","Poland","Greenland","Scotland"],correct:"Ireland",id:"13"},{question:"According to the American Kennel Club, what is the most popular breed of dog in the US as of 1999?",options:["Poodle","Beagle","German shepherd","Labrador retriever"],correct:"Labrador retriever",id:"14"},{question:"According to the Bible, Moses and Aaron had a sister named what?",options:["Jochebed","Ruth","Leah","Miriam"],correct:"Miriam",id:"15"},{question:"According to the children's nursery rhyme, what type of ocean did Columbus sail in 1492?",options:["calm","blue","windy","really big"],correct:"blue",id:"16"},{question:"According to the Mother Goose nursery rhyme, which child is full of woe?",options:["Monday's child","Wednesday's child","Thursday's child","Saturday's child"],correct:"Wednesday's child",id:"17"},{question:"According to the popular saying, what should you do 'when in Rome'?",options:["watch your wallet","see the Coliseum","as the Romans do","don't drink the water"],correct:"as the Romans do",id:"18"},{question:"According to the proverb, necessity is the mother of what?",options:["Invention","Luck","Problems","Procrastination"],correct:"Invention",id:"19"},{question:"According to the title of a popular children's TV show, what color is Bear's big house?",options:["red","green","purple","blue"],correct:"blue",id:"20"},{question:"According to the USDA, which food group should you eat the most servings of per day?",options:["vegetables","dairy","meats","breads"],correct:"breads",id:"21"},{question:"Ada Lovelace is credited with being the first person to have made what?",options:["a computer program","a souffle","a brassiere","a mystery novel"],correct:"a computer program",id:"22"},{question:"After Prince Charles, who is next in line to be the king of England?",options:["Prince William","Prince Andrew","Prince Edward","Fresh Prince"],correct:"Prince William",id:"23"},{question:"An airplane's black box is usually what color?",options:["black","white","orange","purple"],correct:"orange",id:"24"},{question:"As of 1999, which state has the most Girl Scouts?",options:["California","Illinois","New York","Pennsylvania"],correct:"California",id:"25"},{question:"Astronaut John Glenn served as a pilot in what branch of the military?",options:["Army","Air Force","Marines","Navy"],correct:"Marines",id:"26"},{question:"At the equator, how fast is the earth's surface turning?",options:["about 100 miles per hour","about 500 miles per hour","about 1000 miles per hour","about 2000 miles per hour"],correct:"about 1000 miles per hour",id:"27"},{question:"At what age can someone first attend an R-rated movie without an accompanying adult?",options:["15","17","18","21"],correct:"18",id:"28"},{question:"Backgammon is a how many player game?",options:["Two","Three","Four","Six"],correct:"Two",id:"29"},{question:"Before he went into coaching, Phil Jackson played for which of the following NBA teams?",options:["Boston Celtics","Los Angeles Lakers","New York Knicks","Philadelphia 76ers"],correct:"New York Knicks",id:"30"},{question:"By what name is Bob Keeshan better known?",options:["Bozo the Clown","Pee Wee Herman","Captain Kangaroo","Buffalo Bob"],correct:"Captain Kangaroo",id:"31"},{question:"By what collective name do Christians refer to God the Father, God the Son and the Holy Ghost?",options:["the Trio","the Troika","the Triumvirate","the Trinity"],correct:"the Trinity",id:"32"},{question:"By what nickname is the Federal National Mortgage Association known?",options:["Morty","FEMA","Freddie Mac","Fannie Mae"],correct:"Fannie Mae",id:"33"},{question:"Cheddar cheese got its name from a village in what country?",options:["England","France","Switzerland","Denmark"],correct:"England",id:"34"},{question:"Cheese is a necessary ingredient in which of these dishes?",options:["sushi","french fries","veal parmigiano","chicken pot pie"],correct:"veal parmigiano",id:"35"},{question:"During what war did Francis Scott Key write the words to 'The Star-Spangled Banner'?",options:["American Revolution","War of 1812","Civil War","World War I"],correct:"War of 1812",id:"36"},{question:"During which war did US troops fight the Battle of New Orleans?",options:["American Revolution","Civil War","Mexican War","War of 1812"],correct:"War of 1812",id:"37"},{question:"Each year in pro baseball, the player voted as the best fielder at his position wins what?",options:["a brand new car","the Gold Glove","the Silver Bat","the Brass Baseball"],correct:"the Gold Glove",id:"38"},{question:"Elephant tusks are made of what material?",options:["coral","ivory","bone","calcium"],correct:"ivory",id:"39"},{question:"Excluding wisdom teeth, how many adult teeth do humans have?",options:["28","32","35","40"],correct:"28",id:"40"},{question:"For a man and woman on a date, 'dutch treat' means what?",options:["the man pays","the woman pays","the Dutch pay","each pays their own way"],correct:"each pays their own way",id:"41"},{question:"For what purpose would you use an awl?",options:["to shoot ducks","to polish floors","to make holes","to weigh fruit"],correct:"to make holes",id:"42"},{question:"From 1971 to 1997, the Democratic Republic of Congo was known as what?",options:["Zaire","Angola","Rhodesia","Belgian Congo"],correct:"Zaire",id:"43"},{question:"From what language does the term 'R.S.V.P.' originate?",options:["Russian","Italian","Portuguese","French"],correct:"French",id:"44"},{question:"From whom does the Lutheran Church get its name?",options:["Martin Luther King Jr","Martin Luther","Luther Vandross","Lex Luthor"],correct:"Martin Luther",id:"45"},{question:"Gerry Adams is the president of what organization?",options:["Greenpeace","NASCAR","Sinn Fein","PLO"],correct:"Sinn Fein",id:"46"},{question:"Girls of what religious community traditionally wear bonnets?",options:["Amish","Sikh","Roman Catholic","Christian"],correct:"Amish",id:"47"},{question:"How are actors Charlie Sheen and Emilio Estevez related?",options:["they're cousins","they're brothers","they're father and son","they're uncle and nephew"],correct:"they're brothers",id:"48"},{question:"How do you express 3/4 as a decimal?",options:[".25",".50",".75",".90"],correct:".75",id:"49"},{question:"How is 4:00 pm expressed in military time?",options:["1600","004","0400 ","4:00"],correct:"1600",id:"50"},{question:"How is the Arabic numeral for '2' written?",options:["2","II","I","ii"],correct:"2",id:"51"},{question:"How is the word 'ambulance' normally written on the front of American ambulances?",options:["in French","in reverse","in braille","in gibberish"],correct:"in reverse",id:"52"},{question:"How long is a single term in the US Senate?",options:["two years","four years","six years","eight years"],correct:"six years",id:"53"},{question:"How long is the time on an NBA shot clock?",options:["18 seconds","24 seconds","30 seconds","35 seconds"],correct:"24 seconds",id:"54"},{question:"How many $100 bills does it take to equal one million dollars?",options:["one thousand","five thousand","ten thousand","one hundred thousand"],correct:"ten thousand",id:"55"},{question:"How many axles does a standard automobile have?",options:["one","two","four","eight"],correct:"two",id:"56"},{question:"How many digits are in a standard Visa credit card number?",options:["12","15","16","20"],correct:"16",id:"57"},{question:"How many eyes does a Giraffe have?",options:["one","two","three","four"],correct:"two",id:"58"},{question:"How many innings are there in a regular Major League Baseball game?",options:["seven","eight","nine","ten"],correct:"nine",id:"59"},{question:"How many keys are on a standard piano?",options:["20","54","88","100"],correct:"88",id:"60"},{question:"How many men has actress Elizabeth Taylor been divorced from?",options:["five","six","seven","eight"],correct:"seven",id:"61"},{question:"How many ounces are in a pound?",options:["4","12","16","32"],correct:"16",id:"62"},{question:"How many periods are there in an ice hockey game?",options:["One","Two","Three","Four"],correct:"Three",id:"63"},{question:"How many quarts are there in a gallon?",options:["one","two","three","four"],correct:"four",id:"64"},{question:"How many ribs are there in the human body?",options:["18","24","30","42"],correct:"24",id:"65"},{question:"How many ships did Columbus set sail with on his initial voyage to the New World?",options:["Two","Three","Five","Ten"],correct:"Three",id:"66"},{question:"How many spikes are on the Statue of Liberty's crown?",options:["five","seven","nine","thirteen"],correct:"seven",id:"67"},{question:"How many stars are on the American flag?",options:["13","48","50","51"],correct:"50",id:"68"},{question:"How many states were in the Confederate States of America?",options:["11","13","16","22"],correct:"11",id:"69"},{question:"How much does Peanuts character Lucy charge for her psychiatric advice?",options:["5 cents","10 cents","75 cents","$125"],correct:"5 cents",id:"70"},{question:"How long is Hanukkah?",options:["one day","five days","eight days","two weeks"],correct:"eight days",id:"71"},{question:"Huffy, Schwinn and Raleigh are all brands of what?",options:["sportswear","dishwashers","cigarettes","bicycles"],correct:"bicycles",id:"72"},{question:"If a business files under Chapter 11 what is it doing?",options:["declaring bankruptcy","selling stock","buying a smaller","company suing the government"],correct:"declaring bankruptcy",id:"73"},{question:"If a piece of music is in 'common time' how many quarter notes are there per measure?",options:["one","four","five","ten"],correct:"four",id:"74"},{question:"If a ring has the number 925 stamped into it, it is most likely made of what material?",options:["platinum","gold","steel","silver"],correct:"silver",id:"75"},{question:"If Christmas Day is on a Saturday, then the following New Year's Day falls on what day of the week?",options:["Sunday","Monday","Friday","Saturday"],correct:"Saturday",id:"76"},{question:"If someone has cataracts, what part of their body might need an operation?",options:["ear","hand","eye","knee"],correct:"eye",id:"77"},{question:"If you are 'riding fakie' inside a 'half pipe' what are you probably doing?",options:["skiing","biking","snowboarding","surfing"],correct:"snowboarding",id:"78"},{question:"If you are truly afraid of the dark, what do you suffer from?",options:["hypnophobia","cryptophobia","hadephobia","nyctophobia"],correct:"nyctophobia",id:"79"}],l=document.querySelector(".time-left"),y=document.getElementById("container"),A=document.getElementById("next-button"),u=document.querySelector(".number-of-question"),h=document.getElementById("display-container"),w=document.querySelector(".score-container"),k=document.getElementById("restart"),L=document.getElementById("user-score"),f=document.querySelector(".start-screen"),C=document.getElementById("start-button");let r=0,p=0,s=10,c,n=[];function H(e,o){return e.sort(()=>Math.random()-.5).slice(0,o)}function g(){r+=1,clearInterval(c),r===n.length?(h.classList.add("hide"),w.classList.remove("hide"),L.innerHTML="Your score is "+p+" out of "+n.length):(s=10,l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",b(r),q())}k.addEventListener("click",()=>{m(),h.classList.remove("hide"),w.classList.add("hide")});A.addEventListener("click",g);const q=()=>{c=setInterval(()=>{s--,l.innerHTML=`${s}s`,s===0&&(clearInterval(c),g())},1e3)},b=e=>{const o=document.querySelectorAll(".container-mid");e{t.classList.add("hide")}),o[e].classList.remove("hide"))};function S(){for(const e of n){const o=document.createElement("div");o.classList.add("container-mid","hide"),u.innerHTML="1 of "+n.length+" Question";const t=document.createElement("p");t.classList.add("question"),t.innerHTML=e.question,o.appendChild(t);for(let a=0;aI(i,e),o.appendChild(i)}y.appendChild(o)}}function I(e,o){const t=e.textContent,a=o.correct,i=e.parentElement.querySelectorAll(".option-div");if(t===a)e.classList.add("correct"),p++;else{e.classList.add("incorrect");for(const d of i)d.textContent===a&&d.classList.add("correct")}clearInterval(c),i.forEach(d=>{d.disabled=!0})}function m(){y.innerHTML="",r=0,p=0,s=10,c&&clearInterval(c),l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",S(),b(r),q()}C.addEventListener("click",()=>{f.classList.add("hide"),h.classList.remove("hide"),m()});window.onload=()=>{f.classList.remove("hide"),h.classList.add("hide")};n=H(v,10);m(); diff --git a/docs/javascript/assets/index-Adn_e4vl.js b/docs/javascript/assets/index-s_pjxmF7.js similarity index 90% rename from docs/javascript/assets/index-Adn_e4vl.js rename to docs/javascript/assets/index-s_pjxmF7.js index a75841a8b..961584352 100644 --- a/docs/javascript/assets/index-Adn_e4vl.js +++ b/docs/javascript/assets/index-s_pjxmF7.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const o=document.getElementById("progress");let e=!1,i;const a=document.querySelector(".progress-controller"),l=document.getElementById("start"),r=document.getElementById("stop");document.getElementById("reset");r.disabled=!0;a.addEventListener("click",u);function u(t){const s=t.target.id;s==="start"&&!e?g():s==="stop"&&e?n():s==="reset"&&(n(),c(0))}function n(){e=!1,m(),l.disabled=!1,r.disabled=!0}function g(){e=!0,d(),l.disabled=!0,r.disabled=!1}function d(){let t=.1+f();t<=100&&(c(t),i=requestAnimationFrame(d))}function m(){cancelAnimationFrame(i)}function f(){return+o.style.width.split("%")[0]}function c(t){o.style.width=t+"%"} +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const o=document.getElementById("progress");let e=!1,i;const a=document.querySelector(".progress-controller"),l=document.getElementById("start"),r=document.getElementById("stop");document.getElementById("reset");r.disabled=!0;a.addEventListener("click",u);function u(t){const s=t.target.id;s==="start"&&!e?g():s==="stop"&&e?n():s==="reset"&&(n(),c(0))}function n(){e=!1,m(),l.disabled=!1,r.disabled=!0}function g(){e=!0,d(),l.disabled=!0,r.disabled=!1}function d(){let t=.1+f();t<=100&&(c(t),i=requestAnimationFrame(d))}function m(){cancelAnimationFrame(i)}function f(){return+o.style.width.split("%")[0]}function c(t){o.style.width=t+"%"} diff --git a/docs/javascript/assets/index-8ZFg-X97.js b/docs/javascript/assets/index-sw8hoKaj.js similarity index 91% rename from docs/javascript/assets/index-8ZFg-X97.js rename to docs/javascript/assets/index-sw8hoKaj.js index 932461e6c..33cee2e77 100644 --- a/docs/javascript/assets/index-8ZFg-X97.js +++ b/docs/javascript/assets/index-sw8hoKaj.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const f=document.querySelector(".calculator"),p=document.querySelector(".display");let t="",c=null,s=null,l=null,i=!1,a=!1;const d=(r,e)=>e==="."?r!=null&&r.includes(".")?r:r===""?"0.":t+e:t===""||t==="0"?e:t+e,n=r=>{p.textContent=r},o=(r,e=+c,u=+t)=>{switch(r){case"+":return e+u;case"-":return e-u;case"x":return e*u;case"/":return e/u}};f.addEventListener("click",r=>{if(!r.target.classList.contains("btn"))return;const e=r.target.dataset.value;if(!Number.isNaN(+e)||e==="."){i&&(c=t,t="",i=!1,a=!1),t=d(t,e),n(t);return}if(e==="c"){t="",s=null,c=null,l=null,n("0");return}!a&&(e==="="||l)&&c?(a=!0,s=t,t=o(l),n(t)):e==="="&&l&&(t=o(l,+t,+s),n(t)),e!=="="&&(l=e),i=!0});n("0"); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const f=document.querySelector(".calculator"),p=document.querySelector(".display");let t="",c=null,s=null,l=null,i=!1,a=!1;const d=(r,e)=>e==="."?r!=null&&r.includes(".")?r:r===""?"0.":t+e:t===""||t==="0"?e:t+e,n=r=>{p.textContent=r},o=(r,e=+c,u=+t)=>{switch(r){case"+":return e+u;case"-":return e-u;case"x":return e*u;case"/":return e/u}};f.addEventListener("click",r=>{if(!r.target.classList.contains("btn"))return;const e=r.target.dataset.value;if(!Number.isNaN(+e)||e==="."){i&&(c=t,t="",i=!1,a=!1),t=d(t,e),n(t);return}if(e==="c"){t="",s=null,c=null,l=null,n("0");return}!a&&(e==="="||l)&&c?(a=!0,s=t,t=o(l),n(t)):e==="="&&l&&(t=o(l,+t,+s),n(t)),e!=="="&&(l=e),i=!0});n("0"); diff --git a/docs/javascript/assets/index-tQhEyuvt.js b/docs/javascript/assets/index-tQhEyuvt.js deleted file mode 100644 index b8e399c73..000000000 --- a/docs/javascript/assets/index-tQhEyuvt.js +++ /dev/null @@ -1 +0,0 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const s=document.querySelectorAll(".accordion-item"),t=document.getElementById("multiple-open-checkbox");let n=!1;const l=(e,o)=>{e.classList.remove("open"),o.classList.remove("open"),e.style.maxHeight=null},d=(e,o)=>{e.style.maxHeight=e.scrollHeight+"px",e.classList.add("open"),o.classList.add("open")},i=()=>{s.forEach(e=>{const o=e.querySelector(".accordion-panel"),c=e.querySelector(".accordion-arrow");l(o,c)})};t.addEventListener("change",function(){t.checked?n=!0:(n=!1,i())});s.forEach(e=>{const o=e.querySelector(".accordion-header"),c=e.querySelector(".accordion-panel"),r=e.querySelector(".accordion-arrow");o.addEventListener("click",()=>{const a=c.classList.contains("open");n||i(),a?l(c,r):d(c,r)})}); diff --git a/docs/javascript/assets/index-Gpu52Rd9.js b/docs/javascript/assets/index-tR8JdaDe.js similarity index 91% rename from docs/javascript/assets/index-Gpu52Rd9.js rename to docs/javascript/assets/index-tR8JdaDe.js index 78b1aef27..3193412ca 100644 --- a/docs/javascript/assets/index-Gpu52Rd9.js +++ b/docs/javascript/assets/index-tR8JdaDe.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const n=document.querySelectorAll(".piece");let r=null;function c(e){e.currentTarget.classList.add("dragging"),r=e.currentTarget}function i(e){e.preventDefault()}function u(e){e.preventDefault();const t=e.currentTarget,d=r.dataset.order;r.dataset.order=t.dataset.order,t.dataset.order=d;const o=Array.from(n).sort((a,l)=>a.dataset.order-l.dataset.order),s=document.querySelector(".puzzle-container");o.forEach(a=>s.appendChild(a)),r.classList.remove("dragging"),r=null}function g(e){var t;(t=r==null?void 0:r.classList)==null||t.remove("dragging"),r=null}n.forEach(e=>{e.addEventListener("dragstart",c),e.addEventListener("dragover",i),e.addEventListener("drop",u),e.addEventListener("dragend",g)}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const n=document.querySelectorAll(".piece");let r=null;function c(e){e.currentTarget.classList.add("dragging"),r=e.currentTarget}function i(e){e.preventDefault()}function u(e){e.preventDefault();const t=e.currentTarget,d=r.dataset.order;r.dataset.order=t.dataset.order,t.dataset.order=d;const o=Array.from(n).sort((a,l)=>a.dataset.order-l.dataset.order),s=document.querySelector(".puzzle-container");o.forEach(a=>s.appendChild(a)),r.classList.remove("dragging"),r=null}function g(e){var t;(t=r==null?void 0:r.classList)==null||t.remove("dragging"),r=null}n.forEach(e=>{e.addEventListener("dragstart",c),e.addEventListener("dragover",i),e.addEventListener("drop",u),e.addEventListener("dragend",g)}); diff --git a/docs/javascript/assets/index-FoHoOUCE.js b/docs/javascript/assets/index-tV5vvgA4.js similarity index 94% rename from docs/javascript/assets/index-FoHoOUCE.js rename to docs/javascript/assets/index-tV5vvgA4.js index 8ebe5646d..50480f8eb 100644 --- a/docs/javascript/assets/index-FoHoOUCE.js +++ b/docs/javascript/assets/index-tV5vvgA4.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const l=document.getElementById("dark-mode-toggle"),r=document.getElementById("add-button"),d=document.getElementById("workouts"),s=document.getElementById("workout"),c=document.getElementById("duration"),a=document.getElementById("error-message");l.addEventListener("click",m);r.addEventListener("click",u);function m(){const t=document.body,o=document.querySelector(".container"),e=document.querySelector("h1");t.classList.contains("dark-mode")?(t.classList.remove("dark-mode"),o.classList.remove("dark-mode"),e.classList.remove("dark-mode")):(t.classList.add("dark-mode"),o.classList.add("dark-mode"),e.classList.add("dark-mode"))}function u(){const t=s.value,o=c.value;if(t&&o){a.textContent="";const e=document.createElement("li");e.textContent=`${t} - ${o} minutes`;const n=document.createElement("button");n.textContent="Delete",n.className="delete-button",n.addEventListener("click",function(){d.removeChild(e)}),e.appendChild(n),d.appendChild(e),s.value="",c.value=""}else a.textContent="Please fill in both fields."} +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const l=document.getElementById("dark-mode-toggle"),r=document.getElementById("add-button"),d=document.getElementById("workouts"),s=document.getElementById("workout"),c=document.getElementById("duration"),a=document.getElementById("error-message");l.addEventListener("click",m);r.addEventListener("click",u);function m(){const t=document.body,o=document.querySelector(".container"),e=document.querySelector("h1");t.classList.contains("dark-mode")?(t.classList.remove("dark-mode"),o.classList.remove("dark-mode"),e.classList.remove("dark-mode")):(t.classList.add("dark-mode"),o.classList.add("dark-mode"),e.classList.add("dark-mode"))}function u(){const t=s.value,o=c.value;if(t&&o){a.textContent="";const e=document.createElement("li");e.textContent=`${t} - ${o} minutes`;const n=document.createElement("button");n.textContent="Delete",n.className="delete-button",n.addEventListener("click",function(){d.removeChild(e)}),e.appendChild(n),d.appendChild(e),s.value="",c.value=""}else a.textContent="Please fill in both fields."} diff --git a/docs/javascript/assets/index-uEcy61FZ.css b/docs/javascript/assets/index-uEcy61FZ.css deleted file mode 100644 index 7fa2e6a8c..000000000 --- a/docs/javascript/assets/index-uEcy61FZ.css +++ /dev/null @@ -1 +0,0 @@ -.navbar{display:flex;justify-content:space-between;align-items:center;background-color:#1d3557;color:#fff;position:relative}.nav-title{font-size:2rem;margin:1rem}.nav-links ul{display:flex;margin:0;padding:0}.nav-links li{list-style:none}.nav-links li a{display:block;padding:2rem;text-decoration:none;color:#d3d3d3}.nav-links li:hover{background-color:#457b9d;transition:.2s}.burger-menu{position:absolute;display:none;top:1.5rem;right:1rem;flex-direction:column;justify-content:space-between;width:30px;height:20px}.burger-menu .bar{height:3px;width:100%;color:#d3d3d3;background-color:#fff;border-radius:10px}@media screen and (max-width: 800px){.burger-menu{display:flex}.nav-links{display:none;width:100%}.nav-links ul{flex-direction:column;width:100%}.nav-links li{text-align:center}.navbar{flex-direction:column;align-items:flex-start}.nav-links.active{display:flex}} diff --git a/docs/javascript/assets/index-Y0-iyYgG.js b/docs/javascript/assets/index-vtmC6wdU.js similarity index 94% rename from docs/javascript/assets/index-Y0-iyYgG.js rename to docs/javascript/assets/index-vtmC6wdU.js index 246d82f16..a7b7bd3b5 100644 --- a/docs/javascript/assets/index-Y0-iyYgG.js +++ b/docs/javascript/assets/index-vtmC6wdU.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";document.querySelector(".clock");const c=document.querySelector(".ticks"),l=document.querySelector(".hours-hand"),d=document.querySelector(".minutes-hand"),i=document.querySelector(".seconds-hand"),r=document.querySelector(".digits"),s=[12,1,2,3,4,5,6,7,8,9,10,11],n=60;for(let t=0;t({seconds:s.length/2*t.getSeconds(),minutes:s.length/2*t.getMinutes()+t.getSeconds()/10,hours:t.getMinutes()/2+t.getHours()%s.length*30}),o=()=>{const t=a(new Date);l.style.transform=`rotate(${t.hours}deg)`,d.style.transform=`rotate(${t.minutes}deg)`,i.style.transform=`rotate(${t.seconds}deg)`};setInterval(o,1e3);o(); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";document.querySelector(".clock");const c=document.querySelector(".ticks"),l=document.querySelector(".hours-hand"),d=document.querySelector(".minutes-hand"),i=document.querySelector(".seconds-hand"),r=document.querySelector(".digits"),s=[12,1,2,3,4,5,6,7,8,9,10,11],n=60;for(let t=0;t({seconds:s.length/2*t.getSeconds(),minutes:s.length/2*t.getMinutes()+t.getSeconds()/10,hours:t.getMinutes()/2+t.getHours()%s.length*30}),o=()=>{const t=a(new Date);l.style.transform=`rotate(${t.hours}deg)`,d.style.transform=`rotate(${t.minutes}deg)`,i.style.transform=`rotate(${t.seconds}deg)`};setInterval(o,1e3);o(); diff --git a/docs/javascript/assets/index-bW3TYGl0.js b/docs/javascript/assets/index-wLFJ4mRs.js similarity index 93% rename from docs/javascript/assets/index-bW3TYGl0.js rename to docs/javascript/assets/index-wLFJ4mRs.js index 4a82bd01a..51061762c 100644 --- a/docs/javascript/assets/index-bW3TYGl0.js +++ b/docs/javascript/assets/index-wLFJ4mRs.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const o=document.getElementById("password"),r=document.getElementById("progressBar"),i=document.getElementById("strength"),f=document.getElementById("lc"),h=document.getElementById("uc"),E=document.getElementById("num"),p=document.getElementById("sym"),B=document.getElementById("chars"),c=[{difficulty:"Weak",color:"red"},{difficulty:"Medium",color:"orange"},{difficulty:"Strong",color:"green"}],l=/\d/,u=/[A-Z]/,a=/[a-z]/,m=/[^A-Za-z0-9]/;function I(t){return t>8?c[2]:t>5?c[1]:c[0]}function w(t){let e=0;return t.length>3&&(e=Math.min(6,Math.floor(t.length/3)),e+=l.test(t)+u.test(t)+a.test(t)+m.test(t)),e}function C(t,e,s,n){i.textContent=t.difficulty,r.style.backgroundColor=t.color,r.style.width=e*10+"%",f.className=n.lc,h.className=n.uc,E.className=n.num,p.className=n.sym,B.textContent=s}o.addEventListener("input",function(){const t=o.value,e=w(o.value),s=I(e),[n,d,g,y]=[a.test(t),u.test(t),l.test(t),m.test(t)];C(s,e,t.length,{lc:n,uc:d,num:g,sym:y})}); +import"./header-V_WlNcet.js";import"./navbar-MlIeMpk0.js";const o=document.getElementById("password"),r=document.getElementById("progressBar"),i=document.getElementById("strength"),f=document.getElementById("lc"),h=document.getElementById("uc"),E=document.getElementById("num"),p=document.getElementById("sym"),B=document.getElementById("chars"),c=[{difficulty:"Weak",color:"red"},{difficulty:"Medium",color:"orange"},{difficulty:"Strong",color:"green"}],l=/\d/,u=/[A-Z]/,a=/[a-z]/,m=/[^A-Za-z0-9]/;function I(t){return t>8?c[2]:t>5?c[1]:c[0]}function w(t){let e=0;return t.length>3&&(e=Math.min(6,Math.floor(t.length/3)),e+=l.test(t)+u.test(t)+a.test(t)+m.test(t)),e}function C(t,e,s,n){i.textContent=t.difficulty,r.style.backgroundColor=t.color,r.style.width=e*10+"%",f.className=n.lc,h.className=n.uc,E.className=n.num,p.className=n.sym,B.textContent=s}o.addEventListener("input",function(){const t=o.value,e=w(o.value),s=I(e),[n,d,g,y]=[a.test(t),u.test(t),l.test(t),m.test(t)];C(s,e,t.length,{lc:n,uc:d,num:g,sym:y})}); diff --git a/docs/javascript/assets/index-4Zln4SWt.js b/docs/javascript/assets/index-xpnn-RPY.js similarity index 93% rename from docs/javascript/assets/index-4Zln4SWt.js rename to docs/javascript/assets/index-xpnn-RPY.js index 830ce6747..2b6626312 100644 --- a/docs/javascript/assets/index-4Zln4SWt.js +++ b/docs/javascript/assets/index-xpnn-RPY.js @@ -1 +1 @@ -import"./header-BV02bT_J.js";import"./navbar-Dp-2B13D.js";const i=8,n=document.querySelector(".board");function u(a,o,s=o){var r=document.createDocumentFragment();for(let d=0;d=0;e--,t++)c(n.querySelector(`[data-x='${e}'][data-y='${d-t}']`)),c(n.querySelector(`[data-x='${e}'][data-y='${d+t}']`));for(let e=s+1,t=1,d=r;e=0;e--,t++)c(n.querySelector(`[data-x='${e}'][data-y='${d-t}']`)),c(n.querySelector(`[data-x='${e}'][data-y='${d+t}']`));for(let e=s+1,t=1,d=r;e{t.target.classList.contains("box")&&(a=t.target.dataset.x,s=t.target.dataset.y,g(a,s))});i.addEventListener("mousemove",t=>{if(a&&s&&t.target.classList.contains("box")){const e=t.target.dataset.x,o=t.target.dataset.y;h(),g(e,o)}});i.addEventListener("mouseup",f);i.addEventListener("mouseleave",f);function f(){a=null,s=null,h()}function g(t,e){if(a&&t&&s&&e){const o=Math.min(a,t),n=Math.max(a,t),p=Math.min(s,e),w=Math.max(s,e);for(let d=o;d<=n;d++)for(let c=p;c<=w;c++)r[d][c].style.backgroundColor="skyblue"}}function h(){for(let t=0;t{t.target.classList.contains("box")&&(a=t.target.dataset.x,s=t.target.dataset.y,g(a,s))});i.addEventListener("mousemove",t=>{if(a&&s&&t.target.classList.contains("box")){const e=t.target.dataset.x,o=t.target.dataset.y;h(),g(e,o)}});i.addEventListener("mouseup",f);i.addEventListener("mouseleave",f);function f(){a=null,s=null,h()}function g(t,e){if(a&&t&&s&&e){const o=Math.min(a,t),n=Math.max(a,t),p=Math.min(s,e),w=Math.max(s,e);for(let d=o;d<=n;d++)for(let c=p;c<=w;c++)r[d][c].style.backgroundColor="skyblue"}}function h(){for(let t=0;t(t.Easy="easy",t.Medium="medium",t.Hard="hard",t))(e||{});const o=[e.Easy,e.Medium,e.Hard];function a(t){return new Map([...t.entries()].sort((s,u)=>{const p=o.indexOf(s[1].difficulty),c=o.indexOf(u[1].difficulty);return p-c}))}const f=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}]]);a(f);const g=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["dialog-popup",{title:"Dialog Popup",link:"dialog-popup/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["spinning-loader",{title:"Spinning Loader",link:"spinning-loader/",difficulty:e.Easy,developer:"DhanushNehru",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["Footer",{title:"Footer",link:"Footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["MadStory_generator",{title:"MadStory Generator",link:"MadStory_generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}]]),y=a(g),m=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:e.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]);a(m);const k=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[]}]]);a(k);const h=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);a(h);const v="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png";var b={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/javascript/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:l,VITE_HOST_URL:n,DEV:d}=b,M=d?`${n}${l}/#/javascript/`:`/${l}/#/javascript/`,w=d?`${n}${l}/`:`/${l}/`,E=window.location.pathname.split("/challenges/")[1].slice(0,-1),i=y.get(E),r=document.createElement("nav");r.classList.add("challenge-navbar");r.innerHTML=` - - -

${i.title}

- -
- ${i!=null&&i.youtube?` - - youtube solution - - `:""} - - github repo - -
-`;document.body.prepend(r);export{y as j}; diff --git a/docs/javascript/assets/navbar-MlIeMpk0.js b/docs/javascript/assets/navbar-MlIeMpk0.js new file mode 100644 index 000000000..f303bcfdf --- /dev/null +++ b/docs/javascript/assets/navbar-MlIeMpk0.js @@ -0,0 +1,27 @@ +var e=(t=>(t.Easy="easy",t.Medium="medium",t.Hard="hard",t))(e||{});const o=[e.Easy,e.Medium,e.Hard];function a(t){return new Map([...t.entries()].sort((d,u)=>{const c=o.indexOf(d[1].difficulty),p=o.indexOf(u[1].difficulty);return c-p}))}const f=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:e.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);a(f);const g=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}]]),y=a(g),m=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:e.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]);a(m);const k=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[]}]]);a(k);const h=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);a(h);const v="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png";var b={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/javascript/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:l,VITE_HOST_URL:n,DEV:s}=b,M=s?`${n}${l}/#/javascript/`:`/${l}/#/javascript/`,w=s?`${n}${l}/`:`/${l}/`,E=window.location.pathname.split("/challenges/")[1].slice(0,-1),i=y.get(E),r=document.createElement("nav");r.classList.add("challenge-navbar");r.innerHTML=` + + +

${i.title}

+ +
+ ${i!=null&&i.youtube?` + + youtube solution + + `:""} + + github repo + +
+`;document.body.prepend(r);export{y as j}; diff --git a/docs/javascript/src/challenges/25-5-clock/index.html b/docs/javascript/src/challenges/25-5-clock/index.html index 424504e52..e38c4ec99 100644 --- a/docs/javascript/src/challenges/25-5-clock/index.html +++ b/docs/javascript/src/challenges/25-5-clock/index.html @@ -10,9 +10,9 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" rel="stylesheet" /> - - - + + + diff --git a/docs/javascript/src/challenges/Footer/index.html b/docs/javascript/src/challenges/Footer/index.html deleted file mode 100644 index 857fd6769..000000000 --- a/docs/javascript/src/challenges/Footer/index.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - -
- -
- - diff --git a/docs/javascript/src/challenges/accordion/index.html b/docs/javascript/src/challenges/accordion/index.html deleted file mode 100644 index 37fb0ccec..000000000 --- a/docs/javascript/src/challenges/accordion/index.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - -
- -
-
-

- - -

-
-
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. Ipsum faucibus vitae aliquet nec - ullamcorper. -

-
-
-
-
-

- - -

-
-
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. Eu consequat ac felis donec et. - Dignissim convallis aenean et tortor at. Feugiat pretium nibh ipsum consequat nisl - vel pretium lectus quam. -

-
-
-
-
-

- - -

-
-
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. Nec tincidunt praesent semper feugiat - nibh. Condimentum vitae sapien pellentesque habitant. Suscipit adipiscing bibendum - est ultricies integer quis auctor elit. Lacus sed turpis tincidunt id aliquet risus. - Tellus id interdum velit laoreet id donec ultrices. -

-
-
-
-
-
- - diff --git a/docs/javascript/src/challenges/analog-clock/index.html b/docs/javascript/src/challenges/analog-clock/index.html index be7850d09..f4ab52469 100644 --- a/docs/javascript/src/challenges/analog-clock/index.html +++ b/docs/javascript/src/challenges/analog-clock/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/area-selector/index.html b/docs/javascript/src/challenges/area-selector/index.html index b61e3d39d..bd7046c9c 100644 --- a/docs/javascript/src/challenges/area-selector/index.html +++ b/docs/javascript/src/challenges/area-selector/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/array-methods/index.html b/docs/javascript/src/challenges/array-methods/index.html index 1f2ca4aef..d03eea110 100644 --- a/docs/javascript/src/challenges/array-methods/index.html +++ b/docs/javascript/src/challenges/array-methods/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/atm-simulator/index.html b/docs/javascript/src/challenges/atm-simulator/index.html index defc8a13d..eb1d98f5a 100644 --- a/docs/javascript/src/challenges/atm-simulator/index.html +++ b/docs/javascript/src/challenges/atm-simulator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/basic-calculator/index.html b/docs/javascript/src/challenges/basic-calculator/index.html index 261fbbc57..60c9bc778 100644 --- a/docs/javascript/src/challenges/basic-calculator/index.html +++ b/docs/javascript/src/challenges/basic-calculator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/bill-spilt/index.html b/docs/javascript/src/challenges/bill-spilt/index.html index cef744f7a..206a55f34 100644 --- a/docs/javascript/src/challenges/bill-spilt/index.html +++ b/docs/javascript/src/challenges/bill-spilt/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/blobmaker/index.html b/docs/javascript/src/challenges/blobmaker/index.html deleted file mode 100644 index 8ac309b73..000000000 --- a/docs/javascript/src/challenges/blobmaker/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - Blob Maker - - - - - - - - -
-
-
-
-
-
- - -
-
- - -
-
-
- - - - -
- - -
- - diff --git a/docs/javascript/src/challenges/bmi-calculator/index.html b/docs/javascript/src/challenges/bmi-calculator/index.html index b74f38606..5b9a8a145 100644 --- a/docs/javascript/src/challenges/bmi-calculator/index.html +++ b/docs/javascript/src/challenges/bmi-calculator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/calendar/index.html b/docs/javascript/src/challenges/calendar/index.html index c97fd981b..249d13bc9 100644 --- a/docs/javascript/src/challenges/calendar/index.html +++ b/docs/javascript/src/challenges/calendar/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/carousel/index.html b/docs/javascript/src/challenges/carousel/index.html index 9f4b4f725..527754290 100644 --- a/docs/javascript/src/challenges/carousel/index.html +++ b/docs/javascript/src/challenges/carousel/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chess-board/index.html b/docs/javascript/src/challenges/chess-board/index.html index 0c53fdac2..236cb04d8 100644 --- a/docs/javascript/src/challenges/chess-board/index.html +++ b/docs/javascript/src/challenges/chess-board/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chips-input/index.html b/docs/javascript/src/challenges/chips-input/index.html index 61de7de70..1bee6b1b9 100644 --- a/docs/javascript/src/challenges/chips-input/index.html +++ b/docs/javascript/src/challenges/chips-input/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/color-spotter/index.html b/docs/javascript/src/challenges/color-spotter/index.html index c39522e90..0d87545bc 100644 --- a/docs/javascript/src/challenges/color-spotter/index.html +++ b/docs/javascript/src/challenges/color-spotter/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/column-table/index.html b/docs/javascript/src/challenges/column-table/index.html index 667402aff..40771982b 100644 --- a/docs/javascript/src/challenges/column-table/index.html +++ b/docs/javascript/src/challenges/column-table/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/comment-box/index.html b/docs/javascript/src/challenges/comment-box/index.html index f184ff9f1..a4130ada3 100644 --- a/docs/javascript/src/challenges/comment-box/index.html +++ b/docs/javascript/src/challenges/comment-box/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/connect-four/index.html b/docs/javascript/src/challenges/connect-four/index.html index 0d6ba4aad..093598c55 100644 --- a/docs/javascript/src/challenges/connect-four/index.html +++ b/docs/javascript/src/challenges/connect-four/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/count-down-timer/index.html b/docs/javascript/src/challenges/count-down-timer/index.html index a67154ca3..b2d62377d 100644 --- a/docs/javascript/src/challenges/count-down-timer/index.html +++ b/docs/javascript/src/challenges/count-down-timer/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/counter/index.html b/docs/javascript/src/challenges/counter/index.html index 332c92903..fcc5bd70e 100644 --- a/docs/javascript/src/challenges/counter/index.html +++ b/docs/javascript/src/challenges/counter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/currency-converter/index.html b/docs/javascript/src/challenges/currency-converter/index.html index 374256112..2565c4d0e 100644 --- a/docs/javascript/src/challenges/currency-converter/index.html +++ b/docs/javascript/src/challenges/currency-converter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/dialog-popup/index.html b/docs/javascript/src/challenges/dialog-popup/index.html deleted file mode 100644 index 5a6615db2..000000000 --- a/docs/javascript/src/challenges/dialog-popup/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - -
- - -

Header

- -
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Minus reprehenderit tempora - exercitationem, hic vel iure deserunt? Tempore corporis eveniet architecto qui aliquid - quam quis, voluptate -
- -
-
-

- -

-
- - diff --git a/docs/javascript/src/challenges/dice-game/index.html b/docs/javascript/src/challenges/dice-game/index.html index 663f84925..4698ea528 100644 --- a/docs/javascript/src/challenges/dice-game/index.html +++ b/docs/javascript/src/challenges/dice-game/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html b/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html index e9429a416..15800a5dd 100644 --- a/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html +++ b/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/file-uploader/index.html b/docs/javascript/src/challenges/file-uploader/index.html index 735d8ebc3..b4309ca53 100644 --- a/docs/javascript/src/challenges/file-uploader/index.html +++ b/docs/javascript/src/challenges/file-uploader/index.html @@ -6,9 +6,9 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" /> - - - + + + diff --git a/docs/javascript/src/challenges/finance-tracker/index.html b/docs/javascript/src/challenges/finance-tracker/index.html index 811121e2e..769372fad 100644 --- a/docs/javascript/src/challenges/finance-tracker/index.html +++ b/docs/javascript/src/challenges/finance-tracker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/fitness-tracker/index.html b/docs/javascript/src/challenges/fitness-tracker/index.html index 1167b8eb0..b9b6f367b 100644 --- a/docs/javascript/src/challenges/fitness-tracker/index.html +++ b/docs/javascript/src/challenges/fitness-tracker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/gradient-generator/index.html b/docs/javascript/src/challenges/gradient-generator/index.html deleted file mode 100644 index 29074ade5..000000000 --- a/docs/javascript/src/challenges/gradient-generator/index.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - -
-
-
-
- -
- -
- -
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-
-
- full screen - close -
-
- - diff --git a/docs/javascript/src/challenges/guess-the-number/index.html b/docs/javascript/src/challenges/guess-the-number/index.html index 100d50eb3..279cb92a0 100644 --- a/docs/javascript/src/challenges/guess-the-number/index.html +++ b/docs/javascript/src/challenges/guess-the-number/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/hangman-game/index.html b/docs/javascript/src/challenges/hangman-game/index.html index c601f6477..01cfa9d44 100644 --- a/docs/javascript/src/challenges/hangman-game/index.html +++ b/docs/javascript/src/challenges/hangman-game/index.html @@ -4,9 +4,9 @@ Hangman Game - - - + + + diff --git a/docs/javascript/src/challenges/infinite-scroll/index.html b/docs/javascript/src/challenges/infinite-scroll/index.html index db00088a3..a58b989f1 100644 --- a/docs/javascript/src/challenges/infinite-scroll/index.html +++ b/docs/javascript/src/challenges/infinite-scroll/index.html @@ -3,9 +3,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/json-creator/index.html b/docs/javascript/src/challenges/json-creator/index.html index fb156dd6f..62aeeaf71 100644 --- a/docs/javascript/src/challenges/json-creator/index.html +++ b/docs/javascript/src/challenges/json-creator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/lift-simulation/index.html b/docs/javascript/src/challenges/lift-simulation/index.html index 8f3153525..1c880ee96 100644 --- a/docs/javascript/src/challenges/lift-simulation/index.html +++ b/docs/javascript/src/challenges/lift-simulation/index.html @@ -5,9 +5,9 @@ Lift Simulation - - - + + + diff --git a/docs/javascript/src/challenges/light-dark-mode/index.html b/docs/javascript/src/challenges/light-dark-mode/index.html deleted file mode 100644 index 834b46797..000000000 --- a/docs/javascript/src/challenges/light-dark-mode/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - -
- Dark mode: - -

The entire page color theme is controlled using CSS and JavaScript

- - Contained dark mode: - - -
-

The container color scheme is controlled by only CSS

-
-
- - diff --git a/docs/javascript/src/challenges/match-pair/index.html b/docs/javascript/src/challenges/match-pair/index.html index bbccb1d54..9d821a5c8 100644 --- a/docs/javascript/src/challenges/match-pair/index.html +++ b/docs/javascript/src/challenges/match-pair/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/meme-generator/index.html b/docs/javascript/src/challenges/meme-generator/index.html index 0762d3348..84d50fe47 100644 --- a/docs/javascript/src/challenges/meme-generator/index.html +++ b/docs/javascript/src/challenges/meme-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/movie-info/index.html b/docs/javascript/src/challenges/movie-info/index.html index c1168e82e..89b822d4a 100644 --- a/docs/javascript/src/challenges/movie-info/index.html +++ b/docs/javascript/src/challenges/movie-info/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/multi-typing/index.html b/docs/javascript/src/challenges/multi-typing/index.html index e7cde1a53..06b415073 100644 --- a/docs/javascript/src/challenges/multi-typing/index.html +++ b/docs/javascript/src/challenges/multi-typing/index.html @@ -6,9 +6,9 @@ Typing Text Animation - - - + + + diff --git a/docs/javascript/src/challenges/music-kit/index.html b/docs/javascript/src/challenges/music-kit/index.html index 6e79dfb44..790bdd7af 100644 --- a/docs/javascript/src/challenges/music-kit/index.html +++ b/docs/javascript/src/challenges/music-kit/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/navigation-bar/index.html b/docs/javascript/src/challenges/navigation-bar/index.html deleted file mode 100644 index 560543592..000000000 --- a/docs/javascript/src/challenges/navigation-bar/index.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/javascript/src/challenges/otp-input/index.html b/docs/javascript/src/challenges/otp-input/index.html index d0958cf19..c2da32af6 100644 --- a/docs/javascript/src/challenges/otp-input/index.html +++ b/docs/javascript/src/challenges/otp-input/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/paginator/index.html b/docs/javascript/src/challenges/paginator/index.html index caaffd38c..5915e6de3 100644 --- a/docs/javascript/src/challenges/paginator/index.html +++ b/docs/javascript/src/challenges/paginator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/password-generator/index.html b/docs/javascript/src/challenges/password-generator/index.html index 515f83613..4c05e64cf 100644 --- a/docs/javascript/src/challenges/password-generator/index.html +++ b/docs/javascript/src/challenges/password-generator/index.html @@ -6,9 +6,9 @@ password-generator - - - + + + diff --git a/docs/javascript/src/challenges/password-strength/index.html b/docs/javascript/src/challenges/password-strength/index.html index a18ebccda..40ff33d21 100644 --- a/docs/javascript/src/challenges/password-strength/index.html +++ b/docs/javascript/src/challenges/password-strength/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/pixel-art/index.html b/docs/javascript/src/challenges/pixel-art/index.html index c0255da0d..d05050906 100644 --- a/docs/javascript/src/challenges/pixel-art/index.html +++ b/docs/javascript/src/challenges/pixel-art/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/progress-bar/index.html b/docs/javascript/src/challenges/progress-bar/index.html index 7173516a5..df6c4db5a 100644 --- a/docs/javascript/src/challenges/progress-bar/index.html +++ b/docs/javascript/src/challenges/progress-bar/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/quiz-app-with-timer/index.html b/docs/javascript/src/challenges/quiz-app-with-timer/index.html index bd5a45758..9ce9c4948 100644 --- a/docs/javascript/src/challenges/quiz-app-with-timer/index.html +++ b/docs/javascript/src/challenges/quiz-app-with-timer/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/quiz-app/index.html b/docs/javascript/src/challenges/quiz-app/index.html index 04ce57943..30791fd99 100644 --- a/docs/javascript/src/challenges/quiz-app/index.html +++ b/docs/javascript/src/challenges/quiz-app/index.html @@ -8,9 +8,9 @@ quiz's time - - - + + + diff --git a/docs/javascript/src/challenges/rock-paper-scissor/index.html b/docs/javascript/src/challenges/rock-paper-scissor/index.html index 5022a0d00..cd5e3691f 100644 --- a/docs/javascript/src/challenges/rock-paper-scissor/index.html +++ b/docs/javascript/src/challenges/rock-paper-scissor/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/roll-dice/index.html b/docs/javascript/src/challenges/roll-dice/index.html index 922c89209..7bea8de2c 100644 --- a/docs/javascript/src/challenges/roll-dice/index.html +++ b/docs/javascript/src/challenges/roll-dice/index.html @@ -5,9 +5,9 @@ Roll dice - - - + + + diff --git a/docs/javascript/src/challenges/simon-game/index.html b/docs/javascript/src/challenges/simon-game/index.html index eba15fe51..aa67c4085 100644 --- a/docs/javascript/src/challenges/simon-game/index.html +++ b/docs/javascript/src/challenges/simon-game/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/skeleton-loader/index.html b/docs/javascript/src/challenges/skeleton-loader/index.html deleted file mode 100644 index a28f69137..000000000 --- a/docs/javascript/src/challenges/skeleton-loader/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - -
-
-
-

-

-

-
-
- - diff --git a/docs/javascript/src/challenges/snake-game/index.html b/docs/javascript/src/challenges/snake-game/index.html index 5ec0dc6e4..29d1e36e7 100644 --- a/docs/javascript/src/challenges/snake-game/index.html +++ b/docs/javascript/src/challenges/snake-game/index.html @@ -4,9 +4,9 @@ snake game-js - - - + + + diff --git a/docs/javascript/src/challenges/sorting-visualizer/index.html b/docs/javascript/src/challenges/sorting-visualizer/index.html index c59037d0c..03f5bb6d3 100644 --- a/docs/javascript/src/challenges/sorting-visualizer/index.html +++ b/docs/javascript/src/challenges/sorting-visualizer/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/spinning-loader/index.html b/docs/javascript/src/challenges/spinning-loader/index.html deleted file mode 100644 index 07690a40f..000000000 --- a/docs/javascript/src/challenges/spinning-loader/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - Spinning Loader - - - - - - - -
-
-
- - diff --git a/docs/javascript/src/challenges/star-rating-display/index.html b/docs/javascript/src/challenges/star-rating-display/index.html deleted file mode 100644 index eeef9649f..000000000 --- a/docs/javascript/src/challenges/star-rating-display/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - -
-
- -
- -
-
- - diff --git a/docs/javascript/src/challenges/star-rating/index.html b/docs/javascript/src/challenges/star-rating/index.html index fce6438b1..e40e65409 100644 --- a/docs/javascript/src/challenges/star-rating/index.html +++ b/docs/javascript/src/challenges/star-rating/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/MadStory_generator/index.html b/docs/javascript/src/challenges/story-generator/index.html similarity index 88% rename from docs/javascript/src/challenges/MadStory_generator/index.html rename to docs/javascript/src/challenges/story-generator/index.html index d9cd325ab..31f45b66a 100644 --- a/docs/javascript/src/challenges/MadStory_generator/index.html +++ b/docs/javascript/src/challenges/story-generator/index.html @@ -1,9 +1,9 @@ - + - - - + + + diff --git a/docs/javascript/src/challenges/string-transformers/index.html b/docs/javascript/src/challenges/string-transformers/index.html index 6fa38785e..3dff9d5f9 100644 --- a/docs/javascript/src/challenges/string-transformers/index.html +++ b/docs/javascript/src/challenges/string-transformers/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/telephone-formatter/index.html b/docs/javascript/src/challenges/telephone-formatter/index.html index 3804c0d55..23b308009 100644 --- a/docs/javascript/src/challenges/telephone-formatter/index.html +++ b/docs/javascript/src/challenges/telephone-formatter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/tic-tac-toe/index.html b/docs/javascript/src/challenges/tic-tac-toe/index.html index 4122c3716..58fed25c2 100644 --- a/docs/javascript/src/challenges/tic-tac-toe/index.html +++ b/docs/javascript/src/challenges/tic-tac-toe/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/toast-popup/index.html b/docs/javascript/src/challenges/toast-popup/index.html index fd071b211..fe3e222bd 100644 --- a/docs/javascript/src/challenges/toast-popup/index.html +++ b/docs/javascript/src/challenges/toast-popup/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/todo-list/index.html b/docs/javascript/src/challenges/todo-list/index.html index 5370984a1..16a5dc51c 100644 --- a/docs/javascript/src/challenges/todo-list/index.html +++ b/docs/javascript/src/challenges/todo-list/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/transfer-list/index.html b/docs/javascript/src/challenges/transfer-list/index.html index d31dc4dd3..019c986de 100644 --- a/docs/javascript/src/challenges/transfer-list/index.html +++ b/docs/javascript/src/challenges/transfer-list/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/type-ahead-online/index.html b/docs/javascript/src/challenges/type-ahead-online/index.html index 519780b4a..aa8d065cb 100644 --- a/docs/javascript/src/challenges/type-ahead-online/index.html +++ b/docs/javascript/src/challenges/type-ahead-online/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/type-ahead/index.html b/docs/javascript/src/challenges/type-ahead/index.html index 2d1aae965..c7afda6a4 100644 --- a/docs/javascript/src/challenges/type-ahead/index.html +++ b/docs/javascript/src/challenges/type-ahead/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/typing-speed-test/index.html b/docs/javascript/src/challenges/typing-speed-test/index.html index 4b891d320..33b59ad33 100644 --- a/docs/javascript/src/challenges/typing-speed-test/index.html +++ b/docs/javascript/src/challenges/typing-speed-test/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/weather-app/index.html b/docs/javascript/src/challenges/weather-app/index.html index 8e91bb1a3..49a0d2dd5 100644 --- a/docs/javascript/src/challenges/weather-app/index.html +++ b/docs/javascript/src/challenges/weather-app/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/word-counter/index.html b/docs/javascript/src/challenges/word-counter/index.html index 78ac2ce4c..c53b594cb 100644 --- a/docs/javascript/src/challenges/word-counter/index.html +++ b/docs/javascript/src/challenges/word-counter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/react/assets/index-CtqPmT0s.js b/docs/react/assets/index-CCwkGLnD.js similarity index 88% rename from docs/react/assets/index-CtqPmT0s.js rename to docs/react/assets/index-CCwkGLnD.js index 064665131..0e821e47e 100644 --- a/docs/react/assets/index-CtqPmT0s.js +++ b/docs/react/assets/index-CCwkGLnD.js @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function nC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[s,l]=h.useState(),[a,u]=h.useState({isTransitioning:!1}),[d,f]=h.useState(),[p,g]=h.useState(),[m,x]=h.useState(),w=h.useRef(new Map),{v7_startTransition:v}=r||{},y=h.useCallback(k=>{v?eC(k):k()},[v]),_=h.useCallback((k,j)=>{let{deletedFetchers:P,unstable_flushSync:N,unstable_viewTransitionOpts:M}=j;P.forEach(U=>w.current.delete(U)),k.fetchers.forEach((U,z)=>{U.data!==void 0&&w.current.set(z,U.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){N?as(()=>i(k)):y(()=>i(k));return}if(N){as(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let U=n.window.document.startViewTransition(()=>{as(()=>i(k))});U.finished.finally(()=>{as(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),as(()=>g(U));return}p?(d&&d.resolve(),p.skipTransition(),x({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,p,d,w,y]);h.useLayoutEffect(()=>n.subscribe(_),[n,_]),h.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new tC)},[a]),h.useEffect(()=>{if(d&&s&&n.window){let k=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{y(()=>i(k)),await j});P.finished.finally(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(P)}},[y,s,d,n.window]),h.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),h.useEffect(()=>{!a.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),x(void 0))},[a.isTransitioning,m]),h.useEffect(()=>{},[]);let C=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,j,P)=>n.navigate(k,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,j,P)=>n.navigate(k,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),E=n.basename||"/",b=h.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return h.createElement(h.Fragment,null,h.createElement(p1.Provider,{value:b},h.createElement(h1.Provider,{value:o},h.createElement(XE.Provider,{value:w.current},h.createElement(QE.Provider,{value:a},h.createElement(VE,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(rC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function rC(e){let{routes:t,future:n,state:r}=e;return AE(t,void 0,r,n)}var zm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zm||(zm={}));var Bm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bm||(Bm={}));var R=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(R||{});const Um=[R.Easy,R.Medium,R.Hard];function xa(e){return new Map([...e.entries()].sort((t,n)=>{const r=Um.indexOf(t[1].difficulty),o=Um.indexOf(n[1].difficulty);return r-o}))}const oC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:R.Easy,developer:"sadanandpai",tags:[]}]]);xa(oC);const iC=new Map([["counter",{title:"Counter",link:"counter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:R.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:R.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:R.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:R.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["dialog-popup",{title:"Dialog Popup",link:"dialog-popup/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["spinning-loader",{title:"Spinning Loader",link:"spinning-loader/",difficulty:R.Easy,developer:"DhanushNehru",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:R.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:R.Easy,developer:"pranav514",tags:[],isNew:!0}],["accordion",{title:"Accordion",link:"accordion/",difficulty:R.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:R.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["Footer",{title:"Footer",link:"Footer/",difficulty:R.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:R.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["MadStory_generator",{title:"MadStory Generator",link:"MadStory_generator/",difficulty:R.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:R.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:R.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:R.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:R.Easy,developer:"AbhineshJha",tags:[]}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:R.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:R.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:R.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:R.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:R.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:R.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:R.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:R.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:R.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:R.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:R.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:R.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:R.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}]]);xa(iC);const sC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:R.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:R.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:R.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:R.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:R.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:R.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:R.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:R.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:R.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:R.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:R.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:R.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:R.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:R.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:R.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:R.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:R.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:R.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:R.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:R.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:R.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:R.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:R.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:R.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:R.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:R.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:R.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:R.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:R.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:R.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:R.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:R.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:R.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:R.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:R.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:R.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:R.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:R.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:R.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:R.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]),aC=xa(sC),lC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:R.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:R.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:R.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:R.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:R.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:R.Medium,developer:"Shardik04",tags:[]}]]);xa(lC);const cC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);xa(cC);const uC=[{direction:"Up",delta:[-1,0]},{direction:"Down",delta:[1,0]},{direction:"Left",delta:[0,-1]},{direction:"Right",delta:[0,1]}],dC="_tile_5pn2z_1",fC="_empty_5pn2z_5",pC="_correctTilePoz_5pn2z_17",hC="_moveLeft_5pn2z_17",mC="_moveRight_5pn2z_17",gC="_moveUp_5pn2z_17",vC="_moveDown_5pn2z_17",Xa={tile:dC,empty:fC,correctTilePoz:pC,moveLeft:hC,moveRight:mC,moveUp:gC,moveDown:vC,"move-left":"_move-left_5pn2z_1","move-right":"_move-right_5pn2z_1","move-up":"_move-up_5pn2z_1","move-down":"_move-down_5pn2z_1"};function yC({digit:e,onClick:t,isOnCorrectPoz:n,animDirection:r}){return c.jsx("div",{className:`${Xa.tile} ${e===0?Xa.empty:""} ${n?Xa.correctTilePoz:""} ${r?Xa[`move${r}`]:""}`,onClick:t,children:!!e&&e},e)}const xC="_grid_e2nmy_1",wC="_menu_e2nmy_9",Hm={grid:xC,menu:wC},_C=e=>{const t=e.length;let n=0;for(let r=0;re[o]&&(n+=1);return n%2===0},bC=e=>{const t=e.length;for(let n=0;n{let n;do n=bC(Array.from({length:e*t-1},(r,o)=>o+1));while(!_C(n));return n},Wm=(e=4,t=4)=>{const n=SC(e,t),r=Array.from({length:e},(o,i)=>n.slice(i*t,i*t+t));return r[e-1][t-1]=0,r};function EC(){const[e,t]=h.useState([]),[n,r]=h.useState(0),[o,i]=h.useState(!1),[s,l]=h.useState({moves:[],capacity:5}),[a,u]=h.useState({element:null,type:""}),d=w=>{const{moves:v,capacity:y}=s;v.length===y&&v.shift(),v.push(w)},f=(w,v)=>{const y=e.map(_=>[..._]);[y[w.row][w.col],y[v.row][v.col]]=[y[v.row][v.col],y[w.row][w.col]],t(y)},p=(w,v,y)=>{f(w,v),u({element:v,type:y}),setTimeout(()=>{u({element:null,type:""})},300)},g=(w,v=!0)=>{a.element||uC.forEach(y=>{const{direction:_,delta:C}=y,E=w.row+C[0],b=w.col+C[1];if(E>=0&&E<4&&b>=0&&b<4&&e[E][b]===0){if(p(w,{row:E,col:b},_),v){d({row:E,col:b}),r(n+1);return}r(n-1)}})},m=()=>{const{moves:w}=s;if(a.element||w.length===0)return;const v=w[w.length-1];g(v,!1),l({...s,moves:w.slice(0,w.length-1)})},x=()=>{t(Wm(4,4)),r(0),l({...s,moves:[]})};return h.useEffect(()=>{t(Wm(4,4))},[]),h.useEffect(()=>{const w=e.flat().every((v,y,_)=>v===y+1||y===_.length-1);i(w)},[e]),c.jsxs("div",{children:[c.jsx("div",{className:Hm.grid,children:e.map((w,v)=>w.map((y,_)=>c.jsx(yC,{animDirection:a.element&&a.element.col===_&&a.element.row===v?a.type:"",digit:y,onClick:()=>g({row:v,col:_}),isOnCorrectPoz:v*3+_+v+1===y},y)))}),c.jsxs("div",{className:Hm.menu,children:[c.jsx("button",{type:"button",onClick:x,children:"Reset"}),c.jsx("button",{type:"button",disabled:s.moves.length===0,onClick:m,children:"Undo"}),c.jsxs("p",{children:[o?"Congrats.":""," Total moves: ",n]})]})]})}function CC(){return c.jsxs("div",{children:[c.jsx("div",{children:c.jsx("p",{style:{textAlign:"center"},children:"Click on the box to move it and sort row-wise"})}),c.jsx(EC,{})]})}const kC="_App_150vf_1",jC="_accordion_150vf_6",Cl={App:kC,accordion:jC,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},$C=({title:e,info:t,id:n,openAccordionId:r,setIdOfOpenAccordion:o})=>{const[i,s]=h.useState(!1),l=()=>{s(a=>!a),o(n)};return h.useEffect(()=>{r&&s(r===n)},[n,r]),c.jsxs("div",{className:Cl.accordion,children:[c.jsxs("div",{className:Cl["accordion-title"],children:[c.jsx("h3",{children:e}),c.jsx("button",{onClick:l,className:Cl["accordion-icon"],children:i?"-":"+"})]}),i&&c.jsx("p",{children:t})]},n)},RC=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function TC(){const[e,t]=h.useState(!0),[n,r]=h.useState(null),o=(s=null)=>{r(e?null:s)},i=()=>{e&&r(-1),t(!e)};return c.jsxs("div",{className:Cl.App,children:[c.jsxs("h4",{children:[c.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),c.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:i})]}),c.jsx("div",{children:RC.map(s=>c.jsx($C,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:o,...s},s.id))})]})}class NC{constructor(t=[]){ph(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const o of n)r.hasOwnProperty(o)||(r[o]={}),r=r[o];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const o of t)if(r=r[o],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",o=[]){if(t.end&&(o.push(r),o.length===n))return o;for(const i in t)if(t.hasOwnProperty(i)&&(this.getWordsByDFS(t[i],n,r+i,o),o.length===n))break;return o}}const PC=e=>{const[n,r]=h.useState(""),[o,i]=h.useState([]),[s,l]=h.useState(null),a=h.useRef(new NC(e)),u=g=>{const m=g.target.value;r(g.target.value),i(m?a.current.getWordsFromTrie(m,5):[]),l(null)};return h.useEffect(()=>{if(s!==null){const g=o[s];r(g)}},[s,o]),[n,u,s,o,g=>{if(g.key==="Enter"&&s!==null){const m=o[s];r(m),i([]),l(null)}g.key==="ArrowDown"&&(g.preventDefault(),l(m=>m===null||m===o.length-1?0:m+1)),g.key==="ArrowUp"&&(g.preventDefault(),l(m=>m===null||m===0?o.length-1:m-1))},g=>{r(g),i([]),l(null)},g=>{l(g)}]},OC=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],AC="_main_xk16z_1",MC="_retryTimer_xk16z_15",DC="_suggestions_xk16z_21",IC="_highlight_xk16z_36",LC="_loader_xk16z_46",_r={main:AC,retryTimer:MC,suggestions:DC,highlight:IC,loader:LC},FC=()=>{const[e,t,n,r,o,i,s]=PC(OC),l=h.useRef(null);return c.jsxs("div",{className:_r.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",ref:l,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:o}),c.jsx("ul",{className:_r.suggestions,children:r.map((a,u)=>c.jsx("li",{className:n===u?`${_r.highlight}`:"",onClick:()=>i(a),onMouseOver:()=>s(u),onMouseLeave:()=>s(null),children:a},u))})]})};function zC(e,t=500){let n=null;return function(...o){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...o)}}const BC=5;async function Vm(e){const t={items:[],errorMsgFromApi:"",timeDelta:0};try{const n=await fetch(`https://api.github.com/search/users?per_page=${BC}&q=${e}`);if(n.status===403){const r=n.headers.get("x-ratelimit-reset");if(r!==null){const o=parseFloat(r);t.timeDelta=Math.ceil(o-Date.now()/1e3)}else t.timeDelta=60}else{const r=await n.json();t.items=r.items.map(o=>o.login)}return t}catch{return t.errorMsgFromApi="Error occurred while fetching suggestions",t}}function UC(){const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),[s,l]=h.useState(!1),[a,u]=h.useState(0),[d,f]=h.useState(""),p=h.useCallback(zC(async y=>{l(!0);try{const _=await Vm(y);u(_.timeDelta),_.errorMsgFromApi?(r([]),f(_.errorMsgFromApi)):_.items.length>0?(r(_.items),f("")):(r([]),f("No results found"))}catch{r([]),f("Error occurred while fetching suggestions")}l(!1)},300),[Vm]),g=()=>{r([]),i(null),f("")},m=y=>{if(y.key==="Enter"&&o!==null){const _=n[o];t(_),g()}y.key==="ArrowDown"&&(y.preventDefault(),i(_=>_===null||_===n.length-1?0:_+1)),y.key==="ArrowUp"&&(y.preventDefault(),i(_=>_===null||_===0?n.length-1:_-1))},x=y=>{const _=y.target.value;t(_),_.length>0?p(_):g()},w=y=>{t(y),g()};return h.useEffect(()=>{if(o!==null){const y=n[o];t(y)}},[o,n]),h.useEffect(()=>{const y=setTimeout(()=>{a>0&&u(_=>_-1)},1e3);return()=>clearTimeout(y)},[a]),{userText:e,suggestions:n,isLoading:s,suggestionFocus:o,errorMessage:d,retryAfter:a,handleInputChange:x,handleSuggestionClick:w,handleKeyDown:m,handleSuggestionFocus:y=>{i(y)}}}function HC(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:o,retryAfter:i,handleInputChange:s,handleSuggestionClick:l,handleKeyDown:a,handleSuggestionFocus:u}=UC();return c.jsxs("div",{className:_r.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:a,onChange:s,disabled:i!==0}),n&&c.jsx("div",{id:"loader",className:_r.loader}),o&&c.jsx("div",{id:"info",children:o}),i!==0&&c.jsx("div",{className:_r.retryTimer,children:i}),c.jsx("ul",{className:_r.suggestions,children:t.map((d,f)=>c.jsx("li",{className:r===f?`${_r.highlight}`:"",onClick:()=>l(d),onMouseOver:()=>u(f),onMouseLeave:()=>u(null),children:d},f))})]})}const WC="_container_zsbjj_3",VC="_inputContainer_zsbjj_12",GC="_input_zsbjj_12",KC="_button_zsbjj_23",qC="_result_zsbjj_35",Ao={container:WC,inputContainer:VC,input:GC,button:KC,result:qC},YC=()=>{const e=(a,u)=>{const d=g=>g.replace(/[^\w]/g,"").toLowerCase(),f=d(a),p=d(u);return f.split("").sort().join("")===p.split("").sort().join("")},[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(null),l=()=>{const a=e(t,r);s(a)};return c.jsxs("div",{className:Ao.container,children:[c.jsxs("div",{className:Ao.inputContainer,children:[c.jsx("input",{type:"text",placeholder:"Enter the first word or phrase",value:t,onChange:a=>n(a.target.value),className:Ao.input}),c.jsx("input",{type:"text",placeholder:"Enter the second word or phrase",value:r,onChange:a=>o(a.target.value),className:Ao.input}),c.jsx("button",{onClick:l,className:Ao.button,children:"Check Anagram"})]}),i!==null&&c.jsx("p",{className:Ao.result,children:i?"The words/phrases are anagrams!":"The words/phrases are not anagrams."})]})},QC=()=>c.jsx("div",{children:c.jsx(YC,{})}),XC="_App_7yaca_1",JC="_container_7yaca_1",ZC="_input_7yaca_7",ek="_calculateButton_7yaca_21",tk="_card_7yaca_30",nk="_ranges_7yaca_41",vi={App:XC,container:JC,input:ZC,calculateButton:ek,card:tk,ranges:nk},rk=({BMI:e,category:t})=>{const n=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return c.jsxs("div",{className:vi.card,children:[c.jsxs("h1",{children:["BMI = ",e]}),c.jsx("h3",{children:t}),c.jsx("p",{className:vi.ranges,children:"BMI weight ranges"}),n.map(r=>c.jsx("p",{children:r},r))]})},ok=({handleHeightChange:e,handleWeightChange:t,BMI:n,calculateBMI:r,category:o})=>c.jsxs("div",{className:vi.container,children:[c.jsxs("div",{className:vi.input,children:[c.jsxs("label",{htmlFor:"height",children:["Height ",c.jsx("span",{children:"(in cm)"})]}),c.jsx("input",{type:"text",name:"height",onChange:e}),c.jsxs("label",{htmlFor:"weight",children:["Weight ",c.jsx("span",{children:"(in kg)"})]}),c.jsx("input",{type:"text",name:"weight",onChange:t}),c.jsx("button",{className:vi.calculateButton,onClick:r,children:"Calculate"})]}),c.jsx(rk,{BMI:n,category:o})]}),ik=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),[o,i]=h.useState(null),[s,l]=h.useState(null);h.useEffect(()=>{if(o){let f=o<18.5?"Underweight":o<24.9?"Healthy Weight":o<29.9?"Overweight":"Obese";l(()=>f)}},[o]);const a=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&t(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},u=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&r(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},d=()=>{if(e&&n){const f=(n/(e*e/1e4)).toFixed(2);i(()=>f)}};return c.jsx("div",{className:vi.App,children:c.jsx(ok,{height:e,weight:n,handleHeightChange:a,handleWeightChange:u,BMI:o,calculateBMI:d,category:s})})},sk="/frontend-mini-challenges/react/assets/logo-Cv_hAIcG.png",ak="_navbar_6f1bq_1",lk="_left_6f1bq_11",ck="_back_6f1bq_17",uk="_logo_6f1bq_25",dk="_right_6f1bq_43",fk="_github_6f1bq_47",Mo={navbar:ak,left:lk,back:ck,logo:uk,right:dk,github:fk};var pk={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/react/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:ac,VITE_HOST_URL:v1,DEV:y1}=pk,hk=y1?`${v1}${ac}/#/react`:`/${ac}/#/react/`,mk=y1?`${v1}${ac}/`:`/${ac}/`;function gk({title:e}){return c.jsxs("nav",{className:Mo.navbar,children:[c.jsxs("div",{className:Mo.left,children:[c.jsx("a",{href:hk,className:Mo.back,children:"<"}),c.jsx("a",{className:Mo.logo,href:mk,children:c.jsx("img",{src:sk,alt:"logo"})})]}),c.jsx("h1",{children:e}),c.jsx("div",{className:Mo.right,children:c.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:c.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:Mo.github})})})]})}const vk="_container_10e68_1",yk="_button_10e68_7",Gm={container:vk,button:yk},xk=e=>{if(!e){const t="0123456789ABCDEF";e="#";for(let n=0;n<6;n++)e+=t[Math.floor(Math.random()*16)]}return e},wk=()=>{const e=t=>{document.body.style.backgroundColor=t};return h.useEffect(()=>()=>e("unset"),[]),c.jsx("div",{className:Gm.container,children:c.jsx("button",{type:"button",className:Gm.button,onClick:()=>e(xk()),children:"Change Color!! 😎"})})},Do={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function _k(e,t){const n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),l=parseInt(t.slice(5,7),16);return`#${Math.round((n+i)/2).toString(16)}${Math.round((r+s)/2).toString(16)}${Math.round((o+l)/2).toString(16)}`}function bk(){const[e,t]=h.useState("#FF5733"),[n,r]=h.useState("#33FF57"),o=s=>{const{name:l,value:a}=s.target;l==="color1"?t(a):r(a)},i=()=>{t("#FF5733"),r("#33FF57")};return c.jsxs("div",{className:Do["color-mixing-container"],children:[c.jsx("div",{className:Do["color-box-top"],style:{backgroundColor:_k(e,n)},children:c.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),c.jsxs("div",{className:Do["color-inputs"],children:[c.jsxs("div",{className:Do["color-input"],children:[c.jsx("label",{htmlFor:"color1",children:"Color 1"}),c.jsx("input",{type:"color",name:"color1",value:e,onChange:o})]}),c.jsxs("div",{className:Do["color-input"],children:[c.jsx("label",{htmlFor:"color2",children:"Color 2"}),c.jsx("input",{type:"color",name:"color2",value:n,onChange:o})]}),c.jsx("button",{className:Do["mix-button"],onClick:i,style:{marginTop:"1rem"},children:"Reset"})]})]})}const Sk="_main_pfcqp_1",Ek="_size_pfcqp_5",Ck="_grid_pfcqp_13",kk="_cell_pfcqp_17",lc={main:Sk,size:Ek,grid:Ck,cell:kk};function jk({columns:e,values:t}){return c.jsx("table",{className:lc.grid,style:{gridTemplateColumns:`repeat(${e}, 50px)`},children:c.jsx("tbody",{children:t.map((n,r)=>c.jsx("tr",{children:n.map(o=>c.jsx("td",{className:lc.cell,children:o},o))},r))})})}function $k({rows:e,setRows:t,columns:n,setColumns:r}){return c.jsxs("section",{className:lc.size,children:[c.jsxs("label",{htmlFor:"rows",children:["Rows :: ",e]}),c.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:e,onChange:o=>t(+o.target.value)}),c.jsxs("label",{htmlFor:"columns",children:["Columns :: ",n]}),c.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:n,onChange:o=>r(+o.target.value)})]})}function Rk(e,t){const n=Array.from(Array(e),()=>[]);let r=1,o=1,i=0,s=0;for(;s=0;)n[i][s]=r++,i+=o;o*=-1,i+=o,s+=1}return n}function Tk(){const[e,t]=h.useState(2),[n,r]=h.useState(2),o=Rk(e,n);return c.jsxs("main",{className:lc.main,children:[c.jsx($k,{rows:e,columns:n,setRows:t,setColumns:r}),c.jsx(jk,{columns:n,values:o})]})}const Nk="_main_1cx3l_1",Pk={main:Nk};function Ok(){const[e,t]=h.useState(0),n=h.useRef(1),r=l=>{n.current=l},o=()=>{t(l=>l+n.current)},i=()=>{t(l=>l-n.current)},s=()=>{t(0)};return c.jsxs("main",{className:Pk.main,children:[c.jsx("h2",{children:e}),c.jsxs("section",{children:[c.jsx("button",{onClick:i,"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:o,"aria-label":"Increment",children:"+"})]}),c.jsxs("section",{children:[c.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),c.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:l=>r(l.target.valueAsNumber),title:"Step value"})]}),c.jsx("section",{children:c.jsx("button",{onClick:s,children:"Reset"})})]})}const Ak={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},Mk="_select_17qmd_1",Dk="_form_17qmd_6",Ik="_formField_17qmd_13",Lk="_formInput_17qmd_17",Xr={select:Mk,form:Dk,formField:Ik,formInput:Lk};function Fk({fields:e,dispatch:t}){return c.jsxs("form",{className:Xr.form,children:[c.jsxs("div",{className:Xr.formField,children:[c.jsx("label",{htmlFor:"name",children:"Name: "}),c.jsx("input",{className:Xr.formInput,type:"text",id:"name",value:e.name,onChange:n=>t({name:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),c.jsx("input",{className:Xr.formInput,type:"text",id:"companyName",value:e.companyName,onChange:n=>t({companyName:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),c.jsx("input",{className:Xr.formInput,type:"date",id:"effectiveDate",value:e.effectiveDate,onChange:n=>t({effectiveDate:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),c.jsx("input",{className:Xr.formInput,type:"date",id:"lastDate",value:e.lastDate,onChange:n=>t({lastDate:n.target.value})})]})]})}function zk({name:e,companyName:t,effectiveDate:n,lastDate:r}){return console.log(n),c.jsxs("div",{children:[c.jsx("p",{children:"Hi,"}),c.jsxs("p",{children:["Please accept this email as my formal resignation from ",t,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),c.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",n,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",r,"."]}),c.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",t," and looking forward to your support."]}),c.jsx("br",{}),c.jsxs("p",{children:["Thanks and Regards,",c.jsx("br",{}),e]})]})}function Bk({template:e,setTemplate:t}){const n=r=>{t(r.target.value)};return c.jsxs("form",{className:"text-center",children:[c.jsx("label",{htmlFor:"template",children:"Template: "}),c.jsx("select",{id:"template",value:e,onChange:n,className:Xr.select,children:c.jsx("option",{value:"resignation",children:"Resignation"})})]})}function Uk(){const[e,t]=h.useState("jobApplication"),[n,r]=h.useReducer((o,i)=>({...o,...i}),Ak);return c.jsxs(c.Fragment,{children:[c.jsx(Bk,{template:e,setTemplate:t}),c.jsx(Fk,{fields:n,dispatch:r}),c.jsx("hr",{}),c.jsx(zk,{...n})]})}const Hk="_form_1ufkd_2",Wk={form:Hk};function Vk({onAddExpense:e}){const[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(""),l=a=>{a.preventDefault(),e({id:Date.now(),date:t,amount:parseFloat(r),category:i}),n(""),o(""),s("")};return c.jsxs("form",{onSubmit:l,className:Wk.form,children:[c.jsx("input",{type:"date",value:t,onChange:a=>n(a.target.value),required:!0}),c.jsx("input",{type:"number",value:r,placeholder:"Please Enter Amount",onChange:a=>o(a.target.value),required:!0}),c.jsxs("select",{value:i,onChange:a=>s(a.target.value),children:[c.jsx("option",{value:"",children:"Select Category"}),c.jsx("option",{value:"Food",children:"Food"}),c.jsx("option",{value:"Transport",children:"Transport"}),c.jsx("option",{value:"Entertainment",children:"Entertainment"}),c.jsx("option",{value:"Other",children:"Other"})]}),c.jsx("button",{type:"submit",children:"Add Expense"})]})}const Gk="_mainContainer_1ynr6_2",Kk="_btnRed_1ynr6_32",of={mainContainer:Gk,btnRed:Kk};function qk({expenses:e}){const t=e.reduce((n,r)=>n+r.amount,0);return c.jsxs("div",{className:of.mainContainer,children:[c.jsx("h2",{children:"Summary"}),c.jsxs("p",{children:["Total Expenses: $",t.toFixed(2)]})]})}function Yk({expenses:e,onDeleteExpense:t}){return c.jsxs("div",{className:of.mainContainer,children:[c.jsx("h2",{children:"Expenses"}),c.jsx("ul",{children:e.map(n=>c.jsxs("li",{children:[n.date," - $",n.amount," - ",n.category,c.jsx("button",{className:of.btnRed,onClick:()=>t(n.id),children:"Delete"})]},n.id))})]})}function Qk(){const[e,t]=h.useState([]),n=o=>{t(i=>[o,...i])},r=o=>{t(i=>i.filter(s=>s.id!==o))};return c.jsxs("div",{className:"App",children:[c.jsx("h1",{}),c.jsx(Vk,{onAddExpense:n}),c.jsx(Yk,{expenses:e,onDeleteExpense:r}),c.jsx(qk,{expenses:e})]})}const Xk="_feedbackContainer_1y22i_1",Jk="_feedbackBtn_1y22i_12",Zk="_modalContainer_1y22i_23",e2="_modalContent_1y22i_36",t2="_iconContainer_1y22i_51",n2="_iconItem_1y22i_58",r2="_active_1y22i_76",o2="_iconImage_1y22i_82",i2="_modalClose_1y22i_93",s2="_feedbackContent_1y22i_109",a2="_feedbackResponse_1y22i_116",Gt={feedbackContainer:Xk,feedbackBtn:Jk,modalContainer:Zk,modalContent:e2,iconContainer:t2,iconItem:n2,active:r2,iconImage:o2,modalClose:i2,feedbackContent:s2,feedbackResponse:a2},l2=[{rating:1,url:"https://cdn-icons-png.flaticon.com/512/14230/14230791.png",mood:"Terrible"},{rating:2,url:"https://cdn-icons-png.flaticon.com/512/166/166527.png",mood:"Unhappy"},{rating:3,url:"https://cdn-icons-png.flaticon.com/512/1791/1791385.png",mood:"Neutral"},{rating:4,url:"https://cdn-icons-png.flaticon.com/512/166/166538.png",mood:"Happy"},{rating:5,url:"https://cdn-icons-png.flaticon.com/512/10851/10851309.png",mood:"Excited"}],c2=(e,t,n)=>{let r=n;return r=t===e?`${r} ${Gt.active}`:`${r}`,r},u2=({handleClick:e,activeRating:t})=>c.jsx("div",{className:Gt.iconContainer,children:l2.map(n=>c.jsxs("div",{className:c2(n.rating,t,Gt.iconItem),onClick:()=>e(n),children:[c.jsx("img",{src:n.url,className:Gt.iconImage,alt:n.mood}),c.jsx("p",{children:n.mood})]},n.rating))}),d2=({onClose:e})=>{const[t,n]=h.useState(""),[r,o]=h.useState({}),[i,s]=h.useState(!1),l=()=>{s(!0)},a=d=>{o(d)},u=d=>{n(d.target.value)};return c.jsx("div",{className:Gt.modalContainer,onClick:e,children:c.jsxs("div",{className:Gt.modalContent,onClick:d=>d.stopPropagation(),children:[c.jsx("button",{className:Gt.modalClose,onClick:e,children:"x"}),c.jsx("h1",{children:"User Feedback"}),i?c.jsxs("div",{className:Gt.feedbackResponse,children:[c.jsxs("p",{children:["Feedback: ",r.mood]}),c.jsx("p",{children:"Thank you for your feedback"})]}):c.jsxs("form",{className:Gt.feedbackContent,onSubmit:l,children:[c.jsx(u2,{handleClick:a,activeRating:r.rating}),c.jsx("textarea",{placeholder:"Please share additional feedback (optional)",rows:"5",cols:"30",style:{width:"80%",margin:"10px",fontSize:"12px",padding:"2px"},value:t,onChange:u}),c.jsx("button",{type:"submit",className:Gt.feedbackBtn,disabled:!Object.keys(r).length,children:"Submit"})]})]})})};function f2(){const[e,t]=h.useState(!1),n=()=>{t(!0)},r=()=>{t(!1)};return c.jsxs("div",{className:Gt.feedbackContainer,children:[c.jsx("button",{className:Gt.feedbackBtn,onClick:n,children:"Feedback"}),e&&c.jsx(d2,{onClose:r})]})}const p2="_app_1o28y_1",h2="_list_1o28y_6",m2="_editList_1o28y_22",g2="_editableInputContainer_1o28y_30",v2="_editableInputError_1o28y_34",y2="_indent_1o28y_48",x2="_controls_1o28y_52",xt={app:p2,list:h2,editList:m2,editableInputContainer:g2,editableInputError:v2,indent:y2,controls:x2};function Op({onComplete:e,validateNode:t,defaultValue:n=""}){const[r,o]=h.useState(n),[i,s]=h.useState(null),l=d=>{const f=d.target.value;o(f),f===""?s("File or folder name cannot be empty"):t(f)?s(null):s("A file or folder already exists with that name")},a=()=>{e(r)},u=d=>{d.key==="Enter"&&a()};return c.jsxs("div",{className:xt.editableInputContainer,children:[c.jsx("input",{type:"text",autoFocus:!0,onBlur:a,onKeyUp:u,value:r,onChange:l}),i&&c.jsx("div",{className:xt.editableInputError,children:c.jsx("p",{children:i})})]})}function w2({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r,validateNode:o}){const[i,s]=h.useState(!1),l=u=>o(t,e,u),a=u=>{l(u)&&r(t,e,u),s(!1)};return i?c.jsxs("li",{className:`${xt.list} ${xt.editList}`,children:["📄 ",c.jsx(Op,{defaultValue:e.name,onComplete:a,validateNode:l})]}):c.jsxs("li",{className:xt.list,children:[c.jsxs("button",{className:xt.button,children:["📄 ",e.name]}),c.jsxs("div",{className:xt.controls,children:[c.jsx("button",{onClick:()=>s(!0),children:"✏️"}),c.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function _2({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:o,onNodeUpdate:i,onNew:s,validateNode:l}){const[a,u]=h.useState(!1),d=p=>l(n,r,p),f=p=>{n&&(d(p)&&i(n,r,p),u(!1))};return a?c.jsxs("li",{className:`${xt.list} ${xt.editList}`,children:[e?"📂":"📁"," ",c.jsx(Op,{defaultValue:r==null?void 0:r.name,onComplete:f,validateNode:d})]}):c.jsxs("li",{className:xt.list,"data-root":n===null,children:[c.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),c.jsxs("div",{className:xt.controls,children:[c.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),c.jsx("button",{className:"new-file",onClick:()=>s(!1),children:"📄"}),c.jsx("button",{className:"new-folder",onClick:()=>s(!0),children:"🗂"}),c.jsx("button",{className:"delete",onClick:()=>o(n,r),children:"🗑️"})]})]})}function x1({node:e,parent:t,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i}){var x;const[s,l]=h.useState(!1),[a,u]=h.useState(!1),d=h.useRef(!1),f=w=>{w.stopPropagation(),l(!s)},p=w=>{d.current=w,u(!a),l(!0)},g=w=>i(e,null,w),m=w=>{w&&g(w)&&n(e,{name:w,id:new Date().getTime().toString(),isFolder:d.current}),u(!1)};return c.jsxs(c.Fragment,{children:[c.jsx(_2,{expanded:s,toggleExpand:f,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:o,onNew:p,validateNode:i}),s&&c.jsxs("div",{className:xt.indent,children:[(x=e.nodes)==null?void 0:x.map(w=>w.isFolder?c.jsx(x1,{node:w,parent:e,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id):c.jsx(w2,{node:w,parent:e,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id)),a&&c.jsxs("li",{className:`${xt.list} ${xt.editList}`,children:[d.current?"📁":"📄"," ",c.jsx(Op,{onComplete:m,validateNode:g})]})]})]})}const b2={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function S2(){const[e,t]=h.useState(b2),n=(s,l)=>{const a={...e},u=[...s.nodes??[]];u.push({...l,nodes:[]}),s.id==="root"?a.nodes=u:s.nodes=u,t(a)},r=(s,l)=>{var d;const a={...e},u=(d=s.nodes)==null?void 0:d.filter(f=>f.id!==l.id);s.id==="root"?a.nodes=u:s.nodes=u,t(a)},o=(s,l,a)=>{var p;const u={...e},d=((p=s.nodes)==null?void 0:p.map(g=>g))??[],f=d.findIndex(g=>g.id===l.id);d[f]={...d[f],name:a},s.id==="root"?u.nodes=d:s.nodes=d,t(u)},i=(s,l,a)=>{var d;return s===null||typeof s.nodes>"u"?!0:a===""?!1:((d=s.nodes)==null?void 0:d.findIndex(f=>f.id!==(l==null?void 0:l.id)&&f.name===a))===-1};return c.jsx("div",{className:xt.app,children:c.jsx(x1,{node:e,parent:null,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i})})}const E2="_App_fw4tl_7",C2="_meal_container_fw4tl_17",k2="_meal_name_fw4tl_29",j2="_meal_img_fw4tl_34",$2="_tags_container_fw4tl_39",R2="_modal_tags_container_fw4tl_40",T2="_tag_fw4tl_39",N2="_modal_tag_fw4tl_40",P2="_modal_meal_img_fw4tl_69",O2="_modal_instruction_fw4tl_74",A2="_foodBtn_fw4tl_79",M2="_openBtn_fw4tl_80",D2="_closeBtn_fw4tl_105",I2="_recipe_table_fw4tl_128",ut={App:E2,meal_container:C2,meal_name:k2,meal_img:j2,tags_container:$2,modal_tags_container:R2,tag:T2,modal_tag:N2,modal_meal_img:P2,modal_instruction:O2,foodBtn:A2,openBtn:M2,closeBtn:D2,recipe_table:I2};function Ap({data:e}){const{strCategory:t,strArea:n,strTags:r}=e;return c.jsxs("ul",{className:ut.modal_tags_container,children:[t&&c.jsx("li",{className:ut.modal_tag,children:t}),n&&c.jsx("li",{className:ut.modal_tag,children:n}),r&&r.split(",").map((o,i)=>c.jsx("li",{className:ut.modal_tag,children:o},i))]})}Ap.propTypes;function w1({data:e,handleOpenDialog:t}){const{strMeal:n,strMealThumb:r}=e;return c.jsxs("div",{className:ut.meal_container,children:[c.jsx("h2",{className:ut.meal_name,children:n}),c.jsx("img",{className:ut.meal_img,src:r,alt:n}),c.jsx(Ap,{data:e}),c.jsx("button",{className:ut.openBtn,onClick:t,children:"detail recipe"})]})}w1.propTypes;function _1({data:e}){const t=n=>{const r=[];for(let o=1;o<=20;o++){const i=n[`strIngredient${o}`],s=n[`strMeasure${o}`];i&&s&&r.push({ingredient:i,measure:s})}return r};return c.jsxs("table",{className:ut.recipe_table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"No."}),c.jsx("th",{children:"Ingredient"}),c.jsx("th",{children:"Measure"})]})}),c.jsx("tbody",{children:t(e).map((n,r)=>c.jsxs("tr",{children:[c.jsx("td",{children:r+1}),c.jsx("td",{children:n.ingredient}),c.jsx("td",{children:n.measure})]},r))})]})}_1.propTypes;function b1({data:e,handleCloseDialog:t}){const{strMeal:n,strMealThumb:r,strInstructions:o,strYoutube:i}=e;return c.jsx("dialog",{open:!0,onClose:t,children:c.jsxs("div",{className:ut.modal_meal_container,children:[c.jsx("button",{className:ut.closeBtn,onClick:t,children:"×"}),c.jsx("h2",{className:ut.modal_meal_name,children:n}),c.jsx("img",{className:ut.modal_meal_img,src:r,alt:n}),c.jsx(Ap,{data:e}),c.jsx(_1,{data:e}),c.jsx("h2",{children:"Instruction 📜"}),c.jsx("p",{className:ut.modal_instruction,children:o}),i&&c.jsxs("a",{href:i,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",n]})]})})}b1.propTypes;function L2(){const[e,t]=h.useState(null),[n,r]=h.useState(!1);h.useEffect(()=>{o()},[]);const o=async()=>{try{const a=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!a.ok)throw new Error("Network response was not ok! Something wrong");const u=await a.json();t(u.meals[0])}catch(a){console.error("Error on fetching data: ",a)}},i=()=>{o()},s=()=>{r(!0)},l=()=>{r(!1)};return c.jsxs("div",{className:ut.App,children:[c.jsx("h1",{children:"Are you hungry 😋"}),c.jsx("button",{className:ut.foodBtn,onClick:i,children:"Another food 🍛"}),n&&c.jsx(b1,{data:e,handleCloseDialog:l}),e&&c.jsx(w1,{data:e,handleOpenDialog:s})]})}const F2="_app_j2t5p_1",z2="_widget_j2t5p_14",B2="_text_j2t5p_21",Lu={app:F2,widget:z2,text:B2};function U2(){const[e,t]=h.useState(),[n,r]=h.useState(!1),[o,i]=h.useState(1),[s,l]=h.useState(!1),[a,u]=h.useState(!1),[d,f]=h.useState(!1);h.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const p=m=>{m.preventDefault(),oe?(u(!0),l(!1)):(f(!0),l(!1),u(!1),r(!0))},g=()=>{t(Math.round(100*Math.random())),f(!1),l(!1),u(!1),r(!1),i(1)};return c.jsxs("div",{className:Lu.app,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),c.jsx("input",{id:"input",type:"number",value:o,min:"0",max:"100",placeholder:"Guess-Number",onChange:m=>i(Number(m.target.value))}),c.jsxs("div",{className:Lu.widget,children:[c.jsx("button",{type:"reset",onClick:g,children:"Reset"}),c.jsx("button",{type:"submit",disabled:n,children:"Check"})]})]}),c.jsxs("div",{className:Lu.text,children:[s&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Less"})," than the actual number"]}),a&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Higher"})," than the actual number"]}),d&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"right"})]})]})]})}const ur={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},H2=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function W2(){const[e,t]=h.useState(null),n=r=>{t(r)};return c.jsxs("div",{className:ur["image-gallery-container"],children:[c.jsx("p",{className:ur["gallery-para"],children:"Click on an image!"}),c.jsx("div",{className:ur["image-container"],children:H2.map((r,o)=>c.jsx("div",{className:ur["image-wrapper"],onClick:()=>n(r),children:c.jsx("img",{src:r,alt:`Image ${o+1}`,className:ur["gallery-image"]})},o))}),e&&c.jsxs("div",{className:ur["selected-image"],children:[c.jsx("h2",{className:ur["selected-heading"],children:"Selected Image"}),c.jsx("img",{src:e,alt:"Selected",className:ur["selected-img"]})]})]})}const V2="_loader_1hfl7_1",G2="_spin_1hfl7_1",Fu={loader:V2,spin:G2,"book-title":"_book-title_1hfl7_21"};function S1(e,t){return function(){return e.apply(t,arguments)}}const{toString:K2}=Object.prototype,{getPrototypeOf:Mp}=Object,Gc=(e=>t=>{const n=K2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),On=e=>(e=e.toLowerCase(),t=>Gc(t)===e),Kc=e=>t=>typeof t===e,{isArray:Di}=Array,na=Kc("undefined");function q2(e){return e!==null&&!na(e)&&e.constructor!==null&&!na(e.constructor)&&Xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const E1=On("ArrayBuffer");function Y2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&E1(e.buffer),t}const Q2=Kc("string"),Xt=Kc("function"),C1=Kc("number"),qc=e=>e!==null&&typeof e=="object",X2=e=>e===!0||e===!1,kl=e=>{if(Gc(e)!=="object")return!1;const t=Mp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J2=On("Date"),Z2=On("File"),ej=On("Blob"),tj=On("FileList"),nj=e=>qc(e)&&Xt(e.pipe),rj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xt(e.append)&&((t=Gc(e))==="formdata"||t==="object"&&Xt(e.toString)&&e.toString()==="[object FormData]"))},oj=On("URLSearchParams"),ij=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Di(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const j1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$1=e=>!na(e)&&e!==j1;function sf(){const{caseless:e}=$1(this)&&this||{},t={},n=(r,o)=>{const i=e&&k1(t,o)||o;kl(t[i])&&kl(r)?t[i]=sf(t[i],r):kl(r)?t[i]=sf({},r):Di(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(wa(t,(o,i)=>{n&&Xt(o)?e[i]=S1(o,n):e[i]=o},{allOwnKeys:r}),e),aj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cj=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Mp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},uj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},dj=e=>{if(!e)return null;if(Di(e))return e;let t=e.length;if(!C1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mp(Uint8Array)),pj=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},hj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mj=On("HTMLFormElement"),gj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Km=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vj=On("RegExp"),R1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wa(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},yj=e=>{R1(e,(t,n)=>{if(Xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Di(e)?r(e):r(String(e).split(t)),n},wj=()=>{},_j=(e,t)=>(e=+e,Number.isFinite(e)?e:t),zu="abcdefghijklmnopqrstuvwxyz",qm="0123456789",T1={DIGIT:qm,ALPHA:zu,ALPHA_DIGIT:zu+zu.toUpperCase()+qm},bj=(e=16,t=T1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sj(e){return!!(e&&Xt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ej=e=>{const t=new Array(10),n=(r,o)=>{if(qc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Di(r)?[]:{};return wa(r,(s,l)=>{const a=n(s,o+1);!na(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},Cj=On("AsyncFunction"),kj=e=>e&&(qc(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),A={isArray:Di,isArrayBuffer:E1,isBuffer:q2,isFormData:rj,isArrayBufferView:Y2,isString:Q2,isNumber:C1,isBoolean:X2,isObject:qc,isPlainObject:kl,isUndefined:na,isDate:J2,isFile:Z2,isBlob:ej,isRegExp:vj,isFunction:Xt,isStream:nj,isURLSearchParams:oj,isTypedArray:fj,isFileList:tj,forEach:wa,merge:sf,extend:sj,trim:ij,stripBOM:aj,inherits:lj,toFlatObject:cj,kindOf:Gc,kindOfTest:On,endsWith:uj,toArray:dj,forEachEntry:pj,matchAll:hj,isHTMLForm:mj,hasOwnProperty:Km,hasOwnProp:Km,reduceDescriptors:R1,freezeMethods:yj,toObjectSet:xj,toCamelCase:gj,noop:wj,toFiniteNumber:_j,findKey:k1,global:j1,isContextDefined:$1,ALPHABET:T1,generateString:bj,isSpecCompliantForm:Sj,toJSONObject:Ej,isAsyncFn:Cj,isThenable:kj};function ue(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}A.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const N1=ue.prototype,P1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{P1[e]={value:e}});Object.defineProperties(ue,P1);Object.defineProperty(N1,"isAxiosError",{value:!0});ue.from=(e,t,n,r,o,i)=>{const s=Object.create(N1);return A.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ue.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const jj=null;function af(e){return A.isPlainObject(e)||A.isArray(e)}function O1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ym(e,t,n){return e?e.concat(t).map(function(o,i){return o=O1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function $j(e){return A.isArray(e)&&!e.some(af)}const Rj=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Yc(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!A.isUndefined(w[x])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!a&&A.isBlob(m))throw new ue("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,x,w){let v=m;if(m&&!w&&typeof m=="object"){if(A.endsWith(x,"{}"))x=r?x:x.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&$j(m)||(A.isFileList(m)||A.endsWith(x,"[]"))&&(v=A.toArray(m)))return x=O1(x),v.forEach(function(_,C){!(A.isUndefined(_)||_===null)&&t.append(s===!0?Ym([x],C,i):s===null?x:x+"[]",u(_))}),!1}return af(m)?!0:(t.append(Ym(w,x,i),u(m)),!1)}const f=[],p=Object.assign(Rj,{defaultVisitor:d,convertValue:u,isVisitable:af});function g(m,x){if(!A.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&o.call(t,v,A.isString(y)?y.trim():y,x,p))===!0&&g(v,x?x.concat(y):[y])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Qm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dp(e,t){this._pairs=[],e&&Yc(e,this,t)}const A1=Dp.prototype;A1.append=function(t,n){this._pairs.push([t,n])};A1.toString=function(t){const n=t?function(r){return t.call(this,r,Qm)}:Qm;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Tj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M1(e,t,n){if(!t)return e;const r=n&&n.encode||Tj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=A.isURLSearchParams(t)?t.toString():new Dp(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Xm{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const D1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nj=typeof URLSearchParams<"u"?URLSearchParams:Dp,Pj=typeof FormData<"u"?FormData:null,Oj=typeof Blob<"u"?Blob:null,Aj={isBrowser:!0,classes:{URLSearchParams:Nj,FormData:Pj,Blob:Oj},protocols:["http","https","file","blob","url","data"]},I1=typeof window<"u"&&typeof document<"u",Mj=(e=>I1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Dj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ij=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:I1,hasStandardBrowserEnv:Mj,hasStandardBrowserWebWorkerEnv:Dj},Symbol.toStringTag,{value:"Module"})),jn={...Ij,...Aj};function Lj(e,t){return Yc(e,new jn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return jn.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fj(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zj(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&A.isArray(o)?o.length:s,a?(A.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!A.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&A.isArray(o[s])&&(o[s]=zj(o[s])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(Fj(r),o,n,0)}),n}return null}function Bj(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ip={transitional:D1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o&&o?JSON.stringify(L1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lj(t,this.formSerializer).toString();if((l=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Yc(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Bj(t)):t}],transformResponse:[function(t){const n=this.transitional||Ip.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?ue.from(l,ue.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jn.classes.FormData,Blob:jn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Ip.headers[e]={}});const Lp=Ip,Uj=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hj=e=>{const t={};let n,r,o;return e&&e.split(` + */function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function nC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[s,l]=h.useState(),[a,u]=h.useState({isTransitioning:!1}),[d,f]=h.useState(),[p,g]=h.useState(),[m,x]=h.useState(),w=h.useRef(new Map),{v7_startTransition:v}=r||{},y=h.useCallback(k=>{v?eC(k):k()},[v]),_=h.useCallback((k,j)=>{let{deletedFetchers:P,unstable_flushSync:N,unstable_viewTransitionOpts:M}=j;P.forEach(U=>w.current.delete(U)),k.fetchers.forEach((U,z)=>{U.data!==void 0&&w.current.set(z,U.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){N?as(()=>i(k)):y(()=>i(k));return}if(N){as(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let U=n.window.document.startViewTransition(()=>{as(()=>i(k))});U.finished.finally(()=>{as(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),as(()=>g(U));return}p?(d&&d.resolve(),p.skipTransition(),x({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,p,d,w,y]);h.useLayoutEffect(()=>n.subscribe(_),[n,_]),h.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new tC)},[a]),h.useEffect(()=>{if(d&&s&&n.window){let k=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{y(()=>i(k)),await j});P.finished.finally(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(P)}},[y,s,d,n.window]),h.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),h.useEffect(()=>{!a.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),x(void 0))},[a.isTransitioning,m]),h.useEffect(()=>{},[]);let C=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,j,P)=>n.navigate(k,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,j,P)=>n.navigate(k,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),E=n.basename||"/",b=h.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return h.createElement(h.Fragment,null,h.createElement(p1.Provider,{value:b},h.createElement(h1.Provider,{value:o},h.createElement(XE.Provider,{value:w.current},h.createElement(QE.Provider,{value:a},h.createElement(VE,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(rC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function rC(e){let{routes:t,future:n,state:r}=e;return AE(t,void 0,r,n)}var zm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zm||(zm={}));var Bm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bm||(Bm={}));var R=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(R||{});const Um=[R.Easy,R.Medium,R.Hard];function xa(e){return new Map([...e.entries()].sort((t,n)=>{const r=Um.indexOf(t[1].difficulty),o=Um.indexOf(n[1].difficulty);return r-o}))}const oC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:R.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:R.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:R.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:R.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:R.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:R.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:R.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);xa(oC);const iC=new Map([["counter",{title:"Counter",link:"counter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:R.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:R.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:R.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:R.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:R.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:R.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:R.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:R.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:R.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:R.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:R.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:R.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:R.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:R.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:R.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:R.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:R.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:R.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:R.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:R.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:R.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:R.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:R.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}]]);xa(iC);const sC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:R.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:R.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:R.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:R.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:R.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:R.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:R.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:R.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:R.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:R.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:R.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:R.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:R.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:R.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:R.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:R.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:R.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:R.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:R.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:R.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:R.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:R.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:R.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:R.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:R.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:R.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:R.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:R.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:R.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:R.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:R.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:R.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:R.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:R.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:R.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:R.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:R.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:R.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:R.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:R.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]),aC=xa(sC),lC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:R.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:R.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:R.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:R.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:R.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:R.Medium,developer:"Shardik04",tags:[]}]]);xa(lC);const cC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);xa(cC);const uC=[{direction:"Up",delta:[-1,0]},{direction:"Down",delta:[1,0]},{direction:"Left",delta:[0,-1]},{direction:"Right",delta:[0,1]}],dC="_tile_5pn2z_1",fC="_empty_5pn2z_5",pC="_correctTilePoz_5pn2z_17",hC="_moveLeft_5pn2z_17",mC="_moveRight_5pn2z_17",gC="_moveUp_5pn2z_17",vC="_moveDown_5pn2z_17",Xa={tile:dC,empty:fC,correctTilePoz:pC,moveLeft:hC,moveRight:mC,moveUp:gC,moveDown:vC,"move-left":"_move-left_5pn2z_1","move-right":"_move-right_5pn2z_1","move-up":"_move-up_5pn2z_1","move-down":"_move-down_5pn2z_1"};function yC({digit:e,onClick:t,isOnCorrectPoz:n,animDirection:r}){return c.jsx("div",{className:`${Xa.tile} ${e===0?Xa.empty:""} ${n?Xa.correctTilePoz:""} ${r?Xa[`move${r}`]:""}`,onClick:t,children:!!e&&e},e)}const xC="_grid_e2nmy_1",wC="_menu_e2nmy_9",Hm={grid:xC,menu:wC},_C=e=>{const t=e.length;let n=0;for(let r=0;re[o]&&(n+=1);return n%2===0},bC=e=>{const t=e.length;for(let n=0;n{let n;do n=bC(Array.from({length:e*t-1},(r,o)=>o+1));while(!_C(n));return n},Wm=(e=4,t=4)=>{const n=SC(e,t),r=Array.from({length:e},(o,i)=>n.slice(i*t,i*t+t));return r[e-1][t-1]=0,r};function EC(){const[e,t]=h.useState([]),[n,r]=h.useState(0),[o,i]=h.useState(!1),[s,l]=h.useState({moves:[],capacity:5}),[a,u]=h.useState({element:null,type:""}),d=w=>{const{moves:v,capacity:y}=s;v.length===y&&v.shift(),v.push(w)},f=(w,v)=>{const y=e.map(_=>[..._]);[y[w.row][w.col],y[v.row][v.col]]=[y[v.row][v.col],y[w.row][w.col]],t(y)},p=(w,v,y)=>{f(w,v),u({element:v,type:y}),setTimeout(()=>{u({element:null,type:""})},300)},g=(w,v=!0)=>{a.element||uC.forEach(y=>{const{direction:_,delta:C}=y,E=w.row+C[0],b=w.col+C[1];if(E>=0&&E<4&&b>=0&&b<4&&e[E][b]===0){if(p(w,{row:E,col:b},_),v){d({row:E,col:b}),r(n+1);return}r(n-1)}})},m=()=>{const{moves:w}=s;if(a.element||w.length===0)return;const v=w[w.length-1];g(v,!1),l({...s,moves:w.slice(0,w.length-1)})},x=()=>{t(Wm(4,4)),r(0),l({...s,moves:[]})};return h.useEffect(()=>{t(Wm(4,4))},[]),h.useEffect(()=>{const w=e.flat().every((v,y,_)=>v===y+1||y===_.length-1);i(w)},[e]),c.jsxs("div",{children:[c.jsx("div",{className:Hm.grid,children:e.map((w,v)=>w.map((y,_)=>c.jsx(yC,{animDirection:a.element&&a.element.col===_&&a.element.row===v?a.type:"",digit:y,onClick:()=>g({row:v,col:_}),isOnCorrectPoz:v*3+_+v+1===y},y)))}),c.jsxs("div",{className:Hm.menu,children:[c.jsx("button",{type:"button",onClick:x,children:"Reset"}),c.jsx("button",{type:"button",disabled:s.moves.length===0,onClick:m,children:"Undo"}),c.jsxs("p",{children:[o?"Congrats.":""," Total moves: ",n]})]})]})}function CC(){return c.jsxs("div",{children:[c.jsx("div",{children:c.jsx("p",{style:{textAlign:"center"},children:"Click on the box to move it and sort row-wise"})}),c.jsx(EC,{})]})}const kC="_App_150vf_1",jC="_accordion_150vf_6",Cl={App:kC,accordion:jC,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},$C=({title:e,info:t,id:n,openAccordionId:r,setIdOfOpenAccordion:o})=>{const[i,s]=h.useState(!1),l=()=>{s(a=>!a),o(n)};return h.useEffect(()=>{r&&s(r===n)},[n,r]),c.jsxs("div",{className:Cl.accordion,children:[c.jsxs("div",{className:Cl["accordion-title"],children:[c.jsx("h3",{children:e}),c.jsx("button",{onClick:l,className:Cl["accordion-icon"],children:i?"-":"+"})]}),i&&c.jsx("p",{children:t})]},n)},RC=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function TC(){const[e,t]=h.useState(!0),[n,r]=h.useState(null),o=(s=null)=>{r(e?null:s)},i=()=>{e&&r(-1),t(!e)};return c.jsxs("div",{className:Cl.App,children:[c.jsxs("h4",{children:[c.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),c.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:i})]}),c.jsx("div",{children:RC.map(s=>c.jsx($C,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:o,...s},s.id))})]})}class NC{constructor(t=[]){ph(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const o of n)r.hasOwnProperty(o)||(r[o]={}),r=r[o];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const o of t)if(r=r[o],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",o=[]){if(t.end&&(o.push(r),o.length===n))return o;for(const i in t)if(t.hasOwnProperty(i)&&(this.getWordsByDFS(t[i],n,r+i,o),o.length===n))break;return o}}const PC=e=>{const[n,r]=h.useState(""),[o,i]=h.useState([]),[s,l]=h.useState(null),a=h.useRef(new NC(e)),u=g=>{const m=g.target.value;r(g.target.value),i(m?a.current.getWordsFromTrie(m,5):[]),l(null)};return h.useEffect(()=>{if(s!==null){const g=o[s];r(g)}},[s,o]),[n,u,s,o,g=>{if(g.key==="Enter"&&s!==null){const m=o[s];r(m),i([]),l(null)}g.key==="ArrowDown"&&(g.preventDefault(),l(m=>m===null||m===o.length-1?0:m+1)),g.key==="ArrowUp"&&(g.preventDefault(),l(m=>m===null||m===0?o.length-1:m-1))},g=>{r(g),i([]),l(null)},g=>{l(g)}]},OC=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],AC="_main_xk16z_1",MC="_retryTimer_xk16z_15",DC="_suggestions_xk16z_21",IC="_highlight_xk16z_36",LC="_loader_xk16z_46",_r={main:AC,retryTimer:MC,suggestions:DC,highlight:IC,loader:LC},FC=()=>{const[e,t,n,r,o,i,s]=PC(OC),l=h.useRef(null);return c.jsxs("div",{className:_r.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",ref:l,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:o}),c.jsx("ul",{className:_r.suggestions,children:r.map((a,u)=>c.jsx("li",{className:n===u?`${_r.highlight}`:"",onClick:()=>i(a),onMouseOver:()=>s(u),onMouseLeave:()=>s(null),children:a},u))})]})};function zC(e,t=500){let n=null;return function(...o){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...o)}}const BC=5;async function Vm(e){const t={items:[],errorMsgFromApi:"",timeDelta:0};try{const n=await fetch(`https://api.github.com/search/users?per_page=${BC}&q=${e}`);if(n.status===403){const r=n.headers.get("x-ratelimit-reset");if(r!==null){const o=parseFloat(r);t.timeDelta=Math.ceil(o-Date.now()/1e3)}else t.timeDelta=60}else{const r=await n.json();t.items=r.items.map(o=>o.login)}return t}catch{return t.errorMsgFromApi="Error occurred while fetching suggestions",t}}function UC(){const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),[s,l]=h.useState(!1),[a,u]=h.useState(0),[d,f]=h.useState(""),p=h.useCallback(zC(async y=>{l(!0);try{const _=await Vm(y);u(_.timeDelta),_.errorMsgFromApi?(r([]),f(_.errorMsgFromApi)):_.items.length>0?(r(_.items),f("")):(r([]),f("No results found"))}catch{r([]),f("Error occurred while fetching suggestions")}l(!1)},300),[Vm]),g=()=>{r([]),i(null),f("")},m=y=>{if(y.key==="Enter"&&o!==null){const _=n[o];t(_),g()}y.key==="ArrowDown"&&(y.preventDefault(),i(_=>_===null||_===n.length-1?0:_+1)),y.key==="ArrowUp"&&(y.preventDefault(),i(_=>_===null||_===0?n.length-1:_-1))},x=y=>{const _=y.target.value;t(_),_.length>0?p(_):g()},w=y=>{t(y),g()};return h.useEffect(()=>{if(o!==null){const y=n[o];t(y)}},[o,n]),h.useEffect(()=>{const y=setTimeout(()=>{a>0&&u(_=>_-1)},1e3);return()=>clearTimeout(y)},[a]),{userText:e,suggestions:n,isLoading:s,suggestionFocus:o,errorMessage:d,retryAfter:a,handleInputChange:x,handleSuggestionClick:w,handleKeyDown:m,handleSuggestionFocus:y=>{i(y)}}}function HC(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:o,retryAfter:i,handleInputChange:s,handleSuggestionClick:l,handleKeyDown:a,handleSuggestionFocus:u}=UC();return c.jsxs("div",{className:_r.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:a,onChange:s,disabled:i!==0}),n&&c.jsx("div",{id:"loader",className:_r.loader}),o&&c.jsx("div",{id:"info",children:o}),i!==0&&c.jsx("div",{className:_r.retryTimer,children:i}),c.jsx("ul",{className:_r.suggestions,children:t.map((d,f)=>c.jsx("li",{className:r===f?`${_r.highlight}`:"",onClick:()=>l(d),onMouseOver:()=>u(f),onMouseLeave:()=>u(null),children:d},f))})]})}const WC="_container_zsbjj_3",VC="_inputContainer_zsbjj_12",GC="_input_zsbjj_12",KC="_button_zsbjj_23",qC="_result_zsbjj_35",Ao={container:WC,inputContainer:VC,input:GC,button:KC,result:qC},YC=()=>{const e=(a,u)=>{const d=g=>g.replace(/[^\w]/g,"").toLowerCase(),f=d(a),p=d(u);return f.split("").sort().join("")===p.split("").sort().join("")},[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(null),l=()=>{const a=e(t,r);s(a)};return c.jsxs("div",{className:Ao.container,children:[c.jsxs("div",{className:Ao.inputContainer,children:[c.jsx("input",{type:"text",placeholder:"Enter the first word or phrase",value:t,onChange:a=>n(a.target.value),className:Ao.input}),c.jsx("input",{type:"text",placeholder:"Enter the second word or phrase",value:r,onChange:a=>o(a.target.value),className:Ao.input}),c.jsx("button",{onClick:l,className:Ao.button,children:"Check Anagram"})]}),i!==null&&c.jsx("p",{className:Ao.result,children:i?"The words/phrases are anagrams!":"The words/phrases are not anagrams."})]})},QC=()=>c.jsx("div",{children:c.jsx(YC,{})}),XC="_App_7yaca_1",JC="_container_7yaca_1",ZC="_input_7yaca_7",ek="_calculateButton_7yaca_21",tk="_card_7yaca_30",nk="_ranges_7yaca_41",vi={App:XC,container:JC,input:ZC,calculateButton:ek,card:tk,ranges:nk},rk=({BMI:e,category:t})=>{const n=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return c.jsxs("div",{className:vi.card,children:[c.jsxs("h1",{children:["BMI = ",e]}),c.jsx("h3",{children:t}),c.jsx("p",{className:vi.ranges,children:"BMI weight ranges"}),n.map(r=>c.jsx("p",{children:r},r))]})},ok=({handleHeightChange:e,handleWeightChange:t,BMI:n,calculateBMI:r,category:o})=>c.jsxs("div",{className:vi.container,children:[c.jsxs("div",{className:vi.input,children:[c.jsxs("label",{htmlFor:"height",children:["Height ",c.jsx("span",{children:"(in cm)"})]}),c.jsx("input",{type:"text",name:"height",onChange:e}),c.jsxs("label",{htmlFor:"weight",children:["Weight ",c.jsx("span",{children:"(in kg)"})]}),c.jsx("input",{type:"text",name:"weight",onChange:t}),c.jsx("button",{className:vi.calculateButton,onClick:r,children:"Calculate"})]}),c.jsx(rk,{BMI:n,category:o})]}),ik=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),[o,i]=h.useState(null),[s,l]=h.useState(null);h.useEffect(()=>{if(o){let f=o<18.5?"Underweight":o<24.9?"Healthy Weight":o<29.9?"Overweight":"Obese";l(()=>f)}},[o]);const a=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&t(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},u=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&r(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},d=()=>{if(e&&n){const f=(n/(e*e/1e4)).toFixed(2);i(()=>f)}};return c.jsx("div",{className:vi.App,children:c.jsx(ok,{height:e,weight:n,handleHeightChange:a,handleWeightChange:u,BMI:o,calculateBMI:d,category:s})})},sk="/frontend-mini-challenges/react/assets/logo-Cv_hAIcG.png",ak="_navbar_6f1bq_1",lk="_left_6f1bq_11",ck="_back_6f1bq_17",uk="_logo_6f1bq_25",dk="_right_6f1bq_43",fk="_github_6f1bq_47",Mo={navbar:ak,left:lk,back:ck,logo:uk,right:dk,github:fk};var pk={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/react/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:ac,VITE_HOST_URL:v1,DEV:y1}=pk,hk=y1?`${v1}${ac}/#/react`:`/${ac}/#/react/`,mk=y1?`${v1}${ac}/`:`/${ac}/`;function gk({title:e}){return c.jsxs("nav",{className:Mo.navbar,children:[c.jsxs("div",{className:Mo.left,children:[c.jsx("a",{href:hk,className:Mo.back,children:"<"}),c.jsx("a",{className:Mo.logo,href:mk,children:c.jsx("img",{src:sk,alt:"logo"})})]}),c.jsx("h1",{children:e}),c.jsx("div",{className:Mo.right,children:c.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:c.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:Mo.github})})})]})}const vk="_container_10e68_1",yk="_button_10e68_7",Gm={container:vk,button:yk},xk=e=>{if(!e){const t="0123456789ABCDEF";e="#";for(let n=0;n<6;n++)e+=t[Math.floor(Math.random()*16)]}return e},wk=()=>{const e=t=>{document.body.style.backgroundColor=t};return h.useEffect(()=>()=>e("unset"),[]),c.jsx("div",{className:Gm.container,children:c.jsx("button",{type:"button",className:Gm.button,onClick:()=>e(xk()),children:"Change Color!! 😎"})})},Do={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function _k(e,t){const n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),l=parseInt(t.slice(5,7),16);return`#${Math.round((n+i)/2).toString(16)}${Math.round((r+s)/2).toString(16)}${Math.round((o+l)/2).toString(16)}`}function bk(){const[e,t]=h.useState("#FF5733"),[n,r]=h.useState("#33FF57"),o=s=>{const{name:l,value:a}=s.target;l==="color1"?t(a):r(a)},i=()=>{t("#FF5733"),r("#33FF57")};return c.jsxs("div",{className:Do["color-mixing-container"],children:[c.jsx("div",{className:Do["color-box-top"],style:{backgroundColor:_k(e,n)},children:c.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),c.jsxs("div",{className:Do["color-inputs"],children:[c.jsxs("div",{className:Do["color-input"],children:[c.jsx("label",{htmlFor:"color1",children:"Color 1"}),c.jsx("input",{type:"color",name:"color1",value:e,onChange:o})]}),c.jsxs("div",{className:Do["color-input"],children:[c.jsx("label",{htmlFor:"color2",children:"Color 2"}),c.jsx("input",{type:"color",name:"color2",value:n,onChange:o})]}),c.jsx("button",{className:Do["mix-button"],onClick:i,style:{marginTop:"1rem"},children:"Reset"})]})]})}const Sk="_main_pfcqp_1",Ek="_size_pfcqp_5",Ck="_grid_pfcqp_13",kk="_cell_pfcqp_17",lc={main:Sk,size:Ek,grid:Ck,cell:kk};function jk({columns:e,values:t}){return c.jsx("table",{className:lc.grid,style:{gridTemplateColumns:`repeat(${e}, 50px)`},children:c.jsx("tbody",{children:t.map((n,r)=>c.jsx("tr",{children:n.map(o=>c.jsx("td",{className:lc.cell,children:o},o))},r))})})}function $k({rows:e,setRows:t,columns:n,setColumns:r}){return c.jsxs("section",{className:lc.size,children:[c.jsxs("label",{htmlFor:"rows",children:["Rows :: ",e]}),c.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:e,onChange:o=>t(+o.target.value)}),c.jsxs("label",{htmlFor:"columns",children:["Columns :: ",n]}),c.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:n,onChange:o=>r(+o.target.value)})]})}function Rk(e,t){const n=Array.from(Array(e),()=>[]);let r=1,o=1,i=0,s=0;for(;s=0;)n[i][s]=r++,i+=o;o*=-1,i+=o,s+=1}return n}function Tk(){const[e,t]=h.useState(2),[n,r]=h.useState(2),o=Rk(e,n);return c.jsxs("main",{className:lc.main,children:[c.jsx($k,{rows:e,columns:n,setRows:t,setColumns:r}),c.jsx(jk,{columns:n,values:o})]})}const Nk="_main_1cx3l_1",Pk={main:Nk};function Ok(){const[e,t]=h.useState(0),n=h.useRef(1),r=l=>{n.current=l},o=()=>{t(l=>l+n.current)},i=()=>{t(l=>l-n.current)},s=()=>{t(0)};return c.jsxs("main",{className:Pk.main,children:[c.jsx("h2",{children:e}),c.jsxs("section",{children:[c.jsx("button",{onClick:i,"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:o,"aria-label":"Increment",children:"+"})]}),c.jsxs("section",{children:[c.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),c.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:l=>r(l.target.valueAsNumber),title:"Step value"})]}),c.jsx("section",{children:c.jsx("button",{onClick:s,children:"Reset"})})]})}const Ak={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},Mk="_select_17qmd_1",Dk="_form_17qmd_6",Ik="_formField_17qmd_13",Lk="_formInput_17qmd_17",Xr={select:Mk,form:Dk,formField:Ik,formInput:Lk};function Fk({fields:e,dispatch:t}){return c.jsxs("form",{className:Xr.form,children:[c.jsxs("div",{className:Xr.formField,children:[c.jsx("label",{htmlFor:"name",children:"Name: "}),c.jsx("input",{className:Xr.formInput,type:"text",id:"name",value:e.name,onChange:n=>t({name:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),c.jsx("input",{className:Xr.formInput,type:"text",id:"companyName",value:e.companyName,onChange:n=>t({companyName:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),c.jsx("input",{className:Xr.formInput,type:"date",id:"effectiveDate",value:e.effectiveDate,onChange:n=>t({effectiveDate:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),c.jsx("input",{className:Xr.formInput,type:"date",id:"lastDate",value:e.lastDate,onChange:n=>t({lastDate:n.target.value})})]})]})}function zk({name:e,companyName:t,effectiveDate:n,lastDate:r}){return console.log(n),c.jsxs("div",{children:[c.jsx("p",{children:"Hi,"}),c.jsxs("p",{children:["Please accept this email as my formal resignation from ",t,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),c.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",n,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",r,"."]}),c.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",t," and looking forward to your support."]}),c.jsx("br",{}),c.jsxs("p",{children:["Thanks and Regards,",c.jsx("br",{}),e]})]})}function Bk({template:e,setTemplate:t}){const n=r=>{t(r.target.value)};return c.jsxs("form",{className:"text-center",children:[c.jsx("label",{htmlFor:"template",children:"Template: "}),c.jsx("select",{id:"template",value:e,onChange:n,className:Xr.select,children:c.jsx("option",{value:"resignation",children:"Resignation"})})]})}function Uk(){const[e,t]=h.useState("jobApplication"),[n,r]=h.useReducer((o,i)=>({...o,...i}),Ak);return c.jsxs(c.Fragment,{children:[c.jsx(Bk,{template:e,setTemplate:t}),c.jsx(Fk,{fields:n,dispatch:r}),c.jsx("hr",{}),c.jsx(zk,{...n})]})}const Hk="_form_1ufkd_2",Wk={form:Hk};function Vk({onAddExpense:e}){const[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(""),l=a=>{a.preventDefault(),e({id:Date.now(),date:t,amount:parseFloat(r),category:i}),n(""),o(""),s("")};return c.jsxs("form",{onSubmit:l,className:Wk.form,children:[c.jsx("input",{type:"date",value:t,onChange:a=>n(a.target.value),required:!0}),c.jsx("input",{type:"number",value:r,placeholder:"Please Enter Amount",onChange:a=>o(a.target.value),required:!0}),c.jsxs("select",{value:i,onChange:a=>s(a.target.value),children:[c.jsx("option",{value:"",children:"Select Category"}),c.jsx("option",{value:"Food",children:"Food"}),c.jsx("option",{value:"Transport",children:"Transport"}),c.jsx("option",{value:"Entertainment",children:"Entertainment"}),c.jsx("option",{value:"Other",children:"Other"})]}),c.jsx("button",{type:"submit",children:"Add Expense"})]})}const Gk="_mainContainer_1ynr6_2",Kk="_btnRed_1ynr6_32",of={mainContainer:Gk,btnRed:Kk};function qk({expenses:e}){const t=e.reduce((n,r)=>n+r.amount,0);return c.jsxs("div",{className:of.mainContainer,children:[c.jsx("h2",{children:"Summary"}),c.jsxs("p",{children:["Total Expenses: $",t.toFixed(2)]})]})}function Yk({expenses:e,onDeleteExpense:t}){return c.jsxs("div",{className:of.mainContainer,children:[c.jsx("h2",{children:"Expenses"}),c.jsx("ul",{children:e.map(n=>c.jsxs("li",{children:[n.date," - $",n.amount," - ",n.category,c.jsx("button",{className:of.btnRed,onClick:()=>t(n.id),children:"Delete"})]},n.id))})]})}function Qk(){const[e,t]=h.useState([]),n=o=>{t(i=>[o,...i])},r=o=>{t(i=>i.filter(s=>s.id!==o))};return c.jsxs("div",{className:"App",children:[c.jsx("h1",{}),c.jsx(Vk,{onAddExpense:n}),c.jsx(Yk,{expenses:e,onDeleteExpense:r}),c.jsx(qk,{expenses:e})]})}const Xk="_feedbackContainer_1y22i_1",Jk="_feedbackBtn_1y22i_12",Zk="_modalContainer_1y22i_23",e2="_modalContent_1y22i_36",t2="_iconContainer_1y22i_51",n2="_iconItem_1y22i_58",r2="_active_1y22i_76",o2="_iconImage_1y22i_82",i2="_modalClose_1y22i_93",s2="_feedbackContent_1y22i_109",a2="_feedbackResponse_1y22i_116",Gt={feedbackContainer:Xk,feedbackBtn:Jk,modalContainer:Zk,modalContent:e2,iconContainer:t2,iconItem:n2,active:r2,iconImage:o2,modalClose:i2,feedbackContent:s2,feedbackResponse:a2},l2=[{rating:1,url:"https://cdn-icons-png.flaticon.com/512/14230/14230791.png",mood:"Terrible"},{rating:2,url:"https://cdn-icons-png.flaticon.com/512/166/166527.png",mood:"Unhappy"},{rating:3,url:"https://cdn-icons-png.flaticon.com/512/1791/1791385.png",mood:"Neutral"},{rating:4,url:"https://cdn-icons-png.flaticon.com/512/166/166538.png",mood:"Happy"},{rating:5,url:"https://cdn-icons-png.flaticon.com/512/10851/10851309.png",mood:"Excited"}],c2=(e,t,n)=>{let r=n;return r=t===e?`${r} ${Gt.active}`:`${r}`,r},u2=({handleClick:e,activeRating:t})=>c.jsx("div",{className:Gt.iconContainer,children:l2.map(n=>c.jsxs("div",{className:c2(n.rating,t,Gt.iconItem),onClick:()=>e(n),children:[c.jsx("img",{src:n.url,className:Gt.iconImage,alt:n.mood}),c.jsx("p",{children:n.mood})]},n.rating))}),d2=({onClose:e})=>{const[t,n]=h.useState(""),[r,o]=h.useState({}),[i,s]=h.useState(!1),l=()=>{s(!0)},a=d=>{o(d)},u=d=>{n(d.target.value)};return c.jsx("div",{className:Gt.modalContainer,onClick:e,children:c.jsxs("div",{className:Gt.modalContent,onClick:d=>d.stopPropagation(),children:[c.jsx("button",{className:Gt.modalClose,onClick:e,children:"x"}),c.jsx("h1",{children:"User Feedback"}),i?c.jsxs("div",{className:Gt.feedbackResponse,children:[c.jsxs("p",{children:["Feedback: ",r.mood]}),c.jsx("p",{children:"Thank you for your feedback"})]}):c.jsxs("form",{className:Gt.feedbackContent,onSubmit:l,children:[c.jsx(u2,{handleClick:a,activeRating:r.rating}),c.jsx("textarea",{placeholder:"Please share additional feedback (optional)",rows:"5",cols:"30",style:{width:"80%",margin:"10px",fontSize:"12px",padding:"2px"},value:t,onChange:u}),c.jsx("button",{type:"submit",className:Gt.feedbackBtn,disabled:!Object.keys(r).length,children:"Submit"})]})]})})};function f2(){const[e,t]=h.useState(!1),n=()=>{t(!0)},r=()=>{t(!1)};return c.jsxs("div",{className:Gt.feedbackContainer,children:[c.jsx("button",{className:Gt.feedbackBtn,onClick:n,children:"Feedback"}),e&&c.jsx(d2,{onClose:r})]})}const p2="_app_1o28y_1",h2="_list_1o28y_6",m2="_editList_1o28y_22",g2="_editableInputContainer_1o28y_30",v2="_editableInputError_1o28y_34",y2="_indent_1o28y_48",x2="_controls_1o28y_52",xt={app:p2,list:h2,editList:m2,editableInputContainer:g2,editableInputError:v2,indent:y2,controls:x2};function Op({onComplete:e,validateNode:t,defaultValue:n=""}){const[r,o]=h.useState(n),[i,s]=h.useState(null),l=d=>{const f=d.target.value;o(f),f===""?s("File or folder name cannot be empty"):t(f)?s(null):s("A file or folder already exists with that name")},a=()=>{e(r)},u=d=>{d.key==="Enter"&&a()};return c.jsxs("div",{className:xt.editableInputContainer,children:[c.jsx("input",{type:"text",autoFocus:!0,onBlur:a,onKeyUp:u,value:r,onChange:l}),i&&c.jsx("div",{className:xt.editableInputError,children:c.jsx("p",{children:i})})]})}function w2({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r,validateNode:o}){const[i,s]=h.useState(!1),l=u=>o(t,e,u),a=u=>{l(u)&&r(t,e,u),s(!1)};return i?c.jsxs("li",{className:`${xt.list} ${xt.editList}`,children:["📄 ",c.jsx(Op,{defaultValue:e.name,onComplete:a,validateNode:l})]}):c.jsxs("li",{className:xt.list,children:[c.jsxs("button",{className:xt.button,children:["📄 ",e.name]}),c.jsxs("div",{className:xt.controls,children:[c.jsx("button",{onClick:()=>s(!0),children:"✏️"}),c.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function _2({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:o,onNodeUpdate:i,onNew:s,validateNode:l}){const[a,u]=h.useState(!1),d=p=>l(n,r,p),f=p=>{n&&(d(p)&&i(n,r,p),u(!1))};return a?c.jsxs("li",{className:`${xt.list} ${xt.editList}`,children:[e?"📂":"📁"," ",c.jsx(Op,{defaultValue:r==null?void 0:r.name,onComplete:f,validateNode:d})]}):c.jsxs("li",{className:xt.list,"data-root":n===null,children:[c.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),c.jsxs("div",{className:xt.controls,children:[c.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),c.jsx("button",{className:"new-file",onClick:()=>s(!1),children:"📄"}),c.jsx("button",{className:"new-folder",onClick:()=>s(!0),children:"🗂"}),c.jsx("button",{className:"delete",onClick:()=>o(n,r),children:"🗑️"})]})]})}function x1({node:e,parent:t,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i}){var x;const[s,l]=h.useState(!1),[a,u]=h.useState(!1),d=h.useRef(!1),f=w=>{w.stopPropagation(),l(!s)},p=w=>{d.current=w,u(!a),l(!0)},g=w=>i(e,null,w),m=w=>{w&&g(w)&&n(e,{name:w,id:new Date().getTime().toString(),isFolder:d.current}),u(!1)};return c.jsxs(c.Fragment,{children:[c.jsx(_2,{expanded:s,toggleExpand:f,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:o,onNew:p,validateNode:i}),s&&c.jsxs("div",{className:xt.indent,children:[(x=e.nodes)==null?void 0:x.map(w=>w.isFolder?c.jsx(x1,{node:w,parent:e,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id):c.jsx(w2,{node:w,parent:e,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id)),a&&c.jsxs("li",{className:`${xt.list} ${xt.editList}`,children:[d.current?"📁":"📄"," ",c.jsx(Op,{onComplete:m,validateNode:g})]})]})]})}const b2={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function S2(){const[e,t]=h.useState(b2),n=(s,l)=>{const a={...e},u=[...s.nodes??[]];u.push({...l,nodes:[]}),s.id==="root"?a.nodes=u:s.nodes=u,t(a)},r=(s,l)=>{var d;const a={...e},u=(d=s.nodes)==null?void 0:d.filter(f=>f.id!==l.id);s.id==="root"?a.nodes=u:s.nodes=u,t(a)},o=(s,l,a)=>{var p;const u={...e},d=((p=s.nodes)==null?void 0:p.map(g=>g))??[],f=d.findIndex(g=>g.id===l.id);d[f]={...d[f],name:a},s.id==="root"?u.nodes=d:s.nodes=d,t(u)},i=(s,l,a)=>{var d;return s===null||typeof s.nodes>"u"?!0:a===""?!1:((d=s.nodes)==null?void 0:d.findIndex(f=>f.id!==(l==null?void 0:l.id)&&f.name===a))===-1};return c.jsx("div",{className:xt.app,children:c.jsx(x1,{node:e,parent:null,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i})})}const E2="_App_fw4tl_7",C2="_meal_container_fw4tl_17",k2="_meal_name_fw4tl_29",j2="_meal_img_fw4tl_34",$2="_tags_container_fw4tl_39",R2="_modal_tags_container_fw4tl_40",T2="_tag_fw4tl_39",N2="_modal_tag_fw4tl_40",P2="_modal_meal_img_fw4tl_69",O2="_modal_instruction_fw4tl_74",A2="_foodBtn_fw4tl_79",M2="_openBtn_fw4tl_80",D2="_closeBtn_fw4tl_105",I2="_recipe_table_fw4tl_128",ut={App:E2,meal_container:C2,meal_name:k2,meal_img:j2,tags_container:$2,modal_tags_container:R2,tag:T2,modal_tag:N2,modal_meal_img:P2,modal_instruction:O2,foodBtn:A2,openBtn:M2,closeBtn:D2,recipe_table:I2};function Ap({data:e}){const{strCategory:t,strArea:n,strTags:r}=e;return c.jsxs("ul",{className:ut.modal_tags_container,children:[t&&c.jsx("li",{className:ut.modal_tag,children:t}),n&&c.jsx("li",{className:ut.modal_tag,children:n}),r&&r.split(",").map((o,i)=>c.jsx("li",{className:ut.modal_tag,children:o},i))]})}Ap.propTypes;function w1({data:e,handleOpenDialog:t}){const{strMeal:n,strMealThumb:r}=e;return c.jsxs("div",{className:ut.meal_container,children:[c.jsx("h2",{className:ut.meal_name,children:n}),c.jsx("img",{className:ut.meal_img,src:r,alt:n}),c.jsx(Ap,{data:e}),c.jsx("button",{className:ut.openBtn,onClick:t,children:"detail recipe"})]})}w1.propTypes;function _1({data:e}){const t=n=>{const r=[];for(let o=1;o<=20;o++){const i=n[`strIngredient${o}`],s=n[`strMeasure${o}`];i&&s&&r.push({ingredient:i,measure:s})}return r};return c.jsxs("table",{className:ut.recipe_table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"No."}),c.jsx("th",{children:"Ingredient"}),c.jsx("th",{children:"Measure"})]})}),c.jsx("tbody",{children:t(e).map((n,r)=>c.jsxs("tr",{children:[c.jsx("td",{children:r+1}),c.jsx("td",{children:n.ingredient}),c.jsx("td",{children:n.measure})]},r))})]})}_1.propTypes;function b1({data:e,handleCloseDialog:t}){const{strMeal:n,strMealThumb:r,strInstructions:o,strYoutube:i}=e;return c.jsx("dialog",{open:!0,onClose:t,children:c.jsxs("div",{className:ut.modal_meal_container,children:[c.jsx("button",{className:ut.closeBtn,onClick:t,children:"×"}),c.jsx("h2",{className:ut.modal_meal_name,children:n}),c.jsx("img",{className:ut.modal_meal_img,src:r,alt:n}),c.jsx(Ap,{data:e}),c.jsx(_1,{data:e}),c.jsx("h2",{children:"Instruction 📜"}),c.jsx("p",{className:ut.modal_instruction,children:o}),i&&c.jsxs("a",{href:i,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",n]})]})})}b1.propTypes;function L2(){const[e,t]=h.useState(null),[n,r]=h.useState(!1);h.useEffect(()=>{o()},[]);const o=async()=>{try{const a=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!a.ok)throw new Error("Network response was not ok! Something wrong");const u=await a.json();t(u.meals[0])}catch(a){console.error("Error on fetching data: ",a)}},i=()=>{o()},s=()=>{r(!0)},l=()=>{r(!1)};return c.jsxs("div",{className:ut.App,children:[c.jsx("h1",{children:"Are you hungry 😋"}),c.jsx("button",{className:ut.foodBtn,onClick:i,children:"Another food 🍛"}),n&&c.jsx(b1,{data:e,handleCloseDialog:l}),e&&c.jsx(w1,{data:e,handleOpenDialog:s})]})}const F2="_app_j2t5p_1",z2="_widget_j2t5p_14",B2="_text_j2t5p_21",Lu={app:F2,widget:z2,text:B2};function U2(){const[e,t]=h.useState(),[n,r]=h.useState(!1),[o,i]=h.useState(1),[s,l]=h.useState(!1),[a,u]=h.useState(!1),[d,f]=h.useState(!1);h.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const p=m=>{m.preventDefault(),oe?(u(!0),l(!1)):(f(!0),l(!1),u(!1),r(!0))},g=()=>{t(Math.round(100*Math.random())),f(!1),l(!1),u(!1),r(!1),i(1)};return c.jsxs("div",{className:Lu.app,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),c.jsx("input",{id:"input",type:"number",value:o,min:"0",max:"100",placeholder:"Guess-Number",onChange:m=>i(Number(m.target.value))}),c.jsxs("div",{className:Lu.widget,children:[c.jsx("button",{type:"reset",onClick:g,children:"Reset"}),c.jsx("button",{type:"submit",disabled:n,children:"Check"})]})]}),c.jsxs("div",{className:Lu.text,children:[s&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Less"})," than the actual number"]}),a&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Higher"})," than the actual number"]}),d&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"right"})]})]})]})}const ur={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},H2=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function W2(){const[e,t]=h.useState(null),n=r=>{t(r)};return c.jsxs("div",{className:ur["image-gallery-container"],children:[c.jsx("p",{className:ur["gallery-para"],children:"Click on an image!"}),c.jsx("div",{className:ur["image-container"],children:H2.map((r,o)=>c.jsx("div",{className:ur["image-wrapper"],onClick:()=>n(r),children:c.jsx("img",{src:r,alt:`Image ${o+1}`,className:ur["gallery-image"]})},o))}),e&&c.jsxs("div",{className:ur["selected-image"],children:[c.jsx("h2",{className:ur["selected-heading"],children:"Selected Image"}),c.jsx("img",{src:e,alt:"Selected",className:ur["selected-img"]})]})]})}const V2="_loader_1hfl7_1",G2="_spin_1hfl7_1",Fu={loader:V2,spin:G2,"book-title":"_book-title_1hfl7_21"};function S1(e,t){return function(){return e.apply(t,arguments)}}const{toString:K2}=Object.prototype,{getPrototypeOf:Mp}=Object,Gc=(e=>t=>{const n=K2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),On=e=>(e=e.toLowerCase(),t=>Gc(t)===e),Kc=e=>t=>typeof t===e,{isArray:Di}=Array,na=Kc("undefined");function q2(e){return e!==null&&!na(e)&&e.constructor!==null&&!na(e.constructor)&&Xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const E1=On("ArrayBuffer");function Y2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&E1(e.buffer),t}const Q2=Kc("string"),Xt=Kc("function"),C1=Kc("number"),qc=e=>e!==null&&typeof e=="object",X2=e=>e===!0||e===!1,kl=e=>{if(Gc(e)!=="object")return!1;const t=Mp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J2=On("Date"),Z2=On("File"),ej=On("Blob"),tj=On("FileList"),nj=e=>qc(e)&&Xt(e.pipe),rj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xt(e.append)&&((t=Gc(e))==="formdata"||t==="object"&&Xt(e.toString)&&e.toString()==="[object FormData]"))},oj=On("URLSearchParams"),ij=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Di(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const j1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$1=e=>!na(e)&&e!==j1;function sf(){const{caseless:e}=$1(this)&&this||{},t={},n=(r,o)=>{const i=e&&k1(t,o)||o;kl(t[i])&&kl(r)?t[i]=sf(t[i],r):kl(r)?t[i]=sf({},r):Di(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(wa(t,(o,i)=>{n&&Xt(o)?e[i]=S1(o,n):e[i]=o},{allOwnKeys:r}),e),aj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cj=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Mp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},uj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},dj=e=>{if(!e)return null;if(Di(e))return e;let t=e.length;if(!C1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mp(Uint8Array)),pj=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},hj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mj=On("HTMLFormElement"),gj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Km=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vj=On("RegExp"),R1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wa(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},yj=e=>{R1(e,(t,n)=>{if(Xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Di(e)?r(e):r(String(e).split(t)),n},wj=()=>{},_j=(e,t)=>(e=+e,Number.isFinite(e)?e:t),zu="abcdefghijklmnopqrstuvwxyz",qm="0123456789",T1={DIGIT:qm,ALPHA:zu,ALPHA_DIGIT:zu+zu.toUpperCase()+qm},bj=(e=16,t=T1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sj(e){return!!(e&&Xt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ej=e=>{const t=new Array(10),n=(r,o)=>{if(qc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Di(r)?[]:{};return wa(r,(s,l)=>{const a=n(s,o+1);!na(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},Cj=On("AsyncFunction"),kj=e=>e&&(qc(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),A={isArray:Di,isArrayBuffer:E1,isBuffer:q2,isFormData:rj,isArrayBufferView:Y2,isString:Q2,isNumber:C1,isBoolean:X2,isObject:qc,isPlainObject:kl,isUndefined:na,isDate:J2,isFile:Z2,isBlob:ej,isRegExp:vj,isFunction:Xt,isStream:nj,isURLSearchParams:oj,isTypedArray:fj,isFileList:tj,forEach:wa,merge:sf,extend:sj,trim:ij,stripBOM:aj,inherits:lj,toFlatObject:cj,kindOf:Gc,kindOfTest:On,endsWith:uj,toArray:dj,forEachEntry:pj,matchAll:hj,isHTMLForm:mj,hasOwnProperty:Km,hasOwnProp:Km,reduceDescriptors:R1,freezeMethods:yj,toObjectSet:xj,toCamelCase:gj,noop:wj,toFiniteNumber:_j,findKey:k1,global:j1,isContextDefined:$1,ALPHABET:T1,generateString:bj,isSpecCompliantForm:Sj,toJSONObject:Ej,isAsyncFn:Cj,isThenable:kj};function ue(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}A.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const N1=ue.prototype,P1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{P1[e]={value:e}});Object.defineProperties(ue,P1);Object.defineProperty(N1,"isAxiosError",{value:!0});ue.from=(e,t,n,r,o,i)=>{const s=Object.create(N1);return A.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ue.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const jj=null;function af(e){return A.isPlainObject(e)||A.isArray(e)}function O1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ym(e,t,n){return e?e.concat(t).map(function(o,i){return o=O1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function $j(e){return A.isArray(e)&&!e.some(af)}const Rj=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Yc(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!A.isUndefined(w[x])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!a&&A.isBlob(m))throw new ue("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,x,w){let v=m;if(m&&!w&&typeof m=="object"){if(A.endsWith(x,"{}"))x=r?x:x.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&$j(m)||(A.isFileList(m)||A.endsWith(x,"[]"))&&(v=A.toArray(m)))return x=O1(x),v.forEach(function(_,C){!(A.isUndefined(_)||_===null)&&t.append(s===!0?Ym([x],C,i):s===null?x:x+"[]",u(_))}),!1}return af(m)?!0:(t.append(Ym(w,x,i),u(m)),!1)}const f=[],p=Object.assign(Rj,{defaultVisitor:d,convertValue:u,isVisitable:af});function g(m,x){if(!A.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&o.call(t,v,A.isString(y)?y.trim():y,x,p))===!0&&g(v,x?x.concat(y):[y])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Qm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dp(e,t){this._pairs=[],e&&Yc(e,this,t)}const A1=Dp.prototype;A1.append=function(t,n){this._pairs.push([t,n])};A1.toString=function(t){const n=t?function(r){return t.call(this,r,Qm)}:Qm;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Tj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M1(e,t,n){if(!t)return e;const r=n&&n.encode||Tj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=A.isURLSearchParams(t)?t.toString():new Dp(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Xm{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const D1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nj=typeof URLSearchParams<"u"?URLSearchParams:Dp,Pj=typeof FormData<"u"?FormData:null,Oj=typeof Blob<"u"?Blob:null,Aj={isBrowser:!0,classes:{URLSearchParams:Nj,FormData:Pj,Blob:Oj},protocols:["http","https","file","blob","url","data"]},I1=typeof window<"u"&&typeof document<"u",Mj=(e=>I1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Dj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ij=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:I1,hasStandardBrowserEnv:Mj,hasStandardBrowserWebWorkerEnv:Dj},Symbol.toStringTag,{value:"Module"})),jn={...Ij,...Aj};function Lj(e,t){return Yc(e,new jn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return jn.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fj(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zj(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&A.isArray(o)?o.length:s,a?(A.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!A.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&A.isArray(o[s])&&(o[s]=zj(o[s])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(Fj(r),o,n,0)}),n}return null}function Bj(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ip={transitional:D1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o&&o?JSON.stringify(L1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lj(t,this.formSerializer).toString();if((l=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Yc(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Bj(t)):t}],transformResponse:[function(t){const n=this.transitional||Ip.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?ue.from(l,ue.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jn.classes.FormData,Blob:jn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Ip.headers[e]={}});const Lp=Ip,Uj=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hj=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Uj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Jm=Symbol("internals");function ls(e){return e&&String(e).trim().toLowerCase()}function jl(e){return e===!1||e==null?e:A.isArray(e)?e.map(jl):String(e)}function Wj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Vj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bu(e,t,n,r,o){if(A.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function Gj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Kj(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Qc{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,a,u){const d=ls(a);if(!d)throw new Error("header name must be a non-empty string");const f=A.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||a]=jl(l))}const s=(l,a)=>A.forEach(l,(u,d)=>i(u,d,a));return A.isPlainObject(t)||t instanceof this.constructor?s(t,n):A.isString(t)&&(t=t.trim())&&!Vj(t)?s(Hj(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ls(t),t){const r=A.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Wj(o);if(A.isFunction(n))return n.call(this,o,r);if(A.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ls(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Bu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=ls(s),s){const l=A.findKey(r,s);l&&(!n||Bu(r,r[l],l,n))&&(delete r[l],o=!0)}}return A.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Bu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return A.forEach(this,(o,i)=>{const s=A.findKey(r,i);if(s){n[s]=jl(o),delete n[i];return}const l=t?Gj(i):String(i).trim();l!==i&&delete n[i],n[l]=jl(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&A.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Jm]=this[Jm]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=ls(s);r[l]||(Kj(o,s),r[l]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}Qc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(Qc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(Qc);const qn=Qc;function Uu(e,t){const n=this||Lp,r=t||n,o=qn.from(r.headers);let i=r.data;return A.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function F1(e){return!!(e&&e.__CANCEL__)}function _a(e,t,n){ue.call(this,e??"canceled",ue.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(_a,ue,{__CANCEL__:!0});function qj(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ue("Request failed with status code "+n.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Yj=jn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),A.isString(r)&&s.push("path="+r),A.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xj(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function z1(e,t){return e&&!Qj(t)?Xj(e,t):t}const Jj=jn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=A.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Zj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function e$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),d=r[i];s||(s=u),n[o]=a,r[o]=u;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),u=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-i)/a:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const t$=typeof XMLHttpRequest<"u",n$=t$&&function(e){return new Promise(function(n,r){let o=e.data;const i=qn.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let d;if(A.isFormData(o)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[x,...w]=d?d.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([x||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(x+":"+w))}const p=z1(e.baseURL,e.url);f.open(e.method.toUpperCase(),M1(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const x=qn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:e,request:f};qj(function(_){n(_),u()},function(_){r(_),u()},v),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(r(new ue("Request aborted",ue.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new ue("Network Error",ue.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||D1;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new ue(w,v.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,f)),f=null},jn.hasStandardBrowserEnv&&(l&&A.isFunction(l)&&(l=l(e)),l||l!==!1&&Jj(p))){const x=e.xsrfHeaderName&&e.xsrfCookieName&&Yj.read(e.xsrfCookieName);x&&i.set(e.xsrfHeaderName,x)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&A.forEach(i.toJSON(),function(w,v){f.setRequestHeader(v,w)}),A.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Zm(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Zm(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=x=>{f&&(r(!x||x.type?new _a(null,e,f):x),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=Zj(p);if(m&&jn.protocols.indexOf(m)===-1){r(new ue("Unsupported protocol "+m+":",ue.ERR_BAD_REQUEST,e));return}f.send(o||null)})},lf={http:jj,xhr:n$};A.forEach(lf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eg=e=>`- ${e}`,r$=e=>A.isFunction(e)||e===null||e===!1,B1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(eg).join(` diff --git a/docs/react/index.html b/docs/react/index.html index 06561a6bd..eb07edb0b 100644 --- a/docs/react/index.html +++ b/docs/react/index.html @@ -14,7 +14,7 @@ name="description" content="Frontend Mini Challenges is a collection of frontend interview coding challenges" /> - + diff --git a/docs/vue/assets/index-y2aIRCCx.js b/docs/vue/assets/index-CApGTyRX.js similarity index 66% rename from docs/vue/assets/index-y2aIRCCx.js rename to docs/vue/assets/index-CApGTyRX.js index bb30789e3..f836aa45f 100644 --- a/docs/vue/assets/index-y2aIRCCx.js +++ b/docs/vue/assets/index-CApGTyRX.js @@ -2,4 +2,4 @@ * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Ft=typeof window<"u";function La(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Q=Object.assign;function ps(e,t){const n={};for(const s in t){const i=t[s];n[s]=je(i)?i.map(e):e(i)}return n}const dn=()=>{},je=Array.isArray,Fa=/\/$/,Ha=e=>e.replace(Fa,"");function hs(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=Ba(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:r}}function ja(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ua(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Gt(t.matched[s],n.matched[i])&&Xo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Gt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Da(e[n],t[n]))return!1;return!0}function Da(e,t){return je(e)?Hi(e,t):je(t)?Hi(t,e):e===t}function Hi(e,t){return je(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Ba(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var yn;(function(e){e.pop="pop",e.push="push"})(yn||(yn={}));var pn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(pn||(pn={}));function Va(e){if(!e)if(Ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ha(e)}const Ka=/^[^#]+#/;function za(e,t){return e.replace(Ka,"#")+t}function qa(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const is=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wa(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=qa(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ji(e,t){return(history.state?history.state.position-t:-1)+e}const Rs=new Map;function Ga(e,t){Rs.set(e,t)}function Ja(e){const t=Rs.get(e);return Rs.delete(e),t}let Ya=()=>location.protocol+"//"+location.host;function Zo(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Fi(l,"")}return Fi(n,e)+s+i}function Qa(e,t,n,s){let i=[],o=[],r=null;const a=({state:v})=>{const k=Zo(e,location),P=n.value,A=t.value;let D=0;if(v){if(n.value=k,t.value=v,r&&r===P){r=null;return}D=A?v.position-A.position:0}else s(k);i.forEach(L=>{L(n.value,P,{delta:D,type:yn.pop,direction:D?D>0?pn.forward:pn.back:pn.unknown})})};function l(){r=n.value}function u(v){i.push(v);const k=()=>{const P=i.indexOf(v);P>-1&&i.splice(P,1)};return o.push(k),k}function c(){const{history:v}=window;v.state&&v.replaceState(Q({},v.state,{scroll:is()}),"")}function p(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:p}}function Ui(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?is():null}}function Xa(e){const{history:t,location:n}=window,s={value:Zo(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const p=e.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+l:Ya()+e+l;try{t[c?"replaceState":"pushState"](u,"",v),i.value=u}catch(k){console.error(k),n[c?"replace":"assign"](v)}}function r(l,u){const c=Q({},t.state,Ui(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),s.value=l}function a(l,u){const c=Q({},i.value,t.state,{forward:l,scroll:is()});o(c.current,c,!0);const p=Q({},Ui(s.value,l,null),{position:c.position+1},u);o(l,p,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function Za(e){e=Va(e);const t=Xa(e),n=Qa(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Q({location:"",base:e,go:s,createHref:za.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ec(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Za(e)}function tc(e){return typeof e=="string"||e&&typeof e=="object"}function er(e){return typeof e=="string"||typeof e=="symbol"}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},tr=Symbol("");var Di;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Di||(Di={}));function Jt(e,t){return Q(new Error,{type:e,[tr]:!0},t)}function Qe(e,t){return e instanceof Error&&tr in e&&(t==null||!!(e.type&t))}const Bi="[^/]+?",nc={sensitive:!1,strict:!1,start:!0,end:!0},sc=/[.+*?^${}()[\]/\\]/g;function ic(e,t){const n=Q({},nc,t),s=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function rc(e,t){let n=0;const s=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const lc={type:0,value:""},ac=/[a-zA-Z0-9_]/;function cc(e){if(!e)return[[]];if(e==="/")return[[lc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(k){throw new Error(`ERR (${n})/"${u}": ${k}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,u="",c="";function p(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;a{r(j)}:dn}function r(c){if(er(c)){const p=s.get(c);p&&(s.delete(c),n.splice(n.indexOf(p),1),p.children.forEach(r),p.alias.forEach(r))}else{const p=n.indexOf(c);p>-1&&(n.splice(p,1),c.record.name&&s.delete(c.record.name),c.children.forEach(r),c.alias.forEach(r))}}function a(){return n}function l(c){let p=0;for(;p=0&&(c.record.path!==n[p].record.path||!nr(c,n[p]));)p++;n.splice(p,0,c),c.record.name&&!zi(c)&&s.set(c.record.name,c)}function u(c,p){let v,k={},P,A;if("name"in c&&c.name){if(v=s.get(c.name),!v)throw Jt(1,{location:c});A=v.record.name,k=Q(Ki(p.params,v.keys.filter(j=>!j.optional).map(j=>j.name)),c.params&&Ki(c.params,v.keys.map(j=>j.name))),P=v.stringify(k)}else if("path"in c)P=c.path,v=n.find(j=>j.re.test(P)),v&&(k=v.parse(P),A=v.record.name);else{if(v=p.name?s.get(p.name):n.find(j=>j.re.test(p.path)),!v)throw Jt(1,{location:c,currentLocation:p});A=v.record.name,k=Q({},p.params,c.params),P=v.stringify(k)}const D=[];let L=v;for(;L;)D.unshift(L.record),L=L.parent;return{name:A,path:P,params:k,matched:D,meta:hc(D)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function Ki(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function dc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function pc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function zi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hc(e){return e.reduce((t,n)=>Q(t,n.meta),{})}function qi(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function nr(e,t){return t.children.some(n=>n===e||nr(e,n))}const sr=/#/g,mc=/&/g,gc=/\//g,vc=/=/g,_c=/\?/g,ir=/\+/g,yc=/%5B/g,bc=/%5D/g,or=/%5E/g,kc=/%60/g,rr=/%7B/g,wc=/%7C/g,lr=/%7D/g,Ec=/%20/g;function Ys(e){return encodeURI(""+e).replace(wc,"|").replace(yc,"[").replace(bc,"]")}function xc(e){return Ys(e).replace(rr,"{").replace(lr,"}").replace(or,"^")}function Ps(e){return Ys(e).replace(ir,"%2B").replace(Ec,"+").replace(sr,"%23").replace(mc,"%26").replace(kc,"`").replace(rr,"{").replace(lr,"}").replace(or,"^")}function Cc(e){return Ps(e).replace(vc,"%3D")}function Sc(e){return Ys(e).replace(sr,"%23").replace(_c,"%3F")}function Mc(e){return e==null?"":Sc(e).replace(gc,"%2F")}function Wn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Rc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Ps(o)):[s&&Ps(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Pc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=je(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const Tc=Symbol(""),Gi=Symbol(""),Qs=Symbol(""),Xs=Symbol(""),Ts=Symbol("");function rn(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ft(e,t,n,s,i){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=p=>{p===!1?a(Jt(4,{from:n,to:t})):p instanceof Error?a(p):tc(p)?a(Jt(2,{from:t,to:p})):(o&&s.enterCallbacks[i]===o&&typeof p=="function"&&o.push(p),r())},u=e.call(s&&s.instances[i],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(p=>a(p))})}function ms(e,t,n,s){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(Ac(a)){const u=(a.__vccOpts||a)[t];u&&i.push(ft(u,n,s,o,r))}else{let l=a();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const c=La(u)?u.default:u;o.components[r]=c;const v=(c.__vccOpts||c)[t];return v&&ft(v,n,s,o,r)()}))}}return i}function Ac(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ji(e){const t=Je(Qs),n=Je(Xs),s=re(()=>t.resolve(se(e.to))),i=re(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],p=n.matched;if(!c||!p.length)return-1;const v=p.findIndex(Gt.bind(null,c));if(v>-1)return v;const k=Yi(l[u-2]);return u>1&&Yi(c)===k&&p[p.length-1].path!==k?p.findIndex(Gt.bind(null,l[u-2])):v}),o=re(()=>i.value>-1&&Nc(n.params,s.value.params)),r=re(()=>i.value>-1&&i.value===n.matched.length-1&&Xo(n.params,s.value.params));function a(l={}){return $c(l)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(dn):Promise.resolve()}return{route:s,href:re(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const Ic=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ji,setup(e,{slots:t}){const n=kn(Ji(e)),{options:s}=Je(Qs),i=re(()=>({[Qi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Qi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Go("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Oc=Ic;function $c(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Nc(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!je(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function Yi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qi=(e,t,n)=>e??t??n,Lc=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Je(Ts),i=re(()=>e.route||s.value),o=Je(Gi,0),r=re(()=>{let u=se(o);const{matched:c}=i.value;let p;for(;(p=c[u])&&!p.components;)u++;return u}),a=re(()=>i.value.matched[r.value]);Nn(Gi,re(()=>r.value+1)),Nn(Tc,a),Nn(Ts,i);const l=K();return ht(()=>[l.value,a.value,e.name],([u,c,p],[v,k,P])=>{c&&(c.instances[p]=u,k&&k!==c&&u&&u===v&&(c.leaveGuards.size||(c.leaveGuards=k.leaveGuards),c.updateGuards.size||(c.updateGuards=k.updateGuards))),u&&c&&(!k||!Gt(c,k)||!v)&&(c.enterCallbacks[p]||[]).forEach(A=>A(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,p=a.value,v=p&&p.components[c];if(!v)return Xi(n.default,{Component:v,route:u});const k=p.props[c],P=k?k===!0?u.params:typeof k=="function"?k(u):k:null,D=Go(v,Q({},P,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(p.instances[c]=null)},ref:l}));return Xi(n.default,{Component:D,route:u})||D}}});function Xi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Zs=Lc;function Fc(e){const t=fc(e.routes,e),n=e.parseQuery||Rc,s=e.stringifyQuery||Wi,i=e.history,o=rn(),r=rn(),a=rn(),l=Wr(at);let u=at;Ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=ps.bind(null,y=>""+y),p=ps.bind(null,Mc),v=ps.bind(null,Wn);function k(y,R){let S,I;return er(y)?(S=t.getRecordMatcher(y),I=R):I=y,t.addRoute(I,S)}function P(y){const R=t.getRecordMatcher(y);R&&t.removeRoute(R)}function A(){return t.getRoutes().map(y=>y.record)}function D(y){return!!t.getRecordMatcher(y)}function L(y,R){if(R=Q({},R||l.value),typeof y=="string"){const m=hs(n,y,R.path),_=t.resolve({path:m.path},R),b=i.createHref(m.fullPath);return Q(m,_,{params:v(_.params),hash:Wn(m.hash),redirectedFrom:void 0,href:b})}let S;if("path"in y)S=Q({},y,{path:hs(n,y.path,R.path).path});else{const m=Q({},y.params);for(const _ in m)m[_]==null&&delete m[_];S=Q({},y,{params:p(m)}),R.params=p(R.params)}const I=t.resolve(S,R),Y=y.hash||"";I.params=c(v(I.params));const f=ja(s,Q({},y,{hash:xc(Y),path:I.path})),d=i.createHref(f);return Q({fullPath:f,hash:Y,query:s===Wi?Pc(y.query):y.query||{}},I,{redirectedFrom:void 0,href:d})}function j(y){return typeof y=="string"?hs(n,y,l.value.path):Q({},y)}function G(y,R){if(u!==y)return Jt(8,{from:R,to:y})}function U(y){return Ie(y)}function ue(y){return U(Q(j(y),{replace:!0}))}function ge(y){const R=y.matched[y.matched.length-1];if(R&&R.redirect){const{redirect:S}=R;let I=typeof S=="function"?S(y):S;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=j(I):{path:I},I.params={}),Q({query:y.query,hash:y.hash,params:"path"in I?{}:y.params},I)}}function Ie(y,R){const S=u=L(y),I=l.value,Y=y.state,f=y.force,d=y.replace===!0,m=ge(S);if(m)return Ie(Q(j(m),{state:typeof m=="object"?Q({},Y,m.state):Y,force:f,replace:d}),R||S);const _=S;_.redirectedFrom=R;let b;return!f&&Ua(s,I,S)&&(b=Jt(16,{to:_,from:I}),Ve(I,I,!0,!1)),(b?Promise.resolve(b):De(_,I)).catch(w=>Qe(w)?Qe(w,2)?w:rt(w):J(w,_,I)).then(w=>{if(w){if(Qe(w,2))return Ie(Q({replace:d},j(w.to),{state:typeof w.to=="object"?Q({},Y,w.to.state):Y,force:f}),R||_)}else w=_t(_,I,!0,d,Y);return ot(_,I,w),w})}function Ue(y,R){const S=G(y,R);return S?Promise.reject(S):Promise.resolve()}function At(y){const R=$t.values().next().value;return R&&typeof R.runWithContext=="function"?R.runWithContext(y):y()}function De(y,R){let S;const[I,Y,f]=Hc(y,R);S=ms(I.reverse(),"beforeRouteLeave",y,R);for(const m of I)m.leaveGuards.forEach(_=>{S.push(ft(_,y,R))});const d=Ue.bind(null,y,R);return S.push(d),ve(S).then(()=>{S=[];for(const m of o.list())S.push(ft(m,y,R));return S.push(d),ve(S)}).then(()=>{S=ms(Y,"beforeRouteUpdate",y,R);for(const m of Y)m.updateGuards.forEach(_=>{S.push(ft(_,y,R))});return S.push(d),ve(S)}).then(()=>{S=[];for(const m of f)if(m.beforeEnter)if(je(m.beforeEnter))for(const _ of m.beforeEnter)S.push(ft(_,y,R));else S.push(ft(m.beforeEnter,y,R));return S.push(d),ve(S)}).then(()=>(y.matched.forEach(m=>m.enterCallbacks={}),S=ms(f,"beforeRouteEnter",y,R),S.push(d),ve(S))).then(()=>{S=[];for(const m of r.list())S.push(ft(m,y,R));return S.push(d),ve(S)}).catch(m=>Qe(m,8)?m:Promise.reject(m))}function ot(y,R,S){a.list().forEach(I=>At(()=>I(y,R,S)))}function _t(y,R,S,I,Y){const f=G(y,R);if(f)return f;const d=R===at,m=Ft?history.state:{};S&&(I||d?i.replace(y.fullPath,Q({scroll:d&&m&&m.scroll},Y)):i.push(y.fullPath,Y)),l.value=y,Ve(y,R,S,d),rt()}let Be;function tn(){Be||(Be=i.listen((y,R,S)=>{if(!En.listening)return;const I=L(y),Y=ge(I);if(Y){Ie(Q(Y,{replace:!0}),I).catch(dn);return}u=I;const f=l.value;Ft&&Ga(ji(f.fullPath,S.delta),is()),De(I,f).catch(d=>Qe(d,12)?d:Qe(d,2)?(Ie(d.to,I).then(m=>{Qe(m,20)&&!S.delta&&S.type===yn.pop&&i.go(-1,!1)}).catch(dn),Promise.reject()):(S.delta&&i.go(-S.delta,!1),J(d,I,f))).then(d=>{d=d||_t(I,f,!1),d&&(S.delta&&!Qe(d,8)?i.go(-S.delta,!1):S.type===yn.pop&&Qe(d,20)&&i.go(-1,!1)),ot(I,f,d)}).catch(dn)}))}let It=rn(),fe=rn(),Z;function J(y,R,S){rt(y);const I=fe.list();return I.length?I.forEach(Y=>Y(y,R,S)):console.error(y),Promise.reject(y)}function Ye(){return Z&&l.value!==at?Promise.resolve():new Promise((y,R)=>{It.add([y,R])})}function rt(y){return Z||(Z=!y,tn(),It.list().forEach(([R,S])=>y?S(y):R()),It.reset()),y}function Ve(y,R,S,I){const{scrollBehavior:Y}=e;if(!Ft||!Y)return Promise.resolve();const f=!S&&Ja(ji(y.fullPath,0))||(I||!S)&&history.state&&history.state.scroll||null;return So().then(()=>Y(y,R,f)).then(d=>d&&Wa(d)).catch(d=>J(d,y,R))}const we=y=>i.go(y);let Ot;const $t=new Set,En={currentRoute:l,listening:!0,addRoute:k,removeRoute:P,hasRoute:D,getRoutes:A,resolve:L,options:e,push:U,replace:ue,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:fe.add,isReady:Ye,install(y){const R=this;y.component("RouterLink",Oc),y.component("RouterView",Zs),y.config.globalProperties.$router=R,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>se(l)}),Ft&&!Ot&&l.value===at&&(Ot=!0,U(i.location).catch(Y=>{}));const S={};for(const Y in at)Object.defineProperty(S,Y,{get:()=>l.value[Y],enumerable:!0});y.provide(Qs,R),y.provide(Xs,vo(S)),y.provide(Ts,l);const I=y.unmount;$t.add(y),y.unmount=function(){$t.delete(y),$t.size<1&&(u=at,Be&&Be(),Be=null,l.value=at,Ot=!1,Z=!1),I()}}};function ve(y){return y.reduce((R,S)=>R.then(()=>At(S)),Promise.resolve())}return En}function Hc(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rGt(u,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(u=>Gt(u,l))||i.push(l))}return[n,s,i]}function jc(){return Je(Xs)}const Uc=oe({__name:"App",setup(e){return(t,n)=>(O(),qs(se(Zs)))}}),Dc="/frontend-mini-challenges/vue/assets/logo-r_4QCHBg.png";var Bc={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/vue/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Vc=e=>(Me("data-v-74cb20e7"),e=e(),Re(),e),Kc={class:"navbar"},zc={class:"left"},qc=["href"],Wc=["href"],Gc=["src"],Jc=Vc(()=>h("div",{class:"right"},[h("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"_blank"},[h("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",class:"github"})])],-1)),Yc=oe({__name:"Navbar",props:{title:{type:String,required:!0}},setup(e){const{VITE_PATH:t,VITE_HOST_URL:n,DEV:s}=Bc,i=s?`${n}${t}/#/vue`:`/${t}/#/vue/`,o=s?`${n}${t}/`:`/${t}/`;return(r,a)=>(O(),F("nav",Kc,[h("div",zc,[h("a",{href:se(i),class:"back"}," < ",8,qc),h("a",{class:"logo",href:se(o)},[h("img",{src:se(Dc),alt:"logo"},null,8,Gc)],8,Wc)]),h("h1",null,ie(e.title),1),Jc]))}}),ce=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Qc=ce(Yc,[["__scopeId","data-v-74cb20e7"]]);var g=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(g||{});const Zi=[g.Easy,g.Medium,g.Hard];function wn(e){return new Map([...e.entries()].sort((t,n)=>{const s=Zi.indexOf(t[1].difficulty),i=Zi.indexOf(n[1].difficulty);return s-i}))}const Xc=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:g.Easy,developer:"sadanandpai",tags:[]}]]);wn(Xc);const Zc=new Map([["counter",{title:"Counter",link:"counter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:g.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:g.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:g.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:g.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["dialog-popup",{title:"Dialog Popup",link:"dialog-popup/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["spinning-loader",{title:"Spinning Loader",link:"spinning-loader/",difficulty:g.Easy,developer:"DhanushNehru",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:g.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:g.Easy,developer:"pranav514",tags:[],isNew:!0}],["accordion",{title:"Accordion",link:"accordion/",difficulty:g.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:g.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["Footer",{title:"Footer",link:"Footer/",difficulty:g.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:g.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["MadStory_generator",{title:"MadStory Generator",link:"MadStory_generator/",difficulty:g.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:g.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:g.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:g.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:g.Easy,developer:"AbhineshJha",tags:[]}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:g.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:g.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:g.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:g.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:g.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:g.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:g.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:g.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:g.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:g.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:g.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:g.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:g.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:g.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}]]);wn(Zc);const eu=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:g.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:g.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:g.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:g.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:g.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:g.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:g.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:g.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:g.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:g.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:g.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:g.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:g.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:g.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:g.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:g.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:g.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:g.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:g.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:g.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:g.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:g.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:g.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:g.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:g.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:g.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:g.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:g.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:g.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:g.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:g.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:g.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:g.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:g.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:g.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:g.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:g.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:g.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:g.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:g.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:g.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:g.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:g.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:g.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]);wn(eu);const tu=new Map([["counter",{title:"Counter",link:"/counter",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:g.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:g.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:g.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:g.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:g.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:g.Medium,developer:"Shardik04",tags:[]}]]),nu=wn(tu),su=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);wn(su);const iu={class:"challenge-container"},ou=oe({__name:"challenge",setup(e){const t=jc(),n=K("");return ht(t,()=>{const s=t.path.split("/").filter(Boolean).pop();n.value=nu.get(s).title},{immediate:!0}),(s,i)=>(O(),F(pe,null,[he(Qc,{title:n.value},null,8,["title"]),h("div",iu,[he(se(Zs))])],64))}}),ru=ce(ou,[["__scopeId","data-v-a04c5a36"]]),lu=e=>(Me("data-v-348dfed2"),e=e(),Re(),e),au={class:"main"},cu=lu(()=>h("label",{for:"step"},"Increment/Decrement by",-1)),uu=oe({__name:"index",setup(e){const t=K(0),n=K(1),s=()=>{t.value+=n.value},i=()=>{t.value-=n.value},o=()=>{t.value=0};return(r,a)=>(O(),F("main",au,[h("h2",null,ie(t.value),1),h("section",null,[h("button",{onClick:i,"aria-label":"Decrement"}," - "),h("button",{onClick:s,"aria-label":"Increment"}," + ")]),h("section",null,[cu,de(h("input",{type:"number",id:"step","onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),title:"Step value"},null,512),[[Te,n.value]])]),h("section",null,[h("button",{onClick:o},"Reset")])]))}}),fu=ce(uu,[["__scopeId","data-v-348dfed2"]]),du=e=>(Me("data-v-d4985809"),e=e(),Re(),e),pu={class:"container text-center"},hu=du(()=>h("div",null,[h("label",{for:"phone"},"+(123) - 4567890")],-1)),mu=oe({__name:"index",setup(e){const t=K(""),n=s=>s.split("").filter(i=>Number.isInteger(+i)&&i!==" ").join("");return ht(t,s=>{const i=n(s);t.value=i.length>3?"+("+i.substring(0,3)+") - "+i.substring(3):i}),(s,i)=>(O(),F("div",pu,[de(h("input",{type:"tel",id:"phone",maxlength:"16",placeholder:"Mobile number",autocomplete:"off",class:"field","onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o)},null,512),[[Te,t.value]]),hu]))}}),gu=ce(mu,[["__scopeId","data-v-d4985809"]]),os=e=>(Me("data-v-5f86141c"),e=e(),Re(),e),vu={class:"app"},_u=os(()=>h("label",{for:"input"},"Guess a number between 0 and 100",-1)),yu={class:"widget"},bu=["disabled"],ku={class:"hint"},wu={key:0},Eu=os(()=>h("b",null,"Less",-1)),xu={key:1},Cu=os(()=>h("b",null,"Higher",-1)),Su={key:2},Mu=os(()=>h("b",null,"right",-1)),Ru=oe({__name:"index",setup(e){const t=()=>Math.round(100*Math.random()),n=K(t()),s=K(!1),i=K(1),o=K("NONE"),r=l=>{l.preventDefault(),i.valuen.value?o.value="HIGH":(o.value="CORRECT",s.value=!0)},a=()=>{n.value=t(),o.value="NONE",s.value=!1,i.value=1};return(l,u)=>(O(),F("div",vu,[h("form",{onSubmit:r},[_u,de(h("input",{id:"input",type:"number",min:"0",max:"100","onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c),placeholder:"Guess a number"},null,512),[[Te,i.value]]),h("div",yu,[h("button",{type:"button",onClick:a}," Reset "),h("button",{type:"submit",disabled:s.value}," Check ",8,bu)])],32),h("div",ku,[o.value==="LOW"?(O(),F("p",wu,[xe(" Your guess is "),Eu,xe(" than the actual number ")])):o.value==="HIGH"?(O(),F("p",xu,[xe(" Your guess is "),Cu,xe(" than the actual number ")])):o.value==="CORRECT"?(O(),F("p",Su,[xe(" Your guess is "),Mu])):et("",!0)])]))}}),Pu=ce(Ru,[["__scopeId","data-v-5f86141c"]]),Tu=e=>(Me("data-v-cbde5945"),e=e(),Re(),e),Au={class:"content"},Iu=Tu(()=>h("p",{class:"text"},"Toggle the theme and see the change!",-1)),Ou={class:"current-theme"},$u=oe({__name:"index",setup(e){const t=K(!1);return(n,s)=>(O(),F("main",{class:nt(t.value?"dark":"")},[h("div",Au,[Iu,h("button",{type:"button",onClick:s[0]||(s[0]=i=>t.value=!t.value)},"Toggle theme"),h("p",Ou,[xe("Current theme: "),h("span",null,ie(t.value?"Dark":"Light"),1)])])],2))}}),Nu=ce($u,[["__scopeId","data-v-cbde5945"]]),ar=e=>(Me("data-v-3f23bc99"),e=e(),Re(),e),Lu={class:"container"},Fu={class:"input-box"},Hu=ar(()=>h("label",{for:"row-number"},"Row",-1)),ju=["max"],Uu=ar(()=>h("label",{for:"column-number"},"Column",-1)),Du=["max"],Bu={class:"table-box"},Vu={class:"row"},Ku=oe({__name:"index",setup(e){const t=K([[{content:1,colored:!1},{content:2,colored:!1},{content:3,colored:!1}],[{content:4,colored:!1},{content:5,colored:!1},{content:6,colored:!1}],[{content:7,colored:!1},{content:8,colored:!1},{content:9,colored:!1}]]),n=K(1),s=K(1);function i(){const a=n.value-1,l=s.value-1;t.value[a][l].colored=!0}function o(){const a=n.value-1,l=s.value-1;t.value[a][l].colored=!1}function r(){for(const a of t.value)for(const l of a)l.colored=!1}return(a,l)=>(O(),F("main",null,[h("div",Lu,[h("div",Fu,[h("div",null,[Hu,de(h("input",{id:"row-number",type:"number",inputmode:"numeric",min:"0",max:t.value.length,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},null,8,ju),[[Te,n.value]])]),h("div",null,[Uu,de(h("input",{id:"column-number",type:"number",inputmode:"numeric",min:"0",max:t.value[0].length,"onUpdate:modelValue":l[1]||(l[1]=u=>s.value=u)},null,8,Du),[[Te,s.value]])])]),h("div",{class:"button-box"},[h("button",{type:"button",onClick:i},"Color selected cell"),h("button",{type:"button",onClick:o},"Clear selected cell"),h("button",{type:"button",onClick:r},"Clear all cells")]),h("div",Bu,[(O(!0),F(pe,null,Kt(t.value,u=>(O(),F("div",Vu,[(O(!0),F(pe,null,Kt(u,c=>(O(),F("div",{class:nt([c.colored?"colored":"","cell"])},ie(c.content),3))),256))]))),256))])])]))}}),zu=ce(Ku,[["__scopeId","data-v-3f23bc99"]]),qu=e=>(Me("data-v-f7ffadb8"),e=e(),Re(),e),Wu={class:"container"},Gu=qu(()=>h("thead",null,[h("tr",null,[h("th",null,"ID"),h("th",null,"Name")])],-1)),Ju={class:"button-box"},Yu=["disabled"],Qu=["disabled"],kt=5,Xu=oe({__name:"index",setup(e){const t=K([]);for(let l=1;l<=30;l++)t.value.push({id:l,name:"Item "+l});const n=re(()=>t.value.length),s=K(0),i=K(s.value+kt),o=re(()=>t.value.slice(s.value,i.value));function r(){s.value=Math.max(0,s.value-kt),i.value=s.value+kt}function a(){i.value=Math.min(n.value,i.value+kt),s.value=i.value-kt}return(l,u)=>(O(),F("main",null,[h("div",Wu,[h("table",null,[Gu,h("tbody",null,[(O(!0),F(pe,null,Kt(o.value,c=>(O(),F("tr",null,[h("td",null,ie(c.id),1),h("td",null,ie(c.name),1)]))),256))])]),h("div",Ju,[h("button",{type:"button",disabled:s.value===0,onClick:r},"Prev",8,Yu),h("button",{type:"button",disabled:i.value===n.value,onClick:a},"Next",8,Qu)]),h("div",null,[h("p",null,"Showing data from "+ie(s.value)+" to "+ie(i.value),1),h("p",null,"Total: "+ie(n.value),1),h("p",null,"Pages: "+ie(n.value/kt),1),h("p",null,"Rows per page: "+ie(kt))])])]))}}),Zu=ce(Xu,[["__scopeId","data-v-f7ffadb8"]]),ef={class:"accordion"},tf={key:0,class:"panel"},nf=oe({__name:"Accordion",props:{heading:{type:String,required:!0},content:{type:String,required:!0},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,s=t,i=()=>{s("update:model-value",!n.modelValue)};return(o,r)=>(O(),F("div",ef,[h("button",{type:"button",onClick:i},ie(e.heading),1),e.modelValue?(O(),F("div",tf,ie(e.content),1)):et("",!0)]))}}),sf=ce(nf,[["__scopeId","data-v-d917595f"]]),of={class:"container"},rf=oe({__name:"AccordionGroup",props:{data:{type:Array,required:!0},allowMultipleOpen:{type:Boolean,default:!0}},setup(e){const t=e,n=kn(Array(t.data.length).fill(!1)),s=K(null);function i(o,r){!t.allowMultipleOpen&&s.value!==null&&(n[s.value]=!1),s.value=r,n[r]=o}return ht(t,o=>{o.allowMultipleOpen||(n.fill(!1),s.value&&(n[s.value]=!0))}),(o,r)=>(O(),F("div",of,[(O(!0),F(pe,null,Kt(e.data,(a,l)=>(O(),qs(sf,{heading:a.heading,content:a.content,modelValue:n[l],"onUpdate:modelValue":[u=>n[l]=u,u=>i(u,l)]},null,8,["heading","content","modelValue","onUpdate:modelValue"]))),256))]))}}),lf=ce(rf,[["__scopeId","data-v-33bc9952"]]),af=[{heading:"Lorem Ipsum 1",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta eligendi incidunt itaque dolor quis facere, vel animi laboriosam provident ipsum totam tenetur nisi iste asperiores ipsa, officia a tempora distinctio?"},{heading:"Lorem Ipsum 2",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum nam architecto amet alias officia, at consequatur nostrum ea voluptatum ipsam quod minus magnam vitae dicta magni veritatis sint!"},{heading:"Lorem Ipsum 3",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum!"},{heading:"Lorem Ipsum 4",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim assumenda corporis soluta adipisci eius esse recusandae nulla est possimus earum obcaecati exercitationem cum, vel veniam, saepe debitis porro, necessitatibus deserunt. Cumque possimus aspernatur in architecto cum tenetur ea laboriosam, amet sit. Dolore laborum totam soluta quo numquam repellat obcaecati explicabo esse recusandae quibusdam nihil, ratione eaque, error adipisci amet nisi ullam. Dolore provident quas, ratione aut perspiciatis fugiat facilis ex recusandae asperiores porro suscipit et dicta, pariatur minus ab corrupti! Optio pariatur libero modi dolor quaerat eius officia vel, vero assumenda, minima eveniet aspernatur, maiores id mollitia itaque animi fugiat!"}],cf=e=>(Me("data-v-a7dda4e5"),e=e(),Re(),e),uf={class:"checkbox"},ff=cf(()=>h("label",{for:"allow-multiple-open"},"Allow multiple open accordion",-1)),df=oe({__name:"index",setup(e){const t=K(!0);return(n,s)=>(O(),F("main",null,[h("div",uf,[de(h("input",{id:"allow-multiple-open",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=i=>t.value=i)},null,512),[[Yo,t.value]]),ff]),he(lf,{data:se(af),allowMultipleOpen:t.value},null,8,["data","allowMultipleOpen"])]))}}),pf=ce(df,[["__scopeId","data-v-a7dda4e5"]]);var Hn=(e=>(e.LEFT="left",e.RIGHT="right",e))(Hn||{}),jn=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(jn||{}),xt=(e=>(e.INFO="info",e.ERROR="error",e.WARNING="warning",e.SUCCESS="success",e))(xt||{});const hf=e=>(Me("data-v-08953fd9"),e=e(),Re(),e),mf=hf(()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)),gf=[mf],vf=oe({__name:"toast",props:{vertical:{type:String,required:!0},horizontal:{type:String,required:!0},message:{type:String,required:!0},timeout:{type:Number,default:5e3},type:{type:String,default:xt.INFO},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,s=t,i=Xr(n,"modelValue"),o=K(null),r=()=>{o.value!==null&&(clearTimeout(o.value),o.value=null),s("update:model-value",!1)};return ht(i,a=>{a&&(o.value=setTimeout(r,n.timeout))}),(a,l)=>(O(),F("div",{class:nt(["toast-fixed-screen",e.vertical])},[h("div",{class:nt(["toast-container",e.horizontal])},[de(h("div",{class:nt(["toast",e.type])},[h("p",null,ie(e.message),1),h("button",{type:"button",onClick:r},gf)],2),[[Jo,i.value]])],2)],2))}}),_f=ce(vf,[["__scopeId","data-v-08953fd9"]]),en=e=>(Me("data-v-a768b1a7"),e=e(),Re(),e),yf={class:"container"},bf={class:"field"},kf=en(()=>h("label",{for:"horizontal"},"Horizontal position",-1)),wf=["value"],Ef=["value"],xf={class:"field"},Cf=en(()=>h("label",{for:"vertical"},"Vertical position",-1)),Sf=["value"],Mf=["value"],Rf={class:"field"},Pf=en(()=>h("label",{for:"type"},"Toast type",-1)),Tf=["value"],Af=["value"],If=["value"],Of=["value"],$f={class:"field"},Nf=en(()=>h("label",{for:"message"},"Message",-1)),Lf={class:"field"},Ff=en(()=>h("label",{for:"timeout"},"Toast timeout (in milliseconds)",-1)),Hf=en(()=>h("button",{class:"submit"},"Show toast",-1)),jf=oe({__name:"index",setup(e){const t=K(jn.BOTTOM),n=K(Hn.RIGHT),s=K(xt.INFO),i=K("This is a toast!!"),o=K(!1),r=K(5e3),a=l=>{l.preventDefault(),o.value=!0};return(l,u)=>(O(),F("main",null,[h("div",yf,[h("form",{class:"toast-form",onSubmit:a},[h("div",bf,[kf,de(h("select",{name:"horizontal",id:"horizontal","onUpdate:modelValue":u[0]||(u[0]=c=>n.value=c)},[h("option",{value:se(Hn).LEFT},"Left",8,wf),h("option",{value:se(Hn).RIGHT},"Right",8,Ef)],512),[[fn,n.value]])]),h("div",xf,[Cf,de(h("select",{name:"vertical",id:"vertical","onUpdate:modelValue":u[1]||(u[1]=c=>t.value=c)},[h("option",{value:se(jn).TOP},"Top",8,Sf),h("option",{value:se(jn).BOTTOM},"Bottom",8,Mf)],512),[[fn,t.value]])]),h("div",Rf,[Pf,de(h("select",{name:"type",id:"type","onUpdate:modelValue":u[2]||(u[2]=c=>s.value=c)},[h("option",{value:se(xt).INFO},"Info",8,Tf),h("option",{value:se(xt).SUCCESS},"Success",8,Af),h("option",{value:se(xt).ERROR},"Error",8,If),h("option",{value:se(xt).WARNING},"Warning",8,Of)],512),[[fn,s.value]])]),h("div",$f,[Nf,de(h("input",{type:"text",name:"message",id:"message","onUpdate:modelValue":u[3]||(u[3]=c=>i.value=c),maxlength:"40"},null,512),[[Te,i.value]])]),h("div",Lf,[Ff,de(h("input",{type:"number",inputmode:"numeric",name:"timeout",id:"timeout",max:"30000","onUpdate:modelValue":u[4]||(u[4]=c=>r.value=c)},null,512),[[Te,r.value]])]),Hf],32),he(_f,{modelValue:o.value,"onUpdate:modelValue":u[5]||(u[5]=c=>o.value=c),type:s.value,timeout:r.value,horizontal:n.value,vertical:t.value,message:i.value},null,8,["modelValue","type","timeout","horizontal","vertical","message"])])]))}}),Uf=ce(jf,[["__scopeId","data-v-a768b1a7"]]),Ae=e=>(Me("data-v-50714ff9"),e=e(),Re(),e),Df={class:"app"},Bf=["type"],Vf=Ae(()=>h("label",{for:"showPassword",style:{"margin-left":"5px"}},"Show Password",-1)),Kf={key:0},zf=Ae(()=>h("p",{class:"passStrengthText"},"Very weak",-1)),qf=Ae(()=>h("div",{style:{width:"50px",border:"1px solid red"}},null,-1)),Wf=[zf,qf],Gf={key:1},Jf=Ae(()=>h("p",{class:"passStrengthText"},"Weak",-1)),Yf=Ae(()=>h("div",{style:{width:"100px",border:"1px solid red"}},null,-1)),Qf=[Jf,Yf],Xf={key:2},Zf=Ae(()=>h("p",{class:"passStrengthText"},"Medium",-1)),ed=Ae(()=>h("div",{style:{width:"150px",border:"1px solid orange"}},null,-1)),td=[Zf,ed],nd={key:3},sd=Ae(()=>h("p",{class:"passStrengthText"},"Good",-1)),id=Ae(()=>h("div",{style:{width:"200px",border:"1px solid blue"}},null,-1)),od=[sd,id],rd={key:4},ld=Ae(()=>h("p",{class:"passStrengthText"},"Strong",-1)),ad=Ae(()=>h("div",{style:{width:"250px",border:"1px solid green"}},null,-1)),cd=[ld,ad],ud=Ae(()=>h("h3",{class:"font-size-16 text-left"},"Create a password that:",-1)),fd={key:0,class:"checkMarkIcon"},dd={key:1,class:"crossMarkIcon"},pd={key:0,class:"checkMarkIcon"},hd={key:1,class:"crossMarkIcon"},md={key:0,class:"checkMarkIcon"},gd={key:1,class:"crossMarkIcon"},vd={key:0,class:"checkMarkIcon"},_d={key:1,class:"crossMarkIcon"},yd={key:0,class:"checkMarkIcon"},bd={key:1,class:"crossMarkIcon"},kd=oe({__name:"index",setup(e){const t=K(""),n=K(!1),s=re(()=>t.value.length),i=re(()=>{let c=0;return s.value>=4&&c++,t.value.match(/[a-z]/)&&t.value.match(/[A-Z]/)&&c++,t.value.match(/\d+/)&&c++,t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&c++,s.value>=8&&c++,s.value>=12&&c++,c}),o=re(()=>{let c=!1;return s.value>=8&&(c=!0),c}),r=re(()=>{let c=!1;return t.value.match(/[a-z]+/)!=null&&(c=!0),c}),a=re(()=>{let c=!1;return t.value.match(/[A-Z]+/)!=null&&(c=!0),c}),l=re(()=>{let c=!1;return t.value.match(/[0-9]+/)!=null&&(c=!0),c}),u=re(()=>{let c=!1;return t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&(c=!0),c});return(c,p)=>(O(),F("div",Df,[h("form",null,[de(h("input",{id:"input","onUpdate:modelValue":p[0]||(p[0]=v=>t.value=v),type:n.value?"text":"password",placeholder:"Enter the password",style:{width:"100%"}},null,8,Bf),[[Ra,t.value]]),h("div",null,[h("input",{type:"checkbox",id:"showPassword",onClick:p[1]||(p[1]=v=>n.value=!n.value)}),Vf])]),de(h("div",null,[i.value<=1?(O(),F("div",Kf,Wf)):i.value==2?(O(),F("div",Gf,Qf)):i.value==3?(O(),F("div",Xf,td)):i.value==4?(O(),F("div",nd,od)):(O(),F("div",rd,cd)),ud,h("ul",{class:"text-left",style:Ze([s.value?{"padding-inline-start":"0px !important"}:{"padding-inline-start":"22px !important"}])},[h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[o.value?(O(),F("span",fd,"✓")):o.value==!1?(O(),F("span",dd,"×")):et("",!0),xe(" contains at least 8 characters ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[r.value?(O(),F("span",pd,"✓")):r.value==!1?(O(),F("span",hd,"×")):et("",!0),xe(" contains at least one lowercase letter (a-z) ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[a.value?(O(),F("span",md,"✓")):a.value==!1?(O(),F("span",gd,"×")):et("",!0),xe(" contains at least one uppercase letter (A-Z) ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[l.value?(O(),F("span",vd,"✓")):l.value==!1?(O(),F("span",_d,"×")):et("",!0),xe(" contains at least one number (0-9) ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[u.value?(O(),F("span",yd,"✓")):u.value==!1?(O(),F("span",bd,"×")):et("",!0),xe(" contains at least one number symbol (!,@,#,$,%,^,&,*,?,_,~,-,(,)) ")])],4)],4)],512),[[Jo,t.value!==""]])]))}}),wd=ce(kd,[["__scopeId","data-v-50714ff9"]]),Ed=e=>(Me("data-v-2e98431e"),e=e(),Re(),e),xd={class:"app"},Cd=Ed(()=>h("hr",null,null,-1)),Sd={class:"text-center"},Md={class:"text-center"},Rd=oe({__name:"index",setup(e){const t=K([]),n=K(""),s=K("");function i(){t.value.length==5?s.value="Stack is full":n.value?(t.value.push(n.value),s.value=`${n.value} is pushed into the Stack`,n.value=""):s.value="Please enter value first"}function o(){t.value.length?(s.value=`${t.value.at(-1)} is popped from the Stack`,t.value.pop()):s.value="Stack is empty"}function r(){t.value.length?s.value=`Last element is ${t.value.at(-1)}`:s.value="Stack is empty"}function a(){t.value.length?s.value="Stack is not empty":s.value="Stack is empty"}function l(){t.value.length==5?s.value="Stack is full":s.value="Stack is not full"}function u(){t.value=[],s.value="Your stack is clear"}return(c,p)=>(O(),F("div",xd,[h("div",null,[de(h("input",{"onUpdate:modelValue":p[0]||(p[0]=v=>n.value=v),placeholder:"Enter the value",style:{width:"100%"}},null,512),[[Te,n.value]]),h("div",{class:"action-buttons"},[h("button",{onClick:i},"Push"),h("button",{onClick:o},"Pop"),h("button",{onClick:r},"Peek"),h("button",{onClick:a},"IsEmpty"),h("button",{onClick:l},"IsFull"),h("button",{onClick:u},"Clear All")])]),Cd,h("h4",Sd,ie(s.value),1),h("ul",Md,[(O(!0),F(pe,null,Kt(t.value,(v,k)=>(O(),F("li",{key:k},ie(v),1))),128))])]))}}),Pd=ce(Rd,[["__scopeId","data-v-2e98431e"]]),Td={class:"app"},Ad={class:"button-group"},Id=oe({__name:"index",setup(e){const t=K(""),n={uppers:"QWERTYUIOPASDFGHJKLZXCVBNM",lowers:"qwertyuiopasdfghjklzxcvbnm",numbers:"1234567890",symbols:"!@#$%^&"},s=(o=8)=>{let r="";r+=i(n.uppers),r+=i(n.lowers),r+=i(n.numbers),r+=i(n.symbols);for(let a=r.length;ao.charAt(Math.floor(Math.random()*o.length));return(o,r)=>(O(),F("div",Td,[h("form",null,[de(h("input",{id:"input","onUpdate:modelValue":r[0]||(r[0]=a=>t.value=a),style:{width:"100%"}},null,512),[[Te,t.value]]),h("div",Ad,[h("button",{onClick:r[1]||(r[1]=Fn(a=>s(8),["prevent"]))},"Generate 08 characters password"),h("button",{onClick:r[2]||(r[2]=Fn(a=>s(10),["prevent"]))},"Generate 10 characters password"),h("button",{onClick:r[3]||(r[3]=Fn(a=>s(16),["prevent"]))},"Generate 16 characters password")])])]))}}),Od=ce(Id,[["__scopeId","data-v-1ca79b9f"]]),$d={class:"stopwatch"},Nd={class:"timer"},Ld={class:"flex-center"},Fd=["disabled"],Hd=["disabled"],jd=["disabled"],Ud=oe({__name:"index",setup(e){const t=K({hour:0,min:0,sec:0}),n=K(0),s=()=>{let{hour:l=0,min:u=0,sec:c=0}={...t.value};c<59?c=c+1:(u=u+1,c=0),u===60&&(u=0,l=l+1),t.value={min:u,hour:l,sec:c}},i=()=>{n.value||(n.value=setInterval(s,1e3))},o=()=>{n.value&&(clearInterval(n.value),n.value=0)},r=()=>{clearInterval(n.value),n.value=0,t.value={hour:0,min:0,sec:0}},a=re(()=>{if(!n)return!0;const{hour:l=0,min:u=0,sec:c=0}=t.value;return!(l>0||u>0||c>0)});return(l,u)=>(O(),F("div",$d,[h("div",Nd,[h("span",null,ie(t.value.hour.toString().padStart(2,"0")),1),xe(" :  "),h("span",null,ie(t.value.min.toString().padStart(2,"0")),1),xe("  :  "),h("span",null,ie(t.value.sec.toString().padStart(2,"0")),1)]),h("div",Ld,[h("button",{onClick:i,disabled:!!n.value},"Start",8,Fd),h("button",{onClick:o,disabled:!n.value},"Stop",8,Hd),h("button",{onClick:r,disabled:a.value},"Reset",8,jd)])]))}}),Dd=ce(Ud,[["__scopeId","data-v-2997fb40"]]),cr=e=>(Me("data-v-90b1aadf"),e=e(),Re(),e),Bd={class:"app"},Vd={class:"input-tags"},Kd=cr(()=>h("option",{value:"celsius"},"Celsius",-1)),zd=cr(()=>h("option",{value:"fahrenheit"},"Fahrenheit",-1)),qd=[Kd,zd],Wd={key:0,class:"text-center"},Gd=oe({__name:"index",setup(e){const t=K("celsius"),n=K(0),s=K(null);function i(){t.value==="celsius"?s.value=(n.value*9/5+32).toFixed(3):s.value=((n.value-32)*5/9).toFixed(3)}function o(){s.value!==null&&(s.value=null)}return(r,a)=>(O(),F("div",Bd,[h("div",null,[h("div",Vd,[de(h("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),placeholder:"Enter the value",type:"number"},null,512),[[Te,n.value,void 0,{number:!0}]]),de(h("select",{"onUpdate:modelValue":a[1]||(a[1]=l=>t.value=l),class:"selected-value",onChange:o},qd,544),[[fn,t.value]]),h("button",{onClick:Fn(i,["prevent"])},"Convert")])]),s.value!==null?(O(),F("h4",Wd," Converted Temperature:"+ie(s.value)+ie(t.value=="celsius"?"°C":"°F"),1)):et("",!0)]))}}),Jd=ce(Gd,[["__scopeId","data-v-90b1aadf"]]);function An(e,t){return e.every(n=>n===t)}function Yd(e,t,{row:n,col:s,diagonal:i,reverseDiagonal:o}){if(!t)return new Set;const r=new Set;return n!==!1&&e.forEach((a,l)=>{r.add(n*e.length+l)}),s!==!1&&e.forEach((a,l)=>{r.add(l*e.length+s)}),i&&e.map((a,l)=>a[l]).forEach((a,l)=>{r.add(l*e.length+l)}),o&&e.map((a,l)=>a[e.length-1-l]).forEach((a,l)=>{r.add(l*e.length+e.length-1-l)}),r}function Qd(e,t){const n=e[t.row][t.col],s=An(e[t.row],n),i=An(e.map(u=>u[t.col]),n),o=t.row===t.col&&An(e.map((u,c)=>u[c]),n),r=t.row+t.col===e.length-1&&An(e.map((u,c)=>u[e.length-1-c]),n),a=s||i||o||r,l=Yd(e,a,{row:s&&t.row,col:i&&t.col,diagonal:o,reverseDiagonal:r});return{winner:a&&n,winningPositions:l}}const Xd={class:"grid-container"},Zd=["onClick"],ep={key:0,class:"winner"},tp={key:1,class:"winner"},ct=3,np=oe({__name:"index",setup(e){let t=0;const n=ct*ct,s=["X","O"];let i=0;const o=K(Array.from(Array(ct),()=>new Array(ct).fill(null)));let r;function a(){return(t+1)%s.length}function l(c){const p=Math.floor(c/ct),v=c%ct;o.value[p][v]||r!=null&&r.winner||i===n||(o.value[p][v]=s[t],r=Qd(o.value,{row:p,col:v}),!r.winner&&(i+=1,t=a()))}function u(){o.value=Array.from(Array(ct),()=>new Array(ct).fill(null)),t=0,i=0,r=null}return(c,p)=>{var v;return O(),F(pe,null,[h("div",Xd,[(O(!0),F(pe,null,Kt(o.value.flat(),(k,P)=>{var A,D;return O(),F("button",{class:nt(["grid-item",{inactive:k||((A=se(r))==null?void 0:A.winner),highlight:(D=se(r))==null?void 0:D.winningPositions.has(P)}]),key:P,onClick:L=>l(P)},ie(k),11,Zd)}),128))]),h("button",{onClick:p[0]||(p[0]=k=>u()),class:"reset"},"Reset"),(v=se(r))!=null&&v.winner?(O(),F("p",ep,ie(s[se(t)])+" wins!",1)):se(i)===n?(O(),F("p",tp,"It's a draw!")):et("",!0)],64)}}}),sp=ce(np,[["__scopeId","data-v-1bdda8e8"]]),ip=[{path:"/",component:ru,children:[{path:"/counter",component:fu},{path:"/telephone-formatter",component:gu},{path:"/guess-the-number",component:Pu},{path:"/light-dark-mode",component:Nu},{path:"/table-colorizer",component:zu},{path:"/pagination",component:Zu},{path:"/accordion",component:pf},{path:"/toast-popup",component:Uf},{path:"/password-strength",component:wd},{path:"/stack",component:Pd},{path:"/password-generator",component:Od},{path:"/stopwatch",component:Dd},{path:"/temprature-converter",component:Jd},{path:"/tic-tac-toe",component:sp}]}],op=Fc({history:ec(),routes:ip}),ur=$a(Uc);ur.use(op);ur.mount("#app"); + */const Ft=typeof window<"u";function La(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Q=Object.assign;function ps(e,t){const n={};for(const s in t){const i=t[s];n[s]=je(i)?i.map(e):e(i)}return n}const dn=()=>{},je=Array.isArray,Fa=/\/$/,Ha=e=>e.replace(Fa,"");function hs(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=Ba(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:r}}function ja(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ua(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Gt(t.matched[s],n.matched[i])&&Xo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Gt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Da(e[n],t[n]))return!1;return!0}function Da(e,t){return je(e)?Hi(e,t):je(t)?Hi(t,e):e===t}function Hi(e,t){return je(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Ba(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var yn;(function(e){e.pop="pop",e.push="push"})(yn||(yn={}));var pn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(pn||(pn={}));function Va(e){if(!e)if(Ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ha(e)}const Ka=/^[^#]+#/;function za(e,t){return e.replace(Ka,"#")+t}function qa(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const is=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wa(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=qa(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ji(e,t){return(history.state?history.state.position-t:-1)+e}const Rs=new Map;function Ga(e,t){Rs.set(e,t)}function Ja(e){const t=Rs.get(e);return Rs.delete(e),t}let Ya=()=>location.protocol+"//"+location.host;function Zo(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Fi(l,"")}return Fi(n,e)+s+i}function Qa(e,t,n,s){let i=[],o=[],r=null;const a=({state:v})=>{const k=Zo(e,location),P=n.value,A=t.value;let D=0;if(v){if(n.value=k,t.value=v,r&&r===P){r=null;return}D=A?v.position-A.position:0}else s(k);i.forEach(L=>{L(n.value,P,{delta:D,type:yn.pop,direction:D?D>0?pn.forward:pn.back:pn.unknown})})};function l(){r=n.value}function u(v){i.push(v);const k=()=>{const P=i.indexOf(v);P>-1&&i.splice(P,1)};return o.push(k),k}function c(){const{history:v}=window;v.state&&v.replaceState(Q({},v.state,{scroll:is()}),"")}function p(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:p}}function Ui(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?is():null}}function Xa(e){const{history:t,location:n}=window,s={value:Zo(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const p=e.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+l:Ya()+e+l;try{t[c?"replaceState":"pushState"](u,"",v),i.value=u}catch(k){console.error(k),n[c?"replace":"assign"](v)}}function r(l,u){const c=Q({},t.state,Ui(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),s.value=l}function a(l,u){const c=Q({},i.value,t.state,{forward:l,scroll:is()});o(c.current,c,!0);const p=Q({},Ui(s.value,l,null),{position:c.position+1},u);o(l,p,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function Za(e){e=Va(e);const t=Xa(e),n=Qa(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Q({location:"",base:e,go:s,createHref:za.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ec(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Za(e)}function tc(e){return typeof e=="string"||e&&typeof e=="object"}function er(e){return typeof e=="string"||typeof e=="symbol"}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},tr=Symbol("");var Di;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Di||(Di={}));function Jt(e,t){return Q(new Error,{type:e,[tr]:!0},t)}function Qe(e,t){return e instanceof Error&&tr in e&&(t==null||!!(e.type&t))}const Bi="[^/]+?",nc={sensitive:!1,strict:!1,start:!0,end:!0},sc=/[.+*?^${}()[\]/\\]/g;function ic(e,t){const n=Q({},nc,t),s=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function rc(e,t){let n=0;const s=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const lc={type:0,value:""},ac=/[a-zA-Z0-9_]/;function cc(e){if(!e)return[[]];if(e==="/")return[[lc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(k){throw new Error(`ERR (${n})/"${u}": ${k}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,u="",c="";function p(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;a{r(j)}:dn}function r(c){if(er(c)){const p=s.get(c);p&&(s.delete(c),n.splice(n.indexOf(p),1),p.children.forEach(r),p.alias.forEach(r))}else{const p=n.indexOf(c);p>-1&&(n.splice(p,1),c.record.name&&s.delete(c.record.name),c.children.forEach(r),c.alias.forEach(r))}}function a(){return n}function l(c){let p=0;for(;p=0&&(c.record.path!==n[p].record.path||!nr(c,n[p]));)p++;n.splice(p,0,c),c.record.name&&!zi(c)&&s.set(c.record.name,c)}function u(c,p){let v,k={},P,A;if("name"in c&&c.name){if(v=s.get(c.name),!v)throw Jt(1,{location:c});A=v.record.name,k=Q(Ki(p.params,v.keys.filter(j=>!j.optional).map(j=>j.name)),c.params&&Ki(c.params,v.keys.map(j=>j.name))),P=v.stringify(k)}else if("path"in c)P=c.path,v=n.find(j=>j.re.test(P)),v&&(k=v.parse(P),A=v.record.name);else{if(v=p.name?s.get(p.name):n.find(j=>j.re.test(p.path)),!v)throw Jt(1,{location:c,currentLocation:p});A=v.record.name,k=Q({},p.params,c.params),P=v.stringify(k)}const D=[];let L=v;for(;L;)D.unshift(L.record),L=L.parent;return{name:A,path:P,params:k,matched:D,meta:hc(D)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function Ki(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function dc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function pc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function zi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hc(e){return e.reduce((t,n)=>Q(t,n.meta),{})}function qi(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function nr(e,t){return t.children.some(n=>n===e||nr(e,n))}const sr=/#/g,mc=/&/g,gc=/\//g,vc=/=/g,_c=/\?/g,ir=/\+/g,yc=/%5B/g,bc=/%5D/g,or=/%5E/g,kc=/%60/g,rr=/%7B/g,wc=/%7C/g,lr=/%7D/g,Ec=/%20/g;function Ys(e){return encodeURI(""+e).replace(wc,"|").replace(yc,"[").replace(bc,"]")}function xc(e){return Ys(e).replace(rr,"{").replace(lr,"}").replace(or,"^")}function Ps(e){return Ys(e).replace(ir,"%2B").replace(Ec,"+").replace(sr,"%23").replace(mc,"%26").replace(kc,"`").replace(rr,"{").replace(lr,"}").replace(or,"^")}function Cc(e){return Ps(e).replace(vc,"%3D")}function Sc(e){return Ys(e).replace(sr,"%23").replace(_c,"%3F")}function Mc(e){return e==null?"":Sc(e).replace(gc,"%2F")}function Wn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Rc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Ps(o)):[s&&Ps(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Pc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=je(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const Tc=Symbol(""),Gi=Symbol(""),Qs=Symbol(""),Xs=Symbol(""),Ts=Symbol("");function rn(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ft(e,t,n,s,i){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=p=>{p===!1?a(Jt(4,{from:n,to:t})):p instanceof Error?a(p):tc(p)?a(Jt(2,{from:t,to:p})):(o&&s.enterCallbacks[i]===o&&typeof p=="function"&&o.push(p),r())},u=e.call(s&&s.instances[i],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(p=>a(p))})}function ms(e,t,n,s){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(Ac(a)){const u=(a.__vccOpts||a)[t];u&&i.push(ft(u,n,s,o,r))}else{let l=a();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const c=La(u)?u.default:u;o.components[r]=c;const v=(c.__vccOpts||c)[t];return v&&ft(v,n,s,o,r)()}))}}return i}function Ac(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ji(e){const t=Je(Qs),n=Je(Xs),s=re(()=>t.resolve(se(e.to))),i=re(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],p=n.matched;if(!c||!p.length)return-1;const v=p.findIndex(Gt.bind(null,c));if(v>-1)return v;const k=Yi(l[u-2]);return u>1&&Yi(c)===k&&p[p.length-1].path!==k?p.findIndex(Gt.bind(null,l[u-2])):v}),o=re(()=>i.value>-1&&Nc(n.params,s.value.params)),r=re(()=>i.value>-1&&i.value===n.matched.length-1&&Xo(n.params,s.value.params));function a(l={}){return $c(l)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(dn):Promise.resolve()}return{route:s,href:re(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const Ic=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ji,setup(e,{slots:t}){const n=kn(Ji(e)),{options:s}=Je(Qs),i=re(()=>({[Qi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Qi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Go("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Oc=Ic;function $c(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Nc(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!je(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function Yi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qi=(e,t,n)=>e??t??n,Lc=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Je(Ts),i=re(()=>e.route||s.value),o=Je(Gi,0),r=re(()=>{let u=se(o);const{matched:c}=i.value;let p;for(;(p=c[u])&&!p.components;)u++;return u}),a=re(()=>i.value.matched[r.value]);Nn(Gi,re(()=>r.value+1)),Nn(Tc,a),Nn(Ts,i);const l=K();return ht(()=>[l.value,a.value,e.name],([u,c,p],[v,k,P])=>{c&&(c.instances[p]=u,k&&k!==c&&u&&u===v&&(c.leaveGuards.size||(c.leaveGuards=k.leaveGuards),c.updateGuards.size||(c.updateGuards=k.updateGuards))),u&&c&&(!k||!Gt(c,k)||!v)&&(c.enterCallbacks[p]||[]).forEach(A=>A(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,p=a.value,v=p&&p.components[c];if(!v)return Xi(n.default,{Component:v,route:u});const k=p.props[c],P=k?k===!0?u.params:typeof k=="function"?k(u):k:null,D=Go(v,Q({},P,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(p.instances[c]=null)},ref:l}));return Xi(n.default,{Component:D,route:u})||D}}});function Xi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Zs=Lc;function Fc(e){const t=fc(e.routes,e),n=e.parseQuery||Rc,s=e.stringifyQuery||Wi,i=e.history,o=rn(),r=rn(),a=rn(),l=Wr(at);let u=at;Ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=ps.bind(null,y=>""+y),p=ps.bind(null,Mc),v=ps.bind(null,Wn);function k(y,R){let S,I;return er(y)?(S=t.getRecordMatcher(y),I=R):I=y,t.addRoute(I,S)}function P(y){const R=t.getRecordMatcher(y);R&&t.removeRoute(R)}function A(){return t.getRoutes().map(y=>y.record)}function D(y){return!!t.getRecordMatcher(y)}function L(y,R){if(R=Q({},R||l.value),typeof y=="string"){const m=hs(n,y,R.path),_=t.resolve({path:m.path},R),b=i.createHref(m.fullPath);return Q(m,_,{params:v(_.params),hash:Wn(m.hash),redirectedFrom:void 0,href:b})}let S;if("path"in y)S=Q({},y,{path:hs(n,y.path,R.path).path});else{const m=Q({},y.params);for(const _ in m)m[_]==null&&delete m[_];S=Q({},y,{params:p(m)}),R.params=p(R.params)}const I=t.resolve(S,R),Y=y.hash||"";I.params=c(v(I.params));const f=ja(s,Q({},y,{hash:xc(Y),path:I.path})),d=i.createHref(f);return Q({fullPath:f,hash:Y,query:s===Wi?Pc(y.query):y.query||{}},I,{redirectedFrom:void 0,href:d})}function j(y){return typeof y=="string"?hs(n,y,l.value.path):Q({},y)}function G(y,R){if(u!==y)return Jt(8,{from:R,to:y})}function U(y){return Ie(y)}function ue(y){return U(Q(j(y),{replace:!0}))}function ge(y){const R=y.matched[y.matched.length-1];if(R&&R.redirect){const{redirect:S}=R;let I=typeof S=="function"?S(y):S;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=j(I):{path:I},I.params={}),Q({query:y.query,hash:y.hash,params:"path"in I?{}:y.params},I)}}function Ie(y,R){const S=u=L(y),I=l.value,Y=y.state,f=y.force,d=y.replace===!0,m=ge(S);if(m)return Ie(Q(j(m),{state:typeof m=="object"?Q({},Y,m.state):Y,force:f,replace:d}),R||S);const _=S;_.redirectedFrom=R;let b;return!f&&Ua(s,I,S)&&(b=Jt(16,{to:_,from:I}),Ve(I,I,!0,!1)),(b?Promise.resolve(b):De(_,I)).catch(w=>Qe(w)?Qe(w,2)?w:rt(w):J(w,_,I)).then(w=>{if(w){if(Qe(w,2))return Ie(Q({replace:d},j(w.to),{state:typeof w.to=="object"?Q({},Y,w.to.state):Y,force:f}),R||_)}else w=_t(_,I,!0,d,Y);return ot(_,I,w),w})}function Ue(y,R){const S=G(y,R);return S?Promise.reject(S):Promise.resolve()}function At(y){const R=$t.values().next().value;return R&&typeof R.runWithContext=="function"?R.runWithContext(y):y()}function De(y,R){let S;const[I,Y,f]=Hc(y,R);S=ms(I.reverse(),"beforeRouteLeave",y,R);for(const m of I)m.leaveGuards.forEach(_=>{S.push(ft(_,y,R))});const d=Ue.bind(null,y,R);return S.push(d),ve(S).then(()=>{S=[];for(const m of o.list())S.push(ft(m,y,R));return S.push(d),ve(S)}).then(()=>{S=ms(Y,"beforeRouteUpdate",y,R);for(const m of Y)m.updateGuards.forEach(_=>{S.push(ft(_,y,R))});return S.push(d),ve(S)}).then(()=>{S=[];for(const m of f)if(m.beforeEnter)if(je(m.beforeEnter))for(const _ of m.beforeEnter)S.push(ft(_,y,R));else S.push(ft(m.beforeEnter,y,R));return S.push(d),ve(S)}).then(()=>(y.matched.forEach(m=>m.enterCallbacks={}),S=ms(f,"beforeRouteEnter",y,R),S.push(d),ve(S))).then(()=>{S=[];for(const m of r.list())S.push(ft(m,y,R));return S.push(d),ve(S)}).catch(m=>Qe(m,8)?m:Promise.reject(m))}function ot(y,R,S){a.list().forEach(I=>At(()=>I(y,R,S)))}function _t(y,R,S,I,Y){const f=G(y,R);if(f)return f;const d=R===at,m=Ft?history.state:{};S&&(I||d?i.replace(y.fullPath,Q({scroll:d&&m&&m.scroll},Y)):i.push(y.fullPath,Y)),l.value=y,Ve(y,R,S,d),rt()}let Be;function tn(){Be||(Be=i.listen((y,R,S)=>{if(!En.listening)return;const I=L(y),Y=ge(I);if(Y){Ie(Q(Y,{replace:!0}),I).catch(dn);return}u=I;const f=l.value;Ft&&Ga(ji(f.fullPath,S.delta),is()),De(I,f).catch(d=>Qe(d,12)?d:Qe(d,2)?(Ie(d.to,I).then(m=>{Qe(m,20)&&!S.delta&&S.type===yn.pop&&i.go(-1,!1)}).catch(dn),Promise.reject()):(S.delta&&i.go(-S.delta,!1),J(d,I,f))).then(d=>{d=d||_t(I,f,!1),d&&(S.delta&&!Qe(d,8)?i.go(-S.delta,!1):S.type===yn.pop&&Qe(d,20)&&i.go(-1,!1)),ot(I,f,d)}).catch(dn)}))}let It=rn(),fe=rn(),Z;function J(y,R,S){rt(y);const I=fe.list();return I.length?I.forEach(Y=>Y(y,R,S)):console.error(y),Promise.reject(y)}function Ye(){return Z&&l.value!==at?Promise.resolve():new Promise((y,R)=>{It.add([y,R])})}function rt(y){return Z||(Z=!y,tn(),It.list().forEach(([R,S])=>y?S(y):R()),It.reset()),y}function Ve(y,R,S,I){const{scrollBehavior:Y}=e;if(!Ft||!Y)return Promise.resolve();const f=!S&&Ja(ji(y.fullPath,0))||(I||!S)&&history.state&&history.state.scroll||null;return So().then(()=>Y(y,R,f)).then(d=>d&&Wa(d)).catch(d=>J(d,y,R))}const we=y=>i.go(y);let Ot;const $t=new Set,En={currentRoute:l,listening:!0,addRoute:k,removeRoute:P,hasRoute:D,getRoutes:A,resolve:L,options:e,push:U,replace:ue,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:fe.add,isReady:Ye,install(y){const R=this;y.component("RouterLink",Oc),y.component("RouterView",Zs),y.config.globalProperties.$router=R,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>se(l)}),Ft&&!Ot&&l.value===at&&(Ot=!0,U(i.location).catch(Y=>{}));const S={};for(const Y in at)Object.defineProperty(S,Y,{get:()=>l.value[Y],enumerable:!0});y.provide(Qs,R),y.provide(Xs,vo(S)),y.provide(Ts,l);const I=y.unmount;$t.add(y),y.unmount=function(){$t.delete(y),$t.size<1&&(u=at,Be&&Be(),Be=null,l.value=at,Ot=!1,Z=!1),I()}}};function ve(y){return y.reduce((R,S)=>R.then(()=>At(S)),Promise.resolve())}return En}function Hc(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rGt(u,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(u=>Gt(u,l))||i.push(l))}return[n,s,i]}function jc(){return Je(Xs)}const Uc=oe({__name:"App",setup(e){return(t,n)=>(O(),qs(se(Zs)))}}),Dc="/frontend-mini-challenges/vue/assets/logo-r_4QCHBg.png";var Bc={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/vue/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Vc=e=>(Me("data-v-74cb20e7"),e=e(),Re(),e),Kc={class:"navbar"},zc={class:"left"},qc=["href"],Wc=["href"],Gc=["src"],Jc=Vc(()=>h("div",{class:"right"},[h("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"_blank"},[h("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",class:"github"})])],-1)),Yc=oe({__name:"Navbar",props:{title:{type:String,required:!0}},setup(e){const{VITE_PATH:t,VITE_HOST_URL:n,DEV:s}=Bc,i=s?`${n}${t}/#/vue`:`/${t}/#/vue/`,o=s?`${n}${t}/`:`/${t}/`;return(r,a)=>(O(),F("nav",Kc,[h("div",zc,[h("a",{href:se(i),class:"back"}," < ",8,qc),h("a",{class:"logo",href:se(o)},[h("img",{src:se(Dc),alt:"logo"},null,8,Gc)],8,Wc)]),h("h1",null,ie(e.title),1),Jc]))}}),ce=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Qc=ce(Yc,[["__scopeId","data-v-74cb20e7"]]);var g=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(g||{});const Zi=[g.Easy,g.Medium,g.Hard];function wn(e){return new Map([...e.entries()].sort((t,n)=>{const s=Zi.indexOf(t[1].difficulty),i=Zi.indexOf(n[1].difficulty);return s-i}))}const Xc=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:g.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:g.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[]}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:g.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:g.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:g.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:g.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:g.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);wn(Xc);const Zc=new Map([["counter",{title:"Counter",link:"counter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:g.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:g.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:g.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:g.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:g.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:g.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:g.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:g.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:g.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:g.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:g.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:g.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:g.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:g.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:g.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:g.Medium,developer:"shruti-sen2004",tags:[],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:g.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:g.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:g.Medium,developer:"srijanB7",tags:[]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:g.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:g.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:g.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:g.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["movie-info",{title:"Movie-info app (online)",link:"movie-info/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["quiz-app-with-timer",{title:"Quiz App with Timer",link:"quiz-app-with-timer/",difficulty:g.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}]]);wn(Zc);const eu=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:g.Easy,developer:"Manmit Tiwade",tags:[]}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:g.Easy,developer:"viditagrawal56",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:g.Easy,developer:"Bhushan1019",tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:g.Easy,tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:g.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:g.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:g.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:g.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:g.Easy,developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:g.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:g.Easy,developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"rashidtvmr",tags:[]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:g.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:g.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:g.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"STEPPER",link:"stepper",difficulty:g.Easy,developer:"codechitra",tags:[],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:g.Medium,developer:"liza",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:g.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:g.Medium,developer:"rishabhm05",tags:[]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:g.Medium,developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:g.Medium,developer:"rishabhm05",tags:[]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:g.Medium,developer:"deepu0",tags:[]}],["timeline",{title:"Timeline",link:"timeline",difficulty:g.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:g.Medium,developer:"deepakrajkranti",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:g.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:g.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:g.Medium,developer:"rashidtvmr",tags:[]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:g.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:g.Medium,developer:"AbhilashMadi",tags:[]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:g.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:g.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:g.Hard,developer:"Akshay-Omkar",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:g.Medium,developer:"DeePaK-HeeRaKaRi",tags:[]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:g.Medium,developer:"ayush-dutt-sharma",tags:[]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:g.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:g.Hard,developer:"rishabhm05",tags:[]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:g.Hard,developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:g.Hard,developer:"deepu0",tags:[]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:g.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:g.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:g.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:g.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:g.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:g.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:g.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}]]);wn(eu);const tu=new Map([["counter",{title:"Counter",link:"/counter",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:g.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:g.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:g.Medium,developer:"arpansaha13",tags:[]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:g.Medium,developer:"jaydadhaniya",tags:[]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:g.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:g.Medium,developer:"Shardik04",tags:[]}]]),nu=wn(tu),su=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);wn(su);const iu={class:"challenge-container"},ou=oe({__name:"challenge",setup(e){const t=jc(),n=K("");return ht(t,()=>{const s=t.path.split("/").filter(Boolean).pop();n.value=nu.get(s).title},{immediate:!0}),(s,i)=>(O(),F(pe,null,[he(Qc,{title:n.value},null,8,["title"]),h("div",iu,[he(se(Zs))])],64))}}),ru=ce(ou,[["__scopeId","data-v-a04c5a36"]]),lu=e=>(Me("data-v-348dfed2"),e=e(),Re(),e),au={class:"main"},cu=lu(()=>h("label",{for:"step"},"Increment/Decrement by",-1)),uu=oe({__name:"index",setup(e){const t=K(0),n=K(1),s=()=>{t.value+=n.value},i=()=>{t.value-=n.value},o=()=>{t.value=0};return(r,a)=>(O(),F("main",au,[h("h2",null,ie(t.value),1),h("section",null,[h("button",{onClick:i,"aria-label":"Decrement"}," - "),h("button",{onClick:s,"aria-label":"Increment"}," + ")]),h("section",null,[cu,de(h("input",{type:"number",id:"step","onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),title:"Step value"},null,512),[[Te,n.value]])]),h("section",null,[h("button",{onClick:o},"Reset")])]))}}),fu=ce(uu,[["__scopeId","data-v-348dfed2"]]),du=e=>(Me("data-v-d4985809"),e=e(),Re(),e),pu={class:"container text-center"},hu=du(()=>h("div",null,[h("label",{for:"phone"},"+(123) - 4567890")],-1)),mu=oe({__name:"index",setup(e){const t=K(""),n=s=>s.split("").filter(i=>Number.isInteger(+i)&&i!==" ").join("");return ht(t,s=>{const i=n(s);t.value=i.length>3?"+("+i.substring(0,3)+") - "+i.substring(3):i}),(s,i)=>(O(),F("div",pu,[de(h("input",{type:"tel",id:"phone",maxlength:"16",placeholder:"Mobile number",autocomplete:"off",class:"field","onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o)},null,512),[[Te,t.value]]),hu]))}}),gu=ce(mu,[["__scopeId","data-v-d4985809"]]),os=e=>(Me("data-v-5f86141c"),e=e(),Re(),e),vu={class:"app"},_u=os(()=>h("label",{for:"input"},"Guess a number between 0 and 100",-1)),yu={class:"widget"},bu=["disabled"],ku={class:"hint"},wu={key:0},Eu=os(()=>h("b",null,"Less",-1)),xu={key:1},Cu=os(()=>h("b",null,"Higher",-1)),Su={key:2},Mu=os(()=>h("b",null,"right",-1)),Ru=oe({__name:"index",setup(e){const t=()=>Math.round(100*Math.random()),n=K(t()),s=K(!1),i=K(1),o=K("NONE"),r=l=>{l.preventDefault(),i.valuen.value?o.value="HIGH":(o.value="CORRECT",s.value=!0)},a=()=>{n.value=t(),o.value="NONE",s.value=!1,i.value=1};return(l,u)=>(O(),F("div",vu,[h("form",{onSubmit:r},[_u,de(h("input",{id:"input",type:"number",min:"0",max:"100","onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c),placeholder:"Guess a number"},null,512),[[Te,i.value]]),h("div",yu,[h("button",{type:"button",onClick:a}," Reset "),h("button",{type:"submit",disabled:s.value}," Check ",8,bu)])],32),h("div",ku,[o.value==="LOW"?(O(),F("p",wu,[xe(" Your guess is "),Eu,xe(" than the actual number ")])):o.value==="HIGH"?(O(),F("p",xu,[xe(" Your guess is "),Cu,xe(" than the actual number ")])):o.value==="CORRECT"?(O(),F("p",Su,[xe(" Your guess is "),Mu])):et("",!0)])]))}}),Pu=ce(Ru,[["__scopeId","data-v-5f86141c"]]),Tu=e=>(Me("data-v-cbde5945"),e=e(),Re(),e),Au={class:"content"},Iu=Tu(()=>h("p",{class:"text"},"Toggle the theme and see the change!",-1)),Ou={class:"current-theme"},$u=oe({__name:"index",setup(e){const t=K(!1);return(n,s)=>(O(),F("main",{class:nt(t.value?"dark":"")},[h("div",Au,[Iu,h("button",{type:"button",onClick:s[0]||(s[0]=i=>t.value=!t.value)},"Toggle theme"),h("p",Ou,[xe("Current theme: "),h("span",null,ie(t.value?"Dark":"Light"),1)])])],2))}}),Nu=ce($u,[["__scopeId","data-v-cbde5945"]]),ar=e=>(Me("data-v-3f23bc99"),e=e(),Re(),e),Lu={class:"container"},Fu={class:"input-box"},Hu=ar(()=>h("label",{for:"row-number"},"Row",-1)),ju=["max"],Uu=ar(()=>h("label",{for:"column-number"},"Column",-1)),Du=["max"],Bu={class:"table-box"},Vu={class:"row"},Ku=oe({__name:"index",setup(e){const t=K([[{content:1,colored:!1},{content:2,colored:!1},{content:3,colored:!1}],[{content:4,colored:!1},{content:5,colored:!1},{content:6,colored:!1}],[{content:7,colored:!1},{content:8,colored:!1},{content:9,colored:!1}]]),n=K(1),s=K(1);function i(){const a=n.value-1,l=s.value-1;t.value[a][l].colored=!0}function o(){const a=n.value-1,l=s.value-1;t.value[a][l].colored=!1}function r(){for(const a of t.value)for(const l of a)l.colored=!1}return(a,l)=>(O(),F("main",null,[h("div",Lu,[h("div",Fu,[h("div",null,[Hu,de(h("input",{id:"row-number",type:"number",inputmode:"numeric",min:"0",max:t.value.length,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},null,8,ju),[[Te,n.value]])]),h("div",null,[Uu,de(h("input",{id:"column-number",type:"number",inputmode:"numeric",min:"0",max:t.value[0].length,"onUpdate:modelValue":l[1]||(l[1]=u=>s.value=u)},null,8,Du),[[Te,s.value]])])]),h("div",{class:"button-box"},[h("button",{type:"button",onClick:i},"Color selected cell"),h("button",{type:"button",onClick:o},"Clear selected cell"),h("button",{type:"button",onClick:r},"Clear all cells")]),h("div",Bu,[(O(!0),F(pe,null,Kt(t.value,u=>(O(),F("div",Vu,[(O(!0),F(pe,null,Kt(u,c=>(O(),F("div",{class:nt([c.colored?"colored":"","cell"])},ie(c.content),3))),256))]))),256))])])]))}}),zu=ce(Ku,[["__scopeId","data-v-3f23bc99"]]),qu=e=>(Me("data-v-f7ffadb8"),e=e(),Re(),e),Wu={class:"container"},Gu=qu(()=>h("thead",null,[h("tr",null,[h("th",null,"ID"),h("th",null,"Name")])],-1)),Ju={class:"button-box"},Yu=["disabled"],Qu=["disabled"],kt=5,Xu=oe({__name:"index",setup(e){const t=K([]);for(let l=1;l<=30;l++)t.value.push({id:l,name:"Item "+l});const n=re(()=>t.value.length),s=K(0),i=K(s.value+kt),o=re(()=>t.value.slice(s.value,i.value));function r(){s.value=Math.max(0,s.value-kt),i.value=s.value+kt}function a(){i.value=Math.min(n.value,i.value+kt),s.value=i.value-kt}return(l,u)=>(O(),F("main",null,[h("div",Wu,[h("table",null,[Gu,h("tbody",null,[(O(!0),F(pe,null,Kt(o.value,c=>(O(),F("tr",null,[h("td",null,ie(c.id),1),h("td",null,ie(c.name),1)]))),256))])]),h("div",Ju,[h("button",{type:"button",disabled:s.value===0,onClick:r},"Prev",8,Yu),h("button",{type:"button",disabled:i.value===n.value,onClick:a},"Next",8,Qu)]),h("div",null,[h("p",null,"Showing data from "+ie(s.value)+" to "+ie(i.value),1),h("p",null,"Total: "+ie(n.value),1),h("p",null,"Pages: "+ie(n.value/kt),1),h("p",null,"Rows per page: "+ie(kt))])])]))}}),Zu=ce(Xu,[["__scopeId","data-v-f7ffadb8"]]),ef={class:"accordion"},tf={key:0,class:"panel"},nf=oe({__name:"Accordion",props:{heading:{type:String,required:!0},content:{type:String,required:!0},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,s=t,i=()=>{s("update:model-value",!n.modelValue)};return(o,r)=>(O(),F("div",ef,[h("button",{type:"button",onClick:i},ie(e.heading),1),e.modelValue?(O(),F("div",tf,ie(e.content),1)):et("",!0)]))}}),sf=ce(nf,[["__scopeId","data-v-d917595f"]]),of={class:"container"},rf=oe({__name:"AccordionGroup",props:{data:{type:Array,required:!0},allowMultipleOpen:{type:Boolean,default:!0}},setup(e){const t=e,n=kn(Array(t.data.length).fill(!1)),s=K(null);function i(o,r){!t.allowMultipleOpen&&s.value!==null&&(n[s.value]=!1),s.value=r,n[r]=o}return ht(t,o=>{o.allowMultipleOpen||(n.fill(!1),s.value&&(n[s.value]=!0))}),(o,r)=>(O(),F("div",of,[(O(!0),F(pe,null,Kt(e.data,(a,l)=>(O(),qs(sf,{heading:a.heading,content:a.content,modelValue:n[l],"onUpdate:modelValue":[u=>n[l]=u,u=>i(u,l)]},null,8,["heading","content","modelValue","onUpdate:modelValue"]))),256))]))}}),lf=ce(rf,[["__scopeId","data-v-33bc9952"]]),af=[{heading:"Lorem Ipsum 1",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta eligendi incidunt itaque dolor quis facere, vel animi laboriosam provident ipsum totam tenetur nisi iste asperiores ipsa, officia a tempora distinctio?"},{heading:"Lorem Ipsum 2",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum nam architecto amet alias officia, at consequatur nostrum ea voluptatum ipsam quod minus magnam vitae dicta magni veritatis sint!"},{heading:"Lorem Ipsum 3",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum!"},{heading:"Lorem Ipsum 4",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim assumenda corporis soluta adipisci eius esse recusandae nulla est possimus earum obcaecati exercitationem cum, vel veniam, saepe debitis porro, necessitatibus deserunt. Cumque possimus aspernatur in architecto cum tenetur ea laboriosam, amet sit. Dolore laborum totam soluta quo numquam repellat obcaecati explicabo esse recusandae quibusdam nihil, ratione eaque, error adipisci amet nisi ullam. Dolore provident quas, ratione aut perspiciatis fugiat facilis ex recusandae asperiores porro suscipit et dicta, pariatur minus ab corrupti! Optio pariatur libero modi dolor quaerat eius officia vel, vero assumenda, minima eveniet aspernatur, maiores id mollitia itaque animi fugiat!"}],cf=e=>(Me("data-v-a7dda4e5"),e=e(),Re(),e),uf={class:"checkbox"},ff=cf(()=>h("label",{for:"allow-multiple-open"},"Allow multiple open accordion",-1)),df=oe({__name:"index",setup(e){const t=K(!0);return(n,s)=>(O(),F("main",null,[h("div",uf,[de(h("input",{id:"allow-multiple-open",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=i=>t.value=i)},null,512),[[Yo,t.value]]),ff]),he(lf,{data:se(af),allowMultipleOpen:t.value},null,8,["data","allowMultipleOpen"])]))}}),pf=ce(df,[["__scopeId","data-v-a7dda4e5"]]);var Hn=(e=>(e.LEFT="left",e.RIGHT="right",e))(Hn||{}),jn=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(jn||{}),xt=(e=>(e.INFO="info",e.ERROR="error",e.WARNING="warning",e.SUCCESS="success",e))(xt||{});const hf=e=>(Me("data-v-08953fd9"),e=e(),Re(),e),mf=hf(()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)),gf=[mf],vf=oe({__name:"toast",props:{vertical:{type:String,required:!0},horizontal:{type:String,required:!0},message:{type:String,required:!0},timeout:{type:Number,default:5e3},type:{type:String,default:xt.INFO},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,s=t,i=Xr(n,"modelValue"),o=K(null),r=()=>{o.value!==null&&(clearTimeout(o.value),o.value=null),s("update:model-value",!1)};return ht(i,a=>{a&&(o.value=setTimeout(r,n.timeout))}),(a,l)=>(O(),F("div",{class:nt(["toast-fixed-screen",e.vertical])},[h("div",{class:nt(["toast-container",e.horizontal])},[de(h("div",{class:nt(["toast",e.type])},[h("p",null,ie(e.message),1),h("button",{type:"button",onClick:r},gf)],2),[[Jo,i.value]])],2)],2))}}),_f=ce(vf,[["__scopeId","data-v-08953fd9"]]),en=e=>(Me("data-v-a768b1a7"),e=e(),Re(),e),yf={class:"container"},bf={class:"field"},kf=en(()=>h("label",{for:"horizontal"},"Horizontal position",-1)),wf=["value"],Ef=["value"],xf={class:"field"},Cf=en(()=>h("label",{for:"vertical"},"Vertical position",-1)),Sf=["value"],Mf=["value"],Rf={class:"field"},Pf=en(()=>h("label",{for:"type"},"Toast type",-1)),Tf=["value"],Af=["value"],If=["value"],Of=["value"],$f={class:"field"},Nf=en(()=>h("label",{for:"message"},"Message",-1)),Lf={class:"field"},Ff=en(()=>h("label",{for:"timeout"},"Toast timeout (in milliseconds)",-1)),Hf=en(()=>h("button",{class:"submit"},"Show toast",-1)),jf=oe({__name:"index",setup(e){const t=K(jn.BOTTOM),n=K(Hn.RIGHT),s=K(xt.INFO),i=K("This is a toast!!"),o=K(!1),r=K(5e3),a=l=>{l.preventDefault(),o.value=!0};return(l,u)=>(O(),F("main",null,[h("div",yf,[h("form",{class:"toast-form",onSubmit:a},[h("div",bf,[kf,de(h("select",{name:"horizontal",id:"horizontal","onUpdate:modelValue":u[0]||(u[0]=c=>n.value=c)},[h("option",{value:se(Hn).LEFT},"Left",8,wf),h("option",{value:se(Hn).RIGHT},"Right",8,Ef)],512),[[fn,n.value]])]),h("div",xf,[Cf,de(h("select",{name:"vertical",id:"vertical","onUpdate:modelValue":u[1]||(u[1]=c=>t.value=c)},[h("option",{value:se(jn).TOP},"Top",8,Sf),h("option",{value:se(jn).BOTTOM},"Bottom",8,Mf)],512),[[fn,t.value]])]),h("div",Rf,[Pf,de(h("select",{name:"type",id:"type","onUpdate:modelValue":u[2]||(u[2]=c=>s.value=c)},[h("option",{value:se(xt).INFO},"Info",8,Tf),h("option",{value:se(xt).SUCCESS},"Success",8,Af),h("option",{value:se(xt).ERROR},"Error",8,If),h("option",{value:se(xt).WARNING},"Warning",8,Of)],512),[[fn,s.value]])]),h("div",$f,[Nf,de(h("input",{type:"text",name:"message",id:"message","onUpdate:modelValue":u[3]||(u[3]=c=>i.value=c),maxlength:"40"},null,512),[[Te,i.value]])]),h("div",Lf,[Ff,de(h("input",{type:"number",inputmode:"numeric",name:"timeout",id:"timeout",max:"30000","onUpdate:modelValue":u[4]||(u[4]=c=>r.value=c)},null,512),[[Te,r.value]])]),Hf],32),he(_f,{modelValue:o.value,"onUpdate:modelValue":u[5]||(u[5]=c=>o.value=c),type:s.value,timeout:r.value,horizontal:n.value,vertical:t.value,message:i.value},null,8,["modelValue","type","timeout","horizontal","vertical","message"])])]))}}),Uf=ce(jf,[["__scopeId","data-v-a768b1a7"]]),Ae=e=>(Me("data-v-50714ff9"),e=e(),Re(),e),Df={class:"app"},Bf=["type"],Vf=Ae(()=>h("label",{for:"showPassword",style:{"margin-left":"5px"}},"Show Password",-1)),Kf={key:0},zf=Ae(()=>h("p",{class:"passStrengthText"},"Very weak",-1)),qf=Ae(()=>h("div",{style:{width:"50px",border:"1px solid red"}},null,-1)),Wf=[zf,qf],Gf={key:1},Jf=Ae(()=>h("p",{class:"passStrengthText"},"Weak",-1)),Yf=Ae(()=>h("div",{style:{width:"100px",border:"1px solid red"}},null,-1)),Qf=[Jf,Yf],Xf={key:2},Zf=Ae(()=>h("p",{class:"passStrengthText"},"Medium",-1)),ed=Ae(()=>h("div",{style:{width:"150px",border:"1px solid orange"}},null,-1)),td=[Zf,ed],nd={key:3},sd=Ae(()=>h("p",{class:"passStrengthText"},"Good",-1)),id=Ae(()=>h("div",{style:{width:"200px",border:"1px solid blue"}},null,-1)),od=[sd,id],rd={key:4},ld=Ae(()=>h("p",{class:"passStrengthText"},"Strong",-1)),ad=Ae(()=>h("div",{style:{width:"250px",border:"1px solid green"}},null,-1)),cd=[ld,ad],ud=Ae(()=>h("h3",{class:"font-size-16 text-left"},"Create a password that:",-1)),fd={key:0,class:"checkMarkIcon"},dd={key:1,class:"crossMarkIcon"},pd={key:0,class:"checkMarkIcon"},hd={key:1,class:"crossMarkIcon"},md={key:0,class:"checkMarkIcon"},gd={key:1,class:"crossMarkIcon"},vd={key:0,class:"checkMarkIcon"},_d={key:1,class:"crossMarkIcon"},yd={key:0,class:"checkMarkIcon"},bd={key:1,class:"crossMarkIcon"},kd=oe({__name:"index",setup(e){const t=K(""),n=K(!1),s=re(()=>t.value.length),i=re(()=>{let c=0;return s.value>=4&&c++,t.value.match(/[a-z]/)&&t.value.match(/[A-Z]/)&&c++,t.value.match(/\d+/)&&c++,t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&c++,s.value>=8&&c++,s.value>=12&&c++,c}),o=re(()=>{let c=!1;return s.value>=8&&(c=!0),c}),r=re(()=>{let c=!1;return t.value.match(/[a-z]+/)!=null&&(c=!0),c}),a=re(()=>{let c=!1;return t.value.match(/[A-Z]+/)!=null&&(c=!0),c}),l=re(()=>{let c=!1;return t.value.match(/[0-9]+/)!=null&&(c=!0),c}),u=re(()=>{let c=!1;return t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&(c=!0),c});return(c,p)=>(O(),F("div",Df,[h("form",null,[de(h("input",{id:"input","onUpdate:modelValue":p[0]||(p[0]=v=>t.value=v),type:n.value?"text":"password",placeholder:"Enter the password",style:{width:"100%"}},null,8,Bf),[[Ra,t.value]]),h("div",null,[h("input",{type:"checkbox",id:"showPassword",onClick:p[1]||(p[1]=v=>n.value=!n.value)}),Vf])]),de(h("div",null,[i.value<=1?(O(),F("div",Kf,Wf)):i.value==2?(O(),F("div",Gf,Qf)):i.value==3?(O(),F("div",Xf,td)):i.value==4?(O(),F("div",nd,od)):(O(),F("div",rd,cd)),ud,h("ul",{class:"text-left",style:Ze([s.value?{"padding-inline-start":"0px !important"}:{"padding-inline-start":"22px !important"}])},[h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[o.value?(O(),F("span",fd,"✓")):o.value==!1?(O(),F("span",dd,"×")):et("",!0),xe(" contains at least 8 characters ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[r.value?(O(),F("span",pd,"✓")):r.value==!1?(O(),F("span",hd,"×")):et("",!0),xe(" contains at least one lowercase letter (a-z) ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[a.value?(O(),F("span",md,"✓")):a.value==!1?(O(),F("span",gd,"×")):et("",!0),xe(" contains at least one uppercase letter (A-Z) ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[l.value?(O(),F("span",vd,"✓")):l.value==!1?(O(),F("span",_d,"×")):et("",!0),xe(" contains at least one number (0-9) ")])],4),h("li",{style:Ze([s.value?{"list-style-type":"none"}:""])},[h("div",null,[u.value?(O(),F("span",yd,"✓")):u.value==!1?(O(),F("span",bd,"×")):et("",!0),xe(" contains at least one number symbol (!,@,#,$,%,^,&,*,?,_,~,-,(,)) ")])],4)],4)],512),[[Jo,t.value!==""]])]))}}),wd=ce(kd,[["__scopeId","data-v-50714ff9"]]),Ed=e=>(Me("data-v-2e98431e"),e=e(),Re(),e),xd={class:"app"},Cd=Ed(()=>h("hr",null,null,-1)),Sd={class:"text-center"},Md={class:"text-center"},Rd=oe({__name:"index",setup(e){const t=K([]),n=K(""),s=K("");function i(){t.value.length==5?s.value="Stack is full":n.value?(t.value.push(n.value),s.value=`${n.value} is pushed into the Stack`,n.value=""):s.value="Please enter value first"}function o(){t.value.length?(s.value=`${t.value.at(-1)} is popped from the Stack`,t.value.pop()):s.value="Stack is empty"}function r(){t.value.length?s.value=`Last element is ${t.value.at(-1)}`:s.value="Stack is empty"}function a(){t.value.length?s.value="Stack is not empty":s.value="Stack is empty"}function l(){t.value.length==5?s.value="Stack is full":s.value="Stack is not full"}function u(){t.value=[],s.value="Your stack is clear"}return(c,p)=>(O(),F("div",xd,[h("div",null,[de(h("input",{"onUpdate:modelValue":p[0]||(p[0]=v=>n.value=v),placeholder:"Enter the value",style:{width:"100%"}},null,512),[[Te,n.value]]),h("div",{class:"action-buttons"},[h("button",{onClick:i},"Push"),h("button",{onClick:o},"Pop"),h("button",{onClick:r},"Peek"),h("button",{onClick:a},"IsEmpty"),h("button",{onClick:l},"IsFull"),h("button",{onClick:u},"Clear All")])]),Cd,h("h4",Sd,ie(s.value),1),h("ul",Md,[(O(!0),F(pe,null,Kt(t.value,(v,k)=>(O(),F("li",{key:k},ie(v),1))),128))])]))}}),Pd=ce(Rd,[["__scopeId","data-v-2e98431e"]]),Td={class:"app"},Ad={class:"button-group"},Id=oe({__name:"index",setup(e){const t=K(""),n={uppers:"QWERTYUIOPASDFGHJKLZXCVBNM",lowers:"qwertyuiopasdfghjklzxcvbnm",numbers:"1234567890",symbols:"!@#$%^&"},s=(o=8)=>{let r="";r+=i(n.uppers),r+=i(n.lowers),r+=i(n.numbers),r+=i(n.symbols);for(let a=r.length;ao.charAt(Math.floor(Math.random()*o.length));return(o,r)=>(O(),F("div",Td,[h("form",null,[de(h("input",{id:"input","onUpdate:modelValue":r[0]||(r[0]=a=>t.value=a),style:{width:"100%"}},null,512),[[Te,t.value]]),h("div",Ad,[h("button",{onClick:r[1]||(r[1]=Fn(a=>s(8),["prevent"]))},"Generate 08 characters password"),h("button",{onClick:r[2]||(r[2]=Fn(a=>s(10),["prevent"]))},"Generate 10 characters password"),h("button",{onClick:r[3]||(r[3]=Fn(a=>s(16),["prevent"]))},"Generate 16 characters password")])])]))}}),Od=ce(Id,[["__scopeId","data-v-1ca79b9f"]]),$d={class:"stopwatch"},Nd={class:"timer"},Ld={class:"flex-center"},Fd=["disabled"],Hd=["disabled"],jd=["disabled"],Ud=oe({__name:"index",setup(e){const t=K({hour:0,min:0,sec:0}),n=K(0),s=()=>{let{hour:l=0,min:u=0,sec:c=0}={...t.value};c<59?c=c+1:(u=u+1,c=0),u===60&&(u=0,l=l+1),t.value={min:u,hour:l,sec:c}},i=()=>{n.value||(n.value=setInterval(s,1e3))},o=()=>{n.value&&(clearInterval(n.value),n.value=0)},r=()=>{clearInterval(n.value),n.value=0,t.value={hour:0,min:0,sec:0}},a=re(()=>{if(!n)return!0;const{hour:l=0,min:u=0,sec:c=0}=t.value;return!(l>0||u>0||c>0)});return(l,u)=>(O(),F("div",$d,[h("div",Nd,[h("span",null,ie(t.value.hour.toString().padStart(2,"0")),1),xe(" :  "),h("span",null,ie(t.value.min.toString().padStart(2,"0")),1),xe("  :  "),h("span",null,ie(t.value.sec.toString().padStart(2,"0")),1)]),h("div",Ld,[h("button",{onClick:i,disabled:!!n.value},"Start",8,Fd),h("button",{onClick:o,disabled:!n.value},"Stop",8,Hd),h("button",{onClick:r,disabled:a.value},"Reset",8,jd)])]))}}),Dd=ce(Ud,[["__scopeId","data-v-2997fb40"]]),cr=e=>(Me("data-v-90b1aadf"),e=e(),Re(),e),Bd={class:"app"},Vd={class:"input-tags"},Kd=cr(()=>h("option",{value:"celsius"},"Celsius",-1)),zd=cr(()=>h("option",{value:"fahrenheit"},"Fahrenheit",-1)),qd=[Kd,zd],Wd={key:0,class:"text-center"},Gd=oe({__name:"index",setup(e){const t=K("celsius"),n=K(0),s=K(null);function i(){t.value==="celsius"?s.value=(n.value*9/5+32).toFixed(3):s.value=((n.value-32)*5/9).toFixed(3)}function o(){s.value!==null&&(s.value=null)}return(r,a)=>(O(),F("div",Bd,[h("div",null,[h("div",Vd,[de(h("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),placeholder:"Enter the value",type:"number"},null,512),[[Te,n.value,void 0,{number:!0}]]),de(h("select",{"onUpdate:modelValue":a[1]||(a[1]=l=>t.value=l),class:"selected-value",onChange:o},qd,544),[[fn,t.value]]),h("button",{onClick:Fn(i,["prevent"])},"Convert")])]),s.value!==null?(O(),F("h4",Wd," Converted Temperature:"+ie(s.value)+ie(t.value=="celsius"?"°C":"°F"),1)):et("",!0)]))}}),Jd=ce(Gd,[["__scopeId","data-v-90b1aadf"]]);function An(e,t){return e.every(n=>n===t)}function Yd(e,t,{row:n,col:s,diagonal:i,reverseDiagonal:o}){if(!t)return new Set;const r=new Set;return n!==!1&&e.forEach((a,l)=>{r.add(n*e.length+l)}),s!==!1&&e.forEach((a,l)=>{r.add(l*e.length+s)}),i&&e.map((a,l)=>a[l]).forEach((a,l)=>{r.add(l*e.length+l)}),o&&e.map((a,l)=>a[e.length-1-l]).forEach((a,l)=>{r.add(l*e.length+e.length-1-l)}),r}function Qd(e,t){const n=e[t.row][t.col],s=An(e[t.row],n),i=An(e.map(u=>u[t.col]),n),o=t.row===t.col&&An(e.map((u,c)=>u[c]),n),r=t.row+t.col===e.length-1&&An(e.map((u,c)=>u[e.length-1-c]),n),a=s||i||o||r,l=Yd(e,a,{row:s&&t.row,col:i&&t.col,diagonal:o,reverseDiagonal:r});return{winner:a&&n,winningPositions:l}}const Xd={class:"grid-container"},Zd=["onClick"],ep={key:0,class:"winner"},tp={key:1,class:"winner"},ct=3,np=oe({__name:"index",setup(e){let t=0;const n=ct*ct,s=["X","O"];let i=0;const o=K(Array.from(Array(ct),()=>new Array(ct).fill(null)));let r;function a(){return(t+1)%s.length}function l(c){const p=Math.floor(c/ct),v=c%ct;o.value[p][v]||r!=null&&r.winner||i===n||(o.value[p][v]=s[t],r=Qd(o.value,{row:p,col:v}),!r.winner&&(i+=1,t=a()))}function u(){o.value=Array.from(Array(ct),()=>new Array(ct).fill(null)),t=0,i=0,r=null}return(c,p)=>{var v;return O(),F(pe,null,[h("div",Xd,[(O(!0),F(pe,null,Kt(o.value.flat(),(k,P)=>{var A,D;return O(),F("button",{class:nt(["grid-item",{inactive:k||((A=se(r))==null?void 0:A.winner),highlight:(D=se(r))==null?void 0:D.winningPositions.has(P)}]),key:P,onClick:L=>l(P)},ie(k),11,Zd)}),128))]),h("button",{onClick:p[0]||(p[0]=k=>u()),class:"reset"},"Reset"),(v=se(r))!=null&&v.winner?(O(),F("p",ep,ie(s[se(t)])+" wins!",1)):se(i)===n?(O(),F("p",tp,"It's a draw!")):et("",!0)],64)}}}),sp=ce(np,[["__scopeId","data-v-1bdda8e8"]]),ip=[{path:"/",component:ru,children:[{path:"/counter",component:fu},{path:"/telephone-formatter",component:gu},{path:"/guess-the-number",component:Pu},{path:"/light-dark-mode",component:Nu},{path:"/table-colorizer",component:zu},{path:"/pagination",component:Zu},{path:"/accordion",component:pf},{path:"/toast-popup",component:Uf},{path:"/password-strength",component:wd},{path:"/stack",component:Pd},{path:"/password-generator",component:Od},{path:"/stopwatch",component:Dd},{path:"/temprature-converter",component:Jd},{path:"/tic-tac-toe",component:sp}]}],op=Fc({history:ec(),routes:ip}),ur=$a(Uc);ur.use(op);ur.mount("#app"); diff --git a/docs/vue/index.html b/docs/vue/index.html index 49d58edcf..0c70b4e4f 100644 --- a/docs/vue/index.html +++ b/docs/vue/index.html @@ -15,7 +15,7 @@ name="description" content="Frontend Mini Challenges is a collection of frontend interview coding challenges" /> - +