@covalent/components 8.0.0 → 8.1.0-beta.1

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 (93) hide show
  1. package/_commonjsHelpers-2367a3a2.js +1 -0
  2. package/_commonjsHelpers-de2741aa.mjs +28 -0
  3. package/action-ribbon.mjs +2 -2
  4. package/alert.mjs +2 -2
  5. package/app-shell/app-shell.d.ts +2 -0
  6. package/app-shell/app-shell.d.ts.map +1 -1
  7. package/app-shell.js +1 -1
  8. package/app-shell.mjs +22 -12
  9. package/button.mjs +3 -3
  10. package/check-list-item.js +8 -6
  11. package/check-list-item.mjs +34 -28
  12. package/checkbox.mjs +4 -4
  13. package/chip-13877bb8.mjs +3116 -0
  14. package/chip-3c12a33d.js +493 -0
  15. package/chip-set.js +76 -0
  16. package/chip-set.mjs +532 -0
  17. package/chip.js +1 -0
  18. package/chip.mjs +12 -0
  19. package/circular-progress.mjs +1 -1
  20. package/code-snippet.js +13 -1
  21. package/code-snippet.mjs +12252 -7
  22. package/{dialog-3ca1b701.mjs → dialog-3444dd4d.mjs} +8 -8
  23. package/dialog.mjs +2 -2
  24. package/drawer.mjs +2 -2
  25. package/empty-state.js +1 -1
  26. package/empty-state.mjs +3 -3
  27. package/expansion-panel-item.js +25 -0
  28. package/expansion-panel-item.mjs +107 -0
  29. package/expansion-panel.js +7 -0
  30. package/expansion-panel.mjs +59 -0
  31. package/{form-element-ffcf59ff.mjs → form-element-7353b3c4.mjs} +1 -1
  32. package/formfield.js +80 -0
  33. package/formfield.mjs +277 -0
  34. package/{foundation-39dc72d2.mjs → foundation-eff81c1e.mjs} +1 -1
  35. package/icon-button.mjs +2 -2
  36. package/icon-check-toggle.mjs +4 -4
  37. package/icon-radio-toggle.mjs +4 -4
  38. package/icon.mjs +2 -2
  39. package/index.js +1 -568
  40. package/index.mjs +113 -3728
  41. package/linear-progress.mjs +4 -4
  42. package/list/check-list-item.d.ts.map +1 -1
  43. package/list/radio-list-item.d.ts.map +1 -1
  44. package/{mwc-list-item.css-b0009fc7.mjs → list-item-1fc0d619.mjs} +3 -1
  45. package/{mwc-list-item.css-25adc0c4.js → list-item-209613bf.js} +2 -1
  46. package/list-item.js +7 -1
  47. package/list-item.mjs +29 -8
  48. package/list.js +1 -1
  49. package/list.mjs +5 -5
  50. package/menu.mjs +5 -5
  51. package/{mwc-checkbox-base-f10fd709.mjs → mwc-checkbox-base-afeeff16.mjs} +3 -3
  52. package/{mwc-drawer-base-135de8a5.mjs → mwc-drawer-base-0c2b4060.mjs} +1 -1
  53. package/{mwc-icon-bf656cf5.mjs → mwc-icon-28b10c70.mjs} +1 -1
  54. package/{mwc-line-ripple-directive-b24a914e.mjs → mwc-line-ripple-directive-315e996d.mjs} +1 -1
  55. package/{mwc-list-base-76e37212.mjs → mwc-list-base-8aa5bfd8.mjs} +2 -2
  56. package/{mwc-list-item-base-fe4398c3.mjs → mwc-list-item-base-bf1a075b.mjs} +2 -2
  57. package/{mwc-menu-base-c4bc88ea.mjs → mwc-menu-base-872420a4.mjs} +2 -2
  58. package/{mwc-radio-base-a374fbd9.mjs → mwc-radio-base-18a887dd.mjs} +3 -3
  59. package/{mwc-slider.css-8b6f275c.mjs → mwc-slider.css-03537082.mjs} +3 -3
  60. package/{mwc-tab-base-be0c887f.mjs → mwc-tab-base-cd1570e4.mjs} +2 -2
  61. package/{mwc-top-app-bar-base-55da3fe4.mjs → mwc-top-app-bar-base-c7380903.mjs} +1 -1
  62. package/nav-list-item.js +2 -2
  63. package/nav-list-item.mjs +29 -29
  64. package/package.json +16 -1
  65. package/radio-list-item.js +8 -6
  66. package/radio-list-item.mjs +36 -30
  67. package/radio.mjs +4 -4
  68. package/{ripple-handlers-f37f21cf.mjs → ripple-handlers-38a43e50.mjs} +1 -1
  69. package/select.mjs +8 -8
  70. package/side-sheet.mjs +2 -2
  71. package/slider-range.mjs +4 -4
  72. package/slider.mjs +8 -8
  73. package/snackbar.mjs +1 -1
  74. package/style.css +1 -1
  75. package/switch.mjs +3 -3
  76. package/tab-bar.mjs +3 -3
  77. package/tab.mjs +3 -3
  78. package/textarea.mjs +4 -4
  79. package/textfield/textfield.d.ts +1 -0
  80. package/textfield/textfield.d.ts.map +1 -1
  81. package/{textfield-63d1859a.mjs → textfield-a2e37241.mjs} +3 -3
  82. package/textfield.js +1 -1
  83. package/textfield.mjs +7 -4
  84. package/toolbar.mjs +2 -2
  85. package/tooltip.mjs +1 -1
  86. package/top-app-bar-fixed.mjs +2 -2
  87. package/top-app-bar.mjs +2 -2
  88. package/tree-list-item.mjs +2 -2
  89. package/{tslib.es6-f3e988cd.mjs → tslib.es6-226581a4.mjs} +5 -5
  90. package/code-snippet-2137b11c.js +0 -13
  91. package/code-snippet-ccca324f.mjs +0 -12278
  92. package/list-item-04b6ffa1.js +0 -8
  93. package/list-item-1c4f9e23.mjs +0 -32
