@aurodesignsystem/auro-formkit 2.0.0-beta.15 → 2.0.0-beta.17

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 (186) hide show
  1. package/.turbo/cache/000950e13093845f-meta.json +1 -1
  2. package/.turbo/cache/000950e13093845f.tar.zst +0 -0
  3. package/.turbo/cache/02ee016619902665-meta.json +1 -0
  4. package/.turbo/cache/02ee016619902665.tar.zst +0 -0
  5. package/.turbo/cache/06ca4027e423c554-meta.json +1 -0
  6. package/.turbo/cache/06ca4027e423c554.tar.zst +0 -0
  7. package/.turbo/cache/1e855b2163b7c980-meta.json +1 -0
  8. package/.turbo/cache/1e855b2163b7c980.tar.zst +0 -0
  9. package/.turbo/cache/2059bc724ac24519-meta.json +1 -1
  10. package/.turbo/cache/2059bc724ac24519.tar.zst +0 -0
  11. package/.turbo/cache/23b3a2fea223679d-meta.json +1 -1
  12. package/.turbo/cache/23b3a2fea223679d.tar.zst +0 -0
  13. package/.turbo/cache/26dbf393768f87cc-meta.json +1 -0
  14. package/.turbo/cache/26dbf393768f87cc.tar.zst +0 -0
  15. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
  16. package/.turbo/cache/31bd5687f46c7eba-meta.json +1 -1
  17. package/.turbo/cache/3488cff10dd06acd-meta.json +1 -1
  18. package/.turbo/cache/3488cff10dd06acd.tar.zst +0 -0
  19. package/.turbo/cache/3c8718d2ba6d3fe5-meta.json +1 -0
  20. package/.turbo/cache/3c8718d2ba6d3fe5.tar.zst +0 -0
  21. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  22. package/.turbo/cache/43693504bf6e7c4c-meta.json +1 -1
  23. package/.turbo/cache/45cd32cd38eacbcb-meta.json +1 -1
  24. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  25. package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
  26. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  27. package/.turbo/cache/56f2745125fdd552-meta.json +1 -1
  28. package/.turbo/cache/56f2745125fdd552.tar.zst +0 -0
  29. package/.turbo/cache/5b57cc0e26e1fd5d-meta.json +1 -0
  30. package/.turbo/cache/5b57cc0e26e1fd5d.tar.zst +0 -0
  31. package/.turbo/cache/5f43911cbacf7df1-meta.json +1 -1
  32. package/.turbo/cache/5f43911cbacf7df1.tar.zst +0 -0
  33. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  34. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  35. package/.turbo/cache/647bda3b31d82dc2-meta.json +1 -0
  36. package/.turbo/cache/647bda3b31d82dc2.tar.zst +0 -0
  37. package/.turbo/cache/6951c2a52e5ab5f7-meta.json +1 -1
  38. package/.turbo/cache/6951c2a52e5ab5f7.tar.zst +0 -0
  39. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  40. package/.turbo/cache/78418f9089673a21-meta.json +1 -1
  41. package/.turbo/cache/7964d1656e9e702a-meta.json +1 -1
  42. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  43. package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
  44. package/.turbo/cache/876b8fa390c8ec81-meta.json +1 -1
  45. package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
  46. package/.turbo/cache/8f287fd5d33579ae-meta.json +1 -1
  47. package/.turbo/cache/8f287fd5d33579ae.tar.zst +0 -0
  48. package/.turbo/cache/8f5fef3e04a6fcfa-meta.json +1 -1
  49. package/.turbo/cache/8fcce3ba8357be57-meta.json +1 -0
  50. package/.turbo/cache/8fcce3ba8357be57.tar.zst +0 -0
  51. package/.turbo/cache/9b5868be65819fdf-meta.json +1 -0
  52. package/.turbo/cache/9b5868be65819fdf.tar.zst +0 -0
  53. package/.turbo/cache/a227e8174447e364-meta.json +1 -0
  54. package/.turbo/cache/a227e8174447e364.tar.zst +0 -0
  55. package/.turbo/cache/a779ea8b78ce9d59-meta.json +1 -0
  56. package/.turbo/cache/a779ea8b78ce9d59.tar.zst +0 -0
  57. package/.turbo/cache/a9c36a3534c5496b-meta.json +1 -0
  58. package/.turbo/cache/a9c36a3534c5496b.tar.zst +0 -0
  59. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  60. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  61. package/.turbo/cache/ba270a0ef147f2e5-meta.json +1 -1
  62. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
  63. package/.turbo/cache/c03a12ff38ba1e02-meta.json +1 -1
  64. package/.turbo/cache/c1312c6f8c051461-meta.json +1 -1
  65. package/.turbo/cache/c1312c6f8c051461.tar.zst +0 -0
  66. package/.turbo/cache/c3b2cc1b044a4135-meta.json +1 -0
  67. package/.turbo/cache/c3b2cc1b044a4135.tar.zst +0 -0
  68. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  69. package/.turbo/cache/c6dbc49c3038946d-meta.json +1 -1
  70. package/.turbo/cache/cae7586c45bed13e-meta.json +1 -1
  71. package/.turbo/cache/cae7586c45bed13e.tar.zst +0 -0
  72. package/.turbo/cache/cf143eb1a55684db-meta.json +1 -1
  73. package/.turbo/cache/cf143eb1a55684db.tar.zst +0 -0
  74. package/.turbo/cache/d5b85352bc667f19-meta.json +1 -1
  75. package/.turbo/cache/d5b85352bc667f19.tar.zst +0 -0
  76. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  77. package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
  78. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
  79. package/.turbo/cache/db5e65d819bfe66b-meta.json +1 -1
  80. package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -1
  81. package/.turbo/cache/e392fe0927e4af23-meta.json +1 -0
  82. package/.turbo/cache/e392fe0927e4af23.tar.zst +0 -0
  83. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  84. package/.turbo/cache/f2913bf19939d840-meta.json +1 -1
  85. package/.turbo/cache/f2913bf19939d840.tar.zst +0 -0
  86. package/.turbo/cache/f86b28e5ea2c66fe-meta.json +1 -1
  87. package/CHANGELOG.md +22 -0
  88. package/components/checkbox/.turbo/turbo-build.log +3 -3
  89. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  90. package/components/checkbox/README.md +1 -1
  91. package/components/combobox/.turbo/turbo-build.log +3 -3
  92. package/components/combobox/README.md +4 -4
  93. package/components/counter/.turbo/turbo-build$colon$sass.log +37 -6
  94. package/components/counter/.turbo/turbo-build.log +47 -10
  95. package/components/counter/.turbo/turbo-bundler.log +6 -3
  96. package/components/counter/.turbo/turbo-sass$colon$render.log +7 -1
  97. package/components/counter/README.md +1 -1
  98. package/components/counter/demo/api.md +8 -7
  99. package/components/counter/demo/api.min.js +3304 -247
  100. package/components/counter/demo/index.md +16 -20
  101. package/components/counter/demo/index.min.js +3304 -247
  102. package/components/counter/dist/auro-counter-group.d.ts +27 -7
  103. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  104. package/components/counter/dist/auro-counter-wrapper.d.ts +23 -0
  105. package/components/counter/dist/auro-counter-wrapper.d.ts.map +1 -0
  106. package/components/counter/dist/index.js +3304 -247
  107. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +3 -0
  108. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts.map +1 -0
  109. package/components/counter/dist/styles/{counter-group-color-css.d.ts → counter-wrapper-css.d.ts} +1 -1
  110. package/components/counter/dist/styles/counter-wrapper-css.d.ts.map +1 -0
  111. package/components/counter/src/auro-counter-group.js +72 -19
  112. package/components/counter/src/auro-counter-wrapper.js +54 -0
  113. package/components/counter/src/styles/counter-group-css.js +1 -1
  114. package/components/counter/src/styles/counter-group.css +4 -8
  115. package/components/counter/src/styles/counter-group.scss +6 -10
  116. package/components/counter/src/styles/counter-wrapper-color-css.js +2 -0
  117. package/components/counter/src/styles/{counter-group-color.css → counter-wrapper-color.css} +1 -1
  118. package/components/counter/src/styles/{counter-group-color.scss → counter-wrapper-color.scss} +1 -1
  119. package/components/counter/src/styles/counter-wrapper-css.js +2 -0
  120. package/components/counter/src/styles/counter-wrapper.css +15 -0
  121. package/components/counter/src/styles/counter-wrapper.scss +29 -0
  122. package/components/datepicker/.turbo/turbo-build.log +3 -3
  123. package/components/datepicker/README.md +4 -4
  124. package/components/dropdown/.turbo/turbo-build.log +3 -3
  125. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  126. package/components/dropdown/README.md +1 -1
  127. package/components/form/.turbo/turbo-build.log +3 -3
  128. package/components/form/.turbo/turbo-bundler.log +3 -3
  129. package/components/form/README.md +11 -9
  130. package/components/form/demo/api.min.js +187 -22
  131. package/components/form/demo/index.min.js +187 -22
  132. package/components/form/demo/registerDemoDeps.js +5 -0
  133. package/components/form/demo/working.html +86 -0
  134. package/components/form/dist/auro-form.d.ts +83 -2
  135. package/components/form/dist/auro-form.d.ts.map +1 -1
  136. package/components/form/dist/index.js +187 -22
  137. package/components/form/package.json +3 -1
  138. package/components/form/src/auro-form.js +187 -25
  139. package/components/form/src/styles/style-css.js +1 -1
  140. package/components/form/src/styles/style.css +8 -0
  141. package/components/form/src/styles/style.scss +10 -0
  142. package/components/input/.turbo/turbo-build.log +3 -3
  143. package/components/input/.turbo/turbo-bundler.log +3 -3
  144. package/components/input/README.md +1 -1
  145. package/components/menu/.turbo/turbo-build.log +3 -3
  146. package/components/menu/.turbo/turbo-bundler.log +3 -3
  147. package/components/menu/README.md +1 -1
  148. package/components/radio/.turbo/turbo-build.log +3 -3
  149. package/components/radio/.turbo/turbo-bundler.log +3 -3
  150. package/components/radio/README.md +1 -1
  151. package/components/select/.turbo/turbo-build.log +3 -3
  152. package/components/select/README.md +3 -3
  153. package/package.json +1 -1
  154. package/.turbo/cache/07028b4d43bdf4e1-meta.json +0 -1
  155. package/.turbo/cache/07028b4d43bdf4e1.tar.zst +0 -0
  156. package/.turbo/cache/0c8124a987c1cc05-meta.json +0 -1
  157. package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
  158. package/.turbo/cache/1b97859030a6d60b-meta.json +0 -1
  159. package/.turbo/cache/1b97859030a6d60b.tar.zst +0 -0
  160. package/.turbo/cache/1f6653e2ed4c0087-meta.json +0 -1
  161. package/.turbo/cache/1f6653e2ed4c0087.tar.zst +0 -0
  162. package/.turbo/cache/2690f6279766d11d-meta.json +0 -1
  163. package/.turbo/cache/2690f6279766d11d.tar.zst +0 -0
  164. package/.turbo/cache/50993de942ec15a9-meta.json +0 -1
  165. package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
  166. package/.turbo/cache/6081837e8943b62e-meta.json +0 -1
  167. package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
  168. package/.turbo/cache/6830a9e37c9d391f-meta.json +0 -1
  169. package/.turbo/cache/6830a9e37c9d391f.tar.zst +0 -0
  170. package/.turbo/cache/80410f4b5990ab83-meta.json +0 -1
  171. package/.turbo/cache/80410f4b5990ab83.tar.zst +0 -0
  172. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +0 -1
  173. package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
  174. package/.turbo/cache/bfefe028012c089a-meta.json +0 -1
  175. package/.turbo/cache/bfefe028012c089a.tar.zst +0 -0
  176. package/.turbo/cache/dad3d78b33edd9e4-meta.json +0 -1
  177. package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
  178. package/.turbo/cache/e9e36823f6c98f07-meta.json +0 -1
  179. package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
  180. package/.turbo/cache/ea8dd91dba19ddee-meta.json +0 -1
  181. package/.turbo/cache/ea8dd91dba19ddee.tar.zst +0 -0
  182. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +0 -3
  183. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  184. package/components/counter/dist/styles/counter-group-color-css.d.ts.map +0 -1
  185. package/components/counter/src/formkit/auro-dropdownVersion.js +0 -1
  186. package/components/counter/src/styles/counter-group-color-css.js +0 -2
