{"version":3,"file":"class-map-PSegIIHf.js","sources":["../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/class-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((s=>t[s])).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n"],"names":["e","s","i","t","r","_a","_b"],"mappings":"iEACA;AAAA;AAAA;AAAA;AAAA,GAIQ,MAACA,EAAEC,EAAE,cAAcC,CAAC,CAAC,YAAYC,EAAE,OAAC,GAAG,MAAMA,CAAC,EAAEA,EAAE,OAAOC,EAAE,WAAqBD,EAAE,OAAZ,WAAkBA,EAAAA,EAAE,UAAFA,YAAAA,EAAW,QAAO,EAAE,MAAM,MAAM,oGAAoG,CAAC,CAAC,OAAOA,EAAE,CAAC,MAAM,IAAI,OAAO,KAAKA,CAAC,EAAE,OAAQF,GAAGE,EAAEF,CAAC,CAAG,EAAC,KAAK,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,CAACC,CAAC,EAAE,SAAC,GAAY,KAAK,KAAd,OAAiB,CAAC,KAAK,GAAG,IAAI,IAAa,EAAE,UAAX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