@m3e/chips 1.0.0-rc.1 → 1.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +1 -2
  2. package/dist/custom-elements.json +4884 -608
  3. package/dist/html-custom-data.json +10 -10
  4. package/dist/index.js +69 -30
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +87 -76
  7. package/dist/index.min.js.map +1 -1
  8. package/dist/src/AssistChipElement.d.ts +2 -1
  9. package/dist/src/AssistChipElement.d.ts.map +1 -1
  10. package/dist/src/ChipElement.d.ts +1 -4
  11. package/dist/src/ChipElement.d.ts.map +1 -1
  12. package/dist/src/ChipSetElement.d.ts +1 -2
  13. package/dist/src/ChipSetElement.d.ts.map +1 -1
  14. package/dist/src/FilterChipElement.d.ts +13 -1
  15. package/dist/src/FilterChipElement.d.ts.map +1 -1
  16. package/dist/src/FilterChipSetElement.d.ts +0 -1
  17. package/dist/src/FilterChipSetElement.d.ts.map +1 -1
  18. package/dist/src/InputChipElement.d.ts +14 -1
  19. package/dist/src/InputChipElement.d.ts.map +1 -1
  20. package/dist/src/InputChipSetElement.d.ts +1 -2
  21. package/dist/src/InputChipSetElement.d.ts.map +1 -1
  22. package/dist/src/SuggestionChipElement.d.ts +2 -1
  23. package/dist/src/SuggestionChipElement.d.ts.map +1 -1
  24. package/package.json +5 -5
  25. package/cem.config.mjs +0 -16
  26. package/demo/index.html +0 -183
  27. package/eslint.config.mjs +0 -13
  28. package/rollup.config.js +0 -32
  29. package/src/AssistChipElement.ts +0 -103
  30. package/src/ChipElement.ts +0 -336
  31. package/src/ChipSetElement.ts +0 -60
  32. package/src/ChipVariant.ts +0 -2
  33. package/src/FilterChipElement.ts +0 -254
  34. package/src/FilterChipSetElement.ts +0 -161
  35. package/src/InputChipElement.ts +0 -287
  36. package/src/InputChipSetElement.ts +0 -360
  37. package/src/SuggestionChipElement.ts +0 -104
  38. package/src/index.ts +0 -9
  39. package/tsconfig.json +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"index.min.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../node_modules/@lit/reactive-element/decorators/custom-element.js","../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../../../node_modules/@lit/reactive-element/decorators/query.js","../../../node_modules/@lit/reactive-element/decorators/base.js","../../src/ChipElement.ts","../../src/AssistChipElement.ts","../../src/ChipSetElement.ts","../../src/FilterChipElement.ts","../../src/FilterChipSetElement.ts","../../../node_modules/lit-html/lit-html.js","../../src/InputChipElement.ts","../../../node_modules/lit-html/directives/if-defined.js","../../src/InputChipSetElement.ts","../../src/SuggestionChipElement.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:\"open\"},y[d(\"elementProperties\")]=new Map,y[d(\"finalized\")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push(\"2.1.1\");export{y as ReactiveElement,s as adoptStyles,u as defaultConverter,t as getCompatibleStyle,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import { css, CSSResultGroup, html, LitElement, nothing, PropertyValues, unsafeCSS } from \"lit\";\r\nimport { customElement, property, query } from \"lit/decorators.js\";\r\n\r\nimport {\r\n DesignToken,\r\n getTextContent,\r\n hasAssignedNodes,\r\n isDisabledInteractiveMixin,\r\n isDisabledMixin,\r\n isLinkButtonMixin,\r\n M3eElevationElement,\r\n M3eFocusRingElement,\r\n M3eRippleElement,\r\n M3eStateLayerElement,\r\n renderPseudoLink,\r\n Role,\r\n} from \"@m3e/core\";\r\n\r\nimport { ChipVariant } from \"./ChipVariant\";\r\n\r\n/**\r\n * @summary\r\n * A non-interactive chip used to convey small pieces of information.\r\n *\r\n * @description\r\n * The `m3e-chip` component establishes the foundational structure for chips. It supports expressive styling,\r\n * accessible interaction, and flexible content projection, aligning with Material 3 guidelines. Appearance\r\n * variants include `elevated` and `outlined`, enabling visual differentiation and contextual emphasis.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-chip` and `m3e-chip-set` components to present non-interactive chips.\r\n * ```html\r\n * <m3e-chip-set>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"palette\"></m3e-icon>Design</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"accessibility_new\"></m3e-icon>Accessibility</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"motion_photos_on\"></m3e-icon>Motion</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"description\"></m3e-icon>Documentation</m3e-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n * @slot trailing-icon - Renders an icon after the chip's label.\r\n *\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n */\r\n@customElement(\"m3e-chip\")\r\nexport class M3eChipElement extends Role(LitElement, \"none\") {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = css`\r\n :host {\r\n display: inline-block;\r\n vertical-align: middle;\r\n outline: none;\r\n }\r\n .base {\r\n box-sizing: border-box;\r\n vertical-align: middle;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: relative;\r\n width: 100%;\r\n transition: ${unsafeCSS(\r\n `background-color ${DesignToken.motion.duration.short4} ${DesignToken.motion.easing.standard}`\r\n )};\r\n border-radius: var(--m3e-chip-container-shape, ${DesignToken.shape.corner.small});\r\n height: calc(var(--m3e-chip-container-height, 2rem) + ${DesignToken.density.calc(-2)});\r\n font-size: var(--m3e-chip-label-text-font-size, ${DesignToken.typescale.standard.label.large.fontSize});\r\n font-weight: var(--m3e-chip-label-text-font-weight, ${DesignToken.typescale.standard.label.large.fontWeight});\r\n line-height: var(--m3e-chip-label-text-line-height, ${DesignToken.typescale.standard.label.large.lineHeight});\r\n letter-spacing: var(--m3e-chip-label-text-tracking, ${DesignToken.typescale.standard.label.large.tracking});\r\n }\r\n :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) {\r\n cursor: pointer;\r\n }\r\n :host(:not(m3e-chip):not(:disabled)[disabled-interactive]) {\r\n cursor: not-allowed;\r\n }\r\n :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) .base {\r\n user-select: none;\r\n }\r\n .touch {\r\n position: absolute;\r\n height: 3rem;\r\n left: 0;\r\n right: 0;\r\n }\r\n .wrapper {\r\n width: 100%;\r\n overflow: hidden;\r\n display: inline-flex;\r\n align-items: center;\r\n column-gap: var(--m3e-chip-spacing, 0.5rem);\r\n }\r\n .label {\r\n flex: 1 1 auto;\r\n min-width: 0;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n }\r\n :host([variant=\"elevated\"]) .base {\r\n background-color: var(--m3e-elevated-chip-container-color, ${DesignToken.color.surfaceContainerLow});\r\n\r\n --m3e-elevation-level: var(--m3e-elevated-chip-elevation, ${DesignToken.elevation.level1});\r\n --m3e-elevation-hover-level: var(--m3e-elevated-chip-hover-elevation, ${DesignToken.elevation.level2});\r\n --m3e-elevation-focus-level: var(--m3e-elevated-chip-elevation, ${DesignToken.elevation.level1});\r\n --m3e-elevation-pressed-level: var(--m3e-elevated-chip-elevation, ${DesignToken.elevation.level1});\r\n }\r\n :host([variant=\"outlined\"]) .base {\r\n outline-width: var(--m3e-outlined-chip-outline-thickness, 1px);\r\n outline-style: solid;\r\n outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px));\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[variant=\"outlined\"]) .base {\r\n outline-color: var(--m3e-outlined-chip-outline-color, ${DesignToken.color.outlineVariant});\r\n }\r\n :host(:disabled[variant=\"outlined\"]) .base,\r\n :host([disabled-interactive][variant=\"outlined\"]) .base {\r\n outline-color: color-mix(\r\n in srgb,\r\n var(--m3e-outlined-chip-disabled-outline-color, ${DesignToken.color.onSurface})\r\n var(--m3e-outlined-chip-disabled-outline-opacity, 12%),\r\n transparent\r\n );\r\n }\r\n :host(.-with-icon) .wrapper {\r\n padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem);\r\n }\r\n :host(:not(.-with-icon)) .wrapper {\r\n padding-inline-start: var(--m3e-chip-padding-start, 1rem);\r\n }\r\n :host(.-with-trailing-icon) .wrapper {\r\n padding-inline-end: var(--m3e-chip-with-icon-padding-end, 0.5rem);\r\n }\r\n :host(:not(.-with-trailing-icon)) .wrapper {\r\n padding-inline-end: var(--m3e-chip-padding-end, 1rem);\r\n }\r\n ::slotted([slot=\"icon\"]),\r\n ::slotted([slot=\"trailing-icon\"]) {\r\n flex: none;\r\n width: 1em;\r\n font-size: var(--m3e-chip-icon-size, 1.125rem) !important;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base {\r\n color: var(--m3e-chip-label-text-color, ${DesignToken.color.onSurface});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: var(--m3e-chip-icon-color, ${DesignToken.color.primary});\r\n }\r\n :host(:disabled) .base,\r\n :host([disabled-interactive]) .base {\r\n color: color-mix(\r\n in srgb,\r\n var(--m3e-chip-disabled-label-text-color, ${DesignToken.color.onSurface})\r\n var(--m3e-chip-disabled-label-text-opacity, 38%),\r\n transparent\r\n );\r\n }\r\n :host(:disabled) ::slotted([slot=\"icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"icon\"]),\r\n :host(:disabled) ::slotted([slot=\"trailing-icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"trailing-icon\"]) {\r\n color: color-mix(\r\n in srgb,\r\n var(--m3e-chip-disabled-icon-color, ${DesignToken.color.onSurface}) var(--m3e-chip-disabled-icon-opacity, 38%),\r\n transparent\r\n );\r\n }\r\n :host([variant=\"elevated\"]:disabled) .base,\r\n :host([variant=\"elevated\"][disabled-interactive]) .base {\r\n background-color: color-mix(\r\n in srgb,\r\n var(--m3e-elevated-chip-disabled-container-color, ${DesignToken.color.onSurface})\r\n var(--m3e-elevated-chip-disabled-container-opacity, 12%),\r\n transparent\r\n );\r\n --m3e-elevation-level: var(--m3e-elevated-chip-disabled-elevation, ${DesignToken.elevation.level0});\r\n }\r\n @media (prefers-reduced-motion) {\r\n .base {\r\n transition: none;\r\n }\r\n }\r\n @media (forced-colors: active) {\r\n .base {\r\n transition: none;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base,\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: CanvasText;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[variant=\"outlined\"]) .base {\r\n outline-color: CanvasText;\r\n }\r\n :host(:disabled) .base,\r\n :host([disabled-interactive]) .base,\r\n :host(:disabled) ::slotted([slot=\"icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"icon\"]),\r\n :host(:disabled) ::slotted([slot=\"trailing-icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"trailing-icon\"]) {\r\n color: GrayText;\r\n }\r\n :host(:disabled[variant=\"outlined\"]) .base,\r\n :host([disabled-interactive][variant=\"outlined\"]) .base {\r\n outline-color: GrayText;\r\n }\r\n }\r\n `;\r\n\r\n /** @private */ @query(\".elevation\") private readonly _elevation?: M3eElevationElement;\r\n /** @private */ @query(\".focus-ring\") private readonly _focusRing?: M3eFocusRingElement;\r\n /** @private */ @query(\".state-layer\") private readonly _stateLayer?: M3eStateLayerElement;\r\n /** @private */ @query(\".ripple\") private readonly _ripple?: M3eRippleElement;\r\n\r\n /** @private */ #value?: string;\r\n /** @private */ #textContent = \"\";\r\n\r\n /**\r\n * The appearance variant of the chip.\r\n * @default \"outlined\"\r\n */\r\n @property({ reflect: true }) variant: ChipVariant = \"outlined\";\r\n\r\n /** A string representing the value of the chip. */\r\n @property() get value() {\r\n return this.#value ?? this.#textContent;\r\n }\r\n set value(value: string) {\r\n this.#value = value;\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override firstUpdated(_changedProperties: PropertyValues): void {\r\n super.firstUpdated(_changedProperties);\r\n\r\n if (this.role === \"listitem\") {\r\n this.removeAttribute(\"tabindex\");\r\n }\r\n\r\n [this._elevation, this._focusRing, this._stateLayer, this._ripple].forEach((x) => {\r\n if (!x?.htmlFor) {\r\n x?.attach(this);\r\n }\r\n });\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n const disabled = !isDisabledMixin(this) || this.disabled;\r\n const disabledInteractive = isDisabledInteractiveMixin(this) && this.disabledInteractive;\r\n\r\n return html`<div class=\"base\">\r\n <m3e-elevation class=\"elevation\" ?disabled=\"${disabled || disabledInteractive}\"></m3e-elevation>\r\n <m3e-state-layer class=\"state-layer\" ?disabled=\"${disabled || disabledInteractive}\"></m3e-state-layer>\r\n <m3e-focus-ring class=\"focus-ring\" ?disabled=\"${disabled}\"></m3e-focus-ring>\r\n <m3e-ripple class=\"ripple\" ?disabled=\"${disabled || disabledInteractive}\"></m3e-ripple>\r\n <div class=\"touch\" aria-hidden=\"true\"></div>\r\n ${isLinkButtonMixin(this) ? this[renderPseudoLink]() : nothing}\r\n <div class=\"wrapper\">${this.#renderContent()}</div>\r\n </div>`;\r\n }\r\n\r\n /** @private */\r\n #renderContent(): unknown {\r\n return html`${this._renderIcon()}\r\n <div class=\"label\">${this._renderSlot()}</div>\r\n ${this._renderTrailingIcon()}`;\r\n }\r\n\r\n /** @internal */\r\n protected _renderIcon(): unknown {\r\n return html`<slot name=\"icon\" aria-hidden=\"true\" @slotchange=\"${this.#handleIconSlotChange}\"></slot>`;\r\n }\r\n\r\n /** @internal */\r\n protected _renderTrailingIcon(): unknown {\r\n return html`<slot\r\n name=\"trailing-icon\"\r\n aria-hidden=\"true\"\r\n @slotchange=\"${this.#handleTrailingIconSlotChange}\"\r\n ></slot>`;\r\n }\r\n\r\n /** @internal */\r\n protected _renderSlot(): unknown {\r\n return html`<slot @slotchange=\"${this.#handleSlotChange}\"></slot>`;\r\n }\r\n\r\n /** @private */\r\n #handleIconSlotChange(e: Event): void {\r\n this.classList.toggle(\"-with-icon\", hasAssignedNodes(<HTMLSlotElement>e.target));\r\n }\r\n\r\n /** @private */\r\n #handleTrailingIconSlotChange(e: Event): void {\r\n this.classList.toggle(\"-with-trailing-icon\", hasAssignedNodes(<HTMLSlotElement>e.target));\r\n }\r\n\r\n /** @private */\r\n #handleSlotChange(e: Event): void {\r\n this.#textContent = getTextContent(<HTMLSlotElement>e.target);\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-chip\": M3eChipElement;\r\n }\r\n}\r\n","import { nothing } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n Disabled,\r\n DisabledInteractive,\r\n Focusable,\r\n FormSubmitter,\r\n KeyboardClick,\r\n LinkButton,\r\n Role,\r\n} from \"@m3e/core\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * @summary\r\n * A chip users interact with to perform a smart or automated action that can span multiple applications.\r\n *\r\n * @description\r\n * The `m3e-assist-chip` component presents a Material 3 assist chip, providing users with quick access to\r\n * contextually relevant actions. It is designed for use cases like suggested actions, quick filters, or\r\n * secondary operations, and supports accessibility, keyboard interaction, and expressive state styling\r\n * in line with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual\r\n * differentiation and contextual emphasis.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-assist-chip`. In this example, multiple chips are nested inside\r\n * a `m3e-chip-set` container to create a cohesive set of chips. The container is given the ARIA `role=\"group\"` to convey\r\n * to assistive technologies that the chips are part of a related set of element.\r\n * ```html\r\n * <m3e-chip-set role=\"group\" aria-label=\"Quick actions\">\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"edit\"></m3e-icon>Edit</m3e-assist-chip>\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"delete\"></m3e-icon>Delete</m3e-assist-chip>\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"content_copy\"></m3e-icon>Copy</m3e-assist-chip>\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"share\"></m3e-icon>Share</m3e-assist-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-assist-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n *\r\n * @attr disabled - A value indicating whether the element is disabled.\r\n * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.\r\n * @attr download - A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.\r\n * @attr href - The URL to which the link button points.\r\n * @attr name - The name of the element, submitted as a pair with the element's `value` as part of form data, when the element is used to submit a form.\r\n * @attr rel - The relationship between the `target` of the link button and the document.\r\n * @attr target - The target of the link button.\r\n * @attr type - The type of the element.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n */\r\n@customElement(\"m3e-assist-chip\")\r\nexport class M3eAssistChipElement extends FormSubmitter(\r\n AttachInternals(\r\n LinkButton(KeyboardClick(Focusable(DisabledInteractive(Disabled(Role(M3eChipElement, \"button\")))))),\r\n true\r\n )\r\n) {\r\n /** @internal @inheritdoc */\r\n protected override _renderTrailingIcon(): unknown {\r\n return nothing;\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-assist-chip\": M3eAssistChipElement;\r\n }\r\n}\r\n","import { css, CSSResultGroup, html, LitElement } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport { Role, Vertical } from \"@m3e/core\";\r\n\r\n/**\r\n * @summary\r\n * A container used to organize chips into a cohesive unit.\r\n *\r\n * @description\r\n * The `m3e-chip-set` component provides a flexible container for grouping chips, supporting both\r\n * horizontal and vertical layouts. It manages chip arrangement, spacing, and accessibility, and\r\n * serves as the foundation for chip set variants such as input and filter chip sets.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-chip` and `m3e-chip-set` components to present non-interactive chips.\r\n * ```html\r\n * <m3e-chip-set>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"palette\"></m3e-icon>Design</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"accessibility_new\"></m3e-icon>Accessibility</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"motion_photos_on\"></m3e-icon>Motion</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"description\"></m3e-icon>Documentation</m3e-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-chip-set\r\n *\r\n * @slot - Renders the chips of the set.\r\n *\r\n * @attr vertical - Whether the element is oriented vertically.\r\n *\r\n * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.\r\n */\r\n@customElement(\"m3e-chip-set\")\r\nexport class M3eChipSetElement extends Vertical(Role(LitElement, \"none\")) {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = css`\r\n :host {\r\n display: inline-flex;\r\n flex-wrap: wrap;\r\n vertical-align: middle;\r\n gap: var(--m3e-chip-set-spacing, 0.5rem);\r\n outline: none;\r\n }\r\n :host([vertical]) {\r\n flex-direction: column;\r\n }\r\n `;\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<slot></slot>`;\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-chip-set\": M3eChipSetElement;\r\n }\r\n}\r\n","import { css, CSSResultGroup, html, PropertyValues } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n DesignToken,\r\n Disabled,\r\n DisabledInteractive,\r\n Focusable,\r\n KeyboardClick,\r\n Role,\r\n Selected,\r\n} from \"@m3e/core\";\r\n\r\nimport { selectionManager } from \"@m3e/core/a11y\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * @summary\r\n * A chip users interact with to select/deselect options.\r\n *\r\n * @description\r\n * The `m3e-filter-chip` component presents a chip that users can select or deselect to filter\r\n * content or data sets. It supports single and multi-selection, keyboard interaction, accessibility,\r\n * and expressive state styling, providing a modern and interactive filtering experience in line\r\n * with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual\r\n * differentiation and contextual emphasis.\r\n *\r\n * @tag m3e-filter-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n * @slot trailing-icon - Renders an icon after the chip's label.\r\n *\r\n * @attr disabled - A value indicating whether the element is disabled.\r\n * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.\r\n * @attr selected - A value indicating whether the element is selected.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @fires input - Emitted when the selected state changes.\r\n * @fires change - Emitted when the selected state changes.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n * @cssprop --m3e-chip-selected-outline-thickness - Outline thickness for selected state.\r\n * @cssprop --m3e-chip-selected-label-text-color - Text color in selected state.\r\n * @cssprop --m3e-chip-selected-container-color - Background color in selected state.\r\n * @cssprop --m3e-chip-selected-container-hover-color - Hover state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-container-focus-color - Focus state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-hover-elevation - Elevation on hover in selected state.\r\n * @cssprop --m3e-chip-selected-ripple-color - Ripple color in selected state.\r\n * @cssprop --m3e-chip-selected-state-layer-focus-color - Focus state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-state-layer-hover-color - Hover state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-leading-icon-color - Leading icon color in selected state.\r\n * @cssprop --m3e-chip-selected-trailing-icon-color - Trailing icon color in selected state.\r\n * @cssprop --m3e-chip-unselected-label-text-color - Text color in unselected state.\r\n * @cssprop --m3e-chip-unselected-ripple-color - Ripple color in unselected state.\r\n * @cssprop --m3e-chip-unselected-state-layer-focus-color - Focus state layer color in unselected state.\r\n * @cssprop --m3e-chip-unselected-state-layer-hover-color - Hover state layer color in unselected state.\r\n * @cssprop --m3e-chip-unselected-leading-icon-color - Leading icon color in unselected state.\r\n * @cssprop --m3e-chip-unselected-trailing-icon-color - Trailing icon color in unselected state.\r\n */\r\n@customElement(\"m3e-filter-chip\")\r\nexport class M3eFilterChipElement extends Selected(\r\n KeyboardClick(Focusable(DisabledInteractive(Disabled(AttachInternals(Role(M3eChipElement, \"option\"), true)))))\r\n) {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = [\r\n M3eChipElement.styles,\r\n css`\r\n :host([selected]:not(.-hide-selection)) .wrapper {\r\n padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem);\r\n }\r\n .icon {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n .check {\r\n width: 1em;\r\n font-size: var(--m3e-chip-icon-size, 1.125rem);\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])) .check {\r\n color: var(--m3e-chip-selected-leading-icon-color, ${DesignToken.color.onSecondaryContainer});\r\n }\r\n :host(:not([selected])) .check,\r\n :host(.-hide-selection) .check,\r\n :host(.-hide-selection:not(.-with-icon)) .icon {\r\n display: none;\r\n }\r\n :host(:not(.-with-icon)) .icon {\r\n margin-inline-start: calc(0px - var(--m3e-chip-with-icon-padding-start, 0.5rem));\r\n transition: margin-inline-start ${DesignToken.motion.spring.fastEffects};\r\n }\r\n :host([selected]) .icon {\r\n margin-inline-start: 0;\r\n }\r\n :host([selected]:not(.-hide-selection)) ::slotted([slot=\"icon\"]) {\r\n display: none !important;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base {\r\n color: var(--m3e-chip-unselected-label-text-color, ${DesignToken.color.onSurfaceVariant});\r\n --m3e-ripple-color: var(--m3e-chip-unselected-ripple-color, ${DesignToken.color.onSurfaceVariant});\r\n --m3e-state-layer-focus-color: var(\r\n --m3e-chip-unselected-state-layer-focus-color,\r\n ${DesignToken.color.onSurfaceVariant}\r\n );\r\n --m3e-state-layer-hover-color: var(\r\n --m3e-chip-unselected-state-layer-hover-color,\r\n ${DesignToken.color.onSurfaceVariant}\r\n );\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]) {\r\n color: var(--m3e-chip-unselected-leading-icon-color, ${DesignToken.color.primary});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: var(--m3e-chip-unselected-trailing-icon-color, ${DesignToken.color.onSurfaceVariant});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) .base {\r\n outline-offset: unset;\r\n outline-width: var(--m3e-chip-selected-outline-thickness, 0);\r\n color: var(--m3e-chip-selected-label-text-color, ${DesignToken.color.onSecondaryContainer});\r\n background-color: var(--m3e-chip-selected-container-color, ${DesignToken.color.secondaryContainer});\r\n --m3e-state-layer-hover-color: var(\r\n --m3e-chip-selected-container-hover-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n --m3e-state-layer-focus-color: var(\r\n --m3e-chip-selected-container-focus-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n --m3e-elevation-hover-level: var(--m3e-chip-selected-hover-elevation, ${DesignToken.elevation.level1});\r\n --m3e-ripple-color: var(--m3e-chip-selected-ripple-color, ${DesignToken.color.onSecondaryContainer});\r\n --m3e-state-layer-focus-color: var(\r\n --m3e-chip-selected-state-layer-focus-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n --m3e-state-layer-hover-color: var(\r\n --m3e-chip-selected-state-layer-hover-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot=\"icon\"]) {\r\n color: var(--m3e-chip-selected-leading-icon-color, ${DesignToken.color.onSecondaryContainer});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: var(--m3e-chip-selected-trailing-icon-color, ${DesignToken.color.onSecondaryContainer});\r\n }\r\n @media (prefers-reduced-motion) {\r\n .base,\r\n :host(:not(.-with-icon)) .icon {\r\n transition: none;\r\n }\r\n }\r\n @media (forced-colors: active) {\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base,\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: CanvasText;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) .base,\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot=\"trailing-icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive])) .check {\r\n color: ButtonText;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) .base {\r\n outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px));\r\n outline-width: var(--m3e-outlined-chip-outline-thickness, 1px);\r\n outline-color: ButtonText;\r\n }\r\n }\r\n `,\r\n ];\r\n\r\n /** @private */ readonly #clickHandler = (e: Event) => this.#handleClick(e);\r\n\r\n /** @inheritdoc */\r\n override connectedCallback(): void {\r\n super.connectedCallback();\r\n this.addEventListener(\"click\", this.#clickHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n override disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n this.removeEventListener(\"click\", this.#clickHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n\r\n if (changedProperties.has(\"selected\")) {\r\n this.closest(\"m3e-filter-chip-set\")?.[selectionManager].notifySelectionChange(this);\r\n }\r\n }\r\n\r\n /** @inheritdoc @private */\r\n protected override _renderIcon(): unknown {\r\n return html`<div class=\"icon\" aria-hidden=\"true\">\r\n <svg class=\"check\" viewBox=\"0 -960 960 960\" aria-hidden=\"true\">\r\n <path fill=\"currentColor\" d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" />\r\n </svg>\r\n ${super._renderIcon()}\r\n </div>`;\r\n }\r\n\r\n /** @private */\r\n #handleClick(e: Event): void {\r\n if (e.defaultPrevented) return;\r\n\r\n const selected = this.selected;\r\n this.selected = !this.selected;\r\n if (this.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true, cancelable: true }))) {\r\n this.closest(\"m3e-filter-chip-set\")?.[selectionManager].notifySelectionChange(this);\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n } else {\r\n this.selected = selected;\r\n }\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-filter-chip\": M3eFilterChipElement;\r\n }\r\n}\r\n","import { html, PropertyValues } from \"lit\";\r\nimport { customElement, property } from \"lit/decorators.js\";\r\n\r\nimport { AttachInternals, Labelled, Dirty, Disabled, FormAssociated, formValue, Touched, Role } from \"@m3e/core\";\r\nimport { SelectionManager, selectionManager } from \"@m3e/core/a11y\";\r\n\r\nimport { M3eChipSetElement } from \"./ChipSetElement\";\r\nimport { M3eFilterChipElement } from \"./FilterChipElement\";\r\n\r\n/**\r\n * @summary\r\n * A container that organizes filter chips into a cohesive group, enabling selection and\r\n * deselection of values used to refine content or trigger contextual behavior.\r\n *\r\n * @description\r\n * The `m3e-filter-chip-set` component presents a group of filter chips, enabling users to select\r\n * one or more options to filter content or data sets. It supports single and multi-selection,\r\n * keyboard navigation, accessibility, and seamless form association, providing expressive and\r\n * interactive filtering experiences in line with Material 3 guidelines.\r\n *\r\n * @example\r\n * The following example illustrates a single-select `m3e-filter-chip-set` containing multiple `m3e-filter-chip` components that\r\n * allow a user to choose an option. You can use the `multi` attribute to enable multiselect.\r\n * ```html\r\n * <m3e-filter-chip-set aria-label=\"Filter by topic\">\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"palette\"></m3e-icon>Design</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"accessibility_new\"></m3e-icon>Accessibility</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"motion_photos_on\"></m3e-icon>Motion</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"description\"></m3e-icon>Documentation</m3e-filter-chip>\r\n * </m3e-filter-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-filter-chip-set\r\n *\r\n * @slot - Renders the chips of the set.\r\n *\r\n * @attr disabled - Whether the element is disabled.\r\n * @attr hide-selection-indicator - Whether to hide the selection indicator.\r\n * @attr multi - Whether multiple chips can be selected.\r\n * @attr name - The name that identifies the element when submitting the associated form.\r\n * @attr vertical - Whether the element is oriented vertically.\r\n *\r\n * @fires input - Emitted when the selected state of a chip changes.\r\n * @fires change - Emitted when the selected state of a chip changes.\r\n *\r\n * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.\r\n */\r\n@customElement(\"m3e-filter-chip-set\")\r\nexport class M3eFilterChipSetElement extends Labelled(\r\n Dirty(Touched(FormAssociated(Disabled(AttachInternals(Role(M3eChipSetElement, \"listbox\"))))))\r\n) {\r\n /** @internal */\r\n readonly [selectionManager] = new SelectionManager<M3eFilterChipElement>()\r\n .onActiveItemChange(() => this[selectionManager].activeItem?.focus())\r\n .withWrap();\r\n\r\n /**\r\n * Whether multiple chips can be selected.\r\n * @default false\r\n */\r\n @property({ type: Boolean }) multi = false;\r\n\r\n /**\r\n * Whether to hide the selection indicator.\r\n * @default false\r\n */\r\n @property({ attribute: \"hide-selection-indicator\", type: Boolean }) hideSelectionIndicator = false;\r\n\r\n /** The chips of the set. */\r\n get chips(): readonly M3eFilterChipElement[] {\r\n return this[selectionManager]?.items ?? [];\r\n }\r\n\r\n /** The selected chip(s) of the set. */\r\n get selected(): readonly M3eFilterChipElement[] {\r\n return this[selectionManager]?.selectedItems ?? [];\r\n }\r\n\r\n /** The selected value(s) of the set. */\r\n get value(): string | readonly string[] | null {\r\n const values = this.selected.map((x) => x.value);\r\n switch (values.length) {\r\n case 0:\r\n return null;\r\n case 1:\r\n return values[0];\r\n default:\r\n return values;\r\n }\r\n }\r\n\r\n /** @inheritdoc @internal */\r\n override get [formValue]() {\r\n const values = this.value;\r\n if (Array.isArray(values)) {\r\n const data = new FormData();\r\n for (const value of values) {\r\n data.append(this.name, value);\r\n }\r\n return data;\r\n }\r\n return <string | null>values;\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n\r\n if (changedProperties.has(\"vertical\")) {\r\n this[selectionManager].vertical = this.vertical;\r\n }\r\n\r\n if (changedProperties.has(\"disabled\") && (changedProperties.get(\"disabled\") !== undefined || this.disabled)) {\r\n this[selectionManager].disabled = this.disabled;\r\n }\r\n\r\n if (changedProperties.has(\"multi\")) {\r\n this.ariaMultiSelectable = `${this.multi}`;\r\n this[selectionManager].multi = this.multi;\r\n this[selectionManager].disableRovingTabIndex(this.multi);\r\n }\r\n\r\n if (changedProperties.has(\"hideSelectionIndicator\")) {\r\n this.chips.forEach((x) => x.classList.toggle(\"-hide-selection\", this.hideSelectionIndicator));\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<slot\r\n @slotchange=\"${this.#handleSlotChange}\"\r\n @keydown=\"${this.#handleKeyDown}\"\r\n @change=\"${this.#handleChange}\"\r\n ></slot>`;\r\n }\r\n\r\n /** @internal */\r\n #handleSlotChange() {\r\n const { added } = this[selectionManager].setItems([...this.querySelectorAll(\"m3e-filter-chip\")]);\r\n added.forEach((x) => x.classList.toggle(\"-hide-selection\", this.hideSelectionIndicator));\r\n }\r\n\r\n /** @internal */\r\n #handleKeyDown(e: KeyboardEvent): void {\r\n if (!this.multi) {\r\n this[selectionManager].onKeyDown(e);\r\n }\r\n }\r\n\r\n /** @internal */\r\n #handleChange(e: Event): void {\r\n e.stopPropagation();\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-filter-chip-set\": M3eFilterChipSetElement;\r\n }\r\n}\r\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=\"$lit$\",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o=\"?\"+h,n=`<${o}>`,r=document,l=()=>r.createComment(\"\"),c=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,a=Array.isArray,u=t=>a(t)||\"function\"==typeof t?.[Symbol.iterator],d=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\\\s\"'>=/]+)(${d}*=${d}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),p=/'/g,g=/\"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),b=y(2),w=y(3),T=Symbol.for(\"lit-noChange\"),E=Symbol.for(\"lit-nothing\"),A=new WeakMap,C=r.createTreeWalker(r,129);function P(t,i){if(!a(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?\"<svg>\":3===i?\"<math>\":\"\",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?\"!--\"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp(\"</\"+u[2],\"g\")),c=m):void 0!==u[3]&&(c=m):c===m?\">\"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'\"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x)}return[P(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":3===i?\"</math>\":\"\")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:\".\"===e[1]?H:\"?\"===e[1]?I:\"@\"===e[1]?L:k}),r.removeAttribute(t)}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l())}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else{let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1}c++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n]}o!==l?.index&&(h=C.nextNode(),o++)}return C.currentNode=r,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||\"\"===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class H extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}class I extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const Z={M:e,P:h,A:o,C:1,L:V,R:M,D:u,V:S,I:R,H:k,N:I,U:L,B:H,F:z},j=t.litHtmlPolyfillSupport;j?.(N,R),(t.litHtmlVersions??=[]).push(\"3.3.1\");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l(),t),t,void 0,s??{})}return h._$AI(t),h};export{Z as _$LH,x as html,w as mathml,T as noChange,E as nothing,B as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */\r\nimport { css, CSSResultGroup, html, nothing, PropertyValues } from \"lit\";\r\nimport { customElement, property, query } from \"lit/decorators.js\";\r\nimport { ifDefined } from \"lit/directives/if-defined.js\";\r\n\r\nimport {\r\n DisabledInteractive,\r\n Disabled,\r\n EventAttribute,\r\n Role,\r\n AttachInternals,\r\n DesignToken,\r\n hasAssignedNodes,\r\n} from \"@m3e/core\";\r\n\r\nimport { M3eIconButtonElement } from \"@m3e/icon-button\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * @summary\r\n * A chip which represents a discrete piece of information entered by a user.\r\n *\r\n * @description\r\n * The `m3e-input-chip` component represents an input chip, allowing users to enter, display,\r\n * and manage discrete values such as tags or keywords. It supports expressive styling, accessibility,\r\n * keyboard interaction, and appearance variants including `elevated` and `outlined`.\r\n *\r\n * @tag m3e-input-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot avatar - Renders an avatar before the chip's label.\r\n * @slot icon - Renders an icon before the chip's label.\r\n * @slot remove-icon - Renders the icon for the button used to remove the chip.\r\n *\r\n * @attr disabled - Whether the element is disabled.\r\n * @attr disabled-interactive - Whether the element is disabled and interactive.\r\n * @attr removable - Whether the chip is removable.\r\n * @attr remove-label - The accessible label given to the button used to remove the chip.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @fires remove - Emitted when the remove button is clicked or DELETE or BACKSPACE key is pressed.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n * @cssprop --m3e-chip-avatar-size - Font size of the avatar slot content.\r\n * @cssprop --m3e-chip-disabled-avatar-opacity - Opacity applied to the avatar when disabled.\r\n * @cssprop --m3e-chip-with-avatar-padding-start - Start padding when an avatar is present.\r\n */\r\n@customElement(\"m3e-input-chip\")\r\nexport class M3eInputChipElement extends EventAttribute(\r\n DisabledInteractive(Disabled(AttachInternals(Role(M3eChipElement, \"row\"), true))),\r\n \"remove\"\r\n) {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = [\r\n M3eChipElement.styles,\r\n css`\r\n .cell {\r\n display: inline-flex;\r\n align-items: center;\r\n outline: none;\r\n column-gap: var(--m3e-chip-spacing, 0.5rem);\r\n min-width: 0;\r\n }\r\n .remove-button {\r\n --m3e-icon-button-extra-small-container-height: 1.5rem;\r\n --m3e-icon-button-extra-small-icon-size: var(--m3e-chip-icon-size, 1.125rem);\r\n width: 1.5rem;\r\n }\r\n .remove-icon {\r\n flex: none;\r\n width: var(--m3e-chip-icon-size, 1.125rem);\r\n height: var(--m3e-chip-icon-size, 1.125rem);\r\n }\r\n .touch {\r\n top: calc(\r\n 0px - calc(calc(3rem - calc(var(--m3e-chip-container-height, 2rem) + ${DesignToken.density.calc(-2)})) / 2)\r\n );\r\n }\r\n .wrapper {\r\n height: 100%;\r\n overflow: visible;\r\n min-width: 0;\r\n }\r\n ::slotted([slot=\"avatar\"]) {\r\n flex: none;\r\n font-size: var(--m3e-chip-avatar-size, 1.5rem);\r\n }\r\n :host(:disabled) ::slotted([slot=\"avatar\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"avatar\"]) {\r\n opacity: var(--m3e-chip-disabled-avatar-opacity, 38%);\r\n color: var(--m3e-chip-disabled-icon-color, ${DesignToken.color.onSurface});\r\n }\r\n :host(.-with-avatar) ::slotted([slot=\"icon\"]) {\r\n display: none;\r\n }\r\n :host(.-with-avatar) .wrapper {\r\n padding-inline-start: var(--m3e-chip-with-avatar-padding-start, 0.25rem);\r\n }\r\n @media (forced-colors: active) {\r\n :host(:disabled) ::slotted([slot=\"avatar\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"avatar\"]) {\r\n color: CanvasText;\r\n }\r\n }\r\n `,\r\n ];\r\n\r\n /** A reference to the grid cell of the chip. */\r\n @query(\".cell\") readonly cell!: HTMLSpanElement;\r\n\r\n /** A reference to the button used to remove the chip. */\r\n @query(\".remove-button\") readonly removeButton!: M3eIconButtonElement | null;\r\n\r\n /**\r\n * Whether the chip is removable.\r\n * @default false\r\n */\r\n @property({ type: Boolean }) removable = false;\r\n\r\n /**\r\n * The accessible label given to the button used to remove the chip.\r\n * @default \"Remove\"\r\n */\r\n @property({ attribute: \"remove-label\" }) removeLabel = \"Remove\";\r\n\r\n /** @inheritdoc */\r\n override connectedCallback(): void {\r\n super.connectedCallback();\r\n this.removeAttribute(\"tabindex\");\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n this.removeAttribute(\"tabindex\");\r\n\r\n if (changedProperties.has(\"removable\")) {\r\n this.classList.toggle(\"-with-trailing-icon\", this.removable);\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<div class=\"base\">\r\n <m3e-elevation\r\n class=\"elevation\"\r\n for=\"cell\"\r\n ?disabled=\"${this.disabled || this.disabledInteractive}\"\r\n ></m3e-elevation>\r\n <m3e-state-layer\r\n class=\"state-layer\"\r\n for=\"cell\"\r\n ?disabled=\"${this.disabled || this.disabledInteractive}\"\r\n ></m3e-state-layer>\r\n <m3e-focus-ring class=\"focus-ring\" for=\"cell\" ?disabled=\"${this.disabled}\"></m3e-focus-ring>\r\n <m3e-ripple class=\"ripple\" for=\"cell\" ?disabled=\"${this.disabled || this.disabledInteractive}\"></m3e-ripple>\r\n <div class=\"wrapper\">\r\n <div\r\n id=\"cell\"\r\n class=\"cell\"\r\n role=\"gridcell\"\r\n tabindex=\"${ifDefined(this.disabled ? undefined : \"-1\")}\"\r\n @keydown=\"${this.#handleKeyDown}\"\r\n >\r\n <slot name=\"avatar\" @slotchange=\"${this.#handleAvatarSlotChange}\"></slot>\r\n ${this._renderIcon()}\r\n <div class=\"label\">${this._renderSlot()}</div>\r\n <div class=\"touch\" aria-hidden=\"true\"></div>\r\n </div>\r\n ${this._renderTrailingIcon()}\r\n </div>\r\n </div>`;\r\n }\r\n\r\n /** @internal @inheritdoc */\r\n protected override _renderTrailingIcon(): unknown {\r\n return this.removable\r\n ? html`<span role=\"gridcell\" class=\"remove\">\r\n <m3e-icon-button\r\n class=\"remove-button\"\r\n aria-label=\"${this.removeLabel}\"\r\n size=\"extra-small\"\r\n tabindex=\"-1\"\r\n ?disabled=\"${this.disabled}\"\r\n ?disabled-interactive=\"${this.disabledInteractive}\"\r\n @click=\"${this.#handleRemoveButtonClick}\"\r\n >\r\n <slot name=\"remove-icon\">\r\n <svg class=\"remove-icon\" viewBox=\"0 -960 960 960\" fill=\"currentColor\">\r\n <path\r\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\"\r\n />\r\n </svg>\r\n </slot>\r\n </m3e-icon-button>\r\n </span>`\r\n : nothing;\r\n }\r\n\r\n /** @private */\r\n #handleAvatarSlotChange(e: Event): void {\r\n this.classList.toggle(\"-with-avatar\", hasAssignedNodes(<HTMLSlotElement>e.target));\r\n }\r\n\r\n /** @private */\r\n #handleRemoveButtonClick(e: Event): void {\r\n e.stopPropagation();\r\n this.dispatchEvent(new Event(\"remove\"));\r\n }\r\n\r\n /** @private */\r\n #handleKeyDown(e: KeyboardEvent): void {\r\n if (this.removable) {\r\n switch (e.key) {\r\n case \"Backspace\":\r\n case \"Delete\":\r\n this.dispatchEvent(new Event(\"remove\"));\r\n break;\r\n }\r\n }\r\n }\r\n}\r\n\r\ninterface M3eInputChipElementEventMap extends HTMLElementEventMap {\r\n remove: Event;\r\n}\r\n\r\nexport interface M3eInputChipElement {\r\n addEventListener<K extends keyof M3eInputChipElementEventMap>(\r\n type: K,\r\n listener: (this: M3eInputChipElement, ev: M3eInputChipElementEventMap[K]) => void,\r\n options?: boolean | AddEventListenerOptions\r\n ): void;\r\n\r\n addEventListener(\r\n type: string,\r\n listener: EventListenerOrEventListenerObject,\r\n options?: boolean | AddEventListenerOptions\r\n ): void;\r\n\r\n removeEventListener<K extends keyof M3eInputChipElementEventMap>(\r\n type: K,\r\n listener: (this: M3eInputChipElement, ev: M3eInputChipElementEventMap[K]) => void,\r\n options?: boolean | EventListenerOptions\r\n ): void;\r\n\r\n removeEventListener(\r\n type: string,\r\n listener: EventListenerOrEventListenerObject,\r\n options?: boolean | EventListenerOptions\r\n ): void;\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-input-chip\": M3eInputChipElement;\r\n }\r\n}\r\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import { css, CSSResultGroup, html, PropertyValues } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n ConstraintValidation,\r\n DesignToken,\r\n Dirty,\r\n Disabled,\r\n FormAssociated,\r\n formValue,\r\n Required,\r\n RequiredConstraintValidation,\r\n Role,\r\n Touched,\r\n} from \"@m3e/core\";\r\n\r\nimport { ListKeyManager, ListManager } from \"@m3e/core/a11y\";\r\nimport { FormFieldControl } from \"@m3e/form-field\";\r\n\r\nimport { M3eChipSetElement } from \"./ChipSetElement\";\r\nimport { M3eInputChipElement } from \"./InputChipElement\";\r\n\r\n/**\r\n * @summary\r\n * A container that transforms user input into a cohesive set of interactive chips, supporting entry, editing, and removal of discrete values.\r\n *\r\n * @description\r\n * The `m3e-input-chip-set` component enables users to input, display, and manage a collection of discrete\r\n * values as input chips. Designed for expressive, accessible forms, it supports keyboard navigation, validation,\r\n * and seamless integration with form controls. This component is ideal for capturing user-generated tags,\r\n * keywords, or selections in a visually consistent and interactive manner.\r\n *\r\n * @example\r\n * The following example illustrates the use of the `m3e-input-chip-set` inside a `m3e-form-field`.\r\n * In this example, the `input` slot specifies the `input` element used to add input chips and the\r\n * field label's `for` attribute targets the `input` element to provide an accessible label.\r\n * ```html\r\n * <m3e-form-field>\r\n * <label slot=\"label\" for=\"keywords\">Keywords</label>\r\n * <m3e-input-chip-set aria-label=\"Enter keywords\">\r\n * <input id=\"keywords\" slot=\"input\" placeholder=\"New keyword...\" />\r\n * </m3e-input-chip-set>\r\n * </m3e-form-field>\r\n * ```\r\n *\r\n * @tag m3e-input-chip-set\r\n *\r\n * @slot - Renders the chips of the set.\r\n * @slot input - Renders the input element used to add new chips to the set.\r\n *\r\n * @attr disabled - Whether the element is disabled.\r\n * @attr name - The name that identifies the element when submitting the associated form.\r\n * @attr required - Whether a value is required for the element.\r\n * @attr vertical - Whether the element is oriented vertically.\r\n *\r\n * @fires change - Emitted when a chip is added to, or removed from, the set.\r\n *\r\n * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.\r\n */\r\n@customElement(\"m3e-input-chip-set\")\r\nexport class M3eInputChipSetElement\r\n extends RequiredConstraintValidation(\r\n Required(\r\n ConstraintValidation(Dirty(Touched(FormAssociated(Disabled(AttachInternals(Role(M3eChipSetElement, \"grid\")))))))\r\n )\r\n )\r\n implements FormFieldControl\r\n{\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = [\r\n M3eChipSetElement.styles,\r\n css`\r\n ::slotted([slot=\"input\"]) {\r\n outline: unset;\r\n border: unset;\r\n background-color: transparent;\r\n box-shadow: none;\r\n font-family: inherit;\r\n font-size: inherit;\r\n line-height: initial;\r\n letter-spacing: inherit;\r\n color: var(--_form-field-input-color, inherit);\r\n flex: 1 1 auto;\r\n min-width: 0;\r\n padding: unset;\r\n }\r\n ::slotted(m3e-input-chip) {\r\n min-width: 0;\r\n }\r\n ::slotted([slot=\"input\"])::placeholder {\r\n user-select: none;\r\n color: currentColor;\r\n transition: opacity ${DesignToken.motion.duration.extraLong1};\r\n }\r\n :host(:not(:focus-within)) ::slotted([slot=\"input\"])::placeholder {\r\n opacity: 0;\r\n transition: 0s;\r\n }\r\n :host(:hover) ::slotted([slot=\"input\"])::placeholder {\r\n transition: 0s;\r\n }\r\n span[role=\"row\"],\r\n span[role=\"gridcell\"] {\r\n display: contents;\r\n }\r\n @media (prefers-reduced-motion) {\r\n ::slotted([slot=\"input\"])::placeholder {\r\n transition: none !important;\r\n }\r\n }\r\n `,\r\n ];\r\n\r\n /** @private */ readonly #inputChangeHandler = () => this.#handleInputChange();\r\n /** @private */ readonly #inputKeyDownHandler = (e: KeyboardEvent) => this.#handleInputKeyDown(e);\r\n /** @private */ readonly #focusHandler = () => this.#handleFocus();\r\n /** @private */ readonly #focusInHandler = () => this.#handleFocusIn();\r\n /** @private */ readonly #focusOutHandler = () => this.#handleFocusOut();\r\n /** @private */ readonly #chipRemoveHandler = (e: Event) => this.#handleChipRemove(e);\r\n /** @private */ readonly #chipClickHandler = (e: Event) => this.#handleChipClick(e);\r\n\r\n /** @private */ readonly #listManager = new ListManager<M3eInputChipElement>();\r\n /** @private */ readonly #listKeyManager = new ListKeyManager<HTMLElement>()\r\n .onActiveItemChange(() => this.#listKeyManager.activeItem?.focus())\r\n .withHomeAndEnd()\r\n .withSkipPredicate((x) => !x.hasAttribute(\"tabindex\"));\r\n\r\n /** @private */ #ignoreInputChange = false;\r\n /** @private */ #input: HTMLInputElement | null = null;\r\n /** @private */ #tabindex = 0;\r\n\r\n /** The chips of the set. */\r\n get chips(): readonly M3eInputChipElement[] {\r\n // NOTE: query is used instead of the internal list management due to\r\n // validating required state on change to support form-field integration.\r\n return [...this.querySelectorAll(\"m3e-input-chip\")];\r\n }\r\n\r\n /** The selected values of the set. */\r\n get value(): readonly string[] | null {\r\n const values = this.chips.map((x) => x.value);\r\n return values.length == 0 ? null : values;\r\n }\r\n\r\n /** @inheritdoc @internal */\r\n override get [formValue]() {\r\n const values = this.value;\r\n if (!values) return null;\r\n const data = new FormData();\r\n for (const value of values) {\r\n data.append(this.name, value);\r\n }\r\n return data;\r\n }\r\n\r\n /** @inheritdoc */\r\n get shouldLabelFloat(): boolean {\r\n return this.chips.length > 0;\r\n }\r\n\r\n /** @inheritdoc */\r\n onContainerClick(): void {\r\n this.#input?.focus();\r\n }\r\n\r\n /** @inheritdoc */\r\n override connectedCallback(): void {\r\n super.connectedCallback();\r\n\r\n this.closest(\"m3e-form-field\")?.notifyControlStateChange();\r\n\r\n this.#tabindex = Number.parseInt(this.getAttribute(\"tabindex\") ?? \"0\");\r\n this.addEventListener(\"focus\", this.#focusHandler);\r\n this.addEventListener(\"focusin\", this.#focusInHandler);\r\n this.addEventListener(\"focusout\", this.#focusOutHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n override disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n\r\n this.removeEventListener(\"focus\", this.#focusHandler);\r\n this.removeEventListener(\"focusin\", this.#focusInHandler);\r\n this.removeEventListener(\"focusout\", this.#focusOutHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override firstUpdated(_changedProperties: PropertyValues): void {\r\n super.firstUpdated(_changedProperties);\r\n\r\n if (!this.hasAttribute(\"tabindex\")) {\r\n this.setAttribute(\"tabindex\", `${this.#tabindex}`);\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n\r\n if (changedProperties.has(\"vertical\")) {\r\n this.ariaOrientation = null;\r\n }\r\n if (changedProperties.has(\"disabled\")) {\r\n this.#listManager.items.forEach((x) => (x.disabled = this.disabled));\r\n if (this.#input) {\r\n this.#input.disabled = this.disabled;\r\n }\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<slot @keydown=\"${this.#handleKeyDown}\" @slotchange=\"${this.#handleSlotChange}\"></slot>\r\n <span role=\"row\">\r\n <span role=\"gridcell\"><slot name=\"input\" @slotchange=\"${this.#handleInputSlotChange}\"></slot></span>\r\n </span> `;\r\n }\r\n\r\n /** @private */\r\n #handleKeyDown(e: KeyboardEvent): void {\r\n this.#listKeyManager.onKeyDown(e);\r\n }\r\n\r\n /** @private */\r\n async #handleSlotChange(): Promise<void> {\r\n const { added, removed } = this.#listManager.setItems([...this.querySelectorAll(\"m3e-input-chip\")]);\r\n\r\n for (const chip of added) {\r\n if (chip.isUpdatePending) {\r\n await chip.updateComplete;\r\n }\r\n if (this.disabled) {\r\n chip.disabled = true;\r\n }\r\n chip.addEventListener(\"remove\", this.#chipRemoveHandler);\r\n chip.cell.addEventListener(\"click\", this.#chipClickHandler);\r\n }\r\n\r\n removed.forEach((x) => {\r\n x.removeEventListener(\"remove\", this.#chipRemoveHandler);\r\n x.cell.removeEventListener(\"click\", this.#chipClickHandler);\r\n });\r\n\r\n this.#listKeyManager.setItems(\r\n this.#listManager.items.flatMap((x) => (x.removeButton ? [x.cell, x.removeButton] : [x.cell]))\r\n );\r\n if (!this.#listKeyManager.activeItem) {\r\n this.#listKeyManager.updateActiveItem(this.#listKeyManager.items.find((x) => x.hasAttribute(\"tabindex\")));\r\n }\r\n }\r\n\r\n /** @private */\r\n #handleInputSlotChange(): void {\r\n const input = this.querySelector(\"input\");\r\n if (this.#input) {\r\n this.#input.removeEventListener(\"change\", this.#inputChangeHandler);\r\n this.#input.removeEventListener(\"keydown\", this.#inputKeyDownHandler);\r\n }\r\n\r\n this.#input = input;\r\n if (this.#input) {\r\n this.#input.disabled = this.disabled;\r\n this.#input.addEventListener(\"change\", this.#inputChangeHandler);\r\n this.#input.addEventListener(\"keydown\", this.#inputKeyDownHandler);\r\n\r\n const property = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, \"value\")!;\r\n Object.defineProperty(input, \"value\", {\r\n get: () => property.get?.call(input),\r\n set: (value: string) => {\r\n property.set?.call(input, value);\r\n if (this.#input === input && !this.#ignoreInputChange) {\r\n this.#handleInputChange();\r\n }\r\n },\r\n });\r\n }\r\n }\r\n\r\n /** @private */\r\n #handleFocus(): void {\r\n setTimeout(() => (this.#listKeyManager.activeItem ?? this.#input)?.focus());\r\n }\r\n\r\n /** @private */\r\n #handleFocusIn(): void {\r\n this.setAttribute(\"tabindex\", \"-1\");\r\n }\r\n\r\n /** @private */\r\n #handleFocusOut(): void {\r\n this.setAttribute(\"tabindex\", `${this.#tabindex}`);\r\n }\r\n\r\n /** @private */\r\n #handleChipRemove(e: Event): void {\r\n const chip = <M3eInputChipElement>e.target;\r\n const index = this.#listManager.items.indexOf(chip);\r\n const nextChip = this.#listManager.items.find((x, y) => y > index && !x.disabled && x.removable);\r\n\r\n chip.remove();\r\n\r\n this.#listKeyManager.setActiveItem(this.#listKeyManager.items.find((x) => x === nextChip?.removeButton));\r\n if (!this.#listKeyManager.activeItem) {\r\n this.#input?.focus();\r\n }\r\n\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n }\r\n\r\n /** @private */\r\n #handleChipClick(e: Event): void {\r\n this.#listKeyManager.updateActiveItem(e.composedPath().find((x) => x instanceof M3eInputChipElement)?.cell);\r\n }\r\n\r\n /** @private */\r\n #handleInputChange(): void {\r\n const value = this.#input?.value;\r\n if (!value) return;\r\n\r\n setTimeout(() => {\r\n const value = this.#input?.value;\r\n if (!value) return;\r\n\r\n const chip = document.createElement(\"m3e-input-chip\");\r\n chip.removable = true;\r\n chip.appendChild(document.createTextNode(value));\r\n this.appendChild(chip);\r\n\r\n if (this.#input) {\r\n try {\r\n this.#ignoreInputChange = true;\r\n this.#input.value = \"\";\r\n } finally {\r\n this.#ignoreInputChange = false;\r\n }\r\n }\r\n\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n });\r\n }\r\n\r\n /** @private */\r\n #handleInputKeyDown(e: KeyboardEvent): void {\r\n if (e.key === \"Backspace\" && !this.#input?.value) {\r\n const item = [...this.#listManager.items]\r\n .reverse()\r\n .find((x) => !x.disabled && !x.disabledInteractive && x.removable);\r\n if (item) {\r\n item.dispatchEvent(new Event(\"remove\"));\r\n }\r\n }\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-input-chip-set\": M3eInputChipSetElement;\r\n }\r\n}\r\n","import { nothing } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n Disabled,\r\n DisabledInteractive,\r\n Focusable,\r\n FormSubmitter,\r\n KeyboardClick,\r\n LinkButton,\r\n Role,\r\n} from \"@m3e/core\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * @summary\r\n * A chip used to help narrow a user's intent by presenting dynamically generated suggestions, such as\r\n * suggested responses or search filters.\r\n *\r\n * @description\r\n * The `m3e-suggestion-chip` component presents a suggestion chip, offering users contextually relevant\r\n * actions or responses. It is designed for dynamic suggestion scenarios, such as search filters or\r\n * smart replies, and supports accessibility, keyboard interaction, and expressive state styling in line\r\n * with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual\r\n * differentiation and contextual emphasis.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-suggestion-chip`. In this example, multiple chips are nested inside\r\n * a `m3e-chip-set` container to create a cohesive set of chips. The container is given the ARIA `role=\"group\"` to convey\r\n * to assistive technologies that the chips are part of a related set of element.\r\n * ```html\r\n * <m3e-chip-set role=\"group\" aria-label=\"Suggested replies\">\r\n * <m3e-suggestion-chip>Sounds good!</m3e-suggestion-chip>\r\n * <m3e-suggestion-chip>Can you clarify?</m3e-suggestion-chip>\r\n * <m3e-suggestion-chip>Let's do it.</m3e-suggestion-chip>\r\n * <m3e-suggestion-chip>Maybe later.</m3e-suggestion-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-suggestion-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n *\r\n * @attr disabled - A value indicating whether the element is disabled.\r\n * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.\r\n * @attr download - A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.\r\n * @attr href - The URL to which the link button points.\r\n * @attr name - The name of the element, submitted as a pair with the element's `value` as part of form data, when the element is used to submit a form.\r\n * @attr rel - The relationship between the `target` of the link button and the document.\r\n * @attr target - The target of the link button.\r\n * @attr type - The type of the element.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n */\r\n@customElement(\"m3e-suggestion-chip\")\r\nexport class M3eSuggestionChipElement extends FormSubmitter(\r\n AttachInternals(\r\n LinkButton(KeyboardClick(Focusable(DisabledInteractive(Disabled(Role(M3eChipElement, \"button\")))))),\r\n true\r\n )\r\n) {\r\n /** @internal @inheritdoc */\r\n protected override _renderTrailingIcon(): unknown {\r\n return nothing;\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-suggestion-chip\": M3eSuggestionChipElement;\r\n }\r\n}\r\n"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__classPrivateFieldGet","receiver","state","kind","f","TypeError","has","call","value","get","__classPrivateFieldSet","set","SuppressedError","t","e","o","addInitializer","customElements","define","globalThis","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","s","Symbol","WeakMap","n$3","constructor","this","_$cssResult$","Error","cssText","styleSheet","replaceSync","toString","cssRules","n","is","h","getOwnPropertyNames","getOwnPropertySymbols","getPrototypeOf","a","trustedTypes","l","emptyScript","p","reactiveElementPolyfillSupport","u","toAttribute","Boolean","Array","JSON","stringify","fromAttribute","Number","parse","b","attribute","type","String","converter","reflect","useDefault","hasChanged","metadata","litPropertyMetadata","y","HTMLElement","_$Ei","push","observedAttributes","finalize","_$Eh","keys","createProperty","hasOwnProperty","create","wrapped","elementProperties","noAccessor","getPropertyDescriptor","requestUpdate","configurable","enumerable","getPropertyOptions","Map","finalized","properties","_$Eu","elementStyles","finalizeStyles","styles","isArray","Set","flat","reverse","unshift","toLowerCase","super","_$Ep","isUpdatePending","hasUpdated","_$Em","_$Ev","_$ES","Promise","enableUpdating","_$AL","_$E_","forEach","addController","_$EO","add","renderRoot","isConnected","hostConnected","removeController","delete","size","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","adoptedStyleSheets","map","document","createElement","litNonce","setAttribute","textContent","appendChild","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$ET","removeAttribute","_$Ej","hasAttribute","C","_$EP","_$Eq","reject","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$EM","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","mode","ReactiveElement","reactiveElementVersions","name","init","querySelector","M3eChipElement","Role","LitElement","_M3eChipElement_value","_M3eChipElement_textContent","variant","_changedProperties","role","_elevation","_focusRing","_stateLayer","_ripple","x","htmlFor","attach","render","disabled","isDisabledMixin","disabledInteractive","isDisabledInteractiveMixin","html","isLinkButtonMixin","renderPseudoLink","nothing","_M3eChipElement_instances","_M3eChipElement_renderContent","_renderIcon","_M3eChipElement_handleIconSlotChange","_renderTrailingIcon","_M3eChipElement_handleTrailingIconSlotChange","_renderSlot","_M3eChipElement_handleSlotChange","classList","toggle","hasAssignedNodes","getTextContent","css","unsafeCSS","DesignToken","motion","duration","short4","easing","standard","shape","corner","small","density","calc","typescale","label","large","fontSize","fontWeight","lineHeight","tracking","color","surfaceContainerLow","elevation","level1","level2","outlineVariant","onSurface","primary","level0","query","property","customElement","M3eAssistChipElement","FormSubmitter","AttachInternals","LinkButton","KeyboardClick","Focusable","DisabledInteractive","Disabled","M3eChipSetElement","Vertical","M3eFilterChipElement","Selected","_M3eFilterChipElement_clickHandler","addEventListener","removeEventListener","changedProperties","closest","selectionManager","notifySelectionChange","defaultPrevented","selected","dispatchEvent","Event","bubbles","composed","cancelable","onSecondaryContainer","spring","fastEffects","onSurfaceVariant","secondaryContainer","M3eFilterChipSetElement","Labelled","Dirty","Touched","FormAssociated","_a","SelectionManager","onActiveItemChange","activeItem","focus","withWrap","multi","hideSelectionIndicator","chips","items","selectedItems","values","_M3eFilterChipSetElement_instances","WeakSet","formValue","data","FormData","append","vertical","undefined","ariaMultiSelectable","disableRovingTabIndex","_M3eFilterChipSetElement_handleSlotChange","_M3eFilterChipSetElement_handleKeyDown","_M3eFilterChipSetElement_handleChange","added","setItems","querySelectorAll","onKeyDown","stopPropagation","createPolicy","createHTML","Math","random","toFixed","slice","createComment","v","_","m","RegExp","g","$","T","for","E","A","createTreeWalker","P","V","lastIndex","exec","test","startsWith","N","strings","_$litType$","parts","el","currentNode","content","firstChild","replaceWith","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","split","index","ctor","H","I","L","k","tagName","indexOf","innerHTML","S","_$Co","_$Cl","_$litDirective$","_$AO","_$AT","_$AS","M","_$AV","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","R","nextSibling","z","_$AI","_$Cv","_$AH","_$AA","_$AB","options","startNode","endNode","_$AR","iterator","O","insertBefore","createTextNode","_$AC","_$AP","remove","setConnected","element","fill","j","toggleAttribute","capture","once","passive","handleEvent","host","litHtmlPolyfillSupport","litHtmlVersions","M3eInputChipElement","EventAttribute","removable","removeLabel","ifDefined","_M3eInputChipElement_instances","_M3eInputChipElement_handleKeyDown","_M3eInputChipElement_handleAvatarSlotChange","_M3eInputChipElement_handleRemoveButtonClick","M3eInputChipSetElement","RequiredConstraintValidation","Required","ConstraintValidation","_M3eInputChipSetElement_inputChangeHandler","_M3eInputChipSetElement_instances","_M3eInputChipSetElement_handleInputChange","_M3eInputChipSetElement_inputKeyDownHandler","_M3eInputChipSetElement_focusHandler","_M3eInputChipSetElement_handleFocus","_M3eInputChipSetElement_focusInHandler","_M3eInputChipSetElement_handleFocusIn","_M3eInputChipSetElement_focusOutHandler","_M3eInputChipSetElement_handleFocusOut","_M3eInputChipSetElement_chipRemoveHandler","_M3eInputChipSetElement_chipClickHandler","_M3eInputChipSetElement_listManager","ListManager","_M3eInputChipSetElement_listKeyManager","ListKeyManager","withHomeAndEnd","withSkipPredicate","_M3eInputChipSetElement_ignoreInputChange","_M3eInputChipSetElement_input","_M3eInputChipSetElement_tabindex","shouldLabelFloat","onContainerClick","notifyControlStateChange","parseInt","ariaOrientation","_M3eInputChipSetElement_handleKeyDown","_M3eInputChipSetElement_handleSlotChange","_M3eInputChipSetElement_handleInputSlotChange","async","removed","chip","cell","flatMap","removeButton","updateActiveItem","find","input","HTMLInputElement","setTimeout","nextChip","setActiveItem","composedPath","item","extraLong1","M3eSuggestionChipElement"],"mappings":";;;;;+rBAsDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAWa,MAAIL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAA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pa,EAAAqB,KAAI8Y,IAAsB,EAAI,KAC9B7a,EAAA+B,KAAI+Y,GAAA,KAAQta,MAAQ,EACtB,SACEE,EAAAqB,KAAI8Y,IAAsB,EAAK,IACjC,CAGF9Y,KAAKiO,cAAc,IAAIC,MAAM,SAAU,CAAEC,SAAS,MAEtD,cAGoBpP,GAClB,GAAc,cAAVA,EAAE3B,MAAwBa,EAAA+B,KAAI+Y,GAAA,MAASta,MAAO,CAChD,MAAM8b,EAAO,IAAItc,EAAA+B,KAAIwY,GAAA,KAAc/I,OAChCrL,UACA4V,KAAM5Q,IAAOA,EAAEI,WAAaJ,EAAEM,qBAAuBN,EAAE6N,WACtDsD,GACFA,EAAKtM,cAAc,IAAIC,MAAM,UAEjC,CACF,EA1RgBsJ,GAAAxT,OAAyB,CACvCoJ,GAAkBpJ,OAClB4G,CAAG;;;;;;;;;;;;;;;;;;;;;8BAqBuBE,EAAYC,OAAOC,SAASwP;;;;;;;;;;;;;;;;;;OAhC7ChD,GAAsBva,EAAA,CADlC0P,EAAc,uBACF6K,IC0BN,IAAMiD,GAAN,cAAuC5N,EAC5CC,EACEC,EAAWC,EAAcC,EAAUC,EAAoBC,EAAS1E,EAAKD,GAAgB,gBACrF,KAIiB,mBAAA4B,GACjB,OAAOL,CACT,GATW0Q,GAAwBxd,EAAA,CADpC0P,EAAc,wBACF8N","x_google_ignoreList":[0,1,2,3,4,5,6,12,14]}