@@ -0,0 +1,493 @@
1
+ "use strict";var Vt=Object.defineProperty;var qt=(t,e,i)=>e in t?Vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var h=(t,e,i)=>(qt(t,typeof e!="symbol"?e+"":e,i),i);const S=require("./query-assigned-elements-f623705d.js"),Yt=require("./utils-a8190a39.js"),u=require("./tslib.es6-98719205.js"),L=require("./property-57f6f6fe.js"),Xt=require("./query-680f1868.js"),Zt=require("./class-map-b5efe8da.js"),_=require("./_commonjsHelpers-2367a3a2.js");var C={};/**
2
+ * @license
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */const w={};function F(t){if(t!==w)throw new Error("Bad secret")}/**
5
+ * @license
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ */class Tt{constructor(){h(this,"brand")}}class Dt extends Tt{constructor(i,n){super();h(this,"privateDoNotAccessOrElseWrappedAttrPrefix");process.env.NODE_ENV!=="production"&&F(n),this.privateDoNotAccessOrElseWrappedAttrPrefix=i}toString(){return this.privateDoNotAccessOrElseWrappedAttrPrefix}}function Rt(t){return new Dt(t,w)}function Ct(t){if(t instanceof Dt)return t.privateDoNotAccessOrElseWrappedAttrPrefix;{let e="";throw process.env.NODE_ENV!=="production"&&(e="Unexpected type when unwrapping SafeAttributePrefix"),new Error(e)}}const Jt=Object.freeze(Object.defineProperty({__proto__:null,SafeAttributePrefix:Tt,createAttributePrefix:Rt,unwrapAttributePrefix:Ct},Symbol.toStringTag,{value:"Module"}));/**
8
+ * @license
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */function B(t,e,i){if(!Array.isArray(t)||!Array.isArray(t.raw)||!e&&t.length!==1)throw new TypeError(i)}/**
11
+ * @license
12
+ * SPDX-License-Identifier: Apache-2.0
13
+ */const Qt=["href","rel","src","srcdoc","action","formaction","sandbox","cite","poster","icon"];/**
14
+ * @license
15
+ * SPDX-License-Identifier: Apache-2.0
16
+ */function te(t){process.env.NODE_ENV!=="production"&&B(t,!0,"safeAttr is a template literal tag function and should be called using the tagged template syntax. For example, safeAttr`foo`;");const e=t[0].toLowerCase();if(process.env.NODE_ENV!=="production"){if(e.indexOf("on")===0||"on".indexOf(e)===0)throw new Error(`Prefix '${t[0]}' does not guarantee the attribute to be safe as it is also a prefix for event handler attributesPlease use 'addEventListener' to set event handlers.`);Qt.forEach(i=>{if(i.indexOf(e)===0)throw new Error(`Prefix '${t[0]}' does not guarantee the attribute to be safe as it is also a prefix for the security sensitive attribute '${i}'. Please use native or safe DOM APIs to set the attribute.`)})}return Rt(e)}const ee=Object.freeze(Object.defineProperty({__proto__:null,safeAttrPrefix:te},Symbol.toStringTag,{value:"Module"})),ie=_.getAugmentedNamespace(ee);/**
17
+ * @license
18
+ * SPDX-License-Identifier: Apache-2.0
19
+ */let It="google#safe";function ne(){if(typeof window<"u")return window.trustedTypes}function G(){return It!==""?ne()??null:null}let V;function tt(){var t;if(V===void 0)try{V=((t=G())==null?void 0:t.createPolicy(It,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))??null}catch{V=null}return V}/**
20
+ * @license
21
+ * SPDX-License-Identifier: Apache-2.0
22
+ */class et{constructor(e,i){h(this,"privateDoNotAccessOrElseWrappedHtml");process.env.NODE_ENV!=="production"&&F(i),this.privateDoNotAccessOrElseWrappedHtml=e}toString(){return this.privateDoNotAccessOrElseWrappedHtml.toString()}}function Nt(t,e){return e??new et(t,w)}const re=typeof window!==void 0?window.TrustedHTML:void 0,Ot=re??et;function x(t){var i;const e=t;return Nt(e,(i=tt())==null?void 0:i.createHTML(e))}const oe=(()=>{var t;return Nt("",(t=G())==null?void 0:t.emptyHTML)})();function ae(t){return t instanceof Ot}function it(t){var e;if((e=G())!=null&&e.isHTML(t))return t;if(t instanceof et)return t.privateDoNotAccessOrElseWrappedHtml;{let i="";throw process.env.NODE_ENV!=="production"&&(i="Unexpected type when unwrapping SafeHtml"),new Error(i)}}const ce=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_HTML:oe,SafeHtml:Ot,createHtml:x,isHtml:ae,unwrapHtml:it},Symbol.toStringTag,{value:"Module"}));/**
23
+ * @license
24
+ * SPDX-License-Identifier: Apache-2.0
25
+ */class nt{constructor(e,i){h(this,"privateDoNotAccessOrElseWrappedResourceUrl");process.env.NODE_ENV!=="production"&&F(i),this.privateDoNotAccessOrElseWrappedResourceUrl=e}toString(){return this.privateDoNotAccessOrElseWrappedResourceUrl.toString()}}const se=typeof window!==void 0?window.TrustedScriptURL:void 0,Pt=se??nt;function H(t){var n;const e=t;return((n=tt())==null?void 0:n.createScriptURL(e))??new nt(e,w)}function le(t){return t instanceof Pt}function J(t){var e;if((e=G())!=null&&e.isScriptURL(t))return t;if(t instanceof nt)return t.privateDoNotAccessOrElseWrappedResourceUrl;{let i="";throw process.env.NODE_ENV!=="production"&&(i="Unexpected type when unwrapping TrustedResourceUrl"),new Error(i)}}const ue=Object.freeze(Object.defineProperty({__proto__:null,TrustedResourceUrl:Pt,createResourceUrl:H,isResourceUrl:le,unwrapResourceUrl:J},Symbol.toStringTag,{value:"Module"}));/**
26
+ * @license
27
+ * SPDX-License-Identifier: Apache-2.0
28
+ */class rt{constructor(e,i){h(this,"privateDoNotAccessOrElseWrappedScript");process.env.NODE_ENV!=="production"&&F(i),this.privateDoNotAccessOrElseWrappedScript=e}toString(){return this.privateDoNotAccessOrElseWrappedScript.toString()}}function Lt(t,e){return e??new rt(t,w)}const de=typeof window!==void 0?window.TrustedScript:void 0,Ft=de??rt;function W(t){var i;const e=t;return Lt(e,(i=tt())==null?void 0:i.createScript(e))}const pe=(()=>{var t;return Lt("",(t=G())==null?void 0:t.emptyScript)})();function he(t){return t instanceof Ft}function Q(t){var e;if((e=G())!=null&&e.isScript(t))return t;if(t instanceof rt)return t.privateDoNotAccessOrElseWrappedScript;{let i="";throw process.env.NODE_ENV!=="production"&&(i="Unexpected type when unwrapping SafeScript"),new Error(i)}}const me=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_SCRIPT:pe,SafeScript:Ft,createScript:W,isScript:he,unwrapScript:Q},Symbol.toStringTag,{value:"Module"}));/**
29
+ * @license
30
+ * SPDX-License-Identifier: Apache-2.0
31
+ */function fe(t,e={}){let i=z(t);return e.preserveSpaces&&(i=i.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),e.preserveNewlines&&(i=i.replace(/(\r\n|\n|\r)/g,"<br>")),e.preserveTabs&&(i=i.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),x(i)}function ve(t,e={}){const i=Q(t).toString();let n="<script";return e.id&&(n+=` id="${z(e.id)}"`),e.nonce&&(n+=` nonce="${z(e.nonce)}"`),e.type&&(n+=` type="${z(e.type)}"`),n+=`>${i}<\/script>`,x(n)}function ge(t,e,i){const n=J(t).toString();let r=`<script src="${z(n)}"`;return e&&(r+=" async"),i&&(r+=` nonce="${z(i)}"`),r+="><\/script>",x(r)}function z(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function _e(t){return x(t.map(it).join(""))}const ye=Object.freeze(Object.defineProperty({__proto__:null,concatHtmls:_e,createScript:ve,createScriptSrc:ge,htmlEscape:fe},Symbol.toStringTag,{value:"Module"})),be=_.getAugmentedNamespace(ye);/**
32
+ * @license
33
+ * SPDX-License-Identifier: Apache-2.0
34
+ */function Ae(t){let e;try{e=new URL(t)}catch{return"https:"}return e.protocol}const Ee=["data:","http:","https:","mailto:","ftp:"];function Se(t){const e=Ae(t);return e!==void 0&&Ee.indexOf(e.toLowerCase())!==-1?t:"about:invalid#zClosurez"}/**
35
+ * @license
36
+ * SPDX-License-Identifier: Apache-2.0
37
+ */class xt{constructor(){h(this,"brand")}}class ot extends xt{constructor(i,n){super();h(this,"privateDoNotAccessOrElseWrappedStyle");process.env.NODE_ENV!=="production"&&F(n),this.privateDoNotAccessOrElseWrappedStyle=i}toString(){return this.privateDoNotAccessOrElseWrappedStyle}}function at(t){return new ot(t,w)}function we(t){return t instanceof ot}function Ut(t){if(t instanceof ot)return t.privateDoNotAccessOrElseWrappedStyle;{let e="";throw process.env.NODE_ENV!=="production"&&(e="Unexpected type when unwrapping SafeStyle"),new Error(e)}}const Te=Object.freeze(Object.defineProperty({__proto__:null,SafeStyle:xt,createStyle:at,isStyle:we,unwrapStyle:Ut},Symbol.toStringTag,{value:"Module"}));/**
38
+ * @license
39
+ * SPDX-License-Identifier: Apache-2.0
40
+ */function De(t,e){Ce(t)&&Re(t),t.innerHTML=it(e)}function Mt(t,e,i,n){if(t.length===0)throw new Error("No prefixes are provided");const r=t.map(a=>Ct(a)),o=i.toLowerCase();if(r.every(a=>o.indexOf(a)!==0))throw new Error(`Attribute "${i}" does not match any of the allowed prefixes.`);e.setAttribute(i,n)}function Re(t){if(t.tagName.toLowerCase()==="script")throw new Error("Use setTextContent with a SafeScript.");if(t.tagName.toLowerCase()==="style")throw new Error("Use setTextContent with a SafeStyleSheet.")}function Ce(t){return t.tagName!==void 0}/**
41
+ * @license
42
+ * SPDX-License-Identifier: Apache-2.0
43
+ */function Ie(t){const e=document.createElement("template"),i=x(t);return De(e,i),e.content}/**
44
+ * @license
45
+ * SPDX-License-Identifier: Apache-2.0
46
+ */function dt(t){const e=t.nodeName;return typeof e=="string"?e:"FORM"}function pt(t){return t.nodeType===Node.TEXT_NODE}function ht(t){const e=t.nodeType;return e===Node.ELEMENT_NODE||typeof e!="number"}/**
47
+ * @license
48
+ * SPDX-License-Identifier: Apache-2.0
49
+ */class O{constructor(e,i,n,r){h(this,"allowedElements");h(this,"elementPolicies");h(this,"allowedGlobalAttributes");h(this,"globalAttributePolicies");this.allowedElements=e,this.elementPolicies=i,this.allowedGlobalAttributes=n,this.globalAttributePolicies=r}isAllowedElement(e){return e.toLowerCase()!=="form"&&(this.allowedElements.has(e)||this.elementPolicies.has(e))}getAttributePolicy(e,i){const n=this.elementPolicies.get(i);return n!=null&&n.has(e)?n.get(e):this.allowedGlobalAttributes.has(e)?{policyAction:d.KEEP}:this.globalAttributePolicies.get(e)||{policyAction:d.DROP}}}var d;(function(t){t[t.DROP=0]="DROP",t[t.KEEP=1]="KEEP",t[t.KEEP_AND_SANITIZE_URL=2]="KEEP_AND_SANITIZE_URL",t[t.KEEP_AND_NORMALIZE=3]="KEEP_AND_NORMALIZE",t[t.KEEP_AND_SANITIZE_STYLE=4]="KEEP_AND_SANITIZE_STYLE"})(d||(d={}));/**
50
+ * @license
51
+ * SPDX-License-Identifier: Apache-2.0
52
+ */const zt=new O(new Set(["ARTICLE","SECTION","NAV","ASIDE","H1","H2","H3","H4","H5","H6","HEADER","FOOTER","ADDRESS","P","HR","PRE","BLOCKQUOTE","OL","UL","LH","LI","DL","DT","DD","FIGURE","FIGCAPTION","MAIN","DIV","EM","STRONG","SMALL","S","CITE","Q","DFN","ABBR","RUBY","RB","RT","RTC","RP","DATA","TIME","CODE","VAR","SAMP","KBD","SUB","SUP","I","B","U","MARK","BDI","BDO","SPAN","BR","WBR","INS","DEL","PICTURE","PARAM","TRACK","MAP","TABLE","CAPTION","COLGROUP","COL","TBODY","THEAD","TFOOT","TR","TD","TH","SELECT","DATALIST","OPTGROUP","OPTION","OUTPUT","PROGRESS","METER","FIELDSET","LEGEND","DETAILS","SUMMARY","MENU","DIALOG","SLOT","CANVAS","FONT","CENTER"]),new Map([["A",new Map([["href",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["AREA",new Map([["href",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["LINK",new Map([["href",{policyAction:d.KEEP_AND_SANITIZE_URL,conditions:new Map([["rel",new Set(["alternate","author","bookmark","canonical","cite","help","icon","license","next","prefetch","dns-prefetch","prerender","preconnect","preload","prev","search","subresource"])]])}]])],["SOURCE",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["IMG",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["VIDEO",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["AUDIO",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])]]),new Set(["title","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-current","aria-disabled","aria-dropeffect","aria-expanded","aria-haspopup","aria-hidden","aria-invalid","aria-label","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","alt","align","autocapitalize","autocomplete","autocorrect","autofocus","autoplay","bgcolor","border","cellpadding","cellspacing","checked","color","cols","colspan","controls","datetime","disabled","download","draggable","enctype","face","formenctype","frameborder","height","hreflang","hidden","ismap","label","lang","loop","max","maxlength","media","minlength","min","multiple","muted","nonce","open","placeholder","preload","rel","required","reversed","role","rows","rowspan","selected","shape","size","sizes","slot","span","spellcheck","start","step","summary","translate","type","valign","value","width","wrap","itemscope","itemtype","itemid","itemprop","itemref"]),new Map([["dir",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["dir",new Set(["auto","ltr","rtl"])]])}],["async",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["async",new Set(["async"])]])}],["cite",{policyAction:d.KEEP_AND_SANITIZE_URL}],["loading",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["loading",new Set(["eager","lazy"])]])}],["poster",{policyAction:d.KEEP_AND_SANITIZE_URL}],["target",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["target",new Set(["_self","_blank"])]])}]]));/**
53
+ * @license
54
+ * SPDX-License-Identifier: Apache-2.0
55
+ */class ct{constructor(e,i){h(this,"sanitizerTable");h(this,"changes",[]);this.sanitizerTable=e,F(i)}sanitizeAssertUnchanged(e){this.changes=[];const i=this.sanitize(e);if(this.changes.length!==0){let n="";throw process.env.NODE_ENV!=="production"&&(n=`Unexpected change to HTML value as a result of sanitization. Input: "${e}", sanitized output: "${i}"
56
+ List of changes:${this.changes.join(`
57
+ `)}`),new Error(n)}return i}sanitize(e){const i=document.createElement("span");i.appendChild(this.sanitizeToFragment(e));let n=new XMLSerializer().serializeToString(i);return n=n.slice(n.indexOf(">")+1,n.lastIndexOf("</")),x(n)}sanitizeToFragment(e){const i=Ie(e),n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,c=>this.nodeFilter(c),!1);let r=n.nextNode();const o=document.createDocumentFragment();let a=o;for(;r!==null;){let c;if(pt(r))c=this.sanitizeTextNode(r);else if(ht(r))c=this.sanitizeElementNode(r);else throw new Error("Node is not of type text or element");if(a.appendChild(c),r=n.firstChild(),r)a=c;else for(;!(r=n.nextSibling())&&(r=n.parentNode());)a=a.parentNode}return o}sanitizeTextNode(e){return document.createTextNode(e.data)}sanitizeElementNode(e){const i=dt(e),n=document.createElement(i),r=e.attributes;for(const{name:o,value:a}of r){const c=this.sanitizerTable.getAttributePolicy(o,i);if(!this.satisfiesAllConditions(c.conditions,r)){this.recordChange(`Not all conditions satisfied for attribute: ${o}.`);continue}switch(c.policyAction){case d.KEEP:n.setAttribute(o,a);break;case d.KEEP_AND_SANITIZE_URL:const l=Se(a);l!==a&&this.recordChange(`Url in attribute ${o} was modified during sanitization. Original url:"${a}" was sanitized to: "${l}"`),n.setAttribute(o,l);break;case d.KEEP_AND_NORMALIZE:n.setAttribute(o,a.toLowerCase());break;case d.KEEP_AND_SANITIZE_STYLE:n.setAttribute(o,a);break;case d.DROP:this.recordChange(`Attribute: ${o} was dropped`);break;default:Le(c.policyAction,"Unhandled AttributePolicyAction case")}}return n}nodeFilter(e){if(pt(e))return NodeFilter.FILTER_ACCEPT;if(!ht(e))return NodeFilter.FILTER_REJECT;const i=dt(e);return i===null?(this.recordChange(`Node name was null for node: ${e}`),NodeFilter.FILTER_REJECT):this.sanitizerTable.isAllowedElement(i)?NodeFilter.FILTER_ACCEPT:(this.recordChange(`Element: ${i} was dropped`),NodeFilter.FILTER_REJECT)}recordChange(e){process.env.NODE_ENV!=="production"?this.changes.push(e):this.changes.length===0&&this.changes.push("")}satisfiesAllConditions(e,i){var n;if(!e)return!0;for(const[r,o]of e){const a=(n=i.getNamedItem(r))==null?void 0:n.value;if(a&&!o.has(a))return!1}return!0}}const st=(()=>new ct(zt,w))();function Ne(t){return st.sanitize(t)}function Oe(t){return st.sanitizeAssertUnchanged(t)}function Pe(t){return st.sanitizeToFragment(t)}function Le(t,e=`unexpected value ${t}!`){throw new Error(e)}const Fe=Object.freeze(Object.defineProperty({__proto__:null,HtmlSanitizerImpl:ct,sanitizeHtml:Ne,sanitizeHtmlAssertUnchanged:Oe,sanitizeHtmlToFragment:Pe},Symbol.toStringTag,{value:"Module"})),xe=_.getAugmentedNamespace(Fe);/**
58
+ * @license
59
+ * SPDX-License-Identifier: Apache-2.0
60
+ */class Ue{constructor(){h(this,"sanitizerTable");h(this,"calledBuild",!1);this.sanitizerTable=zt}onlyAllowElements(e){const i=new Set,n=new Map;for(let r of e){if(r=r.toUpperCase(),!this.sanitizerTable.isAllowedElement(r))throw new Error(`Element: ${r}, is not allowed by html5_contract.textpb`);const o=this.sanitizerTable.elementPolicies.get(r);o!==void 0?n.set(r,o):i.add(r)}return this.sanitizerTable=new O(i,n,this.sanitizerTable.allowedGlobalAttributes,this.sanitizerTable.globalAttributePolicies),this}onlyAllowAttributes(e){const i=new Set,n=new Map,r=new Map;for(const o of e)this.sanitizerTable.allowedGlobalAttributes.has(o)&&i.add(o),this.sanitizerTable.globalAttributePolicies.has(o)&&n.set(o,this.sanitizerTable.globalAttributePolicies.get(o));for(const[o,a]of this.sanitizerTable.elementPolicies.entries()){const c=new Map;for(const[l,g]of a.entries())e.has(l)&&c.set(l,g);r.set(o,c)}return this.sanitizerTable=new O(this.sanitizerTable.allowedElements,r,i,n),this}allowDataAttributes(e){const i=new Set(this.sanitizerTable.allowedGlobalAttributes);for(const n of e){if(n.indexOf("data-")!==0)throw new Error(`data attribute: ${n} does not begin with the prefix "data-"`);i.add(n)}return this.sanitizerTable=new O(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,i,this.sanitizerTable.globalAttributePolicies),this}allowStyleAttributes(){const e=new Map(this.sanitizerTable.globalAttributePolicies);return e.set("style",{policyAction:d.KEEP_AND_SANITIZE_STYLE}),this.sanitizerTable=new O(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,this.sanitizerTable.allowedGlobalAttributes,e),this}allowClassAttributes(){const e=new Map(this.sanitizerTable.globalAttributePolicies);return e.set("class",{policyAction:d.KEEP}),this.sanitizerTable=new O(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,this.sanitizerTable.allowedGlobalAttributes,e),this}allowIdAttributes(){const e=new Map(this.sanitizerTable.globalAttributePolicies);return e.set("id",{policyAction:d.KEEP}),this.sanitizerTable=new O(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,this.sanitizerTable.allowedGlobalAttributes,e),this}build(){if(this.calledBuild)throw new Error("this sanitizer has already called build");return this.calledBuild=!0,new ct(this.sanitizerTable,w)}}const Me=Object.freeze(Object.defineProperty({__proto__:null,HtmlSanitizerBuilder:Ue},Symbol.toStringTag,{value:"Module"})),ze=_.getAugmentedNamespace(Me);/**
61
+ * @license
62
+ * SPDX-License-Identifier: Apache-2.0
63
+ */function He(t){if(!(/^https:\/\//.test(t)||/^\/\//.test(t)))return!1;const e=t.indexOf("//")+2,i=t.indexOf("/",e);if(i<=e)throw new Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");const n=t.substring(e,i);if(!/^[0-9a-z.:-]+$/i.test(n))throw new Error("The origin contains unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(n))throw new Error("Invalid port number.");if(!/(^|\.)[a-z][^.]*$/i.test(n))throw new Error("The top-level domain must start with a letter.");return!0}function ke(t){if(!/^about:blank/.test(t))return!1;if(t!=="about:blank"&&!/^about:blank#/.test(t))throw new Error("The about url is invalid.");return!0}function Be(t){if(!/^\//.test(t))return!1;if(t==="/"||t.length>1&&t[1]!=="/"&&t[1]!=="\\")return!0;throw new Error("The path start in the url is invalid.")}function Ge(t,...e){if(process.env.NODE_ENV!=="production"&&B(t,!0,"trustedResourceUrl is a template literal tag function and can only be called as such (e.g. trustedResourceUrl`/somepath.js`)"),e.length===0)return H(t[0]);const i=t[0].toLowerCase();if(process.env.NODE_ENV!=="production"){if(/^data:/.test(i))throw new Error("Data URLs cannot have expressions in the template literal input.");if(!He(i)&&!Be(i)&&!ke(i))throw new Error("Trying to interpolate expressions in an unsupported url format.")}const n=[t[0]];for(let r=0;r<e.length;r++)n.push(encodeURIComponent(e[r])),n.push(t[r+1]);return H(n.join(""))}function je(t,e){let i=J(t).toString();if(/#/.test(i)){let r="";throw process.env.NODE_ENV!=="production"&&(r=`Found a hash in url (${i}), appending not supported`),new Error(r)}let n=/\?/.test(i)?"&":"?";return e.forEach((r,o)=>{const a=r instanceof Array?r:[r];for(let c=0;c<a.length;c++){const l=a[c];l!=null&&(i+=n+encodeURIComponent(o)+"="+encodeURIComponent(String(l)),n="&")}}),H(i)}const We=/[^#]*/;function Ke(t,e){const i=J(t).toString();return H(We.exec(i)[0]+"#"+e)}function $e(t){const e=Q(t).toString(),i=new Blob([e],{type:"text/javascript"});return H(URL.createObjectURL(i))}const Ve=Object.freeze(Object.defineProperty({__proto__:null,appendParams:je,blobUrlFromScript:$e,replaceFragment:Ke,trustedResourceUrl:Ge},Symbol.toStringTag,{value:"Module"})),qe=_.getAugmentedNamespace(Ve);/**
64
+ * @license
65
+ * SPDX-License-Identifier: Apache-2.0
66
+ */function Ye(t){return process.env.NODE_ENV!=="production"&&B(t,!1,"safeScript is a template literal tag function that only accepts template literals without expressions. For example, safeScript`foo`;"),W(t[0])}function Xe(t){return W(t.map(Q).join(""))}function Ht(t){return W(JSON.stringify(t).replace(/</g,"\\x3c"))}function Ze(t,...e){if(process.env.NODE_ENV!=="production"){if(e.some(i=>i!==""))throw new Error("safeScriptWithArgs only allows empty string expressions to enable inline comments.");B(t,!0,"safeScriptWithArgs is a template literal tag function that only accepts template literals. For example, safeScriptWithArgs`foo`;")}return(...i)=>{const n=i.map(r=>Ht(r).toString());return W(`(${t.join("")})(${n.join(",")})`)}}const Je=Object.freeze(Object.defineProperty({__proto__:null,concatScripts:Xe,safeScript:Ye,safeScriptWithArgs:Ze,scriptFromJson:Ht},Symbol.toStringTag,{value:"Module"})),Qe=_.getAugmentedNamespace(Je);/**
67
+ * @license
68
+ * SPDX-License-Identifier: Apache-2.0
69
+ */function ti(t){process.env.NODE_ENV!=="production"&&B(t,!1,"safeStyle is a template literal tag function that only accepts template literals without expressions. For example, safeStyle`foo`;");const e=t[0];if(process.env.NODE_ENV!=="production"){if(/[<>]/.test(e))throw new Error("Forbidden characters in style string: "+e);if(!/;$/.test(e))throw new Error('Style string does not end with ";": '+e);if(!/:/.test(e))throw new Error('Style string should contain one or more ":": '+e)}return at(e)}function ei(t){return at(t.map(Ut).join(""))}const ii=Object.freeze(Object.defineProperty({__proto__:null,concatStyles:ei,safeStyle:ti},Symbol.toStringTag,{value:"Module"})),ni=_.getAugmentedNamespace(ii);/**
70
+ * @license
71
+ * SPDX-License-Identifier: Apache-2.0
72
+ */class kt{constructor(){h(this,"brand")}}class lt extends kt{constructor(i,n){super();h(this,"privateDoNotAccessOrElseWrappedStyleSheet");process.env.NODE_ENV!=="production"&&F(n),this.privateDoNotAccessOrElseWrappedStyleSheet=i}toString(){return this.privateDoNotAccessOrElseWrappedStyleSheet}}function ut(t){return new lt(t,w)}function ri(t){return t instanceof lt}function Bt(t){if(t instanceof lt)return t.privateDoNotAccessOrElseWrappedStyleSheet;{let e="";throw process.env.NODE_ENV!=="production"&&(e="Unexpected type when unwrapping SafeStyleSheet"),new Error(e)}}const oi=Object.freeze(Object.defineProperty({__proto__:null,SafeStyleSheet:kt,createStyleSheet:ut,isStyleSheet:ri,unwrapStyleSheet:Bt},Symbol.toStringTag,{value:"Module"}));/**
73
+ * @license
74
+ * SPDX-License-Identifier: Apache-2.0
75
+ */function ai(t){process.env.NODE_ENV!=="production"&&B(t,!1,"safeStyleSheet is a template literal tag function that only accepts template literals without expressions. For example, safeStyleSheet`foo`;");const e=t[0];if(process.env.NODE_ENV!=="production"&&/[<>]/.test(e))throw new Error("Forbidden characters in styleSheet string: "+e);return ut(e)}function ci(t){return ut(t.map(Bt).join(""))}const si=Object.freeze(Object.defineProperty({__proto__:null,concatStyleSheets:ci,safeStyleSheet:ai},Symbol.toStringTag,{value:"Module"})),li=_.getAugmentedNamespace(si),ui=_.getAugmentedNamespace(Jt),di=_.getAugmentedNamespace(ce),pi=_.getAugmentedNamespace(ue),hi=_.getAugmentedNamespace(me),mi=_.getAugmentedNamespace(Te),fi=_.getAugmentedNamespace(oi);(function(t){/**
76
+ * @license
77
+ * SPDX-License-Identifier: Apache-2.0
78
+ */Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapStyleSheet=t.SafeStyleSheet=t.isStyleSheet=t.unwrapStyle=t.SafeStyle=t.isStyle=t.unwrapScript=t.SafeScript=t.isScript=t.EMPTY_SCRIPT=t.unwrapResourceUrl=t.TrustedResourceUrl=t.isResourceUrl=t.unwrapHtml=t.SafeHtml=t.isHtml=t.EMPTY_HTML=t.unwrapAttributePrefix=t.SafeAttributePrefix=t.safeStyleSheet=t.concatStyleSheets=t.safeStyle=t.concatStyles=t.scriptFromJson=t.safeScriptWithArgs=t.safeScript=t.concatScripts=t.trustedResourceUrl=t.replaceFragment=t.blobUrlFromScript=t.appendParams=t.HtmlSanitizerBuilder=t.sanitizeHtmlToFragment=t.sanitizeHtmlAssertUnchanged=t.sanitizeHtml=t.htmlEscape=t.createScriptSrc=t.createScript=t.concatHtmls=t.safeAttrPrefix=void 0;var e=ie;Object.defineProperty(t,"safeAttrPrefix",{enumerable:!0,get:function(){return e.safeAttrPrefix}});var i=be;Object.defineProperty(t,"concatHtmls",{enumerable:!0,get:function(){return i.concatHtmls}}),Object.defineProperty(t,"createScript",{enumerable:!0,get:function(){return i.createScript}}),Object.defineProperty(t,"createScriptSrc",{enumerable:!0,get:function(){return i.createScriptSrc}}),Object.defineProperty(t,"htmlEscape",{enumerable:!0,get:function(){return i.htmlEscape}});var n=xe;Object.defineProperty(t,"sanitizeHtml",{enumerable:!0,get:function(){return n.sanitizeHtml}}),Object.defineProperty(t,"sanitizeHtmlAssertUnchanged",{enumerable:!0,get:function(){return n.sanitizeHtmlAssertUnchanged}}),Object.defineProperty(t,"sanitizeHtmlToFragment",{enumerable:!0,get:function(){return n.sanitizeHtmlToFragment}});var r=ze;Object.defineProperty(t,"HtmlSanitizerBuilder",{enumerable:!0,get:function(){return r.HtmlSanitizerBuilder}});var o=qe;Object.defineProperty(t,"appendParams",{enumerable:!0,get:function(){return o.appendParams}}),Object.defineProperty(t,"blobUrlFromScript",{enumerable:!0,get:function(){return o.blobUrlFromScript}}),Object.defineProperty(t,"replaceFragment",{enumerable:!0,get:function(){return o.replaceFragment}}),Object.defineProperty(t,"trustedResourceUrl",{enumerable:!0,get:function(){return o.trustedResourceUrl}});var a=Qe;Object.defineProperty(t,"concatScripts",{enumerable:!0,get:function(){return a.concatScripts}}),Object.defineProperty(t,"safeScript",{enumerable:!0,get:function(){return a.safeScript}}),Object.defineProperty(t,"safeScriptWithArgs",{enumerable:!0,get:function(){return a.safeScriptWithArgs}}),Object.defineProperty(t,"scriptFromJson",{enumerable:!0,get:function(){return a.scriptFromJson}});var c=ni;Object.defineProperty(t,"concatStyles",{enumerable:!0,get:function(){return c.concatStyles}}),Object.defineProperty(t,"safeStyle",{enumerable:!0,get:function(){return c.safeStyle}});var l=li;Object.defineProperty(t,"concatStyleSheets",{enumerable:!0,get:function(){return l.concatStyleSheets}}),Object.defineProperty(t,"safeStyleSheet",{enumerable:!0,get:function(){return l.safeStyleSheet}});var g=ui;Object.defineProperty(t,"SafeAttributePrefix",{enumerable:!0,get:function(){return g.SafeAttributePrefix}}),Object.defineProperty(t,"unwrapAttributePrefix",{enumerable:!0,get:function(){return g.unwrapAttributePrefix}});var b=di;Object.defineProperty(t,"EMPTY_HTML",{enumerable:!0,get:function(){return b.EMPTY_HTML}}),Object.defineProperty(t,"isHtml",{enumerable:!0,get:function(){return b.isHtml}}),Object.defineProperty(t,"SafeHtml",{enumerable:!0,get:function(){return b.SafeHtml}}),Object.defineProperty(t,"unwrapHtml",{enumerable:!0,get:function(){return b.unwrapHtml}});var R=pi;Object.defineProperty(t,"isResourceUrl",{enumerable:!0,get:function(){return R.isResourceUrl}}),Object.defineProperty(t,"TrustedResourceUrl",{enumerable:!0,get:function(){return R.TrustedResourceUrl}}),Object.defineProperty(t,"unwrapResourceUrl",{enumerable:!0,get:function(){return R.unwrapResourceUrl}});var N=hi;Object.defineProperty(t,"EMPTY_SCRIPT",{enumerable:!0,get:function(){return N.EMPTY_SCRIPT}}),Object.defineProperty(t,"isScript",{enumerable:!0,get:function(){return N.isScript}}),Object.defineProperty(t,"SafeScript",{enumerable:!0,get:function(){return N.SafeScript}}),Object.defineProperty(t,"unwrapScript",{enumerable:!0,get:function(){return N.unwrapScript}});var U=mi;Object.defineProperty(t,"isStyle",{enumerable:!0,get:function(){return U.isStyle}}),Object.defineProperty(t,"SafeStyle",{enumerable:!0,get:function(){return U.SafeStyle}}),Object.defineProperty(t,"unwrapStyle",{enumerable:!0,get:function(){return U.unwrapStyle}});var M=fi;Object.defineProperty(t,"isStyleSheet",{enumerable:!0,get:function(){return M.isStyleSheet}}),Object.defineProperty(t,"SafeStyleSheet",{enumerable:!0,get:function(){return M.SafeStyleSheet}}),Object.defineProperty(t,"unwrapStyleSheet",{enumerable:!0,get:function(){return M.unwrapStyleSheet}})})(C);/**
79
+ * @license
80
+ * Copyright 2020 Google Inc.
81
+ *
82
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
83
+ * of this software and associated documentation files (the "Software"), to deal
84
+ * in the Software without restriction, including without limitation the rights
85
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
86
+ * copies of the Software, and to permit persons to whom the Software is
87
+ * furnished to do so, subject to the following conditions:
88
+ *
89
+ * The above copyright notice and this permission notice shall be included in
90
+ * all copies or substantial portions of the Software.
91
+ *
92
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
93
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
94
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
95
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
96
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
97
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
98
+ * THE SOFTWARE.
99
+ */var vi=function(){function t(){this.rafIDs=new Map}return t.prototype.request=function(e,i){var n=this;this.cancel(e);var r=requestAnimationFrame(function(o){n.rafIDs.delete(e),i(o)});this.rafIDs.set(e,r)},t.prototype.cancel=function(e){var i=this.rafIDs.get(e);i&&(cancelAnimationFrame(i),this.rafIDs.delete(e))},t.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach(function(i,n){e.cancel(n)})},t.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach(function(i,n){e.push(n)}),e},t}();/**
100
+ * @license
101
+ * Copyright 2016 Google Inc.
102
+ *
103
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
104
+ * of this software and associated documentation files (the "Software"), to deal
105
+ * in the Software without restriction, including without limitation the rights
106
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
107
+ * copies of the Software, and to permit persons to whom the Software is
108
+ * furnished to do so, subject to the following conditions:
109
+ *
110
+ * The above copyright notice and this permission notice shall be included in
111
+ * all copies or substantial portions of the Software.
112
+ *
113
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
114
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
115
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
116
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
117
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
118
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
119
+ * THE SOFTWARE.
120
+ */var K=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
121
+ * @license
122
+ * Copyright 2020 Google Inc.
123
+ *
124
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
125
+ * of this software and associated documentation files (the "Software"), to deal
126
+ * in the Software without restriction, including without limitation the rights
127
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
128
+ * copies of the Software, and to permit persons to whom the Software is
129
+ * furnished to do so, subject to the following conditions:
130
+ *
131
+ * The above copyright notice and this permission notice shall be included in
132
+ * all copies or substantial portions of the Software.
133
+ *
134
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
135
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
136
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
137
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
138
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
139
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
140
+ * THE SOFTWARE.
141
+ */var s={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},f=new Set;f.add(s.BACKSPACE);f.add(s.ENTER);f.add(s.SPACEBAR);f.add(s.PAGE_UP);f.add(s.PAGE_DOWN);f.add(s.END);f.add(s.HOME);f.add(s.ARROW_LEFT);f.add(s.ARROW_UP);f.add(s.ARROW_RIGHT);f.add(s.ARROW_DOWN);f.add(s.DELETE);f.add(s.ESCAPE);f.add(s.TAB);var y={BACKSPACE:8,ENTER:13,SPACEBAR:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ESCAPE:27,TAB:9},v=new Map;v.set(y.BACKSPACE,s.BACKSPACE);v.set(y.ENTER,s.ENTER);v.set(y.SPACEBAR,s.SPACEBAR);v.set(y.PAGE_UP,s.PAGE_UP);v.set(y.PAGE_DOWN,s.PAGE_DOWN);v.set(y.END,s.END);v.set(y.HOME,s.HOME);v.set(y.ARROW_LEFT,s.ARROW_LEFT);v.set(y.ARROW_UP,s.ARROW_UP);v.set(y.ARROW_RIGHT,s.ARROW_RIGHT);v.set(y.ARROW_DOWN,s.ARROW_DOWN);v.set(y.DELETE,s.DELETE);v.set(y.ESCAPE,s.ESCAPE);v.set(y.TAB,s.TAB);var T=new Set;T.add(s.PAGE_UP);T.add(s.PAGE_DOWN);T.add(s.END);T.add(s.HOME);T.add(s.ARROW_LEFT);T.add(s.ARROW_UP);T.add(s.ARROW_RIGHT);T.add(s.ARROW_DOWN);function Gt(t){var e=t.key;if(f.has(e))return e;var i=v.get(t.keyCode);return i||s.UNKNOWN}function gi(t){return T.has(Gt(t))}/**
142
+ * @license
143
+ * Copyright 2020 Google Inc.
144
+ *
145
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
146
+ * of this software and associated documentation files (the "Software"), to deal
147
+ * in the Software without restriction, including without limitation the rights
148
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
149
+ * copies of the Software, and to permit persons to whom the Software is
150
+ * furnished to do so, subject to the following conditions:
151
+ *
152
+ * The above copyright notice and this permission notice shall be included in
153
+ * all copies or substantial portions of the Software.
154
+ *
155
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
156
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
157
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
158
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
159
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
160
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
161
+ * THE SOFTWARE.
162
+ */var j;(function(t){t.PRIMARY_ACTION="mdc-evolution-chip__action--primary",t.TRAILING_ACTION="mdc-evolution-chip__action--trailing",t.CHIP_ROOT="mdc-evolution-chip"})(j||(j={}));var E;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.CLICK=1]="CLICK",t[t.BACKSPACE_KEY=2]="BACKSPACE_KEY",t[t.DELETE_KEY=3]="DELETE_KEY",t[t.SPACEBAR_KEY=4]="SPACEBAR_KEY",t[t.ENTER_KEY=5]="ENTER_KEY"})(E||(E={}));exports.MDCChipActionType=void 0;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.PRIMARY=1]="PRIMARY",t[t.TRAILING=2]="TRAILING"})(exports.MDCChipActionType||(exports.MDCChipActionType={}));var k;(function(t){t.INTERACTION="MDCChipAction:interaction",t.NAVIGATION="MDCChipAction:navigation"})(k||(k={}));exports.MDCChipActionFocusBehavior=void 0;(function(t){t[t.FOCUSABLE=0]="FOCUSABLE",t[t.FOCUSABLE_AND_FOCUSED=1]="FOCUSABLE_AND_FOCUSED",t[t.NOT_FOCUSABLE=2]="NOT_FOCUSABLE"})(exports.MDCChipActionFocusBehavior||(exports.MDCChipActionFocusBehavior={}));var m;(function(t){t.ARIA_DISABLED="aria-disabled",t.ARIA_HIDDEN="aria-hidden",t.ARIA_SELECTED="aria-selected",t.DATA_DELETABLE="data-mdc-deletable",t.DISABLED="disabled",t.ROLE="role",t.TAB_INDEX="tabindex"})(m||(m={}));/**
163
+ * @license
164
+ * Copyright 2016 Google Inc.
165
+ *
166
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
167
+ * of this software and associated documentation files (the "Software"), to deal
168
+ * in the Software without restriction, including without limitation the rights
169
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
170
+ * copies of the Software, and to permit persons to whom the Software is
171
+ * furnished to do so, subject to the following conditions:
172
+ *
173
+ * The above copyright notice and this permission notice shall be included in
174
+ * all copies or substantial portions of the Software.
175
+ *
176
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
177
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
178
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
179
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
180
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
181
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
182
+ * THE SOFTWARE.
183
+ */var p;(function(t){t.SELECTING="mdc-evolution-chip--selecting",t.DESELECTING="mdc-evolution-chip--deselecting",t.SELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--selecting-with-primary-icon",t.DESELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--deselecting-with-primary-icon",t.DISABLED="mdc-evolution-chip--disabled",t.ENTER="mdc-evolution-chip--enter",t.EXIT="mdc-evolution-chip--exit",t.SELECTED="mdc-evolution-chip--selected",t.HIDDEN="mdc-evolution-chip--hidden",t.WITH_PRIMARY_ICON="mdc-evolution-chip--with-primary-icon"})(p||(p={}));exports.MDCChipEvents=void 0;(function(t){t.INTERACTION="MDCChip:interaction",t.NAVIGATION="MDCChip:navigation",t.ANIMATION="MDCChip:animation"})(exports.MDCChipEvents||(exports.MDCChipEvents={}));var Z;(function(t){t.DATA_REMOVED_ANNOUNCEMENT="data-mdc-removed-announcement",t.DATA_ADDED_ANNOUNCEMENT="data-mdc-added-announcement"})(Z||(Z={}));exports.MDCChipAnimation=void 0;(function(t){t.ENTER="mdc-evolution-chip-enter",t.EXIT="mdc-evolution-chip-exit"})(exports.MDCChipAnimation||(exports.MDCChipAnimation={}));/**
184
+ * @license
185
+ * Copyright 2020 Google Inc.
186
+ *
187
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
188
+ * of this software and associated documentation files (the "Software"), to deal
189
+ * in the Software without restriction, including without limitation the rights
190
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
191
+ * copies of the Software, and to permit persons to whom the Software is
192
+ * furnished to do so, subject to the following conditions:
193
+ *
194
+ * The above copyright notice and this permission notice shall be included in
195
+ * all copies or substantial portions of the Software.
196
+ *
197
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
198
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
199
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
200
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
201
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
202
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
203
+ * THE SOFTWARE.
204
+ */var P;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT"})(P||(P={}));var A;(function(t){t.SELECTION="selection",t.EXIT="exit"})(A||(A={}));var _i=function(t){u.__extends(e,t);function e(i){var n=t.call(this,u.__assign(u.__assign({},e.defaultAdapter),i))||this;return n.animFrame=new vi,n}return Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},emitEvent:function(){},getActions:function(){return[]},getAttribute:function(){return null},getElementID:function(){return""},getOffsetWidth:function(){return 0},hasClass:function(){return!1},isActionDisabled:function(){return!1},isActionFocusable:function(){return!1},isActionSelectable:function(){return!1},isActionSelected:function(){return!1},isRTL:function(){return!1},removeClass:function(){},setActionDisabled:function(){},setActionFocus:function(){},setActionSelected:function(){},setStyleProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.animFrame.cancelAll()},e.prototype.getElementID=function(){return this.adapter.getElementID()},e.prototype.setDisabled=function(i){var n,r,o=this.getActions();try{for(var a=u.__values(o),c=a.next();!c.done;c=a.next()){var l=c.value;this.adapter.setActionDisabled(l,i)}}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}i?this.adapter.addClass(p.DISABLED):this.adapter.removeClass(p.DISABLED)},e.prototype.isDisabled=function(){var i,n,r=this.getActions();try{for(var o=u.__values(r),a=o.next();!a.done;a=o.next()){var c=a.value;if(this.adapter.isActionDisabled(c))return!0}}catch(l){i={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return!1},e.prototype.getActions=function(){return this.adapter.getActions()},e.prototype.isActionFocusable=function(i){return this.adapter.isActionFocusable(i)},e.prototype.isActionSelectable=function(i){return this.adapter.isActionSelectable(i)},e.prototype.isActionSelected=function(i){return this.adapter.isActionSelected(i)},e.prototype.setActionFocus=function(i,n){this.adapter.setActionFocus(i,n)},e.prototype.setActionSelected=function(i,n){this.adapter.setActionSelected(i,n),this.animateSelection(n)},e.prototype.startAnimation=function(i){if(i===exports.MDCChipAnimation.ENTER){this.adapter.addClass(p.ENTER);return}if(i===exports.MDCChipAnimation.EXIT){this.adapter.addClass(p.EXIT);return}},e.prototype.handleAnimationEnd=function(i){var n=this,r=i.animationName;if(r===exports.MDCChipAnimation.ENTER){this.adapter.removeClass(p.ENTER),this.adapter.emitEvent(exports.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:exports.MDCChipAnimation.ENTER,addedAnnouncement:this.getAddedAnnouncement(),isComplete:!0});return}if(r===exports.MDCChipAnimation.EXIT){this.adapter.removeClass(p.EXIT),this.adapter.addClass(p.HIDDEN);var o=this.adapter.getOffsetWidth();this.adapter.setStyleProperty("width",o+"px"),this.animFrame.request(A.EXIT,function(){n.animFrame.request(A.EXIT,function(){n.adapter.setStyleProperty("width","0")})})}},e.prototype.handleTransitionEnd=function(){this.adapter.hasClass(p.HIDDEN)&&this.adapter.emitEvent(exports.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:exports.MDCChipAnimation.EXIT,removedAnnouncement:this.getRemovedAnnouncement(),isComplete:!0})},e.prototype.handleActionInteraction=function(i){var n=i.detail,r=n.source,o=n.actionID,a=this.adapter.isActionSelectable(r),c=this.adapter.isActionSelected(r);this.adapter.emitEvent(exports.MDCChipEvents.INTERACTION,{chipID:this.getElementID(),shouldRemove:this.shouldRemove(n),actionID:o,isSelectable:a,isSelected:c,source:r})},e.prototype.handleActionNavigation=function(i){var n=i.detail,r=n.source,o=n.key,a=this.adapter.isRTL(),c=this.adapter.isActionFocusable(exports.MDCChipActionType.TRAILING),l=this.adapter.isActionFocusable(exports.MDCChipActionType.PRIMARY),g=this.directionFromKey(o,a),b=r===exports.MDCChipActionType.PRIMARY&&g===P.RIGHT&&c,R=r===exports.MDCChipActionType.TRAILING&&g===P.LEFT&&l;if(b){this.navigateActions({from:r,to:exports.MDCChipActionType.TRAILING});return}if(R){this.navigateActions({from:r,to:exports.MDCChipActionType.PRIMARY});return}this.adapter.emitEvent(exports.MDCChipEvents.NAVIGATION,{chipID:this.getElementID(),isRTL:a,source:r,key:o})},e.prototype.directionFromKey=function(i,n){var r=i===s.ARROW_LEFT,o=i===s.ARROW_RIGHT;return!n&&r||n&&o?P.LEFT:!n&&o||n&&r?P.RIGHT:P.UNSPECIFIED},e.prototype.navigateActions=function(i){this.adapter.setActionFocus(i.from,exports.MDCChipActionFocusBehavior.NOT_FOCUSABLE),this.adapter.setActionFocus(i.to,exports.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)},e.prototype.shouldRemove=function(i){var n=i.source,r=i.trigger;return r===E.BACKSPACE_KEY||r===E.DELETE_KEY?!0:n===exports.MDCChipActionType.TRAILING},e.prototype.getRemovedAnnouncement=function(){var i=this.adapter.getAttribute(Z.DATA_REMOVED_ANNOUNCEMENT);return i||void 0},e.prototype.getAddedAnnouncement=function(){var i=this.adapter.getAttribute(Z.DATA_ADDED_ANNOUNCEMENT);return i||void 0},e.prototype.animateSelection=function(i){var n=this;this.resetAnimationStyles(),this.animFrame.request(A.SELECTION,function(){n.animFrame.request(A.SELECTION,function(){n.updateSelectionStyles(i)})})},e.prototype.resetAnimationStyles=function(){this.adapter.removeClass(p.SELECTING),this.adapter.removeClass(p.DESELECTING),this.adapter.removeClass(p.SELECTING_WITH_PRIMARY_ICON),this.adapter.removeClass(p.DESELECTING_WITH_PRIMARY_ICON)},e.prototype.updateSelectionStyles=function(i){var n=this,r=this.adapter.hasClass(p.WITH_PRIMARY_ICON);if(r&&i){this.adapter.addClass(p.SELECTING_WITH_PRIMARY_ICON),this.animFrame.request(A.SELECTION,function(){n.adapter.addClass(p.SELECTED)});return}if(r&&!i){this.adapter.addClass(p.DESELECTING_WITH_PRIMARY_ICON),this.animFrame.request(A.SELECTION,function(){n.adapter.removeClass(p.SELECTED)});return}if(i){this.adapter.addClass(p.SELECTING),this.animFrame.request(A.SELECTION,function(){n.adapter.addClass(p.SELECTED)});return}if(!i){this.adapter.addClass(p.DESELECTING),this.animFrame.request(A.SELECTION,function(){n.adapter.removeClass(p.SELECTED)});return}},e}(K);/**
205
+ * @license
206
+ * Copyright 2016 Google Inc.
207
+ *
208
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
209
+ * of this software and associated documentation files (the "Software"), to deal
210
+ * in the Software without restriction, including without limitation the rights
211
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
212
+ * copies of the Software, and to permit persons to whom the Software is
213
+ * furnished to do so, subject to the following conditions:
214
+ *
215
+ * The above copyright notice and this permission notice shall be included in
216
+ * all copies or substantial portions of the Software.
217
+ *
218
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
224
+ * THE SOFTWARE.
225
+ */function yi(t){return String(t).replace(/\-([a-z])/g,function(e,i){return i.toUpperCase()})}var jt=function(){function t(e,i){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=e,this.initialize.apply(this,u.__spreadArray([],u.__read(n))),this.foundation=i===void 0?this.getDefaultFoundation():i,this.foundation.init(),this.initialSyncWithDOM()}return t.attachTo=function(e){return new t(e,new K({}))},t.prototype.initialize=function(){},t.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},t.prototype.initialSyncWithDOM=function(){},t.prototype.destroy=function(){this.foundation.destroy()},t.prototype.listen=function(e,i,n){this.root.addEventListener(e,i,n)},t.prototype.unlisten=function(e,i,n){this.root.removeEventListener(e,i,n)},t.prototype.emit=function(e,i,n){n===void 0&&(n=!1);var r;typeof CustomEvent=="function"?r=new CustomEvent(e,{bubbles:n,detail:i}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,n,!1,i)),this.root.dispatchEvent(r)},t.prototype.safeSetAttribute=function(e,i,n){if(i.toLowerCase()==="tabindex")e.tabIndex=Number(n);else if(i.indexOf("data-")===0){var r=yi(i.replace(/^data-/,""));e.dataset[r]=n}else Mt([C.safeAttrPrefix(mt||(mt=u.__makeTemplateObject(["aria-"],["aria-"]))),C.safeAttrPrefix(ft||(ft=u.__makeTemplateObject(["role"],["role"])))],e,i,n)},t}(),mt,ft;/**
226
+ * @license
227
+ * Copyright 2018 Google Inc.
228
+ *
229
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
230
+ * of this software and associated documentation files (the "Software"), to deal
231
+ * in the Software without restriction, including without limitation the rights
232
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
233
+ * copies of the Software, and to permit persons to whom the Software is
234
+ * furnished to do so, subject to the following conditions:
235
+ *
236
+ * The above copyright notice and this permission notice shall be included in
237
+ * all copies or substantial portions of the Software.
238
+ *
239
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
240
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
241
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
242
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
243
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
244
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
245
+ * THE SOFTWARE.
246
+ */function bi(t,e){if(t.closest)return t.closest(e);for(var i=t;i;){if(Wt(i,e))return i;i=i.parentElement}return null}function Wt(t,e){var i=t.matches||t.webkitMatchesSelector||t.msMatchesSelector;return i.call(t,e)}/**
247
+ * @license
248
+ * Copyright 2019 Google Inc.
249
+ *
250
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
251
+ * of this software and associated documentation files (the "Software"), to deal
252
+ * in the Software without restriction, including without limitation the rights
253
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
254
+ * copies of the Software, and to permit persons to whom the Software is
255
+ * furnished to do so, subject to the following conditions:
256
+ *
257
+ * The above copyright notice and this permission notice shall be included in
258
+ * all copies or substantial portions of the Software.
259
+ *
260
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
261
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
262
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
263
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
264
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
265
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
266
+ * THE SOFTWARE.
267
+ */function q(t){return t===void 0&&(t=window),Ai(t)?{passive:!0}:!1}function Ai(t){t===void 0&&(t=window);var e=!1;try{var i={get passive(){return e=!0,!1}},n=function(){};t.document.addEventListener("test",n,i),t.document.removeEventListener("test",n,i)}catch{e=!1}return e}/**
268
+ * @license
269
+ * Copyright 2016 Google Inc.
270
+ *
271
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
272
+ * of this software and associated documentation files (the "Software"), to deal
273
+ * in the Software without restriction, including without limitation the rights
274
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
275
+ * copies of the Software, and to permit persons to whom the Software is
276
+ * furnished to do so, subject to the following conditions:
277
+ *
278
+ * The above copyright notice and this permission notice shall be included in
279
+ * all copies or substantial portions of the Software.
280
+ *
281
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
282
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
283
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
284
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
285
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
286
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
287
+ * THE SOFTWARE.
288
+ */var Ei={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Si={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},vt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},Y;function wi(t,e){e===void 0&&(e=!1);var i=t.CSS,n=Y;if(typeof Y=="boolean"&&!e)return Y;var r=i&&typeof i.supports=="function";if(!r)return!1;var o=i.supports("--css-vars","yes"),a=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=o||a,e||(Y=n),n}function Ti(t,e,i){if(!t)return{x:0,y:0};var n=e.x,r=e.y,o=n+i.left,a=r+i.top,c,l;if(t.type==="touchstart"){var g=t;c=g.changedTouches[0].pageX-o,l=g.changedTouches[0].pageY-a}else{var b=t;c=b.pageX-o,l=b.pageY-a}return{x:c,y:l}}/**
289
+ * @license
290
+ * Copyright 2016 Google Inc.
291
+ *
292
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
293
+ * of this software and associated documentation files (the "Software"), to deal
294
+ * in the Software without restriction, including without limitation the rights
295
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
296
+ * copies of the Software, and to permit persons to whom the Software is
297
+ * furnished to do so, subject to the following conditions:
298
+ *
299
+ * The above copyright notice and this permission notice shall be included in
300
+ * all copies or substantial portions of the Software.
301
+ *
302
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
303
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
304
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
305
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
306
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
307
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
308
+ * THE SOFTWARE.
309
+ */var gt=["touchstart","pointerdown","mousedown","keydown"],_t=["touchend","pointerup","mouseup","contextmenu"],X=[],Kt=function(t){u.__extends(e,t);function e(i){var n=t.call(this,u.__assign(u.__assign({},e.defaultAdapter),i))||this;return n.activationAnimationHasEnded=!1,n.activationTimer=0,n.fgDeactivationRemovalTimer=0,n.fgScale="0",n.frame={width:0,height:0},n.initialSize=0,n.layoutFrame=0,n.maxRadius=0,n.unboundedCoords={left:0,top:0},n.activationState=n.defaultActivationState(),n.activationTimerCallback=function(){n.activationAnimationHasEnded=!0,n.runDeactivationUXLogicIfReady()},n.activateHandler=function(r){n.activateImpl(r)},n.deactivateHandler=function(){n.deactivateImpl()},n.focusHandler=function(){n.handleFocus()},n.blurHandler=function(){n.handleBlur()},n.resizeHandler=function(){n.layout()},n}return Object.defineProperty(e,"cssClasses",{get:function(){return Ei},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Si},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return vt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var i=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var r=e.cssClasses,o=r.ROOT,a=r.UNBOUNDED;requestAnimationFrame(function(){i.adapter.addClass(o),i.adapter.isUnbounded()&&(i.adapter.addClass(a),i.layoutInternal())})}},e.prototype.destroy=function(){var i=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){i.adapter.removeClass(r),i.adapter.removeClass(o),i.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(i){this.activateImpl(i)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var i=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){i.layoutInternal(),i.layoutFrame=0})},e.prototype.setUnbounded=function(i){var n=e.cssClasses.UNBOUNDED;i?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleFocus=function(){var i=this;requestAnimationFrame(function(){i.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var i=this;requestAnimationFrame(function(){i.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(i){var n,r;if(i){try{for(var o=u.__values(gt),a=o.next();!a.done;a=o.next()){var c=a.value;this.adapter.registerInteractionHandler(c,this.activateHandler)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(i){var n,r;if(i.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=u.__values(_t),a=o.next();!a.done;a=o.next()){var c=a.value;this.adapter.registerDocumentInteractionHandler(c,this.deactivateHandler)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.deregisterRootHandlers=function(){var i,n;try{for(var r=u.__values(gt),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(c){i={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var i,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var r=u.__values(_t),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(c){i={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}},e.prototype.removeCssVars=function(){var i=this,n=e.strings,r=Object.keys(n);r.forEach(function(o){o.indexOf("VAR_")===0&&i.adapter.updateCssVariable(n[o],null)})},e.prototype.activateImpl=function(i){var n=this;if(!this.adapter.isSurfaceDisabled()){var r=this.activationState;if(!r.isActivated){var o=this.previousActivationEvent,a=o&&i!==void 0&&o.type!==i.type;if(!a){r.isActivated=!0,r.isProgrammatic=i===void 0,r.activationEvent=i,r.wasActivatedByPointer=r.isProgrammatic?!1:i!==void 0&&(i.type==="mousedown"||i.type==="touchstart"||i.type==="pointerdown");var c=i!==void 0&&X.length>0&&X.some(function(l){return n.adapter.containsEventTarget(l)});if(c){this.resetActivationState();return}i!==void 0&&(X.push(i.target),this.registerDeactivationHandlers(i)),r.wasElementMadeActive=this.checkElementMadeActive(i),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){X=[],!r.wasElementMadeActive&&i!==void 0&&(i.key===" "||i.keyCode===32)&&(r.wasElementMadeActive=n.checkElementMadeActive(i),r.wasElementMadeActive&&n.animateActivation()),r.wasElementMadeActive||(n.activationState=n.defaultActivationState())})}}}},e.prototype.checkElementMadeActive=function(i){return i!==void 0&&i.type==="keydown"?this.adapter.isSurfaceActive():!0},e.prototype.animateActivation=function(){var i=this,n=e.strings,r=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,a=e.cssClasses,c=a.FG_DEACTIVATION,l=a.FG_ACTIVATION,g=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var b="",R="";if(!this.adapter.isUnbounded()){var N=this.getFgTranslationCoordinates(),U=N.startPoint,M=N.endPoint;b=U.x+"px, "+U.y+"px",R=M.x+"px, "+M.y+"px"}this.adapter.updateCssVariable(r,b),this.adapter.updateCssVariable(o,R),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(c),this.adapter.computeBoundingRect(),this.adapter.addClass(l),this.activationTimer=setTimeout(function(){i.activationTimerCallback()},g)},e.prototype.getFgTranslationCoordinates=function(){var i=this.activationState,n=i.activationEvent,r=i.wasActivatedByPointer,o;r?o=Ti(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):o={x:this.frame.width/2,y:this.frame.height/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2};var a={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:o,endPoint:a}},e.prototype.runDeactivationUXLogicIfReady=function(){var i=this,n=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,a=r.isActivated,c=o||!a;c&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){i.adapter.removeClass(n)},vt.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var i=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(i),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var i=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return i.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var i=this,n=this.activationState;if(n.isActivated){var r=u.__assign({},n);n.isProgrammatic?(requestAnimationFrame(function(){i.animateDeactivation(r)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){i.activationState.hasDeactivationUXRun=!0,i.animateDeactivation(r),i.resetActivationState()}))}},e.prototype.animateDeactivation=function(i){var n=i.wasActivatedByPointer,r=i.wasElementMadeActive;(n||r)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var i=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width),r=function(){var a=Math.sqrt(Math.pow(i.frame.width,2)+Math.pow(i.frame.height,2));return a+e.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?n:r();var o=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&o%2!==0?this.initialSize=o-1:this.initialSize=o,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var i=e.strings,n=i.VAR_FG_SIZE,r=i.VAR_LEFT,o=i.VAR_TOP,a=i.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(K);/**
310
+ * @license
311
+ * Copyright 2016 Google Inc.
312
+ *
313
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
314
+ * of this software and associated documentation files (the "Software"), to deal
315
+ * in the Software without restriction, including without limitation the rights
316
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
317
+ * copies of the Software, and to permit persons to whom the Software is
318
+ * furnished to do so, subject to the following conditions:
319
+ *
320
+ * The above copyright notice and this permission notice shall be included in
321
+ * all copies or substantial portions of the Software.
322
+ *
323
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
324
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
325
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
326
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
327
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
328
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
329
+ * THE SOFTWARE.
330
+ */var yt=function(t){u.__extends(e,t);function e(){var i=t!==null&&t.apply(this,arguments)||this;return i.disabled=!1,i}return e.attachTo=function(i,n){n===void 0&&(n={isUnbounded:void 0});var r=new e(i);return n.isUnbounded!==void 0&&(r.unbounded=n.isUnbounded),r},e.createAdapter=function(i){return{addClass:function(n){i.root.classList.add(n)},browserSupportsCssVars:function(){return wi(window)},computeBoundingRect:function(){return i.root.getBoundingClientRect()},containsEventTarget:function(n){return i.root.contains(n)},deregisterDocumentInteractionHandler:function(n,r){document.documentElement.removeEventListener(n,r,q())},deregisterInteractionHandler:function(n,r){i.root.removeEventListener(n,r,q())},deregisterResizeHandler:function(n){window.removeEventListener("resize",n)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return Wt(i.root,":active")},isSurfaceDisabled:function(){return!!i.disabled},isUnbounded:function(){return!!i.unbounded},registerDocumentInteractionHandler:function(n,r){document.documentElement.addEventListener(n,r,q())},registerInteractionHandler:function(n,r){i.root.addEventListener(n,r,q())},registerResizeHandler:function(n){window.addEventListener("resize",n)},removeClass:function(n){i.root.classList.remove(n)},updateCssVariable:function(n,r){i.root.style.setProperty(n,r)}}},Object.defineProperty(e.prototype,"unbounded",{get:function(){return!!this.isUnbounded},set:function(i){this.isUnbounded=!!i,this.setUnbounded()},enumerable:!1,configurable:!0}),e.prototype.activate=function(){this.foundation.activate()},e.prototype.deactivate=function(){this.foundation.deactivate()},e.prototype.layout=function(){this.foundation.layout()},e.prototype.getDefaultFoundation=function(){return new Kt(e.createAdapter(this))},e.prototype.initialSyncWithDOM=function(){var i=this.root;this.isUnbounded="mdcRippleIsUnbounded"in i.dataset},e.prototype.setUnbounded=function(){this.foundation.setUnbounded(!!this.isUnbounded)},e}(jt);/**
331
+ * @license
332
+ * Copyright 2020 Google Inc.
333
+ *
334
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
335
+ * of this software and associated documentation files (the "Software"), to deal
336
+ * in the Software without restriction, including without limitation the rights
337
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
338
+ * copies of the Software, and to permit persons to whom the Software is
339
+ * furnished to do so, subject to the following conditions:
340
+ *
341
+ * The above copyright notice and this permission notice shall be included in
342
+ * all copies or substantial portions of the Software.
343
+ *
344
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
345
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
346
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
347
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
348
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
349
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
350
+ * THE SOFTWARE.
351
+ */function Di(t,e){var i=Number(e.replace("px",""));return Number.isNaN(i)?t:{width:t.width+i,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}}var Ri="--mdc-chip-graphic-selected-width";/**
352
+ * @license
353
+ * Copyright 2020 Google Inc.
354
+ *
355
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
356
+ * of this software and associated documentation files (the "Software"), to deal
357
+ * in the Software without restriction, including without limitation the rights
358
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
359
+ * copies of the Software, and to permit persons to whom the Software is
360
+ * furnished to do so, subject to the following conditions:
361
+ *
362
+ * The above copyright notice and this permission notice shall be included in
363
+ * all copies or substantial portions of the Software.
364
+ *
365
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
366
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
367
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
368
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
369
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
370
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
371
+ * THE SOFTWARE.
372
+ */var $=new Map;$.set(s.SPACEBAR,E.SPACEBAR_KEY);$.set(s.ENTER,E.ENTER_KEY);$.set(s.DELETE,E.DELETE_KEY);$.set(s.BACKSPACE,E.BACKSPACE_KEY);var $t=function(t){u.__extends(e,t);function e(i){return t.call(this,u.__assign(u.__assign({},e.defaultAdapter),i))||this}return Object.defineProperty(e,"defaultAdapter",{get:function(){return{emitEvent:function(){},focus:function(){},getAttribute:function(){return null},getElementID:function(){return""},removeAttribute:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),e.prototype.handleClick=function(){this.isDisabled()||this.emitInteraction(E.CLICK)},e.prototype.handleKeydown=function(i){var n=Gt(i);if(this.shouldNotifyInteractionFromKey(n)){i.preventDefault(),this.emitInteraction(this.getTriggerFromKey(n));return}if(gi(i)){i.preventDefault(),this.emitNavigation(n);return}return!0},e.prototype.setDisabled=function(i){if(this.isSelectable()){this.adapter.setAttribute(m.ARIA_DISABLED,""+i);return}i?this.adapter.setAttribute(m.DISABLED,"true"):this.adapter.removeAttribute(m.DISABLED)},e.prototype.isDisabled=function(){return this.adapter.getAttribute(m.ARIA_DISABLED)==="true"||this.adapter.getAttribute(m.DISABLED)!==null},e.prototype.setFocus=function(i){if(this.isFocusable()){if(i===exports.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED){this.adapter.setAttribute(m.TAB_INDEX,"0"),this.adapter.focus();return}if(i===exports.MDCChipActionFocusBehavior.FOCUSABLE){this.adapter.setAttribute(m.TAB_INDEX,"0");return}if(i===exports.MDCChipActionFocusBehavior.NOT_FOCUSABLE){this.adapter.setAttribute(m.TAB_INDEX,"-1");return}}},e.prototype.isFocusable=function(){return!(this.isDisabled()||this.adapter.getAttribute(m.ARIA_HIDDEN)==="true")},e.prototype.setSelected=function(i){this.isSelectable()&&this.adapter.setAttribute(m.ARIA_SELECTED,""+i)},e.prototype.isSelected=function(){return this.adapter.getAttribute(m.ARIA_SELECTED)==="true"},e.prototype.emitInteraction=function(i){this.adapter.emitEvent(k.INTERACTION,{actionID:this.adapter.getElementID(),source:this.actionType(),trigger:i})},e.prototype.emitNavigation=function(i){this.adapter.emitEvent(k.NAVIGATION,{source:this.actionType(),key:i})},e.prototype.shouldNotifyInteractionFromKey=function(i){var n=i===s.ENTER||i===s.SPACEBAR,r=i===s.BACKSPACE||i===s.DELETE;return!!(n||r&&this.shouldEmitInteractionOnRemoveKey())},e.prototype.getTriggerFromKey=function(i){var n=$.get(i);return n||E.UNSPECIFIED},e}(K);/**
373
+ * @license
374
+ * Copyright 2020 Google Inc.
375
+ *
376
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
377
+ * of this software and associated documentation files (the "Software"), to deal
378
+ * in the Software without restriction, including without limitation the rights
379
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
380
+ * copies of the Software, and to permit persons to whom the Software is
381
+ * furnished to do so, subject to the following conditions:
382
+ *
383
+ * The above copyright notice and this permission notice shall be included in
384
+ * all copies or substantial portions of the Software.
385
+ *
386
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
387
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
388
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
389
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
390
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
391
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
392
+ * THE SOFTWARE.
393
+ */var Ci=function(t){u.__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isSelectable=function(){return this.adapter.getAttribute(m.ROLE)==="option"},e.prototype.actionType=function(){return exports.MDCChipActionType.PRIMARY},e.prototype.shouldEmitInteractionOnRemoveKey=function(){return this.adapter.getAttribute(m.DATA_DELETABLE)==="true"},e}($t);/**
394
+ * @license
395
+ * Copyright 2020 Google Inc.
396
+ *
397
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
398
+ * of this software and associated documentation files (the "Software"), to deal
399
+ * in the Software without restriction, including without limitation the rights
400
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
401
+ * copies of the Software, and to permit persons to whom the Software is
402
+ * furnished to do so, subject to the following conditions:
403
+ *
404
+ * The above copyright notice and this permission notice shall be included in
405
+ * all copies or substantial portions of the Software.
406
+ *
407
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
408
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
409
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
410
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
411
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
412
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
413
+ * THE SOFTWARE.
414
+ */var Ii=function(t){u.__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isSelectable=function(){return!1},e.prototype.actionType=function(){return exports.MDCChipActionType.TRAILING},e.prototype.shouldEmitInteractionOnRemoveKey=function(){return!0},e}($t);/**
415
+ * @license
416
+ * Copyright 2020 Google Inc.
417
+ *
418
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
419
+ * of this software and associated documentation files (the "Software"), to deal
420
+ * in the Software without restriction, including without limitation the rights
421
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
422
+ * copies of the Software, and to permit persons to whom the Software is
423
+ * furnished to do so, subject to the following conditions:
424
+ *
425
+ * The above copyright notice and this permission notice shall be included in
426
+ * all copies or substantial portions of the Software.
427
+ *
428
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
429
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
430
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
431
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
432
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
433
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
434
+ * THE SOFTWARE.
435
+ */var Ni=[C.safeAttrPrefix(bt||(bt=u.__makeTemplateObject(["aria-"],["aria-"]))),C.safeAttrPrefix(At||(At=u.__makeTemplateObject(["data-"],["data-"]))),C.safeAttrPrefix(Et||(Et=u.__makeTemplateObject(["disabled"],["disabled"]))),C.safeAttrPrefix(St||(St=u.__makeTemplateObject(["role"],["role"]))),C.safeAttrPrefix(wt||(wt=u.__makeTemplateObject(["tabindex"],["tabindex"])))],Oi=function(t){u.__extends(e,t);function e(){var i=t!==null&&t.apply(this,arguments)||this;return i.rootHTML=i.root,i}return e.attachTo=function(i){return new e(i)},Object.defineProperty(e.prototype,"ripple",{get:function(){return this.rippleInstance},enumerable:!1,configurable:!0}),e.prototype.initialize=function(i){var n=this;i===void 0&&(i=function(o,a){return new yt(o,a)});var r=u.__assign(u.__assign({},yt.createAdapter(this)),{computeBoundingRect:function(){return n.computeRippleClientRect()}});this.rippleInstance=i(this.root,new Kt(r))},e.prototype.initialSyncWithDOM=function(){var i=this;this.handleClick=function(){i.foundation.handleClick()},this.handleKeydown=function(n){i.foundation.handleKeydown(n)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown)},e.prototype.destroy=function(){this.ripple.destroy(),this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),t.prototype.destroy.call(this)},e.prototype.getDefaultFoundation=function(){var i=this,n={emitEvent:function(r,o){i.emit(r,o,!0)},focus:function(){i.rootHTML.focus()},getAttribute:function(r){return i.root.getAttribute(r)},getElementID:function(){return i.root.id},removeAttribute:function(r){i.root.removeAttribute(r)},setAttribute:function(r,o){Mt(Ni,i.root,r,o)}};return this.root.classList.contains(j.TRAILING_ACTION)?new Ii(n):new Ci(n)},e.prototype.setDisabled=function(i){this.foundation.setDisabled(i)},e.prototype.isDisabled=function(){return this.foundation.isDisabled()},e.prototype.setFocus=function(i){this.foundation.setFocus(i)},e.prototype.isFocusable=function(){return this.foundation.isFocusable()},e.prototype.setSelected=function(i){this.foundation.setSelected(i)},e.prototype.isSelected=function(){return this.foundation.isSelected()},e.prototype.isSelectable=function(){return this.foundation.isSelectable()},e.prototype.actionType=function(){return this.foundation.actionType()},e.prototype.computeRippleClientRect=function(){if(this.root.classList.contains(j.PRIMARY_ACTION)){var i=bi(this.root,"."+j.CHIP_ROOT);if(!i)return this.root.getBoundingClientRect();var n=window.getComputedStyle(i).getPropertyValue(Ri);return Di(i.getBoundingClientRect(),n)}return this.root.getBoundingClientRect()},e}(jt),bt,At,Et,St,wt,Pi=Object.defineProperty,Li=Object.getOwnPropertyDescriptor,I=(t,e,i,n)=>{for(var r=n>1?void 0:n?Li(e,i):e,o=t.length-1,a;o>=0;o--)(a=t[o])&&(r=(n?a(e,i,r):a(r))||r);return n&&r&&Pi(e,i,r),r};let Fi=0;class D extends S.s{constructor(){super(),this.mdcFoundationClass=_i,this.label="",this.icon="",this.trailingIcon=!1,this.avatar=!1,this.disabled=!1,this.filter=!1,this.chipId=Fi++}render(){const e={"mdc-evolution-chip":!0,"mdc-evolution-chip--disabled":this.disabled,"mdc-evolution-chip--with-trailing-action":this.trailingIcon,"mdc-evolution-chip--with-primary-graphic":!this.trailingIcon&&this.icon,"mdc-evolution-chip--with-primary-icon":this.icon&&!this.filter,"mdc-evolution-chip--filter":this.filter,"mdc-evolution-chip--selectable":this.filter,"mdc-evolution-chip--with-avatar":this.avatar,secondary:this.state==="secondary",negative:this.state==="negative",caution:this.state==="caution"};return S.x`
436
+ <span
437
+ class="${Zt.o(e)}"
438
+ role="${this.filter?"presentation":"row"}"
439
+ id="cv-chip-${this.chipId}"
440
+ >
441
+ <span
442
+ class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary"
443
+ role="${this.filter?"presentation":"gridcell"}"
444
+ >
445
+ <button
446
+ class="mdc-evolution-chip__action mdc-evolution-chip__action--primary"
447
+ role="${this.filter?"option":""}"
448
+ type="button"
449
+ tabindex="-1"
450
+ >
451
+ <span
452
+ class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--primary"
453
+ ></span>
454
+ ${!this.trailingIcon&&this.icon||this.filter?this.renderGraphic():""}
455
+ <span class="mdc-evolution-chip__text-label">${this.label}</span>
456
+ </button>
457
+ </span>
458
+ ${this.trailingIcon?this.renderTrailing():""}
459
+ </span>
460
+ `}async firstUpdated(){this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.actions=new Map;const e=this.mdcRoot.querySelectorAll(".mdc-evolution-chip__action");for(let i=0;i<e.length;i++){const n=new Oi(e[i]);this.actions.set(n.actionType(),n),e[i].addEventListener(k.INTERACTION,r=>{var o;(o=this.mdcFoundation)==null||o.handleActionInteraction(r)}),e[i].addEventListener(k.NAVIGATION,r=>{var o;(o=this.mdcFoundation)==null||o.handleActionNavigation(r)})}}renderGraphic(){const e=this.filter?this.renderCheckMark():this.renderIcon();return S.x`<span class="mdc-evolution-chip__graphic">
461
+ ${e}
462
+ </span>`}renderCheckMark(){return S.x` <span class="mdc-evolution-chip__checkmark">
463
+ <svg class="mdc-evolution-chip__checkmark-svg" viewBox="-2 -3 30 30">
464
+ <path
465
+ class="mdc-evolution-chip__checkmark-path"
466
+ fill="none"
467
+ d="M1.73,12.91 8.1,19.28 22.79,4.59"
468
+ />
469
+ </svg>
470
+ </span>`}renderIcon(e=!1){return S.x` <span
471
+ class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${e?"trailing":"primary"}"
472
+ >
473
+ ${this.icon}
474
+ </span>`}renderTrailing(){return S.x` <span
475
+ class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"
476
+ role="gridcell"
477
+ >
478
+ <button
479
+ class="mdc-evolution-chip__action mdc-evolution-chip__action--trailing"
480
+ type="button"
481
+ tabindex="-1"
482
+ data-mdc-deletable="true"
483
+ aria-label="Remove ${this.label}"
484
+ >
485
+ <span
486
+ class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--trailing"
487
+ ></span>
488
+ ${this.renderIcon(!0)}
489
+ </button>
490
+ </span>`}createAdapter(){return{...Yt.addHasRemoveClass(this.mdcRoot),emitEvent:(e,i)=>this.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:i})),getActions:()=>{const e=[];for(const[i]of this.actions)e.push(i);return e},getAttribute:e=>this.mdcRoot.getAttribute(e),getElementID:()=>this.mdcRoot.getAttribute("id")??"",getOffsetWidth:()=>this.mdcRoot.offsetWidth,hasClass:e=>this.mdcRoot.classList.contains(e),isActionSelectable:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isSelectable())??!0},isActionSelected:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isSelected())??!1},isActionFocusable:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isFocusable())??!0},isActionDisabled:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isDisabled())??!1},isRTL:()=>window.getComputedStyle(this.mdcRoot).getPropertyValue("direction")==="rtl",setActionDisabled:(e,i)=>{var n;return(n=this.actions.get(e))==null?void 0:n.setDisabled(i)},setActionFocus:(e,i)=>{var n;return(n=this.actions.get(e))==null?void 0:n.setFocus(i)},setActionSelected:(e,i)=>{var n;return(n=this.actions.get(e))==null?void 0:n.setSelected(i)},setStyleProperty:(e,i)=>this.mdcRoot.style.setProperty(e,i)}}getActions(){var e;return((e=this.mdcFoundation)==null?void 0:e.getActions())??[]}getElementID(){var e;return((e=this.mdcFoundation)==null?void 0:e.getElementID())??""}isActionFocusable(e){var i;return((i=this.mdcFoundation)==null?void 0:i.isActionFocusable(e))??!1}isActionSelectable(e){var i;return((i=this.mdcFoundation)==null?void 0:i.isActionSelectable(e))??!1}isActionSelected(e){var i;return((i=this.mdcFoundation)==null?void 0:i.isActionSelected(e))??!1}setActionFocus(e,i){var n;return(n=this.mdcFoundation)==null?void 0:n.setActionFocus(e,i)}setActionSelected(e,i){var n;return(n=this.mdcFoundation)==null?void 0:n.setActionSelected(e,i)}startAnimation(e){var i;return(i=this.mdcFoundation)==null?void 0:i.startAnimation(e)}}I([Xt.i(".mdc-evolution-chip")],D.prototype,"mdcRoot",2);I([L.n()],D.prototype,"label",2);I([L.n({type:String})],D.prototype,"icon",2);I([L.n({type:Boolean,reflect:!0})],D.prototype,"trailingIcon",2);I([L.n({type:Boolean,reflect:!0})],D.prototype,"avatar",2);I([L.n({type:Boolean,reflect:!0})],D.prototype,"disabled",2);I([L.n({type:Boolean,reflect:!0})],D.prototype,"filter",2);I([L.n()],D.prototype,"state",2);const xi=`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;-webkit-user-select:none;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width .15s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform .15s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 45ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width .1s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform .1s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1);transform:translate(-50%,-50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%,-50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{0%{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter .1s 0ms cubic-bezier(0,0,.2,1)}@keyframes mdc-evolution-chip-exit{0%{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width .15s 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip{height:32px;border-radius:16px;background-color:#e0e0e0}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip .mdc-evolution-chip__text-label,.mdc-evolution-chip .mdc-evolution-chip__icon--primary,.mdc-evolution-chip .mdc-evolution-chip__checkmark,.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{color:#000000de}.mdc-evolution-chip .mdc-evolution-chip__text-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 20px}.mdc-evolution-chip .mdc-evolution-chip__graphic,.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-evolution-chip.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:Canvas}}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% - 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip--filter.mdc-evolution-chip--selected{background-color:#cecece}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--trailing:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__ripple--trailing{height:18px;width:18px}.mdc-evolution-chip__action{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-evolution-chip__action.mdc-ripple-upgraded--unbounded .mdc-evolution-chip__ripple:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-activation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-deactivation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{top:-50%;left:-50%;width:200%;height:200%}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-evolution-chip__ripple{position:absolute;box-sizing:content-box;overflow:hidden;pointer-events:none}.mdc-evolution-chip__ripple--primary{height:100%;width:100%;top:0;left:0}.mdc-evolution-chip__ripple--trailing{top:50%;transform:translateY(-50%)}.mdc-evolution-chip{background-color:var(--mdc-theme-surface-neutral)}.mdc-evolution-chip .mdc-evolution-chip__text-label{color:var(--mdc-theme-text-primary-on-background)}.mdc-evolution-chip .mdc-evolution-chip__icon{font-family:var(--mdc-icon-font, "Material Symbols Rounded");color:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip .mdc-evolution-chip__checkmark-path{stroke:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip.mdc-evolution-chip--selected{background-color:var(--mdc-theme-surface-primary)}.mdc-evolution-chip.negative{background-color:var(--mdc-theme-surface-negative)}.mdc-evolution-chip.caution{background-color:var(--mdc-theme-surface-caution)}.mdc-evolution-chip.secondary{background-color:var(--mdc-theme-surface-secondary)}
491
+ `;var Ui=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,zi=(t,e,i,n)=>{for(var r=n>1?void 0:n?Mi(e,i):e,o=t.length-1,a;o>=0;o--)(a=t[o])&&(r=(n?a(e,i,r):a(r))||r);return n&&r&&Ui(e,i,r),r};exports.CovalentChip=class extends D{};exports.CovalentChip.styles=[S.i`
492
+ ${S.r(xi)}
493
+ `];exports.CovalentChip=zi([S.e("cv-chip")],exports.CovalentChip);const Hi=exports.CovalentChip;exports.CovalentChip$1=Hi;exports.KEY=s;exports.MDCFoundation=K;