@@ -3,64 +3,64 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const t$2=globalThis,e$4=t$2.ShadowRoot&&(undefined===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$4.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",undefined,s$2),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
6
+ const t$5=globalThis,e$9=t$5.ShadowRoot&&(undefined===t$5.ShadyCSS||t$5.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$5=Symbol(),o$9=new WeakMap;let n$7 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$9&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$9.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$9.set(s,t));}return t}toString(){return this.cssText}};const r$7=t=>new n$7("string"==typeof t?t:t+"",undefined,s$5),i$b=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$7(o,t,s$5)},S$3=(s,o)=>{if(e$9)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$5.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$5=e$9?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$7(e)})(t):t;
7
7
 
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$3,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),y$1={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else undefined!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
12
+ */const{is:i$a,defineProperty:e$8,getOwnPropertyDescriptor:r$6,getOwnPropertyNames:h$3,getOwnPropertySymbols:o$8,getPrototypeOf:n$6}=Object,a$5=globalThis,c$4=a$5.trustedTypes,l$5=c$4?c$4.emptyScript:"",p$3=a$5.reactiveElementPolyfillSupport,d$3=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$5:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$3=(t,s)=>!i$a(t,s),y$3={attribute:true,type:String,converter:u$5,reflect:false,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$5.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$3){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$8(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$6(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$3}static _$Ei(){if(this.hasOwnProperty(d$3("elementProperties")))return;const t=n$6(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$3("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$3("properties"))){const t=this.properties,s=[...h$3(t),...o$8(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$5(s));}else undefined!==s&&i.push(c$5(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$3(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$5).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$5;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$3)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$3("elementProperties")]=new Map,b$1[d$3("finalized")]=new Map,p$3?.({ReactiveElement:b$1}),(a$5.reactiveElementVersions??=[]).push("2.0.4");
13
13
 
14
14
  /**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
18
  */
19
- const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r$1=document,l$1=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$1=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$1?s$1.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n$1:d>=0?(o.push(a),s.slice(0,d)+e$2+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$3?i$3.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return undefined===i&&A.set(t.strings,i=new N(t)),i}k(t){a$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1()),this.O(l$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?undefined:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,undefined,s??{});}return h._$AI(t),h};
19
+ const t$4=globalThis,i$9=t$4.trustedTypes,s$4=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$7="$lit$",h$2=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$2,n$5=`<${o$7}>`,r$5=document,l$4=()=>r$5.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$4=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$2="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$2=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$2(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$5.createTreeWalker(r$5,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$4?s$4.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$2;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$2?"!--"===u[1]?c=v$1:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):undefined!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$2,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$1:'"'===u[3]?g$1:p$2):c===g$1||c===p$2?c=m$1:c===v$1||c===_$1?c=f$2:(c=m$1,r=undefined);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$2?s+n$5:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$2+x):s+h$2+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$2),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$2)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$2),s=t.length-1;if(s>0){r.textContent=i$9?i$9.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$2,t+1));)d.push({type:7,index:c}),t+=h$2.length-1;}c++;}}static createElement(t,i){const s=r$5.createElement("template");return s.innerHTML=t,s}};function S$2(t,i,s=t,e){if(i===T$1)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$2(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$5).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$5,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$2(this,t,i),c$3(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$5.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return undefined===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4()),this.O(l$4()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$2(this,t,i,0),o=!c$3(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$2(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$3(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?undefined:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$2(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$2(this,t);}};const j$1=t$4.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$4.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$4(),t),t,undefined,s??{});}return h._$AI(t),h};
20
20
 
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i$2=globalThis.litElementPolyfillSupport;i$2?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
25
+ */let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$8=globalThis.litElementPolyfillSupport;i$8?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
26
26
 
27
27
  /**
28
28
  * @license
29
29
  * Copyright 2020 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
31
  */
32
- const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
32
+ const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=t=>({_$litStatic$:t,r:a$3}),i$7=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3}),l$3=new Map,n$4=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$6(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$3.get(t))&&(n.raw=n,l$3.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$4(x$1);
33
33
 
34
- var styleButtonTokenCss = i$5`:host{--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8);--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03))}`;
34
+ var styleButtonTokenCss = i$b`:host{--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8);--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03))}`;
35
35
 
36
- var styleButtonColorCss = i$5`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-ui-bkg);color:var(--ds-auro-button-text-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-color:var(--ds-auro-counter-control-border-active)}@media(hover: hover){.auroButton:active:not(:disabled),.auroButton:hover:not(:disabled){background-color:var(--ds-auro-counter-control-ui-hover)}}`;
36
+ var styleButtonColorCss = i$b`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-ui-bkg);color:var(--ds-auro-button-text-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-color:var(--ds-auro-counter-control-border-active)}@media(hover: hover){.auroButton:active:not(:disabled),.auroButton:hover:not(:disabled){background-color:var(--ds-auro-counter-control-ui-hover)}}`;
37
37
 
38
- var styleButtonCss = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem);transform:unset}`;
38
+ var styleButtonCss = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem);transform:unset}`;
39
39
 
40
40
  /**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
44
  */
45
- const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
45
+ const t$3={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$6=t=>(...e)=>({_$litDirective$:t,values:e});let i$6 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
46
46
 
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2018 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
51
+ */const e$5=e$6(class extends i$6{constructor(t){if(super(t),t.type!==t$3.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
52
52
 
53
53
  /**
54
54
  * @license
55
55
  * Copyright 2018 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const o=o=>o??E;
57
+ */const o$5=o=>o??E$1;
58
58
 
59
59
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
60
60
  // See LICENSE in the project root for license information.
61
61
 
62
62
 
63
- class AuroDependencyVersioning {
63
+ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
64
64
 
65
65
  /**
66
66
  * Generates a unique string to be used for child auro element naming.
@@ -86,7 +86,7 @@ class AuroDependencyVersioning {
86
86
  */
87
87
  generateTag(baseName, version, tagClass) {
88
88
  const elementName = this.generateElementName(baseName, version);
89
- const tag = i$1`${s(elementName)}`;
89
+ const tag = i$7`${s$3(elementName)}`;
90
90
 
91
91
  if (!customElements.get(elementName)) {
92
92
  customElements.define(elementName, class extends tagClass {});
@@ -94,7 +94,7 @@ class AuroDependencyVersioning {
94
94
 
95
95
  return tag;
96
96
  }
97
- }
97
+ };
98
98
 
99
99
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
100
100
  // See LICENSE in the project root for license information.
@@ -103,7 +103,7 @@ class AuroDependencyVersioning {
103
103
 
104
104
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
105
105
 
106
- class AuroLibraryRuntimeUtils {
106
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
107
107
 
108
108
  /* eslint-disable jsdoc/require-param */
109
109
 
@@ -164,19 +164,19 @@ class AuroLibraryRuntimeUtils {
164
164
 
165
165
  return elemTag === tag || elem.hasAttribute(tag);
166
166
  }
167
- }
167
+ };
168
168
 
169
- var styleCss$4 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
169
+ var styleCss$8 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
170
170
 
171
- var colorCss$4 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
171
+ var colorCss$7 = i$b`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
172
172
 
173
- var tokensCss$3 = i$5`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
173
+ var tokensCss$5 = i$b`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
174
174
 
175
- var styleCss$3 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
175
+ var styleCss$7 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
176
176
 
177
- var colorCss$3 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
177
+ var colorCss$6 = i$b`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
178
178
 
179
- var tokensCss$2 = i$5`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
179
+ var tokensCss$4 = i$b`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
180
180
 
181
181
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
182
182
  // See LICENSE in the project root for license information.
@@ -201,7 +201,7 @@ var tokensCss$2 = i$5`:host{--ds-auro-loader-background-color: currentcolor;--ds
201
201
  */
202
202
 
203
203
  // build the component class
204
- class AuroLoader extends r {
204
+ class AuroLoader extends r$4 {
205
205
  constructor() {
206
206
  super();
207
207
 
@@ -223,7 +223,7 @@ class AuroLoader extends r {
223
223
  /**
224
224
  * @private
225
225
  */
226
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
226
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
227
227
 
228
228
  this.orbit = false;
229
229
  this.ringworm = false;
@@ -255,9 +255,9 @@ class AuroLoader extends r {
255
255
 
256
256
  static get styles() {
257
257
  return [
258
- i$5`${styleCss$3}`,
259
- i$5`${colorCss$3}`,
260
- i$5`${tokensCss$2}`
258
+ i$b`${styleCss$7}`,
259
+ i$b`${colorCss$6}`,
260
+ i$b`${tokensCss$4}`
261
261
  ];
262
262
  }
263
263
 
@@ -270,7 +270,7 @@ class AuroLoader extends r {
270
270
  *
271
271
  */
272
272
  static register(name = "auro-loader") {
273
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroLoader);
273
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
274
274
  }
275
275
 
276
276
  firstUpdated() {
@@ -303,14 +303,14 @@ class AuroLoader extends r {
303
303
 
304
304
  // function that renders the HTML and CSS into the scope of the component
305
305
  render() {
306
- return x`
307
- ${this.defineTemplate().map((idx) => x`
306
+ return x$1`
307
+ ${this.defineTemplate().map((idx) => x$1`
308
308
  <span part="element" class="loader node-${idx}"></span>
309
309
  `)}
310
310
 
311
311
  <div class="no-animation">Loading...</div>
312
312
 
313
- ${this.ringworm ? x`
313
+ ${this.ringworm ? x$1`
314
314
  <svg part="element" class="circular" viewBox="25 25 50 50">
315
315
  <circle class="path" cx="50" cy="50" r="20" fill="none"/>
316
316
  </svg>`
@@ -356,7 +356,7 @@ var loaderVersion = '3.1.1';
356
356
 
357
357
  /* eslint-disable lit/no-invalid-html, lit/binding-positions */
358
358
 
359
- class AuroButton extends r {
359
+ class AuroButton extends r$4 {
360
360
 
361
361
  constructor() {
362
362
  super();
@@ -375,7 +375,7 @@ class AuroButton extends r {
375
375
  /**
376
376
  * Generate unique names for dependency components.
377
377
  */
378
- const versioning = new AuroDependencyVersioning();
378
+ const versioning = new AuroDependencyVersioning$1();
379
379
 
380
380
  /**
381
381
  * @private
@@ -385,9 +385,9 @@ class AuroButton extends r {
385
385
 
386
386
  static get styles() {
387
387
  return [
388
- tokensCss$3,
389
- styleCss$4,
390
- colorCss$4
388
+ tokensCss$5,
389
+ styleCss$8,
390
+ colorCss$7
391
391
  ];
392
392
  }
393
393
 
@@ -470,7 +470,7 @@ class AuroButton extends r {
470
470
  *
471
471
  */
472
472
  static register(name = "auro-button") {
473
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroButton);
473
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
474
474
  }
475
475
 
476
476
  /**
@@ -524,27 +524,27 @@ class AuroButton extends r {
524
524
  'loading': this.loading
525
525
  };
526
526
 
527
- return u`
527
+ return u$3`
528
528
  <button
529
529
  part="button"
530
- aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
531
- aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
530
+ aria-label="${o$5(this.arialabel ? this.arialabel : undefined)}"
531
+ aria-labelledby="${o$5(this.arialabelledby ? this.arialabelledby : undefined)}"
532
532
  ?autofocus="${this.autofocus}"
533
- class="${e(classes)}"
533
+ class="${e$5(classes)}"
534
534
  ?disabled="${this.disabled || this.loading}"
535
535
  ?onDark="${this.onDark}"
536
- title="${o(this.title ? this.title : undefined)}"
537
- name="${o(this.name ? this.name : undefined)}"
538
- type="${o(this.type ? this.type : undefined)}"
539
- variant="${o(this.variant ? this.variant : undefined)}"
540
- .value="${o(this.value ? this.value : undefined)}"
536
+ title="${o$5(this.title ? this.title : undefined)}"
537
+ name="${o$5(this.name ? this.name : undefined)}"
538
+ type="${o$5(this.type ? this.type : undefined)}"
539
+ variant="${o$5(this.variant ? this.variant : undefined)}"
540
+ .value="${o$5(this.value ? this.value : undefined)}"
541
541
  @click="${() => {}}"
542
542
  >
543
- ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
543
+ ${o$5(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
544
544
 
545
545
  <span class="contentWrapper">
546
546
  <span class="textSlot" part="text">
547
- ${this.iconOnly ? undefined : u`<slot></slot>`}
547
+ ${this.iconOnly ? undefined : u$3`<slot></slot>`}
548
548
  </span>
549
549
 
550
550
  <span part="icon">
@@ -580,7 +580,7 @@ class AuroCounterButton extends AuroButton {
580
580
  *
581
581
  */
582
582
  static register(name = "auro-counter-button") {
583
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterButton);
583
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroCounterButton);
584
584
  }
585
585
  }
586
586
 
@@ -600,7 +600,7 @@ if (!customElements.get("auro-counter-button")) {
600
600
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
601
601
  */
602
602
 
603
- class AuroElement extends r {
603
+ let AuroElement$1 = class AuroElement extends r$4 {
604
604
 
605
605
  // function to define props used within the scope of this component
606
606
  static get properties() {
@@ -624,13 +624,13 @@ class AuroElement extends r {
624
624
 
625
625
  return 'false'
626
626
  }
627
- }
627
+ };
628
628
 
629
- var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
629
+ var error$1 = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
630
630
 
631
631
  /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
632
632
 
633
- const _fetchMap = new Map();
633
+ const _fetchMap$1 = new Map();
634
634
 
635
635
  /**
636
636
  * A callback to parse Response body.
@@ -648,15 +648,15 @@ const _fetchMap = new Map();
648
648
  * @param {ResponseParser} [options.responseParser=(response) => response.text()]
649
649
  * @returns {Promise}
650
650
  */
651
- const cacheFetch = (uri, options = {}) => {
651
+ const cacheFetch$1 = (uri, options = {}) => {
652
652
  const responseParser = options.responseParser || ((response) => response.text());
653
- if (!_fetchMap.has(uri)) {
654
- _fetchMap.set(uri, fetch(uri).then(responseParser));
653
+ if (!_fetchMap$1.has(uri)) {
654
+ _fetchMap$1.set(uri, fetch(uri).then(responseParser));
655
655
  }
656
- return _fetchMap.get(uri);
656
+ return _fetchMap$1.get(uri);
657
657
  };
658
658
 
659
- var styleCss$2 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
659
+ var styleCss$6 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
660
660
 
661
661
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
662
662
  // See LICENSE in the project root for license information.
@@ -669,7 +669,7 @@ var styleCss$2 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-red
669
669
  */
670
670
 
671
671
  // build the component class
672
- class BaseIcon extends AuroElement {
672
+ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
673
673
  constructor() {
674
674
  super();
675
675
  this.onDark = false;
@@ -695,8 +695,8 @@ class BaseIcon extends AuroElement {
695
695
  }
696
696
 
697
697
  static get styles() {
698
- return i$5`
699
- ${styleCss$2}
698
+ return i$b`
699
+ ${styleCss$6}
700
700
  `;
701
701
  }
702
702
 
@@ -711,9 +711,9 @@ class BaseIcon extends AuroElement {
711
711
  let iconHTML = '';
712
712
 
713
713
  if (category === 'logos') {
714
- iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
714
+ iconHTML = await cacheFetch$1(`${this.uri}/${category}/${name}.svg`);
715
715
  } else {
716
- iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
716
+ iconHTML = await cacheFetch$1(`${this.uri}/icons/${category}/${name}.svg`);
717
717
  }
718
718
 
719
719
  const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
@@ -729,17 +729,17 @@ class BaseIcon extends AuroElement {
729
729
  if (svg) {
730
730
  this.svg = svg;
731
731
  } else if (!svg) {
732
- const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
732
+ const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
733
733
 
734
734
  this.svg = penDOM.body.firstChild;
735
735
  }
736
736
  }
737
737
  }
738
- }
738
+ };
739
739
 
740
- var tokensCss$1 = i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
740
+ var tokensCss$3 = i$b`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
741
741
 
742
- var colorCss$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
742
+ var colorCss$5 = i$b`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
743
743
 
744
744
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
745
745
  // See LICENSE in the project root for license information.
@@ -772,7 +772,7 @@ var colorCss$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
772
772
  */
773
773
 
774
774
  // build the component class
775
- class AuroIcon extends BaseIcon {
775
+ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
776
776
  constructor() {
777
777
  super();
778
778
 
@@ -801,7 +801,7 @@ class AuroIcon extends BaseIcon {
801
801
  this.success = false;
802
802
  this.tertiary = false;
803
803
  this.warning = false;
804
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
804
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
805
805
  }
806
806
 
807
807
  // function to define props used within the scope of this component
@@ -883,9 +883,9 @@ class AuroIcon extends BaseIcon {
883
883
  static get styles() {
884
884
  return [
885
885
  super.styles,
886
- i$5`${tokensCss$1}`,
887
- i$5`${styleCss$2}`,
888
- i$5`${colorCss$2}`
886
+ i$b`${tokensCss$3}`,
887
+ i$b`${styleCss$6}`,
888
+ i$b`${colorCss$5}`
889
889
  ];
890
890
  }
891
891
 
@@ -898,7 +898,7 @@ class AuroIcon extends BaseIcon {
898
898
  *
899
899
  */
900
900
  static register(name = "auro-icon") {
901
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
901
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
902
902
  }
903
903
 
904
904
  connectedCallback() {
@@ -927,28 +927,28 @@ class AuroIcon extends BaseIcon {
927
927
  'wrapper': true,
928
928
  };
929
929
 
930
- return x`
930
+ return x$1`
931
931
  <div
932
- class="${e(classes)}"
933
- title="${o(this.title || undefined)}">
934
- <span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
935
- ${this.customSvg ? x`
932
+ class="${e$5(classes)}"
933
+ title="${o$5(this.title || undefined)}">
934
+ <span aria-hidden="${o$5(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
935
+ ${this.customSvg ? x$1`
936
936
  <slot name="svg"></slot>
937
- ` : x`
937
+ ` : x$1`
938
938
  ${this.svg}
939
939
  `
940
940
  }
941
941
  </span>
942
942
 
943
- <div class="${e(a11y)}">
943
+ <div class="${e$5(a11y)}">
944
944
  <slot></slot>
945
945
  </div>
946
946
  </div>
947
947
  `;
948
948
  }
949
- }
949
+ };
950
950
 
951
- var iconVersion = '6.1.2';
951
+ var iconVersion$1 = '6.1.2';
952
952
 
953
953
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
954
954
  // See LICENSE in the project root for license information.
@@ -956,7 +956,7 @@ var iconVersion = '6.1.2';
956
956
 
957
957
  class AuroFormValidation {
958
958
  constructor() {
959
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
959
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
960
960
  }
961
961
 
962
962
  /**
@@ -1283,7 +1283,7 @@ class IconUtil {
1283
1283
 
1284
1284
  svg.setAttribute('slot', 'svg');
1285
1285
 
1286
- return u`${svg}`;
1286
+ return u$3`${svg}`;
1287
1287
  }
1288
1288
  }
1289
1289
 
@@ -1291,11 +1291,11 @@ var plusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width"
1291
1291
 
1292
1292
  var minusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"minus-lg","category":"interface","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M5.75 12.75h12.5a.75.75 0 1 0 0-1.5H5.75a.75.75 0 1 0 0 1.5\"/></svg>"};
1293
1293
 
1294
- var tokensCss = i$5`:host{--ds-auro-counter-text-default: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-counter-text-secondary: var(--ds-color-text-secondary-default, #525252);--ds-auro-counter-text-disabled: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-ui-hover: var(--ds-color-ui-hover-default, #054687);--ds-auro-counter-control-ui-disabled: var(--ds-color-ui-disabled-default, rgba(0, 116, 200, 0.2));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8)}`;
1294
+ var tokensCss$2 = i$b`:host{--ds-auro-counter-text-default: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-counter-text-secondary: var(--ds-color-text-secondary-default, #525252);--ds-auro-counter-text-disabled: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-ui-hover: var(--ds-color-ui-hover-default, #054687);--ds-auro-counter-control-ui-disabled: var(--ds-color-ui-disabled-default, rgba(0, 116, 200, 0.2));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8)}`;
1295
1295
 
1296
- var colorCss$1 = i$5`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
1296
+ var colorCss$4 = i$b`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
1297
1297
 
1298
- var styleCss$1 = i$5`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
1298
+ var styleCss$5 = i$b`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
1299
1299
 
1300
1300
  /* eslint-disable lit/binding-positions, lit/no-invalid-html */
1301
1301
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -1313,7 +1313,7 @@ var styleCss$1 = i$5`.counter{display:flex;align-items:center;justify-content:sp
1313
1313
  * @slot Default - Main label content for the counter.
1314
1314
  * @slot description - Descriptive content for the counter.
1315
1315
  */
1316
- class AuroCounter extends r {
1316
+ class AuroCounter extends r$4 {
1317
1317
  constructor() {
1318
1318
  super();
1319
1319
 
@@ -1334,14 +1334,14 @@ class AuroCounter extends r {
1334
1334
  * Generate unique names for dependency components.
1335
1335
  * @private
1336
1336
  */
1337
- const versioning = new AuroDependencyVersioning();
1337
+ const versioning = new AuroDependencyVersioning$1();
1338
1338
 
1339
1339
  /**
1340
1340
  * Dynamically generated icon tag for counter buttons.
1341
1341
  * @private
1342
1342
  * @type {string}
1343
1343
  */
1344
- this.iconTag = versioning.generateTag("auro-icon", iconVersion, AuroIcon);
1344
+ this.iconTag = versioning.generateTag("auro-icon", iconVersion$1, AuroIcon$1);
1345
1345
  }
1346
1346
 
1347
1347
  /**
@@ -1415,14 +1415,14 @@ class AuroCounter extends r {
1415
1415
  * AuroCounter.register("custom-counter") // registers <custom-counter/>
1416
1416
  */
1417
1417
  static register(name = "auro-counter") {
1418
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounter);
1418
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroCounter);
1419
1419
  }
1420
1420
 
1421
1421
  static get styles() {
1422
1422
  return [
1423
- tokensCss,
1424
- colorCss$1,
1425
- styleCss$1
1423
+ tokensCss$2,
1424
+ colorCss$4,
1425
+ styleCss$5
1426
1426
  ];
1427
1427
  }
1428
1428
 
@@ -1541,7 +1541,7 @@ class AuroCounter extends r {
1541
1541
  }
1542
1542
 
1543
1543
  render() {
1544
- return u`
1544
+ return u$3`
1545
1545
  <div class="counter">
1546
1546
  <div class="content" >
1547
1547
  <label class="label"><slot></slot></label>
@@ -1574,199 +1574,3256 @@ class AuroCounter extends r {
1574
1574
  }
1575
1575
  }
1576
1576
 
1577
- var styleCss = i$5`:host{position:relative;display:block}.counters{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.counters ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}`;
1578
-
1579
- var colorCss = i$5`.counters ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
1580
-
1581
- // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1582
- // See LICENSE in the project root for license information.
1583
-
1577
+ var styleCss$4 = i$b`:host{position:relative;display:block}[slot=trigger]{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}`;
1584
1578
 
1585
1579
  /**
1586
- * Auro Counter Group is a group of counter components.
1587
- *
1588
- * This web component provides a flexible interface for grouping multiple counters, supporting
1589
- * validation, custom validity messages, and disabled states based on the group's value.
1590
- *
1591
- * @element auro-counter-group
1592
- * @extends LitElement
1593
- * @slot Default - Slot for counter elements.
1580
+ * @license
1581
+ * Copyright 2017 Google LLC
1582
+ * SPDX-License-Identifier: BSD-3-Clause
1594
1583
  */
1595
- class AuroCounterGroup extends r {
1596
- constructor() {
1597
- super();
1598
-
1599
- this.max = undefined;
1600
- this.min = undefined;
1601
- this.total = undefined;
1602
- this.validity = undefined;
1603
- this.value = undefined;
1584
+ const t$2=globalThis,i$5=t$2.trustedTypes,s$2=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4="?"+h$1,n$3=`<${o$4}>`,r$3=document,l$2=()=>r$3.createComment(""),c$2=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$2=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$2?s$2.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1?"!--"===u[1]?c=v:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p$1):c===g||c===p$1?c=m:c===v||c===_?c=f$1:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$3:d>=0?(o.push(a),s.slice(0,d)+e$4+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$4)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$2(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),c$2(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$2(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$2(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return undefined===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$1(this,t,i,0),o=!c$2(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$2(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?undefined:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}}const j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,undefined,s??{});}return h._$AI(t),h};
1604
1585
 
1605
- /**
1606
- * @private
1607
- */
1608
- this.counters = undefined;
1586
+ /**
1587
+ * @license
1588
+ * Copyright 2020 Google LLC
1589
+ * SPDX-License-Identifier: BSD-3-Clause
1590
+ */
1591
+ const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1}),l$1=new Map,n$2=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$1=n$2(x);
1609
1592
 
1610
- /**
1611
- * @private
1612
- */
1613
- this.validation = new AuroFormValidation();
1614
- }
1593
+ /**
1594
+ * @license
1595
+ * Copyright 2019 Google LLC
1596
+ * SPDX-License-Identifier: BSD-3-Clause
1597
+ */
1598
+ const t$1=globalThis,e$3=t$1.ShadowRoot&&(undefined===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$2=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$3&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$2.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",undefined,s),i$3=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1(o,t,s)},S=(s,o)=>{if(e$3)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
1615
1599
 
1616
- static get styles() {
1617
- return [
1618
- colorCss,
1619
- styleCss
1620
- ];
1621
- }
1600
+ /**
1601
+ * @license
1602
+ * Copyright 2017 Google LLC
1603
+ * SPDX-License-Identifier: BSD-3-Clause
1604
+ */const{is:i$2,defineProperty:e$2,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o$1,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$2(t,s),y={attribute:true,type:String,converter:u,reflect:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1(s));}else undefined!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
1622
1605
 
1623
- static get properties() {
1624
- return {
1606
+ /**
1607
+ * @license
1608
+ * Copyright 2017 Google LLC
1609
+ * SPDX-License-Identifier: BSD-3-Clause
1610
+ */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i$1=globalThis.litElementPolyfillSupport;i$1?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
1625
1611
 
1626
- /**
1627
- * The maximum value allowed for the whole group of counters.
1628
- */
1629
- max: {
1630
- type: Number,
1631
- reflect: true,
1632
- },
1612
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1613
+ // See LICENSE in the project root for license information.
1633
1614
 
1634
- /**
1635
- * The minimum value allowed for the whole group of counters.
1636
- */
1637
- min: {
1638
- type: Number,
1639
- reflect: true,
1640
- },
1615
+ // ---------------------------------------------------------------------
1641
1616
 
1642
- /**
1643
- * The total value of the counters.
1644
- */
1645
- total: {
1646
- type: Number,
1647
- },
1617
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
1648
1618
 
1649
- /**
1650
- * Reflects the validity state.
1651
- */
1652
- validity: {
1653
- type: String,
1654
- reflect: true,
1655
- },
1619
+ class AuroLibraryRuntimeUtils {
1656
1620
 
1657
- /**
1658
- * The current individual values of the nested counters.
1659
- */
1660
- value: {
1661
- type: Object,
1662
- },
1663
- };
1664
- }
1621
+ /* eslint-disable jsdoc/require-param */
1665
1622
 
1666
1623
  /**
1667
- * Dynamically disables increment/decrement buttons on a counter based on group value.
1668
- * This method checks the total aggregated value against the group's min and max properties.
1669
- * If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
1670
- *
1671
- * @param {HTMLElement} counter - The counter element to potentially disable.
1672
- * @private
1624
+ * This will register a new custom element with the browser.
1625
+ * @param {String} name - The name of the custom element.
1626
+ * @param {Object} componentClass - The class to register as a custom element.
1627
+ * @returns {void}
1673
1628
  */
1674
- manageDisabled(counter) {
1675
- counter.disableMax = false;
1676
- counter.disableMin = false;
1677
-
1678
- if (this.total <= this.min) {
1679
- counter.disableMin = true;
1680
- } else if (this.total >= this.max) {
1681
- counter.disableMax = true;
1629
+ registerComponent(name, componentClass) {
1630
+ if (!customElements.get(name)) {
1631
+ customElements.define(name, class extends componentClass {});
1682
1632
  }
1683
1633
  }
1684
1634
 
1685
1635
  /**
1686
- * Attaches input event listeners to all auro-counter elements within the component.
1687
- * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
1688
- * The listener calls `this.updateValue()` whenever the value of a counter changes.
1689
- * @private
1636
+ * Finds and returns the closest HTML Element based on a selector.
1637
+ * @returns {void}
1690
1638
  */
1691
- configureCounters() {
1692
- this.counters = this.querySelectorAll("auro-counter, [auto-counter]");
1693
- this.counters.forEach((counter) => {
1694
- counter.addEventListener("input", () => this.updateValue());
1695
- });
1639
+ closestElement(
1640
+ selector, // selector like in .closest()
1641
+ base = this, // extra functionality to skip a parent
1642
+ __Closest = (el, found = el && el.closest(selector)) =>
1643
+ !el || el === document || el === window
1644
+ ? null // standard .closest() returns null for non-found selectors also
1645
+ : found
1646
+ ? found // found a selector INside this element
1647
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
1648
+ ) {
1649
+ return __Closest(base);
1696
1650
  }
1651
+ /* eslint-enable jsdoc/require-param */
1697
1652
 
1698
1653
  /**
1699
- * Safely converts a value to a number, returning 0 if invalid.
1700
- * @private
1701
- * @param {*} value - The value to convert.
1702
- * @returns {number} The converted number or 0 if invalid.
1654
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
1655
+ * @param {Object} elem - The element to check.
1656
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
1657
+ * @returns {void}
1703
1658
  */
1704
- safeNumberConversion(value) {
1705
- const num = Number(value);
1706
- return Number.isNaN(num) ? 0 : num;
1659
+ handleComponentTagRename(elem, tagName) {
1660
+ const tag = tagName.toLowerCase();
1661
+ const elemTag = elem.tagName.toLowerCase();
1662
+
1663
+ if (elemTag !== tag) {
1664
+ elem.setAttribute(tag, true);
1665
+ }
1707
1666
  }
1708
1667
 
1709
1668
  /**
1710
- * Updates the aggregate value based on the values of contained auro-counter components.
1711
- * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
1712
- * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
1713
- * @private
1669
+ * Validates if an element is a specific Auro component.
1670
+ * @param {Object} elem - The element to validate.
1671
+ * @param {String} tagName - The name of the Auro component to check against.
1672
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
1714
1673
  */
1715
- updateValue() {
1716
- this.value = Array.from(this.counters).reduce((acc, counter, index) => {
1717
- const name = counter.hasAttribute('name') ? counter.getAttribute('name') : `counter-${index}`;
1718
- acc[name] = this.safeNumberConversion(counter.value);
1719
- return acc;
1720
- }, {});
1721
-
1722
- this.total = Array.from(this.counters).reduce(
1723
- (total, counter) => total + this.safeNumberConversion(counter.value),
1724
- 0,
1725
- );
1674
+ elementMatch(elem, tagName) {
1675
+ const tag = tagName.toLowerCase();
1676
+ const elemTag = elem.tagName.toLowerCase();
1726
1677
 
1727
- this.counters.forEach((counter) => {
1728
- this.manageDisabled(counter);
1729
- });
1678
+ return elemTag === tag || elem.hasAttribute(tag);
1730
1679
  }
1680
+ }
1731
1681
 
1732
- updated(changedProperties) {
1733
- if (changedProperties.has("value")) {
1734
- this.validation.validate(this);
1735
- this.dispatchEvent(
1736
- new CustomEvent("input", {
1737
- detail: {
1738
- total: this.total,
1739
- value: this.value
1740
- },
1741
- }),
1742
- {
1743
- bubble: true,
1744
- composable: true,
1745
- }
1746
- );
1747
- }
1748
- }
1682
+ /**
1683
+ * Custom positioning reference element.
1684
+ * @see https://floating-ui.com/docs/virtual-elements
1685
+ */
1749
1686
 
1750
- /**
1751
- * Registers the custom element with the browser.
1752
- * @param {string} [name="auro-counter-group"] - Custom element name to register.
1753
- * @example
1754
- * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
1687
+ const sides = ['top', 'right', 'bottom', 'left'];
1688
+ const alignments = ['start', 'end'];
1689
+ const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
1690
+ const min = Math.min;
1691
+ const max = Math.max;
1692
+ const round = Math.round;
1693
+ const floor = Math.floor;
1694
+ const createCoords = v => ({
1695
+ x: v,
1696
+ y: v
1697
+ });
1698
+ const oppositeSideMap = {
1699
+ left: 'right',
1700
+ right: 'left',
1701
+ bottom: 'top',
1702
+ top: 'bottom'
1703
+ };
1704
+ const oppositeAlignmentMap = {
1705
+ start: 'end',
1706
+ end: 'start'
1707
+ };
1708
+ function evaluate(value, param) {
1709
+ return typeof value === 'function' ? value(param) : value;
1710
+ }
1711
+ function getSide(placement) {
1712
+ return placement.split('-')[0];
1713
+ }
1714
+ function getAlignment(placement) {
1715
+ return placement.split('-')[1];
1716
+ }
1717
+ function getOppositeAxis(axis) {
1718
+ return axis === 'x' ? 'y' : 'x';
1719
+ }
1720
+ function getAxisLength(axis) {
1721
+ return axis === 'y' ? 'height' : 'width';
1722
+ }
1723
+ function getSideAxis(placement) {
1724
+ return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
1725
+ }
1726
+ function getAlignmentAxis(placement) {
1727
+ return getOppositeAxis(getSideAxis(placement));
1728
+ }
1729
+ function getAlignmentSides(placement, rects, rtl) {
1730
+ if (rtl === undefined) {
1731
+ rtl = false;
1732
+ }
1733
+ const alignment = getAlignment(placement);
1734
+ const alignmentAxis = getAlignmentAxis(placement);
1735
+ const length = getAxisLength(alignmentAxis);
1736
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
1737
+ if (rects.reference[length] > rects.floating[length]) {
1738
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
1739
+ }
1740
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
1741
+ }
1742
+ function getExpandedPlacements(placement) {
1743
+ const oppositePlacement = getOppositePlacement(placement);
1744
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
1745
+ }
1746
+ function getOppositeAlignmentPlacement(placement) {
1747
+ return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
1748
+ }
1749
+ function getSideList(side, isStart, rtl) {
1750
+ const lr = ['left', 'right'];
1751
+ const rl = ['right', 'left'];
1752
+ const tb = ['top', 'bottom'];
1753
+ const bt = ['bottom', 'top'];
1754
+ switch (side) {
1755
+ case 'top':
1756
+ case 'bottom':
1757
+ if (rtl) return isStart ? rl : lr;
1758
+ return isStart ? lr : rl;
1759
+ case 'left':
1760
+ case 'right':
1761
+ return isStart ? tb : bt;
1762
+ default:
1763
+ return [];
1764
+ }
1765
+ }
1766
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
1767
+ const alignment = getAlignment(placement);
1768
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
1769
+ if (alignment) {
1770
+ list = list.map(side => side + "-" + alignment);
1771
+ if (flipAlignment) {
1772
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
1773
+ }
1774
+ }
1775
+ return list;
1776
+ }
1777
+ function getOppositePlacement(placement) {
1778
+ return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
1779
+ }
1780
+ function expandPaddingObject(padding) {
1781
+ return {
1782
+ top: 0,
1783
+ right: 0,
1784
+ bottom: 0,
1785
+ left: 0,
1786
+ ...padding
1787
+ };
1788
+ }
1789
+ function getPaddingObject(padding) {
1790
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
1791
+ top: padding,
1792
+ right: padding,
1793
+ bottom: padding,
1794
+ left: padding
1795
+ };
1796
+ }
1797
+ function rectToClientRect(rect) {
1798
+ const {
1799
+ x,
1800
+ y,
1801
+ width,
1802
+ height
1803
+ } = rect;
1804
+ return {
1805
+ width,
1806
+ height,
1807
+ top: y,
1808
+ left: x,
1809
+ right: x + width,
1810
+ bottom: y + height,
1811
+ x,
1812
+ y
1813
+ };
1814
+ }
1815
+
1816
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
1817
+ let {
1818
+ reference,
1819
+ floating
1820
+ } = _ref;
1821
+ const sideAxis = getSideAxis(placement);
1822
+ const alignmentAxis = getAlignmentAxis(placement);
1823
+ const alignLength = getAxisLength(alignmentAxis);
1824
+ const side = getSide(placement);
1825
+ const isVertical = sideAxis === 'y';
1826
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
1827
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
1828
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
1829
+ let coords;
1830
+ switch (side) {
1831
+ case 'top':
1832
+ coords = {
1833
+ x: commonX,
1834
+ y: reference.y - floating.height
1835
+ };
1836
+ break;
1837
+ case 'bottom':
1838
+ coords = {
1839
+ x: commonX,
1840
+ y: reference.y + reference.height
1841
+ };
1842
+ break;
1843
+ case 'right':
1844
+ coords = {
1845
+ x: reference.x + reference.width,
1846
+ y: commonY
1847
+ };
1848
+ break;
1849
+ case 'left':
1850
+ coords = {
1851
+ x: reference.x - floating.width,
1852
+ y: commonY
1853
+ };
1854
+ break;
1855
+ default:
1856
+ coords = {
1857
+ x: reference.x,
1858
+ y: reference.y
1859
+ };
1860
+ }
1861
+ switch (getAlignment(placement)) {
1862
+ case 'start':
1863
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
1864
+ break;
1865
+ case 'end':
1866
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
1867
+ break;
1868
+ }
1869
+ return coords;
1870
+ }
1871
+
1872
+ /**
1873
+ * Computes the `x` and `y` coordinates that will place the floating element
1874
+ * next to a given reference element.
1875
+ *
1876
+ * This export does not have any `platform` interface logic. You will need to
1877
+ * write one for the platform you are using Floating UI with.
1878
+ */
1879
+ const computePosition$1 = async (reference, floating, config) => {
1880
+ const {
1881
+ placement = 'bottom',
1882
+ strategy = 'absolute',
1883
+ middleware = [],
1884
+ platform
1885
+ } = config;
1886
+ const validMiddleware = middleware.filter(Boolean);
1887
+ const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
1888
+ let rects = await platform.getElementRects({
1889
+ reference,
1890
+ floating,
1891
+ strategy
1892
+ });
1893
+ let {
1894
+ x,
1895
+ y
1896
+ } = computeCoordsFromPlacement(rects, placement, rtl);
1897
+ let statefulPlacement = placement;
1898
+ let middlewareData = {};
1899
+ let resetCount = 0;
1900
+ for (let i = 0; i < validMiddleware.length; i++) {
1901
+ const {
1902
+ name,
1903
+ fn
1904
+ } = validMiddleware[i];
1905
+ const {
1906
+ x: nextX,
1907
+ y: nextY,
1908
+ data,
1909
+ reset
1910
+ } = await fn({
1911
+ x,
1912
+ y,
1913
+ initialPlacement: placement,
1914
+ placement: statefulPlacement,
1915
+ strategy,
1916
+ middlewareData,
1917
+ rects,
1918
+ platform,
1919
+ elements: {
1920
+ reference,
1921
+ floating
1922
+ }
1923
+ });
1924
+ x = nextX != null ? nextX : x;
1925
+ y = nextY != null ? nextY : y;
1926
+ middlewareData = {
1927
+ ...middlewareData,
1928
+ [name]: {
1929
+ ...middlewareData[name],
1930
+ ...data
1931
+ }
1932
+ };
1933
+ if (reset && resetCount <= 50) {
1934
+ resetCount++;
1935
+ if (typeof reset === 'object') {
1936
+ if (reset.placement) {
1937
+ statefulPlacement = reset.placement;
1938
+ }
1939
+ if (reset.rects) {
1940
+ rects = reset.rects === true ? await platform.getElementRects({
1941
+ reference,
1942
+ floating,
1943
+ strategy
1944
+ }) : reset.rects;
1945
+ }
1946
+ ({
1947
+ x,
1948
+ y
1949
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
1950
+ }
1951
+ i = -1;
1952
+ }
1953
+ }
1954
+ return {
1955
+ x,
1956
+ y,
1957
+ placement: statefulPlacement,
1958
+ strategy,
1959
+ middlewareData
1960
+ };
1961
+ };
1962
+
1963
+ /**
1964
+ * Resolves with an object of overflow side offsets that determine how much the
1965
+ * element is overflowing a given clipping boundary on each side.
1966
+ * - positive = overflowing the boundary by that number of pixels
1967
+ * - negative = how many pixels left before it will overflow
1968
+ * - 0 = lies flush with the boundary
1969
+ * @see https://floating-ui.com/docs/detectOverflow
1970
+ */
1971
+ async function detectOverflow(state, options) {
1972
+ var _await$platform$isEle;
1973
+ if (options === undefined) {
1974
+ options = {};
1975
+ }
1976
+ const {
1977
+ x,
1978
+ y,
1979
+ platform,
1980
+ rects,
1981
+ elements,
1982
+ strategy
1983
+ } = state;
1984
+ const {
1985
+ boundary = 'clippingAncestors',
1986
+ rootBoundary = 'viewport',
1987
+ elementContext = 'floating',
1988
+ altBoundary = false,
1989
+ padding = 0
1990
+ } = evaluate(options, state);
1991
+ const paddingObject = getPaddingObject(padding);
1992
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
1993
+ const element = elements[altBoundary ? altContext : elementContext];
1994
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
1995
+ element: ((_await$platform$isEle = await (platform.isElement == null ? undefined : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? undefined : platform.getDocumentElement(elements.floating))),
1996
+ boundary,
1997
+ rootBoundary,
1998
+ strategy
1999
+ }));
2000
+ const rect = elementContext === 'floating' ? {
2001
+ x,
2002
+ y,
2003
+ width: rects.floating.width,
2004
+ height: rects.floating.height
2005
+ } : rects.reference;
2006
+ const offsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(elements.floating));
2007
+ const offsetScale = (await (platform.isElement == null ? undefined : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? undefined : platform.getScale(offsetParent))) || {
2008
+ x: 1,
2009
+ y: 1
2010
+ } : {
2011
+ x: 1,
2012
+ y: 1
2013
+ };
2014
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
2015
+ elements,
2016
+ rect,
2017
+ offsetParent,
2018
+ strategy
2019
+ }) : rect);
2020
+ return {
2021
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
2022
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
2023
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
2024
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
2025
+ };
2026
+ }
2027
+
2028
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
2029
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
2030
+ return allowedPlacementsSortedByAlignment.filter(placement => {
2031
+ if (alignment) {
2032
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
2033
+ }
2034
+ return true;
2035
+ });
2036
+ }
2037
+ /**
2038
+ * Optimizes the visibility of the floating element by choosing the placement
2039
+ * that has the most space available automatically, without needing to specify a
2040
+ * preferred placement. Alternative to `flip`.
2041
+ * @see https://floating-ui.com/docs/autoPlacement
2042
+ */
2043
+ const autoPlacement$1 = function (options) {
2044
+ if (options === undefined) {
2045
+ options = {};
2046
+ }
2047
+ return {
2048
+ name: 'autoPlacement',
2049
+ options,
2050
+ async fn(state) {
2051
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
2052
+ const {
2053
+ rects,
2054
+ middlewareData,
2055
+ placement,
2056
+ platform,
2057
+ elements
2058
+ } = state;
2059
+ const {
2060
+ crossAxis = false,
2061
+ alignment,
2062
+ allowedPlacements = placements,
2063
+ autoAlignment = true,
2064
+ ...detectOverflowOptions
2065
+ } = evaluate(options, state);
2066
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
2067
+ const overflow = await detectOverflow(state, detectOverflowOptions);
2068
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
2069
+ const currentPlacement = placements$1[currentIndex];
2070
+ if (currentPlacement == null) {
2071
+ return {};
2072
+ }
2073
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
2074
+
2075
+ // Make `computeCoords` start from the right place.
2076
+ if (placement !== currentPlacement) {
2077
+ return {
2078
+ reset: {
2079
+ placement: placements$1[0]
2080
+ }
2081
+ };
2082
+ }
2083
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
2084
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
2085
+ placement: currentPlacement,
2086
+ overflows: currentOverflows
2087
+ }];
2088
+ const nextPlacement = placements$1[currentIndex + 1];
2089
+
2090
+ // There are more placements to check.
2091
+ if (nextPlacement) {
2092
+ return {
2093
+ data: {
2094
+ index: currentIndex + 1,
2095
+ overflows: allOverflows
2096
+ },
2097
+ reset: {
2098
+ placement: nextPlacement
2099
+ }
2100
+ };
2101
+ }
2102
+ const placementsSortedByMostSpace = allOverflows.map(d => {
2103
+ const alignment = getAlignment(d.placement);
2104
+ return [d.placement, alignment && crossAxis ?
2105
+ // Check along the mainAxis and main crossAxis side.
2106
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
2107
+ // Check only the mainAxis.
2108
+ d.overflows[0], d.overflows];
2109
+ }).sort((a, b) => a[1] - b[1]);
2110
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
2111
+ // Aligned placements should not check their opposite crossAxis
2112
+ // side.
2113
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
2114
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
2115
+ if (resetPlacement !== placement) {
2116
+ return {
2117
+ data: {
2118
+ index: currentIndex + 1,
2119
+ overflows: allOverflows
2120
+ },
2121
+ reset: {
2122
+ placement: resetPlacement
2123
+ }
2124
+ };
2125
+ }
2126
+ return {};
2127
+ }
2128
+ };
2129
+ };
2130
+
2131
+ /**
2132
+ * Optimizes the visibility of the floating element by flipping the `placement`
2133
+ * in order to keep it in view when the preferred placement(s) will overflow the
2134
+ * clipping boundary. Alternative to `autoPlacement`.
2135
+ * @see https://floating-ui.com/docs/flip
2136
+ */
2137
+ const flip$1 = function (options) {
2138
+ if (options === undefined) {
2139
+ options = {};
2140
+ }
2141
+ return {
2142
+ name: 'flip',
2143
+ options,
2144
+ async fn(state) {
2145
+ var _middlewareData$arrow, _middlewareData$flip;
2146
+ const {
2147
+ placement,
2148
+ middlewareData,
2149
+ rects,
2150
+ initialPlacement,
2151
+ platform,
2152
+ elements
2153
+ } = state;
2154
+ const {
2155
+ mainAxis: checkMainAxis = true,
2156
+ crossAxis: checkCrossAxis = true,
2157
+ fallbackPlacements: specifiedFallbackPlacements,
2158
+ fallbackStrategy = 'bestFit',
2159
+ fallbackAxisSideDirection = 'none',
2160
+ flipAlignment = true,
2161
+ ...detectOverflowOptions
2162
+ } = evaluate(options, state);
2163
+
2164
+ // If a reset by the arrow was caused due to an alignment offset being
2165
+ // added, we should skip any logic now since `flip()` has already done its
2166
+ // work.
2167
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
2168
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
2169
+ return {};
2170
+ }
2171
+ const side = getSide(placement);
2172
+ const initialSideAxis = getSideAxis(initialPlacement);
2173
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
2174
+ const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
2175
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
2176
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
2177
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
2178
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
2179
+ }
2180
+ const placements = [initialPlacement, ...fallbackPlacements];
2181
+ const overflow = await detectOverflow(state, detectOverflowOptions);
2182
+ const overflows = [];
2183
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
2184
+ if (checkMainAxis) {
2185
+ overflows.push(overflow[side]);
2186
+ }
2187
+ if (checkCrossAxis) {
2188
+ const sides = getAlignmentSides(placement, rects, rtl);
2189
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
2190
+ }
2191
+ overflowsData = [...overflowsData, {
2192
+ placement,
2193
+ overflows
2194
+ }];
2195
+
2196
+ // One or more sides is overflowing.
2197
+ if (!overflows.every(side => side <= 0)) {
2198
+ var _middlewareData$flip2, _overflowsData$filter;
2199
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
2200
+ const nextPlacement = placements[nextIndex];
2201
+ if (nextPlacement) {
2202
+ // Try next placement and re-run the lifecycle.
2203
+ return {
2204
+ data: {
2205
+ index: nextIndex,
2206
+ overflows: overflowsData
2207
+ },
2208
+ reset: {
2209
+ placement: nextPlacement
2210
+ }
2211
+ };
2212
+ }
2213
+
2214
+ // First, find the candidates that fit on the mainAxis side of overflow,
2215
+ // then find the placement that fits the best on the main crossAxis side.
2216
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? undefined : _overflowsData$filter.placement;
2217
+
2218
+ // Otherwise fallback.
2219
+ if (!resetPlacement) {
2220
+ switch (fallbackStrategy) {
2221
+ case 'bestFit':
2222
+ {
2223
+ var _overflowsData$filter2;
2224
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
2225
+ if (hasFallbackAxisSideDirection) {
2226
+ const currentSideAxis = getSideAxis(d.placement);
2227
+ return currentSideAxis === initialSideAxis ||
2228
+ // Create a bias to the `y` side axis due to horizontal
2229
+ // reading directions favoring greater width.
2230
+ currentSideAxis === 'y';
2231
+ }
2232
+ return true;
2233
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
2234
+ if (placement) {
2235
+ resetPlacement = placement;
2236
+ }
2237
+ break;
2238
+ }
2239
+ case 'initialPlacement':
2240
+ resetPlacement = initialPlacement;
2241
+ break;
2242
+ }
2243
+ }
2244
+ if (placement !== resetPlacement) {
2245
+ return {
2246
+ reset: {
2247
+ placement: resetPlacement
2248
+ }
2249
+ };
2250
+ }
2251
+ }
2252
+ return {};
2253
+ }
2254
+ };
2255
+ };
2256
+
2257
+ // For type backwards-compatibility, the `OffsetOptions` type was also
2258
+ // Derivable.
2259
+
2260
+ async function convertValueToCoords(state, options) {
2261
+ const {
2262
+ placement,
2263
+ platform,
2264
+ elements
2265
+ } = state;
2266
+ const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
2267
+ const side = getSide(placement);
2268
+ const alignment = getAlignment(placement);
2269
+ const isVertical = getSideAxis(placement) === 'y';
2270
+ const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
2271
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
2272
+ const rawValue = evaluate(options, state);
2273
+
2274
+ // eslint-disable-next-line prefer-const
2275
+ let {
2276
+ mainAxis,
2277
+ crossAxis,
2278
+ alignmentAxis
2279
+ } = typeof rawValue === 'number' ? {
2280
+ mainAxis: rawValue,
2281
+ crossAxis: 0,
2282
+ alignmentAxis: null
2283
+ } : {
2284
+ mainAxis: rawValue.mainAxis || 0,
2285
+ crossAxis: rawValue.crossAxis || 0,
2286
+ alignmentAxis: rawValue.alignmentAxis
2287
+ };
2288
+ if (alignment && typeof alignmentAxis === 'number') {
2289
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
2290
+ }
2291
+ return isVertical ? {
2292
+ x: crossAxis * crossAxisMulti,
2293
+ y: mainAxis * mainAxisMulti
2294
+ } : {
2295
+ x: mainAxis * mainAxisMulti,
2296
+ y: crossAxis * crossAxisMulti
2297
+ };
2298
+ }
2299
+
2300
+ /**
2301
+ * Modifies the placement by translating the floating element along the
2302
+ * specified axes.
2303
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
2304
+ * object may be passed.
2305
+ * @see https://floating-ui.com/docs/offset
2306
+ */
2307
+ const offset$1 = function (options) {
2308
+ if (options === undefined) {
2309
+ options = 0;
2310
+ }
2311
+ return {
2312
+ name: 'offset',
2313
+ options,
2314
+ async fn(state) {
2315
+ var _middlewareData$offse, _middlewareData$arrow;
2316
+ const {
2317
+ x,
2318
+ y,
2319
+ placement,
2320
+ middlewareData
2321
+ } = state;
2322
+ const diffCoords = await convertValueToCoords(state, options);
2323
+
2324
+ // If the placement is the same and the arrow caused an alignment offset
2325
+ // then we don't need to change the positioning coordinates.
2326
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? undefined : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
2327
+ return {};
2328
+ }
2329
+ return {
2330
+ x: x + diffCoords.x,
2331
+ y: y + diffCoords.y,
2332
+ data: {
2333
+ ...diffCoords,
2334
+ placement
2335
+ }
2336
+ };
2337
+ }
2338
+ };
2339
+ };
2340
+
2341
+ function hasWindow() {
2342
+ return typeof window !== 'undefined';
2343
+ }
2344
+ function getNodeName(node) {
2345
+ if (isNode(node)) {
2346
+ return (node.nodeName || '').toLowerCase();
2347
+ }
2348
+ // Mocked nodes in testing environments may not be instances of Node. By
2349
+ // returning `#document` an infinite loop won't occur.
2350
+ // https://github.com/floating-ui/floating-ui/issues/2317
2351
+ return '#document';
2352
+ }
2353
+ function getWindow(node) {
2354
+ var _node$ownerDocument;
2355
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
2356
+ }
2357
+ function getDocumentElement(node) {
2358
+ var _ref;
2359
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? undefined : _ref.documentElement;
2360
+ }
2361
+ function isNode(value) {
2362
+ if (!hasWindow()) {
2363
+ return false;
2364
+ }
2365
+ return value instanceof Node || value instanceof getWindow(value).Node;
2366
+ }
2367
+ function isElement(value) {
2368
+ if (!hasWindow()) {
2369
+ return false;
2370
+ }
2371
+ return value instanceof Element || value instanceof getWindow(value).Element;
2372
+ }
2373
+ function isHTMLElement(value) {
2374
+ if (!hasWindow()) {
2375
+ return false;
2376
+ }
2377
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
2378
+ }
2379
+ function isShadowRoot(value) {
2380
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
2381
+ return false;
2382
+ }
2383
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
2384
+ }
2385
+ function isOverflowElement(element) {
2386
+ const {
2387
+ overflow,
2388
+ overflowX,
2389
+ overflowY,
2390
+ display
2391
+ } = getComputedStyle$1(element);
2392
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
2393
+ }
2394
+ function isTableElement(element) {
2395
+ return ['table', 'td', 'th'].includes(getNodeName(element));
2396
+ }
2397
+ function isTopLayer(element) {
2398
+ return [':popover-open', ':modal'].some(selector => {
2399
+ try {
2400
+ return element.matches(selector);
2401
+ } catch (e) {
2402
+ return false;
2403
+ }
2404
+ });
2405
+ }
2406
+ function isContainingBlock(elementOrCss) {
2407
+ const webkit = isWebKit();
2408
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
2409
+
2410
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2411
+ return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
2412
+ }
2413
+ function getContainingBlock(element) {
2414
+ let currentNode = getParentNode(element);
2415
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
2416
+ if (isContainingBlock(currentNode)) {
2417
+ return currentNode;
2418
+ } else if (isTopLayer(currentNode)) {
2419
+ return null;
2420
+ }
2421
+ currentNode = getParentNode(currentNode);
2422
+ }
2423
+ return null;
2424
+ }
2425
+ function isWebKit() {
2426
+ if (typeof CSS === 'undefined' || !CSS.supports) return false;
2427
+ return CSS.supports('-webkit-backdrop-filter', 'none');
2428
+ }
2429
+ function isLastTraversableNode(node) {
2430
+ return ['html', 'body', '#document'].includes(getNodeName(node));
2431
+ }
2432
+ function getComputedStyle$1(element) {
2433
+ return getWindow(element).getComputedStyle(element);
2434
+ }
2435
+ function getNodeScroll(element) {
2436
+ if (isElement(element)) {
2437
+ return {
2438
+ scrollLeft: element.scrollLeft,
2439
+ scrollTop: element.scrollTop
2440
+ };
2441
+ }
2442
+ return {
2443
+ scrollLeft: element.scrollX,
2444
+ scrollTop: element.scrollY
2445
+ };
2446
+ }
2447
+ function getParentNode(node) {
2448
+ if (getNodeName(node) === 'html') {
2449
+ return node;
2450
+ }
2451
+ const result =
2452
+ // Step into the shadow DOM of the parent of a slotted node.
2453
+ node.assignedSlot ||
2454
+ // DOM Element detected.
2455
+ node.parentNode ||
2456
+ // ShadowRoot detected.
2457
+ isShadowRoot(node) && node.host ||
2458
+ // Fallback.
2459
+ getDocumentElement(node);
2460
+ return isShadowRoot(result) ? result.host : result;
2461
+ }
2462
+ function getNearestOverflowAncestor(node) {
2463
+ const parentNode = getParentNode(node);
2464
+ if (isLastTraversableNode(parentNode)) {
2465
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
2466
+ }
2467
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
2468
+ return parentNode;
2469
+ }
2470
+ return getNearestOverflowAncestor(parentNode);
2471
+ }
2472
+ function getOverflowAncestors(node, list, traverseIframes) {
2473
+ var _node$ownerDocument2;
2474
+ if (list === undefined) {
2475
+ list = [];
2476
+ }
2477
+ if (traverseIframes === undefined) {
2478
+ traverseIframes = true;
2479
+ }
2480
+ const scrollableAncestor = getNearestOverflowAncestor(node);
2481
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
2482
+ const win = getWindow(scrollableAncestor);
2483
+ if (isBody) {
2484
+ const frameElement = getFrameElement(win);
2485
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
2486
+ }
2487
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
2488
+ }
2489
+ function getFrameElement(win) {
2490
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
2491
+ }
2492
+
2493
+ function getCssDimensions(element) {
2494
+ const css = getComputedStyle$1(element);
2495
+ // In testing environments, the `width` and `height` properties are empty
2496
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
2497
+ let width = parseFloat(css.width) || 0;
2498
+ let height = parseFloat(css.height) || 0;
2499
+ const hasOffset = isHTMLElement(element);
2500
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
2501
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
2502
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
2503
+ if (shouldFallback) {
2504
+ width = offsetWidth;
2505
+ height = offsetHeight;
2506
+ }
2507
+ return {
2508
+ width,
2509
+ height,
2510
+ $: shouldFallback
2511
+ };
2512
+ }
2513
+
2514
+ function unwrapElement(element) {
2515
+ return !isElement(element) ? element.contextElement : element;
2516
+ }
2517
+
2518
+ function getScale(element) {
2519
+ const domElement = unwrapElement(element);
2520
+ if (!isHTMLElement(domElement)) {
2521
+ return createCoords(1);
2522
+ }
2523
+ const rect = domElement.getBoundingClientRect();
2524
+ const {
2525
+ width,
2526
+ height,
2527
+ $
2528
+ } = getCssDimensions(domElement);
2529
+ let x = ($ ? round(rect.width) : rect.width) / width;
2530
+ let y = ($ ? round(rect.height) : rect.height) / height;
2531
+
2532
+ // 0, NaN, or Infinity should always fallback to 1.
2533
+
2534
+ if (!x || !Number.isFinite(x)) {
2535
+ x = 1;
2536
+ }
2537
+ if (!y || !Number.isFinite(y)) {
2538
+ y = 1;
2539
+ }
2540
+ return {
2541
+ x,
2542
+ y
2543
+ };
2544
+ }
2545
+
2546
+ const noOffsets = /*#__PURE__*/createCoords(0);
2547
+ function getVisualOffsets(element) {
2548
+ const win = getWindow(element);
2549
+ if (!isWebKit() || !win.visualViewport) {
2550
+ return noOffsets;
2551
+ }
2552
+ return {
2553
+ x: win.visualViewport.offsetLeft,
2554
+ y: win.visualViewport.offsetTop
2555
+ };
2556
+ }
2557
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
2558
+ if (isFixed === undefined) {
2559
+ isFixed = false;
2560
+ }
2561
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
2562
+ return false;
2563
+ }
2564
+ return isFixed;
2565
+ }
2566
+
2567
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
2568
+ if (includeScale === undefined) {
2569
+ includeScale = false;
2570
+ }
2571
+ if (isFixedStrategy === undefined) {
2572
+ isFixedStrategy = false;
2573
+ }
2574
+ const clientRect = element.getBoundingClientRect();
2575
+ const domElement = unwrapElement(element);
2576
+ let scale = createCoords(1);
2577
+ if (includeScale) {
2578
+ if (offsetParent) {
2579
+ if (isElement(offsetParent)) {
2580
+ scale = getScale(offsetParent);
2581
+ }
2582
+ } else {
2583
+ scale = getScale(element);
2584
+ }
2585
+ }
2586
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
2587
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
2588
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
2589
+ let width = clientRect.width / scale.x;
2590
+ let height = clientRect.height / scale.y;
2591
+ if (domElement) {
2592
+ const win = getWindow(domElement);
2593
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
2594
+ let currentWin = win;
2595
+ let currentIFrame = getFrameElement(currentWin);
2596
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
2597
+ const iframeScale = getScale(currentIFrame);
2598
+ const iframeRect = currentIFrame.getBoundingClientRect();
2599
+ const css = getComputedStyle$1(currentIFrame);
2600
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
2601
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
2602
+ x *= iframeScale.x;
2603
+ y *= iframeScale.y;
2604
+ width *= iframeScale.x;
2605
+ height *= iframeScale.y;
2606
+ x += left;
2607
+ y += top;
2608
+ currentWin = getWindow(currentIFrame);
2609
+ currentIFrame = getFrameElement(currentWin);
2610
+ }
2611
+ }
2612
+ return rectToClientRect({
2613
+ width,
2614
+ height,
2615
+ x,
2616
+ y
2617
+ });
2618
+ }
2619
+
2620
+ // If <html> has a CSS width greater than the viewport, then this will be
2621
+ // incorrect for RTL.
2622
+ function getWindowScrollBarX(element, rect) {
2623
+ const leftScroll = getNodeScroll(element).scrollLeft;
2624
+ if (!rect) {
2625
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
2626
+ }
2627
+ return rect.left + leftScroll;
2628
+ }
2629
+
2630
+ function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
2631
+ if (ignoreScrollbarX === undefined) {
2632
+ ignoreScrollbarX = false;
2633
+ }
2634
+ const htmlRect = documentElement.getBoundingClientRect();
2635
+ const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
2636
+ // RTL <body> scrollbar.
2637
+ getWindowScrollBarX(documentElement, htmlRect));
2638
+ const y = htmlRect.top + scroll.scrollTop;
2639
+ return {
2640
+ x,
2641
+ y
2642
+ };
2643
+ }
2644
+
2645
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
2646
+ let {
2647
+ elements,
2648
+ rect,
2649
+ offsetParent,
2650
+ strategy
2651
+ } = _ref;
2652
+ const isFixed = strategy === 'fixed';
2653
+ const documentElement = getDocumentElement(offsetParent);
2654
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
2655
+ if (offsetParent === documentElement || topLayer && isFixed) {
2656
+ return rect;
2657
+ }
2658
+ let scroll = {
2659
+ scrollLeft: 0,
2660
+ scrollTop: 0
2661
+ };
2662
+ let scale = createCoords(1);
2663
+ const offsets = createCoords(0);
2664
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
2665
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
2666
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
2667
+ scroll = getNodeScroll(offsetParent);
2668
+ }
2669
+ if (isHTMLElement(offsetParent)) {
2670
+ const offsetRect = getBoundingClientRect(offsetParent);
2671
+ scale = getScale(offsetParent);
2672
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
2673
+ offsets.y = offsetRect.y + offsetParent.clientTop;
2674
+ }
2675
+ }
2676
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
2677
+ return {
2678
+ width: rect.width * scale.x,
2679
+ height: rect.height * scale.y,
2680
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
2681
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
2682
+ };
2683
+ }
2684
+
2685
+ function getClientRects(element) {
2686
+ return Array.from(element.getClientRects());
2687
+ }
2688
+
2689
+ // Gets the entire size of the scrollable document area, even extending outside
2690
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
2691
+ function getDocumentRect(element) {
2692
+ const html = getDocumentElement(element);
2693
+ const scroll = getNodeScroll(element);
2694
+ const body = element.ownerDocument.body;
2695
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
2696
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
2697
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
2698
+ const y = -scroll.scrollTop;
2699
+ if (getComputedStyle$1(body).direction === 'rtl') {
2700
+ x += max(html.clientWidth, body.clientWidth) - width;
2701
+ }
2702
+ return {
2703
+ width,
2704
+ height,
2705
+ x,
2706
+ y
2707
+ };
2708
+ }
2709
+
2710
+ function getViewportRect(element, strategy) {
2711
+ const win = getWindow(element);
2712
+ const html = getDocumentElement(element);
2713
+ const visualViewport = win.visualViewport;
2714
+ let width = html.clientWidth;
2715
+ let height = html.clientHeight;
2716
+ let x = 0;
2717
+ let y = 0;
2718
+ if (visualViewport) {
2719
+ width = visualViewport.width;
2720
+ height = visualViewport.height;
2721
+ const visualViewportBased = isWebKit();
2722
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
2723
+ x = visualViewport.offsetLeft;
2724
+ y = visualViewport.offsetTop;
2725
+ }
2726
+ }
2727
+ return {
2728
+ width,
2729
+ height,
2730
+ x,
2731
+ y
2732
+ };
2733
+ }
2734
+
2735
+ // Returns the inner client rect, subtracting scrollbars if present.
2736
+ function getInnerBoundingClientRect(element, strategy) {
2737
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
2738
+ const top = clientRect.top + element.clientTop;
2739
+ const left = clientRect.left + element.clientLeft;
2740
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
2741
+ const width = element.clientWidth * scale.x;
2742
+ const height = element.clientHeight * scale.y;
2743
+ const x = left * scale.x;
2744
+ const y = top * scale.y;
2745
+ return {
2746
+ width,
2747
+ height,
2748
+ x,
2749
+ y
2750
+ };
2751
+ }
2752
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
2753
+ let rect;
2754
+ if (clippingAncestor === 'viewport') {
2755
+ rect = getViewportRect(element, strategy);
2756
+ } else if (clippingAncestor === 'document') {
2757
+ rect = getDocumentRect(getDocumentElement(element));
2758
+ } else if (isElement(clippingAncestor)) {
2759
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
2760
+ } else {
2761
+ const visualOffsets = getVisualOffsets(element);
2762
+ rect = {
2763
+ x: clippingAncestor.x - visualOffsets.x,
2764
+ y: clippingAncestor.y - visualOffsets.y,
2765
+ width: clippingAncestor.width,
2766
+ height: clippingAncestor.height
2767
+ };
2768
+ }
2769
+ return rectToClientRect(rect);
2770
+ }
2771
+ function hasFixedPositionAncestor(element, stopNode) {
2772
+ const parentNode = getParentNode(element);
2773
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
2774
+ return false;
2775
+ }
2776
+ return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
2777
+ }
2778
+
2779
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
2780
+ // clipping (or hiding) child elements. This returns all clipping ancestors
2781
+ // of the given element up the tree.
2782
+ function getClippingElementAncestors(element, cache) {
2783
+ const cachedResult = cache.get(element);
2784
+ if (cachedResult) {
2785
+ return cachedResult;
2786
+ }
2787
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
2788
+ let currentContainingBlockComputedStyle = null;
2789
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
2790
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
2791
+
2792
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2793
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2794
+ const computedStyle = getComputedStyle$1(currentNode);
2795
+ const currentNodeIsContaining = isContainingBlock(currentNode);
2796
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
2797
+ currentContainingBlockComputedStyle = null;
2798
+ }
2799
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
2800
+ if (shouldDropCurrentNode) {
2801
+ // Drop non-containing blocks.
2802
+ result = result.filter(ancestor => ancestor !== currentNode);
2803
+ } else {
2804
+ // Record last containing block for next iteration.
2805
+ currentContainingBlockComputedStyle = computedStyle;
2806
+ }
2807
+ currentNode = getParentNode(currentNode);
2808
+ }
2809
+ cache.set(element, result);
2810
+ return result;
2811
+ }
2812
+
2813
+ // Gets the maximum area that the element is visible in due to any number of
2814
+ // clipping ancestors.
2815
+ function getClippingRect(_ref) {
2816
+ let {
2817
+ element,
2818
+ boundary,
2819
+ rootBoundary,
2820
+ strategy
2821
+ } = _ref;
2822
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
2823
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
2824
+ const firstClippingAncestor = clippingAncestors[0];
2825
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
2826
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
2827
+ accRect.top = max(rect.top, accRect.top);
2828
+ accRect.right = min(rect.right, accRect.right);
2829
+ accRect.bottom = min(rect.bottom, accRect.bottom);
2830
+ accRect.left = max(rect.left, accRect.left);
2831
+ return accRect;
2832
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
2833
+ return {
2834
+ width: clippingRect.right - clippingRect.left,
2835
+ height: clippingRect.bottom - clippingRect.top,
2836
+ x: clippingRect.left,
2837
+ y: clippingRect.top
2838
+ };
2839
+ }
2840
+
2841
+ function getDimensions(element) {
2842
+ const {
2843
+ width,
2844
+ height
2845
+ } = getCssDimensions(element);
2846
+ return {
2847
+ width,
2848
+ height
2849
+ };
2850
+ }
2851
+
2852
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
2853
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
2854
+ const documentElement = getDocumentElement(offsetParent);
2855
+ const isFixed = strategy === 'fixed';
2856
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
2857
+ let scroll = {
2858
+ scrollLeft: 0,
2859
+ scrollTop: 0
2860
+ };
2861
+ const offsets = createCoords(0);
2862
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
2863
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
2864
+ scroll = getNodeScroll(offsetParent);
2865
+ }
2866
+ if (isOffsetParentAnElement) {
2867
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
2868
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
2869
+ offsets.y = offsetRect.y + offsetParent.clientTop;
2870
+ } else if (documentElement) {
2871
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
2872
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
2873
+ offsets.x = getWindowScrollBarX(documentElement);
2874
+ }
2875
+ }
2876
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
2877
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
2878
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
2879
+ return {
2880
+ x,
2881
+ y,
2882
+ width: rect.width,
2883
+ height: rect.height
2884
+ };
2885
+ }
2886
+
2887
+ function isStaticPositioned(element) {
2888
+ return getComputedStyle$1(element).position === 'static';
2889
+ }
2890
+
2891
+ function getTrueOffsetParent(element, polyfill) {
2892
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
2893
+ return null;
2894
+ }
2895
+ if (polyfill) {
2896
+ return polyfill(element);
2897
+ }
2898
+ let rawOffsetParent = element.offsetParent;
2899
+
2900
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
2901
+ // while Chrome and Safari return the <body> element. The <body> element must
2902
+ // be used to perform the correct calculations even if the <html> element is
2903
+ // non-static.
2904
+ if (getDocumentElement(element) === rawOffsetParent) {
2905
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
2906
+ }
2907
+ return rawOffsetParent;
2908
+ }
2909
+
2910
+ // Gets the closest ancestor positioned element. Handles some edge cases,
2911
+ // such as table ancestors and cross browser bugs.
2912
+ function getOffsetParent(element, polyfill) {
2913
+ const win = getWindow(element);
2914
+ if (isTopLayer(element)) {
2915
+ return win;
2916
+ }
2917
+ if (!isHTMLElement(element)) {
2918
+ let svgOffsetParent = getParentNode(element);
2919
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
2920
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
2921
+ return svgOffsetParent;
2922
+ }
2923
+ svgOffsetParent = getParentNode(svgOffsetParent);
2924
+ }
2925
+ return win;
2926
+ }
2927
+ let offsetParent = getTrueOffsetParent(element, polyfill);
2928
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
2929
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
2930
+ }
2931
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
2932
+ return win;
2933
+ }
2934
+ return offsetParent || getContainingBlock(element) || win;
2935
+ }
2936
+
2937
+ const getElementRects = async function (data) {
2938
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
2939
+ const getDimensionsFn = this.getDimensions;
2940
+ const floatingDimensions = await getDimensionsFn(data.floating);
2941
+ return {
2942
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
2943
+ floating: {
2944
+ x: 0,
2945
+ y: 0,
2946
+ width: floatingDimensions.width,
2947
+ height: floatingDimensions.height
2948
+ }
2949
+ };
2950
+ };
2951
+
2952
+ function isRTL(element) {
2953
+ return getComputedStyle$1(element).direction === 'rtl';
2954
+ }
2955
+
2956
+ const platform = {
2957
+ convertOffsetParentRelativeRectToViewportRelativeRect,
2958
+ getDocumentElement,
2959
+ getClippingRect,
2960
+ getOffsetParent,
2961
+ getElementRects,
2962
+ getClientRects,
2963
+ getDimensions,
2964
+ getScale,
2965
+ isElement,
2966
+ isRTL
2967
+ };
2968
+
2969
+ // https://samthor.au/2021/observing-dom/
2970
+ function observeMove(element, onMove) {
2971
+ let io = null;
2972
+ let timeoutId;
2973
+ const root = getDocumentElement(element);
2974
+ function cleanup() {
2975
+ var _io;
2976
+ clearTimeout(timeoutId);
2977
+ (_io = io) == null || _io.disconnect();
2978
+ io = null;
2979
+ }
2980
+ function refresh(skip, threshold) {
2981
+ if (skip === undefined) {
2982
+ skip = false;
2983
+ }
2984
+ if (threshold === undefined) {
2985
+ threshold = 1;
2986
+ }
2987
+ cleanup();
2988
+ const {
2989
+ left,
2990
+ top,
2991
+ width,
2992
+ height
2993
+ } = element.getBoundingClientRect();
2994
+ if (!skip) {
2995
+ onMove();
2996
+ }
2997
+ if (!width || !height) {
2998
+ return;
2999
+ }
3000
+ const insetTop = floor(top);
3001
+ const insetRight = floor(root.clientWidth - (left + width));
3002
+ const insetBottom = floor(root.clientHeight - (top + height));
3003
+ const insetLeft = floor(left);
3004
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
3005
+ const options = {
3006
+ rootMargin,
3007
+ threshold: max(0, min(1, threshold)) || 1
3008
+ };
3009
+ let isFirstUpdate = true;
3010
+ function handleObserve(entries) {
3011
+ const ratio = entries[0].intersectionRatio;
3012
+ if (ratio !== threshold) {
3013
+ if (!isFirstUpdate) {
3014
+ return refresh();
3015
+ }
3016
+ if (!ratio) {
3017
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
3018
+ // to prevent an infinite loop of updates.
3019
+ timeoutId = setTimeout(() => {
3020
+ refresh(false, 1e-7);
3021
+ }, 1000);
3022
+ } else {
3023
+ refresh(false, ratio);
3024
+ }
3025
+ }
3026
+ isFirstUpdate = false;
3027
+ }
3028
+
3029
+ // Older browsers don't support a `document` as the root and will throw an
3030
+ // error.
3031
+ try {
3032
+ io = new IntersectionObserver(handleObserve, {
3033
+ ...options,
3034
+ // Handle <iframe>s
3035
+ root: root.ownerDocument
3036
+ });
3037
+ } catch (e) {
3038
+ io = new IntersectionObserver(handleObserve, options);
3039
+ }
3040
+ io.observe(element);
3041
+ }
3042
+ refresh(true);
3043
+ return cleanup;
3044
+ }
3045
+
3046
+ /**
3047
+ * Automatically updates the position of the floating element when necessary.
3048
+ * Should only be called when the floating element is mounted on the DOM or
3049
+ * visible on the screen.
3050
+ * @returns cleanup function that should be invoked when the floating element is
3051
+ * removed from the DOM or hidden from the screen.
3052
+ * @see https://floating-ui.com/docs/autoUpdate
3053
+ */
3054
+ function autoUpdate(reference, floating, update, options) {
3055
+ if (options === undefined) {
3056
+ options = {};
3057
+ }
3058
+ const {
3059
+ ancestorScroll = true,
3060
+ ancestorResize = true,
3061
+ elementResize = typeof ResizeObserver === 'function',
3062
+ layoutShift = typeof IntersectionObserver === 'function',
3063
+ animationFrame = false
3064
+ } = options;
3065
+ const referenceEl = unwrapElement(reference);
3066
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
3067
+ ancestors.forEach(ancestor => {
3068
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
3069
+ passive: true
3070
+ });
3071
+ ancestorResize && ancestor.addEventListener('resize', update);
3072
+ });
3073
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
3074
+ let reobserveFrame = -1;
3075
+ let resizeObserver = null;
3076
+ if (elementResize) {
3077
+ resizeObserver = new ResizeObserver(_ref => {
3078
+ let [firstEntry] = _ref;
3079
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
3080
+ // Prevent update loops when using the `size` middleware.
3081
+ // https://github.com/floating-ui/floating-ui/issues/1740
3082
+ resizeObserver.unobserve(floating);
3083
+ cancelAnimationFrame(reobserveFrame);
3084
+ reobserveFrame = requestAnimationFrame(() => {
3085
+ var _resizeObserver;
3086
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
3087
+ });
3088
+ }
3089
+ update();
3090
+ });
3091
+ if (referenceEl && !animationFrame) {
3092
+ resizeObserver.observe(referenceEl);
3093
+ }
3094
+ resizeObserver.observe(floating);
3095
+ }
3096
+ let frameId;
3097
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
3098
+ if (animationFrame) {
3099
+ frameLoop();
3100
+ }
3101
+ function frameLoop() {
3102
+ const nextRefRect = getBoundingClientRect(reference);
3103
+ if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
3104
+ update();
3105
+ }
3106
+ prevRefRect = nextRefRect;
3107
+ frameId = requestAnimationFrame(frameLoop);
3108
+ }
3109
+ update();
3110
+ return () => {
3111
+ var _resizeObserver2;
3112
+ ancestors.forEach(ancestor => {
3113
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
3114
+ ancestorResize && ancestor.removeEventListener('resize', update);
3115
+ });
3116
+ cleanupIo == null || cleanupIo();
3117
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
3118
+ resizeObserver = null;
3119
+ if (animationFrame) {
3120
+ cancelAnimationFrame(frameId);
3121
+ }
3122
+ };
3123
+ }
3124
+
3125
+ /**
3126
+ * Modifies the placement by translating the floating element along the
3127
+ * specified axes.
3128
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
3129
+ * object may be passed.
3130
+ * @see https://floating-ui.com/docs/offset
3131
+ */
3132
+ const offset = offset$1;
3133
+
3134
+ /**
3135
+ * Optimizes the visibility of the floating element by choosing the placement
3136
+ * that has the most space available automatically, without needing to specify a
3137
+ * preferred placement. Alternative to `flip`.
3138
+ * @see https://floating-ui.com/docs/autoPlacement
3139
+ */
3140
+ const autoPlacement = autoPlacement$1;
3141
+
3142
+ /**
3143
+ * Optimizes the visibility of the floating element by flipping the `placement`
3144
+ * in order to keep it in view when the preferred placement(s) will overflow the
3145
+ * clipping boundary. Alternative to `autoPlacement`.
3146
+ * @see https://floating-ui.com/docs/flip
3147
+ */
3148
+ const flip = flip$1;
3149
+
3150
+ /**
3151
+ * Computes the `x` and `y` coordinates that will place the floating element
3152
+ * next to a given reference element.
3153
+ */
3154
+ const computePosition = (reference, floating, options) => {
3155
+ // This caches the expensive `getClippingElementAncestors` function so that
3156
+ // multiple lifecycle resets re-use the same result. It only lives for a
3157
+ // single call. If other functions become expensive, we can add them as well.
3158
+ const cache = new Map();
3159
+ const mergedOptions = {
3160
+ platform,
3161
+ ...options
3162
+ };
3163
+ const platformWithCache = {
3164
+ ...mergedOptions.platform,
3165
+ _c: cache
3166
+ };
3167
+ return computePosition$1(reference, floating, {
3168
+ ...mergedOptions,
3169
+ platform: platformWithCache
3170
+ });
3171
+ };
3172
+
3173
+ /* eslint-disable line-comment-position, no-inline-comments */
3174
+
3175
+
3176
+ class AuroFloatingUI {
3177
+ constructor() {
3178
+ // Store event listener references for cleanup
3179
+ this.focusHandler = null;
3180
+ this.clickHandler = null;
3181
+ this.keyDownHandler = null;
3182
+
3183
+ /**
3184
+ * @private
3185
+ */
3186
+ this.eventPrefix = undefined;
3187
+ }
3188
+
3189
+ /**
3190
+ * @private
3191
+ * Adjusts the size of the bib content based on the bibSizer dimensions.
3192
+ *
3193
+ * This method retrieves the computed styles of the bibSizer element and applies them to the bib content.
3194
+ * If the fullscreen parameter is true, it resets the dimensions to their default values. Otherwise, it
3195
+ * mirrors the width and height from the bibSizer, ensuring that they are not set to zero.
3196
+ *
3197
+ * @param {boolean} fullscreen - A flag indicating whether to reset the dimensions for fullscreen mode.
3198
+ * If true, the bib content dimensions are cleared; if false, they are set
3199
+ * based on the bibSizer's computed styles.
3200
+ */
3201
+ mirrorSize(fullscreen) {
3202
+ // mirror the boxsize from bibSizer
3203
+ if (this.element.bibSizer) {
3204
+ const sizerStyle = window.getComputedStyle(this.element.bibSizer);
3205
+ const bibContent = this.element.bib.shadowRoot.querySelector(".container");
3206
+ if (fullscreen) {
3207
+ bibContent.style.width = '';
3208
+ bibContent.style.height = '';
3209
+ bibContent.style.maxWidth = '';
3210
+ bibContent.style.maxHeight = '';
3211
+ } else {
3212
+ if (sizerStyle.width !== '0px') {
3213
+ bibContent.style.width = sizerStyle.width;
3214
+ }
3215
+ if (sizerStyle.height !== '0px') {
3216
+ bibContent.style.height = sizerStyle.height;
3217
+ }
3218
+ bibContent.style.maxWidth = sizerStyle.maxWidth;
3219
+ bibContent.style.maxHeight = sizerStyle.maxHeight;
3220
+ }
3221
+ }
3222
+ }
3223
+
3224
+ /**
3225
+ * @private
3226
+ * Determines the positioning strategy based on the current viewport size and mobile breakpoint.
3227
+ *
3228
+ * This method checks if the current viewport width is less than or equal to the specified mobile fullscreen breakpoint
3229
+ * defined in the bib element. If it is, the strategy is set to 'fullscreen'; otherwise, it defaults to 'floating'.
3230
+ *
3231
+ * @returns {String} The positioning strategy, either 'fullscreen' or 'floating'.
3232
+ */
3233
+ getPositioningStrategy() {
3234
+ let strategy = 'floating';
3235
+ if (this.element.bib.mobileFullscreenBreakpoint) {
3236
+ const isMobile = window.matchMedia(`(max-width: ${this.element.bib.mobileFullscreenBreakpoint})`).matches;
3237
+ if (isMobile) {
3238
+ strategy = 'fullscreen';
3239
+ }
3240
+ }
3241
+ return strategy;
3242
+ }
3243
+
3244
+ /**
3245
+ * @private
3246
+ * Positions the bib element based on the current configuration and positioning strategy.
3247
+ *
3248
+ * This method determines the appropriate positioning strategy (fullscreen or not) and configures the bib accordingly.
3249
+ * It also sets up middleware for the floater configuration, computes the position of the bib relative to the trigger element,
3250
+ * and applies the calculated position to the bib's style.
3251
+ */
3252
+ position() {
3253
+ const strategy = this.getPositioningStrategy();
3254
+ if (strategy === 'fullscreen') {
3255
+ this.configureBibFullscreen(true);
3256
+ this.mirrorSize(true);
3257
+ } else {
3258
+ this.configureBibFullscreen(false);
3259
+ this.mirrorSize(false);
3260
+
3261
+ // Define the middlware for the floater configuration
3262
+ const middleware = [
3263
+ offset(this.element.floaterConfig.offset || 0),
3264
+ ...(this.element.floaterConfig.flip ? [flip()] : []), // Add flip middleware if flip is enabled
3265
+ ...(this.element.floaterConfig.autoPlacement ? [autoPlacement()] : []), // Add autoPlacement middleware if autoPlacement is enabled
3266
+ ];
3267
+
3268
+ // Compute the position of the bib
3269
+ computePosition(this.element.trigger, this.element.bib, {
3270
+ placement: this.element.floaterConfig.placement || 'bottom',
3271
+ middleware: middleware
3272
+ }).then(({x, y}) => { // eslint-disable-line id-length
3273
+ Object.assign(this.element.bib.style, {
3274
+ left: `${x}px`,
3275
+ top: `${y}px`,
3276
+ });
3277
+ });
3278
+ }
3279
+ }
3280
+
3281
+ /**
3282
+ * @private
3283
+ * Configures the bib element for fullscreen mode based on the mobile status.
3284
+ *
3285
+ * This method sets the 'isFullscreen' attribute on the bib element to "true" if the `isMobile` parameter is true,
3286
+ * and resets its position to the top-left corner of the viewport. If `isMobile` is false, it removes the
3287
+ * 'isFullscreen' attribute, indicating that the bib is not in fullscreen mode.
3288
+ *
3289
+ * @param {boolean} isMobile - A flag indicating whether the current device is mobile.
3290
+ */
3291
+ configureBibFullscreen(isMobile) {
3292
+ if (isMobile) {
3293
+ this.element.bib.setAttribute('isFullscreen', "true");
3294
+ // reset the prev position
3295
+ this.element.bib.style.top = "0px";
3296
+ this.element.bib.style.left = "0px";
3297
+ } else {
3298
+ this.element.bib.removeAttribute('isFullscreen');
3299
+ }
3300
+ }
3301
+
3302
+ updateState() {
3303
+ const isVisible = this.element.isPopoverVisible;
3304
+ this.element.trigger.setAttribute('aria-expanded', isVisible);
3305
+
3306
+ if (isVisible) {
3307
+ this.element.bib.setAttribute('data-show', true);
3308
+ } else {
3309
+ this.element.bib.removeAttribute('data-show');
3310
+ }
3311
+
3312
+ if (!isVisible) {
3313
+ this.cleanupHideHandlers();
3314
+ try {
3315
+ this.element.cleanup?.();
3316
+ } catch (error) {
3317
+ // Do nothing
3318
+ }
3319
+ }
3320
+ }
3321
+
3322
+ handleFocusLoss() {
3323
+ if (this.element.noHideOnThisFocusLoss ||
3324
+ this.element.hasAttribute('noHideOnThisFocusLoss')) {
3325
+ return;
3326
+ }
3327
+
3328
+ const {activeElement} = document;
3329
+ if (activeElement === document.querySelector('body') ||
3330
+ this.element.contains(activeElement) ||
3331
+ this.element.bibContent?.contains(activeElement)) {
3332
+ return;
3333
+ }
3334
+
3335
+ this.hideBib();
3336
+ }
3337
+
3338
+ setupHideHandlers() {
3339
+ // Define handlers & store references
3340
+ this.focusHandler = () => this.handleFocusLoss();
3341
+
3342
+ this.clickHandler = (evt) => {
3343
+ if (!evt.composedPath().includes(this.element.trigger) &&
3344
+ !evt.composedPath().includes(this.element.bibContent)) {
3345
+ this.hideBib();
3346
+ }
3347
+ };
3348
+
3349
+ // ESC key handler
3350
+ this.keyDownHandler = (evt) => {
3351
+ if (evt.key === 'Escape' && this.element.isPopoverVisible) {
3352
+ this.hideBib();
3353
+ }
3354
+ };
3355
+
3356
+ // Add event listeners using the stored references
3357
+ document.addEventListener('focusin', this.focusHandler);
3358
+ window.addEventListener('click', this.clickHandler);
3359
+ document.addEventListener('keydown', this.keyDownHandler);
3360
+ }
3361
+
3362
+ cleanupHideHandlers() {
3363
+ // Remove event listeners if they exist
3364
+ if (this.focusHandler) {
3365
+ document.removeEventListener('focusin', this.focusHandler);
3366
+ this.focusHandler = null;
3367
+ }
3368
+
3369
+ if (this.clickHandler) {
3370
+ window.removeEventListener('click', this.clickHandler);
3371
+ this.clickHandler = null;
3372
+ }
3373
+
3374
+ if (this.keyDownHandler) {
3375
+ document.removeEventListener('keydown', this.keyDownHandler);
3376
+ this.keyDownHandler = null;
3377
+ }
3378
+ }
3379
+
3380
+ handleUpdate(changedProperties) {
3381
+ if (changedProperties.has('isPopoverVisible')) {
3382
+ this.updateState();
3383
+ }
3384
+ }
3385
+
3386
+ updateCurrentExpandedDropdown() {
3387
+ // Close any other dropdown that is already open
3388
+ if (document.expandedAuroDropdown) {
3389
+ this.hideBib(document.expandedAuroDropdown);
3390
+ }
3391
+
3392
+ document.expandedAuroDropdown = this;
3393
+ }
3394
+
3395
+ showBib() {
3396
+ if (!this.element.disabled && !this.element.isPopoverVisible) {
3397
+ this.updateCurrentExpandedDropdown();
3398
+ this.element.isPopoverVisible = true;
3399
+ this.element.triggerChevron?.setAttribute('data-expanded', true);
3400
+ this.dispatchEventDropdownToggle();
3401
+ this.position();
3402
+
3403
+ // Clean up any existing handlers before setting up new ones
3404
+ this.cleanupHideHandlers();
3405
+ this.setupHideHandlers();
3406
+
3407
+ // Setup auto update to handle resize and scroll
3408
+ this.element.cleanup = autoUpdate(this.element.trigger, this.element.bib, () => {
3409
+ this.position();
3410
+ });
3411
+ }
3412
+ }
3413
+
3414
+ hideBib() {
3415
+ if (this.element.isPopoverVisible && !this.element.disabled && !this.element.noToggle) {
3416
+ this.element.isPopoverVisible = false;
3417
+ this.element.triggerChevron?.removeAttribute('data-expanded');
3418
+ this.dispatchEventDropdownToggle();
3419
+ }
3420
+ }
3421
+
3422
+ /**
3423
+ * @private
3424
+ * @returns {void} Dispatches event with an object showing the state of the dropdown.
3425
+ */
3426
+ dispatchEventDropdownToggle() {
3427
+ const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3428
+ detail: {
3429
+ expanded: this.isPopoverVisible,
3430
+ },
3431
+ composed: true
3432
+ });
3433
+
3434
+ this.element.dispatchEvent(event);
3435
+ }
3436
+
3437
+ handleClick() {
3438
+ if (this.element.isPopoverVisible) {
3439
+ this.hideBib();
3440
+ } else {
3441
+ this.showBib();
3442
+ }
3443
+
3444
+ const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-triggerClick` : "triggerClick", {
3445
+ composed: true,
3446
+ details: {
3447
+ expanded: this.element.isPopoverVisible
3448
+ }
3449
+ });
3450
+
3451
+ this.element.dispatchEvent(event);
3452
+ }
3453
+
3454
+ handleEvent(event) {
3455
+ if (!this.element.disableEventShow) {
3456
+ switch (event.type) {
3457
+ case 'keydown':
3458
+ // Support both Enter and Space keys for accessibility
3459
+ // Space is included as it's expected behavior for interactive elements
3460
+ if (event.key === 'Enter' || event.key === ' ') {
3461
+ event.preventDefault(); // Prevent page scroll on space
3462
+ this.handleClick();
3463
+ }
3464
+ break;
3465
+ case 'mouseenter':
3466
+ if (this.element.hoverToggle) {
3467
+ this.showBib();
3468
+ }
3469
+ break;
3470
+ case 'mouseleave':
3471
+ if (this.element.hoverToggle) {
3472
+ this.hideBib();
3473
+ }
3474
+ break;
3475
+ case 'focus':
3476
+ if (this.element.focusShow) {
3477
+ /*
3478
+ This needs to better handle clicking that gives focus -
3479
+ currently it shows and then immediately hides the bib
3480
+ */
3481
+ this.showBib();
3482
+ }
3483
+ break;
3484
+ case 'blur':
3485
+ this.handleFocusLoss();
3486
+ break;
3487
+ case 'click':
3488
+ if (document.activeElement === document.body) {
3489
+ event.currentTarget.focus();
3490
+ }
3491
+ this.handleClick();
3492
+ break;
3493
+ // Do nothing
3494
+ }
3495
+ }
3496
+ }
3497
+
3498
+ handleTriggerTabIndex() {
3499
+ const focusableElementSelectors = [
3500
+ 'a',
3501
+ 'button',
3502
+ 'input:not([type="hidden"])',
3503
+ 'select',
3504
+ 'textarea',
3505
+ '[tabindex]:not([tabindex="-1"])',
3506
+ 'auro-button',
3507
+ 'auro-input',
3508
+ 'auro-hyperlink'
3509
+ ];
3510
+
3511
+ const triggerNode = this.element.querySelectorAll('[slot="trigger"]')[0];
3512
+ const triggerNodeTagName = triggerNode.tagName.toLowerCase();
3513
+
3514
+ focusableElementSelectors.forEach((selector) => {
3515
+ // Check if the trigger node element is focusable
3516
+ if (triggerNodeTagName === selector) {
3517
+ this.element.tabIndex = -1;
3518
+ return;
3519
+ }
3520
+
3521
+ // Check if any child is focusable
3522
+ if (triggerNode.querySelector(selector)) {
3523
+ this.element.tabIndex = -1;
3524
+ }
3525
+ });
3526
+ }
3527
+
3528
+ configure(elem, eventPrefix) {
3529
+ this.eventPrefix = eventPrefix;
3530
+ this.element = elem;
3531
+ this.element.trigger = this.element.shadowRoot.querySelector('#trigger');
3532
+ this.element.bib = this.element.shadowRoot.querySelector('#bib');
3533
+ this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
3534
+ this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');
3535
+
3536
+ document.body.append(this.element.bib);
3537
+
3538
+ this.handleTriggerTabIndex();
3539
+
3540
+ this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
3541
+ this.element.trigger.addEventListener('click', (event) => this.handleEvent(event));
3542
+ this.element.trigger.addEventListener('mouseenter', (event) => this.handleEvent(event));
3543
+ this.element.trigger.addEventListener('mouseleave', (event) => this.handleEvent(event));
3544
+ this.element.trigger.addEventListener('focus', (event) => this.handleEvent(event));
3545
+ this.element.trigger.addEventListener('blur', (event) => this.handleEvent(event));
3546
+ }
3547
+
3548
+ disconnect() {
3549
+ this.cleanupHideHandlers();
3550
+ this.element.cleanup?.();
3551
+
3552
+ // Remove event & keyboard listeners
3553
+ if (this.element?.trigger) {
3554
+ this.element.trigger.removeEventListener('keydown', (event) => this.handleEvent(event));
3555
+ this.element.trigger.removeEventListener('click', (event) => this.handleEvent(event));
3556
+ this.element.trigger.removeEventListener('mouseenter', (event) => this.handleEvent(event));
3557
+ this.element.trigger.removeEventListener('mouseleave', (event) => this.handleEvent(event));
3558
+ this.element.trigger.removeEventListener('focus', (event) => this.handleEvent(event));
3559
+ this.element.trigger.removeEventListener('blur', (event) => this.handleEvent(event));
3560
+ }
3561
+ }
3562
+ }
3563
+
3564
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3565
+ // See LICENSE in the project root for license information.
3566
+
3567
+
3568
+ class AuroDependencyVersioning {
3569
+
3570
+ /**
3571
+ * Generates a unique string to be used for child auro element naming.
3572
+ * @private
3573
+ * @param {string} baseName - Defines the first part of the unique element name.
3574
+ * @param {string} version - Version of the component that will be appended to the baseName.
3575
+ * @returns {string} - Unique string to be used for naming.
3576
+ */
3577
+ generateElementName(baseName, version) {
3578
+ let result = baseName;
3579
+
3580
+ result += '-';
3581
+ result += version.replace(/[.]/g, '_');
3582
+
3583
+ return result;
3584
+ }
3585
+
3586
+ /**
3587
+ * Generates a unique string to be used for child auro element naming.
3588
+ * @param {string} baseName - Defines the first part of the unique element name.
3589
+ * @param {string} version - Version of the component that will be appended to the baseName.
3590
+ * @returns {string} - Unique string to be used for naming.
3591
+ */
3592
+ generateTag(baseName, version, tagClass) {
3593
+ const elementName = this.generateElementName(baseName, version);
3594
+ const tag = i$4`${s$1(elementName)}`;
3595
+
3596
+ if (!customElements.get(elementName)) {
3597
+ customElements.define(elementName, class extends tagClass {});
3598
+ }
3599
+
3600
+ return tag;
3601
+ }
3602
+ }
3603
+
3604
+ /**
3605
+ * @license
3606
+ * Copyright 2017 Google LLC
3607
+ * SPDX-License-Identifier: BSD-3-Clause
3608
+ */
3609
+ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
3610
+
3611
+ /**
3612
+ * @license
3613
+ * Copyright 2018 Google LLC
3614
+ * SPDX-License-Identifier: BSD-3-Clause
3615
+ */const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
3616
+
3617
+ /**
3618
+ * @license
3619
+ * Copyright 2018 Google LLC
3620
+ * SPDX-License-Identifier: BSD-3-Clause
3621
+ */const o=o=>o??E;
3622
+
3623
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3624
+ // See LICENSE in the project root for license information.
3625
+
3626
+
3627
+ /**
3628
+ * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
3629
+ * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
3630
+ * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
3631
+ */
3632
+
3633
+ class AuroElement extends r {
3634
+
3635
+ // function to define props used within the scope of this component
3636
+ static get properties() {
3637
+ return {
3638
+ hidden: { type: Boolean,
3639
+ reflect: true },
3640
+ hiddenVisually: { type: Boolean,
3641
+ reflect: true },
3642
+ hiddenAudible: { type: Boolean,
3643
+ reflect: true },
3644
+ };
3645
+ }
3646
+
3647
+ /**
3648
+ * @private Function that determines state of aria-hidden
3649
+ */
3650
+ hideAudible(value) {
3651
+ if (value) {
3652
+ return 'true'
3653
+ }
3654
+
3655
+ return 'false'
3656
+ }
3657
+ }
3658
+
3659
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
3660
+
3661
+ /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
3662
+
3663
+ const _fetchMap = new Map();
3664
+
3665
+ /**
3666
+ * A callback to parse Response body.
3667
+ *
3668
+ * @callback ResponseParser
3669
+ * @param {Fetch.Response} response
3670
+ * @returns {Promise}
3671
+ */
3672
+
3673
+ /**
3674
+ * A minimal in-memory map to de-duplicate Fetch API media requests.
3675
+ *
3676
+ * @param {String} uri
3677
+ * @param {Object} [options={}]
3678
+ * @param {ResponseParser} [options.responseParser=(response) => response.text()]
3679
+ * @returns {Promise}
3680
+ */
3681
+ const cacheFetch = (uri, options = {}) => {
3682
+ const responseParser = options.responseParser || ((response) => response.text());
3683
+ if (!_fetchMap.has(uri)) {
3684
+ _fetchMap.set(uri, fetch(uri).then(responseParser));
3685
+ }
3686
+ return _fetchMap.get(uri);
3687
+ };
3688
+
3689
+ var styleCss$2 = i$3`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
3690
+
3691
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3692
+ // See LICENSE in the project root for license information.
3693
+
3694
+
3695
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
3696
+ /**
3697
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-icon
3698
+ * @slot - Hidden from visibility, used for a11y if icon description is needed
3699
+ */
3700
+
3701
+ // build the component class
3702
+ class BaseIcon extends AuroElement {
3703
+ constructor() {
3704
+ super();
3705
+ this.onDark = false;
3706
+ }
3707
+
3708
+ // function to define props used within the scope of this component
3709
+ static get properties() {
3710
+ return {
3711
+ ...super.properties,
3712
+ onDark: {
3713
+ type: Boolean,
3714
+ reflect: true
3715
+ },
3716
+
3717
+ /**
3718
+ * @private
3719
+ */
3720
+ svg: {
3721
+ attribute: false,
3722
+ reflect: true
3723
+ }
3724
+ };
3725
+ }
3726
+
3727
+ static get styles() {
3728
+ return i$3`
3729
+ ${styleCss$2}
3730
+ `;
3731
+ }
3732
+
3733
+ /**
3734
+ * Async function to fetch requested icon from npm CDN.
3735
+ * @private
3736
+ * @param {string} category - Icon category.
3737
+ * @param {string} name - Icon name.
3738
+ * @returns {SVGElement} DOM - Ready HTML to be appended.
3739
+ */
3740
+ async fetchIcon(category, name) {
3741
+ let iconHTML = '';
3742
+
3743
+ if (category === 'logos') {
3744
+ iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
3745
+ } else {
3746
+ iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
3747
+ }
3748
+
3749
+ const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
3750
+
3751
+ return dom.body.querySelector('svg');
3752
+ }
3753
+
3754
+ // lifecycle function
3755
+ async firstUpdated() {
3756
+ if (!this.customSvg) {
3757
+ const svg = await this.fetchIcon(this.category, this.name);
3758
+
3759
+ if (svg) {
3760
+ this.svg = svg;
3761
+ } else if (!svg) {
3762
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
3763
+
3764
+ this.svg = penDOM.body.firstChild;
3765
+ }
3766
+ }
3767
+ }
3768
+ }
3769
+
3770
+ var tokensCss$1 = i$3`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
3771
+
3772
+ var colorCss$2 = i$3`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
3773
+
3774
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3775
+ // See LICENSE in the project root for license information.
3776
+
3777
+
3778
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
3779
+ /**
3780
+ * auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
3781
+ *
3782
+ * @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
3783
+ * @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
3784
+ * @attr {Boolean} customColor - Removes primary selector.
3785
+ * @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
3786
+ * @attr {Boolean} label - Exposes content in slot as icon label.
3787
+ * @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
3788
+ * @attr {Boolean} accent - Sets the icon to use the accent style.
3789
+ * @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
3790
+ * @attr {Boolean} disabled - Sets the icon to use the disabled style.
3791
+ * @attr {Boolean} error - Sets the icon to use the error style.
3792
+ * @attr {Boolean} info - Sets the icon to use the info style.
3793
+ * @attr {Boolean} secondary - Sets the icon to use the secondary style.
3794
+ * @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
3795
+ * @attr {Boolean} subtle - Sets the icon to use the subtle style.
3796
+ * @attr {Boolean} success - Sets the icon to use the success style.
3797
+ * @attr {Boolean} warning - Sets the icon to use the warning style.
3798
+ * @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
3799
+ * @attr {String} uri - Set the uri for CDN used when fetching icons
3800
+ * @slot - Hidden from visibility, used for a11y if icon description is needed.
3801
+ * @slot svg - Used for custom SVG content.
3802
+ */
3803
+
3804
+ // build the component class
3805
+ class AuroIcon extends BaseIcon {
3806
+ constructor() {
3807
+ super();
3808
+
3809
+ this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
3810
+
3811
+ this.privateDefaults();
3812
+ }
3813
+
3814
+ /**
3815
+ * Internal Defaults.
3816
+ * @private
3817
+ * @returns {void}
3818
+ */
3819
+ privateDefaults() {
3820
+ this.accent = false;
3821
+ this.customColor = false;
3822
+ this.customSvg = false;
3823
+ this.disabled = false;
3824
+ this.emphasis = false;
3825
+ this.error = false;
3826
+ this.info = false;
3827
+ this.label = false;
3828
+ this.primary = false;
3829
+ this.secondary = false;
3830
+ this.subtle = false;
3831
+ this.success = false;
3832
+ this.tertiary = false;
3833
+ this.warning = false;
3834
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
3835
+ }
3836
+
3837
+ // function to define props used within the scope of this component
3838
+ static get properties() {
3839
+ return {
3840
+ ...super.properties,
3841
+ accent: {
3842
+ type: Boolean,
3843
+ reflect: true
3844
+ },
3845
+ ariaHidden: {
3846
+ type: String,
3847
+ reflect: true
3848
+ },
3849
+ category: {
3850
+ type: String,
3851
+ reflect: true
3852
+ },
3853
+ customColor: {
3854
+ type: Boolean
3855
+ },
3856
+ customSvg: {
3857
+ type: Boolean
3858
+ },
3859
+ disabled: {
3860
+ type: Boolean,
3861
+ reflect: true
3862
+ },
3863
+ emphasis: {
3864
+ type: Boolean,
3865
+ reflect: true
3866
+ },
3867
+ error: {
3868
+ type: Boolean,
3869
+ reflect: true
3870
+ },
3871
+ info: {
3872
+ type: Boolean,
3873
+ reflect: true
3874
+ },
3875
+ label: {
3876
+ type: Boolean,
3877
+ reflect: true
3878
+ },
3879
+ name: {
3880
+ type: String,
3881
+ reflect: true
3882
+ },
3883
+ primary: {
3884
+ type: Boolean,
3885
+ reflect: true
3886
+ },
3887
+ secondary: {
3888
+ type: Boolean,
3889
+ reflect: true
3890
+ },
3891
+ subtle: {
3892
+ type: Boolean,
3893
+ reflect: true
3894
+ },
3895
+ success: {
3896
+ type: Boolean,
3897
+ reflect: true
3898
+ },
3899
+ tertiary: {
3900
+ type: Boolean,
3901
+ reflect: true
3902
+ },
3903
+ uri: {
3904
+ type: String
3905
+ },
3906
+ warning: {
3907
+ type: Boolean,
3908
+ reflect: true
3909
+ }
3910
+ };
3911
+ }
3912
+
3913
+ static get styles() {
3914
+ return [
3915
+ super.styles,
3916
+ i$3`${tokensCss$1}`,
3917
+ i$3`${styleCss$2}`,
3918
+ i$3`${colorCss$2}`
3919
+ ];
3920
+ }
3921
+
3922
+ /**
3923
+ * This will register this element with the browser.
3924
+ * @param {string} [name="auro-icon"] - The name of element that you want to register to.
3925
+ *
3926
+ * @example
3927
+ * AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
3928
+ *
3929
+ */
3930
+ static register(name = "auro-icon") {
3931
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
3932
+ }
3933
+
3934
+ connectedCallback() {
3935
+ super.connectedCallback();
3936
+
3937
+ // Add the tag name as an attribute if it is different than the component name
3938
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
3939
+ }
3940
+
3941
+ /**
3942
+ * @returns {void} Exposes CSS parts for styling from parent components.
3943
+ */
3944
+ exposeCssParts() {
3945
+ this.setAttribute('exportparts', 'svg:iconSvg');
3946
+ }
3947
+
3948
+ // function that renders the HTML and CSS into the scope of the component
3949
+ render() {
3950
+ const a11y = {
3951
+ 'labelContainer': true,
3952
+ 'util_displayHiddenVisually': !this.label
3953
+ };
3954
+
3955
+ const classes = {
3956
+ 'label': this.label,
3957
+ 'wrapper': true,
3958
+ };
3959
+
3960
+ return x`
3961
+ <div
3962
+ class="${e(classes)}"
3963
+ title="${o(this.title || undefined)}">
3964
+ <span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
3965
+ ${this.customSvg ? x`
3966
+ <slot name="svg"></slot>
3967
+ ` : x`
3968
+ ${this.svg}
3969
+ `
3970
+ }
3971
+ </span>
3972
+
3973
+ <div class="${e(a11y)}">
3974
+ <slot></slot>
3975
+ </div>
3976
+ </div>
3977
+ `;
3978
+ }
3979
+ }
3980
+
3981
+ var iconVersion = '6.1.2';
3982
+
3983
+ var styleCss$1 = i$3`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3984
+
3985
+ var colorCss$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
3986
+
3987
+ var tokensCss = i$3`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
3988
+
3989
+ var styleCss$3 = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
3990
+
3991
+ var colorCss$3 = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3992
+
3993
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3994
+ // See LICENSE in the project root for license information.
3995
+
3996
+
3997
+
3998
+ const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
3999
+ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
4000
+ 'lg',
4001
+ 'md',
4002
+ 'sm',
4003
+ 'xs',
4004
+ ];
4005
+
4006
+ /**
4007
+ * @prop { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
4008
+ * @csspart bibContainer - Apply css to the bib container.
4009
+ */
4010
+
4011
+ class AuroDropdownBib extends r {
4012
+
4013
+ constructor() {
4014
+ super();
4015
+
4016
+ /**
4017
+ * @private
4018
+ */
4019
+ this._mobileBreakpointValue = undefined;
4020
+ }
4021
+
4022
+ static get styles() {
4023
+ return [
4024
+ styleCss$3,
4025
+ colorCss$3,
4026
+ tokensCss
4027
+ ];
4028
+ }
4029
+
4030
+ static get properties() {
4031
+ return {
4032
+
4033
+ /**
4034
+ * If declared, will apply all styles for the common theme.
4035
+ */
4036
+ common: {
4037
+ type: Boolean,
4038
+ reflect: true
4039
+ },
4040
+
4041
+ /**
4042
+ * If declared, will apply extra padding to bib content.
4043
+ */
4044
+ inset: {
4045
+ type: Boolean,
4046
+ reflect: true
4047
+ },
4048
+
4049
+ /**
4050
+ * If declared, will apply border-radius to the bib.
4051
+ */
4052
+ rounded: {
4053
+ type: Boolean,
4054
+ reflect: true
4055
+ },
4056
+ };
4057
+ }
4058
+
4059
+ set mobileFullscreenBreakpoint(value) {
4060
+ // verify the defined breakpoint is valid and exit out if not
4061
+ const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
4062
+ if (!validatedValue) {
4063
+ this._mobileBreakpointValue = undefined;
4064
+ } else {
4065
+ // get the pixel value for the defined breakpoint
4066
+ const docStyle = getComputedStyle(document.documentElement);
4067
+ this._mobileBreakpointValue = docStyle.getPropertyValue(DESIGN_TOKEN_BREAKPOINT_PREFIX + value);
4068
+ }
4069
+ }
4070
+
4071
+ get mobileFullscreenBreakpoint() {
4072
+ return this._mobileBreakpointValue;
4073
+ }
4074
+
4075
+ // function that renders the HTML and CSS into the scope of the component
4076
+ render() {
4077
+ return u$1`
4078
+ <div class="container" part="bibContainer">
4079
+ <slot></slot>
4080
+ </div>
4081
+ `;
4082
+ }
4083
+ }
4084
+
4085
+ // default internal definition
4086
+ if (!customElements.get("auro-dropdownbib")) {
4087
+ customElements.define("auro-dropdownbib", AuroDropdownBib);
4088
+ }
4089
+
4090
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
4091
+ // See LICENSE in the project root for license information.
4092
+
4093
+
4094
+ /**
4095
+ * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4096
+ * @slot - Default slot for the popover content.
4097
+ * @slot label - Defines the content of the label.
4098
+ * @slot helpText - Defines the content of the helpText.
4099
+ * @slot trigger - Defines the content of the trigger.
4100
+ * @csspart trigger - The trigger content container.
4101
+ * @csspart chevron - The collapsed/expanded state icon container.
4102
+ * @csspart helpText - The helpText content container.
4103
+ * @csspart popover - The bib content container.
4104
+ * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4105
+ * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4106
+ */
4107
+ class AuroDropdown extends r {
4108
+ constructor() {
4109
+ super();
4110
+
4111
+ this.isPopoverVisible = false;
4112
+ this.matchWidth = false;
4113
+ this.noHideOnThisFocusLoss = false;
4114
+
4115
+ this.privateDefaults();
4116
+ }
4117
+
4118
+ /**
4119
+ * @private
4120
+ * @returns {void} Internal defaults.
4121
+ */
4122
+ privateDefaults() {
4123
+ this.bordered = false;
4124
+ this.chevron = false;
4125
+ this.disabled = false;
4126
+ this.error = false;
4127
+ this.inset = false;
4128
+ this.placement = 'bottom-start';
4129
+ this.rounded = false;
4130
+ this.tabIndex = 0;
4131
+ this.noToggle = false;
4132
+
4133
+ /**
4134
+ * @private
4135
+ */
4136
+ this.hasTriggerContent = false;
4137
+
4138
+ /**
4139
+ * @private
4140
+ */
4141
+ this.triggerContentSlot = undefined;
4142
+
4143
+ /**
4144
+ * @private
4145
+ */
4146
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
4147
+
4148
+ /**
4149
+ * @private
4150
+ */
4151
+ this.floater = new AuroFloatingUI();
4152
+
4153
+ /**
4154
+ * @private
4155
+ */
4156
+ this.floaterConfig = {
4157
+ placement: 'bottom-start',
4158
+ flip: true,
4159
+ autoPlacement: false,
4160
+ offset: 0,
4161
+ };
4162
+
4163
+ /**
4164
+ * Generate unique names for dependency components.
4165
+ */
4166
+ const versioning = new AuroDependencyVersioning();
4167
+ this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
4168
+ }
4169
+
4170
+ /**
4171
+ * Public method to hide the dropdown.
4172
+ * @returns {void}
4173
+ */
4174
+ hide() {
4175
+ this.floater.hideBib();
4176
+ }
4177
+
4178
+ /**
4179
+ * Public method to show the dropdown.
4180
+ * @returns {void}
4181
+ */
4182
+ show() {
4183
+ this.floater.showBib();
4184
+ }
4185
+
4186
+ // function to define props used within the scope of this component
4187
+ static get properties() {
4188
+ return {
4189
+
4190
+ /**
4191
+ * If declared, applies a border around the trigger slot.
4192
+ */
4193
+ bordered: {
4194
+ type: Boolean,
4195
+ reflect: true
4196
+ },
4197
+
4198
+ /**
4199
+ * If declared, the dropdown displays a chevron on the right.
4200
+ * @attr {Boolean} chevron
4201
+ */
4202
+ chevron: {
4203
+ type: Boolean,
4204
+ reflect: true
4205
+ },
4206
+
4207
+ /**
4208
+ * If declared, the dropdown will be styled with the common theme.
4209
+ */
4210
+ common: {
4211
+ type: Boolean,
4212
+ reflect: true
4213
+ },
4214
+
4215
+ /**
4216
+ * If declared, the dropdown is not interactive.
4217
+ */
4218
+ disabled: {
4219
+ type: Boolean,
4220
+ reflect: true
4221
+ },
4222
+
4223
+ /**
4224
+ * @private
4225
+ */
4226
+ dropdownWidth: {
4227
+ type: Number
4228
+ },
4229
+
4230
+ /**
4231
+ * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
4232
+ */
4233
+ error: {
4234
+ type: Boolean,
4235
+ reflect: true
4236
+ },
4237
+
4238
+ /**
4239
+ * If declared, the bib will display when focus is applied to the trigger.
4240
+ */
4241
+ focusShow: {
4242
+ type: Boolean,
4243
+ reflect: true
4244
+ },
4245
+
4246
+ /**
4247
+ * Makes the trigger to be full width of its parent container.
4248
+ */
4249
+ fluid: {
4250
+ type: Boolean,
4251
+ reflect: true
4252
+ },
4253
+
4254
+ /**
4255
+ * If declared, will apply padding around trigger slot content.
4256
+ */
4257
+ inset: {
4258
+ type: Boolean,
4259
+ reflect: true
4260
+ },
4261
+
4262
+ /**
4263
+ * If true, the dropdown bib is displayed.
4264
+ */
4265
+ isPopoverVisible: {
4266
+ type: Boolean
4267
+ },
4268
+
4269
+ /**
4270
+ * If declared, the trigger will toggle the dropdown on mouseover/mouseout.
4271
+ */
4272
+ hoverToggle: {
4273
+ type: Boolean,
4274
+ reflect: true
4275
+ },
4276
+
4277
+ /**
4278
+ * @private
4279
+ */
4280
+ hasTriggerContent: {
4281
+ type: Boolean
4282
+ },
4283
+
4284
+ /**
4285
+ * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
4286
+ */
4287
+ mobileFullscreenBreakpoint: {
4288
+ type: String,
4289
+ reflect: true
4290
+ },
4291
+
4292
+ /**
4293
+ * If declared, the popover and trigger will be set to the same width.
4294
+ */
4295
+ matchWidth: {
4296
+ type: Boolean,
4297
+ reflect: true
4298
+ },
4299
+
4300
+ /**
4301
+ * If declared, the dropdown will not hide when moving focus outside the element.
4302
+ */
4303
+ noHideOnThisFocusLoss: {
4304
+ type: Boolean,
4305
+ reflect: true
4306
+ },
4307
+
4308
+ /**
4309
+ * If declared, the trigger will only show the dropdown bib.
4310
+ */
4311
+ noToggle: {
4312
+ type: Boolean,
4313
+ reflect: true
4314
+ },
4315
+
4316
+ onSlotChange: {
4317
+ type: Function,
4318
+ reflect: false
4319
+ },
4320
+
4321
+ /**
4322
+ * @private
4323
+ */
4324
+ placement: {
4325
+ type: String
4326
+ },
4327
+
4328
+ /**
4329
+ * If declared, will apply border-radius to trigger and default slots.
4330
+ */
4331
+ rounded: {
4332
+ type: Boolean,
4333
+ reflect: true
4334
+ },
4335
+
4336
+ /**
4337
+ * @private
4338
+ */
4339
+ tabIndex: {
4340
+ type: Number
4341
+ }
4342
+ };
4343
+ }
4344
+
4345
+ static get styles() {
4346
+ return [
4347
+ colorCss$1,
4348
+ styleCss$1,
4349
+ tokensCss
4350
+ ];
4351
+ }
4352
+
4353
+ /**
4354
+ * This will register this element with the browser.
4355
+ * @param {string} [name="auro-dropdown"] - The name of element that you want to register to.
4356
+ *
4357
+ * @example
4358
+ * AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
4359
+ *
4360
+ */
4361
+ static register(name = "auro-dropdown") {
4362
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroDropdown);
4363
+ }
4364
+
4365
+ connectedCallback() {
4366
+ super.connectedCallback();
4367
+ }
4368
+
4369
+ disconnectedCallback() {
4370
+ super.disconnectedCallback();
4371
+ }
4372
+
4373
+ updated(changedProperties) {
4374
+ this.floater.handleUpdate(changedProperties);
4375
+
4376
+ if (changedProperties.has('mobileFullscreenBreakpoint')) {
4377
+ this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
4378
+ }
4379
+
4380
+ // when trigger's content is changed without any attribute or node change,
4381
+ // `requestUpdate` needs to be called to update hasTriggerContnet
4382
+ if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4383
+ this.handleTriggerContentSlotChange();
4384
+ }
4385
+ }
4386
+
4387
+ firstUpdated() {
4388
+ this.floater.configure(this, 'auroDropdown');
4389
+ this.bibContent = this.floater.element.bib;
4390
+
4391
+ // Add the tag name as an attribute if it is different than the component name
4392
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
4393
+ }
4394
+
4395
+ /**
4396
+ * Exposes CSS parts for styling from parent components.
4397
+ * @private
4398
+ * @returns {void}
4399
+ */
4400
+ exposeCssParts() {
4401
+ this.setAttribute('exportparts', 'trigger:dropdownTrigger, chevron:dropdownChevron, helpText:dropdownHelpText, size:dropdownSize');
4402
+ }
4403
+
4404
+ /**
4405
+ * Determines if content is within a custom slot.
4406
+ * @private
4407
+ * @param {HTMLElement} element - The element to check.
4408
+ * @returns {Boolean}
4409
+ */
4410
+ isCustomSlotContent(element) {
4411
+ let currentElement = element;
4412
+
4413
+ let inCustomSlot = false;
4414
+
4415
+ while (currentElement) {
4416
+ currentElement = currentElement.parentElement;
4417
+
4418
+ if (currentElement && currentElement.hasAttribute('slot')) {
4419
+ inCustomSlot = true;
4420
+ break;
4421
+ }
4422
+ }
4423
+
4424
+ return inCustomSlot;
4425
+ }
4426
+
4427
+ /**
4428
+ * Handles changes to the trigger content slot and updates related properties.
4429
+ *
4430
+ * It first updates the floater settings
4431
+ * Then, it retrieves the assigned nodes from the event target and checks if any of
4432
+ * the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
4433
+ *
4434
+ * @private
4435
+ * @method handleTriggerContentSlotChange
4436
+ * @param {Event} event - native slotchange event
4437
+ * @returns {void}
4438
+ */
4439
+ handleTriggerContentSlotChange(event) {
4440
+ this.floater.handleTriggerTabIndex();
4441
+
4442
+ if (event) {
4443
+ this.triggerNode = event.target;
4444
+ this.triggerContentSlot = event.target.assignedNodes();
4445
+ }
4446
+
4447
+ if (this.triggerContentSlot) {
4448
+ this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
4449
+ if (slot.textContent.trim()) {
4450
+ return true;
4451
+ }
4452
+ const slotInSlot = slot.querySelector('slot');
4453
+ if (!slotInSlot) {
4454
+ return false;
4455
+ }
4456
+ const slotsInSlotNodes = slotInSlot.assignedNodes();
4457
+ return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
4458
+ });
4459
+ } else {
4460
+ this.hasTriggerContent = false;
4461
+ }
4462
+ }
4463
+
4464
+ /**
4465
+ * Handles the default slot change event and updates the content.
4466
+ *
4467
+ * This method retrieves all nodes assigned to the default slot of the event target and appends them
4468
+ * to the `bibContent` element. If a callback function `onSlotChange` is defined, it is invoked to
4469
+ * notify about the slot change.
4470
+ *
4471
+ * @private
4472
+ * @method handleDefaultSlot
4473
+ * @param {Event} event - The event object representing the slot change.
4474
+ * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
1755
4475
  */