1
+ {"version":3,"file":"index.min.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../node_modules/@lit/reactive-element/decorators/custom-element.js","../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../../../node_modules/@lit/reactive-element/decorators/query.js","../../../node_modules/@lit/reactive-element/decorators/base.js","../../src/ChipElement.ts","../../src/AssistChipElement.ts","../../src/ChipSetElement.ts","../../src/FilterChipElement.ts","../../src/FilterChipSetElement.ts","../../../node_modules/lit-html/lit-html.js","../../src/InputChipElement.ts","../../../node_modules/lit-html/directives/if-defined.js","../../src/InputChipSetElement.ts","../../src/SuggestionChipElement.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:\"open\"},y[d(\"elementProperties\")]=new Map,y[d(\"finalized\")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push(\"2.1.1\");export{y as ReactiveElement,s as adoptStyles,u as defaultConverter,t as getCompatibleStyle,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import { css, CSSResultGroup, html, LitElement, nothing, PropertyValues, unsafeCSS } from \"lit\";\r\nimport { customElement, property, query } from \"lit/decorators.js\";\r\n\r\nimport {\r\n DesignToken,\r\n getTextContent,\r\n hasAssignedNodes,\r\n isDisabledInteractiveMixin,\r\n isDisabledMixin,\r\n isLinkButtonMixin,\r\n M3eElevationElement,\r\n M3eFocusRingElement,\r\n M3eRippleElement,\r\n M3eStateLayerElement,\r\n renderPseudoLink,\r\n} from \"@m3e/core\";\r\n\r\nimport { ChipVariant } from \"./ChipVariant\";\r\n\r\n/**\r\n * A non-interactive chip used to convey small pieces of information.\r\n *\r\n * @description\r\n * The `m3e-chip` component establishes the foundational structure for chips. It supports expressive styling,\r\n * accessible interaction, and flexible content projection, aligning with Material 3 guidelines. Appearance\r\n * variants include `elevated` and `outlined`, enabling visual differentiation and contextual emphasis.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-chip` and `m3e-chip-set` components to present non-interactive chips.\r\n * ```html\r\n * <m3e-chip-set>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"palette\"></m3e-icon>Design</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"accessibility_new\"></m3e-icon>Accessibility</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"motion_photos_on\"></m3e-icon>Motion</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"description\"></m3e-icon>Documentation</m3e-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n * @slot trailing-icon - Renders an icon after the chip's label.\r\n *\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n */\r\n@customElement(\"m3e-chip\")\r\nexport class M3eChipElement extends LitElement {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = css`\r\n :host {\r\n display: inline-block;\r\n vertical-align: middle;\r\n outline: none;\r\n }\r\n .base {\r\n box-sizing: border-box;\r\n vertical-align: middle;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: relative;\r\n width: 100%;\r\n transition: ${unsafeCSS(\r\n `background-color ${DesignToken.motion.duration.short4} ${DesignToken.motion.easing.standard}`\r\n )};\r\n border-radius: var(--m3e-chip-container-shape, ${DesignToken.shape.corner.small});\r\n height: calc(var(--m3e-chip-container-height, 2rem) + ${DesignToken.density.calc(-2)});\r\n font-size: var(--m3e-chip-label-text-font-size, ${DesignToken.typescale.standard.label.large.fontSize});\r\n font-weight: var(--m3e-chip-label-text-font-weight, ${DesignToken.typescale.standard.label.large.fontWeight});\r\n line-height: var(--m3e-chip-label-text-line-height, ${DesignToken.typescale.standard.label.large.lineHeight});\r\n letter-spacing: var(--m3e-chip-label-text-tracking, ${DesignToken.typescale.standard.label.large.tracking});\r\n }\r\n :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) {\r\n cursor: pointer;\r\n }\r\n :host(:not(m3e-chip):not(:disabled)[disabled-interactive]) {\r\n cursor: not-allowed;\r\n }\r\n :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) .base {\r\n user-select: none;\r\n }\r\n .touch {\r\n position: absolute;\r\n height: 3rem;\r\n left: 0;\r\n right: 0;\r\n }\r\n .wrapper {\r\n width: 100%;\r\n overflow: hidden;\r\n display: inline-flex;\r\n align-items: center;\r\n column-gap: var(--m3e-chip-spacing, 0.5rem);\r\n }\r\n .label {\r\n flex: 1 1 auto;\r\n min-width: 0;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n }\r\n a {\r\n all: unset;\r\n display: block;\r\n position: absolute;\r\n top: 0px;\r\n left: 0px;\r\n right: 0px;\r\n bottom: 0px;\r\n z-index: 1;\r\n }\r\n :host([variant=\"elevated\"]) .base {\r\n background-color: var(--m3e-elevated-chip-container-color, ${DesignToken.color.surfaceContainerLow});\r\n\r\n --m3e-elevation-level: var(--m3e-elevated-chip-elevation, ${DesignToken.elevation.level1});\r\n --m3e-elevation-hover-level: var(--m3e-elevated-chip-hover-elevation, ${DesignToken.elevation.level2});\r\n --m3e-elevation-focus-level: var(--m3e-elevated-chip-elevation, ${DesignToken.elevation.level1});\r\n --m3e-elevation-pressed-level: var(--m3e-elevated-chip-elevation, ${DesignToken.elevation.level1});\r\n }\r\n :host([variant=\"outlined\"]) .base {\r\n outline-width: var(--m3e-outlined-chip-outline-thickness, 1px);\r\n outline-style: solid;\r\n outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px));\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[variant=\"outlined\"]) .base {\r\n outline-color: var(--m3e-outlined-chip-outline-color, ${DesignToken.color.outlineVariant});\r\n }\r\n :host(:disabled[variant=\"outlined\"]) .base,\r\n :host([disabled-interactive][variant=\"outlined\"]) .base {\r\n outline-color: color-mix(\r\n in srgb,\r\n var(--m3e-outlined-chip-disabled-outline-color, ${DesignToken.color.onSurface})\r\n var(--m3e-outlined-chip-disabled-outline-opacity, 12%),\r\n transparent\r\n );\r\n }\r\n :host(.-with-icon) .wrapper {\r\n padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem);\r\n }\r\n :host(:not(.-with-icon)) .wrapper {\r\n padding-inline-start: var(--m3e-chip-padding-start, 1rem);\r\n }\r\n :host(.-with-trailing-icon) .wrapper {\r\n padding-inline-end: var(--m3e-chip-with-icon-padding-end, 0.5rem);\r\n }\r\n :host(:not(.-with-trailing-icon)) .wrapper {\r\n padding-inline-end: var(--m3e-chip-padding-end, 1rem);\r\n }\r\n ::slotted([slot=\"icon\"]),\r\n ::slotted([slot=\"trailing-icon\"]) {\r\n flex: none;\r\n width: 1em;\r\n font-size: var(--m3e-chip-icon-size, 1.125rem) !important;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base {\r\n color: var(--m3e-chip-label-text-color, ${DesignToken.color.onSurface});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: var(--m3e-chip-icon-color, ${DesignToken.color.primary});\r\n }\r\n :host(:disabled) .base,\r\n :host([disabled-interactive]) .base {\r\n color: color-mix(\r\n in srgb,\r\n var(--m3e-chip-disabled-label-text-color, ${DesignToken.color.onSurface})\r\n var(--m3e-chip-disabled-label-text-opacity, 38%),\r\n transparent\r\n );\r\n }\r\n :host(:disabled) ::slotted([slot=\"icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"icon\"]),\r\n :host(:disabled) ::slotted([slot=\"trailing-icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"trailing-icon\"]) {\r\n color: color-mix(\r\n in srgb,\r\n var(--m3e-chip-disabled-icon-color, ${DesignToken.color.onSurface}) var(--m3e-chip-disabled-icon-opacity, 38%),\r\n transparent\r\n );\r\n }\r\n :host([variant=\"elevated\"]:disabled) .base,\r\n :host([variant=\"elevated\"][disabled-interactive]) .base {\r\n background-color: color-mix(\r\n in srgb,\r\n var(--m3e-elevated-chip-disabled-container-color, ${DesignToken.color.onSurface})\r\n var(--m3e-elevated-chip-disabled-container-opacity, 12%),\r\n transparent\r\n );\r\n --m3e-elevation-level: var(--m3e-elevated-chip-disabled-elevation, ${DesignToken.elevation.level0});\r\n }\r\n @media (prefers-reduced-motion) {\r\n .base {\r\n transition: none;\r\n }\r\n }\r\n @media (forced-colors: active) {\r\n .base {\r\n transition: none;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base,\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: CanvasText;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[variant=\"outlined\"]) .base {\r\n outline-color: CanvasText;\r\n }\r\n :host(:disabled) .base,\r\n :host([disabled-interactive]) .base,\r\n :host(:disabled) ::slotted([slot=\"icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"icon\"]),\r\n :host(:disabled) ::slotted([slot=\"trailing-icon\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"trailing-icon\"]) {\r\n color: GrayText;\r\n }\r\n :host(:disabled[variant=\"outlined\"]) .base,\r\n :host([disabled-interactive][variant=\"outlined\"]) .base {\r\n outline-color: GrayText;\r\n }\r\n }\r\n `;\r\n\r\n /** @private */ @query(\".elevation\") private readonly _elevation?: M3eElevationElement;\r\n /** @private */ @query(\".focus-ring\") private readonly _focusRing?: M3eFocusRingElement;\r\n /** @private */ @query(\".state-layer\") private readonly _stateLayer?: M3eStateLayerElement;\r\n /** @private */ @query(\".ripple\") private readonly _ripple?: M3eRippleElement;\r\n\r\n /** @private */ #value?: string;\r\n /** @private */ #textContent = \"\";\r\n\r\n /**\r\n * The appearance variant of the chip.\r\n * @default \"outlined\"\r\n */\r\n @property({ reflect: true }) variant: ChipVariant = \"outlined\";\r\n\r\n /** A string representing the value of the chip. */\r\n @property() get value() {\r\n return this.#value ?? this.#textContent;\r\n }\r\n set value(value: string) {\r\n this.#value = value;\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override firstUpdated(_changedProperties: PropertyValues): void {\r\n super.firstUpdated(_changedProperties);\r\n\r\n if (this.role === \"listitem\") {\r\n this.removeAttribute(\"tabindex\");\r\n }\r\n\r\n [this._elevation, this._focusRing, this._stateLayer, this._ripple].forEach((x) => {\r\n if (!x?.htmlFor) {\r\n x?.attach(this);\r\n }\r\n });\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n const disabled = !isDisabledMixin(this) || this.disabled;\r\n const disabledInteractive = isDisabledInteractiveMixin(this) && this.disabledInteractive;\r\n\r\n return html`<div class=\"base\">\r\n <m3e-elevation class=\"elevation\" ?disabled=\"${disabled || disabledInteractive}\"></m3e-elevation>\r\n <m3e-state-layer class=\"state-layer\" ?disabled=\"${disabled || disabledInteractive}\"></m3e-state-layer>\r\n <m3e-focus-ring class=\"focus-ring\" ?disabled=\"${disabled}\"></m3e-focus-ring>\r\n <m3e-ripple class=\"ripple\" ?disabled=\"${disabled || disabledInteractive}\"></m3e-ripple>\r\n <div class=\"touch\" aria-hidden=\"true\"></div>\r\n ${isLinkButtonMixin(this) ? this[renderPseudoLink]() : nothing}\r\n <div class=\"wrapper\">${this.#renderContent()}</div>\r\n </div>`;\r\n }\r\n\r\n /** @private */\r\n #renderContent(): unknown {\r\n return html`${this._renderIcon()}\r\n <div class=\"label\">${this._renderSlot()}</div>\r\n ${this._renderTrailingIcon()}`;\r\n }\r\n\r\n /** @internal */\r\n protected _renderIcon(): unknown {\r\n return html`<slot name=\"icon\" aria-hidden=\"true\" @slotchange=\"${this.#handleIconSlotChange}\"></slot>`;\r\n }\r\n\r\n /** @internal */\r\n protected _renderTrailingIcon(): unknown {\r\n return html`<slot\r\n name=\"trailing-icon\"\r\n aria-hidden=\"true\"\r\n @slotchange=\"${this.#handleTrailingIconSlotChange}\"\r\n ></slot>`;\r\n }\r\n\r\n /** @internal */\r\n protected _renderSlot(): unknown {\r\n return html`<slot @slotchange=\"${this.#handleSlotChange}\"></slot>`;\r\n }\r\n\r\n /** @private */\r\n #handleIconSlotChange(e: Event): void {\r\n this.classList.toggle(\"-with-icon\", hasAssignedNodes(<HTMLSlotElement>e.target));\r\n }\r\n\r\n /** @private */\r\n #handleTrailingIconSlotChange(e: Event): void {\r\n this.classList.toggle(\"-with-trailing-icon\", hasAssignedNodes(<HTMLSlotElement>e.target));\r\n }\r\n\r\n /** @private */\r\n #handleSlotChange(e: Event): void {\r\n this.#textContent = getTextContent(<HTMLSlotElement>e.target);\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-chip\": M3eChipElement;\r\n }\r\n}\r\n","import { nothing } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n Disabled,\r\n DisabledInteractive,\r\n Focusable,\r\n FormSubmitter,\r\n KeyboardClick,\r\n LinkButton,\r\n Role,\r\n} from \"@m3e/core\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * A chip users interact with to perform a smart or automated action that can span multiple applications.\r\n *\r\n * @description\r\n * The `m3e-assist-chip` component presents a Material 3 assist chip, providing users with quick access to\r\n * contextually relevant actions. It is designed for use cases like suggested actions, quick filters, or\r\n * secondary operations, and supports accessibility, keyboard interaction, and expressive state styling\r\n * in line with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual\r\n * differentiation and contextual emphasis.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-assist-chip`. In this example, multiple chips are nested inside\r\n * a `m3e-chip-set` container to create a cohesive set of chips. The container is given the ARIA `role=\"group\"` to convey\r\n * to assistive technologies that the chips are part of a related set of element.\r\n * ```html\r\n * <m3e-chip-set role=\"group\" aria-label=\"Quick actions\">\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"edit\"></m3e-icon>Edit</m3e-assist-chip>\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"delete\"></m3e-icon>Delete</m3e-assist-chip>\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"content_copy\"></m3e-icon>Copy</m3e-assist-chip>\r\n * <m3e-assist-chip><m3e-icon slot=\"icon\" name=\"share\"></m3e-icon>Share</m3e-assist-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-assist-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n *\r\n * @attr disabled - A value indicating whether the element is disabled.\r\n * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.\r\n * @attr download - A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.\r\n * @attr href - The URL to which the link button points.\r\n * @attr name - The name of the element, submitted as a pair with the element's `value` as part of form data, when the element is used to submit a form.\r\n * @attr rel - The relationship between the `target` of the link button and the document.\r\n * @attr target - The target of the link button.\r\n * @attr type - The type of the element.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @fires click - Emitted when the element is clicked.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n */\r\n@customElement(\"m3e-assist-chip\")\r\nexport class M3eAssistChipElement extends FormSubmitter(\r\n AttachInternals(\r\n LinkButton(KeyboardClick(Focusable(DisabledInteractive(Disabled(Role(M3eChipElement, \"button\")))))),\r\n true\r\n )\r\n) {\r\n /** @internal @inheritdoc */\r\n protected override _renderTrailingIcon(): unknown {\r\n return nothing;\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-assist-chip\": M3eAssistChipElement;\r\n }\r\n}\r\n","import { css, CSSResultGroup, html, LitElement } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport { Vertical } from \"@m3e/core\";\r\n\r\n/**\r\n * A container used to organize chips into a cohesive unit.\r\n *\r\n * @description\r\n * The `m3e-chip-set` component provides a flexible container for grouping chips, supporting both\r\n * horizontal and vertical layouts. It manages chip arrangement, spacing, and accessibility, and\r\n * serves as the foundation for chip set variants such as input and filter chip sets.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-chip` and `m3e-chip-set` components to present non-interactive chips.\r\n * ```html\r\n * <m3e-chip-set>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"palette\"></m3e-icon>Design</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"accessibility_new\"></m3e-icon>Accessibility</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"motion_photos_on\"></m3e-icon>Motion</m3e-chip>\r\n * <m3e-chip><m3e-icon slot=\"icon\" name=\"description\"></m3e-icon>Documentation</m3e-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-chip-set\r\n *\r\n * @slot - Renders the chips of the set.\r\n *\r\n * @attr vertical - Whether the element is oriented vertically.\r\n *\r\n * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.\r\n */\r\n@customElement(\"m3e-chip-set\")\r\nexport class M3eChipSetElement extends Vertical(LitElement) {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = css`\r\n :host {\r\n display: inline-flex;\r\n flex-wrap: wrap;\r\n vertical-align: middle;\r\n gap: var(--m3e-chip-set-spacing, 0.5rem);\r\n outline: none;\r\n }\r\n :host([vertical]) {\r\n flex-direction: column;\r\n }\r\n `;\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<slot></slot>`;\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-chip-set\": M3eChipSetElement;\r\n }\r\n}\r\n","import { css, CSSResultGroup, html, PropertyValues } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n DesignToken,\r\n Disabled,\r\n DisabledInteractive,\r\n Focusable,\r\n KeyboardClick,\r\n Role,\r\n Selected,\r\n} from \"@m3e/core\";\r\n\r\nimport { selectionManager } from \"@m3e/core/a11y\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * A chip users interact with to select/deselect options.\r\n *\r\n * @description\r\n * The `m3e-filter-chip` component presents a chip that users can select or deselect to filter\r\n * content or data sets. It supports single and multi-selection, keyboard interaction, accessibility,\r\n * and expressive state styling, providing a modern and interactive filtering experience in line\r\n * with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual\r\n * differentiation and contextual emphasis.\r\n *\r\n * @example\r\n * The following example illustrates a single-select `m3e-filter-chip-set` containing multiple `m3e-filter-chip` components that\r\n * allow a user to choose an option. You can use the `multi` attribute to enable multiselect.\r\n * ```html\r\n * <m3e-filter-chip-set aria-label=\"Filter by topic\">\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"palette\"></m3e-icon>Design</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"accessibility_new\"></m3e-icon>Accessibility</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"motion_photos_on\"></m3e-icon>Motion</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"description\"></m3e-icon>Documentation</m3e-filter-chip>\r\n * </m3e-filter-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-filter-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n * @slot trailing-icon - Renders an icon after the chip's label.\r\n *\r\n * @attr disabled - A value indicating whether the element is disabled.\r\n * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.\r\n * @attr selected - A value indicating whether the element is selected.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @fires input - Emitted when the selected state changes.\r\n * @fires change - Emitted when the selected state changes.\r\n * @fires click - Emitted when the element is clicked.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n * @cssprop --m3e-chip-selected-outline-thickness - Outline thickness for selected state.\r\n * @cssprop --m3e-chip-selected-label-text-color - Text color in selected state.\r\n * @cssprop --m3e-chip-selected-container-color - Background color in selected state.\r\n * @cssprop --m3e-chip-selected-container-hover-color - Hover state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-container-focus-color - Focus state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-hover-elevation - Elevation on hover in selected state.\r\n * @cssprop --m3e-chip-selected-ripple-color - Ripple color in selected state.\r\n * @cssprop --m3e-chip-selected-state-layer-focus-color - Focus state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-state-layer-hover-color - Hover state layer color in selected state.\r\n * @cssprop --m3e-chip-selected-leading-icon-color - Leading icon color in selected state.\r\n * @cssprop --m3e-chip-selected-trailing-icon-color - Trailing icon color in selected state.\r\n * @cssprop --m3e-chip-unselected-label-text-color - Text color in unselected state.\r\n * @cssprop --m3e-chip-unselected-ripple-color - Ripple color in unselected state.\r\n * @cssprop --m3e-chip-unselected-state-layer-focus-color - Focus state layer color in unselected state.\r\n * @cssprop --m3e-chip-unselected-state-layer-hover-color - Hover state layer color in unselected state.\r\n * @cssprop --m3e-chip-unselected-leading-icon-color - Leading icon color in unselected state.\r\n * @cssprop --m3e-chip-unselected-trailing-icon-color - Trailing icon color in unselected state.\r\n */\r\n@customElement(\"m3e-filter-chip\")\r\nexport class M3eFilterChipElement extends Selected(\r\n KeyboardClick(Focusable(DisabledInteractive(Disabled(AttachInternals(Role(M3eChipElement, \"option\"), true)))))\r\n) {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = [\r\n M3eChipElement.styles,\r\n css`\r\n :host([selected]:not(.-hide-selection)) .wrapper {\r\n padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem);\r\n }\r\n .icon {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n .check {\r\n width: 1em;\r\n font-size: var(--m3e-chip-icon-size, 1.125rem);\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])) .check {\r\n color: var(--m3e-chip-selected-leading-icon-color, ${DesignToken.color.onSecondaryContainer});\r\n }\r\n :host(:not([selected])) .check,\r\n :host(.-hide-selection) .check,\r\n :host(.-hide-selection:not(.-with-icon)) .icon {\r\n display: none;\r\n }\r\n :host(:not(.-with-icon)) .icon {\r\n margin-inline-start: calc(0px - var(--m3e-chip-with-icon-padding-start, 0.5rem));\r\n transition: margin-inline-start ${DesignToken.motion.spring.fastEffects};\r\n }\r\n :host([selected]) .icon {\r\n margin-inline-start: 0;\r\n }\r\n :host([selected]:not(.-hide-selection)) ::slotted([slot=\"icon\"]) {\r\n display: none !important;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base {\r\n color: var(--m3e-chip-unselected-label-text-color, ${DesignToken.color.onSurfaceVariant});\r\n --m3e-ripple-color: var(--m3e-chip-unselected-ripple-color, ${DesignToken.color.onSurfaceVariant});\r\n --m3e-state-layer-focus-color: var(\r\n --m3e-chip-unselected-state-layer-focus-color,\r\n ${DesignToken.color.onSurfaceVariant}\r\n );\r\n --m3e-state-layer-hover-color: var(\r\n --m3e-chip-unselected-state-layer-hover-color,\r\n ${DesignToken.color.onSurfaceVariant}\r\n );\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]) {\r\n color: var(--m3e-chip-unselected-leading-icon-color, ${DesignToken.color.primary});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: var(--m3e-chip-unselected-trailing-icon-color, ${DesignToken.color.onSurfaceVariant});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) .base {\r\n outline-offset: unset;\r\n outline-width: var(--m3e-chip-selected-outline-thickness, 0);\r\n color: var(--m3e-chip-selected-label-text-color, ${DesignToken.color.onSecondaryContainer});\r\n background-color: var(--m3e-chip-selected-container-color, ${DesignToken.color.secondaryContainer});\r\n --m3e-state-layer-hover-color: var(\r\n --m3e-chip-selected-container-hover-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n --m3e-state-layer-focus-color: var(\r\n --m3e-chip-selected-container-focus-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n --m3e-elevation-hover-level: var(--m3e-chip-selected-hover-elevation, ${DesignToken.elevation.level1});\r\n --m3e-ripple-color: var(--m3e-chip-selected-ripple-color, ${DesignToken.color.onSecondaryContainer});\r\n --m3e-state-layer-focus-color: var(\r\n --m3e-chip-selected-state-layer-focus-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n --m3e-state-layer-hover-color: var(\r\n --m3e-chip-selected-state-layer-hover-color,\r\n ${DesignToken.color.onSecondaryContainer}\r\n );\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot=\"icon\"]) {\r\n color: var(--m3e-chip-selected-leading-icon-color, ${DesignToken.color.onSecondaryContainer});\r\n }\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: var(--m3e-chip-selected-trailing-icon-color, ${DesignToken.color.onSecondaryContainer});\r\n }\r\n @media (prefers-reduced-motion) {\r\n .base,\r\n :host(:not(.-with-icon)) .icon {\r\n transition: none;\r\n }\r\n }\r\n @media (forced-colors: active) {\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base,\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot=\"trailing-icon\"]) {\r\n color: CanvasText;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) .base,\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot=\"icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot=\"trailing-icon\"]),\r\n :host(:not(:disabled):not([disabled-interactive])) .check {\r\n color: ButtonText;\r\n }\r\n :host(:not(:disabled):not([disabled-interactive])[selected]) .base {\r\n outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px));\r\n outline-width: var(--m3e-outlined-chip-outline-thickness, 1px);\r\n outline-color: ButtonText;\r\n }\r\n }\r\n `,\r\n ];\r\n\r\n /** @private */ readonly #clickHandler = (e: Event) => this.#handleClick(e);\r\n\r\n /** @inheritdoc */\r\n override connectedCallback(): void {\r\n super.connectedCallback();\r\n this.addEventListener(\"click\", this.#clickHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n override disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n this.removeEventListener(\"click\", this.#clickHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n\r\n if (changedProperties.has(\"selected\")) {\r\n this.closest(\"m3e-filter-chip-set\")?.[selectionManager].notifySelectionChange(this);\r\n }\r\n }\r\n\r\n /** @inheritdoc @private */\r\n protected override _renderIcon(): unknown {\r\n return html`<div class=\"icon\" aria-hidden=\"true\">\r\n <svg class=\"check\" viewBox=\"0 -960 960 960\" aria-hidden=\"true\">\r\n <path fill=\"currentColor\" d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" />\r\n </svg>\r\n ${super._renderIcon()}\r\n </div>`;\r\n }\r\n\r\n /** @private */\r\n #handleClick(e: Event): void {\r\n if (e.defaultPrevented) return;\r\n\r\n const selected = this.selected;\r\n this.selected = !this.selected;\r\n if (this.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true, cancelable: true }))) {\r\n this.closest(\"m3e-filter-chip-set\")?.[selectionManager].notifySelectionChange(this);\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n } else {\r\n this.selected = selected;\r\n }\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-filter-chip\": M3eFilterChipElement;\r\n }\r\n}\r\n","import { html, PropertyValues } from \"lit\";\r\nimport { customElement, property } from \"lit/decorators.js\";\r\n\r\nimport { AttachInternals, Labelled, Dirty, Disabled, FormAssociated, formValue, Touched, Role } from \"@m3e/core\";\r\nimport { SelectionManager, selectionManager } from \"@m3e/core/a11y\";\r\n\r\nimport { M3eChipSetElement } from \"./ChipSetElement\";\r\nimport { M3eFilterChipElement } from \"./FilterChipElement\";\r\n\r\n/**\r\n * A container that organizes filter chips into a cohesive group, enabling selection and\r\n * deselection of values used to refine content or trigger contextual behavior.\r\n *\r\n * @description\r\n * The `m3e-filter-chip-set` component presents a group of filter chips, enabling users to select\r\n * one or more options to filter content or data sets. It supports single and multi-selection,\r\n * keyboard navigation, accessibility, and seamless form association, providing expressive and\r\n * interactive filtering experiences in line with Material 3 guidelines.\r\n *\r\n * @example\r\n * The following example illustrates a single-select `m3e-filter-chip-set` containing multiple `m3e-filter-chip` components that\r\n * allow a user to choose an option. You can use the `multi` attribute to enable multiselect.\r\n * ```html\r\n * <m3e-filter-chip-set aria-label=\"Filter by topic\">\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"palette\"></m3e-icon>Design</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"accessibility_new\"></m3e-icon>Accessibility</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"motion_photos_on\"></m3e-icon>Motion</m3e-filter-chip>\r\n * <m3e-filter-chip><m3e-icon slot=\"icon\" name=\"description\"></m3e-icon>Documentation</m3e-filter-chip>\r\n * </m3e-filter-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-filter-chip-set\r\n *\r\n * @slot - Renders the chips of the set.\r\n *\r\n * @attr disabled - Whether the element is disabled.\r\n * @attr hide-selection-indicator - Whether to hide the selection indicator.\r\n * @attr multi - Whether multiple chips can be selected.\r\n * @attr name - The name that identifies the element when submitting the associated form.\r\n * @attr vertical - Whether the element is oriented vertically.\r\n *\r\n * @fires input - Emitted when the selected state of a chip changes.\r\n * @fires change - Emitted when the selected state of a chip changes.\r\n *\r\n * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.\r\n */\r\n@customElement(\"m3e-filter-chip-set\")\r\nexport class M3eFilterChipSetElement extends Labelled(\r\n Dirty(Touched(FormAssociated(Disabled(AttachInternals(Role(M3eChipSetElement, \"listbox\"))))))\r\n) {\r\n /** @internal */\r\n readonly [selectionManager] = new SelectionManager<M3eFilterChipElement>()\r\n .onActiveItemChange(() => this[selectionManager].activeItem?.focus())\r\n .withWrap();\r\n\r\n /**\r\n * Whether multiple chips can be selected.\r\n * @default false\r\n */\r\n @property({ type: Boolean }) multi = false;\r\n\r\n /**\r\n * Whether to hide the selection indicator.\r\n * @default false\r\n */\r\n @property({ attribute: \"hide-selection-indicator\", type: Boolean }) hideSelectionIndicator = false;\r\n\r\n /** The chips of the set. */\r\n get chips(): readonly M3eFilterChipElement[] {\r\n return this[selectionManager]?.items ?? [];\r\n }\r\n\r\n /** The selected chip(s) of the set. */\r\n get selected(): readonly M3eFilterChipElement[] {\r\n return this[selectionManager]?.selectedItems ?? [];\r\n }\r\n\r\n /** The selected value(s) of the set. */\r\n get value(): string | readonly string[] | null {\r\n const values = this.selected.map((x) => x.value);\r\n switch (values.length) {\r\n case 0:\r\n return null;\r\n case 1:\r\n return values[0];\r\n default:\r\n return values;\r\n }\r\n }\r\n\r\n /** @inheritdoc @internal */\r\n override get [formValue]() {\r\n const values = this.value;\r\n if (Array.isArray(values)) {\r\n const data = new FormData();\r\n for (const value of values) {\r\n data.append(this.name, value);\r\n }\r\n return data;\r\n }\r\n return <string | null>values;\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n\r\n if (changedProperties.has(\"vertical\")) {\r\n this[selectionManager].vertical = this.vertical;\r\n }\r\n\r\n if (changedProperties.has(\"disabled\") && (changedProperties.get(\"disabled\") !== undefined || this.disabled)) {\r\n this[selectionManager].disabled = this.disabled;\r\n }\r\n\r\n if (changedProperties.has(\"multi\")) {\r\n this.ariaMultiSelectable = `${this.multi}`;\r\n this[selectionManager].multi = this.multi;\r\n this[selectionManager].disableRovingTabIndex(this.multi);\r\n }\r\n\r\n if (changedProperties.has(\"hideSelectionIndicator\")) {\r\n this.chips.forEach((x) => x.classList.toggle(\"-hide-selection\", this.hideSelectionIndicator));\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<slot\r\n @slotchange=\"${this.#handleSlotChange}\"\r\n @keydown=\"${this.#handleKeyDown}\"\r\n @change=\"${this.#handleChange}\"\r\n ></slot>`;\r\n }\r\n\r\n /** @internal */\r\n #handleSlotChange() {\r\n const { added } = this[selectionManager].setItems([...this.querySelectorAll(\"m3e-filter-chip\")]);\r\n added.forEach((x) => x.classList.toggle(\"-hide-selection\", this.hideSelectionIndicator));\r\n }\r\n\r\n /** @internal */\r\n #handleKeyDown(e: KeyboardEvent): void {\r\n if (!this.multi) {\r\n this[selectionManager].onKeyDown(e);\r\n }\r\n }\r\n\r\n /** @internal */\r\n #handleChange(e: Event): void {\r\n e.stopPropagation();\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-filter-chip-set\": M3eFilterChipSetElement;\r\n }\r\n}\r\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=\"$lit$\",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o=\"?\"+h,n=`<${o}>`,r=document,l=()=>r.createComment(\"\"),c=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,a=Array.isArray,u=t=>a(t)||\"function\"==typeof t?.[Symbol.iterator],d=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\\\s\"'>=/]+)(${d}*=${d}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),p=/'/g,g=/\"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),b=y(2),w=y(3),T=Symbol.for(\"lit-noChange\"),E=Symbol.for(\"lit-nothing\"),A=new WeakMap,C=r.createTreeWalker(r,129);function P(t,i){if(!a(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?\"<svg>\":3===i?\"<math>\":\"\",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?\"!--\"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp(\"</\"+u[2],\"g\")),c=m):void 0!==u[3]&&(c=m):c===m?\">\"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'\"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x)}return[P(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":3===i?\"</math>\":\"\")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:\".\"===e[1]?H:\"?\"===e[1]?I:\"@\"===e[1]?L:k}),r.removeAttribute(t)}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l())}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else{let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1}c++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n]}o!==l?.index&&(h=C.nextNode(),o++)}return C.currentNode=r,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||\"\"===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class H extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}class I extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const Z={M:e,P:h,A:o,C:1,L:V,R:M,D:u,V:S,I:R,H:k,N:I,U:L,B:H,F:z},j=t.litHtmlPolyfillSupport;j?.(N,R),(t.litHtmlVersions??=[]).push(\"3.3.1\");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l(),t),t,void 0,s??{})}return h._$AI(t),h};export{Z as _$LH,x as html,w as mathml,T as noChange,E as nothing,B as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */\r\nimport { css, CSSResultGroup, html, nothing, PropertyValues } from \"lit\";\r\nimport { customElement, property, query } from \"lit/decorators.js\";\r\nimport { ifDefined } from \"lit/directives/if-defined.js\";\r\n\r\nimport {\r\n DisabledInteractive,\r\n Disabled,\r\n EventAttribute,\r\n Role,\r\n AttachInternals,\r\n DesignToken,\r\n hasAssignedNodes,\r\n} from \"@m3e/core\";\r\n\r\nimport { M3eIconButtonElement } from \"@m3e/icon-button\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * A chip which represents a discrete piece of information entered by a user.\r\n *\r\n * @description\r\n * The `m3e-input-chip` component represents an input chip, allowing users to enter, display,\r\n * and manage discrete values such as tags or keywords. It supports expressive styling, accessibility,\r\n * keyboard interaction, and appearance variants including `elevated` and `outlined`.\r\n *\r\n * @example\r\n * The following example illustrates the use of the `m3e-input-chip-set` inside a `m3e-form-field`.\r\n * In this example, the `input` slot specifies the `input` element used to add input chips and the\r\n * field label's `for` attribute targets the `input` element to provide an accessible label.\r\n * ```html\r\n * <m3e-form-field>\r\n * <label slot=\"label\" for=\"keywords\">Keywords</label>\r\n * <m3e-input-chip-set aria-label=\"Enter keywords\">\r\n * <input id=\"keywords\" slot=\"input\" placeholder=\"New keyword...\" />\r\n * </m3e-input-chip-set>\r\n * </m3e-form-field>\r\n * ```\r\n *\r\n * @tag m3e-input-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot avatar - Renders an avatar before the chip's label.\r\n * @slot icon - Renders an icon before the chip's label.\r\n * @slot remove-icon - Renders the icon for the button used to remove the chip.\r\n *\r\n * @attr disabled - Whether the element is disabled.\r\n * @attr disabled-interactive - Whether the element is disabled and interactive.\r\n * @attr removable - Whether the chip is removable.\r\n * @attr remove-label - The accessible label given to the button used to remove the chip.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @fires remove - Emitted when the remove button is clicked or DELETE or BACKSPACE key is pressed.\r\n * @fires click - Emitted when the element is clicked.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n * @cssprop --m3e-chip-avatar-size - Font size of the avatar slot content.\r\n * @cssprop --m3e-chip-disabled-avatar-opacity - Opacity applied to the avatar when disabled.\r\n * @cssprop --m3e-chip-with-avatar-padding-start - Start padding when an avatar is present.\r\n */\r\n@customElement(\"m3e-input-chip\")\r\nexport class M3eInputChipElement extends EventAttribute(\r\n DisabledInteractive(Disabled(AttachInternals(Role(M3eChipElement, \"row\"), true))),\r\n \"remove\"\r\n) {\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = [\r\n M3eChipElement.styles,\r\n css`\r\n .cell {\r\n display: inline-flex;\r\n align-items: center;\r\n outline: none;\r\n column-gap: var(--m3e-chip-spacing, 0.5rem);\r\n min-width: 0;\r\n }\r\n .remove-button {\r\n --m3e-icon-button-extra-small-container-height: 1.5rem;\r\n --m3e-icon-button-extra-small-icon-size: var(--m3e-chip-icon-size, 1.125rem);\r\n width: 1.5rem;\r\n }\r\n .remove-icon {\r\n flex: none;\r\n width: var(--m3e-chip-icon-size, 1.125rem);\r\n height: var(--m3e-chip-icon-size, 1.125rem);\r\n }\r\n .touch {\r\n top: calc(\r\n 0px - calc(calc(3rem - calc(var(--m3e-chip-container-height, 2rem) + ${DesignToken.density.calc(-2)})) / 2)\r\n );\r\n }\r\n .wrapper {\r\n height: 100%;\r\n overflow: visible;\r\n min-width: 0;\r\n }\r\n ::slotted([slot=\"avatar\"]) {\r\n flex: none;\r\n font-size: var(--m3e-chip-avatar-size, 1.5rem);\r\n }\r\n :host(:disabled) ::slotted([slot=\"avatar\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"avatar\"]) {\r\n opacity: var(--m3e-chip-disabled-avatar-opacity, 38%);\r\n color: var(--m3e-chip-disabled-icon-color, ${DesignToken.color.onSurface});\r\n }\r\n :host(.-with-avatar) ::slotted([slot=\"icon\"]) {\r\n display: none;\r\n }\r\n :host(.-with-avatar) .wrapper {\r\n padding-inline-start: var(--m3e-chip-with-avatar-padding-start, 0.25rem);\r\n }\r\n @media (forced-colors: active) {\r\n :host(:disabled) ::slotted([slot=\"avatar\"]),\r\n :host([disabled-interactive]) ::slotted([slot=\"avatar\"]) {\r\n color: CanvasText;\r\n }\r\n }\r\n `,\r\n ];\r\n\r\n /** A reference to the grid cell of the chip. */\r\n @query(\".cell\") readonly cell!: HTMLSpanElement;\r\n\r\n /** A reference to the button used to remove the chip. */\r\n @query(\".remove-button\") readonly removeButton!: M3eIconButtonElement | null;\r\n\r\n /**\r\n * Whether the chip is removable.\r\n * @default false\r\n */\r\n @property({ type: Boolean }) removable = false;\r\n\r\n /**\r\n * The accessible label given to the button used to remove the chip.\r\n * @default \"Remove\"\r\n */\r\n @property({ attribute: \"remove-label\" }) removeLabel = \"Remove\";\r\n\r\n /** @inheritdoc */\r\n override connectedCallback(): void {\r\n super.connectedCallback();\r\n this.removeAttribute(\"tabindex\");\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n this.removeAttribute(\"tabindex\");\r\n\r\n if (changedProperties.has(\"removable\")) {\r\n this.classList.toggle(\"-with-trailing-icon\", this.removable);\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<div class=\"base\">\r\n <m3e-elevation\r\n class=\"elevation\"\r\n for=\"cell\"\r\n ?disabled=\"${this.disabled || this.disabledInteractive}\"\r\n ></m3e-elevation>\r\n <m3e-state-layer\r\n class=\"state-layer\"\r\n for=\"cell\"\r\n ?disabled=\"${this.disabled || this.disabledInteractive}\"\r\n ></m3e-state-layer>\r\n <m3e-focus-ring class=\"focus-ring\" for=\"cell\" ?disabled=\"${this.disabled}\"></m3e-focus-ring>\r\n <m3e-ripple class=\"ripple\" for=\"cell\" ?disabled=\"${this.disabled || this.disabledInteractive}\"></m3e-ripple>\r\n <div class=\"wrapper\">\r\n <div\r\n id=\"cell\"\r\n class=\"cell\"\r\n role=\"gridcell\"\r\n tabindex=\"${ifDefined(this.disabled ? undefined : \"-1\")}\"\r\n @keydown=\"${this.#handleKeyDown}\"\r\n >\r\n <slot name=\"avatar\" @slotchange=\"${this.#handleAvatarSlotChange}\"></slot>\r\n ${this._renderIcon()}\r\n <div class=\"label\">${this._renderSlot()}</div>\r\n <div class=\"touch\" aria-hidden=\"true\"></div>\r\n </div>\r\n ${this._renderTrailingIcon()}\r\n </div>\r\n </div>`;\r\n }\r\n\r\n /** @internal @inheritdoc */\r\n protected override _renderTrailingIcon(): unknown {\r\n return this.removable\r\n ? html`<span role=\"gridcell\" class=\"remove\">\r\n <m3e-icon-button\r\n class=\"remove-button\"\r\n aria-label=\"${this.removeLabel}\"\r\n size=\"extra-small\"\r\n tabindex=\"-1\"\r\n ?disabled=\"${this.disabled}\"\r\n ?disabled-interactive=\"${this.disabledInteractive}\"\r\n @click=\"${this.#handleRemoveButtonClick}\"\r\n >\r\n <slot name=\"remove-icon\">\r\n <svg class=\"remove-icon\" viewBox=\"0 -960 960 960\" fill=\"currentColor\">\r\n <path\r\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\"\r\n />\r\n </svg>\r\n </slot>\r\n </m3e-icon-button>\r\n </span>`\r\n : nothing;\r\n }\r\n\r\n /** @private */\r\n #handleAvatarSlotChange(e: Event): void {\r\n this.classList.toggle(\"-with-avatar\", hasAssignedNodes(<HTMLSlotElement>e.target));\r\n }\r\n\r\n /** @private */\r\n #handleRemoveButtonClick(e: Event): void {\r\n e.stopPropagation();\r\n this.dispatchEvent(new Event(\"remove\"));\r\n }\r\n\r\n /** @private */\r\n #handleKeyDown(e: KeyboardEvent): void {\r\n if (this.removable) {\r\n switch (e.key) {\r\n case \"Backspace\":\r\n case \"Delete\":\r\n this.dispatchEvent(new Event(\"remove\"));\r\n break;\r\n }\r\n }\r\n }\r\n}\r\n\r\ninterface M3eInputChipElementEventMap extends HTMLElementEventMap {\r\n remove: Event;\r\n}\r\n\r\nexport interface M3eInputChipElement {\r\n addEventListener<K extends keyof M3eInputChipElementEventMap>(\r\n type: K,\r\n listener: (this: M3eInputChipElement, ev: M3eInputChipElementEventMap[K]) => void,\r\n options?: boolean | AddEventListenerOptions\r\n ): void;\r\n\r\n addEventListener(\r\n type: string,\r\n listener: EventListenerOrEventListenerObject,\r\n options?: boolean | AddEventListenerOptions\r\n ): void;\r\n\r\n removeEventListener<K extends keyof M3eInputChipElementEventMap>(\r\n type: K,\r\n listener: (this: M3eInputChipElement, ev: M3eInputChipElementEventMap[K]) => void,\r\n options?: boolean | EventListenerOptions\r\n ): void;\r\n\r\n removeEventListener(\r\n type: string,\r\n listener: EventListenerOrEventListenerObject,\r\n options?: boolean | EventListenerOptions\r\n ): void;\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-input-chip\": M3eInputChipElement;\r\n }\r\n}\r\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import { css, CSSResultGroup, html, PropertyValues } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n ConstraintValidation,\r\n DesignToken,\r\n Dirty,\r\n Disabled,\r\n FormAssociated,\r\n formValue,\r\n Required,\r\n RequiredConstraintValidation,\r\n Role,\r\n Touched,\r\n} from \"@m3e/core\";\r\n\r\nimport { ListKeyManager, ListManager } from \"@m3e/core/a11y\";\r\nimport { FormFieldControl } from \"@m3e/form-field\";\r\n\r\nimport { M3eChipSetElement } from \"./ChipSetElement\";\r\nimport { M3eInputChipElement } from \"./InputChipElement\";\r\n\r\n/**\r\n * A container that transforms user input into a cohesive set of interactive chips, supporting entry, editing, and removal of discrete values.\r\n *\r\n * @description\r\n * The `m3e-input-chip-set` component enables users to input, display, and manage a collection of discrete\r\n * values as input chips. Designed for expressive, accessible forms, it supports keyboard navigation, validation,\r\n * and seamless integration with form controls. This component is ideal for capturing user-generated tags,\r\n * keywords, or selections in a visually consistent and interactive manner.\r\n *\r\n * @example\r\n * The following example illustrates the use of the `m3e-input-chip-set` inside a `m3e-form-field`.\r\n * In this example, the `input` slot specifies the `input` element used to add input chips and the\r\n * field label's `for` attribute targets the `input` element to provide an accessible label.\r\n * ```html\r\n * <m3e-form-field>\r\n * <label slot=\"label\" for=\"keywords\">Keywords</label>\r\n * <m3e-input-chip-set aria-label=\"Enter keywords\">\r\n * <input id=\"keywords\" slot=\"input\" placeholder=\"New keyword...\" />\r\n * </m3e-input-chip-set>\r\n * </m3e-form-field>\r\n * ```\r\n *\r\n * @tag m3e-input-chip-set\r\n *\r\n * @slot - Renders the chips of the set.\r\n * @slot input - Renders the input element used to add new chips to the set.\r\n *\r\n * @attr disabled - Whether the element is disabled.\r\n * @attr name - The name that identifies the element when submitting the associated form.\r\n * @attr required - Whether a value is required for the element.\r\n * @attr vertical - Whether the element is oriented vertically.\r\n *\r\n * @fires change - Emitted when a chip is added to, or removed from, the set.\r\n *\r\n * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.\r\n */\r\n@customElement(\"m3e-input-chip-set\")\r\nexport class M3eInputChipSetElement\r\n extends RequiredConstraintValidation(\r\n Required(\r\n ConstraintValidation(Dirty(Touched(FormAssociated(Disabled(AttachInternals(Role(M3eChipSetElement, \"grid\")))))))\r\n )\r\n )\r\n implements FormFieldControl\r\n{\r\n static {\r\n const lightDomStyle = new CSSStyleSheet();\r\n lightDomStyle.replaceSync(\r\n css`\r\n m3e-input-chip-set [slot=\"input\"]::placeholder {\r\n user-select: none;\r\n color: currentColor;\r\n transition: opacity ${DesignToken.motion.duration.extraLong1};\r\n }\r\n m3e-input-chip-set:not(:focus-within) [slot=\"input\"]::placeholder {\r\n opacity: 0;\r\n transition: 0s;\r\n }\r\n m3e-input-chip-set:hover [slot=\"input\"]::placeholder {\r\n transition: 0s;\r\n }\r\n @media (prefers-reduced-motion) {\r\n m3e-input-chip-set [slot=\"input\"]::placeholder {\r\n transition: none !important;\r\n }\r\n }\r\n `.toString()\r\n );\r\n\r\n document.adoptedStyleSheets = [...document.adoptedStyleSheets, lightDomStyle];\r\n }\r\n\r\n /** The styles of the element. */\r\n static override styles: CSSResultGroup = [\r\n M3eChipSetElement.styles,\r\n css`\r\n ::slotted([slot=\"input\"]) {\r\n outline: unset;\r\n border: unset;\r\n background-color: transparent;\r\n box-shadow: none;\r\n font-family: inherit;\r\n font-size: inherit;\r\n line-height: initial;\r\n letter-spacing: inherit;\r\n color: var(--_form-field-input-color, inherit);\r\n flex: 1 1 auto;\r\n min-width: 0;\r\n padding: unset;\r\n }\r\n ::slotted(m3e-input-chip) {\r\n min-width: 0;\r\n }\r\n span[role=\"row\"],\r\n span[role=\"gridcell\"] {\r\n display: contents;\r\n }\r\n `,\r\n ];\r\n\r\n /** @private */ readonly #inputChangeHandler = () => this.#handleInputChange();\r\n /** @private */ readonly #inputKeyDownHandler = (e: KeyboardEvent) => this.#handleInputKeyDown(e);\r\n /** @private */ readonly #focusHandler = () => this.#handleFocus();\r\n /** @private */ readonly #focusInHandler = () => this.#handleFocusIn();\r\n /** @private */ readonly #focusOutHandler = () => this.#handleFocusOut();\r\n /** @private */ readonly #chipRemoveHandler = (e: Event) => this.#handleChipRemove(e);\r\n /** @private */ readonly #chipClickHandler = (e: Event) => this.#handleChipClick(e);\r\n\r\n /** @private */ readonly #listManager = new ListManager<M3eInputChipElement>();\r\n /** @private */ readonly #listKeyManager = new ListKeyManager<HTMLElement>()\r\n .onActiveItemChange(() => this.#listKeyManager.activeItem?.focus())\r\n .withHomeAndEnd()\r\n .withSkipPredicate((x) => !x.hasAttribute(\"tabindex\"));\r\n\r\n /** @private */ #ignoreInputChange = false;\r\n /** @private */ #input: HTMLInputElement | null = null;\r\n /** @private */ #tabindex = 0;\r\n\r\n /** The chips of the set. */\r\n get chips(): readonly M3eInputChipElement[] {\r\n // NOTE: query is used instead of the internal list management due to\r\n // validating required state on change to support form-field integration.\r\n return [...this.querySelectorAll(\"m3e-input-chip\")];\r\n }\r\n\r\n /** The values of the set. */\r\n get value(): readonly string[] | null {\r\n const values = this.chips.map((x) => x.value);\r\n return values.length == 0 ? null : values;\r\n }\r\n\r\n /** @inheritdoc @internal */\r\n override get [formValue]() {\r\n const values = this.value;\r\n if (!values) return null;\r\n const data = new FormData();\r\n for (const value of values) {\r\n data.append(this.name, value);\r\n }\r\n return data;\r\n }\r\n\r\n /** @inheritdoc */\r\n get shouldLabelFloat(): boolean {\r\n return this.chips.length > 0;\r\n }\r\n\r\n /** @inheritdoc */\r\n onContainerClick(): void {\r\n this.#input?.focus();\r\n }\r\n\r\n /** @inheritdoc */\r\n override connectedCallback(): void {\r\n super.connectedCallback();\r\n\r\n this.closest(\"m3e-form-field\")?.notifyControlStateChange();\r\n\r\n this.#tabindex = Number.parseInt(this.getAttribute(\"tabindex\") ?? \"0\");\r\n this.addEventListener(\"focus\", this.#focusHandler);\r\n this.addEventListener(\"focusin\", this.#focusInHandler);\r\n this.addEventListener(\"focusout\", this.#focusOutHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n override disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n\r\n this.removeEventListener(\"focus\", this.#focusHandler);\r\n this.removeEventListener(\"focusin\", this.#focusInHandler);\r\n this.removeEventListener(\"focusout\", this.#focusOutHandler);\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override firstUpdated(_changedProperties: PropertyValues): void {\r\n super.firstUpdated(_changedProperties);\r\n\r\n if (!this.hasAttribute(\"tabindex\")) {\r\n this.setAttribute(\"tabindex\", `${this.#tabindex}`);\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override update(changedProperties: PropertyValues<this>): void {\r\n super.update(changedProperties);\r\n\r\n if (changedProperties.has(\"vertical\")) {\r\n this.ariaOrientation = null;\r\n }\r\n if (changedProperties.has(\"disabled\")) {\r\n this.#listManager.items.forEach((x) => (x.disabled = this.disabled));\r\n if (this.#input) {\r\n this.#input.disabled = this.disabled;\r\n }\r\n }\r\n }\r\n\r\n /** @inheritdoc */\r\n protected override render(): unknown {\r\n return html`<slot @keydown=\"${this.#handleKeyDown}\" @slotchange=\"${this.#handleSlotChange}\"></slot>\r\n <span role=\"row\">\r\n <span role=\"gridcell\"><slot name=\"input\" @slotchange=\"${this.#handleInputSlotChange}\"></slot></span>\r\n </span> `;\r\n }\r\n\r\n /** @private */\r\n #handleKeyDown(e: KeyboardEvent): void {\r\n this.#listKeyManager.onKeyDown(e);\r\n }\r\n\r\n /** @private */\r\n async #handleSlotChange(): Promise<void> {\r\n const { added, removed } = this.#listManager.setItems([...this.querySelectorAll(\"m3e-input-chip\")]);\r\n\r\n for (const chip of added) {\r\n if (chip.isUpdatePending) {\r\n await chip.updateComplete;\r\n }\r\n if (this.disabled) {\r\n chip.disabled = true;\r\n }\r\n chip.addEventListener(\"remove\", this.#chipRemoveHandler);\r\n chip.cell.addEventListener(\"click\", this.#chipClickHandler);\r\n }\r\n\r\n removed.forEach((x) => {\r\n x.removeEventListener(\"remove\", this.#chipRemoveHandler);\r\n x.cell.removeEventListener(\"click\", this.#chipClickHandler);\r\n });\r\n\r\n this.#listKeyManager.setItems(\r\n this.#listManager.items.flatMap((x) => (x.removeButton ? [x.cell, x.removeButton] : [x.cell]))\r\n );\r\n if (!this.#listKeyManager.activeItem) {\r\n this.#listKeyManager.updateActiveItem(this.#listKeyManager.items.find((x) => x.hasAttribute(\"tabindex\")));\r\n }\r\n }\r\n\r\n /** @private */\r\n #handleInputSlotChange(): void {\r\n const input = this.querySelector(\"input\");\r\n if (this.#input) {\r\n this.#input.removeEventListener(\"change\", this.#inputChangeHandler);\r\n this.#input.removeEventListener(\"keydown\", this.#inputKeyDownHandler);\r\n }\r\n\r\n this.#input = input;\r\n if (this.#input) {\r\n this.#input.disabled = this.disabled;\r\n this.#input.addEventListener(\"change\", this.#inputChangeHandler);\r\n this.#input.addEventListener(\"keydown\", this.#inputKeyDownHandler);\r\n\r\n const property = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, \"value\")!;\r\n Object.defineProperty(input, \"value\", {\r\n get: () => property.get?.call(input),\r\n set: (value: string) => {\r\n property.set?.call(input, value);\r\n if (this.#input === input && !this.#ignoreInputChange) {\r\n this.#handleInputChange();\r\n }\r\n },\r\n });\r\n }\r\n }\r\n\r\n /** @private */\r\n #handleFocus(): void {\r\n setTimeout(() => (this.#listKeyManager.activeItem ?? this.#input)?.focus());\r\n }\r\n\r\n /** @private */\r\n #handleFocusIn(): void {\r\n this.setAttribute(\"tabindex\", \"-1\");\r\n }\r\n\r\n /** @private */\r\n #handleFocusOut(): void {\r\n this.setAttribute(\"tabindex\", `${this.#tabindex}`);\r\n }\r\n\r\n /** @private */\r\n #handleChipRemove(e: Event): void {\r\n const chip = <M3eInputChipElement>e.target;\r\n const index = this.#listManager.items.indexOf(chip);\r\n const nextChip = this.#listManager.items.find((x, y) => y > index && !x.disabled && x.removable);\r\n\r\n chip.remove();\r\n\r\n this.#listKeyManager.setActiveItem(this.#listKeyManager.items.find((x) => x === nextChip?.removeButton));\r\n if (!this.#listKeyManager.activeItem) {\r\n this.#input?.focus();\r\n }\r\n\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n }\r\n\r\n /** @private */\r\n #handleChipClick(e: Event): void {\r\n this.#listKeyManager.updateActiveItem(e.composedPath().find((x) => x instanceof M3eInputChipElement)?.cell);\r\n }\r\n\r\n /** @private */\r\n #handleInputChange(): void {\r\n const value = this.#input?.value;\r\n if (!value) return;\r\n\r\n setTimeout(() => {\r\n const value = this.#input?.value;\r\n if (!value) return;\r\n\r\n const chip = document.createElement(\"m3e-input-chip\");\r\n chip.removable = true;\r\n chip.appendChild(document.createTextNode(value));\r\n this.appendChild(chip);\r\n\r\n if (this.#input) {\r\n try {\r\n this.#ignoreInputChange = true;\r\n this.#input.value = \"\";\r\n } finally {\r\n this.#ignoreInputChange = false;\r\n }\r\n }\r\n\r\n this.dispatchEvent(new Event(\"change\", { bubbles: true }));\r\n });\r\n }\r\n\r\n /** @private */\r\n #handleInputKeyDown(e: KeyboardEvent): void {\r\n if (e.key === \"Backspace\" && !this.#input?.value) {\r\n const item = [...this.#listManager.items]\r\n .reverse()\r\n .find((x) => !x.disabled && !x.disabledInteractive && x.removable);\r\n if (item) {\r\n item.dispatchEvent(new Event(\"remove\"));\r\n }\r\n }\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-input-chip-set\": M3eInputChipSetElement;\r\n }\r\n}\r\n","import { nothing } from \"lit\";\r\nimport { customElement } from \"lit/decorators.js\";\r\n\r\nimport {\r\n AttachInternals,\r\n Disabled,\r\n DisabledInteractive,\r\n Focusable,\r\n FormSubmitter,\r\n KeyboardClick,\r\n LinkButton,\r\n Role,\r\n} from \"@m3e/core\";\r\n\r\nimport { M3eChipElement } from \"./ChipElement\";\r\n\r\n/**\r\n * A chip used to help narrow a user's intent by presenting dynamically generated suggestions, such as\r\n * suggested responses or search filters.\r\n *\r\n * @description\r\n * The `m3e-suggestion-chip` component presents a suggestion chip, offering users contextually relevant\r\n * actions or responses. It is designed for dynamic suggestion scenarios, such as search filters or\r\n * smart replies, and supports accessibility, keyboard interaction, and expressive state styling in line\r\n * with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual\r\n * differentiation and contextual emphasis.\r\n *\r\n * @example\r\n * The following example illustrates use of the `m3e-suggestion-chip`. In this example, multiple chips are nested inside\r\n * a `m3e-chip-set` container to create a cohesive set of chips. The container is given the ARIA `role=\"group\"` to convey\r\n * to assistive technologies that the chips are part of a related set of element.\r\n * ```html\r\n * <m3e-chip-set role=\"group\" aria-label=\"Suggested replies\">\r\n * <m3e-suggestion-chip>Sounds good!</m3e-suggestion-chip>\r\n * <m3e-suggestion-chip>Can you clarify?</m3e-suggestion-chip>\r\n * <m3e-suggestion-chip>Let's do it.</m3e-suggestion-chip>\r\n * <m3e-suggestion-chip>Maybe later.</m3e-suggestion-chip>\r\n * </m3e-chip-set>\r\n * ```\r\n *\r\n * @tag m3e-suggestion-chip\r\n *\r\n * @slot - Renders the label of the chip.\r\n * @slot icon - Renders an icon before the chip's label.\r\n *\r\n * @attr disabled - A value indicating whether the element is disabled.\r\n * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.\r\n * @attr download - A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.\r\n * @attr href - The URL to which the link button points.\r\n * @attr name - The name of the element, submitted as a pair with the element's `value` as part of form data, when the element is used to submit a form.\r\n * @attr rel - The relationship between the `target` of the link button and the document.\r\n * @attr target - The target of the link button.\r\n * @attr type - The type of the element.\r\n * @attr value - A string representing the value of the chip.\r\n * @attr variant - The appearance variant of the chip.\r\n *\r\n * @fires click - Emitted when the element is clicked.\r\n *\r\n * @cssprop --m3e-chip-container-shape - Border radius of the chip container.\r\n * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.\r\n * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.\r\n * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.\r\n * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.\r\n * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.\r\n * @cssprop --m3e-chip-label-text-color - Label text color in default state.\r\n * @cssprop --m3e-chip-icon-color - Icon color in default state.\r\n * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.\r\n * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.\r\n * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.\r\n * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.\r\n * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.\r\n * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.\r\n * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.\r\n * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.\r\n * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.\r\n * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.\r\n * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.\r\n * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.\r\n * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.\r\n * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.\r\n * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.\r\n * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.\r\n * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.\r\n * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.\r\n */\r\n@customElement(\"m3e-suggestion-chip\")\r\nexport class M3eSuggestionChipElement extends FormSubmitter(\r\n AttachInternals(\r\n LinkButton(KeyboardClick(Focusable(DisabledInteractive(Disabled(Role(M3eChipElement, \"button\")))))),\r\n true\r\n )\r\n) {\r\n /** @internal @inheritdoc */\r\n protected override _renderTrailingIcon(): unknown {\r\n return nothing;\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n \"m3e-suggestion-chip\": M3eSuggestionChipElement;\r\n }\r\n}\r\n"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__classPrivateFieldGet","receiver","state","kind","f","TypeError","has","call","value","get","__classPrivateFieldSet","set","SuppressedError","t","e","o","addInitializer","customElements","define","globalThis","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","s","Symbol","WeakMap","n$3","constructor","this","_$cssResult$","Error","cssText","styleSheet","replaceSync","toString","cssRules","n","is","h","getOwnPropertyNames","getOwnPropertySymbols","getPrototypeOf","a","trustedTypes","l","emptyScript","p","reactiveElementPolyfillSupport","u","toAttribute","Boolean","Array","JSON","stringify","fromAttribute","Number","parse","b","attribute","type","String","converter","reflect","useDefault","hasChanged","metadata","litPropertyMetadata","y","HTMLElement","_$Ei","push","observedAttributes","finalize","_$Eh","keys","createProperty","hasOwnProperty","create","wrapped","elementProperties","noAccessor","getPropertyDescriptor","requestUpdate","configurable","enumerable","getPropertyOptions","Map","finalized","properties","_$Eu","elementStyles","finalizeStyles","styles","isArray","Set","flat","reverse","unshift","toLowerCase","super","_$Ep","isUpdatePending","hasUpdated","_$Em","_$Ev","_$ES","Promise","enableUpdating","_$AL","_$E_","forEach","addController","_$EO","add","renderRoot","isConnected","hostConnected","removeController","delete","size","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","adoptedStyleSheets","map","document","createElement","litNonce","setAttribute","textContent","appendChild","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$ET","removeAttribute","_$Ej","hasAttribute","C","_$EP","_$Eq","reject","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$EM","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","mode","ReactiveElement","reactiveElementVersions","name","init","querySelector","M3eChipElement","LitElement","_M3eChipElement_value","_M3eChipElement_textContent","variant","_changedProperties","role","_elevation","_focusRing","_stateLayer","_ripple","x","htmlFor","attach","render","disabled","isDisabledMixin","disabledInteractive","isDisabledInteractiveMixin","html","isLinkButtonMixin","renderPseudoLink","nothing","_M3eChipElement_instances","_M3eChipElement_renderContent","_renderIcon","_M3eChipElement_handleIconSlotChange","_renderTrailingIcon","_M3eChipElement_handleTrailingIconSlotChange","_renderSlot","_M3eChipElement_handleSlotChange","classList","toggle","hasAssignedNodes","getTextContent","css","unsafeCSS","DesignToken","motion","duration","short4","easing","standard","shape","corner","small","density","calc","typescale","label","large","fontSize","fontWeight","lineHeight","tracking","color","surfaceContainerLow","elevation","level1","level2","outlineVariant","onSurface","primary","level0","query","property","customElement","M3eAssistChipElement","FormSubmitter","AttachInternals","LinkButton","KeyboardClick","Focusable","DisabledInteractive","Disabled","Role","M3eChipSetElement","Vertical","M3eFilterChipElement","Selected","_M3eFilterChipElement_clickHandler","addEventListener","removeEventListener","changedProperties","closest","selectionManager","notifySelectionChange","defaultPrevented","selected","dispatchEvent","Event","bubbles","composed","cancelable","onSecondaryContainer","spring","fastEffects","onSurfaceVariant","secondaryContainer","M3eFilterChipSetElement","Labelled","Dirty","Touched","FormAssociated","_a","SelectionManager","onActiveItemChange","activeItem","focus","withWrap","multi","hideSelectionIndicator","chips","items","selectedItems","values","_M3eFilterChipSetElement_instances","WeakSet","formValue","data","FormData","append","vertical","undefined","ariaMultiSelectable","disableRovingTabIndex","_M3eFilterChipSetElement_handleSlotChange","_M3eFilterChipSetElement_handleKeyDown","_M3eFilterChipSetElement_handleChange","added","setItems","querySelectorAll","onKeyDown","stopPropagation","createPolicy","createHTML","Math","random","toFixed","slice","createComment","v","_","m","RegExp","g","$","T","for","E","A","createTreeWalker","P","V","lastIndex","exec","test","startsWith","N","strings","_$litType$","parts","el","currentNode","content","firstChild","replaceWith","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","split","index","ctor","H","I","L","k","tagName","indexOf","innerHTML","S","_$Co","_$Cl","_$litDirective$","_$AO","_$AT","_$AS","M","_$AV","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","R","nextSibling","z","_$AI","_$Cv","_$AH","_$AA","_$AB","options","startNode","endNode","_$AR","iterator","O","insertBefore","createTextNode","_$AC","_$AP","remove","setConnected","element","fill","j","toggleAttribute","capture","once","passive","handleEvent","host","litHtmlPolyfillSupport","litHtmlVersions","M3eInputChipElement","EventAttribute","removable","removeLabel","ifDefined","_M3eInputChipElement_instances","_M3eInputChipElement_handleKeyDown","_M3eInputChipElement_handleAvatarSlotChange","_M3eInputChipElement_handleRemoveButtonClick","M3eInputChipSetElement","RequiredConstraintValidation","Required","ConstraintValidation","_M3eInputChipSetElement_inputChangeHandler","_M3eInputChipSetElement_instances","_M3eInputChipSetElement_handleInputChange","_M3eInputChipSetElement_inputKeyDownHandler","_M3eInputChipSetElement_focusHandler","_M3eInputChipSetElement_handleFocus","_M3eInputChipSetElement_focusInHandler","_M3eInputChipSetElement_handleFocusIn","_M3eInputChipSetElement_focusOutHandler","_M3eInputChipSetElement_handleFocusOut","_M3eInputChipSetElement_chipRemoveHandler","_M3eInputChipSetElement_chipClickHandler","_M3eInputChipSetElement_listManager","ListManager","_M3eInputChipSetElement_listKeyManager","ListKeyManager","withHomeAndEnd","withSkipPredicate","_M3eInputChipSetElement_ignoreInputChange","_M3eInputChipSetElement_input","_M3eInputChipSetElement_tabindex","shouldLabelFloat","onContainerClick","notifyControlStateChange","parseInt","ariaOrientation","_M3eInputChipSetElement_handleKeyDown","_M3eInputChipSetElement_handleSlotChange","_M3eInputChipSetElement_handleInputSlotChange","async","removed","chip","cell","flatMap","removeButton","updateActiveItem","find","input","HTMLInputElement","setTimeout","nextChip","setActiveItem","composedPath","item","lightDomStyle","extraLong1","M3eSuggestionChipElement"],"mappings":";;;;;+rBAsDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAWa,MAAIL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAChJ,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,CAChE,CAmOO,SAASO,EAAuBC,EAAUC,EAAOC,EAAMC,GAC1D,GAAa,MAATD,IAAiBC,EAAG,MAAM,IAAIC,UAAU,iDAC5C,GAAqB,mBAAVH,EAAuBD,IAAaC,IAAUE,GAAKF,EAAMI,IAAIL,GAAW,MAAM,IAAII,UAAU,4EACvG,MAAgB,MAATF,EAAeC,EAAa,MAATD,EAAeC,EAAEG,KAAKN,GAAYG,EAAIA,EAAEI,MAAQN,EAAMO,IAAIR,EACxF,CAEO,SAASS,EAAuBT,EAAUC,EAAOM,EAAOL,EAAMC,GACjE,GAAa,MAATD,EAAc,MAAM,IAAIE,UAAU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