diff --git a/docs/angular/index.html b/docs/angular/index.html index d818cea8c..7dd69e64e 100644 --- a/docs/angular/index.html +++ b/docs/angular/index.html @@ -10,5 +10,5 @@ - + diff --git a/docs/angular/main-NRVLDMGA.js b/docs/angular/main-WDD7VADQ.js similarity index 74% rename from docs/angular/main-NRVLDMGA.js rename to docs/angular/main-WDD7VADQ.js index 4c1d63be4..464aa6b1a 100644 --- a/docs/angular/main-NRVLDMGA.js +++ b/docs/angular/main-WDD7VADQ.js @@ -1 +1 @@ -import{$ as Mt,$a as jt,A as Ke,B as F,Ba as I,C as St,Ca as N,D as zn,Da as T,E as Fn,F as Bn,G as U,H as Hn,Ha as Xn,I as R,K as k,Ka as Re,L as C,La as er,N as Vn,O as kt,Oa as tr,P as D,Pa as nr,Q as b,Qa as H,R as g,S as we,T as B,Ta as We,Ua as rr,V as qn,Va as Pt,W as Kn,Wa as ir,Xa as xt,Ya as Nt,Z as Rt,Za as sr,_ as Gn,a as h,aa as Tt,ab as or,b as M,ba as Wn,bb as ar,c as Nn,ca as Ge,cb as j,d as jn,da as Y,db as Ut,e as vt,ea as At,eb as Lt,f as yt,fa as Zn,fb as Ze,g as W,ga as Et,gb as lr,h as E,ha as Yn,i as Z,ia as Ce,j as x,ja as Ot,k as f,ka as be,l as ve,la as Se,lb as cr,m as Un,mb as _t,n as Ln,na as Jn,nb as ur,o as w,p as wt,pa as Dt,q as O,qa as se,r as _n,s as Ct,sa as It,ta as ke,u as ne,ua as z,v as re,w as ye,x as bt,xa as J,y as ie,z as $n,za as Qn}from"./chunk-T4VCYVGG.js";var Ft=class extends ar{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Bt=class n extends Ft{static makeCurrent(){or(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=di();return i==null?null:hi(i)}resetBaseElement(){Me=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return lr(document.cookie,e)}},Me=null;function di(){return Me=Me||document.querySelector("base"),Me?Me.getAttribute("href"):null}function hi(n){return new URL(n,document.baseURI).pathname}var pi=(()=>{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"),fr=(()=>{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(o=>o.supports(t)),!r)throw new k(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b(z))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},$t="ng-app-id",gr=(()=>{let e=class e{constructor(t,r,s,o={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_t(o),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 o=s.get(t);return o.usage+=r,o.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===t)return s.delete(r),o.removeAttribute($t),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute($t,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.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(j),b(Et),b(Ot,8),b(Ce))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),zt={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/"},qt=/%COMP%/g,mr="%COMP%",fi=`_nghost-${mr}`,gi=`_ngcontent-${mr}`,mi=!0,vi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>mi});function yi(n){return gi.replace(qt,n)}function wi(n){return fi.replace(qt,n)}function vr(n,e){return e.map(i=>i.replace(qt,n))}var dr=(()=>{let e=class e{constructor(t,r,s,o,a,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=_t(c),this.defaultRenderer=new Te(t,a,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=M(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ae&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:o=new Je(l,d,r,this.appId,p,a,c,v);break;case we.ShadowDom:return new Vt(l,d,t,r,a,c,this.nonce,v);default:o=new Ae(l,d,r,p,a,c,v);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(fr),b(gr),b(Et),b(vi),b(j),b(Ce),b(z),b(Ot))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Te=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(zt[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(hr(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(hr(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 k(-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=zt[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=zt[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=jt().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 hr(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Vt=class extends Te{constructor(e,i,t,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=vr(r.id,r.styles);for(let d of l){let p=document.createElement("style");a&&p.setAttribute("nonce",a),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)}},Ae=class extends Te{constructor(e,i,t,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?vr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ae{constructor(e,i,t,r,s,o,a,c){let l=r+"-"+t.id;super(e,i,t,s,o,a,c,l),this.contentAttr=yi(l),this.hostAttr=wi(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}},Ci=(()=>{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(j))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),pr=["alt","control","meta","shift"],bi={"\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"},Si={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},ki=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jt().onAndCancel(t,o.domEventName,a))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),pr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),a+=d+".")}),a+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=s,l.fullKey=a,l}static matchEventFullKeyCode(t,r){let s=bi[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(s=t.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),pr.forEach(a=>{if(a!==s){let c=Si[a];c(t)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(t,r,s){return o=>{e.matchEventFullKeyCode(o,t)&&s.runGuarded(()=>r(o))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(b(j))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function yr(n,e){return sr(h({rootComponent:n},Ri(e)))}function Ri(n){return{appProviders:[...Oi,...n?.providers??[]],platformProviders:Ei}}function Mi(){Bt.makeCurrent()}function Ti(){return new Dt}function Ai(){return Zn(document),document}var Ei=[{provide:Ce,useValue:cr},{provide:Yn,useValue:Mi,multi:!0},{provide:j,useFactory:Ai,deps:[]}];var Oi=[{provide:Wn,useValue:"root"},{provide:Dt,useFactory:Ti,deps:[]},{provide:Ht,useClass:Ci,multi:!0,deps:[j,z,Ce]},{provide:Ht,useClass:ki,multi:!0,deps:[j]},dr,gr,fr,{provide:Jn,useExisting:dr},{provide:ur,useClass:pi,deps:[]},[]];function Di(){return new Kt(b(j))}var Kt=(()=>{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(j))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Di(),s},providedIn:"root"});let n=e;return n})();var m="primary",Be=Symbol("RouteTitle"),Jt=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 Jt(n)}function Pi(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 Un(n)?n:Xn(n)?x(Promise.resolve(n)):f(n)}var Ni={exact:Ar,subset:Er},Tr={exact:ji,subset:Ui,ignored:()=>!0};function wr(n,e,i){return Ni[i.paths](n.root,e.root,i.matrixParams)&&Tr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function ji(n,e){return L(n,e)}function Ar(n,e,i){if(!X(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]||!Ar(n.children[t],e.children[t],i))return!1;return!0}function Ui(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Rr(n[i],e[i]))}function Er(n,e,i){return Or(n,e,e.segments,i)}function Or(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!X(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!X(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!X(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Or(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>Tr[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 $i.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)}},Q=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Ir(this)}};function Li(n,e){return X(n,e)&&n.every((i,t)=>L(i.parameters,e[t].parameters))}function X(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function _i(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 Rn=(()=>{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 en(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Ee(e.root,!0)}`,t=Bi(e.queryParams),r=typeof e.fragment=="string"?`#${zi(e.fragment)}`:"";return`${i}${t}${r}`}},$i=new it;function nt(n){return n.segments.map(e=>Ir(e)).join("/")}function Ee(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Ee(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Ee(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=_i(n,(t,r)=>r===m?[Ee(n.children[m],!1)]:[`${r}:${Ee(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Dr(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Dr(n).replace(/%3B/gi,";")}function zi(n){return encodeURI(n)}function Xt(n){return Dr(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function Cr(n){return rt(n.replace(/\+/g,"%20"))}function Ir(n){return`${Xt(n.path)}${Fi(n.parameters)}`}function Fi(n){return Object.keys(n).map(e=>`;${Xt(e)}=${Xt(n[e])}`).join("")}function Bi(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 Hi=/^[^\/()?;#]+/;function Gt(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 Wi=/^[^&#]+/;function Zi(n){let e=n.match(Wi);return e?e[0]:""}var en=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 k(4009,!1);return this.capture(e),new Q(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=qi(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=Gi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let o=Zi(this.remaining);o&&(t=o,this.capture(t))}let r=Cr(i),s=Cr(t);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.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 k(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[m]:new y([],o),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 k(4011,!1)}};function Pr(n){return n.segments.length>0?new y([],{[m]:n}):n}function xr(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=xr(r);if(t===m&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new y(n.segments,e);return Yi(i)}function Yi(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 Ji(n,e,i=null,t=null){let r=Nr(n);return jr(r,e,i,t)}function Nr(n){let e;function i(s){let o={};for(let c of s.children){let l=i(c);o[c.outlet]=l}let a=new y(s.url,o);return s===n&&(e=a),a}let t=i(n.root),r=Pr(t);return e??r}function jr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Wt(r,r,r,i,t);let s=Qi(e);if(s.toRoot())return Wt(r,r,new y([],{}),i,t);let o=Xi(s,r,n),a=o.processChildren?Ie(o.segmentGroup,o.index,s.commands):Lr(o.segmentGroup,o.index,s.commands);return Wt(r,o.segmentGroup,a,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Ne(n){return typeof n=="object"&&n!=null&&n.outlets}function Wt(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 o;n===e?o=i:o=Ur(n,e,i);let a=Pr(xr(o));return new V(a,s,r)}function Ur(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Ur(s,e,i)}),new y(n.segments,t)}var ot=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new k(4003,!1);let r=t.find(Ne);if(r&&r!==Mr(t))throw new k(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Qi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new ot(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new ot(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Xi(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 es(i,r,n.numberOfDoubleDots)}function es(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new k(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function ts(n){return Ne(n[0])?n[0].outlets:{[m]:n}}function Lr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Ie(n,e,i);let t=ns(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=Ie(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Lr(n.children[s],e,o))}),Object.entries(n.children).forEach(([s,o])=>{t[s]===void 0&&(r[s]=o)}),new y(n.segments,r)}}function ns(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let o=n.segments[r],a=i[t];if(Ne(a))break;let c=`${a}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Sr(c,l,o))return s;t+=2}else{if(!Sr(c,{},o))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function tn(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=tn(new y([],{}),0,t))}),e}function br(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Sr(n,e,i){return n==i.path&&L(e,i.parameters)}var Pe="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},je=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}')`}},ee=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}')`}},te=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},Ue=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})`}},at=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})`}},nn=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})`}},rn=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})`}},sn=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})`}},on=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})`}},ln=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},cn=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},hn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Le=class{},_e=class{constructor(e){this.url=e}};var pn=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 pn,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=fn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=fn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=gn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return gn(e,this._root).map(i=>i.value)}};function fn(n,e){if(n===e.value)return e;for(let i of e.children){let t=fn(n,i);if(t)return t}return null}function gn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=gn(n,i);if(t.length)return t.unshift(e),t}return[]}var A=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function ae(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,Tn(this,e)}toString(){return this.snapshot.toString()}};function _r(n,e){let i=is(n,e),t=new E([new Q("",{})]),r=new E({}),s=new E({}),o=new E({}),a=new E(""),c=new he(t,r,o,a,s,m,e,i.root);return c.snapshot=i.root,new ct(new A(c,[]),i)}function is(n,e){let i={},t={},r={},s="",o=new $e([],i,r,s,t,m,e,null,{});return new ut("",new A(o,[]))}var he=class{constructor(e,i,t,r,s,o,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Be]))??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 Mn(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&&zr(r)&&(t.resolve[Be]=r.title),t}var $e=class{get title(){return this.data?.[Be]}constructor(e,i,t,r,s,o,a,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=o,this.component=a,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,Tn(this,i)}toString(){return $r(this._root)}};function Tn(n,e){e.value._routerState=n,e.children.forEach(i=>Tn(n,i))}function $r(n){let e=n.children.length>0?` { ${n.children.map($r).join(", ")} } `:"";return`${n.value}${e}`}function Zt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,L(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),L(e.params,i.params)||n.paramsSubject.next(i.params),xi(e.url,i.url)||n.urlSubject.next(i.url),L(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function mn(n,e){let i=L(n.params,e.params)&&Li(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||mn(n.parent,e.parent))}function zr(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 ke,this.deactivateEvents=new ke,this.attachEvents=new ke,this.detachEvents=new ke,this.parentContexts=g(pt),this.location=g(Qn),this.changeDetector=g(It),this.environmentInjector=g(Ge),this.inputBinder=g(An,{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 k(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new k(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new k(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 k(4013,!1);this._activatedRoute=t;let s=this.location,a=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new vn(t,c,s.injector);this.activated=s.createComponent(a,{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=qn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Kn]});let n=e;return n})(),vn=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)}},An=new D("");function ss(n,e,i){let t=ze(n,e._root,i?i._root:void 0);return new ct(t,e)}function ze(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=os(n,e,i);return new A(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>ze(n,a)),o}}let t=as(e.value),r=e.children.map(s=>ze(n,s));return new A(t,r)}}function os(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ze(n,t,r);return ze(n,t)})}function as(n){return new he(new E(n.url),new E(n.params),new E(n.queryParams),new E(n.fragment),new E(n.data),n.outlet,n.component,n)}var Fr="ngNavigationCancelingError";function Br(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Hr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Hr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[Fr]=!0,t.cancellationCode=e,i&&(t.url=i),t}function ls(n){return Vr(n)&&de(n.url)}function Vr(n){return n&&n[Fr]}var cs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["ng-component"]],standalone:!0,features:[H],decls:1,vars:0,template:function(r,s){r&1&&T(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function us(n,e){return n.providers&&!n._injector&&(n._injector=nr(n.providers,e,`Route: ${n.path}`)),n._injector??e}function En(n){let e=n.children&&n.children.map(En),i=e?M(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=cs),i}function _(n){return n.outlet||m}function ds(n,e){let i=n.filter(t=>_(t)===e);return i.push(...n.filter(t=>_(t)!==e)),i}function Ve(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 hs=(n,e,i,t)=>w(r=>(new yn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),yn=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),Zt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=ae(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],t),delete r[o]}),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 o=t.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.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=ae(e);for(let o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(t&&t.outlet){let o=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ae(e);for(let o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=ae(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new hn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new un(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Zt(r),r===s)if(r.component){let o=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let o=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Zt(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=Ve(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.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 ps(n,e,i){let t=n._root,r=e?e._root:null;return Oe(t,r,i,[t.value])}function fs(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"&&!Vn(n)?n:e.get(n):t}function Oe(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=ae(e);return n.children.forEach(o=>{gs(o,s[o.value.outlet],i,t.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>xe(a,i.getContext(o),r)),r}function gs(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,o=e?e.value:null,a=i?i.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=ms(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Oe(n,e,a?a.children:null,t,r):Oe(n,e,i,t,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ce(a.outlet.component,o))}else o&&xe(e,a,r),r.canActivateChecks.push(new dt(t)),s.component?Oe(n,null,a?a.children:null,t,r):Oe(n,null,i,t,r);return r}function ms(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!X(n.url,e.url);case"pathParamsOrQueryParamsChange":return!X(n.url,e.url)||!L(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mn(n,e)||!L(n.queryParams,e.queryParams);case"paramsChange":default:return!mn(n,e)}}function xe(n,e,i){let t=ae(n),r=n.value;Object.entries(t).forEach(([s,o])=>{r.component?e?xe(o,e.children.getContext(s),i):xe(o,null,i):xe(o,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 qe(n){return typeof n=="function"}function vs(n){return typeof n=="boolean"}function ys(n){return n&&qe(n.canLoad)}function ws(n){return n&&qe(n.canActivate)}function Cs(n){return n&&qe(n.canActivateChild)}function bs(n){return n&&qe(n.canDeactivate)}function Ss(n){return n&&qe(n.canMatch)}function qr(n){return n instanceof Ln||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return U(n=>wt(n.map(e=>e.pipe(ie(1),Bn(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}),ne(e=>e!==et),ie(1)))}function ks(n,e){return O(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?f(M(h({},i),{guardsResult:!0})):Rs(o,t,r,n).pipe(O(a=>a&&vs(a)?Ms(t,s,n,e):f(a)),w(a=>M(h({},i),{guardsResult:a})))})}function Rs(n,e,i,t){return x(n).pipe(O(r=>Ds(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>_n(As(r.route.parent,t),Ts(r.route,t),Os(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function Ts(n,e){return n!==null&&e&&e(new dn(n)),f(!0)}function As(n,e){return n!==null&&e&&e(new cn(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 o=Ve(e)??i,a=fe(s,o),c=ws(a)?a.canActivate(e,n):Y(o,()=>a(e,n));return K(c).pipe(F())}));return f(r).pipe(pe())}function Os(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>fs(o)).filter(o=>o!==null).map(o=>Ct(()=>{let a=o.guards.map(c=>{let l=Ve(o.node)??i,d=fe(c,l),p=Cs(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return K(p).pipe(F())});return f(a).pipe(pe())}));return f(s).pipe(pe())}function Ds(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(a=>{let c=Ve(e)??r,l=fe(a,c),d=bs(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return K(d).pipe(F())});return f(o).pipe(pe())}function Is(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(o=>{let a=fe(o,n),c=ys(a)?a.canLoad(e,i):Y(n,()=>a(e,i));return K(c)});return f(s).pipe(pe(),Kr(t))}function Kr(n){return jn(R(e=>{if(de(e))throw Br(n,e)}),w(e=>e===!0))}function Ps(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(o=>{let a=fe(o,n),c=Ss(a)?a.canMatch(e,i):Y(n,()=>a(e,i));return K(c)});return f(s).pipe(pe(),Kr(t))}var Fe=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function oe(n){return ve(new Fe(n))}function xs(n){return ve(new k(4e3,!1))}function Ns(n){return ve(Hr(!1,3))}var wn=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 xs(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 a=s.substring(1);t[r]=i[a]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(e,c,t,r)}),new y(s,o)}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 k(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}},Cn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function js(n,e,i,t,r){let s=On(n,e,i);return s.matched?(t=us(e,t),Ps(t,e,i,r).pipe(w(o=>o===!0?s:h({},Cn)))):f(s)}function On(n,e,i){if(e.path==="**")return Us(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},Cn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Pi)(i,n,e);if(!r)return h({},Cn);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=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:o,positionalParamSegments:r.posParams??{}}}function Us(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function kr(n,e,i,t){return i.length>0&&$s(n,i,t)?{segmentGroup:new y(e,_s(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&zs(n,i,t)?{segmentGroup:new y(n.segments,Ls(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function Ls(n,e,i,t,r){let s={};for(let o of t)if(ft(n,i,o)&&!r[_(o)]){let a=new y([],{});s[_(o)]=a}return h(h({},r),s)}function _s(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&_(t)!==m){let r=new y([],{});i[_(t)]=r}return i}function $s(n,e,i){return i.some(t=>ft(n,e,t)&&_(t)!==m)}function zs(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 Fs(n,e,i,t){return _(n)!==t&&(t===m||!ft(e,i,n))?!1:On(e,n,i).matched}function Bs(n,e,i){return e.length===0&&!n.children[i]}var bn=class{};function Hs(n,e,i,t,r,s,o="emptyOnly"){return new Sn(n,e,i,t,r,o,s).recognize()}var Vs=31,Sn=class{constructor(e,i,t,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new wn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new k(4002,`'${e.segmentGroup}'`)}recognize(){let e=kr(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 A(t,i),s=new ut("",r),o=Ji(t,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(re(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Fe?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=Mn(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 A?[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 o=t.children[s],a=ds(i,s);return this.processSegmentGroup(e,a,o,s)}),Fn((s,o)=>(s.push(...o),s)),bt(null),zn(),O(s=>{if(s===null)return oe(t);let o=Gr(s);return qs(o),f(o)}))}processSegment(e,i,t,r,s,o){return x(i).pipe(ye(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,t,r,s,o).pipe(re(c=>{if(c instanceof Fe)return f(null);throw c}))),F(a=>!!a),re(a=>{if(qr(a))return Bs(t,r,s)?f(new bn):oe(t);throw a}))}processSegmentAgainstRoute(e,i,t,r,s,o,a){return Fs(t,r,s,o)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,o):oe(r):oe(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=On(i,r,s);if(!a)return oe(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Vs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(O(v=>this.processSegment(e,t,i,v.concat(d),o,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let o=js(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),o.pipe(U(a=>a.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(U(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=a,S=new $e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Gs(t),_(t),t.component??t._loadedComponent??null,t,Ws(t)),{segmentGroup:ge,slicedSegments:me}=kr(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(G=>G===null?null:new A(S,G)));if(c.length===0&&me.length===0)return f(new A(S,[]));let mt=_(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(G=>new A(S,G instanceof A?[G]:[])))}))):oe(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}):Is(e,i,t,this.urlSerializer).pipe(O(r=>r?this.configLoader.loadChildren(e,i).pipe(R(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ns(i))):f({routes:[],injector:e})}};function qs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Ks(n){let e=n.value.routeConfig;return e&&e.path===""}function Gr(n){let e=[],i=new Set;for(let t of n){if(!Ks(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=Gr(t.children);e.push(new A(t.value,r))}return e.filter(t=>!i.has(t))}function Gs(n){return n.data||{}}function Ws(n){return n.resolve||{}}function Zs(n,e,i,t,r,s){return O(o=>Hs(n,e,i,t,o.extractedUrl,r,s).pipe(w(({state:a,tree:c})=>M(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function Ys(n,e){return O(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let l of Wr(c))o.add(l);let a=0;return x(o).pipe(ye(c=>s.has(c)?Js(c,t,n,e):(c.data=Mn(c,c.parent,n).resolve,f(void 0))),R(()=>a++),St(1),O(c=>a===o.size?f(i):Z))})}function Wr(n){let e=n.children.map(i=>Wr(i)).flat();return[n,...e]}function Js(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!zr(r)&&(s[Be]=r.title),Qs(s,n,e,t).pipe(w(o=>(n._resolvedData=o,n.data=Mn(n,n.parent,i).resolve,null)))}function Qs(n,e,i,t){let r=Qt(n);if(r.length===0)return f({});let s={};return x(r).pipe(O(o=>Xs(n[o],e,i,t).pipe(F(),R(a=>{s[o]=a}))),St(1),$n(s),re(o=>qr(o)?Z:ve(o)))}function Xs(n,e,i,t){let r=Ve(e)??t,s=fe(n,r),o=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return K(o)}function Yt(n){return U(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(e)})}var Zr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===m);return r}getResolvedTitleForRoute(t){return t.data[Be]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(eo))(),providedIn:"root"});let n=e;return n})(),eo=(()=>{let e=class e extends Zr{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(Kt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),In=new D("ROUTES"),to=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Pt)}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(Yr),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Ke(()=>{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 o=no(r,this.compiler,t,this.onLoadEndListener).pipe(Ke(()=>{this.childrenLoaders.delete(r)})),a=new yt(o,()=>new W).pipe(vt());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function no(n,e,i,t){return K(n.loadChildren()).pipe(w(Yr),O(r=>r instanceof tr||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(r=>{t&&t(n);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(In,[],{optional:!0,self:!0}).flat()),{routes:o.map(En),injector:s}}))}function ro(n){return n&&typeof n=="object"&&"default"in n}function Yr(n){return ro(n)?n.default:n}var Pn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(io))(),providedIn:"root"});let n=e;return n})(),io=(()=>{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})(),so=new D("");var oo=(()=>{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(to),this.environmentInjector=g(Ge),this.urlSerializer=g(Rn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(An,{optional:!0})!==null,this.titleStrategy=g(Zr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Pn),this.createViewTransition=g(so,{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 ln(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(M(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new E({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:Pe,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ne(o=>o.id!==0),w(o=>M(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),U(o=>{this.currentTransition=o;let a=!1,c=!1;return f(o).pipe(R(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?M(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),U(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 te(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(U(v=>{let S=this.transitions?.getValue();return this.events.next(new je(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Zs(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(v=>{o.targetSnapshot=v.targetSnapshot,o.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=M(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new at(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 je(v,this.urlSerializer.serialize(S),ge,me);this.events.next(G);let si=_r(S,this.rootComponentType).snapshot;return this.currentTransition=o=M(h({},l),{targetSnapshot:si,urlAfterRedirects:S,extras:M(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(o)}else{let v="";return this.events.next(new te(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),R(l=>{let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=o=M(h({},l),{guards:ps(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),ks(this.environmentInjector,l=>this.events.next(l)),R(l=>{if(o.guardsResult=l.guardsResult,de(l.guardsResult))throw Br(this.urlSerializer,l.guardsResult);let d=new rn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),ne(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Yt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(R(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),U(d=>{let p=!1;return f(d).pipe(Ys(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),R(d=>{let p=new on(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Yt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(R(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(),ie(1))}),Yt(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:l,targetSnapshot:d}=o,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>o)):f(o)}),w(l=>{let d=ss(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=M(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,o}),R(()=>{this.events.next(new Le)}),hs(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ie(1),R({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Hn(this.transitionAbortSubject.pipe(R(l=>{throw l}))),Ke(()=>{if(!a&&!c){let l="";this.cancelNavigationTransition(o,l,1)}this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),re(l=>{if(c=!0,Vr(l))this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),ls(l)?this.events.next(new _e(l.url)):o.resolve(!1);else{this.events.next(new Ue(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(l))}catch(d){o.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let o=new q(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(o),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 ao(n){return n!==Pe}var lo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(co))(),providedIn:"root"});let n=e;return n})(),kn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},co=(()=>{let e=class e extends kn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=Mt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Jr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(uo))(),providedIn:"root"});let n=e;return n})(),uo=(()=>{let e=class e extends Jr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Rn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Pn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=_r(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 je)this.stateMemento=this.createStateMemento();else if(t instanceof te)this.rawUrlTree=r.initialUrl;else if(t instanceof at){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Le?(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 Ue?this.restoreHistory(r,!0):t instanceof ee&&(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 o=this.browserPageId,a=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&o===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=Mt(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 ho(n,e){n.events.pipe(ne(i=>i instanceof ee||i instanceof q||i instanceof Ue||i instanceof te),w(i=>i instanceof ee||i instanceof te?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),ne(i=>i!==De.REDIRECTING),ie(1)).subscribe(()=>{e()})}function po(n){throw n}var fo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},go={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(Jr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(rr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(oo),this.urlSerializer=g(Rn),this.location=g(Ze),this.urlHandlingStrategy=g(Pn),this._events=new W,this.errorHandler=this.options.errorHandler||po,this.navigated=!1,this.routeReuseStrategy=g(lo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(In,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(An,{optional:!0}),this.eventsSubscription=new Nn,this.isNgZoneEnabled=g(z)instanceof z&&z.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,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof ee)this.navigated=!0;else if(r instanceof _e){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ao(s.source)};this.scheduleNavigation(a,Pe,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}vo(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),Pe,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 o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(En),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:o,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:a,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Nr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return jr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Pe,null,r)}navigate(t,r={skipLocationChange:!1}){return mo(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({},fo):r===!1?s=h({},go):s=r,de(t))return wr(this.currentUrlTree,t,s);let o=this.parseUrl(t);return wr(this.currentUrlTree,o,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let o=t[s];return o!=null&&(r[s]=o),r},{})}scheduleNavigation(t,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ho(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,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 mo(n){for(let e=0;ei.\u0275providers)])}function wo(n){return n.routerState.root}function Co(){let n=g(At);return e=>{let i=n.get(xt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(bo);n.get(So)===1&&t.initialNavigation(),n.get(ko,null,kt.Optional)?.setUpPreloading(),n.get(yo,null,kt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var bo=new D("",{factory:()=>new W}),So=new D("",{providedIn:"root",factory:()=>1});var ko=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Xr=["easy","medium","hard"];function $(n){return new Map([...n.entries()].sort((e,i)=>{let t=Xr.indexOf(e[1].difficulty),r=Xr.indexOf(i[1].difficulty);return t-r}))}var Ro=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"easy",developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:"easy",developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview]}],["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:[],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}]]),Mo=$(Ro);var To=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:[u.interview]}],["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}],["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-popup",{title:"Toast Popup",link:"toast-popup/",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]}],["otp-input",{title:"OTP Input",link:"otp-input/",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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:"hard",developer:"sadanandpai",tags:[u.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:"hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:"hard",developer:"sadanandpai",tags:[u.interview]}]]),Ao=$(To);var Eo=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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[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]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"medium",developer:"sadanandpai",tags:[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:"AbhilashMadi",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-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-scrolling",{title:"Infinite Scrolling (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 / Autocomplete (offline)",link:"autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (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]}]]),Oo=$(Eo);var Do=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]}],["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]}]]),Io=$(Do);var Po=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}]]),xn=$(Po);var ei=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=Nt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=Nt()?"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=B({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[H],decls:33,vars:5,consts:[[1,"navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"right"],[1,"source_code"],["target","_blank","rel","noreferrer",3,"href"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","viewBox","0 0 24 24","fill","none","stroke","currentColor","strokeWidth","2","strokeLinecap","round","strokeLinejoin","round",1,"lucide","lucide-external-link"],["d","M15 3h6v6"],["d","M10 14 21 3"],["d","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],["href","https://github.com/sadanandpai/frontend-mini-challenges/","target","blank"],["src","https://cdn-icons-png.flaticon.com/512/25/25231.png","alt","github repo",1,"github"],["id","responsive-nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],["id","menu"]],template:function(r,s){r&1&&(I(0,"nav",0)(1,"div",1)(2,"a",2),Re(3," < "),N(),I(4,"a",3),T(5,"img",4),N()(),I(6,"h1"),Re(7),N(),I(8,"div",5)(9,"div",6)(10,"a",7),Rt(),I(11,"svg",8),T(12,"path",9)(13,"path",10)(14,"path",11),N(),Re(15," Source code "),N()(),Gn(),I(16,"a",12),T(17,"img",13),N(),I(18,"div",14)(19,"div",15),T(20,"input",16)(21,"div",17)(22,"div",17)(23,"div",17),I(24,"section",18)(25,"ul")(26,"a",7)(27,"li"),Rt(),I(28,"svg",8),T(29,"path",9)(30,"path",10)(31,"path",11),N(),Re(32," Source code "),N()()()()()()()()),r&2&&(se(2),J("href",s.backURL,Se),se(2),J("href",s.homeURL,Se),se(3),er(s.title),se(3),J("href",s.angularSourceCodeURL,Se),se(16),J("href",s.angularSourceCodeURL,Se))},styles:[".navbar[_ngcontent-%COMP%]{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%);box-shadow:0 4px 4px #0000001a}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:flex;flex-grow:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;color:#000}.navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;gap:1rem;flex:1;text-align:right}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;gap:1rem}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#000;display:flex;align-items:center;justify-content:center;gap:.25rem}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#00f}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .github[_ngcontent-%COMP%]{width:30px;height:30px;vertical-align:text-bottom}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] #responsive-nav[_ngcontent-%COMP%]{display:none}@media (max-width: 640px){.right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%]{display:none!important}.right[_ngcontent-%COMP%] #responsive-nav[_ngcontent-%COMP%]{display:block!important;position:relative;margin-left:1rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:2;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:4px;width:2rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:1;transition:transform .5s cubic-bezier(.77,.2,.05,1)}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg) translate(1px,-1px)}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]:nth-child(3){opacity:0;transform:rotate(0) scale(.2);background-color:#ccc}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]:nth-child(4){transform:rotate(-45deg) translate(-2px)}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%]{height:100vh;position:fixed;top:0;right:0;width:300px;background-color:#fff;padding:4rem 1rem 1rem;transform:translate(100%);transition:transform .5s cubic-bezier(.51,.92,.24,1.15);box-shadow:-4px 5px 22px -6px #0000001a}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;display:flex;flex-direction:column;align-items:start;justify-content:center}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#000;display:flex;align-items:center;justify-content:center;font-size:1.25rem;gap:.25rem}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#00f}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;list-style:none;margin-bottom:1rem;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ #menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var ti=(()=>{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=xn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[H],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(T(0,"app-navbar",0),I(1,"div",1),T(2,"router-outlet"),N()),r&2&&J("title",s.title)("link",s.link)},dependencies:[ei,He],encapsulation:2});let n=e;return n})();var ni=[{path:"",component:ti,children:[{path:"counter",loadComponent:()=>import("./chunk-KJG7C5AQ.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-HE4EVSPR.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-KUNUAYM2.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-F42HSFXD.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-KAL7KSLI.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-SUGG2AFH.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ri={providers:[Qr(ni),{provide:Ut,useClass:Lt}]};var ii=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-root"]],standalone:!0,features:[H],decls:1,vars:0,template:function(r,s){r&1&&T(0,"router-outlet")},dependencies:[He]});let n=e;return n})();yr(ii,ri).catch(n=>console.error(n)); +import{$ as Mt,$a as jt,A as Ke,B as F,Ba as I,C as St,Ca as N,D as zn,Da as T,E as Fn,F as Bn,G as U,H as Hn,Ha as Xn,I as R,K as k,Ka as Re,L as C,La as er,N as Vn,O as kt,Oa as tr,P as D,Pa as nr,Q as b,Qa as H,R as g,S as we,T as B,Ta as We,Ua as rr,V as qn,Va as Pt,W as Kn,Wa as ir,Xa as xt,Ya as Nt,Z as Rt,Za as sr,_ as Gn,a as h,aa as Tt,ab as or,b as M,ba as Wn,bb as ar,c as Nn,ca as Ge,cb as j,d as jn,da as Y,db as Ut,e as vt,ea as At,eb as Lt,f as yt,fa as Zn,fb as Ze,g as W,ga as Et,gb as lr,h as E,ha as Yn,i as Z,ia as Ce,j as x,ja as Ot,k as f,ka as be,l as ve,la as Se,lb as cr,m as Un,mb as _t,n as Ln,na as Jn,nb as ur,o as w,p as wt,pa as Dt,q as O,qa as se,r as _n,s as Ct,sa as It,ta as ke,u as ne,ua as z,v as re,w as ye,x as bt,xa as J,y as ie,z as $n,za as Qn}from"./chunk-T4VCYVGG.js";var Ft=class extends ar{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Bt=class n extends Ft{static makeCurrent(){or(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=di();return i==null?null:hi(i)}resetBaseElement(){Me=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return lr(document.cookie,e)}},Me=null;function di(){return Me=Me||document.querySelector("base"),Me?Me.getAttribute("href"):null}function hi(n){return new URL(n,document.baseURI).pathname}var pi=(()=>{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"),fr=(()=>{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(o=>o.supports(t)),!r)throw new k(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b(z))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},$t="ng-app-id",gr=(()=>{let e=class e{constructor(t,r,s,o={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_t(o),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 o=s.get(t);return o.usage+=r,o.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===t)return s.delete(r),o.removeAttribute($t),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute($t,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.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(j),b(Et),b(Ot,8),b(Ce))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),zt={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/"},qt=/%COMP%/g,mr="%COMP%",fi=`_nghost-${mr}`,gi=`_ngcontent-${mr}`,mi=!0,vi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>mi});function yi(n){return gi.replace(qt,n)}function wi(n){return fi.replace(qt,n)}function vr(n,e){return e.map(i=>i.replace(qt,n))}var dr=(()=>{let e=class e{constructor(t,r,s,o,a,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=_t(c),this.defaultRenderer=new Te(t,a,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=M(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ae&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:o=new Je(l,d,r,this.appId,p,a,c,v);break;case we.ShadowDom:return new Vt(l,d,t,r,a,c,this.nonce,v);default:o=new Ae(l,d,r,p,a,c,v);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(fr),b(gr),b(Et),b(vi),b(j),b(Ce),b(z),b(Ot))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Te=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(zt[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(hr(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(hr(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 k(-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=zt[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=zt[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=jt().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 hr(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Vt=class extends Te{constructor(e,i,t,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=vr(r.id,r.styles);for(let d of l){let p=document.createElement("style");a&&p.setAttribute("nonce",a),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)}},Ae=class extends Te{constructor(e,i,t,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?vr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ae{constructor(e,i,t,r,s,o,a,c){let l=r+"-"+t.id;super(e,i,t,s,o,a,c,l),this.contentAttr=yi(l),this.hostAttr=wi(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}},Ci=(()=>{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(j))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),pr=["alt","control","meta","shift"],bi={"\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"},Si={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},ki=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jt().onAndCancel(t,o.domEventName,a))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),pr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),a+=d+".")}),a+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=s,l.fullKey=a,l}static matchEventFullKeyCode(t,r){let s=bi[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(s=t.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),pr.forEach(a=>{if(a!==s){let c=Si[a];c(t)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(t,r,s){return o=>{e.matchEventFullKeyCode(o,t)&&s.runGuarded(()=>r(o))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(b(j))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function yr(n,e){return sr(h({rootComponent:n},Ri(e)))}function Ri(n){return{appProviders:[...Oi,...n?.providers??[]],platformProviders:Ei}}function Mi(){Bt.makeCurrent()}function Ti(){return new Dt}function Ai(){return Zn(document),document}var Ei=[{provide:Ce,useValue:cr},{provide:Yn,useValue:Mi,multi:!0},{provide:j,useFactory:Ai,deps:[]}];var Oi=[{provide:Wn,useValue:"root"},{provide:Dt,useFactory:Ti,deps:[]},{provide:Ht,useClass:Ci,multi:!0,deps:[j,z,Ce]},{provide:Ht,useClass:ki,multi:!0,deps:[j]},dr,gr,fr,{provide:Jn,useExisting:dr},{provide:ur,useClass:pi,deps:[]},[]];function Di(){return new Kt(b(j))}var Kt=(()=>{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(j))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Di(),s},providedIn:"root"});let n=e;return n})();var m="primary",Be=Symbol("RouteTitle"),Jt=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 Jt(n)}function Pi(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 Un(n)?n:Xn(n)?x(Promise.resolve(n)):f(n)}var Ni={exact:Ar,subset:Er},Tr={exact:ji,subset:Ui,ignored:()=>!0};function wr(n,e,i){return Ni[i.paths](n.root,e.root,i.matrixParams)&&Tr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function ji(n,e){return L(n,e)}function Ar(n,e,i){if(!X(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]||!Ar(n.children[t],e.children[t],i))return!1;return!0}function Ui(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Rr(n[i],e[i]))}function Er(n,e,i){return Or(n,e,e.segments,i)}function Or(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!X(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!X(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!X(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Or(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>Tr[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 $i.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)}},Q=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Ir(this)}};function Li(n,e){return X(n,e)&&n.every((i,t)=>L(i.parameters,e[t].parameters))}function X(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function _i(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 Rn=(()=>{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 en(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Ee(e.root,!0)}`,t=Bi(e.queryParams),r=typeof e.fragment=="string"?`#${zi(e.fragment)}`:"";return`${i}${t}${r}`}},$i=new it;function nt(n){return n.segments.map(e=>Ir(e)).join("/")}function Ee(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Ee(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Ee(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=_i(n,(t,r)=>r===m?[Ee(n.children[m],!1)]:[`${r}:${Ee(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Dr(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Dr(n).replace(/%3B/gi,";")}function zi(n){return encodeURI(n)}function Xt(n){return Dr(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function Cr(n){return rt(n.replace(/\+/g,"%20"))}function Ir(n){return`${Xt(n.path)}${Fi(n.parameters)}`}function Fi(n){return Object.keys(n).map(e=>`;${Xt(e)}=${Xt(n[e])}`).join("")}function Bi(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 Hi=/^[^\/()?;#]+/;function Gt(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 Wi=/^[^&#]+/;function Zi(n){let e=n.match(Wi);return e?e[0]:""}var en=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 k(4009,!1);return this.capture(e),new Q(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=qi(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=Gi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let o=Zi(this.remaining);o&&(t=o,this.capture(t))}let r=Cr(i),s=Cr(t);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.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 k(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[m]:new y([],o),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 k(4011,!1)}};function Pr(n){return n.segments.length>0?new y([],{[m]:n}):n}function xr(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=xr(r);if(t===m&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new y(n.segments,e);return Yi(i)}function Yi(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 Ji(n,e,i=null,t=null){let r=Nr(n);return jr(r,e,i,t)}function Nr(n){let e;function i(s){let o={};for(let c of s.children){let l=i(c);o[c.outlet]=l}let a=new y(s.url,o);return s===n&&(e=a),a}let t=i(n.root),r=Pr(t);return e??r}function jr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Wt(r,r,r,i,t);let s=Qi(e);if(s.toRoot())return Wt(r,r,new y([],{}),i,t);let o=Xi(s,r,n),a=o.processChildren?Ie(o.segmentGroup,o.index,s.commands):Lr(o.segmentGroup,o.index,s.commands);return Wt(r,o.segmentGroup,a,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Ne(n){return typeof n=="object"&&n!=null&&n.outlets}function Wt(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 o;n===e?o=i:o=Ur(n,e,i);let a=Pr(xr(o));return new V(a,s,r)}function Ur(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Ur(s,e,i)}),new y(n.segments,t)}var ot=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new k(4003,!1);let r=t.find(Ne);if(r&&r!==Mr(t))throw new k(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Qi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new ot(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new ot(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Xi(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 es(i,r,n.numberOfDoubleDots)}function es(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new k(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function ts(n){return Ne(n[0])?n[0].outlets:{[m]:n}}function Lr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Ie(n,e,i);let t=ns(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=Ie(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Lr(n.children[s],e,o))}),Object.entries(n.children).forEach(([s,o])=>{t[s]===void 0&&(r[s]=o)}),new y(n.segments,r)}}function ns(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let o=n.segments[r],a=i[t];if(Ne(a))break;let c=`${a}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Sr(c,l,o))return s;t+=2}else{if(!Sr(c,{},o))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function tn(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=tn(new y([],{}),0,t))}),e}function br(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Sr(n,e,i){return n==i.path&&L(e,i.parameters)}var Pe="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},je=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}')`}},ee=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}')`}},te=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},Ue=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})`}},at=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})`}},nn=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})`}},rn=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})`}},sn=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})`}},on=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})`}},ln=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},cn=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},hn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Le=class{},_e=class{constructor(e){this.url=e}};var pn=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 pn,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=fn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=fn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=gn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return gn(e,this._root).map(i=>i.value)}};function fn(n,e){if(n===e.value)return e;for(let i of e.children){let t=fn(n,i);if(t)return t}return null}function gn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=gn(n,i);if(t.length)return t.unshift(e),t}return[]}var A=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function ae(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,Tn(this,e)}toString(){return this.snapshot.toString()}};function _r(n,e){let i=is(n,e),t=new E([new Q("",{})]),r=new E({}),s=new E({}),o=new E({}),a=new E(""),c=new he(t,r,o,a,s,m,e,i.root);return c.snapshot=i.root,new ct(new A(c,[]),i)}function is(n,e){let i={},t={},r={},s="",o=new $e([],i,r,s,t,m,e,null,{});return new ut("",new A(o,[]))}var he=class{constructor(e,i,t,r,s,o,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Be]))??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 Mn(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&&zr(r)&&(t.resolve[Be]=r.title),t}var $e=class{get title(){return this.data?.[Be]}constructor(e,i,t,r,s,o,a,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=o,this.component=a,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,Tn(this,i)}toString(){return $r(this._root)}};function Tn(n,e){e.value._routerState=n,e.children.forEach(i=>Tn(n,i))}function $r(n){let e=n.children.length>0?` { ${n.children.map($r).join(", ")} } `:"";return`${n.value}${e}`}function Zt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,L(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),L(e.params,i.params)||n.paramsSubject.next(i.params),xi(e.url,i.url)||n.urlSubject.next(i.url),L(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function mn(n,e){let i=L(n.params,e.params)&&Li(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||mn(n.parent,e.parent))}function zr(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 ke,this.deactivateEvents=new ke,this.attachEvents=new ke,this.detachEvents=new ke,this.parentContexts=g(pt),this.location=g(Qn),this.changeDetector=g(It),this.environmentInjector=g(Ge),this.inputBinder=g(An,{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 k(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new k(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new k(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 k(4013,!1);this._activatedRoute=t;let s=this.location,a=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new vn(t,c,s.injector);this.activated=s.createComponent(a,{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=qn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Kn]});let n=e;return n})(),vn=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)}},An=new D("");function ss(n,e,i){let t=ze(n,e._root,i?i._root:void 0);return new ct(t,e)}function ze(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=os(n,e,i);return new A(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>ze(n,a)),o}}let t=as(e.value),r=e.children.map(s=>ze(n,s));return new A(t,r)}}function os(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ze(n,t,r);return ze(n,t)})}function as(n){return new he(new E(n.url),new E(n.params),new E(n.queryParams),new E(n.fragment),new E(n.data),n.outlet,n.component,n)}var Fr="ngNavigationCancelingError";function Br(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Hr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Hr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[Fr]=!0,t.cancellationCode=e,i&&(t.url=i),t}function ls(n){return Vr(n)&&de(n.url)}function Vr(n){return n&&n[Fr]}var cs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["ng-component"]],standalone:!0,features:[H],decls:1,vars:0,template:function(r,s){r&1&&T(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function us(n,e){return n.providers&&!n._injector&&(n._injector=nr(n.providers,e,`Route: ${n.path}`)),n._injector??e}function En(n){let e=n.children&&n.children.map(En),i=e?M(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=cs),i}function _(n){return n.outlet||m}function ds(n,e){let i=n.filter(t=>_(t)===e);return i.push(...n.filter(t=>_(t)!==e)),i}function Ve(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 hs=(n,e,i,t)=>w(r=>(new yn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),yn=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),Zt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=ae(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],t),delete r[o]}),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 o=t.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.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=ae(e);for(let o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(t&&t.outlet){let o=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ae(e);for(let o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=ae(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new hn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new un(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Zt(r),r===s)if(r.component){let o=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let o=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Zt(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=Ve(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.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 ps(n,e,i){let t=n._root,r=e?e._root:null;return Oe(t,r,i,[t.value])}function fs(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"&&!Vn(n)?n:e.get(n):t}function Oe(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=ae(e);return n.children.forEach(o=>{gs(o,s[o.value.outlet],i,t.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>xe(a,i.getContext(o),r)),r}function gs(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,o=e?e.value:null,a=i?i.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=ms(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Oe(n,e,a?a.children:null,t,r):Oe(n,e,i,t,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ce(a.outlet.component,o))}else o&&xe(e,a,r),r.canActivateChecks.push(new dt(t)),s.component?Oe(n,null,a?a.children:null,t,r):Oe(n,null,i,t,r);return r}function ms(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!X(n.url,e.url);case"pathParamsOrQueryParamsChange":return!X(n.url,e.url)||!L(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mn(n,e)||!L(n.queryParams,e.queryParams);case"paramsChange":default:return!mn(n,e)}}function xe(n,e,i){let t=ae(n),r=n.value;Object.entries(t).forEach(([s,o])=>{r.component?e?xe(o,e.children.getContext(s),i):xe(o,null,i):xe(o,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 qe(n){return typeof n=="function"}function vs(n){return typeof n=="boolean"}function ys(n){return n&&qe(n.canLoad)}function ws(n){return n&&qe(n.canActivate)}function Cs(n){return n&&qe(n.canActivateChild)}function bs(n){return n&&qe(n.canDeactivate)}function Ss(n){return n&&qe(n.canMatch)}function qr(n){return n instanceof Ln||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return U(n=>wt(n.map(e=>e.pipe(ie(1),Bn(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}),ne(e=>e!==et),ie(1)))}function ks(n,e){return O(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?f(M(h({},i),{guardsResult:!0})):Rs(o,t,r,n).pipe(O(a=>a&&vs(a)?Ms(t,s,n,e):f(a)),w(a=>M(h({},i),{guardsResult:a})))})}function Rs(n,e,i,t){return x(n).pipe(O(r=>Ds(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>_n(As(r.route.parent,t),Ts(r.route,t),Os(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function Ts(n,e){return n!==null&&e&&e(new dn(n)),f(!0)}function As(n,e){return n!==null&&e&&e(new cn(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 o=Ve(e)??i,a=fe(s,o),c=ws(a)?a.canActivate(e,n):Y(o,()=>a(e,n));return K(c).pipe(F())}));return f(r).pipe(pe())}function Os(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>fs(o)).filter(o=>o!==null).map(o=>Ct(()=>{let a=o.guards.map(c=>{let l=Ve(o.node)??i,d=fe(c,l),p=Cs(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return K(p).pipe(F())});return f(a).pipe(pe())}));return f(s).pipe(pe())}function Ds(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(a=>{let c=Ve(e)??r,l=fe(a,c),d=bs(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return K(d).pipe(F())});return f(o).pipe(pe())}function Is(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(o=>{let a=fe(o,n),c=ys(a)?a.canLoad(e,i):Y(n,()=>a(e,i));return K(c)});return f(s).pipe(pe(),Kr(t))}function Kr(n){return jn(R(e=>{if(de(e))throw Br(n,e)}),w(e=>e===!0))}function Ps(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(o=>{let a=fe(o,n),c=Ss(a)?a.canMatch(e,i):Y(n,()=>a(e,i));return K(c)});return f(s).pipe(pe(),Kr(t))}var Fe=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function oe(n){return ve(new Fe(n))}function xs(n){return ve(new k(4e3,!1))}function Ns(n){return ve(Hr(!1,3))}var wn=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 xs(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 a=s.substring(1);t[r]=i[a]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(e,c,t,r)}),new y(s,o)}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 k(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}},Cn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function js(n,e,i,t,r){let s=On(n,e,i);return s.matched?(t=us(e,t),Ps(t,e,i,r).pipe(w(o=>o===!0?s:h({},Cn)))):f(s)}function On(n,e,i){if(e.path==="**")return Us(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},Cn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Pi)(i,n,e);if(!r)return h({},Cn);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=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:o,positionalParamSegments:r.posParams??{}}}function Us(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function kr(n,e,i,t){return i.length>0&&$s(n,i,t)?{segmentGroup:new y(e,_s(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&zs(n,i,t)?{segmentGroup:new y(n.segments,Ls(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function Ls(n,e,i,t,r){let s={};for(let o of t)if(ft(n,i,o)&&!r[_(o)]){let a=new y([],{});s[_(o)]=a}return h(h({},r),s)}function _s(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&_(t)!==m){let r=new y([],{});i[_(t)]=r}return i}function $s(n,e,i){return i.some(t=>ft(n,e,t)&&_(t)!==m)}function zs(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 Fs(n,e,i,t){return _(n)!==t&&(t===m||!ft(e,i,n))?!1:On(e,n,i).matched}function Bs(n,e,i){return e.length===0&&!n.children[i]}var bn=class{};function Hs(n,e,i,t,r,s,o="emptyOnly"){return new Sn(n,e,i,t,r,o,s).recognize()}var Vs=31,Sn=class{constructor(e,i,t,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new wn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new k(4002,`'${e.segmentGroup}'`)}recognize(){let e=kr(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 A(t,i),s=new ut("",r),o=Ji(t,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(re(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Fe?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=Mn(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 A?[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 o=t.children[s],a=ds(i,s);return this.processSegmentGroup(e,a,o,s)}),Fn((s,o)=>(s.push(...o),s)),bt(null),zn(),O(s=>{if(s===null)return oe(t);let o=Gr(s);return qs(o),f(o)}))}processSegment(e,i,t,r,s,o){return x(i).pipe(ye(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,t,r,s,o).pipe(re(c=>{if(c instanceof Fe)return f(null);throw c}))),F(a=>!!a),re(a=>{if(qr(a))return Bs(t,r,s)?f(new bn):oe(t);throw a}))}processSegmentAgainstRoute(e,i,t,r,s,o,a){return Fs(t,r,s,o)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,o):oe(r):oe(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=On(i,r,s);if(!a)return oe(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Vs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(O(v=>this.processSegment(e,t,i,v.concat(d),o,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let o=js(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),o.pipe(U(a=>a.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(U(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=a,S=new $e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Gs(t),_(t),t.component??t._loadedComponent??null,t,Ws(t)),{segmentGroup:ge,slicedSegments:me}=kr(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(G=>G===null?null:new A(S,G)));if(c.length===0&&me.length===0)return f(new A(S,[]));let mt=_(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(G=>new A(S,G instanceof A?[G]:[])))}))):oe(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}):Is(e,i,t,this.urlSerializer).pipe(O(r=>r?this.configLoader.loadChildren(e,i).pipe(R(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ns(i))):f({routes:[],injector:e})}};function qs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Ks(n){let e=n.value.routeConfig;return e&&e.path===""}function Gr(n){let e=[],i=new Set;for(let t of n){if(!Ks(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=Gr(t.children);e.push(new A(t.value,r))}return e.filter(t=>!i.has(t))}function Gs(n){return n.data||{}}function Ws(n){return n.resolve||{}}function Zs(n,e,i,t,r,s){return O(o=>Hs(n,e,i,t,o.extractedUrl,r,s).pipe(w(({state:a,tree:c})=>M(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function Ys(n,e){return O(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let l of Wr(c))o.add(l);let a=0;return x(o).pipe(ye(c=>s.has(c)?Js(c,t,n,e):(c.data=Mn(c,c.parent,n).resolve,f(void 0))),R(()=>a++),St(1),O(c=>a===o.size?f(i):Z))})}function Wr(n){let e=n.children.map(i=>Wr(i)).flat();return[n,...e]}function Js(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!zr(r)&&(s[Be]=r.title),Qs(s,n,e,t).pipe(w(o=>(n._resolvedData=o,n.data=Mn(n,n.parent,i).resolve,null)))}function Qs(n,e,i,t){let r=Qt(n);if(r.length===0)return f({});let s={};return x(r).pipe(O(o=>Xs(n[o],e,i,t).pipe(F(),R(a=>{s[o]=a}))),St(1),$n(s),re(o=>qr(o)?Z:ve(o)))}function Xs(n,e,i,t){let r=Ve(e)??t,s=fe(n,r),o=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return K(o)}function Yt(n){return U(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(e)})}var Zr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===m);return r}getResolvedTitleForRoute(t){return t.data[Be]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(eo))(),providedIn:"root"});let n=e;return n})(),eo=(()=>{let e=class e extends Zr{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(Kt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),In=new D("ROUTES"),to=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Pt)}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(Yr),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Ke(()=>{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 o=no(r,this.compiler,t,this.onLoadEndListener).pipe(Ke(()=>{this.childrenLoaders.delete(r)})),a=new yt(o,()=>new W).pipe(vt());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function no(n,e,i,t){return K(n.loadChildren()).pipe(w(Yr),O(r=>r instanceof tr||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(r=>{t&&t(n);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(In,[],{optional:!0,self:!0}).flat()),{routes:o.map(En),injector:s}}))}function ro(n){return n&&typeof n=="object"&&"default"in n}function Yr(n){return ro(n)?n.default:n}var Pn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(io))(),providedIn:"root"});let n=e;return n})(),io=(()=>{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})(),so=new D("");var oo=(()=>{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(to),this.environmentInjector=g(Ge),this.urlSerializer=g(Rn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(An,{optional:!0})!==null,this.titleStrategy=g(Zr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Pn),this.createViewTransition=g(so,{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 ln(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(M(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new E({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:Pe,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ne(o=>o.id!==0),w(o=>M(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),U(o=>{this.currentTransition=o;let a=!1,c=!1;return f(o).pipe(R(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?M(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),U(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 te(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(U(v=>{let S=this.transitions?.getValue();return this.events.next(new je(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Zs(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(v=>{o.targetSnapshot=v.targetSnapshot,o.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=M(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new at(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 je(v,this.urlSerializer.serialize(S),ge,me);this.events.next(G);let si=_r(S,this.rootComponentType).snapshot;return this.currentTransition=o=M(h({},l),{targetSnapshot:si,urlAfterRedirects:S,extras:M(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(o)}else{let v="";return this.events.next(new te(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),R(l=>{let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=o=M(h({},l),{guards:ps(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),ks(this.environmentInjector,l=>this.events.next(l)),R(l=>{if(o.guardsResult=l.guardsResult,de(l.guardsResult))throw Br(this.urlSerializer,l.guardsResult);let d=new rn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),ne(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Yt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(R(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),U(d=>{let p=!1;return f(d).pipe(Ys(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),R(d=>{let p=new on(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Yt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(R(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(),ie(1))}),Yt(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:l,targetSnapshot:d}=o,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>o)):f(o)}),w(l=>{let d=ss(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=M(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,o}),R(()=>{this.events.next(new Le)}),hs(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ie(1),R({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Hn(this.transitionAbortSubject.pipe(R(l=>{throw l}))),Ke(()=>{if(!a&&!c){let l="";this.cancelNavigationTransition(o,l,1)}this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),re(l=>{if(c=!0,Vr(l))this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),ls(l)?this.events.next(new _e(l.url)):o.resolve(!1);else{this.events.next(new Ue(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(l))}catch(d){o.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let o=new q(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(o),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 ao(n){return n!==Pe}var lo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(co))(),providedIn:"root"});let n=e;return n})(),kn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},co=(()=>{let e=class e extends kn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=Mt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Jr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(uo))(),providedIn:"root"});let n=e;return n})(),uo=(()=>{let e=class e extends Jr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Rn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Pn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=_r(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 je)this.stateMemento=this.createStateMemento();else if(t instanceof te)this.rawUrlTree=r.initialUrl;else if(t instanceof at){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Le?(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 Ue?this.restoreHistory(r,!0):t instanceof ee&&(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 o=this.browserPageId,a=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&o===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=Mt(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 ho(n,e){n.events.pipe(ne(i=>i instanceof ee||i instanceof q||i instanceof Ue||i instanceof te),w(i=>i instanceof ee||i instanceof te?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),ne(i=>i!==De.REDIRECTING),ie(1)).subscribe(()=>{e()})}function po(n){throw n}var fo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},go={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(Jr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(rr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(oo),this.urlSerializer=g(Rn),this.location=g(Ze),this.urlHandlingStrategy=g(Pn),this._events=new W,this.errorHandler=this.options.errorHandler||po,this.navigated=!1,this.routeReuseStrategy=g(lo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(In,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(An,{optional:!0}),this.eventsSubscription=new Nn,this.isNgZoneEnabled=g(z)instanceof z&&z.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,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof ee)this.navigated=!0;else if(r instanceof _e){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ao(s.source)};this.scheduleNavigation(a,Pe,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}vo(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),Pe,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 o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(En),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:o,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:a,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Nr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return jr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Pe,null,r)}navigate(t,r={skipLocationChange:!1}){return mo(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({},fo):r===!1?s=h({},go):s=r,de(t))return wr(this.currentUrlTree,t,s);let o=this.parseUrl(t);return wr(this.currentUrlTree,o,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let o=t[s];return o!=null&&(r[s]=o),r},{})}scheduleNavigation(t,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ho(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,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 mo(n){for(let e=0;ei.\u0275providers)])}function wo(n){return n.routerState.root}function Co(){let n=g(At);return e=>{let i=n.get(xt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(bo);n.get(So)===1&&t.initialNavigation(),n.get(ko,null,kt.Optional)?.setUpPreloading(),n.get(yo,null,kt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var bo=new D("",{factory:()=>new W}),So=new D("",{providedIn:"root",factory:()=>1});var ko=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Xr=["easy","medium","hard"];function $(n){return new Map([...n.entries()].sort((e,i)=>{let t=Xr.indexOf(e[1].difficulty),r=Xr.indexOf(i[1].difficulty);return t-r}))}var Ro=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"easy",developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:"easy",developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview]}],["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:[],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}]]),Mo=$(Ro);var To=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}],["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-popup",{title:"Toast Popup",link:"toast-popup/",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]}],["otp-input",{title:"OTP Input",link:"otp-input/",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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:"hard",developer:"sadanandpai",tags:[u.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:"hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:"hard",developer:"sadanandpai",tags:[u.interview]}]]),Ao=$(To);var Eo=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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[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]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"medium",developer:"sadanandpai",tags:[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:"AbhilashMadi",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-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-scrolling",{title:"Infinite Scrolling (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 / Autocomplete (offline)",link:"autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (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]}]]),Oo=$(Eo);var Do=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]}],["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]}]]),Io=$(Do);var Po=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"pankajparkar",tags:[],isNew:!0}]]),xn=$(Po);var ei=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=Nt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=Nt()?"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=B({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[H],decls:33,vars:5,consts:[[1,"navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"right"],[1,"source_code"],["target","_blank","rel","noreferrer",3,"href"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","viewBox","0 0 24 24","fill","none","stroke","currentColor","strokeWidth","2","strokeLinecap","round","strokeLinejoin","round",1,"lucide","lucide-external-link"],["d","M15 3h6v6"],["d","M10 14 21 3"],["d","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],["href","https://github.com/sadanandpai/frontend-mini-challenges/","target","blank"],["src","https://cdn-icons-png.flaticon.com/512/25/25231.png","alt","github repo",1,"github"],["id","responsive-nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],["id","menu"]],template:function(r,s){r&1&&(I(0,"nav",0)(1,"div",1)(2,"a",2),Re(3," < "),N(),I(4,"a",3),T(5,"img",4),N()(),I(6,"h1"),Re(7),N(),I(8,"div",5)(9,"div",6)(10,"a",7),Rt(),I(11,"svg",8),T(12,"path",9)(13,"path",10)(14,"path",11),N(),Re(15," Source code "),N()(),Gn(),I(16,"a",12),T(17,"img",13),N(),I(18,"div",14)(19,"div",15),T(20,"input",16)(21,"div",17)(22,"div",17)(23,"div",17),I(24,"section",18)(25,"ul")(26,"a",7)(27,"li"),Rt(),I(28,"svg",8),T(29,"path",9)(30,"path",10)(31,"path",11),N(),Re(32," Source code "),N()()()()()()()()),r&2&&(se(2),J("href",s.backURL,Se),se(2),J("href",s.homeURL,Se),se(3),er(s.title),se(3),J("href",s.angularSourceCodeURL,Se),se(16),J("href",s.angularSourceCodeURL,Se))},styles:[".navbar[_ngcontent-%COMP%]{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%);box-shadow:0 4px 4px #0000001a}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:flex;flex-grow:1;gap:.5rem;align-items:center}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;color:#000}.navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;gap:1rem;flex:1;text-align:right}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;gap:1rem}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#000;display:flex;align-items:center;justify-content:center;gap:.25rem}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#00f}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .github[_ngcontent-%COMP%]{width:30px;height:30px;vertical-align:text-bottom}.navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] #responsive-nav[_ngcontent-%COMP%]{display:none}@media (max-width: 640px){.right[_ngcontent-%COMP%] .source_code[_ngcontent-%COMP%]{display:none!important}.right[_ngcontent-%COMP%] #responsive-nav[_ngcontent-%COMP%]{display:block!important;position:relative;margin-left:1rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:2;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:4px;width:2rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:1;transition:transform .5s cubic-bezier(.77,.2,.05,1)}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg) translate(1px,-1px)}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]:nth-child(3){opacity:0;transform:rotate(0) scale(.2);background-color:#ccc}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]:nth-child(4){transform:rotate(-45deg) translate(-2px)}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%]{height:100vh;position:fixed;top:0;right:0;width:300px;background-color:#fff;padding:4rem 1rem 1rem;transform:translate(100%);transition:transform .5s cubic-bezier(.51,.92,.24,1.15);box-shadow:-4px 5px 22px -6px #0000001a}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;display:flex;flex-direction:column;align-items:start;justify-content:center}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#000;display:flex;align-items:center;justify-content:center;font-size:1.25rem;gap:.25rem}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#00f}.right[_ngcontent-%COMP%] #menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;list-style:none;margin-bottom:1rem;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ #menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var ti=(()=>{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=xn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[H],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(T(0,"app-navbar",0),I(1,"div",1),T(2,"router-outlet"),N()),r&2&&J("title",s.title)("link",s.link)},dependencies:[ei,He],encapsulation:2});let n=e;return n})();var ni=[{path:"",component:ti,children:[{path:"counter",loadComponent:()=>import("./chunk-KJG7C5AQ.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-HE4EVSPR.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-KUNUAYM2.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-F42HSFXD.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-KAL7KSLI.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-SUGG2AFH.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ri={providers:[Qr(ni),{provide:Ut,useClass:Lt}]};var ii=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-root"]],standalone:!0,features:[H],decls:1,vars:0,template:function(r,s){r&1&&T(0,"router-outlet")},dependencies:[He]});let n=e;return n})();yr(ii,ri).catch(n=>console.error(n)); diff --git a/docs/assets/index-vpN3k896.js b/docs/assets/index-TLEzidiu.js similarity index 96% rename from docs/assets/index-vpN3k896.js rename to docs/assets/index-TLEzidiu.js index 1d688b8ac..fc9fd9fa3 100644 --- a/docs/assets/index-vpN3k896.js +++ b/docs/assets/index-TLEzidiu.js @@ -276,7 +276,7 @@ html body { ${q4(this.passedParams)?`
`:""} - `,this.shadowRoot.appendChild(n),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:r}=yb(this);this.swiperParams=n,this.passedParams=r,delete this.swiperParams.init,this.render(),this.swiper=new dn(this.shadowRoot.querySelector(".swiper"),{...n.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...n,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const a=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;sn.includes("_")).map(n=>n.replace(/[A-Z]/g,r=>`-${r}`).replace("_","").toLowerCase())}}Td.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(lk.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class Z4 extends ok{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(sk(this.shadowRoot,Y4),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const J4=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",lk),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Z4))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Td.push(...t)});const e6=[{id:1,name:"Dummy User 1",role:"Frontend Engineer",img:"https://avatars.githubusercontent.com/u/1111111",comment:"Great resource for learning and frontend interview preparation. It helped me to crack browser coding rounds of multiple companies"}];J4();function t6(){return N.jsxs("section",{children:[N.jsx("h2",{id:"testimonials",className:Ec.heading,children:"Testimonials"}),N.jsxs("swiper-container",{slidesPerView:2,spaceBetween:30,loop:!0,navigation:!0,pagination:{clickable:!0},modules:[nk,tk],children:[N.jsx("swiper-slide",{children:N.jsx("article",{className:Ec.testimonial,children:N.jsxs("h3",{className:"text-center",children:["If you are benefited from these challenges for interviews or learning, please consider adding your testimonial by submitting the details"," ",N.jsx("a",{href:"https://forms.gle/2hJGa3foKuPctiWE7",target:"_blank",rel:"noreferrer",children:"here"})]})})}),e6.map(t=>N.jsx(R5,{testimonial:t},t.id))]})]})}const n6="_topBtn_1lydx_1",r6={topBtn:n6};function uk(){const[t,e]=S.useState(!1);S.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?e(!0):e(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return t&&N.jsx("button",{className:r6.topBtn,onClick:n,children:N.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:[N.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"}),N.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 i6(){return N.jsxs(N.Fragment,{children:[N.jsxs(_v,{children:[N.jsx(Pu,{to:"#whyUs",children:"Why us?"}),N.jsx(Pu,{to:"#testimonials",children:"Testimonials"}),N.jsx(Pu,{to:"#contributors",children:"Contributors"}),N.jsx(Xc,{to:"/leaderboard",children:"Leaderboard"})]}),N.jsxs("div",{className:Ko.container,children:[N.jsx(dN,{}),N.jsx("hr",{className:Ko.hr}),N.jsx(W_,{}),N.jsx("hr",{className:Ko.hr}),N.jsx(t6,{}),N.jsx("hr",{className:Ko.hr}),N.jsx(z_,{}),N.jsx(X_,{}),N.jsx(uk,{})]})]})}const Pd=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"}]]);var $=(t=>(t.Easy="easy",t.Medium="medium",t.Hard="hard",t))($||{}),Y=(t=>(t.interview="interview",t.all="all",t))(Y||{});const bb=[$.Easy,$.Medium,$.Hard];function yl(t){return new Map([...t.entries()].sort((e,n)=>{const r=bb.indexOf(e[1].difficulty),i=bb.indexOf(n[1].difficulty);return r-i}))}function a6(t,e){if(!e||e.length===0)return t;const n=e.map(i=>i.value);return t.filter(i=>n.includes(i.developer))}function o6(t,e){return!e||e.length===0?t:t.filter(r=>r==null?void 0:r.title.toLowerCase().includes(e.toLowerCase()))}function s6(t,e){if(!e||e.length===0)return t;const n=e.map(r=>r.value);return t.filter(r=>n.includes(r.difficulty))}function l6(t,e,n){return n?t:t.filter(r=>r.tags?e.some(i=>{var a;return(a=r.tags)==null?void 0:a.includes(i)}):!1)}function u6(t,e){return e?t.filter(({isNew:n})=>n):t}function c6({challenges:t,title:e,contributors:n,difficulties:r,tags:i,newChallenge:a}){const o=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==Y.all;if((!e||e.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&o&&!a)return t;let l=o6(t,e);return l=a6(l,n),l=s6(l,r),l=l6(l,i,o),l=u6(l,a),l}function d6(){const t=sessionStorage.getItem("searchFilters");if(t){const e=JSON.parse(t);return{searchInput:e.searchInput||"",optionSelected:e.optionSelected||[],selectedDifficulties:e.selectedDifficulties||[],tag:e.tag||Y.interview,selectedChallengesByTags:e.selectedChallengesByTags||[],newChallenge:e.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:Y.interview,selectedChallengesByTags:[Y.interview],newChallenge:!1}}const f6=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:$.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:$.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:$.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[Y.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:$.Easy,developer:"officialbidisha",tags:[Y.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:[Y.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:[],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:[Y.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:$.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),ck=yl(f6),p6=new Map([["counter",{title:"Counter",link:"counter/",difficulty:$.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[Y.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:$.Easy,developer:"X0rD3v1L",tags:[Y.interview]}],["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:[Y.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:$.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[Y.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:[Y.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}],["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:[Y.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:$.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[Y.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:$.Medium,developer:"srijanB7",tags:[Y.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:[Y.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:$.Medium,developer:"Kei-K23",tags:[Y.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:[Y.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:[Y.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:$.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}]]),dk=yl(p6),h6=new Map([["counter",{title:"Counter",link:"counter",difficulty:$.Easy,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:$.Easy,tags:[Y.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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:$.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:$.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:$.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:$.Easy,developer:"deepakrajkranti",tags:[Y.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:[Y.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:$.Easy,developer:"rashidtvmr",tags:[Y.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:[Y.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:$.Medium,developer:"liza",tags:[Y.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:[Y.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:[Y.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:$.Medium,developer:"rishabhm05",tags:[Y.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:$.Medium,developer:"deepu0",tags:[Y.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:$.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:$.Medium,developer:"deepakrajkranti",tags:[Y.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:[Y.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:$.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:$.Medium,developer:"AbhilashMadi",tags:[Y.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:$.Medium,developer:"AbhilashMadi",tags:[Y.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-comments",{title:"Nested Comments",link:"nested-comments",difficulty:$.Hard,developer:"Akshay-Omkar",tags:[Y.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:[Y.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:$.Medium,developer:"ayush-dutt-sharma",tags:[Y.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:$.Hard,developer:"rishabhm05",tags:[Y.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:$.Hard,developer:"deepu0",tags:[Y.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:$.Hard,developer:"deepu0",tags:[Y.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:[Y.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:[Y.interview]}]]),fk=yl(h6),m6=new Map([["counter",{title:"Counter",link:"/counter",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.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:[Y.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:[Y.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:[Y.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:$.Medium,developer:"arpansaha13",tags:[Y.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:$.Medium,developer:"jaydadhaniya",tags:[Y.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:$.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:$.Medium,developer:"Shardik04",tags:[Y.interview]}]]),pk=yl(m6),g6=new Map([["counter",{title:"Counter",link:"counter",difficulty:$.Easy,developer:"sadanandpai",tags:[Y.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:$.Easy,developer:"pankajparkar",tags:[Y.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:$.Easy,developer:"pankajparkar",tags:[Y.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:$.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:$.Easy,developer:"pankajparkar",tags:[Y.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:$.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),hk=yl(g6);function v6(t,e,n){e.forEach(r=>{const i=t.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):t.set(r.developer,{[n]:1,totalContributions:1})})}const y6=()=>{const t=new Map;new Map([["css",ck],["js",dk],["react",fk],["vue",pk],["angular",hk]]).forEach((i,a)=>{v6(t,i,a)});const n=new Map;t.forEach((i,a)=>{const o=Pd.get(a);o&&n.set(a,{name:o==null?void 0:o.name,pic:o==null?void 0:o.pic,contributions:i,numberOfContributions:i.totalContributions,developer:a})});const r=new Map(Array.from(n.entries()).sort((i,a)=>a[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(a[1].name)));return new Map([...r.entries()])},w6="_leaderboardTableWrapper_1flea_1",b6="_leaderboardTable_1flea_1",S6="_leaderBoardTableData_1flea_31",x6="_leaderBoardContributorImg_1flea_37",E6="_userProfileImg_1flea_38",C6="_leaderBoardContributorName_1flea_46",T6="_leaderBoardHeading_1flea_50",P6="_userProfileHeading_1flea_51",k6="_profileDetailsContainer_1flea_56",M6="_profileLink_1flea_60",O6="_fontWeightNormal_1flea_68",A6="_contributionTableCell_1flea_72",L6="_techStackDiv_1flea_76",R6="_techStackImg_1flea_83",I6="_techStackDivWrapper_1flea_87",D6="_totalContributions_1flea_101",F6="_leaderboardRowContainer_1flea_125",_6="_index_1flea_131",N6="_name_1flea_139",V6="_contributions_1flea_146",pt={leaderboardTableWrapper:w6,leaderboardTable:b6,leaderBoardTableData:S6,leaderBoardContributorImg:x6,userProfileImg:E6,leaderBoardContributorName:C6,leaderBoardHeading:T6,userProfileHeading:P6,profileDetailsContainer:k6,profileLink:M6,fontWeightNormal:O6,contributionTableCell:A6,techStackDiv:L6,techStackImg:R6,techStackDivWrapper:I6,totalContributions:D6,leaderboardRowContainer:F6,index:_6,name:N6,contributions:V6};function gp(...t){return t.join(" ")}const j6=new Map([["css",dv],["js",pv],["react",hv],["vue",mv],["angular",fv]]),$6=y6(),z6=Array.from($6.values()).map((t,e)=>N.jsxs("tr",{className:pt.leaderboardRowContainer,children:[N.jsx("td",{className:gp(pt.leaderBoardTableData,pt.index),children:e}),N.jsx("td",{className:gp(pt.leaderBoardTableData,pt.leaderBoardContributorNameTd,pt.name),children:N.jsxs("div",{className:pt.profileLink,children:[N.jsx("img",{className:pt.leaderBoardContributorImg,src:t.pic,alt:""}),N.jsx("span",{className:pt.leaderBoardContributorName,children:t.name})]})}),N.jsx("td",{className:gp(pt.leaderBoardTableData,pt.contributions),children:N.jsxs("div",{className:pt.contributionTableCell,children:[[...j6.entries()].map(([n,r])=>{const i=t.contributions[n];return i?N.jsx("div",{className:pt.techStackDiv,children:N.jsxs("div",{className:pt.techStackDivWrapper,children:[N.jsx("img",{src:r,className:pt.techStackImg}),N.jsx("div",{children:i})]})},n):null}),N.jsxs("div",{className:pt.totalContributions,children:[N.jsx("div",{children:"Total"}),N.jsx("div",{children:t.numberOfContributions})]})]})})]},t.name));function B6(){return N.jsx("div",{className:"container",children:N.jsx("div",{className:pt.leaderboardTableWrapper,children:N.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:pt.leaderboardTable,children:[N.jsx("thead",{children:N.jsxs("tr",{children:[N.jsx("td",{children:"#"}),N.jsx("td",{children:"Name"}),N.jsx("td",{children:"Contributions"})]})}),N.jsx("tbody",{children:z6})]})})})}function H6(){return N.jsxs(N.Fragment,{children:[N.jsx(_v,{subheading:"Leaderboard"}),N.jsx(B6,{})]})}const U6="_avatar_1jv0o_1",W6="_avatarGroup_1jv0o_11",mk={avatar:U6,avatarGroup:W6};function G6({src:t,alt:e}){return N.jsx("img",{src:t,alt:e,className:mk.avatar})}function q6({contributorNames:t}){return N.jsx("div",{className:mk.avatarGroup,children:t.map(e=>{var r;const n=(r=Pd.get(e))==null?void 0:r.pic;return n?N.jsx(G6,{src:n,alt:""},e):null}).filter(Boolean)})}const X6="_filterOptionWrapper_1lwpz_1",K6="_searchInputWrapper_1lwpz_9",Y6="_searchInput_1lwpz_9",Q6="_searchIcon_1lwpz_22",Z6="_filterByTechWrapper_1lwpz_39",J6="_activeTech_1lwpz_61",eB="_emptyMessage_1lwpz_65",tB="_challengeGrid_1lwpz_76",nB="_challengeCard_1lwpz_83",rB="_avatarContainer_1lwpz_98",iB="_disabled_1lwpz_106",aB="_developer_1lwpz_130",oB="_name_1lwpz_143",sB="_medium_1lwpz_146",lB="_hard_1lwpz_149",uB="_checkboxContainer_1lwpz_153",cB="_checkbox_1lwpz_153",Et={filterOptionWrapper:X6,searchInputWrapper:K6,searchInput:Y6,searchIcon:Q6,filterByTechWrapper:Z6,activeTech:J6,emptyMessage:eB,challengeGrid:tB,challengeCard:nB,avatarContainer:rB,disabled:iB,new:"_new_1lwpz_120",developer:aB,name:oB,medium:sB,hard:lB,checkboxContainer:uB,checkbox:cB},dB=({link:t,contributor:e,challenge:n})=>N.jsxs("a",{className:`${Et.challengeCard} ${Et[n.difficulty]}`,href:t,children:[n.isNew&&N.jsx("span",{className:Et.new,children:"New"}),N.jsxs("div",{children:[N.jsx("h3",{children:n.title}),N.jsxs("div",{className:Et.avatarContainer,children:[n.developer&&N.jsxs("div",{className:Et.developer,children:[N.jsx("img",{src:e==null?void 0:e.pic,alt:""}),N.jsx("span",{className:Et.name,children:e==null?void 0:e.name})]}),n.contributors&&N.jsx(q6,{contributorNames:n.contributors})]})]})]},n.title);var fB=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function pB(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,a=t.defaultValue,o=a===void 0?null:a,l=t.inputValue,s=t.menuIsOpen,u=t.onChange,c=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,p=t.value,w=vt(t,fB),m=S.useState(l!==void 0?l:n),g=ae(m,2),h=g[0],v=g[1],y=S.useState(s!==void 0?s:i),b=ae(y,2),E=b[0],x=b[1],C=S.useState(p!==void 0?p:o),T=ae(C,2),P=T[0],O=T[1],I=S.useCallback(function(k,F){typeof u=="function"&&u(k,F),O(k)},[u]),_=S.useCallback(function(k,F){var j;typeof c=="function"&&(j=c(k,F)),v(j!==void 0?j:k)},[c]),A=S.useCallback(function(){typeof f=="function"&&f(),x(!0)},[f]),M=S.useCallback(function(){typeof d=="function"&&d(),x(!1)},[d]),R=l!==void 0?l:h,D=s!==void 0?s:E,L=p!==void 0?p:P;return H(H({},w),{},{inputValue:R,menuIsOpen:D,onChange:I,onInputChange:_,onMenuClose:M,onMenuOpen:A,value:L})}function hB(t){if(t.sheet)return t.sheet;for(var e=0;e6)switch(Ct(t,e+1)){case 109:if(Ct(t,e+4)!==45)break;case 102:return Te(t,/(.+:)(.+)-([^]+)/,"$1"+Ce+"$2-$3$1"+yc+(Ct(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Yh(t,"stretch")?gk(Te(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Ct(t,e+1)!==115)break;case 6444:switch(Ct(t,ar(t)-3-(~Yh(t,"!important")&&10))){case 107:return Te(t,":",":"+Ce)+t;case 101:return Te(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ce+(Ct(t,14)===45?"inline-":"")+"box$3$1"+Ce+"$2$3$1"+_t+"$2box$3")+t}break;case 5936:switch(Ct(t,e+11)){case 114:return Ce+t+_t+Te(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ce+t+_t+Te(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ce+t+_t+Te(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ce+t+_t+t+t}return t}var EB=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case kv:e.return=gk(e.value,e.length);break;case BT:return Hi([Vo(e,{value:Te(e.value,"@","@"+Ce)})],i);case Pv:if(e.length)return dV(e.props,function(a){switch(cV(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hi([Vo(e,{props:[Te(a,/:(read-\w+)/,":"+yc+"$1")]})],i);case"::placeholder":return Hi([Vo(e,{props:[Te(a,/:(plac\w+)/,":"+Ce+"input-$1")]}),Vo(e,{props:[Te(a,/:(plac\w+)/,":"+yc+"$1")]}),Vo(e,{props:[Te(a,/:(plac\w+)/,_t+"input-$1")]})],i)}return""})}},CB=[EB],TB=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||CB,a={},o,l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),h=1;h0},...n,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const a=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;sn.includes("_")).map(n=>n.replace(/[A-Z]/g,r=>`-${r}`).replace("_","").toLowerCase())}}Td.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(lk.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class Z4 extends ok{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(sk(this.shadowRoot,Y4),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const J4=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",lk),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Z4))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Td.push(...t)});const e6=[{id:1,name:"Dummy User 1",role:"Frontend Engineer",img:"https://avatars.githubusercontent.com/u/1111111",comment:"Great resource for learning and frontend interview preparation. It helped me to crack browser coding rounds of multiple companies"}];J4();function t6(){return N.jsxs("section",{children:[N.jsx("h2",{id:"testimonials",className:Ec.heading,children:"Testimonials"}),N.jsxs("swiper-container",{slidesPerView:2,spaceBetween:30,loop:!0,navigation:!0,pagination:{clickable:!0},modules:[nk,tk],children:[N.jsx("swiper-slide",{children:N.jsx("article",{className:Ec.testimonial,children:N.jsxs("h3",{className:"text-center",children:["If you are benefited from these challenges for interviews or learning, please consider adding your testimonial by submitting the details"," ",N.jsx("a",{href:"https://forms.gle/2hJGa3foKuPctiWE7",target:"_blank",rel:"noreferrer",children:"here"})]})})}),e6.map(t=>N.jsx(R5,{testimonial:t},t.id))]})]})}const n6="_topBtn_1lydx_1",r6={topBtn:n6};function uk(){const[t,e]=S.useState(!1);S.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?e(!0):e(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return t&&N.jsx("button",{className:r6.topBtn,onClick:n,children:N.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:[N.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"}),N.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 i6(){return N.jsxs(N.Fragment,{children:[N.jsxs(_v,{children:[N.jsx(Pu,{to:"#whyUs",children:"Why us?"}),N.jsx(Pu,{to:"#testimonials",children:"Testimonials"}),N.jsx(Pu,{to:"#contributors",children:"Contributors"}),N.jsx(Xc,{to:"/leaderboard",children:"Leaderboard"})]}),N.jsxs("div",{className:Ko.container,children:[N.jsx(dN,{}),N.jsx("hr",{className:Ko.hr}),N.jsx(W_,{}),N.jsx("hr",{className:Ko.hr}),N.jsx(t6,{}),N.jsx("hr",{className:Ko.hr}),N.jsx(z_,{}),N.jsx(X_,{}),N.jsx(uk,{})]})]})}const Pd=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"}]]);var $=(t=>(t.Easy="easy",t.Medium="medium",t.Hard="hard",t))($||{}),Y=(t=>(t.interview="interview",t.all="all",t))(Y||{});const bb=[$.Easy,$.Medium,$.Hard];function yl(t){return new Map([...t.entries()].sort((e,n)=>{const r=bb.indexOf(e[1].difficulty),i=bb.indexOf(n[1].difficulty);return r-i}))}function a6(t,e){if(!e||e.length===0)return t;const n=e.map(i=>i.value);return t.filter(i=>n.includes(i.developer))}function o6(t,e){return!e||e.length===0?t:t.filter(r=>r==null?void 0:r.title.toLowerCase().includes(e.toLowerCase()))}function s6(t,e){if(!e||e.length===0)return t;const n=e.map(r=>r.value);return t.filter(r=>n.includes(r.difficulty))}function l6(t,e,n){return n?t:t.filter(r=>r.tags?e.some(i=>{var a;return(a=r.tags)==null?void 0:a.includes(i)}):!1)}function u6(t,e){return e?t.filter(({isNew:n})=>n):t}function c6({challenges:t,title:e,contributors:n,difficulties:r,tags:i,newChallenge:a}){const o=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==Y.all;if((!e||e.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&o&&!a)return t;let l=o6(t,e);return l=a6(l,n),l=s6(l,r),l=l6(l,i,o),l=u6(l,a),l}function d6(){const t=sessionStorage.getItem("searchFilters");if(t){const e=JSON.parse(t);return{searchInput:e.searchInput||"",optionSelected:e.optionSelected||[],selectedDifficulties:e.selectedDifficulties||[],tag:e.tag||Y.interview,selectedChallengesByTags:e.selectedChallengesByTags||[],newChallenge:e.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:Y.interview,selectedChallengesByTags:[Y.interview],newChallenge:!1}}const f6=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:$.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:$.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:$.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[Y.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:$.Easy,developer:"officialbidisha",tags:[Y.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:[Y.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:[],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:[Y.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:$.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),ck=yl(f6),p6=new Map([["counter",{title:"Counter",link:"counter/",difficulty:$.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[Y.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:[Y.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:$.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[Y.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:[Y.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}],["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:[Y.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:$.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[Y.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:$.Medium,developer:"srijanB7",tags:[Y.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:[Y.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:$.Medium,developer:"Kei-K23",tags:[Y.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:[Y.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:[Y.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:$.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:$.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}]]),dk=yl(p6),h6=new Map([["counter",{title:"Counter",link:"counter",difficulty:$.Easy,developer:"sadanandpai",tags:[Y.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:[Y.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:$.Easy,tags:[Y.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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:$.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:$.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:$.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:$.Easy,developer:"deepakrajkranti",tags:[Y.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:[Y.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:$.Easy,developer:"rashidtvmr",tags:[Y.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:[Y.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:$.Medium,developer:"liza",tags:[Y.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:[Y.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:[Y.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:$.Medium,developer:"rishabhm05",tags:[Y.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:$.Medium,developer:"deepu0",tags:[Y.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:$.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:$.Medium,developer:"deepakrajkranti",tags:[Y.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:[Y.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:$.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:$.Medium,developer:"AbhilashMadi",tags:[Y.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:$.Medium,developer:"AbhilashMadi",tags:[Y.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-comments",{title:"Nested Comments",link:"nested-comments",difficulty:$.Hard,developer:"Akshay-Omkar",tags:[Y.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:[Y.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:$.Medium,developer:"ayush-dutt-sharma",tags:[Y.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:$.Medium,developer:"sadanandpai",tags:[Y.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:$.Hard,developer:"rishabhm05",tags:[Y.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:$.Hard,developer:"sadanandpai",tags:[Y.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:$.Hard,developer:"deepu0",tags:[Y.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:$.Hard,developer:"deepu0",tags:[Y.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:[Y.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:[Y.interview]}]]),fk=yl(h6),m6=new Map([["counter",{title:"Counter",link:"/counter",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:$.Easy,developer:"arpansaha13",tags:[Y.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:[Y.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:[Y.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:[Y.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:$.Medium,developer:"arpansaha13",tags:[Y.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:$.Medium,developer:"jaydadhaniya",tags:[Y.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:$.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:$.Medium,developer:"Shardik04",tags:[Y.interview]}]]),pk=yl(m6),g6=new Map([["counter",{title:"Counter",link:"counter",difficulty:$.Easy,developer:"sadanandpai",tags:[Y.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:$.Easy,developer:"pankajparkar",tags:[Y.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:$.Easy,developer:"pankajparkar",tags:[Y.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:$.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:$.Easy,developer:"pankajparkar",tags:[Y.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:$.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),hk=yl(g6);function v6(t,e,n){e.forEach(r=>{const i=t.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):t.set(r.developer,{[n]:1,totalContributions:1})})}const y6=()=>{const t=new Map;new Map([["css",ck],["js",dk],["react",fk],["vue",pk],["angular",hk]]).forEach((i,a)=>{v6(t,i,a)});const n=new Map;t.forEach((i,a)=>{const o=Pd.get(a);o&&n.set(a,{name:o==null?void 0:o.name,pic:o==null?void 0:o.pic,contributions:i,numberOfContributions:i.totalContributions,developer:a})});const r=new Map(Array.from(n.entries()).sort((i,a)=>a[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(a[1].name)));return new Map([...r.entries()])},w6="_leaderboardTableWrapper_1flea_1",b6="_leaderboardTable_1flea_1",S6="_leaderBoardTableData_1flea_31",x6="_leaderBoardContributorImg_1flea_37",E6="_userProfileImg_1flea_38",C6="_leaderBoardContributorName_1flea_46",T6="_leaderBoardHeading_1flea_50",P6="_userProfileHeading_1flea_51",k6="_profileDetailsContainer_1flea_56",M6="_profileLink_1flea_60",O6="_fontWeightNormal_1flea_68",A6="_contributionTableCell_1flea_72",L6="_techStackDiv_1flea_76",R6="_techStackImg_1flea_83",I6="_techStackDivWrapper_1flea_87",D6="_totalContributions_1flea_101",F6="_leaderboardRowContainer_1flea_125",_6="_index_1flea_131",N6="_name_1flea_139",V6="_contributions_1flea_146",pt={leaderboardTableWrapper:w6,leaderboardTable:b6,leaderBoardTableData:S6,leaderBoardContributorImg:x6,userProfileImg:E6,leaderBoardContributorName:C6,leaderBoardHeading:T6,userProfileHeading:P6,profileDetailsContainer:k6,profileLink:M6,fontWeightNormal:O6,contributionTableCell:A6,techStackDiv:L6,techStackImg:R6,techStackDivWrapper:I6,totalContributions:D6,leaderboardRowContainer:F6,index:_6,name:N6,contributions:V6};function gp(...t){return t.join(" ")}const j6=new Map([["css",dv],["js",pv],["react",hv],["vue",mv],["angular",fv]]),$6=y6(),z6=Array.from($6.values()).map((t,e)=>N.jsxs("tr",{className:pt.leaderboardRowContainer,children:[N.jsx("td",{className:gp(pt.leaderBoardTableData,pt.index),children:e}),N.jsx("td",{className:gp(pt.leaderBoardTableData,pt.leaderBoardContributorNameTd,pt.name),children:N.jsxs("div",{className:pt.profileLink,children:[N.jsx("img",{className:pt.leaderBoardContributorImg,src:t.pic,alt:""}),N.jsx("span",{className:pt.leaderBoardContributorName,children:t.name})]})}),N.jsx("td",{className:gp(pt.leaderBoardTableData,pt.contributions),children:N.jsxs("div",{className:pt.contributionTableCell,children:[[...j6.entries()].map(([n,r])=>{const i=t.contributions[n];return i?N.jsx("div",{className:pt.techStackDiv,children:N.jsxs("div",{className:pt.techStackDivWrapper,children:[N.jsx("img",{src:r,className:pt.techStackImg}),N.jsx("div",{children:i})]})},n):null}),N.jsxs("div",{className:pt.totalContributions,children:[N.jsx("div",{children:"Total"}),N.jsx("div",{children:t.numberOfContributions})]})]})})]},t.name));function B6(){return N.jsx("div",{className:"container",children:N.jsx("div",{className:pt.leaderboardTableWrapper,children:N.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:pt.leaderboardTable,children:[N.jsx("thead",{children:N.jsxs("tr",{children:[N.jsx("td",{children:"#"}),N.jsx("td",{children:"Name"}),N.jsx("td",{children:"Contributions"})]})}),N.jsx("tbody",{children:z6})]})})})}function H6(){return N.jsxs(N.Fragment,{children:[N.jsx(_v,{subheading:"Leaderboard"}),N.jsx(B6,{})]})}const U6="_avatar_1jv0o_1",W6="_avatarGroup_1jv0o_11",mk={avatar:U6,avatarGroup:W6};function G6({src:t,alt:e}){return N.jsx("img",{src:t,alt:e,className:mk.avatar})}function q6({contributorNames:t}){return N.jsx("div",{className:mk.avatarGroup,children:t.map(e=>{var r;const n=(r=Pd.get(e))==null?void 0:r.pic;return n?N.jsx(G6,{src:n,alt:""},e):null}).filter(Boolean)})}const X6="_filterOptionWrapper_1lwpz_1",K6="_searchInputWrapper_1lwpz_9",Y6="_searchInput_1lwpz_9",Q6="_searchIcon_1lwpz_22",Z6="_filterByTechWrapper_1lwpz_39",J6="_activeTech_1lwpz_61",eB="_emptyMessage_1lwpz_65",tB="_challengeGrid_1lwpz_76",nB="_challengeCard_1lwpz_83",rB="_avatarContainer_1lwpz_98",iB="_disabled_1lwpz_106",aB="_developer_1lwpz_130",oB="_name_1lwpz_143",sB="_medium_1lwpz_146",lB="_hard_1lwpz_149",uB="_checkboxContainer_1lwpz_153",cB="_checkbox_1lwpz_153",Et={filterOptionWrapper:X6,searchInputWrapper:K6,searchInput:Y6,searchIcon:Q6,filterByTechWrapper:Z6,activeTech:J6,emptyMessage:eB,challengeGrid:tB,challengeCard:nB,avatarContainer:rB,disabled:iB,new:"_new_1lwpz_120",developer:aB,name:oB,medium:sB,hard:lB,checkboxContainer:uB,checkbox:cB},dB=({link:t,contributor:e,challenge:n})=>N.jsxs("a",{className:`${Et.challengeCard} ${Et[n.difficulty]}`,href:t,children:[n.isNew&&N.jsx("span",{className:Et.new,children:"New"}),N.jsxs("div",{children:[N.jsx("h3",{children:n.title}),N.jsxs("div",{className:Et.avatarContainer,children:[n.developer&&N.jsxs("div",{className:Et.developer,children:[N.jsx("img",{src:e==null?void 0:e.pic,alt:""}),N.jsx("span",{className:Et.name,children:e==null?void 0:e.name})]}),n.contributors&&N.jsx(q6,{contributorNames:n.contributors})]})]})]},n.title);var fB=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function pB(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,a=t.defaultValue,o=a===void 0?null:a,l=t.inputValue,s=t.menuIsOpen,u=t.onChange,c=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,p=t.value,w=vt(t,fB),m=S.useState(l!==void 0?l:n),g=ae(m,2),h=g[0],v=g[1],y=S.useState(s!==void 0?s:i),b=ae(y,2),E=b[0],x=b[1],C=S.useState(p!==void 0?p:o),T=ae(C,2),P=T[0],O=T[1],I=S.useCallback(function(k,F){typeof u=="function"&&u(k,F),O(k)},[u]),_=S.useCallback(function(k,F){var j;typeof c=="function"&&(j=c(k,F)),v(j!==void 0?j:k)},[c]),A=S.useCallback(function(){typeof f=="function"&&f(),x(!0)},[f]),M=S.useCallback(function(){typeof d=="function"&&d(),x(!1)},[d]),R=l!==void 0?l:h,D=s!==void 0?s:E,L=p!==void 0?p:P;return H(H({},w),{},{inputValue:R,menuIsOpen:D,onChange:I,onInputChange:_,onMenuClose:M,onMenuOpen:A,value:L})}function hB(t){if(t.sheet)return t.sheet;for(var e=0;e6)switch(Ct(t,e+1)){case 109:if(Ct(t,e+4)!==45)break;case 102:return Te(t,/(.+:)(.+)-([^]+)/,"$1"+Ce+"$2-$3$1"+yc+(Ct(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Yh(t,"stretch")?gk(Te(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Ct(t,e+1)!==115)break;case 6444:switch(Ct(t,ar(t)-3-(~Yh(t,"!important")&&10))){case 107:return Te(t,":",":"+Ce)+t;case 101:return Te(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ce+(Ct(t,14)===45?"inline-":"")+"box$3$1"+Ce+"$2$3$1"+_t+"$2box$3")+t}break;case 5936:switch(Ct(t,e+11)){case 114:return Ce+t+_t+Te(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ce+t+_t+Te(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ce+t+_t+Te(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ce+t+_t+t+t}return t}var EB=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case kv:e.return=gk(e.value,e.length);break;case BT:return Hi([Vo(e,{value:Te(e.value,"@","@"+Ce)})],i);case Pv:if(e.length)return dV(e.props,function(a){switch(cV(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hi([Vo(e,{props:[Te(a,/:(read-\w+)/,":"+yc+"$1")]})],i);case"::placeholder":return Hi([Vo(e,{props:[Te(a,/:(plac\w+)/,":"+Ce+"input-$1")]}),Vo(e,{props:[Te(a,/:(plac\w+)/,":"+yc+"$1")]}),Vo(e,{props:[Te(a,/:(plac\w+)/,_t+"input-$1")]})],i)}return""})}},CB=[EB],TB=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||CB,a={},o,l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.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-CJ6VUzII.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-CHuwHSl_.js b/docs/css/assets/index-BNX8W0LA.js similarity index 94% rename from docs/css/assets/index-CHuwHSl_.js rename to docs/css/assets/index-BNX8W0LA.js index e4d9b2b36..03f2d6c6a 100644 --- a/docs/css/assets/index-CHuwHSl_.js +++ b/docs/css/assets/index-BNX8W0LA.js @@ -1 +1 @@ -import"./header-ChTVhzPx.js";import"./navbar-CaOx5_Q7.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-DReocMUC.js";import"./navbar-CJ6VUzII.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-CFZ6WsI-.js b/docs/css/assets/index-BgDSNEtX.js similarity index 77% rename from docs/css/assets/index-CFZ6WsI-.js rename to docs/css/assets/index-BgDSNEtX.js index 2c4c82a46..2e5d1dc61 100644 --- a/docs/css/assets/index-CFZ6WsI-.js +++ b/docs/css/assets/index-BgDSNEtX.js @@ -1 +1 @@ -import"./header-ChTVhzPx.js";import"./navbar-CaOx5_Q7.js";const t=document.getElementById("showDialog"),o=document.getElementById("dialogPopup"),e=document.getElementById("closeDialog");t.addEventListener("click",()=>{o.showModal()});e.addEventListener("click",()=>{o.close("")}); +import"./header-DReocMUC.js";import"./navbar-CJ6VUzII.js";const t=document.getElementById("showDialog"),o=document.getElementById("dialogPopup"),e=document.getElementById("closeDialog");t.addEventListener("click",()=>{o.showModal()});e.addEventListener("click",()=>{o.close("")}); diff --git a/docs/css/assets/index-I16MiIZ7.js b/docs/css/assets/index-C3XME_zG.js similarity index 91% rename from docs/css/assets/index-I16MiIZ7.js rename to docs/css/assets/index-C3XME_zG.js index 4b624efd5..ff2607975 100644 --- a/docs/css/assets/index-I16MiIZ7.js +++ b/docs/css/assets/index-C3XME_zG.js @@ -1 +1 @@ -import"./header-ChTVhzPx.js";import"./navbar-CaOx5_Q7.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-DReocMUC.js";import"./navbar-CJ6VUzII.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-DONSlLae.js b/docs/css/assets/index-CuWzMcHz.js similarity index 98% rename from docs/css/assets/index-DONSlLae.js rename to docs/css/assets/index-CuWzMcHz.js index a90801163..247770d25 100644 --- a/docs/css/assets/index-DONSlLae.js +++ b/docs/css/assets/index-CuWzMcHz.js @@ -1,2 +1,2 @@ -import"./header-ChTVhzPx.js";import"./navbar-CaOx5_Q7.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-DReocMUC.js";import"./navbar-CJ6VUzII.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-S5XyXd9x.js b/docs/css/assets/index-DYXXkqnn.js similarity index 91% rename from docs/css/assets/index-S5XyXd9x.js rename to docs/css/assets/index-DYXXkqnn.js index d7651c71f..5ae2638bd 100644 --- a/docs/css/assets/index-S5XyXd9x.js +++ b/docs/css/assets/index-DYXXkqnn.js @@ -1 +1 @@ -import"./header-ChTVhzPx.js";import"./navbar-CaOx5_Q7.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-DReocMUC.js";import"./navbar-CJ6VUzII.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-CC6BBC6w.js b/docs/css/assets/index-DvMmcqgC.js similarity index 79% rename from docs/css/assets/index-CC6BBC6w.js rename to docs/css/assets/index-DvMmcqgC.js index 0c91bee5b..79e12c677 100644 --- a/docs/css/assets/index-CC6BBC6w.js +++ b/docs/css/assets/index-DvMmcqgC.js @@ -1 +1 @@ -import"./header-ChTVhzPx.js";import"./navbar-CaOx5_Q7.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-DReocMUC.js";import"./navbar-CJ6VUzII.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/index-DEqXut5l.js b/docs/css/assets/index-EvB3lgBA.js similarity index 69% rename from docs/css/assets/index-DEqXut5l.js rename to docs/css/assets/index-EvB3lgBA.js index 183ad18aa..f9ac16482 100644 --- a/docs/css/assets/index-DEqXut5l.js +++ b/docs/css/assets/index-EvB3lgBA.js @@ -1 +1 @@ -import"./header-ChTVhzPx.js";import"./navbar-CaOx5_Q7.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); +import"./header-DReocMUC.js";import"./navbar-CJ6VUzII.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/navbar-CJ6VUzII.js b/docs/css/assets/navbar-CJ6VUzII.js new file mode 100644 index 000000000..13b2e657c --- /dev/null +++ b/docs/css/assets/navbar-CJ6VUzII.js @@ -0,0 +1,27 @@ +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 o=[e.Easy,e.Medium,e.Hard];function l(i){return new Map([...i.entries()].sort((u,c)=>{const p=o.indexOf(u[1].difficulty),f=o.indexOf(c[1].difficulty);return p-f}))}const g=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:e.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview]}],["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:[],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}]]),y=l(g),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}],["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-popup",{title:"Toast Popup",link:"toast-popup/",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]}],["otp-input",{title:"OTP Input",link:"otp-input/",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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);l(m);const v=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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[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]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[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:"AbhilashMadi",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-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-scrolling",{title:"Infinite Scrolling (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 / Autocomplete (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (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]}]]);l(v);const k=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]}],["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]}]]);l(k);const h=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);l(h);const w="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png";var b={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:r,VITE_HOST_URL:s,DEV:d}=b,M=d?`${s}${r}/#/css/`:`/${r}/#/css/`,E=d?`${s}${r}/`:`/${r}/`,T=window.location.pathname.split("/challenges/")[1].slice(0,-1),a=y.get(T),n=document.createElement("nav");n.classList.add("challenge-navbar");n.innerHTML=` + + +

${a.title}

+ +
+ ${a!=null&&a.youtube?` + + youtube solution + + `:""} + + github repo + +
+`;document.body.prepend(n);export{y as c}; diff --git a/docs/css/assets/navbar-CaOx5_Q7.js b/docs/css/assets/navbar-CaOx5_Q7.js deleted file mode 100644 index 5465ef249..000000000 --- a/docs/css/assets/navbar-CaOx5_Q7.js +++ /dev/null @@ -1,27 +0,0 @@ -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 o=[e.Easy,e.Medium,e.Hard];function l(i){return new Map([...i.entries()].sort((u,c)=>{const p=o.indexOf(u[1].difficulty),f=o.indexOf(c[1].difficulty);return p-f}))}const g=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:e.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview]}],["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:[],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}]]),y=l(g),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:[t.interview]}],["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}],["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-popup",{title:"Toast Popup",link:"toast-popup/",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]}],["otp-input",{title:"OTP Input",link:"otp-input/",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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);l(m);const v=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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[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]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[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:"AbhilashMadi",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-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-scrolling",{title:"Infinite Scrolling (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 / Autocomplete (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (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]}]]);l(v);const k=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]}],["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]}]]);l(k);const h=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);l(h);const w="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png";var b={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:r,VITE_HOST_URL:s,DEV:d}=b,M=d?`${s}${r}/#/css/`:`/${r}/#/css/`,E=d?`${s}${r}/`:`/${r}/`,T=window.location.pathname.split("/challenges/")[1].slice(0,-1),a=y.get(T),n=document.createElement("nav");n.classList.add("challenge-navbar");n.innerHTML=` - - -

${a.title}

- -
- ${a!=null&&a.youtube?` - - youtube solution - - `:""} - - github repo - -
-`;document.body.prepend(n);export{y as c}; diff --git a/docs/css/src/challenges/accordion/index.html b/docs/css/src/challenges/accordion/index.html index 8b35fb299..bd245aee0 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 ecda27f58..67ef5d3f7 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 f257f8331..a6c54c9bf 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 bf35218ca..90822838f 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 d02a04cf9..a31319209 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 49bdf74d0..ca08bcdc5 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 9c3fe0781..31937d4fc 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/navigation-bar/index.html b/docs/css/src/challenges/navigation-bar/index.html index b6f9ee8e6..40660d201 100644 --- a/docs/css/src/challenges/navigation-bar/index.html +++ b/docs/css/src/challenges/navigation-bar/index.html @@ -11,9 +11,9 @@ /> - - - + + + diff --git a/docs/css/src/challenges/shapes/index.html b/docs/css/src/challenges/shapes/index.html index 7365b3532..efa858ce4 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 cd23b9c30..8d7728783 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/spinner/index.html b/docs/css/src/challenges/spinner/index.html index 2a4b319f8..421301ec0 100644 --- a/docs/css/src/challenges/spinner/index.html +++ b/docs/css/src/challenges/spinner/index.html @@ -2,8 +2,8 @@ Spinner - - + + diff --git a/docs/css/src/challenges/star-rating-display/index.html b/docs/css/src/challenges/star-rating-display/index.html index 7b3874874..56cffb51e 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/index.html b/docs/index.html index 4bad256b8..ca6633559 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,7 @@ /> Frontend Mini Challenges - + diff --git a/docs/css/assets/header-ChTVhzPx.js b/docs/javascript/assets/header-k9Qk3Vg-.js similarity index 95% rename from docs/css/assets/header-ChTVhzPx.js rename to docs/javascript/assets/header-k9Qk3Vg-.js index 1f371ac4e..9ba65c436 100644 --- a/docs/css/assets/header-ChTVhzPx.js +++ b/docs/javascript/assets/header-k9Qk3Vg-.js @@ -1 +1 @@ -import{c as d}from"./navbar-CaOx5_Q7.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-CbZ04-zJ.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-p5dXpOy8.js b/docs/javascript/assets/index--UEwJ-Pa.js similarity index 95% rename from docs/javascript/assets/index-p5dXpOy8.js rename to docs/javascript/assets/index--UEwJ-Pa.js index 9e5b822f7..d06d1f6ca 100644 --- a/docs/javascript/assets/index-p5dXpOy8.js +++ b/docs/javascript/assets/index--UEwJ-Pa.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-mgERjNer.js b/docs/javascript/assets/index-01zbWaTX.js similarity index 99% rename from docs/javascript/assets/index-mgERjNer.js rename to docs/javascript/assets/index-01zbWaTX.js index 0d64438bb..0c085db26 100644 --- a/docs/javascript/assets/index-mgERjNer.js +++ b/docs/javascript/assets/index-01zbWaTX.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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;A[]);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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-rBBImPvb.js b/docs/javascript/assets/index-0fawpQbP.js similarity index 93% rename from docs/javascript/assets/index-rBBImPvb.js rename to docs/javascript/assets/index-0fawpQbP.js index bad81c9b2..7f2eae035 100644 --- a/docs/javascript/assets/index-rBBImPvb.js +++ b/docs/javascript/assets/index-0fawpQbP.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const s=document.getElementById("movie-title"),c=document.getElementById("movie-genre"),r=document.getElementById("movie-cast"),d=document.getElementById("movie-rating"),l=document.getElementById("movie-released"),v=document.getElementById("movie-director"),a=document.getElementById("movie-poster"),u="adff2bf8",o=document.querySelector(".movie-info");o.classList.add("hidden");const t=document.getElementById("search-form");t.addEventListener("submit",n=>{n.preventDefault();const m=new FormData(t).get("movie-name");function i(e){e.Response==="False"?alert("Please enter a valid movie name."):(s.textContent=e.Title,c.textContent=e.Genre,r.textContent=e.Actors,d.textContent=e.imdbRating,l.textContent=e.Released,v.textContent=e.Director,a.src=e.Poster,o.classList.remove("hidden"))}fetch(`https://www.omdbapi.com/?t=${m}&apikey=${u}`).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.error("Error fetching data: ",e)})}); +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-Pru5Fym6.js b/docs/javascript/assets/index-2KKgxcVs.js similarity index 92% rename from docs/javascript/assets/index-Pru5Fym6.js rename to docs/javascript/assets/index-2KKgxcVs.js index a6815fc1d..e32ed2347 100644 --- a/docs/javascript/assets/index-Pru5Fym6.js +++ b/docs/javascript/assets/index-2KKgxcVs.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-7LqFm2WU.js b/docs/javascript/assets/index-2zxJVlvj.js similarity index 98% rename from docs/javascript/assets/index-7LqFm2WU.js rename to docs/javascript/assets/index-2zxJVlvj.js index 52b002a0a..8005c9221 100644 --- a/docs/javascript/assets/index-7LqFm2WU.js +++ b/docs/javascript/assets/index-2zxJVlvj.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-EmHjjnxO.js b/docs/javascript/assets/index-3DZrY-n_.js similarity index 88% rename from docs/javascript/assets/index-EmHjjnxO.js rename to docs/javascript/assets/index-3DZrY-n_.js index b102213ae..ff3a7a1fe 100644 --- a/docs/javascript/assets/index-EmHjjnxO.js +++ b/docs/javascript/assets/index-3DZrY-n_.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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--MIRwv77.js b/docs/javascript/assets/index-45o52x0_.js similarity index 95% rename from docs/javascript/assets/index--MIRwv77.js rename to docs/javascript/assets/index-45o52x0_.js index a3eb0c39a..dfea9876b 100644 --- a/docs/javascript/assets/index--MIRwv77.js +++ b/docs/javascript/assets/index-45o52x0_.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-u1CpvZs_.js b/docs/javascript/assets/index-4q6UqfA_.js similarity index 96% rename from docs/javascript/assets/index-u1CpvZs_.js rename to docs/javascript/assets/index-4q6UqfA_.js index 1bc9a9cd0..1bdbd4042 100644 --- a/docs/javascript/assets/index-u1CpvZs_.js +++ b/docs/javascript/assets/index-4q6UqfA_.js @@ -1,4 +1,4 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-50SvRbmU.js b/docs/javascript/assets/index-50SvRbmU.js new file mode 100644 index 000000000..10f5ccb5a --- /dev/null +++ b/docs/javascript/assets/index-50SvRbmU.js @@ -0,0 +1 @@ +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-3SdBvCik.js b/docs/javascript/assets/index-5USUgR7D.js similarity index 97% rename from docs/javascript/assets/index-3SdBvCik.js rename to docs/javascript/assets/index-5USUgR7D.js index 47904a646..8c3a7cbc6 100644 --- a/docs/javascript/assets/index-3SdBvCik.js +++ b/docs/javascript/assets/index-5USUgR7D.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-p-bc2C3C.js b/docs/javascript/assets/index-6-hUnQ95.js similarity index 91% rename from docs/javascript/assets/index-p-bc2C3C.js rename to docs/javascript/assets/index-6-hUnQ95.js index 0e6a2124a..84f07f7d5 100644 --- a/docs/javascript/assets/index-p-bc2C3C.js +++ b/docs/javascript/assets/index-6-hUnQ95.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-jv4PqQOs.js b/docs/javascript/assets/index-6x86aOqe.js similarity index 94% rename from docs/javascript/assets/index-jv4PqQOs.js rename to docs/javascript/assets/index-6x86aOqe.js index 062b8864d..bb1342db8 100644 --- a/docs/javascript/assets/index-jv4PqQOs.js +++ b/docs/javascript/assets/index-6x86aOqe.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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{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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-3EDlP_Xm.js b/docs/javascript/assets/index-7teMRAFk.js similarity index 91% rename from docs/javascript/assets/index-3EDlP_Xm.js rename to docs/javascript/assets/index-7teMRAFk.js index f502b2e90..c690bbf49 100644 --- a/docs/javascript/assets/index-3EDlP_Xm.js +++ b/docs/javascript/assets/index-7teMRAFk.js @@ -1,4 +1,4 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-ARpKCt8b.js b/docs/javascript/assets/index-9kRQK48E.js similarity index 94% rename from docs/javascript/assets/index-ARpKCt8b.js rename to docs/javascript/assets/index-9kRQK48E.js index 9ec4f318d..d07b0dc77 100644 --- a/docs/javascript/assets/index-ARpKCt8b.js +++ b/docs/javascript/assets/index-9kRQK48E.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const i=document.querySelector(".grid"),l=window.innerHeight/60-3,m=window.innerWidth/60-3,r=[],u=document.createDocumentFragment();for(let t=0;t{t.target.classList.contains("box")&&(a=t.target.dataset.x,s=t.target.dataset.y,g(a,s))});i.addEventListener("mousemove",t=>{if(a&&s&&t.target.classList.contains("box")){const e=t.target.dataset.x,o=t.target.dataset.y;h(),g(e,o)}});i.addEventListener("mouseup",f);i.addEventListener("mouseleave",f);function f(){a=null,s=null,h()}function g(t,e){if(a&&t&&s&&e){const o=Math.min(a,t),n=Math.max(a,t),p=Math.min(s,e),w=Math.max(s,e);for(let d=o;d<=n;d++)for(let c=p;c<=w;c++)r[d][c].style.backgroundColor="skyblue"}}function h(){for(let t=0;t{t.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;t0?(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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-DT4PuPBU.js b/docs/javascript/assets/index-DT4PuPBU.js deleted file mode 100644 index 85a7c8efa..000000000 --- a/docs/javascript/assets/index-DT4PuPBU.js +++ /dev/null @@ -1 +0,0 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const i=document.getElementById("grid"),a=document.getElementById("inputBox");for(let e=1;e<=9;e++){const t=document.createElement("div");t.className="grid-item",t.textContent=e,t.dataset.value=e,i.appendChild(t)}document.getElementById("colorForm").addEventListener("submit",e=>{e.preventDefault();const t=parseInt(a.value,10);document.querySelectorAll(".grid-item").forEach(n=>{parseInt(n.dataset.value,10)===t?n.classList.add("active"):n.classList.remove("active")}),a.value=""}); diff --git a/docs/javascript/assets/index-e6yXJmUl.js b/docs/javascript/assets/index-EdeLhJWB.js similarity index 99% rename from docs/javascript/assets/index-e6yXJmUl.js rename to docs/javascript/assets/index-EdeLhJWB.js index 514bad536..f51697228 100644 --- a/docs/javascript/assets/index-e6yXJmUl.js +++ b/docs/javascript/assets/index-EdeLhJWB.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAAAXNSR0IArs4c6QAACFZJREFUeAHtnOt120YQhcWc/A87CFKBkQoEVyB2ILgCMRWIrkBMBYQqEF0B4QrEVECoAsMVKN+lsdBwsSRByrZAwnPOzc7OY3fmahekkCiDizOV5+fnIa1dghGIgCRZ//PiomAUSpCDT4PBoGDst0BaAh7AofJIwi0Q6f0Smo7BArxWvrDATRv2Bm2Cuh5Ds3fUOA7U+RXbHCwr2JCIiTAC74AvyvnAddZ4fgJpQ7AAvuQYREorITYCE1ACKzqFSatFTimIpkScnlNWlkyObpZcrZnZBSs9PSVu9tZKUz5xanq4N7FFAOuMQAmsxC1Sux9CRzPbFfr0e1fNmjGwBOoKR997n5+6Hg2kwEq2qwACRcIdWACdVpEg/QFcg62nFZ9P4GLXXp330dAKOFluK5iABCxc4I5RZN7uWMf/YaXbYjttp8mJR0IUKpiYGy+uzfSRoOApxD43C6xCe3beRgM6JU6CzzmcPsGKz8EYJBVGjBkogZUggQRENgg97TxZtkAKVsNWGqcEpx9TYEvsOlbHNwQi0UrwuUaAjZvbdTqvU/zUdNgoHp+IsCdzKVubxogbAyupn4dzZAN8f6fnFL4yxYeaswSUxEaHNET83KwffK7h17pORoes/6axruJqbJwo7HpeOZkcWiyJ/nMt9tcgxhI8+c0P6OKcohNbF7+sl3aOX2TaZufW30av3ud9MrEjozt16RTG4UmQZwqW+uTNNbXEXbziTYglJwrsY03xKZJX2A4C+n8B2zGmKJBkyb343QZUxz/0bsuGHas/VVejkV9dy2Kb30t4pzqJLY19ZHRrN+aD1dA6cXAVCkrBj5ap3ZzN9JC2Xy82/C6WmKFX2INs8jNee76xyzt0ZJ2NDwQ/H//E7JXVfoy5cfwwtd4QhU0Sb6Ol9VudOFu4l1ZP9VViTarNbaMrr17lmzLy8zBnJmZS+zGOgDb/kZLWG6KwkQrOqw2194bfxko3sVXKxqD82M9pOyd3YlYrQ3n4VyYmDcV02kbxarIwTUidg+jYwslNtYiRib8Wvtj4pR51wv1132RO8RFIXrs5a9wAK8vQmgRMTVAeiumFDRJ0ikTaClgpmTSuPrYhsB9s4w2icOonOfOCmPZG9ChoECeSsGeGBRE8rMlTErDMmtheqCLnhZCamTVx4sZKfeoGWCNiH0Ew2axzbqp+zZuD6bYv5wFunoiNyPkmBPhHclwluZBejnAwBI/ASrxBBp6V8dZHciOoZxP40FW1vIiitEGDrEaSRkDPDHBxDfzn/zRIA4ElcJIGg3pghIBrsAK+bL+NRNpnnhhPzp0retTz7BJcgRnwTxqm9aHayYX7tA2+sz93Enf0d49v7L32aoT/Vn1Mf2h4+mkQaX/BSQrKfRQMXADHNEGfgEvQF9Fb5yWYg7wNYZaYmjxrrIi0pnPSS0gSYb/kFwMnysDGteW6xvRxBTQOT7SnfWUXBAiSHDxxjQvGg2VNHqSJqAeQHLzCeSQsaWMO7g8h0pGntyrxefDw6i4yVvjYhkR9SU4JngEnn1FyNznTUTdNhyUCf4KQTCDwY8hR2yDvETjR0e2V0HgExqBwJJhxgS6iw2ICpSbhqH5Y6T8FPok6XDqlTcFhJWlG9MsCGXppkFlS0FegeQIx5sDJAqUZ1C/+1t3Cw8SRUo0Ln4bQB0ZBUA40nrMsae4zHwrltiYhbYzvzvj/JV62FyFo7rHcp+mMZqMXNjY1fP4VbsYSNAV9lptN2l5mkFIYYvTLxFrWX5LdhIAIfQSGznamY0JfMfjD6y/jWn7wbBfwIk5q0tDfE5f7cb2aQ0oK7Kli+jwJkYA9l7OSLBTTeRvF66vENbgDD+AWRMcWTq7WWwIrOpUbglNEO1nJ6V9b3fu3urIle99zHTQGhcoTHPpVMgK+6N/8/+Mb28xZVz3n4F0Vr7fK7yt9PVQxX4zt71rH2YUPjHldkKdQXwy+gF0iYo8SFk28hSN/Ifz26m78HUYj2E/+CfNdNdyxv06Ik3uUj+DJGRh1tRIzb61y0nKC7VqjQLJiarH/NXyKdQoi8BZSsKn2bwiExBgT43hfNSvTBP+S0V25FD0Hx8icpJsqMdqzQFyTRzElwemehLdyD83GT4Y4Z56iuCsbOeMRozhwEjvFjIXRT/IvgGwDrhdrcyfQ+b7naH+IF6f4F0CXATbsidloMBC7y2Rz80Cg9ZenQl4RaKQ2cY2XTL46A8/AkdMPHK9MfGF0p1rytOdpCIRYif2qcWYmYOH7983J1Se1FUvUOh2nXow6Ge9bszN+Ks5d1YxTvzBsifFLbd0csRGw3yGzwPqKsRL7MZ2dU/XYVL4KFYp/bmKkuq8dofC1jRh9+bYnSnmRn4DN7l/4/k7P1ZC6MpL4BeMbgsLESF2AUKzWuwX2xDEN/OezbIR9JWcljZPv19K5OYXnrnrGbadPJ8knUGkrsKjgnzTMawledTxp5XdD1Dly9hVE5SLGyrZmdQIt0TYnpJcY09D+2LXWCjjJQnEnYaODzHXBqCu39cGNLwFzsE0KHBMw3NY8vgVwIpKjbbGdt6t4oCaciMCtzash+UECUjCp9K2kOxKImwErY+c72ZFuYtsR+s4TeEyjrDnz9siOWaeTOTSmU2RFBKavLZY1IvBoF0Zfgp2n+7X7/vR8GvIJVM8LkBxaDDm62rdAPwQrOZPzIs6RQ2MJKG23la7TcwMiFxsa8V+BGfBJw/SchXKcbeCUUx5pMqL+DITeuGBe/5+4l1KM6DTFZm5VvVHW32HMrfGsdUjUKdQ1O1Z0gidAxPZTaD4GU1CAfSLCMpCCg0g7i2u764hASIRfEDExkJRgKSXwSl/mVvI/58cvM148MyUAAAAASUVORK5CYII=",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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAAAXNSR0IArs4c6QAACFZJREFUeAHtnOt120YQhcWc/A87CFKBkQoEVyB2ILgCMRWIrkBMBYQqEF0B4QrEVECoAsMVKN+lsdBwsSRByrZAwnPOzc7OY3fmahekkCiDizOV5+fnIa1dghGIgCRZ//PiomAUSpCDT4PBoGDst0BaAh7AofJIwi0Q6f0Smo7BArxWvrDATRv2Bm2Cuh5Ds3fUOA7U+RXbHCwr2JCIiTAC74AvyvnAddZ4fgJpQ7AAvuQYREorITYCE1ACKzqFSatFTimIpkScnlNWlkyObpZcrZnZBSs9PSVu9tZKUz5xanq4N7FFAOuMQAmsxC1Sux9CRzPbFfr0e1fNmjGwBOoKR997n5+6Hg2kwEq2qwACRcIdWACdVpEg/QFcg62nFZ9P4GLXXp330dAKOFluK5iABCxc4I5RZN7uWMf/YaXbYjttp8mJR0IUKpiYGy+uzfSRoOApxD43C6xCe3beRgM6JU6CzzmcPsGKz8EYJBVGjBkogZUggQRENgg97TxZtkAKVsNWGqcEpx9TYEvsOlbHNwQi0UrwuUaAjZvbdTqvU/zUdNgoHp+IsCdzKVubxogbAyupn4dzZAN8f6fnFL4yxYeaswSUxEaHNET83KwffK7h17pORoes/6axruJqbJwo7HpeOZkcWiyJ/nMt9tcgxhI8+c0P6OKcohNbF7+sl3aOX2TaZufW30av3ud9MrEjozt16RTG4UmQZwqW+uTNNbXEXbziTYglJwrsY03xKZJX2A4C+n8B2zGmKJBkyb343QZUxz/0bsuGHas/VVejkV9dy2Kb30t4pzqJLY19ZHRrN+aD1dA6cXAVCkrBj5ap3ZzN9JC2Xy82/C6WmKFX2INs8jNee76xyzt0ZJ2NDwQ/H//E7JXVfoy5cfwwtd4QhU0Sb6Ol9VudOFu4l1ZP9VViTarNbaMrr17lmzLy8zBnJmZS+zGOgDb/kZLWG6KwkQrOqw2194bfxko3sVXKxqD82M9pOyd3YlYrQ3n4VyYmDcV02kbxarIwTUidg+jYwslNtYiRib8Wvtj4pR51wv1132RO8RFIXrs5a9wAK8vQmgRMTVAeiumFDRJ0ikTaClgpmTSuPrYhsB9s4w2icOonOfOCmPZG9ChoECeSsGeGBRE8rMlTErDMmtheqCLnhZCamTVx4sZKfeoGWCNiH0Ew2axzbqp+zZuD6bYv5wFunoiNyPkmBPhHclwluZBejnAwBI/ASrxBBp6V8dZHciOoZxP40FW1vIiitEGDrEaSRkDPDHBxDfzn/zRIA4ElcJIGg3pghIBrsAK+bL+NRNpnnhhPzp0retTz7BJcgRnwTxqm9aHayYX7tA2+sz93Enf0d49v7L32aoT/Vn1Mf2h4+mkQaX/BSQrKfRQMXADHNEGfgEvQF9Fb5yWYg7wNYZaYmjxrrIi0pnPSS0gSYb/kFwMnysDGteW6xvRxBTQOT7SnfWUXBAiSHDxxjQvGg2VNHqSJqAeQHLzCeSQsaWMO7g8h0pGntyrxefDw6i4yVvjYhkR9SU4JngEnn1FyNznTUTdNhyUCf4KQTCDwY8hR2yDvETjR0e2V0HgExqBwJJhxgS6iw2ICpSbhqH5Y6T8FPok6XDqlTcFhJWlG9MsCGXppkFlS0FegeQIx5sDJAqUZ1C/+1t3Cw8SRUo0Ln4bQB0ZBUA40nrMsae4zHwrltiYhbYzvzvj/JV62FyFo7rHcp+mMZqMXNjY1fP4VbsYSNAV9lptN2l5mkFIYYvTLxFrWX5LdhIAIfQSGznamY0JfMfjD6y/jWn7wbBfwIk5q0tDfE5f7cb2aQ0oK7Kli+jwJkYA9l7OSLBTTeRvF66vENbgDD+AWRMcWTq7WWwIrOpUbglNEO1nJ6V9b3fu3urIle99zHTQGhcoTHPpVMgK+6N/8/+Mb28xZVz3n4F0Vr7fK7yt9PVQxX4zt71rH2YUPjHldkKdQXwy+gF0iYo8SFk28hSN/Ifz26m78HUYj2E/+CfNdNdyxv06Ik3uUj+DJGRh1tRIzb61y0nKC7VqjQLJiarH/NXyKdQoi8BZSsKn2bwiExBgT43hfNSvTBP+S0V25FD0Hx8icpJsqMdqzQFyTRzElwemehLdyD83GT4Y4Z56iuCsbOeMRozhwEjvFjIXRT/IvgGwDrhdrcyfQ+b7naH+IF6f4F0CXATbsidloMBC7y2Rz80Cg9ZenQl4RaKQ2cY2XTL46A8/AkdMPHK9MfGF0p1rytOdpCIRYif2qcWYmYOH7983J1Se1FUvUOh2nXow6Ge9bszN+Ks5d1YxTvzBsifFLbd0csRGw3yGzwPqKsRL7MZ2dU/XYVL4KFYp/bmKkuq8dofC1jRh9+bYnSnmRn4DN7l/4/k7P1ZC6MpL4BeMbgsLESF2AUKzWuwX2xDEN/OezbIR9JWcljZPv19K5OYXnrnrGbadPJ8knUGkrsKjgnzTMawledTxp5XdD1Dly9hVE5SLGyrZmdQIt0TYnpJcY09D+2LXWCjjJQnEnYaODzHXBqCu39cGNLwFzsE0KHBMw3NY8vgVwIpKjbbGdt6t4oCaciMCtzash+UECUjCp9K2kOxKImwErY+c72ZFuYtsR+s4TeEyjrDnz9siOWaeTOTSmU2RFBKavLZY1IvBoF0Zfgp2n+7X7/vR8GvIJVM8LkBxaDDm62rdAPwQrOZPzIs6RQ2MJKG23la7TcwMiFxsa8V+BGfBJw/SchXKcbeCUUx5pMqL+DITeuGBe/5+4l1KM6DTFZm5VvVHW32HMrfGsdUjUKdQ1O1Z0gidAxPZTaD4GU1CAfSLCMpCCg0g7i2u764hASIRfEDExkJRgKSXwSl/mVvI/58cvM148MyUAAAAASUVORK5CYII=",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-8lMz3Ws0.js b/docs/javascript/assets/index-G5LSiLAw.js similarity index 97% rename from docs/javascript/assets/index-8lMz3Ws0.js rename to docs/javascript/assets/index-G5LSiLAw.js index 4bea15f16..bd21b3020 100644 --- a/docs/javascript/assets/index-8lMz3Ws0.js +++ b/docs/javascript/assets/index-G5LSiLAw.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-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-u8XGkMbJ.js b/docs/javascript/assets/index-GeUcs8Ez.js similarity index 99% rename from docs/javascript/assets/index-u8XGkMbJ.js rename to docs/javascript/assets/index-GeUcs8Ez.js index a146f0360..8ec4cb077 100644 --- a/docs/javascript/assets/index-u8XGkMbJ.js +++ b/docs/javascript/assets/index-GeUcs8Ez.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-P8BvRyf6.js b/docs/javascript/assets/index-GlkyCU53.js similarity index 88% rename from docs/javascript/assets/index-P8BvRyf6.js rename to docs/javascript/assets/index-GlkyCU53.js index a06dbbe94..dc09486a0 100644 --- a/docs/javascript/assets/index-P8BvRyf6.js +++ b/docs/javascript/assets/index-GlkyCU53.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-y6yRAl5G.js b/docs/javascript/assets/index-HNnmDB6r.js similarity index 96% rename from docs/javascript/assets/index-y6yRAl5G.js rename to docs/javascript/assets/index-HNnmDB6r.js index eb3500caf..693590a77 100644 --- a/docs/javascript/assets/index-y6yRAl5G.js +++ b/docs/javascript/assets/index-HNnmDB6r.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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()}); +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-KDi5DUWe.js b/docs/javascript/assets/index-HS9eZOPr.js similarity index 97% rename from docs/javascript/assets/index-KDi5DUWe.js rename to docs/javascript/assets/index-HS9eZOPr.js index 9efcd2050..40db11838 100644 --- a/docs/javascript/assets/index-KDi5DUWe.js +++ b/docs/javascript/assets/index-HS9eZOPr.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-XRcBGfmt.js b/docs/javascript/assets/index-HUIZ_ceh.js similarity index 93% rename from docs/javascript/assets/index-XRcBGfmt.js rename to docs/javascript/assets/index-HUIZ_ceh.js index 0f243082a..0af810dae 100644 --- a/docs/javascript/assets/index-XRcBGfmt.js +++ b/docs/javascript/assets/index-HUIZ_ceh.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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;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;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-FThoGnGp.js b/docs/javascript/assets/index-LZxYKq2I.js similarity index 78% rename from docs/javascript/assets/index-FThoGnGp.js rename to docs/javascript/assets/index-LZxYKq2I.js index ccd274d5c..374587667 100644 --- a/docs/javascript/assets/index-FThoGnGp.js +++ b/docs/javascript/assets/index-LZxYKq2I.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-xG1X7pwb.js b/docs/javascript/assets/index-Nj1QIRf3.js similarity index 95% rename from docs/javascript/assets/index-xG1X7pwb.js rename to docs/javascript/assets/index-Nj1QIRf3.js index e5f2832cc..215586b45 100644 --- a/docs/javascript/assets/index-xG1X7pwb.js +++ b/docs/javascript/assets/index-Nj1QIRf3.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-QFJ8UGfC.js b/docs/javascript/assets/index-OJL95ASA.js similarity index 90% rename from docs/javascript/assets/index-QFJ8UGfC.js rename to docs/javascript/assets/index-OJL95ASA.js index 7f5f3975b..727ebd172 100644 --- a/docs/javascript/assets/index-QFJ8UGfC.js +++ b/docs/javascript/assets/index-OJL95ASA.js @@ -1,4 +1,4 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-BodwWAv4.js b/docs/javascript/assets/index-OtncPlUX.js similarity index 99% rename from docs/javascript/assets/index-BodwWAv4.js rename to docs/javascript/assets/index-OtncPlUX.js index ae90f95a5..cb9da46e9 100644 --- a/docs/javascript/assets/index-BodwWAv4.js +++ b/docs/javascript/assets/index-OtncPlUX.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-K2sKm0-x.js b/docs/javascript/assets/index-PUqg02zR.js similarity index 96% rename from docs/javascript/assets/index-K2sKm0-x.js rename to docs/javascript/assets/index-PUqg02zR.js index c384d3362..d830b3528 100644 --- a/docs/javascript/assets/index-K2sKm0-x.js +++ b/docs/javascript/assets/index-PUqg02zR.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-ZVfE1jm5.js b/docs/javascript/assets/index-Q3uu2-9S.js similarity index 94% rename from docs/javascript/assets/index-ZVfE1jm5.js rename to docs/javascript/assets/index-Q3uu2-9S.js index f9ea2a83c..856b59b08 100644 --- a/docs/javascript/assets/index-ZVfE1jm5.js +++ b/docs/javascript/assets/index-Q3uu2-9S.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-GT4PhqzH.js b/docs/javascript/assets/index-R7GyS5Av.js similarity index 90% rename from docs/javascript/assets/index-GT4PhqzH.js rename to docs/javascript/assets/index-R7GyS5Av.js index 322d0cae3..f2703b9d2 100644 --- a/docs/javascript/assets/index-GT4PhqzH.js +++ b/docs/javascript/assets/index-R7GyS5Av.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-nXKfNcjm.js b/docs/javascript/assets/index-RT8H2WUC.js similarity index 97% rename from docs/javascript/assets/index-nXKfNcjm.js rename to docs/javascript/assets/index-RT8H2WUC.js index 227fc1af9..7c8d8861d 100644 --- a/docs/javascript/assets/index-nXKfNcjm.js +++ b/docs/javascript/assets/index-RT8H2WUC.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const l=document.getElementById("grid");class a{constructor(e,t=3){this.gridSize=t,this.root=e,this.grid=[],this.currentPlayer="X",this.winner=null,this.cellFilled=0,this.populateGrid(),this.addEventListeners()}populateGrid(){this.root.appendChild(this.createGrid());const e=this.root.children;for(let t=0;t{e.target.classList.contains("cell")&&this.winner===null&&this.play(e.target)})}play(e){var t,i;if(e.textContent===""){if(this.set(e.dataset.x,e.dataset.y,this.currentPlayer),this.cellFilled+=1,this.checkWinner()){this.winner=this.currentPlayer,(t=this.winnerCallback)==null||t.call(this,this.winner);return}else if(this.cellFilled===this.gridSize*this.gridSize){this.winner="Draw",(i=this.winnerCallback)==null||i.call(this,this.winner);return}this.changePlayer()}}changePlayer(){this.currentPlayer=this.currentPlayer==="X"?"O":"X"}set(e,t,i){this.grid[e][t].textContent=i}checkWinner(){return this.isRowHasWinner(0)||this.isRowHasWinner(1)||this.isRowHasWinner(2)||this.isColHasWinner(0)||this.isColHasWinner(1)||this.isColHasWinner(2)||this.checkDiagonal()||this.checkDiagonalReverse()}isRowHasWinner(e){const t=this.grid[e][0].textContent;return this.grid[e].every(i=>i.textContent===t)?t:!1}isColHasWinner(e){const t=this.grid[0][e].textContent;return this.grid.map(i=>i[e]).every(i=>i.textContent===t)?t:!1}checkDiagonal(){const e=this.grid[0][0].textContent;for(let t=0;t{e.forEach(t=>{t.textContent=""})}),this.currentPlayer="X",this.winner=null,this.cellFilled=0}}const s=new a(l);s.winnerCallback=r=>{switch(r){case"X":document.getElementById("winner").textContent="Player X won!";break;case"O":document.getElementById("winner").textContent="Player O won!";break;default:document.getElementById("winner").textContent="Draw!"}};document.getElementById("reset").addEventListener("click",()=>{s.reset(),document.getElementById("winner").textContent=""}); +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-v8rJnN3N.js b/docs/javascript/assets/index-SB4oRkpW.js similarity index 92% rename from docs/javascript/assets/index-v8rJnN3N.js rename to docs/javascript/assets/index-SB4oRkpW.js index 614a179af..1363828ba 100644 --- a/docs/javascript/assets/index-v8rJnN3N.js +++ b/docs/javascript/assets/index-SB4oRkpW.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-ocwfVGuB.js b/docs/javascript/assets/index-SXreE3v9.js similarity index 91% rename from docs/javascript/assets/index-ocwfVGuB.js rename to docs/javascript/assets/index-SXreE3v9.js index b88736cfb..cd72130ea 100644 --- a/docs/javascript/assets/index-ocwfVGuB.js +++ b/docs/javascript/assets/index-SXreE3v9.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-9V24lc7g.js b/docs/javascript/assets/index-WAaQGR5z.js similarity index 93% rename from docs/javascript/assets/index-9V24lc7g.js rename to docs/javascript/assets/index-WAaQGR5z.js index 88269f80a..b92b93aec 100644 --- a/docs/javascript/assets/index-9V24lc7g.js +++ b/docs/javascript/assets/index-WAaQGR5z.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-8iZLSMJw.js b/docs/javascript/assets/index-WDLdqaiY.js similarity index 93% rename from docs/javascript/assets/index-8iZLSMJw.js rename to docs/javascript/assets/index-WDLdqaiY.js index 2c1e2a0b1..8b0e64fbd 100644 --- a/docs/javascript/assets/index-8iZLSMJw.js +++ b/docs/javascript/assets/index-WDLdqaiY.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const i=8,n=document.querySelector(".board");function u(a,o,s=o){var r=document.createDocumentFragment();for(let d=0;d=0;e--,t++)c(n.querySelector(`[data-x='${e}'][data-y='${d-t}']`)),c(n.querySelector(`[data-x='${e}'][data-y='${d+t}']`));for(let e=s+1,t=1,d=r;e=0;e--,t++)c(n.querySelector(`[data-x='${e}'][data-y='${d-t}']`)),c(n.querySelector(`[data-x='${e}'][data-y='${d+t}']`));for(let e=s+1,t=1,d=r;e{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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-QVBcezTj.js b/docs/javascript/assets/index-X1Sm5Oph.js similarity index 96% rename from docs/javascript/assets/index-QVBcezTj.js rename to docs/javascript/assets/index-X1Sm5Oph.js index 7cbdd889c..72e6103a9 100644 --- a/docs/javascript/assets/index-QVBcezTj.js +++ b/docs/javascript/assets/index-X1Sm5Oph.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-Te4KKFAj.js b/docs/javascript/assets/index-YoQVrpos.js similarity index 92% rename from docs/javascript/assets/index-Te4KKFAj.js rename to docs/javascript/assets/index-YoQVrpos.js index e4ef9415b..f941f2ec1 100644 --- a/docs/javascript/assets/index-Te4KKFAj.js +++ b/docs/javascript/assets/index-YoQVrpos.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const n=document.getElementById("userInput"),p=document.getElementById("chipTemplate"),h=document.querySelector(".chips-display"),o=document.querySelector("form");class c{constructor(e=""){const s=p.content.cloneNode(!0);this.chip=s.querySelector(".chip"),this.chipName=this.chip.querySelector(".chip-name"),this.chip.querySelector(".remove").addEventListener("click",this.onRemove),h.appendChild(this.chip),this.setName(e)}setName(e){this.chipName.textContent=e,e===""?this.chip.style.display="none":this.chip.style.display="inherit"}finalizeName(){this.chip.classList.add("finalized")}onRemove(e){e.target.parentElement.remove()}}let i=new c;n.addEventListener("input",t=>{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-8GzAiBu6.js b/docs/javascript/assets/index-bGs9GFvp.js similarity index 94% rename from docs/javascript/assets/index-8GzAiBu6.js rename to docs/javascript/assets/index-bGs9GFvp.js index 634496874..e2d0d59e1 100644 --- a/docs/javascript/assets/index-8GzAiBu6.js +++ b/docs/javascript/assets/index-bGs9GFvp.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-4Pg4P4B8.js b/docs/javascript/assets/index-cMiDjPA3.js similarity index 99% rename from docs/javascript/assets/index-4Pg4P4B8.js rename to docs/javascript/assets/index-cMiDjPA3.js index 36239a4bc..b7cb482bc 100644 --- a/docs/javascript/assets/index-4Pg4P4B8.js +++ b/docs/javascript/assets/index-cMiDjPA3.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-XNH0ofyk.js b/docs/javascript/assets/index-e-WmNIZS.js similarity index 90% rename from docs/javascript/assets/index-XNH0ofyk.js rename to docs/javascript/assets/index-e-WmNIZS.js index fe48aa61f..9b4403898 100644 --- a/docs/javascript/assets/index-XNH0ofyk.js +++ b/docs/javascript/assets/index-e-WmNIZS.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-t9xnhpHF.js b/docs/javascript/assets/index-eh_Sqfzd.js similarity index 94% rename from docs/javascript/assets/index-t9xnhpHF.js rename to docs/javascript/assets/index-eh_Sqfzd.js index 89da34735..6b20542ed 100644 --- a/docs/javascript/assets/index-t9xnhpHF.js +++ b/docs/javascript/assets/index-eh_Sqfzd.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-gtjVBnGU.js b/docs/javascript/assets/index-eiT2cWEn.js similarity index 97% rename from docs/javascript/assets/index-gtjVBnGU.js rename to docs/javascript/assets/index-eiT2cWEn.js index 21d216676..15f29016a 100644 --- a/docs/javascript/assets/index-gtjVBnGU.js +++ b/docs/javascript/assets/index-eiT2cWEn.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const h=document.getElementById("pagination"),d=document.getElementById("pages"),g=document.getElementById("siblings"),c=document.getElementById("boundary");class r{constructor(t,n,s,e,o=1){this.paginatorElement=t,this.totalPages=n,this.activePage=o,this.siblingCount=s,this.boundary=e,this.addListener(),this.populate()}addListener(){this.paginatorElement.addEventListener("click",t=>{if(t.target.classList.contains("page-number")){this.activePage=+t.target.dataset.value,this.populate();return}if(t.target.classList.contains("page-decrement")){this.activePage=Math.max(1,this.activePage-1),this.populate();return}if(t.target.classList.contains("page-increment")){this.activePage=Math.min(this.totalPages,this.activePage+1),this.populate();return}})}populate(){this.paginatorElement.innerHTML="";const t=this.siblingCount*2+2+this.boundary;let n=!1;const s=document.createDocumentFragment();let e=document.createElement("button");e.classList.add("page-modifier"),e.classList.add("page-decrement"),e.textContent="<",this.activePage===1&&(e.disabled=!0),s.appendChild(e);for(let a=1;a<=this.totalPages;a++){const i=document.createElement("button");let l=a;if(!(a<=this.boundary||a>this.totalPages-this.boundary||this.activePage<=t-this.siblingCount&&a<=t||this.activePage>this.totalPages-t+this.siblingCount&&a>this.totalPages-t||a>=this.activePage-this.siblingCount&&a<=this.activePage+this.siblingCount)){if(n)continue;l="...",i.classList.add("dot"),i.classList.add(this.activePage>a?"dot-left":"dot-right"),i.dataset.value=this.activePage>a?Math.max(1,this.activePage-t):Math.min(this.totalPages,this.activePage+t)}i.textContent=l,typeof l=="number"&&(i.dataset.value=a,i.setAttribute("tabindex",0)),n=typeof l=="string",i.classList.add("page-number"),s.appendChild(i)}e=document.createElement("button"),e.classList.add("page-modifier"),e.classList.add("page-increment"),e.textContent=">",this.activePage===this.totalPages&&(e.disabled=!0),s.appendChild(e),this.paginatorElement.appendChild(s);const o=this.paginatorElement.querySelector(`[data-value='${this.activePage}']`);o.classList.add("active"),o.focus()}setTotalPages(t){this.totalPages=t,this.activePage=Math.min(this.activePage,this.totalPages),this.populate()}setBoundary(t){this.boundary=t,this.populate()}setSiblingCount(t){this.siblingCount=t,this.populate()}}const u=new r(h,+d.value,+g.value,+c.value);d.addEventListener("input",()=>{u.setTotalPages(+d.value)});g.addEventListener("input",()=>{u.setSiblingCount(+g.value)});c.addEventListener("input",()=>{u.setBoundary(+c.value)}); +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-5GcXwmhX.js b/docs/javascript/assets/index-ej-0QUOm.js similarity index 97% rename from docs/javascript/assets/index-5GcXwmhX.js rename to docs/javascript/assets/index-ej-0QUOm.js index 2bbfa80d6..0c7002753 100644 --- a/docs/javascript/assets/index-5GcXwmhX.js +++ b/docs/javascript/assets/index-ej-0QUOm.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-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-ueYQOu2N.js b/docs/javascript/assets/index-eoGrd13Y.js similarity index 96% rename from docs/javascript/assets/index-ueYQOu2N.js rename to docs/javascript/assets/index-eoGrd13Y.js index 216053dc8..c982a3a48 100644 --- a/docs/javascript/assets/index-ueYQOu2N.js +++ b/docs/javascript/assets/index-eoGrd13Y.js @@ -1 +1 @@ -var u=Object.defineProperty;var f=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var n=(a,e,t)=>(f(a,typeof e!="symbol"?e+"":e,t),t);import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-Sy_btog9.js b/docs/javascript/assets/index-gexYcv0Q.js similarity index 97% rename from docs/javascript/assets/index-Sy_btog9.js rename to docs/javascript/assets/index-gexYcv0Q.js index 1baff5ea8..6f5b33782 100644 --- a/docs/javascript/assets/index-Sy_btog9.js +++ b/docs/javascript/assets/index-gexYcv0Q.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-CxyE8ytb.js b/docs/javascript/assets/index-h6e8gALl.js similarity index 96% rename from docs/javascript/assets/index-CxyE8ytb.js rename to docs/javascript/assets/index-h6e8gALl.js index 91eedac2d..3f343683a 100644 --- a/docs/javascript/assets/index-CxyE8ytb.js +++ b/docs/javascript/assets/index-h6e8gALl.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-V9vWdMEX.js b/docs/javascript/assets/index-ine5PNZH.js similarity index 94% rename from docs/javascript/assets/index-V9vWdMEX.js rename to docs/javascript/assets/index-ine5PNZH.js index f4220793a..87e34224d 100644 --- a/docs/javascript/assets/index-V9vWdMEX.js +++ b/docs/javascript/assets/index-ine5PNZH.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const i=document.getElementById("horizontal-position"),m=document.getElementById("vertical-position"),p=document.getElementById("type"),l=document.getElementById("message"),d=document.getElementById("show-toast"),f=document.getElementById("duration"),y=document.querySelector(".tc-left-top"),E=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),v=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");l.addEventListener("input",B);d.addEventListener("click",h);function B(){d.disabled=l.value.length===0}function h(){const o=l.value,n=p.value,c=i.value,e=m.value,t=+f.value*1e3;S(o,n,t,c,e)}function S(o,n,c,e,t){e==="left"?t==="top"?y.prepend(s(o,n,c,e)):E.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):v.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",r);const a=t.querySelector(".toast");setTimeout(r,c);async function r(){a.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(u=>setTimeout(u,100)),a.remove()}return t} +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.js";const i=document.getElementById("horizontal-position"),m=document.getElementById("vertical-position"),p=document.getElementById("type"),l=document.getElementById("message"),d=document.getElementById("show-toast"),f=document.getElementById("duration"),y=document.querySelector(".tc-left-top"),E=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),v=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");l.addEventListener("input",B);d.addEventListener("click",h);function B(){d.disabled=l.value.length===0}function h(){const o=l.value,n=p.value,c=i.value,e=m.value,t=+f.value*1e3;S(o,n,t,c,e)}function S(o,n,c,e,t){e==="left"?t==="top"?y.prepend(s(o,n,c,e)):E.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):v.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",r);const a=t.querySelector(".toast");setTimeout(r,c);async function r(){a.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(u=>setTimeout(u,100)),a.remove()}return t} diff --git a/docs/javascript/assets/index-xBiD5rRq.js b/docs/javascript/assets/index-jQeoE3CB.js similarity index 94% rename from docs/javascript/assets/index-xBiD5rRq.js rename to docs/javascript/assets/index-jQeoE3CB.js index 90590b5e1..13b68f9e1 100644 --- a/docs/javascript/assets/index-xBiD5rRq.js +++ b/docs/javascript/assets/index-jQeoE3CB.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-ksW4Eghs.css b/docs/javascript/assets/index-ksW4Eghs.css new file mode 100644 index 000000000..d6e59d846 --- /dev/null +++ b/docs/javascript/assets/index-ksW4Eghs.css @@ -0,0 +1 @@ +.container{padding:0 20px}h1{margin-bottom:20px;color:#333}.grid-container{display:grid;grid-template-columns:repeat(3,100px);grid-gap:10px;justify-content:center;margin-bottom:40px}.grid-item{width:100px;height:100px;display:flex;align-items:center;justify-content:center;border:2px solid #ddd;border-radius:50%;font-size:24px;background-color:#f0f0f0;transition:background-color .3s ease,transform .2s ease}.grid-item:hover{background-color:#e0e0e0;transform:scale(1.1)}.button-container{display:flex;justify-content:center;gap:10px}#inputBox{padding:10px;font-size:16px;border:1px solid #ddd;border-radius:4px;width:80px}#colorButton{padding:10px 20px;font-size:16px;border:none;border-radius:4px;background-color:#007bff;color:#fff;transition:background-color .3s ease}#colorButton:hover{background-color:#0056b3}.active{background-color:green;color:#fff} diff --git a/docs/javascript/assets/index-ZRD5dZHk.js b/docs/javascript/assets/index-nv0z4lAo.js similarity index 99% rename from docs/javascript/assets/index-ZRD5dZHk.js rename to docs/javascript/assets/index-nv0z4lAo.js index adf72759f..fe1cc29fa 100644 --- a/docs/javascript/assets/index-ZRD5dZHk.js +++ b/docs/javascript/assets/index-nv0z4lAo.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX+/v79/f3///8AAAAHBwf39/fp6enw8PDh4eHg4ODk5ORXV1f6+vq9vb2mpqarq6uRkZHLy8uysrLW1taBgYFpaWlzc3OZmZm7u7vExMSJiYmdnZ1BQUFfX19QUFB5eXlGRkY7OzsrKytsbGw0NDQkJCQREREfHx8vLy8gICAWFhYYN8IfAAANl0lEQVR4nO1d2Zajug4FCZKQkUBC5nmo4f8/8Eo2mQ0Y+txlXIv91KeqOse7ZWuWynEaNGjQoEGDBg0aNGjQoEGDBg0aNGhQI0AK0+f4/4CZDXr73XDccv8iSYBgHk6W0WA8miLi4c9JElr7Xft2R2G8I5Kn+A9RBFjiAhw3BV/YxQYx/DNyBBhu++A+g77WnmFv+Tcogu+tHgK8gwQ4xOQvXFWAryV88EsFmfBVNX3CfwWsLmqCguMCe13LKYKPQSZDuqvtNUZ2ixHCSQ5Bfo4zvLgWU4Qx9j+1zCvHGBOLpQjrWa4I5U31ph1bKUIH/UKGLrh7HFtKEaJNMUHWqTMcWUkRoDfQYUhiHNgpRQjRKdAzd4ozHFhIEa5al1RS7KF9tp+s/UifYR+xZRtF0qQtbYYumc6DdQwX2S6piuIS25ZRBCw2909w4HtjF0PoYqcMQ5cijZlVFGH1W4ogUTyiVU44XDJC3zwhDi1iCP19VJKhC2u0KMyAqIytSBnGOLGI4RDLEhSejT3KBnrbCgwDpHjL9NE1AetdeYYuTDG0huEqrMKwa40QISivSgXFBDd9KyhCcB5XYthCzw73lKL2vERpDsWTJWafjEVpcygZ0ku0wuzDDH3NDMY7xS1GVjCcFOaCsxgOcG0Fw11Vhk4frQiFYVOVIV9TG/Ju5GFWZhha4ZwSw2q6VISJNkQYxDCuyrBrC8N5RYaOgxcbGHKQUI0h52ssaGGA7qVsfHj/cdLDNth80vm6ZZmU1wJSjuQtWPIQF+XSpcE2kI035NPubWC4xKTcNYUAkz5zhDk536bPXwyyaqjohcql2J/iiq4qjK3w27hcplkBvsOB2OP+mhhtUKYcP5XPtnF/zX70i3Z4pnRNy4f5DrS2iB63a9Ye4CPqV7mfxThI24hNMygEP6dy9bUbRzdE3A/btScJgNir5Lk50OZOacGx1iRZ61dKKfJVbZ2II26HrVqzJL/mu7L7Da0Jc8TvWVDfMQ2IEEtmvgWX2x/9UY85npNwsej268iTrX4Z/1vOZTzKAdzWHw+TC0psJ6PYrxlL9jC1S1DEJ9rjdvnydOUoUWew2q0lzc2kWyuS0ELNbAYdeoTnyL1f0g+a0B4Pky9mOR1160MSDvhb7IAThdYS1zHk/qikOZgwy+uyLveVyxAFURQdtD/f4j5WSE9NsxXt2CUIhOSNg32wVfbRWZesSGMmgRa/B8t4yfc1bNeAI1wzwyg6aDCjb/eifgl+t7/rByxKHBnnCG3M8E/BJ//zQroz//llQeifiD1D4xTJeVNoGy4xfo/aFendP8Tf16AGAHuFVQS3h2OVaSgJgLX53CPFwt574g3a12P/kx48eW26FCkONV4XBwrbXws1ZES+VARHs9E8bpW7uaytTTdQA1CYcHk6Nfc+tRWicvpBlPAM7aIMRzjh1LgQ2+Q9nx5p+w5eVQRT/diOyEDO9A2I43JGyDRFfoq3mIGuaM/Jm9kjkqG05ppCHKD5iRQKhr3UByfVsC46Ozly5LPsWpp3lT7deA6ZNZ7UNg6clW/wDRSW0LF3/fuQey7DNuf1zDJku+/hAURlKcdPfZEjXb5rFIwnp9Nule+3wor9JtMUQ6K4AnqEB10VAv5GRL2H5HTB/TiPI3xTCGOYIVtFjxTCukTVjUfa6S+54EC8wV47+1lCjEfTL5G055VOi+VKUhD8khJxfb8P8UVUprJ+MCFzZJihiIY9D0vNCpH4pniNwWeOMzxmJtFZ2RgPMoRV9MhUlGFISnXEjidR9KF7yBYjaTDj7mlq+EvX3Pimbvy+EOMQ9xmjxSTEOgy/cSBVoap4v6m+09pnlXtgZtwkOjLg1zYWD3C5lSfh+izGSUYxhLzdOlQdOZCqVHGbIx6jls9l/kjdbkWKbFcHhkmVyrArDB7DO0U+/VGZ2gLs1YFhWLpY80TRE/Z0mFE/h6QOzcXpg6pEkcwpfnUiliQeVQznX3VguKrM0IWWx1a9LVoZFGPipMZq0KTCjqb+DPsHRRT5uZHw/RTf/zbvfYtbWraR6IlCRwZgLEaF/06PvAaOW6hbblNTjEWZB+hj9gqGY7IjxhkmWLkBXJC45XqWio9xHDybZ7ivZvE/yChXUsDGeLsYa/wqjVKfgLNiAxXpIMO+KSvDf7qkT2R2UwXDjuHOVIAzVm9wf2d4UtmLq9mEFCf3Nar6egzXqj1p9H8wWYiioMCr2gb2yUWZk4SBySZ4HoD9j9SMcFJVIRSpWHOBPme9PXW2u8LFpXhR6TjAGo0NSpMl9NTZbqelsdXtnckEXdW/Czk7pspQFFR4+K2SFncbzMuWu+FHFT+JwTdDNp8foaeO7h3/F3FaTowUKKn75cgibg0x5DuasQdTlidK+eMk94xMAfz+GGFI7pSHXpZGEW0xpewIOfAZ2R56iCZUDV0q76Md4+VcnGca6utUyPTfKegw4dWQIfZQ4Uc+Hax95hY/3bJ2nPlpxNDE8j7S7Rmm8HEyjhy/NcvaYllmxrcmJhgKb6ZoL5boCufCiwZH+M6MUGBqhGFYKEJxuPZavMbiH2xll+jgaIThQS/uFSVfvBaaf/IesmIwx8GrAU0DGpc0PTtn0fAc5F9VklNWZYB0kIFSMNsKunw6DEmMc06GLnO7EuLsQRVSpQbCJ6FotNPA0OdZmd+czguxpEf9LbouJlYSC4aaMhSnDFjj9LIsB2ezstQWP2QTisYnhmWm2KQXh0tX7Vxv8ZwjQiMVNsiMfTM5umKsa6G4qsw+S5OSWTobyevDjhiWy7GlV3XbeecIwWfD8f17LTyY2bcs2vV11rO/HFdq1Wn80rXHvbde1goqur+mmjBF8JT/WxJUB5ZX9SxmSdMvjZlghkND99dYdY0smFfyJTIc6MrWve2oJVswQ1HpVo8ZkUK7OuYSbdzSpkpSFwCgs5NTeV/JbBj+ED8vy/LAxuTSc7JTdLIqk910P+dTfEJWKA0LCkyMERRz3eVs4gP0l51FIthdJgPupu4q2/zxy2gBmBSj51Wu/t5/KR2IwVtVppQCaMNtCvRKSrclvrKUA8UU3qu2aJOSXZqujfbfX1C5FUR3KiuVz0Zuk/m1RCJj+pQ/clzteYo3hopg2kx25p0hW/2nHCA5ILtu+dE8YviZZoOO+bkg8csg6Jo+EkhcD8btoPSo2kphV82knz4YwutDhFhO2IetcpNqs08Zkt9bg2aoNIZ6CvWBe9ywrCDJcft4hzA512KBNFzeYyjwZ6LRkIJd7RdJkdh7koZEaNpSSMAR351mXhRxkBy3cz1BKpqMibTxyTUBUi2fjhtxjJObIDsaggSONF9+ipt0zDfsMeCg7nwF8Iff8kWuCwfzRVbrtQ4Hp7psqoc1K1OVJ8OC3KWCTPKXY3CQ8qpqxKiYaW4S7Jmq4wIhSDdK97N8R05OrnT77sHTx9ZhCIEBSz5cZhs70eosby8yy6ETpVbveWpaLqMyzU2C81H5LUP8m623UpBJV8mR7L2I8sNn16g+G2s5qVgQI/KimlAKcqPY5gIuCoYPZcM93+a3RtwgO06KBkpYkHvBcb14M5HAE83iM8QCSbHEhb5Qo98WwZVSr7jpghdiyazFz0r+Om9HhvktYh7RB2z3nJpaRguxnsB84/MTuJ7vcVK+yLDLiXxhIsNB0CYr2e+KhNSCLX7UT+55KYp8a8UQvoQunGpUsgFGa3zDrsUpLeTk6S3/NqwVQdkGzRSzxiTfLms7Oj3xC32+r4hX4H8rNx4MdlPj2yI+IHow+aZqDXSLtVfjeRSNokEg1A53css1ylDHHXwM3sAqKOqtHXDd16UKvPe1BgmLXMDNalcaf+KporozlHMzz1a7FMMN7o0vTSoGxAdhNUhvlF2bRKp0bXx3ggZ4DYjwLiFYb5OorZ2LYh+mDoOixeDkqagojmQuSnclHT9DOxhKirhj1Sine0/vTqia4R6t2LnPgJNMEI93eCO5jItIiu6qeuTVisE9FZyYIgiSguNxlf8kxdRNjUKJfMi0DYX8zgvJXl56WCx+s4WgLHynRpFJzrc3kpOs2wpdkVM2fXJdcC8YE0r71zm6n32lHH/CQEESRIGuBitadCEyU0Kh3jISdFs3N0F+h/GbLwD9PQqhmz64NsCRSRc8PPY/UcA0u+tWTAbtRwGfW6Toy7/2EJSLTb30pj5yZwCi8cKTJH+S1SAOgvFol37NZEdJeXCboaR4jR4cnXsLTcry3kjD/12LMpo+ZDJCELk8d1qybl1Mft+TGJ5Xg31eJUGu9/ArlePhpfGZSbYXq910f7x8XTbL1TwYidWLpo9cGiDq+5LjNn7Pj75gULPMoTZY4eCNY14D+xHNbwyuBgi2vTvH8yDDMxW933XMPOngZuwkx9+hqxIkXNAij+0T7JHdOeLyswNFDPjZkL/IxD2+kBx7H1WZI9pnKt7Av0MgeRbkcwlRRIYWmoo3cPvo/kmQ27sgRVtpXcr1/waAKNnefDQK+kep783bXc1vSPpvQHT8xeRyd0uP02VIDhyPgv8Rho6T/lqHy/22yrK3RYGhFkDux/a8m+apQXvlfw3ulXrUSP+aBCXosnbDyWSyGfTdP0mQcQ8sTB+kQYMGDRo0aNCgQYMGDRo0aNCgQYMGOvgfWX2tFrstbVwAAAAASUVORK5CYII=",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8AAADw8PBhYWFHR0eJiYnKysrq6uo/Pz8bGxt4eHiAgIDMzMzt7e3o6Oj09PSlpaXV1dUoKCiwsLC+vr6Dg4M2Nja2trZZWVk5OTnc3NyWlpZra2uOjo4wMDBfX19QUFARERFxcXEjIyOfn58WFhZDQ0MmrS94AAAIiElEQVR4nO2da1/qMAzGmQjekIugIOBxKPr9P+IBj0fZ07RLt7RN+e15Cxv5s6VNekl7vU6dvDVeTO+2/X5/O5iPLlIbI67JfFVU9PA4TG2TpGbbgtLgKrVhQhpek3xH3d6nNk5AF69WvqNeUtvXWlMn30E369QmtlO/DvCgfWojW2jywAAsirfUdjbWFYvvoFVqSxuKDVgUZWpbG2nywSfM80W99ADMstd48QIsilFqg3219gQsitQW++rJm/Axtcl+mnsDFoX6OHy8eNk+f5n6sRrcUAhPm+H48MX14nFHfVzefjdOn2/T0SQ1Dmr88qfuEX3OTr5fG64Wl3NNkENGzzCFa+iUsaKtlqB89FxvLNEZ7BlXrcYJeFATd/5nBeS8qQdtogOhhhwzizl57R3n0uvEwwC8yGVrubq2dfpS0iEr1htaFLZWccS7nH4DoqjkWXhrvQEz8kk2CsAZojhqZr0Dq7EpzK4mklgNxVH2W4y5t1jEw/oV9/8vLh034d6jSND589Mjuxv2epxg4Uu7aGA/emcTDhx3+WTfJfo4x4BtmpPQY6gj8iCAdRztebXCftyH8Mm8/L8eosF9iewoLuffgfJ6f/oOcwmvp+TlP4ra8VOt/EPlNVr6Er5XgrMl8QPvQVAsejR//w6+MvkxnkVoNCREvBQzQDV/nchy/r/JHEJiuNRMkW0BfACZKRNJUbIJyXE28ymKGM+SEa9ZplZumIQl/aHR3sR7TY1JM0t6NGMSOi+ve1NCaIK/bM1u+ixC60gFuuJnK7M9ZCSu1nG/GYvQffmpWpntIRzQ7tu/umMQvto/xoHlWAuNcHDGEWy8MQgd6e0t/JI9l5YVNqWO390zCB0hNeagsRpT/Gcdw7YLBmHN5aeKleojocM7hgxCx5wThhbLxjb7KR3h+T/Dx/l8uZiFn8xIR/hffx4XQefe0hMe9RrwldVBWBS7YAPFWgiL4iPQc9RDeEi8gvijJsIwcY4uwhDTNsoIAyTG2gidMyONpI5Q/CnqI5QeD1dIKDy/qJHwozENJY2Esq2NSkLR9zQV4eXLcrQezu/oNSplQxpKaQg3vz8zfqMQBQfiUhC+ViPsNbEbR3BqKgGhOfsGOzaPkksz4hNSMxvmRLtctx+dEOeXf6+tSG77VGzCP/SH98ZDZFnPUWxCWyNprDsTa00jE9rXxSGhWC4cmdA+2oRLQsSSqMiE9k4Ap2odM5F+ikv4ZP8Yp9ufa01nKi6hY4YZ54jFVk3FJaQ7w3+C5ak3dZZzpYfwuiNsqI4QTOwIO0LH5R1hU3WEYGJH2BE6Lu8Im6ojBBM7wo7QcXlHyNLVeH1QZcHj+RDO9v2TgZDP2+W3LWdCuKC2GD5tjjUczoFwsiHw/ml7dQ6Edr6j9tkTjnZOQFO5EbJLJWRKeO9fhiwvQmO32LkRNgLMidC/FGBmhB4FR/Mk9Co4miWhX8HRDAndgcwZEDZsZRiErrKd1/WEroWjXoS20vDl22a6GRCryFiE4/106tryMZ9O947laHWX+xDiftR/2v7u0Z3Za+6kO8rBh5CqLV7CVkabp2ZBSD1Cc9PtmK6xngUhUQ2GXDdNemsOhEQ0Y1kYTpUfy4HQrJZqKwNgVP3IhNAIZ+wl0on0IwdCtNlVOcxsUTMgNJ6Lc3ut0SplQGgstnXe1nDFDAg9V6LiI8+AEN+7us3D0PRmQIilCmu3ZlT/kgwIYSFqfa3QqivmR8ioMllxxfwILTs4KjrtFTMgfOd+8URlVoTeLU2v4ooZEGJvwdpwOsuJECcEedvcNhkRYjBd8u5f5kNojGHwDrWZ5EN4gYTMze2zbAjNkTbm5vZNNoRG5WNu8ewyF0LzKA3mezrJhbC3MxCZJQpnuRASw9nM2n37TAiJQUKuK64SEsLorXP/IXHoD/e8hYSE0Ae4H4pJyHXFYbpD78Bg9y5Z6jw/DWeCuYS+VVNUgZjG56TCKYXTLa4J8R49I6H8iFcsQVR3SBtvDlGT0LNqraVWJap2RY+y298ijniJfLqLn3C+tn70hVr2pdkV0VbGJXm5Ip52w6rAgyM2ql0Rnwfv5GtiiXDUM3p8hOkCr6hwTq6IC7WYL1tGroirRbnXZeOKzavTEK6oslfEmK0mKj2RWSVMpyviIiCPgnSZuCKWh/SpZZZHgIoHXnldnEOAig2No2IWoRx6RVy27VncMwNXxOTQ91hk/a6IFnqfU6q+V8RxJe8z2NW7IhrnfwflrojJYZOaiboD1GbJIUi1K+I0RKMTZ1QHqA2TQ5BmV9yBXQ1vo7dXxPfLdUS9U2pd0TiRremN1PaKLZJDkFZXxGNmW5z9oNQVcQVQm3vpzBXBolZjuipdETdEtDNIoytictiyGrtCV2ydHIKIXjHxFD/OHLZd8KIvQAVj2k8eaXNFieQQpMwV8R+vW4TBka5eUSQ5BOnqFWWSQ5AqV0RDZO6qaNgG2/ZS6L56pvjFkkMQ5YriJ4CyhMmhmLeocUXB5BCkxRWb7LVjSsewDc4cSsbIOgJUTA5FGwMVriicHII0BKjSySFIQYCKrYHwAfLpA1RsaMTDjuSuiG7oOtSrmVK7Ig6V+i5RYIjoFcXqvdfLKDUj3NAcRbli47kfX5nVD4Ubmi9Rrngd4odM4QiN7FnOv6IC1NqqNhIyN7sK9/c/IitGr2QPqTd1T/2zgd4dKkA9vqqbUbCtelcL8jRuwbOqq6JrZSZQuPfGv3R7EIkdrkqICFATyHs1m4ea1sYWVaCG9FtEyx1bZVDAXm+ZGjD8YCa1OzqmImwiT/sUQwcYX0rpi1EADwk3UYE4ip7jVXJI44z8TU4CmuAge3h9BMh6nVq/xgWUmNT21dhek15aD2HjGIdGA7piuyzewGeHmrwuZvOXt20/iLa3m/koXSWcTin0F1lkduF9plcBAAAAAElFTkSuQmCC",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX+/v79/f3///8AAAAHBwf39/fp6enw8PDh4eHg4ODk5ORXV1f6+vq9vb2mpqarq6uRkZHLy8uysrLW1taBgYFpaWlzc3OZmZm7u7vExMSJiYmdnZ1BQUFfX19QUFB5eXlGRkY7OzsrKytsbGw0NDQkJCQREREfHx8vLy8gICAWFhYYN8IfAAANl0lEQVR4nO1d2Zajug4FCZKQkUBC5nmo4f8/8Eo2mQ0Y+txlXIv91KeqOse7ZWuWynEaNGjQoEGDBg0aNGjQoEGDBg0aNGhQI0AK0+f4/4CZDXr73XDccv8iSYBgHk6W0WA8miLi4c9JElr7Xft2R2G8I5Kn+A9RBFjiAhw3BV/YxQYx/DNyBBhu++A+g77WnmFv+Tcogu+tHgK8gwQ4xOQvXFWAryV88EsFmfBVNX3CfwWsLmqCguMCe13LKYKPQSZDuqvtNUZ2ixHCSQ5Bfo4zvLgWU4Qx9j+1zCvHGBOLpQjrWa4I5U31ph1bKUIH/UKGLrh7HFtKEaJNMUHWqTMcWUkRoDfQYUhiHNgpRQjRKdAzd4ozHFhIEa5al1RS7KF9tp+s/UifYR+xZRtF0qQtbYYumc6DdQwX2S6piuIS25ZRBCw2909w4HtjF0PoYqcMQ5cijZlVFGH1W4ogUTyiVU44XDJC3zwhDi1iCP19VJKhC2u0KMyAqIytSBnGOLGI4RDLEhSejT3KBnrbCgwDpHjL9NE1AetdeYYuTDG0huEqrMKwa40QISivSgXFBDd9KyhCcB5XYthCzw73lKL2vERpDsWTJWafjEVpcygZ0ku0wuzDDH3NDMY7xS1GVjCcFOaCsxgOcG0Fw11Vhk4frQiFYVOVIV9TG/Ju5GFWZhha4ZwSw2q6VISJNkQYxDCuyrBrC8N5RYaOgxcbGHKQUI0h52ssaGGA7qVsfHj/cdLDNth80vm6ZZmU1wJSjuQtWPIQF+XSpcE2kI035NPubWC4xKTcNYUAkz5zhDk536bPXwyyaqjohcql2J/iiq4qjK3w27hcplkBvsOB2OP+mhhtUKYcP5XPtnF/zX70i3Z4pnRNy4f5DrS2iB63a9Ye4CPqV7mfxThI24hNMygEP6dy9bUbRzdE3A/btScJgNir5Lk50OZOacGx1iRZ61dKKfJVbZ2II26HrVqzJL/mu7L7Da0Jc8TvWVDfMQ2IEEtmvgWX2x/9UY85npNwsej268iTrX4Z/1vOZTzKAdzWHw+TC0psJ6PYrxlL9jC1S1DEJ9rjdvnydOUoUWew2q0lzc2kWyuS0ELNbAYdeoTnyL1f0g+a0B4Pky9mOR1160MSDvhb7IAThdYS1zHk/qikOZgwy+uyLveVyxAFURQdtD/f4j5WSE9NsxXt2CUIhOSNg32wVfbRWZesSGMmgRa/B8t4yfc1bNeAI1wzwyg6aDCjb/eifgl+t7/rByxKHBnnCG3M8E/BJ//zQroz//llQeifiD1D4xTJeVNoGy4xfo/aFendP8Tf16AGAHuFVQS3h2OVaSgJgLX53CPFwt574g3a12P/kx48eW26FCkONV4XBwrbXws1ZES+VARHs9E8bpW7uaytTTdQA1CYcHk6Nfc+tRWicvpBlPAM7aIMRzjh1LgQ2+Q9nx5p+w5eVQRT/diOyEDO9A2I43JGyDRFfoq3mIGuaM/Jm9kjkqG05ppCHKD5iRQKhr3UByfVsC46Ozly5LPsWpp3lT7deA6ZNZ7UNg6clW/wDRSW0LF3/fuQey7DNuf1zDJku+/hAURlKcdPfZEjXb5rFIwnp9Nule+3wor9JtMUQ6K4AnqEB10VAv5GRL2H5HTB/TiPI3xTCGOYIVtFjxTCukTVjUfa6S+54EC8wV47+1lCjEfTL5G055VOi+VKUhD8khJxfb8P8UVUprJ+MCFzZJihiIY9D0vNCpH4pniNwWeOMzxmJtFZ2RgPMoRV9MhUlGFISnXEjidR9KF7yBYjaTDj7mlq+EvX3Pimbvy+EOMQ9xmjxSTEOgy/cSBVoap4v6m+09pnlXtgZtwkOjLg1zYWD3C5lSfh+izGSUYxhLzdOlQdOZCqVHGbIx6jls9l/kjdbkWKbFcHhkmVyrArDB7DO0U+/VGZ2gLs1YFhWLpY80TRE/Z0mFE/h6QOzcXpg6pEkcwpfnUiliQeVQznX3VguKrM0IWWx1a9LVoZFGPipMZq0KTCjqb+DPsHRRT5uZHw/RTf/zbvfYtbWraR6IlCRwZgLEaF/06PvAaOW6hbblNTjEWZB+hj9gqGY7IjxhkmWLkBXJC45XqWio9xHDybZ7ivZvE/yChXUsDGeLsYa/wqjVKfgLNiAxXpIMO+KSvDf7qkT2R2UwXDjuHOVIAzVm9wf2d4UtmLq9mEFCf3Nar6egzXqj1p9H8wWYiioMCr2gb2yUWZk4SBySZ4HoD9j9SMcFJVIRSpWHOBPme9PXW2u8LFpXhR6TjAGo0NSpMl9NTZbqelsdXtnckEXdW/Czk7pspQFFR4+K2SFncbzMuWu+FHFT+JwTdDNp8foaeO7h3/F3FaTowUKKn75cgibg0x5DuasQdTlidK+eMk94xMAfz+GGFI7pSHXpZGEW0xpewIOfAZ2R56iCZUDV0q76Md4+VcnGca6utUyPTfKegw4dWQIfZQ4Uc+Hax95hY/3bJ2nPlpxNDE8j7S7Rmm8HEyjhy/NcvaYllmxrcmJhgKb6ZoL5boCufCiwZH+M6MUGBqhGFYKEJxuPZavMbiH2xll+jgaIThQS/uFSVfvBaaf/IesmIwx8GrAU0DGpc0PTtn0fAc5F9VklNWZYB0kIFSMNsKunw6DEmMc06GLnO7EuLsQRVSpQbCJ6FotNPA0OdZmd+czguxpEf9LbouJlYSC4aaMhSnDFjj9LIsB2ezstQWP2QTisYnhmWm2KQXh0tX7Vxv8ZwjQiMVNsiMfTM5umKsa6G4qsw+S5OSWTobyevDjhiWy7GlV3XbeecIwWfD8f17LTyY2bcs2vV11rO/HFdq1Wn80rXHvbde1goqur+mmjBF8JT/WxJUB5ZX9SxmSdMvjZlghkND99dYdY0smFfyJTIc6MrWve2oJVswQ1HpVo8ZkUK7OuYSbdzSpkpSFwCgs5NTeV/JbBj+ED8vy/LAxuTSc7JTdLIqk910P+dTfEJWKA0LCkyMERRz3eVs4gP0l51FIthdJgPupu4q2/zxy2gBmBSj51Wu/t5/KR2IwVtVppQCaMNtCvRKSrclvrKUA8UU3qu2aJOSXZqujfbfX1C5FUR3KiuVz0Zuk/m1RCJj+pQ/clzteYo3hopg2kx25p0hW/2nHCA5ILtu+dE8YviZZoOO+bkg8csg6Jo+EkhcD8btoPSo2kphV82knz4YwutDhFhO2IetcpNqs08Zkt9bg2aoNIZ6CvWBe9ywrCDJcft4hzA512KBNFzeYyjwZ6LRkIJd7RdJkdh7koZEaNpSSMAR351mXhRxkBy3cz1BKpqMibTxyTUBUi2fjhtxjJObIDsaggSONF9+ipt0zDfsMeCg7nwF8Iff8kWuCwfzRVbrtQ4Hp7psqoc1K1OVJ8OC3KWCTPKXY3CQ8qpqxKiYaW4S7Jmq4wIhSDdK97N8R05OrnT77sHTx9ZhCIEBSz5cZhs70eosby8yy6ETpVbveWpaLqMyzU2C81H5LUP8m623UpBJV8mR7L2I8sNn16g+G2s5qVgQI/KimlAKcqPY5gIuCoYPZcM93+a3RtwgO06KBkpYkHvBcb14M5HAE83iM8QCSbHEhb5Qo98WwZVSr7jpghdiyazFz0r+Om9HhvktYh7RB2z3nJpaRguxnsB84/MTuJ7vcVK+yLDLiXxhIsNB0CYr2e+KhNSCLX7UT+55KYp8a8UQvoQunGpUsgFGa3zDrsUpLeTk6S3/NqwVQdkGzRSzxiTfLms7Oj3xC32+r4hX4H8rNx4MdlPj2yI+IHow+aZqDXSLtVfjeRSNokEg1A53css1ylDHHXwM3sAqKOqtHXDd16UKvPe1BgmLXMDNalcaf+KporozlHMzz1a7FMMN7o0vTSoGxAdhNUhvlF2bRKp0bXx3ggZ4DYjwLiFYb5OorZ2LYh+mDoOixeDkqagojmQuSnclHT9DOxhKirhj1Sine0/vTqia4R6t2LnPgJNMEI93eCO5jItIiu6qeuTVisE9FZyYIgiSguNxlf8kxdRNjUKJfMi0DYX8zgvJXl56WCx+s4WgLHynRpFJzrc3kpOs2wpdkVM2fXJdcC8YE0r71zm6n32lHH/CQEESRIGuBitadCEyU0Kh3jISdFs3N0F+h/GbLwD9PQqhmz64NsCRSRc8PPY/UcA0u+tWTAbtRwGfW6Toy7/2EJSLTb30pj5yZwCi8cKTJH+S1SAOgvFol37NZEdJeXCboaR4jR4cnXsLTcry3kjD/12LMpo+ZDJCELk8d1qybl1Mft+TGJ5Xg31eJUGu9/ArlePhpfGZSbYXq910f7x8XTbL1TwYidWLpo9cGiDq+5LjNn7Pj75gULPMoTZY4eCNY14D+xHNbwyuBgi2vTvH8yDDMxW933XMPOngZuwkx9+hqxIkXNAij+0T7JHdOeLyswNFDPjZkL/IxD2+kBx7H1WZI9pnKt7Av0MgeRbkcwlRRIYWmoo3cPvo/kmQ27sgRVtpXcr1/waAKNnefDQK+kep783bXc1vSPpvQHT8xeRyd0uP02VIDhyPgv8Rho6T/lqHy/22yrK3RYGhFkDux/a8m+apQXvlfw3ulXrUSP+aBCXosnbDyWSyGfTdP0mQcQ8sTB+kQYMGDRo0aNCgQYMGDRo0aNCgQYMGOvgfWX2tFrstbVwAAAAASUVORK5CYII=",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8AAADw8PBhYWFHR0eJiYnKysrq6uo/Pz8bGxt4eHiAgIDMzMzt7e3o6Oj09PSlpaXV1dUoKCiwsLC+vr6Dg4M2Nja2trZZWVk5OTnc3NyWlpZra2uOjo4wMDBfX19QUFARERFxcXEjIyOfn58WFhZDQ0MmrS94AAAIiElEQVR4nO2da1/qMAzGmQjekIugIOBxKPr9P+IBj0fZ07RLt7RN+e15Cxv5s6VNekl7vU6dvDVeTO+2/X5/O5iPLlIbI67JfFVU9PA4TG2TpGbbgtLgKrVhQhpek3xH3d6nNk5AF69WvqNeUtvXWlMn30E369QmtlO/DvCgfWojW2jywAAsirfUdjbWFYvvoFVqSxuKDVgUZWpbG2nywSfM80W99ADMstd48QIsilFqg3219gQsitQW++rJm/Axtcl+mnsDFoX6OHy8eNk+f5n6sRrcUAhPm+H48MX14nFHfVzefjdOn2/T0SQ1Dmr88qfuEX3OTr5fG64Wl3NNkENGzzCFa+iUsaKtlqB89FxvLNEZ7BlXrcYJeFATd/5nBeS8qQdtogOhhhwzizl57R3n0uvEwwC8yGVrubq2dfpS0iEr1htaFLZWccS7nH4DoqjkWXhrvQEz8kk2CsAZojhqZr0Dq7EpzK4mklgNxVH2W4y5t1jEw/oV9/8vLh034d6jSND589Mjuxv2epxg4Uu7aGA/emcTDhx3+WTfJfo4x4BtmpPQY6gj8iCAdRztebXCftyH8Mm8/L8eosF9iewoLuffgfJ6f/oOcwmvp+TlP4ra8VOt/EPlNVr6Er5XgrMl8QPvQVAsejR//w6+MvkxnkVoNCREvBQzQDV/nchy/r/JHEJiuNRMkW0BfACZKRNJUbIJyXE28ymKGM+SEa9ZplZumIQl/aHR3sR7TY1JM0t6NGMSOi+ve1NCaIK/bM1u+ixC60gFuuJnK7M9ZCSu1nG/GYvQffmpWpntIRzQ7tu/umMQvto/xoHlWAuNcHDGEWy8MQgd6e0t/JI9l5YVNqWO390zCB0hNeagsRpT/Gcdw7YLBmHN5aeKleojocM7hgxCx5wThhbLxjb7KR3h+T/Dx/l8uZiFn8xIR/hffx4XQefe0hMe9RrwldVBWBS7YAPFWgiL4iPQc9RDeEi8gvijJsIwcY4uwhDTNsoIAyTG2gidMyONpI5Q/CnqI5QeD1dIKDy/qJHwozENJY2Esq2NSkLR9zQV4eXLcrQezu/oNSplQxpKaQg3vz8zfqMQBQfiUhC+ViPsNbEbR3BqKgGhOfsGOzaPkksz4hNSMxvmRLtctx+dEOeXf6+tSG77VGzCP/SH98ZDZFnPUWxCWyNprDsTa00jE9rXxSGhWC4cmdA+2oRLQsSSqMiE9k4Ap2odM5F+ikv4ZP8Yp9ufa01nKi6hY4YZ54jFVk3FJaQ7w3+C5ak3dZZzpYfwuiNsqI4QTOwIO0LH5R1hU3WEYGJH2BE6Lu8Im6ojBBM7wo7QcXlHyNLVeH1QZcHj+RDO9v2TgZDP2+W3LWdCuKC2GD5tjjUczoFwsiHw/ml7dQ6Edr6j9tkTjnZOQFO5EbJLJWRKeO9fhiwvQmO32LkRNgLMidC/FGBmhB4FR/Mk9Co4miWhX8HRDAndgcwZEDZsZRiErrKd1/WEroWjXoS20vDl22a6GRCryFiE4/106tryMZ9O947laHWX+xDiftR/2v7u0Z3Za+6kO8rBh5CqLV7CVkabp2ZBSD1Cc9PtmK6xngUhUQ2GXDdNemsOhEQ0Y1kYTpUfy4HQrJZqKwNgVP3IhNAIZ+wl0on0IwdCtNlVOcxsUTMgNJ6Lc3ut0SplQGgstnXe1nDFDAg9V6LiI8+AEN+7us3D0PRmQIilCmu3ZlT/kgwIYSFqfa3QqivmR8ioMllxxfwILTs4KjrtFTMgfOd+8URlVoTeLU2v4ooZEGJvwdpwOsuJECcEedvcNhkRYjBd8u5f5kNojGHwDrWZ5EN4gYTMze2zbAjNkTbm5vZNNoRG5WNu8ewyF0LzKA3mezrJhbC3MxCZJQpnuRASw9nM2n37TAiJQUKuK64SEsLorXP/IXHoD/e8hYSE0Ae4H4pJyHXFYbpD78Bg9y5Z6jw/DWeCuYS+VVNUgZjG56TCKYXTLa4J8R49I6H8iFcsQVR3SBtvDlGT0LNqraVWJap2RY+y298ijniJfLqLn3C+tn70hVr2pdkV0VbGJXm5Ip52w6rAgyM2ql0Rnwfv5GtiiXDUM3p8hOkCr6hwTq6IC7WYL1tGroirRbnXZeOKzavTEK6oslfEmK0mKj2RWSVMpyviIiCPgnSZuCKWh/SpZZZHgIoHXnldnEOAig2No2IWoRx6RVy27VncMwNXxOTQ91hk/a6IFnqfU6q+V8RxJe8z2NW7IhrnfwflrojJYZOaiboD1GbJIUi1K+I0RKMTZ1QHqA2TQ5BmV9yBXQ1vo7dXxPfLdUS9U2pd0TiRremN1PaKLZJDkFZXxGNmW5z9oNQVcQVQm3vpzBXBolZjuipdETdEtDNIoytictiyGrtCV2ydHIKIXjHxFD/OHLZd8KIvQAVj2k8eaXNFieQQpMwV8R+vW4TBka5eUSQ5BOnqFWWSQ5AqV0RDZO6qaNgG2/ZS6L56pvjFkkMQ5YriJ4CyhMmhmLeocUXB5BCkxRWb7LVjSsewDc4cSsbIOgJUTA5FGwMVriicHII0BKjSySFIQYCKrYHwAfLpA1RsaMTDjuSuiG7oOtSrmVK7Ig6V+i5RYIjoFcXqvdfLKDUj3NAcRbli47kfX5nVD4Ubmi9Rrngd4odM4QiN7FnOv6IC1NqqNhIyN7sK9/c/IitGr2QPqTd1T/2zgd4dKkA9vqqbUbCtelcL8jRuwbOqq6JrZSZQuPfGv3R7EIkdrkqICFATyHs1m4ea1sYWVaCG9FtEyx1bZVDAXm+ZGjD8YCa1OzqmImwiT/sUQwcYX0rpi1EADwk3UYE4ip7jVXJI44z8TU4CmuAge3h9BMh6nVq/xgWUmNT21dhek15aD2HjGIdGA7piuyzewGeHmrwuZvOXt20/iLa3m/koXSWcTin0F1lkduF9plcBAAAAAElFTkSuQmCC",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); diff --git a/docs/javascript/assets/index-erZY-JQT.js b/docs/javascript/assets/index-pzQakkMv.js similarity index 97% rename from docs/javascript/assets/index-erZY-JQT.js rename to docs/javascript/assets/index-pzQakkMv.js index e08dc6d6d..680d687aa 100644 --- a/docs/javascript/assets/index-erZY-JQT.js +++ b/docs/javascript/assets/index-pzQakkMv.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-Gh02YUkM.js b/docs/javascript/assets/index-qyHIJS0l.js similarity index 97% rename from docs/javascript/assets/index-Gh02YUkM.js rename to docs/javascript/assets/index-qyHIJS0l.js index a1c57fd77..66902ac65 100644 --- a/docs/javascript/assets/index-Gh02YUkM.js +++ b/docs/javascript/assets/index-qyHIJS0l.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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{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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-tYYAQTw4.js b/docs/javascript/assets/index-vzvYczLQ.js similarity index 95% rename from docs/javascript/assets/index-tYYAQTw4.js rename to docs/javascript/assets/index-vzvYczLQ.js index b639b5dec..eeaa17376 100644 --- a/docs/javascript/assets/index-tYYAQTw4.js +++ b/docs/javascript/assets/index-vzvYczLQ.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-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-SWTaeVKX.js b/docs/javascript/assets/index-wvYkCdkE.js similarity index 96% rename from docs/javascript/assets/index-SWTaeVKX.js rename to docs/javascript/assets/index-wvYkCdkE.js index f3600a743..ee9c46f32 100644 --- a/docs/javascript/assets/index-SWTaeVKX.js +++ b/docs/javascript/assets/index-wvYkCdkE.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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-hsNQrzvU.js b/docs/javascript/assets/index-xnaS2aq5.js similarity index 99% rename from docs/javascript/assets/index-hsNQrzvU.js rename to docs/javascript/assets/index-xnaS2aq5.js index c21ac4d8a..b30623127 100644 --- a/docs/javascript/assets/index-hsNQrzvU.js +++ b/docs/javascript/assets/index-xnaS2aq5.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.js";const Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExODA4MzlBRDEwQjBCQTIwMyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozRTY3MDlDNzM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozRTY3MDlDNjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDE4MDExNzQwNzIwNjgxMTgwODM5QUQxMEIwQkEyMDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDE4MDExNzQwNzIwNjgxMTgwODM5QUQxMEIwQkEyMDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5WvsN4AAAGK0lEQVR42uzdTW4TWRSGYWxVzCTM2AUzNoHEJthYGLAJJDbBjF2wgkSikAeRbqxy7Piv6tzveWbdTQe3u897z62kk9U4ju+ATGtvAQgAIACAAAARhu/vP1zy43miCNe3ulgADDuUM14qCoOhh+6isLp0AAw+1IvBwRCsDT9EXRXeFADDDx1HYDD4kHsl8HUAEGzt9Ifc68Da8ENuBNaGH3Ij4BkAeAbg9IfELcAGADYAIDUA1n8IvQbYAMAVABAAQAAAAQAEABAAQAAAAQAEAKhs8BYQfQJu7k7+e/89PgkAVB/6UwZ5+zHaj1M1BgJA5OCfO7Dt39/GoFoIBACDf6bnj1kxBAKAwb9SCCpEwGcB6Hr4t0N460FsQyAAMOPwz2XqWiAAEDD8bQSWvg0IAIb/RtuAAEDY8E+9RgGAsOFf6lVAAOhChU+5LTECAkAXp79QCQBOf+ESAJz+giUARAx/5f8ldwkBEwCs/sGvXQAgeAsQAAjeAgQAp2bye+ktwOmZGzQBgOCQCQC4AgACAO7LAgDuzQIACAC4BggAWP8FABAAQAAAAQBOG0D/OzDUG5xLmvPBpgBgYFwBgMQtRgAwQMHbjABgcILjJQAYpOCICQAGKDhaAoAtIDheAkAXW0CVCPjx4BB6FVjijzMTAFwFQodfAHAVCB5+AUAEgodfABCB4OEXALqPwFwhqDD8AkDXEZhjG2ijU+GzE4P/VOg9BLcYyjYylb5CUQCIvBJcakirDr4AIAQTf+2tQ1918AWA+BBM3dtP/RgCAJ0EIYnPAkAwAQABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABgeXxHoEBff/2Y/PM/v3zz5oRZPWzuR29D3rB//PzpxR///f1HFASAHgd/d9iP1UZBCASAkMEXAgHA4AuBAFBp+K81+PtCIAICQOenvm1AAHDq2wY65QuBDP9Znl/Dvk83IgB0OvwiIADMOHBeEwIQePp7jQiA1X+xW4AICACha7argABgrbYFCACpJ6stQABwktoCBIDUE9UWIAA4QW0BAkDqSWoLEABAAAABAASAw3p6eOZBoABwgh4eonkQKACAAAACAAgAh+37cV3+GRCAzvX0XXZ9x2ABAAQAEABAADis8kM0DwAFgDP08PDMA0ABIPAkdfoLAOEnqNNfAAg8UZ3+AkD4Ser0FwACT1anvwBwxRN1yQP2/Nqc/gJA6Fpt+AWAwDXb6i8AhF4FrP4CQGgEDH9tq4fN/ehtqKn9bru3/uabbXwMvwCwgBDcKgJOfQEgcBtw6gsAgSEw+AJAYAgMvgDQUQhau1HY9xkFgy8AhETBsAsAEMQXAoEAAAIACAAgAIAAAAIACAAgAIAAAAIACAAgAIAAAAIALNbQfeE2d5N//t/jk3/7CEDisG9/3dSvFQUEoPjQHzPEU79mNwpigAAUGfxLDGv7MdoYCAEC0PHgvxYDIaB364rDvx3GWwxk+/vse74AAnDj4b+1qY0ABCBg+G0DCED48O/bBkAAgoZfBBCA8OHfjQAIQNjwT71WEICw4XcVQADC12tXAQTAOm0LQABST1RXAQQg/AR1FUAADBEIQPQb6hqAAGQOjQ0GATA8IACAAHgOAAKQw1UGAXBaggA4NUEAAAEABAAQgBcvwoNAyAyAB4DgCgAIQAdvqOsMApDNtQYBcHKCACSdmCKGAFj/vQkIgBMUBCDm5BQvBCB8kKz/CEDgADn9EYDQgar0w0xh8QGo+GO2DD8CEBgBqz8CEHqqWv0RgNBT1vAjAKFXAcOPAMwUgblDYPgRgJkiMOc20MbH8CMAQdtAO/iGn94M1V7wVASuMZhtYAw+AhAQgt2twuAjAIWvBYcGeOoaYegRgMIhaIf7mOcEBh4B6JDBhiOuvd4CEABAAAABAAQAEABAAAABAAQAEABAAICqAVh5GyDSygYArgBAcgBcAyBs/bcBgA3gZRGAjNN/agMQAQgZ/n1XABGAgOH3DADCDQdKMXqLoL+T/9gNwHUAOh3+Y68AIgAdDv9rVwBXAuh48N8agKkPLAZQcOjPCcCh31AUYKHDPvmBxtHMQipfBwACAAgAIABAhv8CDACG/7MLQcdi7wAAAABJRU5ErkJggg==",D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozRTY3MDlDMjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozRTY3MDlDMzM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjNFNjcwOUMwMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNFNjcwOUMxMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+WIg5TAAABRdJREFUeNrs3UFO20AYhuHastJNehNWnIgDIHEBllwAiWUqcSJW3MeIRSRjOY2TJrFnvufZtVJTk/Z/Z8aEpOn7/heQqfUUgAAAAgAIABCh+/v7zyUfzx1FuL7mYgEw7FCc/lJR6Aw9VBeF5tIBMPhQXgyOhqA1/BB1VDgpAIYfKo5AZ/Ah90jgdQAQrLX6Q+5xoDX8kBuB1vBDbgTcAwD3AKz+kLgLsAMAOwAgNQC2/xB6DLADAEcAQAAAAQAEABAAQAAAAQAEABAAoGSdp4Bkd08PZ//Zz9f34r/+ZrfZ+lkAoof+/vnx5Mf4eHmrIgYCQOTgnzP0c2JQWggEAIMfHAIBwOBfKQQlREAAqHr4bzn4JUZAADD8wUcCAcDwB+8GvBAIw39la7seAcDwL3iNAgBhw7+/trVFQACowpqHf80REACqWP2FSgCw+guXAGD1FywBIGL4S1z91xQwAcDWP/jaBQCCdwECAMG7AAHAqhlMALB6BgdNACA4ZAIAjgCAAIDzsgCAc7MAAAIA6zL+VB4EgBA1fB6fAAACAAgAIACQZ+kbmgKAwVnYkjc2BQAD4wgAJO5iBAADFLybEQAMTnC8BACDFBwxAcAABUdLALALCI6XAFDFLqCUCKztOgUAR4EbD/+arlcAcBQIHX4BwFEgePgFABEIHn4BQASCh/9bs9tse/9tqM3w7cOXeBfhEoZfAIgJwa0iMNx5lPDdCQHAbiBw8AUAIQgefAFACAZOCcL4BmPJP5koAAjCGZ83WMu7EgkABPM6ABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEAATAUwACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAIAAAAIACAAgAIAAAAIACAAgAIAAAAIACABQoK72L/Du6WHy9z9f3/3rE6/ZbbZ97cN+//z449cfL2+iADUEYDz042GfaxwFMUAAChn8c4d+TgyEAAEIGXwhQAAKGP5rD/6hEIgAAhA2/HYDCED48NsNUKvW8J9mfx2HvuUIAlDp8IsAAhA+/OMIgACEDf/UtYIAhA2/owACEL69dhRAAGyn7QIQgNQV1VEAAQhfQR0FEABDBAKQzDEAAQgdGjsYBMDwgAAAAuA+AAhADkcZBMBqCQJg1QQBAAQAEABAAIYOfVYfUHkAvL02OAIAAlA+xxkEIJxjDQJg5QQBSFoxRQwBsP33JCAAVlAQgJiVU7wQgPBBsv1HAAIHyOqPAIQO1P5arf4IwAV3ASVFwPAjAIERsPVHAEJXVVt/BCB0lTX8CEDoUcDwU5Nmt9n2a7/I4VuHL/kOwoYfAVhBCG4dgeEOxPAjAEG7Aas+AhAYAqs+AhAWgvHNRoOPABQYgrlBmPrugqFHACoNwhQDjwAAkbwlGAgAIACAAAACAAgAIACAAAACAAgAIABAsQFoPA0QqbEDAEcAIDkAjgEQtv23AwA7gJ9FADJW/6kdgAhAyPAfOgKIAAQMv3sAEK47UgpvGAoVrvxzdwCOA1Dp8M89AogAVDj8/zoCOBJAxYN/agCmHlgMoMCh/58AHPsLRQFWOuyTD9T3ZhZSeR0ACAAgAIAAABm+BBgAb6HKIXAM7nkAAAAASUVORK5CYII=",C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozRTY3MDlCRTM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozRTY3MDlCRjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1QkZBQTc1MzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA1QkZBQTc2MzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+1c2J1gAABfVJREFUeNrs3U2O00oYhlEcWWESdsKIFbEAJDbAkA0gMQwSK2LEfowYRDJRTP7jqu89Z377mhbfU1WmuzJM0/QGyLTxLQABAAQAEAAgwvjj7btHfj1vFOH5hocFwLBDd6ZHRWE09FAuCsOjA2Dwob8YnA3BxvBD1FHhqgAYfigcgdHgQ+6RwM8BQLCN1R9yjwMbww+5EdgYfsiNgHcA4B2A1R8SdwF2AGAHAKQGwPYfQo8BdgDgCAAIACAAgAAAAgAIACAAgAAAAgD0bPQtINn7zx9v/m9/f/vZ/Z9/2G93fheA6KH/8OXT1V/j19fvJWIgAEQO/i1Df0kMeguBAGDwg0MgABj8J4WghwgIAKWH/5WD32MEBADDH3wkEAAMf/BuwA8CYfifrLXnEQAM/4rPKAAQNvyHZ2stAgJACS0Pf8sREABKrP5CJQBY/YVLALD6C5YAEDH8Pa7+LQVMALD1D352AYDgXYAAQPAuQACwagYTAKyewUETAAgOmQCAIwAgAOC8LADg3CwAgABAW44/lQcBIESFz+MTAEAAAAEABADyrP1CUwAwOCtb88WmAGBgHAGAxF2MAGCAgnczAoDBCY6XAGCQgiMmABig4GgJAHYBwfESAErsAnqJQGvPKQA4Crx4+Ft6XgHAUSB0+AUAR4Hg4RcARCB4+AUAEQge/r+G/XY3+WtDNfPrw9e4RbiH4RcAYkLwqgjMdx49/OuEAGA3EDj4AoAQBA++ACAEM9cE4fgFY8+/mSgACMINnzdY5VYiAYBgfg4ABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAgPaMvgVZzt1+U+WmGy7jRqDAYV+6/27pwzREQQDodPDvvf2291tvEQCD/wBCIAAEDr4QCAAdDP+rP/+ul8++QwCs+nYDCIBV326AY34QyPDf7fAst3zCDgJAx8MvAgLACoPm2RCAwNXfsyIAtv7N7wJEQAAI3V47CggAttN2AQJA6opqFyAAWEHtAgSA1JXULkAAsHLaBQgAqSuoXYAAAAIACAAgACyr+NLMi0AB4AqVXp55ESgAgAAAAgAIACAAgAAwt/RBnf4sCEBxFe/X95kBAgAIACAAgACwrMLLMy8ABYAbVHpp5gWgABC4glr9BYDwldPqLwAErqRWfwEgfAW1+gsAgSuq1V8AeMJK2sNgHZ7R6i8AhG6nDb8AELi9tvUXAEKPArb+AkBoBAx/v4b9djf5NvRnfs/+WtduzyNk+AWAFUPw6ghY9QWAwN2AVV8ACAyBwRcAAkNg8AWAAiGYW4rC0r8sGHwBoHgUDLsAAGH8IBAIACAAgAAAAgAIACAAgAAAAgAIACAAgAAAAgAIANC6sfofcOn33/3eOxS7D+DSG3DcfANFAnA89LfegXccBTFAADoZfDfgQkgA3IEPoQHwKTgQGoC1ht9uAAEIH367AaraGP7rHJ7j3P36IADFhl8EEIDw4T+OAAhA2PCfelYQgLDhdxRAAMK3144CCIDttF0AApC6ojoKIADhK6ijAAJgiEAAkjkGIAChQ2MHgwAYHhAAQAC8BwAByOEogwBYLUEArJogAIAAAAIACMDc0mf1AcUD4HptcAQABKB/jjMIQDjHGgTAygkCkLRiihgCYPvvm4AAWEFBAGJWTvFCAMIHyfYfAQgcIKs/AhA6UIdntfojAA/cBfQUAcOPAARGwNYfAQhdVW39EYDQVdbwIwChRwHDTyXDfrubWn/I+dXha94gbPgRgAZC8OoIzHcghh8BCNoNWPURgMAQWPURgLAQHL9sNPgIQIchuDQIp/51wdAjAEWDcIqBRwCASK4EAwEABAAQAEAAAAEABAAQAEAAAAEABADoNgCDbwNEGuwAwBEASA6AYwCEbf/tAMAO4N8iABmr/6kdgAhAyPAvHQFEAAKG3zsACDeeKYULQ6Hgyn/pDsBxAIoO/6VHABGAgsP/vyOAIwEUHvxrA3DqC4sBdDj09wTg3P9QFKDRYT/5habJzEIqPwcAAgAIACAAQIY/AgwAcOCdRuK7wTQAAAAASUVORK5CYII=",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNUJGQUE3MzM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNUJGQUE3NDM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1QkZBQTcxMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA1QkZBQTcyMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+qru5gAAABqpJREFUeNrs3UGOE8kSgOGpkNWzaW7CihNxACQuwJILILHskTgRK+5Ts7JkLLddtsuujIjv272neTxTmfFnZQ8y0zzP/wA9hUcAAgAIACAAQAu7//79sOav5yeK8HjTagEw7JDOvFYUdoYeykVhWjsABh/yxeBiCMLwQ6urwlUBMPxQOAI7gw99rwT+HAA0Fk5/6HsdCMMPfSMQhh/6RsDPAMDPAJz+0PEtwBsAeAMAugbA6z80vQZ4AwBXAEAAAAEABAAQAEAAAAEABAAoYFfxN/Xx6+fF/+yfH7/sAtqa3l5e54pD/+nbl4v/m9/ff4pBc9ccFhUPj9QBuGXoxYA19k2V/ZIyAIcLeM/QL1lcIag5+Gvum8z7JVUAHj34QmDwu+2XNAHYL+IzBv+9hRUBg19tv6QIwJbDLwK5h3+rPZNlvwwfgBGGXwQMf9UrwdABGGn4RcDwV9wzYSGvs/889/z7Y3rumRGFhRQBw//czygAyRdSBOyZKvslRn5Yo8vyOTvIsBYjRmCoAGQ9Tb0FePZZQxUekLcAp3/fcIUH4vN75n2DFR6Mt4DMw5/52Y8QsPAg/D68+vf97OGB+Pz0PTR8JyA0PjQ2D0C112bXAM84kyHeAKq8PrsGeNbZguYKAI1DJgDgCgAIALgvCwC4NwsAIAAwluO/lQcBoAlfxioAgAAAAgDkDkCVH+r44RTZ9szmAaj2Qx0/pBLbTHvGFQAD4wqg6E4kOu6ZIQJQpehOJtHNtmfCgtqIBqfvngkL6vMbpL57Jiyo098A9d0zYUGd/t4C+u6ZsKBO/wpvAfZMkQBkWdD953P6O00z75kYeUFHjYDhd7pW2TPD/knAUSNg+O2XSnsmLKrhF4G+eyYsquEXgb57Znp7eZ0zLOzh10E/81thDzeS4c9jq/2S7cBIE4DjhX3Gojr164TgWRHIdmCkC8Az6u7U9zbQZc+kDMCphb13cY/vjAZfCDocFqkDcC4G5xb6vR8QGfp+IbglCJUOizIBuCYKhp2l+6T6/ikdAOA83wkIAgAIACAAgAAAAgAIACAAgAAAAgAIACAAgAAAAgAIACAAgAAAAgAIACAAgAAAAgAIACAAgAAAAgAIACAAgAAAAgAIACAAgAAAAgAIACAAgACAAHgEIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgACAAgAIAAAAIACAAgAIAAAAIACAAgAIAAAAntqv8GP379fPK///Pjl9Wnvent5XWuPuyfvn356z///v5TFFi0d86psF/SB+B44Y6HfanjKIhBv6G/Zu9U2S9pA3C4eLcO/ZLFFYLag7/G3skcg3QBeOTgC4HBX2vPZNkvqQKwX8BHD372RWW7QyPbwZEmAFsNv7eBGsO/xb7JcHCkCMDWw+9twPBXPTiGD8BIwy8Chr/angmLeL3957nl3x3Tc9+MumfCIt63oNg3mSMQFnGdz4p9k/HgCIvoKmD4+x4cMfJgZeAqYC0yHxxDBSDzSeotwLPPGKvwYFwFnP594xUehKuA07/vngkPBKd/34j5SjAnkmfdOF5hIZ1EnnlfYSGh7yHoCgCNDz8BcKXxjF0BcJXxrAVAyUEAlBwEACj+NiwA0PgtWABgAO/9dXUtArDVbx5GssUXhkbH3zTgCgAC4BG4ziAAuNaIrQBYTES2094Piyli9J0BVwAxE11XAIuJ2AqAxRQvz77VZw8PRMS8BWy717f8PYTFdPp7C+i758Ni5q+4t4B8z36UPR6jLmamCBh+Q5V138TID2b0BfXqb89k3zcx+oJ69afSm9ho+yayPDCLSPY3sxH3zdABGPG1zvC7ClTaN9Pby+s8+qIeflnilt8gbPjzGGXPjL5vUgTgeFGfvaCHp4nhzxmCrSIw+qGRKgBblN2pLwKVD410AXhWCJz6rgQd9k3aADxiYY9/cGTwhaD622L6AJxa2KULfOonxYa+XwhujUGF/VMmAEuCcIqB556/kiv7/ikbAOAyXwkGAgAIACAAgAAAAgAIACAAgAAAAgAIAJA2AJPHAC1N3gDAFQDoHADXAGj2+u8NALwB/F0EoMfpf+oNQASgyfC/dwUQAWgw/H4GAM3tLpTCF4ZCwZN/6RuA6wAUHf6lVwARgILDf+4K4EoAhQf/2gCc+oXFABIO/T0BuPR/KAow6LCf/IXm2cxCV/4cAAgAIACAAAA9/C/AAJ2NQy44zGM4AAAAAElFTkSuQmCC",E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNUJGQUE2RjM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNUJGQUE3MDM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1QkZBQTZEMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA1QkZBQTZFMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+tnAQbQAAB3pJREFUeNrs3UuOI0UQgGEcsnrVR2HFiTgAEhdgyQWQWPaCE7HiPkYsLBnL5XdXxeP71zM95YyIPyKzPVm7w+HwA4CZhCUACAAAAQAgAAAj2H19fL7z5zlRBFao23f9oL1iB8pxeJcU9ooeaCeF3bsFoPCBejK4KYJQ/MCorcJDAlD8QGMJ7BU+MHdL4HsAwGBC9wfmbgdC8QNzJRCKH5grAWcAgDMA3R+YOAWYAAATAICpAjD+A0O3ASYAwBYAAAEAIAAABACAAAAQAAACAEAAABqw7/ihfvz157v/7D9//CULMJb/3gx06Fj0P/32y82/8/fvf5LBcB5pFh2bR2kBPFP0ZIB35E2XfCkpgNMAvlL09wSXCHoW/jvzpnK+lBLAdxc+ESj8aflSRgDHIK5R+EuBJQGF3y1fSghgy+IngdrFv1XOVMmX9ALIUPwkoPi7bglSCyBT8ZOA4u+YMyGQj3F8nld+f4yZOZOREEgSUPzrPiMBFA8kCciZLvkSmRcrO1WecwIVYpFRAqkEULWbmgKsfVVRhQUyBej+c8UVFsTzW/O5wgoLYwqoXPyV1z6DwMJC+BxG/7nPHhbE82Nu03AnIDC4aWwugG5js22ANa5Eigmgy/hsG2CtqwnNFgAYLDICAGwBABAAYL9MAIB9MwEAIAAgF+dv5QEBYAguYyUAAAQAgAAA1BZAl0Mdh1OoljObC6DboY5DKrKtlDO2AFAwtgCMriNhYs6kEEAXo+tMpFstZ0JAJaLCmZszIaCeXyHNzZkQUN1fAc3NmRBQ3d8UMDdnQkB1/w5TgJxpIoAqAT0+n+6vm1bOmcgc0KwSUPy6a5ecSftNwKwSUPzypVPOhKAqfhKYmzMhqIqfBObmzO7r4/NQIbCn10GveSvsaSIp/jpslS/VGkYZAZwHdo2g6vp9RLCWBKo1jHICWMPuur5pYErOlBTApcC+GtzzPaPCJ4IJzaK0AK7J4Fqglw6IFP08ETwjhE7Noo0AHpGCYse9edI9f1oLAMB13AkIEAAAAgBAAAAIAAABACAAAAQAgAAAEAAAAgBAAAAIAAABACAAAAQAIB97SzCLW7ffuClpFm4EGljsS/ffuSuRANCs8F+9/dYV6QSAgYVPBAQAhU8EBIAKxb/2+++8No0AMKTrmwYIALq+aaAhvgik+F/m+CzPvGEHBIDCxU8CBIANCs2zgQAGdn/PCgIw+qefAkiAADB0vLYVIAAYp00BBICpHdUUQADQQU0BBICpndQUQADQOU0BBICpHdQUQAAACAAAAQAgACzT8dDMQSAB4AE6HZ45CCQAAAQAgAAAEAAAAgBAADhl6UWdPgsIoDkd79f3zgACAEAAAAgAAAFgmQ6HZw4ACQBP0OnQzAEgAWBgB9X9CQDDO6fuTwAY2El1fwLA8A6q+xMABnZU3Z8A8A2dtEJhHZ9R9ycADB2nFT8BYOB4bfQnAAzdChj9CQBDJaD467L7+vg8WIZ6nN6zv9W126cSUvwEgA1FsLYEdH0CwMBpQNcnAAwUgcInAAwUgcInADQQwSlLUlj6zYLCJwA0l4JiJwAAw/BFIIAAABAAAAIAQAAACAAAAQAgAAAEAIAAABAAAAIAQAAACABAdvbdP+DS/3/3/96BZvcB3HsDjptvcG/uXKNDvpQXwHngnr0D71wKZDCv6B/JnS75UlYAbsBFltypLINyAnAHPjLnTrUXppQSgLfgIHvTqNY4yghgq+I3DfQo/i3ypkLjKCGArYvfNKD4uzaO9ALIVPwkoPi75UwI4uMcn+eZ3x1jZt5kzZkQxNcCCnlTWQIhiO95Vsibio0jBNFWQPHPbRyRubAqYCsgFpUbRyoBVO6kpgBrX1FWYWFsBXT/ufIKC2EroPvPzZmwIND950rMlWA6krUeLK8QSJ3Ims8lBBKY2wRtAYDBzY8AbGmssS0AbGWsNQEwOUAATA4QAIDm0zABAIOnYAIAErD0uroRAtjqwwOZ2OLC0Jj4oQHYAgAEYAlsZ0AAsK0hWwIQTJDspNwPwSQxzK0BWwAyI11bAMEE2RKAYJKXtR/17GFBSMwUsG2ub/kZQjB1f1PA3JwPwaxvcVNAvbXPkuORNZiVJKD4FVXVvInMC5M9oEZ/OVM9byJ7QI3+6DSJZcubqLJggojqk1nGvEktgIxjneK3FeiUN7uvj89D9qCeXpa45Q3Cir8OWXIme96UEMB5UNcO6Gk3Ufw1RbCVBLI3jVIC2MLsuj4JdG4a5QSwlgh0fVuCCXlTVgDfEdjzgyOFTwTdp8XyArgU2HsDfOmkWNHPE8GzMuiQP20EcI8QLqHg8coruarnT1sBALiNK8EAAgBAAAAIAAABACAAAAQAgAAAEAAAAgBAAADKCmBnGYCR7EwAgC0AgMkCsA0Aho3/JgDABPB/IwCY0f0vTQAkAAwp/qUtAAkAA4rfGQAwnP0NU7gwFGjY+e+dAGwHgKbFf+8WgASAhsV/bQtgSwA0LvxHBXDpB5MBULDoXxHArX+QFICkxX7xBx0OahaYiu8BAAQAgAAAEACAGfwrwAAPlxZNWR0fOgAAAABJRU5ErkJggg==",M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4MzZDMDk0RDM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4MzZDMDk0RTM1NDkxMUU1OEI4NkE0RkIwM0JDODRGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjNFNjcwOUM4MzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjgzNkMwOTRDMzU0OTExRTU4Qjg2QTRGQjAzQkM4NEY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SxkJ3gAACBpJREFUeNrs3UuOK0UQRuHrkNVMmp0wYkUsAIkNMGQDSAwbiRUxYj9GDCwZq/xqu6vi8Z3xVVPO+ONEprvJ2h0Oh28AZhKWACAAAAQAgAAAjGD/53ffv/Ln+UYR+Hp2LxOAZgfKcXiVFPaaHmgnhd2rBaDxgXoyuCmC0PzAqKPCQwLQ/EBjCew1PjD3SODvAIDBhOkPzD0OhOYH5kogND8wVwK+AwB8B2D6AxN3AXYAgB0AgKkCsP0Hhh4D7AAARwAABACAAAAQAAACAEAAAAgAAAEAaMC+6wf74Zefbv6bf37/SwIwmt3H2/uha8P/+OvPF//937/9QQi4a1B0HiClBXBevGsNf4tzIZDBnKb/TG665KWkAE4L+EzT31NcIujZ+K/MTeW8lBLAVzc+EWj8aXkpI4BjEddo/EuFJQGN3y0vJQSwZfOTQO3m3yozVfKSXgAZmp8ENH/XI0FqAWRqfhLQ/B0zEwr5GMfneeb3x5iZmYyEQpKA5l/3GQmgeCFJQGa65CUyL1Z2qjznBCrUIqMEUgmg6jS1C7D2VUUVFsguwPSfK66wIJ7fms8VVlgYu4DKzV957TMILCyEz2HrP/fZw4J4fswdGu4EBAYPjc0F0G3b7BhgjSuRYgfQZfvsGGCtqwnNEQAYLDICABwBABAAAAIAsuI3AASA4fhtCwFgMEuvdQMBYAAuYyUAAAQAgACAwmz9fUZYBJ8D27Ll9xox+cP7PGTrCACQLAEwuomEeZlJIYAuRjeZSLdaZkJBBVHjzM1MKKjn10hzMxMKavproLmZCQU1/e0C5mYmFNT077ALkJkmAqhS0OPzmf6maeXMROaCZpWA5jddu2Qm7V8CZpWA5peXTpkJRdX8JDA3M6Gomp8E5mZm9/H2fqhQ2NPbYNe8FPI0SJq/DlvlpdrAKCOA88KuUVRTv48I1pJAtYFRTgBr2N3UtxuYkpmSAlgq7LPFPT8zanwimDAsSgvgmgyuFfrSF0Safp4IPiOETsOijQAekYJmx7056Z6f1gIAcB13AgIEAIAAABAAAAIAQAAACAAAAQAgAAAEAIAAABAAAAIAQAAACAAAAQDIx77zh7t104tbgXBvVrrmZeSdgP+xdC8gIcxu+Gv3AnbNi1uBLxSYDPo3vbwUFsBXvvDBewH6Nr68FBfAmq98IoI+zb/mm6Qq5aWUANZ+zdN5YUnAoOiWlxIC2PpFjyRg6nfNS3oBZCimI4Hm7yqB1ALIVEy7Ac3fMSuhmI+T8Zk0f868HJ/nM68fGy2ACo2Wtaia/xsJVBZAhcbKbnbNLy8lBVCloCRgp9ghL6Ggvg+oPv3JqokAKk9SuwANVTEvkW1BKhbULoBwq+YlLIxQaqS5eXEjkDBqnMF5CQWFBppLKCiZYW5eHAFIDIPzQgAwMR0BFBQmJwEoKEAAsKsBAcBuBgQAgAAAEAAAAsAFlt4hBxDAINwWDAIwNQECMC1hYBAAYGAQgMkEZMpLWAwTCnPzEhYBpqcjAATS1ByYl7AogqmJ5uYlsi1GxaKa/mRbNS+hqJ7dLmBuXkJRTX/SnZuXyFrUCo11fEbTX1NVzUvKHUCFhtL8BkaHvESFRbMFRWUJZB4WoajO/SQwd6e4+3h7P2QubKbXhp+Gy/SXlw7HxPQCOC3qloV15ieBjnkpIYCtC6v560pAXhoJYO3C2vLbDXTPSzkBrFFYjW83MCUvZQVwXthni3v+7bHG7y0CeWkggGvFvVXkpV8Xafq5MrglhK55aSOAR6Sg4fFoVrrmpbUAAFzHjUAAAQAgAAAEAIAAABAAAAIAQAAACAAAAQAgAAAEAIAAABAAgOzsu3/AS/+ft7sAgGb3Adx7K9Cll0eQwlzuuRCkY17KC+BV97y5E1DTP5IddwImKt6rb3p1K/Ccxn9FdirLwHsBiEDjD86MNwM9UFQS0PjdMlNGAFu/781uoHbzb5EbLwctam+7Ac0/ZXCUEECGxicBzd8xM1GhiNk4hirr82n+XM2fOTOhiM8VFHJTWQKhiD13KZo/J9meLRTRUUDzzx0ckbmxKuAooBaVB0cqAVSepHYB1r6irMLCOAqY/nPlFRbCUcD0n5uZsCAw/edKzJVgJpK1HiyvUEiTyJrPJRQSmDsEHQHsaDB4+BGAnQzJOgIAZEsATA4QAJMDBACg+W6YAIDBu2ACABJw6XV1IwSw1YcHMrHFhaEx8UMDcAQACMASOM6AAOBYQ7YEoJgg2UnZD8UkMcztAUcAMiNdRwDFBNkSgGKSF0blJiwIiWmibZ97y9yEBjL9OxwDqtZg68yHhqpvcRKot/ZZMh5Zi1lJAppfU1XNTWRemOwFtfWXmeq5iewFtfVHp51YttxElQVTRFTfmWXMTWoBZNzWaX5HgU652X28vR+yF/X0ssQtbxDW/HXIkpnsuSkhgPOirl3Q02mi+WuKYCsJZB8apQSwhdlNfRLoPDTKCWAtEZj6jgQTclNWAF9R2PMvjjQ+EXTfLZYXwFJh7y3w0jfFmn6eCD4rgw75aSOAe4SwhIbHM6/kqp6ftgIAcBtXggEEAIAAABAAAAIAQAAACAAAAQAgAAAEAIAAAJQVwM4yACPZ2QEAjgAAJgvAMQAYtv23AwDsAP5vBAAzpv/SDoAEgCHNf+kIQALAgOb3HQAwnP0NU7gwFGg4+e/dATgOAE2b/94jAAkADZv/2hHAkQBo3PiPCmDpB5MBULDpnxHArf8gKQBJm33xBx0OehaYir8DAAgAAAEAIAAAM/hXgAEAXFHSkcpe+NMAAAAASUVORK5CYII=",B=[Q,D,C,w,E,M],G=document.querySelector(".img1"),Y=document.querySelector(".img2"),R=document.querySelector(".play");function I(){const A=Math.floor(Math.random()*6),g=Math.floor(Math.random()*6);G.setAttribute("src",B[A]),Y.setAttribute("src",B[g]),N(A,g)}function N(A,g){A>g?document.getElementById("result").innerHTML="Player1 Wins!":Ag?document.getElementById("result").innerHTML="Player1 Wins!":A{const a=document.createElement(s);for(let o in e)a[o]=e[o];return t.forEach(o=>a.appendChild(o)),a},r=(s,e,t)=>{e=e.replaceAll(` +import"./header-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.js";const i=document.querySelector("#commentContainer"),n=(s="div",e,...t)=>{const a=document.createElement(s);for(let o in e)a[o]=e[o];return t.forEach(o=>a.appendChild(o)),a},r=(s,e,t)=>{e=e.replaceAll(` `,"
");const a=n("p",{textContent:s,className:"text-bold name"}),o=n("p",{innerHTML:e,className:"comment-text"}),l=[];l.push(n("button",{textContent:"Reply",className:"btn btn-primary small reply"})),t!=null&&t.hasNoEdit||l.push(n("button",{textContent:"Edit",className:"btn btn-primary small edit"})),t!=null&&t.hasNoDelete||l.push(n("button",{textContent:"Delete",className:"btn btn-primary small delete"}));const d=n("div",{className:"btn-holder"},...l),b=n("div",{className:"main-comment"},a,o,d),u=n("div",{className:"sub-comments"});return n("div",{className:"comment"},b,u)},p=()=>{const s=n("input",{placeholder:"Your name",className:"text-bold name "}),e=n("textarea",{placeholder:"comment",className:"comment-text",rows:2,cols:30}),t=n("button",{textContent:"Post",className:"btn btn-primary small post"}),a=n("button",{textContent:"Cancel",className:"btn btn-primary small cancel"}),o=n("div",{className:"btn-holder"},t,a);return n("div",{className:"comment"},s,e,o)},c=s=>{s.nextElementSibling.disabled=!s.nextElementSibling.disabled,s.previousElementSibling.disabled=!s.previousElementSibling.disabled},N=r("Sadanand","Hello, world",{hasNoDelete:!0,hasNoEdit:!0});i.appendChild(N);let m=!1;i.addEventListener("click",s=>{const e=s.target;if(e.tagName.toLowerCase()==="button"){if(e.classList.contains("reply")&&!m){e.closest(".main-comment").nextElementSibling.appendChild(p()),m=!0;return}if(e.classList.contains("edit")){e.textContent="Save",e.className="btn btn-primary small save",c(e),e.closest(".main-comment").children[1].contentEditable=!0;return}if(e.classList.contains("save")){const t=e.closest(".main-comment").children[1];if(!t.textContent)return;e.textContent="Edit",e.className="btn btn-primary small edit",t.contentEditable=!1,c(e);return}if(e.classList.contains("delete")){e.closest(".comment").remove();return}if(e.classList.contains("cancel")){e.closest(".comment").remove(),m=!1;return}if(e.classList.contains("post")){const t=e.closest(".comment"),a=t.children[0].value,o=t.children[1].value;if(!a||!o)return;e.closest(".sub-comments").appendChild(r(a,o)),t.remove(),m=!1;return}}}); diff --git a/docs/javascript/assets/index-jG7-WIrd.js b/docs/javascript/assets/index-z7HWz-Vx.js similarity index 92% rename from docs/javascript/assets/index-jG7-WIrd.js rename to docs/javascript/assets/index-z7HWz-Vx.js index 8e25c29ae..51a87219e 100644 --- a/docs/javascript/assets/index-jG7-WIrd.js +++ b/docs/javascript/assets/index-z7HWz-Vx.js @@ -1 +1 @@ -import"./header-N5IghG5m.js";import"./navbar-dNY0ss3E.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-k9Qk3Vg-.js";import"./navbar-CbZ04-zJ.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/navbar-CbZ04-zJ.js b/docs/javascript/assets/navbar-CbZ04-zJ.js new file mode 100644 index 000000000..8a96e0400 --- /dev/null +++ b/docs/javascript/assets/navbar-CbZ04-zJ.js @@ -0,0 +1,44 @@ +var e=(a=>(a.Easy="easy",a.Medium="medium",a.Hard="hard",a))(e||{}),i=(a=>(a.interview="interview",a.all="all",a))(i||{});const d=[e.Easy,e.Medium,e.Hard];function l(a){return new Map([...a.entries()].sort((p,f)=>{const g=d.indexOf(p[1].difficulty),y=d.indexOf(f[1].difficulty);return g-y}))}const v=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:e.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[i.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[i.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:[i.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:[],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:[i.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);l(v);const m=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[i.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:[i.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[i.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:[i.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}],["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:[i.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[i.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.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:[i.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.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:[i.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[i.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:[i.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.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:[i.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[i.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:[i.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:[i.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:[i.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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}]]),k=l(m),h=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[i.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:[i.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[i.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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[i.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:[i.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[i.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[i.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[i.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:[i.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[i.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:[i.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:[i.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[i.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[i.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[i.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:[i.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:[i.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[i.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-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[i.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:[i.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[i.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[i.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[i.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[i.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:[i.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:[i.interview]}]]);l(h);const w=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[i.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[i.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:[i.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:[i.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:[i.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[i.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[i.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:[i.interview]}]]);l(w);const b=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[i.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[i.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[i.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[i.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);l(b);const M="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png";var E={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:n,VITE_HOST_URL:u,DEV:c}=E,T=c?`${u}${n}/#/javascript/`:`/${n}/#/javascript/`,S=c?`${u}${n}/`:`/${n}/`,C=window.location.pathname.split("/challenges/")[1].slice(0,-1),t=k.get(C),r='',s="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",o=document.createElement("nav");o.classList.add("challenge-navbar");o.innerHTML=` + + +
+

${t.title}

+
+ +
+
+ ${t!=null&&t.link?`${r}Source code`:""} + ${t!=null&&t.youtube?`${r}Youtube`:""} +
+ + github repo + +
+
+ +
+
+
+ +
+
+
+ +`;document.body.prepend(o);export{k as j}; diff --git a/docs/javascript/assets/navbar-dNY0ss3E.js b/docs/javascript/assets/navbar-dNY0ss3E.js deleted file mode 100644 index ecd64c5a8..000000000 --- a/docs/javascript/assets/navbar-dNY0ss3E.js +++ /dev/null @@ -1,44 +0,0 @@ -var e=(a=>(a.Easy="easy",a.Medium="medium",a.Hard="hard",a))(e||{}),i=(a=>(a.interview="interview",a.all="all",a))(i||{});const d=[e.Easy,e.Medium,e.Hard];function l(a){return new Map([...a.entries()].sort((p,f)=>{const g=d.indexOf(p[1].difficulty),y=d.indexOf(f[1].difficulty);return g-y}))}const v=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:e.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[i.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[i.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:[i.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:[],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:[i.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);l(v);const m=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[i.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[i.interview]}],["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:[i.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[i.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:[i.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}],["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:[i.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[i.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.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:[i.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.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:[i.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[i.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:[i.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.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:[i.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[i.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:[i.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:[i.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:[i.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:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}]]),k=l(m),h=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[i.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:[i.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[i.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:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[i.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:[i.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[i.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[i.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[i.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:[i.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[i.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:[i.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:[i.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[i.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[i.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[i.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:[i.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:[i.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[i.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-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[i.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:[i.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[i.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[i.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[i.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[i.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[i.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[i.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:[i.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:[i.interview]}]]);l(h);const w=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[i.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[i.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:[i.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:[i.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:[i.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[i.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[i.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:[i.interview]}]]);l(w);const b=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[i.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[i.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[i.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[i.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);l(b);const M="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png";var E={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:n,VITE_HOST_URL:u,DEV:c}=E,T=c?`${u}${n}/#/javascript/`:`/${n}/#/javascript/`,S=c?`${u}${n}/`:`/${n}/`,C=window.location.pathname.split("/challenges/")[1].slice(0,-1),t=k.get(C),r='',s="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",o=document.createElement("nav");o.classList.add("challenge-navbar");o.innerHTML=` - - -
-

${t.title}

-
- -
-
- ${t!=null&&t.link?`${r}Source code`:""} - ${t!=null&&t.youtube?`${r}Youtube`:""} -
- - github repo - -
-
- -
-
-
- -
-
-
- -`;document.body.prepend(o);export{k 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 6acee786b..df4dc56c5 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 082192352..ad3e1cdff 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 48e06c438..99bd6560b 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 cb825c7bf..b1b49080a 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 0328ff43f..82f6e26af 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 d62daa125..b59bdb904 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 e75c5b4b2..21e304973 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 47e24fc67..a1b77fd31 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 35bcd4452..73a0639d4 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 ae886ce6f..94f0f2d2b 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 db8e5a3df..b08910908 100644 --- a/docs/javascript/src/challenges/chess-board/index.html +++ b/docs/javascript/src/challenges/chess-board/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chips-input/index.html b/docs/javascript/src/challenges/chips-input/index.html index 39d43796c..def8ca257 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 79ab00203..c4293bb6e 100644 --- a/docs/javascript/src/challenges/color-me/index.html +++ b/docs/javascript/src/challenges/color-me/index.html @@ -1,17 +1,15 @@ - - - + + + - +
-

3x3 Grid Color Me

-
diff --git a/docs/javascript/src/challenges/color-spotter/index.html b/docs/javascript/src/challenges/color-spotter/index.html index d26fdb671..15736a114 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 d422dac4b..5074fe4e2 100644 --- a/docs/javascript/src/challenges/column-table/index.html +++ b/docs/javascript/src/challenges/column-table/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/comment-box/index.html b/docs/javascript/src/challenges/comment-box/index.html index f3091632d..f6f8de4af 100644 --- a/docs/javascript/src/challenges/comment-box/index.html +++ b/docs/javascript/src/challenges/comment-box/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/connect-four/index.html b/docs/javascript/src/challenges/connect-four/index.html index 5101f394a..a5b054aa7 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 5069ee2fe..ef4daaa2d 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 a24ea3ef6..2312238dd 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 d0a6d0b87..4076e4718 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 eb46f8dba..09813df8a 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 65702b1da..6ba59d19b 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 5c4378e11..5e9b524e8 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 b75827439..8fc373a54 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 b078f72b3..1bb0b2a5f 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 b1627eb33..454aa505c 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 3838c1718..09f4ce263 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 cc2c9d0f6..984ca4cff 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 da0e27843..c77082379 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 a684132a8..c9ef50801 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 038fc29ae..3cb38aba1 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 b837ed25b..69fd9fed9 100644 --- a/docs/javascript/src/challenges/meme-generator/index.html +++ b/docs/javascript/src/challenges/meme-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/movie-info/index.html b/docs/javascript/src/challenges/movie-info/index.html index 569e2a716..9e89a1aa3 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 a1b2d4e1b..6dd0de907 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 47bb974fc..2b9e08dc9 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/otp-input/index.html b/docs/javascript/src/challenges/otp-input/index.html index a717dcace..668d90ca8 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 cb66f3f5c..472b925cc 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 bf7cbdcb9..d472b989f 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 217ee609a..864a12915 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 843657239..80d11de18 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 5510ceeb8..4293c0d4a 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 ce923cc1f..86e5e526a 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 acec02f65..38cda286a 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 8a48a87c9..d5b184960 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 08443201e..7a989d17b 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 1da8d14c8..856d4fcbe 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 41c212ec3..b1bc2ab9c 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 b5c8dab09..06a4b2482 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 de181f277..6879fea5f 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 fb9dd9dab..99c08d2ed 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 4e11802da..3cb903a43 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 a870aa234..a99499170 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 0b99d2f73..2e2f0417d 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-popup/index.html b/docs/javascript/src/challenges/toast-popup/index.html index 7ffb29cff..1cfd367f6 100644 --- a/docs/javascript/src/challenges/toast-popup/index.html +++ b/docs/javascript/src/challenges/toast-popup/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/todo-list/index.html b/docs/javascript/src/challenges/todo-list/index.html index 8f20f9da9..97316f420 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 b66f9ec63..06e0437ce 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 02992ede3..1056d085d 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 4a607ba57..90796b6de 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 02f373e2d..dbe20d8e1 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 9973cef24..5546327a7 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 d5709958f..d5da25d1a 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-CDAimWEk.js b/docs/react/assets/index-CXcyXTfc.js similarity index 87% rename from docs/react/assets/index-CDAimWEk.js rename to docs/react/assets/index-CXcyXTfc.js index ae188e7db..2d7e49d9f 100644 --- a/docs/react/assets/index-CDAimWEk.js +++ b/docs/react/assets/index-CXcyXTfc.js @@ -22,7 +22,7 @@ var y_=Object.defineProperty;var x_=(e,t,n)=>t in e?y_(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(L,V){var J=L.length;L.push(V);e:for(;0>>1,pe=L[re];if(0>>1;reo(He,J))yeo(st,He)?(L[re]=st,L[ye]=J,re=ye):(L[re]=He,L[Me]=J,re=Me);else if(yeo(st,J))L[re]=st,L[ye]=J,re=ye;else break e}}return V}function o(L,V){var J=L.sortIndex-V.sortIndex;return J!==0?J:L.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,p=3,g=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(L){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=L)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function C(L){if(y=!1,_(L),!m)if(n(a)!==null)m=!0,q(E);else{var V=n(u);V!==null&&Q(C,V.startTime-L)}}function E(L,V){m=!1,y&&(y=!1,v(j),j=-1),g=!0;var J=p;try{for(_(V),f=n(a);f!==null&&(!(f.expirationTime>V)||L&&!M());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var pe=re(f.expirationTime<=V);V=e.unstable_now(),typeof pe=="function"?f.callback=pe:f===n(a)&&r(a),_(V)}else r(a);f=n(a)}if(f!==null)var it=!0;else{var Me=n(u);Me!==null&&Q(C,Me.startTime-V),it=!1}return it}finally{f=null,p=J,g=!1}}var b=!1,k=null,j=-1,P=5,T=-1;function M(){return!(e.unstable_now()-TL||125re?(L.sortIndex=J,t(u,L),n(a)===null&&L===n(u)&&(y?(v(j),j=-1):y=!0,Q(C,J-re))):(L.sortIndex=pe,t(a,L),m||g||(m=!0,q(E))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var V=p;return function(){var J=p;p=V;try{return L.apply(this,arguments)}finally{p=J}}}})(c0);l0.exports=c0;var B_=l0.exports;/** + */(function(e){function t(L,V){var J=L.length;L.push(V);e:for(;0>>1,pe=L[re];if(0>>1;reo(He,J))yeo(st,He)?(L[re]=st,L[ye]=J,re=ye):(L[re]=He,L[Me]=J,re=Me);else if(yeo(st,J))L[re]=st,L[ye]=J,re=ye;else break e}}return V}function o(L,V){var J=L.sortIndex-V.sortIndex;return J!==0?J:L.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,p=3,g=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(L){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=L)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function C(L){if(y=!1,_(L),!m)if(n(a)!==null)m=!0,q(E);else{var V=n(u);V!==null&&Q(C,V.startTime-L)}}function E(L,V){m=!1,y&&(y=!1,v(j),j=-1),g=!0;var J=p;try{for(_(V),f=n(a);f!==null&&(!(f.expirationTime>V)||L&&!M());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var pe=re(f.expirationTime<=V);V=e.unstable_now(),typeof pe=="function"?f.callback=pe:f===n(a)&&r(a),_(V)}else r(a);f=n(a)}if(f!==null)var it=!0;else{var Me=n(u);Me!==null&&Q(C,Me.startTime-V),it=!1}return it}finally{f=null,p=J,g=!1}}var b=!1,k=null,j=-1,P=5,T=-1;function M(){return!(e.unstable_now()-TL||125re?(L.sortIndex=J,t(u,L),n(a)===null&&L===n(u)&&(y?(v(j),j=-1):y=!0,Q(C,J-re))):(L.sortIndex=pe,t(a,L),m||g||(m=!0,q(E))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var V=p;return function(){var J=p;p=V;try{return L.apply(this,arguments)}finally{p=J}}}})(c0);l0.exports=c0;var B_=l0.exports;/** * @license React * react-dom.production.min.js * @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GS(){return Math.random().toString(36).substr(2,8)}function Rm(e,t){return{usr:e.state,key:e.key,idx:t}}function na(e,t,n,r){return n===void 0&&(n=null),Le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?An(t):t,{state:n,key:t&&t.key||r||GS()})}function va(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function An(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=ze.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(Le({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=ze.Pop;let w=d(),v=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:v})}function p(w,v){l=ze.Push;let x=na(y.location,w,v);n&&n(x,w),u=d()+1;let _=Rm(x,u),C=y.createHref(x);try{s.pushState(_,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&a&&a({action:l,location:y.location,delta:1})}function g(w,v){l=ze.Replace;let x=na(y.location,w,v);n&&n(x,w),u=d();let _=Rm(x,u),C=y.createHref(x);s.replaceState(_,"",C),i&&a&&a({action:l,location:y.location,delta:0})}function m(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof w=="string"?w:va(w);return ue(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let y={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener($m,f),a=w,()=>{o.removeEventListener($m,f),a=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let v=m(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:g,go(w){return s.go(w)}};return y}var De;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(De||(De={}));const qS=new Set(["lazy","caseSensitive","path","id","index","children"]);function YS(e){return e.index===!0}function of(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,i],l=typeof o.id=="string"?o.id:s.join("-");if(ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),ue(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),YS(o)){let a=Le({},o,t(o),{id:l});return r[l]=a,a}else{let a=Le({},o,t(o),{id:l,children:void 0});return r[l]=a,o.children&&(a.children=of(o.children,t,s,r)),a}})}function ii(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?An(t):t,o=ya(r.pathname||"/",n);if(o==null)return null;let i=u1(e);XS(i);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=lo([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),u1(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:oE(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of d1(i.path))o(i,s,a)}),t}function d1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=d1(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function XS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JS=/^:\w+$/,ZS=3,eE=2,tE=1,nE=10,rE=-2,Nm=e=>e==="*";function oE(e,t){let n=e.split("/"),r=n.length;return n.some(Nm)&&(r+=rE),t&&(r+=eE),n.filter(o=>!Nm(o)).reduce((o,i)=>o+(JS.test(i)?ZS:i===""?tE:nE),r)}function iE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sE(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=l[f]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=l[f];return g&&!m?u[p]=void 0:u[p]=uE(m||"",p),u},{}),pathname:i,pathnameBase:s,pattern:e}}function lE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cE(e){try{return decodeURI(e)}catch(t){return Fr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function uE(e,t){try{return decodeURIComponent(e)}catch(n){return Fr(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ya(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?An(e):e;return{pathname:n?n.startsWith("/")?n:fE(n,t):t,search:gE(r),hash:vE(o)}}function fE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Lu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function f1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pE(e,t){let n=f1(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function hE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=An(e):(o=Le({},e),ue(!o.pathname||!o.pathname.includes("?"),Lu("?","pathname","search",o)),ue(!o.pathname||!o.pathname.includes("#"),Lu("#","pathname","hash",o)),ue(!o.search||!o.search.includes("#"),Lu("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else if(r){let f=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f.pop();o.pathname=p.join("/")}l="/"+f.join("/")}else{let f=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}l=f>=0?t[f]:"/"}let a=dE(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const lo=e=>e.join("/").replace(/\/\/+/g,"/"),mE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mp{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function p1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const h1=["post","put","patch","delete"],yE=new Set(h1),xE=["get",...h1],wE=new Set(xE),_E=new Set([301,302,303,307,308]),bE=new Set([307,308]),Fu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},SE={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},rs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},m1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,EE=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),g1="remix-router-transitions";function CE(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;o=N=>({hasErrorBoundary:$(N)})}else o=EE;let i={},s=of(e.routes,o,void 0,i),l,a=e.basename||"/",u=Le({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,p=null,g=null,m=null,y=e.hydrationData!=null,w=ii(s,e.history.location,a),v=null;if(w==null){let $=Vt(404,{pathname:e.history.location.pathname}),{matches:N,route:O}=Lm(s);w=N,v={[O.id]:$}}let x,_=w.some($=>$.route.lazy),C=w.some($=>$.route.loader);if(_)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,N=e.hydrationData?e.hydrationData.errors:null;x=w.every(O=>O.route.loader&&O.route.loader.hydrate!==!0&&($&&$[O.route.id]!==void 0||N&&N[O.route.id]!==void 0))}else x=e.hydrationData!=null;let E,b={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:Fu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},k=ze.Pop,j=!1,P,T=!1,M=new Map,I=null,H=!1,B=!1,Y=[],q=[],Q=new Map,L=0,V=-1,J=new Map,re=new Set,pe=new Map,it=new Map,Me=new Set,He=new Map,ye=new Map,st=!1;function xn(){if(d=e.history.listen($=>{let{action:N,location:O,delta:U}=$;if(st){st=!1;return}Fr(ye.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=To({currentLocation:b.location,nextLocation:O,historyAction:N});if(X&&U!=null){st=!0,e.history.go(U*-1),cr(X,{state:"blocked",location:O,proceed(){cr(X,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(U)},reset(){let se=new Map(b.blockers);se.set(X,rs),Ke({blockers:se})}});return}return qe(N,O)}),n){IE(t,M);let $=()=>LE(t,M);t.addEventListener("pagehide",$),I=()=>t.removeEventListener("pagehide",$)}return b.initialized||qe(ze.Pop,b.location,{initialHydration:!0}),E}function Dn(){d&&d(),I&&I(),f.clear(),P&&P.abort(),b.fetchers.forEach(($,N)=>at(N)),b.blockers.forEach(($,N)=>No(N))}function Eo($){return f.add($),()=>f.delete($)}function Ke($,N){N===void 0&&(N={}),b=Le({},b,$);let O=[],U=[];u.v7_fetcherPersist&&b.fetchers.forEach((X,se)=>{X.state==="idle"&&(Me.has(se)?U.push(se):O.push(se))}),[...f].forEach(X=>X(b,{deletedFetchers:U,unstable_viewTransitionOpts:N.viewTransitionOpts,unstable_flushSync:N.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(X=>b.fetchers.delete(X)),U.forEach(X=>at(X)))}function wn($,N,O){var U,X;let{flushSync:se}=O===void 0?{}:O,ie=b.actionData!=null&&b.navigation.formMethod!=null&&un(b.navigation.formMethod)&&b.navigation.state==="loading"&&((U=$.state)==null?void 0:U._isRedirect)!==!0,oe;N.actionData?Object.keys(N.actionData).length>0?oe=N.actionData:oe=null:ie?oe=b.actionData:oe=null;let Z=N.loaderData?Im(b.loaderData,N.loaderData,N.matches||[],N.errors):b.loaderData,ce=b.blockers;ce.size>0&&(ce=new Map(ce),ce.forEach((we,tt)=>ce.set(tt,rs)));let Ye=j===!0||b.navigation.formMethod!=null&&un(b.navigation.formMethod)&&((X=$.state)==null?void 0:X._isRedirect)!==!0;l&&(s=l,l=void 0),H||k===ze.Pop||(k===ze.Push?e.history.push($,$.state):k===ze.Replace&&e.history.replace($,$.state));let ae;if(k===ze.Pop){let we=M.get(b.location.pathname);we&&we.has($.pathname)?ae={currentLocation:b.location,nextLocation:$}:M.has($.pathname)&&(ae={currentLocation:$,nextLocation:b.location})}else if(T){let we=M.get(b.location.pathname);we?we.add($.pathname):(we=new Set([$.pathname]),M.set(b.location.pathname,we)),ae={currentLocation:b.location,nextLocation:$}}Ke(Le({},N,{actionData:oe,loaderData:Z,historyAction:k,location:$,initialized:!0,navigation:Fu,revalidation:"idle",restoreScrollPosition:vh($,N.matches||b.matches),preventScrollReset:Ye,blockers:ce}),{viewTransitionOpts:ae,flushSync:se===!0}),k=ze.Pop,j=!1,T=!1,H=!1,B=!1,Y=[],q=[]}async function on($,N){if(typeof $=="number"){e.history.go($);return}let O=sf(b.location,b.matches,a,u.v7_prependBasename,$,u.v7_relativeSplatPath,N==null?void 0:N.fromRouteId,N==null?void 0:N.relative),{path:U,submission:X,error:se}=Tm(u.v7_normalizeFormMethod,!1,O,N),ie=b.location,oe=na(b.location,U,N&&N.state);oe=Le({},oe,e.history.encodeLocation(oe));let Z=N&&N.replace!=null?N.replace:void 0,ce=ze.Push;Z===!0?ce=ze.Replace:Z===!1||X!=null&&un(X.formMethod)&&X.formAction===b.location.pathname+b.location.search&&(ce=ze.Replace);let Ye=N&&"preventScrollReset"in N?N.preventScrollReset===!0:void 0,ae=(N&&N.unstable_flushSync)===!0,we=To({currentLocation:ie,nextLocation:oe,historyAction:ce});if(we){cr(we,{state:"blocked",location:oe,proceed(){cr(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),on($,N)},reset(){let tt=new Map(b.blockers);tt.set(we,rs),Ke({blockers:tt})}});return}return await qe(ce,oe,{submission:X,pendingError:se,preventScrollReset:Ye,replace:N&&N.replace,enableViewTransition:N&&N.unstable_viewTransition,flushSync:ae})}function Kr(){if(W(),Ke({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){qe(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}qe(k||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation})}}async function qe($,N,O){P&&P.abort(),P=null,k=$,H=(O&&O.startUninterruptedRevalidation)===!0,m_(b.location,b.matches),j=(O&&O.preventScrollReset)===!0,T=(O&&O.enableViewTransition)===!0;let U=l||s,X=O&&O.overrideNavigation,se=ii(U,N,a),ie=(O&&O.flushSync)===!0;if(!se){let tt=Vt(404,{pathname:N.pathname}),{matches:Ht,route:Qe}=Lm(U);Yr(),wn(N,{matches:Ht,loaderData:{},errors:{[Qe.id]:tt}},{flushSync:ie});return}if(b.initialized&&!B&&TE(b.location,N)&&!(O&&O.submission&&un(O.submission.formMethod))){wn(N,{matches:se},{flushSync:ie});return}P=new AbortController;let oe=is(e.history,N,P.signal,O&&O.submission),Z,ce;if(O&&O.pendingError)ce={[Ts(se).route.id]:O.pendingError};else if(O&&O.submission&&un(O.submission.formMethod)){let tt=await In(oe,N,O.submission,se,{replace:O.replace,flushSync:ie});if(tt.shortCircuited)return;Z=tt.pendingActionData,ce=tt.pendingActionError,X=zu(N,O.submission),ie=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Ye,loaderData:ae,errors:we}=await Gi(oe,N,se,X,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ie,Z,ce);Ye||(P=null,wn(N,Le({matches:se},Z?{actionData:Z}:{},{loaderData:ae,errors:we})))}async function In($,N,O,U,X){X===void 0&&(X={}),W();let se=ME(N,O);Ke({navigation:se},{flushSync:X.flushSync===!0});let ie,oe=lf(U,N);if(!oe.route.action&&!oe.route.lazy)ie={type:De.error,error:Vt(405,{method:$.method,pathname:N.pathname,routeId:oe.route.id})};else if(ie=await os("action",$,oe,U,i,o,a,u.v7_relativeSplatPath),$.signal.aborted)return{shortCircuited:!0};if(gi(ie)){let Z;return X&&X.replace!=null?Z=X.replace:Z=ie.location===b.location.pathname+b.location.search,await Pt(b,ie,{submission:O,replace:Z}),{shortCircuited:!0}}if(Ps(ie)){let Z=Ts(U,oe.route.id);return(X&&X.replace)!==!0&&(k=ze.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:ie.error}}}if(oo(ie))throw Vt(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ie.data}}}async function Gi($,N,O,U,X,se,ie,oe,Z,ce,Ye){let ae=U||zu(N,X),we=X||se||Bm(ae),tt=l||s,[Ht,Qe]=Pm(e.history,b,O,we,N,u.v7_partialHydration&&oe===!0,B,Y,q,Me,pe,re,tt,a,ce,Ye);if(Yr(xe=>!(O&&O.some(ke=>ke.route.id===xe))||Ht&&Ht.some(ke=>ke.route.id===xe)),V=++L,Ht.length===0&&Qe.length===0){let xe=jo();return wn(N,Le({matches:O,loaderData:{},errors:Ye||null},ce?{actionData:ce}:{},xe?{fetchers:new Map(b.fetchers)}:{}),{flushSync:Z}),{shortCircuited:!0}}if(!H&&(!u.v7_partialHydration||!oe)){Qe.forEach(ke=>{let _n=b.fetchers.get(ke.key),Aa=ss(void 0,_n?_n.data:void 0);b.fetchers.set(ke.key,Aa)});let xe=ce||b.actionData;Ke(Le({navigation:ae},xe?Object.keys(xe).length===0?{actionData:null}:{actionData:xe}:{},Qe.length>0?{fetchers:new Map(b.fetchers)}:{}),{flushSync:Z})}Qe.forEach(xe=>{Q.has(xe.key)&>(xe.key),xe.controller&&Q.set(xe.key,xe.controller)});let Po=()=>Qe.forEach(xe=>gt(xe.key));P&&P.signal.addEventListener("abort",Po);let{results:lu,loaderResults:Oo,fetcherResults:ur}=await Pa(b.matches,O,Ht,Qe,$);if($.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Po),Qe.forEach(xe=>Q.delete(xe.key));let Qr=Fm(lu);if(Qr){if(Qr.idx>=Ht.length){let xe=Qe[Qr.idx-Ht.length].key;re.add(xe)}return await Pt(b,Qr.result,{replace:ie}),{shortCircuited:!0}}let{loaderData:cu,errors:uu}=Dm(b,O,Ht,Oo,Ye,Qe,ur,He);He.forEach((xe,ke)=>{xe.subscribe(_n=>{(_n||xe.done)&&He.delete(ke)})});let du=jo(),Ao=$o(V),Oa=du||Ao||Qe.length>0;return Le({loaderData:cu,errors:uu},Oa?{fetchers:new Map(b.fetchers)}:{})}function Ki($,N,O,U){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Q.has($)&>($);let X=(U&&U.unstable_flushSync)===!0,se=l||s,ie=sf(b.location,b.matches,a,u.v7_prependBasename,O,u.v7_relativeSplatPath,N,U==null?void 0:U.relative),oe=ii(se,ie,a);if(!oe){$e($,N,Vt(404,{pathname:ie}),{flushSync:X});return}let{path:Z,submission:ce,error:Ye}=Tm(u.v7_normalizeFormMethod,!0,ie,U);if(Ye){$e($,N,Ye,{flushSync:X});return}let ae=lf(oe,Z);if(j=(U&&U.preventScrollReset)===!0,ce&&un(ce.formMethod)){qi($,N,Z,ae,oe,X,ce);return}pe.set($,{routeId:N,path:Z}),Co($,N,Z,ae,oe,X,ce)}async function qi($,N,O,U,X,se,ie){if(W(),pe.delete($),!U.route.action&&!U.route.lazy){let ke=Vt(405,{method:ie.formMethod,pathname:O,routeId:N});$e($,N,ke,{flushSync:se});return}let oe=b.fetchers.get($);te($,DE(ie,oe),{flushSync:se});let Z=new AbortController,ce=is(e.history,O,Z.signal,ie);Q.set($,Z);let Ye=L,ae=await os("action",ce,U,X,i,o,a,u.v7_relativeSplatPath);if(ce.signal.aborted){Q.get($)===Z&&Q.delete($);return}if(Me.has($)){te($,vr(void 0));return}if(gi(ae))if(Q.delete($),V>Ye){te($,vr(void 0));return}else return re.add($),te($,ss(ie)),Pt(b,ae,{fetcherSubmission:ie});if(Ps(ae)){$e($,N,ae.error);return}if(oo(ae))throw Vt(400,{type:"defer-action"});let we=b.navigation.location||b.location,tt=is(e.history,we,Z.signal),Ht=l||s,Qe=b.navigation.state!=="idle"?ii(Ht,b.navigation.location,a):b.matches;ue(Qe,"Didn't find any matches after fetcher action");let Po=++L;J.set($,Po);let lu=ss(ie,ae.data);b.fetchers.set($,lu);let[Oo,ur]=Pm(e.history,b,Qe,ie,we,!1,B,Y,q,Me,pe,re,Ht,a,{[U.route.id]:ae.data},void 0);ur.filter(ke=>ke.key!==$).forEach(ke=>{let _n=ke.key,Aa=b.fetchers.get(_n),v_=ss(void 0,Aa?Aa.data:void 0);b.fetchers.set(_n,v_),Q.has(_n)&>(_n),ke.controller&&Q.set(_n,ke.controller)}),Ke({fetchers:new Map(b.fetchers)});let Qr=()=>ur.forEach(ke=>gt(ke.key));Z.signal.addEventListener("abort",Qr);let{results:cu,loaderResults:uu,fetcherResults:du}=await Pa(b.matches,Qe,Oo,ur,tt);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Qr),J.delete($),Q.delete($),ur.forEach(ke=>Q.delete(ke.key));let Ao=Fm(cu);if(Ao){if(Ao.idx>=Oo.length){let ke=ur[Ao.idx-Oo.length].key;re.add(ke)}return Pt(b,Ao.result)}let{loaderData:Oa,errors:xe}=Dm(b,b.matches,Oo,uu,void 0,ur,du,He);if(b.fetchers.has($)){let ke=vr(ae.data);b.fetchers.set($,ke)}$o(Po),b.navigation.state==="loading"&&Po>V?(ue(k,"Expected pending action"),P&&P.abort(),wn(b.navigation.location,{matches:Qe,loaderData:Oa,errors:xe,fetchers:new Map(b.fetchers)})):(Ke({errors:xe,loaderData:Im(b.loaderData,Oa,Qe,xe),fetchers:new Map(b.fetchers)}),B=!1)}async function Co($,N,O,U,X,se,ie){let oe=b.fetchers.get($);te($,ss(ie,oe?oe.data:void 0),{flushSync:se});let Z=new AbortController,ce=is(e.history,O,Z.signal);Q.set($,Z);let Ye=L,ae=await os("loader",ce,U,X,i,o,a,u.v7_relativeSplatPath);if(oo(ae)&&(ae=await x1(ae,ce.signal,!0)||ae),Q.get($)===Z&&Q.delete($),!ce.signal.aborted){if(Me.has($)){te($,vr(void 0));return}if(gi(ae))if(V>Ye){te($,vr(void 0));return}else{re.add($),await Pt(b,ae);return}if(Ps(ae)){$e($,N,ae.error);return}ue(!oo(ae),"Unhandled fetcher deferred data"),te($,vr(ae.data))}}async function Pt($,N,O){let{submission:U,fetcherSubmission:X,replace:se}=O===void 0?{}:O;N.revalidate&&(B=!0);let ie=na($.location,N.location,{_isRedirect:!0});if(ue(ie,"Expected a location on the redirect navigation"),n){let we=!1;if(N.reloadDocument)we=!0;else if(m1.test(N.location)){const tt=e.history.createURL(N.location);we=tt.origin!==t.location.origin||ya(tt.pathname,a)==null}if(we){se?t.location.replace(N.location):t.location.assign(N.location);return}}P=null;let oe=se===!0?ze.Replace:ze.Push,{formMethod:Z,formAction:ce,formEncType:Ye}=$.navigation;!U&&!X&&Z&&ce&&Ye&&(U=Bm($.navigation));let ae=U||X;if(bE.has(N.status)&&ae&&un(ae.formMethod))await qe(oe,ie,{submission:Le({},ae,{formAction:N.location}),preventScrollReset:j});else{let we=zu(ie,U);await qe(oe,ie,{overrideNavigation:we,fetcherSubmission:X,preventScrollReset:j})}}async function Pa($,N,O,U,X){let se=await Promise.all([...O.map(Z=>os("loader",X,Z,N,i,o,a,u.v7_relativeSplatPath)),...U.map(Z=>Z.matches&&Z.match&&Z.controller?os("loader",is(e.history,Z.path,Z.controller.signal),Z.match,Z.matches,i,o,a,u.v7_relativeSplatPath):{type:De.error,error:Vt(404,{pathname:Z.path})})]),ie=se.slice(0,O.length),oe=se.slice(O.length);return await Promise.all([zm($,O,ie,ie.map(()=>X.signal),!1,b.loaderData),zm($,U.map(Z=>Z.match),oe,U.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:se,loaderResults:ie,fetcherResults:oe}}function W(){B=!0,Y.push(...Yr()),pe.forEach(($,N)=>{Q.has(N)&&(q.push(N),gt(N))})}function te($,N,O){O===void 0&&(O={}),b.fetchers.set($,N),Ke({fetchers:new Map(b.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function $e($,N,O,U){U===void 0&&(U={});let X=Ts(b.matches,N);at($),Ke({errors:{[X.route.id]:O},fetchers:new Map(b.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function et($){return u.v7_fetcherPersist&&(it.set($,(it.get($)||0)+1),Me.has($)&&Me.delete($)),b.fetchers.get($)||SE}function at($){let N=b.fetchers.get($);Q.has($)&&!(N&&N.state==="loading"&&J.has($))&>($),pe.delete($),J.delete($),re.delete($),Me.delete($),b.fetchers.delete($)}function qr($){if(u.v7_fetcherPersist){let N=(it.get($)||0)-1;N<=0?(it.delete($),Me.add($)):it.set($,N)}else at($);Ke({fetchers:new Map(b.fetchers)})}function gt($){let N=Q.get($);ue(N,"Expected fetch controller: "+$),N.abort(),Q.delete($)}function ko($){for(let N of $){let O=et(N),U=vr(O.data);b.fetchers.set(N,U)}}function jo(){let $=[],N=!1;for(let O of re){let U=b.fetchers.get(O);ue(U,"Expected fetcher: "+O),U.state==="loading"&&(re.delete(O),$.push(O),N=!0)}return ko($),N}function $o($){let N=[];for(let[O,U]of J)if(U<$){let X=b.fetchers.get(O);ue(X,"Expected fetcher: "+O),X.state==="loading"&&(gt(O),J.delete(O),N.push(O))}return ko(N),N.length>0}function Ro($,N){let O=b.blockers.get($)||rs;return ye.get($)!==N&&ye.set($,N),O}function No($){b.blockers.delete($),ye.delete($)}function cr($,N){let O=b.blockers.get($)||rs;ue(O.state==="unblocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="proceeding"||O.state==="blocked"&&N.state==="unblocked"||O.state==="proceeding"&&N.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+N.state);let U=new Map(b.blockers);U.set($,N),Ke({blockers:U})}function To($){let{currentLocation:N,nextLocation:O,historyAction:U}=$;if(ye.size===0)return;ye.size>1&&Fr(!1,"A router only supports one blocker at a time");let X=Array.from(ye.entries()),[se,ie]=X[X.length-1],oe=b.blockers.get(se);if(!(oe&&oe.state==="proceeding")&&ie({currentLocation:N,nextLocation:O,historyAction:U}))return se}function Yr($){let N=[];return He.forEach((O,U)=>{(!$||$(U))&&(O.cancel(),N.push(U),He.delete(U))}),N}function au($,N,O){if(p=$,m=N,g=O||null,!y&&b.navigation===Fu){y=!0;let U=vh(b.location,b.matches);U!=null&&Ke({restoreScrollPosition:U})}return()=>{p=null,m=null,g=null}}function gh($,N){return g&&g($,N.map(U=>QS(U,b.loaderData)))||$.key}function m_($,N){if(p&&m){let O=gh($,N);p[O]=m()}}function vh($,N){if(p){let O=gh($,N),U=p[O];if(typeof U=="number")return U}return null}function g_($){i={},l=of($,o,void 0,i)}return E={get basename(){return a},get future(){return u},get state(){return b},get routes(){return s},get window(){return t},initialize:xn,subscribe:Eo,enableScrollRestoration:au,navigate:on,fetch:Ki,revalidate:Kr,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:et,deleteFetcher:qr,dispose:Dn,getBlocker:Ro,deleteBlocker:No,_internalFetchControllers:Q,_internalActiveDeferreds:He,_internalSetRoutes:g_},E}function kE(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sf(e,t,n,r,o,i,s,l){let a,u;if(s){a=[];for(let f of t)if(a.push(f),f.route.id===s){u=f;break}}else a=t,u=t[t.length-1];let d=hE(o||".",pE(a,i),ya(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Dp(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:lo([n,d.pathname])),va(d)}function Tm(e,t,n,r){if(!r||!kE(r))return{path:n};if(r.formMethod&&!AE(r.formMethod))return{path:n,error:Vt(405,{method:r.formMethod})};let o=()=>({path:n,error:Vt(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),l=y1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!un(s))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,m)=>{let[y,w]=m;return""+g+y+"="+w+` + */function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GS(){return Math.random().toString(36).substr(2,8)}function Rm(e,t){return{usr:e.state,key:e.key,idx:t}}function na(e,t,n,r){return n===void 0&&(n=null),Le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?An(t):t,{state:n,key:t&&t.key||r||GS()})}function va(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function An(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=ze.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(Le({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=ze.Pop;let w=d(),v=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:v})}function p(w,v){l=ze.Push;let x=na(y.location,w,v);n&&n(x,w),u=d()+1;let _=Rm(x,u),C=y.createHref(x);try{s.pushState(_,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&a&&a({action:l,location:y.location,delta:1})}function g(w,v){l=ze.Replace;let x=na(y.location,w,v);n&&n(x,w),u=d();let _=Rm(x,u),C=y.createHref(x);s.replaceState(_,"",C),i&&a&&a({action:l,location:y.location,delta:0})}function m(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof w=="string"?w:va(w);return ue(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let y={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener($m,f),a=w,()=>{o.removeEventListener($m,f),a=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let v=m(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:g,go(w){return s.go(w)}};return y}var De;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(De||(De={}));const qS=new Set(["lazy","caseSensitive","path","id","index","children"]);function YS(e){return e.index===!0}function of(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,i],l=typeof o.id=="string"?o.id:s.join("-");if(ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),ue(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),YS(o)){let a=Le({},o,t(o),{id:l});return r[l]=a,a}else{let a=Le({},o,t(o),{id:l,children:void 0});return r[l]=a,o.children&&(a.children=of(o.children,t,s,r)),a}})}function ii(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?An(t):t,o=ya(r.pathname||"/",n);if(o==null)return null;let i=u1(e);XS(i);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=lo([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),u1(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:oE(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of d1(i.path))o(i,s,a)}),t}function d1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=d1(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function XS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JS=/^:\w+$/,ZS=3,eE=2,tE=1,nE=10,rE=-2,Nm=e=>e==="*";function oE(e,t){let n=e.split("/"),r=n.length;return n.some(Nm)&&(r+=rE),t&&(r+=eE),n.filter(o=>!Nm(o)).reduce((o,i)=>o+(JS.test(i)?ZS:i===""?tE:nE),r)}function iE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sE(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=l[f]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=l[f];return g&&!m?u[p]=void 0:u[p]=uE(m||"",p),u},{}),pathname:i,pathnameBase:s,pattern:e}}function lE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cE(e){try{return decodeURI(e)}catch(t){return Fr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function uE(e,t){try{return decodeURIComponent(e)}catch(n){return Fr(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ya(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?An(e):e;return{pathname:n?n.startsWith("/")?n:fE(n,t):t,search:gE(r),hash:vE(o)}}function fE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Lu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function f1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pE(e,t){let n=f1(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function hE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=An(e):(o=Le({},e),ue(!o.pathname||!o.pathname.includes("?"),Lu("?","pathname","search",o)),ue(!o.pathname||!o.pathname.includes("#"),Lu("#","pathname","hash",o)),ue(!o.search||!o.search.includes("#"),Lu("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else if(r){let f=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f.pop();o.pathname=p.join("/")}l="/"+f.join("/")}else{let f=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}l=f>=0?t[f]:"/"}let a=dE(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const lo=e=>e.join("/").replace(/\/\/+/g,"/"),mE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mp{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function p1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const h1=["post","put","patch","delete"],yE=new Set(h1),xE=["get",...h1],wE=new Set(xE),_E=new Set([301,302,303,307,308]),bE=new Set([307,308]),Fu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},SE={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},rs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},m1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,EE=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),g1="remix-router-transitions";function CE(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;o=N=>({hasErrorBoundary:$(N)})}else o=EE;let i={},s=of(e.routes,o,void 0,i),l,a=e.basename||"/",u=Le({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,p=null,g=null,m=null,y=e.hydrationData!=null,w=ii(s,e.history.location,a),v=null;if(w==null){let $=Vt(404,{pathname:e.history.location.pathname}),{matches:N,route:O}=Lm(s);w=N,v={[O.id]:$}}let x,_=w.some($=>$.route.lazy),C=w.some($=>$.route.loader);if(_)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,N=e.hydrationData?e.hydrationData.errors:null;x=w.every(O=>O.route.loader&&O.route.loader.hydrate!==!0&&($&&$[O.route.id]!==void 0||N&&N[O.route.id]!==void 0))}else x=e.hydrationData!=null;let E,b={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:Fu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},k=ze.Pop,j=!1,P,T=!1,M=new Map,I=null,H=!1,z=!1,Y=[],q=[],Q=new Map,L=0,V=-1,J=new Map,re=new Set,pe=new Map,it=new Map,Me=new Set,He=new Map,ye=new Map,st=!1;function xn(){if(d=e.history.listen($=>{let{action:N,location:O,delta:B}=$;if(st){st=!1;return}Fr(ye.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=To({currentLocation:b.location,nextLocation:O,historyAction:N});if(X&&B!=null){st=!0,e.history.go(B*-1),cr(X,{state:"blocked",location:O,proceed(){cr(X,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(B)},reset(){let se=new Map(b.blockers);se.set(X,rs),Ke({blockers:se})}});return}return qe(N,O)}),n){IE(t,M);let $=()=>LE(t,M);t.addEventListener("pagehide",$),I=()=>t.removeEventListener("pagehide",$)}return b.initialized||qe(ze.Pop,b.location,{initialHydration:!0}),E}function Dn(){d&&d(),I&&I(),f.clear(),P&&P.abort(),b.fetchers.forEach(($,N)=>at(N)),b.blockers.forEach(($,N)=>No(N))}function Eo($){return f.add($),()=>f.delete($)}function Ke($,N){N===void 0&&(N={}),b=Le({},b,$);let O=[],B=[];u.v7_fetcherPersist&&b.fetchers.forEach((X,se)=>{X.state==="idle"&&(Me.has(se)?B.push(se):O.push(se))}),[...f].forEach(X=>X(b,{deletedFetchers:B,unstable_viewTransitionOpts:N.viewTransitionOpts,unstable_flushSync:N.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(X=>b.fetchers.delete(X)),B.forEach(X=>at(X)))}function wn($,N,O){var B,X;let{flushSync:se}=O===void 0?{}:O,ie=b.actionData!=null&&b.navigation.formMethod!=null&&un(b.navigation.formMethod)&&b.navigation.state==="loading"&&((B=$.state)==null?void 0:B._isRedirect)!==!0,oe;N.actionData?Object.keys(N.actionData).length>0?oe=N.actionData:oe=null:ie?oe=b.actionData:oe=null;let Z=N.loaderData?Im(b.loaderData,N.loaderData,N.matches||[],N.errors):b.loaderData,ce=b.blockers;ce.size>0&&(ce=new Map(ce),ce.forEach((we,tt)=>ce.set(tt,rs)));let Ye=j===!0||b.navigation.formMethod!=null&&un(b.navigation.formMethod)&&((X=$.state)==null?void 0:X._isRedirect)!==!0;l&&(s=l,l=void 0),H||k===ze.Pop||(k===ze.Push?e.history.push($,$.state):k===ze.Replace&&e.history.replace($,$.state));let ae;if(k===ze.Pop){let we=M.get(b.location.pathname);we&&we.has($.pathname)?ae={currentLocation:b.location,nextLocation:$}:M.has($.pathname)&&(ae={currentLocation:$,nextLocation:b.location})}else if(T){let we=M.get(b.location.pathname);we?we.add($.pathname):(we=new Set([$.pathname]),M.set(b.location.pathname,we)),ae={currentLocation:b.location,nextLocation:$}}Ke(Le({},N,{actionData:oe,loaderData:Z,historyAction:k,location:$,initialized:!0,navigation:Fu,revalidation:"idle",restoreScrollPosition:vh($,N.matches||b.matches),preventScrollReset:Ye,blockers:ce}),{viewTransitionOpts:ae,flushSync:se===!0}),k=ze.Pop,j=!1,T=!1,H=!1,z=!1,Y=[],q=[]}async function on($,N){if(typeof $=="number"){e.history.go($);return}let O=sf(b.location,b.matches,a,u.v7_prependBasename,$,u.v7_relativeSplatPath,N==null?void 0:N.fromRouteId,N==null?void 0:N.relative),{path:B,submission:X,error:se}=Tm(u.v7_normalizeFormMethod,!1,O,N),ie=b.location,oe=na(b.location,B,N&&N.state);oe=Le({},oe,e.history.encodeLocation(oe));let Z=N&&N.replace!=null?N.replace:void 0,ce=ze.Push;Z===!0?ce=ze.Replace:Z===!1||X!=null&&un(X.formMethod)&&X.formAction===b.location.pathname+b.location.search&&(ce=ze.Replace);let Ye=N&&"preventScrollReset"in N?N.preventScrollReset===!0:void 0,ae=(N&&N.unstable_flushSync)===!0,we=To({currentLocation:ie,nextLocation:oe,historyAction:ce});if(we){cr(we,{state:"blocked",location:oe,proceed(){cr(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),on($,N)},reset(){let tt=new Map(b.blockers);tt.set(we,rs),Ke({blockers:tt})}});return}return await qe(ce,oe,{submission:X,pendingError:se,preventScrollReset:Ye,replace:N&&N.replace,enableViewTransition:N&&N.unstable_viewTransition,flushSync:ae})}function Kr(){if(W(),Ke({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){qe(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}qe(k||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation})}}async function qe($,N,O){P&&P.abort(),P=null,k=$,H=(O&&O.startUninterruptedRevalidation)===!0,m_(b.location,b.matches),j=(O&&O.preventScrollReset)===!0,T=(O&&O.enableViewTransition)===!0;let B=l||s,X=O&&O.overrideNavigation,se=ii(B,N,a),ie=(O&&O.flushSync)===!0;if(!se){let tt=Vt(404,{pathname:N.pathname}),{matches:Ht,route:Qe}=Lm(B);Yr(),wn(N,{matches:Ht,loaderData:{},errors:{[Qe.id]:tt}},{flushSync:ie});return}if(b.initialized&&!z&&TE(b.location,N)&&!(O&&O.submission&&un(O.submission.formMethod))){wn(N,{matches:se},{flushSync:ie});return}P=new AbortController;let oe=is(e.history,N,P.signal,O&&O.submission),Z,ce;if(O&&O.pendingError)ce={[Ts(se).route.id]:O.pendingError};else if(O&&O.submission&&un(O.submission.formMethod)){let tt=await In(oe,N,O.submission,se,{replace:O.replace,flushSync:ie});if(tt.shortCircuited)return;Z=tt.pendingActionData,ce=tt.pendingActionError,X=zu(N,O.submission),ie=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Ye,loaderData:ae,errors:we}=await Gi(oe,N,se,X,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ie,Z,ce);Ye||(P=null,wn(N,Le({matches:se},Z?{actionData:Z}:{},{loaderData:ae,errors:we})))}async function In($,N,O,B,X){X===void 0&&(X={}),W();let se=ME(N,O);Ke({navigation:se},{flushSync:X.flushSync===!0});let ie,oe=lf(B,N);if(!oe.route.action&&!oe.route.lazy)ie={type:De.error,error:Vt(405,{method:$.method,pathname:N.pathname,routeId:oe.route.id})};else if(ie=await os("action",$,oe,B,i,o,a,u.v7_relativeSplatPath),$.signal.aborted)return{shortCircuited:!0};if(gi(ie)){let Z;return X&&X.replace!=null?Z=X.replace:Z=ie.location===b.location.pathname+b.location.search,await Pt(b,ie,{submission:O,replace:Z}),{shortCircuited:!0}}if(Ps(ie)){let Z=Ts(B,oe.route.id);return(X&&X.replace)!==!0&&(k=ze.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:ie.error}}}if(oo(ie))throw Vt(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ie.data}}}async function Gi($,N,O,B,X,se,ie,oe,Z,ce,Ye){let ae=B||zu(N,X),we=X||se||Bm(ae),tt=l||s,[Ht,Qe]=Pm(e.history,b,O,we,N,u.v7_partialHydration&&oe===!0,z,Y,q,Me,pe,re,tt,a,ce,Ye);if(Yr(xe=>!(O&&O.some(ke=>ke.route.id===xe))||Ht&&Ht.some(ke=>ke.route.id===xe)),V=++L,Ht.length===0&&Qe.length===0){let xe=jo();return wn(N,Le({matches:O,loaderData:{},errors:Ye||null},ce?{actionData:ce}:{},xe?{fetchers:new Map(b.fetchers)}:{}),{flushSync:Z}),{shortCircuited:!0}}if(!H&&(!u.v7_partialHydration||!oe)){Qe.forEach(ke=>{let _n=b.fetchers.get(ke.key),Aa=ss(void 0,_n?_n.data:void 0);b.fetchers.set(ke.key,Aa)});let xe=ce||b.actionData;Ke(Le({navigation:ae},xe?Object.keys(xe).length===0?{actionData:null}:{actionData:xe}:{},Qe.length>0?{fetchers:new Map(b.fetchers)}:{}),{flushSync:Z})}Qe.forEach(xe=>{Q.has(xe.key)&>(xe.key),xe.controller&&Q.set(xe.key,xe.controller)});let Po=()=>Qe.forEach(xe=>gt(xe.key));P&&P.signal.addEventListener("abort",Po);let{results:lu,loaderResults:Oo,fetcherResults:ur}=await Pa(b.matches,O,Ht,Qe,$);if($.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Po),Qe.forEach(xe=>Q.delete(xe.key));let Qr=Fm(lu);if(Qr){if(Qr.idx>=Ht.length){let xe=Qe[Qr.idx-Ht.length].key;re.add(xe)}return await Pt(b,Qr.result,{replace:ie}),{shortCircuited:!0}}let{loaderData:cu,errors:uu}=Dm(b,O,Ht,Oo,Ye,Qe,ur,He);He.forEach((xe,ke)=>{xe.subscribe(_n=>{(_n||xe.done)&&He.delete(ke)})});let du=jo(),Ao=$o(V),Oa=du||Ao||Qe.length>0;return Le({loaderData:cu,errors:uu},Oa?{fetchers:new Map(b.fetchers)}:{})}function Ki($,N,O,B){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Q.has($)&>($);let X=(B&&B.unstable_flushSync)===!0,se=l||s,ie=sf(b.location,b.matches,a,u.v7_prependBasename,O,u.v7_relativeSplatPath,N,B==null?void 0:B.relative),oe=ii(se,ie,a);if(!oe){$e($,N,Vt(404,{pathname:ie}),{flushSync:X});return}let{path:Z,submission:ce,error:Ye}=Tm(u.v7_normalizeFormMethod,!0,ie,B);if(Ye){$e($,N,Ye,{flushSync:X});return}let ae=lf(oe,Z);if(j=(B&&B.preventScrollReset)===!0,ce&&un(ce.formMethod)){qi($,N,Z,ae,oe,X,ce);return}pe.set($,{routeId:N,path:Z}),Co($,N,Z,ae,oe,X,ce)}async function qi($,N,O,B,X,se,ie){if(W(),pe.delete($),!B.route.action&&!B.route.lazy){let ke=Vt(405,{method:ie.formMethod,pathname:O,routeId:N});$e($,N,ke,{flushSync:se});return}let oe=b.fetchers.get($);te($,DE(ie,oe),{flushSync:se});let Z=new AbortController,ce=is(e.history,O,Z.signal,ie);Q.set($,Z);let Ye=L,ae=await os("action",ce,B,X,i,o,a,u.v7_relativeSplatPath);if(ce.signal.aborted){Q.get($)===Z&&Q.delete($);return}if(Me.has($)){te($,vr(void 0));return}if(gi(ae))if(Q.delete($),V>Ye){te($,vr(void 0));return}else return re.add($),te($,ss(ie)),Pt(b,ae,{fetcherSubmission:ie});if(Ps(ae)){$e($,N,ae.error);return}if(oo(ae))throw Vt(400,{type:"defer-action"});let we=b.navigation.location||b.location,tt=is(e.history,we,Z.signal),Ht=l||s,Qe=b.navigation.state!=="idle"?ii(Ht,b.navigation.location,a):b.matches;ue(Qe,"Didn't find any matches after fetcher action");let Po=++L;J.set($,Po);let lu=ss(ie,ae.data);b.fetchers.set($,lu);let[Oo,ur]=Pm(e.history,b,Qe,ie,we,!1,z,Y,q,Me,pe,re,Ht,a,{[B.route.id]:ae.data},void 0);ur.filter(ke=>ke.key!==$).forEach(ke=>{let _n=ke.key,Aa=b.fetchers.get(_n),v_=ss(void 0,Aa?Aa.data:void 0);b.fetchers.set(_n,v_),Q.has(_n)&>(_n),ke.controller&&Q.set(_n,ke.controller)}),Ke({fetchers:new Map(b.fetchers)});let Qr=()=>ur.forEach(ke=>gt(ke.key));Z.signal.addEventListener("abort",Qr);let{results:cu,loaderResults:uu,fetcherResults:du}=await Pa(b.matches,Qe,Oo,ur,tt);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Qr),J.delete($),Q.delete($),ur.forEach(ke=>Q.delete(ke.key));let Ao=Fm(cu);if(Ao){if(Ao.idx>=Oo.length){let ke=ur[Ao.idx-Oo.length].key;re.add(ke)}return Pt(b,Ao.result)}let{loaderData:Oa,errors:xe}=Dm(b,b.matches,Oo,uu,void 0,ur,du,He);if(b.fetchers.has($)){let ke=vr(ae.data);b.fetchers.set($,ke)}$o(Po),b.navigation.state==="loading"&&Po>V?(ue(k,"Expected pending action"),P&&P.abort(),wn(b.navigation.location,{matches:Qe,loaderData:Oa,errors:xe,fetchers:new Map(b.fetchers)})):(Ke({errors:xe,loaderData:Im(b.loaderData,Oa,Qe,xe),fetchers:new Map(b.fetchers)}),z=!1)}async function Co($,N,O,B,X,se,ie){let oe=b.fetchers.get($);te($,ss(ie,oe?oe.data:void 0),{flushSync:se});let Z=new AbortController,ce=is(e.history,O,Z.signal);Q.set($,Z);let Ye=L,ae=await os("loader",ce,B,X,i,o,a,u.v7_relativeSplatPath);if(oo(ae)&&(ae=await x1(ae,ce.signal,!0)||ae),Q.get($)===Z&&Q.delete($),!ce.signal.aborted){if(Me.has($)){te($,vr(void 0));return}if(gi(ae))if(V>Ye){te($,vr(void 0));return}else{re.add($),await Pt(b,ae);return}if(Ps(ae)){$e($,N,ae.error);return}ue(!oo(ae),"Unhandled fetcher deferred data"),te($,vr(ae.data))}}async function Pt($,N,O){let{submission:B,fetcherSubmission:X,replace:se}=O===void 0?{}:O;N.revalidate&&(z=!0);let ie=na($.location,N.location,{_isRedirect:!0});if(ue(ie,"Expected a location on the redirect navigation"),n){let we=!1;if(N.reloadDocument)we=!0;else if(m1.test(N.location)){const tt=e.history.createURL(N.location);we=tt.origin!==t.location.origin||ya(tt.pathname,a)==null}if(we){se?t.location.replace(N.location):t.location.assign(N.location);return}}P=null;let oe=se===!0?ze.Replace:ze.Push,{formMethod:Z,formAction:ce,formEncType:Ye}=$.navigation;!B&&!X&&Z&&ce&&Ye&&(B=Bm($.navigation));let ae=B||X;if(bE.has(N.status)&&ae&&un(ae.formMethod))await qe(oe,ie,{submission:Le({},ae,{formAction:N.location}),preventScrollReset:j});else{let we=zu(ie,B);await qe(oe,ie,{overrideNavigation:we,fetcherSubmission:X,preventScrollReset:j})}}async function Pa($,N,O,B,X){let se=await Promise.all([...O.map(Z=>os("loader",X,Z,N,i,o,a,u.v7_relativeSplatPath)),...B.map(Z=>Z.matches&&Z.match&&Z.controller?os("loader",is(e.history,Z.path,Z.controller.signal),Z.match,Z.matches,i,o,a,u.v7_relativeSplatPath):{type:De.error,error:Vt(404,{pathname:Z.path})})]),ie=se.slice(0,O.length),oe=se.slice(O.length);return await Promise.all([zm($,O,ie,ie.map(()=>X.signal),!1,b.loaderData),zm($,B.map(Z=>Z.match),oe,B.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:se,loaderResults:ie,fetcherResults:oe}}function W(){z=!0,Y.push(...Yr()),pe.forEach(($,N)=>{Q.has(N)&&(q.push(N),gt(N))})}function te($,N,O){O===void 0&&(O={}),b.fetchers.set($,N),Ke({fetchers:new Map(b.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function $e($,N,O,B){B===void 0&&(B={});let X=Ts(b.matches,N);at($),Ke({errors:{[X.route.id]:O},fetchers:new Map(b.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function et($){return u.v7_fetcherPersist&&(it.set($,(it.get($)||0)+1),Me.has($)&&Me.delete($)),b.fetchers.get($)||SE}function at($){let N=b.fetchers.get($);Q.has($)&&!(N&&N.state==="loading"&&J.has($))&>($),pe.delete($),J.delete($),re.delete($),Me.delete($),b.fetchers.delete($)}function qr($){if(u.v7_fetcherPersist){let N=(it.get($)||0)-1;N<=0?(it.delete($),Me.add($)):it.set($,N)}else at($);Ke({fetchers:new Map(b.fetchers)})}function gt($){let N=Q.get($);ue(N,"Expected fetch controller: "+$),N.abort(),Q.delete($)}function ko($){for(let N of $){let O=et(N),B=vr(O.data);b.fetchers.set(N,B)}}function jo(){let $=[],N=!1;for(let O of re){let B=b.fetchers.get(O);ue(B,"Expected fetcher: "+O),B.state==="loading"&&(re.delete(O),$.push(O),N=!0)}return ko($),N}function $o($){let N=[];for(let[O,B]of J)if(B<$){let X=b.fetchers.get(O);ue(X,"Expected fetcher: "+O),X.state==="loading"&&(gt(O),J.delete(O),N.push(O))}return ko(N),N.length>0}function Ro($,N){let O=b.blockers.get($)||rs;return ye.get($)!==N&&ye.set($,N),O}function No($){b.blockers.delete($),ye.delete($)}function cr($,N){let O=b.blockers.get($)||rs;ue(O.state==="unblocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="proceeding"||O.state==="blocked"&&N.state==="unblocked"||O.state==="proceeding"&&N.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+N.state);let B=new Map(b.blockers);B.set($,N),Ke({blockers:B})}function To($){let{currentLocation:N,nextLocation:O,historyAction:B}=$;if(ye.size===0)return;ye.size>1&&Fr(!1,"A router only supports one blocker at a time");let X=Array.from(ye.entries()),[se,ie]=X[X.length-1],oe=b.blockers.get(se);if(!(oe&&oe.state==="proceeding")&&ie({currentLocation:N,nextLocation:O,historyAction:B}))return se}function Yr($){let N=[];return He.forEach((O,B)=>{(!$||$(B))&&(O.cancel(),N.push(B),He.delete(B))}),N}function au($,N,O){if(p=$,m=N,g=O||null,!y&&b.navigation===Fu){y=!0;let B=vh(b.location,b.matches);B!=null&&Ke({restoreScrollPosition:B})}return()=>{p=null,m=null,g=null}}function gh($,N){return g&&g($,N.map(B=>QS(B,b.loaderData)))||$.key}function m_($,N){if(p&&m){let O=gh($,N);p[O]=m()}}function vh($,N){if(p){let O=gh($,N),B=p[O];if(typeof B=="number")return B}return null}function g_($){i={},l=of($,o,void 0,i)}return E={get basename(){return a},get future(){return u},get state(){return b},get routes(){return s},get window(){return t},initialize:xn,subscribe:Eo,enableScrollRestoration:au,navigate:on,fetch:Ki,revalidate:Kr,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:et,deleteFetcher:qr,dispose:Dn,getBlocker:Ro,deleteBlocker:No,_internalFetchControllers:Q,_internalActiveDeferreds:He,_internalSetRoutes:g_},E}function kE(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sf(e,t,n,r,o,i,s,l){let a,u;if(s){a=[];for(let f of t)if(a.push(f),f.route.id===s){u=f;break}}else a=t,u=t[t.length-1];let d=hE(o||".",pE(a,i),ya(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Dp(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:lo([n,d.pathname])),va(d)}function Tm(e,t,n,r){if(!r||!kE(r))return{path:n};if(r.formMethod&&!AE(r.formMethod))return{path:n,error:Vt(405,{method:r.formMethod})};let o=()=>({path:n,error:Vt(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),l=y1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!un(s))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,m)=>{let[y,w]=m;return""+g+y+"="+w+` `},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!un(s))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ue(typeof FormData=="function","FormData is not available in this environment");let a,u;if(r.formData)a=af(r.formData),u=r.formData;else if(r.body instanceof FormData)a=af(r.body),u=r.body;else if(r.body instanceof URLSearchParams)a=r.body,u=Mm(a);else if(r.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(r.body),u=Mm(a)}catch{return o()}let d={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(un(d.formMethod))return{path:n,submission:d};let f=An(n);return t&&f.search&&Dp(f.search)&&a.append("index",""),f.search="?"+a,{path:va(f),submission:d}}function jE(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Pm(e,t,n,r,o,i,s,l,a,u,d,f,p,g,m,y){let w=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),x=e.createURL(o),_=y?Object.keys(y)[0]:void 0,E=jE(n,_).filter((k,j)=>{if(i)return $E(t,k.route);if(k.route.lazy)return!0;if(k.route.loader==null)return!1;if(RE(t.loaderData,t.matches[j],k)||l.some(M=>M===k.route.id))return!0;let P=t.matches[j],T=k;return Om(k,Le({currentUrl:v,currentParams:P.params,nextUrl:x,nextParams:T.params},r,{actionResult:w,defaultShouldRevalidate:s||v.pathname+v.search===x.pathname+x.search||v.search!==x.search||v1(P,T)}))}),b=[];return d.forEach((k,j)=>{if(i||!n.some(H=>H.route.id===k.routeId)||u.has(j))return;let P=ii(p,k.path,g);if(!P){b.push({key:j,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(j),M=lf(P,k.path),I=!1;f.has(j)?I=!1:a.includes(j)?I=!0:T&&T.state!=="idle"&&T.data===void 0?I=s:I=Om(M,Le({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),I&&b.push({key:j,routeId:k.routeId,path:k.path,matches:P,match:M,controller:new AbortController})}),[E,b]}function $E(e,t){return t.loader?t.loader.hydrate?!0:e.loaderData[t.id]===void 0&&(!e.errors||e.errors[t.id]===void 0):!1}function RE(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function v1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Om(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Am(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ue(o,"No route found in manifest");let i={};for(let s in r){let a=o[s]!==void 0&&s!=="hasErrorBoundary";Fr(!a,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!a&&!qS.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,Le({},t(o),{lazy:void 0}))}async function os(e,t,n,r,o,i,s,l,a){a===void 0&&(a={});let u,d,f,p=y=>{let w,v=new Promise((x,_)=>w=_);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([y({request:t,params:n.params,context:a.requestContext}),v])};try{let y=n.route[e];if(n.route.lazy)if(y){let w,v=await Promise.all([p(y).catch(x=>{w=x}),Am(n.route,i,o)]);if(w)throw w;d=v[0]}else if(await Am(n.route,i,o),y=n.route[e],y)d=await p(y);else if(e==="action"){let w=new URL(t.url),v=w.pathname+w.search;throw Vt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:De.data,data:void 0};else if(y)d=await p(y);else{let w=new URL(t.url),v=w.pathname+w.search;throw Vt(404,{pathname:v})}ue(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){u=De.error,d=y}finally{f&&t.signal.removeEventListener("abort",f)}if(OE(d)){let y=d.status;if(_E.has(y)){let v=d.headers.get("Location");if(ue(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!m1.test(v))v=sf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!a.isStaticRequest){let x=new URL(t.url),_=v.startsWith("//")?new URL(x.protocol+v):new URL(v),C=ya(_.pathname,s)!=null;_.origin===x.origin&&C&&(v=_.pathname+_.search+_.hash)}if(a.isStaticRequest)throw d.headers.set("Location",v),d;return{type:De.redirect,status:y,location:v,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:u===De.error?De.error:De.data,response:d};let w;try{let v=d.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?w=await d.json():w=await d.text()}catch(v){return{type:De.error,error:v}}return u===De.error?{type:u,error:new Mp(y,d.statusText,w),headers:d.headers}:{type:De.data,data:w,statusCode:d.status,headers:d.headers}}if(u===De.error)return{type:u,error:d};if(PE(d)){var g,m;return{type:De.deferred,deferredData:d,statusCode:(g=d.init)==null?void 0:g.status,headers:((m=d.init)==null?void 0:m.headers)&&new Headers(d.init.headers)}}return{type:De.data,data:d}}function is(e,t,n,r){let o=e.createURL(y1(t)).toString(),i={signal:n};if(r&&un(r.formMethod)){let{formMethod:s,formEncType:l}=r;i.method=s.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=af(r.formData):i.body=r.formData}return new Request(o,i)}function af(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Mm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function NE(e,t,n,r,o){let i={},s=null,l,a=!1,u={};return n.forEach((d,f)=>{let p=t[f].route.id;if(ue(!gi(d),"Cannot handle redirect results in processLoaderData"),Ps(d)){let g=Ts(e,p),m=d.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=m),i[p]=void 0,a||(a=!0,l=p1(d.error)?d.error.status:500),d.headers&&(u[p]=d.headers)}else oo(d)?(o.set(p,d.deferredData),i[p]=d.deferredData.data):i[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!a&&(l=d.statusCode),d.headers&&(u[p]=d.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:l||200,loaderHeaders:u}}function Dm(e,t,n,r,o,i,s,l){let{loaderData:a,errors:u}=NE(t,n,r,o,l);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Lm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Vt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Mp(e||500,s,new Error(l),!0)}function Fm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(gi(n))return{result:n,idx:t}}}function y1(e){let t=typeof e=="string"?An(e):e;return va(Le({},t,{hash:""}))}function TE(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function oo(e){return e.type===De.deferred}function Ps(e){return e.type===De.error}function gi(e){return(e&&e.type)===De.redirect}function PE(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function OE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function AE(e){return wE.has(e.toLowerCase())}function un(e){return yE.has(e.toLowerCase())}async function zm(e,t,n,r,o,i){for(let s=0;sf.route.id===a.route.id),d=u!=null&&!v1(u,a)&&(i&&i[a.route.id])!==void 0;if(oo(l)&&(o||d)){let f=r[s];ue(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await x1(l,f,o).then(p=>{p&&(n[s]=p||n[s])})}}}async function x1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:De.data,data:e.deferredData.unwrappedData}}catch(o){return{type:De.error,error:o}}return{type:De.data,data:e.deferredData.data}}}function Dp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function lf(e,t){let n=typeof t=="string"?An(t).search:t.search;if(e[e.length-1].route.index&&Dp(n||""))return e[e.length-1];let r=f1(e);return r[r.length-1]}function Bm(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function zu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ME(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ss(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function DE(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function vr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function IE(e,t){try{let n=e.sessionStorage.getItem(g1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function LE(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(g1,JSON.stringify(n))}catch(r){Fr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.0 * @@ -65,11 +65,11 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function cc(){return cc=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 cC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[s,l]=h.useState(),[a,u]=h.useState({isTransitioning:!1}),[d,f]=h.useState(),[p,g]=h.useState(),[m,y]=h.useState(),w=h.useRef(new Map),{v7_startTransition:v}=r||{},x=h.useCallback(k=>{v?aC(k):k()},[v]),_=h.useCallback((k,j)=>{let{deletedFetchers:P,unstable_flushSync:T,unstable_viewTransitionOpts:M}=j;P.forEach(H=>w.current.delete(H)),k.fetchers.forEach((H,B)=>{H.data!==void 0&&w.current.set(B,H.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){T?as(()=>i(k)):x(()=>i(k));return}if(T){as(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let H=n.window.document.startViewTransition(()=>{as(()=>i(k))});H.finished.finally(()=>{as(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),as(()=>g(H));return}p?(d&&d.resolve(),p.skipTransition(),y({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,p,d,w,x]);h.useLayoutEffect(()=>n.subscribe(_),[n,_]),h.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new lC)},[a]),h.useEffect(()=>{if(d&&s&&n.window){let k=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{x(()=>i(k)),await j});P.finished.finally(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(P)}},[x,s,d,n.window]),h.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),h.useEffect(()=>{!a.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[a.isTransitioning,m]),h.useEffect(()=>{},[]);let C=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,j,P)=>n.navigate(k,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,j,P)=>n.navigate(k,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),E=n.basename||"/",b=h.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return h.createElement(h.Fragment,null,h.createElement(w1.Provider,{value:b},h.createElement(_1.Provider,{value:o},h.createElement(oC.Provider,{value:w.current},h.createElement(rC.Provider,{value:a},h.createElement(JE,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(uC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function uC(e){let{routes:t,future:n,state:r}=e;return BE(t,void 0,r,n)}var Vm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vm||(Vm={}));var Gm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gm||(Gm={}));var R=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(R||{}),z=(e=>(e.interview="interview",e.all="all",e))(z||{});const Km=[R.Easy,R.Medium,R.Hard];function wa(e){return new Map([...e.entries()].sort((t,n)=>{const r=Km.indexOf(t[1].difficulty),o=Km.indexOf(n[1].difficulty);return r-o}))}const dC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:R.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:R.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[z.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:R.Easy,developer:"officialbidisha",tags:[z.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:R.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[z.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:R.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:R.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:R.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:R.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);wa(dC);const fC=new Map([["counter",{title:"Counter",link:"counter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[z.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:R.Easy,developer:"X0rD3v1L",tags:[z.interview]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:R.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:R.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:R.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[z.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:R.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[z.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:R.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:R.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:R.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:R.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:R.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:R.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:R.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:R.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:R.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:R.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:R.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:R.Medium,developer:"shruti-sen2004",tags:[z.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:R.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[z.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:R.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:R.Medium,developer:"srijanB7",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:R.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:R.Medium,developer:"Kei-K23",tags:[z.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:R.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:R.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:R.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}]]);wa(fC);const pC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[z.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:R.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:R.Easy,developer:"Bhushan1019",tags:[z.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:R.Easy,tags:[z.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:R.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:R.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:R.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:R.Easy,developer:"deepakrajkranti",tags:[z.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:R.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:R.Easy,developer:"NikhilJHA01",tags:[z.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"rashidtvmr",tags:[z.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:R.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:R.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:R.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:R.Easy,developer:"codechitra",tags:[z.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:R.Medium,developer:"liza",tags:[z.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:R.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:R.Medium,developer:"rishabhm05",tags:[z.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:R.Medium,developer:"deepu0",tags:[z.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:R.Medium,developer:"rishabhm05",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:R.Medium,developer:"deepu0",tags:[z.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:R.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:R.Medium,developer:"deepakrajkranti",tags:[z.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:R.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:R.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:R.Medium,developer:"rashidtvmr",tags:[z.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:R.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:R.Medium,developer:"AbhilashMadi",tags:[z.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:R.Medium,developer:"AbhilashMadi",tags:[z.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:R.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:R.Hard,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:R.Medium,developer:"DeePaK-HeeRaKaRi",tags:[z.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:R.Medium,developer:"ayush-dutt-sharma",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:R.Hard,developer:"rishabhm05",tags:[z.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:R.Hard,developer:"deepu0",tags:[z.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:R.Hard,developer:"deepu0",tags:[z.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:R.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:R.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:R.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:R.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:R.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:R.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}]]),qm=wa(pC),hC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:R.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:R.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:R.Medium,developer:"arpansaha13",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:R.Medium,developer:"jaydadhaniya",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:R.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:R.Medium,developer:"Shardik04",tags:[z.interview]}]]);wa(hC);const mC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:R.Easy,developer:"pankajparkar",tags:[z.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:R.Easy,developer:"pankajparkar",tags:[z.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"pankajparkar",tags:[z.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);wa(mC);const gC=[{direction:"Up",delta:[-1,0]},{direction:"Down",delta:[1,0]},{direction:"Left",delta:[0,-1]},{direction:"Right",delta:[0,1]}],vC="_tile_5pn2z_1",yC="_empty_5pn2z_5",xC="_correctTilePoz_5pn2z_17",wC="_moveLeft_5pn2z_17",_C="_moveRight_5pn2z_17",bC="_moveUp_5pn2z_17",SC="_moveDown_5pn2z_17",Ja={tile:vC,empty:yC,correctTilePoz:xC,moveLeft:wC,moveRight:_C,moveUp:bC,moveDown:SC,"move-left":"_move-left_5pn2z_1","move-right":"_move-right_5pn2z_1","move-up":"_move-up_5pn2z_1","move-down":"_move-down_5pn2z_1"};function EC({digit:e,onClick:t,isOnCorrectPoz:n,animDirection:r}){return c.jsx("div",{className:`${Ja.tile} ${e===0?Ja.empty:""} ${n?Ja.correctTilePoz:""} ${r?Ja[`move${r}`]:""}`,onClick:t,children:!!e&&e},e)}const CC="_grid_e2nmy_1",kC="_menu_e2nmy_9",Ym={grid:CC,menu:kC},jC=e=>{const t=e.length;let n=0;for(let r=0;re[o]&&(n+=1);return n%2===0},$C=e=>{const t=e.length;for(let n=0;n{let n;do n=$C(Array.from({length:e*t-1},(r,o)=>o+1));while(!jC(n));return n},Qm=(e=4,t=4)=>{const n=RC(e,t),r=Array.from({length:e},(o,i)=>n.slice(i*t,i*t+t));return r[e-1][t-1]=0,r};function NC(){const[e,t]=h.useState([]),[n,r]=h.useState(0),[o,i]=h.useState(!1),[s,l]=h.useState({moves:[],capacity:5}),[a,u]=h.useState({element:null,type:""}),d=w=>{const{moves:v,capacity:x}=s;v.length===x&&v.shift(),v.push(w)},f=(w,v)=>{const x=e.map(_=>[..._]);[x[w.row][w.col],x[v.row][v.col]]=[x[v.row][v.col],x[w.row][w.col]],t(x)},p=(w,v,x)=>{f(w,v),u({element:v,type:x}),setTimeout(()=>{u({element:null,type:""})},300)},g=(w,v=!0)=>{a.element||gC.forEach(x=>{const{direction:_,delta:C}=x,E=w.row+C[0],b=w.col+C[1];if(E>=0&&E<4&&b>=0&&b<4&&e[E][b]===0){if(p(w,{row:E,col:b},_),v){d({row:E,col:b}),r(n+1);return}r(n-1)}})},m=()=>{const{moves:w}=s;if(a.element||w.length===0)return;const v=w[w.length-1];g(v,!1),l({...s,moves:w.slice(0,w.length-1)})},y=()=>{t(Qm(4,4)),r(0),l({...s,moves:[]})};return h.useEffect(()=>{t(Qm(4,4))},[]),h.useEffect(()=>{const w=e.flat().every((v,x,_)=>v===x+1||x===_.length-1);i(w)},[e]),c.jsxs("div",{children:[c.jsx("div",{className:Ym.grid,children:e.map((w,v)=>w.map((x,_)=>c.jsx(EC,{animDirection:a.element&&a.element.col===_&&a.element.row===v?a.type:"",digit:x,onClick:()=>g({row:v,col:_}),isOnCorrectPoz:v*3+_+v+1===x},x)))}),c.jsxs("div",{className:Ym.menu,children:[c.jsx("button",{type:"button",onClick:y,children:"Reset"}),c.jsx("button",{type:"button",disabled:s.moves.length===0,onClick:m,children:"Undo"}),c.jsxs("p",{children:[o?"Congrats.":""," Total moves: ",n]})]})]})}function TC(){return c.jsxs("div",{children:[c.jsx("div",{children:c.jsx("p",{style:{textAlign:"center"},children:"Click on the box to move it and sort row-wise"})}),c.jsx(NC,{})]})}const PC="_App_150vf_1",OC="_accordion_150vf_6",kl={App:PC,accordion:OC,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},AC=({title:e,info:t,id:n,openAccordionId:r,setIdOfOpenAccordion:o})=>{const[i,s]=h.useState(!1),l=()=>{s(a=>!a),o(n)};return h.useEffect(()=>{r&&s(r===n)},[n,r]),c.jsxs("div",{className:kl.accordion,children:[c.jsxs("div",{className:kl["accordion-title"],children:[c.jsx("h3",{children:e}),c.jsx("button",{onClick:l,className:kl["accordion-icon"],children:i?"-":"+"})]}),i&&c.jsx("p",{children:t})]},n)},MC=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function DC(){const[e,t]=h.useState(!0),[n,r]=h.useState(null),o=(s=null)=>{r(e?null:s)},i=()=>{e&&r(-1),t(!e)};return c.jsxs("div",{className:kl.App,children:[c.jsxs("h4",{children:[c.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),c.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:i})]}),c.jsx("div",{children:MC.map(s=>c.jsx(AC,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:o,...s},s.id))})]})}class IC{constructor(t=[]){yh(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const o of n)r.hasOwnProperty(o)||(r[o]={}),r=r[o];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const o of t)if(r=r[o],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",o=[]){if(t.end&&(o.push(r),o.length===n))return o;for(const i in t)if(t.hasOwnProperty(i)&&(this.getWordsByDFS(t[i],n,r+i,o),o.length===n))break;return o}}const LC=e=>{const[n,r]=h.useState(""),[o,i]=h.useState([]),[s,l]=h.useState(null),a=h.useRef(new IC(e)),u=g=>{const m=g.target.value;r(g.target.value),i(m?a.current.getWordsFromTrie(m,5):[]),l(null)};return h.useEffect(()=>{if(s!==null){const g=o[s];r(g)}},[s,o]),[n,u,s,o,g=>{if(g.key==="Enter"&&s!==null){const m=o[s];r(m),i([]),l(null)}g.key==="ArrowDown"&&(g.preventDefault(),l(m=>m===null||m===o.length-1?0:m+1)),g.key==="ArrowUp"&&(g.preventDefault(),l(m=>m===null||m===0?o.length-1:m-1))},g=>{r(g),i([]),l(null)},g=>{l(g)}]},FC=["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"],zC="_main_xk16z_1",BC="_retryTimer_xk16z_15",UC="_suggestions_xk16z_21",HC="_highlight_xk16z_36",WC="_loader_xk16z_46",Sr={main:zC,retryTimer:BC,suggestions:UC,highlight:HC,loader:WC},VC=()=>{const[e,t,n,r,o,i,s]=LC(FC),l=h.useRef(null);return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",ref:l,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:o}),c.jsx("ul",{className:Sr.suggestions,children:r.map((a,u)=>c.jsx("li",{className:n===u?`${Sr.highlight}`:"",onClick:()=>i(a),onMouseOver:()=>s(u),onMouseLeave:()=>s(null),children:a},u))})]})};function GC(e,t=500){let n=null;return function(...o){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...o)}}const KC=5;async function Xm(e){const t={items:[],errorMsgFromApi:"",timeDelta:0};try{const n=await fetch(`https://api.github.com/search/users?per_page=${KC}&q=${e}`);if(n.status===403){const r=n.headers.get("x-ratelimit-reset");if(r!==null){const o=parseFloat(r);t.timeDelta=Math.ceil(o-Date.now()/1e3)}else t.timeDelta=60}else{const r=await n.json();t.items=r.items.map(o=>o.login)}return t}catch{return t.errorMsgFromApi="Error occurred while fetching suggestions",t}}function qC(){const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),[s,l]=h.useState(!1),[a,u]=h.useState(0),[d,f]=h.useState(""),p=h.useCallback(GC(async x=>{l(!0);try{const _=await Xm(x);u(_.timeDelta),_.errorMsgFromApi?(r([]),f(_.errorMsgFromApi)):_.items.length>0?(r(_.items),f("")):(r([]),f("No results found"))}catch{r([]),f("Error occurred while fetching suggestions")}l(!1)},300),[Xm]),g=()=>{r([]),i(null),f("")},m=x=>{if(x.key==="Enter"&&o!==null){const _=n[o];t(_),g()}x.key==="ArrowDown"&&(x.preventDefault(),i(_=>_===null||_===n.length-1?0:_+1)),x.key==="ArrowUp"&&(x.preventDefault(),i(_=>_===null||_===0?n.length-1:_-1))},y=x=>{const _=x.target.value;t(_),_.length>0?p(_):g()},w=x=>{t(x),g()};return h.useEffect(()=>{if(o!==null){const x=n[o];t(x)}},[o,n]),h.useEffect(()=>{const x=setTimeout(()=>{a>0&&u(_=>_-1)},1e3);return()=>clearTimeout(x)},[a]),{userText:e,suggestions:n,isLoading:s,suggestionFocus:o,errorMessage:d,retryAfter:a,handleInputChange:y,handleSuggestionClick:w,handleKeyDown:m,handleSuggestionFocus:x=>{i(x)}}}function YC(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:o,retryAfter:i,handleInputChange:s,handleSuggestionClick:l,handleKeyDown:a,handleSuggestionFocus:u}=qC();return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:a,onChange:s,disabled:i!==0}),n&&c.jsx("div",{id:"loader",className:Sr.loader}),o&&c.jsx("div",{id:"info",children:o}),i!==0&&c.jsx("div",{className:Sr.retryTimer,children:i}),c.jsx("ul",{className:Sr.suggestions,children:t.map((d,f)=>c.jsx("li",{className:r===f?`${Sr.highlight}`:"",onClick:()=>l(d),onMouseOver:()=>u(f),onMouseLeave:()=>u(null),children:d},f))})]})}const QC="_container_zsbjj_3",XC="_inputContainer_zsbjj_12",JC="_input_zsbjj_12",ZC="_button_zsbjj_23",ek="_result_zsbjj_35",Do={container:QC,inputContainer:XC,input:JC,button:ZC,result:ek},tk=()=>{const e=(a,u)=>{const d=g=>g.replace(/[^\w]/g,"").toLowerCase(),f=d(a),p=d(u);return f.split("").sort().join("")===p.split("").sort().join("")},[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(null),l=()=>{const a=e(t,r);s(a)};return c.jsxs("div",{className:Do.container,children:[c.jsxs("div",{className:Do.inputContainer,children:[c.jsx("input",{type:"text",placeholder:"Enter the first word or phrase",value:t,onChange:a=>n(a.target.value),className:Do.input}),c.jsx("input",{type:"text",placeholder:"Enter the second word or phrase",value:r,onChange:a=>o(a.target.value),className:Do.input}),c.jsx("button",{onClick:l,className:Do.button,children:"Check Anagram"})]}),i!==null&&c.jsx("p",{className:Do.result,children:i?"The words/phrases are anagrams!":"The words/phrases are not anagrams."})]})},nk=()=>c.jsx("div",{children:c.jsx(tk,{})}),rk="_App_7yaca_1",ok="_container_7yaca_1",ik="_input_7yaca_7",sk="_calculateButton_7yaca_21",ak="_card_7yaca_30",lk="_ranges_7yaca_41",vi={App:rk,container:ok,input:ik,calculateButton:sk,card:ak,ranges:lk},ck=({BMI:e,category:t})=>{const n=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return c.jsxs("div",{className:vi.card,children:[c.jsxs("h1",{children:["BMI = ",e]}),c.jsx("h3",{children:t}),c.jsx("p",{className:vi.ranges,children:"BMI weight ranges"}),n.map(r=>c.jsx("p",{children:r},r))]})},uk=({handleHeightChange:e,handleWeightChange:t,BMI:n,calculateBMI:r,category:o})=>c.jsxs("div",{className:vi.container,children:[c.jsxs("div",{className:vi.input,children:[c.jsxs("label",{htmlFor:"height",children:["Height ",c.jsx("span",{children:"(in cm)"})]}),c.jsx("input",{type:"text",name:"height",onChange:e}),c.jsxs("label",{htmlFor:"weight",children:["Weight ",c.jsx("span",{children:"(in kg)"})]}),c.jsx("input",{type:"text",name:"weight",onChange:t}),c.jsx("button",{className:vi.calculateButton,onClick:r,children:"Calculate"})]}),c.jsx(ck,{BMI:n,category:o})]}),dk=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),[o,i]=h.useState(null),[s,l]=h.useState(null);h.useEffect(()=>{if(o){let f=o<18.5?"Underweight":o<24.9?"Healthy Weight":o<29.9?"Overweight":"Obese";l(()=>f)}},[o]);const a=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&t(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},u=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&r(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},d=()=>{if(e&&n){const f=(n/(e*e/1e4)).toFixed(2);i(()=>f)}};return c.jsx("div",{className:vi.App,children:c.jsx(uk,{height:e,weight:n,handleHeightChange:a,handleWeightChange:u,BMI:o,calculateBMI:d,category:s})})},fk="/frontend-mini-challenges/react/assets/logo-Cv_hAIcG.png",pk="_navbar_1ezkj_1",hk="_left_1ezkj_11",mk="_back_1ezkj_17",gk="_logo_1ezkj_25",vk="_right_1ezkj_43",yk="_source_code_1ezkj_51",xk="_github_1ezkj_68",wk="_responsive_nav_1ezkj_73",_k="_hamburger_1ezkj_89",bk="_line_1ezkj_105",Sk="_menu_1ezkj_126",Ot={navbar:pk,left:hk,back:mk,logo:gk,right:vk,source_code:yk,github:xk,responsive_nav:wk,hamburger:_k,line:bk,menu:Sk};var Ek={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/react/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:uc,VITE_HOST_URL:E1,DEV:C1}=Ek,Ck=C1?`${E1}${uc}/#/react`:`/${uc}/#/react/`,kk=C1?`${E1}${uc}/`:`/${uc}/`,Jm="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/react/src/challenges/";function jk({title:e,link:t}){return c.jsxs("nav",{className:Ot.navbar,children:[c.jsxs("div",{className:Ot.left,children:[c.jsx("a",{href:Ck,className:Ot.back,children:"<"}),c.jsx("a",{className:Ot.logo,href:kk,children:c.jsx("img",{src:fk,alt:"logo"})})]}),c.jsx("h1",{children:e}),c.jsxs("div",{className:Ot.right,children:[c.jsx("div",{className:Ot.source_code,children:t?c.jsxs("a",{href:Jm+t,target:"_blank",rel:"noreferrer",children:[c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link",children:[c.jsx("path",{d:"M15 3h6v6"}),c.jsx("path",{d:"M10 14 21 3"}),c.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})," ","Source code"]}):null}),c.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:c.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:Ot.github})}),c.jsx("div",{className:Ot.responsive_nav,children:c.jsxs("div",{className:Ot.hamburger,children:[c.jsx("input",{type:"checkbox"}),c.jsx("div",{className:Ot.line}),c.jsx("div",{className:Ot.line}),c.jsx("div",{className:Ot.line}),c.jsx("section",{className:Ot.menu,children:c.jsx("ul",{children:t?c.jsx("a",{href:Jm+t,target:"blank",children:c.jsxs("li",{children:[c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link",children:[c.jsx("path",{d:"M15 3h6v6"}),c.jsx("path",{d:"M10 14 21 3"}),c.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})," ","Source code"]})}):null})})]})})]})]})}const $k="_container_10e68_1",Rk="_button_10e68_7",Zm={container:$k,button:Rk},Nk=e=>{if(!e){const t="0123456789ABCDEF";e="#";for(let n=0;n<6;n++)e+=t[Math.floor(Math.random()*16)]}return e},Tk=()=>{const e=t=>{document.body.style.backgroundColor=t};return h.useEffect(()=>()=>e("unset"),[]),c.jsx("div",{className:Zm.container,children:c.jsx("button",{type:"button",className:Zm.button,onClick:()=>e(Nk()),children:"Change Color!! 😎"})})},Io={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function Pk(e,t){const n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),l=parseInt(t.slice(5,7),16);return`#${Math.round((n+i)/2).toString(16)}${Math.round((r+s)/2).toString(16)}${Math.round((o+l)/2).toString(16)}`}function Ok(){const[e,t]=h.useState("#FF5733"),[n,r]=h.useState("#33FF57"),o=s=>{const{name:l,value:a}=s.target;l==="color1"?t(a):r(a)},i=()=>{t("#FF5733"),r("#33FF57")};return c.jsxs("div",{className:Io["color-mixing-container"],children:[c.jsx("div",{className:Io["color-box-top"],style:{backgroundColor:Pk(e,n)},children:c.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),c.jsxs("div",{className:Io["color-inputs"],children:[c.jsxs("div",{className:Io["color-input"],children:[c.jsx("label",{htmlFor:"color1",children:"Color 1"}),c.jsx("input",{type:"color",name:"color1",value:e,onChange:o})]}),c.jsxs("div",{className:Io["color-input"],children:[c.jsx("label",{htmlFor:"color2",children:"Color 2"}),c.jsx("input",{type:"color",name:"color2",value:n,onChange:o})]}),c.jsx("button",{className:Io["mix-button"],onClick:i,style:{marginTop:"1rem"},children:"Reset"})]})]})}const Ak="_main_pfcqp_1",Mk="_size_pfcqp_5",Dk="_grid_pfcqp_13",Ik="_cell_pfcqp_17",dc={main:Ak,size:Mk,grid:Dk,cell:Ik};function Lk({columns:e,values:t}){return c.jsx("table",{className:dc.grid,style:{gridTemplateColumns:`repeat(${e}, 50px)`},children:c.jsx("tbody",{children:t.map((n,r)=>c.jsx("tr",{children:n.map(o=>c.jsx("td",{className:dc.cell,children:o},o))},r))})})}function Fk({rows:e,setRows:t,columns:n,setColumns:r}){return c.jsxs("section",{className:dc.size,children:[c.jsxs("label",{htmlFor:"rows",children:["Rows :: ",e]}),c.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:e,onChange:o=>t(+o.target.value)}),c.jsxs("label",{htmlFor:"columns",children:["Columns :: ",n]}),c.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:n,onChange:o=>r(+o.target.value)})]})}function zk(e,t){const n=Array.from(Array(e),()=>[]);let r=1,o=1,i=0,s=0;for(;s=0;)n[i][s]=r++,i+=o;o*=-1,i+=o,s+=1}return n}function Bk(){const[e,t]=h.useState(2),[n,r]=h.useState(2),o=zk(e,n);return c.jsxs("main",{className:dc.main,children:[c.jsx(Fk,{rows:e,columns:n,setRows:t,setColumns:r}),c.jsx(Lk,{columns:n,values:o})]})}const Uk="_main_1cx3l_1",Hk={main:Uk};function Wk(){const[e,t]=h.useState(0),n=h.useRef(1),r=l=>{n.current=l},o=()=>{t(l=>l+n.current)},i=()=>{t(l=>l-n.current)},s=()=>{t(0)};return c.jsxs("main",{className:Hk.main,children:[c.jsx("h2",{children:e}),c.jsxs("section",{children:[c.jsx("button",{onClick:i,"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:o,"aria-label":"Increment",children:"+"})]}),c.jsxs("section",{children:[c.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),c.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:l=>r(l.target.valueAsNumber),title:"Step value"})]}),c.jsx("section",{children:c.jsx("button",{onClick:s,children:"Reset"})})]})}const Vk={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},Gk="_select_17qmd_1",Kk="_form_17qmd_6",qk="_formField_17qmd_13",Yk="_formInput_17qmd_17",Zr={select:Gk,form:Kk,formField:qk,formInput:Yk};function Qk({fields:e,dispatch:t}){return c.jsxs("form",{className:Zr.form,children:[c.jsxs("div",{className:Zr.formField,children:[c.jsx("label",{htmlFor:"name",children:"Name: "}),c.jsx("input",{className:Zr.formInput,type:"text",id:"name",value:e.name,onChange:n=>t({name:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),c.jsx("input",{className:Zr.formInput,type:"text",id:"companyName",value:e.companyName,onChange:n=>t({companyName:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),c.jsx("input",{className:Zr.formInput,type:"date",id:"effectiveDate",value:e.effectiveDate,onChange:n=>t({effectiveDate:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),c.jsx("input",{className:Zr.formInput,type:"date",id:"lastDate",value:e.lastDate,onChange:n=>t({lastDate:n.target.value})})]})]})}function Xk({name:e,companyName:t,effectiveDate:n,lastDate:r}){return console.log(n),c.jsxs("div",{children:[c.jsx("p",{children:"Hi,"}),c.jsxs("p",{children:["Please accept this email as my formal resignation from ",t,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),c.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",n,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",r,"."]}),c.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",t," and looking forward to your support."]}),c.jsx("br",{}),c.jsxs("p",{children:["Thanks and Regards,",c.jsx("br",{}),e]})]})}function Jk({template:e,setTemplate:t}){const n=r=>{t(r.target.value)};return c.jsxs("form",{className:"text-center",children:[c.jsx("label",{htmlFor:"template",children:"Template: "}),c.jsx("select",{id:"template",value:e,onChange:n,className:Zr.select,children:c.jsx("option",{value:"resignation",children:"Resignation"})})]})}function Zk(){const[e,t]=h.useState("jobApplication"),[n,r]=h.useReducer((o,i)=>({...o,...i}),Vk);return c.jsxs(c.Fragment,{children:[c.jsx(Jk,{template:e,setTemplate:t}),c.jsx(Qk,{fields:n,dispatch:r}),c.jsx("hr",{}),c.jsx(Xk,{...n})]})}const e2="_form_1ufkd_2",t2={form:e2};function n2({onAddExpense:e}){const[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(""),l=a=>{a.preventDefault(),e({id:Date.now(),date:t,amount:parseFloat(r),category:i}),n(""),o(""),s("")};return c.jsxs("form",{onSubmit:l,className:t2.form,children:[c.jsx("input",{type:"date",value:t,onChange:a=>n(a.target.value),required:!0}),c.jsx("input",{type:"number",value:r,placeholder:"Please Enter Amount",onChange:a=>o(a.target.value),required:!0}),c.jsxs("select",{value:i,onChange:a=>s(a.target.value),children:[c.jsx("option",{value:"",children:"Select Category"}),c.jsx("option",{value:"Food",children:"Food"}),c.jsx("option",{value:"Transport",children:"Transport"}),c.jsx("option",{value:"Entertainment",children:"Entertainment"}),c.jsx("option",{value:"Other",children:"Other"})]}),c.jsx("button",{type:"submit",children:"Add Expense"})]})}const r2="_mainContainer_1ynr6_2",o2="_btnRed_1ynr6_32",uf={mainContainer:r2,btnRed:o2};function i2({expenses:e}){const t=e.reduce((n,r)=>n+r.amount,0);return c.jsxs("div",{className:uf.mainContainer,children:[c.jsx("h2",{children:"Summary"}),c.jsxs("p",{children:["Total Expenses: $",t.toFixed(2)]})]})}function s2({expenses:e,onDeleteExpense:t}){return c.jsxs("div",{className:uf.mainContainer,children:[c.jsx("h2",{children:"Expenses"}),c.jsx("ul",{children:e.map(n=>c.jsxs("li",{children:[n.date," - $",n.amount," - ",n.category,c.jsx("button",{className:uf.btnRed,onClick:()=>t(n.id),children:"Delete"})]},n.id))})]})}function a2(){const[e,t]=h.useState([]),n=o=>{t(i=>[o,...i])},r=o=>{t(i=>i.filter(s=>s.id!==o))};return c.jsxs("div",{className:"App",children:[c.jsx("h1",{}),c.jsx(n2,{onAddExpense:n}),c.jsx(s2,{expenses:e,onDeleteExpense:r}),c.jsx(i2,{expenses:e})]})}const l2="_feedbackContainer_2c7o2_1",c2="_feedbackBtn_2c7o2_11",u2="_modalContainer_2c7o2_22",d2="_modalContent_2c7o2_35",f2="_iconContainer_2c7o2_50",p2="_iconItem_2c7o2_57",h2="_active_2c7o2_75",m2="_iconImage_2c7o2_81",g2="_modalClose_2c7o2_92",v2="_feedbackContent_2c7o2_108",y2="_feedbackResponse_2c7o2_115",qt={feedbackContainer:l2,feedbackBtn:c2,modalContainer:u2,modalContent:d2,iconContainer:f2,iconItem:p2,active:h2,iconImage:m2,modalClose:g2,feedbackContent:v2,feedbackResponse:y2},x2=[{rating:1,url:"https://cdn-icons-png.flaticon.com/512/14230/14230791.png",mood:"Terrible"},{rating:2,url:"https://cdn-icons-png.flaticon.com/512/166/166527.png",mood:"Unhappy"},{rating:3,url:"https://cdn-icons-png.flaticon.com/512/1791/1791385.png",mood:"Neutral"},{rating:4,url:"https://cdn-icons-png.flaticon.com/512/166/166538.png",mood:"Happy"},{rating:5,url:"https://cdn-icons-png.flaticon.com/512/10851/10851309.png",mood:"Excited"}],w2=(e,t,n)=>{let r=n;return r=t===e?`${r} ${qt.active}`:`${r}`,r},_2=({handleClick:e,activeRating:t})=>c.jsx("div",{className:qt.iconContainer,children:x2.map(n=>c.jsxs("div",{className:w2(n.rating,t,qt.iconItem),onClick:()=>e(n),children:[c.jsx("img",{src:n.url,className:qt.iconImage,alt:n.mood}),c.jsx("p",{children:n.mood})]},n.rating))}),b2=({onClose:e})=>{const[t,n]=h.useState(""),[r,o]=h.useState({}),[i,s]=h.useState(!1),l=()=>{s(!0)},a=d=>{o(d)},u=d=>{n(d.target.value)};return c.jsx("div",{className:qt.modalContainer,onClick:e,children:c.jsxs("div",{className:qt.modalContent,onClick:d=>d.stopPropagation(),children:[c.jsx("button",{className:qt.modalClose,onClick:e,children:"x"}),c.jsx("h1",{children:"User Feedback"}),i?c.jsxs("div",{className:qt.feedbackResponse,children:[c.jsxs("p",{children:["Feedback: ",r.mood]}),c.jsx("p",{children:"Thank you for your feedback"})]}):c.jsxs("form",{className:qt.feedbackContent,onSubmit:l,children:[c.jsx(_2,{handleClick:a,activeRating:r.rating}),c.jsx("textarea",{placeholder:"Please share additional feedback (optional)",rows:"5",cols:"30",style:{width:"80%",margin:"10px",fontSize:"12px",padding:"2px"},value:t,onChange:u}),c.jsx("button",{type:"submit",className:qt.feedbackBtn,disabled:!Object.keys(r).length,children:"Submit"})]})]})})};function S2(){const[e,t]=h.useState(!1),n=()=>{t(!0)},r=()=>{t(!1)};return c.jsxs("div",{className:qt.feedbackContainer,children:[c.jsx("button",{className:qt.feedbackBtn,onClick:n,children:"Feedback"}),e&&c.jsx(b2,{onClose:r})]})}const E2="_app_1o28y_1",C2="_list_1o28y_6",k2="_editList_1o28y_22",j2="_editableInputContainer_1o28y_30",$2="_editableInputError_1o28y_34",R2="_indent_1o28y_48",N2="_controls_1o28y_52",wt={app:E2,list:C2,editList:k2,editableInputContainer:j2,editableInputError:$2,indent:R2,controls:N2};function Lp({onComplete:e,validateNode:t,defaultValue:n=""}){const[r,o]=h.useState(n),[i,s]=h.useState(null),l=d=>{const f=d.target.value;o(f),f===""?s("File or folder name cannot be empty"):t(f)?s(null):s("A file or folder already exists with that name")},a=()=>{e(r)},u=d=>{d.key==="Enter"&&a()};return c.jsxs("div",{className:wt.editableInputContainer,children:[c.jsx("input",{type:"text",autoFocus:!0,onBlur:a,onKeyUp:u,value:r,onChange:l}),i&&c.jsx("div",{className:wt.editableInputError,children:c.jsx("p",{children:i})})]})}function T2({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r,validateNode:o}){const[i,s]=h.useState(!1),l=u=>o(t,e,u),a=u=>{l(u)&&r(t,e,u),s(!1)};return i?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:["📄 ",c.jsx(Lp,{defaultValue:e.name,onComplete:a,validateNode:l})]}):c.jsxs("li",{className:wt.list,children:[c.jsxs("button",{className:wt.button,children:["📄 ",e.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{onClick:()=>s(!0),children:"✏️"}),c.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function P2({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:o,onNodeUpdate:i,onNew:s,validateNode:l}){const[a,u]=h.useState(!1),d=p=>l(n,r,p),f=p=>{n&&(d(p)&&i(n,r,p),u(!1))};return a?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[e?"📂":"📁"," ",c.jsx(Lp,{defaultValue:r==null?void 0:r.name,onComplete:f,validateNode:d})]}):c.jsxs("li",{className:wt.list,"data-root":n===null,children:[c.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),c.jsx("button",{className:"new-file",onClick:()=>s(!1),children:"📄"}),c.jsx("button",{className:"new-folder",onClick:()=>s(!0),children:"🗂"}),c.jsx("button",{className:"delete",onClick:()=>o(n,r),children:"🗑️"})]})]})}function k1({node:e,parent:t,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i}){var y;const[s,l]=h.useState(!1),[a,u]=h.useState(!1),d=h.useRef(!1),f=w=>{w.stopPropagation(),l(!s)},p=w=>{d.current=w,u(!a),l(!0)},g=w=>i(e,null,w),m=w=>{w&&g(w)&&n(e,{name:w,id:new Date().getTime().toString(),isFolder:d.current}),u(!1)};return c.jsxs(c.Fragment,{children:[c.jsx(P2,{expanded:s,toggleExpand:f,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:o,onNew:p,validateNode:i}),s&&c.jsxs("div",{className:wt.indent,children:[(y=e.nodes)==null?void 0:y.map(w=>w.isFolder?c.jsx(k1,{node:w,parent:e,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id):c.jsx(T2,{node:w,parent:e,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id)),a&&c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[d.current?"📁":"📄"," ",c.jsx(Lp,{onComplete:m,validateNode:g})]})]})]})}const O2={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function A2(){const[e,t]=h.useState(O2),n=(s,l)=>{const a={...e},u=[...s.nodes??[]];u.push({...l,nodes:[]}),s.id==="root"?a.nodes=u:s.nodes=u,t(a)},r=(s,l)=>{var d;const a={...e},u=(d=s.nodes)==null?void 0:d.filter(f=>f.id!==l.id);s.id==="root"?a.nodes=u:s.nodes=u,t(a)},o=(s,l,a)=>{var p;const u={...e},d=((p=s.nodes)==null?void 0:p.map(g=>g))??[],f=d.findIndex(g=>g.id===l.id);d[f]={...d[f],name:a},s.id==="root"?u.nodes=d:s.nodes=d,t(u)},i=(s,l,a)=>{var d;return s===null||typeof s.nodes>"u"?!0:a===""?!1:((d=s.nodes)==null?void 0:d.findIndex(f=>f.id!==(l==null?void 0:l.id)&&f.name===a))===-1};return c.jsx("div",{className:wt.app,children:c.jsx(k1,{node:e,parent:null,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i})})}const M2="_App_fw4tl_7",D2="_meal_container_fw4tl_17",I2="_meal_name_fw4tl_29",L2="_meal_img_fw4tl_34",F2="_tags_container_fw4tl_39",z2="_modal_tags_container_fw4tl_40",B2="_tag_fw4tl_39",U2="_modal_tag_fw4tl_40",H2="_modal_meal_img_fw4tl_69",W2="_modal_instruction_fw4tl_74",V2="_foodBtn_fw4tl_79",G2="_openBtn_fw4tl_80",K2="_closeBtn_fw4tl_105",q2="_recipe_table_fw4tl_128",dt={App:M2,meal_container:D2,meal_name:I2,meal_img:L2,tags_container:F2,modal_tags_container:z2,tag:B2,modal_tag:U2,modal_meal_img:H2,modal_instruction:W2,foodBtn:V2,openBtn:G2,closeBtn:K2,recipe_table:q2};function Fp({data:e}){const{strCategory:t,strArea:n,strTags:r}=e;return c.jsxs("ul",{className:dt.modal_tags_container,children:[t&&c.jsx("li",{className:dt.modal_tag,children:t}),n&&c.jsx("li",{className:dt.modal_tag,children:n}),r&&r.split(",").map((o,i)=>c.jsx("li",{className:dt.modal_tag,children:o},i))]})}Fp.propTypes;function j1({data:e,handleOpenDialog:t}){const{strMeal:n,strMealThumb:r}=e;return c.jsxs("div",{className:dt.meal_container,children:[c.jsx("h2",{className:dt.meal_name,children:n}),c.jsx("img",{className:dt.meal_img,src:r,alt:n}),c.jsx(Fp,{data:e}),c.jsx("button",{className:dt.openBtn,onClick:t,children:"detail recipe"})]})}j1.propTypes;function $1({data:e}){const t=n=>{const r=[];for(let o=1;o<=20;o++){const i=n[`strIngredient${o}`],s=n[`strMeasure${o}`];i&&s&&r.push({ingredient:i,measure:s})}return r};return c.jsxs("table",{className:dt.recipe_table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"No."}),c.jsx("th",{children:"Ingredient"}),c.jsx("th",{children:"Measure"})]})}),c.jsx("tbody",{children:t(e).map((n,r)=>c.jsxs("tr",{children:[c.jsx("td",{children:r+1}),c.jsx("td",{children:n.ingredient}),c.jsx("td",{children:n.measure})]},r))})]})}$1.propTypes;function R1({data:e,handleCloseDialog:t}){const{strMeal:n,strMealThumb:r,strInstructions:o,strYoutube:i}=e;return c.jsx("dialog",{open:!0,onClose:t,children:c.jsxs("div",{className:dt.modal_meal_container,children:[c.jsx("button",{className:dt.closeBtn,onClick:t,children:"×"}),c.jsx("h2",{className:dt.modal_meal_name,children:n}),c.jsx("img",{className:dt.modal_meal_img,src:r,alt:n}),c.jsx(Fp,{data:e}),c.jsx($1,{data:e}),c.jsx("h2",{children:"Instruction 📜"}),c.jsx("p",{className:dt.modal_instruction,children:o}),i&&c.jsxs("a",{href:i,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",n]})]})})}R1.propTypes;function Y2(){const[e,t]=h.useState(null),[n,r]=h.useState(!1);h.useEffect(()=>{o()},[]);const o=async()=>{try{const a=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!a.ok)throw new Error("Network response was not ok! Something wrong");const u=await a.json();t(u.meals[0])}catch(a){console.error("Error on fetching data: ",a)}},i=()=>{o()},s=()=>{r(!0)},l=()=>{r(!1)};return c.jsxs("div",{className:dt.App,children:[c.jsx("h1",{children:"Are you hungry 😋"}),c.jsx("button",{className:dt.foodBtn,onClick:i,children:"Another food 🍛"}),n&&c.jsx(R1,{data:e,handleCloseDialog:l}),e&&c.jsx(j1,{data:e,handleOpenDialog:s})]})}const Q2="_app_j2t5p_1",X2="_widget_j2t5p_14",J2="_text_j2t5p_21",Bu={app:Q2,widget:X2,text:J2};function Z2(){const[e,t]=h.useState(),[n,r]=h.useState(!1),[o,i]=h.useState(1),[s,l]=h.useState(!1),[a,u]=h.useState(!1),[d,f]=h.useState(!1);h.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const p=m=>{m.preventDefault(),oe?(u(!0),l(!1)):(f(!0),l(!1),u(!1),r(!0))},g=()=>{t(Math.round(100*Math.random())),f(!1),l(!1),u(!1),r(!1),i(1)};return c.jsxs("div",{className:Bu.app,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),c.jsx("input",{id:"input",type:"number",value:o,min:"0",max:"100",placeholder:"Guess-Number",onChange:m=>i(Number(m.target.value))}),c.jsxs("div",{className:Bu.widget,children:[c.jsx("button",{type:"reset",onClick:g,children:"Reset"}),c.jsx("button",{type:"submit",disabled:n,children:"Check"})]})]}),c.jsxs("div",{className:Bu.text,children:[s&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Less"})," than the actual number"]}),a&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Higher"})," than the actual number"]}),d&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"right"})]})]})]})}const fr={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},ej=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function tj(){const[e,t]=h.useState(null),n=r=>{t(r)};return c.jsxs("div",{className:fr["image-gallery-container"],children:[c.jsx("p",{className:fr["gallery-para"],children:"Click on an image!"}),c.jsx("div",{className:fr["image-container"],children:ej.map((r,o)=>c.jsx("div",{className:fr["image-wrapper"],onClick:()=>n(r),children:c.jsx("img",{src:r,alt:`Image ${o+1}`,className:fr["gallery-image"]})},o))}),e&&c.jsxs("div",{className:fr["selected-image"],children:[c.jsx("h2",{className:fr["selected-heading"],children:"Selected Image"}),c.jsx("img",{src:e,alt:"Selected",className:fr["selected-img"]})]})]})}const nj="_loader_1hfl7_1",rj="_spin_1hfl7_1",Uu={loader:nj,spin:rj,"book-title":"_book-title_1hfl7_21"};function N1(e,t){return function(){return e.apply(t,arguments)}}const{toString:oj}=Object.prototype,{getPrototypeOf:zp}=Object,Yc=(e=>t=>{const n=oj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mn=e=>(e=e.toLowerCase(),t=>Yc(t)===e),Qc=e=>t=>typeof t===e,{isArray:Di}=Array,ra=Qc("undefined");function ij(e){return e!==null&&!ra(e)&&e.constructor!==null&&!ra(e.constructor)&&Zt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T1=Mn("ArrayBuffer");function sj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&T1(e.buffer),t}const aj=Qc("string"),Zt=Qc("function"),P1=Qc("number"),Xc=e=>e!==null&&typeof e=="object",lj=e=>e===!0||e===!1,jl=e=>{if(Yc(e)!=="object")return!1;const t=zp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cj=Mn("Date"),uj=Mn("File"),dj=Mn("Blob"),fj=Mn("FileList"),pj=e=>Xc(e)&&Zt(e.pipe),hj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Zt(e.append)&&((t=Yc(e))==="formdata"||t==="object"&&Zt(e.toString)&&e.toString()==="[object FormData]"))},mj=Mn("URLSearchParams"),gj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _a(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Di(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const A1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!ra(e)&&e!==A1;function df(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,o)=>{const i=e&&O1(t,o)||o;jl(t[i])&&jl(r)?t[i]=df(t[i],r):jl(r)?t[i]=df({},r):Di(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(_a(t,(o,i)=>{n&&Zt(o)?e[i]=N1(o,n):e[i]=o},{allOwnKeys:r}),e),yj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wj=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&zp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_j=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bj=e=>{if(!e)return null;if(Di(e))return e;let t=e.length;if(!P1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zp(Uint8Array)),Ej=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Cj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kj=Mn("HTMLFormElement"),jj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),eg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$j=Mn("RegExp"),D1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_a(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Rj=e=>{D1(e,(t,n)=>{if(Zt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Zt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Di(e)?r(e):r(String(e).split(t)),n},Tj=()=>{},Pj=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Hu="abcdefghijklmnopqrstuvwxyz",tg="0123456789",I1={DIGIT:tg,ALPHA:Hu,ALPHA_DIGIT:Hu+Hu.toUpperCase()+tg},Oj=(e=16,t=I1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Aj(e){return!!(e&&Zt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Mj=e=>{const t=new Array(10),n=(r,o)=>{if(Xc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Di(r)?[]:{};return _a(r,(s,l)=>{const a=n(s,o+1);!ra(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},Dj=Mn("AsyncFunction"),Ij=e=>e&&(Xc(e)||Zt(e))&&Zt(e.then)&&Zt(e.catch),A={isArray:Di,isArrayBuffer:T1,isBuffer:ij,isFormData:hj,isArrayBufferView:sj,isString:aj,isNumber:P1,isBoolean:lj,isObject:Xc,isPlainObject:jl,isUndefined:ra,isDate:cj,isFile:uj,isBlob:dj,isRegExp:$j,isFunction:Zt,isStream:pj,isURLSearchParams:mj,isTypedArray:Sj,isFileList:fj,forEach:_a,merge:df,extend:vj,trim:gj,stripBOM:yj,inherits:xj,toFlatObject:wj,kindOf:Yc,kindOfTest:Mn,endsWith:_j,toArray:bj,forEachEntry:Ej,matchAll:Cj,isHTMLForm:kj,hasOwnProperty:eg,hasOwnProp:eg,reduceDescriptors:D1,freezeMethods:Rj,toObjectSet:Nj,toCamelCase:jj,noop:Tj,toFiniteNumber:Pj,findKey:O1,global:A1,isContextDefined:M1,ALPHABET:I1,generateString:Oj,isSpecCompliantForm:Aj,toJSONObject:Mj,isAsyncFn:Dj,isThenable:Ij};function de(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}A.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const L1=de.prototype,F1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{F1[e]={value:e}});Object.defineProperties(de,F1);Object.defineProperty(L1,"isAxiosError",{value:!0});de.from=(e,t,n,r,o,i)=>{const s=Object.create(L1);return A.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),de.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Lj=null;function ff(e){return A.isPlainObject(e)||A.isArray(e)}function z1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function ng(e,t,n){return e?e.concat(t).map(function(o,i){return o=z1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Fj(e){return A.isArray(e)&&!e.some(ff)}const zj=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Jc(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!A.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!a&&A.isBlob(m))throw new de("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,y,w){let v=m;if(m&&!w&&typeof m=="object"){if(A.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&Fj(m)||(A.isFileList(m)||A.endsWith(y,"[]"))&&(v=A.toArray(m)))return y=z1(y),v.forEach(function(_,C){!(A.isUndefined(_)||_===null)&&t.append(s===!0?ng([y],C,i):s===null?y:y+"[]",u(_))}),!1}return ff(m)?!0:(t.append(ng(w,y,i),u(m)),!1)}const f=[],p=Object.assign(zj,{defaultVisitor:d,convertValue:u,isVisitable:ff});function g(m,y){if(!A.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),A.forEach(m,function(v,x){(!(A.isUndefined(v)||v===null)&&o.call(t,v,A.isString(x)?x.trim():x,y,p))===!0&&g(v,y?y.concat(x):[x])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return g(e),t}function rg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bp(e,t){this._pairs=[],e&&Jc(e,this,t)}const B1=Bp.prototype;B1.append=function(t,n){this._pairs.push([t,n])};B1.toString=function(t){const n=t?function(r){return t.call(this,r,rg)}:rg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Bj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function U1(e,t,n){if(!t)return e;const r=n&&n.encode||Bj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=A.isURLSearchParams(t)?t.toString():new Bp(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class og{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const H1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uj=typeof URLSearchParams<"u"?URLSearchParams:Bp,Hj=typeof FormData<"u"?FormData:null,Wj=typeof Blob<"u"?Blob:null,Vj={isBrowser:!0,classes:{URLSearchParams:Uj,FormData:Hj,Blob:Wj},protocols:["http","https","file","blob","url","data"]},W1=typeof window<"u"&&typeof document<"u",Gj=(e=>W1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Kj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:W1,hasStandardBrowserEnv:Gj,hasStandardBrowserWebWorkerEnv:Kj},Symbol.toStringTag,{value:"Module"})),Rn={...qj,...Vj};function Yj(e,t){return Jc(e,new Rn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Rn.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Qj(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xj(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&A.isArray(o)?o.length:s,a?(A.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!A.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&A.isArray(o[s])&&(o[s]=Xj(o[s])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(Qj(r),o,n,0)}),n}return null}function Jj(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Up={transitional:H1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o&&o?JSON.stringify(V1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yj(t,this.formSerializer).toString();if((l=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Jc(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Jj(t)):t}],transformResponse:[function(t){const n=this.transitional||Up.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?de.from(l,de.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Up.headers[e]={}});const Hp=Up,Zj=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),e$=e=>{const t={};let n,r,o;return e&&e.split(` + */function cc(){return cc=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 cC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[s,l]=h.useState(),[a,u]=h.useState({isTransitioning:!1}),[d,f]=h.useState(),[p,g]=h.useState(),[m,y]=h.useState(),w=h.useRef(new Map),{v7_startTransition:v}=r||{},x=h.useCallback(k=>{v?aC(k):k()},[v]),_=h.useCallback((k,j)=>{let{deletedFetchers:P,unstable_flushSync:T,unstable_viewTransitionOpts:M}=j;P.forEach(H=>w.current.delete(H)),k.fetchers.forEach((H,z)=>{H.data!==void 0&&w.current.set(z,H.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){T?as(()=>i(k)):x(()=>i(k));return}if(T){as(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let H=n.window.document.startViewTransition(()=>{as(()=>i(k))});H.finished.finally(()=>{as(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),as(()=>g(H));return}p?(d&&d.resolve(),p.skipTransition(),y({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,p,d,w,x]);h.useLayoutEffect(()=>n.subscribe(_),[n,_]),h.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new lC)},[a]),h.useEffect(()=>{if(d&&s&&n.window){let k=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{x(()=>i(k)),await j});P.finished.finally(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(P)}},[x,s,d,n.window]),h.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),h.useEffect(()=>{!a.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[a.isTransitioning,m]),h.useEffect(()=>{},[]);let C=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,j,P)=>n.navigate(k,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,j,P)=>n.navigate(k,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),E=n.basename||"/",b=h.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return h.createElement(h.Fragment,null,h.createElement(w1.Provider,{value:b},h.createElement(_1.Provider,{value:o},h.createElement(oC.Provider,{value:w.current},h.createElement(rC.Provider,{value:a},h.createElement(JE,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(uC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function uC(e){let{routes:t,future:n,state:r}=e;return BE(t,void 0,r,n)}var Vm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vm||(Vm={}));var Gm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gm||(Gm={}));var R=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(R||{}),U=(e=>(e.interview="interview",e.all="all",e))(U||{});const Km=[R.Easy,R.Medium,R.Hard];function wa(e){return new Map([...e.entries()].sort((t,n)=>{const r=Km.indexOf(t[1].difficulty),o=Km.indexOf(n[1].difficulty);return r-o}))}const dC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:R.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:R.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[U.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:R.Easy,developer:"officialbidisha",tags:[U.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:R.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[U.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:R.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:R.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:R.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:R.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);wa(dC);const fC=new Map([["counter",{title:"Counter",link:"counter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[U.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:R.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:R.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:R.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:R.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[U.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[U.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:R.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[U.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:R.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:R.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:R.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:R.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:R.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:R.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:R.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:R.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:R.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:R.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:R.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:R.Medium,developer:"shruti-sen2004",tags:[U.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:R.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[U.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:R.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:R.Medium,developer:"srijanB7",tags:[U.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:R.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:R.Medium,developer:"Kei-K23",tags:[U.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:R.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:R.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:R.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}]]);wa(fC);const pC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[U.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:R.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:R.Easy,developer:"Bhushan1019",tags:[U.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:R.Easy,tags:[U.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:R.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:R.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:R.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:R.Easy,developer:"deepakrajkranti",tags:[U.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:R.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:R.Easy,developer:"NikhilJHA01",tags:[U.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"rashidtvmr",tags:[U.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:R.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:R.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:R.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:R.Easy,developer:"codechitra",tags:[U.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:R.Medium,developer:"liza",tags:[U.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:R.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:R.Medium,developer:"rishabhm05",tags:[U.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:R.Medium,developer:"deepu0",tags:[U.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:R.Medium,developer:"rishabhm05",tags:[U.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:R.Medium,developer:"deepu0",tags:[U.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:R.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:R.Medium,developer:"deepakrajkranti",tags:[U.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:R.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:R.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:R.Medium,developer:"rashidtvmr",tags:[U.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:R.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:R.Medium,developer:"AbhilashMadi",tags:[U.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:R.Medium,developer:"AbhilashMadi",tags:[U.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:R.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:R.Hard,developer:"Akshay-Omkar",tags:[U.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:R.Medium,developer:"DeePaK-HeeRaKaRi",tags:[U.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:R.Medium,developer:"ayush-dutt-sharma",tags:[U.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:R.Hard,developer:"rishabhm05",tags:[U.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:R.Hard,developer:"deepu0",tags:[U.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:R.Hard,developer:"deepu0",tags:[U.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:R.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:R.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:R.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:R.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:R.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[U.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:R.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}]]),qm=wa(pC),hC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:R.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:R.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:R.Medium,developer:"arpansaha13",tags:[U.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:R.Medium,developer:"jaydadhaniya",tags:[U.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:R.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:R.Medium,developer:"Shardik04",tags:[U.interview]}]]);wa(hC);const mC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[U.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:R.Easy,developer:"pankajparkar",tags:[U.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:R.Easy,developer:"pankajparkar",tags:[U.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"pankajparkar",tags:[U.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);wa(mC);const gC=[{direction:"Up",delta:[-1,0]},{direction:"Down",delta:[1,0]},{direction:"Left",delta:[0,-1]},{direction:"Right",delta:[0,1]}],vC="_tile_5pn2z_1",yC="_empty_5pn2z_5",xC="_correctTilePoz_5pn2z_17",wC="_moveLeft_5pn2z_17",_C="_moveRight_5pn2z_17",bC="_moveUp_5pn2z_17",SC="_moveDown_5pn2z_17",Ja={tile:vC,empty:yC,correctTilePoz:xC,moveLeft:wC,moveRight:_C,moveUp:bC,moveDown:SC,"move-left":"_move-left_5pn2z_1","move-right":"_move-right_5pn2z_1","move-up":"_move-up_5pn2z_1","move-down":"_move-down_5pn2z_1"};function EC({digit:e,onClick:t,isOnCorrectPoz:n,animDirection:r}){return c.jsx("div",{className:`${Ja.tile} ${e===0?Ja.empty:""} ${n?Ja.correctTilePoz:""} ${r?Ja[`move${r}`]:""}`,onClick:t,children:!!e&&e},e)}const CC="_grid_e2nmy_1",kC="_menu_e2nmy_9",Ym={grid:CC,menu:kC},jC=e=>{const t=e.length;let n=0;for(let r=0;re[o]&&(n+=1);return n%2===0},$C=e=>{const t=e.length;for(let n=0;n{let n;do n=$C(Array.from({length:e*t-1},(r,o)=>o+1));while(!jC(n));return n},Qm=(e=4,t=4)=>{const n=RC(e,t),r=Array.from({length:e},(o,i)=>n.slice(i*t,i*t+t));return r[e-1][t-1]=0,r};function NC(){const[e,t]=h.useState([]),[n,r]=h.useState(0),[o,i]=h.useState(!1),[s,l]=h.useState({moves:[],capacity:5}),[a,u]=h.useState({element:null,type:""}),d=w=>{const{moves:v,capacity:x}=s;v.length===x&&v.shift(),v.push(w)},f=(w,v)=>{const x=e.map(_=>[..._]);[x[w.row][w.col],x[v.row][v.col]]=[x[v.row][v.col],x[w.row][w.col]],t(x)},p=(w,v,x)=>{f(w,v),u({element:v,type:x}),setTimeout(()=>{u({element:null,type:""})},300)},g=(w,v=!0)=>{a.element||gC.forEach(x=>{const{direction:_,delta:C}=x,E=w.row+C[0],b=w.col+C[1];if(E>=0&&E<4&&b>=0&&b<4&&e[E][b]===0){if(p(w,{row:E,col:b},_),v){d({row:E,col:b}),r(n+1);return}r(n-1)}})},m=()=>{const{moves:w}=s;if(a.element||w.length===0)return;const v=w[w.length-1];g(v,!1),l({...s,moves:w.slice(0,w.length-1)})},y=()=>{t(Qm(4,4)),r(0),l({...s,moves:[]})};return h.useEffect(()=>{t(Qm(4,4))},[]),h.useEffect(()=>{const w=e.flat().every((v,x,_)=>v===x+1||x===_.length-1);i(w)},[e]),c.jsxs("div",{children:[c.jsx("div",{className:Ym.grid,children:e.map((w,v)=>w.map((x,_)=>c.jsx(EC,{animDirection:a.element&&a.element.col===_&&a.element.row===v?a.type:"",digit:x,onClick:()=>g({row:v,col:_}),isOnCorrectPoz:v*3+_+v+1===x},x)))}),c.jsxs("div",{className:Ym.menu,children:[c.jsx("button",{type:"button",onClick:y,children:"Reset"}),c.jsx("button",{type:"button",disabled:s.moves.length===0,onClick:m,children:"Undo"}),c.jsxs("p",{children:[o?"Congrats.":""," Total moves: ",n]})]})]})}function TC(){return c.jsxs("div",{children:[c.jsx("div",{children:c.jsx("p",{style:{textAlign:"center"},children:"Click on the box to move it and sort row-wise"})}),c.jsx(NC,{})]})}const PC="_App_150vf_1",OC="_accordion_150vf_6",kl={App:PC,accordion:OC,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},AC=({title:e,info:t,id:n,openAccordionId:r,setIdOfOpenAccordion:o})=>{const[i,s]=h.useState(!1),l=()=>{s(a=>!a),o(n)};return h.useEffect(()=>{r&&s(r===n)},[n,r]),c.jsxs("div",{className:kl.accordion,children:[c.jsxs("div",{className:kl["accordion-title"],children:[c.jsx("h3",{children:e}),c.jsx("button",{onClick:l,className:kl["accordion-icon"],children:i?"-":"+"})]}),i&&c.jsx("p",{children:t})]},n)},MC=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function DC(){const[e,t]=h.useState(!0),[n,r]=h.useState(null),o=(s=null)=>{r(e?null:s)},i=()=>{e&&r(-1),t(!e)};return c.jsxs("div",{className:kl.App,children:[c.jsxs("h4",{children:[c.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),c.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:i})]}),c.jsx("div",{children:MC.map(s=>c.jsx(AC,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:o,...s},s.id))})]})}class IC{constructor(t=[]){yh(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const o of n)r.hasOwnProperty(o)||(r[o]={}),r=r[o];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const o of t)if(r=r[o],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",o=[]){if(t.end&&(o.push(r),o.length===n))return o;for(const i in t)if(t.hasOwnProperty(i)&&(this.getWordsByDFS(t[i],n,r+i,o),o.length===n))break;return o}}const LC=e=>{const[n,r]=h.useState(""),[o,i]=h.useState([]),[s,l]=h.useState(null),a=h.useRef(new IC(e)),u=g=>{const m=g.target.value;r(g.target.value),i(m?a.current.getWordsFromTrie(m,5):[]),l(null)};return h.useEffect(()=>{if(s!==null){const g=o[s];r(g)}},[s,o]),[n,u,s,o,g=>{if(g.key==="Enter"&&s!==null){const m=o[s];r(m),i([]),l(null)}g.key==="ArrowDown"&&(g.preventDefault(),l(m=>m===null||m===o.length-1?0:m+1)),g.key==="ArrowUp"&&(g.preventDefault(),l(m=>m===null||m===0?o.length-1:m-1))},g=>{r(g),i([]),l(null)},g=>{l(g)}]},FC=["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"],zC="_main_xk16z_1",BC="_retryTimer_xk16z_15",UC="_suggestions_xk16z_21",HC="_highlight_xk16z_36",WC="_loader_xk16z_46",Sr={main:zC,retryTimer:BC,suggestions:UC,highlight:HC,loader:WC},VC=()=>{const[e,t,n,r,o,i,s]=LC(FC),l=h.useRef(null);return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",ref:l,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:o}),c.jsx("ul",{className:Sr.suggestions,children:r.map((a,u)=>c.jsx("li",{className:n===u?`${Sr.highlight}`:"",onClick:()=>i(a),onMouseOver:()=>s(u),onMouseLeave:()=>s(null),children:a},u))})]})};function GC(e,t=500){let n=null;return function(...o){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...o)}}const KC=5;async function Xm(e){const t={items:[],errorMsgFromApi:"",timeDelta:0};try{const n=await fetch(`https://api.github.com/search/users?per_page=${KC}&q=${e}`);if(n.status===403){const r=n.headers.get("x-ratelimit-reset");if(r!==null){const o=parseFloat(r);t.timeDelta=Math.ceil(o-Date.now()/1e3)}else t.timeDelta=60}else{const r=await n.json();t.items=r.items.map(o=>o.login)}return t}catch{return t.errorMsgFromApi="Error occurred while fetching suggestions",t}}function qC(){const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),[s,l]=h.useState(!1),[a,u]=h.useState(0),[d,f]=h.useState(""),p=h.useCallback(GC(async x=>{l(!0);try{const _=await Xm(x);u(_.timeDelta),_.errorMsgFromApi?(r([]),f(_.errorMsgFromApi)):_.items.length>0?(r(_.items),f("")):(r([]),f("No results found"))}catch{r([]),f("Error occurred while fetching suggestions")}l(!1)},300),[Xm]),g=()=>{r([]),i(null),f("")},m=x=>{if(x.key==="Enter"&&o!==null){const _=n[o];t(_),g()}x.key==="ArrowDown"&&(x.preventDefault(),i(_=>_===null||_===n.length-1?0:_+1)),x.key==="ArrowUp"&&(x.preventDefault(),i(_=>_===null||_===0?n.length-1:_-1))},y=x=>{const _=x.target.value;t(_),_.length>0?p(_):g()},w=x=>{t(x),g()};return h.useEffect(()=>{if(o!==null){const x=n[o];t(x)}},[o,n]),h.useEffect(()=>{const x=setTimeout(()=>{a>0&&u(_=>_-1)},1e3);return()=>clearTimeout(x)},[a]),{userText:e,suggestions:n,isLoading:s,suggestionFocus:o,errorMessage:d,retryAfter:a,handleInputChange:y,handleSuggestionClick:w,handleKeyDown:m,handleSuggestionFocus:x=>{i(x)}}}function YC(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:o,retryAfter:i,handleInputChange:s,handleSuggestionClick:l,handleKeyDown:a,handleSuggestionFocus:u}=qC();return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:a,onChange:s,disabled:i!==0}),n&&c.jsx("div",{id:"loader",className:Sr.loader}),o&&c.jsx("div",{id:"info",children:o}),i!==0&&c.jsx("div",{className:Sr.retryTimer,children:i}),c.jsx("ul",{className:Sr.suggestions,children:t.map((d,f)=>c.jsx("li",{className:r===f?`${Sr.highlight}`:"",onClick:()=>l(d),onMouseOver:()=>u(f),onMouseLeave:()=>u(null),children:d},f))})]})}const QC="_container_zsbjj_3",XC="_inputContainer_zsbjj_12",JC="_input_zsbjj_12",ZC="_button_zsbjj_23",ek="_result_zsbjj_35",Do={container:QC,inputContainer:XC,input:JC,button:ZC,result:ek},tk=()=>{const e=(a,u)=>{const d=g=>g.replace(/[^\w]/g,"").toLowerCase(),f=d(a),p=d(u);return f.split("").sort().join("")===p.split("").sort().join("")},[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(null),l=()=>{const a=e(t,r);s(a)};return c.jsxs("div",{className:Do.container,children:[c.jsxs("div",{className:Do.inputContainer,children:[c.jsx("input",{type:"text",placeholder:"Enter the first word or phrase",value:t,onChange:a=>n(a.target.value),className:Do.input}),c.jsx("input",{type:"text",placeholder:"Enter the second word or phrase",value:r,onChange:a=>o(a.target.value),className:Do.input}),c.jsx("button",{onClick:l,className:Do.button,children:"Check Anagram"})]}),i!==null&&c.jsx("p",{className:Do.result,children:i?"The words/phrases are anagrams!":"The words/phrases are not anagrams."})]})},nk=()=>c.jsx("div",{children:c.jsx(tk,{})}),rk="_App_7yaca_1",ok="_container_7yaca_1",ik="_input_7yaca_7",sk="_calculateButton_7yaca_21",ak="_card_7yaca_30",lk="_ranges_7yaca_41",vi={App:rk,container:ok,input:ik,calculateButton:sk,card:ak,ranges:lk},ck=({BMI:e,category:t})=>{const n=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return c.jsxs("div",{className:vi.card,children:[c.jsxs("h1",{children:["BMI = ",e]}),c.jsx("h3",{children:t}),c.jsx("p",{className:vi.ranges,children:"BMI weight ranges"}),n.map(r=>c.jsx("p",{children:r},r))]})},uk=({handleHeightChange:e,handleWeightChange:t,BMI:n,calculateBMI:r,category:o})=>c.jsxs("div",{className:vi.container,children:[c.jsxs("div",{className:vi.input,children:[c.jsxs("label",{htmlFor:"height",children:["Height ",c.jsx("span",{children:"(in cm)"})]}),c.jsx("input",{type:"text",name:"height",onChange:e}),c.jsxs("label",{htmlFor:"weight",children:["Weight ",c.jsx("span",{children:"(in kg)"})]}),c.jsx("input",{type:"text",name:"weight",onChange:t}),c.jsx("button",{className:vi.calculateButton,onClick:r,children:"Calculate"})]}),c.jsx(ck,{BMI:n,category:o})]}),dk=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),[o,i]=h.useState(null),[s,l]=h.useState(null);h.useEffect(()=>{if(o){let f=o<18.5?"Underweight":o<24.9?"Healthy Weight":o<29.9?"Overweight":"Obese";l(()=>f)}},[o]);const a=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&t(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},u=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&r(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},d=()=>{if(e&&n){const f=(n/(e*e/1e4)).toFixed(2);i(()=>f)}};return c.jsx("div",{className:vi.App,children:c.jsx(uk,{height:e,weight:n,handleHeightChange:a,handleWeightChange:u,BMI:o,calculateBMI:d,category:s})})},fk="/frontend-mini-challenges/react/assets/logo-Cv_hAIcG.png",pk="_navbar_1ezkj_1",hk="_left_1ezkj_11",mk="_back_1ezkj_17",gk="_logo_1ezkj_25",vk="_right_1ezkj_43",yk="_source_code_1ezkj_51",xk="_github_1ezkj_68",wk="_responsive_nav_1ezkj_73",_k="_hamburger_1ezkj_89",bk="_line_1ezkj_105",Sk="_menu_1ezkj_126",Ot={navbar:pk,left:hk,back:mk,logo:gk,right:vk,source_code:yk,github:xk,responsive_nav:wk,hamburger:_k,line:bk,menu:Sk};var Ek={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/react/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:uc,VITE_HOST_URL:E1,DEV:C1}=Ek,Ck=C1?`${E1}${uc}/#/react`:`/${uc}/#/react/`,kk=C1?`${E1}${uc}/`:`/${uc}/`,Jm="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/react/src/challenges/";function jk({title:e,link:t}){return c.jsxs("nav",{className:Ot.navbar,children:[c.jsxs("div",{className:Ot.left,children:[c.jsx("a",{href:Ck,className:Ot.back,children:"<"}),c.jsx("a",{className:Ot.logo,href:kk,children:c.jsx("img",{src:fk,alt:"logo"})})]}),c.jsx("h1",{children:e}),c.jsxs("div",{className:Ot.right,children:[c.jsx("div",{className:Ot.source_code,children:t?c.jsxs("a",{href:Jm+t,target:"_blank",rel:"noreferrer",children:[c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link",children:[c.jsx("path",{d:"M15 3h6v6"}),c.jsx("path",{d:"M10 14 21 3"}),c.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})," ","Source code"]}):null}),c.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:c.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:Ot.github})}),c.jsx("div",{className:Ot.responsive_nav,children:c.jsxs("div",{className:Ot.hamburger,children:[c.jsx("input",{type:"checkbox"}),c.jsx("div",{className:Ot.line}),c.jsx("div",{className:Ot.line}),c.jsx("div",{className:Ot.line}),c.jsx("section",{className:Ot.menu,children:c.jsx("ul",{children:t?c.jsx("a",{href:Jm+t,target:"blank",children:c.jsxs("li",{children:[c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link",children:[c.jsx("path",{d:"M15 3h6v6"}),c.jsx("path",{d:"M10 14 21 3"}),c.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})," ","Source code"]})}):null})})]})})]})]})}const $k="_container_10e68_1",Rk="_button_10e68_7",Zm={container:$k,button:Rk},Nk=e=>{if(!e){const t="0123456789ABCDEF";e="#";for(let n=0;n<6;n++)e+=t[Math.floor(Math.random()*16)]}return e},Tk=()=>{const e=t=>{document.body.style.backgroundColor=t};return h.useEffect(()=>()=>e("unset"),[]),c.jsx("div",{className:Zm.container,children:c.jsx("button",{type:"button",className:Zm.button,onClick:()=>e(Nk()),children:"Change Color!! 😎"})})},Io={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function Pk(e,t){const n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),l=parseInt(t.slice(5,7),16);return`#${Math.round((n+i)/2).toString(16)}${Math.round((r+s)/2).toString(16)}${Math.round((o+l)/2).toString(16)}`}function Ok(){const[e,t]=h.useState("#FF5733"),[n,r]=h.useState("#33FF57"),o=s=>{const{name:l,value:a}=s.target;l==="color1"?t(a):r(a)},i=()=>{t("#FF5733"),r("#33FF57")};return c.jsxs("div",{className:Io["color-mixing-container"],children:[c.jsx("div",{className:Io["color-box-top"],style:{backgroundColor:Pk(e,n)},children:c.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),c.jsxs("div",{className:Io["color-inputs"],children:[c.jsxs("div",{className:Io["color-input"],children:[c.jsx("label",{htmlFor:"color1",children:"Color 1"}),c.jsx("input",{type:"color",name:"color1",value:e,onChange:o})]}),c.jsxs("div",{className:Io["color-input"],children:[c.jsx("label",{htmlFor:"color2",children:"Color 2"}),c.jsx("input",{type:"color",name:"color2",value:n,onChange:o})]}),c.jsx("button",{className:Io["mix-button"],onClick:i,style:{marginTop:"1rem"},children:"Reset"})]})]})}const Ak="_main_pfcqp_1",Mk="_size_pfcqp_5",Dk="_grid_pfcqp_13",Ik="_cell_pfcqp_17",dc={main:Ak,size:Mk,grid:Dk,cell:Ik};function Lk({columns:e,values:t}){return c.jsx("table",{className:dc.grid,style:{gridTemplateColumns:`repeat(${e}, 50px)`},children:c.jsx("tbody",{children:t.map((n,r)=>c.jsx("tr",{children:n.map(o=>c.jsx("td",{className:dc.cell,children:o},o))},r))})})}function Fk({rows:e,setRows:t,columns:n,setColumns:r}){return c.jsxs("section",{className:dc.size,children:[c.jsxs("label",{htmlFor:"rows",children:["Rows :: ",e]}),c.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:e,onChange:o=>t(+o.target.value)}),c.jsxs("label",{htmlFor:"columns",children:["Columns :: ",n]}),c.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:n,onChange:o=>r(+o.target.value)})]})}function zk(e,t){const n=Array.from(Array(e),()=>[]);let r=1,o=1,i=0,s=0;for(;s=0;)n[i][s]=r++,i+=o;o*=-1,i+=o,s+=1}return n}function Bk(){const[e,t]=h.useState(2),[n,r]=h.useState(2),o=zk(e,n);return c.jsxs("main",{className:dc.main,children:[c.jsx(Fk,{rows:e,columns:n,setRows:t,setColumns:r}),c.jsx(Lk,{columns:n,values:o})]})}const Uk="_main_1cx3l_1",Hk={main:Uk};function Wk(){const[e,t]=h.useState(0),n=h.useRef(1),r=l=>{n.current=l},o=()=>{t(l=>l+n.current)},i=()=>{t(l=>l-n.current)},s=()=>{t(0)};return c.jsxs("main",{className:Hk.main,children:[c.jsx("h2",{children:e}),c.jsxs("section",{children:[c.jsx("button",{onClick:i,"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:o,"aria-label":"Increment",children:"+"})]}),c.jsxs("section",{children:[c.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),c.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:l=>r(l.target.valueAsNumber),title:"Step value"})]}),c.jsx("section",{children:c.jsx("button",{onClick:s,children:"Reset"})})]})}const Vk={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},Gk="_select_17qmd_1",Kk="_form_17qmd_6",qk="_formField_17qmd_13",Yk="_formInput_17qmd_17",Zr={select:Gk,form:Kk,formField:qk,formInput:Yk};function Qk({fields:e,dispatch:t}){return c.jsxs("form",{className:Zr.form,children:[c.jsxs("div",{className:Zr.formField,children:[c.jsx("label",{htmlFor:"name",children:"Name: "}),c.jsx("input",{className:Zr.formInput,type:"text",id:"name",value:e.name,onChange:n=>t({name:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),c.jsx("input",{className:Zr.formInput,type:"text",id:"companyName",value:e.companyName,onChange:n=>t({companyName:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),c.jsx("input",{className:Zr.formInput,type:"date",id:"effectiveDate",value:e.effectiveDate,onChange:n=>t({effectiveDate:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),c.jsx("input",{className:Zr.formInput,type:"date",id:"lastDate",value:e.lastDate,onChange:n=>t({lastDate:n.target.value})})]})]})}function Xk({name:e,companyName:t,effectiveDate:n,lastDate:r}){return console.log(n),c.jsxs("div",{children:[c.jsx("p",{children:"Hi,"}),c.jsxs("p",{children:["Please accept this email as my formal resignation from ",t,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),c.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",n,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",r,"."]}),c.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",t," and looking forward to your support."]}),c.jsx("br",{}),c.jsxs("p",{children:["Thanks and Regards,",c.jsx("br",{}),e]})]})}function Jk({template:e,setTemplate:t}){const n=r=>{t(r.target.value)};return c.jsxs("form",{className:"text-center",children:[c.jsx("label",{htmlFor:"template",children:"Template: "}),c.jsx("select",{id:"template",value:e,onChange:n,className:Zr.select,children:c.jsx("option",{value:"resignation",children:"Resignation"})})]})}function Zk(){const[e,t]=h.useState("jobApplication"),[n,r]=h.useReducer((o,i)=>({...o,...i}),Vk);return c.jsxs(c.Fragment,{children:[c.jsx(Jk,{template:e,setTemplate:t}),c.jsx(Qk,{fields:n,dispatch:r}),c.jsx("hr",{}),c.jsx(Xk,{...n})]})}const e2="_form_1ufkd_2",t2={form:e2};function n2({onAddExpense:e}){const[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(""),l=a=>{a.preventDefault(),e({id:Date.now(),date:t,amount:parseFloat(r),category:i}),n(""),o(""),s("")};return c.jsxs("form",{onSubmit:l,className:t2.form,children:[c.jsx("input",{type:"date",value:t,onChange:a=>n(a.target.value),required:!0}),c.jsx("input",{type:"number",value:r,placeholder:"Please Enter Amount",onChange:a=>o(a.target.value),required:!0}),c.jsxs("select",{value:i,onChange:a=>s(a.target.value),children:[c.jsx("option",{value:"",children:"Select Category"}),c.jsx("option",{value:"Food",children:"Food"}),c.jsx("option",{value:"Transport",children:"Transport"}),c.jsx("option",{value:"Entertainment",children:"Entertainment"}),c.jsx("option",{value:"Other",children:"Other"})]}),c.jsx("button",{type:"submit",children:"Add Expense"})]})}const r2="_mainContainer_1ynr6_2",o2="_btnRed_1ynr6_32",uf={mainContainer:r2,btnRed:o2};function i2({expenses:e}){const t=e.reduce((n,r)=>n+r.amount,0);return c.jsxs("div",{className:uf.mainContainer,children:[c.jsx("h2",{children:"Summary"}),c.jsxs("p",{children:["Total Expenses: $",t.toFixed(2)]})]})}function s2({expenses:e,onDeleteExpense:t}){return c.jsxs("div",{className:uf.mainContainer,children:[c.jsx("h2",{children:"Expenses"}),c.jsx("ul",{children:e.map(n=>c.jsxs("li",{children:[n.date," - $",n.amount," - ",n.category,c.jsx("button",{className:uf.btnRed,onClick:()=>t(n.id),children:"Delete"})]},n.id))})]})}function a2(){const[e,t]=h.useState([]),n=o=>{t(i=>[o,...i])},r=o=>{t(i=>i.filter(s=>s.id!==o))};return c.jsxs("div",{className:"App",children:[c.jsx("h1",{}),c.jsx(n2,{onAddExpense:n}),c.jsx(s2,{expenses:e,onDeleteExpense:r}),c.jsx(i2,{expenses:e})]})}const l2="_feedbackContainer_2c7o2_1",c2="_feedbackBtn_2c7o2_11",u2="_modalContainer_2c7o2_22",d2="_modalContent_2c7o2_35",f2="_iconContainer_2c7o2_50",p2="_iconItem_2c7o2_57",h2="_active_2c7o2_75",m2="_iconImage_2c7o2_81",g2="_modalClose_2c7o2_92",v2="_feedbackContent_2c7o2_108",y2="_feedbackResponse_2c7o2_115",qt={feedbackContainer:l2,feedbackBtn:c2,modalContainer:u2,modalContent:d2,iconContainer:f2,iconItem:p2,active:h2,iconImage:m2,modalClose:g2,feedbackContent:v2,feedbackResponse:y2},x2=[{rating:1,url:"https://cdn-icons-png.flaticon.com/512/14230/14230791.png",mood:"Terrible"},{rating:2,url:"https://cdn-icons-png.flaticon.com/512/166/166527.png",mood:"Unhappy"},{rating:3,url:"https://cdn-icons-png.flaticon.com/512/1791/1791385.png",mood:"Neutral"},{rating:4,url:"https://cdn-icons-png.flaticon.com/512/166/166538.png",mood:"Happy"},{rating:5,url:"https://cdn-icons-png.flaticon.com/512/10851/10851309.png",mood:"Excited"}],w2=(e,t,n)=>{let r=n;return r=t===e?`${r} ${qt.active}`:`${r}`,r},_2=({handleClick:e,activeRating:t})=>c.jsx("div",{className:qt.iconContainer,children:x2.map(n=>c.jsxs("div",{className:w2(n.rating,t,qt.iconItem),onClick:()=>e(n),children:[c.jsx("img",{src:n.url,className:qt.iconImage,alt:n.mood}),c.jsx("p",{children:n.mood})]},n.rating))}),b2=({onClose:e})=>{const[t,n]=h.useState(""),[r,o]=h.useState({}),[i,s]=h.useState(!1),l=()=>{s(!0)},a=d=>{o(d)},u=d=>{n(d.target.value)};return c.jsx("div",{className:qt.modalContainer,onClick:e,children:c.jsxs("div",{className:qt.modalContent,onClick:d=>d.stopPropagation(),children:[c.jsx("button",{className:qt.modalClose,onClick:e,children:"x"}),c.jsx("h1",{children:"User Feedback"}),i?c.jsxs("div",{className:qt.feedbackResponse,children:[c.jsxs("p",{children:["Feedback: ",r.mood]}),c.jsx("p",{children:"Thank you for your feedback"})]}):c.jsxs("form",{className:qt.feedbackContent,onSubmit:l,children:[c.jsx(_2,{handleClick:a,activeRating:r.rating}),c.jsx("textarea",{placeholder:"Please share additional feedback (optional)",rows:"5",cols:"30",style:{width:"80%",margin:"10px",fontSize:"12px",padding:"2px"},value:t,onChange:u}),c.jsx("button",{type:"submit",className:qt.feedbackBtn,disabled:!Object.keys(r).length,children:"Submit"})]})]})})};function S2(){const[e,t]=h.useState(!1),n=()=>{t(!0)},r=()=>{t(!1)};return c.jsxs("div",{className:qt.feedbackContainer,children:[c.jsx("button",{className:qt.feedbackBtn,onClick:n,children:"Feedback"}),e&&c.jsx(b2,{onClose:r})]})}const E2="_app_1o28y_1",C2="_list_1o28y_6",k2="_editList_1o28y_22",j2="_editableInputContainer_1o28y_30",$2="_editableInputError_1o28y_34",R2="_indent_1o28y_48",N2="_controls_1o28y_52",wt={app:E2,list:C2,editList:k2,editableInputContainer:j2,editableInputError:$2,indent:R2,controls:N2};function Lp({onComplete:e,validateNode:t,defaultValue:n=""}){const[r,o]=h.useState(n),[i,s]=h.useState(null),l=d=>{const f=d.target.value;o(f),f===""?s("File or folder name cannot be empty"):t(f)?s(null):s("A file or folder already exists with that name")},a=()=>{e(r)},u=d=>{d.key==="Enter"&&a()};return c.jsxs("div",{className:wt.editableInputContainer,children:[c.jsx("input",{type:"text",autoFocus:!0,onBlur:a,onKeyUp:u,value:r,onChange:l}),i&&c.jsx("div",{className:wt.editableInputError,children:c.jsx("p",{children:i})})]})}function T2({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r,validateNode:o}){const[i,s]=h.useState(!1),l=u=>o(t,e,u),a=u=>{l(u)&&r(t,e,u),s(!1)};return i?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:["📄 ",c.jsx(Lp,{defaultValue:e.name,onComplete:a,validateNode:l})]}):c.jsxs("li",{className:wt.list,children:[c.jsxs("button",{className:wt.button,children:["📄 ",e.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{onClick:()=>s(!0),children:"✏️"}),c.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function P2({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:o,onNodeUpdate:i,onNew:s,validateNode:l}){const[a,u]=h.useState(!1),d=p=>l(n,r,p),f=p=>{n&&(d(p)&&i(n,r,p),u(!1))};return a?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[e?"📂":"📁"," ",c.jsx(Lp,{defaultValue:r==null?void 0:r.name,onComplete:f,validateNode:d})]}):c.jsxs("li",{className:wt.list,"data-root":n===null,children:[c.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),c.jsx("button",{className:"new-file",onClick:()=>s(!1),children:"📄"}),c.jsx("button",{className:"new-folder",onClick:()=>s(!0),children:"🗂"}),c.jsx("button",{className:"delete",onClick:()=>o(n,r),children:"🗑️"})]})]})}function k1({node:e,parent:t,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i}){var y;const[s,l]=h.useState(!1),[a,u]=h.useState(!1),d=h.useRef(!1),f=w=>{w.stopPropagation(),l(!s)},p=w=>{d.current=w,u(!a),l(!0)},g=w=>i(e,null,w),m=w=>{w&&g(w)&&n(e,{name:w,id:new Date().getTime().toString(),isFolder:d.current}),u(!1)};return c.jsxs(c.Fragment,{children:[c.jsx(P2,{expanded:s,toggleExpand:f,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:o,onNew:p,validateNode:i}),s&&c.jsxs("div",{className:wt.indent,children:[(y=e.nodes)==null?void 0:y.map(w=>w.isFolder?c.jsx(k1,{node:w,parent:e,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id):c.jsx(T2,{node:w,parent:e,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id)),a&&c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[d.current?"📁":"📄"," ",c.jsx(Lp,{onComplete:m,validateNode:g})]})]})]})}const O2={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function A2(){const[e,t]=h.useState(O2),n=(s,l)=>{const a={...e},u=[...s.nodes??[]];u.push({...l,nodes:[]}),s.id==="root"?a.nodes=u:s.nodes=u,t(a)},r=(s,l)=>{var d;const a={...e},u=(d=s.nodes)==null?void 0:d.filter(f=>f.id!==l.id);s.id==="root"?a.nodes=u:s.nodes=u,t(a)},o=(s,l,a)=>{var p;const u={...e},d=((p=s.nodes)==null?void 0:p.map(g=>g))??[],f=d.findIndex(g=>g.id===l.id);d[f]={...d[f],name:a},s.id==="root"?u.nodes=d:s.nodes=d,t(u)},i=(s,l,a)=>{var d;return s===null||typeof s.nodes>"u"?!0:a===""?!1:((d=s.nodes)==null?void 0:d.findIndex(f=>f.id!==(l==null?void 0:l.id)&&f.name===a))===-1};return c.jsx("div",{className:wt.app,children:c.jsx(k1,{node:e,parent:null,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i})})}const M2="_App_fw4tl_7",D2="_meal_container_fw4tl_17",I2="_meal_name_fw4tl_29",L2="_meal_img_fw4tl_34",F2="_tags_container_fw4tl_39",z2="_modal_tags_container_fw4tl_40",B2="_tag_fw4tl_39",U2="_modal_tag_fw4tl_40",H2="_modal_meal_img_fw4tl_69",W2="_modal_instruction_fw4tl_74",V2="_foodBtn_fw4tl_79",G2="_openBtn_fw4tl_80",K2="_closeBtn_fw4tl_105",q2="_recipe_table_fw4tl_128",dt={App:M2,meal_container:D2,meal_name:I2,meal_img:L2,tags_container:F2,modal_tags_container:z2,tag:B2,modal_tag:U2,modal_meal_img:H2,modal_instruction:W2,foodBtn:V2,openBtn:G2,closeBtn:K2,recipe_table:q2};function Fp({data:e}){const{strCategory:t,strArea:n,strTags:r}=e;return c.jsxs("ul",{className:dt.modal_tags_container,children:[t&&c.jsx("li",{className:dt.modal_tag,children:t}),n&&c.jsx("li",{className:dt.modal_tag,children:n}),r&&r.split(",").map((o,i)=>c.jsx("li",{className:dt.modal_tag,children:o},i))]})}Fp.propTypes;function j1({data:e,handleOpenDialog:t}){const{strMeal:n,strMealThumb:r}=e;return c.jsxs("div",{className:dt.meal_container,children:[c.jsx("h2",{className:dt.meal_name,children:n}),c.jsx("img",{className:dt.meal_img,src:r,alt:n}),c.jsx(Fp,{data:e}),c.jsx("button",{className:dt.openBtn,onClick:t,children:"detail recipe"})]})}j1.propTypes;function $1({data:e}){const t=n=>{const r=[];for(let o=1;o<=20;o++){const i=n[`strIngredient${o}`],s=n[`strMeasure${o}`];i&&s&&r.push({ingredient:i,measure:s})}return r};return c.jsxs("table",{className:dt.recipe_table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"No."}),c.jsx("th",{children:"Ingredient"}),c.jsx("th",{children:"Measure"})]})}),c.jsx("tbody",{children:t(e).map((n,r)=>c.jsxs("tr",{children:[c.jsx("td",{children:r+1}),c.jsx("td",{children:n.ingredient}),c.jsx("td",{children:n.measure})]},r))})]})}$1.propTypes;function R1({data:e,handleCloseDialog:t}){const{strMeal:n,strMealThumb:r,strInstructions:o,strYoutube:i}=e;return c.jsx("dialog",{open:!0,onClose:t,children:c.jsxs("div",{className:dt.modal_meal_container,children:[c.jsx("button",{className:dt.closeBtn,onClick:t,children:"×"}),c.jsx("h2",{className:dt.modal_meal_name,children:n}),c.jsx("img",{className:dt.modal_meal_img,src:r,alt:n}),c.jsx(Fp,{data:e}),c.jsx($1,{data:e}),c.jsx("h2",{children:"Instruction 📜"}),c.jsx("p",{className:dt.modal_instruction,children:o}),i&&c.jsxs("a",{href:i,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",n]})]})})}R1.propTypes;function Y2(){const[e,t]=h.useState(null),[n,r]=h.useState(!1);h.useEffect(()=>{o()},[]);const o=async()=>{try{const a=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!a.ok)throw new Error("Network response was not ok! Something wrong");const u=await a.json();t(u.meals[0])}catch(a){console.error("Error on fetching data: ",a)}},i=()=>{o()},s=()=>{r(!0)},l=()=>{r(!1)};return c.jsxs("div",{className:dt.App,children:[c.jsx("h1",{children:"Are you hungry 😋"}),c.jsx("button",{className:dt.foodBtn,onClick:i,children:"Another food 🍛"}),n&&c.jsx(R1,{data:e,handleCloseDialog:l}),e&&c.jsx(j1,{data:e,handleOpenDialog:s})]})}const Q2="_app_j2t5p_1",X2="_widget_j2t5p_14",J2="_text_j2t5p_21",Bu={app:Q2,widget:X2,text:J2};function Z2(){const[e,t]=h.useState(),[n,r]=h.useState(!1),[o,i]=h.useState(1),[s,l]=h.useState(!1),[a,u]=h.useState(!1),[d,f]=h.useState(!1);h.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const p=m=>{m.preventDefault(),oe?(u(!0),l(!1)):(f(!0),l(!1),u(!1),r(!0))},g=()=>{t(Math.round(100*Math.random())),f(!1),l(!1),u(!1),r(!1),i(1)};return c.jsxs("div",{className:Bu.app,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),c.jsx("input",{id:"input",type:"number",value:o,min:"0",max:"100",placeholder:"Guess-Number",onChange:m=>i(Number(m.target.value))}),c.jsxs("div",{className:Bu.widget,children:[c.jsx("button",{type:"reset",onClick:g,children:"Reset"}),c.jsx("button",{type:"submit",disabled:n,children:"Check"})]})]}),c.jsxs("div",{className:Bu.text,children:[s&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Less"})," than the actual number"]}),a&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Higher"})," than the actual number"]}),d&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"right"})]})]})]})}const fr={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},ej=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function tj(){const[e,t]=h.useState(null),n=r=>{t(r)};return c.jsxs("div",{className:fr["image-gallery-container"],children:[c.jsx("p",{className:fr["gallery-para"],children:"Click on an image!"}),c.jsx("div",{className:fr["image-container"],children:ej.map((r,o)=>c.jsx("div",{className:fr["image-wrapper"],onClick:()=>n(r),children:c.jsx("img",{src:r,alt:`Image ${o+1}`,className:fr["gallery-image"]})},o))}),e&&c.jsxs("div",{className:fr["selected-image"],children:[c.jsx("h2",{className:fr["selected-heading"],children:"Selected Image"}),c.jsx("img",{src:e,alt:"Selected",className:fr["selected-img"]})]})]})}const nj="_loader_1hfl7_1",rj="_spin_1hfl7_1",Uu={loader:nj,spin:rj,"book-title":"_book-title_1hfl7_21"};function N1(e,t){return function(){return e.apply(t,arguments)}}const{toString:oj}=Object.prototype,{getPrototypeOf:zp}=Object,Yc=(e=>t=>{const n=oj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mn=e=>(e=e.toLowerCase(),t=>Yc(t)===e),Qc=e=>t=>typeof t===e,{isArray:Di}=Array,ra=Qc("undefined");function ij(e){return e!==null&&!ra(e)&&e.constructor!==null&&!ra(e.constructor)&&Zt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T1=Mn("ArrayBuffer");function sj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&T1(e.buffer),t}const aj=Qc("string"),Zt=Qc("function"),P1=Qc("number"),Xc=e=>e!==null&&typeof e=="object",lj=e=>e===!0||e===!1,jl=e=>{if(Yc(e)!=="object")return!1;const t=zp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cj=Mn("Date"),uj=Mn("File"),dj=Mn("Blob"),fj=Mn("FileList"),pj=e=>Xc(e)&&Zt(e.pipe),hj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Zt(e.append)&&((t=Yc(e))==="formdata"||t==="object"&&Zt(e.toString)&&e.toString()==="[object FormData]"))},mj=Mn("URLSearchParams"),gj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _a(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Di(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const A1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!ra(e)&&e!==A1;function df(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,o)=>{const i=e&&O1(t,o)||o;jl(t[i])&&jl(r)?t[i]=df(t[i],r):jl(r)?t[i]=df({},r):Di(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(_a(t,(o,i)=>{n&&Zt(o)?e[i]=N1(o,n):e[i]=o},{allOwnKeys:r}),e),yj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wj=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&zp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_j=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bj=e=>{if(!e)return null;if(Di(e))return e;let t=e.length;if(!P1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zp(Uint8Array)),Ej=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Cj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kj=Mn("HTMLFormElement"),jj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),eg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$j=Mn("RegExp"),D1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_a(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Rj=e=>{D1(e,(t,n)=>{if(Zt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Zt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Di(e)?r(e):r(String(e).split(t)),n},Tj=()=>{},Pj=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Hu="abcdefghijklmnopqrstuvwxyz",tg="0123456789",I1={DIGIT:tg,ALPHA:Hu,ALPHA_DIGIT:Hu+Hu.toUpperCase()+tg},Oj=(e=16,t=I1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Aj(e){return!!(e&&Zt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Mj=e=>{const t=new Array(10),n=(r,o)=>{if(Xc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Di(r)?[]:{};return _a(r,(s,l)=>{const a=n(s,o+1);!ra(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},Dj=Mn("AsyncFunction"),Ij=e=>e&&(Xc(e)||Zt(e))&&Zt(e.then)&&Zt(e.catch),A={isArray:Di,isArrayBuffer:T1,isBuffer:ij,isFormData:hj,isArrayBufferView:sj,isString:aj,isNumber:P1,isBoolean:lj,isObject:Xc,isPlainObject:jl,isUndefined:ra,isDate:cj,isFile:uj,isBlob:dj,isRegExp:$j,isFunction:Zt,isStream:pj,isURLSearchParams:mj,isTypedArray:Sj,isFileList:fj,forEach:_a,merge:df,extend:vj,trim:gj,stripBOM:yj,inherits:xj,toFlatObject:wj,kindOf:Yc,kindOfTest:Mn,endsWith:_j,toArray:bj,forEachEntry:Ej,matchAll:Cj,isHTMLForm:kj,hasOwnProperty:eg,hasOwnProp:eg,reduceDescriptors:D1,freezeMethods:Rj,toObjectSet:Nj,toCamelCase:jj,noop:Tj,toFiniteNumber:Pj,findKey:O1,global:A1,isContextDefined:M1,ALPHABET:I1,generateString:Oj,isSpecCompliantForm:Aj,toJSONObject:Mj,isAsyncFn:Dj,isThenable:Ij};function de(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}A.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const L1=de.prototype,F1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{F1[e]={value:e}});Object.defineProperties(de,F1);Object.defineProperty(L1,"isAxiosError",{value:!0});de.from=(e,t,n,r,o,i)=>{const s=Object.create(L1);return A.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),de.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Lj=null;function ff(e){return A.isPlainObject(e)||A.isArray(e)}function z1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function ng(e,t,n){return e?e.concat(t).map(function(o,i){return o=z1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Fj(e){return A.isArray(e)&&!e.some(ff)}const zj=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Jc(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!A.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!a&&A.isBlob(m))throw new de("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,y,w){let v=m;if(m&&!w&&typeof m=="object"){if(A.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&Fj(m)||(A.isFileList(m)||A.endsWith(y,"[]"))&&(v=A.toArray(m)))return y=z1(y),v.forEach(function(_,C){!(A.isUndefined(_)||_===null)&&t.append(s===!0?ng([y],C,i):s===null?y:y+"[]",u(_))}),!1}return ff(m)?!0:(t.append(ng(w,y,i),u(m)),!1)}const f=[],p=Object.assign(zj,{defaultVisitor:d,convertValue:u,isVisitable:ff});function g(m,y){if(!A.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),A.forEach(m,function(v,x){(!(A.isUndefined(v)||v===null)&&o.call(t,v,A.isString(x)?x.trim():x,y,p))===!0&&g(v,y?y.concat(x):[x])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return g(e),t}function rg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bp(e,t){this._pairs=[],e&&Jc(e,this,t)}const B1=Bp.prototype;B1.append=function(t,n){this._pairs.push([t,n])};B1.toString=function(t){const n=t?function(r){return t.call(this,r,rg)}:rg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Bj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function U1(e,t,n){if(!t)return e;const r=n&&n.encode||Bj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=A.isURLSearchParams(t)?t.toString():new Bp(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class og{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const H1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uj=typeof URLSearchParams<"u"?URLSearchParams:Bp,Hj=typeof FormData<"u"?FormData:null,Wj=typeof Blob<"u"?Blob:null,Vj={isBrowser:!0,classes:{URLSearchParams:Uj,FormData:Hj,Blob:Wj},protocols:["http","https","file","blob","url","data"]},W1=typeof window<"u"&&typeof document<"u",Gj=(e=>W1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Kj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:W1,hasStandardBrowserEnv:Gj,hasStandardBrowserWebWorkerEnv:Kj},Symbol.toStringTag,{value:"Module"})),Rn={...qj,...Vj};function Yj(e,t){return Jc(e,new Rn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Rn.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Qj(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xj(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&A.isArray(o)?o.length:s,a?(A.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!A.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&A.isArray(o[s])&&(o[s]=Xj(o[s])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(Qj(r),o,n,0)}),n}return null}function Jj(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Up={transitional:H1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o&&o?JSON.stringify(V1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yj(t,this.formSerializer).toString();if((l=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Jc(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Jj(t)):t}],transformResponse:[function(t){const n=this.transitional||Up.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?de.from(l,de.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Up.headers[e]={}});const Hp=Up,Zj=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),e$=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Zj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ig=Symbol("internals");function ls(e){return e&&String(e).trim().toLowerCase()}function $l(e){return e===!1||e==null?e:A.isArray(e)?e.map($l):String(e)}function t$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const n$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wu(e,t,n,r,o){if(A.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function r$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function o$(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Zc{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,a,u){const d=ls(a);if(!d)throw new Error("header name must be a non-empty string");const f=A.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||a]=$l(l))}const s=(l,a)=>A.forEach(l,(u,d)=>i(u,d,a));return A.isPlainObject(t)||t instanceof this.constructor?s(t,n):A.isString(t)&&(t=t.trim())&&!n$(t)?s(e$(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ls(t),t){const r=A.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return t$(o);if(A.isFunction(n))return n.call(this,o,r);if(A.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ls(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Wu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=ls(s),s){const l=A.findKey(r,s);l&&(!n||Wu(r,r[l],l,n))&&(delete r[l],o=!0)}}return A.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Wu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return A.forEach(this,(o,i)=>{const s=A.findKey(r,i);if(s){n[s]=$l(o),delete n[i];return}const l=t?r$(i):String(i).trim();l!==i&&delete n[i],n[l]=$l(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&A.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ig]=this[ig]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=ls(s);r[l]||(o$(o,s),r[l]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}Zc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(Zc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(Zc);const Qn=Zc;function Vu(e,t){const n=this||Hp,r=t||n,o=Qn.from(r.headers);let i=r.data;return A.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function G1(e){return!!(e&&e.__CANCEL__)}function ba(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(ba,de,{__CANCEL__:!0});function i$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const s$=Rn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),A.isString(r)&&s.push("path="+r),A.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function a$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function l$(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function K1(e,t){return e&&!a$(t)?l$(e,t):t}const c$=Rn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=A.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function u$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function d$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),d=r[i];s||(s=u),n[o]=a,r[o]=u;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),u=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-i)/a:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const f$=typeof XMLHttpRequest<"u",p$=f$&&function(e){return new Promise(function(n,r){let o=e.data;const i=Qn.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let d;if(A.isFormData(o)){if(Rn.hasStandardBrowserEnv||Rn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[y,...w]=d?d.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([y||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+w))}const p=K1(e.baseURL,e.url);f.open(e.method.toUpperCase(),U1(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const y=Qn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};i$(function(_){n(_),u()},function(_){r(_),u()},v),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(r(new de("Request aborted",de.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||H1;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new de(w,v.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,f)),f=null},Rn.hasStandardBrowserEnv&&(l&&A.isFunction(l)&&(l=l(e)),l||l!==!1&&c$(p))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&s$.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&A.forEach(i.toJSON(),function(w,v){f.setRequestHeader(v,w)}),A.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",sg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",sg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=y=>{f&&(r(!y||y.type?new ba(null,e,f):y),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=u$(p);if(m&&Rn.protocols.indexOf(m)===-1){r(new de("Unsupported protocol "+m+":",de.ERR_BAD_REQUEST,e));return}f.send(o||null)})},pf={http:Lj,xhr:p$};A.forEach(pf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ag=e=>`- ${e}`,h$=e=>A.isFunction(e)||e===null||e===!1,q1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(ag).join(` -`):" "+ag(i[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:pf};function Gu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ba(null,e)}function lg(e){return Gu(e),e.headers=Qn.from(e.headers),e.data=Vu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q1.getAdapter(e.adapter||Hp.adapter)(e).then(function(r){return Gu(e),r.data=Vu.call(e,e.transformResponse,r),r.headers=Qn.from(r.headers),r},function(r){return G1(r)||(Gu(e),r&&r.response&&(r.response.data=Vu.call(e,e.transformResponse,r.response),r.response.headers=Qn.from(r.response.headers))),Promise.reject(r)})}const cg=e=>e instanceof Qn?e.toJSON():e;function Ri(e,t){t=t||{};const n={};function r(u,d,f){return A.isPlainObject(u)&&A.isPlainObject(d)?A.merge.call({caseless:f},u,d):A.isPlainObject(d)?A.merge({},d):A.isArray(d)?d.slice():d}function o(u,d,f){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function i(u,d){if(!A.isUndefined(d))return r(void 0,d)}function s(u,d){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>o(cg(u),cg(d),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=a[d]||o,p=f(e[d],t[d],d);A.isUndefined(p)&&f!==l||(n[d]=p)}),n}const Y1="1.6.2",Wp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ug={};Wp.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Y1+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new de(o(s," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!ug[s]&&(ug[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function m$(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new de("option "+i+" must be "+a,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const hf={assertOptions:m$,validators:Wp},pr=hf.validators;class fc{constructor(t){this.defaults=t,this.interceptors={request:new og,response:new og}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ri(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&hf.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean)},!1),o!=null&&(A.isFunction(o)?n.paramsSerializer={serialize:o}:hf.assertOptions(o,{encode:pr.function,serialize:pr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Qn.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,f=0,p;if(!a){const m=[lg.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),p=m.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new ba(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Vp(function(o){t=o}),cancel:t}}}const g$=Vp;function v$(e){return function(n){return e.apply(null,n)}}function y$(e){return A.isObject(e)&&e.isAxiosError===!0}const mf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mf).forEach(([e,t])=>{mf[t]=e});const x$=mf;function Q1(e){const t=new Rl(e),n=N1(Rl.prototype.request,t);return A.extend(n,Rl.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Q1(Ri(e,o))},n}const Ce=Q1(Hp);Ce.Axios=Rl;Ce.CanceledError=ba;Ce.CancelToken=g$;Ce.isCancel=G1;Ce.VERSION=Y1;Ce.toFormData=Jc;Ce.AxiosError=de;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=v$;Ce.isAxiosError=y$;Ce.mergeConfig=Ri;Ce.AxiosHeaders=Qn;Ce.formToJSON=e=>V1(A.isHTMLForm(e)?new FormData(e):e);Ce.getAdapter=q1.getAdapter;Ce.HttpStatusCode=x$;Ce.default=Ce;function w$(e){const[t,n]=h.useState(!0),[r,o]=h.useState(!1),[i,s]=h.useState([]),[l,a]=h.useState(!1);return h.useEffect(()=>{n(!0),o(!1);let u;return Ce({method:"GET",url:"https://jsonplaceholder.typicode.com/photos",params:{_page:e,_limit:10},cancelToken:new Ce.CancelToken(d=>u=d)}).then(d=>{var f;s(p=>[...new Set([...p,...d.data.map(g=>g.title)])]),a(!(((f=d.data.at(-1))==null?void 0:f.id)===5e3||d.data.length===0)),n(!1)}).catch(d=>{Ce.isCancel(d)||o(!0)}),()=>u()},[e]),{loading:t,error:r,items:i,hasMore:l}}function _$(){const[e,t]=h.useState(1),{items:n,hasMore:r,loading:o,error:i}=w$(e),s=h.useRef(),l=h.useCallback(a=>{o||(s.current&&s.current.disconnect(),s.current=new IntersectionObserver(u=>{u[0].isIntersecting&&r&&t(d=>d+1)}),a&&s.current.observe(a))},[o,r]);return c.jsxs(c.Fragment,{children:[n==null?void 0:n.map((a,u)=>n.length===u+1?c.jsx("div",{className:`${Uu["book-title"]}`,ref:l,children:a},a):c.jsx("div",{className:`${Uu["book-title"]}`,children:a},a)),o&&c.jsx("div",{className:Uu.loader}),c.jsx("div",{children:i&&"Error"})]})}const b$="_result_1y6k8_1",S$={result:b$},Za=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),E$=e=>c.jsxs("table",{className:S$.result,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Year"}),c.jsx("th",{children:"Total Savings"}),c.jsx("th",{children:"Interest (Year)"}),c.jsx("th",{children:"Total Interest"}),c.jsx("th",{children:"Invested Capital"})]})}),c.jsx("tbody",{children:e.data.map(t=>c.jsxs("tr",{children:[c.jsx("td",{children:t.year}),c.jsx("td",{children:Za.format(t.savingsEndOfYear)}),c.jsx("td",{children:Za.format(t.yearlyInterest)}),c.jsx("td",{children:Za.format(t.savingsEndOfYear-e.inInvest-t.yearlyContribution*t.year)}),c.jsx("td",{children:Za.format(parseInt(e.inInvest)+t.yearlyContribution*t.year)})]},t.year))})]}),C$="_form_1schc_1",k$="_actions_1schc_63",j$="_button_1schc_75",$$="_buttonAlt_1schc_93",Lo={form:C$,"input-group":"_input-group_1schc_17",actions:k$,button:j$,buttonAlt:$$},dg={"current-savings":1e4,"yearly-contribution":1200,"expected-return":7,duration:10},R$=e=>{const[t,n]=h.useState(dg),r=s=>{s.preventDefault(),e.onCalculate(t)},o=()=>{n(dg),e.onCalculate(null)},i=(s,l)=>{n(a=>({...a,[s]:l}))};return c.jsxs("form",{onSubmit:r,className:Lo.form,children:[c.jsxs("div",{className:Lo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"current-savings",children:"Current Savings ($)"}),c.jsx("input",{onChange:s=>i("current-savings",s.target.value),value:t["current-savings"],type:"number",id:"current-savings"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"yearly-contribution",children:"Yearly Savings ($)"}),c.jsx("input",{onChange:s=>i("yearly-contribution",s.target.value),value:t["yearly-contribution"],type:"number",id:"yearly-contribution"})]})]}),c.jsxs("div",{className:Lo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"expected-return",children:"Expected Interest (%, per year)"}),c.jsx("input",{onChange:s=>i("expected-return",s.target.value),value:t["expected-return"],type:"number",id:"expected-return"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"duration",children:"Investment Duration (years)"}),c.jsx("input",{onChange:s=>i("duration",s.target.value),value:t.duration,type:"number",id:"duration"})]})]}),c.jsxs("p",{className:Lo.actions,children:[c.jsx("button",{onClick:o,type:"reset",className:Lo.buttonAlt,children:"Reset"}),c.jsx("button",{type:"submit",className:Lo.button,children:"Calculate"})]})]})},N$="_main_kxpla_1",T$={main:N$};function P$(){const[e,t]=h.useState(null),n=o=>{t(o)},r=[];if(e){let o=+e["current-savings"];const i=+e["yearly-contribution"],s=+e["expected-return"]/100,l=+e.duration;for(let a=0;a{const[e,t]=h.useState("");return h.useEffect(()=>{const r=localStorage.getItem("theme");r&&t(r)},[]),h.useEffect(()=>{localStorage.setItem("theme",e)},[e]),{theme:e,toggleTheme:()=>{t(e==="dark-theme"?"light-theme":"dark-theme")}}};function I$(){const{theme:e,toggleTheme:t}=D$();return c.jsxs("main",{className:`${Ku.main} ${e==="dark-theme"?Ku.darkTheme:Ku.lightTheme}`,children:[c.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),c.jsx("button",{onClick:t,children:"Toggle Theme"})]})}const L$="_layout_1dsxo_1",F$="_button_1dsxo_14",z$="_grid_1dsxo_18",B$="_tile_1dsxo_23",U$="_frontface_1dsxo_27",H$="_backface_1dsxo_28",Er={layout:L$,button:F$,grid:z$,tile:B$,frontface:U$,backface:H$};function W$({tile:e,onTileClick:t,idx:n}){const r=h.useRef(null),o=h.useRef(null);return h.useEffect(()=>{r.current&&o.current&&(e.isOpen?(r.current.style.transform="rotateY(180deg)",o.current.style.transform="rotateY(0deg)"):(r.current.style.transform="rotateY(0deg)",o.current.style.transform="rotateY(180deg)"))},[e.isOpen]),c.jsxs("div",{className:Er.tile,onClick:()=>{t(n)},children:[c.jsx("div",{className:Er.frontface+" "+Er.tile,ref:r}),c.jsx("div",{className:Er.backface+" "+Er.tile,ref:o,children:e.symbol})]})}function V$({size:e,tiles:t,onTileClick:n}){return c.jsx("div",{className:Er.grid,style:{gridTemplateRows:`repeat(${e}, min(${80/e}vmin, 6rem))`,gridTemplateColumns:`repeat(${e}, min(${80/e}vmin, 6rem))`,gap:`${10/e}vmin`},children:t.map((r,o)=>c.jsx(W$,{tile:r,onTileClick:n,idx:o},o))})}const fg=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"],G$=(e=8,t=!1)=>{const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{const n=G$(e,t),r=n.concat(n);return K$(r)},cs=4,Vo=2,pg=e=>q$(e*e/Vo,!0).map(t=>({symbol:t,isOpen:!1}));function Y$(){const[e,t]=h.useState(()=>pg(cs)),[n,r]=h.useState([]),o=h.useRef(),i=h.useRef(0),s=h.useRef(0),l=h.useRef(!1),a=()=>{o.current=void 0,i.current=0,s.current=0,l.current=!0,t(f=>f.map(p=>({symbol:p.symbol,isOpen:!1}))),setTimeout(()=>{t(pg(cs)),l.current=!1},500)},u=()=>{if(n.length{const m=[...g];return m[f]={symbol:g[f].symbol,isOpen:!1},m[p]={symbol:g[p].symbol,isOpen:!1},r(n.slice(Vo)),m})},d=f=>{e[f].isOpen||l.current||(i.current++,r([...n,f]),t(p=>{const g=[...p];return g[f]={...g[f],isOpen:!0},g}))};return h.useEffect(()=>{n.length===Vo&&(e[n[0]].symbol===e[n[1]].symbol?(r([]),s.current+=Vo):o.current=window.setTimeout(()=>{u()},3e3)),n.length===Vo+1&&(window.clearTimeout(o.current),u())},[e]),c.jsxs("div",{className:Er.layout,children:[c.jsx(V$,{size:cs,tiles:e,onTileClick:d}),c.jsx("div",{children:c.jsx("button",{className:Er.button,onClick:a,children:"Reset"})}),c.jsxs("output",{children:[c.jsxs("p",{children:["Attempts : ",i.current]}),c.jsx("p",{children:s.current===cs*cs&&"Congratulations"})]})]})}const Q$="_main_h642g_1",X$="_nestedDropdown_h642g_4",J$="_dropdownMain_h642g_12",Z$="_dropdownItems_h642g_19",eR="_arrow_h642g_52",tR="_dropdown_h642g_12",nR="_show_h642g_76",rR="_dropdownSubItems_h642g_80",Mr={main:Q$,nestedDropdown:X$,dropdownMain:J$,dropdownItems:Z$,arrow:eR,dropdown:tR,show:nR,dropdownSubItems:rR},oR=({subItems:e,dropdown:t,depthLevel:n})=>{const r=n>1?Mr.dropdownSubItems:"";return c.jsx("ul",{className:`${Mr.dropdown} ${r} ${t?Mr.show:""}`,children:e.map((o,i)=>c.jsx(X1,{items:o,depthLevel:n+1},i))})},X1=({items:e,depthLevel:t})=>{const[n,r]=h.useState(!1);let o=h.useRef();h.useEffect(()=>{const l=a=>{n&&o.current&&!o.current.contains(a.target)&&r(!1)};return document.addEventListener("mousedown",l),document.addEventListener("touchstart",l),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l)}},[n]);const i=()=>{window.innerWidth>960&&r(!0)},s=()=>{window.innerWidth>960&&r(!1)};return c.jsx("li",{className:Mr.dropdownItems,onMouseEnter:i,onMouseLeave:s,children:e.subItems?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button","aria-expanded":n?"true":"false",onClick:()=>r(l=>!l),children:[e.title,t>0?c.jsx("span",{children:" »"}):c.jsx("span",{className:Mr.arrow})]}),c.jsx(oR,{depthLevel:t+1,subItems:e.subItems,dropdown:n})]}):c.jsx("a",{href:"/#",children:e.title})})},iR=[{title:"Software Development",subItems:[{title:"Web design"},{title:"Web development",subItems:[{title:"Frontend",subItems:[{title:"Angular"},{title:"ReactJS"},{title:"VueJS"}]},{title:"Backend",subItems:[{title:"NodeJS"},{title:"PHP"},{title:"JAVA",subItems:[{title:"Spring"},{title:"Hibernate"}]}]}]}]}],sR=()=>c.jsx("div",{className:Mr.main,children:c.jsx("div",{className:Mr.nestedDropdown,children:c.jsxs("ul",{className:Mr.dropdownMain,children:[" ",iR.map((e,t)=>c.jsx(X1,{items:e,depthLevel:0},t))," "]})})}),hg=[{id:1,name:"Pizza",price:10},{id:2,name:"Burger",price:20},{id:3,name:"Fries",price:30},{id:4,name:"Pasta",price:15},{id:5,name:"Salad",price:30},{id:6,name:"Soup",price:20},{id:7,name:"Marshmallows",price:10},{id:8,name:"Ice cream",price:20},{id:9,name:"Cake",price:30},{id:10,name:"Donut",price:5},{id:11,name:"Sushi",price:25},{id:12,name:"Taco",price:12},{id:13,name:"Steak",price:35},{id:14,name:"Chicken Wings",price:18},{id:15,name:"Lasagna",price:22},{id:16,name:"Burrito",price:15},{id:17,name:"Sushi Roll",price:27},{id:18,name:"Grilled Cheese Sandwich",price:10},{id:19,name:"Hot Dog",price:8},{id:20,name:"Nachos",price:12},{id:21,name:"Ramen",price:14},{id:22,name:"Pho",price:16},{id:23,name:"Gyros",price:18},{id:24,name:"Ceviche",price:20},{id:25,name:"Miso Soup",price:8},{id:26,name:"Crispy Tofu",price:12},{id:27,name:"Paella",price:28},{id:28,name:"Fish and Chips",price:17},{id:29,name:"Shrimp Scampi",price:24},{id:30,name:"Cannoli",price:10},{id:31,name:"Churros",price:7},{id:32,name:"Baklava",price:9},{id:33,name:"Tiramisu",price:12},{id:34,name:"Cheesecake",price:18},{id:35,name:"Chocolate Fondue",price:20}],aR="_pagination_1mnjc_1",lR={pagination:aR},cR=({currentPage:e,totalPages:t,onPageChange:n})=>c.jsxs("div",{className:lR.pagination,children:[c.jsx("button",{onClick:()=>n(e-1),disabled:e===1,children:"Previous"}),c.jsxs("span",{children:["Page ",e," of ",t]}),c.jsx("button",{onClick:()=>n(e+1),disabled:e===t,children:"Next"})]}),uR="_container_for_table_1pb6f_1",dR="_table_1pb6f_5",fR="_thead_1pb6f_10",pR="_tbody_1pb6f_19",el={container_for_table:uR,table:dR,thead:fR,tbody:pR},hR=({data:e,currentPage:t,totalPages:n,onPageChange:r})=>c.jsxs("div",{className:el.container_for_table,children:[c.jsx(cR,{currentPage:t,totalPages:n,onPageChange:r}),c.jsxs("table",{className:el.table,children:[c.jsx("thead",{className:el.thead,children:c.jsxs("tr",{children:[c.jsx("th",{children:"#"}),c.jsx("th",{children:"Food"}),c.jsx("th",{children:"Price"})]})}),c.jsx("tbody",{className:el.tbody,children:e.map((o,i)=>c.jsxs("tr",{children:[c.jsx("td",{children:o.id}),c.jsx("td",{children:o.name}),c.jsxs("td",{children:[o.price,"$"]})]},i))})]})]}),mR="_pagination_container_13fvi_1",gR="_title_13fvi_10",vR={pagination_container:mR,title:gR},yR=()=>{const[t,n]=h.useState(1),r=l=>{n(l)},o=(t-1)*10,i=o+10,s=hg.slice(o,i);return c.jsx("div",{className:vR.pagination_container,children:c.jsx(hR,{data:s,currentPage:t,totalPages:Math.ceil(hg.length/10),onPageChange:r})})},xR={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"},wR="_App_6bcv0_1",_R="_main_section_6bcv0_10",bR="_main_header_6bcv0_15",SR="_password_form_6bcv0_22",ER="_second_section_6bcv0_28",CR="_inputText_6bcv0_38",kR="_fifth_section_6bcv0_39",jR="_btn_6bcv0_46",$R="_fourth_section_6bcv0_47",RR="_third_section_6bcv0_72",NR="_sixth_section_6bcv0_91",TR="_second_header_6bcv0_97",ft={App:wR,main_section:_R,main_header:bR,password_form:SR,second_section:ER,inputText:CR,fifth_section:kR,btn:jR,fourth_section:$R,third_section:RR,sixth_section:NR,second_header:TR,"password-table":"_password-table_6bcv0_105"};function J1({passwordLength:e,setPasswordLength:t,isChecked:n,handleChange:r}){return c.jsxs("form",{className:ft.password_form,children:[c.jsxs("div",{children:["password length: ",e]}),c.jsx("div",{children:c.jsx("input",{type:"range",min:"6",max:"30",value:e,onChange:o=>t(o.target.value)})}),c.jsx("div",{children:"Include Lowercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedLowerCha,onChange:r("isCheckedLowerCha")}),"Lowercase character (e.g. abcdefg)"]})}),c.jsx("div",{children:"Include Uppercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedUpperCha,onChange:r("isCheckedUpperCha")}),"Uppercase character (e.g. ABCDEFG)"]})}),c.jsx("div",{children:"Include Number:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedNumber,onChange:r("isCheckedNumber")}),"Number (e.g. 12345)"]})}),c.jsx("div",{children:"Include Symbols:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedSymbols,onChange:r("isCheckedSymbols")}),"Symbols (e.g. !@#$%)"]})})]})}J1.propTypes;function Z1({generatedPassword:e,handleCopyText:t,showTextNotification:n,notificationMessage:r}){return c.jsxs("div",{className:ft.second_section,children:[c.jsx("label",{children:"Your generated password: "}),c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"Your generated password will appear here",value:e,readOnly:!0}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:o=>{t(o),n("copied2")},children:"copy"}),r==="copied2"&&c.jsx("span",{children:r.slice(0,6)})]})]})}Z1.propTypes;function ex({isChecked:e,passwordLength:t,randomPassword:n,PasswordToRemember:r,ALPHABET_WORDS:o,passwordGenerate:i,handleCopyText:s,showTextNotification:l,notificationMessage:a}){return c.jsxs("div",{className:ft.fourth_section,children:[c.jsx("button",{className:ft.btn,title:"generate password",onClick:i({...e},t,n,r,o),children:"generate password"}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:u=>{s(u),l("copied1")},children:"copy"}),a==="copied1"&&c.jsx("span",{children:a.slice(0,6)})]})}ex.propTypes;function tx({saveNameAndPass:e}){return c.jsxs("table",{className:ft["password-table"],children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name of password"}),c.jsx("th",{children:"Password"})]})}),c.jsx("tbody",{children:e.map((t,n)=>c.jsxs("tr",{children:[c.jsx("td",{children:t.name}),c.jsx("td",{children:t.pass})]},n))})]})}tx.propTypes;function nx({generatedPassword:e,handleSavePasswordAndName:t,saveNameAndPass:n,setLocalStorage:r,checkPasswordNameExit:o,showTextNotification:i,notificationMessage:s}){const[l,a]=h.useState(!1),[u,d]=h.useState("");return c.jsxs("div",{className:ft.fifth_section,children:[c.jsx("label",{title:"save your password",htmlFor:"checkToSave",children:"Save password:"}),c.jsx("input",{id:"checkToSave",type:"checkbox",checked:l,onChange:()=>a(!l),disabled:e==""}),l&&c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"name your password",value:u,onChange:f=>d(f.target.value)}),c.jsx("button",{className:ft.btn,title:"save password",onClick:t(u,e,n,r,o,i),children:"save"}),s==="cannot save without name!"&&c.jsx("span",{children:s})||s==="name already taken!"&&c.jsx("span",{children:s})]})]})}nx.propTypes;function PR(){const[e,t]=h.useState(""),[n,r]=h.useState("There is no password to remember! Please generate one"),[o,i]=h.useState({isCheckedLowerCha:!0,isCheckedUpperCha:!0,isCheckedNumber:!0,isCheckedSymbols:!1}),[s,l]=h.useState(6),[a,u]=h.useState([]),[d,f]=h.useState("");h.useEffect(()=>{const k=g("PASS");k&&u(k)},[]);const p=(k,j)=>{localStorage.setItem(k,JSON.stringify(j))},g=k=>{const j=localStorage.getItem(k);if(j!==null)return JSON.parse(j)},m=(k,j)=>k.filter(P=>P.name===j),y=(k,j,P,T,M,I)=>()=>{const H=M(P,k);if(k.length!==0){if(H.length>0){I("name already taken!");return}u(B=>{const Y=[...B,{name:k,pass:j}];return console.log(Y),T("PASS",Y),Y})}else{I("cannot save without name!");return}},w=k=>j=>{i(P=>({...P,[k]:j.target.checked}))},v={lower:()=>String.fromCharCode(Math.floor(Math.random()*26)+97),upper:()=>String.fromCharCode(Math.floor(Math.random()*26)+65),number:()=>Math.floor(Math.random()*10),symbolCha:()=>{const k=["!","@","#","$","%","^","&","*","(",")","_","+","-","=","/","|"],j=Math.floor(Math.random()*k.length);return k[j]}},x=k=>{const j=k.split("");for(let P=j.length-1;P>0;P--){const T=Math.floor(Math.random()*P+1);[j[P],j[T]]=[j[T],j[P]]}return j.join("")},_=(k,j)=>{const P=k.split("");let T="";P.map(M=>{j[M]?T+=` ${j[M]}`:T+=` ${M}`}),r(T.trim())},C=(k,j,P,T,M)=>()=>{let I="";const{isCheckedLowerCha:H,isCheckedUpperCha:B,isCheckedNumber:Y,isCheckedSymbols:q}=k,Q=H+B+Y+q,L=[{lower:H},{upper:B},{number:Y},{symbolCha:q}].filter(V=>Object.values(V)[0]===!0);if(Q===0)return"";for(let V=0;V{const re=Object.keys(J)[0];I+=P[re]()});I=x(I).slice(0,j),t(I),T(I,M)},E=k=>{k.preventDefault(),e!==""&&navigator.clipboard.writeText(e)},b=k=>{f(k),setTimeout(()=>{f("")},1e3)};return c.jsxs("div",{className:ft.App,children:[c.jsxs("div",{className:ft.main_section,children:[c.jsx(J1,{handleChange:w,isChecked:o,passwordLength:s,setPasswordLength:l}),c.jsx(Z1,{generatedPassword:e,handleCopyText:E,notificationMessage:d,showTextNotification:b}),c.jsxs("div",{className:ft.third_section,children:[c.jsx("label",{children:"Password remember shortcut: "}),c.jsx("p",{children:n})]}),c.jsx(ex,{ALPHABET_WORDS:xR,PasswordToRemember:_,handleCopyText:E,isChecked:o,notificationMessage:d,passwordGenerate:C,passwordLength:s,randomPassword:v,showTextNotification:b}),c.jsx(nx,{checkPasswordNameExit:m,generatedPassword:e,handleSavePasswordAndName:y,notificationMessage:d,saveNameAndPass:a,setLocalStorage:p,showTextNotification:b})]}),c.jsxs("div",{className:ft.sixth_section,children:[c.jsx("h2",{className:ft.second_header,children:"All your saved password"}),c.jsx(tx,{saveNameAndPass:a})]})]})}const OR="_main_3eouk_1",AR="_indicators_3eouk_6",MR="_active_3eouk_14",DR="_progressContainer_3eouk_17",IR="_progressBar_3eouk_25",hr={main:OR,indicators:AR,active:MR,progressContainer:DR,progressBar:IR},LR=()=>{const[e,t]=h.useState(""),n=/\d/,r=/[A-Z]/,o=/[a-z]/,i=/[^A-Za-z0-9]/,s=p=>p>8?"Strong":p>5?"Medium":"Weak",l=p=>{let g=0;return p.length>3&&(g=Math.min(6,Math.floor(p.length/3)),g+=+n.test(p)+ +r.test(p)+ +o.test(p)+ +i.test(p)),g},a=p=>{const g=p.target.value;t(g)},u=l(e),d=s(u),f={lc:o.test(e),uc:r.test(e),num:n.test(e),sym:i.test(e)};return[e,d,u,f,a]},FR=()=>{const[e,t,n,r,o]=LR();return c.jsxs("div",{className:hr.main,children:[c.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",placeholder:"Enter the password",value:e,onChange:o}),c.jsxs("div",{className:hr.indicators,children:[c.jsx("span",{className:r.lc?hr.active:"",children:"Lowercase"}),c.jsx("span",{className:r.uc?hr.active:"",children:"Uppercase"}),c.jsx("span",{className:r.num?hr.active:"",children:"Number"}),c.jsx("span",{className:r.sym?hr.active:"",children:"Symbols"})]}),c.jsx("div",{className:hr.progressContainer,children:c.jsx("div",{className:hr.progressBar,style:{width:`${n*10}%`,backgroundColor:n>5?n>8?"green":"orange":"red"}})}),c.jsxs("p",{children:["Password has ",c.jsx("strong",{children:e.length})," chars"]}),c.jsxs("p",{children:["Your password is ",c.jsx("strong",{children:t})]})]})},zR="_App_omdzp_1",BR="_controls_omdzp_26",UR="_slidecontainer_omdzp_56",oa={App:zR,"bg-progress":"_bg-progress_omdzp_9","fg-progress":"_fg-progress_omdzp_18",controls:BR,slidecontainer:UR},HR=({startProgress:e,pauseProgress:t,stopProgress:n,handleSliderChange:r,speed:o})=>c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oa.controls,children:[c.jsx("button",{onClick:e,children:"Start"}),c.jsx("button",{onClick:t,children:"Pause"}),c.jsx("button",{onClick:n,children:"Reset"})]}),c.jsxs("div",{className:oa.slidecontainer,children:[c.jsx("input",{type:"range",min:o.min,max:o.max,defaultValue:o.min,className:"slider",id:"myRange",onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"myRange",children:c.jsxs("small",{children:["Speed: ",o.value," "]})})})]})]}),WR=10*1e3,rx=1e3,qu=WR/rx,VR=()=>{const[e,t]=h.useState(0),[n,r]=h.useState({max:10,min:1,value:1,label:"speed"}),o=h.useRef(null),i=()=>{clearInterval(o.current),e>=qu&&t(0),o.current=setInterval(()=>{t(d=>d>=qu?(clearInterval(o),d):d+1)},rx/n.value)};h.useEffect(()=>{i()},[n.value]);const s=()=>{clearInterval(o.current)},l=()=>{s(),t(0)},a=d=>{r(f=>({...f,value:d.target.value}))},u=()=>e/qu*100;return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:oa["bg-progress"],children:c.jsx("div",{className:oa["fg-progress"],style:{transform:`translateX(${-100+u()}%)`}})}),c.jsx(HR,{startProgress:i,stopProgress:l,pauseProgress:s,speed:n,handleSliderChange:a})]})},GR=()=>c.jsx("div",{className:oa.App,children:c.jsx(VR,{})});var KR=Object.defineProperty,pc=Object.getOwnPropertySymbols,ox=Object.prototype.hasOwnProperty,ix=Object.prototype.propertyIsEnumerable,mg=(e,t,n)=>t in e?KR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ia=(e,t)=>{for(var n in t||(t={}))ox.call(t,n)&&mg(e,n,t[n]);if(pc)for(var n of pc(t))ix.call(t,n)&&mg(e,n,t[n]);return e},Gp=(e,t)=>{var n={};for(var r in e)ox.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&pc)for(var r of pc(e))t.indexOf(r)<0&&ix.call(e,r)&&(n[r]=e[r]);return n};/** +`):" "+ag(i[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:pf};function Gu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ba(null,e)}function lg(e){return Gu(e),e.headers=Qn.from(e.headers),e.data=Vu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q1.getAdapter(e.adapter||Hp.adapter)(e).then(function(r){return Gu(e),r.data=Vu.call(e,e.transformResponse,r),r.headers=Qn.from(r.headers),r},function(r){return G1(r)||(Gu(e),r&&r.response&&(r.response.data=Vu.call(e,e.transformResponse,r.response),r.response.headers=Qn.from(r.response.headers))),Promise.reject(r)})}const cg=e=>e instanceof Qn?e.toJSON():e;function Ri(e,t){t=t||{};const n={};function r(u,d,f){return A.isPlainObject(u)&&A.isPlainObject(d)?A.merge.call({caseless:f},u,d):A.isPlainObject(d)?A.merge({},d):A.isArray(d)?d.slice():d}function o(u,d,f){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function i(u,d){if(!A.isUndefined(d))return r(void 0,d)}function s(u,d){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>o(cg(u),cg(d),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=a[d]||o,p=f(e[d],t[d],d);A.isUndefined(p)&&f!==l||(n[d]=p)}),n}const Y1="1.6.2",Wp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ug={};Wp.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Y1+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new de(o(s," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!ug[s]&&(ug[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function m$(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new de("option "+i+" must be "+a,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const hf={assertOptions:m$,validators:Wp},pr=hf.validators;class fc{constructor(t){this.defaults=t,this.interceptors={request:new og,response:new og}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ri(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&hf.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean)},!1),o!=null&&(A.isFunction(o)?n.paramsSerializer={serialize:o}:hf.assertOptions(o,{encode:pr.function,serialize:pr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Qn.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,f=0,p;if(!a){const m=[lg.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),p=m.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new ba(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Vp(function(o){t=o}),cancel:t}}}const g$=Vp;function v$(e){return function(n){return e.apply(null,n)}}function y$(e){return A.isObject(e)&&e.isAxiosError===!0}const mf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mf).forEach(([e,t])=>{mf[t]=e});const x$=mf;function Q1(e){const t=new Rl(e),n=N1(Rl.prototype.request,t);return A.extend(n,Rl.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Q1(Ri(e,o))},n}const Ce=Q1(Hp);Ce.Axios=Rl;Ce.CanceledError=ba;Ce.CancelToken=g$;Ce.isCancel=G1;Ce.VERSION=Y1;Ce.toFormData=Jc;Ce.AxiosError=de;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=v$;Ce.isAxiosError=y$;Ce.mergeConfig=Ri;Ce.AxiosHeaders=Qn;Ce.formToJSON=e=>V1(A.isHTMLForm(e)?new FormData(e):e);Ce.getAdapter=q1.getAdapter;Ce.HttpStatusCode=x$;Ce.default=Ce;function w$(e){const[t,n]=h.useState(!0),[r,o]=h.useState(!1),[i,s]=h.useState([]),[l,a]=h.useState(!1);return h.useEffect(()=>{n(!0),o(!1);let u;return Ce({method:"GET",url:"https://jsonplaceholder.typicode.com/photos",params:{_page:e,_limit:10},cancelToken:new Ce.CancelToken(d=>u=d)}).then(d=>{var f;s(p=>[...new Set([...p,...d.data.map(g=>g.title)])]),a(!(((f=d.data.at(-1))==null?void 0:f.id)===5e3||d.data.length===0)),n(!1)}).catch(d=>{Ce.isCancel(d)||o(!0)}),()=>u()},[e]),{loading:t,error:r,items:i,hasMore:l}}function _$(){const[e,t]=h.useState(1),{items:n,hasMore:r,loading:o,error:i}=w$(e),s=h.useRef(),l=h.useCallback(a=>{o||(s.current&&s.current.disconnect(),s.current=new IntersectionObserver(u=>{u[0].isIntersecting&&r&&t(d=>d+1)}),a&&s.current.observe(a))},[o,r]);return c.jsxs(c.Fragment,{children:[n==null?void 0:n.map((a,u)=>n.length===u+1?c.jsx("div",{className:`${Uu["book-title"]}`,ref:l,children:a},a):c.jsx("div",{className:`${Uu["book-title"]}`,children:a},a)),o&&c.jsx("div",{className:Uu.loader}),c.jsx("div",{children:i&&"Error"})]})}const b$="_result_1y6k8_1",S$={result:b$},Za=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),E$=e=>c.jsxs("table",{className:S$.result,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Year"}),c.jsx("th",{children:"Total Savings"}),c.jsx("th",{children:"Interest (Year)"}),c.jsx("th",{children:"Total Interest"}),c.jsx("th",{children:"Invested Capital"})]})}),c.jsx("tbody",{children:e.data.map(t=>c.jsxs("tr",{children:[c.jsx("td",{children:t.year}),c.jsx("td",{children:Za.format(t.savingsEndOfYear)}),c.jsx("td",{children:Za.format(t.yearlyInterest)}),c.jsx("td",{children:Za.format(t.savingsEndOfYear-e.inInvest-t.yearlyContribution*t.year)}),c.jsx("td",{children:Za.format(parseInt(e.inInvest)+t.yearlyContribution*t.year)})]},t.year))})]}),C$="_form_1schc_1",k$="_actions_1schc_63",j$="_button_1schc_75",$$="_buttonAlt_1schc_93",Lo={form:C$,"input-group":"_input-group_1schc_17",actions:k$,button:j$,buttonAlt:$$},dg={"current-savings":1e4,"yearly-contribution":1200,"expected-return":7,duration:10},R$=e=>{const[t,n]=h.useState(dg),r=s=>{s.preventDefault(),e.onCalculate(t)},o=()=>{n(dg),e.onCalculate(null)},i=(s,l)=>{n(a=>({...a,[s]:l}))};return c.jsxs("form",{onSubmit:r,className:Lo.form,children:[c.jsxs("div",{className:Lo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"current-savings",children:"Current Savings ($)"}),c.jsx("input",{onChange:s=>i("current-savings",s.target.value),value:t["current-savings"],type:"number",id:"current-savings"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"yearly-contribution",children:"Yearly Savings ($)"}),c.jsx("input",{onChange:s=>i("yearly-contribution",s.target.value),value:t["yearly-contribution"],type:"number",id:"yearly-contribution"})]})]}),c.jsxs("div",{className:Lo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"expected-return",children:"Expected Interest (%, per year)"}),c.jsx("input",{onChange:s=>i("expected-return",s.target.value),value:t["expected-return"],type:"number",id:"expected-return"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"duration",children:"Investment Duration (years)"}),c.jsx("input",{onChange:s=>i("duration",s.target.value),value:t.duration,type:"number",id:"duration"})]})]}),c.jsxs("p",{className:Lo.actions,children:[c.jsx("button",{onClick:o,type:"reset",className:Lo.buttonAlt,children:"Reset"}),c.jsx("button",{type:"submit",className:Lo.button,children:"Calculate"})]})]})},N$="_main_kxpla_1",T$={main:N$};function P$(){const[e,t]=h.useState(null),n=o=>{t(o)},r=[];if(e){let o=+e["current-savings"];const i=+e["yearly-contribution"],s=+e["expected-return"]/100,l=+e.duration;for(let a=0;a{const[e,t]=h.useState("");return h.useEffect(()=>{const r=localStorage.getItem("theme");r&&t(r)},[]),h.useEffect(()=>{localStorage.setItem("theme",e)},[e]),{theme:e,toggleTheme:()=>{t(e==="dark-theme"?"light-theme":"dark-theme")}}};function I$(){const{theme:e,toggleTheme:t}=D$();return c.jsxs("main",{className:`${Ku.main} ${e==="dark-theme"?Ku.darkTheme:Ku.lightTheme}`,children:[c.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),c.jsx("button",{onClick:t,children:"Toggle Theme"})]})}const L$="_layout_1dsxo_1",F$="_button_1dsxo_14",z$="_grid_1dsxo_18",B$="_tile_1dsxo_23",U$="_frontface_1dsxo_27",H$="_backface_1dsxo_28",Er={layout:L$,button:F$,grid:z$,tile:B$,frontface:U$,backface:H$};function W$({tile:e,onTileClick:t,idx:n}){const r=h.useRef(null),o=h.useRef(null);return h.useEffect(()=>{r.current&&o.current&&(e.isOpen?(r.current.style.transform="rotateY(180deg)",o.current.style.transform="rotateY(0deg)"):(r.current.style.transform="rotateY(0deg)",o.current.style.transform="rotateY(180deg)"))},[e.isOpen]),c.jsxs("div",{className:Er.tile,onClick:()=>{t(n)},children:[c.jsx("div",{className:Er.frontface+" "+Er.tile,ref:r}),c.jsx("div",{className:Er.backface+" "+Er.tile,ref:o,children:e.symbol})]})}function V$({size:e,tiles:t,onTileClick:n}){return c.jsx("div",{className:Er.grid,style:{gridTemplateRows:`repeat(${e}, min(${80/e}vmin, 6rem))`,gridTemplateColumns:`repeat(${e}, min(${80/e}vmin, 6rem))`,gap:`${10/e}vmin`},children:t.map((r,o)=>c.jsx(W$,{tile:r,onTileClick:n,idx:o},o))})}const fg=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"],G$=(e=8,t=!1)=>{const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{const n=G$(e,t),r=n.concat(n);return K$(r)},cs=4,Vo=2,pg=e=>q$(e*e/Vo,!0).map(t=>({symbol:t,isOpen:!1}));function Y$(){const[e,t]=h.useState(()=>pg(cs)),[n,r]=h.useState([]),o=h.useRef(),i=h.useRef(0),s=h.useRef(0),l=h.useRef(!1),a=()=>{o.current=void 0,i.current=0,s.current=0,l.current=!0,t(f=>f.map(p=>({symbol:p.symbol,isOpen:!1}))),setTimeout(()=>{t(pg(cs)),l.current=!1},500)},u=()=>{if(n.length{const m=[...g];return m[f]={symbol:g[f].symbol,isOpen:!1},m[p]={symbol:g[p].symbol,isOpen:!1},r(n.slice(Vo)),m})},d=f=>{e[f].isOpen||l.current||(i.current++,r([...n,f]),t(p=>{const g=[...p];return g[f]={...g[f],isOpen:!0},g}))};return h.useEffect(()=>{n.length===Vo&&(e[n[0]].symbol===e[n[1]].symbol?(r([]),s.current+=Vo):o.current=window.setTimeout(()=>{u()},3e3)),n.length===Vo+1&&(window.clearTimeout(o.current),u())},[e]),c.jsxs("div",{className:Er.layout,children:[c.jsx(V$,{size:cs,tiles:e,onTileClick:d}),c.jsx("div",{children:c.jsx("button",{className:Er.button,onClick:a,children:"Reset"})}),c.jsxs("output",{children:[c.jsxs("p",{children:["Attempts : ",i.current]}),c.jsx("p",{children:s.current===cs*cs&&"Congratulations"})]})]})}const Q$="_main_h642g_1",X$="_nestedDropdown_h642g_4",J$="_dropdownMain_h642g_12",Z$="_dropdownItems_h642g_19",eR="_arrow_h642g_52",tR="_dropdown_h642g_12",nR="_show_h642g_76",rR="_dropdownSubItems_h642g_80",Mr={main:Q$,nestedDropdown:X$,dropdownMain:J$,dropdownItems:Z$,arrow:eR,dropdown:tR,show:nR,dropdownSubItems:rR},oR=({subItems:e,dropdown:t,depthLevel:n})=>{const r=n>1?Mr.dropdownSubItems:"";return c.jsx("ul",{className:`${Mr.dropdown} ${r} ${t?Mr.show:""}`,children:e.map((o,i)=>c.jsx(X1,{items:o,depthLevel:n+1},i))})},X1=({items:e,depthLevel:t})=>{const[n,r]=h.useState(!1);let o=h.useRef();h.useEffect(()=>{const l=a=>{n&&o.current&&!o.current.contains(a.target)&&r(!1)};return document.addEventListener("mousedown",l),document.addEventListener("touchstart",l),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l)}},[n]);const i=()=>{window.innerWidth>960&&r(!0)},s=()=>{window.innerWidth>960&&r(!1)};return c.jsx("li",{className:Mr.dropdownItems,onMouseEnter:i,onMouseLeave:s,children:e.subItems?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button","aria-expanded":n?"true":"false",onClick:()=>r(l=>!l),children:[e.title,t>0?c.jsx("span",{children:" »"}):c.jsx("span",{className:Mr.arrow})]}),c.jsx(oR,{depthLevel:t+1,subItems:e.subItems,dropdown:n})]}):c.jsx("a",{href:"/#",children:e.title})})},iR=[{title:"Software Development",subItems:[{title:"Web design"},{title:"Web development",subItems:[{title:"Frontend",subItems:[{title:"Angular"},{title:"ReactJS"},{title:"VueJS"}]},{title:"Backend",subItems:[{title:"NodeJS"},{title:"PHP"},{title:"JAVA",subItems:[{title:"Spring"},{title:"Hibernate"}]}]}]}]}],sR=()=>c.jsx("div",{className:Mr.main,children:c.jsx("div",{className:Mr.nestedDropdown,children:c.jsxs("ul",{className:Mr.dropdownMain,children:[" ",iR.map((e,t)=>c.jsx(X1,{items:e,depthLevel:0},t))," "]})})}),hg=[{id:1,name:"Pizza",price:10},{id:2,name:"Burger",price:20},{id:3,name:"Fries",price:30},{id:4,name:"Pasta",price:15},{id:5,name:"Salad",price:30},{id:6,name:"Soup",price:20},{id:7,name:"Marshmallows",price:10},{id:8,name:"Ice cream",price:20},{id:9,name:"Cake",price:30},{id:10,name:"Donut",price:5},{id:11,name:"Sushi",price:25},{id:12,name:"Taco",price:12},{id:13,name:"Steak",price:35},{id:14,name:"Chicken Wings",price:18},{id:15,name:"Lasagna",price:22},{id:16,name:"Burrito",price:15},{id:17,name:"Sushi Roll",price:27},{id:18,name:"Grilled Cheese Sandwich",price:10},{id:19,name:"Hot Dog",price:8},{id:20,name:"Nachos",price:12},{id:21,name:"Ramen",price:14},{id:22,name:"Pho",price:16},{id:23,name:"Gyros",price:18},{id:24,name:"Ceviche",price:20},{id:25,name:"Miso Soup",price:8},{id:26,name:"Crispy Tofu",price:12},{id:27,name:"Paella",price:28},{id:28,name:"Fish and Chips",price:17},{id:29,name:"Shrimp Scampi",price:24},{id:30,name:"Cannoli",price:10},{id:31,name:"Churros",price:7},{id:32,name:"Baklava",price:9},{id:33,name:"Tiramisu",price:12},{id:34,name:"Cheesecake",price:18},{id:35,name:"Chocolate Fondue",price:20}],aR="_pagination_1mnjc_1",lR={pagination:aR},cR=({currentPage:e,totalPages:t,onPageChange:n})=>c.jsxs("div",{className:lR.pagination,children:[c.jsx("button",{onClick:()=>n(e-1),disabled:e===1,children:"Previous"}),c.jsxs("span",{children:["Page ",e," of ",t]}),c.jsx("button",{onClick:()=>n(e+1),disabled:e===t,children:"Next"})]}),uR="_container_for_table_1pb6f_1",dR="_table_1pb6f_5",fR="_thead_1pb6f_10",pR="_tbody_1pb6f_19",el={container_for_table:uR,table:dR,thead:fR,tbody:pR},hR=({data:e,currentPage:t,totalPages:n,onPageChange:r})=>c.jsxs("div",{className:el.container_for_table,children:[c.jsx(cR,{currentPage:t,totalPages:n,onPageChange:r}),c.jsxs("table",{className:el.table,children:[c.jsx("thead",{className:el.thead,children:c.jsxs("tr",{children:[c.jsx("th",{children:"#"}),c.jsx("th",{children:"Food"}),c.jsx("th",{children:"Price"})]})}),c.jsx("tbody",{className:el.tbody,children:e.map((o,i)=>c.jsxs("tr",{children:[c.jsx("td",{children:o.id}),c.jsx("td",{children:o.name}),c.jsxs("td",{children:[o.price,"$"]})]},i))})]})]}),mR="_pagination_container_13fvi_1",gR="_title_13fvi_10",vR={pagination_container:mR,title:gR},yR=()=>{const[t,n]=h.useState(1),r=l=>{n(l)},o=(t-1)*10,i=o+10,s=hg.slice(o,i);return c.jsx("div",{className:vR.pagination_container,children:c.jsx(hR,{data:s,currentPage:t,totalPages:Math.ceil(hg.length/10),onPageChange:r})})},xR={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"},wR="_App_6bcv0_1",_R="_main_section_6bcv0_10",bR="_main_header_6bcv0_15",SR="_password_form_6bcv0_22",ER="_second_section_6bcv0_28",CR="_inputText_6bcv0_38",kR="_fifth_section_6bcv0_39",jR="_btn_6bcv0_46",$R="_fourth_section_6bcv0_47",RR="_third_section_6bcv0_72",NR="_sixth_section_6bcv0_91",TR="_second_header_6bcv0_97",ft={App:wR,main_section:_R,main_header:bR,password_form:SR,second_section:ER,inputText:CR,fifth_section:kR,btn:jR,fourth_section:$R,third_section:RR,sixth_section:NR,second_header:TR,"password-table":"_password-table_6bcv0_105"};function J1({passwordLength:e,setPasswordLength:t,isChecked:n,handleChange:r}){return c.jsxs("form",{className:ft.password_form,children:[c.jsxs("div",{children:["password length: ",e]}),c.jsx("div",{children:c.jsx("input",{type:"range",min:"6",max:"30",value:e,onChange:o=>t(o.target.value)})}),c.jsx("div",{children:"Include Lowercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedLowerCha,onChange:r("isCheckedLowerCha")}),"Lowercase character (e.g. abcdefg)"]})}),c.jsx("div",{children:"Include Uppercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedUpperCha,onChange:r("isCheckedUpperCha")}),"Uppercase character (e.g. ABCDEFG)"]})}),c.jsx("div",{children:"Include Number:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedNumber,onChange:r("isCheckedNumber")}),"Number (e.g. 12345)"]})}),c.jsx("div",{children:"Include Symbols:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedSymbols,onChange:r("isCheckedSymbols")}),"Symbols (e.g. !@#$%)"]})})]})}J1.propTypes;function Z1({generatedPassword:e,handleCopyText:t,showTextNotification:n,notificationMessage:r}){return c.jsxs("div",{className:ft.second_section,children:[c.jsx("label",{children:"Your generated password: "}),c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"Your generated password will appear here",value:e,readOnly:!0}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:o=>{t(o),n("copied2")},children:"copy"}),r==="copied2"&&c.jsx("span",{children:r.slice(0,6)})]})]})}Z1.propTypes;function ex({isChecked:e,passwordLength:t,randomPassword:n,PasswordToRemember:r,ALPHABET_WORDS:o,passwordGenerate:i,handleCopyText:s,showTextNotification:l,notificationMessage:a}){return c.jsxs("div",{className:ft.fourth_section,children:[c.jsx("button",{className:ft.btn,title:"generate password",onClick:i({...e},t,n,r,o),children:"generate password"}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:u=>{s(u),l("copied1")},children:"copy"}),a==="copied1"&&c.jsx("span",{children:a.slice(0,6)})]})}ex.propTypes;function tx({saveNameAndPass:e}){return c.jsxs("table",{className:ft["password-table"],children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name of password"}),c.jsx("th",{children:"Password"})]})}),c.jsx("tbody",{children:e.map((t,n)=>c.jsxs("tr",{children:[c.jsx("td",{children:t.name}),c.jsx("td",{children:t.pass})]},n))})]})}tx.propTypes;function nx({generatedPassword:e,handleSavePasswordAndName:t,saveNameAndPass:n,setLocalStorage:r,checkPasswordNameExit:o,showTextNotification:i,notificationMessage:s}){const[l,a]=h.useState(!1),[u,d]=h.useState("");return c.jsxs("div",{className:ft.fifth_section,children:[c.jsx("label",{title:"save your password",htmlFor:"checkToSave",children:"Save password:"}),c.jsx("input",{id:"checkToSave",type:"checkbox",checked:l,onChange:()=>a(!l),disabled:e==""}),l&&c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"name your password",value:u,onChange:f=>d(f.target.value)}),c.jsx("button",{className:ft.btn,title:"save password",onClick:t(u,e,n,r,o,i),children:"save"}),s==="cannot save without name!"&&c.jsx("span",{children:s})||s==="name already taken!"&&c.jsx("span",{children:s})]})]})}nx.propTypes;function PR(){const[e,t]=h.useState(""),[n,r]=h.useState("There is no password to remember! Please generate one"),[o,i]=h.useState({isCheckedLowerCha:!0,isCheckedUpperCha:!0,isCheckedNumber:!0,isCheckedSymbols:!1}),[s,l]=h.useState(6),[a,u]=h.useState([]),[d,f]=h.useState("");h.useEffect(()=>{const k=g("PASS");k&&u(k)},[]);const p=(k,j)=>{localStorage.setItem(k,JSON.stringify(j))},g=k=>{const j=localStorage.getItem(k);if(j!==null)return JSON.parse(j)},m=(k,j)=>k.filter(P=>P.name===j),y=(k,j,P,T,M,I)=>()=>{const H=M(P,k);if(k.length!==0){if(H.length>0){I("name already taken!");return}u(z=>{const Y=[...z,{name:k,pass:j}];return console.log(Y),T("PASS",Y),Y})}else{I("cannot save without name!");return}},w=k=>j=>{i(P=>({...P,[k]:j.target.checked}))},v={lower:()=>String.fromCharCode(Math.floor(Math.random()*26)+97),upper:()=>String.fromCharCode(Math.floor(Math.random()*26)+65),number:()=>Math.floor(Math.random()*10),symbolCha:()=>{const k=["!","@","#","$","%","^","&","*","(",")","_","+","-","=","/","|"],j=Math.floor(Math.random()*k.length);return k[j]}},x=k=>{const j=k.split("");for(let P=j.length-1;P>0;P--){const T=Math.floor(Math.random()*P+1);[j[P],j[T]]=[j[T],j[P]]}return j.join("")},_=(k,j)=>{const P=k.split("");let T="";P.map(M=>{j[M]?T+=` ${j[M]}`:T+=` ${M}`}),r(T.trim())},C=(k,j,P,T,M)=>()=>{let I="";const{isCheckedLowerCha:H,isCheckedUpperCha:z,isCheckedNumber:Y,isCheckedSymbols:q}=k,Q=H+z+Y+q,L=[{lower:H},{upper:z},{number:Y},{symbolCha:q}].filter(V=>Object.values(V)[0]===!0);if(Q===0)return"";for(let V=0;V{const re=Object.keys(J)[0];I+=P[re]()});I=x(I).slice(0,j),t(I),T(I,M)},E=k=>{k.preventDefault(),e!==""&&navigator.clipboard.writeText(e)},b=k=>{f(k),setTimeout(()=>{f("")},1e3)};return c.jsxs("div",{className:ft.App,children:[c.jsxs("div",{className:ft.main_section,children:[c.jsx(J1,{handleChange:w,isChecked:o,passwordLength:s,setPasswordLength:l}),c.jsx(Z1,{generatedPassword:e,handleCopyText:E,notificationMessage:d,showTextNotification:b}),c.jsxs("div",{className:ft.third_section,children:[c.jsx("label",{children:"Password remember shortcut: "}),c.jsx("p",{children:n})]}),c.jsx(ex,{ALPHABET_WORDS:xR,PasswordToRemember:_,handleCopyText:E,isChecked:o,notificationMessage:d,passwordGenerate:C,passwordLength:s,randomPassword:v,showTextNotification:b}),c.jsx(nx,{checkPasswordNameExit:m,generatedPassword:e,handleSavePasswordAndName:y,notificationMessage:d,saveNameAndPass:a,setLocalStorage:p,showTextNotification:b})]}),c.jsxs("div",{className:ft.sixth_section,children:[c.jsx("h2",{className:ft.second_header,children:"All your saved password"}),c.jsx(tx,{saveNameAndPass:a})]})]})}const OR="_main_3eouk_1",AR="_indicators_3eouk_6",MR="_active_3eouk_14",DR="_progressContainer_3eouk_17",IR="_progressBar_3eouk_25",hr={main:OR,indicators:AR,active:MR,progressContainer:DR,progressBar:IR},LR=()=>{const[e,t]=h.useState(""),n=/\d/,r=/[A-Z]/,o=/[a-z]/,i=/[^A-Za-z0-9]/,s=p=>p>8?"Strong":p>5?"Medium":"Weak",l=p=>{let g=0;return p.length>3&&(g=Math.min(6,Math.floor(p.length/3)),g+=+n.test(p)+ +r.test(p)+ +o.test(p)+ +i.test(p)),g},a=p=>{const g=p.target.value;t(g)},u=l(e),d=s(u),f={lc:o.test(e),uc:r.test(e),num:n.test(e),sym:i.test(e)};return[e,d,u,f,a]},FR=()=>{const[e,t,n,r,o]=LR();return c.jsxs("div",{className:hr.main,children:[c.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",placeholder:"Enter the password",value:e,onChange:o}),c.jsxs("div",{className:hr.indicators,children:[c.jsx("span",{className:r.lc?hr.active:"",children:"Lowercase"}),c.jsx("span",{className:r.uc?hr.active:"",children:"Uppercase"}),c.jsx("span",{className:r.num?hr.active:"",children:"Number"}),c.jsx("span",{className:r.sym?hr.active:"",children:"Symbols"})]}),c.jsx("div",{className:hr.progressContainer,children:c.jsx("div",{className:hr.progressBar,style:{width:`${n*10}%`,backgroundColor:n>5?n>8?"green":"orange":"red"}})}),c.jsxs("p",{children:["Password has ",c.jsx("strong",{children:e.length})," chars"]}),c.jsxs("p",{children:["Your password is ",c.jsx("strong",{children:t})]})]})},zR="_App_omdzp_1",BR="_controls_omdzp_26",UR="_slidecontainer_omdzp_56",oa={App:zR,"bg-progress":"_bg-progress_omdzp_9","fg-progress":"_fg-progress_omdzp_18",controls:BR,slidecontainer:UR},HR=({startProgress:e,pauseProgress:t,stopProgress:n,handleSliderChange:r,speed:o})=>c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oa.controls,children:[c.jsx("button",{onClick:e,children:"Start"}),c.jsx("button",{onClick:t,children:"Pause"}),c.jsx("button",{onClick:n,children:"Reset"})]}),c.jsxs("div",{className:oa.slidecontainer,children:[c.jsx("input",{type:"range",min:o.min,max:o.max,defaultValue:o.min,className:"slider",id:"myRange",onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"myRange",children:c.jsxs("small",{children:["Speed: ",o.value," "]})})})]})]}),WR=10*1e3,rx=1e3,qu=WR/rx,VR=()=>{const[e,t]=h.useState(0),[n,r]=h.useState({max:10,min:1,value:1,label:"speed"}),o=h.useRef(null),i=()=>{clearInterval(o.current),e>=qu&&t(0),o.current=setInterval(()=>{t(d=>d>=qu?(clearInterval(o),d):d+1)},rx/n.value)};h.useEffect(()=>{i()},[n.value]);const s=()=>{clearInterval(o.current)},l=()=>{s(),t(0)},a=d=>{r(f=>({...f,value:d.target.value}))},u=()=>e/qu*100;return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:oa["bg-progress"],children:c.jsx("div",{className:oa["fg-progress"],style:{transform:`translateX(${-100+u()}%)`}})}),c.jsx(HR,{startProgress:i,stopProgress:l,pauseProgress:s,speed:n,handleSliderChange:a})]})},GR=()=>c.jsx("div",{className:oa.App,children:c.jsx(VR,{})});var KR=Object.defineProperty,pc=Object.getOwnPropertySymbols,ox=Object.prototype.hasOwnProperty,ix=Object.prototype.propertyIsEnumerable,mg=(e,t,n)=>t in e?KR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ia=(e,t)=>{for(var n in t||(t={}))ox.call(t,n)&&mg(e,n,t[n]);if(pc)for(var n of pc(t))ix.call(t,n)&&mg(e,n,t[n]);return e},Gp=(e,t)=>{var n={};for(var r in e)ox.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&pc)for(var r of pc(e))t.indexOf(r)<0&&ix.call(e,r)&&(n[r]=e[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT @@ -77,12 +77,12 @@ Error generating stack: `+i.message+` * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var sx={L:si.QrCode.Ecc.LOW,M:si.QrCode.Ecc.MEDIUM,Q:si.QrCode.Ecc.QUARTILE,H:si.QrCode.Ecc.HIGH},ax=128,lx="L",cx="#FFFFFF",ux="#000000",dx=!1,Kp=4,qR=.1;function fx(e,t=0){const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(s,l){if(!s&&i!==null){n.push(`M${i+t} ${o+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!s)return;i===null?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${i+t},${o+t} h${l+1-i}v1H${i+t}z`);return}s&&i===null&&(i=l)})}),n.join("")}function px(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((o,i)=>i=t.x+t.w?o:!1))}function hx(e,t,n,r){if(r==null)return null;const o=n?Kp:0,i=e.length+o*2,s=Math.floor(t*qR),l=i/t,a=(r.width||s)*l,u=(r.height||s)*l,d=r.x==null?e.length/2-a/2:r.x*l,f=r.y==null?e.length/2-u/2:r.y*l;let p=null;if(r.excavate){let g=Math.floor(d),m=Math.floor(f),y=Math.ceil(a+d-g),w=Math.ceil(u+f-m);p={x:g,y:m,w:y,h:w}}return{x:d,y:f,h:u,w:a,excavation:p}}var YR=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function QR(e){const t=e,{value:n,size:r=ax,level:o=lx,bgColor:i=cx,fgColor:s=ux,includeMargin:l=dx,style:a,imageSettings:u}=t,d=Gp(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=u==null?void 0:u.src,p=h.useRef(null),g=h.useRef(null),[m,y]=h.useState(!1);h.useEffect(()=>{if(p.current!=null){const x=p.current,_=x.getContext("2d");if(!_)return;let C=si.QrCode.encodeText(n,sx[o]).getModules();const E=l?Kp:0,b=C.length+E*2,k=hx(C,r,l,u),j=g.current,P=k!=null&&j!==null&&j.complete&&j.naturalHeight!==0&&j.naturalWidth!==0;P&&k.excavation!=null&&(C=px(C,k.excavation));const T=window.devicePixelRatio||1;x.height=x.width=r*T;const M=r/b*T;_.scale(M,M),_.fillStyle=i,_.fillRect(0,0,b,b),_.fillStyle=s,YR?_.fill(new Path2D(fx(C,E))):C.forEach(function(I,H){I.forEach(function(B,Y){B&&_.fillRect(Y+E,H+E,1,1)})}),P&&_.drawImage(j,k.x+E,k.y+E,k.w,k.h)}}),h.useEffect(()=>{y(!1)},[f]);const w=ia({height:r,width:r},a);let v=null;return f!=null&&(v=S.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{y(!0)},ref:g})),S.createElement(S.Fragment,null,S.createElement("canvas",ia({style:w,height:r,width:r,ref:p},d)),v)}function XR(e){const t=e,{value:n,size:r=ax,level:o=lx,bgColor:i=cx,fgColor:s=ux,includeMargin:l=dx,imageSettings:a}=t,u=Gp(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let d=si.QrCode.encodeText(n,sx[o]).getModules();const f=l?Kp:0,p=d.length+f*2,g=hx(d,r,l,a);let m=null;a!=null&&g!=null&&(g.excavation!=null&&(d=px(d,g.excavation)),m=S.createElement("image",{xlinkHref:a.src,height:g.h,width:g.w,x:g.x+f,y:g.y+f,preserveAspectRatio:"none"}));const y=fx(d,f);return S.createElement("svg",ia({height:r,width:r,viewBox:`0 0 ${p} ${p}`},u),S.createElement("path",{fill:i,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),S.createElement("path",{fill:s,d:y,shapeRendering:"crispEdges"}),m)}var JR=e=>{const t=e,{renderAs:n}=t,r=Gp(t,["renderAs"]);return n==="svg"?S.createElement(XR,ia({},r)):S.createElement(QR,ia({},r))};const ZR="_QRCodeGenerator_a1hdg_2",eN="_qrcode_a1hdg_32",tl={QRCodeGenerator:ZR,"input-field":"_input-field_a1hdg_9","generate-button":"_generate-button_a1hdg_18",qrcode:eN};function tN(){const[e,t]=h.useState(""),[n,r]=h.useState(""),o=s=>{t(s.target.value)},i=()=>{r(e)};return c.jsxs("div",{className:tl.QRCodeGenerator,children:[c.jsx("input",{type:"text",placeholder:"Enter text",onChange:o,className:tl["input-field"]}),c.jsx("button",{onClick:i,className:tl["generate-button"],children:"Generate QR Code"}),n&&c.jsx(JR,{value:n,className:tl.qrcode,size:256})]})}function nN(){return c.jsx("div",{className:"App",children:c.jsx(tN,{})})}const rN="_stack_u1sn7_1",oN="_btn_root_u1sn7_25",iN="_stackElement_u1sn7_62",nl={stack:rN,"slide-in":"_slide-in_u1sn7_1",btn_root:oN,stackElement:iN},sN=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(""),[o,i]=h.useState(""),s=p=>{r(p.target.value)},l=()=>{if(n==""){i("Enter a value");return}if(e.length===10){i("Stack is Full");return}t([...e,n]),i(`${n} is pushed into the Stack`),r("")},a=()=>{if(!e.length){i("Stack is empty");return}t(e.slice(0,-1)),i(`${e[e.length-1]} is popped from the Stack `)},u=()=>{if(!e.length)i("Stack is empty");else{const p=e[e.length-1];i(`Last element is ${p}`)}},d=()=>{e.length===0?i("Stack is empty"):i("Stack is not empty")},f=()=>{e.length===10?i("Stack is Full"):i("Stack is not full")};return c.jsx("div",{className:nl.container,children:c.jsxs("div",{className:nl.stack,children:[c.jsx("input",{type:"text",placeholder:"Enter a value",value:n,onChange:s,required:!0}),c.jsxs("div",{className:nl.btn_root,children:[c.jsx("button",{onClick:l,children:"Push"}),c.jsx("button",{onClick:a,children:"Pop"}),c.jsx("button",{onClick:u,children:"Peek"}),c.jsx("button",{onClick:d,children:"IsEmpty"}),c.jsx("button",{onClick:f,children:"IsFull"})]}),c.jsx("hr",{}),c.jsx("h3",{children:o}),e.slice().reverse().map((p,g)=>c.jsx("div",{className:nl.stackElement,children:c.jsx("p",{children:p})},g))]})})},aN="_App_33mq4_1",lN="_star_33mq4_6",mx={App:aN,star:lN},cN=({marked:e,starId:t})=>c.jsx("span",{"data-star-id":t,className:mx.star,role:"button",children:e?"★":"☆"}),uN=({value:e,total:t})=>{const[n,r]=h.useState(e||0),[o,i]=h.useState(0),s=h.useMemo(()=>Array.from({length:t}),[t]),l=d=>{var f;i(((f=d.target.dataset)==null?void 0:f.starId)??0)},a=()=>{i(0)},u=d=>{var f;r(((f=d.target.dataset)==null?void 0:f.starId)??n)};return c.jsx("div",{onMouseLeave:a,onMouseOver:l,onClick:u,children:s.map((d,f)=>c.jsx(cN,{marked:(o||n)>f,starId:f+1},`star_${f+1}`))})};function dN(){return c.jsx("div",{className:mx.App,children:c.jsx(uN,{value:2,total:5})})}const fN="_watch_g783o_1",Ln={"watch-container":"_watch-container_g783o_1",watch:fN,"watch-heading":"_watch-heading_g783o_24","watch-timer":"_watch-timer_g783o_30","watch-btn":"_watch-btn_g783o_36"},pN=()=>{let e=h.useRef(0);const t=h.useRef(Date.now()),[n,r]=h.useState(["00","00","00"]),[o,i]=h.useState(!1),s=()=>{i(!0),e.current=requestAnimationFrame(u)},l=()=>{i(!1),cancelAnimationFrame(e.current)},a=()=>{i(!1),r(["00","00","00"]),cancelAnimationFrame(e.current),t.current=Date.now()},u=()=>{const d=Date.now()-t.current,f=Math.floor(d/1e3),p=Math.floor(f/60),g=(d%1e3).toString().padStart(3,"0"),m=(f%60).toString().padStart(2,"0"),y=p.toString().padStart(2,"0");r([y,m,g]),e.current=requestAnimationFrame(u)};return h.useEffect(()=>cancelAnimationFrame(e.current),[]),c.jsx("div",{className:Ln.test,children:c.jsx("div",{className:Ln["watch-container"],children:c.jsxs("div",{className:Ln.watch,children:[c.jsx("div",{className:Ln["watch-heading"],children:"Stopwatch"}),c.jsx("div",{className:Ln["watch-timer"],children:`${n[0]}:${n[1]}:${n[2]}`}),c.jsxs("div",{className:Ln["watch-btn__container"],children:[c.jsx("button",{disabled:o,onClick:s,className:Ln["watch-btn"],children:"Start"}),c.jsx("button",{onClick:l,disabled:!o,className:Ln["watch-btn"],children:"Stop"}),c.jsx("button",{onClick:a,disabled:!o,className:Ln["watch-btn"],children:"Reset"})]})]})})})},hN="_App_1hyma_1",mN="_textarea_1hyma_6",gN="_buttonBox_1hyma_12",vN="_output_1hyma_22",rl={App:hN,textarea:mN,buttonBox:gN,output:vN};function yN(){const[e,t]=h.useState("hello world"),[n,r]=h.useState(e),o=p=>{t(p.target.value)},i=()=>{r(e.toLowerCase())},s=()=>{r(e.toUpperCase())},l=()=>{const g=e.split(" ").map((m,y)=>y===0?m.toLowerCase():m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},a=()=>{const g=e.split(" ").map(m=>m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},u=()=>{const p=e.replace(/\s+/g,"_").toLowerCase();r(p)},d=()=>{const p=e.replace(/\s+/g,"-").toLowerCase();r(p)},f=()=>{r(e.trim())};return c.jsx("main",{children:c.jsxs("div",{className:rl.App,children:[c.jsx("textarea",{rows:4,className:rl.textarea,placeholder:"Enter a sentence...",value:e,onChange:o}),c.jsxs("div",{className:rl.buttonBox,children:[c.jsx("button",{onClick:i,children:"Lower Case"}),c.jsx("button",{onClick:s,children:"Upper Case"}),c.jsx("button",{onClick:l,children:"Camel Case"}),c.jsx("button",{onClick:a,children:"Pascal Case"}),c.jsx("button",{onClick:u,children:"Snake Case"}),c.jsx("button",{onClick:d,children:"Kebab Case"}),c.jsx("button",{onClick:f,children:"Trim"})]}),c.jsxs("div",{className:rl.output,children:[c.jsx("strong",{children:"Transformed String:"}),c.jsx("p",{children:n})]})]})})}const xN="_color_1kotf_1",wN="_form_1kotf_9",_N="_containers_1kotf_17",bN="_container_1kotf_17",SN="_containerColor_1kotf_33",EN="_numberInput_1kotf_42",CN="_error_1kotf_53",mr={color:xN,form:wN,containers:_N,container:bN,containerColor:SN,numberInput:EN,error:CN},kN=9,jN=Array.from(new Array(kN),(e,t)=>t),$N=()=>{const[e,t]=h.useState([]),n=h.useRef(),[r,o]=h.useState(null),i=l=>{l.preventDefault();const a=parseInt(n.current.value);if(isNaN(a)||a>9||a<1){o("Please enter a valid number between 1 to 9");return}o(null),e.indexOf(a)===-1&&t(u=>[...u,a])},s=l=>{l.preventDefault(),t([]),o(null),n.current.value=""};return c.jsxs("div",{className:mr.color,children:[c.jsxs("form",{className:mr.form,children:[c.jsx("input",{type:"number",className:mr.numberInput,ref:n}),r&&c.jsx("p",{className:mr.error,children:r}),c.jsxs("div",{className:"buttons",children:[c.jsx("input",{type:"submit",value:"Color Me",onClick:i}),c.jsx("button",{className:mr.clearBtn,onClick:s,children:"Clear Me"})]})]}),c.jsx("div",{className:mr.containers,children:jN.map((l,a)=>c.jsx("div",{className:e.indexOf(l+1)!==-1?mr.containerColor:mr.container,children:l+1},a))})]})};function RN(){const[e,t]=h.useState(""),n=o=>[...o].filter(i=>Number.isInteger(+i)&&i!==" ").join(""),r=o=>{const i=n(o.target.value);t(i.length>3?"+("+i.substring(0,3)+") - "+i.substring(3):i)};return c.jsxs("div",{className:"container text-center",children:[c.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:e,onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}const NN="_container_12wso_1",TN="_card_12wso_7",PN="_cardTitle_12wso_15",ON="_formGroup_12wso_19",AN="_inputGroup_12wso_23",MN="_input_12wso_23",DN="_select_12wso_33",IN="_convertButton_12wso_38",LN="_outputGroup_12wso_42",Fn={container:NN,card:TN,cardTitle:PN,formGroup:ON,inputGroup:AN,input:MN,select:DN,convertButton:IN,outputGroup:LN};function FN(){const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState("celsius"),[s,l]=h.useState("fahrenheit"),a=()=>{const u=parseFloat(e);if(isNaN(u)){r("Invalid input");return}if(o===s){r(u);return}if(o==="celsius"&&s==="fahrenheit"){let d=u*9/5+32;d%1!==0&&(d=d.toFixed(2)),r(d)}else if(o==="fahrenheit"&&s==="celsius"){let d=(u-32)*5/9;d%1!==0&&(d=d.toFixed(2)),r(d)}};return c.jsx("div",{className:Fn.container,children:c.jsxs("div",{className:Fn.card,children:[c.jsxs("div",{className:Fn.formGroup,children:[c.jsx("label",{children:"Enter Temperature"}),c.jsxs("div",{className:Fn.inputGroup,children:[c.jsx("input",{type:"number",className:`form-control ${Fn.input}`,placeholder:"Enter temperature",value:e,onChange:u=>t(u.target.value)}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:o,onChange:u=>i(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]}),c.jsx("button",{className:`btn btn-primary btn-block ${Fn.convertButton}`,onClick:a,children:"Convert"}),c.jsxs("div",{className:Fn.outputGroup,children:[c.jsxs("p",{children:["Converted Temperature: ",c.jsx("strong",{children:n})]}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:s,onChange:u=>l(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]})})}const At=3,zN=[...Array.from(new Array(At),(e,t)=>Array.from(new Array(At),(n,r)=>t*At+r)),...Array.from(new Array(At),(e,t)=>Array.from(new Array(At),(n,r)=>r*At+t)),Array.from(new Array(At),(e,t)=>t*At+t),Array.from(new Array(At),(e,t)=>t*At+At-t-1)],gg=Array(At*At).fill(null),BN="_container_1rajw_1",Go={container:BN,"mx-5":"_mx-5_1rajw_10","grid-container":"_grid-container_1rajw_14","grid-item":"_grid-item_1rajw_23"},UN=()=>{const[e,t]=h.useState(gg),[n,r]=h.useState(!1),[o,i]=h.useState(null),[[s,l,a],u]=h.useState([0,0,0]);h.useEffect(()=>{d()},[e]),h.useEffect(()=>{o==="X"?u([s+1,l,a]):o==="O"?u([s,l+1,a]):o===null&&e.filter(g=>g===null).length===0&&u([s,l,a+1])},[o,e]);const d=()=>{r(!n);for(const g of zN){const[m,y,w]=g;if(e[m]!==null&&e[m]===e[y]&&e[m]===e[w]){i(e[m]===1?"X":"O");return}}},f=g=>{e[g]===null&&o===null&&t(m=>{const y=[...m];return y[g]=n?1:0,y})},p=()=>{t(gg),i(null)};return c.jsx("div",{className:Go.container,children:c.jsxs("div",{children:["Status: ",o?`Winner ${o}`:"Playing",c.jsxs("div",{className:Go.container,children:[c.jsxs("div",{className:Go["mx-5"],children:[c.jsx("div",{children:"X"}),c.jsxs("div",{children:[s," Wins"]})]}),c.jsxs("div",{className:Go["mx-5"],children:[c.jsx("div",{children:"O"}),c.jsxs("div",{children:[l," Wins"]})]}),c.jsxs("div",{children:[c.jsx("div",{children:"="}),c.jsxs("div",{children:[a," Draws"]})]})]}),c.jsx("div",{className:Go["grid-container"],children:e.map((g,m)=>c.jsx(HN,{iTh:m,value:g,onEntry:f},m))}),c.jsx("button",{onClick:p,children:"Rematch"})]})})},HN=({value:e,iTh:t,onEntry:n})=>{h.useEffect(()=>{console.log({value:e})},[]);const r=()=>{n(t)};return c.jsx("div",{className:Go["grid-item"],onClick:r,children:c.jsx("div",{style:{opacity:e!==null?1:0,transition:"all .1s ease-in-out"},children:e!==null?e===1?"X":"O":"X"})})};var ai=(e=>(e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e))(ai||{}),hc=(e=>(e.TOP="Top",e.BOTTOM="Bottom",e))(hc||{}),mc=(e=>(e.LEFT="Left",e.RIGHT="Right",e))(mc||{});const WN=()=>{const[e,t]=h.useState(mc.LEFT),[n,r]=h.useState(hc.TOP),[o,i]=h.useState(ai.SUCCESS),[s,l]=h.useState("This is a toast message!"),[a,u]=h.useState(5),[d,f]=h.useState([]),p=[];return h.useEffect(()=>()=>{p.forEach(y=>clearTimeout(y))},[]),{horizontalPosition:e,verticalPosition:n,type:o,message:s,duration:a,toastMessages:d,setHorizontalPosition:t,setVerticalPosition:r,setType:i,setMessage:l,setDuration:u,showToast:()=>{const y={id:Date.now(),message:s,type:o};f(v=>[...v,y]);const w=setTimeout(()=>{f(v=>v.filter(x=>x.id!==y.id))},a*1e3);p.push(w)},removeToast:y=>{f(w=>w.filter(v=>v.id!==y))}}},VN="_main_21evc_2",GN="_message_21evc_1",KN="_toastContainer_21evc_28",qN="_toast_21evc_28",YN="_success_21evc_40",QN="_error_21evc_43",XN="_warning_21evc_46",JN="_info_21evc_49",ZN="_remove_21evc_70",eT="_tcLeftTop_21evc_75",tT="_tcLeftBottom_21evc_79",nT="_tcRightTop_21evc_83",rT="_tcRightBottom_21evc_87",yi={main:VN,message:GN,toastContainer:KN,toast:qN,success:YN,error:QN,warning:XN,info:JN,remove:ZN,tcLeftTop:eT,tcLeftBottom:tT,tcRightTop:nT,tcRightBottom:rT,"appear-from-left":"_appear-from-left_21evc_1","fade-out-left":"_fade-out-left_21evc_95","fade-out-to-left":"_fade-out-to-left_21evc_1","appear-from-right":"_appear-from-right_21evc_1","fade-out-right":"_fade-out-right_21evc_119"},oT=({id:e,message:t,type:n,removeToast:r})=>c.jsxs("div",{className:`${yi.toast} ${yi[n]}`,children:[c.jsx("span",{className:"toast-message",children:t}),c.jsx("button",{className:yi.remove,onClick:()=>r(e),children:"✕"})]}),iT=()=>{const{horizontalPosition:e,verticalPosition:t,type:n,message:r,duration:o,toastMessages:i,setHorizontalPosition:s,setVerticalPosition:l,setType:a,setMessage:u,setDuration:d,showToast:f,removeToast:p}=WN(),g=`tc${e}${t}`;return c.jsxs("div",{className:yi.main,children:[c.jsxs("form",{children:[c.jsxs("select",{name:"position",id:"horizontal-position",value:e,onChange:m=>s(m.target.value),children:[c.jsx("option",{value:mc.LEFT,children:"Left"}),c.jsx("option",{value:mc.RIGHT,children:"Right"})]}),c.jsxs("select",{name:"position",id:"vertical-position",value:t,onChange:m=>l(m.target.value),children:[c.jsx("option",{value:hc.TOP,children:"Top"}),c.jsx("option",{value:hc.BOTTOM,children:"Bottom"})]}),c.jsxs("select",{name:"type",id:"type",value:n,onChange:m=>a(m.target.value),children:[c.jsx("option",{value:ai.SUCCESS,children:"Success"}),c.jsx("option",{value:ai.ERROR,children:"Error"}),c.jsx("option",{value:ai.WARNING,children:"Warning"}),c.jsx("option",{value:ai.INFO,children:"Info"})]}),c.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:r,onChange:m=>u(m.target.value)}),c.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",c.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:o,onChange:m=>d(Number(m.target.value))})]}),c.jsx("button",{type:"button",className:"btn btn-primary",onClick:f,children:"Show Toast"})]}),i.length>0&&c.jsx("div",{className:`${yi.toastContainer} ${yi[g]}`,children:i.map(m=>c.jsx(oT,{...m,removeToast:p},m.id))})]})},sT="_App_1k5ja_1",aT="_item_1k5ja_27",lT="_editBtn_1k5ja_33",cT="_deleteBtn_1k5ja_36",uT="_completed_1k5ja_40",dT="_hint_1k5ja_55",li={App:sT,item:aT,editBtn:lT,deleteBtn:cT,completed:uT,hint:dT};function fT({items:e,handleEditClick:t,handleDeleteClick:n,handleCompleteClick:r}){return e.map(o=>c.jsxs("li",{className:li.item,title:"Double click to mark completed",onDoubleClick:()=>r(o.id),children:[c.jsx("span",{className:o.isDone?li.completed:"",children:o.value}),c.jsxs("div",{children:[c.jsx("button",{className:li.editBtn,onClick:()=>t(o),children:"Edit"}),c.jsx("button",{className:li.deleteBtn,onClick:()=>n(o.id),children:"Delete"})]})]},o.id))}const pT=()=>{const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),s=S.useRef(!0);h.useEffect(()=>{const m=localStorage.getItem("items");m&&r(JSON.parse(m))},[]),h.useEffect(()=>{s.current?s.current=!1:localStorage.setItem("items",JSON.stringify(n))},[n]);const l=m=>{r(y=>[...y,{value:m,id:new Date().getTime(),isDone:!1}])},a=m=>{r(y=>y.map(w=>w.id===o.id?{...w,value:m}:w)),i(null)},u=m=>{r(y=>y.map(w=>w.id===m?{...w,isDone:!w.isDone}:w))},d=({id:m,value:y})=>{t(y),i({id:m,value:y})},f=m=>{(o==null?void 0:o.id)===m&&(t(""),i(null)),r(y=>y.filter(w=>w.id!==m))},p=m=>{m.preventDefault(),o?a(e):l(e),t("")},g=()=>{t(""),i(null)};return c.jsxs("div",{className:li.App,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("input",{type:"text",value:e,placeholder:"Enter your todo",onChange:m=>t(m.target.value)}),c.jsx("button",{type:"submit",disabled:!e,children:o?"Update":"Submit"}),c.jsx("button",{type:"reset",onClick:g,disabled:!(e||o),children:"Cancel"})]}),c.jsx("div",{className:li.hint,children:c.jsx("i",{children:"Double click on todo to toggle completion status"})}),c.jsx(fT,{items:n,handleEditClick:d,handleDeleteClick:f,handleCompleteClick:u})]})},hT="_container_10vfd_1",mT="_clockWrapper_10vfd_14",gT="_timeSection_10vfd_22",vT="_timeAdjustment_10vfd_39",yT="_timeAdjustmentButton_10vfd_45",xT="_timerDisplay_10vfd_51",wT="_buttonGroup_10vfd_69",_T="_lastMinute_10vfd_87",Sn={container:hT,clockWrapper:mT,timeSection:gT,timeAdjustment:vT,timeAdjustmentButton:yT,timerDisplay:xT,buttonGroup:wT,lastMinute:_T};var gx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vg=S.createContext&&S.createContext(gx),Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;nw(),1e3))}function y(){clearInterval(d),r(!1)}function w(){u(C=>{const[E,b]=C;return b===0?E===0?e==="session"?(t("break"),[o.time-1,59]):(t("session"),[s.time-1,59]):[E-1,59]:[E,b-1]})}function v(){n||(t("session"),i({time:5,range:[2,25]}),l({time:25,range:[5,60]}),u([25,0]))}function x(C){return C>9?C:`0${C}`}function _(C){const{target:E,direction:b}=C.currentTarget.dataset,k=b==="up"?1:-1;function j(P,T){const{time:M,range:I}=T,H=M+k;if(H>=I[0]&&H<=I[1]){const B=E===P?H:M;return u([B,0]),{time:B,range:I}}return T}E==="break"?i(P=>j("break",P)):l(P=>j("session",P))}return c.jsx("div",{className:Sn.container,children:c.jsxs("div",{className:Sn.clockWrapper,children:[c.jsxs("div",{className:Sn.timeSection,children:[c.jsxs("div",{className:Sn.timeAdjustment,children:[c.jsx("p",{children:o.time}),c.jsxs("div",{className:Sn.timeAdjustmentButton,children:[c.jsx("button",{onClick:_,"data-target":"break","data-direction":"up",children:c.jsx(xg,{})}),c.jsx("button",{onClick:_,"data-target":"break","data-direction":"down",children:c.jsx(yg,{})})]})]}),c.jsxs("div",{className:Sn.timeAdjustment,children:[c.jsx("p",{children:s.time}),c.jsxs("div",{className:Sn.timeAdjustmentButton,children:[c.jsx("button",{onClick:_,"data-target":"session","data-direction":"up",children:c.jsx(xg,{})}),c.jsx("button",{onClick:_,"data-target":"session","data-direction":"down",children:c.jsx(yg,{})})]})]})]}),c.jsxs("div",{className:Sn.timerDisplay,children:[c.jsx("p",{children:e}),c.jsxs("p",{className:p?Sn.lastMinute:"",children:[c.jsx("span",{children:x(a[0])}),":",c.jsx("span",{children:x(a[1])})]}),c.jsxs("div",{className:Sn.buttonGroup,children:[n?c.jsx("button",{onClick:y,children:c.jsx(ET,{size:32})}):c.jsx("button",{onClick:m,children:c.jsx(CT,{size:32})}),c.jsx("button",{onClick:v,children:c.jsx(kT,{size:32})})]})]})]})})}const $T="_container_1twmk_2",RT="_controls_1twmk_23",NT="_highlight_1twmk_44",TT="_highlighted_1twmk_61",wg={container:$T,controls:RT,"char-limit":"_char-limit_1twmk_1",highlight:NT,"highlight-button":"_highlight-button_1twmk_54",highlighted:TT},PT=({text:e,wordCount:t,charCount:n,paraCount:r})=>{localStorage.setItem("text",e),localStorage.setItem("words",t),localStorage.setItem("chars",n),localStorage.setItem("paras",r)};function OT(){const[e,t]=h.useState(""),[n,r]=h.useState(0),[o,i]=h.useState(0),[s,l]=h.useState(0),a=h.useRef(!0);h.useEffect(()=>{f()},[]),h.useEffect(()=>{if(a.current){a.current=!1;return}PT({text:e,wordCount:n,charCount:o,paraCount:s})},[e,n,o,s]);const u=()=>{const p=e.split(/\s+/).filter(y=>y!==""),g=e.length,m=e.split(` + */var sx={L:si.QrCode.Ecc.LOW,M:si.QrCode.Ecc.MEDIUM,Q:si.QrCode.Ecc.QUARTILE,H:si.QrCode.Ecc.HIGH},ax=128,lx="L",cx="#FFFFFF",ux="#000000",dx=!1,Kp=4,qR=.1;function fx(e,t=0){const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(s,l){if(!s&&i!==null){n.push(`M${i+t} ${o+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!s)return;i===null?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${i+t},${o+t} h${l+1-i}v1H${i+t}z`);return}s&&i===null&&(i=l)})}),n.join("")}function px(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((o,i)=>i=t.x+t.w?o:!1))}function hx(e,t,n,r){if(r==null)return null;const o=n?Kp:0,i=e.length+o*2,s=Math.floor(t*qR),l=i/t,a=(r.width||s)*l,u=(r.height||s)*l,d=r.x==null?e.length/2-a/2:r.x*l,f=r.y==null?e.length/2-u/2:r.y*l;let p=null;if(r.excavate){let g=Math.floor(d),m=Math.floor(f),y=Math.ceil(a+d-g),w=Math.ceil(u+f-m);p={x:g,y:m,w:y,h:w}}return{x:d,y:f,h:u,w:a,excavation:p}}var YR=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function QR(e){const t=e,{value:n,size:r=ax,level:o=lx,bgColor:i=cx,fgColor:s=ux,includeMargin:l=dx,style:a,imageSettings:u}=t,d=Gp(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=u==null?void 0:u.src,p=h.useRef(null),g=h.useRef(null),[m,y]=h.useState(!1);h.useEffect(()=>{if(p.current!=null){const x=p.current,_=x.getContext("2d");if(!_)return;let C=si.QrCode.encodeText(n,sx[o]).getModules();const E=l?Kp:0,b=C.length+E*2,k=hx(C,r,l,u),j=g.current,P=k!=null&&j!==null&&j.complete&&j.naturalHeight!==0&&j.naturalWidth!==0;P&&k.excavation!=null&&(C=px(C,k.excavation));const T=window.devicePixelRatio||1;x.height=x.width=r*T;const M=r/b*T;_.scale(M,M),_.fillStyle=i,_.fillRect(0,0,b,b),_.fillStyle=s,YR?_.fill(new Path2D(fx(C,E))):C.forEach(function(I,H){I.forEach(function(z,Y){z&&_.fillRect(Y+E,H+E,1,1)})}),P&&_.drawImage(j,k.x+E,k.y+E,k.w,k.h)}}),h.useEffect(()=>{y(!1)},[f]);const w=ia({height:r,width:r},a);let v=null;return f!=null&&(v=S.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{y(!0)},ref:g})),S.createElement(S.Fragment,null,S.createElement("canvas",ia({style:w,height:r,width:r,ref:p},d)),v)}function XR(e){const t=e,{value:n,size:r=ax,level:o=lx,bgColor:i=cx,fgColor:s=ux,includeMargin:l=dx,imageSettings:a}=t,u=Gp(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let d=si.QrCode.encodeText(n,sx[o]).getModules();const f=l?Kp:0,p=d.length+f*2,g=hx(d,r,l,a);let m=null;a!=null&&g!=null&&(g.excavation!=null&&(d=px(d,g.excavation)),m=S.createElement("image",{xlinkHref:a.src,height:g.h,width:g.w,x:g.x+f,y:g.y+f,preserveAspectRatio:"none"}));const y=fx(d,f);return S.createElement("svg",ia({height:r,width:r,viewBox:`0 0 ${p} ${p}`},u),S.createElement("path",{fill:i,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),S.createElement("path",{fill:s,d:y,shapeRendering:"crispEdges"}),m)}var JR=e=>{const t=e,{renderAs:n}=t,r=Gp(t,["renderAs"]);return n==="svg"?S.createElement(XR,ia({},r)):S.createElement(QR,ia({},r))};const ZR="_QRCodeGenerator_a1hdg_2",eN="_qrcode_a1hdg_32",tl={QRCodeGenerator:ZR,"input-field":"_input-field_a1hdg_9","generate-button":"_generate-button_a1hdg_18",qrcode:eN};function tN(){const[e,t]=h.useState(""),[n,r]=h.useState(""),o=s=>{t(s.target.value)},i=()=>{r(e)};return c.jsxs("div",{className:tl.QRCodeGenerator,children:[c.jsx("input",{type:"text",placeholder:"Enter text",onChange:o,className:tl["input-field"]}),c.jsx("button",{onClick:i,className:tl["generate-button"],children:"Generate QR Code"}),n&&c.jsx(JR,{value:n,className:tl.qrcode,size:256})]})}function nN(){return c.jsx("div",{className:"App",children:c.jsx(tN,{})})}const rN="_stack_u1sn7_1",oN="_btn_root_u1sn7_25",iN="_stackElement_u1sn7_62",nl={stack:rN,"slide-in":"_slide-in_u1sn7_1",btn_root:oN,stackElement:iN},sN=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(""),[o,i]=h.useState(""),s=p=>{r(p.target.value)},l=()=>{if(n==""){i("Enter a value");return}if(e.length===10){i("Stack is Full");return}t([...e,n]),i(`${n} is pushed into the Stack`),r("")},a=()=>{if(!e.length){i("Stack is empty");return}t(e.slice(0,-1)),i(`${e[e.length-1]} is popped from the Stack `)},u=()=>{if(!e.length)i("Stack is empty");else{const p=e[e.length-1];i(`Last element is ${p}`)}},d=()=>{e.length===0?i("Stack is empty"):i("Stack is not empty")},f=()=>{e.length===10?i("Stack is Full"):i("Stack is not full")};return c.jsx("div",{className:nl.container,children:c.jsxs("div",{className:nl.stack,children:[c.jsx("input",{type:"text",placeholder:"Enter a value",value:n,onChange:s,required:!0}),c.jsxs("div",{className:nl.btn_root,children:[c.jsx("button",{onClick:l,children:"Push"}),c.jsx("button",{onClick:a,children:"Pop"}),c.jsx("button",{onClick:u,children:"Peek"}),c.jsx("button",{onClick:d,children:"IsEmpty"}),c.jsx("button",{onClick:f,children:"IsFull"})]}),c.jsx("hr",{}),c.jsx("h3",{children:o}),e.slice().reverse().map((p,g)=>c.jsx("div",{className:nl.stackElement,children:c.jsx("p",{children:p})},g))]})})},aN="_App_33mq4_1",lN="_star_33mq4_6",mx={App:aN,star:lN},cN=({marked:e,starId:t})=>c.jsx("span",{"data-star-id":t,className:mx.star,role:"button",children:e?"★":"☆"}),uN=({value:e,total:t})=>{const[n,r]=h.useState(e||0),[o,i]=h.useState(0),s=h.useMemo(()=>Array.from({length:t}),[t]),l=d=>{var f;i(((f=d.target.dataset)==null?void 0:f.starId)??0)},a=()=>{i(0)},u=d=>{var f;r(((f=d.target.dataset)==null?void 0:f.starId)??n)};return c.jsx("div",{onMouseLeave:a,onMouseOver:l,onClick:u,children:s.map((d,f)=>c.jsx(cN,{marked:(o||n)>f,starId:f+1},`star_${f+1}`))})};function dN(){return c.jsx("div",{className:mx.App,children:c.jsx(uN,{value:2,total:5})})}const fN="_watch_g783o_1",Ln={"watch-container":"_watch-container_g783o_1",watch:fN,"watch-heading":"_watch-heading_g783o_24","watch-timer":"_watch-timer_g783o_30","watch-btn":"_watch-btn_g783o_36"},pN=()=>{let e=h.useRef(0);const t=h.useRef(Date.now()),[n,r]=h.useState(["00","00","00"]),[o,i]=h.useState(!1),s=()=>{i(!0),e.current=requestAnimationFrame(u)},l=()=>{i(!1),cancelAnimationFrame(e.current)},a=()=>{i(!1),r(["00","00","00"]),cancelAnimationFrame(e.current),t.current=Date.now()},u=()=>{const d=Date.now()-t.current,f=Math.floor(d/1e3),p=Math.floor(f/60),g=(d%1e3).toString().padStart(3,"0"),m=(f%60).toString().padStart(2,"0"),y=p.toString().padStart(2,"0");r([y,m,g]),e.current=requestAnimationFrame(u)};return h.useEffect(()=>cancelAnimationFrame(e.current),[]),c.jsx("div",{className:Ln.test,children:c.jsx("div",{className:Ln["watch-container"],children:c.jsxs("div",{className:Ln.watch,children:[c.jsx("div",{className:Ln["watch-heading"],children:"Stopwatch"}),c.jsx("div",{className:Ln["watch-timer"],children:`${n[0]}:${n[1]}:${n[2]}`}),c.jsxs("div",{className:Ln["watch-btn__container"],children:[c.jsx("button",{disabled:o,onClick:s,className:Ln["watch-btn"],children:"Start"}),c.jsx("button",{onClick:l,disabled:!o,className:Ln["watch-btn"],children:"Stop"}),c.jsx("button",{onClick:a,disabled:!o,className:Ln["watch-btn"],children:"Reset"})]})]})})})},hN="_App_1hyma_1",mN="_textarea_1hyma_6",gN="_buttonBox_1hyma_12",vN="_output_1hyma_22",rl={App:hN,textarea:mN,buttonBox:gN,output:vN};function yN(){const[e,t]=h.useState("hello world"),[n,r]=h.useState(e),o=p=>{t(p.target.value)},i=()=>{r(e.toLowerCase())},s=()=>{r(e.toUpperCase())},l=()=>{const g=e.split(" ").map((m,y)=>y===0?m.toLowerCase():m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},a=()=>{const g=e.split(" ").map(m=>m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},u=()=>{const p=e.replace(/\s+/g,"_").toLowerCase();r(p)},d=()=>{const p=e.replace(/\s+/g,"-").toLowerCase();r(p)},f=()=>{r(e.trim())};return c.jsx("main",{children:c.jsxs("div",{className:rl.App,children:[c.jsx("textarea",{rows:4,className:rl.textarea,placeholder:"Enter a sentence...",value:e,onChange:o}),c.jsxs("div",{className:rl.buttonBox,children:[c.jsx("button",{onClick:i,children:"Lower Case"}),c.jsx("button",{onClick:s,children:"Upper Case"}),c.jsx("button",{onClick:l,children:"Camel Case"}),c.jsx("button",{onClick:a,children:"Pascal Case"}),c.jsx("button",{onClick:u,children:"Snake Case"}),c.jsx("button",{onClick:d,children:"Kebab Case"}),c.jsx("button",{onClick:f,children:"Trim"})]}),c.jsxs("div",{className:rl.output,children:[c.jsx("strong",{children:"Transformed String:"}),c.jsx("p",{children:n})]})]})})}const xN="_color_1kotf_1",wN="_form_1kotf_9",_N="_containers_1kotf_17",bN="_container_1kotf_17",SN="_containerColor_1kotf_33",EN="_numberInput_1kotf_42",CN="_error_1kotf_53",mr={color:xN,form:wN,containers:_N,container:bN,containerColor:SN,numberInput:EN,error:CN},kN=9,jN=Array.from(new Array(kN),(e,t)=>t),$N=()=>{const[e,t]=h.useState([]),n=h.useRef(),[r,o]=h.useState(null),i=l=>{l.preventDefault();const a=parseInt(n.current.value);if(isNaN(a)||a>9||a<1){o("Please enter a valid number between 1 to 9");return}o(null),e.indexOf(a)===-1&&t(u=>[...u,a])},s=l=>{l.preventDefault(),t([]),o(null),n.current.value=""};return c.jsxs("div",{className:mr.color,children:[c.jsxs("form",{className:mr.form,children:[c.jsx("input",{type:"number",className:mr.numberInput,ref:n}),r&&c.jsx("p",{className:mr.error,children:r}),c.jsxs("div",{className:"buttons",children:[c.jsx("input",{type:"submit",value:"Color Me",onClick:i}),c.jsx("button",{className:mr.clearBtn,onClick:s,children:"Clear Me"})]})]}),c.jsx("div",{className:mr.containers,children:jN.map((l,a)=>c.jsx("div",{className:e.indexOf(l+1)!==-1?mr.containerColor:mr.container,children:l+1},a))})]})};function RN(){const[e,t]=h.useState(""),n=o=>[...o].filter(i=>Number.isInteger(+i)&&i!==" ").join(""),r=o=>{const i=n(o.target.value);t(i.length>3?"+("+i.substring(0,3)+") - "+i.substring(3):i)};return c.jsxs("div",{className:"container text-center",children:[c.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:e,onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}const NN="_container_12wso_1",TN="_card_12wso_7",PN="_cardTitle_12wso_15",ON="_formGroup_12wso_19",AN="_inputGroup_12wso_23",MN="_input_12wso_23",DN="_select_12wso_33",IN="_convertButton_12wso_38",LN="_outputGroup_12wso_42",Fn={container:NN,card:TN,cardTitle:PN,formGroup:ON,inputGroup:AN,input:MN,select:DN,convertButton:IN,outputGroup:LN};function FN(){const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState("celsius"),[s,l]=h.useState("fahrenheit"),a=()=>{const u=parseFloat(e);if(isNaN(u)){r("Invalid input");return}if(o===s){r(u);return}if(o==="celsius"&&s==="fahrenheit"){let d=u*9/5+32;d%1!==0&&(d=d.toFixed(2)),r(d)}else if(o==="fahrenheit"&&s==="celsius"){let d=(u-32)*5/9;d%1!==0&&(d=d.toFixed(2)),r(d)}};return c.jsx("div",{className:Fn.container,children:c.jsxs("div",{className:Fn.card,children:[c.jsxs("div",{className:Fn.formGroup,children:[c.jsx("label",{children:"Enter Temperature"}),c.jsxs("div",{className:Fn.inputGroup,children:[c.jsx("input",{type:"number",className:`form-control ${Fn.input}`,placeholder:"Enter temperature",value:e,onChange:u=>t(u.target.value)}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:o,onChange:u=>i(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]}),c.jsx("button",{className:`btn btn-primary btn-block ${Fn.convertButton}`,onClick:a,children:"Convert"}),c.jsxs("div",{className:Fn.outputGroup,children:[c.jsxs("p",{children:["Converted Temperature: ",c.jsx("strong",{children:n})]}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:s,onChange:u=>l(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]})})}const At=3,zN=[...Array.from(new Array(At),(e,t)=>Array.from(new Array(At),(n,r)=>t*At+r)),...Array.from(new Array(At),(e,t)=>Array.from(new Array(At),(n,r)=>r*At+t)),Array.from(new Array(At),(e,t)=>t*At+t),Array.from(new Array(At),(e,t)=>t*At+At-t-1)],gg=Array(At*At).fill(null),BN="_container_1rajw_1",Go={container:BN,"mx-5":"_mx-5_1rajw_10","grid-container":"_grid-container_1rajw_14","grid-item":"_grid-item_1rajw_23"},UN=()=>{const[e,t]=h.useState(gg),[n,r]=h.useState(!1),[o,i]=h.useState(null),[[s,l,a],u]=h.useState([0,0,0]);h.useEffect(()=>{d()},[e]),h.useEffect(()=>{o==="X"?u([s+1,l,a]):o==="O"?u([s,l+1,a]):o===null&&e.filter(g=>g===null).length===0&&u([s,l,a+1])},[o,e]);const d=()=>{r(!n);for(const g of zN){const[m,y,w]=g;if(e[m]!==null&&e[m]===e[y]&&e[m]===e[w]){i(e[m]===1?"X":"O");return}}},f=g=>{e[g]===null&&o===null&&t(m=>{const y=[...m];return y[g]=n?1:0,y})},p=()=>{t(gg),i(null)};return c.jsx("div",{className:Go.container,children:c.jsxs("div",{children:["Status: ",o?`Winner ${o}`:"Playing",c.jsxs("div",{className:Go.container,children:[c.jsxs("div",{className:Go["mx-5"],children:[c.jsx("div",{children:"X"}),c.jsxs("div",{children:[s," Wins"]})]}),c.jsxs("div",{className:Go["mx-5"],children:[c.jsx("div",{children:"O"}),c.jsxs("div",{children:[l," Wins"]})]}),c.jsxs("div",{children:[c.jsx("div",{children:"="}),c.jsxs("div",{children:[a," Draws"]})]})]}),c.jsx("div",{className:Go["grid-container"],children:e.map((g,m)=>c.jsx(HN,{iTh:m,value:g,onEntry:f},m))}),c.jsx("button",{onClick:p,children:"Rematch"})]})})},HN=({value:e,iTh:t,onEntry:n})=>{h.useEffect(()=>{console.log({value:e})},[]);const r=()=>{n(t)};return c.jsx("div",{className:Go["grid-item"],onClick:r,children:c.jsx("div",{style:{opacity:e!==null?1:0,transition:"all .1s ease-in-out"},children:e!==null?e===1?"X":"O":"X"})})};var ai=(e=>(e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e))(ai||{}),hc=(e=>(e.TOP="Top",e.BOTTOM="Bottom",e))(hc||{}),mc=(e=>(e.LEFT="Left",e.RIGHT="Right",e))(mc||{});const WN=()=>{const[e,t]=h.useState(mc.LEFT),[n,r]=h.useState(hc.TOP),[o,i]=h.useState(ai.SUCCESS),[s,l]=h.useState("This is a toast message!"),[a,u]=h.useState(5),[d,f]=h.useState([]),p=[];return h.useEffect(()=>()=>{p.forEach(y=>clearTimeout(y))},[]),{horizontalPosition:e,verticalPosition:n,type:o,message:s,duration:a,toastMessages:d,setHorizontalPosition:t,setVerticalPosition:r,setType:i,setMessage:l,setDuration:u,showToast:()=>{const y={id:Date.now(),message:s,type:o};f(v=>[...v,y]);const w=setTimeout(()=>{f(v=>v.filter(x=>x.id!==y.id))},a*1e3);p.push(w)},removeToast:y=>{f(w=>w.filter(v=>v.id!==y))}}},VN="_main_21evc_2",GN="_message_21evc_1",KN="_toastContainer_21evc_28",qN="_toast_21evc_28",YN="_success_21evc_40",QN="_error_21evc_43",XN="_warning_21evc_46",JN="_info_21evc_49",ZN="_remove_21evc_70",eT="_tcLeftTop_21evc_75",tT="_tcLeftBottom_21evc_79",nT="_tcRightTop_21evc_83",rT="_tcRightBottom_21evc_87",yi={main:VN,message:GN,toastContainer:KN,toast:qN,success:YN,error:QN,warning:XN,info:JN,remove:ZN,tcLeftTop:eT,tcLeftBottom:tT,tcRightTop:nT,tcRightBottom:rT,"appear-from-left":"_appear-from-left_21evc_1","fade-out-left":"_fade-out-left_21evc_95","fade-out-to-left":"_fade-out-to-left_21evc_1","appear-from-right":"_appear-from-right_21evc_1","fade-out-right":"_fade-out-right_21evc_119"},oT=({id:e,message:t,type:n,removeToast:r})=>c.jsxs("div",{className:`${yi.toast} ${yi[n]}`,children:[c.jsx("span",{className:"toast-message",children:t}),c.jsx("button",{className:yi.remove,onClick:()=>r(e),children:"✕"})]}),iT=()=>{const{horizontalPosition:e,verticalPosition:t,type:n,message:r,duration:o,toastMessages:i,setHorizontalPosition:s,setVerticalPosition:l,setType:a,setMessage:u,setDuration:d,showToast:f,removeToast:p}=WN(),g=`tc${e}${t}`;return c.jsxs("div",{className:yi.main,children:[c.jsxs("form",{children:[c.jsxs("select",{name:"position",id:"horizontal-position",value:e,onChange:m=>s(m.target.value),children:[c.jsx("option",{value:mc.LEFT,children:"Left"}),c.jsx("option",{value:mc.RIGHT,children:"Right"})]}),c.jsxs("select",{name:"position",id:"vertical-position",value:t,onChange:m=>l(m.target.value),children:[c.jsx("option",{value:hc.TOP,children:"Top"}),c.jsx("option",{value:hc.BOTTOM,children:"Bottom"})]}),c.jsxs("select",{name:"type",id:"type",value:n,onChange:m=>a(m.target.value),children:[c.jsx("option",{value:ai.SUCCESS,children:"Success"}),c.jsx("option",{value:ai.ERROR,children:"Error"}),c.jsx("option",{value:ai.WARNING,children:"Warning"}),c.jsx("option",{value:ai.INFO,children:"Info"})]}),c.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:r,onChange:m=>u(m.target.value)}),c.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",c.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:o,onChange:m=>d(Number(m.target.value))})]}),c.jsx("button",{type:"button",className:"btn btn-primary",onClick:f,children:"Show Toast"})]}),i.length>0&&c.jsx("div",{className:`${yi.toastContainer} ${yi[g]}`,children:i.map(m=>c.jsx(oT,{...m,removeToast:p},m.id))})]})},sT="_App_1k5ja_1",aT="_item_1k5ja_27",lT="_editBtn_1k5ja_33",cT="_deleteBtn_1k5ja_36",uT="_completed_1k5ja_40",dT="_hint_1k5ja_55",li={App:sT,item:aT,editBtn:lT,deleteBtn:cT,completed:uT,hint:dT};function fT({items:e,handleEditClick:t,handleDeleteClick:n,handleCompleteClick:r}){return e.map(o=>c.jsxs("li",{className:li.item,title:"Double click to mark completed",onDoubleClick:()=>r(o.id),children:[c.jsx("span",{className:o.isDone?li.completed:"",children:o.value}),c.jsxs("div",{children:[c.jsx("button",{className:li.editBtn,onClick:()=>t(o),children:"Edit"}),c.jsx("button",{className:li.deleteBtn,onClick:()=>n(o.id),children:"Delete"})]})]},o.id))}const pT=()=>{const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),s=S.useRef(!0);h.useEffect(()=>{const m=localStorage.getItem("items");m&&r(JSON.parse(m))},[]),h.useEffect(()=>{s.current?s.current=!1:localStorage.setItem("items",JSON.stringify(n))},[n]);const l=m=>{r(y=>[...y,{value:m,id:new Date().getTime(),isDone:!1}])},a=m=>{r(y=>y.map(w=>w.id===o.id?{...w,value:m}:w)),i(null)},u=m=>{r(y=>y.map(w=>w.id===m?{...w,isDone:!w.isDone}:w))},d=({id:m,value:y})=>{t(y),i({id:m,value:y})},f=m=>{(o==null?void 0:o.id)===m&&(t(""),i(null)),r(y=>y.filter(w=>w.id!==m))},p=m=>{m.preventDefault(),o?a(e):l(e),t("")},g=()=>{t(""),i(null)};return c.jsxs("div",{className:li.App,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("input",{type:"text",value:e,placeholder:"Enter your todo",onChange:m=>t(m.target.value)}),c.jsx("button",{type:"submit",disabled:!e,children:o?"Update":"Submit"}),c.jsx("button",{type:"reset",onClick:g,disabled:!(e||o),children:"Cancel"})]}),c.jsx("div",{className:li.hint,children:c.jsx("i",{children:"Double click on todo to toggle completion status"})}),c.jsx(fT,{items:n,handleEditClick:d,handleDeleteClick:f,handleCompleteClick:u})]})},hT="_container_10vfd_1",mT="_clockWrapper_10vfd_14",gT="_timeSection_10vfd_22",vT="_timeAdjustment_10vfd_39",yT="_timeAdjustmentButton_10vfd_45",xT="_timerDisplay_10vfd_51",wT="_buttonGroup_10vfd_69",_T="_lastMinute_10vfd_87",Sn={container:hT,clockWrapper:mT,timeSection:gT,timeAdjustment:vT,timeAdjustmentButton:yT,timerDisplay:xT,buttonGroup:wT,lastMinute:_T};var gx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vg=S.createContext&&S.createContext(gx),Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;nw(),1e3))}function y(){clearInterval(d),r(!1)}function w(){u(C=>{const[E,b]=C;return b===0?E===0?e==="session"?(t("break"),[o.time-1,59]):(t("session"),[s.time-1,59]):[E-1,59]:[E,b-1]})}function v(){n||(t("session"),i({time:5,range:[2,25]}),l({time:25,range:[5,60]}),u([25,0]))}function x(C){return C>9?C:`0${C}`}function _(C){const{target:E,direction:b}=C.currentTarget.dataset,k=b==="up"?1:-1;function j(P,T){const{time:M,range:I}=T,H=M+k;if(H>=I[0]&&H<=I[1]){const z=E===P?H:M;return u([z,0]),{time:z,range:I}}return T}E==="break"?i(P=>j("break",P)):l(P=>j("session",P))}return c.jsx("div",{className:Sn.container,children:c.jsxs("div",{className:Sn.clockWrapper,children:[c.jsxs("div",{className:Sn.timeSection,children:[c.jsxs("div",{className:Sn.timeAdjustment,children:[c.jsx("p",{children:o.time}),c.jsxs("div",{className:Sn.timeAdjustmentButton,children:[c.jsx("button",{onClick:_,"data-target":"break","data-direction":"up",children:c.jsx(xg,{})}),c.jsx("button",{onClick:_,"data-target":"break","data-direction":"down",children:c.jsx(yg,{})})]})]}),c.jsxs("div",{className:Sn.timeAdjustment,children:[c.jsx("p",{children:s.time}),c.jsxs("div",{className:Sn.timeAdjustmentButton,children:[c.jsx("button",{onClick:_,"data-target":"session","data-direction":"up",children:c.jsx(xg,{})}),c.jsx("button",{onClick:_,"data-target":"session","data-direction":"down",children:c.jsx(yg,{})})]})]})]}),c.jsxs("div",{className:Sn.timerDisplay,children:[c.jsx("p",{children:e}),c.jsxs("p",{className:p?Sn.lastMinute:"",children:[c.jsx("span",{children:x(a[0])}),":",c.jsx("span",{children:x(a[1])})]}),c.jsxs("div",{className:Sn.buttonGroup,children:[n?c.jsx("button",{onClick:y,children:c.jsx(ET,{size:32})}):c.jsx("button",{onClick:m,children:c.jsx(CT,{size:32})}),c.jsx("button",{onClick:v,children:c.jsx(kT,{size:32})})]})]})]})})}const $T="_container_1twmk_2",RT="_controls_1twmk_23",NT="_highlight_1twmk_44",TT="_highlighted_1twmk_61",wg={container:$T,controls:RT,"char-limit":"_char-limit_1twmk_1",highlight:NT,"highlight-button":"_highlight-button_1twmk_54",highlighted:TT},PT=({text:e,wordCount:t,charCount:n,paraCount:r})=>{localStorage.setItem("text",e),localStorage.setItem("words",t),localStorage.setItem("chars",n),localStorage.setItem("paras",r)};function OT(){const[e,t]=h.useState(""),[n,r]=h.useState(0),[o,i]=h.useState(0),[s,l]=h.useState(0),a=h.useRef(!0);h.useEffect(()=>{f()},[]),h.useEffect(()=>{if(a.current){a.current=!1;return}PT({text:e,wordCount:n,charCount:o,paraCount:s})},[e,n,o,s]);const u=()=>{const p=e.split(/\s+/).filter(y=>y!==""),g=e.length,m=e.split(` `).filter(y=>y.trim()!=="").length;r(p.length),i(g),l(m)},d=()=>{t(""),r(0),i(0),l(0)},f=()=>{t(localStorage.getItem("text")||""),r(localStorage.getItem("words")||0),i(localStorage.getItem("chars")||0),l(localStorage.getItem("paras")||0)};return c.jsxs("div",{className:wg.container,children:[c.jsx("textarea",{id:"text-input",placeholder:"Enter your text here...",value:e,onChange:p=>t(p.target.value)}),c.jsxs("div",{className:wg.controls,children:[c.jsxs("div",{id:"word-count",children:["Words: ",n]}),c.jsxs("div",{id:"char-count",children:["Chars: ",o]}),c.jsxs("div",{id:"para-count",children:["Paras: ",s]}),c.jsx("button",{id:"count-button",onClick:u,children:"Count"}),c.jsx("button",{id:"clear-button",onClick:d,children:"Clear"})]})]})}const AT="_sport_1g70d_1",MT="_container_1g70d_7",DT="_header_1g70d_15",IT="_question_1g70d_20",LT="_answers_1g70d_26",FT="_button_1g70d_33",zT="_buttonStartOver_1g70d_48",gr={sport:AT,container:MT,header:DT,question:IT,answers:LT,button:FT,buttonStartOver:zT},us=["Do you enjoy team sports?","Do you like running or endurance activities?","Are you interested in individual sports?","Do you prefer indoor or outdoor sports?","Are you a fan of water sports?","Do you like racket sports?"],BT=()=>{const[e,t]=h.useState(0),[n,r]=h.useState(Array(us.length).fill(null)),o=s=>{const l=[...n];if(l[e]=s,es[0]==="Yes"&&s[1]==="Yes"?"Soccer":s[2]==="Yes"&&s[3]==="Indoor"?"Table Tennis":s[4]==="Yes"?"Swimming":s[5]==="Yes"?"Tennis":"Running";return c.jsx("div",{className:gr.sport,children:c.jsxs("div",{className:gr.container,children:[c.jsx("h1",{className:gr.header,children:"Discover Your Natural Sport"}),c.jsx("div",{className:gr.question,children:eo("Yes"),children:"Yes"}),c.jsx("button",{className:gr.button,onClick:()=>o("No"),children:"No"})]}):c.jsx("button",{onClick:()=>t(0),className:gr.buttonStartOver,children:"Start Over"})})]})})},UT="_openbtn_1gnwd_1",HT="_overlay_1gnwd_8",WT="_modalWrapper_1gnwd_18",VT="_closebtn_1gnwd_34",Nl={openbtn:UT,overlay:HT,modalWrapper:WT,closebtn:VT},GT=({showModal:e,setShowModal:t,title:n,content:r})=>c.jsx(c.Fragment,{children:e&&c.jsx("div",{className:Nl.overlay,onClick:()=>t(!1),children:c.jsx("div",{className:Nl.modalWrapper,onClick:o=>o.stopPropagation(),children:c.jsxs("div",{children:[c.jsx("h3",{children:n}),c.jsx("p",{children:r}),c.jsx("button",{onClick:()=>t(!1),className:Nl.closebtn,children:"Close"})]})})})}),KT=()=>{const[e,t]=h.useState(!1),n={title:"Modal Heading",content:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error, voluptates. Nobis delectus magni quaerat et deserunt fuga temporibus doloribus vero quidem repellat suscipit nulla tempora eveniet, repellendus deleniti placeat quibusdam."};return c.jsxs(c.Fragment,{children:[c.jsx("button",{className:Nl.openbtn,onClick:()=>t(!0),children:"Open Modal"}),bo.createPortal(c.jsx(GT,{showModal:e,setShowModal:t,title:n.title,content:n.content}),document.body)]})},qT="_main_5yt35_2",YT="_container_5yt35_10",QT="_iconContainer_5yt35_33",XT="_icon_5yt35_33",JT="_inputField_5yt35_54",ZT="_toast_5yt35_68",eP="_loader_5yt35_83",tP="_spin_5yt35_1",nP="_loaderContainer_5yt35_92",rP="_topSection_5yt35_97",oP="_select_5yt35_103",iP="_copyText_5yt35_112",sP="_hidden_5yt35_119",Wt={main:qT,container:YT,iconContainer:QT,icon:XT,inputField:JT,toast:ZT,loader:eP,spin:tP,loaderContainer:nP,topSection:rP,select:oP,copyText:iP,hidden:sP},Yu="eb3aa13df1b14cc7bc614fc2d7f894f41b09d68a",aP=()=>{const[e,t]=h.useState([]),[n,r]=h.useState([]),[o,i]=h.useState(""),[s,l]=h.useState(""),[a,u]=h.useState([]);h.useEffect(()=>{d(),f(),window.scrollTo(0,0)},[]);const d=()=>{Ce.get(`https://emoji-api.com/emojis?access_key=${Yu}`).then(w=>{t(w.data),r(w.data)})},f=()=>{Ce.get(`https://emoji-api.com/categories?access_key=${Yu}`).then(w=>{u(w.data)})},p=w=>{const[v,...x]=w.split(" ");return x.join(" ")},g=w=>{let v=w.target.value;i(v);let x=e.filter(_=>_.unicodeName.toLowerCase().includes(v.trim().toLowerCase()));r(x)},m=w=>{i(""),r([]),t([]),w.target.value=="all"?d():Ce.get(`https://emoji-api.com/categories/${w.target.value}?access_key=${Yu}`).then(v=>{t(v.data),r(v.data)})},y=w=>{let v=document.createRange();v.selectNode(document.getElementById(w)),window.getSelection().removeAllRanges(),window.getSelection().addRange(v),document.execCommand("copy"),window.getSelection().removeAllRanges(),l("Copied Successfully!"),setTimeout(()=>{l("")},1500)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Wt.topSection,children:[c.jsx("div",{children:c.jsxs("select",{className:Wt.select,onChange:m,children:[c.jsx("option",{children:"all"}),a.map(w=>c.jsx("option",{value:w.slug,children:w.slug.replace("-"," ")},w.slug))]})}),c.jsx("div",{children:c.jsx("input",{type:"text",placeholder:"Search",onChange:g,value:o,className:Wt.inputField})}),c.jsx("div",{className:`${Wt.copyText} ${n==null||(n==null?void 0:n.length)===0?Wt.hidden:""}`,children:"Click on an Emoji to Copy"})]}),c.jsxs("div",{className:Wt.container,children:[(n==null?void 0:n.length)==0&&o.trim()==""&&c.jsx("div",{className:Wt.loaderContainer,children:c.jsx("div",{className:Wt.loader})}),n==null?void 0:n.map((w,v)=>c.jsx("span",{className:Wt.iconContainer,onClick:()=>y(w.unicodeName+"_"+v),children:c.jsx("span",{className:Wt.icon,title:p(w.unicodeName),id:w.unicodeName+"_"+v,children:w.character})},v))]}),s&&c.jsx("div",{className:Wt.toast,children:s})]})};function lP(){return c.jsx("div",{className:Wt.main,children:c.jsx(aP,{})})}const cP=[{name:"SQL",year:1970,creator:"Donald D. Chamberlin, Raymond F. Boyce",usecase:"Database management"},{name:"C",year:1972,creator:"Dennis Ritchie",usecase:"System programming, embedded systems"},{name:"C++",year:1983,creator:"Bjarne Stroustrup",usecase:"Game development, system software"},{name:"Perl",year:1987,creator:"Larry Wall",usecase:"Scripting, web development, automation"},{name:"HTML",year:1991,creator:"Tim Berners-Lee",usecase:"Web content structure"},{name:"Python",year:1991,creator:"Guido van Rossum",usecase:"Web development, data analysis, AI"},{name:"Java",year:1995,creator:"James Gosling",usecase:"Enterprise software, Android apps"},{name:"JavaScript",year:1995,creator:"Brendan Eich",usecase:"Web development, browser scripting"},{name:"PHP",year:1995,creator:"Rasmus Lerdorf",usecase:"Web development, server-side scripting"},{name:"CSS",year:1996,creator:"Håkon Wium Lie, Bert Bos",usecase:"Web page styling"},{name:"C#",year:2e3,creator:"Microsoft",usecase:"Windows apps, game development"},{name:"Scala",year:2003,creator:"Martin Odersky",usecase:"Web applications, data analysis"},{name:"Golang",year:2009,creator:"Robert Griesemer, Rob Pike, Ken Thompson",usecase:"Cloud computing, microservices"},{name:"Rust",year:2010,creator:"Graydon Hoare",usecase:"Systems programming, safety"},{name:"Kotlin",year:2011,creator:"JetBrains",usecase:"Android app development, server-side"},{name:"Swift",year:2014,creator:"Apple Inc.",usecase:"iOS, macOS app development"}],uP="_container_5ie15_1",dP="_languageList_5ie15_6",fP="_languageCard_5ie15_12",pP="_languageName_5ie15_28",hP="_info_5ie15_34",mP="_heading_5ie15_40",eo={container:uP,languageList:dP,languageCard:fP,languageName:pP,info:hP,heading:mP};function gP({name:e,year:t,creator:n,usecase:r}){return c.jsxs("div",{className:eo.languageCard,children:[c.jsx("h2",{className:eo.languageName,children:e}),c.jsxs("p",{className:eo.info,children:["Year of Start: ",t]}),c.jsxs("p",{className:eo.info,children:["Creator: ",n]}),c.jsxs("p",{className:eo.info,children:["Use Case: ",r]})]})}function vP(){return c.jsx("div",{className:eo.container,children:c.jsx("div",{className:eo.languageList,children:cP.map((e,t)=>c.jsx(gP,{...e},t))})})}const yP="_otpFields_1d1qn_1",xP="_otpinput_1d1qn_15",_g={otpFields:yP,otpinput:xP},wP=()=>{let[e,t]=h.useState(Array(6).fill("")),n=h.useRef([]);const r=(s,l)=>{const u=s.target.value.replace(/\D/g,"").slice(0,1);let d=[...e];d[l]=u,l{if(s.key==="Backspace"){s.preventDefault();let a=[...e];a[l]="",t(a),l>0&&n.current[l-1].focus()}else s.key==="ArrowRight"&&l0&&n.current[l-1].focus()},i=s=>{s.preventDefault();const l=s.clipboardData.getData("text");if(/^[0-9]*$/.test(l)){const a=[...e];for(let u=0;uc.jsx("input",{onKeyDown:a=>o(a,l),onPaste:i,ref:a=>n.current[l]=a,onChange:a=>r(a,l),value:e[l],type:"text"},l))})})},Fo={red:{id:1,duration:5e3,next:"green"},yellow:{id:2,duration:2e3,next:"red"},green:{id:3,duration:3e3,next:"yellow"}},_P="_AppContainer_wtrmq_1",bP="_trafficWrapper_wtrmq_9",SP="_light_wtrmq_21",EP="_countdownTime_wtrmq_28",zo={AppContainer:_P,trafficWrapper:bP,light:SP,countdownTime:EP},CP=()=>{const[e,t]=h.useState("red"),[n,r]=h.useState(Fo[e].duration);return h.useEffect(()=>{let o;return n<=0?(clearInterval(o),t(Fo[e].next),r(Number(Fo[Fo[e].next].duration))):o=setInterval(()=>{r(i=>i-1e3)},1e3),()=>clearInterval(o)},[n,e]),c.jsxs("div",{className:zo.AppContainer,children:[c.jsx("div",{className:zo.trafficWrapper,children:Object.keys(Fo).map(o=>c.jsx("div",{className:zo.light,style:{background:e===o?o:""}},Fo[o].id))}),c.jsx("div",{className:zo.countdownContainer,children:c.jsxs("span",{className:`${zo.countdownTime} ${zo.active}`,children:[Math.floor(n/1e3)," Seconds"]})})]})},Os=e=>e>9?e:`0${e}`,kP="_button_g66ua_1",jP="_quiz_container_footer_g66ua_1",$P="_app_g66ua_22",RP="_quiz_container_g66ua_1",NP="_quiz_container_header_g66ua_42",TP="_question_g66ua_53",PP="_question_choices_g66ua_65",OP="_question_choices_choice_g66ua_73",AP="_selected_g66ua_83",MP="_quiz_result_g66ua_87",Un={button:kP,quiz_container_footer:jP,app:$P,quiz_container:RP,quiz_container_header:NP,question:TP,question_choices:PP,question_choices_choice:OP,selected:AP,quiz_result:MP},DP=e=>{const{totalQuestions:t,result:n}=e;return c.jsx("div",{className:Un.quiz_result,children:c.jsxs("div",{children:[c.jsx("h3",{children:"Result"}),c.jsx("table",{children:c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{children:"Total Questions"}),c.jsx("td",{children:Os(t)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Total Score"}),c.jsx("td",{children:Os(n.score)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Correct Answers"}),c.jsx("td",{children:Os(n.correctAnswers)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Wrong Answers"}),c.jsx("td",{children:n.wrongAnswers})]})]})})]})})},IP={topic:"React",level:"Intermediate",totalQuestions:10,perQuestionScore:5,questions:[{question:"What is the purpose of state in React?",choices:["To store information that may change over time","To declare static values for components","To define global variables","None of the above"],type:"MCQs",correctAnswer:"To store information that may change over time"},{question:"What are hooks in React?",choices:["Functions that let you use state and other React features without writing a class","Functional components","Connections between components","None of the above"],type:"MCQs",correctAnswer:"Functions that let you use state and other React features without writing a class"},{question:"What is the purpose of key prop in React lists?",choices:["To uniquely identify a child component","To style elements within a list","To define the position of a component","None of the above"],type:"MCQs",correctAnswer:"To uniquely identify a child component"},{question:"What is the role of componentDidMount() in React?",choices:["It runs after the component output has been rendered to the DOM","It handles updates before rendering","It initializes state variables","None of the above"],type:"MCQs",correctAnswer:"It runs after the component output has been rendered to the DOM"},{question:"How can you pass data between components in React?",choices:["Using props","Directly modifying state","Using only functional components","None of the above"],type:"MCQs",correctAnswer:"Using props"},{question:"What is the purpose of React.Fragment?",choices:["To create an independent component","To wrap multiple elements without adding an extra node to the DOM","To handle routing in React applications","None of the above"],type:"MCQs",correctAnswer:"To wrap multiple elements without adding an extra node to the DOM"},{question:"What is the significance of shouldComponentUpdate() in React?",choices:["It determines if a component should re-render","It defines the initial state of a component","It helps to update the DOM directly","None of the above"],type:"MCQs",correctAnswer:"It determines if a component should re-render"},{question:"What is the main purpose of Redux in React applications?",choices:["To manage the state of the entire application","To define the structure of components","To handle routing between components","None of the above"],type:"MCQs",correctAnswer:"To manage the state of the entire application"},{question:"How does React handle events?",choices:["Using event handlers like onClick","By modifying the DOM directly","Through asynchronous processes only","None of the above"],type:"MCQs",correctAnswer:"Using event handlers like onClick"},{question:"What are the benefits of using PropTypes in React?",choices:["To enforce the type of props passed to components","To declare global variables","To initialize state variables","None of the above"],type:"MCQs",correctAnswer:"To enforce the type of props passed to components"}]},LP=()=>{const[e,t]=h.useState(0),[n,r]=h.useState(!1),[o,i]=h.useState(!1),[s,l]=h.useState(null),[a,u]=h.useState({score:0,correctAnswers:0,wrongAnswers:0}),{questions:d,topic:f}=IP,{question:p,choices:g,correctAnswer:m}=d[e],y=()=>{l(null),u(v=>n?{...v,score:v.score+5,correctAnswers:v.correctAnswers+1}:{...v,wrongAnswers:v.wrongAnswers+1}),e!==d.length-1?t(v=>v+1):(t(0),i(!0))},w=(v,x)=>{l(x),r(v===m)};return c.jsx("section",{className:Un.quiz_container,children:o?c.jsx(DP,{totalQuestions:d.length,result:a}):c.jsxs("div",{children:[c.jsxs("div",{className:Un.quiz_container_header,children:[c.jsxs("p",{children:["TOPIC: ",f]}),c.jsxs("div",{children:[c.jsx("span",{children:Os(e+1)}),c.jsxs("span",{children:["/",Os(d.length)]})]})]}),c.jsxs("div",{className:Un.question,children:[c.jsx("h2",{children:p}),c.jsx("ul",{className:Un.question_choices,children:g.map((v,x)=>c.jsx("li",{onClick:()=>w(v,x),className:`${Un.question_choices_choice} - ${s===x?Un.selected:""}`,children:v},v))})]}),c.jsx("div",{className:Un.quiz_container_footer,children:c.jsx("button",{onClick:y,disabled:s===null,children:e===d.length-1?"Finish":"Next"})})]})})},FP=()=>c.jsx("main",{className:Un.app,children:c.jsx(LP,{})}),zP="_app_2nnow_1",BP="_chess_2nnow_18",UP="_tile_2nnow_33",HP="_tile_color_2nnow_44",Tl={app:zP,chess:BP,tile:UP,tile_color:HP},WP=e=>{const t=Math.floor(e/8)%2===0,n=e%2===0;return!!(t&&n||!t&&!n)},VP=()=>{const e={R:"♜",N:"♞",B:"♝",Q:"♛",K:"♚",P:"♟",r:"♖",n:"♘",b:"♗",q:"♕",k:"♔",p:"♙"," ":" "},t="RNBQKBNRPPPPPPPP pppppppprnbqkbnr";return c.jsx("section",{className:Tl.chess,children:t.split("").map((n,r)=>c.jsx("div",{className:`${Tl.tile} ${WP(r)?Tl.tile_color:""}`,children:e[n]},r))})},GP=()=>c.jsx("main",{className:Tl.app,children:c.jsx(VP,{})}),KP="_container_1wkcr_1",qP="_calculator__body_1wkcr_7",YP="_calculator__screen_1wkcr_13",QP="_calculator__screen__previous_1wkcr_26",XP="_calculator__buttons_1wkcr_32",JP="_ac_1wkcr_1",ZP="_del_1wkcr_1",e3="_total_1wkcr_1",t3="_calculator__button_1wkcr_32",n3="_calculator__operator_1wkcr_76",r3="_exponent_1wkcr_1",o3="_square_1wkcr_1",me={container:KP,calculator__body:qP,calculator__screen:YP,calculator__screen__previous:QP,calculator__buttons:XP,ac:JP,del:ZP,total:e3,calculator__button:t3,calculator__operator:n3,exponent:r3,square:o3},i3=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(""),[s,l]=h.useState(""),[a,u]=h.useState(!1);let d="",f="";const p=E=>{!o&&a===!0?(t(E),u(!1)):o||e.toString().includes(".")&&E==="."||(d=e+E,t(d)),o&&(n.includes(".")&&E==="."||(d=n+E,r(d)))},g=E=>{i(e?E:"")},m=()=>{let E=e.toString(),b=n.toString();if(o==="^2")E.includes(".")&&(f=E.split(".")[1].length*2);else if(o==="*"&&E.includes(".")&&b.includes(".")){let j=E.split(".")[1].length,T=b.split(".")[1].length;f=j+T}else if(o==="*"&&E.includes(".")&&!b.includes("."))f=E.split(".")[1].length;else if(o==="*"&&!E.includes(".")&&b.includes("."))f=b.split(".")[1].length;else if(E.includes(".")&&b.includes(".")){let j=E.split(".")[1].length,T=b.split(".")[1].length;j>=T?f=j:f=T}else E.includes(".")?f=E.split(".")[1].length:b.includes(".")&&(f=b.split(".")[1].length)},y=E=>{l(E),t(E),r(""),i(""),u(!0)},w=()=>{if(o==="/"){const E=parseFloat(e*100)/parseFloat(n*100);y(E)}else if(o==="-"){let E=(parseFloat(e)-parseFloat(n))*100;m(),E=(E/100).toFixed(f),y(E)}else if(o==="*"){let E=e*n;m(),E=E.toFixed(f),y(E)}else if(o==="+"){let E=parseFloat(e)+parseFloat(n);m(),E=E.toFixed(f),y(E)}else if(o==="^"){const E=Math.pow(e,n);y(E)}else if(o==="^2"){let E=Math.pow(e,2);m(),E=E.toFixed(f),y(E)}else if(o==="√"){const E=Math.sqrt(e);y(E)}},v=()=>{t(""),i(""),r(""),l("")},x=()=>{if(o){const E=n.slice(0,n.length-1);r(E)}else{const E=e.toString(),b=E.slice(0,E.length-1);t(b)}},_=()=>{if(n){const E=n*-1;r(E)}else if(e){const E=e*-1;t(E)}},C=()=>n&&o==="/"||o==="-"||o==="+"||o==="*"||o==="^"?`${e} ${o} ${n}`:`${e||"-"} ${o}`;return c.jsx("div",{class:me.container,children:c.jsxs("div",{className:me.calculator__body,children:[c.jsxs("div",{className:me.calculator__screen,children:[c.jsx("div",{className:me.calculator__screen__previous,children:C()}),c.jsx("div",{className:me.calculator__screen__first,children:s})]}),c.jsxs("div",{className:me.calculator__buttons,children:[c.jsx("button",{onClick:()=>v(),id:"ac",className:me.calculator__operator,children:"Clear"}),c.jsx("button",{onClick:()=>x(),id:"del",className:me.calculator__operator,children:"Del"}),c.jsx("button",{onClick:()=>_(),className:me.calculator__operator,id:"negative",children:"+-"}),c.jsxs("button",{onClick:()=>g("^2"),className:me.calculator__operator,id:"square",children:["x",c.jsx("sup",{children:"2"})]}),c.jsx("button",{onClick:()=>p("1"),className:me.calculator__button,children:"1"}),c.jsx("button",{onClick:()=>p("2"),className:me.calculator__button,children:"2"}),c.jsx("button",{onClick:()=>p("3"),className:me.calculator__button,children:"3"}),c.jsx("button",{onClick:()=>g("+"),className:me.calculator__operator,children:"+"}),c.jsx("button",{onClick:()=>p("4"),className:me.calculator__button,children:"4"}),c.jsx("button",{onClick:()=>p("5"),className:me.calculator__button,children:"5"}),c.jsx("button",{onClick:()=>p("6"),className:me.calculator__button,children:"6"}),c.jsx("button",{onClick:()=>g("/"),className:me.calculator__operator,children:"÷"}),c.jsx("button",{onClick:()=>p("7"),className:me.calculator__button,children:"7"}),c.jsx("button",{onClick:()=>p("8"),className:me.calculator__button,children:"8"}),c.jsx("button",{onClick:()=>p("9"),className:me.calculator__button,children:"9"}),c.jsx("button",{onClick:()=>g("-"),className:me.calculator__operator,children:"–"}),c.jsx("button",{onClick:()=>p("0"),className:me.calculator__button,children:"0"}),c.jsxs("button",{onClick:()=>g("^"),className:me.calculator__operator,id:"exponent",children:["x",c.jsx("sup",{children:"y"})]}),c.jsx("button",{onClick:()=>g("√"),className:me.calculator__operator,id:"radical",children:"√"}),c.jsx("button",{onClick:()=>g("*"),className:me.calculator__operator,children:"*"}),c.jsx("button",{onClick:()=>p("."),className:me.calculator__button,children:"."}),c.jsx("button",{onClick:()=>w(),id:"total",className:me.calculator__operator,children:"="})]})]})})},s3=4,Qu=1e3,a3=200,l3=25,c3="_controls_1s50h_6",u3="_tanks_1s50h_17",d3="_tank_1s50h_17",f3="_range_1s50h_64",kn={controls:c3,"text-center":"_text-center_1s50h_13",tanks:u3,"add-btn":"_add-btn_1s50h_23","empty-btn":"_empty-btn_1s50h_32",tank:d3,"tank-level":"_tank-level_1s50h_51","form-item":"_form-item_1s50h_57",range:f3};function p3({onDown:e,onUp:t,onEmpty:n,tankLevel:r,capacity:o}){return c.jsxs("div",{children:[c.jsxs("div",{className:kn.controls,children:[c.jsx("button",{onMouseDown:e,onMouseUp:t,onTouchStart:e,onTouchEnd:t,className:kn["add-btn"],children:"Add"}),c.jsx("button",{onClick:n,className:kn["empty-btn"],children:"Empty"})]}),c.jsx("div",{className:kn.tank,children:c.jsx("div",{className:kn["tank-level"],style:{height:`${100*r/o}%`}})}),c.jsxs("p",{className:kn["text-center"],children:[r," lts"]})]})}function h3({tank:e,setTanks:t,index:n}){const[r,o]=h.useState(0),i=h.useRef(0),s=h.useRef(0);s.current=e.level;function l(d){d.preventDefault(),t(f=>{const p=[...f];return p[n].isReady=!1,p}),i.current=setInterval(()=>{o(f=>{let p=f+a3;return s.current+p>=Qu&&(p=Qu-s.current),p})},1e3)}function a(){i.current&&clearInterval(i.current),o(0),t(d=>{const f=[...d.map(p=>({...p}))];return f[n].level+=r,f[n].isReady=!0,f})}function u(){t(d=>{const f=[...d.map(p=>({...p}))];return f[n].level=0,f})}return c.jsx(p3,{onDown:l,onUp:a,onEmpty:u,tankLevel:(s.current+r).toFixed(2),capacity:Qu})}function bg(e){return Array.from({length:e},()=>({level:0,isReady:!0}))}function m3(e){const n=e.filter(l=>l.isReady).reduce((l,a)=>l+a.level,0)/e.length,r=e.filter(l=>l.isReady&&l.levell.level-n<1e-4)||r.length===0)return null;let o=0;const i=e.map(l=>{const a={...l};if(l.isReady&&l.level>n){const u=Math.min(l.level-n,l3);a.level=l.level-u,o+=u}return a}),s=o/r.length;return i.forEach(l=>{l.isReady&&l.levelsetTimeout(t,e))}function v3({tanksCount:e,setTanksCount:t}){return c.jsx("section",{className:kn.range,children:c.jsxs("div",{className:kn["form-item"],children:[c.jsx("label",{htmlFor:"waterTanks",children:"Water Tanks: "}),c.jsx("input",{type:"range",min:"4",max:"8",value:e,onChange:n=>t(n.target.value),className:"slider",id:"waterTanks"})]})})}function y3(){const[e,t]=h.useState(s3),[n,r]=h.useState(()=>bg(e));return h.useEffect(()=>{const o=bg(e);r(o)},[e]),h.useEffect(()=>{let o=!1;async function i(){if(await g3(1e3),o)return;const s=m3(n);s&&r(s)}return i(),()=>{o=!0}},[n]),c.jsxs("div",{className:kn["text-center"],children:[c.jsx("p",{children:'Press and Hold "Add" to start filling the tank'}),c.jsx("main",{className:kn.tanks,children:n.map((o,i)=>c.jsx(h3,{tank:o,setTanks:r,index:i},i))}),c.jsx(v3,{tanksCount:e,setTanksCount:t})]})}const x3="_TransferListContainer_e51he_1",w3="_inputWrapper_e51he_29",sa={TransferListContainer:x3,"list-container":"_list-container_e51he_8","buttons-container":"_buttons-container_e51he_15",inputWrapper:w3,"disabled-button":"_disabled-button_e51he_33"},_3=({leftClickHandler:e,rightClickHandler:t,leftClickHandlerAll:n,rightClickHandlerAll:r,disableLeftBtn:o,disableRightBtn:i,disableLeftBtnAll:s,disableRightBtnAll:l})=>c.jsxs("div",{className:sa["buttons-container"],children:[c.jsx("button",{onClick:n,disabled:s,children:">>"}),c.jsx("button",{onClick:e,disabled:o,children:">"}),c.jsx("button",{onClick:t,disabled:i,children:"<"}),c.jsx("button",{onClick:r,disabled:l,children:"<<"})]}),b3=[{value:"USA",id:"usa"},{value:"UAE",id:"uae"},{value:"India",id:"ind"},{value:"Australia",id:"aus"},{value:"Canada",id:"can"}],S3=({id:e,value:t,selected:n,onToggle:r})=>c.jsxs("div",{className:sa.inputWrapper,children:[c.jsx("input",{type:"checkbox",id:e,value:t,checked:n,onChange:()=>r(e)}),c.jsx("label",{htmlFor:e,children:t})]}),Sg=({items:e,onToggle:t})=>c.jsx("div",{className:sa["list-container"],children:c.jsx("div",{className:sa["list-items"],children:e.map(n=>c.jsx(S3,{id:n.id,value:n.value,selected:n.selected,onToggle:t},n.id))})});function E3(){return b3.map(e=>({...e,selected:!1,direction:"left"}))}const C3=()=>{const[e,t]=h.useState(E3),n=e.filter(u=>u.direction==="left"),r=e.filter(u=>u.direction==="right"),o=n.filter(u=>u.selected),i=r.filter(u=>u.selected),s=u=>{const d=e.map(f=>f.id===u?{...f,selected:!f.selected}:f);t(d)},l=(u,d)=>{const f=e.map(p=>p.selected&&p.direction===u?{...p,selected:!1,direction:d}:p);t(f)},a=u=>{const d=e.map(f=>({...f,direction:u}));t(d)};return c.jsxs("div",{className:sa.TransferListContainer,children:[c.jsx(Sg,{items:n,onToggle:s}),c.jsx(_3,{leftClickHandler:()=>l("left","right"),rightClickHandler:()=>l("right","left"),leftClickHandlerAll:()=>a("right"),rightClickHandlerAll:()=>a("left"),disableLeftBtn:o.length===0,disableRightBtn:i.length===0,disableLeftBtnAll:n.length===0,disableRightBtnAll:r.length===0}),c.jsx(Sg,{items:r,onToggle:s})]})},k3="_AppContainer_1tcc6_1",j3="_container_1tcc6_9",$3="_timeline_1tcc6_17",R3="_date_1tcc6_38",N3="_timeline_content_1tcc6_42",ds={AppContainer:k3,container:j3,timeline:$3,date:R3,timeline_content:N3},T3=[{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."}],P3=()=>c.jsx(c.Fragment,{children:c.jsx("div",{className:ds.AppContainer,children:c.jsx("div",{className:ds.container,children:c.jsx("div",{className:ds.timeline,children:c.jsx("ul",{children:T3.map((e,t)=>c.jsx("li",{children:c.jsxs("div",{className:ds.timeline_content,children:[c.jsx("h3",{className:ds.date,children:e.date}),c.jsx("h1",{children:e.title}),c.jsx("p",{children:e.content})]})},t))})})})})}),O3=[["India","New Delhi"],["Indonesia","Jakarta"],["Iran","Tehran"],["Iraq","Baghdad"],["Ireland","Dublin"],["Israel","Jerusalem"],["Italy","Rome"],["Jamaica","Kingston"],["Japan","Tokyo"],["Jordan","Amman"],["Kazakhstan","Nur-Sultan"],["Kenya","Nairobi"],["Kiribati","South Tarawa"],["Kuwait","Kuwait City"],["Kyrgyzstan","Bishkek"],["Laos","Vientiane"],["Latvia","Riga"],["Lebanon","Beirut"],["Lesotho","Maseru"],["Liberia","Monrovia"],["Libya","Tripoli"],["Liechtenstein","Vaduz"],["Lithuania","Vilnius"],["Madagascar","Antananarivo"],["Malawi","Lilongwe"],["Malaysia","Kuala Lumpur"],["Maldives","Malé"],["Mali","Bamako"],["Malta","Valletta"],["Mauritania","Nouakchott"],["Mauritius","Port Louis"],["Mexico","Mexico City"]],A3=[["Basil","Thyme","Rosemary"],["Latte","Cappuccino","Espresso"],["Octopus","Dolphin","Seahorse"],["Beach","Mountain","Forest"],["Paintbrush","Canvas","Palette"],["Rock","Pop","Jazz"],["Running","Yoga","Dancing"],["Volcano","Canyon","Ocean"],["Phone","Email","Letter"],["Flood","Earthquake","Hurricane"],["Sight","Smell","Taste"],["Past","Present","Future"],["Literature","History","Biology"],["Spring","Summer","Autumn"],["Basketball","Jersey","Whistle"],["Textbook","Notebook","Pencil"],["Spoon","Fork","Knife"],["Shirt","Pants","Shoes"],["Lion","Elephant","Giraffe"],["Sunflower","Rose","Daisy"],["Cucumber","Tomato","Carrot"],["Tea","Coffee","Juice"],["Milk","Yogurt","Cheese"],["Pikachu","Charmander","Squirtle"],["Batman","Superman","Spiderman"],["Elsa","Anna","Olaf"]],M3=[["Cinnamon","Nutmeg","Ginger","Allspice"],["Guitar","Drums","Piano","Violin"],["Mercury","Venus","Earth","Mars"],["Monday","Tuesday","Friday","Sunday"],["Black","White","Grey","Navy Blue"],["Sun","Rain","Wind","Snow"],["Hand","Foot","Ear","Eye"],["Apple","Orange","Banana","Grape"],["Math","English","Science","History"],["Car","Bus","Train","Airplane"],["Phone","Laptop","Headset","Charger"],["Pen","Pencil","Eraser","Notebook"],["Scarf","Hat","Gloves","Boots"],["Ruler","Scissors","Calculator","Glue"]],D3=new Map([[2,O3],[3,A3],[4,M3]]);function I3(e,t){const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{o.push(new Set(s))});const i=L3(r.flat());return[o,i]}function z3(e,t){const n=e.find(r=>r.has(t[0]));return n?t.every(r=>n.has(r)):!1}const B3="_grid_18i4i_1",U3="_itemBtn_18i4i_9",H3="_reset_18i4i_20",W3="_center_18i4i_26",V3="_highlight_18i4i_30",G3="_success_18i4i_34",K3="_failure_18i4i_38",qn={grid:B3,itemBtn:U3,reset:H3,center:W3,highlight:V3,success:G3,failure:K3},q3=h.forwardRef(function({items:t,cols:n,onSelection:r,status:o},i){const[s,l]=h.useState([]),a=d=>{if(o)return;let f=[];s.includes(d)?f=s.filter(p=>p!==d):f=[...s,d],l(f),r(f)};function u(){l([])}return h.useImperativeHandle(i,()=>({clearSelection:u})),c.jsx("section",{"data-status":o,className:qn.grid,style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:t.map(d=>{const f=s.includes(d),p=`${qn.itemBtn} ${f?qn.highlight:""} ${f&&o?qn[o]:""}`;return c.jsx("button",{className:p,onClick:()=>a(d),children:d},d)})})});var Pl=(e=>(e.Success="success",e.Failure="failure",e))(Pl||{});function Y3({itemGroups:e,allItems:t,columns:n=2,groupSize:r}){const[o,i]=h.useState([]),[s,l]=h.useState(0),[a,u]=h.useState(null),d=h.useRef(null);h.useEffect(()=>{var g;i(t),l(0),u(null),(g=d.current)==null||g.clearSelection()},[t]);function f(g){if(g.length===r){l(s+1);const m=z3(e,g)?Pl.Success:Pl.Failure;u(m);const y=setTimeout(()=>p(g,m),1e3);return()=>clearTimeout(y)}}function p(g,m){var y;m===Pl.Success&&i(o.filter(w=>!g.includes(w))),u(null),(y=d.current)==null||y.clearSelection()}return c.jsxs(c.Fragment,{children:[o.length?c.jsx(q3,{items:o,cols:n,onSelection:f,status:a,ref:d}):c.jsx("p",{className:qn.center,children:"Well done. Reset to play again!"}),c.jsxs("p",{className:qn.center,children:["Attempts: ",c.jsx("strong",{children:s})]})]})}function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Q3(n,t))}function Li(...e){return h.useCallback(yx(...e),e)}const xx=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(X3);if(i){const s=i.props.children,l=o.map(a=>a===i?h.Children.count(s)>1?h.Children.only(null):h.isValidElement(s)?s.props.children:null:a);return h.createElement(gf,Ge({},r,{ref:t}),h.isValidElement(s)?h.cloneElement(s,void 0,l):null)}return h.createElement(gf,Ge({},r,{ref:t}),n)});xx.displayName="Slot";const gf=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...J3(r,n.props),ref:t?yx(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});gf.displayName="SlotClone";const wx=({children:e})=>h.createElement(h.Fragment,null,e);function X3(e){return h.isValidElement(e)&&e.type===wx}function J3(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Z3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],So=Z3.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...s}=r,l=i?xx:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Ge({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function eO(e,t){e&&bo.flushSync(()=>e.dispatchEvent(t))}const tO=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ap.createPortal(h.createElement(So.div,Ge({},o,{ref:t})),r):null}),nO=tO;var Eg=Object.prototype.hasOwnProperty;function aa(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&aa(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Eg.call(e,n)&&++r&&!Eg.call(t,n)||!(n in t)||!aa(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Sa(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[l]=arguments[l+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Pn=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Pn.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new eu(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};Pn.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new rO(n,t.simple,t.async)),this};Pn.prototype._clone=function(){return new Pn(this.chain.slice(),this.nextRuleModifiers.slice())};Pn.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Pn.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new qp(r,t,o))}}),n};Pn.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new qp(n,t,r)}})};Pn.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){Sx(t,n.chain.slice(),r,o)})};function Sx(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){Sx(e,t,n,r)},function(i){r(new qp(o,e,i))})}else n(e)}var Cg=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function oO(e,t){return t===void 0&&(t=!1),{simple:function(n){return Cg(n,t)||e.check(n)===void 0},async:function(n){return Cg(n,t)||e.testAsync(n)}}}function $t(){return typeof Proxy<"u"?Ex(new Pn):vf(new Pn)}var la={};$t.extend=function(e){Object.assign(la,e)};$t.clearCustomRules=function(){la={}};function Ex(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=Ex(e._clone());if(r in gc)return o._applyModifier(gc[r],r);if(r in la)return o._applyRule(la[r],r);if(r in yf)return o._applyRule(yf[r],r)}})}function vf(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var l=[],a=arguments.length;a--;)l[a]=arguments[a];var u=vf(i._clone()),d=u._applyRule(o[s],s).apply(void 0,l);return d}}),i},n=t(yf,e),r=t(la,n);return Object.keys(gc).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=vf(r._clone());return i._applyModifier(gc[o],o)}})}),r}var gc={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return ol(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(ol(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&ol(t).every(e)}},async:function(e){return function(t){return Promise.all(ol(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return kg(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return kg(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function kg(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function ol(e){return typeof e=="string"?e.split(""):e}var yf={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||iO;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Bo("string")},boolean:function(){return Bo("boolean")},undefined:function(){return Bo("undefined")},null:function(){return Bo("null")},array:function(){return Bo("array")},object:function(){return Bo("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return sO(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:oO};function Bo(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function iO(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function sO(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var ge="colors",vt="sizes",K="space",aO={gap:K,gridGap:K,columnGap:K,gridColumnGap:K,rowGap:K,gridRowGap:K,inset:K,insetBlock:K,insetBlockEnd:K,insetBlockStart:K,insetInline:K,insetInlineEnd:K,insetInlineStart:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockEnd:K,marginBlockStart:K,marginInline:K,marginInlineEnd:K,marginInlineStart:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockEnd:K,paddingBlockStart:K,paddingInline:K,paddingInlineEnd:K,paddingInlineStart:K,top:K,right:K,bottom:K,left:K,scrollMargin:K,scrollMarginTop:K,scrollMarginRight:K,scrollMarginBottom:K,scrollMarginLeft:K,scrollMarginX:K,scrollMarginY:K,scrollMarginBlock:K,scrollMarginBlockEnd:K,scrollMarginBlockStart:K,scrollMarginInline:K,scrollMarginInlineEnd:K,scrollMarginInlineStart:K,scrollPadding:K,scrollPaddingTop:K,scrollPaddingRight:K,scrollPaddingBottom:K,scrollPaddingLeft:K,scrollPaddingX:K,scrollPaddingY:K,scrollPaddingBlock:K,scrollPaddingBlockEnd:K,scrollPaddingBlockStart:K,scrollPaddingInline:K,scrollPaddingInlineEnd:K,scrollPaddingInlineStart:K,fontSize:"fontSizes",background:ge,backgroundColor:ge,backgroundImage:ge,borderImage:ge,border:ge,borderBlock:ge,borderBlockEnd:ge,borderBlockStart:ge,borderBottom:ge,borderBottomColor:ge,borderColor:ge,borderInline:ge,borderInlineEnd:ge,borderInlineStart:ge,borderLeft:ge,borderLeftColor:ge,borderRight:ge,borderRightColor:ge,borderTop:ge,borderTopColor:ge,caretColor:ge,color:ge,columnRuleColor:ge,fill:ge,outline:ge,outlineColor:ge,stroke:ge,textDecorationColor:ge,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:vt,minBlockSize:vt,maxBlockSize:vt,inlineSize:vt,minInlineSize:vt,maxInlineSize:vt,width:vt,minWidth:vt,maxWidth:vt,height:vt,minHeight:vt,maxHeight:vt,flexBasis:vt,gridTemplateColumns:vt,gridTemplateRows:vt,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},lO=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Fi=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,lO))(t);return o in e?e[o]:e[o]=n(t,...r)}},co=Symbol.for("sxs.internal"),Yp=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),jg=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:cO}=Object.prototype,xf=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),uO=/\s+(?![^()]*\))/,Uo=e=>t=>e(...typeof t=="string"?String(t).split(uO):[t]),$g={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Uo((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Uo((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Uo((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Uo((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Uo((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Uo((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Xu=/([\d.]+)([^]*)/,dO=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,fO=(e,t)=>e in pO&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${xf(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${xf(e)}:${r}fit-content`)+i):String(t),pO={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},nr=e=>e?e+"-":"",Cx=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,l)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?nr(t)+(l.includes("$")?"":nr(n))+l.replace(/\$/g,"-"):l)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),hO=/\s*,\s*(?![^()]*\))/,mO=Object.prototype.toString,ci=(e,t,n,r,o)=>{let i,s,l;const a=(u,d,f)=>{let p,g;const m=y=>{for(p in y){const x=p.charCodeAt(0)===64,_=x&&Array.isArray(y[p])?y[p]:[y[p]];for(g of _){const C=/[A-Z]/.test(v=p)?v:v.replace(/-[^]/g,b=>b[1].toUpperCase()),E=typeof g=="object"&&g&&g.toString===mO&&(!r.utils[C]||!d.length);if(C in r.utils&&!E){const b=r.utils[C];if(b!==s){s=b,m(b(g)),s=null;continue}}else if(C in $g){const b=$g[C];if(b!==l){l=b,m(b(g)),l=null;continue}}if(x&&(w=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(b,k,j,P,T,M)=>{const I=Xu.test(k),H=.0625*(I?-1:1),[B,Y]=I?[P,k]:[k,P];return"("+(j[0]==="="?"":j[0]===">"===I?"max-":"min-")+B+":"+(j[0]!=="="&&j.length===1?Y.replace(Xu,(q,Q,L)=>Number(Q)+H*(j===">"?1:-1)+L):Y)+(T?") and ("+(T[0]===">"?"min-":"max-")+B+":"+(T.length===1?M.replace(Xu,(q,Q,L)=>Number(Q)+H*(T===">"?-1:1)+L):M):"")+")"})),E){const b=x?f.concat(p):[...f],k=x?[...d]:dO(d,p.split(hO));i!==void 0&&o(Rg(...i)),i=void 0,a(g,k,b)}else i===void 0&&(i=[[],d,f]),p=x||p.charCodeAt(0)!==36?p:`--${nr(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,g=E?g:typeof g=="number"?g&&C in gO?String(g)+"px":String(g):Cx(fO(C,g??""),r.prefix,r.themeMap[C]),i[0].push(`${x?`${p} `:`${xf(p)}:`}${g}`)}}var w,v};m(u),i!==void 0&&o(Rg(...i)),i=void 0};a(e,t,n)},Rg=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,gO={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Ng=e=>String.fromCharCode(e+(e>25?39:97)),uo=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Ng(n%52)+r;return Ng(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_s=["themed","global","styled","onevar","resonevar","allvar","inline"],vO=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},yO=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:l}=i;let a="";if(l.startsWith("--sxs"))return"";if(o[s-1]&&(a=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===i)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${l}`;return i.cssRules.length?`${a}${l}`:""}return l}).join("")},r=()=>{if(t){const{rules:l,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in l)delete l[u]}const o=Object(e).styleSheets||[];for(const l of o)if(vO(l)){for(let a=0,u=l.cssRules;u[a];++a){const d=Object(u[a]);if(d.type!==1)continue;const f=Object(u[a+1]);if(f.type!==4)continue;++a;const{cssText:p}=d;if(!p.startsWith("--sxs"))continue;const g=p.slice(14,-3).trim().split(/\s+/),m=_s[g[0]];m&&(t||(t={sheet:l,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:a,cache:new Set(g)})}if(t)break}if(!t){const l=(a,u)=>({type:u,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,l(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let l=_s.length-1;l>=0;--l){const a=_s[l];if(!s[a]){const u=_s[l+1],d=s[u]?s[u].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${l}}`,d),s[a]={group:i.cssRules[d+1],index:d,cache:new Set([l])}}xO(s[a])}};return r(),t},xO=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},fs=Symbol(),wO=Fi(),Tg=(e,t)=>wO(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[co]){r.type==null&&(r.type=o[co].type);for(const i of o[co].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(_O(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),bO(e,r,t)}),_O=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${nr(o.prefix)}c-${uo(r)}`,s=[],l=[],a=Object.create(null),u=[];for(const p in n)a[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){d=a,f=p,cO.call(d,f)||(a[p]="undefined");const g=e[p];for(const m in g){const y={[p]:String(m)};String(m)==="undefined"&&u.push(p);const w=g[m],v=[y,w,!jg(w)];s.push(v)}}var d,f;if(typeof t=="object"&&t)for(const p of t){let{css:g,...m}=p;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const y=[m,g,!jg(g)];l.push(y)}return[i,r,s,l,a,u]},bO=(e,t,n)=>{const[r,o,i,s]=SO(t.composers),l=typeof t.type=="function"||t.type.$$typeof?(f=>{function p(){for(let g=0;gp.rules[g]={apply:m=>p[fs].push([g,m])}),p})(n):null,a=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||EO;const{css:p,...g}=f,m={};for(const v in i)if(delete g[v],v in f){let x=f[v];typeof x=="object"&&x?m[v]={"@initial":i[v],...x}:(x=String(x),m[v]=x!=="undefined"||s.has(v)?x:i[v])}else m[v]=i[v];const y=new Set([...o]);for(const[v,x,_,C]of t.composers){n.rules.styled.cache.has(v)||(n.rules.styled.cache.add(v),ci(x,[`.${v}`],[],e,k=>{a.styled.apply(k)}));const E=Pg(_,m,e.media),b=Pg(C,m,e.media,!0);for(const k of E)if(k!==void 0)for(const[j,P,T]of k){const M=`${v}-${uo(P)}-${j}`;y.add(M);const I=(T?n.rules.resonevar:n.rules.onevar).cache,H=T?a.resonevar:a.onevar;I.has(M)||(I.add(M),ci(P,[`.${M}`],[],e,B=>{H.apply(B)}))}for(const k of b)if(k!==void 0)for(const[j,P]of k){const T=`${v}-${uo(P)}-${j}`;y.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),ci(P,[`.${T}`],[],e,M=>{a.allvar.apply(M)}))}}if(typeof p=="object"&&p){const v=`${r}-i${uo(p)}-css`;y.add(v),n.rules.inline.cache.has(v)||(n.rules.inline.cache.add(v),ci(p,[`.${v}`],[],e,x=>{a.inline.apply(x)}))}for(const v of String(f.className||"").trim().split(/\s+/))v&&y.add(v);const w=g.className=[...y].join(" ");return{type:t.type,className:w,selector:u,props:g,toString:()=>w,deferredInjector:l}};return Yp(d,{className:r,selector:u,[co]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},SO=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,l]of e){t===""&&(t=i),n.push(i),o.push(...l);for(const a in s){const u=s[a];(r[a]===void 0||u!=="undefined"||l.includes(u))&&(r[a]=u)}}return[t,n,r,new Set(o)]},Pg=(e,t,n,r)=>{const o=[];e:for(let[i,s,l]of e){if(l)continue;let a,u=0,d=!1;for(a in i){const f=i[a];let p=t[a];if(p!==f){if(typeof p!="object"||!p)continue e;{let g,m,y=0;for(const w in p){if(f===String(p[w])){if(w!=="@initial"){const v=w.slice(1);(m=m||[]).push(v in n?n[v]:w.replace(/^@media ?/,"")),d=!0}u+=y,g=!0}++y}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[u]=o[u]||[]).push([r?"cv":`${a}-${i[a]}`,s,d])}return o},EO={},CO=Fi(),kO=(e,t)=>CO(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=uo(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let l of[].concat(o["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,t.sheet.insertRule(`@import ${l};`,s++);delete o["@import"]}ci(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Yp(r,{toString:r})}),jO=Fi(),$O=(e,t)=>jO(e,()=>n=>{const r=`${nr(e.prefix)}k-${uo(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];ci(n,[],[],e,l=>i.push(l));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return Yp(o,{get name(){return o()},toString:o})}),RO=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+nr(this.prefix)+nr(this.scale)+this.token}toString(){return this.computedValue}},NO=Fi(),TO=(e,t)=>NO(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${nr(e.prefix)}t-${uo(r)}`}`,i={},s=[];for(const a in r){i[a]={};for(const u in r[a]){const d=`--${nr(e.prefix)}${a}-${u}`,f=Cx(String(r[a][u]),e.prefix,a);i[a][u]=new RO(u,f,a,e.prefix),s.push(`${d}:${f}`)}}const l=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const a=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(a)}return n};return{...i,get className(){return l()},selector:o,toString:l}}),PO=Fi(),OO=Fi(),AO=e=>{const t=(n=>{let r=!1;const o=PO(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",l=typeof i.media=="object"&&i.media||{},a=typeof i.root=="object"?i.root||null:globalThis.document||null,u=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:l,theme:u,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...aO},utils:typeof i.utils=="object"&&i.utils||{}},f=yO(a),p={css:Tg(d,f),globalCss:kO(d,f),keyframes:$O(d,f),createTheme:TO(d,f),reset(){f.reset(),p.theme.toString()},theme:{},sheet:f,config:d,prefix:s,getCssText:f.toString,toString:f.toString};return String(p.theme=p.createTheme(u)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>OO(n,()=>{const o=Tg(n,r);return(...i)=>{const s=o(...i),l=s[co].type,a=S.forwardRef((u,d)=>{const f=u&&u.as||l,{props:p,deferredInjector:g}=s(u);return delete p.as,p.ref=d,g?S.createElement(S.Fragment,null,S.createElement(f,p),S.createElement(g,null)):S.createElement(f,p)});return a.className=s.className,a.displayName=`Styled.${l.displayName||l.name||l}`,a.selector=s.selector,a.toString=()=>s.selector,a[co]=s[co],a}}))(t),t};function MO(e,t,n){return Math.max(t,Math.min(e,n))}const pt={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Og(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Ag(e,t,n,r=.15){return r===0?MO(e,t,n):en?+Og(e-n,n-t,r)+n:e}function DO(e,[t,n],[r,o]){const[[i,s],[l,a]]=e;return[Ag(t,i,s,r),Ag(n,l,a,o)]}function IO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LO(e){var t=IO(e,"string");return typeof t=="symbol"?t:String(t)}function Ct(e,t,n){return t=LO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function GO(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function $x(e){return tu(e)?GO(e)[0]:e}function KO(e){return VO(e).map(t=>t.identifier)}function Ju(e){const t=$x(e);return tu(e)?t.identifier:t.pointerId}function Ig(e){const t=$x(e);return[t.clientX,t.clientY]}function qO(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function vc(e,...t){return typeof e=="function"?e(...t):e}function YO(){}function QO(...e){return e.length===0?YO:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Lg(e,t){return Object.assign({},t,e||{})}const XO=32;class JO{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?vc(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,qO(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const b=n._delta.map(Math.abs);pt.addTo(n._distance,b)}this.axisIntent&&this.axisIntent(t);const[s,l]=n._movement,[a,u]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=a&&f[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=a&&Math.sign(s)*a),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[b,k]=f;p[0]=d[0]!==!1?b-d[0]:0,p[1]=d[1]!==!1?k-d[1]:0}else p[0]=d[0]!==!1?s-d[0]:0,p[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=vc(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[y,w]=n.offset,[[v,x],[_,C]]=n._bounds;n.overflow=[yx?1:0,w<_?-1:w>C?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=DO(n._bounds,n.offset,E),n.delta=pt.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>XO)){n.delta=pt.sub(n.offset,g);const b=n.delta.map(Math.abs);pt.addTo(n.distance,b),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[b[0]/i,b[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(Pe(Pe(Pe({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function ZO([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class eA extends JO{constructor(...t){super(...t),Ct(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=pt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=pt.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[jx(t)]:r.axisThreshold;n.axis=ZO(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const tA=e=>e,Fg=.15,Rx={enabled(e=!0){return e},eventOptions(e,t,n){return Pe(Pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Fg,Fg];case!1:return[0,0];default:return pt.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return pt.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||tA},threshold(e){return pt.toVector(e,0)}},nA=0,Ea=Pe(Pe({},Rx),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=nA){return e},bounds(e={}){if(typeof e=="function")return i=>Ea.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),zg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class rA extends eA{constructor(...t){super(...t),Ct(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Ea.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Ju(t),r._pointerActive=!0,this.computeValues(Ig(t)),this.computeInitial(),n.preventScrollAxis&&jx(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Ju(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=Ig(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=pt.sub(i,n._values),this.computeValues(i)),pt.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Ju(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[l,a]=n._delta,[u,d]=n._movement,[f,p]=r.swipe.velocity,[g,m]=r.swipe.distance,y=r.swipe.duration;if(n.elapsedTimef&&Math.abs(u)>g&&(n.swipe[0]=Math.sign(l)),v>p&&Math.abs(d)>m&&(n.swipe[1]=Math.sign(a))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,oA(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=zg[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,pt.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in zg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function oA(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Ca=typeof window<"u"&&window.document&&window.document.createElement;function Nx(){return Ca&&"ontouchstart"in window}function iA(){return Nx()||Ca&&window.navigator.maxTouchPoints>1}function sA(){return Ca&&"onpointerdown"in window}function aA(){return Ca&&"exitPointerLock"in window.document}function lA(){try{return"constructor"in GestureEvent}catch{return!1}}const Yt={isBrowser:Ca,gesture:lA(),touch:Nx(),touchscreen:iA(),pointer:sA(),pointerLock:aA()},cA=250,uA=180,dA=.5,fA=50,pA=250,hA=10,Bg={mouse:0,touch:0,pen:8},mA=Pe(Pe({},Ea),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Yt.pointerLock,Yt.touch&&n?"touch":this.pointerLock?"mouse":Yt.pointer&&!o?"pointer":Yt.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?cA:void 0,!(!Yt.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=pt.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=dA,distance:t=fA,duration:n=pA}={}){return{velocity:this.transform(pt.toVector(e)),distance:this.transform(pt.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return uA;case!1:return 0;default:return e}},axisThreshold(e){return e?Pe(Pe({},Bg),e):Bg},keyboardDisplacement(e=hA){return e}});Pe(Pe({},Rx),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Yt.touch&&Yt.gesture)return"gesture";if(Yt.touch&&r)return"touch";if(Yt.touchscreen){if(Yt.pointer)return"pointer";if(Yt.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const l=Lg(vc(n,s),{min:-1/0,max:1/0});return[l.min,l.max]},i=s=>{const l=Lg(vc(r,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",pt.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Pe(Pe({},Ea),{},{mouseOnly:(e=!0)=>e});Pe(Pe({},Ea),{},{mouseOnly:(e=!0)=>e});const Tx=new Map,wf=new Map;function gA(e){Tx.set(e.key,e.engine),wf.set(e.key,e.resolver)}const vA={key:"drag",engine:rA,resolver:mA};function yA(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function xA(e,t){if(e==null)return{};var n=yA(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const wA={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Yt.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},_A=["target","eventOptions","window","enabled","transform"];function Ol(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Ol(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function bA(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:l,transform:a}=r,u=xA(r,_A);if(n.shared=Ol({target:o,eventOptions:i,window:s,enabled:l,transform:a},wA),t){const d=wf.get(t);n[t]=Ol(Pe({shared:n.shared},u),d)}else for(const d in u){const f=wf.get(d);f&&(n[d]=Ol(Pe({shared:n.shared},u[d]),f))}return n}class Px{constructor(t,n){Ct(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,l=WO(n,r),a=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Pe(Pe({},a),i);t.addEventListener(l,o,u);const d=()=>{t.removeEventListener(l,o,u),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class SA{constructor(){Ct(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class EA{constructor(t){Ct(this,"gestures",new Set),Ct(this,"_targetEventStore",new Px(this)),Ct(this,"gestureEventStores",{}),Ct(this,"gestureTimeoutStores",{}),Ct(this,"handlers",{}),Ct(this,"config",{}),Ct(this,"pointerIds",new Set),Ct(this,"touchIds",new Set),Ct(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),CA(this,t)}setEventIds(t){if(tu(t))return this.touchIds=new Set(KO(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=bA(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const l=this.config[s],a=Ug(r,l.eventOptions,!!o);if(l.enabled){const u=Tx.get(s);new u(this,t,s).bind(a)}}const i=Ug(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",l=>this.nativeHandlers[s](Pe(Pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const i in r)r[i]=QO(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:l,passive:a}=HO(i);this._targetEventStore.add(o,s,"",r[i],{capture:l,passive:a})}}}}function Ho(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Px(e,t),e.gestureTimeoutStores[t]=new SA}function CA(e,t){t.drag&&Ho(e,"drag"),t.wheel&&Ho(e,"wheel"),t.scroll&&Ho(e,"scroll"),t.move&&Ho(e,"move"),t.pinch&&Ho(e,"pinch"),t.hover&&Ho(e,"hover")}const Ug=(e,t,n)=>(r,o,i,s={},l=!1)=>{var a,u;const d=(a=s.capture)!==null&&a!==void 0?a:t.capture,f=(u=s.passive)!==null&&u!==void 0?u:t.passive;let p=l?r:BO(r,o,d);n&&f&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function kA(e,t={},n,r){const o=S.useMemo(()=>new EA(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),S.useEffect(o.effect.bind(o)),S.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function jA(e,t){return gA(vA),kA({drag:e},t||{},"drag")}function Wn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ox(e,t=[]){let n=[];function r(i,s){const l=h.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:p,children:g,...m}=f,y=(p==null?void 0:p[e][a])||l,w=h.useMemo(()=>m,Object.values(m));return h.createElement(y.Provider,{value:w},g)}function d(f,p){const g=(p==null?void 0:p[e][a])||l,m=h.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,$A(o,...t)]}function $A(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function zi(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function RA(e,t=globalThis==null?void 0:globalThis.document){const n=zi(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const _f="dismissableLayer.update",NA="dismissableLayer.pointerDownOutside",TA="dismissableLayer.focusOutside";let Hg;const PA=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),OA=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:a,...u}=e,d=h.useContext(PA),[f,p]=h.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=h.useState({}),y=Li(t,j=>p(j)),w=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(v),_=f?w.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,E=_>=x,b=AA(j=>{const P=j.target,T=[...d.branches].some(M=>M.contains(P));!E||T||(i==null||i(j),l==null||l(j),j.defaultPrevented||a==null||a())},g),k=MA(j=>{const P=j.target;[...d.branches].some(M=>M.contains(P))||(s==null||s(j),l==null||l(j),j.defaultPrevented||a==null||a())},g);return RA(j=>{_===d.layers.size-1&&(o==null||o(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},g),h.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Hg=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Wg(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Hg)}},[f,g,r,d]),h.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Wg())},[f,d]),h.useEffect(()=>{const j=()=>m({});return document.addEventListener(_f,j),()=>document.removeEventListener(_f,j)},[]),h.createElement(So.div,Ge({},u,{ref:y,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Wn(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Wn(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Wn(e.onPointerDownCapture,b.onPointerDownCapture)}))});function AA(e,t=globalThis==null?void 0:globalThis.document){const n=zi(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let d=function(){Ax(NA,n,u,{discrete:!0})};var a=d;const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function MA(e,t=globalThis==null?void 0:globalThis.document){const n=zi(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ax(TA,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wg(){const e=new CustomEvent(_f);document.dispatchEvent(e)}function Ax(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?eO(o,i):o.dispatchEvent(i)}const Ni=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},DA=i0["useId".toString()]||(()=>{});let IA=0;function LA(e){const[t,n]=h.useState(DA());return Ni(()=>{e||n(r=>r??String(IA++))},[e]),e||(t?`radix-${t}`:"")}const FA=["top","right","bottom","left"],zr=Math.min,Dt=Math.max,yc=Math.round,il=Math.floor,Br=e=>({x:e,y:e}),zA={left:"right",right:"left",bottom:"top",top:"bottom"},BA={start:"end",end:"start"};function bf(e,t,n){return Dt(e,zr(t,n))}function rr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Bi(e){return e.split("-")[1]}function Qp(e){return e==="x"?"y":"x"}function Xp(e){return e==="y"?"height":"width"}function Ui(e){return["top","bottom"].includes(or(e))?"y":"x"}function Jp(e){return Qp(Ui(e))}function UA(e,t,n){n===void 0&&(n=!1);const r=Bi(e),o=Jp(e),i=Xp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=xc(s)),[s,xc(s)]}function HA(e){const t=xc(e);return[Sf(e),t,Sf(t)]}function Sf(e){return e.replace(/start|end/g,t=>BA[t])}function WA(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function VA(e,t,n,r){const o=Bi(e);let i=WA(or(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Sf)))),i}function xc(e){return e.replace(/left|right|bottom|top/g,t=>zA[t])}function GA(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?GA(e):{top:e,right:e,bottom:e,left:e}}function wc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Vg(e,t,n){let{reference:r,floating:o}=e;const i=Ui(t),s=Jp(t),l=Xp(s),a=or(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let g;switch(a){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Bi(t)){case"start":g[s]-=p*(n&&u?-1:1);break;case"end":g[s]+=p*(n&&u?-1:1);break}return g}const KA=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Vg(u,r,a),p=r,g={},m=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=rr(e,t)||{};if(u==null)return{};const f=Mx(d),p={x:n,y:r},g=Jp(o),m=Xp(g),y=await s.getDimensions(u),w=g==="y",v=w?"top":"left",x=w?"bottom":"right",_=w?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[g]-p[g]-i.floating[m],E=p[g]-i.reference[g],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=b?b[_]:0;(!k||!await(s.isElement==null?void 0:s.isElement(b)))&&(k=l.floating[_]||i.floating[m]);const j=C/2-E/2,P=k/2-y[m]/2-1,T=zr(f[v],P),M=zr(f[x],P),I=T,H=k-y[m]-M,B=k/2-y[m]/2+j,Y=bf(I,B,H),q=!a.arrow&&Bi(o)!=null&&B!=Y&&i.reference[m]/2-(BI<=0)){var P,T;const I=(((P=i.flip)==null?void 0:P.index)||0)+1,H=E[I];if(H)return{data:{index:I,overflows:j},reset:{placement:H}};let B=(T=j.filter(Y=>Y.overflows[0]<=0).sort((Y,q)=>Y.overflows[1]-q.overflows[1])[0])==null?void 0:T.placement;if(!B)switch(g){case"bestFit":{var M;const Y=(M=j.map(q=>[q.placement,q.overflows.filter(Q=>Q>0).reduce((Q,L)=>Q+L,0)]).sort((q,Q)=>q[1]-Q[1])[0])==null?void 0:M[0];Y&&(B=Y);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Kg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qg(e){return FA.some(t=>e[t]>=0)}const YA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rr(e,t);switch(r){case"referenceHidden":{const i=await ca(t,{...o,elementContext:"reference"}),s=Kg(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qg(s)}}}case"escaped":{const i=await ca(t,{...o,altBoundary:!0}),s=Kg(i,n.floating);return{data:{escapedOffsets:s,escaped:qg(s)}}}default:return{}}}}};async function QA(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=or(n),l=Bi(n),a=Ui(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&a?-1:1,f=rr(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),a?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const XA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await QA(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},JA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:v,y:x}=w;return{x:v,y:x}}},...a}=rr(e,t),u={x:n,y:r},d=await ca(t,a),f=Ui(or(o)),p=Qp(f);let g=u[p],m=u[f];if(i){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",x=g+d[w],_=g-d[v];g=bf(x,g,_)}if(s){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=m+d[w],_=m-d[v];m=bf(x,m,_)}const y=l.fn({...t,[p]:g,[f]:m});return{...y,data:{x:y.x-n,y:y.y-r}}}}},ZA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=rr(e,t),d={x:n,y:r},f=Ui(o),p=Qp(f);let g=d[p],m=d[f];const y=rr(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const _=p==="y"?"height":"width",C=i.reference[p]-i.floating[_]+w.mainAxis,E=i.reference[p]+i.reference[_]-w.mainAxis;gE&&(g=E)}if(u){var v,x;const _=p==="y"?"width":"height",C=["top","left"].includes(or(o)),E=i.reference[f]-i.floating[_]+(C&&((v=s.offset)==null?void 0:v[f])||0)+(C?0:w.crossAxis),b=i.reference[f]+i.reference[_]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?w.crossAxis:0);mb&&(m=b)}return{[p]:g,[f]:m}}}},eM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...l}=rr(e,t),a=await ca(t,l),u=or(n),d=Bi(n),f=Ui(n)==="y",{width:p,height:g}=r.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m=d==="end"?"top":"bottom");const w=g-a[m],v=p-a[y],x=!t.middlewareData.shift;let _=w,C=v;if(f){const b=p-a.left-a.right;C=d||x?zr(v,b):b}else{const b=g-a.top-a.bottom;_=d||x?zr(w,b):b}if(x&&!d){const b=Dt(a.left,0),k=Dt(a.right,0),j=Dt(a.top,0),P=Dt(a.bottom,0);f?C=p-2*(b!==0||k!==0?b+k:Dt(a.left,a.right)):_=g-2*(j!==0||P!==0?j+P:Dt(a.top,a.bottom))}await s({...t,availableWidth:C,availableHeight:_});const E=await o.getDimensions(i.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ur(e){return Dx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(Dx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dx(e){return e instanceof Node||e instanceof Ft(e).Node}function ir(e){return e instanceof Element||e instanceof Ft(e).Element}function On(e){return e instanceof HTMLElement||e instanceof Ft(e).HTMLElement}function Yg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ft(e).ShadowRoot}function ka(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function tM(e){return["table","td","th"].includes(Ur(e))}function Zp(e){const t=eh(),n=nn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function nM(e){let t=Ti(e);for(;On(t)&&!nu(t);){if(Zp(t))return t;t=Ti(t)}return null}function eh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nu(e){return["html","body","#document"].includes(Ur(e))}function nn(e){return Ft(e).getComputedStyle(e)}function ru(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ti(e){if(Ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yg(e)&&e.host||ar(e);return Yg(t)?t.host:t}function Ix(e){const t=Ti(e);return nu(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&ka(t)?t:Ix(t)}function ua(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ix(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ft(o);return i?t.concat(s,s.visualViewport||[],ka(o)?o:[],s.frameElement&&n?ua(s.frameElement):[]):t.concat(o,ua(o,[],n))}function Lx(e){const t=nn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=On(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=yc(n)!==i||yc(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function th(e){return ir(e)?e:e.contextElement}function wi(e){const t=th(e);if(!On(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lx(t);let s=(i?yc(n.width):n.width)/r,l=(i?yc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const rM=Br(0);function Fx(e){const t=Ft(e);return!eh()||!t.visualViewport?rM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ft(e)?!1:t}function yo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=th(e);let s=Br(1);t&&(r?ir(r)&&(s=wi(r)):s=wi(e));const l=oM(i,n,r)?Fx(i):Br(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const p=Ft(i),g=r&&ir(r)?Ft(r):r;let m=p.frameElement;for(;m&&r&&g!==p;){const y=wi(m),w=m.getBoundingClientRect(),v=nn(m),x=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,_=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;a*=y.x,u*=y.y,d*=y.x,f*=y.y,a+=x,u+=_,m=Ft(m).frameElement}}return wc({width:d,height:f,x:a,y:u})}function iM(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=On(n),i=ar(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},l=Br(1);const a=Br(0);if((o||!o&&r!=="fixed")&&((Ur(n)!=="body"||ka(i))&&(s=ru(n)),On(n))){const u=yo(n);l=wi(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+a.x,y:t.y*l.y-s.scrollTop*l.y+a.y}}function sM(e){return Array.from(e.getClientRects())}function zx(e){return yo(ar(e)).left+ru(e).scrollLeft}function aM(e){const t=ar(e),n=ru(e),r=e.ownerDocument.body,o=Dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+zx(e);const l=-n.scrollTop;return nn(r).direction==="rtl"&&(s+=Dt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function lM(e,t){const n=Ft(e),r=ar(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=eh();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function cM(e,t){const n=yo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=On(e)?wi(e):Br(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Qg(e,t,n){let r;if(t==="viewport")r=lM(e,n);else if(t==="document")r=aM(ar(e));else if(ir(t))r=cM(t,n);else{const o=Fx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return wc(r)}function Bx(e,t){const n=Ti(e);return n===t||!ir(n)||nu(n)?!1:nn(n).position==="fixed"||Bx(n,t)}function uM(e,t){const n=t.get(e);if(n)return n;let r=ua(e,[],!1).filter(l=>ir(l)&&Ur(l)!=="body"),o=null;const i=nn(e).position==="fixed";let s=i?Ti(e):e;for(;ir(s)&&!nu(s);){const l=nn(s),a=Zp(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ka(s)&&!a&&Bx(e,s))?r=r.filter(d=>d!==s):o=l,s=Ti(s)}return t.set(e,r),r}function dM(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?uM(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,d)=>{const f=Qg(t,d,o);return u.top=Dt(f.top,u.top),u.right=zr(f.right,u.right),u.bottom=zr(f.bottom,u.bottom),u.left=Dt(f.left,u.left),u},Qg(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function fM(e){return Lx(e)}function pM(e,t,n){const r=On(t),o=ar(t),i=n==="fixed",s=yo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Br(0);if(r||!r&&!i)if((Ur(t)!=="body"||ka(o))&&(l=ru(t)),r){const u=yo(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else o&&(a.x=zx(o));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Xg(e,t){return!On(e)||nn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ux(e,t){const n=Ft(e);if(!On(e))return n;let r=Xg(e,t);for(;r&&tM(r)&&nn(r).position==="static";)r=Xg(r,t);return r&&(Ur(r)==="html"||Ur(r)==="body"&&nn(r).position==="static"&&!Zp(r))?n:r||nM(e)||n}const hM=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ux,i=this.getDimensions;return{reference:pM(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function mM(e){return nn(e).direction==="rtl"}const gM={convertOffsetParentRelativeRectToViewportRelativeRect:iM,getDocumentElement:ar,getClippingRect:dM,getOffsetParent:Ux,getElementRects:hM,getClientRects:sM,getDimensions:fM,getScale:wi,isElement:ir,isRTL:mM};function vM(e,t){let n=null,r;const o=ar(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const g=il(d),m=il(o.clientWidth-(u+f)),y=il(o.clientHeight-(d+p)),w=il(u),x={rootMargin:-g+"px "+-m+"px "+-y+"px "+-w+"px",threshold:Dt(0,zr(1,a))||1};let _=!0;function C(E){const b=E[0].intersectionRatio;if(b!==a){if(!_)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),i}function yM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=th(e),d=o||i?[...u?ua(u):[],...ua(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=u&&l?vM(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(v=>{let[x]=v;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let m,y=a?yo(e):null;a&&w();function w(){const v=yo(e);y&&(v.x!==y.x||v.y!==y.y||v.width!==y.width||v.height!==y.height)&&n(),y=v,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,a&&cancelAnimationFrame(m)}}const xM=(e,t,n)=>{const r=new Map,o={platform:gM,...n},i={...o.platform,_c:r};return KA(e,t,{...o,platform:i})},wM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Gg({element:r.current,padding:o}).fn(n):{}:r?Gg({element:r,padding:o}).fn(n):{}}}};var Al=typeof document<"u"?h.useLayoutEffect:h.useEffect;function _c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!_c(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_c(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Hx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jg(e,t){const n=Hx(e);return Math.round(t*n)/n}function Zg(e){const t=h.useRef(e);return Al(()=>{t.current=e}),t}function _M(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=h.useState(r);_c(p,r)||g(r);const[m,y]=h.useState(null),[w,v]=h.useState(null),x=h.useCallback(q=>{q!=b.current&&(b.current=q,y(q))},[y]),_=h.useCallback(q=>{q!==k.current&&(k.current=q,v(q))},[v]),C=i||m,E=s||w,b=h.useRef(null),k=h.useRef(null),j=h.useRef(d),P=Zg(a),T=Zg(o),M=h.useCallback(()=>{if(!b.current||!k.current)return;const q={placement:t,strategy:n,middleware:p};T.current&&(q.platform=T.current),xM(b.current,k.current,q).then(Q=>{const L={...Q,isPositioned:!0};I.current&&!_c(j.current,L)&&(j.current=L,bo.flushSync(()=>{f(L)}))})},[p,t,n,T]);Al(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(q=>({...q,isPositioned:!1})))},[u]);const I=h.useRef(!1);Al(()=>(I.current=!0,()=>{I.current=!1}),[]),Al(()=>{if(C&&(b.current=C),E&&(k.current=E),C&&E){if(P.current)return P.current(C,E,M);M()}},[C,E,M,P]);const H=h.useMemo(()=>({reference:b,floating:k,setReference:x,setFloating:_}),[x,_]),B=h.useMemo(()=>({reference:C,floating:E}),[C,E]),Y=h.useMemo(()=>{const q={position:n,left:0,top:0};if(!B.floating)return q;const Q=Jg(B.floating,d.x),L=Jg(B.floating,d.y);return l?{...q,transform:"translate("+Q+"px, "+L+"px)",...Hx(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:L}},[n,l,B.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:M,refs:H,elements:B,floatingStyles:Y}),[d,M,H,B,Y])}const bM=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return h.createElement(So.svg,Ge({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),SM=bM;function EM(e){const[t,n]=h.useState(void 0);return Ni(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Wx="Popper",[Vx,Gx]=Ox(Wx),[CM,Kx]=Vx(Wx),kM=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(CM,{scope:t,anchor:r,onAnchorChange:o},n)},jM="PopperAnchor",$M=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Kx(jM,n),s=h.useRef(null),l=Li(t,s);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:h.createElement(So.div,Ge({},o,{ref:l}))}),qx="PopperContent",[RM,NM]=Vx(qx),TM=h.forwardRef((e,t)=>{var n,r,o,i,s,l,a,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:_="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:b,...k}=e,j=Kx(qx,d),[P,T]=h.useState(null),M=Li(t,qe=>T(qe)),[I,H]=h.useState(null),B=EM(I),Y=(n=B==null?void 0:B.width)!==null&&n!==void 0?n:0,q=(r=B==null?void 0:B.height)!==null&&r!==void 0?r:0,Q=f+(g!=="center"?"-"+g:""),L=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},V=Array.isArray(v)?v:[v],J=V.length>0,re={padding:L,boundary:V.filter(MM),altBoundary:J},{refs:pe,floatingStyles:it,placement:Me,isPositioned:He,middlewareData:ye}=_M({strategy:"fixed",placement:Q,whileElementsMounted:(...qe)=>yM(...qe,{animationFrame:E==="always"}),elements:{reference:j.anchor},middleware:[XA({mainAxis:p+q,alignmentAxis:m}),w&&JA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?ZA():void 0,...re}),w&&qA({...re}),eM({...re,apply:({elements:qe,rects:In,availableWidth:Gi,availableHeight:Ki})=>{const{width:qi,height:Co}=In.reference,Pt=qe.floating.style;Pt.setProperty("--radix-popper-available-width",`${Gi}px`),Pt.setProperty("--radix-popper-available-height",`${Ki}px`),Pt.setProperty("--radix-popper-anchor-width",`${qi}px`),Pt.setProperty("--radix-popper-anchor-height",`${Co}px`)}}),I&&wM({element:I,padding:y}),DM({arrowWidth:Y,arrowHeight:q}),C&&YA({strategy:"referenceHidden",...re})]}),[st,xn]=Yx(Me),Dn=zi(b);Ni(()=>{He&&(Dn==null||Dn())},[He,Dn]);const Eo=(o=ye.arrow)===null||o===void 0?void 0:o.x,Ke=(i=ye.arrow)===null||i===void 0?void 0:i.y,wn=((s=ye.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[on,Kr]=h.useState();return Ni(()=>{P&&Kr(window.getComputedStyle(P).zIndex)},[P]),h.createElement("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...it,transform:He?it.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:on,"--radix-popper-transform-origin":[(l=ye.transformOrigin)===null||l===void 0?void 0:l.x,(a=ye.transformOrigin)===null||a===void 0?void 0:a.y].join(" ")},dir:e.dir},h.createElement(RM,{scope:d,placedSide:st,onArrowChange:H,arrowX:Eo,arrowY:Ke,shouldHideArrow:wn},h.createElement(So.div,Ge({"data-side":st,"data-align":xn},k,{ref:M,style:{...k.style,animation:He?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),PM="PopperArrow",OM={top:"bottom",right:"left",bottom:"top",left:"right"},AM=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=NM(PM,r),s=OM[i.placedSide];return h.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},h.createElement(SM,Ge({},o,{ref:n,style:{...o.style,display:"block"}})))});function MM(e){return e!==null}const DM=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:l,rects:a,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,y]=Yx(l),w={start:"0%",center:"50%",end:"100%"}[y],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,x=((i=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let _="",C="";return m==="bottom"?(_=f?w:`${v}px`,C=`${-g}px`):m==="top"?(_=f?w:`${v}px`,C=`${a.floating.height+g}px`):m==="right"?(_=`${-g}px`,C=f?w:`${x}px`):m==="left"&&(_=`${a.floating.width+g}px`,C=f?w:`${x}px`),{data:{x:_,y:C}}}});function Yx(e){const[t,n="center"]=e.split("-");return[t,n]}const IM=kM,LM=$M,FM=TM,zM=AM;function BM(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Qx=e=>{const{present:t,children:n}=e,r=UM(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Li(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Qx.displayName="Presence";function UM(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[l,a]=BM(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=sl(r.current);i.current=l==="mounted"?u:"none"},[l]),Ni(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,g=sl(u);e?a("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ni(()=>{if(t){const u=f=>{const g=sl(r.current).includes(f.animationName);f.target===t&&g&&bo.flushSync(()=>a("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=sl(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function sl(e){return(e==null?void 0:e.animationName)||"none"}function HM({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=WM({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,l=zi(n),a=h.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[i,e,o,l]);return[s,a]}function WM({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=zi(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const VM=h.forwardRef((e,t)=>h.createElement(So.span,Ge({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),GM=VM,[ou,V8]=Ox("Tooltip",[Gx]),iu=Gx(),KM="TooltipProvider",Ef="tooltip.open",[G8,nh]=ou(KM),rh="Tooltip",[qM,su]=ou(rh),YM=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=nh(rh,e.__scopeTooltip),u=iu(t),[d,f]=h.useState(null),p=LA(),g=h.useRef(0),m=s??a.disableHoverableContent,y=l??a.delayDuration,w=h.useRef(!1),[v=!1,x]=HM({prop:r,defaultProp:o,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(Ef))):a.onClose(),i==null||i(k)}}),_=h.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),C=h.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,x(!0)},[x]),E=h.useCallback(()=>{window.clearTimeout(g.current),x(!1)},[x]),b=h.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,x(!0)},y)},[y,x]);return h.useEffect(()=>()=>window.clearTimeout(g.current),[]),h.createElement(IM,u,h.createElement(qM,{scope:t,contentId:p,open:v,stateAttribute:_,trigger:d,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayed?b():C()},[a.isOpenDelayed,b,C]),onTriggerLeave:h.useCallback(()=>{m?E():window.clearTimeout(g.current)},[E,m]),onOpen:C,onClose:E,disableHoverableContent:m},n))},ev="TooltipTrigger",QM=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=su(ev,n),i=nh(ev,n),s=iu(n),l=h.useRef(null),a=Li(t,l,o.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(LM,Ge({asChild:!0},s),h.createElement(So.button,Ge({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onPointerMove:Wn(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Wn(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Wn(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Wn(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Wn(e.onBlur,o.onClose),onClick:Wn(e.onClick,o.onClose)})))}),XM="TooltipPortal",[K8,JM]=ou(XM,{forceMount:void 0}),da="TooltipContent",ZM=h.forwardRef((e,t)=>{const n=JM(da,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=su(da,e.__scopeTooltip);return h.createElement(Qx,{present:r||s.open},s.disableHoverableContent?h.createElement(Xx,Ge({side:o},i,{ref:t})):h.createElement(eD,Ge({side:o},i,{ref:t})))}),eD=h.forwardRef((e,t)=>{const n=su(da,e.__scopeTooltip),r=nh(da,e.__scopeTooltip),o=h.useRef(null),i=Li(t,o),[s,l]=h.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,p=h.useCallback(()=>{l(null),f(!1)},[f]),g=h.useCallback((m,y)=>{const w=m.currentTarget,v={x:m.clientX,y:m.clientY},x=iD(v,w.getBoundingClientRect()),_=sD(v,x),C=aD(y.getBoundingClientRect()),E=cD([..._,...C]);l(E),f(!0)},[f]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(a&&d){const m=w=>g(w,d),y=w=>g(w,a);return a.addEventListener("pointerleave",m),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",y)}}},[a,d,g,p]),h.useEffect(()=>{if(s){const m=y=>{const w=y.target,v={x:y.clientX,y:y.clientY},x=(a==null?void 0:a.contains(w))||(d==null?void 0:d.contains(w)),_=!lD(v,s);x?p():_&&(p(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[a,d,s,u,p]),h.createElement(Xx,Ge({},e,{ref:i}))}),[tD,nD]=ou(rh,{isInside:!1}),Xx=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=su(da,n),u=iu(n),{onClose:d}=a;return h.useEffect(()=>(document.addEventListener(Ef,d),()=>document.removeEventListener(Ef,d)),[d]),h.useEffect(()=>{if(a.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),h.createElement(OA,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},h.createElement(FM,Ge({"data-state":a.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(wx,null,r),h.createElement(tD,{scope:n,isInside:!0},h.createElement(GM,{id:a.contentId,role:"tooltip"},o||r))))}),rD="TooltipArrow",oD=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=iu(n);return nD(rD,n).isInside?null:h.createElement(zM,Ge({},o,r,{ref:t}))});function iD(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function aD(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function lD(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(u-l)*(r-a)/(d-a)+l&&(o=!o)}return o}function cD(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),uD(t)}function uD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const dD=YM,fD=QM,pD=ZM,hD=oD;function mD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ve(e,t){if(e==null)return{};var n=mD(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let Ne;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(Ne||(Ne={}));const gD={[Ne.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[Ne.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[Ne.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[Ne.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[Ne.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[Ne.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[Ne.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[Ne.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[Ne.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[Ne.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[Ne.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Jx(e,t,...n){const[r,...o]=gD[t](...n);console[e]("LEVA: "+r,...o)}const Vn=Jx.bind(null,"warn"),vD=Jx.bind(null,"log"),yD=["value"],xD=["schema"],wD=["value"],Zx=[],xo={};function tv(e){let{value:t}=e,n=ve(e,yD);for(let r of Zx){const o=r(t,n);if(o)return o}}function lr(e,t){let{schema:n}=t,r=ve(t,xD);if(e in xo){Vn(Ne.ALREADY_REGISTERED_TYPE,e);return}Zx.push((o,i)=>n(o,i)&&e),xo[e]=r}function Zu(e,t,n,r){const{normalize:o}=xo[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=ve(t,wD);return{value:i,settings:s}}function _D(e,t,n,r,o,i){const{sanitize:s}=xo[e];return s?s(t,n,r,o,i):t}function nv(e,t,n){const{format:r}=xo[e];return r?r(t,n):t}function bD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=yr(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},ED=Math.log(10);function ov(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/ED)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const bc=(e,t,n)=>n===t?0:(Hr(e,t,n)-t)/(n-t),Sc=(e,t,n)=>e*(n-t)+t,CD=()=>"_"+Math.random().toString(36).substr(2,9),iv=/\(([0-9+\-*/^ .]+)\)/,sv=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,av=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,lv=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,cv=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,uv=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function yr(e){if(isNaN(Number(e)))if(iv.test(e)){const t=e.replace(iv,(n,r)=>String(yr(r)));return yr(t)}else if(sv.test(e)){const t=e.replace(sv,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return yr(t)}else if(av.test(e)){const t=e.replace(av,(n,r,o)=>String(Number(r)*Number(o)));return yr(t)}else if(lv.test(e)){const t=e.replace(lv,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return yr(t)}else if(cv.test(e)){const t=e.replace(cv,(n,r,o)=>String(Number(r)+Number(o)));return yr(t)}else if(uv.test(e)){const t=e.replace(uv,(n,r,o)=>String(Number(r)-Number(o)));return yr(t)}else return Number(e);return Number(e)}function kD(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function jD(e,t){const n=ne({},e);return t.forEach(r=>r in e&&delete n[r]),n}function $D(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function ew(e){return Object.prototype.toString.call(e)==="[object Object]"}const RD=e=>ew(e)&&Object.keys(e).length===0;let hn;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(hn||(hn={}));let gn;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(gn||(gn={}));const ND=["type","__customInput"],TD=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],PD=["type"];function tw(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:ne({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:b}=e,k=ve(e,ND);return tw(b,t,k,E)}const{render:s,label:l,optional:a,order:u=0,disabled:d,hint:f,onChange:p,onEditStart:g,onEditEnd:m,transient:y}=e,w=ve(e,TD),v=ne({render:s,key:t,label:l??t,hint:f,transient:y??!!p,onEditStart:g,onEditEnd:m,disabled:d,optional:a,order:u},n);let{type:x}=w,_=ve(w,PD);if(x=r??x,x in hn)return{type:x,input:_,options:v};let C;return r&&ew(_)&&"value"in _?C=_.value:C=RD(_)?void 0:_,{type:x,input:C,options:ne(ne({},v),{},{onChange:p,optional:(o=v.optional)!==null&&o!==void 0?o:!1,disabled:(i=v.disabled)!==null&&i!==void 0?i:!1})}}function OD(e,t,n,r){const o=tw(e,t),{type:i,input:s,options:l}=o;if(i)return i in hn?o:{type:i,input:Zu(i,s,n,r),options:l};let a=tv(s);return a?{type:a,input:Zu(a,s,n,r),options:l}:(a=tv({value:s}),a?{type:a,input:Zu(a,{value:s},n,r),options:l}:!1)}function dv(e,t,n,r,o){const{value:i,type:s,settings:l}=e;e.value=nw({type:s,value:i,settings:l},t,n,r),e.fromPanel=o}const AD=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function nw({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let l;try{l=_D(e,s,n,t,o,i)}catch(a){throw new AD(`The value \`${r}\` did not result in a correct value.`,t,a)}return aa(l,t)?t:l}const rw=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},ow=e=>e.shiftKey?5:e.altKey?1/5:1;function MD(e,t){const n=console.error;console.error=()=>{},Ap.render(e,t),console.error=n}const DD=["value"],ID=["min","max"],LD=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},iw=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Hr(o,t,n);return r?i+r:i},FD=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},sw=e=>{let{value:t}=e,n=ve(e,DD);const{min:r=-1/0,max:o=1/0}=n,i=ve(n,ID);let s=parseFloat(t);const l=typeof t=="string"?t.substring((""+s).length):void 0;s=Hr(s,r,o);let a=n.step;a||(Number.isFinite(r)?Number.isFinite(o)?a=+(Math.abs(o-r)/100).toPrecision(1):a=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(a=+(Math.abs(o-s)/100).toPrecision(1)));const u=a?ov(a)*10:ov(s);a=a||u/10;const d=Math.round(Hr(Math.log10(1/u),0,2));return{value:l?s+l:s,settings:ne({initialValue:s,step:a,pad:d,min:r,max:o,suffix:l},i)}},aw=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var lw=Object.freeze({__proto__:null,schema:LD,sanitize:iw,format:FD,normalize:sw,sanitizeStep:aw});function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function al(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const ps={$inputStyle:()=>e=>al(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>al(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>al(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>al(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ee,css:q8,createTheme:BD,globalCss:UD,keyframes:Y8}=AO({prefix:"leva",theme:fw(),utils:ne(ne({},ps),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":ps.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":ps.$focusStyle()(e)}),$hover:e=>({"&:hover":ps.$hoverStyle()(e)}),$active:e=>({"&:active":ps.$activeStyle()(e)})})}),HD=UD({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function WD(e){const t=fw();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=BD(t);return{theme:t,className:n.className}}function Xn(e,t){const{theme:n}=h.useContext(oh);if(!(e in n)||!(t in n[e]))return Vn(Ne.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const pw=ee("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),hw=ee("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${pw}`]:{paddingLeft:0}}),VD=ee(hw,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),GD=ee("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),KD=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],qD=["onUpdate"];function ih(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:l,inputType:a="text",rows:u=0}=e,d=ve(e,KD);const{id:f,emitOnEditStart:p,emitOnEditEnd:g,disabled:m}=mt(),y=l||f,w=h.useRef(null),v=u>0,x=v?"textarea":"input",_=h.useCallback(b=>k=>{const j=k.currentTarget.value;b(j)},[]);S.useEffect(()=>{const b=w.current,k=_(j=>{r(j),g()});return b==null||b.addEventListener("blur",k),()=>b==null?void 0:b.removeEventListener("blur",k)},[_,r,g]);const C=h.useCallback(b=>{b.key==="Enter"&&_(r)(b)},[_,r]),E=Object.assign({as:x},v?{rows:u}:{},d);return S.createElement(GD,{textArea:v},t&&typeof t=="string"?S.createElement(hw,null,t):t,S.createElement(pw,Fe({levaType:s,ref:w,id:y,type:a,autoComplete:"off",spellCheck:"false",value:n,onChange:_(o),onFocus:()=>p(),onKeyPress:C,onKeyDown:i,disabled:m},E)))}function YD(e){let{onUpdate:t}=e,n=ve(e,qD);const r=h.useCallback(i=>t(SD(i)),[t]),o=h.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const l=i.altKey?.1:i.shiftKey?10:1;t(a=>parseFloat(a)+s*l)}},[t]);return S.createElement(ih,Fe({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const Ec=ee("div",{}),Cf=ee("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),QD=ee("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Cf}::after`]:{opacity:.6},[`${Ec}:hover > & + ${Cf}::after`]:{opacity:.6},[`${Ec}:hover > & > svg`]:{opacity:1}}),mw=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${Ec}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),gw=ee("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${mw} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),vw=ee(gw,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),XD=ee("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),JD=ee("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),kf=ee("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),ZD=ee("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${kf}`]:{pointerEvents:"auto"}}}}}),yw=ee("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),eI=ee("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),tI=ee(hD,{fill:"$toolTipBackground"});function sh({children:e}){const{className:t}=h.useContext(oh);return S.createElement(nO,{className:t},e)}const nI=["align"];function rI(){const{id:e,disable:t,disabled:n}=mt();return S.createElement(S.Fragment,null,S.createElement(JD,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),S.createElement("label",{htmlFor:e+"__disable"}))}function oI(e){const{id:t,optional:n,hint:r}=mt(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return S.createElement(S.Fragment,null,n&&S.createElement(rI,null),r!==void 0?S.createElement(dD,null,S.createElement(fD,{asChild:!0},S.createElement(kf,Fe({},o,e))),S.createElement(pD,{side:"top",sideOffset:2},S.createElement(eI,null,r,S.createElement(tI,null)))):S.createElement(kf,Fe({},o,i,e)))}function vn(e){let{align:t}=e,n=ve(e,nI);const{value:r,label:o,key:i,disabled:s}=mt(),{hideCopyButton:l}=zD(),a=!l&&i!==void 0,[u,d]=h.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),d(!0)}catch{Vn(Ne.CLIPBOARD_ERROR,{[i]:r})}};return S.createElement(XD,{align:t,onPointerLeave:()=>d(!1)},S.createElement(oI,n),a&&!s&&S.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},u?S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),S.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):S.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),S.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const iI=["toggled"],sI=ee("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function ah(e){let{toggled:t}=e,n=ve(e,iI);return S.createElement(sI,Fe({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),S.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const aI=["input"];function rn(e){let{input:t}=e,n=ve(e,aI);return t?S.createElement(vw,n):S.createElement(gw,n)}function xw({value:e,type:t,settings:n,setValue:r}){const[o,i]=h.useState(nv(t,e,n)),s=h.useRef(e),l=h.useRef(n);l.current=n;const a=h.useCallback(d=>i(nv(t,d,l.current)),[t]),u=h.useCallback(d=>{try{r(d)}catch(f){const{type:p,previousValue:g}=f;if(p!=="LEVA_ERROR")throw f;a(g)}},[a,r]);return h.useEffect(()=>{aa(e,s.current)||a(e),s.current=e},[e,a]),{displayValue:o,onChange:i,onUpdate:u}}function $a(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=mt();return jA(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function lI(e){const t=h.useRef(null),n=h.useRef(null),r=h.useRef(!1);return h.useEffect(()=>{const o=rw(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),h.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ww(){const e=h.useRef(null),t=h.useRef({x:0,y:0}),n=h.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const cI=["__refCount"],ed=(e,t)=>{if(!e[t])return null;const n=e[t];return ve(n,cI)};function uI(e){const t=ja(),[n,r]=h.useState(ed(t.getData(),e)),o=h.useCallback(u=>t.setValueAtPath(e,u,!0),[e,t]),i=h.useCallback(u=>t.setSettingsAtPath(e,u),[e,t]),s=h.useCallback(u=>t.disableInputAtPath(e,u),[e,t]),l=h.useCallback(()=>t.emitOnEditStart(e),[e,t]),a=h.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return h.useEffect(()=>{r(ed(t.getData(),e));const u=t.useStore.subscribe(d=>ed(d.data,e),r,{equalityFn:Sa});return()=>u()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:l,emitOnEditEnd:a}]}const dI=ee("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),_w=ee("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),jf=ee("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),bw=ee("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Sw=ee("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function fI({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=h.useRef(null),l=h.useRef(null),a=h.useRef(0),u=Xn("sizes","scrubberWidth"),d=$a(({event:p,first:g,xy:[m],movement:[y],memo:w})=>{if(g){const{width:x,left:_}=s.current.getBoundingClientRect();a.current=x-parseFloat(u),w=(p==null?void 0:p.target)===l.current?e:Sc((m-_)/x,t,n)}const v=w+Sc(y/a.current,0,n-t);return r(aw(v,{step:o,initialValue:i})),w}),f=bc(e,t,n);return S.createElement(bw,Fe({ref:s},d()),S.createElement(_w,null,S.createElement(Sw,{style:{left:0,right:`${(1-f)*100}%`}})),S.createElement(jf,{ref:l,style:{left:`calc(${f} * (100% - ${u}))`}}))}const pI=S.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=h.useState(!1),s=$a(({active:l,delta:[a],event:u,memo:d=0})=>(i(l),d+=a/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*ow(u)),d=0),d));return S.createElement(VD,Fe({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function Ew({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const l=s>0&&S.createElement(pI,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return S.createElement(YD,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:l})}function hI(){const e=mt(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:l}=o,a=l!==1/0&&s!==-1/0;return S.createElement(rn,{input:!0},S.createElement(vn,null,t),S.createElement(dI,{hasRange:a},a&&S.createElement(fI,Fe({value:parseFloat(n),onDrag:r},o)),S.createElement(Ew,Fe({},e,{id:i,label:"value",innerLabelTrim:a?0:1}))))}const{sanitizeStep:mI}=lw,gI=ve(lw,["sanitizeStep"]);var vI=ne({component:hI},gI);const yI=(e,t)=>$t().schema({options:$t().passesAnyOf($t().object(),$t().array())}).test(t),xI=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},wI=(e,{values:t})=>t.indexOf(e),_I=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var bI=Object.freeze({__proto__:null,schema:yI,sanitize:xI,format:wI,normalize:_I});const SI=ee("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),$f=ee("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),EI=ee("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${$f}:focus + &`]:{$focusStyle:""},[`${$f}:hover + &`]:{$hoverStyle:""}});function CI({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:l}=o,a=h.useRef();return t===l[e]&&(a.current=s[e]),S.createElement(SI,null,S.createElement($f,{id:r,value:e,onChange:u=>n(l[Number(u.currentTarget.value)]),disabled:i},s.map((u,d)=>S.createElement("option",{key:u,value:d},u))),S.createElement(EI,null,a.current),S.createElement(ah,{toggled:!0}))}function kI(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(CI,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var jI=ne({component:kI},bI);const $I=e=>$t().string().test(e),RI=e=>{if(typeof e!="string")throw Error("Invalid string");return e},NI=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var TI=Object.freeze({__proto__:null,schema:$I,sanitize:RI,normalize:NI});const PI=["displayValue","onUpdate","onChange","editable"],OI=ee("div",{whiteSpace:"pre-wrap"});function AI(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=ve(e,PI);return o?S.createElement(ih,Fe({value:t,onUpdate:n,onChange:r},i)):S.createElement(OI,null,t)}function MI(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(AI,Fe({displayValue:n,onUpdate:r,onChange:o},t)))}var DI=ne({component:MI},TI);const II=e=>$t().boolean().test(e),LI=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var FI=Object.freeze({__proto__:null,schema:II,sanitize:LI});const zI=ee("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function BI({value:e,onUpdate:t,id:n,disabled:r}){return S.createElement(zI,null,S.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),S.createElement("label",{htmlFor:n},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function UI(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(BI,{value:t,onUpdate:n,id:o,disabled:r}))}var HI=ne({component:UI},FI);const WI=["locked"];function VI({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=h.useRef(e[n]);s.current=e[n];const l=h.useCallback(u=>o({[n]:nw({type:"NUMBER",value:s.current,settings:r},u)}),[o,r,n]),a=xw({type:"NUMBER",value:e[n],settings:r,setValue:l});return S.createElement(Ew,{id:t,label:n,value:e[n],displayValue:a.displayValue,onUpdate:a.onUpdate,onChange:a.onChange,settings:r,innerLabelTrim:i})}const GI=ee("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function KI(e){let{locked:t}=e,n=ve(e,WI);return S.createElement("svg",Fe({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?S.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):S.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function lh({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=mt(),{lock:s,locked:l}=n;return S.createElement(GI,{withLock:s},s&&S.createElement(KI,{locked:l,onClick:()=>i({locked:!l})}),Object.keys(e).map((a,u)=>S.createElement(VI,{id:u===0?o:`${o}.${a}`,key:a,valueKey:a,value:e,settings:n[a],onUpdate:t,innerLabelTrim:r})))}const Cw=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=sw(ne({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:l,max:a}=t[i]||{};!isFinite(s)&&(!isFinite(l)||!isFinite(a))&&(n[i].step=r,n[i].pad=o)}return n},qI=["lock"],YI=["value"];function QI(e){const t=$t().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function XI(e){return Array.isArray(e)?"array":"object"}function As(e,t,n){return XI(e)===t?e:t==="array"?Object.values(e):$D(e,n)}const JI=(e,t,n)=>{const r=As(e,"object",t.keys);for(let s in r)r[s]=iw(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=As(n,"object",t.keys);if(o.length===1&&t.locked){const l=o[0],a=r[l],u=s[l],d=u!==0?a/u:1;for(let f in s)f===l?i[l]=a:i[f]=s[f]*d}else i=ne(ne({},s),r)}return As(i,t.format,t.keys)},ZI=(e,t)=>As(e,"object",t.keys),e5=e=>!!e&&("step"in e||"min"in e||"max"in e);function t5(e,t,n=[]){const{lock:r=!1}=t,o=ve(t,qI),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,l=As(e,"object",s),a=e5(o)?s.reduce((d,f)=>Object.assign(d,{[f]:o}),{}):o,u=Cw(l,a);return{value:i==="array"?e:l,settings:ne(ne({},u),{},{format:i,keys:s,lock:r,locked:!1})}}function kw(e){return{schema:QI(e.length),normalize:t=>{let{value:n}=t,r=ve(t,YI);return t5(n,r,e)},format:(t,n)=>ZI(t,n),sanitize:(t,n,r)=>JI(t,n,r)}}var n5={grad:.9,turn:360,rad:360/(2*Math.PI)},zn=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Xt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},jw=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},fv=function(e){return{r:Xt(e.r,0,255),g:Xt(e.g,0,255),b:Xt(e.b,0,255),a:Xt(e.a)}},td=function(e){return{r:Je(e.r),g:Je(e.g),b:Je(e.b),a:Je(e.a,3)}},r5=/^#([0-9a-f]{3,8})$/i,ll=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},$w=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),l=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(l<0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:o}},Rw=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),l=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,l,s,s,a,r][u],g:255*[a,r,r,l,s,s][u],b:255*[s,s,a,r,r,l][u],a:o}},pv=function(e){return{h:jw(e.h),s:Xt(e.s,0,100),l:Xt(e.l,0,100),a:Xt(e.a)}},hv=function(e){return{h:Je(e.h),s:Je(e.s),l:Je(e.l),a:Je(e.a,3)}},mv=function(e){return Rw((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Ms=function(e){return{h:(t=$w(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},o5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,i5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,s5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,a5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rf={string:[[function(e){var t=r5.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Je(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Je(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=s5.exec(e)||a5.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:fv({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=o5.exec(e)||i5.exec(e);if(!t)return null;var n,r,o=pv({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(n5[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return mv(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return zn(t)&&zn(n)&&zn(r)?fv({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=pv({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return mv(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=function(l){return{h:jw(l.h),s:Xt(l.s,0,100),v:Xt(l.v,0,100),a:Xt(l.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Rw(s)},"hsv"]]},gv=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=td(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?ll(Je(255*i)):"","#"+ll(n)+ll(r)+ll(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return td(this.rgba)},e.prototype.toRgbString=function(){return t=td(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return hv(Ms(this.rgba))},e.prototype.toHslString=function(){return t=hv(Ms(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=$w(this.rgba),{h:Je(t.h),s:Je(t.s),v:Je(t.v),a:Je(t.a,3)};var t},e.prototype.invert=function(){return xt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),xt(nd(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),xt(nd(this.rgba,-t))},e.prototype.grayscale=function(){return xt(nd(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),xt(vv(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),xt(vv(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?xt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Je(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ms(this.rgba);return typeof t=="number"?xt({h:t,s:n.s,l:n.l,a:n.a}):Je(n.h)},e.prototype.isEqual=function(t){return this.toHex()===xt(t).toHex()},e}(),xt=function(e){return e instanceof Nf?e:new Nf(e)},yv=[],c5=function(e){e.forEach(function(t){yv.indexOf(t)<0&&(t(Nf,Rf),yv.push(t))})};function u5(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var l,a,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,p="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var y=(l=d,a=i[m],Math.pow(l.r-a.r,2)+Math.pow(l.g-a.g,2)+Math.pow(l.b-a.b,2));y=0||(o[n]=e[n]);return o}function Tf(e){var t=h.useRef(e),n=h.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Pi=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(xv(o.current,w,l.current)):y(!1)},m=function(){return y(!1)};function y(w){var v=a.current,x=Pf(o.current),_=w?x.addEventListener:x.removeEventListener;_(v?"touchmove":"mousemove",g),_(v?"touchend":"mouseup",m)}return[function(w){var v=w.nativeEvent,x=o.current;if(x&&(wv(v),!function(C,E){return E&&!Ds(C)}(v,a.current)&&x)){if(Ds(v)){a.current=!0;var _=v.changedTouches||[];_.length&&(l.current=_[0].identifier)}x.focus(),i(xv(x,v,l.current)),y(!0)}},function(w){var v=w.which||w.keyCode;v<37||v>40||(w.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},y]},[s,i]),d=u[0],f=u[1],p=u[2];return h.useEffect(function(){return p},[p]),S.createElement("div",Hi({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Ra=function(e){return e.filter(Boolean).join(" ")},dh=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Ra(["react-colorful__pointer",e.className]);return S.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},S.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},_t=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Tw=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:_t(e.h),s:_t(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:_t(o/2),a:_t(r,2)}},Of=function(e){var t=Tw(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},od=function(e){var t=Tw(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Pw=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),l=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),u=i%6;return{r:_t(255*[r,l,s,s,a,r][u]),g:_t(255*[a,r,r,l,s,s][u]),b:_t(255*[s,s,a,r,r,l][u]),a:_t(o,2)}},Ow=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),l=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:_t(60*(l<0?l+6:l)),s:_t(i?s/i*100:0),v:_t(i/255*100),a:o}},Aw=S.memo(function(e){var t=e.hue,n=e.onChange,r=Ra(["react-colorful__hue",e.className]);return S.createElement("div",{className:r},S.createElement(uh,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Pi(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":_t(t),"aria-valuemax":"360","aria-valuemin":"0"},S.createElement(dh,{className:"react-colorful__hue-pointer",left:t/360,color:Of({h:t,s:100,v:100,a:1})})))}),Mw=S.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Of({h:t.h,s:100,v:100,a:1})};return S.createElement("div",{className:"react-colorful__saturation",style:r},S.createElement(uh,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Pi(t.s+100*o.left,0,100),v:Pi(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+_t(t.s)+"%, Brightness "+_t(t.v)+"%"},S.createElement(dh,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Of(t)})))}),fh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Dw(e,t,n){var r=Tf(n),o=h.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],l=h.useRef({color:t,hsva:i});h.useEffect(function(){if(!e.equal(t,l.current.color)){var u=e.toHsva(t);l.current={hsva:u,color:t},s(u)}},[t,e]),h.useEffect(function(){var u;fh(i,l.current.hsva)||e.equal(u=e.fromHsva(i),l.current.color)||(l.current={hsva:i,color:u},r(u))},[i,e,r]);var a=h.useCallback(function(u){s(function(d){return Object.assign({},d,u)})},[]);return[i,a]}var d5=typeof window<"u"?h.useLayoutEffect:h.useEffect,f5=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},_v=new Map,Iw=function(e){d5(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!_v.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,_v.set(t,n);var r=f5();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},p5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=ch(e,["className","colorModel","color","onChange"]),l=h.useRef(null);Iw(l);var a=Dw(n,o,i),u=a[0],d=a[1],f=Ra(["react-colorful",t]);return S.createElement("div",Hi({},s,{ref:l,className:f}),S.createElement(Mw,{hsva:u,onChange:d}),S.createElement(Aw,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},h5=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+od(Object.assign({},n,{a:0}))+", "+od(Object.assign({},n,{a:1}))+")"},i=Ra(["react-colorful__alpha",t]),s=_t(100*n.a);return S.createElement("div",{className:i},S.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),S.createElement(uh,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:Pi(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},S.createElement(dh,{className:"react-colorful__alpha-pointer",left:n.a,color:od(n)})))},m5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=ch(e,["className","colorModel","color","onChange"]),l=h.useRef(null);Iw(l);var a=Dw(n,o,i),u=a[0],d=a[1],f=Ra(["react-colorful",t]);return S.createElement("div",Hi({},s,{ref:l,className:f}),S.createElement(Mw,{hsva:u,onChange:d}),S.createElement(Aw,{hue:u.h,onChange:d}),S.createElement(h5,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},g5={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Ow,fromHsva:Pw,equal:fh},v5=function(e){return S.createElement(m5,Hi({},e,{colorModel:g5}))},y5={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return Ow({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Pw(e)).r,g:t.g,b:t.b};var t},equal:fh},x5=function(e){return S.createElement(p5,Hi({},e,{colorModel:y5}))},Lw={exports:{}},w5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_5=w5,b5=_5;function Fw(){}function zw(){}zw.resetWarningCache=Fw;var S5=function(){function e(r,o,i,s,l,a){if(a!==b5){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:zw,resetWarningCache:Fw};return n.PropTypes=n,n};Lw.exports=S5();var E5=Lw.exports;const _e=Tc(E5);function Wi(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(d){try{u(r.next(d))}catch(f){s(f)}}function a(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Vi(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return a([u,d])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function k5(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function $5(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=j5.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var R5=[".DS_Store","Thumbs.db"];function N5(e){return Wi(this,void 0,void 0,function(){return Vi(this,function(t){return Cc(e)&&T5(e)?[2,M5(e.dataTransfer,e.type)]:P5(e)?[2,O5(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,A5(e)]:[2,[]]})})}function T5(e){return Cc(e.dataTransfer)}function P5(e){return Cc(e)&&Cc(e.target)}function Cc(e){return typeof e=="object"&&e!==null}function O5(e){return Af(e.target.files).map(function(t){return Na(t)})}function A5(e){return Wi(this,void 0,void 0,function(){var t;return Vi(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Na(r)})]}})})}function M5(e,t){return Wi(this,void 0,void 0,function(){var n,r;return Vi(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=Af(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(D5))]):[3,2];case 1:return r=o.sent(),[2,bv(Bw(r))];case 2:return[2,bv(Af(e.files).map(function(i){return Na(i)}))]}})})}function bv(e){return e.filter(function(t){return R5.indexOf(t.name)===-1})}function Af(e){if(e===null)return[];for(var t=[],n=0;nc.jsx("main",{className:Un.app,children:c.jsx(LP,{})}),zP="_app_2nnow_1",BP="_chess_2nnow_18",UP="_tile_2nnow_33",HP="_tile_color_2nnow_44",Tl={app:zP,chess:BP,tile:UP,tile_color:HP},WP=e=>{const t=Math.floor(e/8)%2===0,n=e%2===0;return!!(t&&n||!t&&!n)},VP=()=>{const e={R:"♜",N:"♞",B:"♝",Q:"♛",K:"♚",P:"♟",r:"♖",n:"♘",b:"♗",q:"♕",k:"♔",p:"♙"," ":" "},t="RNBQKBNRPPPPPPPP pppppppprnbqkbnr";return c.jsx("section",{className:Tl.chess,children:t.split("").map((n,r)=>c.jsx("div",{className:`${Tl.tile} ${WP(r)?Tl.tile_color:""}`,children:e[n]},r))})},GP=()=>c.jsx("main",{className:Tl.app,children:c.jsx(VP,{})}),KP="_container_1wkcr_1",qP="_calculator__body_1wkcr_7",YP="_calculator__screen_1wkcr_13",QP="_calculator__screen__previous_1wkcr_26",XP="_calculator__buttons_1wkcr_32",JP="_ac_1wkcr_1",ZP="_del_1wkcr_1",e3="_total_1wkcr_1",t3="_calculator__button_1wkcr_32",n3="_calculator__operator_1wkcr_76",r3="_exponent_1wkcr_1",o3="_square_1wkcr_1",me={container:KP,calculator__body:qP,calculator__screen:YP,calculator__screen__previous:QP,calculator__buttons:XP,ac:JP,del:ZP,total:e3,calculator__button:t3,calculator__operator:n3,exponent:r3,square:o3},i3=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(""),[s,l]=h.useState(""),[a,u]=h.useState(!1);let d="",f="";const p=E=>{!o&&a===!0?(t(E),u(!1)):o||e.toString().includes(".")&&E==="."||(d=e+E,t(d)),o&&(n.includes(".")&&E==="."||(d=n+E,r(d)))},g=E=>{i(e?E:"")},m=()=>{let E=e.toString(),b=n.toString();if(o==="^2")E.includes(".")&&(f=E.split(".")[1].length*2);else if(o==="*"&&E.includes(".")&&b.includes(".")){let j=E.split(".")[1].length,T=b.split(".")[1].length;f=j+T}else if(o==="*"&&E.includes(".")&&!b.includes("."))f=E.split(".")[1].length;else if(o==="*"&&!E.includes(".")&&b.includes("."))f=b.split(".")[1].length;else if(E.includes(".")&&b.includes(".")){let j=E.split(".")[1].length,T=b.split(".")[1].length;j>=T?f=j:f=T}else E.includes(".")?f=E.split(".")[1].length:b.includes(".")&&(f=b.split(".")[1].length)},y=E=>{l(E),t(E),r(""),i(""),u(!0)},w=()=>{if(o==="/"){const E=parseFloat(e*100)/parseFloat(n*100);y(E)}else if(o==="-"){let E=(parseFloat(e)-parseFloat(n))*100;m(),E=(E/100).toFixed(f),y(E)}else if(o==="*"){let E=e*n;m(),E=E.toFixed(f),y(E)}else if(o==="+"){let E=parseFloat(e)+parseFloat(n);m(),E=E.toFixed(f),y(E)}else if(o==="^"){const E=Math.pow(e,n);y(E)}else if(o==="^2"){let E=Math.pow(e,2);m(),E=E.toFixed(f),y(E)}else if(o==="√"){const E=Math.sqrt(e);y(E)}},v=()=>{t(""),i(""),r(""),l("")},x=()=>{if(o){const E=n.slice(0,n.length-1);r(E)}else{const E=e.toString(),b=E.slice(0,E.length-1);t(b)}},_=()=>{if(n){const E=n*-1;r(E)}else if(e){const E=e*-1;t(E)}},C=()=>n&&o==="/"||o==="-"||o==="+"||o==="*"||o==="^"?`${e} ${o} ${n}`:`${e||"-"} ${o}`;return c.jsx("div",{class:me.container,children:c.jsxs("div",{className:me.calculator__body,children:[c.jsxs("div",{className:me.calculator__screen,children:[c.jsx("div",{className:me.calculator__screen__previous,children:C()}),c.jsx("div",{className:me.calculator__screen__first,children:s})]}),c.jsxs("div",{className:me.calculator__buttons,children:[c.jsx("button",{onClick:()=>v(),id:"ac",className:me.calculator__operator,children:"Clear"}),c.jsx("button",{onClick:()=>x(),id:"del",className:me.calculator__operator,children:"Del"}),c.jsx("button",{onClick:()=>_(),className:me.calculator__operator,id:"negative",children:"+-"}),c.jsxs("button",{onClick:()=>g("^2"),className:me.calculator__operator,id:"square",children:["x",c.jsx("sup",{children:"2"})]}),c.jsx("button",{onClick:()=>p("1"),className:me.calculator__button,children:"1"}),c.jsx("button",{onClick:()=>p("2"),className:me.calculator__button,children:"2"}),c.jsx("button",{onClick:()=>p("3"),className:me.calculator__button,children:"3"}),c.jsx("button",{onClick:()=>g("+"),className:me.calculator__operator,children:"+"}),c.jsx("button",{onClick:()=>p("4"),className:me.calculator__button,children:"4"}),c.jsx("button",{onClick:()=>p("5"),className:me.calculator__button,children:"5"}),c.jsx("button",{onClick:()=>p("6"),className:me.calculator__button,children:"6"}),c.jsx("button",{onClick:()=>g("/"),className:me.calculator__operator,children:"÷"}),c.jsx("button",{onClick:()=>p("7"),className:me.calculator__button,children:"7"}),c.jsx("button",{onClick:()=>p("8"),className:me.calculator__button,children:"8"}),c.jsx("button",{onClick:()=>p("9"),className:me.calculator__button,children:"9"}),c.jsx("button",{onClick:()=>g("-"),className:me.calculator__operator,children:"–"}),c.jsx("button",{onClick:()=>p("0"),className:me.calculator__button,children:"0"}),c.jsxs("button",{onClick:()=>g("^"),className:me.calculator__operator,id:"exponent",children:["x",c.jsx("sup",{children:"y"})]}),c.jsx("button",{onClick:()=>g("√"),className:me.calculator__operator,id:"radical",children:"√"}),c.jsx("button",{onClick:()=>g("*"),className:me.calculator__operator,children:"*"}),c.jsx("button",{onClick:()=>p("."),className:me.calculator__button,children:"."}),c.jsx("button",{onClick:()=>w(),id:"total",className:me.calculator__operator,children:"="})]})]})})},s3=4,Qu=1e3,a3=200,l3=25,c3="_controls_1s50h_6",u3="_tanks_1s50h_17",d3="_tank_1s50h_17",f3="_range_1s50h_64",kn={controls:c3,"text-center":"_text-center_1s50h_13",tanks:u3,"add-btn":"_add-btn_1s50h_23","empty-btn":"_empty-btn_1s50h_32",tank:d3,"tank-level":"_tank-level_1s50h_51","form-item":"_form-item_1s50h_57",range:f3};function p3({onDown:e,onUp:t,onEmpty:n,tankLevel:r,capacity:o}){return c.jsxs("div",{children:[c.jsxs("div",{className:kn.controls,children:[c.jsx("button",{onMouseDown:e,onMouseUp:t,onTouchStart:e,onTouchEnd:t,className:kn["add-btn"],children:"Add"}),c.jsx("button",{onClick:n,className:kn["empty-btn"],children:"Empty"})]}),c.jsx("div",{className:kn.tank,children:c.jsx("div",{className:kn["tank-level"],style:{height:`${100*r/o}%`}})}),c.jsxs("p",{className:kn["text-center"],children:[r," lts"]})]})}function h3({tank:e,setTanks:t,index:n}){const[r,o]=h.useState(0),i=h.useRef(0),s=h.useRef(0);s.current=e.level;function l(d){d.preventDefault(),t(f=>{const p=[...f];return p[n].isReady=!1,p}),i.current=setInterval(()=>{o(f=>{let p=f+a3;return s.current+p>=Qu&&(p=Qu-s.current),p})},1e3)}function a(){i.current&&clearInterval(i.current),o(0),t(d=>{const f=[...d.map(p=>({...p}))];return f[n].level+=r,f[n].isReady=!0,f})}function u(){t(d=>{const f=[...d.map(p=>({...p}))];return f[n].level=0,f})}return c.jsx(p3,{onDown:l,onUp:a,onEmpty:u,tankLevel:(s.current+r).toFixed(2),capacity:Qu})}function bg(e){return Array.from({length:e},()=>({level:0,isReady:!0}))}function m3(e){const n=e.filter(l=>l.isReady).reduce((l,a)=>l+a.level,0)/e.length,r=e.filter(l=>l.isReady&&l.levell.level-n<1e-4)||r.length===0)return null;let o=0;const i=e.map(l=>{const a={...l};if(l.isReady&&l.level>n){const u=Math.min(l.level-n,l3);a.level=l.level-u,o+=u}return a}),s=o/r.length;return i.forEach(l=>{l.isReady&&l.levelsetTimeout(t,e))}function v3({tanksCount:e,setTanksCount:t}){return c.jsx("section",{className:kn.range,children:c.jsxs("div",{className:kn["form-item"],children:[c.jsx("label",{htmlFor:"waterTanks",children:"Water Tanks: "}),c.jsx("input",{type:"range",min:"4",max:"8",value:e,onChange:n=>t(n.target.value),className:"slider",id:"waterTanks"})]})})}function y3(){const[e,t]=h.useState(s3),[n,r]=h.useState(()=>bg(e));return h.useEffect(()=>{const o=bg(e);r(o)},[e]),h.useEffect(()=>{let o=!1;async function i(){if(await g3(1e3),o)return;const s=m3(n);s&&r(s)}return i(),()=>{o=!0}},[n]),c.jsxs("div",{className:kn["text-center"],children:[c.jsx("p",{children:'Press and Hold "Add" to start filling the tank'}),c.jsx("main",{className:kn.tanks,children:n.map((o,i)=>c.jsx(h3,{tank:o,setTanks:r,index:i},i))}),c.jsx(v3,{tanksCount:e,setTanksCount:t})]})}const x3="_TransferListContainer_e51he_1",w3="_inputWrapper_e51he_29",sa={TransferListContainer:x3,"list-container":"_list-container_e51he_8","buttons-container":"_buttons-container_e51he_15",inputWrapper:w3,"disabled-button":"_disabled-button_e51he_33"},_3=({leftClickHandler:e,rightClickHandler:t,leftClickHandlerAll:n,rightClickHandlerAll:r,disableLeftBtn:o,disableRightBtn:i,disableLeftBtnAll:s,disableRightBtnAll:l})=>c.jsxs("div",{className:sa["buttons-container"],children:[c.jsx("button",{onClick:n,disabled:s,children:">>"}),c.jsx("button",{onClick:e,disabled:o,children:">"}),c.jsx("button",{onClick:t,disabled:i,children:"<"}),c.jsx("button",{onClick:r,disabled:l,children:"<<"})]}),b3=[{value:"USA",id:"usa"},{value:"UAE",id:"uae"},{value:"India",id:"ind"},{value:"Australia",id:"aus"},{value:"Canada",id:"can"}],S3=({id:e,value:t,selected:n,onToggle:r})=>c.jsxs("div",{className:sa.inputWrapper,children:[c.jsx("input",{type:"checkbox",id:e,value:t,checked:n,onChange:()=>r(e)}),c.jsx("label",{htmlFor:e,children:t})]}),Sg=({items:e,onToggle:t})=>c.jsx("div",{className:sa["list-container"],children:c.jsx("div",{className:sa["list-items"],children:e.map(n=>c.jsx(S3,{id:n.id,value:n.value,selected:n.selected,onToggle:t},n.id))})});function E3(){return b3.map(e=>({...e,selected:!1,direction:"left"}))}const C3=()=>{const[e,t]=h.useState(E3),n=e.filter(u=>u.direction==="left"),r=e.filter(u=>u.direction==="right"),o=n.filter(u=>u.selected),i=r.filter(u=>u.selected),s=u=>{const d=e.map(f=>f.id===u?{...f,selected:!f.selected}:f);t(d)},l=(u,d)=>{const f=e.map(p=>p.selected&&p.direction===u?{...p,selected:!1,direction:d}:p);t(f)},a=u=>{const d=e.map(f=>({...f,direction:u}));t(d)};return c.jsxs("div",{className:sa.TransferListContainer,children:[c.jsx(Sg,{items:n,onToggle:s}),c.jsx(_3,{leftClickHandler:()=>l("left","right"),rightClickHandler:()=>l("right","left"),leftClickHandlerAll:()=>a("right"),rightClickHandlerAll:()=>a("left"),disableLeftBtn:o.length===0,disableRightBtn:i.length===0,disableLeftBtnAll:n.length===0,disableRightBtnAll:r.length===0}),c.jsx(Sg,{items:r,onToggle:s})]})},k3="_AppContainer_1tcc6_1",j3="_container_1tcc6_9",$3="_timeline_1tcc6_17",R3="_date_1tcc6_38",N3="_timeline_content_1tcc6_42",ds={AppContainer:k3,container:j3,timeline:$3,date:R3,timeline_content:N3},T3=[{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."}],P3=()=>c.jsx(c.Fragment,{children:c.jsx("div",{className:ds.AppContainer,children:c.jsx("div",{className:ds.container,children:c.jsx("div",{className:ds.timeline,children:c.jsx("ul",{children:T3.map((e,t)=>c.jsx("li",{children:c.jsxs("div",{className:ds.timeline_content,children:[c.jsx("h3",{className:ds.date,children:e.date}),c.jsx("h1",{children:e.title}),c.jsx("p",{children:e.content})]})},t))})})})})}),O3=[["India","New Delhi"],["Indonesia","Jakarta"],["Iran","Tehran"],["Iraq","Baghdad"],["Ireland","Dublin"],["Israel","Jerusalem"],["Italy","Rome"],["Jamaica","Kingston"],["Japan","Tokyo"],["Jordan","Amman"],["Kazakhstan","Nur-Sultan"],["Kenya","Nairobi"],["Kiribati","South Tarawa"],["Kuwait","Kuwait City"],["Kyrgyzstan","Bishkek"],["Laos","Vientiane"],["Latvia","Riga"],["Lebanon","Beirut"],["Lesotho","Maseru"],["Liberia","Monrovia"],["Libya","Tripoli"],["Liechtenstein","Vaduz"],["Lithuania","Vilnius"],["Madagascar","Antananarivo"],["Malawi","Lilongwe"],["Malaysia","Kuala Lumpur"],["Maldives","Malé"],["Mali","Bamako"],["Malta","Valletta"],["Mauritania","Nouakchott"],["Mauritius","Port Louis"],["Mexico","Mexico City"]],A3=[["Basil","Thyme","Rosemary"],["Latte","Cappuccino","Espresso"],["Octopus","Dolphin","Seahorse"],["Beach","Mountain","Forest"],["Paintbrush","Canvas","Palette"],["Rock","Pop","Jazz"],["Running","Yoga","Dancing"],["Volcano","Canyon","Ocean"],["Phone","Email","Letter"],["Flood","Earthquake","Hurricane"],["Sight","Smell","Taste"],["Past","Present","Future"],["Literature","History","Biology"],["Spring","Summer","Autumn"],["Basketball","Jersey","Whistle"],["Textbook","Notebook","Pencil"],["Spoon","Fork","Knife"],["Shirt","Pants","Shoes"],["Lion","Elephant","Giraffe"],["Sunflower","Rose","Daisy"],["Cucumber","Tomato","Carrot"],["Tea","Coffee","Juice"],["Milk","Yogurt","Cheese"],["Pikachu","Charmander","Squirtle"],["Batman","Superman","Spiderman"],["Elsa","Anna","Olaf"]],M3=[["Cinnamon","Nutmeg","Ginger","Allspice"],["Guitar","Drums","Piano","Violin"],["Mercury","Venus","Earth","Mars"],["Monday","Tuesday","Friday","Sunday"],["Black","White","Grey","Navy Blue"],["Sun","Rain","Wind","Snow"],["Hand","Foot","Ear","Eye"],["Apple","Orange","Banana","Grape"],["Math","English","Science","History"],["Car","Bus","Train","Airplane"],["Phone","Laptop","Headset","Charger"],["Pen","Pencil","Eraser","Notebook"],["Scarf","Hat","Gloves","Boots"],["Ruler","Scissors","Calculator","Glue"]],D3=new Map([[2,O3],[3,A3],[4,M3]]);function I3(e,t){const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{o.push(new Set(s))});const i=L3(r.flat());return[o,i]}function z3(e,t){const n=e.find(r=>r.has(t[0]));return n?t.every(r=>n.has(r)):!1}const B3="_grid_18i4i_1",U3="_itemBtn_18i4i_9",H3="_reset_18i4i_20",W3="_center_18i4i_26",V3="_highlight_18i4i_30",G3="_success_18i4i_34",K3="_failure_18i4i_38",qn={grid:B3,itemBtn:U3,reset:H3,center:W3,highlight:V3,success:G3,failure:K3},q3=h.forwardRef(function({items:t,cols:n,onSelection:r,status:o},i){const[s,l]=h.useState([]),a=d=>{if(o)return;let f=[];s.includes(d)?f=s.filter(p=>p!==d):f=[...s,d],l(f),r(f)};function u(){l([])}return h.useImperativeHandle(i,()=>({clearSelection:u})),c.jsx("section",{"data-status":o,className:qn.grid,style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:t.map(d=>{const f=s.includes(d),p=`${qn.itemBtn} ${f?qn.highlight:""} ${f&&o?qn[o]:""}`;return c.jsx("button",{className:p,onClick:()=>a(d),children:d},d)})})});var Pl=(e=>(e.Success="success",e.Failure="failure",e))(Pl||{});function Y3({itemGroups:e,allItems:t,columns:n=2,groupSize:r}){const[o,i]=h.useState([]),[s,l]=h.useState(0),[a,u]=h.useState(null),d=h.useRef(null);h.useEffect(()=>{var g;i(t),l(0),u(null),(g=d.current)==null||g.clearSelection()},[t]);function f(g){if(g.length===r){l(s+1);const m=z3(e,g)?Pl.Success:Pl.Failure;u(m);const y=setTimeout(()=>p(g,m),1e3);return()=>clearTimeout(y)}}function p(g,m){var y;m===Pl.Success&&i(o.filter(w=>!g.includes(w))),u(null),(y=d.current)==null||y.clearSelection()}return c.jsxs(c.Fragment,{children:[o.length?c.jsx(q3,{items:o,cols:n,onSelection:f,status:a,ref:d}):c.jsx("p",{className:qn.center,children:"Well done. Reset to play again!"}),c.jsxs("p",{className:qn.center,children:["Attempts: ",c.jsx("strong",{children:s})]})]})}function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Q3(n,t))}function Li(...e){return h.useCallback(yx(...e),e)}const xx=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(X3);if(i){const s=i.props.children,l=o.map(a=>a===i?h.Children.count(s)>1?h.Children.only(null):h.isValidElement(s)?s.props.children:null:a);return h.createElement(gf,Ge({},r,{ref:t}),h.isValidElement(s)?h.cloneElement(s,void 0,l):null)}return h.createElement(gf,Ge({},r,{ref:t}),n)});xx.displayName="Slot";const gf=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...J3(r,n.props),ref:t?yx(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});gf.displayName="SlotClone";const wx=({children:e})=>h.createElement(h.Fragment,null,e);function X3(e){return h.isValidElement(e)&&e.type===wx}function J3(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Z3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],So=Z3.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...s}=r,l=i?xx:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Ge({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function eO(e,t){e&&bo.flushSync(()=>e.dispatchEvent(t))}const tO=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ap.createPortal(h.createElement(So.div,Ge({},o,{ref:t})),r):null}),nO=tO;var Eg=Object.prototype.hasOwnProperty;function aa(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&aa(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Eg.call(e,n)&&++r&&!Eg.call(t,n)||!(n in t)||!aa(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Sa(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[l]=arguments[l+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Pn=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Pn.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new eu(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};Pn.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new rO(n,t.simple,t.async)),this};Pn.prototype._clone=function(){return new Pn(this.chain.slice(),this.nextRuleModifiers.slice())};Pn.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Pn.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new qp(r,t,o))}}),n};Pn.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new qp(n,t,r)}})};Pn.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){Sx(t,n.chain.slice(),r,o)})};function Sx(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){Sx(e,t,n,r)},function(i){r(new qp(o,e,i))})}else n(e)}var Cg=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function oO(e,t){return t===void 0&&(t=!1),{simple:function(n){return Cg(n,t)||e.check(n)===void 0},async:function(n){return Cg(n,t)||e.testAsync(n)}}}function $t(){return typeof Proxy<"u"?Ex(new Pn):vf(new Pn)}var la={};$t.extend=function(e){Object.assign(la,e)};$t.clearCustomRules=function(){la={}};function Ex(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=Ex(e._clone());if(r in gc)return o._applyModifier(gc[r],r);if(r in la)return o._applyRule(la[r],r);if(r in yf)return o._applyRule(yf[r],r)}})}function vf(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var l=[],a=arguments.length;a--;)l[a]=arguments[a];var u=vf(i._clone()),d=u._applyRule(o[s],s).apply(void 0,l);return d}}),i},n=t(yf,e),r=t(la,n);return Object.keys(gc).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=vf(r._clone());return i._applyModifier(gc[o],o)}})}),r}var gc={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return ol(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(ol(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&ol(t).every(e)}},async:function(e){return function(t){return Promise.all(ol(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return kg(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return kg(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function kg(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function ol(e){return typeof e=="string"?e.split(""):e}var yf={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||iO;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Bo("string")},boolean:function(){return Bo("boolean")},undefined:function(){return Bo("undefined")},null:function(){return Bo("null")},array:function(){return Bo("array")},object:function(){return Bo("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return sO(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:oO};function Bo(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function iO(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function sO(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var ge="colors",vt="sizes",K="space",aO={gap:K,gridGap:K,columnGap:K,gridColumnGap:K,rowGap:K,gridRowGap:K,inset:K,insetBlock:K,insetBlockEnd:K,insetBlockStart:K,insetInline:K,insetInlineEnd:K,insetInlineStart:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockEnd:K,marginBlockStart:K,marginInline:K,marginInlineEnd:K,marginInlineStart:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockEnd:K,paddingBlockStart:K,paddingInline:K,paddingInlineEnd:K,paddingInlineStart:K,top:K,right:K,bottom:K,left:K,scrollMargin:K,scrollMarginTop:K,scrollMarginRight:K,scrollMarginBottom:K,scrollMarginLeft:K,scrollMarginX:K,scrollMarginY:K,scrollMarginBlock:K,scrollMarginBlockEnd:K,scrollMarginBlockStart:K,scrollMarginInline:K,scrollMarginInlineEnd:K,scrollMarginInlineStart:K,scrollPadding:K,scrollPaddingTop:K,scrollPaddingRight:K,scrollPaddingBottom:K,scrollPaddingLeft:K,scrollPaddingX:K,scrollPaddingY:K,scrollPaddingBlock:K,scrollPaddingBlockEnd:K,scrollPaddingBlockStart:K,scrollPaddingInline:K,scrollPaddingInlineEnd:K,scrollPaddingInlineStart:K,fontSize:"fontSizes",background:ge,backgroundColor:ge,backgroundImage:ge,borderImage:ge,border:ge,borderBlock:ge,borderBlockEnd:ge,borderBlockStart:ge,borderBottom:ge,borderBottomColor:ge,borderColor:ge,borderInline:ge,borderInlineEnd:ge,borderInlineStart:ge,borderLeft:ge,borderLeftColor:ge,borderRight:ge,borderRightColor:ge,borderTop:ge,borderTopColor:ge,caretColor:ge,color:ge,columnRuleColor:ge,fill:ge,outline:ge,outlineColor:ge,stroke:ge,textDecorationColor:ge,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:vt,minBlockSize:vt,maxBlockSize:vt,inlineSize:vt,minInlineSize:vt,maxInlineSize:vt,width:vt,minWidth:vt,maxWidth:vt,height:vt,minHeight:vt,maxHeight:vt,flexBasis:vt,gridTemplateColumns:vt,gridTemplateRows:vt,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},lO=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Fi=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,lO))(t);return o in e?e[o]:e[o]=n(t,...r)}},co=Symbol.for("sxs.internal"),Yp=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),jg=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:cO}=Object.prototype,xf=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),uO=/\s+(?![^()]*\))/,Uo=e=>t=>e(...typeof t=="string"?String(t).split(uO):[t]),$g={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Uo((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Uo((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Uo((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Uo((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Uo((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Uo((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Xu=/([\d.]+)([^]*)/,dO=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,fO=(e,t)=>e in pO&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${xf(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${xf(e)}:${r}fit-content`)+i):String(t),pO={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},nr=e=>e?e+"-":"",Cx=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,l)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?nr(t)+(l.includes("$")?"":nr(n))+l.replace(/\$/g,"-"):l)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),hO=/\s*,\s*(?![^()]*\))/,mO=Object.prototype.toString,ci=(e,t,n,r,o)=>{let i,s,l;const a=(u,d,f)=>{let p,g;const m=y=>{for(p in y){const x=p.charCodeAt(0)===64,_=x&&Array.isArray(y[p])?y[p]:[y[p]];for(g of _){const C=/[A-Z]/.test(v=p)?v:v.replace(/-[^]/g,b=>b[1].toUpperCase()),E=typeof g=="object"&&g&&g.toString===mO&&(!r.utils[C]||!d.length);if(C in r.utils&&!E){const b=r.utils[C];if(b!==s){s=b,m(b(g)),s=null;continue}}else if(C in $g){const b=$g[C];if(b!==l){l=b,m(b(g)),l=null;continue}}if(x&&(w=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(b,k,j,P,T,M)=>{const I=Xu.test(k),H=.0625*(I?-1:1),[z,Y]=I?[P,k]:[k,P];return"("+(j[0]==="="?"":j[0]===">"===I?"max-":"min-")+z+":"+(j[0]!=="="&&j.length===1?Y.replace(Xu,(q,Q,L)=>Number(Q)+H*(j===">"?1:-1)+L):Y)+(T?") and ("+(T[0]===">"?"min-":"max-")+z+":"+(T.length===1?M.replace(Xu,(q,Q,L)=>Number(Q)+H*(T===">"?-1:1)+L):M):"")+")"})),E){const b=x?f.concat(p):[...f],k=x?[...d]:dO(d,p.split(hO));i!==void 0&&o(Rg(...i)),i=void 0,a(g,k,b)}else i===void 0&&(i=[[],d,f]),p=x||p.charCodeAt(0)!==36?p:`--${nr(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,g=E?g:typeof g=="number"?g&&C in gO?String(g)+"px":String(g):Cx(fO(C,g??""),r.prefix,r.themeMap[C]),i[0].push(`${x?`${p} `:`${xf(p)}:`}${g}`)}}var w,v};m(u),i!==void 0&&o(Rg(...i)),i=void 0};a(e,t,n)},Rg=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,gO={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Ng=e=>String.fromCharCode(e+(e>25?39:97)),uo=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Ng(n%52)+r;return Ng(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_s=["themed","global","styled","onevar","resonevar","allvar","inline"],vO=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},yO=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:l}=i;let a="";if(l.startsWith("--sxs"))return"";if(o[s-1]&&(a=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===i)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${l}`;return i.cssRules.length?`${a}${l}`:""}return l}).join("")},r=()=>{if(t){const{rules:l,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in l)delete l[u]}const o=Object(e).styleSheets||[];for(const l of o)if(vO(l)){for(let a=0,u=l.cssRules;u[a];++a){const d=Object(u[a]);if(d.type!==1)continue;const f=Object(u[a+1]);if(f.type!==4)continue;++a;const{cssText:p}=d;if(!p.startsWith("--sxs"))continue;const g=p.slice(14,-3).trim().split(/\s+/),m=_s[g[0]];m&&(t||(t={sheet:l,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:a,cache:new Set(g)})}if(t)break}if(!t){const l=(a,u)=>({type:u,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,l(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let l=_s.length-1;l>=0;--l){const a=_s[l];if(!s[a]){const u=_s[l+1],d=s[u]?s[u].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${l}}`,d),s[a]={group:i.cssRules[d+1],index:d,cache:new Set([l])}}xO(s[a])}};return r(),t},xO=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},fs=Symbol(),wO=Fi(),Tg=(e,t)=>wO(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[co]){r.type==null&&(r.type=o[co].type);for(const i of o[co].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(_O(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),bO(e,r,t)}),_O=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${nr(o.prefix)}c-${uo(r)}`,s=[],l=[],a=Object.create(null),u=[];for(const p in n)a[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){d=a,f=p,cO.call(d,f)||(a[p]="undefined");const g=e[p];for(const m in g){const y={[p]:String(m)};String(m)==="undefined"&&u.push(p);const w=g[m],v=[y,w,!jg(w)];s.push(v)}}var d,f;if(typeof t=="object"&&t)for(const p of t){let{css:g,...m}=p;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const y=[m,g,!jg(g)];l.push(y)}return[i,r,s,l,a,u]},bO=(e,t,n)=>{const[r,o,i,s]=SO(t.composers),l=typeof t.type=="function"||t.type.$$typeof?(f=>{function p(){for(let g=0;gp.rules[g]={apply:m=>p[fs].push([g,m])}),p})(n):null,a=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||EO;const{css:p,...g}=f,m={};for(const v in i)if(delete g[v],v in f){let x=f[v];typeof x=="object"&&x?m[v]={"@initial":i[v],...x}:(x=String(x),m[v]=x!=="undefined"||s.has(v)?x:i[v])}else m[v]=i[v];const y=new Set([...o]);for(const[v,x,_,C]of t.composers){n.rules.styled.cache.has(v)||(n.rules.styled.cache.add(v),ci(x,[`.${v}`],[],e,k=>{a.styled.apply(k)}));const E=Pg(_,m,e.media),b=Pg(C,m,e.media,!0);for(const k of E)if(k!==void 0)for(const[j,P,T]of k){const M=`${v}-${uo(P)}-${j}`;y.add(M);const I=(T?n.rules.resonevar:n.rules.onevar).cache,H=T?a.resonevar:a.onevar;I.has(M)||(I.add(M),ci(P,[`.${M}`],[],e,z=>{H.apply(z)}))}for(const k of b)if(k!==void 0)for(const[j,P]of k){const T=`${v}-${uo(P)}-${j}`;y.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),ci(P,[`.${T}`],[],e,M=>{a.allvar.apply(M)}))}}if(typeof p=="object"&&p){const v=`${r}-i${uo(p)}-css`;y.add(v),n.rules.inline.cache.has(v)||(n.rules.inline.cache.add(v),ci(p,[`.${v}`],[],e,x=>{a.inline.apply(x)}))}for(const v of String(f.className||"").trim().split(/\s+/))v&&y.add(v);const w=g.className=[...y].join(" ");return{type:t.type,className:w,selector:u,props:g,toString:()=>w,deferredInjector:l}};return Yp(d,{className:r,selector:u,[co]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},SO=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,l]of e){t===""&&(t=i),n.push(i),o.push(...l);for(const a in s){const u=s[a];(r[a]===void 0||u!=="undefined"||l.includes(u))&&(r[a]=u)}}return[t,n,r,new Set(o)]},Pg=(e,t,n,r)=>{const o=[];e:for(let[i,s,l]of e){if(l)continue;let a,u=0,d=!1;for(a in i){const f=i[a];let p=t[a];if(p!==f){if(typeof p!="object"||!p)continue e;{let g,m,y=0;for(const w in p){if(f===String(p[w])){if(w!=="@initial"){const v=w.slice(1);(m=m||[]).push(v in n?n[v]:w.replace(/^@media ?/,"")),d=!0}u+=y,g=!0}++y}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[u]=o[u]||[]).push([r?"cv":`${a}-${i[a]}`,s,d])}return o},EO={},CO=Fi(),kO=(e,t)=>CO(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=uo(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let l of[].concat(o["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,t.sheet.insertRule(`@import ${l};`,s++);delete o["@import"]}ci(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Yp(r,{toString:r})}),jO=Fi(),$O=(e,t)=>jO(e,()=>n=>{const r=`${nr(e.prefix)}k-${uo(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];ci(n,[],[],e,l=>i.push(l));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return Yp(o,{get name(){return o()},toString:o})}),RO=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+nr(this.prefix)+nr(this.scale)+this.token}toString(){return this.computedValue}},NO=Fi(),TO=(e,t)=>NO(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${nr(e.prefix)}t-${uo(r)}`}`,i={},s=[];for(const a in r){i[a]={};for(const u in r[a]){const d=`--${nr(e.prefix)}${a}-${u}`,f=Cx(String(r[a][u]),e.prefix,a);i[a][u]=new RO(u,f,a,e.prefix),s.push(`${d}:${f}`)}}const l=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const a=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(a)}return n};return{...i,get className(){return l()},selector:o,toString:l}}),PO=Fi(),OO=Fi(),AO=e=>{const t=(n=>{let r=!1;const o=PO(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",l=typeof i.media=="object"&&i.media||{},a=typeof i.root=="object"?i.root||null:globalThis.document||null,u=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:l,theme:u,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...aO},utils:typeof i.utils=="object"&&i.utils||{}},f=yO(a),p={css:Tg(d,f),globalCss:kO(d,f),keyframes:$O(d,f),createTheme:TO(d,f),reset(){f.reset(),p.theme.toString()},theme:{},sheet:f,config:d,prefix:s,getCssText:f.toString,toString:f.toString};return String(p.theme=p.createTheme(u)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>OO(n,()=>{const o=Tg(n,r);return(...i)=>{const s=o(...i),l=s[co].type,a=S.forwardRef((u,d)=>{const f=u&&u.as||l,{props:p,deferredInjector:g}=s(u);return delete p.as,p.ref=d,g?S.createElement(S.Fragment,null,S.createElement(f,p),S.createElement(g,null)):S.createElement(f,p)});return a.className=s.className,a.displayName=`Styled.${l.displayName||l.name||l}`,a.selector=s.selector,a.toString=()=>s.selector,a[co]=s[co],a}}))(t),t};function MO(e,t,n){return Math.max(t,Math.min(e,n))}const pt={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Og(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Ag(e,t,n,r=.15){return r===0?MO(e,t,n):en?+Og(e-n,n-t,r)+n:e}function DO(e,[t,n],[r,o]){const[[i,s],[l,a]]=e;return[Ag(t,i,s,r),Ag(n,l,a,o)]}function IO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LO(e){var t=IO(e,"string");return typeof t=="symbol"?t:String(t)}function Ct(e,t,n){return t=LO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function GO(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function $x(e){return tu(e)?GO(e)[0]:e}function KO(e){return VO(e).map(t=>t.identifier)}function Ju(e){const t=$x(e);return tu(e)?t.identifier:t.pointerId}function Ig(e){const t=$x(e);return[t.clientX,t.clientY]}function qO(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function vc(e,...t){return typeof e=="function"?e(...t):e}function YO(){}function QO(...e){return e.length===0?YO:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Lg(e,t){return Object.assign({},t,e||{})}const XO=32;class JO{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?vc(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,qO(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const b=n._delta.map(Math.abs);pt.addTo(n._distance,b)}this.axisIntent&&this.axisIntent(t);const[s,l]=n._movement,[a,u]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=a&&f[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=a&&Math.sign(s)*a),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[b,k]=f;p[0]=d[0]!==!1?b-d[0]:0,p[1]=d[1]!==!1?k-d[1]:0}else p[0]=d[0]!==!1?s-d[0]:0,p[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=vc(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[y,w]=n.offset,[[v,x],[_,C]]=n._bounds;n.overflow=[yx?1:0,w<_?-1:w>C?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=DO(n._bounds,n.offset,E),n.delta=pt.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>XO)){n.delta=pt.sub(n.offset,g);const b=n.delta.map(Math.abs);pt.addTo(n.distance,b),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[b[0]/i,b[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(Pe(Pe(Pe({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function ZO([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class eA extends JO{constructor(...t){super(...t),Ct(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=pt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=pt.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[jx(t)]:r.axisThreshold;n.axis=ZO(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const tA=e=>e,Fg=.15,Rx={enabled(e=!0){return e},eventOptions(e,t,n){return Pe(Pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Fg,Fg];case!1:return[0,0];default:return pt.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return pt.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||tA},threshold(e){return pt.toVector(e,0)}},nA=0,Ea=Pe(Pe({},Rx),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=nA){return e},bounds(e={}){if(typeof e=="function")return i=>Ea.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),zg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class rA extends eA{constructor(...t){super(...t),Ct(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Ea.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Ju(t),r._pointerActive=!0,this.computeValues(Ig(t)),this.computeInitial(),n.preventScrollAxis&&jx(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Ju(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=Ig(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=pt.sub(i,n._values),this.computeValues(i)),pt.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Ju(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[l,a]=n._delta,[u,d]=n._movement,[f,p]=r.swipe.velocity,[g,m]=r.swipe.distance,y=r.swipe.duration;if(n.elapsedTimef&&Math.abs(u)>g&&(n.swipe[0]=Math.sign(l)),v>p&&Math.abs(d)>m&&(n.swipe[1]=Math.sign(a))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,oA(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=zg[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,pt.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in zg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function oA(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Ca=typeof window<"u"&&window.document&&window.document.createElement;function Nx(){return Ca&&"ontouchstart"in window}function iA(){return Nx()||Ca&&window.navigator.maxTouchPoints>1}function sA(){return Ca&&"onpointerdown"in window}function aA(){return Ca&&"exitPointerLock"in window.document}function lA(){try{return"constructor"in GestureEvent}catch{return!1}}const Yt={isBrowser:Ca,gesture:lA(),touch:Nx(),touchscreen:iA(),pointer:sA(),pointerLock:aA()},cA=250,uA=180,dA=.5,fA=50,pA=250,hA=10,Bg={mouse:0,touch:0,pen:8},mA=Pe(Pe({},Ea),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Yt.pointerLock,Yt.touch&&n?"touch":this.pointerLock?"mouse":Yt.pointer&&!o?"pointer":Yt.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?cA:void 0,!(!Yt.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=pt.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=dA,distance:t=fA,duration:n=pA}={}){return{velocity:this.transform(pt.toVector(e)),distance:this.transform(pt.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return uA;case!1:return 0;default:return e}},axisThreshold(e){return e?Pe(Pe({},Bg),e):Bg},keyboardDisplacement(e=hA){return e}});Pe(Pe({},Rx),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Yt.touch&&Yt.gesture)return"gesture";if(Yt.touch&&r)return"touch";if(Yt.touchscreen){if(Yt.pointer)return"pointer";if(Yt.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const l=Lg(vc(n,s),{min:-1/0,max:1/0});return[l.min,l.max]},i=s=>{const l=Lg(vc(r,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",pt.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Pe(Pe({},Ea),{},{mouseOnly:(e=!0)=>e});Pe(Pe({},Ea),{},{mouseOnly:(e=!0)=>e});const Tx=new Map,wf=new Map;function gA(e){Tx.set(e.key,e.engine),wf.set(e.key,e.resolver)}const vA={key:"drag",engine:rA,resolver:mA};function yA(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function xA(e,t){if(e==null)return{};var n=yA(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const wA={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Yt.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},_A=["target","eventOptions","window","enabled","transform"];function Ol(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Ol(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function bA(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:l,transform:a}=r,u=xA(r,_A);if(n.shared=Ol({target:o,eventOptions:i,window:s,enabled:l,transform:a},wA),t){const d=wf.get(t);n[t]=Ol(Pe({shared:n.shared},u),d)}else for(const d in u){const f=wf.get(d);f&&(n[d]=Ol(Pe({shared:n.shared},u[d]),f))}return n}class Px{constructor(t,n){Ct(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,l=WO(n,r),a=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Pe(Pe({},a),i);t.addEventListener(l,o,u);const d=()=>{t.removeEventListener(l,o,u),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class SA{constructor(){Ct(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class EA{constructor(t){Ct(this,"gestures",new Set),Ct(this,"_targetEventStore",new Px(this)),Ct(this,"gestureEventStores",{}),Ct(this,"gestureTimeoutStores",{}),Ct(this,"handlers",{}),Ct(this,"config",{}),Ct(this,"pointerIds",new Set),Ct(this,"touchIds",new Set),Ct(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),CA(this,t)}setEventIds(t){if(tu(t))return this.touchIds=new Set(KO(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=bA(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const l=this.config[s],a=Ug(r,l.eventOptions,!!o);if(l.enabled){const u=Tx.get(s);new u(this,t,s).bind(a)}}const i=Ug(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",l=>this.nativeHandlers[s](Pe(Pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const i in r)r[i]=QO(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:l,passive:a}=HO(i);this._targetEventStore.add(o,s,"",r[i],{capture:l,passive:a})}}}}function Ho(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Px(e,t),e.gestureTimeoutStores[t]=new SA}function CA(e,t){t.drag&&Ho(e,"drag"),t.wheel&&Ho(e,"wheel"),t.scroll&&Ho(e,"scroll"),t.move&&Ho(e,"move"),t.pinch&&Ho(e,"pinch"),t.hover&&Ho(e,"hover")}const Ug=(e,t,n)=>(r,o,i,s={},l=!1)=>{var a,u;const d=(a=s.capture)!==null&&a!==void 0?a:t.capture,f=(u=s.passive)!==null&&u!==void 0?u:t.passive;let p=l?r:BO(r,o,d);n&&f&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function kA(e,t={},n,r){const o=S.useMemo(()=>new EA(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),S.useEffect(o.effect.bind(o)),S.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function jA(e,t){return gA(vA),kA({drag:e},t||{},"drag")}function Wn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ox(e,t=[]){let n=[];function r(i,s){const l=h.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:p,children:g,...m}=f,y=(p==null?void 0:p[e][a])||l,w=h.useMemo(()=>m,Object.values(m));return h.createElement(y.Provider,{value:w},g)}function d(f,p){const g=(p==null?void 0:p[e][a])||l,m=h.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,$A(o,...t)]}function $A(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function zi(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function RA(e,t=globalThis==null?void 0:globalThis.document){const n=zi(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const _f="dismissableLayer.update",NA="dismissableLayer.pointerDownOutside",TA="dismissableLayer.focusOutside";let Hg;const PA=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),OA=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:a,...u}=e,d=h.useContext(PA),[f,p]=h.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=h.useState({}),y=Li(t,j=>p(j)),w=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(v),_=f?w.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,E=_>=x,b=AA(j=>{const P=j.target,T=[...d.branches].some(M=>M.contains(P));!E||T||(i==null||i(j),l==null||l(j),j.defaultPrevented||a==null||a())},g),k=MA(j=>{const P=j.target;[...d.branches].some(M=>M.contains(P))||(s==null||s(j),l==null||l(j),j.defaultPrevented||a==null||a())},g);return RA(j=>{_===d.layers.size-1&&(o==null||o(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},g),h.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Hg=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Wg(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Hg)}},[f,g,r,d]),h.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Wg())},[f,d]),h.useEffect(()=>{const j=()=>m({});return document.addEventListener(_f,j),()=>document.removeEventListener(_f,j)},[]),h.createElement(So.div,Ge({},u,{ref:y,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Wn(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Wn(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Wn(e.onPointerDownCapture,b.onPointerDownCapture)}))});function AA(e,t=globalThis==null?void 0:globalThis.document){const n=zi(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let d=function(){Ax(NA,n,u,{discrete:!0})};var a=d;const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function MA(e,t=globalThis==null?void 0:globalThis.document){const n=zi(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ax(TA,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wg(){const e=new CustomEvent(_f);document.dispatchEvent(e)}function Ax(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?eO(o,i):o.dispatchEvent(i)}const Ni=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},DA=i0["useId".toString()]||(()=>{});let IA=0;function LA(e){const[t,n]=h.useState(DA());return Ni(()=>{e||n(r=>r??String(IA++))},[e]),e||(t?`radix-${t}`:"")}const FA=["top","right","bottom","left"],zr=Math.min,Dt=Math.max,yc=Math.round,il=Math.floor,Br=e=>({x:e,y:e}),zA={left:"right",right:"left",bottom:"top",top:"bottom"},BA={start:"end",end:"start"};function bf(e,t,n){return Dt(e,zr(t,n))}function rr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Bi(e){return e.split("-")[1]}function Qp(e){return e==="x"?"y":"x"}function Xp(e){return e==="y"?"height":"width"}function Ui(e){return["top","bottom"].includes(or(e))?"y":"x"}function Jp(e){return Qp(Ui(e))}function UA(e,t,n){n===void 0&&(n=!1);const r=Bi(e),o=Jp(e),i=Xp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=xc(s)),[s,xc(s)]}function HA(e){const t=xc(e);return[Sf(e),t,Sf(t)]}function Sf(e){return e.replace(/start|end/g,t=>BA[t])}function WA(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function VA(e,t,n,r){const o=Bi(e);let i=WA(or(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Sf)))),i}function xc(e){return e.replace(/left|right|bottom|top/g,t=>zA[t])}function GA(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?GA(e):{top:e,right:e,bottom:e,left:e}}function wc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Vg(e,t,n){let{reference:r,floating:o}=e;const i=Ui(t),s=Jp(t),l=Xp(s),a=or(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let g;switch(a){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Bi(t)){case"start":g[s]-=p*(n&&u?-1:1);break;case"end":g[s]+=p*(n&&u?-1:1);break}return g}const KA=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Vg(u,r,a),p=r,g={},m=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=rr(e,t)||{};if(u==null)return{};const f=Mx(d),p={x:n,y:r},g=Jp(o),m=Xp(g),y=await s.getDimensions(u),w=g==="y",v=w?"top":"left",x=w?"bottom":"right",_=w?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[g]-p[g]-i.floating[m],E=p[g]-i.reference[g],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=b?b[_]:0;(!k||!await(s.isElement==null?void 0:s.isElement(b)))&&(k=l.floating[_]||i.floating[m]);const j=C/2-E/2,P=k/2-y[m]/2-1,T=zr(f[v],P),M=zr(f[x],P),I=T,H=k-y[m]-M,z=k/2-y[m]/2+j,Y=bf(I,z,H),q=!a.arrow&&Bi(o)!=null&&z!=Y&&i.reference[m]/2-(zI<=0)){var P,T;const I=(((P=i.flip)==null?void 0:P.index)||0)+1,H=E[I];if(H)return{data:{index:I,overflows:j},reset:{placement:H}};let z=(T=j.filter(Y=>Y.overflows[0]<=0).sort((Y,q)=>Y.overflows[1]-q.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(g){case"bestFit":{var M;const Y=(M=j.map(q=>[q.placement,q.overflows.filter(Q=>Q>0).reduce((Q,L)=>Q+L,0)]).sort((q,Q)=>q[1]-Q[1])[0])==null?void 0:M[0];Y&&(z=Y);break}case"initialPlacement":z=l;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Kg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qg(e){return FA.some(t=>e[t]>=0)}const YA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rr(e,t);switch(r){case"referenceHidden":{const i=await ca(t,{...o,elementContext:"reference"}),s=Kg(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qg(s)}}}case"escaped":{const i=await ca(t,{...o,altBoundary:!0}),s=Kg(i,n.floating);return{data:{escapedOffsets:s,escaped:qg(s)}}}default:return{}}}}};async function QA(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=or(n),l=Bi(n),a=Ui(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&a?-1:1,f=rr(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),a?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const XA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await QA(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},JA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:v,y:x}=w;return{x:v,y:x}}},...a}=rr(e,t),u={x:n,y:r},d=await ca(t,a),f=Ui(or(o)),p=Qp(f);let g=u[p],m=u[f];if(i){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",x=g+d[w],_=g-d[v];g=bf(x,g,_)}if(s){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=m+d[w],_=m-d[v];m=bf(x,m,_)}const y=l.fn({...t,[p]:g,[f]:m});return{...y,data:{x:y.x-n,y:y.y-r}}}}},ZA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=rr(e,t),d={x:n,y:r},f=Ui(o),p=Qp(f);let g=d[p],m=d[f];const y=rr(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const _=p==="y"?"height":"width",C=i.reference[p]-i.floating[_]+w.mainAxis,E=i.reference[p]+i.reference[_]-w.mainAxis;gE&&(g=E)}if(u){var v,x;const _=p==="y"?"width":"height",C=["top","left"].includes(or(o)),E=i.reference[f]-i.floating[_]+(C&&((v=s.offset)==null?void 0:v[f])||0)+(C?0:w.crossAxis),b=i.reference[f]+i.reference[_]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?w.crossAxis:0);mb&&(m=b)}return{[p]:g,[f]:m}}}},eM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...l}=rr(e,t),a=await ca(t,l),u=or(n),d=Bi(n),f=Ui(n)==="y",{width:p,height:g}=r.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m=d==="end"?"top":"bottom");const w=g-a[m],v=p-a[y],x=!t.middlewareData.shift;let _=w,C=v;if(f){const b=p-a.left-a.right;C=d||x?zr(v,b):b}else{const b=g-a.top-a.bottom;_=d||x?zr(w,b):b}if(x&&!d){const b=Dt(a.left,0),k=Dt(a.right,0),j=Dt(a.top,0),P=Dt(a.bottom,0);f?C=p-2*(b!==0||k!==0?b+k:Dt(a.left,a.right)):_=g-2*(j!==0||P!==0?j+P:Dt(a.top,a.bottom))}await s({...t,availableWidth:C,availableHeight:_});const E=await o.getDimensions(i.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ur(e){return Dx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(Dx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dx(e){return e instanceof Node||e instanceof Ft(e).Node}function ir(e){return e instanceof Element||e instanceof Ft(e).Element}function On(e){return e instanceof HTMLElement||e instanceof Ft(e).HTMLElement}function Yg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ft(e).ShadowRoot}function ka(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function tM(e){return["table","td","th"].includes(Ur(e))}function Zp(e){const t=eh(),n=nn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function nM(e){let t=Ti(e);for(;On(t)&&!nu(t);){if(Zp(t))return t;t=Ti(t)}return null}function eh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nu(e){return["html","body","#document"].includes(Ur(e))}function nn(e){return Ft(e).getComputedStyle(e)}function ru(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ti(e){if(Ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yg(e)&&e.host||ar(e);return Yg(t)?t.host:t}function Ix(e){const t=Ti(e);return nu(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&ka(t)?t:Ix(t)}function ua(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ix(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ft(o);return i?t.concat(s,s.visualViewport||[],ka(o)?o:[],s.frameElement&&n?ua(s.frameElement):[]):t.concat(o,ua(o,[],n))}function Lx(e){const t=nn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=On(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=yc(n)!==i||yc(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function th(e){return ir(e)?e:e.contextElement}function wi(e){const t=th(e);if(!On(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lx(t);let s=(i?yc(n.width):n.width)/r,l=(i?yc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const rM=Br(0);function Fx(e){const t=Ft(e);return!eh()||!t.visualViewport?rM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ft(e)?!1:t}function yo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=th(e);let s=Br(1);t&&(r?ir(r)&&(s=wi(r)):s=wi(e));const l=oM(i,n,r)?Fx(i):Br(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const p=Ft(i),g=r&&ir(r)?Ft(r):r;let m=p.frameElement;for(;m&&r&&g!==p;){const y=wi(m),w=m.getBoundingClientRect(),v=nn(m),x=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,_=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;a*=y.x,u*=y.y,d*=y.x,f*=y.y,a+=x,u+=_,m=Ft(m).frameElement}}return wc({width:d,height:f,x:a,y:u})}function iM(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=On(n),i=ar(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},l=Br(1);const a=Br(0);if((o||!o&&r!=="fixed")&&((Ur(n)!=="body"||ka(i))&&(s=ru(n)),On(n))){const u=yo(n);l=wi(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+a.x,y:t.y*l.y-s.scrollTop*l.y+a.y}}function sM(e){return Array.from(e.getClientRects())}function zx(e){return yo(ar(e)).left+ru(e).scrollLeft}function aM(e){const t=ar(e),n=ru(e),r=e.ownerDocument.body,o=Dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+zx(e);const l=-n.scrollTop;return nn(r).direction==="rtl"&&(s+=Dt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function lM(e,t){const n=Ft(e),r=ar(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=eh();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function cM(e,t){const n=yo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=On(e)?wi(e):Br(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Qg(e,t,n){let r;if(t==="viewport")r=lM(e,n);else if(t==="document")r=aM(ar(e));else if(ir(t))r=cM(t,n);else{const o=Fx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return wc(r)}function Bx(e,t){const n=Ti(e);return n===t||!ir(n)||nu(n)?!1:nn(n).position==="fixed"||Bx(n,t)}function uM(e,t){const n=t.get(e);if(n)return n;let r=ua(e,[],!1).filter(l=>ir(l)&&Ur(l)!=="body"),o=null;const i=nn(e).position==="fixed";let s=i?Ti(e):e;for(;ir(s)&&!nu(s);){const l=nn(s),a=Zp(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ka(s)&&!a&&Bx(e,s))?r=r.filter(d=>d!==s):o=l,s=Ti(s)}return t.set(e,r),r}function dM(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?uM(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,d)=>{const f=Qg(t,d,o);return u.top=Dt(f.top,u.top),u.right=zr(f.right,u.right),u.bottom=zr(f.bottom,u.bottom),u.left=Dt(f.left,u.left),u},Qg(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function fM(e){return Lx(e)}function pM(e,t,n){const r=On(t),o=ar(t),i=n==="fixed",s=yo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Br(0);if(r||!r&&!i)if((Ur(t)!=="body"||ka(o))&&(l=ru(t)),r){const u=yo(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else o&&(a.x=zx(o));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Xg(e,t){return!On(e)||nn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ux(e,t){const n=Ft(e);if(!On(e))return n;let r=Xg(e,t);for(;r&&tM(r)&&nn(r).position==="static";)r=Xg(r,t);return r&&(Ur(r)==="html"||Ur(r)==="body"&&nn(r).position==="static"&&!Zp(r))?n:r||nM(e)||n}const hM=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ux,i=this.getDimensions;return{reference:pM(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function mM(e){return nn(e).direction==="rtl"}const gM={convertOffsetParentRelativeRectToViewportRelativeRect:iM,getDocumentElement:ar,getClippingRect:dM,getOffsetParent:Ux,getElementRects:hM,getClientRects:sM,getDimensions:fM,getScale:wi,isElement:ir,isRTL:mM};function vM(e,t){let n=null,r;const o=ar(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const g=il(d),m=il(o.clientWidth-(u+f)),y=il(o.clientHeight-(d+p)),w=il(u),x={rootMargin:-g+"px "+-m+"px "+-y+"px "+-w+"px",threshold:Dt(0,zr(1,a))||1};let _=!0;function C(E){const b=E[0].intersectionRatio;if(b!==a){if(!_)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),i}function yM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=th(e),d=o||i?[...u?ua(u):[],...ua(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=u&&l?vM(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(v=>{let[x]=v;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let m,y=a?yo(e):null;a&&w();function w(){const v=yo(e);y&&(v.x!==y.x||v.y!==y.y||v.width!==y.width||v.height!==y.height)&&n(),y=v,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,a&&cancelAnimationFrame(m)}}const xM=(e,t,n)=>{const r=new Map,o={platform:gM,...n},i={...o.platform,_c:r};return KA(e,t,{...o,platform:i})},wM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Gg({element:r.current,padding:o}).fn(n):{}:r?Gg({element:r,padding:o}).fn(n):{}}}};var Al=typeof document<"u"?h.useLayoutEffect:h.useEffect;function _c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!_c(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_c(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Hx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jg(e,t){const n=Hx(e);return Math.round(t*n)/n}function Zg(e){const t=h.useRef(e);return Al(()=>{t.current=e}),t}function _M(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=h.useState(r);_c(p,r)||g(r);const[m,y]=h.useState(null),[w,v]=h.useState(null),x=h.useCallback(q=>{q!=b.current&&(b.current=q,y(q))},[y]),_=h.useCallback(q=>{q!==k.current&&(k.current=q,v(q))},[v]),C=i||m,E=s||w,b=h.useRef(null),k=h.useRef(null),j=h.useRef(d),P=Zg(a),T=Zg(o),M=h.useCallback(()=>{if(!b.current||!k.current)return;const q={placement:t,strategy:n,middleware:p};T.current&&(q.platform=T.current),xM(b.current,k.current,q).then(Q=>{const L={...Q,isPositioned:!0};I.current&&!_c(j.current,L)&&(j.current=L,bo.flushSync(()=>{f(L)}))})},[p,t,n,T]);Al(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(q=>({...q,isPositioned:!1})))},[u]);const I=h.useRef(!1);Al(()=>(I.current=!0,()=>{I.current=!1}),[]),Al(()=>{if(C&&(b.current=C),E&&(k.current=E),C&&E){if(P.current)return P.current(C,E,M);M()}},[C,E,M,P]);const H=h.useMemo(()=>({reference:b,floating:k,setReference:x,setFloating:_}),[x,_]),z=h.useMemo(()=>({reference:C,floating:E}),[C,E]),Y=h.useMemo(()=>{const q={position:n,left:0,top:0};if(!z.floating)return q;const Q=Jg(z.floating,d.x),L=Jg(z.floating,d.y);return l?{...q,transform:"translate("+Q+"px, "+L+"px)",...Hx(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:L}},[n,l,z.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:M,refs:H,elements:z,floatingStyles:Y}),[d,M,H,z,Y])}const bM=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return h.createElement(So.svg,Ge({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),SM=bM;function EM(e){const[t,n]=h.useState(void 0);return Ni(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Wx="Popper",[Vx,Gx]=Ox(Wx),[CM,Kx]=Vx(Wx),kM=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(CM,{scope:t,anchor:r,onAnchorChange:o},n)},jM="PopperAnchor",$M=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Kx(jM,n),s=h.useRef(null),l=Li(t,s);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:h.createElement(So.div,Ge({},o,{ref:l}))}),qx="PopperContent",[RM,NM]=Vx(qx),TM=h.forwardRef((e,t)=>{var n,r,o,i,s,l,a,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:_="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:b,...k}=e,j=Kx(qx,d),[P,T]=h.useState(null),M=Li(t,qe=>T(qe)),[I,H]=h.useState(null),z=EM(I),Y=(n=z==null?void 0:z.width)!==null&&n!==void 0?n:0,q=(r=z==null?void 0:z.height)!==null&&r!==void 0?r:0,Q=f+(g!=="center"?"-"+g:""),L=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},V=Array.isArray(v)?v:[v],J=V.length>0,re={padding:L,boundary:V.filter(MM),altBoundary:J},{refs:pe,floatingStyles:it,placement:Me,isPositioned:He,middlewareData:ye}=_M({strategy:"fixed",placement:Q,whileElementsMounted:(...qe)=>yM(...qe,{animationFrame:E==="always"}),elements:{reference:j.anchor},middleware:[XA({mainAxis:p+q,alignmentAxis:m}),w&&JA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?ZA():void 0,...re}),w&&qA({...re}),eM({...re,apply:({elements:qe,rects:In,availableWidth:Gi,availableHeight:Ki})=>{const{width:qi,height:Co}=In.reference,Pt=qe.floating.style;Pt.setProperty("--radix-popper-available-width",`${Gi}px`),Pt.setProperty("--radix-popper-available-height",`${Ki}px`),Pt.setProperty("--radix-popper-anchor-width",`${qi}px`),Pt.setProperty("--radix-popper-anchor-height",`${Co}px`)}}),I&&wM({element:I,padding:y}),DM({arrowWidth:Y,arrowHeight:q}),C&&YA({strategy:"referenceHidden",...re})]}),[st,xn]=Yx(Me),Dn=zi(b);Ni(()=>{He&&(Dn==null||Dn())},[He,Dn]);const Eo=(o=ye.arrow)===null||o===void 0?void 0:o.x,Ke=(i=ye.arrow)===null||i===void 0?void 0:i.y,wn=((s=ye.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[on,Kr]=h.useState();return Ni(()=>{P&&Kr(window.getComputedStyle(P).zIndex)},[P]),h.createElement("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...it,transform:He?it.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:on,"--radix-popper-transform-origin":[(l=ye.transformOrigin)===null||l===void 0?void 0:l.x,(a=ye.transformOrigin)===null||a===void 0?void 0:a.y].join(" ")},dir:e.dir},h.createElement(RM,{scope:d,placedSide:st,onArrowChange:H,arrowX:Eo,arrowY:Ke,shouldHideArrow:wn},h.createElement(So.div,Ge({"data-side":st,"data-align":xn},k,{ref:M,style:{...k.style,animation:He?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),PM="PopperArrow",OM={top:"bottom",right:"left",bottom:"top",left:"right"},AM=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=NM(PM,r),s=OM[i.placedSide];return h.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},h.createElement(SM,Ge({},o,{ref:n,style:{...o.style,display:"block"}})))});function MM(e){return e!==null}const DM=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:l,rects:a,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,y]=Yx(l),w={start:"0%",center:"50%",end:"100%"}[y],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,x=((i=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let _="",C="";return m==="bottom"?(_=f?w:`${v}px`,C=`${-g}px`):m==="top"?(_=f?w:`${v}px`,C=`${a.floating.height+g}px`):m==="right"?(_=`${-g}px`,C=f?w:`${x}px`):m==="left"&&(_=`${a.floating.width+g}px`,C=f?w:`${x}px`),{data:{x:_,y:C}}}});function Yx(e){const[t,n="center"]=e.split("-");return[t,n]}const IM=kM,LM=$M,FM=TM,zM=AM;function BM(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Qx=e=>{const{present:t,children:n}=e,r=UM(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Li(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Qx.displayName="Presence";function UM(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[l,a]=BM(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=sl(r.current);i.current=l==="mounted"?u:"none"},[l]),Ni(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,g=sl(u);e?a("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ni(()=>{if(t){const u=f=>{const g=sl(r.current).includes(f.animationName);f.target===t&&g&&bo.flushSync(()=>a("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=sl(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function sl(e){return(e==null?void 0:e.animationName)||"none"}function HM({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=WM({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,l=zi(n),a=h.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[i,e,o,l]);return[s,a]}function WM({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=zi(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const VM=h.forwardRef((e,t)=>h.createElement(So.span,Ge({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),GM=VM,[ou,V8]=Ox("Tooltip",[Gx]),iu=Gx(),KM="TooltipProvider",Ef="tooltip.open",[G8,nh]=ou(KM),rh="Tooltip",[qM,su]=ou(rh),YM=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=nh(rh,e.__scopeTooltip),u=iu(t),[d,f]=h.useState(null),p=LA(),g=h.useRef(0),m=s??a.disableHoverableContent,y=l??a.delayDuration,w=h.useRef(!1),[v=!1,x]=HM({prop:r,defaultProp:o,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(Ef))):a.onClose(),i==null||i(k)}}),_=h.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),C=h.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,x(!0)},[x]),E=h.useCallback(()=>{window.clearTimeout(g.current),x(!1)},[x]),b=h.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,x(!0)},y)},[y,x]);return h.useEffect(()=>()=>window.clearTimeout(g.current),[]),h.createElement(IM,u,h.createElement(qM,{scope:t,contentId:p,open:v,stateAttribute:_,trigger:d,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayed?b():C()},[a.isOpenDelayed,b,C]),onTriggerLeave:h.useCallback(()=>{m?E():window.clearTimeout(g.current)},[E,m]),onOpen:C,onClose:E,disableHoverableContent:m},n))},ev="TooltipTrigger",QM=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=su(ev,n),i=nh(ev,n),s=iu(n),l=h.useRef(null),a=Li(t,l,o.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(LM,Ge({asChild:!0},s),h.createElement(So.button,Ge({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onPointerMove:Wn(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Wn(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Wn(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Wn(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Wn(e.onBlur,o.onClose),onClick:Wn(e.onClick,o.onClose)})))}),XM="TooltipPortal",[K8,JM]=ou(XM,{forceMount:void 0}),da="TooltipContent",ZM=h.forwardRef((e,t)=>{const n=JM(da,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=su(da,e.__scopeTooltip);return h.createElement(Qx,{present:r||s.open},s.disableHoverableContent?h.createElement(Xx,Ge({side:o},i,{ref:t})):h.createElement(eD,Ge({side:o},i,{ref:t})))}),eD=h.forwardRef((e,t)=>{const n=su(da,e.__scopeTooltip),r=nh(da,e.__scopeTooltip),o=h.useRef(null),i=Li(t,o),[s,l]=h.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,p=h.useCallback(()=>{l(null),f(!1)},[f]),g=h.useCallback((m,y)=>{const w=m.currentTarget,v={x:m.clientX,y:m.clientY},x=iD(v,w.getBoundingClientRect()),_=sD(v,x),C=aD(y.getBoundingClientRect()),E=cD([..._,...C]);l(E),f(!0)},[f]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(a&&d){const m=w=>g(w,d),y=w=>g(w,a);return a.addEventListener("pointerleave",m),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",y)}}},[a,d,g,p]),h.useEffect(()=>{if(s){const m=y=>{const w=y.target,v={x:y.clientX,y:y.clientY},x=(a==null?void 0:a.contains(w))||(d==null?void 0:d.contains(w)),_=!lD(v,s);x?p():_&&(p(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[a,d,s,u,p]),h.createElement(Xx,Ge({},e,{ref:i}))}),[tD,nD]=ou(rh,{isInside:!1}),Xx=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=su(da,n),u=iu(n),{onClose:d}=a;return h.useEffect(()=>(document.addEventListener(Ef,d),()=>document.removeEventListener(Ef,d)),[d]),h.useEffect(()=>{if(a.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),h.createElement(OA,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},h.createElement(FM,Ge({"data-state":a.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(wx,null,r),h.createElement(tD,{scope:n,isInside:!0},h.createElement(GM,{id:a.contentId,role:"tooltip"},o||r))))}),rD="TooltipArrow",oD=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=iu(n);return nD(rD,n).isInside?null:h.createElement(zM,Ge({},o,r,{ref:t}))});function iD(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function aD(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function lD(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(u-l)*(r-a)/(d-a)+l&&(o=!o)}return o}function cD(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),uD(t)}function uD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const dD=YM,fD=QM,pD=ZM,hD=oD;function mD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ve(e,t){if(e==null)return{};var n=mD(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let Ne;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(Ne||(Ne={}));const gD={[Ne.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[Ne.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[Ne.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[Ne.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[Ne.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[Ne.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[Ne.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[Ne.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[Ne.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[Ne.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[Ne.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Jx(e,t,...n){const[r,...o]=gD[t](...n);console[e]("LEVA: "+r,...o)}const Vn=Jx.bind(null,"warn"),vD=Jx.bind(null,"log"),yD=["value"],xD=["schema"],wD=["value"],Zx=[],xo={};function tv(e){let{value:t}=e,n=ve(e,yD);for(let r of Zx){const o=r(t,n);if(o)return o}}function lr(e,t){let{schema:n}=t,r=ve(t,xD);if(e in xo){Vn(Ne.ALREADY_REGISTERED_TYPE,e);return}Zx.push((o,i)=>n(o,i)&&e),xo[e]=r}function Zu(e,t,n,r){const{normalize:o}=xo[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=ve(t,wD);return{value:i,settings:s}}function _D(e,t,n,r,o,i){const{sanitize:s}=xo[e];return s?s(t,n,r,o,i):t}function nv(e,t,n){const{format:r}=xo[e];return r?r(t,n):t}function bD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=yr(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},ED=Math.log(10);function ov(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/ED)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const bc=(e,t,n)=>n===t?0:(Hr(e,t,n)-t)/(n-t),Sc=(e,t,n)=>e*(n-t)+t,CD=()=>"_"+Math.random().toString(36).substr(2,9),iv=/\(([0-9+\-*/^ .]+)\)/,sv=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,av=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,lv=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,cv=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,uv=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function yr(e){if(isNaN(Number(e)))if(iv.test(e)){const t=e.replace(iv,(n,r)=>String(yr(r)));return yr(t)}else if(sv.test(e)){const t=e.replace(sv,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return yr(t)}else if(av.test(e)){const t=e.replace(av,(n,r,o)=>String(Number(r)*Number(o)));return yr(t)}else if(lv.test(e)){const t=e.replace(lv,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return yr(t)}else if(cv.test(e)){const t=e.replace(cv,(n,r,o)=>String(Number(r)+Number(o)));return yr(t)}else if(uv.test(e)){const t=e.replace(uv,(n,r,o)=>String(Number(r)-Number(o)));return yr(t)}else return Number(e);return Number(e)}function kD(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function jD(e,t){const n=ne({},e);return t.forEach(r=>r in e&&delete n[r]),n}function $D(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function ew(e){return Object.prototype.toString.call(e)==="[object Object]"}const RD=e=>ew(e)&&Object.keys(e).length===0;let hn;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(hn||(hn={}));let gn;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(gn||(gn={}));const ND=["type","__customInput"],TD=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],PD=["type"];function tw(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:ne({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:b}=e,k=ve(e,ND);return tw(b,t,k,E)}const{render:s,label:l,optional:a,order:u=0,disabled:d,hint:f,onChange:p,onEditStart:g,onEditEnd:m,transient:y}=e,w=ve(e,TD),v=ne({render:s,key:t,label:l??t,hint:f,transient:y??!!p,onEditStart:g,onEditEnd:m,disabled:d,optional:a,order:u},n);let{type:x}=w,_=ve(w,PD);if(x=r??x,x in hn)return{type:x,input:_,options:v};let C;return r&&ew(_)&&"value"in _?C=_.value:C=RD(_)?void 0:_,{type:x,input:C,options:ne(ne({},v),{},{onChange:p,optional:(o=v.optional)!==null&&o!==void 0?o:!1,disabled:(i=v.disabled)!==null&&i!==void 0?i:!1})}}function OD(e,t,n,r){const o=tw(e,t),{type:i,input:s,options:l}=o;if(i)return i in hn?o:{type:i,input:Zu(i,s,n,r),options:l};let a=tv(s);return a?{type:a,input:Zu(a,s,n,r),options:l}:(a=tv({value:s}),a?{type:a,input:Zu(a,{value:s},n,r),options:l}:!1)}function dv(e,t,n,r,o){const{value:i,type:s,settings:l}=e;e.value=nw({type:s,value:i,settings:l},t,n,r),e.fromPanel=o}const AD=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function nw({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let l;try{l=_D(e,s,n,t,o,i)}catch(a){throw new AD(`The value \`${r}\` did not result in a correct value.`,t,a)}return aa(l,t)?t:l}const rw=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},ow=e=>e.shiftKey?5:e.altKey?1/5:1;function MD(e,t){const n=console.error;console.error=()=>{},Ap.render(e,t),console.error=n}const DD=["value"],ID=["min","max"],LD=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},iw=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Hr(o,t,n);return r?i+r:i},FD=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},sw=e=>{let{value:t}=e,n=ve(e,DD);const{min:r=-1/0,max:o=1/0}=n,i=ve(n,ID);let s=parseFloat(t);const l=typeof t=="string"?t.substring((""+s).length):void 0;s=Hr(s,r,o);let a=n.step;a||(Number.isFinite(r)?Number.isFinite(o)?a=+(Math.abs(o-r)/100).toPrecision(1):a=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(a=+(Math.abs(o-s)/100).toPrecision(1)));const u=a?ov(a)*10:ov(s);a=a||u/10;const d=Math.round(Hr(Math.log10(1/u),0,2));return{value:l?s+l:s,settings:ne({initialValue:s,step:a,pad:d,min:r,max:o,suffix:l},i)}},aw=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var lw=Object.freeze({__proto__:null,schema:LD,sanitize:iw,format:FD,normalize:sw,sanitizeStep:aw});function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function al(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const ps={$inputStyle:()=>e=>al(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>al(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>al(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>al(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ee,css:q8,createTheme:BD,globalCss:UD,keyframes:Y8}=AO({prefix:"leva",theme:fw(),utils:ne(ne({},ps),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":ps.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":ps.$focusStyle()(e)}),$hover:e=>({"&:hover":ps.$hoverStyle()(e)}),$active:e=>({"&:active":ps.$activeStyle()(e)})})}),HD=UD({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function WD(e){const t=fw();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=BD(t);return{theme:t,className:n.className}}function Xn(e,t){const{theme:n}=h.useContext(oh);if(!(e in n)||!(t in n[e]))return Vn(Ne.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const pw=ee("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),hw=ee("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${pw}`]:{paddingLeft:0}}),VD=ee(hw,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),GD=ee("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),KD=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],qD=["onUpdate"];function ih(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:l,inputType:a="text",rows:u=0}=e,d=ve(e,KD);const{id:f,emitOnEditStart:p,emitOnEditEnd:g,disabled:m}=mt(),y=l||f,w=h.useRef(null),v=u>0,x=v?"textarea":"input",_=h.useCallback(b=>k=>{const j=k.currentTarget.value;b(j)},[]);S.useEffect(()=>{const b=w.current,k=_(j=>{r(j),g()});return b==null||b.addEventListener("blur",k),()=>b==null?void 0:b.removeEventListener("blur",k)},[_,r,g]);const C=h.useCallback(b=>{b.key==="Enter"&&_(r)(b)},[_,r]),E=Object.assign({as:x},v?{rows:u}:{},d);return S.createElement(GD,{textArea:v},t&&typeof t=="string"?S.createElement(hw,null,t):t,S.createElement(pw,Fe({levaType:s,ref:w,id:y,type:a,autoComplete:"off",spellCheck:"false",value:n,onChange:_(o),onFocus:()=>p(),onKeyPress:C,onKeyDown:i,disabled:m},E)))}function YD(e){let{onUpdate:t}=e,n=ve(e,qD);const r=h.useCallback(i=>t(SD(i)),[t]),o=h.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const l=i.altKey?.1:i.shiftKey?10:1;t(a=>parseFloat(a)+s*l)}},[t]);return S.createElement(ih,Fe({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const Ec=ee("div",{}),Cf=ee("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),QD=ee("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Cf}::after`]:{opacity:.6},[`${Ec}:hover > & + ${Cf}::after`]:{opacity:.6},[`${Ec}:hover > & > svg`]:{opacity:1}}),mw=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${Ec}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),gw=ee("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${mw} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),vw=ee(gw,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),XD=ee("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),JD=ee("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),kf=ee("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),ZD=ee("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${kf}`]:{pointerEvents:"auto"}}}}}),yw=ee("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),eI=ee("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),tI=ee(hD,{fill:"$toolTipBackground"});function sh({children:e}){const{className:t}=h.useContext(oh);return S.createElement(nO,{className:t},e)}const nI=["align"];function rI(){const{id:e,disable:t,disabled:n}=mt();return S.createElement(S.Fragment,null,S.createElement(JD,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),S.createElement("label",{htmlFor:e+"__disable"}))}function oI(e){const{id:t,optional:n,hint:r}=mt(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return S.createElement(S.Fragment,null,n&&S.createElement(rI,null),r!==void 0?S.createElement(dD,null,S.createElement(fD,{asChild:!0},S.createElement(kf,Fe({},o,e))),S.createElement(pD,{side:"top",sideOffset:2},S.createElement(eI,null,r,S.createElement(tI,null)))):S.createElement(kf,Fe({},o,i,e)))}function vn(e){let{align:t}=e,n=ve(e,nI);const{value:r,label:o,key:i,disabled:s}=mt(),{hideCopyButton:l}=zD(),a=!l&&i!==void 0,[u,d]=h.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),d(!0)}catch{Vn(Ne.CLIPBOARD_ERROR,{[i]:r})}};return S.createElement(XD,{align:t,onPointerLeave:()=>d(!1)},S.createElement(oI,n),a&&!s&&S.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},u?S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),S.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):S.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),S.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const iI=["toggled"],sI=ee("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function ah(e){let{toggled:t}=e,n=ve(e,iI);return S.createElement(sI,Fe({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),S.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const aI=["input"];function rn(e){let{input:t}=e,n=ve(e,aI);return t?S.createElement(vw,n):S.createElement(gw,n)}function xw({value:e,type:t,settings:n,setValue:r}){const[o,i]=h.useState(nv(t,e,n)),s=h.useRef(e),l=h.useRef(n);l.current=n;const a=h.useCallback(d=>i(nv(t,d,l.current)),[t]),u=h.useCallback(d=>{try{r(d)}catch(f){const{type:p,previousValue:g}=f;if(p!=="LEVA_ERROR")throw f;a(g)}},[a,r]);return h.useEffect(()=>{aa(e,s.current)||a(e),s.current=e},[e,a]),{displayValue:o,onChange:i,onUpdate:u}}function $a(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=mt();return jA(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function lI(e){const t=h.useRef(null),n=h.useRef(null),r=h.useRef(!1);return h.useEffect(()=>{const o=rw(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),h.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ww(){const e=h.useRef(null),t=h.useRef({x:0,y:0}),n=h.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const cI=["__refCount"],ed=(e,t)=>{if(!e[t])return null;const n=e[t];return ve(n,cI)};function uI(e){const t=ja(),[n,r]=h.useState(ed(t.getData(),e)),o=h.useCallback(u=>t.setValueAtPath(e,u,!0),[e,t]),i=h.useCallback(u=>t.setSettingsAtPath(e,u),[e,t]),s=h.useCallback(u=>t.disableInputAtPath(e,u),[e,t]),l=h.useCallback(()=>t.emitOnEditStart(e),[e,t]),a=h.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return h.useEffect(()=>{r(ed(t.getData(),e));const u=t.useStore.subscribe(d=>ed(d.data,e),r,{equalityFn:Sa});return()=>u()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:l,emitOnEditEnd:a}]}const dI=ee("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),_w=ee("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),jf=ee("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),bw=ee("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Sw=ee("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function fI({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=h.useRef(null),l=h.useRef(null),a=h.useRef(0),u=Xn("sizes","scrubberWidth"),d=$a(({event:p,first:g,xy:[m],movement:[y],memo:w})=>{if(g){const{width:x,left:_}=s.current.getBoundingClientRect();a.current=x-parseFloat(u),w=(p==null?void 0:p.target)===l.current?e:Sc((m-_)/x,t,n)}const v=w+Sc(y/a.current,0,n-t);return r(aw(v,{step:o,initialValue:i})),w}),f=bc(e,t,n);return S.createElement(bw,Fe({ref:s},d()),S.createElement(_w,null,S.createElement(Sw,{style:{left:0,right:`${(1-f)*100}%`}})),S.createElement(jf,{ref:l,style:{left:`calc(${f} * (100% - ${u}))`}}))}const pI=S.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=h.useState(!1),s=$a(({active:l,delta:[a],event:u,memo:d=0})=>(i(l),d+=a/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*ow(u)),d=0),d));return S.createElement(VD,Fe({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function Ew({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const l=s>0&&S.createElement(pI,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return S.createElement(YD,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:l})}function hI(){const e=mt(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:l}=o,a=l!==1/0&&s!==-1/0;return S.createElement(rn,{input:!0},S.createElement(vn,null,t),S.createElement(dI,{hasRange:a},a&&S.createElement(fI,Fe({value:parseFloat(n),onDrag:r},o)),S.createElement(Ew,Fe({},e,{id:i,label:"value",innerLabelTrim:a?0:1}))))}const{sanitizeStep:mI}=lw,gI=ve(lw,["sanitizeStep"]);var vI=ne({component:hI},gI);const yI=(e,t)=>$t().schema({options:$t().passesAnyOf($t().object(),$t().array())}).test(t),xI=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},wI=(e,{values:t})=>t.indexOf(e),_I=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var bI=Object.freeze({__proto__:null,schema:yI,sanitize:xI,format:wI,normalize:_I});const SI=ee("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),$f=ee("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),EI=ee("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${$f}:focus + &`]:{$focusStyle:""},[`${$f}:hover + &`]:{$hoverStyle:""}});function CI({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:l}=o,a=h.useRef();return t===l[e]&&(a.current=s[e]),S.createElement(SI,null,S.createElement($f,{id:r,value:e,onChange:u=>n(l[Number(u.currentTarget.value)]),disabled:i},s.map((u,d)=>S.createElement("option",{key:u,value:d},u))),S.createElement(EI,null,a.current),S.createElement(ah,{toggled:!0}))}function kI(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(CI,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var jI=ne({component:kI},bI);const $I=e=>$t().string().test(e),RI=e=>{if(typeof e!="string")throw Error("Invalid string");return e},NI=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var TI=Object.freeze({__proto__:null,schema:$I,sanitize:RI,normalize:NI});const PI=["displayValue","onUpdate","onChange","editable"],OI=ee("div",{whiteSpace:"pre-wrap"});function AI(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=ve(e,PI);return o?S.createElement(ih,Fe({value:t,onUpdate:n,onChange:r},i)):S.createElement(OI,null,t)}function MI(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(AI,Fe({displayValue:n,onUpdate:r,onChange:o},t)))}var DI=ne({component:MI},TI);const II=e=>$t().boolean().test(e),LI=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var FI=Object.freeze({__proto__:null,schema:II,sanitize:LI});const zI=ee("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function BI({value:e,onUpdate:t,id:n,disabled:r}){return S.createElement(zI,null,S.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),S.createElement("label",{htmlFor:n},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function UI(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(BI,{value:t,onUpdate:n,id:o,disabled:r}))}var HI=ne({component:UI},FI);const WI=["locked"];function VI({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=h.useRef(e[n]);s.current=e[n];const l=h.useCallback(u=>o({[n]:nw({type:"NUMBER",value:s.current,settings:r},u)}),[o,r,n]),a=xw({type:"NUMBER",value:e[n],settings:r,setValue:l});return S.createElement(Ew,{id:t,label:n,value:e[n],displayValue:a.displayValue,onUpdate:a.onUpdate,onChange:a.onChange,settings:r,innerLabelTrim:i})}const GI=ee("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function KI(e){let{locked:t}=e,n=ve(e,WI);return S.createElement("svg",Fe({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?S.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):S.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function lh({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=mt(),{lock:s,locked:l}=n;return S.createElement(GI,{withLock:s},s&&S.createElement(KI,{locked:l,onClick:()=>i({locked:!l})}),Object.keys(e).map((a,u)=>S.createElement(VI,{id:u===0?o:`${o}.${a}`,key:a,valueKey:a,value:e,settings:n[a],onUpdate:t,innerLabelTrim:r})))}const Cw=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=sw(ne({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:l,max:a}=t[i]||{};!isFinite(s)&&(!isFinite(l)||!isFinite(a))&&(n[i].step=r,n[i].pad=o)}return n},qI=["lock"],YI=["value"];function QI(e){const t=$t().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function XI(e){return Array.isArray(e)?"array":"object"}function As(e,t,n){return XI(e)===t?e:t==="array"?Object.values(e):$D(e,n)}const JI=(e,t,n)=>{const r=As(e,"object",t.keys);for(let s in r)r[s]=iw(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=As(n,"object",t.keys);if(o.length===1&&t.locked){const l=o[0],a=r[l],u=s[l],d=u!==0?a/u:1;for(let f in s)f===l?i[l]=a:i[f]=s[f]*d}else i=ne(ne({},s),r)}return As(i,t.format,t.keys)},ZI=(e,t)=>As(e,"object",t.keys),e5=e=>!!e&&("step"in e||"min"in e||"max"in e);function t5(e,t,n=[]){const{lock:r=!1}=t,o=ve(t,qI),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,l=As(e,"object",s),a=e5(o)?s.reduce((d,f)=>Object.assign(d,{[f]:o}),{}):o,u=Cw(l,a);return{value:i==="array"?e:l,settings:ne(ne({},u),{},{format:i,keys:s,lock:r,locked:!1})}}function kw(e){return{schema:QI(e.length),normalize:t=>{let{value:n}=t,r=ve(t,YI);return t5(n,r,e)},format:(t,n)=>ZI(t,n),sanitize:(t,n,r)=>JI(t,n,r)}}var n5={grad:.9,turn:360,rad:360/(2*Math.PI)},zn=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Xt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},jw=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},fv=function(e){return{r:Xt(e.r,0,255),g:Xt(e.g,0,255),b:Xt(e.b,0,255),a:Xt(e.a)}},td=function(e){return{r:Je(e.r),g:Je(e.g),b:Je(e.b),a:Je(e.a,3)}},r5=/^#([0-9a-f]{3,8})$/i,ll=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},$w=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),l=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(l<0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:o}},Rw=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),l=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,l,s,s,a,r][u],g:255*[a,r,r,l,s,s][u],b:255*[s,s,a,r,r,l][u],a:o}},pv=function(e){return{h:jw(e.h),s:Xt(e.s,0,100),l:Xt(e.l,0,100),a:Xt(e.a)}},hv=function(e){return{h:Je(e.h),s:Je(e.s),l:Je(e.l),a:Je(e.a,3)}},mv=function(e){return Rw((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Ms=function(e){return{h:(t=$w(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},o5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,i5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,s5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,a5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rf={string:[[function(e){var t=r5.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Je(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Je(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=s5.exec(e)||a5.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:fv({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=o5.exec(e)||i5.exec(e);if(!t)return null;var n,r,o=pv({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(n5[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return mv(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return zn(t)&&zn(n)&&zn(r)?fv({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=pv({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return mv(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=function(l){return{h:jw(l.h),s:Xt(l.s,0,100),v:Xt(l.v,0,100),a:Xt(l.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Rw(s)},"hsv"]]},gv=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=td(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?ll(Je(255*i)):"","#"+ll(n)+ll(r)+ll(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return td(this.rgba)},e.prototype.toRgbString=function(){return t=td(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return hv(Ms(this.rgba))},e.prototype.toHslString=function(){return t=hv(Ms(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=$w(this.rgba),{h:Je(t.h),s:Je(t.s),v:Je(t.v),a:Je(t.a,3)};var t},e.prototype.invert=function(){return xt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),xt(nd(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),xt(nd(this.rgba,-t))},e.prototype.grayscale=function(){return xt(nd(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),xt(vv(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),xt(vv(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?xt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Je(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ms(this.rgba);return typeof t=="number"?xt({h:t,s:n.s,l:n.l,a:n.a}):Je(n.h)},e.prototype.isEqual=function(t){return this.toHex()===xt(t).toHex()},e}(),xt=function(e){return e instanceof Nf?e:new Nf(e)},yv=[],c5=function(e){e.forEach(function(t){yv.indexOf(t)<0&&(t(Nf,Rf),yv.push(t))})};function u5(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var l,a,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,p="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var y=(l=d,a=i[m],Math.pow(l.r-a.r,2)+Math.pow(l.g-a.g,2)+Math.pow(l.b-a.b,2));y=0||(o[n]=e[n]);return o}function Tf(e){var t=h.useRef(e),n=h.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Pi=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(xv(o.current,w,l.current)):y(!1)},m=function(){return y(!1)};function y(w){var v=a.current,x=Pf(o.current),_=w?x.addEventListener:x.removeEventListener;_(v?"touchmove":"mousemove",g),_(v?"touchend":"mouseup",m)}return[function(w){var v=w.nativeEvent,x=o.current;if(x&&(wv(v),!function(C,E){return E&&!Ds(C)}(v,a.current)&&x)){if(Ds(v)){a.current=!0;var _=v.changedTouches||[];_.length&&(l.current=_[0].identifier)}x.focus(),i(xv(x,v,l.current)),y(!0)}},function(w){var v=w.which||w.keyCode;v<37||v>40||(w.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},y]},[s,i]),d=u[0],f=u[1],p=u[2];return h.useEffect(function(){return p},[p]),S.createElement("div",Hi({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Ra=function(e){return e.filter(Boolean).join(" ")},dh=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Ra(["react-colorful__pointer",e.className]);return S.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},S.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},_t=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Tw=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:_t(e.h),s:_t(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:_t(o/2),a:_t(r,2)}},Of=function(e){var t=Tw(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},od=function(e){var t=Tw(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Pw=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),l=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),u=i%6;return{r:_t(255*[r,l,s,s,a,r][u]),g:_t(255*[a,r,r,l,s,s][u]),b:_t(255*[s,s,a,r,r,l][u]),a:_t(o,2)}},Ow=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),l=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:_t(60*(l<0?l+6:l)),s:_t(i?s/i*100:0),v:_t(i/255*100),a:o}},Aw=S.memo(function(e){var t=e.hue,n=e.onChange,r=Ra(["react-colorful__hue",e.className]);return S.createElement("div",{className:r},S.createElement(uh,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Pi(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":_t(t),"aria-valuemax":"360","aria-valuemin":"0"},S.createElement(dh,{className:"react-colorful__hue-pointer",left:t/360,color:Of({h:t,s:100,v:100,a:1})})))}),Mw=S.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Of({h:t.h,s:100,v:100,a:1})};return S.createElement("div",{className:"react-colorful__saturation",style:r},S.createElement(uh,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Pi(t.s+100*o.left,0,100),v:Pi(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+_t(t.s)+"%, Brightness "+_t(t.v)+"%"},S.createElement(dh,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Of(t)})))}),fh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Dw(e,t,n){var r=Tf(n),o=h.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],l=h.useRef({color:t,hsva:i});h.useEffect(function(){if(!e.equal(t,l.current.color)){var u=e.toHsva(t);l.current={hsva:u,color:t},s(u)}},[t,e]),h.useEffect(function(){var u;fh(i,l.current.hsva)||e.equal(u=e.fromHsva(i),l.current.color)||(l.current={hsva:i,color:u},r(u))},[i,e,r]);var a=h.useCallback(function(u){s(function(d){return Object.assign({},d,u)})},[]);return[i,a]}var d5=typeof window<"u"?h.useLayoutEffect:h.useEffect,f5=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},_v=new Map,Iw=function(e){d5(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!_v.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,_v.set(t,n);var r=f5();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},p5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=ch(e,["className","colorModel","color","onChange"]),l=h.useRef(null);Iw(l);var a=Dw(n,o,i),u=a[0],d=a[1],f=Ra(["react-colorful",t]);return S.createElement("div",Hi({},s,{ref:l,className:f}),S.createElement(Mw,{hsva:u,onChange:d}),S.createElement(Aw,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},h5=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+od(Object.assign({},n,{a:0}))+", "+od(Object.assign({},n,{a:1}))+")"},i=Ra(["react-colorful__alpha",t]),s=_t(100*n.a);return S.createElement("div",{className:i},S.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),S.createElement(uh,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:Pi(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},S.createElement(dh,{className:"react-colorful__alpha-pointer",left:n.a,color:od(n)})))},m5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=ch(e,["className","colorModel","color","onChange"]),l=h.useRef(null);Iw(l);var a=Dw(n,o,i),u=a[0],d=a[1],f=Ra(["react-colorful",t]);return S.createElement("div",Hi({},s,{ref:l,className:f}),S.createElement(Mw,{hsva:u,onChange:d}),S.createElement(Aw,{hue:u.h,onChange:d}),S.createElement(h5,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},g5={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Ow,fromHsva:Pw,equal:fh},v5=function(e){return S.createElement(m5,Hi({},e,{colorModel:g5}))},y5={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return Ow({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Pw(e)).r,g:t.g,b:t.b};var t},equal:fh},x5=function(e){return S.createElement(p5,Hi({},e,{colorModel:y5}))},Lw={exports:{}},w5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_5=w5,b5=_5;function Fw(){}function zw(){}zw.resetWarningCache=Fw;var S5=function(){function e(r,o,i,s,l,a){if(a!==b5){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:zw,resetWarningCache:Fw};return n.PropTypes=n,n};Lw.exports=S5();var E5=Lw.exports;const _e=Tc(E5);function Wi(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(d){try{u(r.next(d))}catch(f){s(f)}}function a(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Vi(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return a([u,d])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function k5(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function $5(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=j5.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var R5=[".DS_Store","Thumbs.db"];function N5(e){return Wi(this,void 0,void 0,function(){return Vi(this,function(t){return Cc(e)&&T5(e)?[2,M5(e.dataTransfer,e.type)]:P5(e)?[2,O5(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,A5(e)]:[2,[]]})})}function T5(e){return Cc(e.dataTransfer)}function P5(e){return Cc(e)&&Cc(e.target)}function Cc(e){return typeof e=="object"&&e!==null}function O5(e){return Af(e.target.files).map(function(t){return Na(t)})}function A5(e){return Wi(this,void 0,void 0,function(){var t;return Vi(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Na(r)})]}})})}function M5(e,t){return Wi(this,void 0,void 0,function(){var n,r;return Vi(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=Af(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(D5))]):[3,2];case 1:return r=o.sent(),[2,bv(Bw(r))];case 2:return[2,bv(Af(e.files).map(function(i){return Na(i)}))]}})})}function bv(e){return e.filter(function(t){return R5.indexOf(t.name)===-1})}function Af(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,$v(n)];if(e.sizen)return[!1,$v(n)]}return[!0,null]}function hs(e){return e!=null}function Q5(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(l){var a=Ww(l,n),u=kv(a,1),d=u[0],f=Vw(l,r,o),p=kv(f,1),g=p[0];return d&&g})}function kc(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function cl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Nv(e){e.preventDefault()}function X5(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function J5(e){return e.indexOf("Edge/")!==-1}function Z5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return X5(e)||J5(e)}function En(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var ph=h.forwardRef(function(e,t){var n=e.children,r=jc(e,oL),o=qw(r),i=o.open,s=jc(o,iL);return h.useImperativeHandle(t,function(){return{open:i}},[i]),S.createElement(h.Fragment,null,n(Re(Re({},s),{},{open:i})))});ph.displayName="Dropzone";var Kw={disabled:!1,getFilesFromEvent:N5,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};ph.defaultProps=Kw;ph.propTypes={children:_e.func,accept:_e.oneOfType([_e.string,_e.arrayOf(_e.string)]),multiple:_e.bool,preventDropOnDocument:_e.bool,noClick:_e.bool,noKeyboard:_e.bool,noDrag:_e.bool,noDragEventsBubbling:_e.bool,minSize:_e.number,maxSize:_e.number,maxFiles:_e.number,disabled:_e.bool,getFilesFromEvent:_e.func,onFileDialogCancel:_e.func,onFileDialogOpen:_e.func,useFsAccessApi:_e.bool,onDragEnter:_e.func,onDragLeave:_e.func,onDragOver:_e.func,onDrop:_e.func,onDropAccepted:_e.func,onDropRejected:_e.func,validator:_e.func};var If={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function qw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Re(Re({},Kw),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,a=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,x=t.preventDropOnDocument,_=t.noClick,C=t.noKeyboard,E=t.noDrag,b=t.noDragEventsBubbling,k=t.validator,j=h.useMemo(function(){return typeof w=="function"?w:Pv},[w]),P=h.useMemo(function(){return typeof y=="function"?y:Pv},[y]),T=h.useRef(null),M=h.useRef(null),I=h.useReducer(gL,If),H=id(I,2),B=H[0],Y=H[1],q=B.isFocused,Q=B.isFileDialogActive,L=B.draggedFiles,V=h.useRef(typeof window<"u"&&window.isSecureContext&&v&&eL()),J=function(){!V.current&&Q&&setTimeout(function(){if(M.current){var te=M.current.files;te.length||(Y({type:"closeDialog"}),P())}},300)};h.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[M,Q,P,V]);var re=h.useRef([]),pe=function(te){T.current&&T.current.contains(te.target)||(te.preventDefault(),re.current=[])};h.useEffect(function(){return x&&(document.addEventListener("dragover",Nv,!1),document.addEventListener("drop",pe,!1)),function(){x&&(document.removeEventListener("dragover",Nv),document.removeEventListener("drop",pe))}},[T,x]);var it=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W),re.current=[].concat(lL(re.current),[W.target]),cl(W)&&Promise.resolve(o(W)).then(function(te){kc(W)&&!b||(Y({draggedFiles:te,isDragActive:!0,type:"setDraggedFiles"}),u&&u(W))})},[o,u,b]),Me=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W);var te=cl(W);if(te&&W.dataTransfer)try{W.dataTransfer.dropEffect="copy"}catch{}return te&&f&&f(W),!1},[f,b]),He=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W);var te=re.current.filter(function(et){return T.current&&T.current.contains(et)}),$e=te.indexOf(W.target);$e!==-1&&te.splice($e,1),re.current=te,!(te.length>0)&&(Y({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),cl(W)&&d&&d(W))},[T,d,b]),ye=h.useCallback(function(W,te){var $e=[],et=[];W.forEach(function(at){var qr=Ww(at,n),gt=id(qr,2),ko=gt[0],jo=gt[1],$o=Vw(at,s,i),Ro=id($o,2),No=Ro[0],cr=Ro[1],To=k?k(at):null;if(ko&&No&&!To)$e.push(at);else{var Yr=[jo,cr];To&&(Yr=Yr.concat(To)),et.push({file:at,errors:Yr.filter(function(au){return au})})}}),(!l&&$e.length>1||l&&a>=1&&$e.length>a)&&($e.forEach(function(at){et.push({file:at,errors:[Y5]})}),$e.splice(0)),Y({acceptedFiles:$e,fileRejections:et,type:"setFiles"}),p&&p($e,et,te),et.length>0&&m&&m(et,te),$e.length>0&&g&&g($e,te)},[Y,l,n,s,i,a,p,g,m,k]),st=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W),re.current=[],cl(W)&&Promise.resolve(o(W)).then(function(te){kc(W)&&!b||ye(te,W)}),Y({type:"reset"})},[o,ye,b]),xn=h.useCallback(function(){if(V.current){Y({type:"openDialog"}),j();var W={multiple:l,types:tL(n)};window.showOpenFilePicker(W).then(function(te){return o(te)}).then(function(te){ye(te,null),Y({type:"closeDialog"})}).catch(function(te){nL(te)?(P(te),Y({type:"closeDialog"})):rL(te)&&(V.current=!1,M.current&&(M.current.value=null,M.current.click()))});return}M.current&&(Y({type:"openDialog"}),j(),M.current.value=null,M.current.click())},[Y,j,P,v,ye,n,l]),Dn=h.useCallback(function(W){!T.current||!T.current.isEqualNode(W.target)||(W.key===" "||W.key==="Enter"||W.keyCode===32||W.keyCode===13)&&(W.preventDefault(),xn())},[T,xn]),Eo=h.useCallback(function(){Y({type:"focus"})},[]),Ke=h.useCallback(function(){Y({type:"blur"})},[]),wn=h.useCallback(function(){_||(Z5()?setTimeout(xn,0):xn())},[_,xn]),on=function(te){return r?null:te},Kr=function(te){return C?null:on(te)},qe=function(te){return E?null:on(te)},In=function(te){b&&te.stopPropagation()},Gi=h.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,$e=te===void 0?"ref":te,et=W.role,at=W.onKeyDown,qr=W.onFocus,gt=W.onBlur,ko=W.onClick,jo=W.onDragEnter,$o=W.onDragOver,Ro=W.onDragLeave,No=W.onDrop,cr=jc(W,sL);return Re(Re(Df({onKeyDown:Kr(En(at,Dn)),onFocus:Kr(En(qr,Eo)),onBlur:Kr(En(gt,Ke)),onClick:on(En(ko,wn)),onDragEnter:qe(En(jo,it)),onDragOver:qe(En($o,Me)),onDragLeave:qe(En(Ro,He)),onDrop:qe(En(No,st)),role:typeof et=="string"&&et!==""?et:"button"},$e,T),!r&&!C?{tabIndex:0}:{}),cr)}},[T,Dn,Eo,Ke,wn,it,Me,He,st,C,E,r]),Ki=h.useCallback(function(W){W.stopPropagation()},[]),qi=h.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,$e=te===void 0?"ref":te,et=W.onChange,at=W.onClick,qr=jc(W,aL),gt=Df({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:on(En(et,st)),onClick:on(En(at,Ki)),tabIndex:-1},$e,M);return Re(Re({},gt),qr)}},[M,n,l,st,r]),Co=L.length,Pt=Co>0&&Q5({files:L,accept:n,minSize:s,maxSize:i,multiple:l,maxFiles:a}),Pa=Co>0&&!Pt;return Re(Re({},B),{},{isDragAccept:Pt,isDragReject:Pa,isFocused:q&&!r,getRootProps:Gi,getInputProps:qi,rootRef:T,inputRef:M,open:on(xn)})}function gL(e,t){switch(t.type){case"focus":return Re(Re({},e),{},{isFocused:!0});case"blur":return Re(Re({},e),{},{isFocused:!1});case"openDialog":return Re(Re({},If),{},{isFileDialogActive:!0});case"closeDialog":return Re(Re({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Re(Re({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Re(Re({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Re({},If);default:return e}}function Pv(){}function vL(e){let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const p=t;t=d?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},o=()=>t,i=(u,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=d(t);function g(){const m=d(t);if(!f(p,m)){const y=p;u(p=m,y)}}return n.add(g),()=>n.delete(g)},a={setState:r,getState:o,subscribe:(u,d,f)=>d||f?i(u,d,f):(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return t=e(r,o,a),a}const yL=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ov=yL?h.useEffect:h.useLayoutEffect;function xL(e){const t=typeof e=="function"?vL(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=h.useReducer(w=>w+1,0),s=t.getState(),l=h.useRef(s),a=h.useRef(r),u=h.useRef(o),d=h.useRef(!1),f=h.useRef();f.current===void 0&&(f.current=r(s));let p,g=!1;(l.current!==s||a.current!==r||u.current!==o||d.current)&&(p=r(s),g=!o(f.current,p)),Ov(()=>{g&&(f.current=p),l.current=s,a.current=r,u.current=o,d.current=!1});const m=h.useRef(s);Ov(()=>{const w=()=>{try{const x=t.getState(),_=a.current(x);u.current(f.current,_)||(l.current=x,f.current=_,i())}catch{d.current=!0,i()}},v=t.subscribe(w);return t.getState()!==m.current&&w(),v},[]);const y=g?p:f.current;return h.useDebugValue(y),y};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const wL=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,l,a)=>{let u=s;if(l){const d=(a==null?void 0:a.equalityFn)||Object.is;let f=s(r.getState());u=p=>{const g=s(p);if(!d(f,g)){const m=f;l(f=g,m)}},a!=null&&a.fireImmediately&&l(f,f)}return o(u)},e(t,n,r)};/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gw(e,t){if(e){if(typeof e=="string")return Mf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mf(e,t)}}function Mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var ph=h.forwardRef(function(e,t){var n=e.children,r=jc(e,oL),o=qw(r),i=o.open,s=jc(o,iL);return h.useImperativeHandle(t,function(){return{open:i}},[i]),S.createElement(h.Fragment,null,n(Re(Re({},s),{},{open:i})))});ph.displayName="Dropzone";var Kw={disabled:!1,getFilesFromEvent:N5,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};ph.defaultProps=Kw;ph.propTypes={children:_e.func,accept:_e.oneOfType([_e.string,_e.arrayOf(_e.string)]),multiple:_e.bool,preventDropOnDocument:_e.bool,noClick:_e.bool,noKeyboard:_e.bool,noDrag:_e.bool,noDragEventsBubbling:_e.bool,minSize:_e.number,maxSize:_e.number,maxFiles:_e.number,disabled:_e.bool,getFilesFromEvent:_e.func,onFileDialogCancel:_e.func,onFileDialogOpen:_e.func,useFsAccessApi:_e.bool,onDragEnter:_e.func,onDragLeave:_e.func,onDragOver:_e.func,onDrop:_e.func,onDropAccepted:_e.func,onDropRejected:_e.func,validator:_e.func};var If={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function qw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Re(Re({},Kw),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,a=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,x=t.preventDropOnDocument,_=t.noClick,C=t.noKeyboard,E=t.noDrag,b=t.noDragEventsBubbling,k=t.validator,j=h.useMemo(function(){return typeof w=="function"?w:Pv},[w]),P=h.useMemo(function(){return typeof y=="function"?y:Pv},[y]),T=h.useRef(null),M=h.useRef(null),I=h.useReducer(gL,If),H=id(I,2),z=H[0],Y=H[1],q=z.isFocused,Q=z.isFileDialogActive,L=z.draggedFiles,V=h.useRef(typeof window<"u"&&window.isSecureContext&&v&&eL()),J=function(){!V.current&&Q&&setTimeout(function(){if(M.current){var te=M.current.files;te.length||(Y({type:"closeDialog"}),P())}},300)};h.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[M,Q,P,V]);var re=h.useRef([]),pe=function(te){T.current&&T.current.contains(te.target)||(te.preventDefault(),re.current=[])};h.useEffect(function(){return x&&(document.addEventListener("dragover",Nv,!1),document.addEventListener("drop",pe,!1)),function(){x&&(document.removeEventListener("dragover",Nv),document.removeEventListener("drop",pe))}},[T,x]);var it=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W),re.current=[].concat(lL(re.current),[W.target]),cl(W)&&Promise.resolve(o(W)).then(function(te){kc(W)&&!b||(Y({draggedFiles:te,isDragActive:!0,type:"setDraggedFiles"}),u&&u(W))})},[o,u,b]),Me=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W);var te=cl(W);if(te&&W.dataTransfer)try{W.dataTransfer.dropEffect="copy"}catch{}return te&&f&&f(W),!1},[f,b]),He=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W);var te=re.current.filter(function(et){return T.current&&T.current.contains(et)}),$e=te.indexOf(W.target);$e!==-1&&te.splice($e,1),re.current=te,!(te.length>0)&&(Y({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),cl(W)&&d&&d(W))},[T,d,b]),ye=h.useCallback(function(W,te){var $e=[],et=[];W.forEach(function(at){var qr=Ww(at,n),gt=id(qr,2),ko=gt[0],jo=gt[1],$o=Vw(at,s,i),Ro=id($o,2),No=Ro[0],cr=Ro[1],To=k?k(at):null;if(ko&&No&&!To)$e.push(at);else{var Yr=[jo,cr];To&&(Yr=Yr.concat(To)),et.push({file:at,errors:Yr.filter(function(au){return au})})}}),(!l&&$e.length>1||l&&a>=1&&$e.length>a)&&($e.forEach(function(at){et.push({file:at,errors:[Y5]})}),$e.splice(0)),Y({acceptedFiles:$e,fileRejections:et,type:"setFiles"}),p&&p($e,et,te),et.length>0&&m&&m(et,te),$e.length>0&&g&&g($e,te)},[Y,l,n,s,i,a,p,g,m,k]),st=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W),re.current=[],cl(W)&&Promise.resolve(o(W)).then(function(te){kc(W)&&!b||ye(te,W)}),Y({type:"reset"})},[o,ye,b]),xn=h.useCallback(function(){if(V.current){Y({type:"openDialog"}),j();var W={multiple:l,types:tL(n)};window.showOpenFilePicker(W).then(function(te){return o(te)}).then(function(te){ye(te,null),Y({type:"closeDialog"})}).catch(function(te){nL(te)?(P(te),Y({type:"closeDialog"})):rL(te)&&(V.current=!1,M.current&&(M.current.value=null,M.current.click()))});return}M.current&&(Y({type:"openDialog"}),j(),M.current.value=null,M.current.click())},[Y,j,P,v,ye,n,l]),Dn=h.useCallback(function(W){!T.current||!T.current.isEqualNode(W.target)||(W.key===" "||W.key==="Enter"||W.keyCode===32||W.keyCode===13)&&(W.preventDefault(),xn())},[T,xn]),Eo=h.useCallback(function(){Y({type:"focus"})},[]),Ke=h.useCallback(function(){Y({type:"blur"})},[]),wn=h.useCallback(function(){_||(Z5()?setTimeout(xn,0):xn())},[_,xn]),on=function(te){return r?null:te},Kr=function(te){return C?null:on(te)},qe=function(te){return E?null:on(te)},In=function(te){b&&te.stopPropagation()},Gi=h.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,$e=te===void 0?"ref":te,et=W.role,at=W.onKeyDown,qr=W.onFocus,gt=W.onBlur,ko=W.onClick,jo=W.onDragEnter,$o=W.onDragOver,Ro=W.onDragLeave,No=W.onDrop,cr=jc(W,sL);return Re(Re(Df({onKeyDown:Kr(En(at,Dn)),onFocus:Kr(En(qr,Eo)),onBlur:Kr(En(gt,Ke)),onClick:on(En(ko,wn)),onDragEnter:qe(En(jo,it)),onDragOver:qe(En($o,Me)),onDragLeave:qe(En(Ro,He)),onDrop:qe(En(No,st)),role:typeof et=="string"&&et!==""?et:"button"},$e,T),!r&&!C?{tabIndex:0}:{}),cr)}},[T,Dn,Eo,Ke,wn,it,Me,He,st,C,E,r]),Ki=h.useCallback(function(W){W.stopPropagation()},[]),qi=h.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,$e=te===void 0?"ref":te,et=W.onChange,at=W.onClick,qr=jc(W,aL),gt=Df({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:on(En(et,st)),onClick:on(En(at,Ki)),tabIndex:-1},$e,M);return Re(Re({},gt),qr)}},[M,n,l,st,r]),Co=L.length,Pt=Co>0&&Q5({files:L,accept:n,minSize:s,maxSize:i,multiple:l,maxFiles:a}),Pa=Co>0&&!Pt;return Re(Re({},z),{},{isDragAccept:Pt,isDragReject:Pa,isFocused:q&&!r,getRootProps:Gi,getInputProps:qi,rootRef:T,inputRef:M,open:on(xn)})}function gL(e,t){switch(t.type){case"focus":return Re(Re({},e),{},{isFocused:!0});case"blur":return Re(Re({},e),{},{isFocused:!1});case"openDialog":return Re(Re({},If),{},{isFileDialogActive:!0});case"closeDialog":return Re(Re({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Re(Re({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Re(Re({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Re({},If);default:return e}}function Pv(){}function vL(e){let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const p=t;t=d?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},o=()=>t,i=(u,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=d(t);function g(){const m=d(t);if(!f(p,m)){const y=p;u(p=m,y)}}return n.add(g),()=>n.delete(g)},a={setState:r,getState:o,subscribe:(u,d,f)=>d||f?i(u,d,f):(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return t=e(r,o,a),a}const yL=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ov=yL?h.useEffect:h.useLayoutEffect;function xL(e){const t=typeof e=="function"?vL(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=h.useReducer(w=>w+1,0),s=t.getState(),l=h.useRef(s),a=h.useRef(r),u=h.useRef(o),d=h.useRef(!1),f=h.useRef();f.current===void 0&&(f.current=r(s));let p,g=!1;(l.current!==s||a.current!==r||u.current!==o||d.current)&&(p=r(s),g=!o(f.current,p)),Ov(()=>{g&&(f.current=p),l.current=s,a.current=r,u.current=o,d.current=!1});const m=h.useRef(s);Ov(()=>{const w=()=>{try{const x=t.getState(),_=a.current(x);u.current(f.current,_)||(l.current=x,f.current=_,i())}catch{d.current=!0,i()}},v=t.subscribe(w);return t.getState()!==m.current&&w(),v},[]);const y=g?p:f.current;return h.useDebugValue(y),y};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const wL=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,l,a)=>{let u=s;if(l){const d=(a==null?void 0:a.equalityFn)||Object.is;let f=s(r.getState());u=p=>{const g=s(p);if(!d(f,g)){const m=f;l(f=g,m)}},a!=null&&a.fireImmediately&&l(f,f)}return o(u)},e(t,n,r)};/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. @@ -137,4 +137,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * Copyright (c) 2014-2015, 2017, Jon Schlinkert. * Released under the MIT License. - */var XL=BL,JL=VL,Lv=YL,Fv=QL,ZL=function(e,t,n){if(!Fv(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=XL(t,{sep:".",brackets:!0}).filter(e4),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function o4(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function i4(e,t){return Object.entries(kD(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function s4(e,t){const n=h.useRef();return(t?aa:Sa)(e,n.current)||(n.current=e),n.current}function Xw(e,t){return h.useMemo(e,s4(t,!0))}function a4(e){const t=h.useRef(null),n=h.useRef(null),r=h.useRef(!0);return h.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),h.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:l}=n.current.getBoundingClientRect();return i.style.height=l+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const l4=e=>{const[t,n]=h.useState(e.getVisiblePaths());return h.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:Sa});return()=>r()},[e]),t};function c4(e,t,n){return e.useStore(o=>{const i=ne(ne({},n),o.data);return i4(i,t)},Sa)}function Jw(e=3){const t=h.useRef(null),n=h.useRef(null),[r,o]=h.useState(!1),i=h.useCallback(()=>o(!0),[]),s=h.useCallback(()=>o(!1),[]);return h.useLayoutEffect(()=>{if(r){const{bottom:l,top:a,left:u}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=l+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=u+"px",f==="down"?n.current.style.top=l+e+"px":n.current.style.bottom=window.innerHeight-a+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}c5([u5]);const u4={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};$t.extend({color:()=>e=>xt(e).isValid()});const d4=e=>$t().color().test(e);function Zw(e,{format:t,hasAlpha:n,isString:r}){const o=u4[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?jD(i,["a"]):i}const e_=(e,t)=>{const n=xt(e);if(!n.isValid())throw Error("Invalid color");return Zw(n,t)},f4=(e,t)=>Zw(xt(e),ne(ne({},t),{},{isString:!0,format:"hex"})),p4=({value:e})=>{const t=l5(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:e_(e,o),settings:o}};var h4=Object.freeze({__proto__:null,schema:d4,sanitize:e_,format:f4,normalize:p4});const m4=ee("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),g4=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),v4=ee("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Uv(e,t){return t!=="rgb"?xt(e).toRgb():e}function y4({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=mt(),{format:s,hasAlpha:l}=n,{popinRef:a,wrapperRef:u,shown:d,show:f,hide:p}=Jw(),g=h.useRef(0),[m,y]=h.useState(()=>Uv(e,s)),w=l?v5:x5,v=()=>{y(Uv(e,s)),f(),o()},x=()=>{p(),i(),window.clearTimeout(g.current)},_=()=>{g.current=window.setTimeout(x,500)};return h.useEffect(()=>()=>window.clearTimeout(g.current),[]),S.createElement(S.Fragment,null,S.createElement(m4,{ref:a,active:d,onClick:()=>v(),style:{color:t}}),d&&S.createElement(sh,null,S.createElement(yw,{onPointerUp:x}),S.createElement(v4,{ref:u,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:C=>C.buttons===0&&_()},S.createElement(w,{color:m,onChange:r}))))}function x4(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,n),S.createElement(g4,null,S.createElement(y4,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),S.createElement(ih,{value:t,onChange:r,onUpdate:o})))}var w4=ne({component:x4},h4);function _4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(lh,{value:t,settings:r,onUpdate:n}))}var b4=ne({component:_4},kw(["x","y","z"]));const S4=ee("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),E4=ee("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function C4({value:e,settings:t,onUpdate:n}){const r=h.useRef(),o=h.useRef(0),i=h.useRef(0),s=h.useRef(1),[l,a]=h.useState(!1),[u,d]=h.useState(!1),[f,p]=ww(),g=h.useRef(null),m=h.useRef(null);h.useLayoutEffect(()=>{if(l){const{top:I,left:H,width:B,height:Y}=g.current.getBoundingClientRect();m.current.style.left=H+B/2+"px",m.current.style.top=I+Y/2+"px"}},[l]);const{keys:[y,w],joystick:v}=t,x=v==="invertY"?1:-1,{[y]:{step:_},[w]:{step:C}}=t,E=Xn("sizes","joystickWidth"),b=Xn("sizes","joystickHeight"),k=parseFloat(E)*.8/2,j=parseFloat(b)*.8/2,P=h.useCallback(()=>{r.current||(d(!0),o.current&&p({x:o.current*k}),i.current&&p({y:i.current*-j}),r.current=window.setInterval(()=>{n(I=>{const H=_*o.current*s.current,B=x*C*i.current*s.current;return Array.isArray(I)?{[y]:I[0]+H,[w]:I[1]+B}:{[y]:I[y]+H,[w]:I[w]+B}})},16))},[k,j,n,p,_,C,y,w,x]),T=h.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);h.useEffect(()=>{function I(H){s.current=ow(H)}return window.addEventListener("keydown",I),window.addEventListener("keyup",I),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",I),window.removeEventListener("keyup",I)}},[]);const M=$a(({first:I,active:H,delta:[B,Y],movement:[q,Q]})=>{I&&a(!0);const L=Hr(q,-k,k),V=Hr(Q,-j,j);o.current=Math.abs(q)>Math.abs(L)?Math.sign(q-L):0,i.current=Math.abs(Q)>Math.abs(V)?Math.sign(V-Q):0;let J=e[y],re=e[w];H?(o.current||(J+=B*_*s.current,p({x:L})),i.current||(re-=x*Y*C*s.current,p({y:V})),o.current||i.current?P():T(),n({[y]:J,[w]:re})):(a(!1),o.current=0,i.current=0,p({x:0,y:0}),T())});return S.createElement(S4,Fe({ref:g},M()),l&&S.createElement(sh,null,S.createElement(E4,{ref:m,isOutOfBounds:u},S.createElement("div",null),S.createElement("span",{ref:f}))))}const k4=ee("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function j4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(k4,{withJoystick:!!r.joystick},r.joystick&&S.createElement(C4,{value:t,settings:r,onUpdate:n}),S.createElement(lh,{value:t,settings:r,onUpdate:n})))}const $4=["joystick"],t_=kw(["x","y"]),R4=e=>{let{joystick:t=!0}=e,n=ve(e,$4);const{value:r,settings:o}=t_.normalize(n);return{value:r,settings:ne(ne({},o),{},{joystick:t})}};var N4=ne(ne({component:j4},t_),{},{normalize:R4});const T4=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},P4=(e,t)=>typeof t=="object"&&"image"in t,O4=({image:e})=>({value:e});var A4=Object.freeze({__proto__:null,sanitize:T4,schema:P4,normalize:O4});const M4=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),D4=ee("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),I4=ee("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),L4=ee("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),F4=ee("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),z4=ee("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function B4(){const{label:e,value:t,onUpdate:n,disabled:r}=mt(),{popinRef:o,wrapperRef:i,shown:s,show:l,hide:a}=Jw(),u=h.useCallback(m=>{m.length&&n(m[0])},[n]),d=h.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:p,isDragAccept:g}=qw({maxFiles:1,accept:"image/*",onDrop:u,disabled:r});return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(M4,null,S.createElement(I4,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&l(),onPointerUp:a,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&S.createElement(sh,null,S.createElement(yw,{onPointerUp:a,style:{cursor:"pointer"}}),S.createElement(L4,{ref:i,style:{backgroundImage:`url(${t})`}})),S.createElement(D4,f({isDragAccept:g}),S.createElement("input",p()),S.createElement(F4,null,g?"drop image":"click or drop")),S.createElement(z4,{onClick:d,disabled:!t})))}var U4=ne({component:B4},A4);const Hv=$t().number(),H4=(e,t)=>$t().array().length(2).every.number().test(e)&&$t().schema({min:Hv,max:Hv}).test(t),$c=e=>({min:e[0],max:e[1]}),n_=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?$c(e):e,i={min:r[0],max:r[1]},{min:s,max:l}=ne(ne({},i),o);return[Hr(Number(s),t,Math.max(t,l)),Hr(Number(l),Math.min(n,s),n)]},W4=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=Cw($c(e),{min:r,max:r}),i=[t,n],s=ne(ne({},o),{},{bounds:i});return{value:n_($c(e),s,e),settings:s}};var V4=Object.freeze({__proto__:null,schema:H4,format:$c,sanitize:n_,normalize:W4});const G4=["value","bounds","onDrag"],K4=["bounds"],q4=ee("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Y4(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=ve(e,G4);const s=h.useRef(null),l=h.useRef(null),a=h.useRef(null),u=h.useRef(0),d=Xn("sizes","scrubberWidth"),f=$a(({event:m,first:y,xy:[w],movement:[v],memo:x={}})=>{if(y){const{width:C,left:E}=s.current.getBoundingClientRect();u.current=C-parseFloat(d);const b=(m==null?void 0:m.target)===l.current||(m==null?void 0:m.target)===a.current;x.pos=Sc((w-E)/C,n,r);const k=Math.abs(x.pos-t.min)-Math.abs(x.pos-t.max);x.key=k<0||k===0&&x.pos<=t.min?"min":"max",b&&(x.pos=t[x.key])}const _=x.pos+Sc(v/u.current,0,r-n);return o({[x.key]:mI(_,i[x.key])}),x}),p=`calc(${bc(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,g=`calc(${1-bc(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return S.createElement(bw,Fe({ref:s},f()),S.createElement(_w,null,S.createElement(Sw,{style:{left:p,right:g}})),S.createElement(jf,{position:"left",ref:l,style:{left:p}}),S.createElement(jf,{position:"right",ref:a,style:{right:g}}))}function Q4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt(),o=ve(r,K4);return S.createElement(S.Fragment,null,S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(q4,null,S.createElement(Y4,Fe({value:t},r,{onDrag:n})),S.createElement(lh,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var X4=ne({component:Q4},V4);const J4=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Z4=["type","value"],eF=["onChange","transient","onEditStart","onEditEnd"],tF=function(){const t=xL(wL(()=>({data:{}}))),n=J4();this.storeId=CD(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),l=Object.keys(s),a=[];Object.entries(r).forEach(([d,f])=>{f.render&&l.some(p=>p.indexOf(d)===0)&&!f.render(this.get)&&a.push(d+".")});const u=[];return o.forEach(d=>{d in s&&s[d].__refCount>0&&a.every(f=>d.indexOf(f)===-1)&&(!s[d].render||s[d].render(this.get))&&u.push(d)}),u},this.setOrderedPaths=s=>{s.forEach(l=>o.add(l))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(l=>{const a=l.data;return s.forEach(u=>{if(u in a){const d=a[u];d.__refCount--,d.__refCount===0&&d.type in hn&&delete a[u]}}),{data:a}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,l)=>{t.setState(a=>{const u=a.data;return Object.entries(s).forEach(([d,f])=>{let p=u[d];if(p){const{type:g,value:m}=f,y=ve(f,Z4);g!==p.type?Vn(Ne.INPUT_TYPE_OVERRIDE,g):((p.__refCount===0||l)&&Object.assign(p,y),p.__refCount++)}else u[d]=ne(ne({},f),{},{__refCount:1})}),{data:u}})},this.setValueAtPath=(s,l,a)=>{t.setState(u=>{const d=u.data;return dv(d[s],l,s,this,a),{data:d}})},this.setSettingsAtPath=(s,l)=>{t.setState(a=>{const u=a.data;return u[s].settings=ne(ne({},u[s].settings),l),{data:u}})},this.disableInputAtPath=(s,l)=>{t.setState(a=>{const u=a.data;return u[s].disabled=l,{data:u}})},this.set=(s,l)=>{t.setState(a=>{const u=a.data;return Object.entries(s).forEach(([d,f])=>{try{dv(u[d],f,void 0,void 0,l)}catch{}}),{data:u}})},this.getInput=s=>{try{return this.getData()[s]}catch{Vn(Ne.PATH_DOESNT_EXIST,s)}},this.get=s=>{var l;return(l=this.getInput(s))===null||l===void 0?void 0:l.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,l)=>{const a=`onEditStart:${s}`;return n.on(a,l),()=>n.off(a,l)},this.subscribeToEditEnd=(s,l)=>{const a=`onEditEnd:${s}`;return n.on(a,l),()=>n.off(a,l)};const i=(s,l,a)=>{const u={};return Object.entries(s).forEach(([d,f])=>{if(d==="")return Vn(Ne.EMPTY_KEY);let p=mh(l,d);if(f.type===hn.FOLDER){const g=i(f.schema,p,a);Object.assign(u,g),p in r||(r[p]=f.settings)}else if(d in a)Vn(Ne.DUPLICATE_KEYS,d,p,a[d].path);else{const g=OD(f,d,p,u);if(g){const{type:m,options:y,input:w}=g,{onChange:v,transient:x,onEditStart:_,onEditEnd:C}=y,E=ve(y,eF);u[p]=ne(ne(ne({type:m},E),w),{},{fromPanel:!0}),a[d]={path:p,onChange:v,transient:x,onEditStart:_,onEditEnd:C}}else Vn(Ne.UNKNOWN_INPUT,p,f)}}),u};this.getDataFromSchema=s=>{const l={};return[i(s,"",l),l]}},r_=new tF,nF={collapsed:!1};function rF(e,t){return{type:hn.FOLDER,schema:e,settings:ne(ne({},nF),t)}}const Wv=e=>"__levaInput"in e,oF=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=o4(o);(!r||i.toLowerCase().indexOf(r)>-1)&&r4(n,s,{[i]:{__levaInput:!0,path:o}})}),n},iF=["type","label","path","valueKey","value","settings","setValue","disabled"];function sF(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:l,disabled:a}=e,u=ve(e,iF);const{displayValue:d,onChange:f,onUpdate:p}=xw({type:t,value:i,settings:s,setValue:l}),g=xo[t].component;return g?S.createElement(cw.Provider,{value:ne({key:o,path:r,id:""+r,label:n,displayValue:d,value:i,onChange:f,onUpdate:p,settings:s,setValue:l,disabled:a},u)},S.createElement(ZD,{disabled:a},S.createElement(g,null))):(Vn(Ne.NO_COMPONENT_FOR_TYPE,t,r),null)}const aF=ee("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function lF({onClick:e,settings:t,label:n}){const r=ja();return S.createElement(rn,null,S.createElement(aF,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const cF=ee("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),uF=ee("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),dF=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function fF(e){const{label:t,opts:n}=dF(e),r=ja();return S.createElement(rn,{input:!!t},t&&S.createElement(vn,null,t),S.createElement(cF,null,Object.entries(n).map(([o,i])=>S.createElement(uF,{key:o,onClick:()=>i(r.get)},o))))}const pF=ee("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),o_=100;function hF(e,t){e.push(t),e.length>o_&&e.shift()}const mF=h.forwardRef(function({initialValue:e},t){const n=Xn("colors","highlight3"),r=Xn("colors","elevation2"),o=Xn("colors","highlight1"),[i,s]=h.useMemo(()=>[xt(o).alpha(.4).toRgbString(),xt(o).alpha(.1).toRgbString()],[o]),l=h.useRef([e]),a=h.useRef(e),u=h.useRef(e),d=h.useRef(),f=h.useCallback((m,y)=>{if(!m)return;const{width:w,height:v}=m,x=new Path2D,_=w/o_,C=v*.05;for(let k=0;k({frame:m=>{(a.current===void 0||mu.current)&&(u.current=m),hF(l.current,m),d.current=requestAnimationFrame(()=>f(p.current,g.current))}}),[p,g,f]),h.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),S.createElement(pF,{ref:p})}),Vv=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),gF=h.forwardRef(function({initialValue:e},t){const[n,r]=h.useState(Vv(e));return h.useImperativeHandle(t,()=>({frame:o=>r(Vv(o))}),[]),S.createElement("div",null,n)});function Gv(e){return typeof e=="function"?e():e.current}function vF({label:e,objectOrFn:t,settings:n}){const r=h.useRef(),o=h.useRef(Gv(t));return h.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(Gv(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),S.createElement(rn,{input:!0},S.createElement(vn,{align:"top"},e),n.graph?S.createElement(mF,{ref:r,initialValue:o.current}):S.createElement(gF,{ref:r,initialValue:o.current}))}const yF=["type","label","key"],xF={[hn.BUTTON]:lF,[hn.BUTTON_GROUP]:fF,[hn.MONITOR]:vF},wF=S.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:l}]=uI(e);if(!t)return null;const{type:a,label:u,key:d}=t,f=ve(t,yF);if(a in hn){const p=xF[a];return S.createElement(p,Fe({label:u,path:e},f))}return a in xo?S.createElement(sF,Fe({key:i+e,type:a,label:u,storeId:i,path:e,valueKey:d,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:l},f)):(vD(Ne.UNSUPPORTED_INPUT,a,e),null)});function _F({toggle:e,toggled:t,name:n}){return S.createElement(QD,{onClick:()=>e()},S.createElement(ah,{toggled:t}),S.createElement("div",null,n))}const bF=({name:e,path:t,tree:n})=>{const r=ja(),o=mh(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[l,a]=h.useState(!i),u=h.useRef(null),d=Xn("colors","folderWidgetColor"),f=Xn("colors","folderTextColor");return h.useLayoutEffect(()=>{u.current.style.setProperty("--leva-colors-folderWidgetColor",s||d),u.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,d,f]),S.createElement(Ec,{ref:u},S.createElement(_F,{name:e,toggled:l,toggle:()=>a(p=>!p)}),S.createElement(i_,{parent:o,tree:n,toggled:l}))},i_=S.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:l}=a4(i),a=ja(),u=([f,p])=>{var g;return(Wv(p)?(g=a.getInput(p.path))===null||g===void 0?void 0:g.order:a.getFolderSettings(mh(r,f)).order)||0},d=Object.entries(o).sort((f,p)=>u(f)-u(p));return S.createElement(Cf,{ref:s,isRoot:e,fill:t,flat:n},S.createElement(mw,{ref:l,isRoot:e,toggled:i},d.map(([f,p])=>Wv(p)?S.createElement(wF,{key:p.path,valueKey:p.valueKey,path:p.path}):S.createElement(bF,{key:f,name:f,path:r,tree:p}))))}),SF=ee("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${vw}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),s_=40,Rc=ee("i",{$flexCenter:"",width:s_,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),EF=ee("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),CF=ee("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Rc}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),kF=ee("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),jF=ee("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:s_}}}}),$F=S.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=h.useState(""),i=h.useMemo(()=>rw(e,250),[e]),s=()=>{e(""),o("")},l=a=>{const u=a.currentTarget.value;t(!0),o(u)};return h.useEffect(()=>{i(r)},[r,i]),S.createElement(S.Fragment,null,S.createElement(kF,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:a=>a.stopPropagation(),onChange:l}),S.createElement(Rc,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function RF({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:l,filterEnabled:a,from:u}){const[d,f]=h.useState(!1),p=h.useRef(null);h.useEffect(()=>{var m,y;d?(m=p.current)===null||m===void 0||m.focus():(y=p.current)===null||y===void 0||y.blur()},[d]);const g=$a(({offset:[m,y],first:w,last:v})=>{t({x:m,y}),w&&n({x:m,y}),v&&r({x:m,y})},{filterTaps:!0,from:({offset:[m,y]})=>[(u==null?void 0:u.x)||m,(u==null?void 0:u.y)||y]});return h.useEffect(()=>{const m=y=>{y.key==="L"&&y.shiftKey&&y.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),S.createElement(S.Fragment,null,S.createElement(EF,{mode:l?"drag":void 0},S.createElement(Rc,{active:!i,onClick:()=>o()},S.createElement(ah,{toggled:i,width:12,height:8})),S.createElement(jF,Fe({},l?g():{},{drag:l,filterEnabled:a}),s===void 0&&l?S.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},S.createElement("circle",{cx:"2",cy:"2",r:"2"}),S.createElement("circle",{cx:"14",cy:"2",r:"2"}),S.createElement("circle",{cx:"26",cy:"2",r:"2"}),S.createElement("circle",{cx:"2",cy:"12",r:"2"}),S.createElement("circle",{cx:"14",cy:"12",r:"2"}),S.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),a&&S.createElement(Rc,{active:d,onClick:()=>f(m=>!m)},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},S.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),S.createElement(CF,{toggled:d},S.createElement($F,{ref:p,setFilter:e,toggle:o})))}const NF=["store","hidden","theme","collapsed"];function TF(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=ve(e,NF);const s=Xw(()=>WD(r),[r]),[l,a]=h.useState(!o),u=typeof o=="object"?!o.collapsed:l,d=h.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:a,[o]);return!t||n?null:S.createElement(oh.Provider,{value:s},S.createElement(PF,Fe({store:t},i,{toggled:u,setToggle:d,rootClass:s.className})))}const PF=S.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:l=!1,toggled:a,setToggle:u})=>{var d,f;const p=l4(e),[g,m]=h.useState(""),y=h.useMemo(()=>oF(p,g),[p,g]),[w,v]=ww(),x=o||p.length>0,_=typeof s=="object"&&s.title||void 0,C=typeof s=="object"&&(d=s.drag)!==null&&d!==void 0?d:!0,E=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,b=typeof s=="object"&&s.position||void 0,k=typeof s=="object"&&s.onDrag||void 0,j=typeof s=="object"&&s.onDragStart||void 0,P=typeof s=="object"&&s.onDragEnd||void 0;return S.useEffect(()=>{v({x:b==null?void 0:b.x,y:b==null?void 0:b.y})},[b,v]),HD(),S.createElement(dw.Provider,{value:{hideCopyButton:l}},S.createElement(SF,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:x?"block":"none"}},s&&S.createElement(RF,{onDrag:T=>{v(T),k==null||k(T)},onDragStart:T=>j==null?void 0:j(T),onDragEnd:T=>P==null?void 0:P(T),setFilter:m,toggle:T=>u(M=>T??!M),toggled:a,title:_,drag:C,filterEnabled:E,from:b}),x&&S.createElement(uw.Provider,{value:e},S.createElement(i_,{isRoot:!0,fill:n,flat:r,tree:y,toggled:a}))))}),OF=["isRoot"];let Nc=!1,io=null;function a_(e){let{isRoot:t=!1}=e,n=ve(e,OF);return h.useEffect(()=>(Nc=!0,!t&&io&&(io.remove(),io=null),()=>{t||(Nc=!1)}),[t]),S.createElement(TF,Fe({store:r_},n))}function AF(e){h.useEffect(()=>{e&&!Nc&&(io||(io=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(io),MD(S.createElement(a_,{isRoot:!0}),io))),Nc=!0)},[e])}function MF(e,t,n,r,o){let i,s,l,a,u;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?u=n:n&&("store"in n?(a=n,u=r):(l=n,Array.isArray(r)?u=r:(a=r,u=o)))):(i=e,Array.isArray(t)?u=t:(a=t,u=n)),{schema:i,folderName:s,folderSettings:l,hookSettings:a,deps:u||[]}}function ad(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:l,hookSettings:a,deps:u}=MF(e,t,n,r,o),d=typeof s=="function",f=h.useRef(!1),p=h.useRef(!0),g=Xw(()=>{f.current=!0;const M=typeof s=="function"?s():s;return i?{[i]:rF(M,l)}:M},u),m=!(a!=null&&a.store);AF(m);const[y]=h.useState(()=>(a==null?void 0:a.store)||r_),[w,v]=h.useMemo(()=>y.getDataFromSchema(g),[y,g]),[x,_,C,E,b]=h.useMemo(()=>{const M=[],I=[],H={},B={},Y={};return Object.values(v).forEach(({path:q,onChange:Q,onEditStart:L,onEditEnd:V,transient:J})=>{M.push(q),Q?(H[q]=Q,J||I.push(q)):I.push(q),L&&(B[q]=L),V&&(Y[q]=V)}),[M,I,H,B,Y]},[v]),k=h.useMemo(()=>y.orderPaths(x),[x,y]),j=c4(y,_,w),P=h.useCallback(M=>{const I=Object.entries(M).reduce((H,[B,Y])=>Object.assign(H,{[v[B].path]:Y}),{});y.set(I,!1)},[y,v]),T=h.useCallback(M=>y.get(v[M].path),[y,v]);return h.useEffect(()=>{const M=!p.current&&f.current;return y.addData(w,M),p.current=!1,f.current=!1,()=>y.disposePaths(k)},[y,k,w]),h.useEffect(()=>{const M=[];return Object.entries(C).forEach(([I,H])=>{H(y.get(I),I,ne({initial:!0,get:y.get},y.getInput(I)));const B=y.useStore.subscribe(Y=>{const q=Y.data[I];return[q.disabled?void 0:q.value,q]},([Y,q])=>H(Y,I,ne({initial:!1,get:y.get},q)),{equalityFn:Sa});M.push(B)}),()=>M.forEach(I=>I())},[y,C]),h.useEffect(()=>{const M=[];return Object.entries(E).forEach(([I,H])=>M.push(y.subscribeToEditStart(I,H))),Object.entries(b).forEach(([I,H])=>M.push(y.subscribeToEditEnd(I,H))),()=>M.forEach(I=>I())},[E,b,y]),d?[j,P,T]:j}lr(gn.SELECT,jI);lr(gn.IMAGE,U4);lr(gn.NUMBER,vI);lr(gn.COLOR,w4);lr(gn.STRING,DI);lr(gn.BOOLEAN,HI);lr(gn.INTERVAL,X4);lr(gn.VECTOR3D,b4);lr(gn.VECTOR2D,N4);const DF=window.innerWidth<=768,IF=()=>{const{groupSize:e}=ad({groupSize:{value:2,min:2,max:4,step:1}}),{itemCount:t}=ad({itemCount:{value:8,min:4,max:12,step:1}}),{columns:n}=ad({columns:{value:4,min:2,max:4,step:1,disabled:DF}}),[r,o]=h.useState([]),[i,s]=h.useState([]),l=h.useCallback(()=>{const[a,u]=F3(t,e);o(a),s(u)},[s,t,e]);return h.useEffect(l,[t,e,l]),c.jsxs(c.Fragment,{children:[c.jsx(a_,{collapsed:!0,hideCopyButton:!0,titleBar:{position:{x:0,y:40},filter:!1,title:"Config"},theme:{colors:{highlight1:"white",highlight2:"white"}}}),c.jsxs("h3",{className:qn.center,children:["Connect group of ",e," words by clicking on related words"]}),c.jsx(Y3,{itemGroups:r,allItems:i,columns:n,groupSize:e}),c.jsx("div",{className:qn.center,children:c.jsx("button",{className:qn.reset,onClick:()=>l(),children:"Reset"})})]})},LF="_heading_g33np_1",FF="_stepper_g33np_5",zF="_step_g33np_5",BF="_active_g33np_33",UF="_complete_g33np_39",HF="_btn_g33np_65",an={heading:LF,stepper:FF,step:zF,active:BF,"step-number":"_step-number_g33np_33",complete:UF,btn:HF,"progress-container":"_progress-container_g33np_71","progress-bar":"_progress-bar_g33np_83","action-container":"_action-container_g33np_91"},WF=({stepConfig:e=[]})=>{var d;const[t,n]=h.useState(1),[r,o]=h.useState(!1),[i,s]=h.useState(0),l=h.useRef(null),a=(d=e[t-1])==null?void 0:d.Component,u=()=>{n(f=>f===e.length?(o(!0),f):f+1)};return h.useEffect(()=>(s(l.current.offsetWidth/2),window.addEventListener("resize",()=>{s(l.current.offsetWidth/2)}),window.removeEventListener("resize",()=>{s(l.current.offsetWidth/2)})),[]),e.length===0?c.jsx(c.Fragment,{}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:an.stepper,children:[e.map((f,p)=>c.jsxs("div",{ref:l,className:`${an.step} ${t===p+1?an.active:""} ${t>p+1||r?an.complete:""}`,children:[c.jsx("div",{className:an["step-number"],children:t>p+1||r?c.jsx("span",{children:"✓"}):p+1}),c.jsx("div",{className:an["step-name"],children:f.name})]},f.name)),c.jsx("div",{className:an["progress-container"],style:{width:`calc(100% - ${i*2}px)`,marginLeft:i},children:c.jsx("div",{className:an["progress-bar"],style:{width:`${(t-1)/(e.length-1)*100}%`}})})]}),c.jsxs("div",{className:an["action-container"],children:[!r&&c.jsx(a,{}),r&&c.jsx("div",{children:"Order Delivered successfully!🎉"}),!r&&c.jsx("button",{className:an.btn,onClick:u,children:t===e.length?"Finish":"Next"})]})]})},VF=[{name:"Contact Details",Component:()=>c.jsx("div",{children:"Add contact details for further communications."})},{name:"Shipping Address",Component:()=>c.jsx("div",{children:"Add shipping address for successfull delivery."})},{name:"Payment",Component:()=>c.jsx("div",{children:"Complete Payment to complete the order."})},{name:"Delivered",Component:()=>c.jsx("div",{children:"Ready to get delivered!"})}],GF=()=>c.jsxs("div",{children:[c.jsx("h1",{className:an.heading,children:"Stepper Component"}),c.jsx(WF,{stepConfig:VF})]}),KF="_main_yhjgz_1",qF="_option_yhjgz_26",_i={main:KF,"select-dahi":"_select-dahi_yhjgz_7","inline-options":"_inline-options_yhjgz_14",option:qF,"option-selected":"_option-selected_yhjgz_44","option-disabled":"_option-disabled_yhjgz_50"};function YF({id:e,text:t,setOption:n,isDisabled:r,isSelected:o}){const i=h.useCallback(s=>{if(r)return;const a=s.target.getAttribute("data-option-id");a&&n(a)},[]);return c.jsx("button",{"data-option-id":e,onClick:i,className:`${_i.option} ${o?_i["option-selected"]:""} ${r?_i["option-disabled"]:""}`,children:t})}function QF({options:e}){const[t,n]=h.useState(e[0].id),r=h.useCallback(o=>n(o),[]);return c.jsx("div",{className:_i["inline-options"],children:e.map(o=>c.jsx(YF,{...o,isSelected:o.id===t,setOption:r},o.id))})}const XF=[{id:"1",text:"100ml"},{id:"2",text:"200ml"},{id:"3",text:"400ml"},{id:"4",text:"500ml",isDisabled:!0},{id:"5",text:"800ml"}];function JF(){return c.jsx("div",{className:_i.main,children:c.jsxs("div",{className:_i["select-dahi"],children:[c.jsx("h2",{children:"Select Size of Dahi"}),c.jsx(QF,{options:XF})]})})}const ZF="_a_13gc8_1",e6="_d_13gc8_2",t6="_g_13gc8_3",n6="_b_13gc8_18",r6="_c_13gc8_19",o6="_e_13gc8_20",i6="_f_13gc8_21",s6="_off_13gc8_54",a6="_container_13gc8_59",l6="_hours_13gc8_68",c6="_minutes_13gc8_72",u6="_seconds_13gc8_76",d6="_colons_13gc8_80",f6="_colon1_13gc8_89",p6="_colon2_13gc8_90",D={a:ZF,d:e6,g:t6,b:n6,c:r6,e:o6,f:i6,off:s6,container:a6,hours:l6,minutes:c6,seconds:u6,colons:d6,colon1:f6,colon2:p6},h6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),m6=c.jsxs("div",{children:[c.jsx("div",{className:`${D.a} ${D.off}`}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),g6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:`${D.f} ${D.off}`}),c.jsx("div",{className:D.g})]}),v6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),y6=c.jsxs("div",{children:[c.jsx("div",{className:`${D.a} ${D.off}`}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),x6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:`${D.b} ${D.off}`}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),w6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:`${D.b} ${D.off}`}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),_6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),b6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),S6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),Kv=c.jsxs("div",{className:D.colons,children:[c.jsx("div",{className:D.colon1}),c.jsx("div",{className:D.colon2})]}),yn=new Map;yn.set(0,h6);yn.set(1,m6);yn.set(2,g6);yn.set(3,v6);yn.set(4,y6);yn.set(5,x6);yn.set(6,w6);yn.set(7,_6);yn.set(8,b6);yn.set(9,S6);function E6(){let e=new Date;const[t,n]=h.useState(e.getHours()%12||12),[r,o]=h.useState(e.getMinutes()),[i,s]=h.useState(e.getSeconds()),l=()=>{let u=new Date;n(u.getHours()%12||12),o(u.getMinutes()),s(u.getSeconds())};setInterval(()=>l(),1e3);const a=u=>yn.get(u);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:D.container,children:[c.jsxs("div",{className:D.hours,children:[a(t.toString().split("").length>1?+t.toString().split("")[0]:0),a(t.toString().split("").length>1?+t.toString().split("")[1]:t)]}),Kv,c.jsxs("div",{className:D.minutes,children:[a(r.toString().split("").length>1?+r.toString().split("")[0]:0),a(r.toString().split("").length>1?+r.toString().split("")[1]:r)]}),Kv,c.jsxs("div",{className:D.seconds,children:[a(i.toString().split("").length>1?+i.toString().split("")[0]:0),a(i.toString().split("").length>1?+i.toString().split("")[1]:i)]})]})})}const C6=[{id:1,text:"Hello world! How are you?",replies:[{id:2,text:"Hey, I am fine, wau?",replies:[]}]}],k6="_comment_10sns_1",j6="_comment_replies_10sns_17",qv={comment:k6,comment_replies:j6},l_=({comments:e,addComment:t,deleteComment:n})=>{const[r,o]=h.useState(-1),[i,s]=h.useState(""),l=d=>{i&&(t(d,i),o(-1)),s("")},a=()=>{o(-1),s("")},u=(d,f)=>{d.key==="Enter"?l(f):d.key==="Escape"&&a()};return e.map(d=>c.jsxs("div",{children:[c.jsxs("div",{className:qv.comment,children:[c.jsx("img",{src:"https://www.iconpacks.net/icons/2/free-user-icon-3296-thumb.png",alt:d.text}),c.jsxs("div",{children:[c.jsx("p",{children:d.text}),r===d.id&&c.jsx("input",{type:"text",placeholder:"Reply...",autoFocus:!0,value:i,onKeyDown:f=>u(f,d.id),onChange:f=>s(f.target.value)}),r===d.id?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>l(d.id),children:"Add"}),c.jsx("button",{onClick:a,children:"Cancel"})]}):c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>o(d.id),children:"Reply"}),c.jsx("button",{onClick:()=>n(d.id),children:"Delete"})]})]})]}),c.jsx("div",{className:qv.comment_replies,children:c.jsx(l_,{comments:d.replies,addComment:t,deleteComment:n})})]},d.id))},$6=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(C6),o=(l,a)=>{a&&r(l===-1?u=>{const d=structuredClone(u);return d.unshift({id:Date.now(),text:a,replies:[]}),d}:u=>{const d=structuredClone(u);return c_(d,l,a),d})},i=l=>{r(a=>{const u=structuredClone(a);return u_(u,l),u})},s=l=>{l.key==="Enter"&&(o(-1,e),t("")),l.key==="Escape"&&t("")};return c.jsxs(c.Fragment,{children:[c.jsx("h1",{children:"Comments"}),c.jsxs("div",{style:{marginBottom:"1rem",display:"flex",gap:"1rem"},children:[c.jsx("input",{type:"text",placeholder:"Add comment...",onKeyDown:s,value:e,onChange:l=>t(l.target.value)}),c.jsx("button",{onClick:()=>{o(-1,e),t("")},children:"Add"})]}),c.jsx(l_,{comments:n,addComment:o,deleteComment:i})]})},c_=(e,t,n)=>{for(const r of e){if(r.id===t)return r.replies.unshift({id:Date.now(),text:n,replies:[]}),!0;if(c_(r.replies,t,n))return!0}return!1},u_=(e,t)=>{for(let n=0;n{switch(t.type){case"setCellOnClick":{let n=structuredClone(e);if(e.isGameOver)return n;const{payload:r}=t;let{activeCount:o,isLevelComplete:i,isLevelReadyForClick:s,life:l,isGameOver:a,userGrid:u}=n;const d=e.memoryGrid[r.rowIndex][r.colIndex],f=e.userGrid[r.rowIndex][r.colIndex];return d===1&&f===0?(u[r.rowIndex][r.colIndex]=1,o=o-1,o===0&&(i=!0,s=!1)):l=l-1,l===0&&(a=!0),{...n,isLevelComplete:i,isLevelReadyForClick:s,life:l,isGameOver:a,activeCount:o}}case"onNextLevel":{let n=structuredClone(e);n.level=n.level+1,n.rows===n.cols?n.rows=n.rows+1:n.cols=n.cols+1;const{grid:r,activeCount:o}=R6(n.rows,n.cols);return n.memoryGrid=r,n.userGrid=r,n.activeCount=o,n.isLevelComplete=!1,{...n}}case"setEmptyUserGrid":{let n=structuredClone(e);return n.userGrid=d_(n.rows,n.cols),n}case"setLevelReadyForClick":{let n=structuredClone(e);const{payload:r}=t;return n.isLevelReadyForClick=r,n}case"onReset":return f_}},Ta=h.createContext(),T6=({children:e})=>{const[t,n]=h.useReducer(N6,f_);return c.jsx(Ta.Provider,{value:{state:t,dispatch:n},children:e})},P6="_flexColumnCenter_1mbig_6",O6="_button_1mbig_12",A6="_container_1mbig_21",Is={"flex-row-center":"_flex-row-center_1mbig_1",flexColumnCenter:P6,button:O6,container:A6},M6=e=>c.jsx("div",{className:Is.container,children:e.children});function D6(){const{dispatch:e}=h.useContext(Ta),t=h.useCallback(function(){e({type:"onNextLevel"})},[e]);return c.jsxs(M6,{children:[c.jsx("header",{children:c.jsx("h1",{children:"Memory Game"})}),c.jsxs("div",{children:[c.jsxs("div",{style:{margin:"50px"},children:[c.jsx("p",{children:"Remember the colored boxes displayed and click on the boxes once the game starts"}),c.jsx("p",{children:"Difficulty will increase with each level"})]}),c.jsx("button",{style:{fontSize:"1.5rem"},onClick:t,className:Is.button,children:"Start"})]})]})}const I6=typeof window<"u",L6=I6?h.useLayoutEffect:h.useEffect,F6={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function z6(){const[e,t]=h.useState(null),[n,r]=h.useState(F6),o=h.useMemo(()=>new window.ResizeObserver(s=>{if(s[0]){const{x:l,y:a,width:u,height:d,top:f,left:p,bottom:g,right:m}=s[0].contentRect;r({x:l,y:a,width:u,height:d,top:f,left:p,bottom:g,right:m})}}),[]),i=()=>{o.disconnect()};return L6(()=>{if(e)return o.observe(e),i},[e]),[t,n]}const B6="_grid_dm3n1_1",U6={grid:B6},H6="_cellDiv_6x8w8_1",W6={cellDiv:H6};function V6({rowIndex:e,colIndex:t,backgroundColor:n}){return c.jsx("div",{className:`${W6.cellDiv} cell`,"data-row-index":e,"data-col-index":t,style:{backgroundColor:n??"#FFF"}})}const G6=e=>{const t={gridTemplateRows:`repeat(${e.rows}, 1fr)`,gridTemplateColumns:`repeat(${e.cols}, 1fr)`,width:`${e.width-20}px`,height:`${(e.width-20)/e.cols*e.rows}px`,maxHeight:`${e.rows*100}px`,maxWidth:`${e.cols*100}px`};return c.jsx("div",{className:U6.grid,style:t,onClick:e.onClick,children:e.children})};function K6({userGrid:e,windowWidth:t}){const{dispatch:n,state:r}=h.useContext(Ta),o=window.innerHeight-230;t>o&&(t=o),h.useEffect(()=>{setTimeout(()=>{n({type:"setEmptyUserGrid"}),n({type:"setLevelReadyForClick",payload:!0})},3e3)},[n,r.level]);const i=h.useCallback(function(s){if(!r.isLevelReadyForClick)return;const l=s.target;if(l.classList.contains("cell")){const a=l.dataset.rowIndex,u=l.dataset.colIndex;n({type:"setCellOnClick",payload:{rowIndex:a,colIndex:u}})}},[n,r.isLevelReadyForClick]);return c.jsx(G6,{rows:e.length,cols:e[0].length,onClick:i,width:t,children:e.map((s,l)=>s.map((a,u)=>c.jsx(V6,{rowIndex:l,colIndex:u,backgroundColor:a?"yellow":void 0},l+""+u)))})}function q6(){const{dispatch:e,state:t}=h.useContext(Ta),[n,{width:r}]=z6(),o=h.useCallback(function(){e({type:"onNextLevel"})}),i=h.useCallback(function(){e({type:"onReset"})},[e]);return c.jsxs("div",{ref:n,style:{position:"relative"},className:Is.flexColumnCenter,children:[c.jsxs("h3",{children:["Level ",t.level]}),c.jsx(K6,{userGrid:t.userGrid,rows:t.rows,cols:t.cols,windowWidth:r}),c.jsxs("h1",{children:["Life Left : ",t.life]}),c.jsxs("h1",{children:[" ",t.isGameOver&&"Game Over"]}),t.isLevelComplete&&c.jsx("button",{onClick:o,className:Is.button,children:"Next"}),t.isGameOver&&c.jsx("button",{onClick:i,className:Is.button,children:"Home"})]})}function Y6(){const{state:e}=h.useContext(Ta);return e.level===0?c.jsx(D6,{}):c.jsx(q6,{})}function Q6(){return c.jsx(T6,{children:c.jsx(Y6,{})})}const X6="_formContainer_muy2u_1",J6="_input_text_muy2u_5",Z6="_chips_muy2u_12",e8="_remove_muy2u_20",ms={formContainer:X6,input_text:J6,chips:Z6,remove:e8},t8=()=>{const[e,t]=h.useState(""),[n,r]=h.useState([]),o=s=>{s.preventDefault(),e.trim()!==""&&r([...n,e]),t("")},i=s=>{r(n.filter((l,a)=>a!==s))};return c.jsxs(c.Fragment,{children:[c.jsx("form",{onSubmit:o,className:ms.formContainer,children:c.jsx("input",{type:"text",placeholder:"Type & hit Enter",className:ms.input_text,value:e,onChange:s=>t(s.target.value)})}),c.jsx("div",{className:ms.container,children:n.map((s,l)=>c.jsxs("span",{className:ms.chips,children:[s," ",c.jsx("button",{className:ms.remove,onClick:()=>i(l),children:"✕"})]},l))})]})},n8="_container_w1r10_1",r8="_btn_w1r10_8",o8="_active_w1r10_19",i8="_content_w1r10_23",dl={container:n8,btn:r8,active:o8,content:i8},fl=[{label:"Tab 1",content:"HTML elements tell the browser how to display the content. For example, you can use HTML to create static pages with text, headings, tables, lists, images, links, and more."},{label:"Tab 2",content:"Cascading Style Sheets is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML. "},{label:"Tab 3",content:"JavaScript, often abbreviated as JS, is a programming language and core technology of the Web, alongside HTML and CSS. 99% of websites use JavaScript on the client side for webpage behavior. Web browsers have a dedicated JavaScript engine that executes the client code. "}],s8=()=>{const[e,t]=h.useState(0),n=r=>t(r);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:dl.container,children:[fl.map((r,o)=>c.jsx("span",{onClick:()=>n(o),className:`${e===o?dl.active:""} ${dl.btn}`,children:r.label},o)),c.jsxs("div",{className:dl.content,children:[c.jsxs("h2",{children:["Content of ",fl[e].label,":"]}),fl[e]&&c.jsx("p",{children:fl[e].content})]})]})})},a8="_container_1u8l1_1",l8="_listContainer_1u8l1_6",c8="_userDetail_1u8l1_19",u8="_saveBtn_1u8l1_24",Wo={container:a8,listContainer:l8,userDetail:c8,saveBtn:u8};function d8(e){return Ii({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}const f8=()=>{const[e,t]=h.useState([]),n=async()=>{const a=await(await fetch("https://jsonplaceholder.typicode.com/users")).json();t(a)};h.useEffect(()=>{const l=localStorage.getItem("savedList");l?t(JSON.parse(l)):n()},[]);const r=(l,a)=>{l.dataTransfer.setData("itemIndex",a)},o=()=>{localStorage.setItem("savedList",JSON.stringify(e)),alert("List Saved Successfully")},i=l=>{l.preventDefault()},s=(l,a)=>{const u=parseInt(l.dataTransfer.getData("itemIndex"));if(a!==u){const d=[...e],f=d.splice(u,1)[0];d.splice(a,0,f),t(d)}};return c.jsxs("div",{className:Wo.container,children:[e.slice(0,5).map((l,a)=>c.jsxs("div",{draggable:!0,onDragStart:u=>r(u,a),onDragOver:i,onDrop:u=>s(u,a),className:Wo.listContainer,children:[c.jsx("span",{className:Wo.userDetail,children:l.id}),c.jsx("span",{className:Wo.userDetail,children:l.name}),c.jsx("span",{className:Wo.userDetail,children:l.website}),c.jsx(d8,{})]},a)),c.jsx("button",{className:Wo.saveBtn,onClick:o,children:"Save List"})]})},p8="_container_1iv6r_1",h8="_inputWrapper_1iv6r_5",m8="_box_1iv6r_19",g8="_circle_1iv6r_26",pl={container:p8,inputWrapper:h8,box:m8,circle:g8},gs=Math.min(window.innerWidth-120,window.innerHeight-200),v8=50,y8=()=>{const[e,t]=h.useState(1),n=(gs-v8)/e,r=o=>{if(+o.target.value>2e3){t(2e3);return}if(+o.target.value<1){t(1);return}t(+o.target.value)};return c.jsxs("div",{className:pl.container,children:[c.jsxs("div",{className:pl.inputWrapper,children:[c.jsx("label",{htmlFor:"circles",children:"Number of circles:"}),c.jsx("input",{type:"number",id:"circles",value:e,min:"0",max:"2000",onChange:r})]}),c.jsx("div",{className:pl.box,style:{height:gs,width:gs},children:Array.from({length:e},(o,i)=>i).map(o=>c.jsx("div",{className:pl.circle,style:{height:gs-o*n,width:gs-o*n}},o))})]})},x8=60,Ml=[12,1,2,3,4,5,6,7,8,9,10,11],w8=e=>({seconds:Ml.length/2*e.getSeconds(),minutes:Ml.length/2*e.getMinutes()+e.getSeconds()/10,hours:e.getMinutes()/2+e.getHours()%Ml.length*30}),_8="_clock_as1nw_10",b8="_ticks_as1nw_22",S8="_tick_as1nw_22",E8="_digits_as1nw_42",C8="_digit_as1nw_42",k8="_bgImg_as1nw_57",j8="_centerConnector_as1nw_64",$8="_secondsHand_as1nw_73",R8="_minutesHand_as1nw_74",N8="_hoursHand_as1nw_75",jn={clock:_8,ticks:b8,tick:S8,digits:E8,digit:C8,bgImg:k8,centerConnector:j8,secondsHand:$8,minutesHand:R8,hoursHand:N8},p_=S.memo(()=>c.jsx("div",{className:jn.digits,children:Ml.map((e,t)=>c.jsx("div",{className:jn.digit,style:{left:`${50+Math.sin(Math.PI*2/12*t)*50}%`,top:`${50-Math.cos(Math.PI*2/12*t)*50}%`},children:e},e))}));p_.displayName="Digits";const h_=S.memo(()=>c.jsx("div",{className:jn.ticks,children:Array.from({length:x8}).map((e,t)=>c.jsx("div",{className:jn.tick,style:{left:`${50+Math.sin(Math.PI*2/60*t)*50}%`,top:`${50-Math.cos(Math.PI*2/60*t)*50}%`,rotate:`${t*6}deg`}},t))}));h_.displayName="Ticks";const T8=()=>{const[e,t]=h.useState({hours:0,minutes:0,seconds:0});return h.useEffect(()=>{const n=()=>{t(w8(new Date))};return n(),setInterval(n,1e3),()=>{clearInterval(n)}},[]),c.jsxs("div",{className:jn.clock,style:{overflow:"hidden"},children:[c.jsx("img",{src:"https://images.unsplash.com/photo-1512428813834-c702c7702b78",alt:"",className:jn.bgImg}),c.jsx(h_,{}),c.jsx(p_,{}),c.jsx("div",{className:jn.centerConnector}),c.jsx("div",{className:jn.hoursHand,style:{rotate:`${e.hours}deg`}}),c.jsx("div",{className:jn.minutesHand,style:{rotate:`${e.minutes}deg`}}),c.jsx("div",{className:jn.secondsHand,style:{rotate:`${e.seconds}deg`}})]})},P8="_main_ykqcu_1",Ls={main:P8},O8=h.forwardRef(function({delay:t,step:n,stepBy:r},o){const[i,s]=h.useState({decrement:null,increment:null});function l(){const u=n,d=setTimeout(()=>{r(-u),s(f=>({...f,decrement:null}))},t*1e3);s(f=>({...f,decrement:d}))}function a(){const u=n,d=setTimeout(()=>{r(+u),s(f=>({...f,increment:null}))},t*1e3);s(f=>({...f,increment:d}))}return h.useImperativeHandle(o,()=>({reset:()=>{i.decrement&&clearTimeout(i.decrement),i.increment&&clearTimeout(i.increment),s({decrement:null,increment:null})}})),c.jsxs("section",{className:Ls.async,children:[c.jsx("button",{onClick:l,"aria-label":"Async Decrement",disabled:!!i.decrement,className:Ls.asyncButton,children:"async -"}),c.jsx("button",{onClick:a,"aria-label":"Async Increment",disabled:!!i.increment,className:Ls.asyncButton,children:"+ async"})]})});function A8({stepBy:e,step:t}){return c.jsxs("section",{className:Ls.async,children:[c.jsx("button",{onClick:()=>e(-t),"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:()=>e(t),"aria-label":"Increment",children:"+"})]})}const cd=1,ud=100,M8=1,D8=3,Dl=-1e3,Il=1e3,I8=function({step:t,setStep:n}){function r(o){const i=o.target.valueAsNumber;if(Number.isNaN(i))return n(1);i>ud?n(ud):in?r(n):ae?r(e):r(a)}function s(l){const a=l.target.valueAsNumber;if(Number.isNaN(a))return o(Il);aIl?o(Il):a{}});function f(){d.current.reset(),t(0)}function p(g){t(m=>{const y=m+g;return s<=y&&y<=a?y:m})}return c.jsxs("main",{className:Ls.main,children:[c.jsx("h2",{children:e}),c.jsx(A8,{stepBy:p,step:n}),c.jsx(O8,{delay:o,stepBy:p,step:n,ref:d}),c.jsx(F8,{delay:o,setDelay:i}),c.jsxs("section",{children:[c.jsx(I8,{step:n,setStep:r}),c.jsx(L8,{value:e,lowerLimit:s,upperLimit:a,setLowerLimit:l,setUpperLimit:u}),c.jsx("button",{onClick:f,children:"Reset"})]})]})}const B8={"transfer-list":c.jsx(C3,{}),counter:c.jsx(Wk,{}),"advanced-counter":c.jsx(z8,{}),accordion:c.jsx(DC,{}),"background-changer":c.jsx(Tk,{}),"star-Rating":c.jsx(dN,{}),"light-dark-mode":c.jsx(I$,{}),"Guess-the-number":c.jsx(Z2,{}),"telephone-formatter":c.jsx(RN,{}),"toast-popup":c.jsx(iT,{}),"password-strength":c.jsx(FR,{}),"todo-list":c.jsx(pT,{}),"investment-calculator":c.jsx(P$,{}),stopwatch:c.jsx(pN,{}),progressbar:c.jsx(GR,{}),"infinite-scrolling":c.jsx(_$,{}),"feedback-modal":c.jsx(S2,{}),"file-explorer":c.jsx(A2,{}),"autocomplete-offline":c.jsx(VC,{}),"autocomplete-online":c.jsx(YC,{}),"tic-tac-toe":c.jsx(UN,{}),stack:c.jsx(sN,{}),"food-recipe":c.jsx(Y2,{}),"match-pair":c.jsx(Y$,{}),"password-generator":c.jsx(PR,{}),"column-table":c.jsx(Bk,{}),"table-colorizer":c.jsx($N,{}),"25-5-clock":c.jsx(jT,{}),"bmi-calculator":c.jsx(dk,{}),"email-templates":c.jsx(Zk,{}),"expense-tracker":c.jsx(a2,{}),pagination:c.jsx(yR,{}),"qr-code-generator":c.jsx(nN,{}),"image-gallery":c.jsx(tj,{}),"word-count":c.jsx(OT,{}),"temperature-converter":c.jsx(FN,{}),"color-mixer":c.jsx(Ok,{}),"string-transformers":c.jsx(yN,{}),"your-sport":c.jsx(BT,{}),"modal-popup":c.jsx(KT,{}),"emoji-picker":c.jsx(lP,{}),"programming-languages-multiverse":c.jsx(vP,{}),otp:c.jsx(wP,{}),"traffic-lights":c.jsx(CP,{}),"quiz-app":c.jsx(FP,{}),"chess-board":c.jsx(GP,{}),"nested-dropdown":c.jsx(sR,{}),"anagram-checker":c.jsx(nk,{}),calculator:c.jsx(i3,{}),"water-balancer":c.jsx(y3,{}),timeline:c.jsx(P3,{}),"word-connect":c.jsx(IF,{}),stepper:c.jsx(GF,{}),"inline-options":c.jsx(JF,{}),"digital-clock":c.jsx(E6,{}),"nested-comments":c.jsx($6,{}),"15puzzle":c.jsx(TC,{}),"memory-game":c.jsx(Q6,{}),"chip-input":c.jsx(t8,{}),tabs:c.jsx(s8,{}),"drag-drop":c.jsx(f8,{}),circles:c.jsx(y8,{}),"analog-clock":c.jsx(T8,{})};function U8(){var n,r;const e=zE(),t=(e==null?void 0:e.id)??"";return c.jsxs(c.Fragment,{children:[c.jsx(jk,{title:(n=qm.get(t))==null?void 0:n.title,link:(r=qm.get(t))==null?void 0:r.link}),c.jsx("div",{className:"container",children:B8[t]})]})}const H8=eC([{path:"/:id",element:c.jsx(U8,{})}]);dd.createRoot(document.getElementById("root")).render(c.jsx(S.StrictMode,{children:c.jsx(cC,{router:H8})})); + */var XL=BL,JL=VL,Lv=YL,Fv=QL,ZL=function(e,t,n){if(!Fv(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=XL(t,{sep:".",brackets:!0}).filter(e4),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function o4(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function i4(e,t){return Object.entries(kD(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function s4(e,t){const n=h.useRef();return(t?aa:Sa)(e,n.current)||(n.current=e),n.current}function Xw(e,t){return h.useMemo(e,s4(t,!0))}function a4(e){const t=h.useRef(null),n=h.useRef(null),r=h.useRef(!0);return h.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),h.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:l}=n.current.getBoundingClientRect();return i.style.height=l+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const l4=e=>{const[t,n]=h.useState(e.getVisiblePaths());return h.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:Sa});return()=>r()},[e]),t};function c4(e,t,n){return e.useStore(o=>{const i=ne(ne({},n),o.data);return i4(i,t)},Sa)}function Jw(e=3){const t=h.useRef(null),n=h.useRef(null),[r,o]=h.useState(!1),i=h.useCallback(()=>o(!0),[]),s=h.useCallback(()=>o(!1),[]);return h.useLayoutEffect(()=>{if(r){const{bottom:l,top:a,left:u}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=l+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=u+"px",f==="down"?n.current.style.top=l+e+"px":n.current.style.bottom=window.innerHeight-a+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}c5([u5]);const u4={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};$t.extend({color:()=>e=>xt(e).isValid()});const d4=e=>$t().color().test(e);function Zw(e,{format:t,hasAlpha:n,isString:r}){const o=u4[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?jD(i,["a"]):i}const e_=(e,t)=>{const n=xt(e);if(!n.isValid())throw Error("Invalid color");return Zw(n,t)},f4=(e,t)=>Zw(xt(e),ne(ne({},t),{},{isString:!0,format:"hex"})),p4=({value:e})=>{const t=l5(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:e_(e,o),settings:o}};var h4=Object.freeze({__proto__:null,schema:d4,sanitize:e_,format:f4,normalize:p4});const m4=ee("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),g4=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),v4=ee("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Uv(e,t){return t!=="rgb"?xt(e).toRgb():e}function y4({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=mt(),{format:s,hasAlpha:l}=n,{popinRef:a,wrapperRef:u,shown:d,show:f,hide:p}=Jw(),g=h.useRef(0),[m,y]=h.useState(()=>Uv(e,s)),w=l?v5:x5,v=()=>{y(Uv(e,s)),f(),o()},x=()=>{p(),i(),window.clearTimeout(g.current)},_=()=>{g.current=window.setTimeout(x,500)};return h.useEffect(()=>()=>window.clearTimeout(g.current),[]),S.createElement(S.Fragment,null,S.createElement(m4,{ref:a,active:d,onClick:()=>v(),style:{color:t}}),d&&S.createElement(sh,null,S.createElement(yw,{onPointerUp:x}),S.createElement(v4,{ref:u,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:C=>C.buttons===0&&_()},S.createElement(w,{color:m,onChange:r}))))}function x4(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,n),S.createElement(g4,null,S.createElement(y4,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),S.createElement(ih,{value:t,onChange:r,onUpdate:o})))}var w4=ne({component:x4},h4);function _4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(lh,{value:t,settings:r,onUpdate:n}))}var b4=ne({component:_4},kw(["x","y","z"]));const S4=ee("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),E4=ee("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function C4({value:e,settings:t,onUpdate:n}){const r=h.useRef(),o=h.useRef(0),i=h.useRef(0),s=h.useRef(1),[l,a]=h.useState(!1),[u,d]=h.useState(!1),[f,p]=ww(),g=h.useRef(null),m=h.useRef(null);h.useLayoutEffect(()=>{if(l){const{top:I,left:H,width:z,height:Y}=g.current.getBoundingClientRect();m.current.style.left=H+z/2+"px",m.current.style.top=I+Y/2+"px"}},[l]);const{keys:[y,w],joystick:v}=t,x=v==="invertY"?1:-1,{[y]:{step:_},[w]:{step:C}}=t,E=Xn("sizes","joystickWidth"),b=Xn("sizes","joystickHeight"),k=parseFloat(E)*.8/2,j=parseFloat(b)*.8/2,P=h.useCallback(()=>{r.current||(d(!0),o.current&&p({x:o.current*k}),i.current&&p({y:i.current*-j}),r.current=window.setInterval(()=>{n(I=>{const H=_*o.current*s.current,z=x*C*i.current*s.current;return Array.isArray(I)?{[y]:I[0]+H,[w]:I[1]+z}:{[y]:I[y]+H,[w]:I[w]+z}})},16))},[k,j,n,p,_,C,y,w,x]),T=h.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);h.useEffect(()=>{function I(H){s.current=ow(H)}return window.addEventListener("keydown",I),window.addEventListener("keyup",I),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",I),window.removeEventListener("keyup",I)}},[]);const M=$a(({first:I,active:H,delta:[z,Y],movement:[q,Q]})=>{I&&a(!0);const L=Hr(q,-k,k),V=Hr(Q,-j,j);o.current=Math.abs(q)>Math.abs(L)?Math.sign(q-L):0,i.current=Math.abs(Q)>Math.abs(V)?Math.sign(V-Q):0;let J=e[y],re=e[w];H?(o.current||(J+=z*_*s.current,p({x:L})),i.current||(re-=x*Y*C*s.current,p({y:V})),o.current||i.current?P():T(),n({[y]:J,[w]:re})):(a(!1),o.current=0,i.current=0,p({x:0,y:0}),T())});return S.createElement(S4,Fe({ref:g},M()),l&&S.createElement(sh,null,S.createElement(E4,{ref:m,isOutOfBounds:u},S.createElement("div",null),S.createElement("span",{ref:f}))))}const k4=ee("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function j4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(k4,{withJoystick:!!r.joystick},r.joystick&&S.createElement(C4,{value:t,settings:r,onUpdate:n}),S.createElement(lh,{value:t,settings:r,onUpdate:n})))}const $4=["joystick"],t_=kw(["x","y"]),R4=e=>{let{joystick:t=!0}=e,n=ve(e,$4);const{value:r,settings:o}=t_.normalize(n);return{value:r,settings:ne(ne({},o),{},{joystick:t})}};var N4=ne(ne({component:j4},t_),{},{normalize:R4});const T4=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},P4=(e,t)=>typeof t=="object"&&"image"in t,O4=({image:e})=>({value:e});var A4=Object.freeze({__proto__:null,sanitize:T4,schema:P4,normalize:O4});const M4=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),D4=ee("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),I4=ee("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),L4=ee("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),F4=ee("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),z4=ee("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function B4(){const{label:e,value:t,onUpdate:n,disabled:r}=mt(),{popinRef:o,wrapperRef:i,shown:s,show:l,hide:a}=Jw(),u=h.useCallback(m=>{m.length&&n(m[0])},[n]),d=h.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:p,isDragAccept:g}=qw({maxFiles:1,accept:"image/*",onDrop:u,disabled:r});return S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(M4,null,S.createElement(I4,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&l(),onPointerUp:a,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&S.createElement(sh,null,S.createElement(yw,{onPointerUp:a,style:{cursor:"pointer"}}),S.createElement(L4,{ref:i,style:{backgroundImage:`url(${t})`}})),S.createElement(D4,f({isDragAccept:g}),S.createElement("input",p()),S.createElement(F4,null,g?"drop image":"click or drop")),S.createElement(z4,{onClick:d,disabled:!t})))}var U4=ne({component:B4},A4);const Hv=$t().number(),H4=(e,t)=>$t().array().length(2).every.number().test(e)&&$t().schema({min:Hv,max:Hv}).test(t),$c=e=>({min:e[0],max:e[1]}),n_=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?$c(e):e,i={min:r[0],max:r[1]},{min:s,max:l}=ne(ne({},i),o);return[Hr(Number(s),t,Math.max(t,l)),Hr(Number(l),Math.min(n,s),n)]},W4=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=Cw($c(e),{min:r,max:r}),i=[t,n],s=ne(ne({},o),{},{bounds:i});return{value:n_($c(e),s,e),settings:s}};var V4=Object.freeze({__proto__:null,schema:H4,format:$c,sanitize:n_,normalize:W4});const G4=["value","bounds","onDrag"],K4=["bounds"],q4=ee("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Y4(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=ve(e,G4);const s=h.useRef(null),l=h.useRef(null),a=h.useRef(null),u=h.useRef(0),d=Xn("sizes","scrubberWidth"),f=$a(({event:m,first:y,xy:[w],movement:[v],memo:x={}})=>{if(y){const{width:C,left:E}=s.current.getBoundingClientRect();u.current=C-parseFloat(d);const b=(m==null?void 0:m.target)===l.current||(m==null?void 0:m.target)===a.current;x.pos=Sc((w-E)/C,n,r);const k=Math.abs(x.pos-t.min)-Math.abs(x.pos-t.max);x.key=k<0||k===0&&x.pos<=t.min?"min":"max",b&&(x.pos=t[x.key])}const _=x.pos+Sc(v/u.current,0,r-n);return o({[x.key]:mI(_,i[x.key])}),x}),p=`calc(${bc(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,g=`calc(${1-bc(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return S.createElement(bw,Fe({ref:s},f()),S.createElement(_w,null,S.createElement(Sw,{style:{left:p,right:g}})),S.createElement(jf,{position:"left",ref:l,style:{left:p}}),S.createElement(jf,{position:"right",ref:a,style:{right:g}}))}function Q4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt(),o=ve(r,K4);return S.createElement(S.Fragment,null,S.createElement(rn,{input:!0},S.createElement(vn,null,e),S.createElement(q4,null,S.createElement(Y4,Fe({value:t},r,{onDrag:n})),S.createElement(lh,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var X4=ne({component:Q4},V4);const J4=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Z4=["type","value"],eF=["onChange","transient","onEditStart","onEditEnd"],tF=function(){const t=xL(wL(()=>({data:{}}))),n=J4();this.storeId=CD(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),l=Object.keys(s),a=[];Object.entries(r).forEach(([d,f])=>{f.render&&l.some(p=>p.indexOf(d)===0)&&!f.render(this.get)&&a.push(d+".")});const u=[];return o.forEach(d=>{d in s&&s[d].__refCount>0&&a.every(f=>d.indexOf(f)===-1)&&(!s[d].render||s[d].render(this.get))&&u.push(d)}),u},this.setOrderedPaths=s=>{s.forEach(l=>o.add(l))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(l=>{const a=l.data;return s.forEach(u=>{if(u in a){const d=a[u];d.__refCount--,d.__refCount===0&&d.type in hn&&delete a[u]}}),{data:a}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,l)=>{t.setState(a=>{const u=a.data;return Object.entries(s).forEach(([d,f])=>{let p=u[d];if(p){const{type:g,value:m}=f,y=ve(f,Z4);g!==p.type?Vn(Ne.INPUT_TYPE_OVERRIDE,g):((p.__refCount===0||l)&&Object.assign(p,y),p.__refCount++)}else u[d]=ne(ne({},f),{},{__refCount:1})}),{data:u}})},this.setValueAtPath=(s,l,a)=>{t.setState(u=>{const d=u.data;return dv(d[s],l,s,this,a),{data:d}})},this.setSettingsAtPath=(s,l)=>{t.setState(a=>{const u=a.data;return u[s].settings=ne(ne({},u[s].settings),l),{data:u}})},this.disableInputAtPath=(s,l)=>{t.setState(a=>{const u=a.data;return u[s].disabled=l,{data:u}})},this.set=(s,l)=>{t.setState(a=>{const u=a.data;return Object.entries(s).forEach(([d,f])=>{try{dv(u[d],f,void 0,void 0,l)}catch{}}),{data:u}})},this.getInput=s=>{try{return this.getData()[s]}catch{Vn(Ne.PATH_DOESNT_EXIST,s)}},this.get=s=>{var l;return(l=this.getInput(s))===null||l===void 0?void 0:l.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,l)=>{const a=`onEditStart:${s}`;return n.on(a,l),()=>n.off(a,l)},this.subscribeToEditEnd=(s,l)=>{const a=`onEditEnd:${s}`;return n.on(a,l),()=>n.off(a,l)};const i=(s,l,a)=>{const u={};return Object.entries(s).forEach(([d,f])=>{if(d==="")return Vn(Ne.EMPTY_KEY);let p=mh(l,d);if(f.type===hn.FOLDER){const g=i(f.schema,p,a);Object.assign(u,g),p in r||(r[p]=f.settings)}else if(d in a)Vn(Ne.DUPLICATE_KEYS,d,p,a[d].path);else{const g=OD(f,d,p,u);if(g){const{type:m,options:y,input:w}=g,{onChange:v,transient:x,onEditStart:_,onEditEnd:C}=y,E=ve(y,eF);u[p]=ne(ne(ne({type:m},E),w),{},{fromPanel:!0}),a[d]={path:p,onChange:v,transient:x,onEditStart:_,onEditEnd:C}}else Vn(Ne.UNKNOWN_INPUT,p,f)}}),u};this.getDataFromSchema=s=>{const l={};return[i(s,"",l),l]}},r_=new tF,nF={collapsed:!1};function rF(e,t){return{type:hn.FOLDER,schema:e,settings:ne(ne({},nF),t)}}const Wv=e=>"__levaInput"in e,oF=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=o4(o);(!r||i.toLowerCase().indexOf(r)>-1)&&r4(n,s,{[i]:{__levaInput:!0,path:o}})}),n},iF=["type","label","path","valueKey","value","settings","setValue","disabled"];function sF(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:l,disabled:a}=e,u=ve(e,iF);const{displayValue:d,onChange:f,onUpdate:p}=xw({type:t,value:i,settings:s,setValue:l}),g=xo[t].component;return g?S.createElement(cw.Provider,{value:ne({key:o,path:r,id:""+r,label:n,displayValue:d,value:i,onChange:f,onUpdate:p,settings:s,setValue:l,disabled:a},u)},S.createElement(ZD,{disabled:a},S.createElement(g,null))):(Vn(Ne.NO_COMPONENT_FOR_TYPE,t,r),null)}const aF=ee("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function lF({onClick:e,settings:t,label:n}){const r=ja();return S.createElement(rn,null,S.createElement(aF,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const cF=ee("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),uF=ee("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),dF=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function fF(e){const{label:t,opts:n}=dF(e),r=ja();return S.createElement(rn,{input:!!t},t&&S.createElement(vn,null,t),S.createElement(cF,null,Object.entries(n).map(([o,i])=>S.createElement(uF,{key:o,onClick:()=>i(r.get)},o))))}const pF=ee("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),o_=100;function hF(e,t){e.push(t),e.length>o_&&e.shift()}const mF=h.forwardRef(function({initialValue:e},t){const n=Xn("colors","highlight3"),r=Xn("colors","elevation2"),o=Xn("colors","highlight1"),[i,s]=h.useMemo(()=>[xt(o).alpha(.4).toRgbString(),xt(o).alpha(.1).toRgbString()],[o]),l=h.useRef([e]),a=h.useRef(e),u=h.useRef(e),d=h.useRef(),f=h.useCallback((m,y)=>{if(!m)return;const{width:w,height:v}=m,x=new Path2D,_=w/o_,C=v*.05;for(let k=0;k({frame:m=>{(a.current===void 0||mu.current)&&(u.current=m),hF(l.current,m),d.current=requestAnimationFrame(()=>f(p.current,g.current))}}),[p,g,f]),h.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),S.createElement(pF,{ref:p})}),Vv=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),gF=h.forwardRef(function({initialValue:e},t){const[n,r]=h.useState(Vv(e));return h.useImperativeHandle(t,()=>({frame:o=>r(Vv(o))}),[]),S.createElement("div",null,n)});function Gv(e){return typeof e=="function"?e():e.current}function vF({label:e,objectOrFn:t,settings:n}){const r=h.useRef(),o=h.useRef(Gv(t));return h.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(Gv(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),S.createElement(rn,{input:!0},S.createElement(vn,{align:"top"},e),n.graph?S.createElement(mF,{ref:r,initialValue:o.current}):S.createElement(gF,{ref:r,initialValue:o.current}))}const yF=["type","label","key"],xF={[hn.BUTTON]:lF,[hn.BUTTON_GROUP]:fF,[hn.MONITOR]:vF},wF=S.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:l}]=uI(e);if(!t)return null;const{type:a,label:u,key:d}=t,f=ve(t,yF);if(a in hn){const p=xF[a];return S.createElement(p,Fe({label:u,path:e},f))}return a in xo?S.createElement(sF,Fe({key:i+e,type:a,label:u,storeId:i,path:e,valueKey:d,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:l},f)):(vD(Ne.UNSUPPORTED_INPUT,a,e),null)});function _F({toggle:e,toggled:t,name:n}){return S.createElement(QD,{onClick:()=>e()},S.createElement(ah,{toggled:t}),S.createElement("div",null,n))}const bF=({name:e,path:t,tree:n})=>{const r=ja(),o=mh(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[l,a]=h.useState(!i),u=h.useRef(null),d=Xn("colors","folderWidgetColor"),f=Xn("colors","folderTextColor");return h.useLayoutEffect(()=>{u.current.style.setProperty("--leva-colors-folderWidgetColor",s||d),u.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,d,f]),S.createElement(Ec,{ref:u},S.createElement(_F,{name:e,toggled:l,toggle:()=>a(p=>!p)}),S.createElement(i_,{parent:o,tree:n,toggled:l}))},i_=S.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:l}=a4(i),a=ja(),u=([f,p])=>{var g;return(Wv(p)?(g=a.getInput(p.path))===null||g===void 0?void 0:g.order:a.getFolderSettings(mh(r,f)).order)||0},d=Object.entries(o).sort((f,p)=>u(f)-u(p));return S.createElement(Cf,{ref:s,isRoot:e,fill:t,flat:n},S.createElement(mw,{ref:l,isRoot:e,toggled:i},d.map(([f,p])=>Wv(p)?S.createElement(wF,{key:p.path,valueKey:p.valueKey,path:p.path}):S.createElement(bF,{key:f,name:f,path:r,tree:p}))))}),SF=ee("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${vw}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),s_=40,Rc=ee("i",{$flexCenter:"",width:s_,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),EF=ee("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),CF=ee("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Rc}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),kF=ee("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),jF=ee("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:s_}}}}),$F=S.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=h.useState(""),i=h.useMemo(()=>rw(e,250),[e]),s=()=>{e(""),o("")},l=a=>{const u=a.currentTarget.value;t(!0),o(u)};return h.useEffect(()=>{i(r)},[r,i]),S.createElement(S.Fragment,null,S.createElement(kF,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:a=>a.stopPropagation(),onChange:l}),S.createElement(Rc,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function RF({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:l,filterEnabled:a,from:u}){const[d,f]=h.useState(!1),p=h.useRef(null);h.useEffect(()=>{var m,y;d?(m=p.current)===null||m===void 0||m.focus():(y=p.current)===null||y===void 0||y.blur()},[d]);const g=$a(({offset:[m,y],first:w,last:v})=>{t({x:m,y}),w&&n({x:m,y}),v&&r({x:m,y})},{filterTaps:!0,from:({offset:[m,y]})=>[(u==null?void 0:u.x)||m,(u==null?void 0:u.y)||y]});return h.useEffect(()=>{const m=y=>{y.key==="L"&&y.shiftKey&&y.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),S.createElement(S.Fragment,null,S.createElement(EF,{mode:l?"drag":void 0},S.createElement(Rc,{active:!i,onClick:()=>o()},S.createElement(ah,{toggled:i,width:12,height:8})),S.createElement(jF,Fe({},l?g():{},{drag:l,filterEnabled:a}),s===void 0&&l?S.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},S.createElement("circle",{cx:"2",cy:"2",r:"2"}),S.createElement("circle",{cx:"14",cy:"2",r:"2"}),S.createElement("circle",{cx:"26",cy:"2",r:"2"}),S.createElement("circle",{cx:"2",cy:"12",r:"2"}),S.createElement("circle",{cx:"14",cy:"12",r:"2"}),S.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),a&&S.createElement(Rc,{active:d,onClick:()=>f(m=>!m)},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},S.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),S.createElement(CF,{toggled:d},S.createElement($F,{ref:p,setFilter:e,toggle:o})))}const NF=["store","hidden","theme","collapsed"];function TF(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=ve(e,NF);const s=Xw(()=>WD(r),[r]),[l,a]=h.useState(!o),u=typeof o=="object"?!o.collapsed:l,d=h.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:a,[o]);return!t||n?null:S.createElement(oh.Provider,{value:s},S.createElement(PF,Fe({store:t},i,{toggled:u,setToggle:d,rootClass:s.className})))}const PF=S.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:l=!1,toggled:a,setToggle:u})=>{var d,f;const p=l4(e),[g,m]=h.useState(""),y=h.useMemo(()=>oF(p,g),[p,g]),[w,v]=ww(),x=o||p.length>0,_=typeof s=="object"&&s.title||void 0,C=typeof s=="object"&&(d=s.drag)!==null&&d!==void 0?d:!0,E=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,b=typeof s=="object"&&s.position||void 0,k=typeof s=="object"&&s.onDrag||void 0,j=typeof s=="object"&&s.onDragStart||void 0,P=typeof s=="object"&&s.onDragEnd||void 0;return S.useEffect(()=>{v({x:b==null?void 0:b.x,y:b==null?void 0:b.y})},[b,v]),HD(),S.createElement(dw.Provider,{value:{hideCopyButton:l}},S.createElement(SF,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:x?"block":"none"}},s&&S.createElement(RF,{onDrag:T=>{v(T),k==null||k(T)},onDragStart:T=>j==null?void 0:j(T),onDragEnd:T=>P==null?void 0:P(T),setFilter:m,toggle:T=>u(M=>T??!M),toggled:a,title:_,drag:C,filterEnabled:E,from:b}),x&&S.createElement(uw.Provider,{value:e},S.createElement(i_,{isRoot:!0,fill:n,flat:r,tree:y,toggled:a}))))}),OF=["isRoot"];let Nc=!1,io=null;function a_(e){let{isRoot:t=!1}=e,n=ve(e,OF);return h.useEffect(()=>(Nc=!0,!t&&io&&(io.remove(),io=null),()=>{t||(Nc=!1)}),[t]),S.createElement(TF,Fe({store:r_},n))}function AF(e){h.useEffect(()=>{e&&!Nc&&(io||(io=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(io),MD(S.createElement(a_,{isRoot:!0}),io))),Nc=!0)},[e])}function MF(e,t,n,r,o){let i,s,l,a,u;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?u=n:n&&("store"in n?(a=n,u=r):(l=n,Array.isArray(r)?u=r:(a=r,u=o)))):(i=e,Array.isArray(t)?u=t:(a=t,u=n)),{schema:i,folderName:s,folderSettings:l,hookSettings:a,deps:u||[]}}function ad(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:l,hookSettings:a,deps:u}=MF(e,t,n,r,o),d=typeof s=="function",f=h.useRef(!1),p=h.useRef(!0),g=Xw(()=>{f.current=!0;const M=typeof s=="function"?s():s;return i?{[i]:rF(M,l)}:M},u),m=!(a!=null&&a.store);AF(m);const[y]=h.useState(()=>(a==null?void 0:a.store)||r_),[w,v]=h.useMemo(()=>y.getDataFromSchema(g),[y,g]),[x,_,C,E,b]=h.useMemo(()=>{const M=[],I=[],H={},z={},Y={};return Object.values(v).forEach(({path:q,onChange:Q,onEditStart:L,onEditEnd:V,transient:J})=>{M.push(q),Q?(H[q]=Q,J||I.push(q)):I.push(q),L&&(z[q]=L),V&&(Y[q]=V)}),[M,I,H,z,Y]},[v]),k=h.useMemo(()=>y.orderPaths(x),[x,y]),j=c4(y,_,w),P=h.useCallback(M=>{const I=Object.entries(M).reduce((H,[z,Y])=>Object.assign(H,{[v[z].path]:Y}),{});y.set(I,!1)},[y,v]),T=h.useCallback(M=>y.get(v[M].path),[y,v]);return h.useEffect(()=>{const M=!p.current&&f.current;return y.addData(w,M),p.current=!1,f.current=!1,()=>y.disposePaths(k)},[y,k,w]),h.useEffect(()=>{const M=[];return Object.entries(C).forEach(([I,H])=>{H(y.get(I),I,ne({initial:!0,get:y.get},y.getInput(I)));const z=y.useStore.subscribe(Y=>{const q=Y.data[I];return[q.disabled?void 0:q.value,q]},([Y,q])=>H(Y,I,ne({initial:!1,get:y.get},q)),{equalityFn:Sa});M.push(z)}),()=>M.forEach(I=>I())},[y,C]),h.useEffect(()=>{const M=[];return Object.entries(E).forEach(([I,H])=>M.push(y.subscribeToEditStart(I,H))),Object.entries(b).forEach(([I,H])=>M.push(y.subscribeToEditEnd(I,H))),()=>M.forEach(I=>I())},[E,b,y]),d?[j,P,T]:j}lr(gn.SELECT,jI);lr(gn.IMAGE,U4);lr(gn.NUMBER,vI);lr(gn.COLOR,w4);lr(gn.STRING,DI);lr(gn.BOOLEAN,HI);lr(gn.INTERVAL,X4);lr(gn.VECTOR3D,b4);lr(gn.VECTOR2D,N4);const DF=window.innerWidth<=768,IF=()=>{const{groupSize:e}=ad({groupSize:{value:2,min:2,max:4,step:1}}),{itemCount:t}=ad({itemCount:{value:8,min:4,max:12,step:1}}),{columns:n}=ad({columns:{value:4,min:2,max:4,step:1,disabled:DF}}),[r,o]=h.useState([]),[i,s]=h.useState([]),l=h.useCallback(()=>{const[a,u]=F3(t,e);o(a),s(u)},[s,t,e]);return h.useEffect(l,[t,e,l]),c.jsxs(c.Fragment,{children:[c.jsx(a_,{collapsed:!0,hideCopyButton:!0,titleBar:{position:{x:0,y:40},filter:!1,title:"Config"},theme:{colors:{highlight1:"white",highlight2:"white"}}}),c.jsxs("h3",{className:qn.center,children:["Connect group of ",e," words by clicking on related words"]}),c.jsx(Y3,{itemGroups:r,allItems:i,columns:n,groupSize:e}),c.jsx("div",{className:qn.center,children:c.jsx("button",{className:qn.reset,onClick:()=>l(),children:"Reset"})})]})},LF="_heading_g33np_1",FF="_stepper_g33np_5",zF="_step_g33np_5",BF="_active_g33np_33",UF="_complete_g33np_39",HF="_btn_g33np_65",an={heading:LF,stepper:FF,step:zF,active:BF,"step-number":"_step-number_g33np_33",complete:UF,btn:HF,"progress-container":"_progress-container_g33np_71","progress-bar":"_progress-bar_g33np_83","action-container":"_action-container_g33np_91"},WF=({stepConfig:e=[]})=>{var d;const[t,n]=h.useState(1),[r,o]=h.useState(!1),[i,s]=h.useState(0),l=h.useRef(null),a=(d=e[t-1])==null?void 0:d.Component,u=()=>{n(f=>f===e.length?(o(!0),f):f+1)};return h.useEffect(()=>(s(l.current.offsetWidth/2),window.addEventListener("resize",()=>{s(l.current.offsetWidth/2)}),window.removeEventListener("resize",()=>{s(l.current.offsetWidth/2)})),[]),e.length===0?c.jsx(c.Fragment,{}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:an.stepper,children:[e.map((f,p)=>c.jsxs("div",{ref:l,className:`${an.step} ${t===p+1?an.active:""} ${t>p+1||r?an.complete:""}`,children:[c.jsx("div",{className:an["step-number"],children:t>p+1||r?c.jsx("span",{children:"✓"}):p+1}),c.jsx("div",{className:an["step-name"],children:f.name})]},f.name)),c.jsx("div",{className:an["progress-container"],style:{width:`calc(100% - ${i*2}px)`,marginLeft:i},children:c.jsx("div",{className:an["progress-bar"],style:{width:`${(t-1)/(e.length-1)*100}%`}})})]}),c.jsxs("div",{className:an["action-container"],children:[!r&&c.jsx(a,{}),r&&c.jsx("div",{children:"Order Delivered successfully!🎉"}),!r&&c.jsx("button",{className:an.btn,onClick:u,children:t===e.length?"Finish":"Next"})]})]})},VF=[{name:"Contact Details",Component:()=>c.jsx("div",{children:"Add contact details for further communications."})},{name:"Shipping Address",Component:()=>c.jsx("div",{children:"Add shipping address for successfull delivery."})},{name:"Payment",Component:()=>c.jsx("div",{children:"Complete Payment to complete the order."})},{name:"Delivered",Component:()=>c.jsx("div",{children:"Ready to get delivered!"})}],GF=()=>c.jsxs("div",{children:[c.jsx("h1",{className:an.heading,children:"Stepper Component"}),c.jsx(WF,{stepConfig:VF})]}),KF="_main_yhjgz_1",qF="_option_yhjgz_26",_i={main:KF,"select-dahi":"_select-dahi_yhjgz_7","inline-options":"_inline-options_yhjgz_14",option:qF,"option-selected":"_option-selected_yhjgz_44","option-disabled":"_option-disabled_yhjgz_50"};function YF({id:e,text:t,setOption:n,isDisabled:r,isSelected:o}){const i=h.useCallback(s=>{if(r)return;const a=s.target.getAttribute("data-option-id");a&&n(a)},[]);return c.jsx("button",{"data-option-id":e,onClick:i,className:`${_i.option} ${o?_i["option-selected"]:""} ${r?_i["option-disabled"]:""}`,children:t})}function QF({options:e}){const[t,n]=h.useState(e[0].id),r=h.useCallback(o=>n(o),[]);return c.jsx("div",{className:_i["inline-options"],children:e.map(o=>c.jsx(YF,{...o,isSelected:o.id===t,setOption:r},o.id))})}const XF=[{id:"1",text:"100ml"},{id:"2",text:"200ml"},{id:"3",text:"400ml"},{id:"4",text:"500ml",isDisabled:!0},{id:"5",text:"800ml"}];function JF(){return c.jsx("div",{className:_i.main,children:c.jsxs("div",{className:_i["select-dahi"],children:[c.jsx("h2",{children:"Select Size of Dahi"}),c.jsx(QF,{options:XF})]})})}const ZF="_a_13gc8_1",e6="_d_13gc8_2",t6="_g_13gc8_3",n6="_b_13gc8_18",r6="_c_13gc8_19",o6="_e_13gc8_20",i6="_f_13gc8_21",s6="_off_13gc8_54",a6="_container_13gc8_59",l6="_hours_13gc8_68",c6="_minutes_13gc8_72",u6="_seconds_13gc8_76",d6="_colons_13gc8_80",f6="_colon1_13gc8_89",p6="_colon2_13gc8_90",D={a:ZF,d:e6,g:t6,b:n6,c:r6,e:o6,f:i6,off:s6,container:a6,hours:l6,minutes:c6,seconds:u6,colons:d6,colon1:f6,colon2:p6},h6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),m6=c.jsxs("div",{children:[c.jsx("div",{className:`${D.a} ${D.off}`}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),g6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:`${D.f} ${D.off}`}),c.jsx("div",{className:D.g})]}),v6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),y6=c.jsxs("div",{children:[c.jsx("div",{className:`${D.a} ${D.off}`}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),x6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:`${D.b} ${D.off}`}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),w6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:`${D.b} ${D.off}`}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),_6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),b6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),S6=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),Kv=c.jsxs("div",{className:D.colons,children:[c.jsx("div",{className:D.colon1}),c.jsx("div",{className:D.colon2})]}),yn=new Map;yn.set(0,h6);yn.set(1,m6);yn.set(2,g6);yn.set(3,v6);yn.set(4,y6);yn.set(5,x6);yn.set(6,w6);yn.set(7,_6);yn.set(8,b6);yn.set(9,S6);function E6(){let e=new Date;const[t,n]=h.useState(e.getHours()%12||12),[r,o]=h.useState(e.getMinutes()),[i,s]=h.useState(e.getSeconds()),l=()=>{let u=new Date;n(u.getHours()%12||12),o(u.getMinutes()),s(u.getSeconds())};setInterval(()=>l(),1e3);const a=u=>yn.get(u);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:D.container,children:[c.jsxs("div",{className:D.hours,children:[a(t.toString().split("").length>1?+t.toString().split("")[0]:0),a(t.toString().split("").length>1?+t.toString().split("")[1]:t)]}),Kv,c.jsxs("div",{className:D.minutes,children:[a(r.toString().split("").length>1?+r.toString().split("")[0]:0),a(r.toString().split("").length>1?+r.toString().split("")[1]:r)]}),Kv,c.jsxs("div",{className:D.seconds,children:[a(i.toString().split("").length>1?+i.toString().split("")[0]:0),a(i.toString().split("").length>1?+i.toString().split("")[1]:i)]})]})})}const C6=[{id:1,text:"Hello world! How are you?",replies:[{id:2,text:"Hey, I am fine, wau?",replies:[]}]}],k6="_comment_10sns_1",j6="_comment_replies_10sns_17",qv={comment:k6,comment_replies:j6},l_=({comments:e,addComment:t,deleteComment:n})=>{const[r,o]=h.useState(-1),[i,s]=h.useState(""),l=d=>{i&&(t(d,i),o(-1)),s("")},a=()=>{o(-1),s("")},u=(d,f)=>{d.key==="Enter"?l(f):d.key==="Escape"&&a()};return e.map(d=>c.jsxs("div",{children:[c.jsxs("div",{className:qv.comment,children:[c.jsx("img",{src:"https://www.iconpacks.net/icons/2/free-user-icon-3296-thumb.png",alt:d.text}),c.jsxs("div",{children:[c.jsx("p",{children:d.text}),r===d.id&&c.jsx("input",{type:"text",placeholder:"Reply...",autoFocus:!0,value:i,onKeyDown:f=>u(f,d.id),onChange:f=>s(f.target.value)}),r===d.id?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>l(d.id),children:"Add"}),c.jsx("button",{onClick:a,children:"Cancel"})]}):c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>o(d.id),children:"Reply"}),c.jsx("button",{onClick:()=>n(d.id),children:"Delete"})]})]})]}),c.jsx("div",{className:qv.comment_replies,children:c.jsx(l_,{comments:d.replies,addComment:t,deleteComment:n})})]},d.id))},$6=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(C6),o=(l,a)=>{a&&r(l===-1?u=>{const d=structuredClone(u);return d.unshift({id:Date.now(),text:a,replies:[]}),d}:u=>{const d=structuredClone(u);return c_(d,l,a),d})},i=l=>{r(a=>{const u=structuredClone(a);return u_(u,l),u})},s=l=>{l.key==="Enter"&&(o(-1,e),t("")),l.key==="Escape"&&t("")};return c.jsxs(c.Fragment,{children:[c.jsx("h1",{children:"Comments"}),c.jsxs("div",{style:{marginBottom:"1rem",display:"flex",gap:"1rem"},children:[c.jsx("input",{type:"text",placeholder:"Add comment...",onKeyDown:s,value:e,onChange:l=>t(l.target.value)}),c.jsx("button",{onClick:()=>{o(-1,e),t("")},children:"Add"})]}),c.jsx(l_,{comments:n,addComment:o,deleteComment:i})]})},c_=(e,t,n)=>{for(const r of e){if(r.id===t)return r.replies.unshift({id:Date.now(),text:n,replies:[]}),!0;if(c_(r.replies,t,n))return!0}return!1},u_=(e,t)=>{for(let n=0;n{switch(t.type){case"setCellOnClick":{let n=structuredClone(e);if(e.isGameOver)return n;const{payload:r}=t;let{activeCount:o,isLevelComplete:i,isLevelReadyForClick:s,life:l,isGameOver:a,userGrid:u}=n;const d=e.memoryGrid[r.rowIndex][r.colIndex],f=e.userGrid[r.rowIndex][r.colIndex];return d===1&&f===0?(u[r.rowIndex][r.colIndex]=1,o=o-1,o===0&&(i=!0,s=!1)):l=l-1,l===0&&(a=!0),{...n,isLevelComplete:i,isLevelReadyForClick:s,life:l,isGameOver:a,activeCount:o}}case"onNextLevel":{let n=structuredClone(e);n.level=n.level+1,n.rows===n.cols?n.rows=n.rows+1:n.cols=n.cols+1;const{grid:r,activeCount:o}=R6(n.rows,n.cols);return n.memoryGrid=r,n.userGrid=r,n.activeCount=o,n.isLevelComplete=!1,{...n}}case"setEmptyUserGrid":{let n=structuredClone(e);return n.userGrid=d_(n.rows,n.cols),n}case"setLevelReadyForClick":{let n=structuredClone(e);const{payload:r}=t;return n.isLevelReadyForClick=r,n}case"onReset":return f_}},Ta=h.createContext(),T6=({children:e})=>{const[t,n]=h.useReducer(N6,f_);return c.jsx(Ta.Provider,{value:{state:t,dispatch:n},children:e})},P6="_flexColumnCenter_1mbig_6",O6="_button_1mbig_12",A6="_container_1mbig_21",Is={"flex-row-center":"_flex-row-center_1mbig_1",flexColumnCenter:P6,button:O6,container:A6},M6=e=>c.jsx("div",{className:Is.container,children:e.children});function D6(){const{dispatch:e}=h.useContext(Ta),t=h.useCallback(function(){e({type:"onNextLevel"})},[e]);return c.jsxs(M6,{children:[c.jsx("header",{children:c.jsx("h1",{children:"Memory Game"})}),c.jsxs("div",{children:[c.jsxs("div",{style:{margin:"50px"},children:[c.jsx("p",{children:"Remember the colored boxes displayed and click on the boxes once the game starts"}),c.jsx("p",{children:"Difficulty will increase with each level"})]}),c.jsx("button",{style:{fontSize:"1.5rem"},onClick:t,className:Is.button,children:"Start"})]})]})}const I6=typeof window<"u",L6=I6?h.useLayoutEffect:h.useEffect,F6={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function z6(){const[e,t]=h.useState(null),[n,r]=h.useState(F6),o=h.useMemo(()=>new window.ResizeObserver(s=>{if(s[0]){const{x:l,y:a,width:u,height:d,top:f,left:p,bottom:g,right:m}=s[0].contentRect;r({x:l,y:a,width:u,height:d,top:f,left:p,bottom:g,right:m})}}),[]),i=()=>{o.disconnect()};return L6(()=>{if(e)return o.observe(e),i},[e]),[t,n]}const B6="_grid_dm3n1_1",U6={grid:B6},H6="_cellDiv_6x8w8_1",W6={cellDiv:H6};function V6({rowIndex:e,colIndex:t,backgroundColor:n}){return c.jsx("div",{className:`${W6.cellDiv} cell`,"data-row-index":e,"data-col-index":t,style:{backgroundColor:n??"#FFF"}})}const G6=e=>{const t={gridTemplateRows:`repeat(${e.rows}, 1fr)`,gridTemplateColumns:`repeat(${e.cols}, 1fr)`,width:`${e.width-20}px`,height:`${(e.width-20)/e.cols*e.rows}px`,maxHeight:`${e.rows*100}px`,maxWidth:`${e.cols*100}px`};return c.jsx("div",{className:U6.grid,style:t,onClick:e.onClick,children:e.children})};function K6({userGrid:e,windowWidth:t}){const{dispatch:n,state:r}=h.useContext(Ta),o=window.innerHeight-230;t>o&&(t=o),h.useEffect(()=>{setTimeout(()=>{n({type:"setEmptyUserGrid"}),n({type:"setLevelReadyForClick",payload:!0})},3e3)},[n,r.level]);const i=h.useCallback(function(s){if(!r.isLevelReadyForClick)return;const l=s.target;if(l.classList.contains("cell")){const a=l.dataset.rowIndex,u=l.dataset.colIndex;n({type:"setCellOnClick",payload:{rowIndex:a,colIndex:u}})}},[n,r.isLevelReadyForClick]);return c.jsx(G6,{rows:e.length,cols:e[0].length,onClick:i,width:t,children:e.map((s,l)=>s.map((a,u)=>c.jsx(V6,{rowIndex:l,colIndex:u,backgroundColor:a?"yellow":void 0},l+""+u)))})}function q6(){const{dispatch:e,state:t}=h.useContext(Ta),[n,{width:r}]=z6(),o=h.useCallback(function(){e({type:"onNextLevel"})}),i=h.useCallback(function(){e({type:"onReset"})},[e]);return c.jsxs("div",{ref:n,style:{position:"relative"},className:Is.flexColumnCenter,children:[c.jsxs("h3",{children:["Level ",t.level]}),c.jsx(K6,{userGrid:t.userGrid,rows:t.rows,cols:t.cols,windowWidth:r}),c.jsxs("h1",{children:["Life Left : ",t.life]}),c.jsxs("h1",{children:[" ",t.isGameOver&&"Game Over"]}),t.isLevelComplete&&c.jsx("button",{onClick:o,className:Is.button,children:"Next"}),t.isGameOver&&c.jsx("button",{onClick:i,className:Is.button,children:"Home"})]})}function Y6(){const{state:e}=h.useContext(Ta);return e.level===0?c.jsx(D6,{}):c.jsx(q6,{})}function Q6(){return c.jsx(T6,{children:c.jsx(Y6,{})})}const X6="_formContainer_muy2u_1",J6="_input_text_muy2u_5",Z6="_chips_muy2u_12",e8="_remove_muy2u_20",ms={formContainer:X6,input_text:J6,chips:Z6,remove:e8},t8=()=>{const[e,t]=h.useState(""),[n,r]=h.useState([]),o=s=>{s.preventDefault(),e.trim()!==""&&r([...n,e]),t("")},i=s=>{r(n.filter((l,a)=>a!==s))};return c.jsxs(c.Fragment,{children:[c.jsx("form",{onSubmit:o,className:ms.formContainer,children:c.jsx("input",{type:"text",placeholder:"Type & hit Enter",className:ms.input_text,value:e,onChange:s=>t(s.target.value)})}),c.jsx("div",{className:ms.container,children:n.map((s,l)=>c.jsxs("span",{className:ms.chips,children:[s," ",c.jsx("button",{className:ms.remove,onClick:()=>i(l),children:"✕"})]},l))})]})},n8="_container_w1r10_1",r8="_btn_w1r10_8",o8="_active_w1r10_19",i8="_content_w1r10_23",dl={container:n8,btn:r8,active:o8,content:i8},fl=[{label:"Tab 1",content:"HTML elements tell the browser how to display the content. For example, you can use HTML to create static pages with text, headings, tables, lists, images, links, and more."},{label:"Tab 2",content:"Cascading Style Sheets is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML. "},{label:"Tab 3",content:"JavaScript, often abbreviated as JS, is a programming language and core technology of the Web, alongside HTML and CSS. 99% of websites use JavaScript on the client side for webpage behavior. Web browsers have a dedicated JavaScript engine that executes the client code. "}],s8=()=>{const[e,t]=h.useState(0),n=r=>t(r);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:dl.container,children:[fl.map((r,o)=>c.jsx("span",{onClick:()=>n(o),className:`${e===o?dl.active:""} ${dl.btn}`,children:r.label},o)),c.jsxs("div",{className:dl.content,children:[c.jsxs("h2",{children:["Content of ",fl[e].label,":"]}),fl[e]&&c.jsx("p",{children:fl[e].content})]})]})})},a8="_container_1u8l1_1",l8="_listContainer_1u8l1_6",c8="_userDetail_1u8l1_19",u8="_saveBtn_1u8l1_24",Wo={container:a8,listContainer:l8,userDetail:c8,saveBtn:u8};function d8(e){return Ii({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}const f8=()=>{const[e,t]=h.useState([]),n=async()=>{const a=await(await fetch("https://jsonplaceholder.typicode.com/users")).json();t(a)};h.useEffect(()=>{const l=localStorage.getItem("savedList");l?t(JSON.parse(l)):n()},[]);const r=(l,a)=>{l.dataTransfer.setData("itemIndex",a)},o=()=>{localStorage.setItem("savedList",JSON.stringify(e)),alert("List Saved Successfully")},i=l=>{l.preventDefault()},s=(l,a)=>{const u=parseInt(l.dataTransfer.getData("itemIndex"));if(a!==u){const d=[...e],f=d.splice(u,1)[0];d.splice(a,0,f),t(d)}};return c.jsxs("div",{className:Wo.container,children:[e.slice(0,5).map((l,a)=>c.jsxs("div",{draggable:!0,onDragStart:u=>r(u,a),onDragOver:i,onDrop:u=>s(u,a),className:Wo.listContainer,children:[c.jsx("span",{className:Wo.userDetail,children:l.id}),c.jsx("span",{className:Wo.userDetail,children:l.name}),c.jsx("span",{className:Wo.userDetail,children:l.website}),c.jsx(d8,{})]},a)),c.jsx("button",{className:Wo.saveBtn,onClick:o,children:"Save List"})]})},p8="_container_1iv6r_1",h8="_inputWrapper_1iv6r_5",m8="_box_1iv6r_19",g8="_circle_1iv6r_26",pl={container:p8,inputWrapper:h8,box:m8,circle:g8},gs=Math.min(window.innerWidth-120,window.innerHeight-200),v8=50,y8=()=>{const[e,t]=h.useState(1),n=(gs-v8)/e,r=o=>{if(+o.target.value>2e3){t(2e3);return}if(+o.target.value<1){t(1);return}t(+o.target.value)};return c.jsxs("div",{className:pl.container,children:[c.jsxs("div",{className:pl.inputWrapper,children:[c.jsx("label",{htmlFor:"circles",children:"Number of circles:"}),c.jsx("input",{type:"number",id:"circles",value:e,min:"0",max:"2000",onChange:r})]}),c.jsx("div",{className:pl.box,style:{height:gs,width:gs},children:Array.from({length:e},(o,i)=>i).map(o=>c.jsx("div",{className:pl.circle,style:{height:gs-o*n,width:gs-o*n}},o))})]})},x8=60,Ml=[12,1,2,3,4,5,6,7,8,9,10,11],w8=e=>({seconds:Ml.length/2*e.getSeconds(),minutes:Ml.length/2*e.getMinutes()+e.getSeconds()/10,hours:e.getMinutes()/2+e.getHours()%Ml.length*30}),_8="_clock_as1nw_10",b8="_ticks_as1nw_22",S8="_tick_as1nw_22",E8="_digits_as1nw_42",C8="_digit_as1nw_42",k8="_bgImg_as1nw_57",j8="_centerConnector_as1nw_64",$8="_secondsHand_as1nw_73",R8="_minutesHand_as1nw_74",N8="_hoursHand_as1nw_75",jn={clock:_8,ticks:b8,tick:S8,digits:E8,digit:C8,bgImg:k8,centerConnector:j8,secondsHand:$8,minutesHand:R8,hoursHand:N8},p_=S.memo(()=>c.jsx("div",{className:jn.digits,children:Ml.map((e,t)=>c.jsx("div",{className:jn.digit,style:{left:`${50+Math.sin(Math.PI*2/12*t)*50}%`,top:`${50-Math.cos(Math.PI*2/12*t)*50}%`},children:e},e))}));p_.displayName="Digits";const h_=S.memo(()=>c.jsx("div",{className:jn.ticks,children:Array.from({length:x8}).map((e,t)=>c.jsx("div",{className:jn.tick,style:{left:`${50+Math.sin(Math.PI*2/60*t)*50}%`,top:`${50-Math.cos(Math.PI*2/60*t)*50}%`,rotate:`${t*6}deg`}},t))}));h_.displayName="Ticks";const T8=()=>{const[e,t]=h.useState({hours:0,minutes:0,seconds:0});return h.useEffect(()=>{const n=()=>{t(w8(new Date))};return n(),setInterval(n,1e3),()=>{clearInterval(n)}},[]),c.jsxs("div",{className:jn.clock,style:{overflow:"hidden"},children:[c.jsx("img",{src:"https://images.unsplash.com/photo-1512428813834-c702c7702b78",alt:"",className:jn.bgImg}),c.jsx(h_,{}),c.jsx(p_,{}),c.jsx("div",{className:jn.centerConnector}),c.jsx("div",{className:jn.hoursHand,style:{rotate:`${e.hours}deg`}}),c.jsx("div",{className:jn.minutesHand,style:{rotate:`${e.minutes}deg`}}),c.jsx("div",{className:jn.secondsHand,style:{rotate:`${e.seconds}deg`}})]})},P8="_main_ykqcu_1",Ls={main:P8},O8=h.forwardRef(function({delay:t,step:n,stepBy:r},o){const[i,s]=h.useState({decrement:null,increment:null});function l(){const u=n,d=setTimeout(()=>{r(-u),s(f=>({...f,decrement:null}))},t*1e3);s(f=>({...f,decrement:d}))}function a(){const u=n,d=setTimeout(()=>{r(+u),s(f=>({...f,increment:null}))},t*1e3);s(f=>({...f,increment:d}))}return h.useImperativeHandle(o,()=>({reset:()=>{i.decrement&&clearTimeout(i.decrement),i.increment&&clearTimeout(i.increment),s({decrement:null,increment:null})}})),c.jsxs("section",{className:Ls.async,children:[c.jsx("button",{onClick:l,"aria-label":"Async Decrement",disabled:!!i.decrement,className:Ls.asyncButton,children:"async -"}),c.jsx("button",{onClick:a,"aria-label":"Async Increment",disabled:!!i.increment,className:Ls.asyncButton,children:"+ async"})]})});function A8({stepBy:e,step:t}){return c.jsxs("section",{className:Ls.async,children:[c.jsx("button",{onClick:()=>e(-t),"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:()=>e(t),"aria-label":"Increment",children:"+"})]})}const cd=1,ud=100,M8=1,D8=3,Dl=-1e3,Il=1e3,I8=function({step:t,setStep:n}){function r(o){const i=o.target.valueAsNumber;if(Number.isNaN(i))return n(1);i>ud?n(ud):in?r(n):ae?r(e):r(a)}function s(l){const a=l.target.valueAsNumber;if(Number.isNaN(a))return o(Il);aIl?o(Il):a{}});function f(){d.current.reset(),t(0)}function p(g){t(m=>{const y=m+g;return s<=y&&y<=a?y:m})}return c.jsxs("main",{className:Ls.main,children:[c.jsx("h2",{children:e}),c.jsx(A8,{stepBy:p,step:n}),c.jsx(O8,{delay:o,stepBy:p,step:n,ref:d}),c.jsx(F8,{delay:o,setDelay:i}),c.jsxs("section",{children:[c.jsx(I8,{step:n,setStep:r}),c.jsx(L8,{value:e,lowerLimit:s,upperLimit:a,setLowerLimit:l,setUpperLimit:u}),c.jsx("button",{onClick:f,children:"Reset"})]})]})}const B8={"transfer-list":c.jsx(C3,{}),counter:c.jsx(Wk,{}),"advanced-counter":c.jsx(z8,{}),accordion:c.jsx(DC,{}),"background-changer":c.jsx(Tk,{}),"star-Rating":c.jsx(dN,{}),"light-dark-mode":c.jsx(I$,{}),"Guess-the-number":c.jsx(Z2,{}),"telephone-formatter":c.jsx(RN,{}),"toast-popup":c.jsx(iT,{}),"password-strength":c.jsx(FR,{}),"todo-list":c.jsx(pT,{}),"investment-calculator":c.jsx(P$,{}),stopwatch:c.jsx(pN,{}),progressbar:c.jsx(GR,{}),"infinite-scrolling":c.jsx(_$,{}),"feedback-modal":c.jsx(S2,{}),"file-explorer":c.jsx(A2,{}),"autocomplete-offline":c.jsx(VC,{}),"autocomplete-online":c.jsx(YC,{}),"tic-tac-toe":c.jsx(UN,{}),stack:c.jsx(sN,{}),"food-recipe":c.jsx(Y2,{}),"match-pair":c.jsx(Y$,{}),"password-generator":c.jsx(PR,{}),"column-table":c.jsx(Bk,{}),"table-colorizer":c.jsx($N,{}),"25-5-clock":c.jsx(jT,{}),"bmi-calculator":c.jsx(dk,{}),"email-templates":c.jsx(Zk,{}),"expense-tracker":c.jsx(a2,{}),pagination:c.jsx(yR,{}),"qr-code-generator":c.jsx(nN,{}),"image-gallery":c.jsx(tj,{}),"word-count":c.jsx(OT,{}),"temperature-converter":c.jsx(FN,{}),"color-mixer":c.jsx(Ok,{}),"string-transformers":c.jsx(yN,{}),"your-sport":c.jsx(BT,{}),"modal-popup":c.jsx(KT,{}),"emoji-picker":c.jsx(lP,{}),"programming-languages-multiverse":c.jsx(vP,{}),otp:c.jsx(wP,{}),"traffic-lights":c.jsx(CP,{}),"quiz-app":c.jsx(FP,{}),"chess-board":c.jsx(GP,{}),"nested-dropdown":c.jsx(sR,{}),"anagram-checker":c.jsx(nk,{}),calculator:c.jsx(i3,{}),"water-balancer":c.jsx(y3,{}),timeline:c.jsx(P3,{}),"word-connect":c.jsx(IF,{}),stepper:c.jsx(GF,{}),"inline-options":c.jsx(JF,{}),"digital-clock":c.jsx(E6,{}),"nested-comments":c.jsx($6,{}),"15puzzle":c.jsx(TC,{}),"memory-game":c.jsx(Q6,{}),"chip-input":c.jsx(t8,{}),tabs:c.jsx(s8,{}),"drag-drop":c.jsx(f8,{}),circles:c.jsx(y8,{}),"analog-clock":c.jsx(T8,{})};function U8(){var n,r;const e=zE(),t=(e==null?void 0:e.id)??"";return c.jsxs(c.Fragment,{children:[c.jsx(jk,{title:(n=qm.get(t))==null?void 0:n.title,link:(r=qm.get(t))==null?void 0:r.link}),c.jsx("div",{className:"container",children:B8[t]})]})}const H8=eC([{path:"/:id",element:c.jsx(U8,{})}]);dd.createRoot(document.getElementById("root")).render(c.jsx(S.StrictMode,{children:c.jsx(cC,{router:H8})})); diff --git a/docs/react/index.html b/docs/react/index.html index b186dfa1b..23622ac5a 100644 --- a/docs/react/index.html +++ b/docs/react/index.html @@ -14,7 +14,7 @@ name="description" content="Frontend Mini Challenges is a collection of frontend interview coding challenges" /> - + diff --git a/docs/vue/assets/index-x7POy8my.js b/docs/vue/assets/index-sO_J5Mm6.js similarity index 67% rename from docs/vue/assets/index-x7POy8my.js rename to docs/vue/assets/index-sO_J5Mm6.js index bf26eb96d..9b7be0423 100644 --- a/docs/vue/assets/index-x7POy8my.js +++ b/docs/vue/assets/index-sO_J5Mm6.js @@ -2,4 +2,4 @@ * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const jt=typeof window<"u";function ja(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const X=Object.assign;function mi(e,t){const n={};for(const i in t){const s=t[i];n[i]=Ue(s)?s.map(e):e(s)}return n}const hn=()=>{},Ue=Array.isArray,Ua=/\/$/,Da=e=>e.replace(Ua,"");function gi(e,t,n="/"){let i,s={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(i=i||t.slice(0,a),r=t.slice(a,t.length)),i=za(i??t,n),{fullPath:i+(o&&"?")+o+r,path:i,query:s,hash:r}}function Ba(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function js(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Va(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&Yt(t.matched[i],n.matched[s])&&tr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ka(e[n],t[n]))return!1;return!0}function Ka(e,t){return Ue(e)?Us(e,t):Ue(t)?Us(t,e):e===t}function Us(e,t){return Ue(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function za(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var wn;(function(e){e.pop="pop",e.push="push"})(wn||(wn={}));var mn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(mn||(mn={}));function qa(e){if(!e)if(jt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Da(e)}const Wa=/^[^#]+#/;function Ga(e,t){return e.replace(Wa,"#")+t}function Ja(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const ri=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ya(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Ja(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ds(e,t){return(history.state?history.state.position-t:-1)+e}const Ti=new Map;function Qa(e,t){Ti.set(e,t)}function Xa(e){const t=Ti.get(e);return Ti.delete(e),t}let Za=()=>location.protocol+"//"+location.host;function nr(e,t){const{pathname:n,search:i,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),js(l,"")}return js(n,e)+i+s}function ec(e,t,n,i){let s=[],o=[],r=null;const a=({state:v})=>{const w=nr(e,location),T=n.value,I=t.value;let B=0;if(v){if(n.value=w,t.value=v,r&&r===T){r=null;return}B=I?v.position-I.position:0}else i(w);s.forEach(F=>{F(n.value,T,{delta:B,type:wn.pop,direction:B?B>0?mn.forward:mn.back:mn.unknown})})};function l(){r=n.value}function u(v){s.push(v);const w=()=>{const T=s.indexOf(v);T>-1&&s.splice(T,1)};return o.push(w),w}function c(){const{history:v}=window;v.state&&v.replaceState(X({},v.state,{scroll:ri()}),"")}function h(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:h}}function Bs(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?ri():null}}function tc(e){const{history:t,location:n}=window,i={value:nr(e,n)},s={value:t.state};s.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const h=e.indexOf("#"),v=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Za()+e+l;try{t[c?"replaceState":"pushState"](u,"",v),s.value=u}catch(w){console.error(w),n[c?"replace":"assign"](v)}}function r(l,u){const c=X({},t.state,Bs(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,c,!0),i.value=l}function a(l,u){const c=X({},s.value,t.state,{forward:l,scroll:ri()});o(c.current,c,!0);const h=X({},Bs(i.value,l,null),{position:c.position+1},u);o(l,h,!1),i.value=l}return{location:i,state:s,push:a,replace:r}}function nc(e){e=qa(e);const t=tc(e),n=ec(e,t.state,t.location,t.replace);function i(o,r=!0){r||n.pauseListeners(),history.go(o)}const s=X({location:"",base:e,go:i,createHref:Ga.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function ic(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nc(e)}function sc(e){return typeof e=="string"||e&&typeof e=="object"}function ir(e){return typeof e=="string"||typeof e=="symbol"}const ct={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},sr=Symbol("");var Vs;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vs||(Vs={}));function Qt(e,t){return X(new Error,{type:e,[sr]:!0},t)}function Xe(e,t){return e instanceof Error&&sr in e&&(t==null||!!(e.type&t))}const Ks="[^/]+?",oc={sensitive:!1,strict:!1,start:!0,end:!0},rc=/[.+*?^${}()[\]/\\]/g;function lc(e,t){const n=X({},oc,t),i=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function cc(e,t){let n=0;const i=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const uc={type:0,value:""},fc=/[a-zA-Z0-9_]/;function dc(e){if(!e)return[[]];if(e==="/")return[[uc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${u}": ${w}`)}let n=0,i=n;const s=[];let o;function r(){o&&s.push(o),o=[]}let a=0,l,u="",c="";function h(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;a{r(U)}:hn}function r(c){if(ir(c)){const h=i.get(c);h&&(i.delete(c),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(c);h>-1&&(n.splice(h,1),c.record.name&&i.delete(c.record.name),c.children.forEach(r),c.alias.forEach(r))}}function a(){return n}function l(c){let h=0;for(;h=0&&(c.record.path!==n[h].record.path||!or(c,n[h]));)h++;n.splice(h,0,c),c.record.name&&!Ws(c)&&i.set(c.record.name,c)}function u(c,h){let v,w={},T,I;if("name"in c&&c.name){if(v=i.get(c.name),!v)throw Qt(1,{location:c});I=v.record.name,w=X(qs(h.params,v.keys.filter(U=>!U.optional).map(U=>U.name)),c.params&&qs(c.params,v.keys.map(U=>U.name))),T=v.stringify(w)}else if("path"in c)T=c.path,v=n.find(U=>U.re.test(T)),v&&(w=v.parse(T),I=v.record.name);else{if(v=h.name?i.get(h.name):n.find(U=>U.re.test(h.path)),!v)throw Qt(1,{location:c,currentLocation:h});I=v.record.name,w=X({},h.params,c.params),T=v.stringify(w)}const B=[];let F=v;for(;F;)B.unshift(F.record),F=F.parent;return{name:I,path:T,params:w,matched:B,meta:vc(B)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:r,getRoutes:a,getRecordMatcher:s}}function qs(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function mc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ws(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vc(e){return e.reduce((t,n)=>X(t,n.meta),{})}function Gs(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function or(e,t){return t.children.some(n=>n===e||or(e,n))}const rr=/#/g,_c=/&/g,yc=/\//g,bc=/=/g,wc=/\?/g,lr=/\+/g,kc=/%5B/g,Ec=/%5D/g,ar=/%5E/g,xc=/%60/g,cr=/%7B/g,Cc=/%7C/g,ur=/%7D/g,Mc=/%20/g;function Xi(e){return encodeURI(""+e).replace(Cc,"|").replace(kc,"[").replace(Ec,"]")}function Sc(e){return Xi(e).replace(cr,"{").replace(ur,"}").replace(ar,"^")}function Ai(e){return Xi(e).replace(lr,"%2B").replace(Mc,"+").replace(rr,"%23").replace(_c,"%26").replace(xc,"`").replace(cr,"{").replace(ur,"}").replace(ar,"^")}function Rc(e){return Ai(e).replace(bc,"%3D")}function Pc(e){return Xi(e).replace(rr,"%23").replace(wc,"%3F")}function Tc(e){return e==null?"":Pc(e).replace(yc,"%2F")}function Jn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ac(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Ai(o)):[i&&Ai(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ic(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Ue(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}const $c=Symbol(""),Ys=Symbol(""),Zi=Symbol(""),es=Symbol(""),Ii=Symbol("");function an(){let e=[];function t(i){return e.push(i),()=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function dt(e,t,n,i,s){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((r,a)=>{const l=h=>{h===!1?a(Qt(4,{from:n,to:t})):h instanceof Error?a(h):sc(h)?a(Qt(2,{from:t,to:h})):(o&&i.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),r())},u=e.call(i&&i.instances[s],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(h=>a(h))})}function vi(e,t,n,i){const s=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(Oc(a)){const u=(a.__vccOpts||a)[t];u&&s.push(dt(u,n,i,o,r))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const c=ja(u)?u.default:u;o.components[r]=c;const v=(c.__vccOpts||c)[t];return v&&dt(v,n,i,o,r)()}))}}return s}function Oc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Qs(e){const t=Ye(Zi),n=Ye(es),i=le(()=>t.resolve(se(e.to))),s=le(()=>{const{matched:l}=i.value,{length:u}=l,c=l[u-1],h=n.matched;if(!c||!h.length)return-1;const v=h.findIndex(Yt.bind(null,c));if(v>-1)return v;const w=Xs(l[u-2]);return u>1&&Xs(c)===w&&h[h.length-1].path!==w?h.findIndex(Yt.bind(null,l[u-2])):v}),o=le(()=>s.value>-1&&Hc(n.params,i.value.params)),r=le(()=>s.value>-1&&s.value===n.matched.length-1&&tr(n.params,i.value.params));function a(l={}){return Fc(l)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(hn):Promise.resolve()}return{route:i,href:le(()=>i.value.href),isActive:o,isExactActive:r,navigate:a}}const Nc=re({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Qs,setup(e,{slots:t}){const n=En(Qs(e)),{options:i}=Ye(Zi),s=le(()=>({[Zs(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Zs(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Qo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Lc=Nc;function Fc(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Hc(e,t){for(const n in t){const i=t[n],s=e[n];if(typeof i=="string"){if(i!==s)return!1}else if(!Ue(s)||s.length!==i.length||i.some((o,r)=>o!==s[r]))return!1}return!0}function Xs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Zs=(e,t,n)=>e??t??n,jc=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Ye(Ii),s=le(()=>e.route||i.value),o=Ye(Ys,0),r=le(()=>{let u=se(o);const{matched:c}=s.value;let h;for(;(h=c[u])&&!h.components;)u++;return u}),a=le(()=>s.value.matched[r.value]);Fn(Ys,le(()=>r.value+1)),Fn($c,a),Fn(Ii,s);const l=z();return mt(()=>[l.value,a.value,e.name],([u,c,h],[v,w,T])=>{c&&(c.instances[h]=u,w&&w!==c&&u&&u===v&&(c.leaveGuards.size||(c.leaveGuards=w.leaveGuards),c.updateGuards.size||(c.updateGuards=w.updateGuards))),u&&c&&(!w||!Yt(c,w)||!v)&&(c.enterCallbacks[h]||[]).forEach(I=>I(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,h=a.value,v=h&&h.components[c];if(!v)return eo(n.default,{Component:v,route:u});const w=h.props[c],T=w?w===!0?u.params:typeof w=="function"?w(u):w:null,B=Qo(v,X({},T,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(h.instances[c]=null)},ref:l}));return eo(n.default,{Component:B,route:u})||B}}});function eo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ts=jc;function Uc(e){const t=hc(e.routes,e),n=e.parseQuery||Ac,i=e.stringifyQuery||Js,s=e.history,o=an(),r=an(),a=an(),l=Yr(ct);let u=ct;jt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=mi.bind(null,y=>""+y),h=mi.bind(null,Tc),v=mi.bind(null,Jn);function w(y,P){let M,$;return ir(y)?(M=t.getRecordMatcher(y),$=P):$=y,t.addRoute($,M)}function T(y){const P=t.getRecordMatcher(y);P&&t.removeRoute(P)}function I(){return t.getRoutes().map(y=>y.record)}function B(y){return!!t.getRecordMatcher(y)}function F(y,P){if(P=X({},P||l.value),typeof y=="string"){const m=gi(n,y,P.path),_=t.resolve({path:m.path},P),b=s.createHref(m.fullPath);return X(m,_,{params:v(_.params),hash:Jn(m.hash),redirectedFrom:void 0,href:b})}let M;if("path"in y)M=X({},y,{path:gi(n,y.path,P.path).path});else{const m=X({},y.params);for(const _ in m)m[_]==null&&delete m[_];M=X({},y,{params:h(m)}),P.params=h(P.params)}const $=t.resolve(M,P),Q=y.hash||"";$.params=c(v($.params));const f=Ba(i,X({},y,{hash:Sc(Q),path:$.path})),d=s.createHref(f);return X({fullPath:f,hash:Q,query:i===Js?Ic(y.query):y.query||{}},$,{redirectedFrom:void 0,href:d})}function U(y){return typeof y=="string"?gi(n,y,l.value.path):X({},y)}function J(y,P){if(u!==y)return Qt(8,{from:P,to:y})}function D(y){return $e(y)}function fe(y){return D(X(U(y),{replace:!0}))}function ve(y){const P=y.matched[y.matched.length-1];if(P&&P.redirect){const{redirect:M}=P;let $=typeof M=="function"?M(y):M;return typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=U($):{path:$},$.params={}),X({query:y.query,hash:y.hash,params:"path"in $?{}:y.params},$)}}function $e(y,P){const M=u=F(y),$=l.value,Q=y.state,f=y.force,d=y.replace===!0,m=ve(M);if(m)return $e(X(U(m),{state:typeof m=="object"?X({},Q,m.state):Q,force:f,replace:d}),P||M);const _=M;_.redirectedFrom=P;let b;return!f&&Va(i,$,M)&&(b=Qt(16,{to:_,from:$}),Ke($,$,!0,!1)),(b?Promise.resolve(b):Be(_,$)).catch(k=>Xe(k)?Xe(k,2)?k:lt(k):Y(k,_,$)).then(k=>{if(k){if(Xe(k,2))return $e(X({replace:d},U(k.to),{state:typeof k.to=="object"?X({},Q,k.to.state):Q,force:f}),P||_)}else k=yt(_,$,!0,d,Q);return rt(_,$,k),k})}function De(y,P){const M=J(y,P);return M?Promise.reject(M):Promise.resolve()}function $t(y){const P=Lt.values().next().value;return P&&typeof P.runWithContext=="function"?P.runWithContext(y):y()}function Be(y,P){let M;const[$,Q,f]=Dc(y,P);M=vi($.reverse(),"beforeRouteLeave",y,P);for(const m of $)m.leaveGuards.forEach(_=>{M.push(dt(_,y,P))});const d=De.bind(null,y,P);return M.push(d),_e(M).then(()=>{M=[];for(const m of o.list())M.push(dt(m,y,P));return M.push(d),_e(M)}).then(()=>{M=vi(Q,"beforeRouteUpdate",y,P);for(const m of Q)m.updateGuards.forEach(_=>{M.push(dt(_,y,P))});return M.push(d),_e(M)}).then(()=>{M=[];for(const m of f)if(m.beforeEnter)if(Ue(m.beforeEnter))for(const _ of m.beforeEnter)M.push(dt(_,y,P));else M.push(dt(m.beforeEnter,y,P));return M.push(d),_e(M)}).then(()=>(y.matched.forEach(m=>m.enterCallbacks={}),M=vi(f,"beforeRouteEnter",y,P),M.push(d),_e(M))).then(()=>{M=[];for(const m of r.list())M.push(dt(m,y,P));return M.push(d),_e(M)}).catch(m=>Xe(m,8)?m:Promise.reject(m))}function rt(y,P,M){a.list().forEach($=>$t(()=>$(y,P,M)))}function yt(y,P,M,$,Q){const f=J(y,P);if(f)return f;const d=P===ct,m=jt?history.state:{};M&&($||d?s.replace(y.fullPath,X({scroll:d&&m&&m.scroll},Q)):s.push(y.fullPath,Q)),l.value=y,Ke(y,P,M,d),lt()}let Ve;function sn(){Ve||(Ve=s.listen((y,P,M)=>{if(!Cn.listening)return;const $=F(y),Q=ve($);if(Q){$e(X(Q,{replace:!0}),$).catch(hn);return}u=$;const f=l.value;jt&&Qa(Ds(f.fullPath,M.delta),ri()),Be($,f).catch(d=>Xe(d,12)?d:Xe(d,2)?($e(d.to,$).then(m=>{Xe(m,20)&&!M.delta&&M.type===wn.pop&&s.go(-1,!1)}).catch(hn),Promise.reject()):(M.delta&&s.go(-M.delta,!1),Y(d,$,f))).then(d=>{d=d||yt($,f,!1),d&&(M.delta&&!Xe(d,8)?s.go(-M.delta,!1):M.type===wn.pop&&Xe(d,20)&&s.go(-1,!1)),rt($,f,d)}).catch(hn)}))}let Ot=an(),de=an(),ee;function Y(y,P,M){lt(y);const $=de.list();return $.length?$.forEach(Q=>Q(y,P,M)):console.error(y),Promise.reject(y)}function Qe(){return ee&&l.value!==ct?Promise.resolve():new Promise((y,P)=>{Ot.add([y,P])})}function lt(y){return ee||(ee=!y,sn(),Ot.list().forEach(([P,M])=>y?M(y):P()),Ot.reset()),y}function Ke(y,P,M,$){const{scrollBehavior:Q}=e;if(!jt||!Q)return Promise.resolve();const f=!M&&Xa(Ds(y.fullPath,0))||($||!M)&&history.state&&history.state.scroll||null;return Po().then(()=>Q(y,P,f)).then(d=>d&&Ya(d)).catch(d=>Y(d,y,P))}const xe=y=>s.go(y);let Nt;const Lt=new Set,Cn={currentRoute:l,listening:!0,addRoute:w,removeRoute:T,hasRoute:B,getRoutes:I,resolve:F,options:e,push:D,replace:fe,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:de.add,isReady:Qe,install(y){const P=this;y.component("RouterLink",Lc),y.component("RouterView",ts),y.config.globalProperties.$router=P,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>se(l)}),jt&&!Nt&&l.value===ct&&(Nt=!0,D(s.location).catch(Q=>{}));const M={};for(const Q in ct)Object.defineProperty(M,Q,{get:()=>l.value[Q],enumerable:!0});y.provide(Zi,P),y.provide(es,bo(M)),y.provide(Ii,l);const $=y.unmount;Lt.add(y),y.unmount=function(){Lt.delete(y),Lt.size<1&&(u=ct,Ve&&Ve(),Ve=null,l.value=ct,Nt=!1,ee=!1),$()}}};function _e(y){return y.reduce((P,M)=>P.then(()=>$t(M)),Promise.resolve())}return Cn}function Dc(e,t){const n=[],i=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rYt(u,a))?i.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(u=>Yt(u,l))||s.push(l))}return[n,i,s]}function Bc(){return Ye(es)}const Vc=re({__name:"App",setup(e){return(t,n)=>(O(),Gi(se(ts)))}}),Kc="/frontend-mini-challenges/vue/assets/logo-r_4QCHBg.png";var zc={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/vue/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const It=e=>(Re("data-v-3baab4ad"),e=e(),Pe(),e),qc={class:"navbar"},Wc={class:"left"},Gc=["href"],Jc=["href"],Yc=["src"],Qc=It(()=>p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link"},[p("path",{d:"M15 3h6v6"}),p("path",{d:"M10 14 21 3"}),p("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})],-1)),Xc=It(()=>p("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"_blank"},[p("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",class:"github"})],-1)),Zc=It(()=>p("input",{type:"checkbox"},null,-1)),eu=It(()=>p("div",{class:"line"},null,-1)),tu=It(()=>p("div",{class:"line"},null,-1)),nu=It(()=>p("div",{class:"line"},null,-1)),iu=It(()=>p("li",null,[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link"},[p("path",{d:"M15 3h6v6"}),p("path",{d:"M10 14 21 3"}),p("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]),be(" Source code ")],-1)),su=[iu],ou="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/vue/src/challenges/",ru=re({__name:"Navbar",props:{title:{type:String,required:!0},link:{type:String,required:!0}},setup(e){const{VITE_PATH:t,VITE_HOST_URL:n,DEV:i}=zc,s=i?`${n}${t}/#/vue`:`/${t}/#/vue/`,o=i?`${n}${t}/`:`/${t}/`,a=`${ou}${e.link}`;return(l,u)=>(O(),H("nav",qc,[p("div",Wc,[p("a",{href:se(s),class:"back"}," < ",8,Gc),p("a",{class:"logo",href:se(o)},[p("img",{src:se(Kc),alt:"logo"},null,8,Yc)],8,Jc)]),p("h1",null,oe(e.title),1),p("div",{class:"right"},[p("div",{class:"source_code"},[p("a",{target:"_blank",rel:"noreferrer",href:a},[Qc,be(" Source code ")])]),Xc,p("div",{id:"responsive-nav"},[p("div",{class:"hamburger"},[Zc,eu,tu,nu,p("section",{id:"menu"},[p("ul",null,[p("a",{href:a,target:"blank"},su)])])])])])]))}}),ue=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},lu=ue(ru,[["__scopeId","data-v-3baab4ad"]]);var g=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(g||{}),S=(e=>(e.interview="interview",e.all="all",e))(S||{});const to=[g.Easy,g.Medium,g.Hard];function xn(e){return new Map([...e.entries()].sort((t,n)=>{const i=to.indexOf(t[1].difficulty),s=to.indexOf(n[1].difficulty);return i-s}))}const au=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:g.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:g.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[S.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:g.Easy,developer:"officialbidisha",tags:[S.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:g.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[S.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:g.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:g.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:g.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:g.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);xn(au);const cu=new Map([["counter",{title:"Counter",link:"counter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[S.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:g.Easy,developer:"X0rD3v1L",tags:[S.interview]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:g.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:g.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:g.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[S.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[S.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:g.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[S.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:g.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:g.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:g.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:g.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:g.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:g.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:g.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:g.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:g.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:g.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:g.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:g.Medium,developer:"shruti-sen2004",tags:[S.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:g.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[S.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:g.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:g.Medium,developer:"srijanB7",tags:[S.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:g.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:g.Medium,developer:"Kei-K23",tags:[S.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:g.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:g.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:g.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}]]);xn(cu);const uu=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[S.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:g.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:g.Easy,developer:"Bhushan1019",tags:[S.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:g.Easy,tags:[S.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:g.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:g.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:g.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:g.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:g.Easy,developer:"deepakrajkranti",tags:[S.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:g.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:g.Easy,developer:"NikhilJHA01",tags:[S.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"rashidtvmr",tags:[S.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:g.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:g.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:g.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:g.Easy,developer:"codechitra",tags:[S.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:g.Medium,developer:"liza",tags:[S.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:g.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:g.Medium,developer:"rishabhm05",tags:[S.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:g.Medium,developer:"deepu0",tags:[S.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:g.Medium,developer:"rishabhm05",tags:[S.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:g.Medium,developer:"deepu0",tags:[S.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:g.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:g.Medium,developer:"deepakrajkranti",tags:[S.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:g.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:g.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:g.Medium,developer:"rashidtvmr",tags:[S.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:g.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:g.Medium,developer:"AbhilashMadi",tags:[S.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:g.Medium,developer:"AbhilashMadi",tags:[S.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:g.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:g.Hard,developer:"Akshay-Omkar",tags:[S.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:g.Medium,developer:"DeePaK-HeeRaKaRi",tags:[S.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:g.Medium,developer:"ayush-dutt-sharma",tags:[S.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:g.Hard,developer:"rishabhm05",tags:[S.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:g.Hard,developer:"deepu0",tags:[S.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:g.Hard,developer:"deepu0",tags:[S.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:g.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:g.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:g.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:g.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:g.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:g.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[S.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:g.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}]]);xn(uu);const fu=new Map([["counter",{title:"Counter",link:"/counter",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:g.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:g.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:g.Medium,developer:"arpansaha13",tags:[S.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:g.Medium,developer:"jaydadhaniya",tags:[S.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:g.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:g.Medium,developer:"Shardik04",tags:[S.interview]}]]),no=xn(fu),du=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[S.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:g.Easy,developer:"pankajparkar",tags:[S.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:g.Easy,developer:"pankajparkar",tags:[S.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"pankajparkar",tags:[S.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);xn(du);const pu={class:"challenge-container"},hu=re({__name:"challenge",setup(e){const t=Bc(),n=z(""),i=z("");return mt(t,()=>{const s=t.path.split("/").filter(Boolean).pop();n.value=no.get(s).title,i.value=no.get(s).link},{immediate:!0}),(s,o)=>(O(),H(he,null,[me(lu,{title:n.value,link:i.value},null,8,["title","link"]),p("div",pu,[me(se(ts))])],64))}}),mu=ue(hu,[["__scopeId","data-v-d3dec0bc"]]),gu=e=>(Re("data-v-348dfed2"),e=e(),Pe(),e),vu={class:"main"},_u=gu(()=>p("label",{for:"step"},"Increment/Decrement by",-1)),yu=re({__name:"index",setup(e){const t=z(0),n=z(1),i=()=>{t.value+=n.value},s=()=>{t.value-=n.value},o=()=>{t.value=0};return(r,a)=>(O(),H("main",vu,[p("h2",null,oe(t.value),1),p("section",null,[p("button",{onClick:s,"aria-label":"Decrement"}," - "),p("button",{onClick:i,"aria-label":"Increment"}," + ")]),p("section",null,[_u,pe(p("input",{type:"number",id:"step","onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),title:"Step value"},null,512),[[Ae,n.value]])]),p("section",null,[p("button",{onClick:o},"Reset")])]))}}),bu=ue(yu,[["__scopeId","data-v-348dfed2"]]),wu=e=>(Re("data-v-d4985809"),e=e(),Pe(),e),ku={class:"container text-center"},Eu=wu(()=>p("div",null,[p("label",{for:"phone"},"+(123) - 4567890")],-1)),xu=re({__name:"index",setup(e){const t=z(""),n=i=>i.split("").filter(s=>Number.isInteger(+s)&&s!==" ").join("");return mt(t,i=>{const s=n(i);t.value=s.length>3?"+("+s.substring(0,3)+") - "+s.substring(3):s}),(i,s)=>(O(),H("div",ku,[pe(p("input",{type:"tel",id:"phone",maxlength:"16",placeholder:"Mobile number",autocomplete:"off",class:"field","onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o)},null,512),[[Ae,t.value]]),Eu]))}}),Cu=ue(xu,[["__scopeId","data-v-d4985809"]]),li=e=>(Re("data-v-5f86141c"),e=e(),Pe(),e),Mu={class:"app"},Su=li(()=>p("label",{for:"input"},"Guess a number between 0 and 100",-1)),Ru={class:"widget"},Pu=["disabled"],Tu={class:"hint"},Au={key:0},Iu=li(()=>p("b",null,"Less",-1)),$u={key:1},Ou=li(()=>p("b",null,"Higher",-1)),Nu={key:2},Lu=li(()=>p("b",null,"right",-1)),Fu=re({__name:"index",setup(e){const t=()=>Math.round(100*Math.random()),n=z(t()),i=z(!1),s=z(1),o=z("NONE"),r=l=>{l.preventDefault(),s.valuen.value?o.value="HIGH":(o.value="CORRECT",i.value=!0)},a=()=>{n.value=t(),o.value="NONE",i.value=!1,s.value=1};return(l,u)=>(O(),H("div",Mu,[p("form",{onSubmit:r},[Su,pe(p("input",{id:"input",type:"number",min:"0",max:"100","onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c),placeholder:"Guess a number"},null,512),[[Ae,s.value]]),p("div",Ru,[p("button",{type:"button",onClick:a}," Reset "),p("button",{type:"submit",disabled:i.value}," Check ",8,Pu)])],32),p("div",Tu,[o.value==="LOW"?(O(),H("p",Au,[be(" Your guess is "),Iu,be(" than the actual number ")])):o.value==="HIGH"?(O(),H("p",$u,[be(" Your guess is "),Ou,be(" than the actual number ")])):o.value==="CORRECT"?(O(),H("p",Nu,[be(" Your guess is "),Lu])):tt("",!0)])]))}}),Hu=ue(Fu,[["__scopeId","data-v-5f86141c"]]),ju=e=>(Re("data-v-cbde5945"),e=e(),Pe(),e),Uu={class:"content"},Du=ju(()=>p("p",{class:"text"},"Toggle the theme and see the change!",-1)),Bu={class:"current-theme"},Vu=re({__name:"index",setup(e){const t=z(!1);return(n,i)=>(O(),H("main",{class:it(t.value?"dark":"")},[p("div",Uu,[Du,p("button",{type:"button",onClick:i[0]||(i[0]=s=>t.value=!t.value)},"Toggle theme"),p("p",Bu,[be("Current theme: "),p("span",null,oe(t.value?"Dark":"Light"),1)])])],2))}}),Ku=ue(Vu,[["__scopeId","data-v-cbde5945"]]),fr=e=>(Re("data-v-3f23bc99"),e=e(),Pe(),e),zu={class:"container"},qu={class:"input-box"},Wu=fr(()=>p("label",{for:"row-number"},"Row",-1)),Gu=["max"],Ju=fr(()=>p("label",{for:"column-number"},"Column",-1)),Yu=["max"],Qu={class:"table-box"},Xu={class:"row"},Zu=re({__name:"index",setup(e){const t=z([[{content:1,colored:!1},{content:2,colored:!1},{content:3,colored:!1}],[{content:4,colored:!1},{content:5,colored:!1},{content:6,colored:!1}],[{content:7,colored:!1},{content:8,colored:!1},{content:9,colored:!1}]]),n=z(1),i=z(1);function s(){const a=n.value-1,l=i.value-1;t.value[a][l].colored=!0}function o(){const a=n.value-1,l=i.value-1;t.value[a][l].colored=!1}function r(){for(const a of t.value)for(const l of a)l.colored=!1}return(a,l)=>(O(),H("main",null,[p("div",zu,[p("div",qu,[p("div",null,[Wu,pe(p("input",{id:"row-number",type:"number",inputmode:"numeric",min:"0",max:t.value.length,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},null,8,Gu),[[Ae,n.value]])]),p("div",null,[Ju,pe(p("input",{id:"column-number",type:"number",inputmode:"numeric",min:"0",max:t.value[0].length,"onUpdate:modelValue":l[1]||(l[1]=u=>i.value=u)},null,8,Yu),[[Ae,i.value]])])]),p("div",{class:"button-box"},[p("button",{type:"button",onClick:s},"Color selected cell"),p("button",{type:"button",onClick:o},"Clear selected cell"),p("button",{type:"button",onClick:r},"Clear all cells")]),p("div",Qu,[(O(!0),H(he,null,qt(t.value,u=>(O(),H("div",Xu,[(O(!0),H(he,null,qt(u,c=>(O(),H("div",{class:it([c.colored?"colored":"","cell"])},oe(c.content),3))),256))]))),256))])])]))}}),ef=ue(Zu,[["__scopeId","data-v-3f23bc99"]]),tf=e=>(Re("data-v-f7ffadb8"),e=e(),Pe(),e),nf={class:"container"},sf=tf(()=>p("thead",null,[p("tr",null,[p("th",null,"ID"),p("th",null,"Name")])],-1)),of={class:"button-box"},rf=["disabled"],lf=["disabled"],kt=5,af=re({__name:"index",setup(e){const t=z([]);for(let l=1;l<=30;l++)t.value.push({id:l,name:"Item "+l});const n=le(()=>t.value.length),i=z(0),s=z(i.value+kt),o=le(()=>t.value.slice(i.value,s.value));function r(){i.value=Math.max(0,i.value-kt),s.value=i.value+kt}function a(){s.value=Math.min(n.value,s.value+kt),i.value=s.value-kt}return(l,u)=>(O(),H("main",null,[p("div",nf,[p("table",null,[sf,p("tbody",null,[(O(!0),H(he,null,qt(o.value,c=>(O(),H("tr",null,[p("td",null,oe(c.id),1),p("td",null,oe(c.name),1)]))),256))])]),p("div",of,[p("button",{type:"button",disabled:i.value===0,onClick:r},"Prev",8,rf),p("button",{type:"button",disabled:s.value===n.value,onClick:a},"Next",8,lf)]),p("div",null,[p("p",null,"Showing data from "+oe(i.value)+" to "+oe(s.value),1),p("p",null,"Total: "+oe(n.value),1),p("p",null,"Pages: "+oe(n.value/kt),1),p("p",null,"Rows per page: "+oe(kt))])])]))}}),cf=ue(af,[["__scopeId","data-v-f7ffadb8"]]),uf={class:"accordion"},ff={key:0,class:"panel"},df=re({__name:"Accordion",props:{heading:{type:String,required:!0},content:{type:String,required:!0},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,i=t,s=()=>{i("update:model-value",!n.modelValue)};return(o,r)=>(O(),H("div",uf,[p("button",{type:"button",onClick:s},oe(e.heading),1),e.modelValue?(O(),H("div",ff,oe(e.content),1)):tt("",!0)]))}}),pf=ue(df,[["__scopeId","data-v-d917595f"]]),hf={class:"container"},mf=re({__name:"AccordionGroup",props:{data:{type:Array,required:!0},allowMultipleOpen:{type:Boolean,default:!0}},setup(e){const t=e,n=En(Array(t.data.length).fill(!1)),i=z(null);function s(o,r){!t.allowMultipleOpen&&i.value!==null&&(n[i.value]=!1),i.value=r,n[r]=o}return mt(t,o=>{o.allowMultipleOpen||(n.fill(!1),i.value&&(n[i.value]=!0))}),(o,r)=>(O(),H("div",hf,[(O(!0),H(he,null,qt(e.data,(a,l)=>(O(),Gi(pf,{heading:a.heading,content:a.content,modelValue:n[l],"onUpdate:modelValue":[u=>n[l]=u,u=>s(u,l)]},null,8,["heading","content","modelValue","onUpdate:modelValue"]))),256))]))}}),gf=ue(mf,[["__scopeId","data-v-33bc9952"]]),vf=[{heading:"Lorem Ipsum 1",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta eligendi incidunt itaque dolor quis facere, vel animi laboriosam provident ipsum totam tenetur nisi iste asperiores ipsa, officia a tempora distinctio?"},{heading:"Lorem Ipsum 2",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum nam architecto amet alias officia, at consequatur nostrum ea voluptatum ipsam quod minus magnam vitae dicta magni veritatis sint!"},{heading:"Lorem Ipsum 3",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum!"},{heading:"Lorem Ipsum 4",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim assumenda corporis soluta adipisci eius esse recusandae nulla est possimus earum obcaecati exercitationem cum, vel veniam, saepe debitis porro, necessitatibus deserunt. Cumque possimus aspernatur in architecto cum tenetur ea laboriosam, amet sit. Dolore laborum totam soluta quo numquam repellat obcaecati explicabo esse recusandae quibusdam nihil, ratione eaque, error adipisci amet nisi ullam. Dolore provident quas, ratione aut perspiciatis fugiat facilis ex recusandae asperiores porro suscipit et dicta, pariatur minus ab corrupti! Optio pariatur libero modi dolor quaerat eius officia vel, vero assumenda, minima eveniet aspernatur, maiores id mollitia itaque animi fugiat!"}],_f=e=>(Re("data-v-a7dda4e5"),e=e(),Pe(),e),yf={class:"checkbox"},bf=_f(()=>p("label",{for:"allow-multiple-open"},"Allow multiple open accordion",-1)),wf=re({__name:"index",setup(e){const t=z(!0);return(n,i)=>(O(),H("main",null,[p("div",yf,[pe(p("input",{id:"allow-multiple-open",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=s=>t.value=s)},null,512),[[Zo,t.value]]),bf]),me(gf,{data:se(vf),allowMultipleOpen:t.value},null,8,["data","allowMultipleOpen"])]))}}),kf=ue(wf,[["__scopeId","data-v-a7dda4e5"]]);var Un=(e=>(e.LEFT="left",e.RIGHT="right",e))(Un||{}),Dn=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(Dn||{}),Ct=(e=>(e.INFO="info",e.ERROR="error",e.WARNING="warning",e.SUCCESS="success",e))(Ct||{});const Ef=e=>(Re("data-v-08953fd9"),e=e(),Pe(),e),xf=Ef(()=>p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)),Cf=[xf],Mf=re({__name:"toast",props:{vertical:{type:String,required:!0},horizontal:{type:String,required:!0},message:{type:String,required:!0},timeout:{type:Number,default:5e3},type:{type:String,default:Ct.INFO},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,i=t,s=tl(n,"modelValue"),o=z(null),r=()=>{o.value!==null&&(clearTimeout(o.value),o.value=null),i("update:model-value",!1)};return mt(s,a=>{a&&(o.value=setTimeout(r,n.timeout))}),(a,l)=>(O(),H("div",{class:it(["toast-fixed-screen",e.vertical])},[p("div",{class:it(["toast-container",e.horizontal])},[pe(p("div",{class:it(["toast",e.type])},[p("p",null,oe(e.message),1),p("button",{type:"button",onClick:r},Cf)],2),[[Xo,s.value]])],2)],2))}}),Sf=ue(Mf,[["__scopeId","data-v-08953fd9"]]),nn=e=>(Re("data-v-a768b1a7"),e=e(),Pe(),e),Rf={class:"container"},Pf={class:"field"},Tf=nn(()=>p("label",{for:"horizontal"},"Horizontal position",-1)),Af=["value"],If=["value"],$f={class:"field"},Of=nn(()=>p("label",{for:"vertical"},"Vertical position",-1)),Nf=["value"],Lf=["value"],Ff={class:"field"},Hf=nn(()=>p("label",{for:"type"},"Toast type",-1)),jf=["value"],Uf=["value"],Df=["value"],Bf=["value"],Vf={class:"field"},Kf=nn(()=>p("label",{for:"message"},"Message",-1)),zf={class:"field"},qf=nn(()=>p("label",{for:"timeout"},"Toast timeout (in milliseconds)",-1)),Wf=nn(()=>p("button",{class:"submit"},"Show toast",-1)),Gf=re({__name:"index",setup(e){const t=z(Dn.BOTTOM),n=z(Un.RIGHT),i=z(Ct.INFO),s=z("This is a toast!!"),o=z(!1),r=z(5e3),a=l=>{l.preventDefault(),o.value=!0};return(l,u)=>(O(),H("main",null,[p("div",Rf,[p("form",{class:"toast-form",onSubmit:a},[p("div",Pf,[Tf,pe(p("select",{name:"horizontal",id:"horizontal","onUpdate:modelValue":u[0]||(u[0]=c=>n.value=c)},[p("option",{value:se(Un).LEFT},"Left",8,Af),p("option",{value:se(Un).RIGHT},"Right",8,If)],512),[[pn,n.value]])]),p("div",$f,[Of,pe(p("select",{name:"vertical",id:"vertical","onUpdate:modelValue":u[1]||(u[1]=c=>t.value=c)},[p("option",{value:se(Dn).TOP},"Top",8,Nf),p("option",{value:se(Dn).BOTTOM},"Bottom",8,Lf)],512),[[pn,t.value]])]),p("div",Ff,[Hf,pe(p("select",{name:"type",id:"type","onUpdate:modelValue":u[2]||(u[2]=c=>i.value=c)},[p("option",{value:se(Ct).INFO},"Info",8,jf),p("option",{value:se(Ct).SUCCESS},"Success",8,Uf),p("option",{value:se(Ct).ERROR},"Error",8,Df),p("option",{value:se(Ct).WARNING},"Warning",8,Bf)],512),[[pn,i.value]])]),p("div",Vf,[Kf,pe(p("input",{type:"text",name:"message",id:"message","onUpdate:modelValue":u[3]||(u[3]=c=>s.value=c),maxlength:"40"},null,512),[[Ae,s.value]])]),p("div",zf,[qf,pe(p("input",{type:"number",inputmode:"numeric",name:"timeout",id:"timeout",max:"30000","onUpdate:modelValue":u[4]||(u[4]=c=>r.value=c)},null,512),[[Ae,r.value]])]),Wf],32),me(Sf,{modelValue:o.value,"onUpdate:modelValue":u[5]||(u[5]=c=>o.value=c),type:i.value,timeout:r.value,horizontal:n.value,vertical:t.value,message:s.value},null,8,["modelValue","type","timeout","horizontal","vertical","message"])])]))}}),Jf=ue(Gf,[["__scopeId","data-v-a768b1a7"]]),Ie=e=>(Re("data-v-50714ff9"),e=e(),Pe(),e),Yf={class:"app"},Qf=["type"],Xf=Ie(()=>p("label",{for:"showPassword",style:{"margin-left":"5px"}},"Show Password",-1)),Zf={key:0},ed=Ie(()=>p("p",{class:"passStrengthText"},"Very weak",-1)),td=Ie(()=>p("div",{style:{width:"50px",border:"1px solid red"}},null,-1)),nd=[ed,td],id={key:1},sd=Ie(()=>p("p",{class:"passStrengthText"},"Weak",-1)),od=Ie(()=>p("div",{style:{width:"100px",border:"1px solid red"}},null,-1)),rd=[sd,od],ld={key:2},ad=Ie(()=>p("p",{class:"passStrengthText"},"Medium",-1)),cd=Ie(()=>p("div",{style:{width:"150px",border:"1px solid orange"}},null,-1)),ud=[ad,cd],fd={key:3},dd=Ie(()=>p("p",{class:"passStrengthText"},"Good",-1)),pd=Ie(()=>p("div",{style:{width:"200px",border:"1px solid blue"}},null,-1)),hd=[dd,pd],md={key:4},gd=Ie(()=>p("p",{class:"passStrengthText"},"Strong",-1)),vd=Ie(()=>p("div",{style:{width:"250px",border:"1px solid green"}},null,-1)),_d=[gd,vd],yd=Ie(()=>p("h3",{class:"font-size-16 text-left"},"Create a password that:",-1)),bd={key:0,class:"checkMarkIcon"},wd={key:1,class:"crossMarkIcon"},kd={key:0,class:"checkMarkIcon"},Ed={key:1,class:"crossMarkIcon"},xd={key:0,class:"checkMarkIcon"},Cd={key:1,class:"crossMarkIcon"},Md={key:0,class:"checkMarkIcon"},Sd={key:1,class:"crossMarkIcon"},Rd={key:0,class:"checkMarkIcon"},Pd={key:1,class:"crossMarkIcon"},Td=re({__name:"index",setup(e){const t=z(""),n=z(!1),i=le(()=>t.value.length),s=le(()=>{let c=0;return i.value>=4&&c++,t.value.match(/[a-z]/)&&t.value.match(/[A-Z]/)&&c++,t.value.match(/\d+/)&&c++,t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&c++,i.value>=8&&c++,i.value>=12&&c++,c}),o=le(()=>{let c=!1;return i.value>=8&&(c=!0),c}),r=le(()=>{let c=!1;return t.value.match(/[a-z]+/)!=null&&(c=!0),c}),a=le(()=>{let c=!1;return t.value.match(/[A-Z]+/)!=null&&(c=!0),c}),l=le(()=>{let c=!1;return t.value.match(/[0-9]+/)!=null&&(c=!0),c}),u=le(()=>{let c=!1;return t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&(c=!0),c});return(c,h)=>(O(),H("div",Yf,[p("form",null,[pe(p("input",{id:"input","onUpdate:modelValue":h[0]||(h[0]=v=>t.value=v),type:n.value?"text":"password",placeholder:"Enter the password",style:{width:"100%"}},null,8,Qf),[[Aa,t.value]]),p("div",null,[p("input",{type:"checkbox",id:"showPassword",onClick:h[1]||(h[1]=v=>n.value=!n.value)}),Xf])]),pe(p("div",null,[s.value<=1?(O(),H("div",Zf,nd)):s.value==2?(O(),H("div",id,rd)):s.value==3?(O(),H("div",ld,ud)):s.value==4?(O(),H("div",fd,hd)):(O(),H("div",md,_d)),yd,p("ul",{class:"text-left",style:et([i.value?{"padding-inline-start":"0px !important"}:{"padding-inline-start":"22px !important"}])},[p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[o.value?(O(),H("span",bd,"✓")):o.value==!1?(O(),H("span",wd,"×")):tt("",!0),be(" contains at least 8 characters ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[r.value?(O(),H("span",kd,"✓")):r.value==!1?(O(),H("span",Ed,"×")):tt("",!0),be(" contains at least one lowercase letter (a-z) ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[a.value?(O(),H("span",xd,"✓")):a.value==!1?(O(),H("span",Cd,"×")):tt("",!0),be(" contains at least one uppercase letter (A-Z) ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[l.value?(O(),H("span",Md,"✓")):l.value==!1?(O(),H("span",Sd,"×")):tt("",!0),be(" contains at least one number (0-9) ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[u.value?(O(),H("span",Rd,"✓")):u.value==!1?(O(),H("span",Pd,"×")):tt("",!0),be(" contains at least one number symbol (!,@,#,$,%,^,&,*,?,_,~,-,(,)) ")])],4)],4)],512),[[Xo,t.value!==""]])]))}}),Ad=ue(Td,[["__scopeId","data-v-50714ff9"]]),Id=e=>(Re("data-v-2e98431e"),e=e(),Pe(),e),$d={class:"app"},Od=Id(()=>p("hr",null,null,-1)),Nd={class:"text-center"},Ld={class:"text-center"},Fd=re({__name:"index",setup(e){const t=z([]),n=z(""),i=z("");function s(){t.value.length==5?i.value="Stack is full":n.value?(t.value.push(n.value),i.value=`${n.value} is pushed into the Stack`,n.value=""):i.value="Please enter value first"}function o(){t.value.length?(i.value=`${t.value.at(-1)} is popped from the Stack`,t.value.pop()):i.value="Stack is empty"}function r(){t.value.length?i.value=`Last element is ${t.value.at(-1)}`:i.value="Stack is empty"}function a(){t.value.length?i.value="Stack is not empty":i.value="Stack is empty"}function l(){t.value.length==5?i.value="Stack is full":i.value="Stack is not full"}function u(){t.value=[],i.value="Your stack is clear"}return(c,h)=>(O(),H("div",$d,[p("div",null,[pe(p("input",{"onUpdate:modelValue":h[0]||(h[0]=v=>n.value=v),placeholder:"Enter the value",style:{width:"100%"}},null,512),[[Ae,n.value]]),p("div",{class:"action-buttons"},[p("button",{onClick:s},"Push"),p("button",{onClick:o},"Pop"),p("button",{onClick:r},"Peek"),p("button",{onClick:a},"IsEmpty"),p("button",{onClick:l},"IsFull"),p("button",{onClick:u},"Clear All")])]),Od,p("h4",Nd,oe(i.value),1),p("ul",Ld,[(O(!0),H(he,null,qt(t.value,(v,w)=>(O(),H("li",{key:w},oe(v),1))),128))])]))}}),Hd=ue(Fd,[["__scopeId","data-v-2e98431e"]]),jd={class:"app"},Ud={class:"button-group"},Dd=re({__name:"index",setup(e){const t=z(""),n={uppers:"QWERTYUIOPASDFGHJKLZXCVBNM",lowers:"qwertyuiopasdfghjklzxcvbnm",numbers:"1234567890",symbols:"!@#$%^&"},i=(o=8)=>{let r="";r+=s(n.uppers),r+=s(n.lowers),r+=s(n.numbers),r+=s(n.symbols);for(let a=r.length;ao.charAt(Math.floor(Math.random()*o.length));return(o,r)=>(O(),H("div",jd,[p("form",null,[pe(p("input",{id:"input","onUpdate:modelValue":r[0]||(r[0]=a=>t.value=a),style:{width:"100%"}},null,512),[[Ae,t.value]]),p("div",Ud,[p("button",{onClick:r[1]||(r[1]=jn(a=>i(8),["prevent"]))},"Generate 08 characters password"),p("button",{onClick:r[2]||(r[2]=jn(a=>i(10),["prevent"]))},"Generate 10 characters password"),p("button",{onClick:r[3]||(r[3]=jn(a=>i(16),["prevent"]))},"Generate 16 characters password")])])]))}}),Bd=ue(Dd,[["__scopeId","data-v-1ca79b9f"]]),Vd={class:"stopwatch"},Kd={class:"timer"},zd={class:"flex-center"},qd=["disabled"],Wd=["disabled"],Gd=["disabled"],Jd=re({__name:"index",setup(e){const t=z({hour:0,min:0,sec:0}),n=z(0),i=()=>{let{hour:l=0,min:u=0,sec:c=0}={...t.value};c<59?c=c+1:(u=u+1,c=0),u===60&&(u=0,l=l+1),t.value={min:u,hour:l,sec:c}},s=()=>{n.value||(n.value=setInterval(i,1e3))},o=()=>{n.value&&(clearInterval(n.value),n.value=0)},r=()=>{clearInterval(n.value),n.value=0,t.value={hour:0,min:0,sec:0}},a=le(()=>{if(!n)return!0;const{hour:l=0,min:u=0,sec:c=0}=t.value;return!(l>0||u>0||c>0)});return(l,u)=>(O(),H("div",Vd,[p("div",Kd,[p("span",null,oe(t.value.hour.toString().padStart(2,"0")),1),be(" :  "),p("span",null,oe(t.value.min.toString().padStart(2,"0")),1),be("  :  "),p("span",null,oe(t.value.sec.toString().padStart(2,"0")),1)]),p("div",zd,[p("button",{onClick:s,disabled:!!n.value},"Start",8,qd),p("button",{onClick:o,disabled:!n.value},"Stop",8,Wd),p("button",{onClick:r,disabled:a.value},"Reset",8,Gd)])]))}}),Yd=ue(Jd,[["__scopeId","data-v-2997fb40"]]),dr=e=>(Re("data-v-90b1aadf"),e=e(),Pe(),e),Qd={class:"app"},Xd={class:"input-tags"},Zd=dr(()=>p("option",{value:"celsius"},"Celsius",-1)),ep=dr(()=>p("option",{value:"fahrenheit"},"Fahrenheit",-1)),tp=[Zd,ep],np={key:0,class:"text-center"},ip=re({__name:"index",setup(e){const t=z("celsius"),n=z(0),i=z(null);function s(){t.value==="celsius"?i.value=(n.value*9/5+32).toFixed(3):i.value=((n.value-32)*5/9).toFixed(3)}function o(){i.value!==null&&(i.value=null)}return(r,a)=>(O(),H("div",Qd,[p("div",null,[p("div",Xd,[pe(p("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),placeholder:"Enter the value",type:"number"},null,512),[[Ae,n.value,void 0,{number:!0}]]),pe(p("select",{"onUpdate:modelValue":a[1]||(a[1]=l=>t.value=l),class:"selected-value",onChange:o},tp,544),[[pn,t.value]]),p("button",{onClick:jn(s,["prevent"])},"Convert")])]),i.value!==null?(O(),H("h4",np," Converted Temperature:"+oe(i.value)+oe(t.value=="celsius"?"°C":"°F"),1)):tt("",!0)]))}}),sp=ue(ip,[["__scopeId","data-v-90b1aadf"]]);function $n(e,t){return e.every(n=>n===t)}function op(e,t,{row:n,col:i,diagonal:s,reverseDiagonal:o}){if(!t)return new Set;const r=new Set;return n!==!1&&e.forEach((a,l)=>{r.add(n*e.length+l)}),i!==!1&&e.forEach((a,l)=>{r.add(l*e.length+i)}),s&&e.map((a,l)=>a[l]).forEach((a,l)=>{r.add(l*e.length+l)}),o&&e.map((a,l)=>a[e.length-1-l]).forEach((a,l)=>{r.add(l*e.length+e.length-1-l)}),r}function rp(e,t){const n=e[t.row][t.col],i=$n(e[t.row],n),s=$n(e.map(u=>u[t.col]),n),o=t.row===t.col&&$n(e.map((u,c)=>u[c]),n),r=t.row+t.col===e.length-1&&$n(e.map((u,c)=>u[e.length-1-c]),n),a=i||s||o||r,l=op(e,a,{row:i&&t.row,col:s&&t.col,diagonal:o,reverseDiagonal:r});return{winner:a&&n,winningPositions:l}}const lp={class:"grid-container"},ap=["onClick"],cp={key:0,class:"winner"},up={key:1,class:"winner"},ut=3,fp=re({__name:"index",setup(e){let t=0;const n=ut*ut,i=["X","O"];let s=0;const o=z(Array.from(Array(ut),()=>new Array(ut).fill(null)));let r;function a(){return(t+1)%i.length}function l(c){const h=Math.floor(c/ut),v=c%ut;o.value[h][v]||r!=null&&r.winner||s===n||(o.value[h][v]=i[t],r=rp(o.value,{row:h,col:v}),!r.winner&&(s+=1,t=a()))}function u(){o.value=Array.from(Array(ut),()=>new Array(ut).fill(null)),t=0,s=0,r=null}return(c,h)=>{var v;return O(),H(he,null,[p("div",lp,[(O(!0),H(he,null,qt(o.value.flat(),(w,T)=>{var I,B;return O(),H("button",{class:it(["grid-item",{inactive:w||((I=se(r))==null?void 0:I.winner),highlight:(B=se(r))==null?void 0:B.winningPositions.has(T)}]),key:T,onClick:F=>l(T)},oe(w),11,ap)}),128))]),p("button",{onClick:h[0]||(h[0]=w=>u()),class:"reset"},"Reset"),(v=se(r))!=null&&v.winner?(O(),H("p",cp,oe(i[se(t)])+" wins!",1)):se(s)===n?(O(),H("p",up,"It's a draw!")):tt("",!0)],64)}}}),dp=ue(fp,[["__scopeId","data-v-1bdda8e8"]]),pp=[{path:"/",component:mu,children:[{path:"/counter",component:bu},{path:"/telephone-formatter",component:Cu},{path:"/guess-the-number",component:Hu},{path:"/light-dark-mode",component:Ku},{path:"/table-colorizer",component:ef},{path:"/pagination",component:cf},{path:"/accordion",component:kf},{path:"/toast-popup",component:Jf},{path:"/password-strength",component:Ad},{path:"/stack",component:Hd},{path:"/password-generator",component:Bd},{path:"/stopwatch",component:Yd},{path:"/temprature-converter",component:sp},{path:"/tic-tac-toe",component:dp}]}],hp=Uc({history:ic(),routes:pp}),pr=Fa(Vc);pr.use(hp);pr.mount("#app"); + */const jt=typeof window<"u";function ja(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const X=Object.assign;function mi(e,t){const n={};for(const i in t){const s=t[i];n[i]=Ue(s)?s.map(e):e(s)}return n}const hn=()=>{},Ue=Array.isArray,Ua=/\/$/,Da=e=>e.replace(Ua,"");function gi(e,t,n="/"){let i,s={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(i=i||t.slice(0,a),r=t.slice(a,t.length)),i=za(i??t,n),{fullPath:i+(o&&"?")+o+r,path:i,query:s,hash:r}}function Ba(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function js(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Va(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&Yt(t.matched[i],n.matched[s])&&tr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ka(e[n],t[n]))return!1;return!0}function Ka(e,t){return Ue(e)?Us(e,t):Ue(t)?Us(t,e):e===t}function Us(e,t){return Ue(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function za(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var wn;(function(e){e.pop="pop",e.push="push"})(wn||(wn={}));var mn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(mn||(mn={}));function qa(e){if(!e)if(jt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Da(e)}const Wa=/^[^#]+#/;function Ga(e,t){return e.replace(Wa,"#")+t}function Ja(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const ri=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ya(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Ja(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ds(e,t){return(history.state?history.state.position-t:-1)+e}const Ti=new Map;function Qa(e,t){Ti.set(e,t)}function Xa(e){const t=Ti.get(e);return Ti.delete(e),t}let Za=()=>location.protocol+"//"+location.host;function nr(e,t){const{pathname:n,search:i,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),js(l,"")}return js(n,e)+i+s}function ec(e,t,n,i){let s=[],o=[],r=null;const a=({state:v})=>{const w=nr(e,location),T=n.value,I=t.value;let B=0;if(v){if(n.value=w,t.value=v,r&&r===T){r=null;return}B=I?v.position-I.position:0}else i(w);s.forEach(F=>{F(n.value,T,{delta:B,type:wn.pop,direction:B?B>0?mn.forward:mn.back:mn.unknown})})};function l(){r=n.value}function u(v){s.push(v);const w=()=>{const T=s.indexOf(v);T>-1&&s.splice(T,1)};return o.push(w),w}function c(){const{history:v}=window;v.state&&v.replaceState(X({},v.state,{scroll:ri()}),"")}function h(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:h}}function Bs(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?ri():null}}function tc(e){const{history:t,location:n}=window,i={value:nr(e,n)},s={value:t.state};s.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const h=e.indexOf("#"),v=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Za()+e+l;try{t[c?"replaceState":"pushState"](u,"",v),s.value=u}catch(w){console.error(w),n[c?"replace":"assign"](v)}}function r(l,u){const c=X({},t.state,Bs(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,c,!0),i.value=l}function a(l,u){const c=X({},s.value,t.state,{forward:l,scroll:ri()});o(c.current,c,!0);const h=X({},Bs(i.value,l,null),{position:c.position+1},u);o(l,h,!1),i.value=l}return{location:i,state:s,push:a,replace:r}}function nc(e){e=qa(e);const t=tc(e),n=ec(e,t.state,t.location,t.replace);function i(o,r=!0){r||n.pauseListeners(),history.go(o)}const s=X({location:"",base:e,go:i,createHref:Ga.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function ic(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nc(e)}function sc(e){return typeof e=="string"||e&&typeof e=="object"}function ir(e){return typeof e=="string"||typeof e=="symbol"}const ct={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},sr=Symbol("");var Vs;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vs||(Vs={}));function Qt(e,t){return X(new Error,{type:e,[sr]:!0},t)}function Xe(e,t){return e instanceof Error&&sr in e&&(t==null||!!(e.type&t))}const Ks="[^/]+?",oc={sensitive:!1,strict:!1,start:!0,end:!0},rc=/[.+*?^${}()[\]/\\]/g;function lc(e,t){const n=X({},oc,t),i=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function cc(e,t){let n=0;const i=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const uc={type:0,value:""},fc=/[a-zA-Z0-9_]/;function dc(e){if(!e)return[[]];if(e==="/")return[[uc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${u}": ${w}`)}let n=0,i=n;const s=[];let o;function r(){o&&s.push(o),o=[]}let a=0,l,u="",c="";function h(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;a{r(U)}:hn}function r(c){if(ir(c)){const h=i.get(c);h&&(i.delete(c),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(c);h>-1&&(n.splice(h,1),c.record.name&&i.delete(c.record.name),c.children.forEach(r),c.alias.forEach(r))}}function a(){return n}function l(c){let h=0;for(;h=0&&(c.record.path!==n[h].record.path||!or(c,n[h]));)h++;n.splice(h,0,c),c.record.name&&!Ws(c)&&i.set(c.record.name,c)}function u(c,h){let v,w={},T,I;if("name"in c&&c.name){if(v=i.get(c.name),!v)throw Qt(1,{location:c});I=v.record.name,w=X(qs(h.params,v.keys.filter(U=>!U.optional).map(U=>U.name)),c.params&&qs(c.params,v.keys.map(U=>U.name))),T=v.stringify(w)}else if("path"in c)T=c.path,v=n.find(U=>U.re.test(T)),v&&(w=v.parse(T),I=v.record.name);else{if(v=h.name?i.get(h.name):n.find(U=>U.re.test(h.path)),!v)throw Qt(1,{location:c,currentLocation:h});I=v.record.name,w=X({},h.params,c.params),T=v.stringify(w)}const B=[];let F=v;for(;F;)B.unshift(F.record),F=F.parent;return{name:I,path:T,params:w,matched:B,meta:vc(B)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:r,getRoutes:a,getRecordMatcher:s}}function qs(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function mc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ws(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vc(e){return e.reduce((t,n)=>X(t,n.meta),{})}function Gs(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function or(e,t){return t.children.some(n=>n===e||or(e,n))}const rr=/#/g,_c=/&/g,yc=/\//g,bc=/=/g,wc=/\?/g,lr=/\+/g,kc=/%5B/g,Ec=/%5D/g,ar=/%5E/g,xc=/%60/g,cr=/%7B/g,Cc=/%7C/g,ur=/%7D/g,Mc=/%20/g;function Xi(e){return encodeURI(""+e).replace(Cc,"|").replace(kc,"[").replace(Ec,"]")}function Sc(e){return Xi(e).replace(cr,"{").replace(ur,"}").replace(ar,"^")}function Ai(e){return Xi(e).replace(lr,"%2B").replace(Mc,"+").replace(rr,"%23").replace(_c,"%26").replace(xc,"`").replace(cr,"{").replace(ur,"}").replace(ar,"^")}function Rc(e){return Ai(e).replace(bc,"%3D")}function Pc(e){return Xi(e).replace(rr,"%23").replace(wc,"%3F")}function Tc(e){return e==null?"":Pc(e).replace(yc,"%2F")}function Jn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ac(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Ai(o)):[i&&Ai(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ic(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Ue(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}const $c=Symbol(""),Ys=Symbol(""),Zi=Symbol(""),es=Symbol(""),Ii=Symbol("");function an(){let e=[];function t(i){return e.push(i),()=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function dt(e,t,n,i,s){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((r,a)=>{const l=h=>{h===!1?a(Qt(4,{from:n,to:t})):h instanceof Error?a(h):sc(h)?a(Qt(2,{from:t,to:h})):(o&&i.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),r())},u=e.call(i&&i.instances[s],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(h=>a(h))})}function vi(e,t,n,i){const s=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(Oc(a)){const u=(a.__vccOpts||a)[t];u&&s.push(dt(u,n,i,o,r))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const c=ja(u)?u.default:u;o.components[r]=c;const v=(c.__vccOpts||c)[t];return v&&dt(v,n,i,o,r)()}))}}return s}function Oc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Qs(e){const t=Ye(Zi),n=Ye(es),i=le(()=>t.resolve(se(e.to))),s=le(()=>{const{matched:l}=i.value,{length:u}=l,c=l[u-1],h=n.matched;if(!c||!h.length)return-1;const v=h.findIndex(Yt.bind(null,c));if(v>-1)return v;const w=Xs(l[u-2]);return u>1&&Xs(c)===w&&h[h.length-1].path!==w?h.findIndex(Yt.bind(null,l[u-2])):v}),o=le(()=>s.value>-1&&Hc(n.params,i.value.params)),r=le(()=>s.value>-1&&s.value===n.matched.length-1&&tr(n.params,i.value.params));function a(l={}){return Fc(l)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(hn):Promise.resolve()}return{route:i,href:le(()=>i.value.href),isActive:o,isExactActive:r,navigate:a}}const Nc=re({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Qs,setup(e,{slots:t}){const n=En(Qs(e)),{options:i}=Ye(Zi),s=le(()=>({[Zs(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Zs(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Qo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Lc=Nc;function Fc(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Hc(e,t){for(const n in t){const i=t[n],s=e[n];if(typeof i=="string"){if(i!==s)return!1}else if(!Ue(s)||s.length!==i.length||i.some((o,r)=>o!==s[r]))return!1}return!0}function Xs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Zs=(e,t,n)=>e??t??n,jc=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Ye(Ii),s=le(()=>e.route||i.value),o=Ye(Ys,0),r=le(()=>{let u=se(o);const{matched:c}=s.value;let h;for(;(h=c[u])&&!h.components;)u++;return u}),a=le(()=>s.value.matched[r.value]);Fn(Ys,le(()=>r.value+1)),Fn($c,a),Fn(Ii,s);const l=z();return mt(()=>[l.value,a.value,e.name],([u,c,h],[v,w,T])=>{c&&(c.instances[h]=u,w&&w!==c&&u&&u===v&&(c.leaveGuards.size||(c.leaveGuards=w.leaveGuards),c.updateGuards.size||(c.updateGuards=w.updateGuards))),u&&c&&(!w||!Yt(c,w)||!v)&&(c.enterCallbacks[h]||[]).forEach(I=>I(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,h=a.value,v=h&&h.components[c];if(!v)return eo(n.default,{Component:v,route:u});const w=h.props[c],T=w?w===!0?u.params:typeof w=="function"?w(u):w:null,B=Qo(v,X({},T,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(h.instances[c]=null)},ref:l}));return eo(n.default,{Component:B,route:u})||B}}});function eo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ts=jc;function Uc(e){const t=hc(e.routes,e),n=e.parseQuery||Ac,i=e.stringifyQuery||Js,s=e.history,o=an(),r=an(),a=an(),l=Yr(ct);let u=ct;jt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=mi.bind(null,y=>""+y),h=mi.bind(null,Tc),v=mi.bind(null,Jn);function w(y,P){let M,$;return ir(y)?(M=t.getRecordMatcher(y),$=P):$=y,t.addRoute($,M)}function T(y){const P=t.getRecordMatcher(y);P&&t.removeRoute(P)}function I(){return t.getRoutes().map(y=>y.record)}function B(y){return!!t.getRecordMatcher(y)}function F(y,P){if(P=X({},P||l.value),typeof y=="string"){const m=gi(n,y,P.path),_=t.resolve({path:m.path},P),b=s.createHref(m.fullPath);return X(m,_,{params:v(_.params),hash:Jn(m.hash),redirectedFrom:void 0,href:b})}let M;if("path"in y)M=X({},y,{path:gi(n,y.path,P.path).path});else{const m=X({},y.params);for(const _ in m)m[_]==null&&delete m[_];M=X({},y,{params:h(m)}),P.params=h(P.params)}const $=t.resolve(M,P),Q=y.hash||"";$.params=c(v($.params));const f=Ba(i,X({},y,{hash:Sc(Q),path:$.path})),d=s.createHref(f);return X({fullPath:f,hash:Q,query:i===Js?Ic(y.query):y.query||{}},$,{redirectedFrom:void 0,href:d})}function U(y){return typeof y=="string"?gi(n,y,l.value.path):X({},y)}function J(y,P){if(u!==y)return Qt(8,{from:P,to:y})}function D(y){return $e(y)}function fe(y){return D(X(U(y),{replace:!0}))}function ve(y){const P=y.matched[y.matched.length-1];if(P&&P.redirect){const{redirect:M}=P;let $=typeof M=="function"?M(y):M;return typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=U($):{path:$},$.params={}),X({query:y.query,hash:y.hash,params:"path"in $?{}:y.params},$)}}function $e(y,P){const M=u=F(y),$=l.value,Q=y.state,f=y.force,d=y.replace===!0,m=ve(M);if(m)return $e(X(U(m),{state:typeof m=="object"?X({},Q,m.state):Q,force:f,replace:d}),P||M);const _=M;_.redirectedFrom=P;let b;return!f&&Va(i,$,M)&&(b=Qt(16,{to:_,from:$}),Ke($,$,!0,!1)),(b?Promise.resolve(b):Be(_,$)).catch(k=>Xe(k)?Xe(k,2)?k:lt(k):Y(k,_,$)).then(k=>{if(k){if(Xe(k,2))return $e(X({replace:d},U(k.to),{state:typeof k.to=="object"?X({},Q,k.to.state):Q,force:f}),P||_)}else k=yt(_,$,!0,d,Q);return rt(_,$,k),k})}function De(y,P){const M=J(y,P);return M?Promise.reject(M):Promise.resolve()}function $t(y){const P=Lt.values().next().value;return P&&typeof P.runWithContext=="function"?P.runWithContext(y):y()}function Be(y,P){let M;const[$,Q,f]=Dc(y,P);M=vi($.reverse(),"beforeRouteLeave",y,P);for(const m of $)m.leaveGuards.forEach(_=>{M.push(dt(_,y,P))});const d=De.bind(null,y,P);return M.push(d),_e(M).then(()=>{M=[];for(const m of o.list())M.push(dt(m,y,P));return M.push(d),_e(M)}).then(()=>{M=vi(Q,"beforeRouteUpdate",y,P);for(const m of Q)m.updateGuards.forEach(_=>{M.push(dt(_,y,P))});return M.push(d),_e(M)}).then(()=>{M=[];for(const m of f)if(m.beforeEnter)if(Ue(m.beforeEnter))for(const _ of m.beforeEnter)M.push(dt(_,y,P));else M.push(dt(m.beforeEnter,y,P));return M.push(d),_e(M)}).then(()=>(y.matched.forEach(m=>m.enterCallbacks={}),M=vi(f,"beforeRouteEnter",y,P),M.push(d),_e(M))).then(()=>{M=[];for(const m of r.list())M.push(dt(m,y,P));return M.push(d),_e(M)}).catch(m=>Xe(m,8)?m:Promise.reject(m))}function rt(y,P,M){a.list().forEach($=>$t(()=>$(y,P,M)))}function yt(y,P,M,$,Q){const f=J(y,P);if(f)return f;const d=P===ct,m=jt?history.state:{};M&&($||d?s.replace(y.fullPath,X({scroll:d&&m&&m.scroll},Q)):s.push(y.fullPath,Q)),l.value=y,Ke(y,P,M,d),lt()}let Ve;function sn(){Ve||(Ve=s.listen((y,P,M)=>{if(!Cn.listening)return;const $=F(y),Q=ve($);if(Q){$e(X(Q,{replace:!0}),$).catch(hn);return}u=$;const f=l.value;jt&&Qa(Ds(f.fullPath,M.delta),ri()),Be($,f).catch(d=>Xe(d,12)?d:Xe(d,2)?($e(d.to,$).then(m=>{Xe(m,20)&&!M.delta&&M.type===wn.pop&&s.go(-1,!1)}).catch(hn),Promise.reject()):(M.delta&&s.go(-M.delta,!1),Y(d,$,f))).then(d=>{d=d||yt($,f,!1),d&&(M.delta&&!Xe(d,8)?s.go(-M.delta,!1):M.type===wn.pop&&Xe(d,20)&&s.go(-1,!1)),rt($,f,d)}).catch(hn)}))}let Ot=an(),de=an(),ee;function Y(y,P,M){lt(y);const $=de.list();return $.length?$.forEach(Q=>Q(y,P,M)):console.error(y),Promise.reject(y)}function Qe(){return ee&&l.value!==ct?Promise.resolve():new Promise((y,P)=>{Ot.add([y,P])})}function lt(y){return ee||(ee=!y,sn(),Ot.list().forEach(([P,M])=>y?M(y):P()),Ot.reset()),y}function Ke(y,P,M,$){const{scrollBehavior:Q}=e;if(!jt||!Q)return Promise.resolve();const f=!M&&Xa(Ds(y.fullPath,0))||($||!M)&&history.state&&history.state.scroll||null;return Po().then(()=>Q(y,P,f)).then(d=>d&&Ya(d)).catch(d=>Y(d,y,P))}const xe=y=>s.go(y);let Nt;const Lt=new Set,Cn={currentRoute:l,listening:!0,addRoute:w,removeRoute:T,hasRoute:B,getRoutes:I,resolve:F,options:e,push:D,replace:fe,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:de.add,isReady:Qe,install(y){const P=this;y.component("RouterLink",Lc),y.component("RouterView",ts),y.config.globalProperties.$router=P,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>se(l)}),jt&&!Nt&&l.value===ct&&(Nt=!0,D(s.location).catch(Q=>{}));const M={};for(const Q in ct)Object.defineProperty(M,Q,{get:()=>l.value[Q],enumerable:!0});y.provide(Zi,P),y.provide(es,bo(M)),y.provide(Ii,l);const $=y.unmount;Lt.add(y),y.unmount=function(){Lt.delete(y),Lt.size<1&&(u=ct,Ve&&Ve(),Ve=null,l.value=ct,Nt=!1,ee=!1),$()}}};function _e(y){return y.reduce((P,M)=>P.then(()=>$t(M)),Promise.resolve())}return Cn}function Dc(e,t){const n=[],i=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rYt(u,a))?i.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(u=>Yt(u,l))||s.push(l))}return[n,i,s]}function Bc(){return Ye(es)}const Vc=re({__name:"App",setup(e){return(t,n)=>(O(),Gi(se(ts)))}}),Kc="/frontend-mini-challenges/vue/assets/logo-r_4QCHBg.png";var zc={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/vue/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const It=e=>(Re("data-v-3baab4ad"),e=e(),Pe(),e),qc={class:"navbar"},Wc={class:"left"},Gc=["href"],Jc=["href"],Yc=["src"],Qc=It(()=>p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link"},[p("path",{d:"M15 3h6v6"}),p("path",{d:"M10 14 21 3"}),p("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})],-1)),Xc=It(()=>p("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"_blank"},[p("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",class:"github"})],-1)),Zc=It(()=>p("input",{type:"checkbox"},null,-1)),eu=It(()=>p("div",{class:"line"},null,-1)),tu=It(()=>p("div",{class:"line"},null,-1)),nu=It(()=>p("div",{class:"line"},null,-1)),iu=It(()=>p("li",null,[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-external-link"},[p("path",{d:"M15 3h6v6"}),p("path",{d:"M10 14 21 3"}),p("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]),be(" Source code ")],-1)),su=[iu],ou="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/vue/src/challenges/",ru=re({__name:"Navbar",props:{title:{type:String,required:!0},link:{type:String,required:!0}},setup(e){const{VITE_PATH:t,VITE_HOST_URL:n,DEV:i}=zc,s=i?`${n}${t}/#/vue`:`/${t}/#/vue/`,o=i?`${n}${t}/`:`/${t}/`,a=`${ou}${e.link}`;return(l,u)=>(O(),H("nav",qc,[p("div",Wc,[p("a",{href:se(s),class:"back"}," < ",8,Gc),p("a",{class:"logo",href:se(o)},[p("img",{src:se(Kc),alt:"logo"},null,8,Yc)],8,Jc)]),p("h1",null,oe(e.title),1),p("div",{class:"right"},[p("div",{class:"source_code"},[p("a",{target:"_blank",rel:"noreferrer",href:a},[Qc,be(" Source code ")])]),Xc,p("div",{id:"responsive-nav"},[p("div",{class:"hamburger"},[Zc,eu,tu,nu,p("section",{id:"menu"},[p("ul",null,[p("a",{href:a,target:"blank"},su)])])])])])]))}}),ue=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},lu=ue(ru,[["__scopeId","data-v-3baab4ad"]]);var g=(e=>(e.Easy="easy",e.Medium="medium",e.Hard="hard",e))(g||{}),S=(e=>(e.interview="interview",e.all="all",e))(S||{});const to=[g.Easy,g.Medium,g.Hard];function xn(e){return new Map([...e.entries()].sort((t,n)=>{const i=to.indexOf(t[1].difficulty),s=to.indexOf(n[1].difficulty);return i-s}))}const au=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:g.Easy,developer:"sadanandpai",tags:[]}],["spinner",{title:"Spinner",link:"spinner/",difficulty:g.Easy,developer:"DhanushNehru",tags:[]}],["dialog",{title:"Dialog",link:"dialog/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[S.interview]}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:g.Easy,developer:"officialbidisha",tags:[S.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:g.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:g.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[S.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:g.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:g.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:g.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:g.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);xn(au);const cu=new Map([["counter",{title:"Counter",link:"counter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[S.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:g.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:g.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:g.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:g.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[S.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[S.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:g.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:g.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[S.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:g.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:g.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:g.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:g.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:g.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:g.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:g.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:g.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:g.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:g.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:g.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:g.Medium,developer:"shruti-sen2004",tags:[S.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"toast-popup/",difficulty:g.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[S.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:g.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:g.Medium,developer:"srijanB7",tags:[S.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:g.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:g.Medium,developer:"Kei-K23",tags:[S.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:g.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:g.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:g.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:g.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:g.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["comment-box",{title:"Comment box",link:"comment-box/",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:g.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead / Autocomplete (offline)",link:"type-ahead/",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}],["type-ahead-online",{title:"Typeahead / Autocomplete (online)",link:"type-ahead-online/",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}]]);xn(cu);const uu=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[S.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:g.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:g.Easy,developer:"Bhushan1019",tags:[S.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:g.Easy,tags:[S.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:g.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:g.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:g.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:g.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:g.Easy,developer:"deepakrajkranti",tags:[S.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:g.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:g.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:g.Easy,developer:"NikhilJHA01",tags:[S.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"rashidtvmr",tags:[S.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:g.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:g.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:g.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:g.Easy,developer:"codechitra",tags:[S.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:g.Medium,developer:"liza",tags:[S.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:g.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:g.Medium,developer:"rishabhm05",tags:[S.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:g.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:g.Medium,developer:"deepu0",tags:[S.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:g.Medium,developer:"rishabhm05",tags:[S.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:g.Medium,developer:"deepu0",tags:[S.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:g.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:g.Medium,developer:"deepakrajkranti",tags:[S.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:g.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:g.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:g.Medium,developer:"rashidtvmr",tags:[S.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:g.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:g.Medium,developer:"AbhilashMadi",tags:[S.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:g.Medium,developer:"AbhilashMadi",tags:[S.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:g.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:g.Hard,developer:"Akshay-Omkar",tags:[S.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:g.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:g.Medium,developer:"DeePaK-HeeRaKaRi",tags:[S.interview]}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:g.Medium,developer:"ayush-dutt-sharma",tags:[S.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:g.Hard,developer:"rishabhm05",tags:[S.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:g.Hard,developer:"sadanandpai",tags:[S.interview]}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:g.Hard,developer:"deepu0",tags:[S.interview]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:g.Hard,developer:"deepu0",tags:[S.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:g.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:g.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:g.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:g.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:g.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:g.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[S.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:g.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:g.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:g.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}]]);xn(uu);const fu=new Map([["counter",{title:"Counter",link:"/counter",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:g.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:g.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:g.Easy,developer:"arpansaha13",tags:[S.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:g.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:g.Medium,developer:"sadanandpai",tags:[S.interview]}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:g.Medium,developer:"arpansaha13",tags:[S.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:g.Medium,developer:"jaydadhaniya",tags:[S.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:g.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:g.Medium,developer:"Shardik04",tags:[S.interview]}]]),no=xn(fu),du=new Map([["counter",{title:"Counter",link:"counter",difficulty:g.Easy,developer:"sadanandpai",tags:[S.interview],isNew:!0}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:g.Easy,developer:"pankajparkar",tags:[S.interview],isNew:!0}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:g.Easy,developer:"pankajparkar",tags:[S.interview],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:g.Easy,developer:"pankajparkar",tags:[S.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:g.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);xn(du);const pu={class:"challenge-container"},hu=re({__name:"challenge",setup(e){const t=Bc(),n=z(""),i=z("");return mt(t,()=>{const s=t.path.split("/").filter(Boolean).pop();n.value=no.get(s).title,i.value=no.get(s).link},{immediate:!0}),(s,o)=>(O(),H(he,null,[me(lu,{title:n.value,link:i.value},null,8,["title","link"]),p("div",pu,[me(se(ts))])],64))}}),mu=ue(hu,[["__scopeId","data-v-d3dec0bc"]]),gu=e=>(Re("data-v-348dfed2"),e=e(),Pe(),e),vu={class:"main"},_u=gu(()=>p("label",{for:"step"},"Increment/Decrement by",-1)),yu=re({__name:"index",setup(e){const t=z(0),n=z(1),i=()=>{t.value+=n.value},s=()=>{t.value-=n.value},o=()=>{t.value=0};return(r,a)=>(O(),H("main",vu,[p("h2",null,oe(t.value),1),p("section",null,[p("button",{onClick:s,"aria-label":"Decrement"}," - "),p("button",{onClick:i,"aria-label":"Increment"}," + ")]),p("section",null,[_u,pe(p("input",{type:"number",id:"step","onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),title:"Step value"},null,512),[[Ae,n.value]])]),p("section",null,[p("button",{onClick:o},"Reset")])]))}}),bu=ue(yu,[["__scopeId","data-v-348dfed2"]]),wu=e=>(Re("data-v-d4985809"),e=e(),Pe(),e),ku={class:"container text-center"},Eu=wu(()=>p("div",null,[p("label",{for:"phone"},"+(123) - 4567890")],-1)),xu=re({__name:"index",setup(e){const t=z(""),n=i=>i.split("").filter(s=>Number.isInteger(+s)&&s!==" ").join("");return mt(t,i=>{const s=n(i);t.value=s.length>3?"+("+s.substring(0,3)+") - "+s.substring(3):s}),(i,s)=>(O(),H("div",ku,[pe(p("input",{type:"tel",id:"phone",maxlength:"16",placeholder:"Mobile number",autocomplete:"off",class:"field","onUpdate:modelValue":s[0]||(s[0]=o=>t.value=o)},null,512),[[Ae,t.value]]),Eu]))}}),Cu=ue(xu,[["__scopeId","data-v-d4985809"]]),li=e=>(Re("data-v-5f86141c"),e=e(),Pe(),e),Mu={class:"app"},Su=li(()=>p("label",{for:"input"},"Guess a number between 0 and 100",-1)),Ru={class:"widget"},Pu=["disabled"],Tu={class:"hint"},Au={key:0},Iu=li(()=>p("b",null,"Less",-1)),$u={key:1},Ou=li(()=>p("b",null,"Higher",-1)),Nu={key:2},Lu=li(()=>p("b",null,"right",-1)),Fu=re({__name:"index",setup(e){const t=()=>Math.round(100*Math.random()),n=z(t()),i=z(!1),s=z(1),o=z("NONE"),r=l=>{l.preventDefault(),s.valuen.value?o.value="HIGH":(o.value="CORRECT",i.value=!0)},a=()=>{n.value=t(),o.value="NONE",i.value=!1,s.value=1};return(l,u)=>(O(),H("div",Mu,[p("form",{onSubmit:r},[Su,pe(p("input",{id:"input",type:"number",min:"0",max:"100","onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c),placeholder:"Guess a number"},null,512),[[Ae,s.value]]),p("div",Ru,[p("button",{type:"button",onClick:a}," Reset "),p("button",{type:"submit",disabled:i.value}," Check ",8,Pu)])],32),p("div",Tu,[o.value==="LOW"?(O(),H("p",Au,[be(" Your guess is "),Iu,be(" than the actual number ")])):o.value==="HIGH"?(O(),H("p",$u,[be(" Your guess is "),Ou,be(" than the actual number ")])):o.value==="CORRECT"?(O(),H("p",Nu,[be(" Your guess is "),Lu])):tt("",!0)])]))}}),Hu=ue(Fu,[["__scopeId","data-v-5f86141c"]]),ju=e=>(Re("data-v-cbde5945"),e=e(),Pe(),e),Uu={class:"content"},Du=ju(()=>p("p",{class:"text"},"Toggle the theme and see the change!",-1)),Bu={class:"current-theme"},Vu=re({__name:"index",setup(e){const t=z(!1);return(n,i)=>(O(),H("main",{class:it(t.value?"dark":"")},[p("div",Uu,[Du,p("button",{type:"button",onClick:i[0]||(i[0]=s=>t.value=!t.value)},"Toggle theme"),p("p",Bu,[be("Current theme: "),p("span",null,oe(t.value?"Dark":"Light"),1)])])],2))}}),Ku=ue(Vu,[["__scopeId","data-v-cbde5945"]]),fr=e=>(Re("data-v-3f23bc99"),e=e(),Pe(),e),zu={class:"container"},qu={class:"input-box"},Wu=fr(()=>p("label",{for:"row-number"},"Row",-1)),Gu=["max"],Ju=fr(()=>p("label",{for:"column-number"},"Column",-1)),Yu=["max"],Qu={class:"table-box"},Xu={class:"row"},Zu=re({__name:"index",setup(e){const t=z([[{content:1,colored:!1},{content:2,colored:!1},{content:3,colored:!1}],[{content:4,colored:!1},{content:5,colored:!1},{content:6,colored:!1}],[{content:7,colored:!1},{content:8,colored:!1},{content:9,colored:!1}]]),n=z(1),i=z(1);function s(){const a=n.value-1,l=i.value-1;t.value[a][l].colored=!0}function o(){const a=n.value-1,l=i.value-1;t.value[a][l].colored=!1}function r(){for(const a of t.value)for(const l of a)l.colored=!1}return(a,l)=>(O(),H("main",null,[p("div",zu,[p("div",qu,[p("div",null,[Wu,pe(p("input",{id:"row-number",type:"number",inputmode:"numeric",min:"0",max:t.value.length,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},null,8,Gu),[[Ae,n.value]])]),p("div",null,[Ju,pe(p("input",{id:"column-number",type:"number",inputmode:"numeric",min:"0",max:t.value[0].length,"onUpdate:modelValue":l[1]||(l[1]=u=>i.value=u)},null,8,Yu),[[Ae,i.value]])])]),p("div",{class:"button-box"},[p("button",{type:"button",onClick:s},"Color selected cell"),p("button",{type:"button",onClick:o},"Clear selected cell"),p("button",{type:"button",onClick:r},"Clear all cells")]),p("div",Qu,[(O(!0),H(he,null,qt(t.value,u=>(O(),H("div",Xu,[(O(!0),H(he,null,qt(u,c=>(O(),H("div",{class:it([c.colored?"colored":"","cell"])},oe(c.content),3))),256))]))),256))])])]))}}),ef=ue(Zu,[["__scopeId","data-v-3f23bc99"]]),tf=e=>(Re("data-v-f7ffadb8"),e=e(),Pe(),e),nf={class:"container"},sf=tf(()=>p("thead",null,[p("tr",null,[p("th",null,"ID"),p("th",null,"Name")])],-1)),of={class:"button-box"},rf=["disabled"],lf=["disabled"],kt=5,af=re({__name:"index",setup(e){const t=z([]);for(let l=1;l<=30;l++)t.value.push({id:l,name:"Item "+l});const n=le(()=>t.value.length),i=z(0),s=z(i.value+kt),o=le(()=>t.value.slice(i.value,s.value));function r(){i.value=Math.max(0,i.value-kt),s.value=i.value+kt}function a(){s.value=Math.min(n.value,s.value+kt),i.value=s.value-kt}return(l,u)=>(O(),H("main",null,[p("div",nf,[p("table",null,[sf,p("tbody",null,[(O(!0),H(he,null,qt(o.value,c=>(O(),H("tr",null,[p("td",null,oe(c.id),1),p("td",null,oe(c.name),1)]))),256))])]),p("div",of,[p("button",{type:"button",disabled:i.value===0,onClick:r},"Prev",8,rf),p("button",{type:"button",disabled:s.value===n.value,onClick:a},"Next",8,lf)]),p("div",null,[p("p",null,"Showing data from "+oe(i.value)+" to "+oe(s.value),1),p("p",null,"Total: "+oe(n.value),1),p("p",null,"Pages: "+oe(n.value/kt),1),p("p",null,"Rows per page: "+oe(kt))])])]))}}),cf=ue(af,[["__scopeId","data-v-f7ffadb8"]]),uf={class:"accordion"},ff={key:0,class:"panel"},df=re({__name:"Accordion",props:{heading:{type:String,required:!0},content:{type:String,required:!0},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,i=t,s=()=>{i("update:model-value",!n.modelValue)};return(o,r)=>(O(),H("div",uf,[p("button",{type:"button",onClick:s},oe(e.heading),1),e.modelValue?(O(),H("div",ff,oe(e.content),1)):tt("",!0)]))}}),pf=ue(df,[["__scopeId","data-v-d917595f"]]),hf={class:"container"},mf=re({__name:"AccordionGroup",props:{data:{type:Array,required:!0},allowMultipleOpen:{type:Boolean,default:!0}},setup(e){const t=e,n=En(Array(t.data.length).fill(!1)),i=z(null);function s(o,r){!t.allowMultipleOpen&&i.value!==null&&(n[i.value]=!1),i.value=r,n[r]=o}return mt(t,o=>{o.allowMultipleOpen||(n.fill(!1),i.value&&(n[i.value]=!0))}),(o,r)=>(O(),H("div",hf,[(O(!0),H(he,null,qt(e.data,(a,l)=>(O(),Gi(pf,{heading:a.heading,content:a.content,modelValue:n[l],"onUpdate:modelValue":[u=>n[l]=u,u=>s(u,l)]},null,8,["heading","content","modelValue","onUpdate:modelValue"]))),256))]))}}),gf=ue(mf,[["__scopeId","data-v-33bc9952"]]),vf=[{heading:"Lorem Ipsum 1",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta eligendi incidunt itaque dolor quis facere, vel animi laboriosam provident ipsum totam tenetur nisi iste asperiores ipsa, officia a tempora distinctio?"},{heading:"Lorem Ipsum 2",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum nam architecto amet alias officia, at consequatur nostrum ea voluptatum ipsam quod minus magnam vitae dicta magni veritatis sint!"},{heading:"Lorem Ipsum 3",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor autem voluptates quae quaerat perferendis sed velit voluptatibus delectus repudiandae. Laborum nemo et repellat vero. Ut asperiores autem officiis molestiae qui, omnis eveniet repellat alias animi cupiditate itaque. Officiis eos nobis earum!"},{heading:"Lorem Ipsum 4",content:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim assumenda corporis soluta adipisci eius esse recusandae nulla est possimus earum obcaecati exercitationem cum, vel veniam, saepe debitis porro, necessitatibus deserunt. Cumque possimus aspernatur in architecto cum tenetur ea laboriosam, amet sit. Dolore laborum totam soluta quo numquam repellat obcaecati explicabo esse recusandae quibusdam nihil, ratione eaque, error adipisci amet nisi ullam. Dolore provident quas, ratione aut perspiciatis fugiat facilis ex recusandae asperiores porro suscipit et dicta, pariatur minus ab corrupti! Optio pariatur libero modi dolor quaerat eius officia vel, vero assumenda, minima eveniet aspernatur, maiores id mollitia itaque animi fugiat!"}],_f=e=>(Re("data-v-a7dda4e5"),e=e(),Pe(),e),yf={class:"checkbox"},bf=_f(()=>p("label",{for:"allow-multiple-open"},"Allow multiple open accordion",-1)),wf=re({__name:"index",setup(e){const t=z(!0);return(n,i)=>(O(),H("main",null,[p("div",yf,[pe(p("input",{id:"allow-multiple-open",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=s=>t.value=s)},null,512),[[Zo,t.value]]),bf]),me(gf,{data:se(vf),allowMultipleOpen:t.value},null,8,["data","allowMultipleOpen"])]))}}),kf=ue(wf,[["__scopeId","data-v-a7dda4e5"]]);var Un=(e=>(e.LEFT="left",e.RIGHT="right",e))(Un||{}),Dn=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(Dn||{}),Ct=(e=>(e.INFO="info",e.ERROR="error",e.WARNING="warning",e.SUCCESS="success",e))(Ct||{});const Ef=e=>(Re("data-v-08953fd9"),e=e(),Pe(),e),xf=Ef(()=>p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)),Cf=[xf],Mf=re({__name:"toast",props:{vertical:{type:String,required:!0},horizontal:{type:String,required:!0},message:{type:String,required:!0},timeout:{type:Number,default:5e3},type:{type:String,default:Ct.INFO},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,i=t,s=tl(n,"modelValue"),o=z(null),r=()=>{o.value!==null&&(clearTimeout(o.value),o.value=null),i("update:model-value",!1)};return mt(s,a=>{a&&(o.value=setTimeout(r,n.timeout))}),(a,l)=>(O(),H("div",{class:it(["toast-fixed-screen",e.vertical])},[p("div",{class:it(["toast-container",e.horizontal])},[pe(p("div",{class:it(["toast",e.type])},[p("p",null,oe(e.message),1),p("button",{type:"button",onClick:r},Cf)],2),[[Xo,s.value]])],2)],2))}}),Sf=ue(Mf,[["__scopeId","data-v-08953fd9"]]),nn=e=>(Re("data-v-a768b1a7"),e=e(),Pe(),e),Rf={class:"container"},Pf={class:"field"},Tf=nn(()=>p("label",{for:"horizontal"},"Horizontal position",-1)),Af=["value"],If=["value"],$f={class:"field"},Of=nn(()=>p("label",{for:"vertical"},"Vertical position",-1)),Nf=["value"],Lf=["value"],Ff={class:"field"},Hf=nn(()=>p("label",{for:"type"},"Toast type",-1)),jf=["value"],Uf=["value"],Df=["value"],Bf=["value"],Vf={class:"field"},Kf=nn(()=>p("label",{for:"message"},"Message",-1)),zf={class:"field"},qf=nn(()=>p("label",{for:"timeout"},"Toast timeout (in milliseconds)",-1)),Wf=nn(()=>p("button",{class:"submit"},"Show toast",-1)),Gf=re({__name:"index",setup(e){const t=z(Dn.BOTTOM),n=z(Un.RIGHT),i=z(Ct.INFO),s=z("This is a toast!!"),o=z(!1),r=z(5e3),a=l=>{l.preventDefault(),o.value=!0};return(l,u)=>(O(),H("main",null,[p("div",Rf,[p("form",{class:"toast-form",onSubmit:a},[p("div",Pf,[Tf,pe(p("select",{name:"horizontal",id:"horizontal","onUpdate:modelValue":u[0]||(u[0]=c=>n.value=c)},[p("option",{value:se(Un).LEFT},"Left",8,Af),p("option",{value:se(Un).RIGHT},"Right",8,If)],512),[[pn,n.value]])]),p("div",$f,[Of,pe(p("select",{name:"vertical",id:"vertical","onUpdate:modelValue":u[1]||(u[1]=c=>t.value=c)},[p("option",{value:se(Dn).TOP},"Top",8,Nf),p("option",{value:se(Dn).BOTTOM},"Bottom",8,Lf)],512),[[pn,t.value]])]),p("div",Ff,[Hf,pe(p("select",{name:"type",id:"type","onUpdate:modelValue":u[2]||(u[2]=c=>i.value=c)},[p("option",{value:se(Ct).INFO},"Info",8,jf),p("option",{value:se(Ct).SUCCESS},"Success",8,Uf),p("option",{value:se(Ct).ERROR},"Error",8,Df),p("option",{value:se(Ct).WARNING},"Warning",8,Bf)],512),[[pn,i.value]])]),p("div",Vf,[Kf,pe(p("input",{type:"text",name:"message",id:"message","onUpdate:modelValue":u[3]||(u[3]=c=>s.value=c),maxlength:"40"},null,512),[[Ae,s.value]])]),p("div",zf,[qf,pe(p("input",{type:"number",inputmode:"numeric",name:"timeout",id:"timeout",max:"30000","onUpdate:modelValue":u[4]||(u[4]=c=>r.value=c)},null,512),[[Ae,r.value]])]),Wf],32),me(Sf,{modelValue:o.value,"onUpdate:modelValue":u[5]||(u[5]=c=>o.value=c),type:i.value,timeout:r.value,horizontal:n.value,vertical:t.value,message:s.value},null,8,["modelValue","type","timeout","horizontal","vertical","message"])])]))}}),Jf=ue(Gf,[["__scopeId","data-v-a768b1a7"]]),Ie=e=>(Re("data-v-50714ff9"),e=e(),Pe(),e),Yf={class:"app"},Qf=["type"],Xf=Ie(()=>p("label",{for:"showPassword",style:{"margin-left":"5px"}},"Show Password",-1)),Zf={key:0},ed=Ie(()=>p("p",{class:"passStrengthText"},"Very weak",-1)),td=Ie(()=>p("div",{style:{width:"50px",border:"1px solid red"}},null,-1)),nd=[ed,td],id={key:1},sd=Ie(()=>p("p",{class:"passStrengthText"},"Weak",-1)),od=Ie(()=>p("div",{style:{width:"100px",border:"1px solid red"}},null,-1)),rd=[sd,od],ld={key:2},ad=Ie(()=>p("p",{class:"passStrengthText"},"Medium",-1)),cd=Ie(()=>p("div",{style:{width:"150px",border:"1px solid orange"}},null,-1)),ud=[ad,cd],fd={key:3},dd=Ie(()=>p("p",{class:"passStrengthText"},"Good",-1)),pd=Ie(()=>p("div",{style:{width:"200px",border:"1px solid blue"}},null,-1)),hd=[dd,pd],md={key:4},gd=Ie(()=>p("p",{class:"passStrengthText"},"Strong",-1)),vd=Ie(()=>p("div",{style:{width:"250px",border:"1px solid green"}},null,-1)),_d=[gd,vd],yd=Ie(()=>p("h3",{class:"font-size-16 text-left"},"Create a password that:",-1)),bd={key:0,class:"checkMarkIcon"},wd={key:1,class:"crossMarkIcon"},kd={key:0,class:"checkMarkIcon"},Ed={key:1,class:"crossMarkIcon"},xd={key:0,class:"checkMarkIcon"},Cd={key:1,class:"crossMarkIcon"},Md={key:0,class:"checkMarkIcon"},Sd={key:1,class:"crossMarkIcon"},Rd={key:0,class:"checkMarkIcon"},Pd={key:1,class:"crossMarkIcon"},Td=re({__name:"index",setup(e){const t=z(""),n=z(!1),i=le(()=>t.value.length),s=le(()=>{let c=0;return i.value>=4&&c++,t.value.match(/[a-z]/)&&t.value.match(/[A-Z]/)&&c++,t.value.match(/\d+/)&&c++,t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&c++,i.value>=8&&c++,i.value>=12&&c++,c}),o=le(()=>{let c=!1;return i.value>=8&&(c=!0),c}),r=le(()=>{let c=!1;return t.value.match(/[a-z]+/)!=null&&(c=!0),c}),a=le(()=>{let c=!1;return t.value.match(/[A-Z]+/)!=null&&(c=!0),c}),l=le(()=>{let c=!1;return t.value.match(/[0-9]+/)!=null&&(c=!0),c}),u=le(()=>{let c=!1;return t.value.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)&&(c=!0),c});return(c,h)=>(O(),H("div",Yf,[p("form",null,[pe(p("input",{id:"input","onUpdate:modelValue":h[0]||(h[0]=v=>t.value=v),type:n.value?"text":"password",placeholder:"Enter the password",style:{width:"100%"}},null,8,Qf),[[Aa,t.value]]),p("div",null,[p("input",{type:"checkbox",id:"showPassword",onClick:h[1]||(h[1]=v=>n.value=!n.value)}),Xf])]),pe(p("div",null,[s.value<=1?(O(),H("div",Zf,nd)):s.value==2?(O(),H("div",id,rd)):s.value==3?(O(),H("div",ld,ud)):s.value==4?(O(),H("div",fd,hd)):(O(),H("div",md,_d)),yd,p("ul",{class:"text-left",style:et([i.value?{"padding-inline-start":"0px !important"}:{"padding-inline-start":"22px !important"}])},[p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[o.value?(O(),H("span",bd,"✓")):o.value==!1?(O(),H("span",wd,"×")):tt("",!0),be(" contains at least 8 characters ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[r.value?(O(),H("span",kd,"✓")):r.value==!1?(O(),H("span",Ed,"×")):tt("",!0),be(" contains at least one lowercase letter (a-z) ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[a.value?(O(),H("span",xd,"✓")):a.value==!1?(O(),H("span",Cd,"×")):tt("",!0),be(" contains at least one uppercase letter (A-Z) ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[l.value?(O(),H("span",Md,"✓")):l.value==!1?(O(),H("span",Sd,"×")):tt("",!0),be(" contains at least one number (0-9) ")])],4),p("li",{style:et([i.value?{"list-style-type":"none"}:""])},[p("div",null,[u.value?(O(),H("span",Rd,"✓")):u.value==!1?(O(),H("span",Pd,"×")):tt("",!0),be(" contains at least one number symbol (!,@,#,$,%,^,&,*,?,_,~,-,(,)) ")])],4)],4)],512),[[Xo,t.value!==""]])]))}}),Ad=ue(Td,[["__scopeId","data-v-50714ff9"]]),Id=e=>(Re("data-v-2e98431e"),e=e(),Pe(),e),$d={class:"app"},Od=Id(()=>p("hr",null,null,-1)),Nd={class:"text-center"},Ld={class:"text-center"},Fd=re({__name:"index",setup(e){const t=z([]),n=z(""),i=z("");function s(){t.value.length==5?i.value="Stack is full":n.value?(t.value.push(n.value),i.value=`${n.value} is pushed into the Stack`,n.value=""):i.value="Please enter value first"}function o(){t.value.length?(i.value=`${t.value.at(-1)} is popped from the Stack`,t.value.pop()):i.value="Stack is empty"}function r(){t.value.length?i.value=`Last element is ${t.value.at(-1)}`:i.value="Stack is empty"}function a(){t.value.length?i.value="Stack is not empty":i.value="Stack is empty"}function l(){t.value.length==5?i.value="Stack is full":i.value="Stack is not full"}function u(){t.value=[],i.value="Your stack is clear"}return(c,h)=>(O(),H("div",$d,[p("div",null,[pe(p("input",{"onUpdate:modelValue":h[0]||(h[0]=v=>n.value=v),placeholder:"Enter the value",style:{width:"100%"}},null,512),[[Ae,n.value]]),p("div",{class:"action-buttons"},[p("button",{onClick:s},"Push"),p("button",{onClick:o},"Pop"),p("button",{onClick:r},"Peek"),p("button",{onClick:a},"IsEmpty"),p("button",{onClick:l},"IsFull"),p("button",{onClick:u},"Clear All")])]),Od,p("h4",Nd,oe(i.value),1),p("ul",Ld,[(O(!0),H(he,null,qt(t.value,(v,w)=>(O(),H("li",{key:w},oe(v),1))),128))])]))}}),Hd=ue(Fd,[["__scopeId","data-v-2e98431e"]]),jd={class:"app"},Ud={class:"button-group"},Dd=re({__name:"index",setup(e){const t=z(""),n={uppers:"QWERTYUIOPASDFGHJKLZXCVBNM",lowers:"qwertyuiopasdfghjklzxcvbnm",numbers:"1234567890",symbols:"!@#$%^&"},i=(o=8)=>{let r="";r+=s(n.uppers),r+=s(n.lowers),r+=s(n.numbers),r+=s(n.symbols);for(let a=r.length;ao.charAt(Math.floor(Math.random()*o.length));return(o,r)=>(O(),H("div",jd,[p("form",null,[pe(p("input",{id:"input","onUpdate:modelValue":r[0]||(r[0]=a=>t.value=a),style:{width:"100%"}},null,512),[[Ae,t.value]]),p("div",Ud,[p("button",{onClick:r[1]||(r[1]=jn(a=>i(8),["prevent"]))},"Generate 08 characters password"),p("button",{onClick:r[2]||(r[2]=jn(a=>i(10),["prevent"]))},"Generate 10 characters password"),p("button",{onClick:r[3]||(r[3]=jn(a=>i(16),["prevent"]))},"Generate 16 characters password")])])]))}}),Bd=ue(Dd,[["__scopeId","data-v-1ca79b9f"]]),Vd={class:"stopwatch"},Kd={class:"timer"},zd={class:"flex-center"},qd=["disabled"],Wd=["disabled"],Gd=["disabled"],Jd=re({__name:"index",setup(e){const t=z({hour:0,min:0,sec:0}),n=z(0),i=()=>{let{hour:l=0,min:u=0,sec:c=0}={...t.value};c<59?c=c+1:(u=u+1,c=0),u===60&&(u=0,l=l+1),t.value={min:u,hour:l,sec:c}},s=()=>{n.value||(n.value=setInterval(i,1e3))},o=()=>{n.value&&(clearInterval(n.value),n.value=0)},r=()=>{clearInterval(n.value),n.value=0,t.value={hour:0,min:0,sec:0}},a=le(()=>{if(!n)return!0;const{hour:l=0,min:u=0,sec:c=0}=t.value;return!(l>0||u>0||c>0)});return(l,u)=>(O(),H("div",Vd,[p("div",Kd,[p("span",null,oe(t.value.hour.toString().padStart(2,"0")),1),be(" :  "),p("span",null,oe(t.value.min.toString().padStart(2,"0")),1),be("  :  "),p("span",null,oe(t.value.sec.toString().padStart(2,"0")),1)]),p("div",zd,[p("button",{onClick:s,disabled:!!n.value},"Start",8,qd),p("button",{onClick:o,disabled:!n.value},"Stop",8,Wd),p("button",{onClick:r,disabled:a.value},"Reset",8,Gd)])]))}}),Yd=ue(Jd,[["__scopeId","data-v-2997fb40"]]),dr=e=>(Re("data-v-90b1aadf"),e=e(),Pe(),e),Qd={class:"app"},Xd={class:"input-tags"},Zd=dr(()=>p("option",{value:"celsius"},"Celsius",-1)),ep=dr(()=>p("option",{value:"fahrenheit"},"Fahrenheit",-1)),tp=[Zd,ep],np={key:0,class:"text-center"},ip=re({__name:"index",setup(e){const t=z("celsius"),n=z(0),i=z(null);function s(){t.value==="celsius"?i.value=(n.value*9/5+32).toFixed(3):i.value=((n.value-32)*5/9).toFixed(3)}function o(){i.value!==null&&(i.value=null)}return(r,a)=>(O(),H("div",Qd,[p("div",null,[p("div",Xd,[pe(p("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),placeholder:"Enter the value",type:"number"},null,512),[[Ae,n.value,void 0,{number:!0}]]),pe(p("select",{"onUpdate:modelValue":a[1]||(a[1]=l=>t.value=l),class:"selected-value",onChange:o},tp,544),[[pn,t.value]]),p("button",{onClick:jn(s,["prevent"])},"Convert")])]),i.value!==null?(O(),H("h4",np," Converted Temperature:"+oe(i.value)+oe(t.value=="celsius"?"°C":"°F"),1)):tt("",!0)]))}}),sp=ue(ip,[["__scopeId","data-v-90b1aadf"]]);function $n(e,t){return e.every(n=>n===t)}function op(e,t,{row:n,col:i,diagonal:s,reverseDiagonal:o}){if(!t)return new Set;const r=new Set;return n!==!1&&e.forEach((a,l)=>{r.add(n*e.length+l)}),i!==!1&&e.forEach((a,l)=>{r.add(l*e.length+i)}),s&&e.map((a,l)=>a[l]).forEach((a,l)=>{r.add(l*e.length+l)}),o&&e.map((a,l)=>a[e.length-1-l]).forEach((a,l)=>{r.add(l*e.length+e.length-1-l)}),r}function rp(e,t){const n=e[t.row][t.col],i=$n(e[t.row],n),s=$n(e.map(u=>u[t.col]),n),o=t.row===t.col&&$n(e.map((u,c)=>u[c]),n),r=t.row+t.col===e.length-1&&$n(e.map((u,c)=>u[e.length-1-c]),n),a=i||s||o||r,l=op(e,a,{row:i&&t.row,col:s&&t.col,diagonal:o,reverseDiagonal:r});return{winner:a&&n,winningPositions:l}}const lp={class:"grid-container"},ap=["onClick"],cp={key:0,class:"winner"},up={key:1,class:"winner"},ut=3,fp=re({__name:"index",setup(e){let t=0;const n=ut*ut,i=["X","O"];let s=0;const o=z(Array.from(Array(ut),()=>new Array(ut).fill(null)));let r;function a(){return(t+1)%i.length}function l(c){const h=Math.floor(c/ut),v=c%ut;o.value[h][v]||r!=null&&r.winner||s===n||(o.value[h][v]=i[t],r=rp(o.value,{row:h,col:v}),!r.winner&&(s+=1,t=a()))}function u(){o.value=Array.from(Array(ut),()=>new Array(ut).fill(null)),t=0,s=0,r=null}return(c,h)=>{var v;return O(),H(he,null,[p("div",lp,[(O(!0),H(he,null,qt(o.value.flat(),(w,T)=>{var I,B;return O(),H("button",{class:it(["grid-item",{inactive:w||((I=se(r))==null?void 0:I.winner),highlight:(B=se(r))==null?void 0:B.winningPositions.has(T)}]),key:T,onClick:F=>l(T)},oe(w),11,ap)}),128))]),p("button",{onClick:h[0]||(h[0]=w=>u()),class:"reset"},"Reset"),(v=se(r))!=null&&v.winner?(O(),H("p",cp,oe(i[se(t)])+" wins!",1)):se(s)===n?(O(),H("p",up,"It's a draw!")):tt("",!0)],64)}}}),dp=ue(fp,[["__scopeId","data-v-1bdda8e8"]]),pp=[{path:"/",component:mu,children:[{path:"/counter",component:bu},{path:"/telephone-formatter",component:Cu},{path:"/guess-the-number",component:Hu},{path:"/light-dark-mode",component:Ku},{path:"/table-colorizer",component:ef},{path:"/pagination",component:cf},{path:"/accordion",component:kf},{path:"/toast-popup",component:Jf},{path:"/password-strength",component:Ad},{path:"/stack",component:Hd},{path:"/password-generator",component:Bd},{path:"/stopwatch",component:Yd},{path:"/temprature-converter",component:sp},{path:"/tic-tac-toe",component:dp}]}],hp=Uc({history:ic(),routes:pp}),pr=Fa(Vc);pr.use(hp);pr.mount("#app"); diff --git a/docs/vue/index.html b/docs/vue/index.html index 99630e572..4c4120cdb 100644 --- a/docs/vue/index.html +++ b/docs/vue/index.html @@ -15,7 +15,7 @@ name="description" content="Frontend Mini Challenges is a collection of frontend interview coding challenges" /> - +