diff --git a/docs/angular/index.html b/docs/angular/index.html index 3808ccf6..938202e0 100644 --- a/docs/angular/index.html +++ b/docs/angular/index.html @@ -10,5 +10,5 @@ - + diff --git a/docs/angular/main-3GODECS6.js b/docs/angular/main-FGZGZISQ.js similarity index 81% rename from docs/angular/main-3GODECS6.js rename to docs/angular/main-FGZGZISQ.js index 2d34b35d..538a0990 100644 --- a/docs/angular/main-3GODECS6.js +++ b/docs/angular/main-FGZGZISQ.js @@ -1 +1 @@ -import{$ as Gn,$a as sr,A as qe,Aa as z,B as F,Ba as I,C as St,D as $n,E as zn,F as Fn,Fa as Jn,G as j,H as Hn,I as k,Ia as se,Ja as Qn,K as M,L as C,Ma as Xn,N as Bn,Na as er,O as Mt,Oa as B,P as D,Q as b,R as g,Ra as We,S as we,Sa as tr,T as H,Ta as It,Ua as nr,V as Vn,Va as Pt,W as qn,Wa as xt,Xa as rr,Z as kt,Za as Nt,_ as Rt,_a as ir,a as h,aa as Ge,ab as N,b as R,ba as Y,bb as jt,c as xn,ca as Et,cb as Ut,d as Nn,da as Kn,db as Ze,e as vt,ea as Tt,eb as ar,f as yt,fa as Wn,g as W,ga as Ce,h as T,ha as At,i as Z,ia as be,j as x,ja as Ke,jb as or,k as f,kb as Lt,l as ve,la as Zn,lb as lr,m as jn,n as Un,na as Dt,o as w,oa as Se,p as wt,q as A,qa as Ot,r as Ln,ra as Me,s as Ct,sa as $,u as te,v as ne,va as ie,w as ye,x as bt,xa as Yn,y as re,z as _n,za as O}from"./chunk-LTBXVXDY.js";var zt=class extends sr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ft=class n extends zt{static makeCurrent(){ir(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=ci();return i==null?null:ui(i)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ar(document.cookie,e)}},ke=null;function ci(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var di=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ht=new D("EventManagerPlugins"),hr=(()=>{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 M(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b($))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},_t="ng-app-id",pr=(()=>{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=Lt(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[${_t}="${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(_t),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(_t,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)(b(N),b(Tt),b(At,8),b(Ce))},e.\u0275prov=C({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/"},Vt=/%COMP%/g,fr="%COMP%",hi=`_nghost-${fr}`,pi=`_ngcontent-${fr}`,fi=!0,gi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>fi});function mi(n){return pi.replace(Vt,n)}function vi(n){return hi.replace(Vt,n)}function gr(n,e){return e.map(i=>i.replace(Vt,n))}var cr=(()=>{let e=class e{constructor(t,r,s,a,o,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Lt(c),this.defaultRenderer=new Re(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=R(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ee&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:a=new Je(l,d,r,this.appId,p,o,c,v);break;case we.ShadowDom:return new Bt(l,d,t,r,o,c,this.nonce,v);default:a=new Ee(l,d,r,p,o,c,v);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(hr),b(pr),b(Tt),b(gi),b(N),b(Ce),b($),b(At))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Re=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 M(-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&(be.DashCase|be.Important)?e.style.setProperty(i,t,r&be.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&be.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=Nt().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 Bt=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=gr(r.id,r.styles);for(let d of l){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}}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)}},Ee=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?gr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ee{constructor(e,i,t,r,s,a,o,c){let l=r+"-"+t.id;super(e,i,t,s,a,o,c,l),this.contentAttr=mi(l),this.hostAttr=vi(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}},yi=(()=>{let e=class e extends Ye{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)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),dr=["alt","control","meta","shift"],wi={"\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"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{let e=class e extends Ye{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(()=>Nt().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="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),dr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),o+=d+".")}),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=wi[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"),dr.forEach(o=>{if(o!==s){let c=Ci[o];c(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)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function mr(n,e){return rr(h({rootComponent:n},Si(e)))}function Si(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:Ei}}function Mi(){Ft.makeCurrent()}function ki(){return new Dt}function Ri(){return Kn(document),document}var Ei=[{provide:Ce,useValue:or},{provide:Wn,useValue:Mi,multi:!0},{provide:N,useFactory:Ri,deps:[]}];var Ti=[{provide:Gn,useValue:"root"},{provide:Dt,useFactory:ki,deps:[]},{provide:Ht,useClass:yi,multi:!0,deps:[N,$,Ce]},{provide:Ht,useClass:bi,multi:!0,deps:[N]},cr,pr,hr,{provide:Zn,useExisting:cr},{provide:lr,useClass:di,deps:[]},[]];function Ai(){return new qt(b(N))}var qt=(()=>{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)(b(N))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var m="primary",Fe=Symbol("RouteTitle"),Yt=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 ue(n){return new Yt(n)}function Oi(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 Mr(n){return n.length>0?n[n.length-1]:null}function G(n){return jn(n)?n:Jn(n)?x(Promise.resolve(n)):f(n)}var Pi={exact:Rr,subset:Er},kr={exact:xi,subset:Ni,ignored:()=>!0};function vr(n,e,i){return Pi[i.paths](n.root,e.root,i.matrixParams)&&kr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function xi(n,e){return U(n,e)}function Rr(n,e,i){if(!Q(n.segments,e.segments)||!tt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Rr(n.children[t],e.children[t],i))return!1;return!0}function Ni(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Sr(n[i],e[i]))}function Er(n,e,i){return Tr(n,e,e.segments,i)}function Tr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Q(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!Q(n.segments,i)||!tt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Er(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!Q(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Tr(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>kr[i](n[r].parameters,t.parameters))}var V=class{constructor(e=new y([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){return Li.serialize(this)}},y=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 nt(this)}},J=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Dr(this)}};function ji(n,e){return Q(n,e)&&n.every((i,t)=>U(i.parameters,e[t].parameters))}function Q(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function Ui(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===m&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==m&&(i=i.concat(e(r,t)))}),i}var Mn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new it)(),providedIn:"root"});let n=e;return n})(),it=class{parse(e){let i=new Xt(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Te(e.root,!0)}`,t=zi(e.queryParams),r=typeof e.fragment=="string"?`#${_i(e.fragment)}`:"";return`${i}${t}${r}`}},Li=new it;function nt(n){return n.segments.map(e=>Dr(e)).join("/")}function Te(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Te(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Te(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=Ui(n,(t,r)=>r===m?[Te(n.children[m],!1)]:[`${r}:${Te(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Ar(n).replace(/%3B/gi,";")}function _i(n){return encodeURI(n)}function Qt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function yr(n){return rt(n.replace(/\+/g,"%20"))}function Dr(n){return`${Qt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Qt(e)}=${Qt(n[e])}`).join("")}function zi(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Xe(i)}=${Xe(r)}`).join("&"):`${Xe(i)}=${Xe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var Fi=/^[^\/()?;#]+/;function Gt(n){let e=n.match(Fi);return e?e[0]:""}var Hi=/^[^\/()?;=#]+/;function Bi(n){let e=n.match(Hi);return e?e[0]:""}var Vi=/^[^=?&#]+/;function qi(n){let e=n.match(Vi);return e?e[0]:""}var Gi=/^[^&#]+/;function Ki(n){let e=n.match(Gi);return e?e[0]:""}var Xt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],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[m]=new y(e,i)),t}parseSegment(){let e=Gt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new J(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Bi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Gt(this.remaining);r&&(t=r,this.capture(t))}e[rt(i)]=rt(t)}parseQueryParam(e){let i=qi(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=yr(i),s=yr(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=Gt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[m]:new y([],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 M(4011,!1)}};function Or(n){return n.segments.length>0?new y([],{[m]: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===m&&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 y(n.segments,e);return Wi(i)}function Wi(n){if(n.numberOfChildren===1&&n.children[m]){let e=n.children[m];return new y(n.segments.concat(e.segments),e.children)}return n}function de(n){return n instanceof V}function Zi(n,e,i=null,t=null){let r=Pr(n);return xr(r,e,i,t)}function Pr(n){let e;function i(s){let a={};for(let c of s.children){let l=i(c);a[c.outlet]=l}let o=new y(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Or(t);return e??r}function xr(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=Yi(e);if(s.toRoot())return Kt(r,r,new y([],{}),i,t);let a=Ji(s,r,n),o=a.processChildren?Oe(a.segmentGroup,a.index,s.commands):jr(a.segmentGroup,a.index,s.commands);return Kt(r,a.segmentGroup,o,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function xe(n){return typeof n=="object"&&n!=null&&n.outlets}function Kt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let a;n===e?a=i:a=Nr(n,e,i);let o=Or(Ir(a));return new V(o,s,r)}function Nr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Nr(s,e,i)}),new y(n.segments,t)}var at=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new M(4003,!1);let r=t.find(xe);if(r&&r!==Mr(t))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new at(!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(([c,l])=>{o[c]=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,c)=>{c==0&&o==="."||(c==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new at(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Ji(n,e,i){if(n.isAbsolute)return new le(e,!0,0);if(!i)return new le(e,!1,NaN);if(i.parent===null)return new le(i,!0,0);let t=st(n.commands[0])?0:1,r=i.segments.length-1+t;return Qi(i,r,n.numberOfDoubleDots)}function Qi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new M(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function Xi(n){return xe(n[0])?n[0].outlets:{[m]:n}}function jr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Oe(n,e,i);let t=es(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==m)&&n.children[m]&&n.numberOfChildren===1&&n.children[m].segments.length===0){let s=Oe(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=jr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new y(n.segments,r)}}function es(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(xe(o))break;let c=`${o}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Cr(c,l,a))return s;t+=2}else{if(!Cr(c,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function en(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=en(new y([],{}),0,t))}),e}function wr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Cr(n,e,i){return n==i.path&&U(e,i.parameters)}var Ie="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},Ne=class extends P{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}')`}},X=class extends P{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}')`}},q=class extends P{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}')`}},ee=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},je=class extends P{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})`}},ot=class extends P{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})`}},tn=class extends P{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})`}},nn=class extends P{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})`}},rn=class extends P{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})`}},sn=class extends P{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})`}},an=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},on=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ln=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=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||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ue=class{},Le=class{constructor(e){this.url=e}};var hn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pt,this.attachRef=null}},pt=(()=>{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 hn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lt=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=pn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=pn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=fn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return fn(e,this._root).map(i=>i.value)}};function pn(n,e){if(n===e.value)return e;for(let i of e.children){let t=pn(n,i);if(t)return t}return null}function fn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=fn(n,i);if(t.length)return t.unshift(e),t}return[]}var E=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function oe(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var ct=class extends lt{constructor(e,i){super(e),this.snapshot=i,Rn(this,e)}toString(){return this.snapshot.toString()}};function Ur(n,e){let i=ns(n,e),t=new T([new J("",{})]),r=new T({}),s=new T({}),a=new T({}),o=new T(""),c=new he(t,r,a,o,s,m,e,i.root);return c.snapshot=i.root,new ct(new E(c,[]),i)}function ns(n,e){let i={},t={},r={},s="",a=new _e([],i,r,s,t,m,e,null,{});return new ut("",new E(a,[]))}var he=class{constructor(e,i,t,r,s,a,o,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Fe]))??f(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(w(e=>ue(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(e=>ue(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:h(h({},e.params),n.params),data:h(h({},e.data),n.data),resolve:h(h(h(h({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:h(h({},n.data),n._resolvedData??{})},r&&_r(r)&&(t.resolve[Fe]=r.title),t}var _e=class{get title(){return this.data?.[Fe]}constructor(e,i,t,r,s,a,o,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=c,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=ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(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}')`}},ut=class extends lt{constructor(e,i){super(i),this.url=e,Rn(this,i)}toString(){return Lr(this._root)}};function Rn(n,e){e.value._routerState=n,e.children.forEach(i=>Rn(n,i))}function Lr(n){let e=n.children.length>0?` { ${n.children.map(Lr).join(", ")} } `:"";return`${n.value}${e}`}function Wt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,U(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),U(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),U(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gn(n,e){let i=U(n.params,e.params)&&ji(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||gn(n.parent,e.parent))}function _r(n){return typeof n.title=="string"||n.title===null}var He=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=g(pt),this.location=g(Yn),this.changeDetector=g(Ot),this.environmentInjector=g(Ge),this.inputBinder=g(En,{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 M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(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 M(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new mn(t,c,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=Vn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qn]});let n=e;return n})(),mn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===he?this.route:e===pt?this.childContexts:this.parent.get(e,i)}},En=new D("");function rs(n,e,i){let t=$e(n,e._root,i?i._root:void 0);return new ct(t,e)}function $e(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=is(n,e,i);return new E(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=>$e(n,o)),a}}let t=ss(e.value),r=e.children.map(s=>$e(n,s));return new E(t,r)}}function is(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return $e(n,t,r);return $e(n,t)})}function ss(n){return new he(new T(n.url),new T(n.params),new T(n.queryParams),new T(n.fragment),new T(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function zr(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Fr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Fr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function as(n){return Hr(n)&&de(n.url)}function Hr(n){return n&&n[$r]}var os=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["ng-component"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function ls(n,e){return n.providers&&!n._injector&&(n._injector=er(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Tn(n){let e=n.children&&n.children.map(Tn),i=e?R(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=os),i}function L(n){return n.outlet||m}function cs(n,e){let i=n.filter(t=>L(t)===e);return i.push(...n.filter(t=>L(t)!==e)),i}function Be(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)=>w(r=>(new vn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),vn=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),Wt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=oe(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=oe(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=oe(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=oe(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new dn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Wt(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),Wt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=Be(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)}},dt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ce=class{constructor(e,i){this.component=e,this.route=i}};function ds(n,e,i){let t=n._root,r=e?e._root:null;return Ae(t,r,i,[t.value])}function hs(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function fe(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Bn(n)?n:e.get(n):t}function Ae(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=oe(e);return n.children.forEach(a=>{ps(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Pe(o,i.getContext(a),r)),r}function ps(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 c=fs(a,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Ae(n,e,o?o.children:null,t,r):Ae(n,e,i,t,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ce(o.outlet.component,a))}else a&&Pe(e,o,r),r.canActivateChecks.push(new dt(t)),s.component?Ae(n,null,o?o.children:null,t,r):Ae(n,null,i,t,r);return r}function fs(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Q(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Q(n.url,e.url)||!U(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(n,e)||!U(n.queryParams,e.queryParams);case"paramsChange":default:return!gn(n,e)}}function Pe(n,e,i){let t=oe(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?Pe(a,e.children.getContext(s),i):Pe(a,null,i):Pe(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ce(e.outlet.component,r)):i.canDeactivateChecks.push(new ce(null,r)):i.canDeactivateChecks.push(new ce(null,r))}function Ve(n){return typeof n=="function"}function gs(n){return typeof n=="boolean"}function ms(n){return n&&Ve(n.canLoad)}function vs(n){return n&&Ve(n.canActivate)}function ys(n){return n&&Ve(n.canActivateChild)}function ws(n){return n&&Ve(n.canDeactivate)}function Cs(n){return n&&Ve(n.canMatch)}function Br(n){return n instanceof Un||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return j(n=>wt(n.map(e=>e.pipe(re(1),Fn(et)))).pipe(w(e=>{for(let i of e)if(i!==!0){if(i===et)return et;if(i===!1||i instanceof V)return i}return!0}),te(e=>e!==et),re(1)))}function bs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?f(R(h({},i),{guardsResult:!0})):Ss(a,t,r,n).pipe(A(o=>o&&gs(o)?Ms(t,s,n,e):f(o)),w(o=>R(h({},i),{guardsResult:o})))})}function Ss(n,e,i,t){return x(n).pipe(A(r=>As(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>Ln(Rs(r.route.parent,t),ks(r.route,t),Ts(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function ks(n,e){return n!==null&&e&&e(new un(n)),f(!0)}function Rs(n,e){return n!==null&&e&&e(new ln(n)),f(!0)}function Es(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let r=t.map(s=>Ct(()=>{let a=Be(e)??i,o=fe(s,a),c=vs(o)?o.canActivate(e,n):Y(a,()=>o(e,n));return G(c).pipe(F())}));return f(r).pipe(pe())}function Ts(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>hs(a)).filter(a=>a!==null).map(a=>Ct(()=>{let o=a.guards.map(c=>{let l=Be(a.node)??i,d=fe(c,l),p=ys(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return G(p).pipe(F())});return f(o).pipe(pe())}));return f(s).pipe(pe())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let a=s.map(o=>{let c=Be(e)??r,l=fe(o,c),d=ws(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return G(d).pipe(F())});return f(a).pipe(pe())}function Ds(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=ms(o)?o.canLoad(e,i):Y(n,()=>o(e,i));return G(c)});return f(s).pipe(pe(),Vr(t))}function Vr(n){return Nn(k(e=>{if(de(e))throw zr(n,e)}),w(e=>e===!0))}function Os(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=Cs(o)?o.canMatch(e,i):Y(n,()=>o(e,i));return G(c)});return f(s).pipe(pe(),Vr(t))}var ze=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return ve(new ze(n))}function Is(n){return ve(new M(4e3,!1))}function Ps(n){return ve(Fr(!1,3))}var yn=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 f(t);if(r.numberOfChildren>1||!r.children[m])return Is(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ht(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new V(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,c])=>{a[o]=this.createSegmentGroup(e,c,t,r)}),new y(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 M(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}},wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xs(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=ls(e,t),Os(t,e,i,r).pipe(w(a=>a===!0?s:h({},wn)))):f(s)}function An(n,e,i){if(e.path==="**")return Ns(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},wn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Oi)(i,n,e);if(!r)return h({},wn);let s={};Object.entries(r.posParams??{}).forEach(([o,c])=>{s[o]=c.path});let a=r.consumed.length>0?h(h({},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 Ns(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function br(n,e,i,t){return i.length>0&&Ls(n,i,t)?{segmentGroup:new y(e,Us(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&_s(n,i,t)?{segmentGroup:new y(n.segments,js(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function js(n,e,i,t,r){let s={};for(let a of t)if(ft(n,i,a)&&!r[L(a)]){let o=new y([],{});s[L(a)]=o}return h(h({},r),s)}function Us(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&L(t)!==m){let r=new y([],{});i[L(t)]=r}return i}function Ls(n,e,i){return i.some(t=>ft(n,e,t)&&L(t)!==m)}function _s(n,e,i){return i.some(t=>ft(n,e,t))}function ft(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return L(n)!==t&&(t===m||!ft(e,i,n))?!1:An(e,n,i).matched}function zs(n,e,i){return e.length===0&&!n.children[i]}var Cn=class{};function Fs(n,e,i,t,r,s,a="emptyOnly"){return new bn(n,e,i,t,r,a,s).recognize()}var Hs=31,bn=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 yn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=br(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(w(i=>{let t=new _e([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new E(t,i),s=new ut("",r),a=Zi(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,m).pipe(ne(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ze?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=kn(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(w(s=>s instanceof E?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return x(r).pipe(ye(s=>{let a=t.children[s],o=cs(i,s);return this.processSegmentGroup(e,o,a,s)}),zn((s,a)=>(s.push(...a),s)),bt(null),$n(),A(s=>{if(s===null)return ae(t);let a=qr(s);return Bs(a),f(a)}))}processSegment(e,i,t,r,s,a){return x(i).pipe(ye(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(ne(c=>{if(c instanceof ze)return f(null);throw c}))),F(o=>!!o),ne(o=>{if(Br(o))return zs(t,r,s)?f(new Cn):ae(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):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=An(i,r,s);if(!o)return ae(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Hs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(A(v=>this.processSegment(e,t,i,v.concat(d),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=xs(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(j(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(j(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=o,S=new _e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,qs(t),L(t),t.component??t._loadedComponent??null,t,Gs(t)),{segmentGroup:ge,slicedSegments:me}=br(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(K=>K===null?null:new E(S,K)));if(c.length===0&&me.length===0)return f(new E(S,[]));let mt=L(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(K=>new E(S,K instanceof E?[K]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?f({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ds(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(k(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ps(i))):f({routes:[],injector:e})}};function Bs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Vs(n){let e=n.value.routeConfig;return e&&e.path===""}function qr(n){let e=[],i=new Set;for(let t of n){if(!Vs(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=qr(t.children);e.push(new E(t.value,r))}return e.filter(t=>!i.has(t))}function qs(n){return n.data||{}}function Gs(n){return n.resolve||{}}function Ks(n,e,i,t,r,s){return A(a=>Fs(n,e,i,t,a.extractedUrl,r,s).pipe(w(({state:o,tree:c})=>R(h({},a),{targetSnapshot:o,urlAfterRedirects:c}))))}function Ws(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),a=new Set;for(let c of s)if(!a.has(c))for(let l of Gr(c))a.add(l);let o=0;return x(a).pipe(ye(c=>s.has(c)?Zs(c,t,n,e):(c.data=kn(c,c.parent,n).resolve,f(void 0))),k(()=>o++),St(1),A(c=>o===a.size?f(i):Z))})}function Gr(n){let e=n.children.map(i=>Gr(i)).flat();return[n,...e]}function Zs(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!_r(r)&&(s[Fe]=r.title),Ys(s,n,e,t).pipe(w(a=>(n._resolvedData=a,n.data=kn(n,n.parent,i).resolve,null)))}function Ys(n,e,i,t){let r=Jt(n);if(r.length===0)return f({});let s={};return x(r).pipe(A(a=>Js(n[a],e,i,t).pipe(F(),k(o=>{s[a]=o}))),St(1),_n(s),ne(a=>Br(a)?Z:ve(a)))}function Js(n,e,i,t){let r=Be(e)??t,s=fe(n,r),a=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return G(a)}function Zt(n){return j(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(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===m);return r}getResolvedTitleForRoute(t){return t.data[Fe]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(Qs))(),providedIn:"root"});let n=e;return n})(),Qs=(()=>{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)(b(qt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),On=new D("ROUTES"),Xs=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=G(t.loadComponent()).pipe(w(Wr),k(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),qe(()=>{this.componentLoaders.delete(t)})),s=new yt(r,()=>new W).pipe(vt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=ea(r,this.compiler,t,this.onLoadEndListener).pipe(qe(()=>{this.childrenLoaders.delete(r)})),o=new yt(a,()=>new W).pipe(vt());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ea(n,e,i,t){return G(n.loadChildren()).pipe(w(Wr),A(r=>r instanceof Xn||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(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(On,[],{optional:!0,self:!0}).flat()),{routes:a.map(Tn),injector:s}}))}function ta(n){return n&&typeof n=="object"&&"default"in n}function Wr(n){return ta(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(na))(),providedIn:"root"});let n=e;return n})(),na=(()=>{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=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ra=new D("");var ia=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=g(Xs),this.environmentInjector=g(Ge),this.urlSerializer=g(Mn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(En,{optional:!0})!==null,this.titleStrategy=g(Kr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(In),this.createViewTransition=g(ra,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=s=>this.events.next(new an(s)),r=s=>this.events.next(new on(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(R(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new T({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:Ie,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(a=>a.id!==0),w(a=>R(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),j(a=>{this.currentTransition=a;let o=!1,c=!1;return f(a).pipe(k(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?R(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),j(l=>{let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&p!=="reload"){let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(j(v=>{let S=this.transitions?.getValue();return this.events.next(new Ne(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Ks(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),k(v=>{a.targetSnapshot=v.targetSnapshot,a.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=R(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new ot(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(S)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:v,extractedUrl:S,source:ge,restoredState:me,extras:mt}=l,K=new Ne(v,this.urlSerializer.serialize(S),ge,me);this.events.next(K);let ri=Ur(S,this.rootComponentType).snapshot;return this.currentTransition=a=R(h({},l),{targetSnapshot:ri,urlAfterRedirects:S,extras:R(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(a)}else{let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),k(l=>{let d=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=a=R(h({},l),{guards:ds(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),bs(this.environmentInjector,l=>this.events.next(l)),k(l=>{if(a.guardsResult=l.guardsResult,de(l.guardsResult))throw zr(this.urlSerializer,l.guardsResult);let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),te(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Zt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(k(d=>{let p=new rn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),j(d=>{let p=!1;return f(d).pipe(Ws(this.paramsInheritanceStrategy,this.environmentInjector),k({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),k(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Zt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(k(S=>{p.component=S}),w(()=>{})));for(let S of p.children)v.push(...d(S));return v};return wt(d(l.targetSnapshot.root)).pipe(bt(),re(1))}),Zt(()=>this.afterPreactivation()),j(()=>{let{currentSnapshot:l,targetSnapshot:d}=a,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>a)):f(a)}),w(l=>{let d=rs(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=R(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),k(()=>{this.events.next(new Ue)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),re(1),k({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Hn(this.transitionAbortSubject.pipe(k(l=>{throw l}))),qe(()=>{if(!o&&!c){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),ne(l=>{if(c=!0,Hr(l))this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),as(l)?this.events.next(new Le(l.url)):a.resolve(!1);else{this.events.next(new je(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(d){a.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let a=new q(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=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function sa(n){return n!==Ie}var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(oa))(),providedIn:"root"});let n=e;return n})(),Sn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},oa=(()=>{let e=class e extends Sn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Zr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(la))(),providedIn:"root"});let n=e;return n})(),la=(()=>{let e=class e extends Zr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Mn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ur(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 Ne)this.stateMemento=this.createStateMemento();else if(t instanceof ee)this.rawUrlTree=r.initialUrl;else if(t instanceof ot){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Ue?(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 q&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof je?this.restoreHistory(r,!0):t instanceof X&&(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=h(h({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=h(h({},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=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),De=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(De||{});function ca(n,e){n.events.pipe(te(i=>i instanceof X||i instanceof q||i instanceof je||i instanceof ee),w(i=>i instanceof X||i instanceof ee?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),te(i=>i!==De.REDIRECTING),re(1)).subscribe(()=>{e()})}function ua(n){throw n}var da={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ha={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{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=g(We),this.stateManager=g(Zr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ia),this.urlSerializer=g(Mn),this.location=g(Ze),this.urlHandlingStrategy=g(In),this._events=new W,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=g(aa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(On,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(En,{optional:!0}),this.eventsSubscription=new xn,this.isNgZoneEnabled=g($)instanceof $&&$.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 q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof X)this.navigated=!0;else if(r instanceof Le){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||sa(s.source)};this.scheduleNavigation(o,Ie,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}fa(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),Ie,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=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,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(Tn),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:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:o,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Pr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return xr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ie,null,r)}navigate(t,r={skipLocationChange:!1}){return pa(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=h({},da):r===!1?s=h({},ha):s=r,de(t))return vr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return vr(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 c,l,d;o?(c=o.resolve,l=o.reject,d=o.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ca(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function pa(n){for(let e=0;ei.\u0275providers)])}function ma(n){return n.routerState.root}function va(){let n=g(Et);return e=>{let i=n.get(Pt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(ya);n.get(wa)===1&&t.initialNavigation(),n.get(Ca,null,Mt.Optional)?.setUpPreloading(),n.get(ga,null,Mt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ya=new D("",{factory:()=>new W}),wa=new D("",{providedIn:"root",factory:()=>1});var Ca=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Jr=["Easy","Medium","Hard"];function _(n){return new Map([...n.entries()].sort((e,i)=>{let t=Jr.indexOf(e[1].difficulty),r=Jr.indexOf(i[1].difficulty);return t-r}))}var ba=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"Easy",developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:"Easy",developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:"Easy",developer:"officialbidisha",tags:[u.interview],isNew:!0}],["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:[u.interview]}],["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:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:"Medium",developer:"sadanandpai",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:[u.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"Medium",developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:"Medium",developer:"Vivek7038",tags:[],isNew:!0}]]),Sa=_(ba);var Ma=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[u.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:"Easy",developer:"X0rD3v1L",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:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[u.interview]}],["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:[u.interview]}],["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}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["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:[u.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:"Medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[u.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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:[u.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"Medium",developer:"srijanB7",tags:[u.interview]}],["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:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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:[u.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"Medium",developer:"Kei-K23",tags:[u.interview],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:[u.interview]}],["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:[u.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:"Medium",developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["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 (offline)",link:"type-ahead/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}]]),ka=_(Ma);var Ra=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["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:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"Easy",developer:"Bhushan1019",tags:[u.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"Easy",tags:[u.interview]}],["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:[]}],["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:[u.interview]}],["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:[u.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"Easy",developer:"rashidtvmr",tags:[u.interview]}],["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:[u.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"Medium",developer:"liza",tags:[u.interview]}],["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:[u.interview]}],["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:[u.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"Medium",developer:"deepakrajkranti",tags:[u.interview]}],["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:[u.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"Medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"Medium",developer:"AbhilashMadi",tags:[u.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:"Hard",developer:"SujithGunasekaran",tags:[u.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"Hard",developer:"Akshay-Omkar",tags:[u.interview],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:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:"Medium",developer:"ayush-dutt-sharma",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"Hard",developer:"rishabhm05",tags:[u.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["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:[u.interview],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}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}]]),Ea=_(Ra);var Ta=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["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:[u.interview]}],["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:[u.interview]}],["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:[u.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"Medium",developer:"arpansaha13",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"Medium",developer:"jaydadhaniya",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"Medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"Medium",developer:"Shardik04",tags:[u.interview]}]]),Aa=_(Ta);var Da=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["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:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}]]),Pn=_(Da);var Qr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=xt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=xt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/",this.angularSourceCodeBaseURL="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/angular/src/app/challenges/"}ngOnInit(){this.angularSourceCodeURL=this.angularSourceCodeBaseURL+this.link}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[B],decls:26,vars:4,consts:[[1,"challenge-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,"title"],[1,"right"],[1,"responsive_nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],[1,"cross","mobile"],[1,"menu"],["target","_blank","rel","noreferrer","title","Source Code",1,"source-code",3,"href"],["src","assets/icons/code.svg","alt","source code"],[1,"mobile"],["target","blank","title","Github Repo","href","https://github.com/sadanandpai/frontend-mini-challenges/",1,"github"],["src","assets/icons/github.svg","alt","github repo"]],template:function(r,s){r&1&&(O(0,"nav",0)(1,"div",1)(2,"a",2),se(3," < "),z(),O(4,"a",3),I(5,"img",4),z()(),O(6,"h1",5),se(7),z(),O(8,"div",6)(9,"div",7)(10,"div",8),I(11,"input",9)(12,"div",10)(13,"div",10)(14,"div",10),O(15,"div",11),se(16,"\u2715"),z(),O(17,"section",12)(18,"a",13),I(19,"img",14),O(20,"span",15),se(21,"Source code"),z()(),O(22,"a",16),I(23,"img",17),O(24,"span",15),se(25,"Github Repo"),z()()()()()()()),r&2&&(Se(2),ie("href",s.backURL,Ke),Se(2),ie("href",s.homeURL,Ke),Se(3),Qn(s.title),Se(11),ie("href",s.angularSourceCodeURL,Ke))},styles:[".mobile[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:40px}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile[_ngcontent-%COMP%]{display:block}.challenge-navbar[_ngcontent-%COMP%]{padding:1rem 1rem 1rem .5rem}.challenge-navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.25rem}.right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:block;position:relative;margin-left:2rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.cross[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.25rem;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.line[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.cross[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.cross[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var Xr=(()=>{let e=class e{constructor(){this.title="Challenge",this.link="",this.router=g(gt)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=Pn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[B],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(I(0,"app-navbar",0),O(1,"div",1),I(2,"router-outlet"),z()),r&2&&ie("title",s.title)("link",s.link)},dependencies:[Qr,He],encapsulation:2});let n=e;return n})();var ei=[{path:"",component:Xr,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 ti={providers:[Yr(ei),{provide:jt,useClass:Ut}]};var ni=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-root"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He]});let n=e;return n})();mr(ni,ti).catch(n=>console.error(n)); +import{$ as Kn,$a as sr,A as qe,Aa as z,B as F,Ba as I,C as St,D as $n,E as zn,F as Fn,Fa as Jn,G as j,H as Hn,I as k,Ia as se,Ja as Qn,K as M,L as C,Ma as Xn,N as Bn,Na as er,O as Mt,Oa as B,P as D,Q as b,R as g,Ra as We,S as we,Sa as tr,T as H,Ta as It,Ua as nr,V as Vn,Va as Pt,W as qn,Wa as xt,Xa as rr,Z as kt,Za as Nt,_ as Rt,_a as ir,a as h,aa as Ke,ab as N,b as R,ba as Y,bb as jt,c as xn,ca as Et,cb as Ut,d as Nn,da as Gn,db as Ze,e as vt,ea as Tt,eb as ar,f as yt,fa as Wn,g as W,ga as Ce,h as T,ha as At,i as Z,ia as be,j as x,ja as Ge,jb as or,k as f,kb as Lt,l as ve,la as Zn,lb as lr,m as jn,n as Un,na as Dt,o as w,oa as Se,p as wt,q as A,qa as Ot,r as Ln,ra as Me,s as Ct,sa as $,u as te,v as ne,va as ie,w as ye,x as bt,xa as Yn,y as re,z as _n,za as O}from"./chunk-LTBXVXDY.js";var zt=class extends sr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ft=class n extends zt{static makeCurrent(){ir(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=ci();return i==null?null:ui(i)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ar(document.cookie,e)}},ke=null;function ci(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var di=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ht=new D("EventManagerPlugins"),hr=(()=>{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 M(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b($))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},_t="ng-app-id",pr=(()=>{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=Lt(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[${_t}="${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(_t),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(_t,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)(b(N),b(Tt),b(At,8),b(Ce))},e.\u0275prov=C({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/"},Vt=/%COMP%/g,fr="%COMP%",hi=`_nghost-${fr}`,pi=`_ngcontent-${fr}`,fi=!0,gi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>fi});function mi(n){return pi.replace(Vt,n)}function vi(n){return hi.replace(Vt,n)}function gr(n,e){return e.map(i=>i.replace(Vt,n))}var cr=(()=>{let e=class e{constructor(t,r,s,a,o,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Lt(c),this.defaultRenderer=new Re(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=R(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ee&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:a=new Je(l,d,r,this.appId,p,o,c,v);break;case we.ShadowDom:return new Bt(l,d,t,r,o,c,this.nonce,v);default:a=new Ee(l,d,r,p,o,c,v);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(hr),b(pr),b(Tt),b(gi),b(N),b(Ce),b($),b(At))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Re=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 M(-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&(be.DashCase|be.Important)?e.style.setProperty(i,t,r&be.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&be.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=Nt().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 Bt=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=gr(r.id,r.styles);for(let d of l){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}}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)}},Ee=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?gr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ee{constructor(e,i,t,r,s,a,o,c){let l=r+"-"+t.id;super(e,i,t,s,a,o,c,l),this.contentAttr=mi(l),this.hostAttr=vi(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}},yi=(()=>{let e=class e extends Ye{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)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),dr=["alt","control","meta","shift"],wi={"\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"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{let e=class e extends Ye{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(()=>Nt().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="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),dr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),o+=d+".")}),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=wi[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"),dr.forEach(o=>{if(o!==s){let c=Ci[o];c(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)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function mr(n,e){return rr(h({rootComponent:n},Si(e)))}function Si(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:Ei}}function Mi(){Ft.makeCurrent()}function ki(){return new Dt}function Ri(){return Gn(document),document}var Ei=[{provide:Ce,useValue:or},{provide:Wn,useValue:Mi,multi:!0},{provide:N,useFactory:Ri,deps:[]}];var Ti=[{provide:Kn,useValue:"root"},{provide:Dt,useFactory:ki,deps:[]},{provide:Ht,useClass:yi,multi:!0,deps:[N,$,Ce]},{provide:Ht,useClass:bi,multi:!0,deps:[N]},cr,pr,hr,{provide:Zn,useExisting:cr},{provide:lr,useClass:di,deps:[]},[]];function Ai(){return new qt(b(N))}var qt=(()=>{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)(b(N))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var m="primary",Fe=Symbol("RouteTitle"),Yt=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 ue(n){return new Yt(n)}function Oi(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 Mr(n){return n.length>0?n[n.length-1]:null}function K(n){return jn(n)?n:Jn(n)?x(Promise.resolve(n)):f(n)}var Pi={exact:Rr,subset:Er},kr={exact:xi,subset:Ni,ignored:()=>!0};function vr(n,e,i){return Pi[i.paths](n.root,e.root,i.matrixParams)&&kr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function xi(n,e){return U(n,e)}function Rr(n,e,i){if(!Q(n.segments,e.segments)||!tt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Rr(n.children[t],e.children[t],i))return!1;return!0}function Ni(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Sr(n[i],e[i]))}function Er(n,e,i){return Tr(n,e,e.segments,i)}function Tr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Q(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!Q(n.segments,i)||!tt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Er(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!Q(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Tr(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>kr[i](n[r].parameters,t.parameters))}var V=class{constructor(e=new y([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){return Li.serialize(this)}},y=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 nt(this)}},J=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Dr(this)}};function ji(n,e){return Q(n,e)&&n.every((i,t)=>U(i.parameters,e[t].parameters))}function Q(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function Ui(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===m&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==m&&(i=i.concat(e(r,t)))}),i}var Mn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new it)(),providedIn:"root"});let n=e;return n})(),it=class{parse(e){let i=new Xt(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Te(e.root,!0)}`,t=zi(e.queryParams),r=typeof e.fragment=="string"?`#${_i(e.fragment)}`:"";return`${i}${t}${r}`}},Li=new it;function nt(n){return n.segments.map(e=>Dr(e)).join("/")}function Te(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Te(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Te(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=Ui(n,(t,r)=>r===m?[Te(n.children[m],!1)]:[`${r}:${Te(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Ar(n).replace(/%3B/gi,";")}function _i(n){return encodeURI(n)}function Qt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function yr(n){return rt(n.replace(/\+/g,"%20"))}function Dr(n){return`${Qt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Qt(e)}=${Qt(n[e])}`).join("")}function zi(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Xe(i)}=${Xe(r)}`).join("&"):`${Xe(i)}=${Xe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var Fi=/^[^\/()?;#]+/;function Kt(n){let e=n.match(Fi);return e?e[0]:""}var Hi=/^[^\/()?;=#]+/;function Bi(n){let e=n.match(Hi);return e?e[0]:""}var Vi=/^[^=?&#]+/;function qi(n){let e=n.match(Vi);return e?e[0]:""}var Ki=/^[^&#]+/;function Gi(n){let e=n.match(Ki);return e?e[0]:""}var Xt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],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[m]=new y(e,i)),t}parseSegment(){let e=Kt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new J(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Bi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Kt(this.remaining);r&&(t=r,this.capture(t))}e[rt(i)]=rt(t)}parseQueryParam(e){let i=qi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let a=Gi(this.remaining);a&&(t=a,this.capture(t))}let r=yr(i),s=yr(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=Kt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[m]:new y([],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 M(4011,!1)}};function Or(n){return n.segments.length>0?new y([],{[m]: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===m&&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 y(n.segments,e);return Wi(i)}function Wi(n){if(n.numberOfChildren===1&&n.children[m]){let e=n.children[m];return new y(n.segments.concat(e.segments),e.children)}return n}function de(n){return n instanceof V}function Zi(n,e,i=null,t=null){let r=Pr(n);return xr(r,e,i,t)}function Pr(n){let e;function i(s){let a={};for(let c of s.children){let l=i(c);a[c.outlet]=l}let o=new y(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Or(t);return e??r}function xr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Gt(r,r,r,i,t);let s=Yi(e);if(s.toRoot())return Gt(r,r,new y([],{}),i,t);let a=Ji(s,r,n),o=a.processChildren?Oe(a.segmentGroup,a.index,s.commands):jr(a.segmentGroup,a.index,s.commands);return Gt(r,a.segmentGroup,o,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function xe(n){return typeof n=="object"&&n!=null&&n.outlets}function Gt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let a;n===e?a=i:a=Nr(n,e,i);let o=Or(Ir(a));return new V(o,s,r)}function Nr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Nr(s,e,i)}),new y(n.segments,t)}var at=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new M(4003,!1);let r=t.find(xe);if(r&&r!==Mr(t))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new at(!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(([c,l])=>{o[c]=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,c)=>{c==0&&o==="."||(c==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new at(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Ji(n,e,i){if(n.isAbsolute)return new le(e,!0,0);if(!i)return new le(e,!1,NaN);if(i.parent===null)return new le(i,!0,0);let t=st(n.commands[0])?0:1,r=i.segments.length-1+t;return Qi(i,r,n.numberOfDoubleDots)}function Qi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new M(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function Xi(n){return xe(n[0])?n[0].outlets:{[m]:n}}function jr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Oe(n,e,i);let t=es(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==m)&&n.children[m]&&n.numberOfChildren===1&&n.children[m].segments.length===0){let s=Oe(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=jr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new y(n.segments,r)}}function es(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(xe(o))break;let c=`${o}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Cr(c,l,a))return s;t+=2}else{if(!Cr(c,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function en(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=en(new y([],{}),0,t))}),e}function wr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Cr(n,e,i){return n==i.path&&U(e,i.parameters)}var Ie="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},Ne=class extends P{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}')`}},X=class extends P{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}')`}},q=class extends P{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}')`}},ee=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},je=class extends P{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})`}},ot=class extends P{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})`}},tn=class extends P{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})`}},nn=class extends P{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})`}},rn=class extends P{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})`}},sn=class extends P{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})`}},an=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},on=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ln=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=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||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ue=class{},Le=class{constructor(e){this.url=e}};var hn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pt,this.attachRef=null}},pt=(()=>{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 hn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lt=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=pn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=pn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=fn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return fn(e,this._root).map(i=>i.value)}};function pn(n,e){if(n===e.value)return e;for(let i of e.children){let t=pn(n,i);if(t)return t}return null}function fn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=fn(n,i);if(t.length)return t.unshift(e),t}return[]}var E=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function oe(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var ct=class extends lt{constructor(e,i){super(e),this.snapshot=i,Rn(this,e)}toString(){return this.snapshot.toString()}};function Ur(n,e){let i=ns(n,e),t=new T([new J("",{})]),r=new T({}),s=new T({}),a=new T({}),o=new T(""),c=new he(t,r,a,o,s,m,e,i.root);return c.snapshot=i.root,new ct(new E(c,[]),i)}function ns(n,e){let i={},t={},r={},s="",a=new _e([],i,r,s,t,m,e,null,{});return new ut("",new E(a,[]))}var he=class{constructor(e,i,t,r,s,a,o,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Fe]))??f(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(w(e=>ue(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(e=>ue(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:h(h({},e.params),n.params),data:h(h({},e.data),n.data),resolve:h(h(h(h({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:h(h({},n.data),n._resolvedData??{})},r&&_r(r)&&(t.resolve[Fe]=r.title),t}var _e=class{get title(){return this.data?.[Fe]}constructor(e,i,t,r,s,a,o,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=c,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=ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(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}')`}},ut=class extends lt{constructor(e,i){super(i),this.url=e,Rn(this,i)}toString(){return Lr(this._root)}};function Rn(n,e){e.value._routerState=n,e.children.forEach(i=>Rn(n,i))}function Lr(n){let e=n.children.length>0?` { ${n.children.map(Lr).join(", ")} } `:"";return`${n.value}${e}`}function Wt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,U(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),U(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),U(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gn(n,e){let i=U(n.params,e.params)&&ji(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||gn(n.parent,e.parent))}function _r(n){return typeof n.title=="string"||n.title===null}var He=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=g(pt),this.location=g(Yn),this.changeDetector=g(Ot),this.environmentInjector=g(Ke),this.inputBinder=g(En,{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 M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(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 M(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new mn(t,c,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=Vn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qn]});let n=e;return n})(),mn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===he?this.route:e===pt?this.childContexts:this.parent.get(e,i)}},En=new D("");function rs(n,e,i){let t=$e(n,e._root,i?i._root:void 0);return new ct(t,e)}function $e(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=is(n,e,i);return new E(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=>$e(n,o)),a}}let t=ss(e.value),r=e.children.map(s=>$e(n,s));return new E(t,r)}}function is(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return $e(n,t,r);return $e(n,t)})}function ss(n){return new he(new T(n.url),new T(n.params),new T(n.queryParams),new T(n.fragment),new T(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function zr(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Fr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Fr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function as(n){return Hr(n)&&de(n.url)}function Hr(n){return n&&n[$r]}var os=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["ng-component"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function ls(n,e){return n.providers&&!n._injector&&(n._injector=er(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Tn(n){let e=n.children&&n.children.map(Tn),i=e?R(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=os),i}function L(n){return n.outlet||m}function cs(n,e){let i=n.filter(t=>L(t)===e);return i.push(...n.filter(t=>L(t)!==e)),i}function Be(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)=>w(r=>(new vn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),vn=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),Wt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=oe(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=oe(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=oe(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=oe(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new dn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Wt(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),Wt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=Be(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)}},dt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ce=class{constructor(e,i){this.component=e,this.route=i}};function ds(n,e,i){let t=n._root,r=e?e._root:null;return Ae(t,r,i,[t.value])}function hs(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function fe(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Bn(n)?n:e.get(n):t}function Ae(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=oe(e);return n.children.forEach(a=>{ps(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Pe(o,i.getContext(a),r)),r}function ps(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 c=fs(a,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Ae(n,e,o?o.children:null,t,r):Ae(n,e,i,t,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ce(o.outlet.component,a))}else a&&Pe(e,o,r),r.canActivateChecks.push(new dt(t)),s.component?Ae(n,null,o?o.children:null,t,r):Ae(n,null,i,t,r);return r}function fs(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Q(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Q(n.url,e.url)||!U(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(n,e)||!U(n.queryParams,e.queryParams);case"paramsChange":default:return!gn(n,e)}}function Pe(n,e,i){let t=oe(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?Pe(a,e.children.getContext(s),i):Pe(a,null,i):Pe(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ce(e.outlet.component,r)):i.canDeactivateChecks.push(new ce(null,r)):i.canDeactivateChecks.push(new ce(null,r))}function Ve(n){return typeof n=="function"}function gs(n){return typeof n=="boolean"}function ms(n){return n&&Ve(n.canLoad)}function vs(n){return n&&Ve(n.canActivate)}function ys(n){return n&&Ve(n.canActivateChild)}function ws(n){return n&&Ve(n.canDeactivate)}function Cs(n){return n&&Ve(n.canMatch)}function Br(n){return n instanceof Un||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return j(n=>wt(n.map(e=>e.pipe(re(1),Fn(et)))).pipe(w(e=>{for(let i of e)if(i!==!0){if(i===et)return et;if(i===!1||i instanceof V)return i}return!0}),te(e=>e!==et),re(1)))}function bs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?f(R(h({},i),{guardsResult:!0})):Ss(a,t,r,n).pipe(A(o=>o&&gs(o)?Ms(t,s,n,e):f(o)),w(o=>R(h({},i),{guardsResult:o})))})}function Ss(n,e,i,t){return x(n).pipe(A(r=>As(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>Ln(Rs(r.route.parent,t),ks(r.route,t),Ts(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function ks(n,e){return n!==null&&e&&e(new un(n)),f(!0)}function Rs(n,e){return n!==null&&e&&e(new ln(n)),f(!0)}function Es(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let r=t.map(s=>Ct(()=>{let a=Be(e)??i,o=fe(s,a),c=vs(o)?o.canActivate(e,n):Y(a,()=>o(e,n));return K(c).pipe(F())}));return f(r).pipe(pe())}function Ts(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>hs(a)).filter(a=>a!==null).map(a=>Ct(()=>{let o=a.guards.map(c=>{let l=Be(a.node)??i,d=fe(c,l),p=ys(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return K(p).pipe(F())});return f(o).pipe(pe())}));return f(s).pipe(pe())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let a=s.map(o=>{let c=Be(e)??r,l=fe(o,c),d=ws(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return K(d).pipe(F())});return f(a).pipe(pe())}function Ds(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=ms(o)?o.canLoad(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}function Vr(n){return Nn(k(e=>{if(de(e))throw zr(n,e)}),w(e=>e===!0))}function Os(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=Cs(o)?o.canMatch(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}var ze=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return ve(new ze(n))}function Is(n){return ve(new M(4e3,!1))}function Ps(n){return ve(Fr(!1,3))}var yn=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 f(t);if(r.numberOfChildren>1||!r.children[m])return Is(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ht(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new V(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,c])=>{a[o]=this.createSegmentGroup(e,c,t,r)}),new y(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 M(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}},wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xs(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=ls(e,t),Os(t,e,i,r).pipe(w(a=>a===!0?s:h({},wn)))):f(s)}function An(n,e,i){if(e.path==="**")return Ns(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},wn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Oi)(i,n,e);if(!r)return h({},wn);let s={};Object.entries(r.posParams??{}).forEach(([o,c])=>{s[o]=c.path});let a=r.consumed.length>0?h(h({},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 Ns(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function br(n,e,i,t){return i.length>0&&Ls(n,i,t)?{segmentGroup:new y(e,Us(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&_s(n,i,t)?{segmentGroup:new y(n.segments,js(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function js(n,e,i,t,r){let s={};for(let a of t)if(ft(n,i,a)&&!r[L(a)]){let o=new y([],{});s[L(a)]=o}return h(h({},r),s)}function Us(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&L(t)!==m){let r=new y([],{});i[L(t)]=r}return i}function Ls(n,e,i){return i.some(t=>ft(n,e,t)&&L(t)!==m)}function _s(n,e,i){return i.some(t=>ft(n,e,t))}function ft(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return L(n)!==t&&(t===m||!ft(e,i,n))?!1:An(e,n,i).matched}function zs(n,e,i){return e.length===0&&!n.children[i]}var Cn=class{};function Fs(n,e,i,t,r,s,a="emptyOnly"){return new bn(n,e,i,t,r,a,s).recognize()}var Hs=31,bn=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 yn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=br(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(w(i=>{let t=new _e([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new E(t,i),s=new ut("",r),a=Zi(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,m).pipe(ne(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ze?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=kn(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(w(s=>s instanceof E?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return x(r).pipe(ye(s=>{let a=t.children[s],o=cs(i,s);return this.processSegmentGroup(e,o,a,s)}),zn((s,a)=>(s.push(...a),s)),bt(null),$n(),A(s=>{if(s===null)return ae(t);let a=qr(s);return Bs(a),f(a)}))}processSegment(e,i,t,r,s,a){return x(i).pipe(ye(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(ne(c=>{if(c instanceof ze)return f(null);throw c}))),F(o=>!!o),ne(o=>{if(Br(o))return zs(t,r,s)?f(new Cn):ae(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):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=An(i,r,s);if(!o)return ae(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Hs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(A(v=>this.processSegment(e,t,i,v.concat(d),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=xs(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(j(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(j(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=o,S=new _e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,qs(t),L(t),t.component??t._loadedComponent??null,t,Ks(t)),{segmentGroup:ge,slicedSegments:me}=br(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(G=>G===null?null:new E(S,G)));if(c.length===0&&me.length===0)return f(new E(S,[]));let mt=L(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(G=>new E(S,G instanceof E?[G]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?f({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ds(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(k(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ps(i))):f({routes:[],injector:e})}};function Bs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Vs(n){let e=n.value.routeConfig;return e&&e.path===""}function qr(n){let e=[],i=new Set;for(let t of n){if(!Vs(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=qr(t.children);e.push(new E(t.value,r))}return e.filter(t=>!i.has(t))}function qs(n){return n.data||{}}function Ks(n){return n.resolve||{}}function Gs(n,e,i,t,r,s){return A(a=>Fs(n,e,i,t,a.extractedUrl,r,s).pipe(w(({state:o,tree:c})=>R(h({},a),{targetSnapshot:o,urlAfterRedirects:c}))))}function Ws(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),a=new Set;for(let c of s)if(!a.has(c))for(let l of Kr(c))a.add(l);let o=0;return x(a).pipe(ye(c=>s.has(c)?Zs(c,t,n,e):(c.data=kn(c,c.parent,n).resolve,f(void 0))),k(()=>o++),St(1),A(c=>o===a.size?f(i):Z))})}function Kr(n){let e=n.children.map(i=>Kr(i)).flat();return[n,...e]}function Zs(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!_r(r)&&(s[Fe]=r.title),Ys(s,n,e,t).pipe(w(a=>(n._resolvedData=a,n.data=kn(n,n.parent,i).resolve,null)))}function Ys(n,e,i,t){let r=Jt(n);if(r.length===0)return f({});let s={};return x(r).pipe(A(a=>Js(n[a],e,i,t).pipe(F(),k(o=>{s[a]=o}))),St(1),_n(s),ne(a=>Br(a)?Z:ve(a)))}function Js(n,e,i,t){let r=Be(e)??t,s=fe(n,r),a=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return K(a)}function Zt(n){return j(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(e)})}var Gr=(()=>{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===m);return r}getResolvedTitleForRoute(t){return t.data[Fe]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(Qs))(),providedIn:"root"});let n=e;return n})(),Qs=(()=>{let e=class e extends Gr{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)(b(qt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),On=new D("ROUTES"),Xs=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=K(t.loadComponent()).pipe(w(Wr),k(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),qe(()=>{this.componentLoaders.delete(t)})),s=new yt(r,()=>new W).pipe(vt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=ea(r,this.compiler,t,this.onLoadEndListener).pipe(qe(()=>{this.childrenLoaders.delete(r)})),o=new yt(a,()=>new W).pipe(vt());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ea(n,e,i,t){return K(n.loadChildren()).pipe(w(Wr),A(r=>r instanceof Xn||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(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(On,[],{optional:!0,self:!0}).flat()),{routes:a.map(Tn),injector:s}}))}function ta(n){return n&&typeof n=="object"&&"default"in n}function Wr(n){return ta(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(na))(),providedIn:"root"});let n=e;return n})(),na=(()=>{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=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ra=new D("");var ia=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=g(Xs),this.environmentInjector=g(Ke),this.urlSerializer=g(Mn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(En,{optional:!0})!==null,this.titleStrategy=g(Gr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(In),this.createViewTransition=g(ra,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=s=>this.events.next(new an(s)),r=s=>this.events.next(new on(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(R(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new T({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:Ie,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(a=>a.id!==0),w(a=>R(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),j(a=>{this.currentTransition=a;let o=!1,c=!1;return f(a).pipe(k(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?R(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),j(l=>{let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&p!=="reload"){let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(j(v=>{let S=this.transitions?.getValue();return this.events.next(new Ne(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Gs(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),k(v=>{a.targetSnapshot=v.targetSnapshot,a.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=R(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new ot(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(S)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:v,extractedUrl:S,source:ge,restoredState:me,extras:mt}=l,G=new Ne(v,this.urlSerializer.serialize(S),ge,me);this.events.next(G);let ri=Ur(S,this.rootComponentType).snapshot;return this.currentTransition=a=R(h({},l),{targetSnapshot:ri,urlAfterRedirects:S,extras:R(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(a)}else{let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),k(l=>{let d=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=a=R(h({},l),{guards:ds(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),bs(this.environmentInjector,l=>this.events.next(l)),k(l=>{if(a.guardsResult=l.guardsResult,de(l.guardsResult))throw zr(this.urlSerializer,l.guardsResult);let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),te(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Zt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(k(d=>{let p=new rn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),j(d=>{let p=!1;return f(d).pipe(Ws(this.paramsInheritanceStrategy,this.environmentInjector),k({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),k(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Zt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(k(S=>{p.component=S}),w(()=>{})));for(let S of p.children)v.push(...d(S));return v};return wt(d(l.targetSnapshot.root)).pipe(bt(),re(1))}),Zt(()=>this.afterPreactivation()),j(()=>{let{currentSnapshot:l,targetSnapshot:d}=a,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>a)):f(a)}),w(l=>{let d=rs(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=R(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),k(()=>{this.events.next(new Ue)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),re(1),k({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Hn(this.transitionAbortSubject.pipe(k(l=>{throw l}))),qe(()=>{if(!o&&!c){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),ne(l=>{if(c=!0,Hr(l))this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),as(l)?this.events.next(new Le(l.url)):a.resolve(!1);else{this.events.next(new je(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(d){a.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let a=new q(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=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function sa(n){return n!==Ie}var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(oa))(),providedIn:"root"});let n=e;return n})(),Sn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},oa=(()=>{let e=class e extends Sn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Zr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(la))(),providedIn:"root"});let n=e;return n})(),la=(()=>{let e=class e extends Zr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Mn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ur(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 Ne)this.stateMemento=this.createStateMemento();else if(t instanceof ee)this.rawUrlTree=r.initialUrl;else if(t instanceof ot){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Ue?(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 q&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof je?this.restoreHistory(r,!0):t instanceof X&&(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=h(h({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=h(h({},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=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),De=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(De||{});function ca(n,e){n.events.pipe(te(i=>i instanceof X||i instanceof q||i instanceof je||i instanceof ee),w(i=>i instanceof X||i instanceof ee?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),te(i=>i!==De.REDIRECTING),re(1)).subscribe(()=>{e()})}function ua(n){throw n}var da={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ha={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{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=g(We),this.stateManager=g(Zr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ia),this.urlSerializer=g(Mn),this.location=g(Ze),this.urlHandlingStrategy=g(In),this._events=new W,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=g(aa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(On,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(En,{optional:!0}),this.eventsSubscription=new xn,this.isNgZoneEnabled=g($)instanceof $&&$.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 q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof X)this.navigated=!0;else if(r instanceof Le){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||sa(s.source)};this.scheduleNavigation(o,Ie,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}fa(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),Ie,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=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,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(Tn),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:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:o,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Pr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return xr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ie,null,r)}navigate(t,r={skipLocationChange:!1}){return pa(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=h({},da):r===!1?s=h({},ha):s=r,de(t))return vr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return vr(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 c,l,d;o?(c=o.resolve,l=o.reject,d=o.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ca(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function pa(n){for(let e=0;ei.\u0275providers)])}function ma(n){return n.routerState.root}function va(){let n=g(Et);return e=>{let i=n.get(Pt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(ya);n.get(wa)===1&&t.initialNavigation(),n.get(Ca,null,Mt.Optional)?.setUpPreloading(),n.get(ga,null,Mt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ya=new D("",{factory:()=>new W}),wa=new D("",{providedIn:"root",factory:()=>1});var Ca=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Jr=["Easy","Medium","Hard"];function _(n){return new Map([...n.entries()].sort((e,i)=>{let t=Jr.indexOf(e[1].difficulty),r=Jr.indexOf(i[1].difficulty);return t-r}))}var ba=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"Easy",developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:"Easy",developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:"Easy",developer:"officialbidisha",tags:[u.interview],isNew:!0}],["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:[u.interview]}],["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:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:"Medium",developer:"sadanandpai",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:[u.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"Medium",developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:"Medium",developer:"Vivek7038",tags:[],isNew:!0}]]),Sa=_(ba);var Ma=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[u.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:"Easy",developer:"X0rD3v1L",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:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[u.interview]}],["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:[u.interview]}],["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}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["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:[u.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:"Medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[u.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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:[u.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"Medium",developer:"srijanB7",tags:[u.interview]}],["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:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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:[u.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"Medium",developer:"Kei-K23",tags:[u.interview],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:[u.interview]}],["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:[u.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:"Medium",developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["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 (offline)",link:"type-ahead/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}]]),ka=_(Ma);var Ra=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["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:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"Easy",developer:"Bhushan1019",tags:[u.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"Easy",tags:[u.interview]}],["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:[]}],["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-number",{title:"Guess the number",link:"guess-number",difficulty:"Easy",developer:"deepakrajkranti",tags:[u.interview]}],["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:[u.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"Easy",developer:"rashidtvmr",tags:[u.interview]}],["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:[u.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"Medium",developer:"liza",tags:[u.interview]}],["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:[u.interview]}],["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:[u.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"Medium",developer:"deepakrajkranti",tags:[u.interview]}],["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:[u.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"Medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"Medium",developer:"AbhilashMadi",tags:[u.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["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-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:"Hard",developer:"SujithGunasekaran",tags:[u.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"Hard",developer:"Akshay-Omkar",tags:[u.interview],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:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:"Medium",developer:"ayush-dutt-sharma",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"Hard",developer:"rishabhm05",tags:[u.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["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:[u.interview],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}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}]]),Ea=_(Ra);var Ta=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["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:[u.interview]}],["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:[u.interview]}],["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:[u.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"Medium",developer:"arpansaha13",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"Medium",developer:"jaydadhaniya",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"Medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"Medium",developer:"Shardik04",tags:[u.interview]}]]),Aa=_(Ta);var Da=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["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:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}]]),Pn=_(Da);var Qr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=xt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=xt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/",this.angularSourceCodeBaseURL="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/angular/src/app/challenges/"}ngOnInit(){this.angularSourceCodeURL=this.angularSourceCodeBaseURL+this.link}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[B],decls:26,vars:4,consts:[[1,"challenge-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,"title"],[1,"right"],[1,"responsive_nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],[1,"cross","mobile"],[1,"menu"],["target","_blank","rel","noreferrer","title","Source Code",1,"source-code",3,"href"],["src","assets/icons/code.svg","alt","source code"],[1,"mobile"],["target","blank","title","Github Repo","href","https://github.com/sadanandpai/frontend-mini-challenges/",1,"github"],["src","assets/icons/github.svg","alt","github repo"]],template:function(r,s){r&1&&(O(0,"nav",0)(1,"div",1)(2,"a",2),se(3," < "),z(),O(4,"a",3),I(5,"img",4),z()(),O(6,"h1",5),se(7),z(),O(8,"div",6)(9,"div",7)(10,"div",8),I(11,"input",9)(12,"div",10)(13,"div",10)(14,"div",10),O(15,"div",11),se(16,"\u2715"),z(),O(17,"section",12)(18,"a",13),I(19,"img",14),O(20,"span",15),se(21,"Source code"),z()(),O(22,"a",16),I(23,"img",17),O(24,"span",15),se(25,"Github Repo"),z()()()()()()()),r&2&&(Se(2),ie("href",s.backURL,Ge),Se(2),ie("href",s.homeURL,Ge),Se(3),Qn(s.title),Se(11),ie("href",s.angularSourceCodeURL,Ge))},styles:[".mobile[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:40px}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile[_ngcontent-%COMP%]{display:block}.challenge-navbar[_ngcontent-%COMP%]{padding:1rem 1rem 1rem .5rem}.challenge-navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.25rem}.right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:block;position:relative;margin-left:2rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.cross[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.25rem;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.line[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.cross[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.cross[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var Xr=(()=>{let e=class e{constructor(){this.title="Challenge",this.link="",this.router=g(gt)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=Pn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[B],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(I(0,"app-navbar",0),O(1,"div",1),I(2,"router-outlet"),z()),r&2&&ie("title",s.title)("link",s.link)},dependencies:[Qr,He],encapsulation:2});let n=e;return n})();var ei=[{path:"",component:Xr,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 ti={providers:[Yr(ei),{provide:jt,useClass:Ut}]};var ni=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-root"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He]});let n=e;return n})();mr(ni,ti).catch(n=>console.error(n)); diff --git a/docs/assets/index-bkuO9Ze9.js b/docs/assets/index-vUVQ9_PY.js similarity index 96% rename from docs/assets/index-bkuO9Ze9.js rename to docs/assets/index-vUVQ9_PY.js index 130b80cc..0a10a7a6 100644 --- a/docs/assets/index-bkuO9Ze9.js +++ b/docs/assets/index-vUVQ9_PY.js @@ -253,7 +253,7 @@ html body { * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ES=ff("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),l4="_navbar_9vml7_1",u4="_logo_9vml7_13",c4="_heading_9vml7_28",f4="_right_9vml7_34",d4="_links_9vml7_38",h4="_github_9vml7_41",p4="_hamburger_9vml7_53",m4="_themeButton_9vml7_64",v4="_drawerContent_9vml7_99",g4="_drawerList_9vml7_103",y4="_drawerListItem_9vml7_109",Ht={navbar:l4,logo:u4,heading:c4,right:f4,links:d4,github:h4,hamburger:p4,themeButton:m4,drawerContent:v4,drawerList:g4,drawerListItem:y4,"ant-drawer-close":"_ant-drawer-close_9vml7_113","ant-drawer-header":"_ant-drawer-header_9vml7_119","ant-drawer-title":"_ant-drawer-title_9vml7_124"};function ag({children:e,title:t,subheading:n}){const{theme:r,toggleTheme:i}=w.useContext(og),[o,a]=w.useState(!1),s=()=>{a(!o)};return O.jsxs("nav",{className:Ht.navbar,children:[O.jsxs("a",{className:Ht.logo,href:"/frontend-mini-challenges/",children:[O.jsx("img",{src:r==="light"?vD:gD,alt:"logo"}),O.jsx("span",{children:t??"Frontend Mini Challenges"})]}),O.jsx("div",{className:Ht.heading,children:O.jsx("span",{children:n??""})}),O.jsxs("div",{className:Ht.right,children:[O.jsx("div",{className:Ht.links,children:e}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})})]}),O.jsx("div",{className:Ht.hamburger,children:O.jsx("button",{onClick:s,style:{color:r==="light"?"currentColor":"#ffffff"},children:O.jsx(a4,{})})}),O.jsx(Z5,{title:O.jsx("span",{style:{color:r==="dark"?"#fff":"#000"},children:"Menu"}),placement:"right",closable:!0,onClose:s,open:o,width:"50%",className:r==="dark"?Ht.darkDrawer:"",style:{background:r==="dark"?"#192841":"#fff"},children:O.jsxs("div",{className:Ht.drawerContent,children:[O.jsx("ul",{className:Ht.drawerList,children:qe.Children.map(e,(l,u)=>O.jsx("li",{className:Ht.drawerListItem,children:l},u))}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})})]})})]})}const S4="_topBtn_1lydx_1",w4={topBtn:S4};function pP(){const[e,t]=w.useState(!1);w.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e&&O.jsx("button",{className:w4.topBtn,onClick:n,children:O.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:[O.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"}),O.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 b4(){return O.jsxs(O.Fragment,{children:[O.jsxs(ag,{children:[O.jsx(hp,{to:"#whyUs",children:"Why us?"}),O.jsx(hp,{to:"#contributors",children:"Contributors"}),O.jsx(Fc,{to:"/leaderboard",children:"Leaderboard"})]}),O.jsxs("div",{className:Su.container,children:[O.jsx(FD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(dD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(lD,{}),O.jsx(mD,{}),O.jsx(pP,{})]})]})}const df=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["X0rD3v1L",{name:"Benarjee Sambangi",pic:"https://avatars.githubusercontent.com/u/46685302"}],["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"}],["officialbidisha",{name:"Bidisha Das",pic:"https://avatars.githubusercontent.com/u/49115207"}],["amanraina1",{name:"Aman Raina",pic:"https://avatars.githubusercontent.com/u/140370468"}],["SujithGunasekaran",{name:"Sujith Gunasekaran",pic:"https://avatars.githubusercontent.com/u/68234378?s=96&v=4"}]]);var M=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(M||{}),q=(e=>(e.interview="interview",e.all="all",e))(q||{});const kS=[M.Easy,M.Medium,M.Hard];function nl(e){return new Map([...e.entries()].sort((t,n)=>{const r=kS.indexOf(t[1].difficulty),i=kS.indexOf(n[1].difficulty);return r-i}))}function x4(e,t){if(!t||t.length===0)return e;const n=t.map(i=>i.value);return e.filter(i=>n.includes(i.developer))}function C4(e,t){return!t||t.length===0?e:e.filter(r=>r==null?void 0:r.title.toLowerCase().includes(t.toLowerCase()))}function E4(e,t){if(!t||t.length===0)return e;const n=t.map(r=>r.value);return e.filter(r=>n.includes(r.difficulty))}function k4(e,t,n){return n?e:e.filter(r=>r.tags?t.some(i=>{var o;return(o=r.tags)==null?void 0:o.includes(i)}):!1)}function P4(e,t){return t?e.filter(({isNew:n})=>n):e}function T4({challenges:e,title:t,contributors:n,difficulties:r,tags:i,newChallenge:o}){const a=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==q.all;if((!t||t.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&a&&!o)return e;let s=C4(e,t);return s=x4(s,n),s=E4(s,r),s=k4(s,i,a),s=P4(s,o),s}function R4(){const e=sessionStorage.getItem("searchFilters");if(e){const t=JSON.parse(e);return{searchInput:t.searchInput||"",optionSelected:t.optionSelected||[],selectedDifficulties:t.selectedDifficulties||[],tag:t.tag||q.interview,selectedChallengesByTags:t.selectedChallengesByTags||[],newChallenge:t.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:q.interview,selectedChallengesByTags:[q.interview],newChallenge:!1}}const M4=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:M.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:M.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[q.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:M.Easy,developer:"officialbidisha",tags:[q.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:M.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[q.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:M.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:M.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:M.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:M.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:M.Medium,developer:"Vivek7038",tags:[],isNew:!0}]]),mP=nl(M4),O4=new Map([["counter",{title:"Counter",link:"counter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[q.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:M.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:M.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:M.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:M.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[q.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:M.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[q.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:M.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:M.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:M.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:M.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:M.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:M.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:M.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:M.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:M.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:M.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:M.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:M.Medium,developer:"shruti-sen2004",tags:[q.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:M.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[q.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:M.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:M.Medium,developer:"srijanB7",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:M.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:M.Medium,developer:"Kei-K23",tags:[q.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:M.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:M.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:M.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}]]),vP=nl(O4),A4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:M.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:M.Easy,developer:"Bhushan1019",tags:[q.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:M.Easy,tags:[q.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:M.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:M.Easy,developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:M.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:M.Easy,developer:"deepakrajkranti",tags:[q.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:M.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:M.Easy,developer:"NikhilJHA01",tags:[q.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"rashidtvmr",tags:[q.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:M.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:M.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:M.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:M.Easy,developer:"codechitra",tags:[q.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:M.Medium,developer:"liza",tags:[q.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:M.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:M.Medium,developer:"deepakrajkranti",tags:[q.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:M.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:M.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:M.Medium,developer:"rashidtvmr",tags:[q.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:M.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:M.Medium,developer:"AbhilashMadi",tags:[q.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:M.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:M.Hard,developer:"SujithGunasekaran",tags:[q.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:M.Hard,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:M.Medium,developer:"DeePaK-HeeRaKaRi",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:M.Medium,developer:"ayush-dutt-sharma",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:M.Hard,developer:"rishabhm05",tags:[q.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:M.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:M.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:M.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:M.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:M.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:M.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:M.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}]]),gP=nl(A4),F4=new Map([["counter",{title:"Counter",link:"/counter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:M.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:M.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:M.Medium,developer:"arpansaha13",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:M.Medium,developer:"jaydadhaniya",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:M.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:M.Medium,developer:"Shardik04",tags:[q.interview]}]]),yP=nl(F4),L4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),SP=nl(L4);function _4(e,t,n){t.forEach(r=>{const i=e.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):e.set(r.developer,{[n]:1,totalContributions:1})})}const I4=()=>{const e=new Map;new Map([["css",mP],["js",vP],["react",gP],["vue",yP],["angular",SP]]).forEach((i,o)=>{_4(e,i,o)});const n=new Map;e.forEach((i,o)=>{const a=df.get(o);a&&n.set(o,{name:a==null?void 0:a.name,pic:a==null?void 0:a.pic,contributions:i,numberOfContributions:i.totalContributions,developer:o})});const r=new Map(Array.from(n.entries()).sort((i,o)=>o[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(o[1].name)));return new Map([...r.entries()])},D4="_leaderboardTableWrapper_1flea_1",N4="_leaderboardTable_1flea_1",V4="_leaderBoardTableData_1flea_31",j4="_leaderBoardContributorImg_1flea_37",$4="_userProfileImg_1flea_38",B4="_leaderBoardContributorName_1flea_46",z4="_leaderBoardHeading_1flea_50",U4="_userProfileHeading_1flea_51",H4="_profileDetailsContainer_1flea_56",W4="_profileLink_1flea_60",K4="_fontWeightNormal_1flea_68",G4="_contributionTableCell_1flea_72",q4="_techStackDiv_1flea_76",X4="_techStackImg_1flea_83",Y4="_techStackDivWrapper_1flea_87",Q4="_totalContributions_1flea_101",J4="_leaderboardRowContainer_1flea_125",Z4="_index_1flea_131",e6="_name_1flea_139",t6="_contributions_1flea_146",mt={leaderboardTableWrapper:D4,leaderboardTable:N4,leaderBoardTableData:V4,leaderBoardContributorImg:j4,userProfileImg:$4,leaderBoardContributorName:B4,leaderBoardHeading:z4,userProfileHeading:U4,profileDetailsContainer:H4,profileLink:W4,fontWeightNormal:K4,contributionTableCell:G4,techStackDiv:q4,techStackImg:X4,techStackDivWrapper:Y4,totalContributions:Q4,leaderboardRowContainer:J4,index:Z4,name:e6,contributions:t6};function Nd(...e){return e.join(" ")}const n6=new Map([["css",Iv],["js",Nv],["react",Vv],["vue",jv],["angular",Dv]]),r6=I4(),i6=Array.from(r6.values()).map((e,t)=>O.jsxs("tr",{className:mt.leaderboardRowContainer,children:[O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.index),children:t}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.leaderBoardContributorNameTd,mt.name),children:O.jsxs("div",{className:mt.profileLink,children:[O.jsx("img",{className:mt.leaderBoardContributorImg,src:e.pic,alt:""}),O.jsx("span",{className:mt.leaderBoardContributorName,children:e.name})]})}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.contributions),children:O.jsxs("div",{className:mt.contributionTableCell,children:[[...n6.entries()].map(([n,r])=>{const i=e.contributions[n];return i?O.jsx("div",{className:mt.techStackDiv,children:O.jsxs("div",{className:mt.techStackDivWrapper,children:[O.jsx("img",{src:r,className:mt.techStackImg}),O.jsx("div",{children:i})]})},n):null}),O.jsxs("div",{className:mt.totalContributions,children:[O.jsx("div",{children:"Total"}),O.jsx("div",{children:e.numberOfContributions})]})]})})]},e.name));function o6(){return O.jsx("div",{className:"container",children:O.jsx("div",{className:mt.leaderboardTableWrapper,children:O.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:mt.leaderboardTable,children:[O.jsx("thead",{children:O.jsxs("tr",{children:[O.jsx("td",{children:"#"}),O.jsx("td",{children:"Name"}),O.jsx("td",{children:"Contributions"})]})}),O.jsx("tbody",{children:i6})]})})})}function a6(){return O.jsxs(O.Fragment,{children:[O.jsx(ag,{subheading:"Leaderboard"}),O.jsx(o6,{})]})}const s6="_avatar_1jv0o_1",l6="_avatarGroup_1jv0o_11",wP={avatar:s6,avatarGroup:l6};function u6({src:e,alt:t}){return O.jsx("img",{src:e,alt:t,className:wP.avatar})}function c6({contributorNames:e}){return O.jsx("div",{className:wP.avatarGroup,children:e.map(t=>{var r;const n=(r=df.get(t))==null?void 0:r.pic;return n?O.jsx(u6,{src:n,alt:""},t):null}).filter(Boolean)})}const f6="_filterOptionWrapper_1d6a8_1",d6="_searchInputWrapper_1d6a8_9",h6="_searchInput_1d6a8_9",p6="_searchIcon_1d6a8_22",m6="_filterByTechWrapper_1d6a8_39",v6="_activeTech_1d6a8_61",g6="_emptyMessage_1d6a8_65",y6="_challengeGrid_1d6a8_76",S6="_challengeCard_1d6a8_83",w6="_avatarContainer_1d6a8_108",b6="_disabled_1d6a8_117",x6="_developer_1d6a8_131",C6="_name_1d6a8_144",E6="_difficultyBadge_1d6a8_147",k6="_ellips_1d6a8_157",P6="_Easy_1d6a8_164",T6="_Medium_1d6a8_167",R6="_Hard_1d6a8_170",M6="_checkboxContainer_1d6a8_174",O6="_checkbox_1d6a8_174",A6="_newTag_1d6a8_190",F6="_interviewBadge_1d6a8_204",ot={filterOptionWrapper:f6,searchInputWrapper:d6,searchInput:h6,searchIcon:p6,filterByTechWrapper:m6,activeTech:v6,emptyMessage:g6,challengeGrid:y6,challengeCard:S6,new:"_new_1d6a8_99",avatarContainer:w6,disabled:b6,developer:x6,name:C6,difficultyBadge:E6,ellips:k6,Easy:P6,Medium:T6,Hard:R6,checkboxContainer:M6,checkbox:O6,newTag:A6,interviewBadge:F6},L6=({link:e,contributor:t,challenge:n})=>O.jsxs("a",{className:`${ot.challengeCard} ${ot[n.difficulty]} ${n.isNew&&ot.new}`,href:e,children:[n.isNew&&O.jsx("div",{className:ot.newTag,children:"NEW"}),O.jsxs("div",{className:"flex-space-between",children:[O.jsx("div",{className:"flex-space-between",children:O.jsx("h3",{children:n.title})}),O.jsxs("div",{className:ot.difficultyBadge,children:[O.jsx("div",{className:ot.ellips}),n.difficulty]})]}),O.jsxs("div",{className:"flex-space-between",children:[O.jsxs("div",{className:"flex-space-between",children:[n.developer&&O.jsxs("div",{className:ot.developer,children:[O.jsx("img",{src:t==null?void 0:t.pic,alt:""}),O.jsx("span",{className:ot.name,children:t==null?void 0:t.name})]}),O.jsx("div",{children:n.contributors&&O.jsx(c6,{contributorNames:n.contributors})})]}),n.tags.find(r=>r==="interview")&&O.jsx("div",{className:ot.interviewBadge,children:"Interview"})]})]},n.title);var _6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,g=e.value,S=St(e,_6),p=w.useState(s!==void 0?s:n),m=oe(p,2),h=m[0],y=m[1],v=w.useState(l!==void 0?l:i),x=oe(v,2),E=x[0],b=x[1],C=w.useState(g!==void 0?g:a),k=oe(C,2),T=k[0],F=k[1],V=w.useCallback(function(P,N){typeof u=="function"&&u(P,N),F(P)},[u]),H=w.useCallback(function(P,N){var z;typeof c=="function"&&(z=c(P,N)),y(z!==void 0?z:P)},[c]),U=w.useCallback(function(){typeof d=="function"&&d(),b(!0)},[d]),Q=w.useCallback(function(){typeof f=="function"&&f(),b(!1)},[f]),W=s!==void 0?s:h,_=l!==void 0?l:E,L=g!==void 0?g:T;return I(I({},S),{},{inputValue:W,menuIsOpen:_,onChange:V,onInputChange:H,onMenuClose:Q,onMenuOpen:U,value:L})}function D6(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ic+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?bP(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Zn(e)-3-(~Cp(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Et(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Lt+e+e}return e}var W6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=bP(t.value,t.length);break;case rk:return Vi([Ma(t,{value:Pe(t.value,"@","@"+ke)})],i);case Yv:if(t.length)return FN(t.props,function(o){switch(AN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([Ma(t,{props:[Pe(o,/:(read-\w+)/,":"+ic+"$1")]})],i);case"::placeholder":return Vi([Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ke+"input-$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ic+"$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K6=[W6],G6=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||K6,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),h=1;h{a(!o)};return O.jsxs("nav",{className:Ht.navbar,children:[O.jsxs("a",{className:Ht.logo,href:"/frontend-mini-challenges/",children:[O.jsx("img",{src:r==="light"?vD:gD,alt:"logo"}),O.jsx("span",{children:t??"Frontend Mini Challenges"})]}),O.jsx("div",{className:Ht.heading,children:O.jsx("span",{children:n??""})}),O.jsxs("div",{className:Ht.right,children:[O.jsx("div",{className:Ht.links,children:e}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})})]}),O.jsx("div",{className:Ht.hamburger,children:O.jsx("button",{onClick:s,style:{color:r==="light"?"currentColor":"#ffffff"},children:O.jsx(a4,{})})}),O.jsx(Z5,{title:O.jsx("span",{style:{color:r==="dark"?"#fff":"#000"},children:"Menu"}),placement:"right",closable:!0,onClose:s,open:o,width:"50%",className:r==="dark"?Ht.darkDrawer:"",style:{background:r==="dark"?"#192841":"#fff"},children:O.jsxs("div",{className:Ht.drawerContent,children:[O.jsx("ul",{className:Ht.drawerList,children:qe.Children.map(e,(l,u)=>O.jsx("li",{className:Ht.drawerListItem,children:l},u))}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})})]})})]})}const S4="_topBtn_1lydx_1",w4={topBtn:S4};function pP(){const[e,t]=w.useState(!1);w.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e&&O.jsx("button",{className:w4.topBtn,onClick:n,children:O.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:[O.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"}),O.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 b4(){return O.jsxs(O.Fragment,{children:[O.jsxs(ag,{children:[O.jsx(hp,{to:"#whyUs",children:"Why us?"}),O.jsx(hp,{to:"#contributors",children:"Contributors"}),O.jsx(Fc,{to:"/leaderboard",children:"Leaderboard"})]}),O.jsxs("div",{className:Su.container,children:[O.jsx(FD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(dD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(lD,{}),O.jsx(mD,{}),O.jsx(pP,{})]})]})}const df=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["X0rD3v1L",{name:"Benarjee Sambangi",pic:"https://avatars.githubusercontent.com/u/46685302"}],["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"}],["officialbidisha",{name:"Bidisha Das",pic:"https://avatars.githubusercontent.com/u/49115207"}],["amanraina1",{name:"Aman Raina",pic:"https://avatars.githubusercontent.com/u/140370468"}],["SujithGunasekaran",{name:"Sujith Gunasekaran",pic:"https://avatars.githubusercontent.com/u/68234378?s=96&v=4"}]]);var M=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(M||{}),q=(e=>(e.interview="interview",e.all="all",e))(q||{});const kS=[M.Easy,M.Medium,M.Hard];function nl(e){return new Map([...e.entries()].sort((t,n)=>{const r=kS.indexOf(t[1].difficulty),i=kS.indexOf(n[1].difficulty);return r-i}))}function x4(e,t){if(!t||t.length===0)return e;const n=t.map(i=>i.value);return e.filter(i=>n.includes(i.developer))}function C4(e,t){return!t||t.length===0?e:e.filter(r=>r==null?void 0:r.title.toLowerCase().includes(t.toLowerCase()))}function E4(e,t){if(!t||t.length===0)return e;const n=t.map(r=>r.value);return e.filter(r=>n.includes(r.difficulty))}function k4(e,t,n){return n?e:e.filter(r=>r.tags?t.some(i=>{var o;return(o=r.tags)==null?void 0:o.includes(i)}):!1)}function P4(e,t){return t?e.filter(({isNew:n})=>n):e}function T4({challenges:e,title:t,contributors:n,difficulties:r,tags:i,newChallenge:o}){const a=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==q.all;if((!t||t.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&a&&!o)return e;let s=C4(e,t);return s=x4(s,n),s=E4(s,r),s=k4(s,i,a),s=P4(s,o),s}function R4(){const e=sessionStorage.getItem("searchFilters");if(e){const t=JSON.parse(e);return{searchInput:t.searchInput||"",optionSelected:t.optionSelected||[],selectedDifficulties:t.selectedDifficulties||[],tag:t.tag||q.interview,selectedChallengesByTags:t.selectedChallengesByTags||[],newChallenge:t.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:q.interview,selectedChallengesByTags:[q.interview],newChallenge:!1}}const M4=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:M.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:M.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[q.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:M.Easy,developer:"officialbidisha",tags:[q.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:M.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[q.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:M.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:M.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:M.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:M.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:M.Medium,developer:"Vivek7038",tags:[],isNew:!0}]]),mP=nl(M4),O4=new Map([["counter",{title:"Counter",link:"counter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[q.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:M.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:M.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:M.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:M.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[q.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:M.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[q.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:M.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:M.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:M.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:M.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:M.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:M.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:M.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:M.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:M.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:M.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:M.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:M.Medium,developer:"shruti-sen2004",tags:[q.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:M.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[q.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:M.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:M.Medium,developer:"srijanB7",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:M.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:M.Medium,developer:"Kei-K23",tags:[q.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:M.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:M.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:M.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}]]),vP=nl(O4),A4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:M.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:M.Easy,developer:"Bhushan1019",tags:[q.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:M.Easy,tags:[q.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:M.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:M.Easy,developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:M.Easy,developer:"ravi02205",tags:[]}],["guess-number",{title:"Guess the number",link:"guess-number",difficulty:M.Easy,developer:"deepakrajkranti",tags:[q.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:M.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:M.Easy,developer:"NikhilJHA01",tags:[q.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"rashidtvmr",tags:[q.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:M.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:M.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:M.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:M.Easy,developer:"codechitra",tags:[q.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:M.Medium,developer:"liza",tags:[q.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:M.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:M.Medium,developer:"deepakrajkranti",tags:[q.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:M.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:M.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:M.Medium,developer:"rashidtvmr",tags:[q.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:M.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:M.Medium,developer:"AbhilashMadi",tags:[q.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:M.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:M.Hard,developer:"SujithGunasekaran",tags:[q.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:M.Hard,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:M.Medium,developer:"DeePaK-HeeRaKaRi",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:M.Medium,developer:"ayush-dutt-sharma",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:M.Hard,developer:"rishabhm05",tags:[q.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:M.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:M.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:M.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:M.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:M.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:M.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:M.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}]]),gP=nl(A4),F4=new Map([["counter",{title:"Counter",link:"/counter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:M.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:M.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:M.Medium,developer:"arpansaha13",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:M.Medium,developer:"jaydadhaniya",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:M.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:M.Medium,developer:"Shardik04",tags:[q.interview]}]]),yP=nl(F4),L4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),SP=nl(L4);function _4(e,t,n){t.forEach(r=>{const i=e.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):e.set(r.developer,{[n]:1,totalContributions:1})})}const I4=()=>{const e=new Map;new Map([["css",mP],["js",vP],["react",gP],["vue",yP],["angular",SP]]).forEach((i,o)=>{_4(e,i,o)});const n=new Map;e.forEach((i,o)=>{const a=df.get(o);a&&n.set(o,{name:a==null?void 0:a.name,pic:a==null?void 0:a.pic,contributions:i,numberOfContributions:i.totalContributions,developer:o})});const r=new Map(Array.from(n.entries()).sort((i,o)=>o[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(o[1].name)));return new Map([...r.entries()])},D4="_leaderboardTableWrapper_1flea_1",N4="_leaderboardTable_1flea_1",V4="_leaderBoardTableData_1flea_31",j4="_leaderBoardContributorImg_1flea_37",$4="_userProfileImg_1flea_38",B4="_leaderBoardContributorName_1flea_46",z4="_leaderBoardHeading_1flea_50",U4="_userProfileHeading_1flea_51",H4="_profileDetailsContainer_1flea_56",W4="_profileLink_1flea_60",K4="_fontWeightNormal_1flea_68",G4="_contributionTableCell_1flea_72",q4="_techStackDiv_1flea_76",X4="_techStackImg_1flea_83",Y4="_techStackDivWrapper_1flea_87",Q4="_totalContributions_1flea_101",J4="_leaderboardRowContainer_1flea_125",Z4="_index_1flea_131",e6="_name_1flea_139",t6="_contributions_1flea_146",mt={leaderboardTableWrapper:D4,leaderboardTable:N4,leaderBoardTableData:V4,leaderBoardContributorImg:j4,userProfileImg:$4,leaderBoardContributorName:B4,leaderBoardHeading:z4,userProfileHeading:U4,profileDetailsContainer:H4,profileLink:W4,fontWeightNormal:K4,contributionTableCell:G4,techStackDiv:q4,techStackImg:X4,techStackDivWrapper:Y4,totalContributions:Q4,leaderboardRowContainer:J4,index:Z4,name:e6,contributions:t6};function Nd(...e){return e.join(" ")}const n6=new Map([["css",Iv],["js",Nv],["react",Vv],["vue",jv],["angular",Dv]]),r6=I4(),i6=Array.from(r6.values()).map((e,t)=>O.jsxs("tr",{className:mt.leaderboardRowContainer,children:[O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.index),children:t}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.leaderBoardContributorNameTd,mt.name),children:O.jsxs("div",{className:mt.profileLink,children:[O.jsx("img",{className:mt.leaderBoardContributorImg,src:e.pic,alt:""}),O.jsx("span",{className:mt.leaderBoardContributorName,children:e.name})]})}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.contributions),children:O.jsxs("div",{className:mt.contributionTableCell,children:[[...n6.entries()].map(([n,r])=>{const i=e.contributions[n];return i?O.jsx("div",{className:mt.techStackDiv,children:O.jsxs("div",{className:mt.techStackDivWrapper,children:[O.jsx("img",{src:r,className:mt.techStackImg}),O.jsx("div",{children:i})]})},n):null}),O.jsxs("div",{className:mt.totalContributions,children:[O.jsx("div",{children:"Total"}),O.jsx("div",{children:e.numberOfContributions})]})]})})]},e.name));function o6(){return O.jsx("div",{className:"container",children:O.jsx("div",{className:mt.leaderboardTableWrapper,children:O.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:mt.leaderboardTable,children:[O.jsx("thead",{children:O.jsxs("tr",{children:[O.jsx("td",{children:"#"}),O.jsx("td",{children:"Name"}),O.jsx("td",{children:"Contributions"})]})}),O.jsx("tbody",{children:i6})]})})})}function a6(){return O.jsxs(O.Fragment,{children:[O.jsx(ag,{subheading:"Leaderboard"}),O.jsx(o6,{})]})}const s6="_avatar_1jv0o_1",l6="_avatarGroup_1jv0o_11",wP={avatar:s6,avatarGroup:l6};function u6({src:e,alt:t}){return O.jsx("img",{src:e,alt:t,className:wP.avatar})}function c6({contributorNames:e}){return O.jsx("div",{className:wP.avatarGroup,children:e.map(t=>{var r;const n=(r=df.get(t))==null?void 0:r.pic;return n?O.jsx(u6,{src:n,alt:""},t):null}).filter(Boolean)})}const f6="_filterOptionWrapper_1d6a8_1",d6="_searchInputWrapper_1d6a8_9",h6="_searchInput_1d6a8_9",p6="_searchIcon_1d6a8_22",m6="_filterByTechWrapper_1d6a8_39",v6="_activeTech_1d6a8_61",g6="_emptyMessage_1d6a8_65",y6="_challengeGrid_1d6a8_76",S6="_challengeCard_1d6a8_83",w6="_avatarContainer_1d6a8_108",b6="_disabled_1d6a8_117",x6="_developer_1d6a8_131",C6="_name_1d6a8_144",E6="_difficultyBadge_1d6a8_147",k6="_ellips_1d6a8_157",P6="_Easy_1d6a8_164",T6="_Medium_1d6a8_167",R6="_Hard_1d6a8_170",M6="_checkboxContainer_1d6a8_174",O6="_checkbox_1d6a8_174",A6="_newTag_1d6a8_190",F6="_interviewBadge_1d6a8_204",ot={filterOptionWrapper:f6,searchInputWrapper:d6,searchInput:h6,searchIcon:p6,filterByTechWrapper:m6,activeTech:v6,emptyMessage:g6,challengeGrid:y6,challengeCard:S6,new:"_new_1d6a8_99",avatarContainer:w6,disabled:b6,developer:x6,name:C6,difficultyBadge:E6,ellips:k6,Easy:P6,Medium:T6,Hard:R6,checkboxContainer:M6,checkbox:O6,newTag:A6,interviewBadge:F6},L6=({link:e,contributor:t,challenge:n})=>O.jsxs("a",{className:`${ot.challengeCard} ${ot[n.difficulty]} ${n.isNew&&ot.new}`,href:e,children:[n.isNew&&O.jsx("div",{className:ot.newTag,children:"NEW"}),O.jsxs("div",{className:"flex-space-between",children:[O.jsx("div",{className:"flex-space-between",children:O.jsx("h3",{children:n.title})}),O.jsxs("div",{className:ot.difficultyBadge,children:[O.jsx("div",{className:ot.ellips}),n.difficulty]})]}),O.jsxs("div",{className:"flex-space-between",children:[O.jsxs("div",{className:"flex-space-between",children:[n.developer&&O.jsxs("div",{className:ot.developer,children:[O.jsx("img",{src:t==null?void 0:t.pic,alt:""}),O.jsx("span",{className:ot.name,children:t==null?void 0:t.name})]}),O.jsx("div",{children:n.contributors&&O.jsx(c6,{contributorNames:n.contributors})})]}),n.tags.find(r=>r==="interview")&&O.jsx("div",{className:ot.interviewBadge,children:"Interview"})]})]},n.title);var _6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,g=e.value,S=St(e,_6),p=w.useState(s!==void 0?s:n),m=oe(p,2),h=m[0],y=m[1],v=w.useState(l!==void 0?l:i),x=oe(v,2),E=x[0],b=x[1],C=w.useState(g!==void 0?g:a),k=oe(C,2),T=k[0],F=k[1],V=w.useCallback(function(P,N){typeof u=="function"&&u(P,N),F(P)},[u]),H=w.useCallback(function(P,N){var z;typeof c=="function"&&(z=c(P,N)),y(z!==void 0?z:P)},[c]),U=w.useCallback(function(){typeof d=="function"&&d(),b(!0)},[d]),Q=w.useCallback(function(){typeof f=="function"&&f(),b(!1)},[f]),W=s!==void 0?s:h,_=l!==void 0?l:E,L=g!==void 0?g:T;return I(I({},S),{},{inputValue:W,menuIsOpen:_,onChange:V,onInputChange:H,onMenuClose:Q,onMenuOpen:U,value:L})}function D6(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ic+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?bP(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Zn(e)-3-(~Cp(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Et(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Lt+e+e}return e}var W6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=bP(t.value,t.length);break;case rk:return Vi([Ma(t,{value:Pe(t.value,"@","@"+ke)})],i);case Yv:if(t.length)return FN(t.props,function(o){switch(AN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([Ma(t,{props:[Pe(o,/:(read-\w+)/,":"+ic+"$1")]})],i);case"::placeholder":return Vi([Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ke+"input-$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ic+"$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K6=[W6],G6=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||K6,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),h=1;h{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{c as d}from"./navbar-DtRJHBNg.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/css/assets/index-DEMxhRp6.js b/docs/css/assets/index-BCs4WYWp.js similarity index 91% rename from docs/css/assets/index-DEMxhRp6.js rename to docs/css/assets/index-BCs4WYWp.js index 4c773a77..b3e8a424 100644 --- a/docs/css/assets/index-DEMxhRp6.js +++ b/docs/css/assets/index-BCs4WYWp.js @@ -1 +1 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.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)})}); +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.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/css/assets/index-BdH1Hdwn.js b/docs/css/assets/index-BRmKAnJ4.js similarity index 95% rename from docs/css/assets/index-BdH1Hdwn.js rename to docs/css/assets/index-BRmKAnJ4.js index 8c35c5ca..a460da92 100644 --- a/docs/css/assets/index-BdH1Hdwn.js +++ b/docs/css/assets/index-BRmKAnJ4.js @@ -1 +1 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.js";const n=[{date:"August 30, 2017",title:"Published First React Tutorial",content:"My first React tutorial was about building a simple component and understanding the basics of React."},{date:"June 3, 2020",title:"First React Live Stream",content:"In my first-ever React live stream, I shared tips and tricks while building a React application."},{date:"June 28, 2021",title:"Introduction to React Hooks",content:"Published a video exploring the power of React Hooks. Check out the code in the description."},{date:"September 15, 2021",title:"React Context API Deep Dive",content:"Delved into the React Context API and how it simplifies state management in complex React applications."},{date:"February 8, 2022",title:"React Testing Strategies",content:"Shared insights on effective testing strategies for React applications using popular testing libraries."},{date:"June 28, 2022",title:"Advanced React Patterns",content:"Explored advanced React patterns and best practices for building scalable and maintainable React applications."}],i=document.getElementById("timeline-template"),a=document.querySelector(".timeline_list");n.forEach(e=>{const t=i.content.cloneNode(!0);t.querySelector(".date").textContent=e.date,t.querySelector(".title").textContent=e.title,t.querySelector(".content").textContent=e.content,a.appendChild(t)}); +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.js";const n=[{date:"August 30, 2017",title:"Published First React Tutorial",content:"My first React tutorial was about building a simple component and understanding the basics of React."},{date:"June 3, 2020",title:"First React Live Stream",content:"In my first-ever React live stream, I shared tips and tricks while building a React application."},{date:"June 28, 2021",title:"Introduction to React Hooks",content:"Published a video exploring the power of React Hooks. Check out the code in the description."},{date:"September 15, 2021",title:"React Context API Deep Dive",content:"Delved into the React Context API and how it simplifies state management in complex React applications."},{date:"February 8, 2022",title:"React Testing Strategies",content:"Shared insights on effective testing strategies for React applications using popular testing libraries."},{date:"June 28, 2022",title:"Advanced React Patterns",content:"Explored advanced React patterns and best practices for building scalable and maintainable React applications."}],i=document.getElementById("timeline-template"),a=document.querySelector(".timeline_list");n.forEach(e=>{const t=i.content.cloneNode(!0);t.querySelector(".date").textContent=e.date,t.querySelector(".title").textContent=e.title,t.querySelector(".content").textContent=e.content,a.appendChild(t)}); diff --git a/docs/css/assets/index-COX8ybrW.js b/docs/css/assets/index-CiItfk4B.js similarity index 69% rename from docs/css/assets/index-COX8ybrW.js rename to docs/css/assets/index-CiItfk4B.js index 3da87169..d2e4d82f 100644 --- a/docs/css/assets/index-COX8ybrW.js +++ b/docs/css/assets/index-CiItfk4B.js @@ -1 +1 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); diff --git a/docs/css/assets/index-C6BdaYlL.js b/docs/css/assets/index-CpqGiGoz.js similarity index 89% rename from docs/css/assets/index-C6BdaYlL.js rename to docs/css/assets/index-CpqGiGoz.js index 4537695e..e234d267 100644 --- a/docs/css/assets/index-C6BdaYlL.js +++ b/docs/css/assets/index-CpqGiGoz.js @@ -1 +1 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.js";const r=document.querySelector("#items"),o=document.querySelector("#stagger"),e=document.querySelector(".stagger-wrapper");function s(i=1){const a=document.createDocumentFragment();for(let t=0;t{e.showModal()});u.forEach(t=>t.addEventListener("click",()=>{e.close()}));d();function d(){e.addEventListener("click",i)}function i(t){t.target.nodeName==="DIALOG"&&e.close()}c.addEventListener("click",()=>{c.checked?d():e.removeEventListener("click",i)});a();function a(){e.removeEventListener("keydown",r)}function r(t){t.key==="Escape"&&t.preventDefault()}n.addEventListener("click",()=>{n.checked?a():e.addEventListener("keydown",r)});o.addEventListener("click",()=>{o.checked?l.style.display="block":l.style.display="none"});s.addEventListener("click",()=>{s.checked?e.style.setProperty("--backdrop-opacity",.5):e.style.setProperty("--backdrop-opacity",0)}); +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.js";const k=document.getElementById("showDialog"),e=document.getElementById("dialogPopup"),u=document.querySelectorAll(".closeDialog"),c=document.getElementById("closeOnOutsideClick"),n=document.getElementById("closeOnEscape"),o=document.getElementById("hasCloseButton"),s=document.getElementById("hasBackdrop"),l=document.getElementById("closeIcon");k.addEventListener("click",()=>{e.showModal()});u.forEach(t=>t.addEventListener("click",()=>{e.close()}));d();function d(){e.addEventListener("click",i)}function i(t){t.target.nodeName==="DIALOG"&&e.close()}c.addEventListener("click",()=>{c.checked?d():e.removeEventListener("click",i)});a();function a(){e.removeEventListener("keydown",r)}function r(t){t.key==="Escape"&&t.preventDefault()}n.addEventListener("click",()=>{n.checked?a():e.addEventListener("keydown",r)});o.addEventListener("click",()=>{o.checked?l.style.display="block":l.style.display="none"});s.addEventListener("click",()=>{s.checked?e.style.setProperty("--backdrop-opacity",.5):e.style.setProperty("--backdrop-opacity",0)}); diff --git a/docs/css/assets/index-Dyw56hAq.js b/docs/css/assets/index-D1qv6IQ5.js similarity index 94% rename from docs/css/assets/index-Dyw56hAq.js rename to docs/css/assets/index-D1qv6IQ5.js index 73b317db..6dfeadbc 100644 --- a/docs/css/assets/index-Dyw56hAq.js +++ b/docs/css/assets/index-D1qv6IQ5.js @@ -1 +1 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.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); +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.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/css/assets/index-C5mhvikD.js b/docs/css/assets/index-DhfQZe8b.js similarity index 98% rename from docs/css/assets/index-C5mhvikD.js rename to docs/css/assets/index-DhfQZe8b.js index 9af350ef..a38335c3 100644 --- a/docs/css/assets/index-C5mhvikD.js +++ b/docs/css/assets/index-DhfQZe8b.js @@ -1,2 +1,2 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.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: +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.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/css/assets/index-Ba8lUMST.js b/docs/css/assets/index-DtNpSWLZ.js similarity index 91% rename from docs/css/assets/index-Ba8lUMST.js rename to docs/css/assets/index-DtNpSWLZ.js index e630ae8b..45c37901 100644 --- a/docs/css/assets/index-Ba8lUMST.js +++ b/docs/css/assets/index-DtNpSWLZ.js @@ -1 +1 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.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!")}); +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.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/css/assets/index-CyfQ08eB.js b/docs/css/assets/index-qXDPVhgn.js similarity index 79% rename from docs/css/assets/index-CyfQ08eB.js rename to docs/css/assets/index-qXDPVhgn.js index 7ae8347c..d6703950 100644 --- a/docs/css/assets/index-CyfQ08eB.js +++ b/docs/css/assets/index-qXDPVhgn.js @@ -1 +1 @@ -import"./header-fs82-l5H.js";import"./navbar-BWBvNpVs.js";const e=document.getElementById("themeSwitch"),t=document.getElementById("innnerThemeSwitch");e.addEventListener("change",function(){e.checked?(document.body.classList.add("dark"),t.checked=!0):(document.body.classList.remove("dark"),t.checked=!1)}); +import"./header-CApTfTFH.js";import"./navbar-DtRJHBNg.js";const e=document.getElementById("themeSwitch"),t=document.getElementById("innnerThemeSwitch");e.addEventListener("change",function(){e.checked?(document.body.classList.add("dark"),t.checked=!0):(document.body.classList.remove("dark"),t.checked=!1)}); diff --git a/docs/css/assets/navbar-BWBvNpVs.js b/docs/css/assets/navbar-DtRJHBNg.js similarity index 59% rename from docs/css/assets/navbar-BWBvNpVs.js rename to docs/css/assets/navbar-DtRJHBNg.js index 9c5d3ba6..b64dd995 100644 --- a/docs/css/assets/navbar-BWBvNpVs.js +++ b/docs/css/assets/navbar-DtRJHBNg.js @@ -40,4 +40,4 @@ const g=` -`,y="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/css/assets/github-KMwwOUMo.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["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:[t.interview]}],["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:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",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:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}]]),b=n(w),M=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",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:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["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:[t.interview]}],["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}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["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:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["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:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],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:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["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 (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);n(M);const E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["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:[]}],["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:[t.interview]}],["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:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],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:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["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:[t.interview],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}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["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:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["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:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={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/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/css/`:`/${s}/#/css/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=b.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/css/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{b as c}; +`,y="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/css/assets/github-KMwwOUMo.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["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:[t.interview]}],["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:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",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:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}]]),b=n(w),M=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",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:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["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:[t.interview]}],["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}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["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:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["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:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],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:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["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 (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);n(M);const E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["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:[]}],["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-number",{title:"Guess the number",link:"guess-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["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:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],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:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["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:[t.interview],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}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["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:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["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:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={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/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/css/`:`/${s}/#/css/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=b.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/css/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{b as c}; diff --git a/docs/css/src/challenges/accordion/index.html b/docs/css/src/challenges/accordion/index.html index c81bb44c..41fca383 100644 --- a/docs/css/src/challenges/accordion/index.html +++ b/docs/css/src/challenges/accordion/index.html @@ -2,9 +2,9 @@ - - - + + + diff --git a/docs/css/src/challenges/blobmaker/index.html b/docs/css/src/challenges/blobmaker/index.html index e14486bf..2d931605 100644 --- a/docs/css/src/challenges/blobmaker/index.html +++ b/docs/css/src/challenges/blobmaker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/dialog/index.html b/docs/css/src/challenges/dialog/index.html index 3d9791c9..78038dd3 100644 --- a/docs/css/src/challenges/dialog/index.html +++ b/docs/css/src/challenges/dialog/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/dynamic-tooltip/index.html b/docs/css/src/challenges/dynamic-tooltip/index.html index 7120ffde..337b360b 100644 --- a/docs/css/src/challenges/dynamic-tooltip/index.html +++ b/docs/css/src/challenges/dynamic-tooltip/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/footer/index.html b/docs/css/src/challenges/footer/index.html index 82fc1aca..f1b64cfa 100644 --- a/docs/css/src/challenges/footer/index.html +++ b/docs/css/src/challenges/footer/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/gradient-generator/index.html b/docs/css/src/challenges/gradient-generator/index.html index b5adc14b..6ce28909 100644 --- a/docs/css/src/challenges/gradient-generator/index.html +++ b/docs/css/src/challenges/gradient-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/light-dark-mode/index.html b/docs/css/src/challenges/light-dark-mode/index.html index e0e57a37..04e98ff9 100644 --- a/docs/css/src/challenges/light-dark-mode/index.html +++ b/docs/css/src/challenges/light-dark-mode/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/loaders/index.html b/docs/css/src/challenges/loaders/index.html index 5aabae4b..7e8c1f3e 100644 --- a/docs/css/src/challenges/loaders/index.html +++ b/docs/css/src/challenges/loaders/index.html @@ -1,8 +1,8 @@ - - + + diff --git a/docs/css/src/challenges/navigation-bar/index.html b/docs/css/src/challenges/navigation-bar/index.html index 477039d9..ce2a9e34 100644 --- a/docs/css/src/challenges/navigation-bar/index.html +++ b/docs/css/src/challenges/navigation-bar/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/shapes/index.html b/docs/css/src/challenges/shapes/index.html index 9878a335..98e87c15 100644 --- a/docs/css/src/challenges/shapes/index.html +++ b/docs/css/src/challenges/shapes/index.html @@ -1,8 +1,8 @@ - - + + diff --git a/docs/css/src/challenges/skeleton-loader/index.html b/docs/css/src/challenges/skeleton-loader/index.html index fc88b31d..bcba740b 100644 --- a/docs/css/src/challenges/skeleton-loader/index.html +++ b/docs/css/src/challenges/skeleton-loader/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/stagger-animation/index.html b/docs/css/src/challenges/stagger-animation/index.html index a94be9c2..e63464ad 100644 --- a/docs/css/src/challenges/stagger-animation/index.html +++ b/docs/css/src/challenges/stagger-animation/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/star-rating-display/index.html b/docs/css/src/challenges/star-rating-display/index.html index c2aa102a..77ff42f0 100644 --- a/docs/css/src/challenges/star-rating-display/index.html +++ b/docs/css/src/challenges/star-rating-display/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/css/src/challenges/timeline/index.html b/docs/css/src/challenges/timeline/index.html index eb969c67..127a2788 100644 --- a/docs/css/src/challenges/timeline/index.html +++ b/docs/css/src/challenges/timeline/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/index.html b/docs/index.html index 910821e9..ed63ef24 100644 --- a/docs/index.html +++ b/docs/index.html @@ -18,7 +18,7 @@ Frontend Mini Challenges - + diff --git a/docs/css/assets/header-fs82-l5H.js b/docs/javascript/assets/header-azCMSrDW.js similarity index 95% rename from docs/css/assets/header-fs82-l5H.js rename to docs/javascript/assets/header-azCMSrDW.js index 30601ad7..c39af210 100644 --- a/docs/css/assets/header-fs82-l5H.js +++ b/docs/javascript/assets/header-azCMSrDW.js @@ -1 +1 @@ -import{c as d}from"./navbar-BWBvNpVs.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-ZW0Q7B84.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-AS4jwcSE.js b/docs/javascript/assets/index-0hA1NQ-X.js similarity index 95% rename from docs/javascript/assets/index-AS4jwcSE.js rename to docs/javascript/assets/index-0hA1NQ-X.js index 6d22af82..9bb6f784 100644 --- a/docs/javascript/assets/index-AS4jwcSE.js +++ b/docs/javascript/assets/index-0hA1NQ-X.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const m=document.getElementById("horizontal-position"),p=document.getElementById("vertical-position"),E=document.getElementById("type"),a=document.getElementById("message"),r=document.getElementById("show-toast"),l=document.getElementById("duration"),y=document.getElementById("duration-output"),f=document.querySelector(".tc-left-top"),v=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),B=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");a.addEventListener("input",h);r.addEventListener("click",S);function h(){r.disabled=a.value.length===0}function S(){const o=a.value,n=E.value,c=m.value,e=p.value,t=+l.value*1e3;q(o,n,t,c,e)}function q(o,n,c,e,t){e==="left"?t==="top"?f.prepend(s(o,n,c,e)):v.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):B.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",d);const u=t.querySelector(".toast");setTimeout(d,c);async function d(){u.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(i=>setTimeout(i,100)),u.remove()}return t}l.addEventListener("input",()=>{y.textContent=l.value}); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.js";const m=document.getElementById("horizontal-position"),p=document.getElementById("vertical-position"),E=document.getElementById("type"),a=document.getElementById("message"),r=document.getElementById("show-toast"),l=document.getElementById("duration"),y=document.getElementById("duration-output"),f=document.querySelector(".tc-left-top"),v=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),B=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");a.addEventListener("input",h);r.addEventListener("click",S);function h(){r.disabled=a.value.length===0}function S(){const o=a.value,n=E.value,c=m.value,e=p.value,t=+l.value*1e3;q(o,n,t,c,e)}function q(o,n,c,e,t){e==="left"?t==="top"?f.prepend(s(o,n,c,e)):v.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):B.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",d);const u=t.querySelector(".toast");setTimeout(d,c);async function d(){u.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(i=>setTimeout(i,100)),u.remove()}return t}l.addEventListener("input",()=>{y.textContent=l.value}); diff --git a/docs/javascript/assets/index-pVWhUXP8.js b/docs/javascript/assets/index-2snmfUit.js similarity index 95% rename from docs/javascript/assets/index-pVWhUXP8.js rename to docs/javascript/assets/index-2snmfUit.js index ec00f3ed..b4e1c383 100644 --- a/docs/javascript/assets/index-pVWhUXP8.js +++ b/docs/javascript/assets/index-2snmfUit.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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;t{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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-yHBQjgg1.js b/docs/javascript/assets/index-3C2gI_pZ.js similarity index 96% rename from docs/javascript/assets/index-yHBQjgg1.js rename to docs/javascript/assets/index-3C2gI_pZ.js index d82a39b4..4bbd095d 100644 --- a/docs/javascript/assets/index-yHBQjgg1.js +++ b/docs/javascript/assets/index-3C2gI_pZ.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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"} +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-NOOgbolY.js b/docs/javascript/assets/index-4dGKMW-d.js similarity index 94% rename from docs/javascript/assets/index-NOOgbolY.js rename to docs/javascript/assets/index-4dGKMW-d.js index f2a6dcc3..f5adfa49 100644 --- a/docs/javascript/assets/index-NOOgbolY.js +++ b/docs/javascript/assets/index-4dGKMW-d.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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{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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-YjX7VCkH.js b/docs/javascript/assets/index-6GRX1KFu.js similarity index 88% rename from docs/javascript/assets/index-YjX7VCkH.js rename to docs/javascript/assets/index-6GRX1KFu.js index 18a0cc0d..03eec054 100644 --- a/docs/javascript/assets/index-YjX7VCkH.js +++ b/docs/javascript/assets/index-6GRX1KFu.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-d1XLFDiM.js b/docs/javascript/assets/index-75xmKVFS.js similarity index 97% rename from docs/javascript/assets/index-d1XLFDiM.js rename to docs/javascript/assets/index-75xmKVFS.js index 636d2a21..e947170f 100644 --- a/docs/javascript/assets/index-d1XLFDiM.js +++ b/docs/javascript/assets/index-75xmKVFS.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-rsQZzAW_.js b/docs/javascript/assets/index-7KUs7iLu.js similarity index 99% rename from docs/javascript/assets/index-rsQZzAW_.js rename to docs/javascript/assets/index-7KUs7iLu.js index 10ff59b5..849377d4 100644 --- a/docs/javascript/assets/index-rsQZzAW_.js +++ b/docs/javascript/assets/index-7KUs7iLu.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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--FCgDtbR.js b/docs/javascript/assets/index-8ToO6WNx.js similarity index 99% rename from docs/javascript/assets/index--FCgDtbR.js rename to docs/javascript/assets/index-8ToO6WNx.js index 6e026f83..75e24ef2 100644 --- a/docs/javascript/assets/index--FCgDtbR.js +++ b/docs/javascript/assets/index-8ToO6WNx.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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(); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-Gaur4juf.js b/docs/javascript/assets/index-AtRwYzlx.js similarity index 94% rename from docs/javascript/assets/index-Gaur4juf.js rename to docs/javascript/assets/index-AtRwYzlx.js index 56164e87..9c941550 100644 --- a/docs/javascript/assets/index-Gaur4juf.js +++ b/docs/javascript/assets/index-AtRwYzlx.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-6OD8a1EV.js b/docs/javascript/assets/index-BCnQpcvq.js similarity index 94% rename from docs/javascript/assets/index-6OD8a1EV.js rename to docs/javascript/assets/index-BCnQpcvq.js index 952f515c..309dc117 100644 --- a/docs/javascript/assets/index-6OD8a1EV.js +++ b/docs/javascript/assets/index-BCnQpcvq.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-ng_HSA--.js b/docs/javascript/assets/index-BkBckF8d.js similarity index 97% rename from docs/javascript/assets/index-ng_HSA--.js rename to docs/javascript/assets/index-BkBckF8d.js index 437c9dd5..feb04dc1 100644 --- a/docs/javascript/assets/index-ng_HSA--.js +++ b/docs/javascript/assets/index-BkBckF8d.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-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-CpQEoFv2.js b/docs/javascript/assets/index-DACCeIBv.js similarity index 91% rename from docs/javascript/assets/index-CpQEoFv2.js rename to docs/javascript/assets/index-DACCeIBv.js index c738853d..866bb6aa 100644 --- a/docs/javascript/assets/index-CpQEoFv2.js +++ b/docs/javascript/assets/index-DACCeIBv.js @@ -1,4 +1,4 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-DB-Z2mir.js b/docs/javascript/assets/index-DREuvDZT.js similarity index 93% rename from docs/javascript/assets/index-DB-Z2mir.js rename to docs/javascript/assets/index-DREuvDZT.js index e702ce3b..cc567282 100644 --- a/docs/javascript/assets/index-DB-Z2mir.js +++ b/docs/javascript/assets/index-DREuvDZT.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-HMp3_lqQ.js b/docs/javascript/assets/index-FCezsj1Y.js similarity index 98% rename from docs/javascript/assets/index-HMp3_lqQ.js rename to docs/javascript/assets/index-FCezsj1Y.js index 93ee7590..9bf99b9f 100644 --- a/docs/javascript/assets/index-HMp3_lqQ.js +++ b/docs/javascript/assets/index-FCezsj1Y.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const a={username:"John Doe",time:1727458711867,text:"Welcome! You can reply to the comments. But you can't delete the initial comment.",counter:1,parentCounter:0,comments:{0:{username:"User 1",text:"You can reply nested or delete any comment. You can edit the existing comments.",counter:1,parentCounter:0,comments:{0:{username:"User 2",text:"Refresh & see the changes persist. You can reset the comments to the initial state",counter:0,parentCounter:0,comments:{}}}}}},l=localStorage.getItem("state"),q=JSON.parse(l||JSON.stringify(a)),d=document.querySelector("#comment-template");function p({username:e,text:t}){const o=d.content.cloneNode(!0);return o.querySelector(".username").textContent=e,o.querySelector(".comment-text").innerText=t,o.querySelector(".user-info").classList.remove("hide"),s(o),o}function h(){const e=d.content.cloneNode(!0);return e.querySelector(".username-input").classList.remove("hide"),L(e),e}function s(e){const t=e.querySelector(".comment-text");t.contentEditable=!1,t.classList.remove("editable"),e.querySelector(".reply").classList.remove("hide"),e.querySelector(".delete").classList.remove("hide"),e.querySelector(".edit").classList.remove("hide"),e.querySelector(".submit").classList.add("hide"),e.querySelector(".cancel").classList.add("hide")}function x(e){const t=e.querySelector(".comment-text");t.contentEditable=!0,t.classList.add("editable"),t.focus(),e.querySelector(".reply").classList.add("hide"),e.querySelector(".delete").classList.add("hide"),e.querySelector(".edit").classList.add("hide"),e.querySelector(".submit").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide")}function L(e){e.querySelector(".comment-text").contentEditable=!0,e.querySelector(".comment-text").classList.add("editable"),e.querySelector(".comment-text").focus(),e.querySelector(".username-input").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide"),e.querySelector(".submit").classList.remove("hide")}const m=document.querySelector("#commentContainer");document.querySelector("#comment-template");const f=document.querySelector("#reset");let c;function i(e,t,o){e.querySelector(":scope > .sub-comments").appendChild(p({username:t.username,text:t.text}));const r=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");return r.querySelector(".profile-pic").src=`https://i.pravatar.cc/32?u=${t.username}`,r.querySelector(".reply").addEventListener("click",()=>{r.querySelector(":scope > .sub-comments > .new-comment")||v(r,t)}),o&&(r.querySelector(".delete").addEventListener("click",()=>{r.remove(),delete o.comments[t.parentCounter]}),r.querySelector(".edit").addEventListener("click",()=>{x(r)}),r.querySelector(".cancel").addEventListener("click",()=>{r.querySelector(".comment-text").innerText=t.text,s(r)}),r.querySelector(".submit").addEventListener("click",()=>{const n=r.querySelector(".comment-text").innerText;n&&(t.text=n,r.querySelector(".comment-text").innerText=n,s(r))})),r}function v(e,t){e.querySelector(":scope > .sub-comments").appendChild(h());const o=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");o.classList.add("new-comment"),o.querySelector(".cancel").addEventListener("click",()=>{o.remove()}),o.querySelector(".submit").addEventListener("click",()=>{const r=o.querySelector(".username-input").value,n=o.querySelector(".comment-text").innerText;if(!r||!n)return;const u={username:r,text:n,counter:0,parentCounter:t.counter,comments:{}};i(e,u,t),t.comments[t.counter++]=u,o.remove()})}function y(e,t){for(const o of Object.values(t.comments)){const r=i(e,o,t);o.comments&&y(r,o)}}function S(e=a){m.querySelector(".sub-comments").innerHTML="",c=e;const t=i(m,c);y(t,c)}f.addEventListener("click",()=>S());window.addEventListener("beforeunload",()=>{localStorage.setItem("state",JSON.stringify(c))});S(q); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.js";const a={username:"John Doe",time:1727458711867,text:"Welcome! You can reply to the comments. But you can't delete the initial comment.",counter:1,parentCounter:0,comments:{0:{username:"User 1",text:"You can reply nested or delete any comment. You can edit the existing comments.",counter:1,parentCounter:0,comments:{0:{username:"User 2",text:"Refresh & see the changes persist. You can reset the comments to the initial state",counter:0,parentCounter:0,comments:{}}}}}},l=localStorage.getItem("state"),q=JSON.parse(l||JSON.stringify(a)),d=document.querySelector("#comment-template");function p({username:e,text:t}){const o=d.content.cloneNode(!0);return o.querySelector(".username").textContent=e,o.querySelector(".comment-text").innerText=t,o.querySelector(".user-info").classList.remove("hide"),s(o),o}function h(){const e=d.content.cloneNode(!0);return e.querySelector(".username-input").classList.remove("hide"),L(e),e}function s(e){const t=e.querySelector(".comment-text");t.contentEditable=!1,t.classList.remove("editable"),e.querySelector(".reply").classList.remove("hide"),e.querySelector(".delete").classList.remove("hide"),e.querySelector(".edit").classList.remove("hide"),e.querySelector(".submit").classList.add("hide"),e.querySelector(".cancel").classList.add("hide")}function x(e){const t=e.querySelector(".comment-text");t.contentEditable=!0,t.classList.add("editable"),t.focus(),e.querySelector(".reply").classList.add("hide"),e.querySelector(".delete").classList.add("hide"),e.querySelector(".edit").classList.add("hide"),e.querySelector(".submit").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide")}function L(e){e.querySelector(".comment-text").contentEditable=!0,e.querySelector(".comment-text").classList.add("editable"),e.querySelector(".comment-text").focus(),e.querySelector(".username-input").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide"),e.querySelector(".submit").classList.remove("hide")}const m=document.querySelector("#commentContainer");document.querySelector("#comment-template");const f=document.querySelector("#reset");let c;function i(e,t,o){e.querySelector(":scope > .sub-comments").appendChild(p({username:t.username,text:t.text}));const r=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");return r.querySelector(".profile-pic").src=`https://i.pravatar.cc/32?u=${t.username}`,r.querySelector(".reply").addEventListener("click",()=>{r.querySelector(":scope > .sub-comments > .new-comment")||v(r,t)}),o&&(r.querySelector(".delete").addEventListener("click",()=>{r.remove(),delete o.comments[t.parentCounter]}),r.querySelector(".edit").addEventListener("click",()=>{x(r)}),r.querySelector(".cancel").addEventListener("click",()=>{r.querySelector(".comment-text").innerText=t.text,s(r)}),r.querySelector(".submit").addEventListener("click",()=>{const n=r.querySelector(".comment-text").innerText;n&&(t.text=n,r.querySelector(".comment-text").innerText=n,s(r))})),r}function v(e,t){e.querySelector(":scope > .sub-comments").appendChild(h());const o=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");o.classList.add("new-comment"),o.querySelector(".cancel").addEventListener("click",()=>{o.remove()}),o.querySelector(".submit").addEventListener("click",()=>{const r=o.querySelector(".username-input").value,n=o.querySelector(".comment-text").innerText;if(!r||!n)return;const u={username:r,text:n,counter:0,parentCounter:t.counter,comments:{}};i(e,u,t),t.comments[t.counter++]=u,o.remove()})}function y(e,t){for(const o of Object.values(t.comments)){const r=i(e,o,t);o.comments&&y(r,o)}}function S(e=a){m.querySelector(".sub-comments").innerHTML="",c=e;const t=i(m,c);y(t,c)}f.addEventListener("click",()=>S());window.addEventListener("beforeunload",()=>{localStorage.setItem("state",JSON.stringify(c))});S(q); diff --git a/docs/javascript/assets/index-1MDl7Lor.js b/docs/javascript/assets/index-Fwyk37xh.js similarity index 94% rename from docs/javascript/assets/index-1MDl7Lor.js rename to docs/javascript/assets/index-Fwyk37xh.js index 89244dd5..7afefe58 100644 --- a/docs/javascript/assets/index-1MDl7Lor.js +++ b/docs/javascript/assets/index-Fwyk37xh.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";function u(e,t=e){const a=document.createDocumentFragment();for(let n=0;n=0;o--,c++)r(e.querySelector(`[data-x='${o}'][data-y='${s-c}']`)),r(e.querySelector(`[data-x='${o}'][data-y='${s+c}']`));for(let o=t+1,c=1,s=a;o=0;o--,c++)r(e.querySelector(`[data-x='${o}'][data-y='${s-c}']`)),r(e.querySelector(`[data-x='${o}'][data-y='${s+c}']`));for(let o=t+1,c=1,s=a;o{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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-BHGmiTe5.js b/docs/javascript/assets/index-IHaCNXy7.js similarity index 97% rename from docs/javascript/assets/index-BHGmiTe5.js rename to docs/javascript/assets/index-IHaCNXy7.js index 1d733954..fbfdc99d 100644 --- a/docs/javascript/assets/index-BHGmiTe5.js +++ b/docs/javascript/assets/index-IHaCNXy7.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-MBro3VPq.js b/docs/javascript/assets/index-K3hFcTvn.js similarity index 99% rename from docs/javascript/assets/index-MBro3VPq.js rename to docs/javascript/assets/index-K3hFcTvn.js index dcfa6141..fbf7cd35 100644 --- a/docs/javascript/assets/index-MBro3VPq.js +++ b/docs/javascript/assets/index-K3hFcTvn.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const E="data:audio/mpeg;base64,//uSxAAAAAABpBQAAAXbyCHDL1ABw0MQQAyOsIHAx7oq+yLgiAAwMlEEYgMNnCxcZAWWBhG4MaBgW4AXjvGUAwSGgMwzXjsFsIGB4dtgZWOgHDs158kzQvgecZwLQADadPA5yjfrOE4VDMDqKxAyIvgNQDQD1kEAxIQfzcroWSAsTwPFvUDHISC1kDiyWAFIP80QWbm6DADE8DOYDAy4dgMpBYGo/A0CgQMohH/s7VppqYDBQ4AzAWACioAUZAMIg0NkA0KUwMQgsDCIB/+hvTdSCCwNRG4DGAIDBAGjyqACEgAhYBlAIAYpJoGQwmBh8DAZSMn//vepmW79QGRgcBhgGgZNKIBRTAKSYGIgwFgwM1CoEAEAxMEAM0jMDBYfAxmEwMZA4CAE////9Blpuq1q001M26001Gho8AIUAYABgGFgQHuAYvGIGNRWAcKwMPCIDFQmAaDgBw4BsHiOAM2kEDCYHAweAQNKFoDDwKACEAGfx6EgEKIBioCgZPKYGMQOBkJHAbATAEjgRAk8mwCIk0A6wgwcQn4TEaYnMkBcY//7ksQLABnCQWoZNQALFDQtV7DABXBUzYPGMRsEwiCsIQCoMhwLkgFALQhhmIsejceCwQiwLgrFCMYDYsRkpw2GQ9HTRw4kF5OPChpOVLkgvkSlyo1HhCRmkhEWPNcw84fqaQnEZxY85UONPU4kMNPNOJ0c1jUOPQgQxS7q5hzHqhhimmHIcbNMUxkqjns6MeecYjHrarnojnTrKacpx89HWYxk9mmsjGKefbejGK56MZdefstro62RjKIx1lZJNU+ehl1OSl0V5KjFay2Yv//rUSWkbRvDjhKX9aHf7VhlhT8L6WIZMUd5dD4QHNaEJ0t+hjiSDl+piiM6tFY+PS3LypqFelZaXpEStt184QoibZGeHBSbaW2PlC84ZOYY1B2mebTRKkcsHBJSxxuktw4be0o0ULKl5UmYWMkhp+6h80du3GSYdlsrXj30JFWYbnr8zGfQv+0kbcfbqePMORMqZpBKH9b0w/zdeXUpMLOO/V27G+9Zy7EN3KU8076mdtrV9pdnC/A7uP4X+A/xD/v/jpUAAAAAAAAAtsvks1bBEI3/+5LECAAXIjdlzLxtys/G7PmHmbkvI9ZU7OVY5/KsBDwg5x7i0SJoKCJFil9SB0PLPlEzKx5CTy0sK9nwrn7yV+2srU2TP5Zn1YeJYEaKHZgYxAzcBRwwgOAtBQQEwlBwQKDAyCgiEA9aLdXXF00eB68VQUeKrREFEKkQejEwIwaFg4DhErMTkTMTm5aU34bPTbNITQ5jFSikS5MaLSbpyH7xSMnNYb6ExuaOpO8qkiEpcQhX8Q/6B3/dv8GKaAABAAAAAAGakUOrJrLZB7JFYw3K2UvNjvMVEkgY7aziOjHmbzbOVmZPXLCwQ48KzE4ubA8tCfQZ38Z8zQ3kr+HCjxbwoiiSpEmLNrYdSJm5ZhXW7YtM3dPOMlBvcHzt0q1uzXRT58jbl58vPmH7a2Pn2K9a3ravw3bcnczTbKm3q4v5FRNv0rLbNLxSFs8HFbHndtslqaHZ529jZl7+zniHaf32N/8TX/7N//9jf/3r//mahQAAAAAAAAFMOKx6k+UBWh3S0OV28rrAUfFZrWWIbwzyWTR6MSdRpls9rsJ+o1AP//uSxBgAF1Y1Zcw8bcraRmz5h5m57PHzEzMqvZKvXqhYmTOndnJtswQLQnrdKxmHDiQwSAbwMDCGAIgkE4hBZMHR8ARDMjHRd8hLm91BJUDSBiCQSQNUQ2NmDugY1Eo4ta61EY42IgkiKGgls3rhpg9kB2WjIE3QWsDolIEkEGhr19CZz3NW9EzUqWiszaOykszgZm93jf6AxP/o3/QMTMKAAAAAAAALOlku01jFrkaHbI1u3Vxz3ARjoRSlMMJfSGkLZ6bvDcVEoGTztyeQpWqNn3jdlbCeTahMTExNcf5z22BApeGiiBWQ0wzUk0F1q6lBOOtU4tF2bKSlKTS/iJX8RSUl1W60tePiM05jZ9KfLea221T9sjcqm1rysd8ldGzEfqptWunovPmaxbUx/g8qnLd3a5+Z4vKbX8ZX++9yZztGV//d1M5+0S3/72VW//s+f/91AIVgAAAAAAAFXs1yQ2H5keKWx5MPDmt63ttJCJgj7YvhiYhJkA/f1vXEqMV8Te7SsqKX1GyTZkYo7Kz+SkVhZW5js8vCkfDgIoAQOv/7ksQlgBbmM2XMPG3KykXsuYYZuagIIDABlMOwpQyDmjhUMQDcyCMoSi1rCRBk7cjKQeES0hW6EhsDrhLrCAqwhxx6ohED4WG0BELjKREryhA1Ng5iGURHo4KoKpHUEnVe8RyYzPRWqkRoTkzN+7VS4jjiWP/eH//BJf/hG//oCUxKgAABAAAATjAXYqy2ZygEQBCbN7f53msoQOCOjz5ZYDoAoEgOKPyWlxVLBLM35s9DGIJ0TDxy2rTpeoXv3bZq0ZJWiDyh5OWpPYakUTj2QtOnNQ1VpNF2RY9sc+DHypLzK1Z7HxlxpVKZr2/lFstobC8XLe3vMKfO2tl5pb9vtS2xl62Xla8ZLs7b3t4zZqnyHtnzfH8Ts5933bPLftESk+//3cV8/7GSSn//+4z//9hIiIMAAAAAAAFTZuDWoRCWXSySxwRHPQmCUuWH1ChH8SYyIl8Ur2FWkFRzrM/zjGl0p48e/1WE+a1AxsbJq3evaTuFIHlKFBSyI1Pcs+SMyBTd7aR0mHmc+92q2E8bX25xcp+Hl11NPuVW3ZRbNEn/+5LENwAWZi9lzDzNysZFrHj3mbmzjvEbrUlUZi1XrzPvZqX2qbn07Vb7eMfDzjvd9BNVS7+7pVUc1v/dU8zm+OztVf+LuNnP/3fc///7OSrf//4mf//+wIlCsQAAAAAAABpLmOhTcaeEK70FkAQmvE3TOrZgsJJS5x9Ut7ZUpKS8E7Otkvv77arV02PIE19e0uUNYmS/1r109cVoFn3dkTQkomhKBBC3diQHOqyO2klEkbQVG1aMap8lsU8knQetyI7W7Yr5zGOekcQ7cps288MzvsbLaU2N9KeK3OzNtSVPzwzfVz93YiNi8qqf3uw7V67f7Ekvr/9siMrf//7JmJV///7O3///9ySI1yAAAAAvnHJ2GZiAal+zjBQVQA9tft1+d4tR8xEKLA4b37fFrspIUwXBk/tnGnyub1A3s+/v3hK5POapUcr+1qaGKNKUR4S5FkZQ9GFlClS7wdZNOLwRo0CzFD1Hikn2PRVhsZnkuTbrRXKK8cQrVXTsl6wz7Tb47WmZBrl2YNYaOUVpU0oXmDpWne7FDTxwtei3PTss//uSxEsAFgItYWw9DcrixSuSsLABLVV+7llSatf+9par/+hA45v//hFr//9wfNr6RgAANOfaWRO3BOUTwwqTwWKZGM0qUn0ymQ06NwFwQyHPvdqPWVNXAVAIIo6z8y59QbOG4njeuyYljmmxKD0bjsHsn29rLlFEkwfN0DSkJWhI1LTB5obnmHU6uHWiyT6hxWL3tk1ZKycINfF05LQh6DDek6tE8+F4N2HHtZnaiamzlH1LYbbr5q2UnsdLanfDJeyVkkm8XWynzR513P8pn0HmrW//8ve3b//vs0Pbv//e99f//8Ew8AYAAAAAAAAAggQACfWmqkiVC+QVZNAHKgJNADEYUUFkipjJ96IuEEkLpeGXGAXTFEipwZoEdG5uQ0ONrRJoZ4mi8H4idBSroEVEopJJKSSWURkQ4GkZGoywypkuktS1sKTI5ZiLNWYkNJxJMsNRatETsOEipkQIWWUC8TQ6R4N0zApGrlxbV0lUhqjSSnSKHEjKOknSdPpMQIxSWYl5Tr1/FxLMSiMuTpqZE0QFkkpEzJJZgtBNZQIMgv/7ksRdAB0aQVGZSQAKxbYeg57wAWgYG3/S/VMBkkkpMESWimLSiynJBeShDfd2LbqZEiySS2JpLOJqsSg7v6///qV+CrWWRPKKOfpOXJhZW45lE3iuhIVWK6IaZK6LchS5Jy7OUuKho+fbrb1YVay0Tx1TJ5RRoKtityemYlc+3WuLatZ9Gt6vd51i1vBe7rXWLer3cF7XFt5r4L2uva1vbea11CfahPt1rqz7Vn1t/Nf/8Wtutd1r7W3Wu61r/819a1///zWv/tb4/rX2tq0bea6xb2tb////FrbrFSioTYsFN//BXfb/8KyOi5HBTYqFkFPFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/+5LEVgAAAAGkAAAAAAAANIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",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;Ae 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-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-eJUty9ng.js b/docs/javascript/assets/index-LiVchieZ.js similarity index 97% rename from docs/javascript/assets/index-eJUty9ng.js rename to docs/javascript/assets/index-LiVchieZ.js index b6d4c8f3..dc42e198 100644 --- a/docs/javascript/assets/index-eJUty9ng.js +++ b/docs/javascript/assets/index-LiVchieZ.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-Y_ahWKbD.js b/docs/javascript/assets/index-LzRU17eg.js similarity index 92% rename from docs/javascript/assets/index-Y_ahWKbD.js rename to docs/javascript/assets/index-LzRU17eg.js index e3d9b1ea..56b6a1e5 100644 --- a/docs/javascript/assets/index-Y_ahWKbD.js +++ b/docs/javascript/assets/index-LzRU17eg.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-7u5kpdT_.js b/docs/javascript/assets/index-MGeLxDs-.js similarity index 97% rename from docs/javascript/assets/index-7u5kpdT_.js rename to docs/javascript/assets/index-MGeLxDs-.js index 93e021d9..604837d4 100644 --- a/docs/javascript/assets/index-7u5kpdT_.js +++ b/docs/javascript/assets/index-MGeLxDs-.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-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-0xIwmk5_.js b/docs/javascript/assets/index-MPdVY0PS.js similarity index 94% rename from docs/javascript/assets/index-0xIwmk5_.js rename to docs/javascript/assets/index-MPdVY0PS.js index e46d55b5..61aab2d0 100644 --- a/docs/javascript/assets/index-0xIwmk5_.js +++ b/docs/javascript/assets/index-MPdVY0PS.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-lIJgP0ku.js b/docs/javascript/assets/index-NKxkZuWQ.js similarity index 94% rename from docs/javascript/assets/index-lIJgP0ku.js rename to docs/javascript/assets/index-NKxkZuWQ.js index a0d29710..54d2d6e0 100644 --- a/docs/javascript/assets/index-lIJgP0ku.js +++ b/docs/javascript/assets/index-NKxkZuWQ.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const c=document.querySelector(".dice-container"),o=document.querySelector(".play"),s=document.getElementById("dice1"),m=document.getElementById("dice2"),a=document.getElementById("dice3"),y=document.getElementById("dice4"),r=document.getElementById("dice5"),u=document.getElementById("dice6");let t=[2,3],d=[];const n=[s,m,a,y,r,u];n[t[0]].style.display="block";n[t[1]].style.display="block";function p(){if(n.forEach(e=>e.style.display="none"),c.lastElementChild.classList.contains("duplicate")){const e=c.lastElementChild;c.removeChild(e)}if(t=[...d],t[0]>=0&&t[1]>=0&&t[0]===t[1]){const e=n[t[0]].cloneNode(!0);e.style.display="block",e.classList.add("duplicate"),c.appendChild(e),n[t[0]].style.display="block"}else t[0]!==void 0&&(n[t[0]].style.display="block"),t[1]!==void 0&&(n[t[1]].style.display="block");d=[]}function i(){const l=Math.floor(Math.random()*6),e=Math.floor(Math.random()*6);l>e?c.style.flexDirection="row-reverse":c.style.flexDirection="row",d.push(l,e),p(),f(l,e)}function f(l,e){l>e?document.getElementById("result").innerHTML="Player1 Wins!":le.style.display="none"),c.lastElementChild.classList.contains("duplicate")){const e=c.lastElementChild;c.removeChild(e)}if(t=[...d],t[0]>=0&&t[1]>=0&&t[0]===t[1]){const e=n[t[0]].cloneNode(!0);e.style.display="block",e.classList.add("duplicate"),c.appendChild(e),n[t[0]].style.display="block"}else t[0]!==void 0&&(n[t[0]].style.display="block"),t[1]!==void 0&&(n[t[1]].style.display="block");d=[]}function i(){const l=Math.floor(Math.random()*6),e=Math.floor(Math.random()*6);l>e?c.style.flexDirection="row-reverse":c.style.flexDirection="row",d.push(l,e),p(),f(l,e)}function f(l,e){l>e?document.getElementById("result").innerHTML="Player1 Wins!":l{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-5LoLvxT2.js b/docs/javascript/assets/index-R0zOYL6y.js similarity index 89% rename from docs/javascript/assets/index-5LoLvxT2.js rename to docs/javascript/assets/index-R0zOYL6y.js index c002025b..9e08f670 100644 --- a/docs/javascript/assets/index-5LoLvxT2.js +++ b/docs/javascript/assets/index-R0zOYL6y.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const c=document.getElementById("grid"),i=document.getElementById("inputBox");let n=null;function d(e){const t=document.createElement("div");return t.className="grid-item",t.textContent=e,t.dataset.value=e,t}function a(e=3){const t=document.createDocumentFragment();for(let r=1;r<=e*e;r++)t.appendChild(d(r));return t}function m(e){e.preventDefault(),n&&o[n-1].classList.remove("active"),n=parseInt(i.value,10),o[n-1].classList.add("active"),i.value=""}c.appendChild(a());const o=c.querySelectorAll(".grid-item");document.getElementById("colorForm").addEventListener("submit",m); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.js";const c=document.getElementById("grid"),i=document.getElementById("inputBox");let n=null;function d(e){const t=document.createElement("div");return t.className="grid-item",t.textContent=e,t.dataset.value=e,t}function a(e=3){const t=document.createDocumentFragment();for(let r=1;r<=e*e;r++)t.appendChild(d(r));return t}function m(e){e.preventDefault(),n&&o[n-1].classList.remove("active"),n=parseInt(i.value,10),o[n-1].classList.add("active"),i.value=""}c.appendChild(a());const o=c.querySelectorAll(".grid-item");document.getElementById("colorForm").addEventListener("submit",m); diff --git a/docs/javascript/assets/index-6bbfgxf5.js b/docs/javascript/assets/index-SiZAkhce.js similarity index 99% rename from docs/javascript/assets/index-6bbfgxf5.js rename to docs/javascript/assets/index-SiZAkhce.js index 845b7372..c239fcd0 100644 --- a/docs/javascript/assets/index-6bbfgxf5.js +++ b/docs/javascript/assets/index-SiZAkhce.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const i="/frontend-mini-challenges/javascript/assets/clear-LZ6NAuEy.png",c="/frontend-mini-challenges/javascript/assets/clouds-Ewen_3nw.png",o="/frontend-mini-challenges/javascript/assets/drizzle-qNMLyhya.png",g="/frontend-mini-challenges/javascript/assets/haze-CPmwrBBR.png",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABCCAYAAAAWqotYAAAAAXNSR0IArs4c6QAABhVJREFUeAHtm/1xozgYh+0Klg6iDpYOTh3YHZgO1h04HcQdmFQQtoKQCkIqMKlgSQV7z88n5WQMGIj35v7Qb+aJvt4P6TXszYi55W+0WCxKkEr4uVwuKw3mipAG3xVYSCB1reI2oLYkz0/a2SJPgrPPY+h7avqekr7OpLyzRS6fJyWI8n4smOzSkckfYMZmwzaBDTzDWP3C8AG0odHCfgUHmKIDxirAaGGfgvanfbZVLpm5J5p1Ef9ybdgUDETnr4e/NrR2JLSh3hg0ULk2pZWN2m8QSjY5PHY9JeSRzwbWYCDUO4M6wND33NEPVTMoQHmU80zkSZhQngxSCPXBQD4NFOGCnkI9PVuooE/PLIiuX4Pp3zXswZwFbw1Yz6CAPr2y8AxH6FLDZA62FfpsqHVnJ/su6RzPoHx90j6zs8BDA4xT2IOKcU3amA6yHorZtYaPgS1UMEYFRhkkXfH65mTv/OQ/Rjr3FkxfzGXfQjhPAMtYSPb099/Ht2Ksf/wbNz+7IU+KswUVRn21dYDyaPwluYJYgpiAhn4FapVH/ahYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIHuCugyVBeg77e4rehKQfyE+e9u7eNP3la4s5xSkeelaz+3mHO3MsmCTqgjgwcwc5Pgq3uzDQxdLuoC8gDp3Dzyw38FTzAkrU+6fm/vCf8UDqB9e5Xt4vkFta+wAT05V4XdCrTRqTrisANzNQkG2HUdhOmr0sEPMOoHw87ADzhCl07fMCx7Mg719Rq3lTNRQg3v0IBeRRXWQgbtIssuB9lWIMkmdXQ9DSVrBcj+9Iqza78fy1wGBkLpu0IODZTgZekYWMM3CFUzyKGEhV5x8qR0ZafWgvza0te+CmrX0gQiiCp+DzVMVYNDDtrAoLDR651BBXNU4NR1wIu8sgPZz5H2t4XkIvDQBA4WVIwGhqSNZUOxhtbwNbCHGoZUsbiFaQdxyeXn/BVnSNrHHgYfguXQocI1AhnGHm2+gubW//Ukj2Jr074t6evVOrXq30rksi6W2tN51JKrcfOxiRWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgV6K6AvmHsWNItgm4VbvaNwd3C3BHTOGhOKvVXF5Cn0Rf/uFsYfzGbBuF0Hp3r7Va3JORSfF2YWnhfMNHWKxO6fk4wmCz8NvAE13TE4AHM5CQ44GfhAL9gSFo/gJ2Zx+C7gyOEGvyGIUMVYXUtKTYpHODaQTDp1CuzGxj8wVjvOwhLo3TEagdm6Eys69J0A9pXn8rTZSir2rQeSbEFvW6hGgYlVKC+MA7rWppP+e8KBTM1r03tV8hl6RvIwH+foPupkp6QlC+FBKzr05zpkZHPI/uTyCM/A2vYQFuyLaEB9VOQrEP9UC8MctB5StpuKTHk0MAUFRivu6NezmKrJ+keapiiCuMMksuolzOyc/bymyLtS/szl1FHzOC4hgK6Eit4CRmMOkhfSvxTyEHx2mqY0Pw9zDuISyx/F0fxFLctzedg+/Y6e56gCZjZASY4kse/ShO8ppv+V3mm7yx6xArECsQKxArECsQKxArECsQKxArECsQKxArECvxvK6BvGM9udyVtA4+3uPMnri4gDehmRNdVQvEr1ypPTf9LIo8lgC5VjcPnqRmLF/KUtF8SeQwBdCbFT+FtwWSXRl2/E+BMBNKd3AHGXsePun4/S8KA+AZ2cIQxOmK0A9OONTTGXtdvG3iGtk7fMEpmRZeOTO6gNylrPkHffX+Fjc+htoG2VOwD6BftFesreIIu1UyGeTTukvwHv8uwnsIBtK+2tH/l2S/DnTKhzW9hDfrEFqp0A9/KNgHfuuVTo/9fIed1KcJJ3yePoZ857mhDVQwa8K2hH8LwU2/09lCQSz5nIk/CxBq28P1s8Z9XumbOI9sUfEv3U+/0ckGemrZfSgoZqMJjpV96C6Y/8uUK9msoYKwaDPegg46W7J2f/MeqwHDdl+Tsyesywtkwn4EFSf84S/rVG6hAv3xJO1vkSXDOwIL6Kejp169eO0ry5PS/JHJlBLBgHP7pf2HcQAk6U00b9Scq8DdqEfrKo4jnpQAAAABJRU5ErkJggg==",m="/frontend-mini-challenges/javascript/assets/mist-UsRI81hv.png",p="/frontend-mini-challenges/javascript/assets/rain-6EVq1sZg.png",h="/frontend-mini-challenges/javascript/assets/snow--VBqIh3y.png",u="data:image/png;base64,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",C=new Map([["clear",i],["clouds",c],["drizzle",o],["haze",g],["humidity",w],["mist",m],["rain",p],["snow",h],["wind",u]]),d="46d47581a51a79782741111953e700af",l="https://api.openweathermap.org/data/2.5/weather?units=metric&q=",a=document.querySelector(".search input"),f=document.querySelector(".search button"),y=document.querySelector(".weather-icon");async function A(n){var s,t;const r=await fetch(l+n+`&appid=${d}`);if(r.status==404)document.querySelector(".error").style.display="block",document.querySelector(".weather").style.display="none";else{var e=await r.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",y.src=C.get((t=(s=e.weather[0])==null?void 0:s.main)==null?void 0:t.toLowerCase()),document.querySelector(".weather").style.display="block",document.querySelector(".error").style.display="none"}}f.addEventListener("click",()=>{A(a.value)});document.querySelector("form").addEventListener("submit",n=>{n.preventDefault(),A(a.value)}); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.js";const i="/frontend-mini-challenges/javascript/assets/clear-LZ6NAuEy.png",c="/frontend-mini-challenges/javascript/assets/clouds-Ewen_3nw.png",o="/frontend-mini-challenges/javascript/assets/drizzle-qNMLyhya.png",g="/frontend-mini-challenges/javascript/assets/haze-CPmwrBBR.png",w="data:image/png;base64,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",m="/frontend-mini-challenges/javascript/assets/mist-UsRI81hv.png",p="/frontend-mini-challenges/javascript/assets/rain-6EVq1sZg.png",h="/frontend-mini-challenges/javascript/assets/snow--VBqIh3y.png",u="data:image/png;base64,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",C=new Map([["clear",i],["clouds",c],["drizzle",o],["haze",g],["humidity",w],["mist",m],["rain",p],["snow",h],["wind",u]]),d="46d47581a51a79782741111953e700af",l="https://api.openweathermap.org/data/2.5/weather?units=metric&q=",a=document.querySelector(".search input"),f=document.querySelector(".search button"),y=document.querySelector(".weather-icon");async function A(n){var s,t;const r=await fetch(l+n+`&appid=${d}`);if(r.status==404)document.querySelector(".error").style.display="block",document.querySelector(".weather").style.display="none";else{var e=await r.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",y.src=C.get((t=(s=e.weather[0])==null?void 0:s.main)==null?void 0:t.toLowerCase()),document.querySelector(".weather").style.display="block",document.querySelector(".error").style.display="none"}}f.addEventListener("click",()=>{A(a.value)});document.querySelector("form").addEventListener("submit",n=>{n.preventDefault(),A(a.value)}); diff --git a/docs/javascript/assets/index-NFrKTIcW.js b/docs/javascript/assets/index-TExddBoO.js similarity index 88% rename from docs/javascript/assets/index-NFrKTIcW.js rename to docs/javascript/assets/index-TExddBoO.js index 96f3d35a..2e935ae0 100644 --- a/docs/javascript/assets/index-NFrKTIcW.js +++ b/docs/javascript/assets/index-TExddBoO.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const c=document.getElementById("follower"),n=document.getElementById("speed"),l=document.getElementById("cursor"),e={x:0,y:0},t={x:0,y:0};let o=n.valueAsNumber;function s(){e.x+=(t.x-e.x)*o,e.y+=(t.y-e.y)*o,c.style.transform=`translate(${e.x}px, ${e.y}px)`,requestAnimationFrame(()=>s())}n.addEventListener("input",()=>{o=n.valueAsNumber});l.addEventListener("change",()=>{document.body.classList.toggle("no-cursor")});document.addEventListener("pointermove",r=>{t.x=r.clientX-25,t.y=r.clientY-25});s(); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.js";const c=document.getElementById("follower"),n=document.getElementById("speed"),l=document.getElementById("cursor"),e={x:0,y:0},t={x:0,y:0};let o=n.valueAsNumber;function s(){e.x+=(t.x-e.x)*o,e.y+=(t.y-e.y)*o,c.style.transform=`translate(${e.x}px, ${e.y}px)`,requestAnimationFrame(()=>s())}n.addEventListener("input",()=>{o=n.valueAsNumber});l.addEventListener("change",()=>{document.body.classList.toggle("no-cursor")});document.addEventListener("pointermove",r=>{t.x=r.clientX-25,t.y=r.clientY-25});s(); diff --git a/docs/javascript/assets/index-MSaAkDAM.js b/docs/javascript/assets/index-THN6thS3.js similarity index 90% rename from docs/javascript/assets/index-MSaAkDAM.js rename to docs/javascript/assets/index-THN6thS3.js index 34426d9c..ddb1b0dc 100644 --- a/docs/javascript/assets/index-MSaAkDAM.js +++ b/docs/javascript/assets/index-THN6thS3.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-cXEhZXGC.js b/docs/javascript/assets/index-TLZ5DeB8.js similarity index 94% rename from docs/javascript/assets/index-cXEhZXGC.js rename to docs/javascript/assets/index-TLZ5DeB8.js index 64672018..e7bbb007 100644 --- a/docs/javascript/assets/index-cXEhZXGC.js +++ b/docs/javascript/assets/index-TLZ5DeB8.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-BBSlH6yk.js b/docs/javascript/assets/index-WyLfenoD.js similarity index 88% rename from docs/javascript/assets/index-BBSlH6yk.js rename to docs/javascript/assets/index-WyLfenoD.js index 1fc251eb..b6042add 100644 --- a/docs/javascript/assets/index-BBSlH6yk.js +++ b/docs/javascript/assets/index-WyLfenoD.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-Ezn0S-w5.js b/docs/javascript/assets/index-YfqodBvi.js similarity index 95% rename from docs/javascript/assets/index-Ezn0S-w5.js rename to docs/javascript/assets/index-YfqodBvi.js index 6a901e21..ec28aac4 100644 --- a/docs/javascript/assets/index-Ezn0S-w5.js +++ b/docs/javascript/assets/index-YfqodBvi.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-0pIHTfPY.js b/docs/javascript/assets/index-b4D5Ir22.js similarity index 92% rename from docs/javascript/assets/index-0pIHTfPY.js rename to docs/javascript/assets/index-b4D5Ir22.js index 41c42186..465dbc0a 100644 --- a/docs/javascript/assets/index-0pIHTfPY.js +++ b/docs/javascript/assets/index-b4D5Ir22.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-JmLndpS2.js b/docs/javascript/assets/index-cPaq946m.js similarity index 91% rename from docs/javascript/assets/index-JmLndpS2.js rename to docs/javascript/assets/index-cPaq946m.js index eda3e5dd..18cc89de 100644 --- a/docs/javascript/assets/index-JmLndpS2.js +++ b/docs/javascript/assets/index-cPaq946m.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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(); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-OBLzKv4y.js b/docs/javascript/assets/index-cZyxMXpv.js similarity index 96% rename from docs/javascript/assets/index-OBLzKv4y.js rename to docs/javascript/assets/index-cZyxMXpv.js index f86d1a8d..a0352652 100644 --- a/docs/javascript/assets/index-OBLzKv4y.js +++ b/docs/javascript/assets/index-cZyxMXpv.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-6LZ2qHhw.js b/docs/javascript/assets/index-clLl4sEU.js similarity index 78% rename from docs/javascript/assets/index-6LZ2qHhw.js rename to docs/javascript/assets/index-clLl4sEU.js index 082d204f..09069208 100644 --- a/docs/javascript/assets/index-6LZ2qHhw.js +++ b/docs/javascript/assets/index-clLl4sEU.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-_VQIPG7_.js b/docs/javascript/assets/index-cx2AA0Q7.js similarity index 92% rename from docs/javascript/assets/index-_VQIPG7_.js rename to docs/javascript/assets/index-cx2AA0Q7.js index 0206fa29..1a88b176 100644 --- a/docs/javascript/assets/index-_VQIPG7_.js +++ b/docs/javascript/assets/index-cx2AA0Q7.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-rsd8B6Hw.js b/docs/javascript/assets/index-dKMsAHc3.js similarity index 96% rename from docs/javascript/assets/index-rsd8B6Hw.js rename to docs/javascript/assets/index-dKMsAHc3.js index 3aab812f..72b0507a 100644 --- a/docs/javascript/assets/index-rsd8B6Hw.js +++ b/docs/javascript/assets/index-dKMsAHc3.js @@ -1,4 +1,4 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-mxhIwhCc.js b/docs/javascript/assets/index-dUOVTRTD.js similarity index 91% rename from docs/javascript/assets/index-mxhIwhCc.js rename to docs/javascript/assets/index-dUOVTRTD.js index 4c2e8190..d7995a41 100644 --- a/docs/javascript/assets/index-mxhIwhCc.js +++ b/docs/javascript/assets/index-dUOVTRTD.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-TnmFwFw-.js b/docs/javascript/assets/index-dmGHn0KP.js similarity index 97% rename from docs/javascript/assets/index-TnmFwFw-.js rename to docs/javascript/assets/index-dmGHn0KP.js index f4685c42..e2c5da89 100644 --- a/docs/javascript/assets/index-TnmFwFw-.js +++ b/docs/javascript/assets/index-dmGHn0KP.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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;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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-UF-zm1bQ.js b/docs/javascript/assets/index-hYGgkcCw.js similarity index 95% rename from docs/javascript/assets/index-UF-zm1bQ.js rename to docs/javascript/assets/index-hYGgkcCw.js index 7e24b8b6..817c9eaf 100644 --- a/docs/javascript/assets/index-UF-zm1bQ.js +++ b/docs/javascript/assets/index-hYGgkcCw.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-7srib8DF.js b/docs/javascript/assets/index-hktBVUXg.js similarity index 94% rename from docs/javascript/assets/index-7srib8DF.js rename to docs/javascript/assets/index-hktBVUXg.js index 900d90d6..9b7dfffc 100644 --- a/docs/javascript/assets/index-7srib8DF.js +++ b/docs/javascript/assets/index-hktBVUXg.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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(); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-h1MO7QTQ.js b/docs/javascript/assets/index-hyxBdJmP.js similarity index 96% rename from docs/javascript/assets/index-h1MO7QTQ.js rename to docs/javascript/assets/index-hyxBdJmP.js index 28cfb1e2..c3e16ba4 100644 --- a/docs/javascript/assets/index-h1MO7QTQ.js +++ b/docs/javascript/assets/index-hyxBdJmP.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-MMsTi43N.js b/docs/javascript/assets/index-iyluUmd8.js similarity index 95% rename from docs/javascript/assets/index-MMsTi43N.js rename to docs/javascript/assets/index-iyluUmd8.js index 37108e90..485a7aaf 100644 --- a/docs/javascript/assets/index-MMsTi43N.js +++ b/docs/javascript/assets/index-iyluUmd8.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-cV7dBiME.js b/docs/javascript/assets/index-jAbj-yAq.js similarity index 97% rename from docs/javascript/assets/index-cV7dBiME.js rename to docs/javascript/assets/index-jAbj-yAq.js index 94266079..82de00e8 100644 --- a/docs/javascript/assets/index-cV7dBiME.js +++ b/docs/javascript/assets/index-jAbj-yAq.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-NEyCNU3f.js b/docs/javascript/assets/index-kFah6ZTc.js similarity index 90% rename from docs/javascript/assets/index-NEyCNU3f.js rename to docs/javascript/assets/index-kFah6ZTc.js index 7a75b444..d5b0072d 100644 --- a/docs/javascript/assets/index-NEyCNU3f.js +++ b/docs/javascript/assets/index-kFah6ZTc.js @@ -1,4 +1,4 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-WTdMGufK.js b/docs/javascript/assets/index-l1RZq4tf.js similarity index 91% rename from docs/javascript/assets/index-WTdMGufK.js rename to docs/javascript/assets/index-l1RZq4tf.js index ab0bc297..3ae652f9 100644 --- a/docs/javascript/assets/index-WTdMGufK.js +++ b/docs/javascript/assets/index-l1RZq4tf.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-lsZFmgpF.js b/docs/javascript/assets/index-ljkMHueW.js similarity index 95% rename from docs/javascript/assets/index-lsZFmgpF.js rename to docs/javascript/assets/index-ljkMHueW.js index 95e2134e..405eafd5 100644 --- a/docs/javascript/assets/index-lsZFmgpF.js +++ b/docs/javascript/assets/index-ljkMHueW.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-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-rN4kXKVa.js b/docs/javascript/assets/index-llZLv2tj.js similarity index 96% rename from docs/javascript/assets/index-rN4kXKVa.js rename to docs/javascript/assets/index-llZLv2tj.js index 0898fcbf..7035316b 100644 --- a/docs/javascript/assets/index-rN4kXKVa.js +++ b/docs/javascript/assets/index-llZLv2tj.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-_n8CbrvN.js b/docs/javascript/assets/index-nv9rtD5g.js similarity index 99% rename from docs/javascript/assets/index-_n8CbrvN.js rename to docs/javascript/assets/index-nv9rtD5g.js index d73e54ef..1ed3d881 100644 --- a/docs/javascript/assets/index-_n8CbrvN.js +++ b/docs/javascript/assets/index-nv9rtD5g.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-Qiv_QU6E.js b/docs/javascript/assets/index-oHmd1B22.js similarity index 98% rename from docs/javascript/assets/index-Qiv_QU6E.js rename to docs/javascript/assets/index-oHmd1B22.js index 2cf4adf4..72f14519 100644 --- a/docs/javascript/assets/index-Qiv_QU6E.js +++ b/docs/javascript/assets/index-oHmd1B22.js @@ -1,4 +1,4 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-pJ77EZh6.js b/docs/javascript/assets/index-p9hZFs2w.js similarity index 98% rename from docs/javascript/assets/index-pJ77EZh6.js rename to docs/javascript/assets/index-p9hZFs2w.js index eb925a54..236b886a 100644 --- a/docs/javascript/assets/index-pJ77EZh6.js +++ b/docs/javascript/assets/index-p9hZFs2w.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-xi5IxNt4.js b/docs/javascript/assets/index-pS2siC_0.js similarity index 99% rename from docs/javascript/assets/index-xi5IxNt4.js rename to docs/javascript/assets/index-pS2siC_0.js index 4a9ddff5..4fde2dd5 100644 --- a/docs/javascript/assets/index-xi5IxNt4.js +++ b/docs/javascript/assets/index-pS2siC_0.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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"}); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-MsSapguC.js b/docs/javascript/assets/index-qSnGUWJh.js similarity index 90% rename from docs/javascript/assets/index-MsSapguC.js rename to docs/javascript/assets/index-qSnGUWJh.js index 230f1c2d..45b6f8be 100644 --- a/docs/javascript/assets/index-MsSapguC.js +++ b/docs/javascript/assets/index-qSnGUWJh.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-F8AKyFfm.js b/docs/javascript/assets/index-r1vKnPHB.js similarity index 90% rename from docs/javascript/assets/index-F8AKyFfm.js rename to docs/javascript/assets/index-r1vKnPHB.js index 3c899c5c..7c16a84f 100644 --- a/docs/javascript/assets/index-F8AKyFfm.js +++ b/docs/javascript/assets/index-r1vKnPHB.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.js";const s=document.querySelector(".second-text"),c=document.querySelector(".input"),d=document.querySelector(".button"),a=document.querySelector(".speedRange"),r=["Student","Developer","Writer"];a.default=200;let o=200;function i(n){return new Promise(t=>setTimeout(t,n))}async function l(n,t){await i(o);for(let e=0;e{c.value&&(r.push(c.value),c.value="")});a.addEventListener("change",()=>{o=a.value}); +import"./header-azCMSrDW.js";import"./navbar-ZW0Q7B84.js";const s=document.querySelector(".second-text"),c=document.querySelector(".input"),d=document.querySelector(".button"),a=document.querySelector(".speedRange"),r=["Student","Developer","Writer"];a.default=200;let o=200;function i(n){return new Promise(t=>setTimeout(t,n))}async function l(n,t){await i(o);for(let e=0;e{c.value&&(r.push(c.value),c.value="")});a.addEventListener("change",()=>{o=a.value}); diff --git a/docs/javascript/assets/index-VdnGALvF.js b/docs/javascript/assets/index-sHctyk-M.js similarity index 96% rename from docs/javascript/assets/index-VdnGALvF.js rename to docs/javascript/assets/index-sHctyk-M.js index f313dc3f..4e85ef90 100644 --- a/docs/javascript/assets/index-VdnGALvF.js +++ b/docs/javascript/assets/index-sHctyk-M.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-Trqevr2O.js b/docs/javascript/assets/index-uYI7bNrK.js similarity index 94% rename from docs/javascript/assets/index-Trqevr2O.js rename to docs/javascript/assets/index-uYI7bNrK.js index b5f358e9..55a04741 100644 --- a/docs/javascript/assets/index-Trqevr2O.js +++ b/docs/javascript/assets/index-uYI7bNrK.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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-azCMSrDW.js";import"./navbar-ZW0Q7B84.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-qqnUNNQN.js b/docs/javascript/assets/index-ufBrfXve.js similarity index 93% rename from docs/javascript/assets/index-qqnUNNQN.js rename to docs/javascript/assets/index-ufBrfXve.js index 9e8033e4..8702a581 100644 --- a/docs/javascript/assets/index-qqnUNNQN.js +++ b/docs/javascript/assets/index-ufBrfXve.js @@ -1 +1 @@ -import"./header-ZknsE-IS.js";import"./navbar-bo2WH8je.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{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
-`,y="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/javascript/assets/github-CjMMDlDK.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["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:[t.interview]}],["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:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",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:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}]]);n(w);const b=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",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:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["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:[t.interview]}],["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}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["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:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["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:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],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:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["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 (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]),M=n(b),E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["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:[]}],["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:[t.interview]}],["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:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],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:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["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:[t.interview],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}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["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:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["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:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={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:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/javascript/`:`/${s}/#/javascript/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=M.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{M as j}; +`,y="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/javascript/assets/github-CjMMDlDK.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["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:[t.interview]}],["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:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",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:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}]]);n(w);const b=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",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:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["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:[t.interview]}],["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}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["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:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["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:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],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:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["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 (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]),M=n(b),E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["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:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["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:[]}],["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-number",{title:"Guess the number",link:"guess-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["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:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["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-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],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:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["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:[t.interview],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}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["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:[t.interview]}],["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:[t.interview]}],["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:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["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:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["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:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={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:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/javascript/`:`/${s}/#/javascript/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=M.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{M 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 405c8075..11b9f659 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/analog-clock/index.html b/docs/javascript/src/challenges/analog-clock/index.html index f87a5e38..e00d25ee 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 2a050c66..f1400459 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 1db0cb17..151c4c6d 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 d47a87d9..c89e3cad 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 e7b21227..2549db88 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 434c07c2..5b618d39 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/bmi-calculator/index.html b/docs/javascript/src/challenges/bmi-calculator/index.html index b36a2ae7..2fe9623a 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 50569ef2..d9d511ec 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 48de82f4..377305d0 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 5f1dea2e..5762c129 100644 --- a/docs/javascript/src/challenges/chess-board/index.html +++ b/docs/javascript/src/challenges/chess-board/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chips-input/index.html b/docs/javascript/src/challenges/chips-input/index.html index 9d86410f..41a35bdd 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-me/index.html b/docs/javascript/src/challenges/color-me/index.html index 8386712a..8f824cef 100644 --- a/docs/javascript/src/challenges/color-me/index.html +++ b/docs/javascript/src/challenges/color-me/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/color-spotter/index.html b/docs/javascript/src/challenges/color-spotter/index.html index 8cc7f4fd..25a8dba1 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 12844f99..6763f740 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/connect-four/index.html b/docs/javascript/src/challenges/connect-four/index.html index 935e8f0d..6c5e5b6f 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 2411cfb7..d6913071 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 94c7264e..27f2a048 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 45b393df..164b51dd 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/dice-game/index.html b/docs/javascript/src/challenges/dice-game/index.html index e4cc8a1e..bf64749e 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 fe5fe9d2..9c5b5996 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 1933aede..7772a800 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 0c3215e4..acadca03 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 a688799a..c61cc583 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/guess-the-number/index.html b/docs/javascript/src/challenges/guess-the-number/index.html index 90d2cdc5..e607d401 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 5de2afb2..6445d31c 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 df9562e8..8923e15c 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 cdb7e31d..2cf219dd 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 d710501d..74d2e232 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/match-pair/index.html b/docs/javascript/src/challenges/match-pair/index.html index 62c309fe..3fc55ec9 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 011da79d..a3abf798 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/mouse-follower/index.html b/docs/javascript/src/challenges/mouse-follower/index.html index a5fcb3cf..ee1d85d0 100644 --- a/docs/javascript/src/challenges/mouse-follower/index.html +++ b/docs/javascript/src/challenges/mouse-follower/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 076fc6e6..79068577 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 f1423c52..45e927f2 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 61e3ea76..babee023 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/nested-comments/index.html b/docs/javascript/src/challenges/nested-comments/index.html index a3c51b7a..06a85336 100644 --- a/docs/javascript/src/challenges/nested-comments/index.html +++ b/docs/javascript/src/challenges/nested-comments/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/otp-input/index.html b/docs/javascript/src/challenges/otp-input/index.html index b47dbdf3..4db227cd 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 4db785f1..2c1d958a 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 8387b3c5..a71f93b8 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 c91b6461..15bdde36 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 196d3828..567eaf90 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 10cfdf7d..ca47fa30 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/index.html b/docs/javascript/src/challenges/quiz-app/index.html index 8df8cc35..61404e62 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 07661f8a..ad80a91d 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 28d43718..57d791a9 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 bca6d285..123b2d54 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/snake-game/index.html b/docs/javascript/src/challenges/snake-game/index.html index 32adbd6b..fc6439f6 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 455781e4..52e714f6 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/star-rating/index.html b/docs/javascript/src/challenges/star-rating/index.html index e2e2eadd..40f4133e 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/story-generator/index.html b/docs/javascript/src/challenges/story-generator/index.html index 1490e7a4..262f84dd 100644 --- a/docs/javascript/src/challenges/story-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 29deb6d2..eb4aa0ba 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 22c170a7..ac72d9fd 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 e4911ae4..b25fb2d1 100644 --- a/docs/javascript/src/challenges/tic-tac-toe/index.html +++ b/docs/javascript/src/challenges/tic-tac-toe/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/timer-quiz/index.html b/docs/javascript/src/challenges/timer-quiz/index.html index ae64f9a8..3029a870 100644 --- a/docs/javascript/src/challenges/timer-quiz/index.html +++ b/docs/javascript/src/challenges/timer-quiz/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/toast-snackbar/index.html b/docs/javascript/src/challenges/toast-snackbar/index.html index 65a935c1..3f12f572 100644 --- a/docs/javascript/src/challenges/toast-snackbar/index.html +++ b/docs/javascript/src/challenges/toast-snackbar/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/todo-list/index.html b/docs/javascript/src/challenges/todo-list/index.html index 9312067d..9e40a5c1 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 316ced49..49b0c569 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 47d9b9fe..a6a3b392 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 e4664809..515f7069 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 8e6aedfb..7129cca0 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 3fe91ee8..1515b49c 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 12c38a56..749e15db 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-dJngCLov.js b/docs/react/assets/index-Dd3k_6U_.js similarity index 98% rename from docs/react/assets/index-dJngCLov.js rename to docs/react/assets/index-Dd3k_6U_.js index 651fd1ee..31da8e9a 100644 --- a/docs/react/assets/index-dJngCLov.js +++ b/docs/react/assets/index-Dd3k_6U_.js @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function oc(){return oc=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 tC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),[s,a]=p.useState(),[l,u]=p.useState({isTransitioning:!1}),[d,f]=p.useState(),[h,g]=p.useState(),[m,x]=p.useState(),w=p.useRef(new Map),{v7_startTransition:v}=r||{},y=p.useCallback(E=>{v?Zk(E):E()},[v]),b=p.useCallback((E,j)=>{let{deletedFetchers:P,unstable_flushSync:R,unstable_viewTransitionOpts:M}=j;P.forEach(W=>w.current.delete(W)),E.fetchers.forEach((W,H)=>{W.data!==void 0&&w.current.set(H,W.data)});let L=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||L){R?ls(()=>i(E)):y(()=>i(E));return}if(R){ls(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let W=n.window.document.startViewTransition(()=>{ls(()=>i(E))});W.finished.finally(()=>{ls(()=>{f(void 0),g(void 0),a(void 0),u({isTransitioning:!1})})}),ls(()=>g(W));return}h?(d&&d.resolve(),h.skipTransition(),x({state:E,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(a(E),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,h,d,w,y]);p.useLayoutEffect(()=>n.subscribe(b),[n,b]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new eC)},[l]),p.useEffect(()=>{if(d&&s&&n.window){let E=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{y(()=>i(E)),await j});P.finished.finally(()=>{f(void 0),g(void 0),a(void 0),u({isTransitioning:!1})}),g(P)}},[y,s,d,n.window]),p.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,h,o.location,s]),p.useEffect(()=>{!l.isTransitioning&&m&&(a(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),x(void 0))},[l.isTransitioning,m]),p.useEffect(()=>{},[]);let C=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,j,P)=>n.navigate(E,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(E,j,P)=>n.navigate(E,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),k=n.basename||"/",_=p.useMemo(()=>({router:n,navigator:C,static:!1,basename:k}),[n,C,k]);return p.createElement(p.Fragment,null,p.createElement(_1.Provider,{value:_},p.createElement(S1.Provider,{value:o},p.createElement(Qk.Provider,{value:w.current},p.createElement(Yk.Provider,{value:l},p.createElement(Wk,{basename:k,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?p.createElement(nC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function nC(e){let{routes:t,future:n,state:r}=e;return Ok(t,void 0,r,n)}var Hm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hm||(Hm={}));var Wm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Wm||(Wm={}));var T=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(T||{}),z=(e=>(e.interview="interview",e.all="all",e))(z||{});const Vm=[T.Easy,T.Medium,T.Hard];function xa(e){return new Map([...e.entries()].sort((t,n)=>{const r=Vm.indexOf(t[1].difficulty),o=Vm.indexOf(n[1].difficulty);return r-o}))}const rC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:T.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:T.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:T.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[z.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:T.Easy,developer:"officialbidisha",tags:[z.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:T.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:T.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[z.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:T.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:T.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:T.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:T.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:T.Medium,developer:"Sukomal07",tags:[],isNew:!0}],["timeline",{title:"Timeline",link:"timeline/",difficulty:T.Medium,developer:"Vivek7038",tags:[],isNew:!0}]]);xa(rC);const oC=new Map([["counter",{title:"Counter",link:"counter/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[z.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:T.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:T.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:T.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:T.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[z.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:T.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[z.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:T.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:T.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:T.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:T.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:T.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:T.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:T.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:T.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:T.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:T.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:T.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:T.Medium,developer:"shruti-sen2004",tags:[z.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:T.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[z.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:T.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:T.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:T.Medium,developer:"srijanB7",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:T.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:T.Medium,developer:"Kei-K23",tags:[z.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:T.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:T.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:T.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:T.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:T.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:T.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}]]);xa(oC);const iC=new Map([["counter",{title:"Counter",link:"counter",difficulty:T.Easy,developer:"sadanandpai",tags:[z.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:T.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:T.Easy,developer:"Bhushan1019",tags:[z.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:T.Easy,tags:[z.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:T.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:T.Easy,developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:T.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:T.Easy,developer:"deepakrajkranti",tags:[z.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:T.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:T.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:T.Easy,developer:"NikhilJHA01",tags:[z.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:T.Easy,developer:"rashidtvmr",tags:[z.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:T.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:T.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:T.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:T.Easy,developer:"codechitra",tags:[z.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:T.Medium,developer:"liza",tags:[z.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:T.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:T.Medium,developer:"rishabhm05",tags:[z.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:T.Medium,developer:"deepu0",tags:[z.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:T.Medium,developer:"rishabhm05",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:T.Medium,developer:"deepu0",tags:[z.interview]}],["grid-lights",{title:"Grid Lights",link:"grid-lights",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:T.Medium,developer:"deepakrajkranti",tags:[z.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:T.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:T.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:T.Medium,developer:"rashidtvmr",tags:[z.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:T.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:T.Medium,developer:"AbhilashMadi",tags:[z.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:T.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:T.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:T.Hard,developer:"SujithGunasekaran",tags:[z.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:T.Hard,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:T.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:T.Medium,developer:"DeePaK-HeeRaKaRi",tags:[z.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:T.Medium,developer:"ayush-dutt-sharma",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:T.Hard,developer:"rishabhm05",tags:[z.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:T.Hard,developer:"deepu0",tags:[z.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:T.Hard,developer:"deepu0",tags:[z.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:T.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:T.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:T.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:T.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:T.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:T.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:T.Medium,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:T.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:T.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:T.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:T.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}]]),Gm=xa(iC),sC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:T.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:T.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:T.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:T.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:T.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:T.Medium,developer:"arpansaha13",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:T.Medium,developer:"jaydadhaniya",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:T.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:T.Medium,developer:"Shardik04",tags:[z.interview]}]]);xa(sC);const aC=new Map([["counter",{title:"Counter",link:"counter",difficulty:T.Easy,developer:"sadanandpai",tags:[z.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:T.Easy,developer:"pankajparkar",tags:[z.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:T.Easy,developer:"pankajparkar",tags:[z.interview]}],["stack",{title:"Stack",link:"stack",difficulty:T.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:T.Easy,developer:"pankajparkar",tags:[z.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:T.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);xa(aC);const lC=`