1756
- static register(name = "auro-counter-group") {
1757
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterGroup);
4476
+ handleDefaultSlot(event) {
4477
+ [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
4478
+
4479
+ if (this.onSlotChange) {
4480
+ this.onSlotChange();
4481
+ }
1758
4482
  }
1759
4483
 
1760
- // function that renders the HTML and CSS into the scope of the component
4484
+ // function that renders the HTML and CSS into the scope of the component
1761
4485
  render() {
1762
- return u`
1763
- <div class="counters">
1764
- <slot @slotchange=${() => this.configureCounters()}></slot>
4486
+ return u$1`
4487
+ <div>
4488
+ <div
4489
+ id="trigger"
4490
+ class="trigger"
4491
+ part="trigger"
4492
+ role="button"
4493
+ aria-labelledby="triggerLabel"
4494
+ aria-controls="popover"
4495
+ tabindex="${this.tabIndex}"
4496
+ >
4497
+ <div class="triggerContentWrapper">
4498
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
4499
+ <slot name="label"></slot>
4500
+ </label>
4501
+ <div class="triggerContent">
4502
+ <slot
4503
+ name="trigger"
4504
+ @slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
4505
+ </div>
4506
+ </div>
4507
+ ${this.chevron || this.common ? u$1`
4508
+ <div
4509
+ id="showStateIcon"
4510
+ part="chevron">
4511
+ <${this.iconTag}
4512
+ category="interface"
4513
+ name="chevron-down"
4514
+ customColor
4515
+ ?disabled=${this.disabled}
4516
+ >
4517
+ </${this.iconTag}>
4518
+ </div>
4519
+ ` : undefined }
4520
+ </div>
4521
+ <div
4522
+ class="helpText"
4523
+ part="helpText">
4524
+ <slot name="helpText"></slot>
4525
+ </div>
4526
+ <div class="slotContent">
4527
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4528
+ </div>
4529
+ <div id="bibSizer" part="size"></div>
4530
+ <auro-dropdownbib
4531
+ id="bib"
4532
+ role="tooltip"
4533
+ ?common="${this.common}"
4534
+ ?rounded="${this.common || this.rounded}"
4535
+ ?inset="${this.common || this.inset}">
4536
+ </auro-dropdownbib>
1765
4537
  </div>
1766
4538
  `;
1767
4539
  }
1768
4540
  }
1769
4541
 
4542
+ AuroDropdown.register();
4543
+
4544
+ var dropdownVersion = '3.0.0';
4545
+
4546
+ var styleCss = i$b`:host{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}:host ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]){padding:var(--ds-size-300, 1.5rem)}`;
4547
+
4548
+ var colorCss = i$b`:host ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
4549
+
4550
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
4551
+ // See LICENSE in the project root for license information.
4552
+
4553
+
4554
+ /**
4555
+ * Auro Counter Wrapper is a group of counter components.
4556
+ *
4557
+ * This web component provides a flexible interface for grouping multiple counters, supporting
4558
+ * validation, custom validity messages, and disabled states based on the group's value.
4559
+ *
4560
+ * @element auro-counter-group
4561
+ * @extends LitElement
4562
+ * @slot Default - Slot for counter elements.
4563
+ */
4564
+ class AuroCounterWrapper extends r$4 {
4565
+
4566
+ static get styles() {
4567
+ return [
4568
+ colorCss,
4569
+ styleCss
4570
+ ];
4571
+ }
4572
+
4573
+ /**
4574
+ * Registers the custom element with the browser.
4575
+ * @param {string} [name="auro-counter-wrapper"] - Custom element name to register.
4576
+ * @example
4577
+ * AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
4578
+ */
4579
+ static register(name = "auro-counter-wrapper") {
4580
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroCounterWrapper);
4581
+ }
4582
+
4583
+ // function that renders the HTML and CSS into the scope of the component
4584
+ render() {
4585
+ return u$3`<slot></slot>`;
4586
+ }
4587
+ }
4588
+
4589
+ /* istanbul ignore else */
4590
+ // define the name of the custom component
4591
+ if (!customElements.get("auro-counter-wrapper")) {
4592
+ customElements.define("auro-counter-wrapper", AuroCounterWrapper);
4593
+ }
4594
+
4595
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
4596
+
4597
+
4598
+ /**
4599
+ * Auro Counter Group is a group of counter components.
4600
+ *
4601
+ * This web component provides a flexible interface for grouping multiple counters, supporting
4602
+ * validation, custom validity messages, and disabled states based on the group's value.
4603
+ *
4604
+ * @element auro-counter-group
4605
+ * @extends LitElement
4606
+ * @slot Default - Slot for counter elements.
4607
+ */
4608
+ class AuroCounterGroup extends r$4 {
4609
+ constructor() {
4610
+ super();
4611
+
4612
+ this.isDropdown = false;
4613
+
4614
+ this.max = undefined;
4615
+ this.min = undefined;
4616
+ this.total = undefined;
4617
+ this.validity = undefined;
4618
+ this.value = undefined;
4619
+
4620
+ /**
4621
+ * @private
4622
+ */
4623
+ this.counters = undefined;
4624
+
4625
+ /**
4626
+ * @private
4627
+ */
4628
+ this.validation = new AuroFormValidation();
4629
+
4630
+ /**
4631
+ * Generate unique names for dependency components.
4632
+ * @private
4633
+ */
4634
+ const versioning = new AuroDependencyVersioning$1();
4635
+
4636
+ /**
4637
+ * Dynamically generated dropdown tag.
4638
+ * @private
4639
+ * @type {string}
4640
+ */
4641
+ this.dropdownTag = versioning.generateTag("auro-dropdown", dropdownVersion, AuroDropdown);
4642
+ }
4643
+
4644
+ static get styles() {
4645
+ return [styleCss$4];
4646
+ }
4647
+
4648
+ static get properties() {
4649
+ return {
4650
+
4651
+ /**
4652
+ * Indicates if the counter group is displayed as a dropdown.
4653
+ */
4654
+ isDropdown: {
4655
+ type: Boolean
4656
+ },
4657
+
4658
+ /**
4659
+ * The maximum value allowed for the whole group of counters.
4660
+ */
4661
+ max: {
4662
+ type: Number,
4663
+ reflect: true,
4664
+ },
4665
+
4666
+ /**
4667
+ * The minimum value allowed for the whole group of counters.
4668
+ */
4669
+ min: {
4670
+ type: Number,
4671
+ reflect: true,
4672
+ },
4673
+
4674
+ /**
4675
+ * Reflects the validity state.
4676
+ */
4677
+ validity: {
4678
+ type: String,
4679
+ reflect: true,
4680
+ },
4681
+
4682
+ /**
4683
+ * The total value of the counters.
4684
+ */
4685
+ total: {
4686
+ type: Number,
4687
+ },
4688
+
4689
+ /**
4690
+ * The current individual values of the nested counters.
4691
+ */
4692
+ value: {
4693
+ type: Object,
4694
+ }
4695
+ };
4696
+ }
4697
+
4698
+ /**
4699
+ * Dynamically disables increment/decrement buttons on a counter based on group value.
4700
+ * This method checks the total aggregated value against the group's min and max properties.
4701
+ * If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
4702
+ *
4703
+ * @param {HTMLElement} counter - The counter element to potentially disable.
4704
+ * @private
4705
+ */
4706
+ manageDisabled(counter) {
4707
+ counter.disableMax = false;
4708
+ counter.disableMin = false;
4709
+
4710
+ if (this.total <= this.min) {
4711
+ counter.disableMin = true;
4712
+ } else if (this.total >= this.max) {
4713
+ counter.disableMax = true;
4714
+ }
4715
+ }
4716
+
4717
+ /**
4718
+ * Attaches input event listeners to all auro-counter elements within the component.
4719
+ * This method selects all `auro-counter` and `[auro-counter]` elements and adds an `input` event listener to each.
4720
+ * The listener calls `this.updateValue()` whenever the value of a counter changes.
4721
+ * @private
4722
+ */
4723
+ configureCounters() {
4724
+ this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
4725
+ this.counters.forEach((counter) => {
4726
+ counter.addEventListener("input", () => this.updateValue());
4727
+ });
4728
+ }
4729
+
4730
+ /**
4731
+ * Configures the dropdown counters by selecting all `auro-counter` elements
4732
+ * and appending them to the `auro-counter-wrapper` element within the shadow DOM.
4733
+ * Adds an event listener to each counter to update the value on input.
4734
+ * @private
4735
+ */
4736
+ configureDropdownCounters() {
4737
+ const counterWrapper = this.shadowRoot.querySelector('auro-counter-wrapper');
4738
+ this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
4739
+
4740
+ this.counters.forEach((counter) => {
4741
+ counterWrapper.append(counter);
4742
+ });
4743
+
4744
+ this.counters = counterWrapper.querySelectorAll("auro-counter, [auro-counter]");
4745
+ this.counters.forEach((counter) => {
4746
+ counter.addEventListener("input", () => this.updateValue());
4747
+ });
4748
+ }
4749
+
4750
+ /**
4751
+ * Safely converts a value to a number, returning 0 if invalid.
4752
+ * @private
4753
+ * @param {*} value - The value to convert.
4754
+ * @returns {number} The converted number or 0 if invalid.
4755
+ */
4756
+ safeNumberConversion(value) {
4757
+ const num = Number(value);
4758
+ return Number.isNaN(num) ? 0 : num;
4759
+ }
4760
+
4761
+ /**
4762
+ * Updates the aggregate value based on the values of contained auro-counter components.
4763
+ * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
4764
+ * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
4765
+ * @private
4766
+ */
4767
+ updateValue() {
4768
+ this.value = Array.from(this.counters).reduce((acc, counter, index) => {
4769
+ const name = counter.hasAttribute('name') ? counter.getAttribute('name') : `counter-${index}`;
4770
+ acc[name] = this.safeNumberConversion(counter.value);
4771
+ return acc;
4772
+ }, {});
4773
+
4774
+ this.total = Array.from(this.counters).reduce(
4775
+ (total, counter) => total + this.safeNumberConversion(counter.value),
4776
+ 0,
4777
+ );
4778
+
4779
+ this.counters.forEach((counter) => {
4780
+ this.manageDisabled(counter);
4781
+ });
4782
+ }
4783
+
4784
+ updated(changedProperties) {
4785
+ if (changedProperties.has("value")) {
4786
+ this.validation.validate(this);
4787
+ this.dispatchEvent(
4788
+ new CustomEvent("input", {
4789
+ detail: {
4790
+ total: this.total,
4791
+ value: this.value
4792
+ },
4793
+ }),
4794
+ {
4795
+ bubble: true,
4796
+ composable: true,
4797
+ }
4798
+ );
4799
+ }
4800
+ }
4801
+
4802
+ /**
4803
+ * Registers the custom element with the browser.
4804
+ * @param {string} [name="auro-counter-group"] - Custom element name to register.
4805
+ * @example
4806
+ * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
4807
+ */
4808
+ static register(name = "auro-counter-group") {
4809
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroCounterGroup);
4810
+ }
4811
+
4812
+ // function that renders the HTML and CSS into the scope of the component
4813
+ render() {
4814
+ return u$3`
4815
+ ${this.isDropdown
4816
+ ? u$3`<${this.dropdownTag} common chevron>
4817
+ <div slot="trigger">${this.total}<slot name="placeholder"></slot></div>
4818
+ <auro-counter-wrapper isInDropdown>
4819
+ </auro-counter-wrapper>
4820
+ </${this.dropdownTag}>
4821
+ <slot @slotchange=${() => this.configureDropdownCounters()}></slot>`
4822
+ : u$3`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
4823
+ }`;
4824
+ }
4825
+ }
4826
+
1770
4827
  AuroCounter.register();
1771
4828
  AuroCounterGroup.register();
1772
4829