@govtechsg/sgds-web-component 3.26.1-rc.2 → 3.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Breadcrumb/index.umd.min.js +25 -25
- package/components/Breadcrumb/index.umd.min.js.map +1 -1
- package/components/Checkbox/index.umd.min.js +233 -233
- package/components/Checkbox/index.umd.min.js.map +1 -1
- package/components/Checkbox/sgds-checkbox.d.ts +0 -1
- package/components/Checkbox/sgds-checkbox.js +1 -6
- package/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/components/ComboBox/index.umd.min.js +241 -241
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/Datepicker/index.umd.min.js +86 -86
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/Dropdown/dropdown-item.js +1 -1
- package/components/Dropdown/index.umd.min.js +4 -4
- package/components/Dropdown/index.umd.min.js.map +1 -1
- package/components/Dropdown/sgds-dropdown-item.d.ts +0 -2
- package/components/Dropdown/sgds-dropdown-item.js +2 -8
- package/components/Dropdown/sgds-dropdown-item.js.map +1 -1
- package/components/Input/index.umd.min.js +2 -2
- package/components/Input/index.umd.min.js.map +1 -1
- package/components/Input/input.js +1 -1
- package/components/Mainnav/index.d.ts +0 -2
- package/components/Mainnav/index.js +0 -2
- package/components/Mainnav/index.js.map +1 -1
- package/components/Mainnav/index.umd.min.js +286 -327
- package/components/Mainnav/index.umd.min.js.map +1 -1
- package/components/Mainnav/mainnav-dropdown.js +1 -1
- package/components/Mainnav/mainnav-item.js +1 -1
- package/components/Mainnav/mainnav.js +1 -1
- package/components/Mainnav/sgds-mainnav.d.ts +16 -14
- package/components/Mainnav/sgds-mainnav.js +21 -59
- package/components/Mainnav/sgds-mainnav.js.map +1 -1
- package/components/OverflowMenu/index.umd.min.js +4 -4
- package/components/OverflowMenu/index.umd.min.js.map +1 -1
- package/components/QuantityToggle/index.umd.min.js +40 -40
- package/components/QuantityToggle/index.umd.min.js.map +1 -1
- package/components/QuantityToggle/sgds-quantity-toggle.d.ts +1 -2
- package/components/QuantityToggle/sgds-quantity-toggle.js +9 -18
- package/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -1
- package/components/Select/index.umd.min.js +1 -1
- package/components/Tab/index.umd.min.js +1 -1
- package/components/Tab/index.umd.min.js.map +1 -1
- package/components/Tab/tab-panel.js +1 -1
- package/components/Textarea/index.umd.min.js +1 -1
- package/components/Textarea/index.umd.min.js.map +1 -1
- package/components/Textarea/textarea.js +1 -1
- package/components/index.d.ts +0 -5
- package/components/index.js +0 -5
- package/components/index.js.map +1 -1
- package/components/index.umd.min.js +498 -633
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +2 -7
- package/custom-elements.json +10277 -11992
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.umd.min.js +361 -496
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/components/Checkbox/sgds-checkbox.cjs.js +1 -6
- package/react/components/Checkbox/sgds-checkbox.cjs.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox.js +1 -6
- package/react/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/react/components/Dropdown/dropdown-item.cjs.js +1 -1
- package/react/components/Dropdown/dropdown-item.js +1 -1
- package/react/components/Dropdown/sgds-dropdown-item.cjs.js +2 -8
- package/react/components/Dropdown/sgds-dropdown-item.cjs.js.map +1 -1
- package/react/components/Dropdown/sgds-dropdown-item.js +2 -8
- package/react/components/Dropdown/sgds-dropdown-item.js.map +1 -1
- package/react/components/Input/input.cjs.js +1 -1
- package/react/components/Input/input.js +1 -1
- package/react/components/Mainnav/mainnav-dropdown.cjs.js +1 -1
- package/react/components/Mainnav/mainnav-dropdown.js +1 -1
- package/react/components/Mainnav/mainnav-item.cjs.js +1 -1
- package/react/components/Mainnav/mainnav-item.js +1 -1
- package/react/components/Mainnav/mainnav.cjs.js +1 -1
- package/react/components/Mainnav/mainnav.js +1 -1
- package/react/components/Mainnav/sgds-mainnav.cjs.js +20 -58
- package/react/components/Mainnav/sgds-mainnav.cjs.js.map +1 -1
- package/react/components/Mainnav/sgds-mainnav.js +21 -59
- package/react/components/Mainnav/sgds-mainnav.js.map +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js +9 -18
- package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js.map +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.js +9 -18
- package/react/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -1
- package/react/components/Tab/tab-panel.cjs.js +1 -1
- package/react/components/Tab/tab-panel.js +1 -1
- package/react/components/Textarea/textarea.cjs.js +1 -1
- package/react/components/Textarea/textarea.js +1 -1
- package/react/index.cjs.js +118 -128
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +2 -7
- package/react/index.js +2 -7
- package/react/index.js.map +1 -1
- package/react/styles/form-text-control.cjs.js +1 -1
- package/react/styles/form-text-control.js +1 -1
- package/styles/form-text-control.js +1 -1
- package/themes/blue.css +11 -11
- package/themes/cyan.css +10 -10
- package/themes/gt/blue.css +11 -11
- package/themes/gt/cyan.css +10 -10
- package/themes/gt/magenta.css +11 -11
- package/themes/gt/pink.css +11 -11
- package/themes/gt/purple.css +11 -11
- package/themes/gt/red.css +11 -11
- package/themes/magenta.css +11 -11
- package/themes/pink.css +11 -11
- package/themes/purple.css +11 -11
- package/themes/red.css +11 -11
- package/themes/root.css +0 -5
- package/types/react.d.ts +51 -164
- package/components/DataTable/data-table.js +0 -6
- package/components/DataTable/data-table.js.map +0 -1
- package/components/DataTable/index.d.ts +0 -12
- package/components/DataTable/index.js +0 -11
- package/components/DataTable/index.js.map +0 -1
- package/components/DataTable/index.umd.min.js +0 -2634
- package/components/DataTable/index.umd.min.js.map +0 -1
- package/components/DataTable/sgds-data-table-cell.d.ts +0 -15
- package/components/DataTable/sgds-data-table-cell.js +0 -32
- package/components/DataTable/sgds-data-table-cell.js.map +0 -1
- package/components/DataTable/sgds-data-table-head.d.ts +0 -28
- package/components/DataTable/sgds-data-table-head.js +0 -69
- package/components/DataTable/sgds-data-table-head.js.map +0 -1
- package/components/DataTable/sgds-data-table-row.d.ts +0 -76
- package/components/DataTable/sgds-data-table-row.js +0 -333
- package/components/DataTable/sgds-data-table-row.js.map +0 -1
- package/components/DataTable/sgds-data-table.d.ts +0 -82
- package/components/DataTable/sgds-data-table.js +0 -405
- package/components/DataTable/sgds-data-table.js.map +0 -1
- package/components/Mainnav/mainnav-profile.js +0 -6
- package/components/Mainnav/mainnav-profile.js.map +0 -1
- package/components/Mainnav/sgds-mainnav-profile.d.ts +0 -41
- package/components/Mainnav/sgds-mainnav-profile.js +0 -136
- package/components/Mainnav/sgds-mainnav-profile.js.map +0 -1
- package/react/components/DataTable/data-table.cjs.js +0 -11
- package/react/components/DataTable/data-table.cjs.js.map +0 -1
- package/react/components/DataTable/data-table.js +0 -7
- package/react/components/DataTable/data-table.js.map +0 -1
- package/react/components/DataTable/sgds-data-table-cell.cjs.js +0 -38
- package/react/components/DataTable/sgds-data-table-cell.cjs.js.map +0 -1
- package/react/components/DataTable/sgds-data-table-cell.js +0 -33
- package/react/components/DataTable/sgds-data-table-cell.js.map +0 -1
- package/react/components/DataTable/sgds-data-table-head.cjs.js +0 -75
- package/react/components/DataTable/sgds-data-table-head.cjs.js.map +0 -1
- package/react/components/DataTable/sgds-data-table-head.js +0 -70
- package/react/components/DataTable/sgds-data-table-head.js.map +0 -1
- package/react/components/DataTable/sgds-data-table-row.cjs.js +0 -339
- package/react/components/DataTable/sgds-data-table-row.cjs.js.map +0 -1
- package/react/components/DataTable/sgds-data-table-row.js +0 -334
- package/react/components/DataTable/sgds-data-table-row.js.map +0 -1
- package/react/components/DataTable/sgds-data-table.cjs.js +0 -411
- package/react/components/DataTable/sgds-data-table.cjs.js.map +0 -1
- package/react/components/DataTable/sgds-data-table.js +0 -406
- package/react/components/DataTable/sgds-data-table.js.map +0 -1
- package/react/components/Mainnav/mainnav-profile.cjs.js +0 -11
- package/react/components/Mainnav/mainnav-profile.cjs.js.map +0 -1
- package/react/components/Mainnav/mainnav-profile.js +0 -7
- package/react/components/Mainnav/mainnav-profile.js.map +0 -1
- package/react/components/Mainnav/sgds-mainnav-profile.cjs.js +0 -142
- package/react/components/Mainnav/sgds-mainnav-profile.cjs.js.map +0 -1
- package/react/components/Mainnav/sgds-mainnav-profile.js +0 -137
- package/react/components/Mainnav/sgds-mainnav-profile.js.map +0 -1
- package/react/data-table/index.cjs.js +0 -44
- package/react/data-table/index.cjs.js.map +0 -1
- package/react/data-table/index.d.ts +0 -4
- package/react/data-table/index.js +0 -20
- package/react/data-table/index.js.map +0 -1
- package/react/data-table-cell/index.cjs.js +0 -40
- package/react/data-table-cell/index.cjs.js.map +0 -1
- package/react/data-table-cell/index.d.ts +0 -4
- package/react/data-table-cell/index.js +0 -16
- package/react/data-table-cell/index.js.map +0 -1
- package/react/data-table-head/index.cjs.js +0 -40
- package/react/data-table-head/index.cjs.js.map +0 -1
- package/react/data-table-head/index.d.ts +0 -4
- package/react/data-table-head/index.js +0 -16
- package/react/data-table-head/index.js.map +0 -1
- package/react/data-table-row/index.cjs.js +0 -45
- package/react/data-table-row/index.cjs.js.map +0 -1
- package/react/data-table-row/index.d.ts +0 -4
- package/react/data-table-row/index.js +0 -21
- package/react/data-table-row/index.js.map +0 -1
- package/react/mainnav-profile/index.cjs.js +0 -40
- package/react/mainnav-profile/index.cjs.js.map +0 -1
- package/react/mainnav-profile/index.d.ts +0 -4
- package/react/mainnav-profile/index.js +0 -16
- package/react/mainnav-profile/index.js.map +0 -1
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const t=globalThis,l=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap;class r{constructor(e,t,l){if(this._$cssResult$=!0,l!==o)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this._strings=t}get styleSheet(){let e=this._styleSheet;const t=this._strings;if(l&&void 0===e){const l=void 0!==t&&1===t.length;l&&(e=n.get(t)),void 0===e&&((this._styleSheet=e=new CSSStyleSheet).replaceSync(this.cssText),l&&n.set(t,e))}return e}toString(){return this.cssText}}const i=(e,...t)=>{const l=1===e.length?e[0]:t.reduce((t,l,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(l)+e[o+1],e[0]);return new r(l,e,o)},a=e=>{let t="";for(const l of e.cssRules)t+=l.cssText;return new r("string"==typeof(l=t)?l:String(l),void 0,o);var l},s=l?e=>e:e=>e instanceof CSSStyleSheet?a(e):e,{is:c,defineProperty:d,getOwnPropertyDescriptor:h,getOwnPropertyNames:u,getOwnPropertySymbols:v,getPrototypeOf:f}=Object,p=globalThis;let g;const w=p.trustedTypes,m=w?w.emptyScript:"",_=p.reactiveElementPolyfillSupportDevMode;p.litIssuedWarnings??=new Set,g=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,p.litIssuedWarnings.has(t)||p.litIssuedWarnings.has(e)||(console.warn(t),p.litIssuedWarnings.add(t))},queueMicrotask(()=>{g("dev-mode","Lit is in dev mode. Not recommended for production!"),p.ShadyDOM?.inUse&&void 0===_&&g("polyfill-support-missing","Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded.")});const x=(e,t)=>e,b={toAttribute(e,t){switch(t){case Boolean:e=e?m:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let l=e;switch(t){case Boolean:l=null!==e;break;case Number:l=null===e?null:Number(e);break;case Object:case Array:try{l=JSON.parse(e)}catch(e){l=null}}return l}},Z=(e,t)=>!c(e,t),C={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:Z};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(e){this.__prepare(),(this._initializers??=[]).push(e)}static get observedAttributes(){return this.finalize(),this.__attributeToPropertyMap&&[...this.__attributeToPropertyMap.keys()]}static createProperty(e,t=C){if(t.state&&(t.attribute=!1),this.__prepare(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const l=Symbol.for(`${String(e)} (@property() cache)`),o=this.getPropertyDescriptor(e,l,t);void 0!==o&&d(this.prototype,e,o)}}static getPropertyDescriptor(e,t,l){const{get:o,set:n}=h(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};if(null==o){if("value"in(h(this.prototype,e)??{}))throw new Error(`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it's actually declared as a value on the prototype. Usually this is due to using @property or @state on a method.`);g("reactive-property-without-getter",`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it does not have a getter. This will be an error in a future version of Lit.`)}return{get:o,set(t){const r=o?.call(this);n?.call(this,t),this.requestUpdate(e,r,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??C}static __prepare(){if(this.hasOwnProperty(x("elementProperties")))return;const e=f(this);e.finalize(),void 0!==e._initializers&&(this._initializers=[...e._initializers]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this.__prepare(),this.hasOwnProperty(x("properties"))){const e=this.properties,t=[...u(e),...v(e)];for(const l of t)this.createProperty(l,e[l])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,l]of t)this.elementProperties.set(e,l)}this.__attributeToPropertyMap=new Map;for(const[e,t]of this.elementProperties){const l=this.__attributeNameForProperty(e,t);void 0!==l&&this.__attributeToPropertyMap.set(l,e)}this.elementStyles=this.finalizeStyles(this.styles),this.hasOwnProperty("createProperty")&&g("no-override-create-property","Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators"),this.hasOwnProperty("getPropertyDescriptor")&&g("no-override-get-property-descriptor","Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators")}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const l=new Set(e.flat(1/0).reverse());for(const e of l)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static __attributeNameForProperty(e,t){const l=t.attribute;return!1===l?void 0:"string"==typeof l?l:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this.__instanceProperties=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.__reflectingProperty=null,this.__initialize()}__initialize(){this.__updatePromise=new Promise(e=>this.enableUpdating=e),this._$changedProperties=new Map,this.__saveInstanceProperties(),this.requestUpdate(),this.constructor._initializers?.forEach(e=>e(this))}addController(e){(this.__controllers??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this.__controllers?.delete(e)}__saveInstanceProperties(){const e=new Map,t=this.constructor.elementProperties;for(const l of t.keys())this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l]);e.size>0&&(this.__instanceProperties=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,o)=>{if(l)e.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const l of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=l.cssText,e.appendChild(o)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this.__controllers?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this.__controllers?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,l){this._$attributeToProperty(e,l)}__propertyToAttribute(e,t){const l=this.constructor.elementProperties.get(e),o=this.constructor.__attributeNameForProperty(e,l);if(void 0!==o&&!0===l.reflect){const n=(void 0!==l.converter?.toAttribute?l.converter:b).toAttribute(t,l.type);this.constructor.enabledWarnings.includes("migration")&&void 0===n&&g("undefined-attribute-value",`The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`),this.__reflectingProperty=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this.__reflectingProperty=null}}_$attributeToProperty(e,t){const l=this.constructor,o=l.__attributeToPropertyMap.get(e);if(void 0!==o&&this.__reflectingProperty!==o){const e=l.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:b;this.__reflectingProperty=o;const r=n.fromAttribute(t,e.type);this[o]=r??this.__defaultValues?.get(o)??r,this.__reflectingProperty=null}}requestUpdate(e,t,l,o=!1,n){if(void 0!==e){e instanceof Event&&g("","The requestUpdate() method was called with an Event as the property name. This is probably a mistake caused by binding this.requestUpdate as an event listener. Instead bind a function that will call it with no arguments: () => this.requestUpdate()");const r=this.constructor;!1===o&&(n=this[e]),l??=r.getPropertyOptions(e);if(!((l.hasChanged??Z)(n,t)||l.useDefault&&l.reflect&&n===this.__defaultValues?.get(e)&&!this.hasAttribute(r.__attributeNameForProperty(e,l))))return;this._$changeProperty(e,t,l)}!1===this.isUpdatePending&&(this.__updatePromise=this.__enqueueUpdate())}_$changeProperty(e,t,{useDefault:l,reflect:o,wrapped:n},r){l&&!(this.__defaultValues??=new Map).has(e)&&(this.__defaultValues.set(e,r??t??this[e]),!0!==n||void 0!==r)||(this._$changedProperties.has(e)||(this.hasUpdated||l||(t=void 0),this._$changedProperties.set(e,t)),!0===o&&this.__reflectingProperty!==e&&(this.__reflectingProperties??=new Set).add(e))}async __enqueueUpdate(){this.isUpdatePending=!0;try{await this.__updatePromise}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){const e=this.performUpdate();return this.constructor.enabledWarnings.includes("async-perform-update")&&"function"==typeof e?.then&&g("async-perform-update",`Element ${this.localName} returned a Promise from performUpdate(). This behavior is deprecated and will be removed in a future version of ReactiveElement.`),e}performUpdate(){if(!this.isUpdatePending)return;var e;if(e={kind:"update"},p.emitLitDebugLogEvents&&p.dispatchEvent(new CustomEvent("lit-debug",{detail:e})),!this.hasUpdated){this.renderRoot??=this.createRenderRoot();{const e=[...this.constructor.elementProperties.keys()].filter(e=>this.hasOwnProperty(e)&&e in f(this));if(e.length)throw new Error(`The following properties on element ${this.localName} will not trigger updates as expected because they are set using class fields: ${e.join(", ")}. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.`)}if(this.__instanceProperties){for(const[e,t]of this.__instanceProperties)this[e]=t;this.__instanceProperties=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,l]of e){const{wrapped:e}=l,o=this[t];!0!==e||this._$changedProperties.has(t)||void 0===o||this._$changeProperty(t,void 0,l,o)}}let t=!1;const l=this._$changedProperties;try{t=this.shouldUpdate(l),t?(this.willUpdate(l),this.__controllers?.forEach(e=>e.hostUpdate?.()),this.update(l)):this.__markUpdated()}catch(e){throw t=!1,this.__markUpdated(),e}t&&this._$didUpdate(l)}willUpdate(e){}_$didUpdate(e){this.__controllers?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e),this.isUpdatePending&&this.constructor.enabledWarnings.includes("change-in-update")&&g("change-in-update",`Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`)}__markUpdated(){this._$changedProperties=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.__updatePromise}shouldUpdate(e){return!0}update(e){this.__reflectingProperties&&=this.__reflectingProperties.forEach(e=>this.__propertyToAttribute(e,this[e])),this.__markUpdated()}updated(e){}firstUpdated(e){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[x("elementProperties")]=new Map,y[x("finalized")]=new Map,_?.({ReactiveElement:y});{y.enabledWarnings=["change-in-update","async-perform-update"];const e=function(e){e.hasOwnProperty(x("enabledWarnings"))||(e.enabledWarnings=e.enabledWarnings.slice())};y.enableWarning=function(t){e(this),this.enabledWarnings.includes(t)||this.enabledWarnings.push(t)},y.disableWarning=function(t){e(this);const l=this.enabledWarnings.indexOf(t);l>=0&&this.enabledWarnings.splice(l,1)}}
|
|
7
|
+
const t=globalThis,l=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap;class r{constructor(e,t,l){if(this._$cssResult$=!0,l!==o)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this._strings=t}get styleSheet(){let e=this._styleSheet;const t=this._strings;if(l&&void 0===e){const l=void 0!==t&&1===t.length;l&&(e=n.get(t)),void 0===e&&((this._styleSheet=e=new CSSStyleSheet).replaceSync(this.cssText),l&&n.set(t,e))}return e}toString(){return this.cssText}}const i=(e,...t)=>{const l=1===e.length?e[0]:t.reduce((t,l,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(l)+e[o+1],e[0]);return new r(l,e,o)},a=e=>{let t="";for(const l of e.cssRules)t+=l.cssText;return new r("string"==typeof(l=t)?l:String(l),void 0,o);var l},s=l?e=>e:e=>e instanceof CSSStyleSheet?a(e):e,{is:c,defineProperty:d,getOwnPropertyDescriptor:h,getOwnPropertyNames:u,getOwnPropertySymbols:v,getPrototypeOf:f}=Object,p=globalThis;let g;const w=p.trustedTypes,m=w?w.emptyScript:"",_=p.reactiveElementPolyfillSupportDevMode;p.litIssuedWarnings??=new Set,g=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,p.litIssuedWarnings.has(t)||p.litIssuedWarnings.has(e)||(console.warn(t),p.litIssuedWarnings.add(t))},queueMicrotask(()=>{g("dev-mode","Lit is in dev mode. Not recommended for production!"),p.ShadyDOM?.inUse&&void 0===_&&g("polyfill-support-missing","Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded.")});const x=(e,t)=>e,b={toAttribute(e,t){switch(t){case Boolean:e=e?m:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let l=e;switch(t){case Boolean:l=null!==e;break;case Number:l=null===e?null:Number(e);break;case Object:case Array:try{l=JSON.parse(e)}catch(e){l=null}}return l}},Z=(e,t)=>!c(e,t),C={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:Z};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class M extends HTMLElement{static addInitializer(e){this.__prepare(),(this._initializers??=[]).push(e)}static get observedAttributes(){return this.finalize(),this.__attributeToPropertyMap&&[...this.__attributeToPropertyMap.keys()]}static createProperty(e,t=C){if(t.state&&(t.attribute=!1),this.__prepare(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const l=Symbol.for(`${String(e)} (@property() cache)`),o=this.getPropertyDescriptor(e,l,t);void 0!==o&&d(this.prototype,e,o)}}static getPropertyDescriptor(e,t,l){const{get:o,set:n}=h(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};if(null==o){if("value"in(h(this.prototype,e)??{}))throw new Error(`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it's actually declared as a value on the prototype. Usually this is due to using @property or @state on a method.`);g("reactive-property-without-getter",`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it does not have a getter. This will be an error in a future version of Lit.`)}return{get:o,set(t){const r=o?.call(this);n?.call(this,t),this.requestUpdate(e,r,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??C}static __prepare(){if(this.hasOwnProperty(x("elementProperties")))return;const e=f(this);e.finalize(),void 0!==e._initializers&&(this._initializers=[...e._initializers]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this.__prepare(),this.hasOwnProperty(x("properties"))){const e=this.properties,t=[...u(e),...v(e)];for(const l of t)this.createProperty(l,e[l])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,l]of t)this.elementProperties.set(e,l)}this.__attributeToPropertyMap=new Map;for(const[e,t]of this.elementProperties){const l=this.__attributeNameForProperty(e,t);void 0!==l&&this.__attributeToPropertyMap.set(l,e)}this.elementStyles=this.finalizeStyles(this.styles),this.hasOwnProperty("createProperty")&&g("no-override-create-property","Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators"),this.hasOwnProperty("getPropertyDescriptor")&&g("no-override-get-property-descriptor","Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators")}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const l=new Set(e.flat(1/0).reverse());for(const e of l)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static __attributeNameForProperty(e,t){const l=t.attribute;return!1===l?void 0:"string"==typeof l?l:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this.__instanceProperties=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.__reflectingProperty=null,this.__initialize()}__initialize(){this.__updatePromise=new Promise(e=>this.enableUpdating=e),this._$changedProperties=new Map,this.__saveInstanceProperties(),this.requestUpdate(),this.constructor._initializers?.forEach(e=>e(this))}addController(e){(this.__controllers??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this.__controllers?.delete(e)}__saveInstanceProperties(){const e=new Map,t=this.constructor.elementProperties;for(const l of t.keys())this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l]);e.size>0&&(this.__instanceProperties=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,o)=>{if(l)e.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const l of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=l.cssText,e.appendChild(o)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this.__controllers?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this.__controllers?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,l){this._$attributeToProperty(e,l)}__propertyToAttribute(e,t){const l=this.constructor.elementProperties.get(e),o=this.constructor.__attributeNameForProperty(e,l);if(void 0!==o&&!0===l.reflect){const n=(void 0!==l.converter?.toAttribute?l.converter:b).toAttribute(t,l.type);this.constructor.enabledWarnings.includes("migration")&&void 0===n&&g("undefined-attribute-value",`The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`),this.__reflectingProperty=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this.__reflectingProperty=null}}_$attributeToProperty(e,t){const l=this.constructor,o=l.__attributeToPropertyMap.get(e);if(void 0!==o&&this.__reflectingProperty!==o){const e=l.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:b;this.__reflectingProperty=o;const r=n.fromAttribute(t,e.type);this[o]=r??this.__defaultValues?.get(o)??r,this.__reflectingProperty=null}}requestUpdate(e,t,l,o=!1,n){if(void 0!==e){e instanceof Event&&g("","The requestUpdate() method was called with an Event as the property name. This is probably a mistake caused by binding this.requestUpdate as an event listener. Instead bind a function that will call it with no arguments: () => this.requestUpdate()");const r=this.constructor;!1===o&&(n=this[e]),l??=r.getPropertyOptions(e);if(!((l.hasChanged??Z)(n,t)||l.useDefault&&l.reflect&&n===this.__defaultValues?.get(e)&&!this.hasAttribute(r.__attributeNameForProperty(e,l))))return;this._$changeProperty(e,t,l)}!1===this.isUpdatePending&&(this.__updatePromise=this.__enqueueUpdate())}_$changeProperty(e,t,{useDefault:l,reflect:o,wrapped:n},r){l&&!(this.__defaultValues??=new Map).has(e)&&(this.__defaultValues.set(e,r??t??this[e]),!0!==n||void 0!==r)||(this._$changedProperties.has(e)||(this.hasUpdated||l||(t=void 0),this._$changedProperties.set(e,t)),!0===o&&this.__reflectingProperty!==e&&(this.__reflectingProperties??=new Set).add(e))}async __enqueueUpdate(){this.isUpdatePending=!0;try{await this.__updatePromise}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){const e=this.performUpdate();return this.constructor.enabledWarnings.includes("async-perform-update")&&"function"==typeof e?.then&&g("async-perform-update",`Element ${this.localName} returned a Promise from performUpdate(). This behavior is deprecated and will be removed in a future version of ReactiveElement.`),e}performUpdate(){if(!this.isUpdatePending)return;var e;if(e={kind:"update"},p.emitLitDebugLogEvents&&p.dispatchEvent(new CustomEvent("lit-debug",{detail:e})),!this.hasUpdated){this.renderRoot??=this.createRenderRoot();{const e=[...this.constructor.elementProperties.keys()].filter(e=>this.hasOwnProperty(e)&&e in f(this));if(e.length)throw new Error(`The following properties on element ${this.localName} will not trigger updates as expected because they are set using class fields: ${e.join(", ")}. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.`)}if(this.__instanceProperties){for(const[e,t]of this.__instanceProperties)this[e]=t;this.__instanceProperties=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,l]of e){const{wrapped:e}=l,o=this[t];!0!==e||this._$changedProperties.has(t)||void 0===o||this._$changeProperty(t,void 0,l,o)}}let t=!1;const l=this._$changedProperties;try{t=this.shouldUpdate(l),t?(this.willUpdate(l),this.__controllers?.forEach(e=>e.hostUpdate?.()),this.update(l)):this.__markUpdated()}catch(e){throw t=!1,this.__markUpdated(),e}t&&this._$didUpdate(l)}willUpdate(e){}_$didUpdate(e){this.__controllers?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e),this.isUpdatePending&&this.constructor.enabledWarnings.includes("change-in-update")&&g("change-in-update",`Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`)}__markUpdated(){this._$changedProperties=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.__updatePromise}shouldUpdate(e){return!0}update(e){this.__reflectingProperties&&=this.__reflectingProperties.forEach(e=>this.__propertyToAttribute(e,this[e])),this.__markUpdated()}updated(e){}firstUpdated(e){}}M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[x("elementProperties")]=new Map,M[x("finalized")]=new Map,_?.({ReactiveElement:M});{M.enabledWarnings=["change-in-update","async-perform-update"];const e=function(e){e.hasOwnProperty(x("enabledWarnings"))||(e.enabledWarnings=e.enabledWarnings.slice())};M.enableWarning=function(t){e(this),this.enabledWarnings.includes(t)||this.enabledWarnings.push(t)},M.disableWarning=function(t){e(this);const l=this.enabledWarnings.indexOf(t);l>=0&&this.enabledWarnings.splice(l,1)}}
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
let
|
|
13
|
+
let y;(p.reactiveElementVersions??=[]).push("2.1.2"),p.reactiveElementVersions.length>1&&queueMicrotask(()=>{g("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")}),globalThis.litIssuedWarnings??=new Set,y=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,globalThis.litIssuedWarnings.has(t)||globalThis.litIssuedWarnings.has(e)||(console.warn(t),globalThis.litIssuedWarnings.add(t))};const V={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:Z},H=(e=V,t,l)=>{const{kind:o,metadata:n}=l;null==n&&y("missing-class-metadata",`The class ${t} is missing decorator metadata. This could mean that you're using a compiler that supports decorators but doesn't support decorator metadata, such as TypeScript 5.1. Please update your compiler.`);let r=globalThis.litPropertyMetadata.get(n);if(void 0===r&&globalThis.litPropertyMetadata.set(n,r=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),r.set(l.name,e),"accessor"===o){const{name:o}=l;return{set(l){const n=t.get.call(this);t.set.call(this,l),this.requestUpdate(o,n,e,!0,l)},init(t){return void 0!==t&&this._$changeProperty(o,void 0,e,t),t}}}if("setter"===o){const{name:o}=l;return function(l){const n=this[o];t.call(this,l),this.requestUpdate(o,n,e,!0,l)}}throw new Error(`Unsupported decorator location: ${o}`)};function P(e){return(t,l)=>"object"==typeof l?H(e,t,l):((e,t,l)=>{const o=t.hasOwnProperty(l);return t.constructor.createProperty(l,e),o?Object.getOwnPropertyDescriptor(t,l):void 0})(e,t,l)}
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
@@ -35,7 +35,7 @@ let M;(p.reactiveElementVersions??=[]).push("2.1.2"),p.reactiveElementVersions.l
|
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/globalThis.litIssuedWarnings??=new Set,k=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",globalThis.litIssuedWarnings.has(t)||globalThis.litIssuedWarnings.has(e)||(console.warn(t),globalThis.litIssuedWarnings.add(t))};const j=globalThis,$=e=>{j.emitLitDebugLogEvents&&j.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let S,L=0;j.litIssuedWarnings??=new Set,S=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",j.litIssuedWarnings.has(t)||j.litIssuedWarnings.has(e)||(console.warn(t),j.litIssuedWarnings.add(t))},queueMicrotask(()=>{S("dev-mode","Lit is in dev mode. Not recommended for production!")});const E=j.ShadyDOM?.inUse&&!0===j.ShadyDOM?.noPatch?j.ShadyDOM.wrap:e=>e,T=j.trustedTypes,R=T?T.createPolicy("lit-html",{createHTML:e=>e}):void 0,I=e=>e,D=(e,t,l)=>I,N=e=>{if(fe!==D)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");fe=e},U=()=>{fe=D},W=(e,t,l)=>fe(e,t,l),F="$lit$",q=`lit$${Math.random().toFixed(9).slice(2)}$`,Y="?"+q,K=`<${Y}>`,J=document,X=()=>J.createComment(""),G=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Q=Array.isArray,ee="[ \t\n\f\r]",te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,le=/-->/g,oe=/>/g,ne=new RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,ie=/"/g,ae=/^(?:script|style|textarea|title)$/i,se=(ce=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&S("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:ce,strings:e,values:t}));var ce;const de=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),ue=new WeakMap,ve=J.createTreeWalker(J,129);let fe=D;function pe(e,t){if(!Q(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==R?R.createHTML(t):t}class ge{constructor({strings:e,_$litType$:t},l){let o;this.parts=[];let n=0,r=0;const i=e.length-1,a=this.parts,[s,c]=((e,t)=>{const l=e.length-1,o=[];let n,r=2===t?"<svg>":3===t?"<math>":"",i=te;for(let t=0;t<l;t++){const l=e[t];let a,s,c=-1,d=0;for(;d<l.length&&(i.lastIndex=d,s=i.exec(l),null!==s);)if(d=i.lastIndex,i===te){if("!--"===s[1])i=le;else if(void 0!==s[1])i=oe;else if(void 0!==s[2])ae.test(s[2])&&(n=new RegExp(`</${s[2]}`,"g")),i=ne;else if(void 0!==s[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else i===ne?">"===s[0]?(i=n??te,c=-1):void 0===s[1]?c=-2:(c=i.lastIndex-s[2].length,a=s[1],i=void 0===s[3]?ne:'"'===s[3]?ie:re):i===ie||i===re?i=ne:i===le||i===oe?i=te:(i=ne,n=void 0);console.assert(-1===c||i===ne||i===re||i===ie,"unexpected parse state B");const h=i===ne&&e[t+1].startsWith("/>")?" ":"";r+=i===te?l+K:c>=0?(o.push(a),l.slice(0,c)+F+l.slice(c)+q+h):l+q+(-2===c?t:h)}return[pe(e,r+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]})(e,t);if(this.el=ge.createElement(s,l),ve.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=ve.nextNode())&&a.length<i;){if(1===o.nodeType){{const e=o.localName;if(/^(?:textarea|template)$/i.test(e)&&o.innerHTML.includes(q)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);S("",t)}}if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(F)){const t=c[r++],l=o.getAttribute(e).split(q),i=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:i[2],strings:l,ctor:"."===i[1]?be:"?"===i[1]?Ze:"@"===i[1]?Ce:xe}),o.removeAttribute(e)}else e.startsWith(q)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(ae.test(o.tagName)){const e=o.textContent.split(q),t=e.length-1;if(t>0){o.textContent=T?T.emptyScript:"";for(let l=0;l<t;l++)o.append(e[l],X()),ve.nextNode(),a.push({type:2,index:++n});o.append(e[t],X())}}}else if(8===o.nodeType){if(o.data===Y)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(q,e+1));)a.push({type:7,index:n}),e+=q.length-1}}n++}if(c.length!==r)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");$&&$({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=J.createElement("template");return l.innerHTML=e,l}}function we(e,t,l=e,o){if(t===de)return t;let n=void 0!==o?l.__directives?.[o]:l.__directive;const r=G(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$notifyDirectiveConnectionChanged?.(!1),void 0===r?n=void 0:(n=new r(e),n._$initialize(e,l,o)),void 0!==o?(l.__directives??=[])[o]=n:l.__directive=n),void 0!==n&&(t=we(e,n._$resolve(e,t.values),n,o)),t}class me{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,o=(e?.creationScope??J).importNode(t,!0);ve.currentNode=o;let n=ve.nextNode(),r=0,i=0,a=l[0];for(;void 0!==a;){if(r===a.index){let t;2===a.type?t=new _e(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ye(n,this,e)),this._$parts.push(t),a=l[++i]}r!==a?.index&&(n=ve.nextNode(),r++)}return ve.currentNode=J,o}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&($&&$({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class _e{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,o){this.type=2,this._$committedValue=he,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=o,this.__isConnected=o?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=E(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=we(this,e,t),G(e))e===he||null==e||""===e?(this._$committedValue!==he&&($&&$({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=he):e!==this._$committedValue&&e!==de&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>Q(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return E(E(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),fe!==D){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}$&&$({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==he&&G(this._$committedValue)){const t=E(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=W(t,"data","property")),e=this._textSanitizer(e),$&&$({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=J.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=W(t,"data","property")),e=this._textSanitizer(e),$&&$({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,o="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=ge.createElement(pe(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===o)$&&$({kind:"template updating",template:o,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new me(o,this),l=e._clone(this.options);$&&$({kind:"template instantiated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),$&&$({kind:"template instantiated and updated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ue.get(e.strings);return void 0===t&&ue.set(e.strings,t=new ge(e)),t}_commitIterable(e){Q(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,o=0;for(const n of e)o===t.length?t.push(l=new _e(this._insert(X()),this._insert(X()),this,this.options)):l=t[o],l._$setValue(n),o++;o<t.length&&(this._$clear(l&&E(l._$endNode).nextSibling,o),t.length=o)}_$clear(e=E(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=E(e).nextSibling;E(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class xe{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,o,n){this.type=1,this._$committedValue=he,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=o,this.options=n,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=he,this._sanitizer=void 0}_$setValue(e,t=this,l,o){const n=this.strings;let r=!1;if(void 0===n)e=we(this,e,t,0),r=!G(e)||e!==this._$committedValue&&e!==de,r&&(this._$committedValue=e);else{const o=e;let i,a;for(e=n[0],i=0;i<n.length-1;i++)a=we(this,o[l+i],t,i),a===de&&(a=this._$committedValue[i]),r||=!G(a)||a!==this._$committedValue[i],a===he?e=he:e!==he&&(e+=(a??"")+n[i+1]),this._$committedValue[i]=a}r&&!o&&this._commitValue(e)}_commitValue(e){e===he?E(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=fe(this.element,this.name,"attribute")),e=this._sanitizer(e??""),$&&$({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),E(this.element).setAttribute(this.name,e??""))}}class be extends xe{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=fe(this.element,this.name,"property")),e=this._sanitizer(e),$&&$({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===he?void 0:e}}class Ze extends xe{constructor(){super(...arguments),this.type=4}_commitValue(e){$&&$({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===he),options:this.options}),E(this.element).toggleAttribute(this.name,!!e&&e!==he)}}class Ce extends xe{constructor(e,t,l,o,n){if(super(e,t,l,o,n),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=we(this,e,t,0)??he)===de)return;const l=this._$committedValue,o=e===he&&l!==he||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,n=e!==he&&(l===he||o);$&&$({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:o,addListener:n,oldListener:l}),o&&this.element.removeEventListener(this.name,this,l),n&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class ye{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){$&&$({kind:"commit to element binding",element:this.element,value:e,options:this.options}),we(this,e)}}const Me=j.litHtmlPolyfillSupportDevMode;Me?.(ge,_e),(j.litHtmlVersions??=[]).push("3.3.2"),j.litHtmlVersions.length>1&&queueMicrotask(()=>{S("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const Ve=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const o=L++,n=l?.renderBefore??t;let r=n._$litPart$;if($&&$({kind:"begin render",id:o,value:e,container:t,options:l,part:r}),void 0===r){const e=l?.renderBefore??null;n._$litPart$=r=new _e(t.insertBefore(X(),e),e,void 0,l??{})}return r._$setValue(e),$&&$({kind:"end render",id:o,value:e,container:t,options:l,part:r}),r};Ve.setSanitizer=N,Ve.createSanitizer=W,Ve._testOnlyClearSanitizerFactoryDoNotCallOrElse=U;
|
|
38
|
+
*/globalThis.litIssuedWarnings??=new Set,k=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",globalThis.litIssuedWarnings.has(t)||globalThis.litIssuedWarnings.has(e)||(console.warn(t),globalThis.litIssuedWarnings.add(t))};const j=globalThis,$=e=>{j.emitLitDebugLogEvents&&j.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let S,L=0;j.litIssuedWarnings??=new Set,S=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",j.litIssuedWarnings.has(t)||j.litIssuedWarnings.has(e)||(console.warn(t),j.litIssuedWarnings.add(t))},queueMicrotask(()=>{S("dev-mode","Lit is in dev mode. Not recommended for production!")});const E=j.ShadyDOM?.inUse&&!0===j.ShadyDOM?.noPatch?j.ShadyDOM.wrap:e=>e,T=j.trustedTypes,R=T?T.createPolicy("lit-html",{createHTML:e=>e}):void 0,I=e=>e,D=(e,t,l)=>I,N=e=>{if(fe!==D)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");fe=e},U=()=>{fe=D},W=(e,t,l)=>fe(e,t,l),F="$lit$",q=`lit$${Math.random().toFixed(9).slice(2)}$`,Y="?"+q,K=`<${Y}>`,J=document,X=()=>J.createComment(""),G=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Q=Array.isArray,ee="[ \t\n\f\r]",te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,le=/-->/g,oe=/>/g,ne=new RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,ie=/"/g,ae=/^(?:script|style|textarea|title)$/i,se=(ce=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&S("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:ce,strings:e,values:t}));var ce;const de=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),ue=new WeakMap,ve=J.createTreeWalker(J,129);let fe=D;function pe(e,t){if(!Q(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==R?R.createHTML(t):t}class ge{constructor({strings:e,_$litType$:t},l){let o;this.parts=[];let n=0,r=0;const i=e.length-1,a=this.parts,[s,c]=((e,t)=>{const l=e.length-1,o=[];let n,r=2===t?"<svg>":3===t?"<math>":"",i=te;for(let t=0;t<l;t++){const l=e[t];let a,s,c=-1,d=0;for(;d<l.length&&(i.lastIndex=d,s=i.exec(l),null!==s);)if(d=i.lastIndex,i===te){if("!--"===s[1])i=le;else if(void 0!==s[1])i=oe;else if(void 0!==s[2])ae.test(s[2])&&(n=new RegExp(`</${s[2]}`,"g")),i=ne;else if(void 0!==s[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else i===ne?">"===s[0]?(i=n??te,c=-1):void 0===s[1]?c=-2:(c=i.lastIndex-s[2].length,a=s[1],i=void 0===s[3]?ne:'"'===s[3]?ie:re):i===ie||i===re?i=ne:i===le||i===oe?i=te:(i=ne,n=void 0);console.assert(-1===c||i===ne||i===re||i===ie,"unexpected parse state B");const h=i===ne&&e[t+1].startsWith("/>")?" ":"";r+=i===te?l+K:c>=0?(o.push(a),l.slice(0,c)+F+l.slice(c)+q+h):l+q+(-2===c?t:h)}return[pe(e,r+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]})(e,t);if(this.el=ge.createElement(s,l),ve.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=ve.nextNode())&&a.length<i;){if(1===o.nodeType){{const e=o.localName;if(/^(?:textarea|template)$/i.test(e)&&o.innerHTML.includes(q)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);S("",t)}}if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(F)){const t=c[r++],l=o.getAttribute(e).split(q),i=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:i[2],strings:l,ctor:"."===i[1]?be:"?"===i[1]?Ze:"@"===i[1]?Ce:xe}),o.removeAttribute(e)}else e.startsWith(q)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(ae.test(o.tagName)){const e=o.textContent.split(q),t=e.length-1;if(t>0){o.textContent=T?T.emptyScript:"";for(let l=0;l<t;l++)o.append(e[l],X()),ve.nextNode(),a.push({type:2,index:++n});o.append(e[t],X())}}}else if(8===o.nodeType){if(o.data===Y)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(q,e+1));)a.push({type:7,index:n}),e+=q.length-1}}n++}if(c.length!==r)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");$&&$({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=J.createElement("template");return l.innerHTML=e,l}}function we(e,t,l=e,o){if(t===de)return t;let n=void 0!==o?l.__directives?.[o]:l.__directive;const r=G(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$notifyDirectiveConnectionChanged?.(!1),void 0===r?n=void 0:(n=new r(e),n._$initialize(e,l,o)),void 0!==o?(l.__directives??=[])[o]=n:l.__directive=n),void 0!==n&&(t=we(e,n._$resolve(e,t.values),n,o)),t}class me{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,o=(e?.creationScope??J).importNode(t,!0);ve.currentNode=o;let n=ve.nextNode(),r=0,i=0,a=l[0];for(;void 0!==a;){if(r===a.index){let t;2===a.type?t=new _e(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new Me(n,this,e)),this._$parts.push(t),a=l[++i]}r!==a?.index&&(n=ve.nextNode(),r++)}return ve.currentNode=J,o}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&($&&$({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class _e{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,o){this.type=2,this._$committedValue=he,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=o,this.__isConnected=o?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=E(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=we(this,e,t),G(e))e===he||null==e||""===e?(this._$committedValue!==he&&($&&$({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=he):e!==this._$committedValue&&e!==de&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>Q(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return E(E(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),fe!==D){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}$&&$({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==he&&G(this._$committedValue)){const t=E(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=W(t,"data","property")),e=this._textSanitizer(e),$&&$({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=J.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=W(t,"data","property")),e=this._textSanitizer(e),$&&$({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,o="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=ge.createElement(pe(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===o)$&&$({kind:"template updating",template:o,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new me(o,this),l=e._clone(this.options);$&&$({kind:"template instantiated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),$&&$({kind:"template instantiated and updated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ue.get(e.strings);return void 0===t&&ue.set(e.strings,t=new ge(e)),t}_commitIterable(e){Q(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,o=0;for(const n of e)o===t.length?t.push(l=new _e(this._insert(X()),this._insert(X()),this,this.options)):l=t[o],l._$setValue(n),o++;o<t.length&&(this._$clear(l&&E(l._$endNode).nextSibling,o),t.length=o)}_$clear(e=E(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=E(e).nextSibling;E(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class xe{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,o,n){this.type=1,this._$committedValue=he,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=o,this.options=n,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=he,this._sanitizer=void 0}_$setValue(e,t=this,l,o){const n=this.strings;let r=!1;if(void 0===n)e=we(this,e,t,0),r=!G(e)||e!==this._$committedValue&&e!==de,r&&(this._$committedValue=e);else{const o=e;let i,a;for(e=n[0],i=0;i<n.length-1;i++)a=we(this,o[l+i],t,i),a===de&&(a=this._$committedValue[i]),r||=!G(a)||a!==this._$committedValue[i],a===he?e=he:e!==he&&(e+=(a??"")+n[i+1]),this._$committedValue[i]=a}r&&!o&&this._commitValue(e)}_commitValue(e){e===he?E(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=fe(this.element,this.name,"attribute")),e=this._sanitizer(e??""),$&&$({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),E(this.element).setAttribute(this.name,e??""))}}class be extends xe{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=fe(this.element,this.name,"property")),e=this._sanitizer(e),$&&$({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===he?void 0:e}}class Ze extends xe{constructor(){super(...arguments),this.type=4}_commitValue(e){$&&$({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===he),options:this.options}),E(this.element).toggleAttribute(this.name,!!e&&e!==he)}}class Ce extends xe{constructor(e,t,l,o,n){if(super(e,t,l,o,n),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=we(this,e,t,0)??he)===de)return;const l=this._$committedValue,o=e===he&&l!==he||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,n=e!==he&&(l===he||o);$&&$({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:o,addListener:n,oldListener:l}),o&&this.element.removeEventListener(this.name,this,l),n&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class Me{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){$&&$({kind:"commit to element binding",element:this.element,value:e,options:this.options}),we(this,e)}}const ye=j.litHtmlPolyfillSupportDevMode;ye?.(ge,_e),(j.litHtmlVersions??=[]).push("3.3.2"),j.litHtmlVersions.length>1&&queueMicrotask(()=>{S("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const Ve=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const o=L++,n=l?.renderBefore??t;let r=n._$litPart$;if($&&$({kind:"begin render",id:o,value:e,container:t,options:l,part:r}),void 0===r){const e=l?.renderBefore??null;n._$litPart$=r=new _e(t.insertBefore(X(),e),e,void 0,l??{})}return r._$setValue(e),$&&$({kind:"end render",id:o,value:e,container:t,options:l,part:r}),r};Ve.setSanitizer=N,Ve.createSanitizer=W,Ve._testOnlyClearSanitizerFactoryDoNotCallOrElse=U;
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2018 Google LLC
|
|
@@ -52,7 +52,7 @@ const He=e=>e??he,Pe=Symbol.for(""),ze=e=>{if(e?.r===Pe)return e?._$litStatic$},
|
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
const Ae=globalThis;let je;Ae.litIssuedWarnings??=new Set,je=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,Ae.litIssuedWarnings.has(t)||Ae.litIssuedWarnings.has(e)||(console.warn(t),Ae.litIssuedWarnings.add(t))};class $e extends
|
|
55
|
+
const Ae=globalThis;let je;Ae.litIssuedWarnings??=new Set,je=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,Ae.litIssuedWarnings.has(t)||Ae.litIssuedWarnings.has(e)||(console.warn(t),Ae.litIssuedWarnings.add(t))};class $e extends M{constructor(){super(...arguments),this.renderOptions={host:this},this.__childPart=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.__childPart=Ve(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.__childPart?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.__childPart?.setConnected(!1)}render(){return de}}var Se;$e._$litElement$=!0,$e[(Se="finalized",Se)]=!0,Ae.litElementHydrateSupport?.({LitElement:$e});const Le=Ae.litElementPolyfillSupportDevMode;Le?.({LitElement:$e}),(Ae.litElementVersions??=[]).push("4.2.2"),Ae.litElementVersions.length>1&&queueMicrotask(()=>{je("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});var Ee=i`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;color:var(--sgds-body-color-default,#1a1a1a);display:block;font-family:var(--sgds-font-family-brand,"Inter",system-ui,sans-serif);font-size:var(--sgds-font-size-body-md,1rem);font-weight:var(--sgds-font-weight-regular,400);line-height:var(--sgds-line-height-xs,24px);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:1em;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:top;width:1em}::slotted(svg){vertical-align:middle}}`;class Te extends $e{emit(e,t){const l=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(l),l}static define(e,t=this,l={}){if(customElements.get(e));else try{customElements.define(e,t,l)}catch(o){customElements.define(e,class extends t{},l)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach(e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}}Te.styles=[Ee],Te.dependencies={},e([P({type:Boolean,reflect:!0})],Te.prototype,"ssr",void 0);var Re=i`:host([size=sm]) .overflow-btn{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.overflow-btn{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border-radius:var(--sgds-border-radius-sm);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.overflow-btn:hover{background-color:var(--sgds-bg-translucent-subtle)}.overflow-btn:focus-visible{background-color:var(--sgds-bg-translucent-subtle);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`
|
|
56
56
|
/**
|
|
57
57
|
* @license
|
|
58
58
|
* Copyright 2020 Google LLC
|
|
@@ -72,7 +72,7 @@ const Ae=globalThis;let je;Ae.litIssuedWarnings??=new Set,je=(e,t)=>{t+=` See ht
|
|
|
72
72
|
* @license
|
|
73
73
|
* Copyright 2020 Google LLC
|
|
74
74
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
|
-
*/const Ge=()=>new Qe;class Qe{}const et=new WeakMap;const tt=Ne(class extends Xe{render(e){return he}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),he}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=et.get(t);void 0===l&&(l=new WeakMap,et.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?et.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),lt=Math.min,ot=Math.max,nt=Math.round,rt=Math.floor,it=e=>({x:e,y:e}),at={left:"right",right:"left",bottom:"top",top:"bottom"},st={start:"end",end:"start"};function ct(e,t,l){return ot(e,lt(t,l))}function dt(e,t){return"function"==typeof e?e(t):e}function ht(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function vt(e){return"x"===e?"y":"x"}function ft(e){return"y"===e?"height":"width"}const pt=new Set(["top","bottom"]);function gt(e){return pt.has(ht(e))?"y":"x"}function wt(e){return vt(gt(e))}function mt(e,t,l){void 0===l&&(l=!1);const o=ut(e),n=wt(e),r=ft(n);let i="x"===n?o===(l?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Mt(i)),[i,Mt(i)]}function _t(e){return e.replace(/start|end/g,e=>st[e])}const xt=["left","right"],bt=["right","left"],Zt=["top","bottom"],Ct=["bottom","top"];function yt(e,t,l,o){const n=ut(e);let r=function(e,t,l){switch(e){case"top":case"bottom":return l?t?bt:xt:t?xt:bt;case"left":case"right":return t?Zt:Ct;default:return[]}}(ht(e),"start"===l,o);return n&&(r=r.map(e=>e+"-"+n),t&&(r=r.concat(r.map(_t)))),r}function Mt(e){return e.replace(/left|right|bottom|top/g,e=>at[e])}function Vt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ht(e){const{x:t,y:l,width:o,height:n}=e;return{width:o,height:n,top:l,left:t,right:t+o,bottom:l+n,x:t,y:l}}function Pt(e,t,l){let{reference:o,floating:n}=e;const r=gt(t),i=wt(t),a=ft(i),s=ht(t),c="y"===r,d=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,u=o[a]/2-n[a]/2;let v;switch(s){case"top":v={x:d,y:o.y-n.height};break;case"bottom":v={x:d,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:h};break;case"left":v={x:o.x-n.width,y:h};break;default:v={x:o.x,y:o.y}}switch(ut(t)){case"start":v[i]-=u*(l&&c?-1:1);break;case"end":v[i]+=u*(l&&c?-1:1)}return v}async function zt(e,t){var l;void 0===t&&(t={});const{x:o,y:n,platform:r,rects:i,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:v=0}=dt(t,e),f=Vt(v),p=a[u?"floating"===h?"reference":"floating":h],g=Ht(await r.getClippingRect({element:null==(l=await(null==r.isElement?void 0:r.isElement(p)))||l?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:s})),w="floating"===h?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),_=await(null==r.isElement?void 0:r.isElement(m))&&await(null==r.getScale?void 0:r.getScale(m))||{x:1,y:1},x=Ht(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:m,strategy:s}):w);return{top:(g.top-x.top+f.top)/_.y,bottom:(x.bottom-g.bottom+f.bottom)/_.y,left:(g.left-x.left+f.left)/_.x,right:(x.right-g.right+f.right)/_.x}}const Ot=new Set(["left","top"]);function kt(){return"undefined"!=typeof window}function Bt(e){return $t(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jt(e){var t;return null==(t=($t(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $t(e){return!!kt()&&(e instanceof Node||e instanceof At(e).Node)}function St(e){return!!kt()&&(e instanceof Element||e instanceof At(e).Element)}function Lt(e){return!!kt()&&(e instanceof HTMLElement||e instanceof At(e).HTMLElement)}function Et(e){return!(!kt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof At(e).ShadowRoot)}const Tt=new Set(["inline","contents"]);function Rt(e){const{overflow:t,overflowX:l,overflowY:o,display:n}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+l)&&!Tt.has(n)}const It=new Set(["table","td","th"]);function Dt(e){return It.has(Bt(e))}const Nt=[":popover-open",":modal"];function Ut(e){return Nt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Wt=["transform","translate","scale","rotate","perspective"],Ft=["transform","translate","scale","rotate","perspective","filter"],qt=["paint","layout","strict","content"];function Yt(e){const t=Kt(),l=St(e)?Gt(e):e;return Wt.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||Ft.some(e=>(l.willChange||"").includes(e))||qt.some(e=>(l.contain||"").includes(e))}function Kt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Jt=new Set(["html","body","#document"]);function Xt(e){return Jt.has(Bt(e))}function Gt(e){return At(e).getComputedStyle(e)}function Qt(e){return St(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function el(e){if("html"===Bt(e))return e;const t=e.assignedSlot||e.parentNode||Et(e)&&e.host||jt(e);return Et(t)?t.host:t}function tl(e){const t=el(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&Rt(t)?t:tl(t)}function ll(e,t,l){var o;void 0===t&&(t=[]),void 0===l&&(l=!0);const n=tl(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=At(n);if(r){const e=ol(i);return t.concat(i,i.visualViewport||[],Rt(n)?n:[],e&&l?ll(e):[])}return t.concat(n,ll(n,[],l))}function ol(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nl(e){const t=Gt(e);let l=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=Lt(e),r=n?e.offsetWidth:l,i=n?e.offsetHeight:o,a=nt(l)!==r||nt(o)!==i;return a&&(l=r,o=i),{width:l,height:o,$:a}}function rl(e){return St(e)?e:e.contextElement}function il(e){const t=rl(e);if(!Lt(t))return it(1);const l=t.getBoundingClientRect(),{width:o,height:n,$:r}=nl(t);let i=(r?nt(l.width):l.width)/o,a=(r?nt(l.height):l.height)/n;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const al=it(0);function sl(e){const t=At(e);return Kt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:al}function cl(e,t,l,o){void 0===t&&(t=!1),void 0===l&&(l=!1);const n=e.getBoundingClientRect(),r=rl(e);let i=it(1);t&&(o?St(o)&&(i=il(o)):i=il(e));const a=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==At(e))&&t}(r,l,o)?sl(r):it(0);let s=(n.left+a.x)/i.x,c=(n.top+a.y)/i.y,d=n.width/i.x,h=n.height/i.y;if(r){const e=At(r),t=o&&St(o)?At(o):o;let l=e,n=ol(l);for(;n&&o&&t!==l;){const e=il(n),t=n.getBoundingClientRect(),o=Gt(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=r,c+=i,l=At(n),n=ol(l)}}return Ht({width:d,height:h,x:s,y:c})}function dl(e,t){const l=Qt(e).scrollLeft;return t?t.left+l:cl(jt(e)).left+l}function hl(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-dl(e,l),y:l.top+t.scrollTop}}const ul=new Set(["absolute","fixed"]);function vl(e,t,l){let o;if("viewport"===t)o=function(e,t){const l=At(e),o=jt(e),n=l.visualViewport;let r=o.clientWidth,i=o.clientHeight,a=0,s=0;if(n){r=n.width,i=n.height;const e=Kt();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,s=n.offsetTop)}const c=dl(o);if(c<=0){const e=o.ownerDocument,t=e.body,l=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n);i<=25&&(r-=i)}else c<=25&&(r+=c);return{width:r,height:i,x:a,y:s}}(e,l);else if("document"===t)o=function(e){const t=jt(e),l=Qt(e),o=e.ownerDocument.body,n=ot(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=ot(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-l.scrollLeft+dl(e);const a=-l.scrollTop;return"rtl"===Gt(o).direction&&(i+=ot(t.clientWidth,o.clientWidth)-n),{width:n,height:r,x:i,y:a}}(jt(e));else if(St(t))o=function(e,t){const l=cl(e,!0,"fixed"===t),o=l.top+e.clientTop,n=l.left+e.clientLeft,r=Lt(e)?il(e):it(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:n*r.x,y:o*r.y}}(t,l);else{const l=sl(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Ht(o)}function fl(e,t){const l=el(e);return!(l===t||!St(l)||Xt(l))&&("fixed"===Gt(l).position||fl(l,t))}function pl(e,t,l){const o=Lt(t),n=jt(t),r="fixed"===l,i=cl(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const s=it(0);function c(){s.x=dl(n)}if(o||!o&&!r)if(("body"!==Bt(t)||Rt(n))&&(a=Qt(t)),o){const e=cl(t,!0,r,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&c();r&&!o&&n&&c();const d=!n||o||r?it(0):hl(n,a);return{x:i.left+a.scrollLeft-s.x-d.x,y:i.top+a.scrollTop-s.y-d.y,width:i.width,height:i.height}}function gl(e){return"static"===Gt(e).position}function wl(e,t){if(!Lt(e)||"fixed"===Gt(e).position)return null;if(t)return t(e);let l=e.offsetParent;return jt(e)===l&&(l=l.ownerDocument.body),l}function ml(e,t){const l=At(e);if(Ut(e))return l;if(!Lt(e)){let t=el(e);for(;t&&!Xt(t);){if(St(t)&&!gl(t))return t;t=el(t)}return l}let o=wl(e,t);for(;o&&Dt(o)&&gl(o);)o=wl(o,t);return o&&Xt(o)&&gl(o)&&!Yt(o)?l:o||function(e){let t=el(e);for(;Lt(t)&&!Xt(t);){if(Yt(t))return t;if(Ut(t))return null;t=el(t)}return null}(e)||l}const _l={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:o,strategy:n}=e;const r="fixed"===n,i=jt(o),a=!!t&&Ut(t.floating);if(o===i||a&&r)return l;let s={scrollLeft:0,scrollTop:0},c=it(1);const d=it(0),h=Lt(o);if((h||!h&&!r)&&(("body"!==Bt(o)||Rt(i))&&(s=Qt(o)),Lt(o))){const e=cl(o);c=il(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const u=!i||h||r?it(0):hl(i,s);return{width:l.width*c.x,height:l.height*c.y,x:l.x*c.x-s.scrollLeft*c.x+d.x+u.x,y:l.y*c.y-s.scrollTop*c.y+d.y+u.y}},getDocumentElement:jt,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:o,strategy:n}=e;const r=[..."clippingAncestors"===l?Ut(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let o=ll(e,[],!1).filter(e=>St(e)&&"body"!==Bt(e)),n=null;const r="fixed"===Gt(e).position;let i=r?el(e):e;for(;St(i)&&!Xt(i);){const t=Gt(i),l=Yt(i);l||"fixed"!==t.position||(n=null),(r?!l&&!n:!l&&"static"===t.position&&n&&ul.has(n.position)||Rt(i)&&!l&&fl(e,i))?o=o.filter(e=>e!==i):n=t,i=el(i)}return t.set(e,o),o}(t,this._c):[].concat(l),o],i=r[0],a=r.reduce((e,l)=>{const o=vl(t,l,n);return e.top=ot(o.top,e.top),e.right=lt(o.right,e.right),e.bottom=lt(o.bottom,e.bottom),e.left=ot(o.left,e.left),e},vl(t,i,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ml,getElementRects:async function(e){const t=this.getOffsetParent||ml,l=this.getDimensions,o=await l(e.floating);return{reference:pl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:l}=nl(e);return{width:t,height:l}},getScale:il,isElement:St,isRTL:function(e){return"rtl"===Gt(e).direction}};function xl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bl(e,t,l,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=rl(e),d=n||r?[...c?ll(c):[],...ll(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",l,{passive:!0}),r&&e.addEventListener("resize",l)});const h=c&&a?function(e,t){let l,o=null;const n=jt(e);function r(){var e;clearTimeout(l),null==(e=o)||e.disconnect(),o=null}return function i(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),r();const c=e.getBoundingClientRect(),{left:d,top:h,width:u,height:v}=c;if(a||t(),!u||!v)return;const f={rootMargin:-rt(h)+"px "+-rt(n.clientWidth-(d+u))+"px "+-rt(n.clientHeight-(h+v))+"px "+-rt(d)+"px",threshold:ot(0,lt(1,s))||1};let p=!0;function g(t){const o=t[0].intersectionRatio;if(o!==s){if(!p)return i();o?i(!1,o):l=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||xl(c,e.getBoundingClientRect())||i(),p=!1}try{o=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),r}(c,l):null;let u,v=-1,f=null;i&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),l()}),c&&!s&&f.observe(c),f.observe(t));let p=s?cl(e):null;return s&&function t(){const o=cl(e);p&&!xl(p,o)&&l();p=o,u=requestAnimationFrame(t)}(),l(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",l),r&&e.removeEventListener("resize",l)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(u)}}const Zl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,o;const{x:n,y:r,placement:i,middlewareData:a}=t,s=await async function(e,t){const{placement:l,platform:o,elements:n}=e,r=await(null==o.isRTL?void 0:o.isRTL(n.floating)),i=ht(l),a=ut(l),s="y"===gt(l),c=Ot.has(i)?-1:1,d=r&&s?-1:1,h=dt(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof f&&(v="end"===a?-1*f:f),s?{x:v*d,y:u*c}:{x:u*c,y:v*d}}(t,e);return i===(null==(l=a.offset)?void 0:l.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:n+s.x,y:r+s.y,data:{...s,placement:i}}}}},Cl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:o,placement:n}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...s}=dt(e,t),c={x:l,y:o},d=await zt(t,s),h=gt(ht(n)),u=vt(h);let v=c[u],f=c[h];if(r){const e="y"===u?"bottom":"right";v=ct(v+d["y"===u?"top":"left"],v,v-d[e])}if(i){const e="y"===h?"bottom":"right";f=ct(f+d["y"===h?"top":"left"],f,f-d[e])}const p=a.fn({...t,[u]:v,[h]:f});return{...p,data:{x:p.x-l,y:p.y-o,enabled:{[u]:r,[h]:i}}}}}},yl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,o;const{placement:n,middlewareData:r,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...g}=dt(e,t);if(null!=(l=r.arrow)&&l.alignmentOffset)return{};const w=ht(n),m=gt(a),_=ht(a)===a,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),b=u||(_||!p?[Mt(a)]:function(e){const t=Mt(e);return[_t(e),t,_t(t)]}(a)),Z="none"!==f;!u&&Z&&b.push(...yt(a,p,f,x));const C=[a,...b],y=await zt(t,g),M=[];let V=(null==(o=r.flip)?void 0:o.overflows)||[];if(d&&M.push(y[w]),h){const e=mt(n,i,x);M.push(y[e[0]],y[e[1]])}if(V=[...V,{placement:n,overflows:M}],!M.every(e=>e<=0)){var H,P;const e=((null==(H=r.flip)?void 0:H.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&m!==gt(t))||V.every(e=>gt(e.placement)!==m||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==(P=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!l)switch(v){case"bestFit":{var z;const e=null==(z=V.filter(e=>{if(Z){const t=gt(e.placement);return t===m||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:z[0];e&&(l=e);break}case"initialPlacement":l=a}if(n!==l)return{reset:{placement:l}}}return{}}}},Ml=(e,t,l)=>{const o=new Map,n={platform:_l,...l},r={...n.platform,_c:o};return(async(e,t,l)=>{const{placement:o="bottom",strategy:n="absolute",middleware:r=[],platform:i}=l,a=r.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:h}=Pt(c,o,s),u=o,v={},f=0;for(let l=0;l<a.length;l++){const{name:r,fn:p}=a[l],{x:g,y:w,data:m,reset:_}=await p({x:d,y:h,initialPlacement:o,placement:u,strategy:n,middlewareData:v,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=g?g:d,h=null!=w?w:h,v={...v,[r]:{...v[r],...m}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(c=!0===_.rects?await i.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:d,y:h}=Pt(c,u,s))),l=-1)}return{x:d,y:h,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:r})};function Vl(e,t,l){return new Promise(o=>{if((null==l?void 0:l.duration)===1/0)throw new Error("Promise-based animations must be finite.");const n=e.animate(t,Object.assign(Object.assign({},l),{duration:Hl()?0:null==l?void 0:l.duration}));n.addEventListener("cancel",o,{once:!0}),n.addEventListener("finish",o,{once:!0})})}function Hl(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}const Pl=new Map,zl=new WeakMap;function Ol(e,t){const l=zl.get(e);if(null==l?void 0:l[t])return l[t];const o=Pl.get(t);return o||{keyframes:[],options:{duration:0}}}function kl(e,t){Pl.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class Bl extends Te{constructor(){super(...arguments),this.myDropdown=Ge(),this.dropdownMenuId=function(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=Ge(),this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu(!0))}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&requestAnimationFrame(async()=>{await this.updateFloatingPosition(),this._startAutoUpdate()})}async showMenu(){if(!this.disabled&&!this.menuIsOpen){if(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this._startAutoUpdate(),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=Ol(this,"dropdown.show");await Vl(this.menuRef.value,[{opacity:0,transform:`translateY(${e})`},{opacity:1,transform:"translateY(0)"}],t)}this.emit("sgds-after-show")}}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=bl(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}async hideMenu(e){if(this.menuIsOpen){if(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=Ol(this,"dropdown.hide");await Vl(this.menuRef.value,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:`translateY(${e})`}],t)}this.menuIsOpen=!1,this.emit("sgds-after-hide"),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}_handleKeyboardMenuEvent(e){if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}}mergeMiddleware(e,t){const l=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},o=t.map(l),n=e.map(e=>{const n=l(e),r=o.indexOf(n);return-1!==r?t[r]:e}).concat(t.filter(t=>!e.some(e=>l(e)===l(t))));return n}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[Zl(8),this.noFlip?void 0:yl(),Cl()].filter(Boolean);let l=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(l=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const o=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:l}),{x:n,y:r,strategy:i,placement:a}=await Ml(this.myDropdown.value,this.menuRef.value,o);this.menuRef.value.setAttribute("data-placement",a),Object.assign(this.menuRef.value.style,{position:i,left:`${n}px`,top:`${r}px`})}}e([P({type:Boolean,state:!0})],Bl.prototype,"noFlip",void 0),e([P({type:Boolean,reflect:!0,state:!0})],Bl.prototype,"menuAlignRight",void 0),e([P({type:String,reflect:!0,state:!0})],Bl.prototype,"drop",void 0),e([P({type:Object})],Bl.prototype,"floatingOpts",void 0),e([P({type:Boolean,reflect:!0})],Bl.prototype,"menuIsOpen",void 0),e([P({type:Boolean,reflect:!0})],Bl.prototype,"disabled",void 0),e([P({type:Boolean,reflect:!0})],Bl.prototype,"readonly",void 0),kl("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),kl("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class Al extends Bl{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),l=t.find(t=>e.composedPath().includes(t));if(!l)return;const o=t.indexOf(l);this.nextDropdownItemNo=o+1,this.prevDropdownItemNo=o<=0?t.length-1:o-1,l.disabled||(this.emit("sgds-select",{detail:{item:l}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const l=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");l&&l.removeAttribute("tabindex")})}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Enter":t.find(t=>e.composedPath().includes(t))&&this.handleSelectSlot(e);break}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter(e=>!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden"))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter(e=>!e.disabled&&!e.hidden)}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const l=(e%t.length+t.length)%t.length,o=t[l];this.emit("i-sgds-option-focus",{detail:{option:o}}),this.nextDropdownItemNo=(l+1)%t.length,this.prevDropdownItemNo=(l-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===o?"0":"-1"),e===o&&t.focus()})}}function jl(e,t){const l=Object.assign({waitUntilFirstUpdate:!1},t);return(t,o)=>{const{update:n}=t;if(e in t){const r=e;t.update=function(e){if(e.has(r)){const t=e.get(r),n=this[r];t!==n&&(l.waitUntilFirstUpdate&&!this.hasUpdated||this[o](t,n))}n.call(this,e)}}}}Al.styles=Bl.styles,e([B("ul.dropdown-menu")],Al.prototype,"menu",void 0),e([z()],Al.prototype,"nextDropdownItemNo",void 0),e([z()],Al.prototype,"prevDropdownItemNo",void 0),e([P({type:Boolean,reflect:!0})],Al.prototype,"hidden",void 0);var $l=i`:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-192);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:var(--sgds-z-index-floating)}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,Sl=i`.dropdown{display:flex;height:inherit;position:relative}.dropdown-menu{max-width:var(--sgds-dimension-320)}.toggler-container{flex:1;pointer-events:none}.toggler-container ::slotted(*){pointer-events:auto}`;class Ll extends Al{constructor(){super(),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.close="default",this.menuRef=tt()}async _handleClick(e){if(this.disabled)return;const t=this._toggler[0];if(!t)return void this.toggleMenu();if(e.composedPath().includes(t))return void this.toggleMenu();if(!this.menuIsOpen)return;const l=this.menuRef.value;l&&e.composedPath().includes(l)||this.hideMenu()}_handleCloseMenu(){const e=this._toggler[0];null==e||e.focus()}async connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._handleCloseMenu)}async disconnectedCallback(){this.removeEventListener("sgds-hide",this._handleCloseMenu)}async firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&await this.updateFloatingPosition(),this._handleDisabled()}_handleTogglerSlotChange(e){const t=e.target.assignedElements({flatten:!0})[0];t&&(t.setAttribute("aria-haspopup","menu"),t.setAttribute("aria-expanded",String(this.menuIsOpen)))}_handleMenuIsOpenChange(){const e=this._toggler[0];e&&e.setAttribute("aria-expanded",String(this.menuIsOpen))}_handleDisabled(){const e=this._toggler[0];e&&(this.disabled?e.setAttribute("disabled","true"):e.hasAttribute("disabled")&&e.removeAttribute("disabled"))}render(){return se`
|
|
75
|
+
*/const Ge=()=>new Qe;class Qe{}const et=new WeakMap;const tt=Ne(class extends Xe{render(e){return he}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),he}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=et.get(t);void 0===l&&(l=new WeakMap,et.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?et.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),lt=Math.min,ot=Math.max,nt=Math.round,rt=Math.floor,it=e=>({x:e,y:e}),at={left:"right",right:"left",bottom:"top",top:"bottom"},st={start:"end",end:"start"};function ct(e,t,l){return ot(e,lt(t,l))}function dt(e,t){return"function"==typeof e?e(t):e}function ht(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function vt(e){return"x"===e?"y":"x"}function ft(e){return"y"===e?"height":"width"}const pt=new Set(["top","bottom"]);function gt(e){return pt.has(ht(e))?"y":"x"}function wt(e){return vt(gt(e))}function mt(e,t,l){void 0===l&&(l=!1);const o=ut(e),n=wt(e),r=ft(n);let i="x"===n?o===(l?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=yt(i)),[i,yt(i)]}function _t(e){return e.replace(/start|end/g,e=>st[e])}const xt=["left","right"],bt=["right","left"],Zt=["top","bottom"],Ct=["bottom","top"];function Mt(e,t,l,o){const n=ut(e);let r=function(e,t,l){switch(e){case"top":case"bottom":return l?t?bt:xt:t?xt:bt;case"left":case"right":return t?Zt:Ct;default:return[]}}(ht(e),"start"===l,o);return n&&(r=r.map(e=>e+"-"+n),t&&(r=r.concat(r.map(_t)))),r}function yt(e){return e.replace(/left|right|bottom|top/g,e=>at[e])}function Vt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ht(e){const{x:t,y:l,width:o,height:n}=e;return{width:o,height:n,top:l,left:t,right:t+o,bottom:l+n,x:t,y:l}}function Pt(e,t,l){let{reference:o,floating:n}=e;const r=gt(t),i=wt(t),a=ft(i),s=ht(t),c="y"===r,d=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,u=o[a]/2-n[a]/2;let v;switch(s){case"top":v={x:d,y:o.y-n.height};break;case"bottom":v={x:d,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:h};break;case"left":v={x:o.x-n.width,y:h};break;default:v={x:o.x,y:o.y}}switch(ut(t)){case"start":v[i]-=u*(l&&c?-1:1);break;case"end":v[i]+=u*(l&&c?-1:1)}return v}async function zt(e,t){var l;void 0===t&&(t={});const{x:o,y:n,platform:r,rects:i,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:v=0}=dt(t,e),f=Vt(v),p=a[u?"floating"===h?"reference":"floating":h],g=Ht(await r.getClippingRect({element:null==(l=await(null==r.isElement?void 0:r.isElement(p)))||l?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:s})),w="floating"===h?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),_=await(null==r.isElement?void 0:r.isElement(m))&&await(null==r.getScale?void 0:r.getScale(m))||{x:1,y:1},x=Ht(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:m,strategy:s}):w);return{top:(g.top-x.top+f.top)/_.y,bottom:(x.bottom-g.bottom+f.bottom)/_.y,left:(g.left-x.left+f.left)/_.x,right:(x.right-g.right+f.right)/_.x}}const Ot=new Set(["left","top"]);function kt(){return"undefined"!=typeof window}function Bt(e){return $t(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jt(e){var t;return null==(t=($t(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $t(e){return!!kt()&&(e instanceof Node||e instanceof At(e).Node)}function St(e){return!!kt()&&(e instanceof Element||e instanceof At(e).Element)}function Lt(e){return!!kt()&&(e instanceof HTMLElement||e instanceof At(e).HTMLElement)}function Et(e){return!(!kt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof At(e).ShadowRoot)}const Tt=new Set(["inline","contents"]);function Rt(e){const{overflow:t,overflowX:l,overflowY:o,display:n}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+l)&&!Tt.has(n)}const It=new Set(["table","td","th"]);function Dt(e){return It.has(Bt(e))}const Nt=[":popover-open",":modal"];function Ut(e){return Nt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Wt=["transform","translate","scale","rotate","perspective"],Ft=["transform","translate","scale","rotate","perspective","filter"],qt=["paint","layout","strict","content"];function Yt(e){const t=Kt(),l=St(e)?Gt(e):e;return Wt.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||Ft.some(e=>(l.willChange||"").includes(e))||qt.some(e=>(l.contain||"").includes(e))}function Kt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Jt=new Set(["html","body","#document"]);function Xt(e){return Jt.has(Bt(e))}function Gt(e){return At(e).getComputedStyle(e)}function Qt(e){return St(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function el(e){if("html"===Bt(e))return e;const t=e.assignedSlot||e.parentNode||Et(e)&&e.host||jt(e);return Et(t)?t.host:t}function tl(e){const t=el(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&Rt(t)?t:tl(t)}function ll(e,t,l){var o;void 0===t&&(t=[]),void 0===l&&(l=!0);const n=tl(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=At(n);if(r){const e=ol(i);return t.concat(i,i.visualViewport||[],Rt(n)?n:[],e&&l?ll(e):[])}return t.concat(n,ll(n,[],l))}function ol(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nl(e){const t=Gt(e);let l=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=Lt(e),r=n?e.offsetWidth:l,i=n?e.offsetHeight:o,a=nt(l)!==r||nt(o)!==i;return a&&(l=r,o=i),{width:l,height:o,$:a}}function rl(e){return St(e)?e:e.contextElement}function il(e){const t=rl(e);if(!Lt(t))return it(1);const l=t.getBoundingClientRect(),{width:o,height:n,$:r}=nl(t);let i=(r?nt(l.width):l.width)/o,a=(r?nt(l.height):l.height)/n;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const al=it(0);function sl(e){const t=At(e);return Kt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:al}function cl(e,t,l,o){void 0===t&&(t=!1),void 0===l&&(l=!1);const n=e.getBoundingClientRect(),r=rl(e);let i=it(1);t&&(o?St(o)&&(i=il(o)):i=il(e));const a=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==At(e))&&t}(r,l,o)?sl(r):it(0);let s=(n.left+a.x)/i.x,c=(n.top+a.y)/i.y,d=n.width/i.x,h=n.height/i.y;if(r){const e=At(r),t=o&&St(o)?At(o):o;let l=e,n=ol(l);for(;n&&o&&t!==l;){const e=il(n),t=n.getBoundingClientRect(),o=Gt(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=r,c+=i,l=At(n),n=ol(l)}}return Ht({width:d,height:h,x:s,y:c})}function dl(e,t){const l=Qt(e).scrollLeft;return t?t.left+l:cl(jt(e)).left+l}function hl(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-dl(e,l),y:l.top+t.scrollTop}}const ul=new Set(["absolute","fixed"]);function vl(e,t,l){let o;if("viewport"===t)o=function(e,t){const l=At(e),o=jt(e),n=l.visualViewport;let r=o.clientWidth,i=o.clientHeight,a=0,s=0;if(n){r=n.width,i=n.height;const e=Kt();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,s=n.offsetTop)}const c=dl(o);if(c<=0){const e=o.ownerDocument,t=e.body,l=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n);i<=25&&(r-=i)}else c<=25&&(r+=c);return{width:r,height:i,x:a,y:s}}(e,l);else if("document"===t)o=function(e){const t=jt(e),l=Qt(e),o=e.ownerDocument.body,n=ot(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=ot(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-l.scrollLeft+dl(e);const a=-l.scrollTop;return"rtl"===Gt(o).direction&&(i+=ot(t.clientWidth,o.clientWidth)-n),{width:n,height:r,x:i,y:a}}(jt(e));else if(St(t))o=function(e,t){const l=cl(e,!0,"fixed"===t),o=l.top+e.clientTop,n=l.left+e.clientLeft,r=Lt(e)?il(e):it(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:n*r.x,y:o*r.y}}(t,l);else{const l=sl(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Ht(o)}function fl(e,t){const l=el(e);return!(l===t||!St(l)||Xt(l))&&("fixed"===Gt(l).position||fl(l,t))}function pl(e,t,l){const o=Lt(t),n=jt(t),r="fixed"===l,i=cl(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const s=it(0);function c(){s.x=dl(n)}if(o||!o&&!r)if(("body"!==Bt(t)||Rt(n))&&(a=Qt(t)),o){const e=cl(t,!0,r,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&c();r&&!o&&n&&c();const d=!n||o||r?it(0):hl(n,a);return{x:i.left+a.scrollLeft-s.x-d.x,y:i.top+a.scrollTop-s.y-d.y,width:i.width,height:i.height}}function gl(e){return"static"===Gt(e).position}function wl(e,t){if(!Lt(e)||"fixed"===Gt(e).position)return null;if(t)return t(e);let l=e.offsetParent;return jt(e)===l&&(l=l.ownerDocument.body),l}function ml(e,t){const l=At(e);if(Ut(e))return l;if(!Lt(e)){let t=el(e);for(;t&&!Xt(t);){if(St(t)&&!gl(t))return t;t=el(t)}return l}let o=wl(e,t);for(;o&&Dt(o)&&gl(o);)o=wl(o,t);return o&&Xt(o)&&gl(o)&&!Yt(o)?l:o||function(e){let t=el(e);for(;Lt(t)&&!Xt(t);){if(Yt(t))return t;if(Ut(t))return null;t=el(t)}return null}(e)||l}const _l={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:o,strategy:n}=e;const r="fixed"===n,i=jt(o),a=!!t&&Ut(t.floating);if(o===i||a&&r)return l;let s={scrollLeft:0,scrollTop:0},c=it(1);const d=it(0),h=Lt(o);if((h||!h&&!r)&&(("body"!==Bt(o)||Rt(i))&&(s=Qt(o)),Lt(o))){const e=cl(o);c=il(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const u=!i||h||r?it(0):hl(i,s);return{width:l.width*c.x,height:l.height*c.y,x:l.x*c.x-s.scrollLeft*c.x+d.x+u.x,y:l.y*c.y-s.scrollTop*c.y+d.y+u.y}},getDocumentElement:jt,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:o,strategy:n}=e;const r=[..."clippingAncestors"===l?Ut(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let o=ll(e,[],!1).filter(e=>St(e)&&"body"!==Bt(e)),n=null;const r="fixed"===Gt(e).position;let i=r?el(e):e;for(;St(i)&&!Xt(i);){const t=Gt(i),l=Yt(i);l||"fixed"!==t.position||(n=null),(r?!l&&!n:!l&&"static"===t.position&&n&&ul.has(n.position)||Rt(i)&&!l&&fl(e,i))?o=o.filter(e=>e!==i):n=t,i=el(i)}return t.set(e,o),o}(t,this._c):[].concat(l),o],i=r[0],a=r.reduce((e,l)=>{const o=vl(t,l,n);return e.top=ot(o.top,e.top),e.right=lt(o.right,e.right),e.bottom=lt(o.bottom,e.bottom),e.left=ot(o.left,e.left),e},vl(t,i,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ml,getElementRects:async function(e){const t=this.getOffsetParent||ml,l=this.getDimensions,o=await l(e.floating);return{reference:pl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:l}=nl(e);return{width:t,height:l}},getScale:il,isElement:St,isRTL:function(e){return"rtl"===Gt(e).direction}};function xl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bl(e,t,l,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=rl(e),d=n||r?[...c?ll(c):[],...ll(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",l,{passive:!0}),r&&e.addEventListener("resize",l)});const h=c&&a?function(e,t){let l,o=null;const n=jt(e);function r(){var e;clearTimeout(l),null==(e=o)||e.disconnect(),o=null}return function i(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),r();const c=e.getBoundingClientRect(),{left:d,top:h,width:u,height:v}=c;if(a||t(),!u||!v)return;const f={rootMargin:-rt(h)+"px "+-rt(n.clientWidth-(d+u))+"px "+-rt(n.clientHeight-(h+v))+"px "+-rt(d)+"px",threshold:ot(0,lt(1,s))||1};let p=!0;function g(t){const o=t[0].intersectionRatio;if(o!==s){if(!p)return i();o?i(!1,o):l=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||xl(c,e.getBoundingClientRect())||i(),p=!1}try{o=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),r}(c,l):null;let u,v=-1,f=null;i&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),l()}),c&&!s&&f.observe(c),f.observe(t));let p=s?cl(e):null;return s&&function t(){const o=cl(e);p&&!xl(p,o)&&l();p=o,u=requestAnimationFrame(t)}(),l(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",l),r&&e.removeEventListener("resize",l)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(u)}}const Zl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,o;const{x:n,y:r,placement:i,middlewareData:a}=t,s=await async function(e,t){const{placement:l,platform:o,elements:n}=e,r=await(null==o.isRTL?void 0:o.isRTL(n.floating)),i=ht(l),a=ut(l),s="y"===gt(l),c=Ot.has(i)?-1:1,d=r&&s?-1:1,h=dt(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof f&&(v="end"===a?-1*f:f),s?{x:v*d,y:u*c}:{x:u*c,y:v*d}}(t,e);return i===(null==(l=a.offset)?void 0:l.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:n+s.x,y:r+s.y,data:{...s,placement:i}}}}},Cl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:o,placement:n}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...s}=dt(e,t),c={x:l,y:o},d=await zt(t,s),h=gt(ht(n)),u=vt(h);let v=c[u],f=c[h];if(r){const e="y"===u?"bottom":"right";v=ct(v+d["y"===u?"top":"left"],v,v-d[e])}if(i){const e="y"===h?"bottom":"right";f=ct(f+d["y"===h?"top":"left"],f,f-d[e])}const p=a.fn({...t,[u]:v,[h]:f});return{...p,data:{x:p.x-l,y:p.y-o,enabled:{[u]:r,[h]:i}}}}}},Ml=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,o;const{placement:n,middlewareData:r,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...g}=dt(e,t);if(null!=(l=r.arrow)&&l.alignmentOffset)return{};const w=ht(n),m=gt(a),_=ht(a)===a,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),b=u||(_||!p?[yt(a)]:function(e){const t=yt(e);return[_t(e),t,_t(t)]}(a)),Z="none"!==f;!u&&Z&&b.push(...Mt(a,p,f,x));const C=[a,...b],M=await zt(t,g),y=[];let V=(null==(o=r.flip)?void 0:o.overflows)||[];if(d&&y.push(M[w]),h){const e=mt(n,i,x);y.push(M[e[0]],M[e[1]])}if(V=[...V,{placement:n,overflows:y}],!y.every(e=>e<=0)){var H,P;const e=((null==(H=r.flip)?void 0:H.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&m!==gt(t))||V.every(e=>gt(e.placement)!==m||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==(P=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!l)switch(v){case"bestFit":{var z;const e=null==(z=V.filter(e=>{if(Z){const t=gt(e.placement);return t===m||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:z[0];e&&(l=e);break}case"initialPlacement":l=a}if(n!==l)return{reset:{placement:l}}}return{}}}},yl=(e,t,l)=>{const o=new Map,n={platform:_l,...l},r={...n.platform,_c:o};return(async(e,t,l)=>{const{placement:o="bottom",strategy:n="absolute",middleware:r=[],platform:i}=l,a=r.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:h}=Pt(c,o,s),u=o,v={},f=0;for(let l=0;l<a.length;l++){const{name:r,fn:p}=a[l],{x:g,y:w,data:m,reset:_}=await p({x:d,y:h,initialPlacement:o,placement:u,strategy:n,middlewareData:v,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=g?g:d,h=null!=w?w:h,v={...v,[r]:{...v[r],...m}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(c=!0===_.rects?await i.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:d,y:h}=Pt(c,u,s))),l=-1)}return{x:d,y:h,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:r})};function Vl(e,t,l){return new Promise(o=>{if((null==l?void 0:l.duration)===1/0)throw new Error("Promise-based animations must be finite.");const n=e.animate(t,Object.assign(Object.assign({},l),{duration:Hl()?0:null==l?void 0:l.duration}));n.addEventListener("cancel",o,{once:!0}),n.addEventListener("finish",o,{once:!0})})}function Hl(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}const Pl=new Map,zl=new WeakMap;function Ol(e,t){const l=zl.get(e);if(null==l?void 0:l[t])return l[t];const o=Pl.get(t);return o||{keyframes:[],options:{duration:0}}}function kl(e,t){Pl.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class Bl extends Te{constructor(){super(...arguments),this.myDropdown=Ge(),this.dropdownMenuId=function(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=Ge(),this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu(!0))}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&requestAnimationFrame(async()=>{await this.updateFloatingPosition(),this._startAutoUpdate()})}async showMenu(){if(!this.disabled&&!this.menuIsOpen){if(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this._startAutoUpdate(),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=Ol(this,"dropdown.show");await Vl(this.menuRef.value,[{opacity:0,transform:`translateY(${e})`},{opacity:1,transform:"translateY(0)"}],t)}this.emit("sgds-after-show")}}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=bl(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}async hideMenu(e){if(this.menuIsOpen){if(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=Ol(this,"dropdown.hide");await Vl(this.menuRef.value,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:`translateY(${e})`}],t)}this.menuIsOpen=!1,this.emit("sgds-after-hide"),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}_handleKeyboardMenuEvent(e){if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}}mergeMiddleware(e,t){const l=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},o=t.map(l),n=e.map(e=>{const n=l(e),r=o.indexOf(n);return-1!==r?t[r]:e}).concat(t.filter(t=>!e.some(e=>l(e)===l(t))));return n}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[Zl(8),this.noFlip?void 0:Ml(),Cl()].filter(Boolean);let l=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(l=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const o=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:l}),{x:n,y:r,strategy:i,placement:a}=await yl(this.myDropdown.value,this.menuRef.value,o);this.menuRef.value.setAttribute("data-placement",a),Object.assign(this.menuRef.value.style,{position:i,left:`${n}px`,top:`${r}px`})}}e([P({type:Boolean,state:!0})],Bl.prototype,"noFlip",void 0),e([P({type:Boolean,reflect:!0,state:!0})],Bl.prototype,"menuAlignRight",void 0),e([P({type:String,reflect:!0,state:!0})],Bl.prototype,"drop",void 0),e([P({type:Object})],Bl.prototype,"floatingOpts",void 0),e([P({type:Boolean,reflect:!0})],Bl.prototype,"menuIsOpen",void 0),e([P({type:Boolean,reflect:!0})],Bl.prototype,"disabled",void 0),e([P({type:Boolean,reflect:!0})],Bl.prototype,"readonly",void 0),kl("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),kl("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class Al extends Bl{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),l=t.find(t=>e.composedPath().includes(t));if(!l)return;const o=t.indexOf(l);this.nextDropdownItemNo=o+1,this.prevDropdownItemNo=o<=0?t.length-1:o-1,l.disabled||(this.emit("sgds-select",{detail:{item:l}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const l=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");l&&l.removeAttribute("tabindex")})}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Enter":t.find(t=>e.composedPath().includes(t))&&this.handleSelectSlot(e);break}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter(e=>!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden"))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter(e=>!e.disabled&&!e.hidden)}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const l=(e%t.length+t.length)%t.length,o=t[l];this.emit("i-sgds-option-focus",{detail:{option:o}}),this.nextDropdownItemNo=(l+1)%t.length,this.prevDropdownItemNo=(l-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===o?"0":"-1"),e===o&&t.focus()})}}function jl(e,t){const l=Object.assign({waitUntilFirstUpdate:!1},t);return(t,o)=>{const{update:n}=t;if(e in t){const r=e;t.update=function(e){if(e.has(r)){const t=e.get(r),n=this[r];t!==n&&(l.waitUntilFirstUpdate&&!this.hasUpdated||this[o](t,n))}n.call(this,e)}}}}Al.styles=Bl.styles,e([B("ul.dropdown-menu")],Al.prototype,"menu",void 0),e([z()],Al.prototype,"nextDropdownItemNo",void 0),e([z()],Al.prototype,"prevDropdownItemNo",void 0),e([P({type:Boolean,reflect:!0})],Al.prototype,"hidden",void 0);var $l=i`:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-192);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:var(--sgds-z-index-floating)}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,Sl=i`.dropdown{display:flex;height:inherit;position:relative}.dropdown-menu{max-width:var(--sgds-dimension-320)}.toggler-container{flex:1;pointer-events:none}.toggler-container ::slotted(*){pointer-events:auto}`;class Ll extends Al{constructor(){super(),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.close="default",this.menuRef=tt()}async _handleClick(e){if(this.disabled)return;const t=this._toggler[0];if(!t)return void this.toggleMenu();if(e.composedPath().includes(t))return void this.toggleMenu();if(!this.menuIsOpen)return;const l=this.menuRef.value;l&&e.composedPath().includes(l)||this.hideMenu()}_handleCloseMenu(){const e=this._toggler[0];null==e||e.focus()}async connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._handleCloseMenu)}async disconnectedCallback(){this.removeEventListener("sgds-hide",this._handleCloseMenu)}async firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&await this.updateFloatingPosition(),this._handleDisabled()}_handleTogglerSlotChange(e){const t=e.target.assignedElements({flatten:!0})[0];t&&(t.setAttribute("aria-haspopup","menu"),t.setAttribute("aria-expanded",String(this.menuIsOpen)))}_handleMenuIsOpenChange(){const e=this._toggler[0];e&&e.setAttribute("aria-expanded",String(this.menuIsOpen))}_handleDisabled(){const e=this._toggler[0];e&&(this.disabled?e.setAttribute("disabled","true"):e.hasAttribute("disabled")&&e.removeAttribute("disabled"))}render(){return se`
|
|
76
76
|
<div class="dropdown" @click=${this._handleClick}>
|
|
77
77
|
<div class="toggler-container" ${tt(this.myDropdown)}>
|
|
78
78
|
<slot name="toggler" @slotchange=${this._handleTogglerSlotChange}></slot>
|
|
@@ -87,15 +87,15 @@ const Ae=globalThis;let je;Ae.litIssuedWarnings??=new Set,je=(e,t)=>{t+=` See ht
|
|
|
87
87
|
* Copyright 2018 Google LLC
|
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
89
|
*/
|
|
90
|
-
class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.strings?.length>2)throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this._previousClasses){this._previousClasses=new Set,void 0!==e.strings&&(this._staticClasses=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!this._staticClasses?.has(e)&&this._previousClasses.add(e);return this.render(t)}const l=e.element.classList;for(const e of this._previousClasses)e in t||(l.remove(e),this._previousClasses.delete(e));for(const e in t){const o=!!t[e];o===this._previousClasses.has(e)||this._staticClasses?.has(e)||(o?(l.add(e),this._previousClasses.add(e)):(l.remove(e),this._previousClasses.delete(e)))}return de}}),Tl={announcement:()=>Promise.resolve().then(function(){return eo}),archive:()=>Promise.resolve().then(function(){return lo}),"arrow-bar-down":()=>Promise.resolve().then(function(){return no}),"arrow-bar-left":()=>Promise.resolve().then(function(){return io}),"arrow-bar-right":()=>Promise.resolve().then(function(){return so}),"arrow-bar-up":()=>Promise.resolve().then(function(){return ho}),"arrow-circle-down":()=>Promise.resolve().then(function(){return vo}),"arrow-circle-left":()=>Promise.resolve().then(function(){return po}),"arrow-circle-right":()=>Promise.resolve().then(function(){return wo}),"arrow-circle-up":()=>Promise.resolve().then(function(){return _o}),"arrow-clockwise":()=>Promise.resolve().then(function(){return bo}),"arrow-down":()=>Promise.resolve().then(function(){return Co}),"arrow-left":()=>Promise.resolve().then(function(){return Mo}),"arrow-repeat":()=>Promise.resolve().then(function(){return Ho}),"arrow-right":()=>Promise.resolve().then(function(){return zo}),"arrow-square-down":()=>Promise.resolve().then(function(){return ko}),"arrow-square-left":()=>Promise.resolve().then(function(){return Ao}),"arrow-square-right":()=>Promise.resolve().then(function(){return $o}),"arrow-square-up":()=>Promise.resolve().then(function(){return Lo}),"arrow-up":()=>Promise.resolve().then(function(){return To}),"bank-fill":()=>Promise.resolve().then(function(){return Io}),"bell-slash":()=>Promise.resolve().then(function(){return No}),bell:()=>Promise.resolve().then(function(){return Wo}),"bi-funnel":()=>Promise.resolve().then(function(){return qo}),"bookmark-fill":()=>Promise.resolve().then(function(){return Ko}),bookmark:()=>Promise.resolve().then(function(){return Xo}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Qo}),"box-seam":()=>Promise.resolve().then(function(){return tn}),building:()=>Promise.resolve().then(function(){return on}),bus:()=>Promise.resolve().then(function(){return rn}),calculator:()=>Promise.resolve().then(function(){return sn}),"calendar-check":()=>Promise.resolve().then(function(){return dn}),"calendar-heart":()=>Promise.resolve().then(function(){return un}),"calendar-x":()=>Promise.resolve().then(function(){return fn}),calendar:()=>Promise.resolve().then(function(){return gn}),camera:()=>Promise.resolve().then(function(){return mn}),car:()=>Promise.resolve().then(function(){return xn}),"chat-dots":()=>Promise.resolve().then(function(){return Zn}),"chat-left-text":()=>Promise.resolve().then(function(){return yn}),chat:()=>Promise.resolve().then(function(){return Vn}),"check-circle-fill":()=>Promise.resolve().then(function(){return Pn}),"check-circle":()=>Promise.resolve().then(function(){return On}),check:()=>Promise.resolve().then(function(){return Bn}),"chevron-down":()=>Promise.resolve().then(function(){return jn}),"chevron-left":()=>Promise.resolve().then(function(){return Sn}),"chevron-right":()=>Promise.resolve().then(function(){return En}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return Rn}),"chevron-up":()=>Promise.resolve().then(function(){return Dn}),clock:()=>Promise.resolve().then(function(){return Un}),"cloud-check":()=>Promise.resolve().then(function(){return Fn}),"cloud-download":()=>Promise.resolve().then(function(){return Yn}),"cloud-upload":()=>Promise.resolve().then(function(){return Jn}),cloud:()=>Promise.resolve().then(function(){return Gn}),"code-square":()=>Promise.resolve().then(function(){return er}),"coins-hand":()=>Promise.resolve().then(function(){return lr}),compass:()=>Promise.resolve().then(function(){return nr}),copy:()=>Promise.resolve().then(function(){return ir}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return sr}),cross:()=>Promise.resolve().then(function(){return dr}),"cursor-fill":()=>Promise.resolve().then(function(){return ur}),cursor:()=>Promise.resolve().then(function(){return fr}),"dash-circle":()=>Promise.resolve().then(function(){return gr}),"dash-square":()=>Promise.resolve().then(function(){return mr}),dash:()=>Promise.resolve().then(function(){return xr}),database:()=>Promise.resolve().then(function(){return Zr}),dataflow:()=>Promise.resolve().then(function(){return yr}),download:()=>Promise.resolve().then(function(){return Vr}),edit:()=>Promise.resolve().then(function(){return Pr}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return Or}),"exclamation-circle":()=>Promise.resolve().then(function(){return Br}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return jr}),"exclamation-triangle":()=>Promise.resolve().then(function(){return Sr}),exclamation:()=>Promise.resolve().then(function(){return Er}),"eye-fill":()=>Promise.resolve().then(function(){return Rr}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Dr}),"eye-slash":()=>Promise.resolve().then(function(){return Ur}),eye:()=>Promise.resolve().then(function(){return Fr}),"face-smile-fill":()=>Promise.resolve().then(function(){return Yr}),"face-smile":()=>Promise.resolve().then(function(){return Jr}),facebook:()=>Promise.resolve().then(function(){return Gr}),"file-earmark-text":()=>Promise.resolve().then(function(){return ei}),"file-pdf":()=>Promise.resolve().then(function(){return li}),"file-plus":()=>Promise.resolve().then(function(){return ni}),"file-text":()=>Promise.resolve().then(function(){return ii}),file:()=>Promise.resolve().then(function(){return si}),files:()=>Promise.resolve().then(function(){return di}),fingerprint:()=>Promise.resolve().then(function(){return ui}),flash:()=>Promise.resolve().then(function(){return fi}),"folder-check":()=>Promise.resolve().then(function(){return gi}),"folder-minus":()=>Promise.resolve().then(function(){return mi}),"folder-plus":()=>Promise.resolve().then(function(){return xi}),folder:()=>Promise.resolve().then(function(){return Zi}),gear:()=>Promise.resolve().then(function(){return yi}),"geo-alt":()=>Promise.resolve().then(function(){return Vi}),"geo-fill":()=>Promise.resolve().then(function(){return Pi}),geo:()=>Promise.resolve().then(function(){return Oi}),"globe-alt":()=>Promise.resolve().then(function(){return Bi}),globe:()=>Promise.resolve().then(function(){return ji}),google:()=>Promise.resolve().then(function(){return Si}),"grid-alt":()=>Promise.resolve().then(function(){return Ei}),"grid-fill":()=>Promise.resolve().then(function(){return Ri}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return Di}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return Ui}),"hard-drive":()=>Promise.resolve().then(function(){return Fi}),heart:()=>Promise.resolve().then(function(){return Yi}),"house-door":()=>Promise.resolve().then(function(){return Ji}),house:()=>Promise.resolve().then(function(){return Gi}),image:()=>Promise.resolve().then(function(){return ea}),"in-box":()=>Promise.resolve().then(function(){return la}),"info-circle-fill":()=>Promise.resolve().then(function(){return na}),"info-circle":()=>Promise.resolve().then(function(){return ia}),instagram:()=>Promise.resolve().then(function(){return sa}),key:()=>Promise.resolve().then(function(){return da}),"laptop-gear":()=>Promise.resolve().then(function(){return ua}),laptop:()=>Promise.resolve().then(function(){return fa}),layers:()=>Promise.resolve().then(function(){return ga}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return ma}),"layout-text-window":()=>Promise.resolve().then(function(){return xa}),layout:()=>Promise.resolve().then(function(){return Za}),"life-buoy":()=>Promise.resolve().then(function(){return ya}),lightbulb:()=>Promise.resolve().then(function(){return Va}),link:()=>Promise.resolve().then(function(){return Pa}),linkedin:()=>Promise.resolve().then(function(){return Oa}),list:()=>Promise.resolve().then(function(){return Ba}),"lock-fill":()=>Promise.resolve().then(function(){return ja}),lock:()=>Promise.resolve().then(function(){return Sa}),login:()=>Promise.resolve().then(function(){return Ea}),logout:()=>Promise.resolve().then(function(){return Ra}),luggage:()=>Promise.resolve().then(function(){return Da}),"mail-open":()=>Promise.resolve().then(function(){return Ua}),mail:()=>Promise.resolve().then(function(){return Fa}),map:()=>Promise.resolve().then(function(){return Ya}),meetup:()=>Promise.resolve().then(function(){return Ja}),menu:()=>Promise.resolve().then(function(){return Ga}),microphone:()=>Promise.resolve().then(function(){return es}),monitor:()=>Promise.resolve().then(function(){return ls}),moon:()=>Promise.resolve().then(function(){return ns}),move:()=>Promise.resolve().then(function(){return is}),paperclip:()=>Promise.resolve().then(function(){return ss}),passcode:()=>Promise.resolve().then(function(){return ds}),passport:()=>Promise.resolve().then(function(){return us}),pause:()=>Promise.resolve().then(function(){return fs}),pencil:()=>Promise.resolve().then(function(){return gs}),"pending-circle":()=>Promise.resolve().then(function(){return ms}),"person-dash":()=>Promise.resolve().then(function(){return xs}),"person-plus":()=>Promise.resolve().then(function(){return Zs}),"person-x":()=>Promise.resolve().then(function(){return ys}),person:()=>Promise.resolve().then(function(){return Vs}),phone:()=>Promise.resolve().then(function(){return Ps}),"pin-map-fill":()=>Promise.resolve().then(function(){return Os}),pin:()=>Promise.resolve().then(function(){return Bs}),placeholder:()=>Promise.resolve().then(function(){return js}),plane:()=>Promise.resolve().then(function(){return Ss}),play:()=>Promise.resolve().then(function(){return Es}),"plus-circle":()=>Promise.resolve().then(function(){return Rs}),"plus-square":()=>Promise.resolve().then(function(){return Ds}),plus:()=>Promise.resolve().then(function(){return Us}),printer:()=>Promise.resolve().then(function(){return Fs}),"question-circle":()=>Promise.resolve().then(function(){return Ys}),rocket:()=>Promise.resolve().then(function(){return Js}),save:()=>Promise.resolve().then(function(){return Gs}),search:()=>Promise.resolve().then(function(){return ec}),send:()=>Promise.resolve().then(function(){return lc}),"sg-crest":()=>Promise.resolve().then(function(){return nc}),share:()=>Promise.resolve().then(function(){return ic}),"shield-tick":()=>Promise.resolve().then(function(){return sc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return dc}),"sidebar-expand":()=>Promise.resolve().then(function(){return uc}),"slash-circle":()=>Promise.resolve().then(function(){return fc}),"slash-divider":()=>Promise.resolve().then(function(){return gc}),sliders:()=>Promise.resolve().then(function(){return mc}),"sort-ascending":()=>Promise.resolve().then(function(){return xc}),"sort-descending":()=>Promise.resolve().then(function(){return Zc}),speedometer:()=>Promise.resolve().then(function(){return yc}),"star-ai":()=>Promise.resolve().then(function(){return Vc}),"star-fill":()=>Promise.resolve().then(function(){return Pc}),star:()=>Promise.resolve().then(function(){return Oc}),stoplights:()=>Promise.resolve().then(function(){return Bc}),sun:()=>Promise.resolve().then(function(){return jc}),"switch-horizontal":()=>Promise.resolve().then(function(){return Sc}),"switch-vertical":()=>Promise.resolve().then(function(){return Ec}),tablet:()=>Promise.resolve().then(function(){return Rc}),telegram:()=>Promise.resolve().then(function(){return Dc}),telephone:()=>Promise.resolve().then(function(){return Uc}),"three-dots-vertical":()=>Promise.resolve().then(function(){return Fc}),"three-dots":()=>Promise.resolve().then(function(){return Yc}),ticket:()=>Promise.resolve().then(function(){return Jc}),"toggle-off":()=>Promise.resolve().then(function(){return Gc}),"toggle-on":()=>Promise.resolve().then(function(){return ed}),train:()=>Promise.resolve().then(function(){return ld}),translate:()=>Promise.resolve().then(function(){return nd}),trash:()=>Promise.resolve().then(function(){return id}),"trend-down":()=>Promise.resolve().then(function(){return sd}),"trend-up":()=>Promise.resolve().then(function(){return dd}),truck:()=>Promise.resolve().then(function(){return ud}),"twitter-x":()=>Promise.resolve().then(function(){return fd}),unlock:()=>Promise.resolve().then(function(){return gd}),upload:()=>Promise.resolve().then(function(){return md}),"user-check":()=>Promise.resolve().then(function(){return xd}),"user-circle":()=>Promise.resolve().then(function(){return Zd}),"user-pause":()=>Promise.resolve().then(function(){return yd}),"user-square":()=>Promise.resolve().then(function(){return Vd}),users:()=>Promise.resolve().then(function(){return Pd}),"video-recorder":()=>Promise.resolve().then(function(){return Od}),"volume-max":()=>Promise.resolve().then(function(){return Bd}),"volume-x":()=>Promise.resolve().then(function(){return jd}),"window-dash":()=>Promise.resolve().then(function(){return Sd}),"window-desktop":()=>Promise.resolve().then(function(){return Ed}),"window-dock":()=>Promise.resolve().then(function(){return Rd}),"window-fullscreen":()=>Promise.resolve().then(function(){return Dd}),"window-plus":()=>Promise.resolve().then(function(){return Ud}),"window-sidebar":()=>Promise.resolve().then(function(){return Fd}),"window-split":()=>Promise.resolve().then(function(){return Yd}),"window-stack":()=>Promise.resolve().then(function(){return Jd}),"window-x":()=>Promise.resolve().then(function(){return Gd}),window:()=>Promise.resolve().then(function(){return eh}),"xcircle-fill":()=>Promise.resolve().then(function(){return lh}),xcircle:()=>Promise.resolve().then(function(){return nh}),youtube:()=>Promise.resolve().then(function(){return ih}),"zoom-in":()=>Promise.resolve().then(function(){return sh}),"zoom-out":()=>Promise.resolve().then(function(){return dh})};var Rl=i`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;const Il=new Map;class Dl extends Te{constructor(){super(...arguments),this.size="lg"}willUpdate(e){e.has("name")&&this._loadIcon(this.name)}async _loadIcon(e){if(!e)return void(this._icon=void 0);if(Il.has(e))return void(this._icon=Il.get(e));const t=Tl[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const l=await t();Il.set(e,l.default),this._icon=l.default}catch(t){console.warn(`Failed to load icon: ${e}`),this._icon=void 0}}updated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("svg");t&&(this.ariaLabel?(t.removeAttribute("aria-hidden"),t.setAttribute("aria-label",this.ariaLabel)):(t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true")))}render(){var e;return null!==(e=this._icon)&&void 0!==e?e:he}}Dl.styles=[...Te.styles,Rl],e([P({type:String,reflect:!0})],Dl.prototype,"name",void 0),e([P({type:String,reflect:!0})],Dl.prototype,"size",void 0),e([P({type:String})],Dl.prototype,"ariaLabel",void 0),e([z()],Dl.prototype,"_icon",void 0);var Nl=i`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-40);pointer-events:none}.dropdown-item.readonly{cursor:default}.dropdown-item.readonly:focus,.dropdown-item.readonly:focus-visible,.dropdown-item.readonly:hover{background-color:var(--sgds-bg-transparent);outline:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;class Ul extends Te{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this.readonly=!1,this.ariaLabel=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e=>{"Enter"===e.key&&this.anchor.length>0&&this.anchor[0].click()}),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){return se`
|
|
90
|
+
class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.strings?.length>2)throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this._previousClasses){this._previousClasses=new Set,void 0!==e.strings&&(this._staticClasses=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!this._staticClasses?.has(e)&&this._previousClasses.add(e);return this.render(t)}const l=e.element.classList;for(const e of this._previousClasses)e in t||(l.remove(e),this._previousClasses.delete(e));for(const e in t){const o=!!t[e];o===this._previousClasses.has(e)||this._staticClasses?.has(e)||(o?(l.add(e),this._previousClasses.add(e)):(l.remove(e),this._previousClasses.delete(e)))}return de}}),Tl={announcement:()=>Promise.resolve().then(function(){return eo}),archive:()=>Promise.resolve().then(function(){return lo}),"arrow-bar-down":()=>Promise.resolve().then(function(){return no}),"arrow-bar-left":()=>Promise.resolve().then(function(){return io}),"arrow-bar-right":()=>Promise.resolve().then(function(){return so}),"arrow-bar-up":()=>Promise.resolve().then(function(){return ho}),"arrow-circle-down":()=>Promise.resolve().then(function(){return vo}),"arrow-circle-left":()=>Promise.resolve().then(function(){return po}),"arrow-circle-right":()=>Promise.resolve().then(function(){return wo}),"arrow-circle-up":()=>Promise.resolve().then(function(){return _o}),"arrow-clockwise":()=>Promise.resolve().then(function(){return bo}),"arrow-down":()=>Promise.resolve().then(function(){return Co}),"arrow-left":()=>Promise.resolve().then(function(){return yo}),"arrow-repeat":()=>Promise.resolve().then(function(){return Ho}),"arrow-right":()=>Promise.resolve().then(function(){return zo}),"arrow-square-down":()=>Promise.resolve().then(function(){return ko}),"arrow-square-left":()=>Promise.resolve().then(function(){return Ao}),"arrow-square-right":()=>Promise.resolve().then(function(){return $o}),"arrow-square-up":()=>Promise.resolve().then(function(){return Lo}),"arrow-up":()=>Promise.resolve().then(function(){return To}),"bank-fill":()=>Promise.resolve().then(function(){return Io}),"bell-slash":()=>Promise.resolve().then(function(){return No}),bell:()=>Promise.resolve().then(function(){return Wo}),"bi-funnel":()=>Promise.resolve().then(function(){return qo}),"bookmark-fill":()=>Promise.resolve().then(function(){return Ko}),bookmark:()=>Promise.resolve().then(function(){return Xo}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Qo}),"box-seam":()=>Promise.resolve().then(function(){return tn}),building:()=>Promise.resolve().then(function(){return on}),bus:()=>Promise.resolve().then(function(){return rn}),calculator:()=>Promise.resolve().then(function(){return sn}),"calendar-check":()=>Promise.resolve().then(function(){return dn}),"calendar-heart":()=>Promise.resolve().then(function(){return un}),"calendar-x":()=>Promise.resolve().then(function(){return fn}),calendar:()=>Promise.resolve().then(function(){return gn}),camera:()=>Promise.resolve().then(function(){return mn}),car:()=>Promise.resolve().then(function(){return xn}),"chat-dots":()=>Promise.resolve().then(function(){return Zn}),"chat-left-text":()=>Promise.resolve().then(function(){return Mn}),chat:()=>Promise.resolve().then(function(){return Vn}),"check-circle-fill":()=>Promise.resolve().then(function(){return Pn}),"check-circle":()=>Promise.resolve().then(function(){return On}),check:()=>Promise.resolve().then(function(){return Bn}),"chevron-down":()=>Promise.resolve().then(function(){return jn}),"chevron-left":()=>Promise.resolve().then(function(){return Sn}),"chevron-right":()=>Promise.resolve().then(function(){return En}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return Rn}),"chevron-up":()=>Promise.resolve().then(function(){return Dn}),clock:()=>Promise.resolve().then(function(){return Un}),"cloud-check":()=>Promise.resolve().then(function(){return Fn}),"cloud-download":()=>Promise.resolve().then(function(){return Yn}),"cloud-upload":()=>Promise.resolve().then(function(){return Jn}),cloud:()=>Promise.resolve().then(function(){return Gn}),"code-square":()=>Promise.resolve().then(function(){return er}),"coins-hand":()=>Promise.resolve().then(function(){return lr}),compass:()=>Promise.resolve().then(function(){return nr}),copy:()=>Promise.resolve().then(function(){return ir}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return sr}),cross:()=>Promise.resolve().then(function(){return dr}),"cursor-fill":()=>Promise.resolve().then(function(){return ur}),cursor:()=>Promise.resolve().then(function(){return fr}),"dash-circle":()=>Promise.resolve().then(function(){return gr}),"dash-square":()=>Promise.resolve().then(function(){return mr}),dash:()=>Promise.resolve().then(function(){return xr}),database:()=>Promise.resolve().then(function(){return Zr}),dataflow:()=>Promise.resolve().then(function(){return Mr}),download:()=>Promise.resolve().then(function(){return Vr}),edit:()=>Promise.resolve().then(function(){return Pr}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return Or}),"exclamation-circle":()=>Promise.resolve().then(function(){return Br}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return jr}),"exclamation-triangle":()=>Promise.resolve().then(function(){return Sr}),exclamation:()=>Promise.resolve().then(function(){return Er}),"eye-fill":()=>Promise.resolve().then(function(){return Rr}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Dr}),"eye-slash":()=>Promise.resolve().then(function(){return Ur}),eye:()=>Promise.resolve().then(function(){return Fr}),"face-smile-fill":()=>Promise.resolve().then(function(){return Yr}),"face-smile":()=>Promise.resolve().then(function(){return Jr}),facebook:()=>Promise.resolve().then(function(){return Gr}),"file-earmark-text":()=>Promise.resolve().then(function(){return ei}),"file-pdf":()=>Promise.resolve().then(function(){return li}),"file-plus":()=>Promise.resolve().then(function(){return ni}),"file-text":()=>Promise.resolve().then(function(){return ii}),file:()=>Promise.resolve().then(function(){return si}),files:()=>Promise.resolve().then(function(){return di}),fingerprint:()=>Promise.resolve().then(function(){return ui}),flash:()=>Promise.resolve().then(function(){return fi}),"folder-check":()=>Promise.resolve().then(function(){return gi}),"folder-minus":()=>Promise.resolve().then(function(){return mi}),"folder-plus":()=>Promise.resolve().then(function(){return xi}),folder:()=>Promise.resolve().then(function(){return Zi}),gear:()=>Promise.resolve().then(function(){return Mi}),"geo-alt":()=>Promise.resolve().then(function(){return Vi}),"geo-fill":()=>Promise.resolve().then(function(){return Pi}),geo:()=>Promise.resolve().then(function(){return Oi}),"globe-alt":()=>Promise.resolve().then(function(){return Bi}),globe:()=>Promise.resolve().then(function(){return ji}),google:()=>Promise.resolve().then(function(){return Si}),"grid-alt":()=>Promise.resolve().then(function(){return Ei}),"grid-fill":()=>Promise.resolve().then(function(){return Ri}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return Di}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return Ui}),"hard-drive":()=>Promise.resolve().then(function(){return Fi}),heart:()=>Promise.resolve().then(function(){return Yi}),"house-door":()=>Promise.resolve().then(function(){return Ji}),house:()=>Promise.resolve().then(function(){return Gi}),image:()=>Promise.resolve().then(function(){return ea}),"in-box":()=>Promise.resolve().then(function(){return la}),"info-circle-fill":()=>Promise.resolve().then(function(){return na}),"info-circle":()=>Promise.resolve().then(function(){return ia}),instagram:()=>Promise.resolve().then(function(){return sa}),key:()=>Promise.resolve().then(function(){return da}),"laptop-gear":()=>Promise.resolve().then(function(){return ua}),laptop:()=>Promise.resolve().then(function(){return fa}),layers:()=>Promise.resolve().then(function(){return ga}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return ma}),"layout-text-window":()=>Promise.resolve().then(function(){return xa}),layout:()=>Promise.resolve().then(function(){return Za}),"life-buoy":()=>Promise.resolve().then(function(){return Ma}),lightbulb:()=>Promise.resolve().then(function(){return Va}),link:()=>Promise.resolve().then(function(){return Pa}),linkedin:()=>Promise.resolve().then(function(){return Oa}),list:()=>Promise.resolve().then(function(){return Ba}),"lock-fill":()=>Promise.resolve().then(function(){return ja}),lock:()=>Promise.resolve().then(function(){return Sa}),login:()=>Promise.resolve().then(function(){return Ea}),logout:()=>Promise.resolve().then(function(){return Ra}),luggage:()=>Promise.resolve().then(function(){return Da}),"mail-open":()=>Promise.resolve().then(function(){return Ua}),mail:()=>Promise.resolve().then(function(){return Fa}),map:()=>Promise.resolve().then(function(){return Ya}),meetup:()=>Promise.resolve().then(function(){return Ja}),menu:()=>Promise.resolve().then(function(){return Ga}),microphone:()=>Promise.resolve().then(function(){return es}),monitor:()=>Promise.resolve().then(function(){return ls}),moon:()=>Promise.resolve().then(function(){return ns}),move:()=>Promise.resolve().then(function(){return is}),paperclip:()=>Promise.resolve().then(function(){return ss}),passcode:()=>Promise.resolve().then(function(){return ds}),passport:()=>Promise.resolve().then(function(){return us}),pause:()=>Promise.resolve().then(function(){return fs}),pencil:()=>Promise.resolve().then(function(){return gs}),"pending-circle":()=>Promise.resolve().then(function(){return ms}),"person-dash":()=>Promise.resolve().then(function(){return xs}),"person-plus":()=>Promise.resolve().then(function(){return Zs}),"person-x":()=>Promise.resolve().then(function(){return Ms}),person:()=>Promise.resolve().then(function(){return Vs}),phone:()=>Promise.resolve().then(function(){return Ps}),"pin-map-fill":()=>Promise.resolve().then(function(){return Os}),pin:()=>Promise.resolve().then(function(){return Bs}),placeholder:()=>Promise.resolve().then(function(){return js}),plane:()=>Promise.resolve().then(function(){return Ss}),play:()=>Promise.resolve().then(function(){return Es}),"plus-circle":()=>Promise.resolve().then(function(){return Rs}),"plus-square":()=>Promise.resolve().then(function(){return Ds}),plus:()=>Promise.resolve().then(function(){return Us}),printer:()=>Promise.resolve().then(function(){return Fs}),"question-circle":()=>Promise.resolve().then(function(){return Ys}),rocket:()=>Promise.resolve().then(function(){return Js}),save:()=>Promise.resolve().then(function(){return Gs}),search:()=>Promise.resolve().then(function(){return ec}),send:()=>Promise.resolve().then(function(){return lc}),"sg-crest":()=>Promise.resolve().then(function(){return nc}),share:()=>Promise.resolve().then(function(){return ic}),"shield-tick":()=>Promise.resolve().then(function(){return sc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return dc}),"sidebar-expand":()=>Promise.resolve().then(function(){return uc}),"slash-circle":()=>Promise.resolve().then(function(){return fc}),"slash-divider":()=>Promise.resolve().then(function(){return gc}),sliders:()=>Promise.resolve().then(function(){return mc}),"sort-ascending":()=>Promise.resolve().then(function(){return xc}),"sort-descending":()=>Promise.resolve().then(function(){return Zc}),speedometer:()=>Promise.resolve().then(function(){return Mc}),"star-ai":()=>Promise.resolve().then(function(){return Vc}),"star-fill":()=>Promise.resolve().then(function(){return Pc}),star:()=>Promise.resolve().then(function(){return Oc}),stoplights:()=>Promise.resolve().then(function(){return Bc}),sun:()=>Promise.resolve().then(function(){return jc}),"switch-horizontal":()=>Promise.resolve().then(function(){return Sc}),"switch-vertical":()=>Promise.resolve().then(function(){return Ec}),tablet:()=>Promise.resolve().then(function(){return Rc}),telegram:()=>Promise.resolve().then(function(){return Dc}),telephone:()=>Promise.resolve().then(function(){return Uc}),"three-dots-vertical":()=>Promise.resolve().then(function(){return Fc}),"three-dots":()=>Promise.resolve().then(function(){return Yc}),ticket:()=>Promise.resolve().then(function(){return Jc}),"toggle-off":()=>Promise.resolve().then(function(){return Gc}),"toggle-on":()=>Promise.resolve().then(function(){return ed}),train:()=>Promise.resolve().then(function(){return ld}),translate:()=>Promise.resolve().then(function(){return nd}),trash:()=>Promise.resolve().then(function(){return id}),"trend-down":()=>Promise.resolve().then(function(){return sd}),"trend-up":()=>Promise.resolve().then(function(){return dd}),truck:()=>Promise.resolve().then(function(){return ud}),"twitter-x":()=>Promise.resolve().then(function(){return fd}),unlock:()=>Promise.resolve().then(function(){return gd}),upload:()=>Promise.resolve().then(function(){return md}),"user-check":()=>Promise.resolve().then(function(){return xd}),"user-circle":()=>Promise.resolve().then(function(){return Zd}),"user-pause":()=>Promise.resolve().then(function(){return Md}),"user-square":()=>Promise.resolve().then(function(){return Vd}),users:()=>Promise.resolve().then(function(){return Pd}),"video-recorder":()=>Promise.resolve().then(function(){return Od}),"volume-max":()=>Promise.resolve().then(function(){return Bd}),"volume-x":()=>Promise.resolve().then(function(){return jd}),"window-dash":()=>Promise.resolve().then(function(){return Sd}),"window-desktop":()=>Promise.resolve().then(function(){return Ed}),"window-dock":()=>Promise.resolve().then(function(){return Rd}),"window-fullscreen":()=>Promise.resolve().then(function(){return Dd}),"window-plus":()=>Promise.resolve().then(function(){return Ud}),"window-sidebar":()=>Promise.resolve().then(function(){return Fd}),"window-split":()=>Promise.resolve().then(function(){return Yd}),"window-stack":()=>Promise.resolve().then(function(){return Jd}),"window-x":()=>Promise.resolve().then(function(){return Gd}),window:()=>Promise.resolve().then(function(){return eh}),"xcircle-fill":()=>Promise.resolve().then(function(){return lh}),xcircle:()=>Promise.resolve().then(function(){return nh}),youtube:()=>Promise.resolve().then(function(){return ih}),"zoom-in":()=>Promise.resolve().then(function(){return sh}),"zoom-out":()=>Promise.resolve().then(function(){return dh})};var Rl=i`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;const Il=new Map;class Dl extends Te{constructor(){super(...arguments),this.size="lg"}willUpdate(e){e.has("name")&&this._loadIcon(this.name)}async _loadIcon(e){if(!e)return void(this._icon=void 0);if(Il.has(e))return void(this._icon=Il.get(e));const t=Tl[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const l=await t();Il.set(e,l.default),this._icon=l.default}catch(t){console.warn(`Failed to load icon: ${e}`),this._icon=void 0}}updated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("svg");t&&(this.ariaLabel?(t.removeAttribute("aria-hidden"),t.setAttribute("aria-label",this.ariaLabel)):(t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true")))}render(){var e;return null!==(e=this._icon)&&void 0!==e?e:he}}Dl.styles=[...Te.styles,Rl],e([P({type:String,reflect:!0})],Dl.prototype,"name",void 0),e([P({type:String,reflect:!0})],Dl.prototype,"size",void 0),e([P({type:String})],Dl.prototype,"ariaLabel",void 0),e([z()],Dl.prototype,"_icon",void 0);var Nl=i`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-40);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;class Ul extends Te{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this.ariaLabel=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e=>{"Enter"===e.key&&this.anchor.length>0&&this.anchor[0].click()}),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){return se`
|
|
91
91
|
<div
|
|
92
|
-
class="dropdown-item ${El({disabled:this.disabled,active:this.active
|
|
93
|
-
tabindex=${this.disabled
|
|
92
|
+
class="dropdown-item ${El({disabled:this.disabled,active:this.active})}"
|
|
93
|
+
tabindex=${this.disabled?"-1":"0"}
|
|
94
94
|
aria-label=${He(this.ariaLabel||void 0)}
|
|
95
95
|
>
|
|
96
96
|
<slot></slot>
|
|
97
97
|
</div>
|
|
98
|
-
`}}Ul.styles=[Sl,Nl],Ul.dependencies={"sgds-icon":Dl},e([A({flatten:!0})],Ul.prototype,"anchor",void 0),e([P({type:Boolean})],Ul.prototype,"active",void 0),e([P({type:Boolean,reflect:!0})],Ul.prototype,"disabled",void 0),e([P({type:
|
|
98
|
+
`}}Ul.styles=[Sl,Nl],Ul.dependencies={"sgds-icon":Dl},e([A({flatten:!0})],Ul.prototype,"anchor",void 0),e([P({type:Boolean})],Ul.prototype,"active",void 0),e([P({type:Boolean,reflect:!0})],Ul.prototype,"disabled",void 0),e([P({type:String})],Ul.prototype,"ariaLabel",void 0);class Wl extends Te{constructor(){super(...arguments),this.size="md"}render(){return se`
|
|
99
99
|
<sgds-dropdown>
|
|
100
100
|
<button slot="toggler" class="overflow-btn" aria-label="More options">
|
|
101
101
|
<sgds-icon name="three-dots" size=${this.size}></sgds-icon>
|
|
@@ -231,7 +231,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
231
231
|
clip-rule="evenodd"
|
|
232
232
|
/>
|
|
233
233
|
</svg>
|
|
234
|
-
`,Co=Object.freeze({__proto__:null,default:Zo}),
|
|
234
|
+
`,Co=Object.freeze({__proto__:null,default:Zo}),Mo=se`
|
|
235
235
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
236
236
|
<path
|
|
237
237
|
fill="currentColor"
|
|
@@ -240,7 +240,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
240
240
|
clip-rule="evenodd"
|
|
241
241
|
/>
|
|
242
242
|
</svg>
|
|
243
|
-
`,
|
|
243
|
+
`,yo=Object.freeze({__proto__:null,default:Mo}),Vo=se`
|
|
244
244
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
245
245
|
<path
|
|
246
246
|
fill="currentColor"
|
|
@@ -520,7 +520,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
520
520
|
clip-rule="evenodd"
|
|
521
521
|
/>
|
|
522
522
|
</svg>
|
|
523
|
-
`,
|
|
523
|
+
`,Mn=Object.freeze({__proto__:null,default:Cn}),yn=se`
|
|
524
524
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
525
525
|
<path
|
|
526
526
|
fill="currentColor"
|
|
@@ -529,7 +529,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
529
529
|
clip-rule="evenodd"
|
|
530
530
|
/>
|
|
531
531
|
</svg>
|
|
532
|
-
`,Vn=Object.freeze({__proto__:null,default:
|
|
532
|
+
`,Vn=Object.freeze({__proto__:null,default:yn}),Hn=se`
|
|
533
533
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
534
534
|
<path
|
|
535
535
|
fill="currentColor"
|
|
@@ -805,7 +805,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
805
805
|
clip-rule="evenodd"
|
|
806
806
|
/>
|
|
807
807
|
</svg>
|
|
808
|
-
`,
|
|
808
|
+
`,Mr=Object.freeze({__proto__:null,default:Cr}),yr=se`
|
|
809
809
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
810
810
|
<path
|
|
811
811
|
fill="currentColor"
|
|
@@ -814,7 +814,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
814
814
|
clip-rule="evenodd"
|
|
815
815
|
/>
|
|
816
816
|
</svg>
|
|
817
|
-
`,Vr=Object.freeze({__proto__:null,default:
|
|
817
|
+
`,Vr=Object.freeze({__proto__:null,default:yr}),Hr=se`
|
|
818
818
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
819
819
|
<path
|
|
820
820
|
fill="currentColor"
|
|
@@ -1095,7 +1095,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1095
1095
|
clip-rule="evenodd"
|
|
1096
1096
|
/>
|
|
1097
1097
|
</svg>
|
|
1098
|
-
`,
|
|
1098
|
+
`,Mi=Object.freeze({__proto__:null,default:Ci}),yi=se`
|
|
1099
1099
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1100
1100
|
<path
|
|
1101
1101
|
fill="currentColor"
|
|
@@ -1110,7 +1110,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1110
1110
|
clip-rule="evenodd"
|
|
1111
1111
|
/>
|
|
1112
1112
|
</svg>
|
|
1113
|
-
`,Vi=Object.freeze({__proto__:null,default:
|
|
1113
|
+
`,Vi=Object.freeze({__proto__:null,default:yi}),Hi=se`
|
|
1114
1114
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1115
1115
|
<path
|
|
1116
1116
|
fill="currentColor"
|
|
@@ -1356,7 +1356,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1356
1356
|
clip-rule="evenodd"
|
|
1357
1357
|
/>
|
|
1358
1358
|
</svg>
|
|
1359
|
-
`,
|
|
1359
|
+
`,Ma=Object.freeze({__proto__:null,default:Ca}),ya=se`
|
|
1360
1360
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1361
1361
|
<path
|
|
1362
1362
|
fill="currentColor"
|
|
@@ -1373,7 +1373,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1373
1373
|
d="M1.875 12c0-.345.28-.625.625-.625h.95a.625.625 0 1 1 0 1.25H2.5A.625.625 0 0 1 1.875 12Zm18.05 0c0-.345.28-.625.625-.625h.95a.625.625 0 1 1 0 1.25h-.95a.625.625 0 0 1-.625-.625Z"
|
|
1374
1374
|
/>
|
|
1375
1375
|
</svg>
|
|
1376
|
-
`,Va=Object.freeze({__proto__:null,default:
|
|
1376
|
+
`,Va=Object.freeze({__proto__:null,default:ya}),Ha=se`
|
|
1377
1377
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1378
1378
|
<path
|
|
1379
1379
|
fill="currentColor"
|
|
@@ -1621,7 +1621,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1621
1621
|
clip-rule="evenodd"
|
|
1622
1622
|
/>
|
|
1623
1623
|
</svg>
|
|
1624
|
-
`,
|
|
1624
|
+
`,Ms=Object.freeze({__proto__:null,default:Cs}),ys=se`
|
|
1625
1625
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1626
1626
|
<path
|
|
1627
1627
|
fill="currentColor"
|
|
@@ -1630,7 +1630,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1630
1630
|
clip-rule="evenodd"
|
|
1631
1631
|
/>
|
|
1632
1632
|
</svg>
|
|
1633
|
-
`,Vs=Object.freeze({__proto__:null,default:
|
|
1633
|
+
`,Vs=Object.freeze({__proto__:null,default:ys}),Hs=se`
|
|
1634
1634
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1635
1635
|
<path
|
|
1636
1636
|
fill="currentColor"
|
|
@@ -1909,7 +1909,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1909
1909
|
clip-rule="evenodd"
|
|
1910
1910
|
/>
|
|
1911
1911
|
</svg>
|
|
1912
|
-
`,
|
|
1912
|
+
`,Mc=Object.freeze({__proto__:null,default:Cc}),yc=se`
|
|
1913
1913
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1914
1914
|
<path
|
|
1915
1915
|
fill="currentColor"
|
|
@@ -1918,7 +1918,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
1918
1918
|
clip-rule="evenodd"
|
|
1919
1919
|
/>
|
|
1920
1920
|
</svg>
|
|
1921
|
-
`,Vc=Object.freeze({__proto__:null,default:
|
|
1921
|
+
`,Vc=Object.freeze({__proto__:null,default:yc}),Hc=se`
|
|
1922
1922
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1923
1923
|
<path
|
|
1924
1924
|
fill="currentColor"
|
|
@@ -2175,7 +2175,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
2175
2175
|
clip-rule="evenodd"
|
|
2176
2176
|
/>
|
|
2177
2177
|
</svg>
|
|
2178
|
-
`,
|
|
2178
|
+
`,Md=Object.freeze({__proto__:null,default:Cd}),yd=se`
|
|
2179
2179
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2180
2180
|
<path
|
|
2181
2181
|
fill="currentColor"
|
|
@@ -2190,7 +2190,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Ie||"class"!==e.name||e.str
|
|
|
2190
2190
|
clip-rule="evenodd"
|
|
2191
2191
|
/>
|
|
2192
2192
|
</svg>
|
|
2193
|
-
`,Vd=Object.freeze({__proto__:null,default:
|
|
2193
|
+
`,Vd=Object.freeze({__proto__:null,default:yd}),Hd=se`
|
|
2194
2194
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2195
2195
|
<path
|
|
2196
2196
|
fill="currentColor"
|